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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  9. package/components/badge/badge.directive.d.ts +2 -2
  10. package/components/badge/badge.options.d.ts +1 -3
  11. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +2 -4
  14. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  15. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/chip/chip.directive.d.ts +2 -4
  18. package/components/chip/chip.options.d.ts +1 -3
  19. package/components/combo-box/combo-box.d.ts +5 -0
  20. package/components/combo-box/combo-box.directive.d.ts +5 -5
  21. package/components/combo-box/index.d.ts +1 -0
  22. package/components/comment/comment.directive.d.ts +2 -2
  23. package/components/confirm/confirm.component.d.ts +5 -3
  24. package/components/confirm/confirm.service.d.ts +3 -2
  25. package/{directives → components}/copy/copy.component.d.ts +2 -2
  26. package/{directives → components}/copy/copy.directive.d.ts +3 -4
  27. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  28. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  29. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  30. package/components/data-list-wrapper/index.d.ts +1 -1
  31. package/components/elastic-container/elastic-container.component.d.ts +1 -1
  32. package/components/files/file/file.options.d.ts +1 -1
  33. package/components/files/files/files.component.d.ts +2 -2
  34. package/components/files/input-files/input-files.options.d.ts +1 -3
  35. package/components/floating-container/floating-container.directive.d.ts +3 -2
  36. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  37. package/components/fullscreen/index.d.ts +1 -0
  38. package/components/index.d.ts +3 -1
  39. package/components/input-chip/input-chip.component.d.ts +9 -8
  40. package/components/input-chip/input-chip.d.ts +5 -1
  41. package/components/input-chip/input-chip.directive.d.ts +7 -12
  42. package/components/input-color/index.d.ts +1 -0
  43. package/components/input-color/input-color.component.d.ts +4 -4
  44. package/components/input-color/input-color.d.ts +5 -0
  45. package/components/input-date/input-date.d.ts +4 -1
  46. package/components/input-date/input-date.directive.d.ts +10 -12
  47. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  48. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  49. package/components/input-date-range/input-date-range.d.ts +4 -1
  50. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  51. package/components/input-date-time/input-date-time.d.ts +4 -1
  52. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  53. package/components/input-month/input-month.d.ts +4 -1
  54. package/components/input-month/input-month.directive.d.ts +5 -4
  55. package/components/input-month-range/input-month-range.d.ts +4 -1
  56. package/components/input-month-range/input-month-range.directive.d.ts +5 -4
  57. package/components/input-number/input-number.d.ts +4 -1
  58. package/components/input-number/input-number.directive.d.ts +7 -11
  59. package/components/input-number/quantum.directive.d.ts +1 -1
  60. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  61. package/components/input-phone/index.d.ts +1 -0
  62. package/components/input-phone/input-phone.d.ts +5 -0
  63. package/components/input-phone/input-phone.directive.d.ts +7 -7
  64. package/components/input-phone-international/index.d.ts +1 -0
  65. package/components/input-phone-international/input-phone-international.component.d.ts +26 -32
  66. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  67. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  68. package/components/input-pin/index.d.ts +1 -0
  69. package/components/input-pin/input-pin.component.d.ts +4 -4
  70. package/components/input-pin/input-pin.d.ts +5 -0
  71. package/components/input-range/input-range.component.d.ts +9 -12
  72. package/components/input-slider/input-slider.d.ts +4 -1
  73. package/components/input-slider/input-slider.directive.d.ts +3 -5
  74. package/components/input-time/input-time.component.d.ts +1 -3
  75. package/components/input-time/input-time.d.ts +4 -1
  76. package/components/input-time/input-time.directive.d.ts +8 -10
  77. package/components/input-year/input-year.d.ts +4 -1
  78. package/components/input-year/input-year.directive.d.ts +5 -5
  79. package/components/like/like.component.d.ts +2 -2
  80. package/components/like/like.options.d.ts +1 -1
  81. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  82. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  83. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  84. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  85. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  86. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  87. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  88. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  89. package/components/pagination/index.d.ts +1 -0
  90. package/components/pagination/pagination.component.d.ts +25 -54
  91. package/components/pagination/pagination.options.d.ts +7 -0
  92. package/components/pin/pin.directive.d.ts +2 -2
  93. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  94. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  95. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  96. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  97. package/components/preview/preview.component.d.ts +1 -1
  98. package/components/preview/preview.d.ts +2 -1
  99. package/components/preview/zoom/preview-zoom.component.d.ts +2 -1
  100. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  101. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  102. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  103. package/components/progress/progress.options.d.ts +1 -3
  104. package/components/push/push-alert.component.d.ts +4 -3
  105. package/components/push/push.component.d.ts +1 -1
  106. package/components/push/push.directive.d.ts +4 -6
  107. package/components/push/push.options.d.ts +5 -8
  108. package/components/push/push.service.d.ts +6 -2
  109. package/components/radio/radio.component.d.ts +1 -1
  110. package/components/radio-list/radio-list.component.d.ts +5 -3
  111. package/components/range/range-change.directive.d.ts +1 -2
  112. package/components/range/range.component.d.ts +16 -24
  113. package/components/rating/rating.component.d.ts +5 -5
  114. package/components/rating/rating.options.d.ts +6 -6
  115. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  116. package/components/segmented/segmented.component.d.ts +4 -6
  117. package/components/segmented/segmented.directive.d.ts +6 -7
  118. package/components/select/native-select/native-select.component.d.ts +7 -8
  119. package/components/select/select.d.ts +4 -1
  120. package/components/select/select.directive.d.ts +4 -3
  121. package/components/slider/helpers/key-steps.d.ts +1 -2
  122. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  123. package/components/slider/slider.options.d.ts +1 -6
  124. package/components/slides/slides.directive.d.ts +4 -4
  125. package/components/status/status.directive.d.ts +2 -2
  126. package/components/stepper/step.component.d.ts +6 -8
  127. package/components/stepper/stepper.component.d.ts +6 -11
  128. package/components/switch/switch.component.d.ts +1 -0
  129. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  130. package/components/tabs/tabs.options.d.ts +1 -6
  131. package/components/textarea/index.d.ts +2 -1
  132. package/components/textarea/textarea.component.d.ts +4 -4
  133. package/components/textarea/textarea.d.ts +6 -0
  134. package/components/textarea/textarea.directive.d.ts +13 -0
  135. package/components/toast/index.d.ts +5 -0
  136. package/components/toast/toast.component.d.ts +18 -0
  137. package/components/toast/toast.d.ts +3 -0
  138. package/components/toast/toast.directive.d.ts +7 -0
  139. package/components/toast/toast.options.d.ts +10 -0
  140. package/components/toast/toast.service.d.ts +17 -0
  141. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  142. package/components/tree/misc/tree.constants.d.ts +0 -3
  143. package/components/tree/misc/tree.tokens.d.ts +1 -6
  144. package/directives/button-close/button-close.directive.d.ts +2 -1
  145. package/directives/button-select/button-select.directive.d.ts +4 -4
  146. package/directives/chevron/chevron.directive.d.ts +2 -3
  147. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  148. package/directives/fade/fade.directive.d.ts +2 -2
  149. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  150. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  151. package/directives/index.d.ts +0 -2
  152. package/directives/password/password.directive.d.ts +1 -1
  153. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  154. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  155. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  156. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  157. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  158. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
  160. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-avatar.mjs +33 -44
  162. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  164. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-badge.mjs +16 -27
  166. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -7
  168. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  170. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +12 -18
  172. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +6 -6
  174. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -17
  176. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -8
  178. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -23
  180. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -6
  182. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-chip.mjs +18 -34
  184. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +42 -32
  186. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  188. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -5
  190. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -17
  192. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-copy.mjs +113 -0
  194. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  195. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -78
  196. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  198. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -12
  200. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-files.mjs +43 -50
  202. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -5
  204. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +16 -19
  206. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  208. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  209. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +69 -74
  210. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-input-color.mjs +24 -14
  212. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +34 -51
  214. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +27 -32
  216. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +32 -29
  218. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-input-date.mjs +44 -47
  220. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
  222. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +24 -18
  224. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-input-month.mjs +27 -21
  226. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-input-number.mjs +60 -77
  228. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +122 -138
  230. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +32 -23
  232. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +20 -11
  234. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-input-range.mjs +33 -29
  236. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +36 -45
  238. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-input-time.mjs +64 -70
  240. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-input-year.mjs +26 -18
  242. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -16
  244. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-like.mjs +6 -6
  246. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -82
  248. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -12
  250. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +37 -48
  252. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +37 -33
  254. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -8
  256. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-pagination.mjs +69 -140
  258. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  260. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-preview.mjs +59 -50
  262. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-progress.mjs +76 -81
  264. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  266. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-push.mjs +49 -57
  268. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  270. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -9
  272. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-range.mjs +41 -85
  274. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  276. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  278. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  280. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-components-select.mjs +82 -62
  282. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-components-slider.mjs +74 -82
  284. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-components-slides.mjs +16 -24
  286. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  288. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-components-stepper.mjs +45 -79
  290. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  292. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-components-tabs.mjs +36 -47
  294. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-components-textarea.mjs +54 -62
  296. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -15
  298. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-components-toast.mjs +164 -0
  300. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  301. package/fesm2022/taiga-ui-kit-components-tree.mjs +59 -63
  302. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-components.mjs +3 -1
  304. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  306. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  308. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  310. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
  312. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -15
  314. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  316. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-directives-fade.mjs +15 -17
  318. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  319. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  320. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  321. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -4
  322. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  323. package/fesm2022/taiga-ui-kit-directives-password.mjs +12 -14
  324. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  325. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -4
  326. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  327. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  328. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  329. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  330. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  331. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
  332. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  333. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +17 -22
  334. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  335. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +6 -8
  336. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  337. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -5
  338. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  339. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  340. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  342. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  343. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  344. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  345. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  346. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  347. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +31 -0
  348. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  349. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  350. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  351. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  352. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  353. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -5
  354. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  355. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  356. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  357. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  358. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  359. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
  360. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  361. package/fesm2022/taiga-ui-kit-tokens.mjs +7 -25
  362. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  363. package/fesm2022/taiga-ui-kit-utils.mjs +2 -8
  364. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  365. package/package.json +54 -46
  366. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  367. package/pipes/auto-color/index.d.ts +1 -0
  368. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  369. package/pipes/flag/flag.pipe.d.ts +14 -0
  370. package/pipes/flag/index.d.ts +1 -0
  371. package/pipes/index.d.ts +3 -1
  372. package/pipes/initials/index.d.ts +1 -0
  373. package/pipes/initials/initials.pipe.d.ts +7 -0
  374. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  375. package/styles/components/badge.less +1 -0
  376. package/styles/components/checkbox.less +1 -1
  377. package/styles/components/chip.less +12 -1
  378. package/styles/components/pin.less +0 -1
  379. package/styles/components/radio.less +1 -1
  380. package/styles/components/switch.less +1 -1
  381. package/styles/components/toast.less +44 -0
  382. package/tokens/i18n.d.ts +25 -26
  383. package/tokens/index.d.ts +0 -1
  384. package/tokens/items-handlers.d.ts +1 -7
  385. package/tokens/preview-icons.d.ts +1 -3
  386. package/utils/index.d.ts +0 -1
  387. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  388. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  389. package/components/accordion/accordion-item.component.d.ts +0 -25
  390. package/components/action-bar/action-bar.d.ts +0 -3
  391. package/components/action-bar/action-bar.directive.d.ts +0 -6
  392. package/components/pdf-viewer/index.d.ts +0 -4
  393. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  394. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  395. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  396. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  397. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  398. package/directives/lazy-loading/index.d.ts +0 -2
  399. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  400. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  401. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  402. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  403. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  404. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  405. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -119
  406. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  407. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  408. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  409. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  410. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  411. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  412. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  413. package/pipes/field-error/index.d.ts +0 -2
  414. package/tokens/validation-errors.d.ts +0 -5
  415. package/utils/phone.d.ts +0 -3
  416. /package/{directives → components}/copy/copy.d.ts +0 -0
  417. /package/{directives → components}/copy/copy.options.d.ts +0 -0
  418. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, inject, computed, ContentChildren, Input, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
2
+ import { contentChildren, inject, computed, input, ChangeDetectionStrategy, Component, Directive, Input } from '@angular/core';
4
3
  import { NgControl } from '@angular/forms';
5
- import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
6
- import { TuiOptionWithValue, tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
4
+ import { tuiIsPresent, tuiSetSignal } from '@taiga-ui/cdk/utils/miscellaneous';
5
+ import * as i3 from '@taiga-ui/core/components/data-list';
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';
@@ -15,48 +15,38 @@ 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
17
  import { tuiInjectElement, tuiIsPresent as tuiIsPresent$1 } from '@taiga-ui/cdk/utils';
18
- import * as i3 from '@taiga-ui/kit/components/data-list-wrapper';
19
- import { TuiDataListWrapper } from '@taiga-ui/kit/components/data-list-wrapper';
20
18
  import * as i1 from '@taiga-ui/kit/components/input-chip';
21
19
  import { TuiInputChipDirective } from '@taiga-ui/kit/components/input-chip';
20
+ import * as i4 from '@taiga-ui/core/portals/dropdown';
22
21
 
23
22
  class TuiMultiSelectGroupComponent {
24
23
  constructor() {
25
- this.values = signal([]);
24
+ this.options = contentChildren((TuiOptionWithValue));
26
25
  this.handlers = inject(TUI_ITEMS_HANDLERS);
27
- this.control = inject(TuiTextfieldComponent, { optional: true })?.control ||
26
+ this.control = inject(TuiTextfieldComponent, { optional: true })?.control() ||
28
27
  inject(NgControl, { optional: true });
29
- this.texts = toSignal(inject(TUI_MULTI_SELECT_TEXTS));
28
+ this.values = computed(() => this.options().map(({ value }) => value()));
29
+ this.texts = inject(TUI_MULTI_SELECT_TEXTS);
30
30
  this.value = tuiInjectValue();
31
- this.checked = computed(() => this.values().every((item) => this.value().some((value) => this.handlers.identityMatcher()(item, value))));
32
- this.label = '';
33
- }
34
- set options(options) {
35
- this.values.set(options
36
- .toArray()
37
- .map(({ value }) => value())
38
- .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('');
39
33
  }
40
34
  toggle() {
41
- const values = this.values();
35
+ const values = this.values().filter(tuiIsPresent);
42
36
  const matcher = this.handlers.identityMatcher();
43
- const others = this.value().filter((current) => values.every((item) => !matcher(current, item)));
37
+ const value = this.value() || [];
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: "14.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: "<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<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}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}\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.16", ngImport: i0, type: TuiMultiSelectGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
42
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", 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-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]" }], 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.16", 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: "<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<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}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}\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-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"] }]
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.16", ngImport: i0, type: TuiMultiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
65
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiMultiSelectOption, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
76
66
  @if (option) {
77
67
  <input
78
68
  tuiCheckbox
@@ -81,9 +71,9 @@ class TuiMultiSelectOption {
81
71
  [size]="size() === 'l' ? 'm' : 's'"
82
72
  />
83
73
  }
84
- `, isInline: true, styles: [":host-context(tui-dropdown-mobile) input{order:100;margin-inline-start:auto}\n"], dependencies: [{ kind: "component", type: TuiCheckbox, selector: "input[type=\"checkbox\"][tuiCheckbox]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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.16", ngImport: i0, type: TuiMultiSelectOption, decorators: [{
87
77
  type: Component,
88
78
  args: [{ imports: [TuiCheckbox], template: `
89
79
  @if (option) {
@@ -94,17 +84,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
94
84
  [size]="size() === 'l' ? 'm' : 's'"
95
85
  />
96
86
  }
97
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host-context(tui-dropdown-mobile) input{order:100;margin-inline-start:auto}\n"] }]
87
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host-context(tui-dropdown-mobile) input,:host-context(tui-sheet-dialog) input{order:100;margin-inline-start:auto}\n"] }]
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.16", ngImport: i0, type: TuiMultiSelectGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
92
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", 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.16", ngImport: i0, type: TuiMultiSelectGroupDirective, decorators: [{
105
95
  type: Directive,
106
96
  args: [{
107
- standalone: true,
108
97
  selector: '[tuiMultiSelectGroup]',
109
98
  providers: [tuiAsOptionContent(TuiMultiSelectOption)],
110
99
  }]
@@ -113,7 +102,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
113
102
  class TuiMultiSelectNative {
114
103
  constructor() {
115
104
  this.control = inject(TuiControl);
116
- this.textfield = inject(TuiTextfieldComponent);
105
+ this.textfield = inject(TuiTextfieldMultiComponent);
117
106
  this.isFlat = tuiIsFlat;
118
107
  this.handlers = inject(TUI_ITEMS_HANDLERS);
119
108
  this.el = tuiInjectElement();
@@ -124,23 +113,23 @@ class TuiMultiSelectNative {
124
113
  this.labels = [];
125
114
  }
126
115
  set placeholder(placeholder) {
127
- this.textfield.fillerSetter = placeholder;
116
+ tuiSetSignal(this.textfield.filler, placeholder);
128
117
  }
129
118
  onInput() {
130
- const items = this.items || [];
119
+ const items = this.items?.flat() || [];
131
120
  const options = Array.from(this.el.selectedOptions).map(({ index }) => index);
132
- this.textfield.cva?.onChange(items.flat().filter((_, i) => options.includes(i)));
121
+ this.textfield.cva()?.onChange(items.filter((_, i) => options.includes(i)));
133
122
  }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
135
- 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; let index = $index) {\n <optgroup [label]=\"labels[index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\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.TuiDataListWrapperComponent, selector: "tui-data-list-wrapper:not([labels]), tui-data-list-wrapper:not([labels])[new]", inputs: ["items", "disabledItemHandler", "emptyContent", "size", "itemContent"], outputs: ["itemClick"] }, { kind: "component", type: i3.TuiDataListGroupWrapperComponent, selector: "tui-data-list-wrapper[labels]", inputs: ["labels"] }, { kind: "directive", type: i2.TuiTextfieldDropdownDirective, selector: "ng-template[tuiTextfieldDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
124
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", 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 }); }
136
125
  }
137
- 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.16", ngImport: i0, type: TuiMultiSelectNative, decorators: [{
138
127
  type: Component,
139
- args: [{ selector: 'select[tuiMultiSelect]', imports: [NgTemplateOutlet, TuiDataListWrapper, TuiTextfield], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [TuiInputChipDirective, TuiSelectLike], host: {
128
+ args: [{ selector: 'select[tuiMultiSelect]', imports: [NgTemplateOutlet, TuiDataList, TuiMultiSelectGroupComponent, TuiTextfield], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [TuiInputChipDirective, TuiSelectLike], host: {
140
129
  multiple: '',
141
130
  '(click.stop.zoneless)': '0',
142
131
  '(input)': 'onInput()',
143
- }, template: "@if (items && !isFlat(items)) {\n @for (group of labels; track group; let index = $index) {\n <optgroup [label]=\"labels[index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\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" }]
144
133
  }], propDecorators: { items: [{
145
134
  type: Input
146
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 {toSignal} from '@angular/core/rxjs-interop';\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 styleUrls: ['./multi-select-group.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._label]': 'label',\n },\n})\nexport class TuiMultiSelectGroupComponent<T> {\n private readonly values = signal<readonly 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 texts = toSignal(inject(TUI_MULTI_SELECT_TEXTS));\n protected readonly value = tuiInjectValue<readonly T[]>();\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 others = this.value().filter((current) =>\n values.every((item) => !matcher(current, item)),\n );\n\n this.control?.control?.setValue(this.checked() ? others : others.concat(values));\n }\n}\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<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 `\n :host-context(tui-dropdown-mobile) input {\n order: 100;\n margin-inline-start: auto;\n }\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 standalone: true,\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 {tuiAsOptionContent} 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 {TuiDataListWrapper} from '@taiga-ui/kit/components/data-list-wrapper';\nimport {TuiInputChipDirective} from '@taiga-ui/kit/components/input-chip';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Component({\n selector: 'select[tuiMultiSelect]',\n imports: [NgTemplateOutlet, TuiDataListWrapper, 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 this.textfield.fillerSetter = 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; let index = $index) {\n <optgroup [label]=\"labels[index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"items\"\n [labels]=\"labels\"\n />\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list-wrapper\n *tuiTextfieldDropdown\n new\n [items]=\"$any(items)\"\n />\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":";;;;;;;;;;;;;;;;;;;;;;MAiCa,4BAA4B,CAAA;AAVzC,IAAA,WAAA,GAAA;AAWqB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAe,EAAE,CAAC;AACjC,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;YACxD,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QAEpB,IAAK,CAAA,KAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;QAChD,IAAK,CAAA,KAAA,GAAG,cAAc,EAAgB;QACtC,IAAO,CAAA,OAAA,GAAG,QAAQ,CAAC,MAClC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,KACrB,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAC7E,CACJ;QAGM,IAAK,CAAA,KAAA,GAAG,EAAE;AAqBpB;IAnBG,IACc,OAAO,CAAC,OAAyC,EAAA;AAC3D,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CACX;AACK,aAAA,OAAO;aACP,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,EAAE;AACxB,aAAA,MAAM,CAAC,YAAY,CAAC,CAC5B;;IAGK,MAAM,GAAA;AACZ,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;Q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A,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAWjB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,SAAS;+BACI,wBAAwB,EAAA,OAAA,EACzB,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,CAAC,EAE5C,eAAA,EAAA,uBAAuB,CAAC,MAAM,aACpC,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,okCAAA,EAAA;8BAoBM,KAAK,EAAA,CAAA;sBADX;gBAIM,MAAM,EAAA,CAAA;sBADZ;gBAIU,WAAW,EAAA,CAAA;sBADrB;;;AErDQ,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, 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 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 TuiMultiSelect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,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;;;;"}
@@ -1,16 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { isSignal, ChangeDetectionStrategy, Component, Injectable, Directive } from '@angular/core';
2
+ import { isSignal, ChangeDetectionStrategy, Component, Injectable, input, Directive } from '@angular/core';
3
3
  import * as i2 from '@ng-web-apis/resize-observer';
4
4
  import { WaResizeObserver } from '@ng-web-apis/resize-observer';
5
5
  import * as i1 from '@taiga-ui/cdk/directives/animated';
6
6
  import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
7
7
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
8
8
  import { TuiLoader, tuiLoaderOptionsProvider } from '@taiga-ui/core/components/loader';
9
- import { tuiAvatarOptionsProvider } from '@taiga-ui/kit/components/avatar';
10
9
  import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
11
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
12
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
13
- import { TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
10
+ import * as i1$1 from '@taiga-ui/cdk/portals';
11
+ import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
12
+ import { TuiModalService } from '@taiga-ui/core/portals/modal';
14
13
 
15
14
  class TuiNotificationMiddleComponent {
16
15
  constructor() {
@@ -27,65 +26,70 @@ class TuiNotificationMiddleComponent {
27
26
  ? this.context.closable()
28
27
  : this.context.closable;
29
28
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
31
- 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\")" } }, providers: [
32
- tuiLoaderOptionsProvider({ size: 'l' }),
33
- tuiAvatarOptionsProvider({ size: 'm' }),
34
- ], 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.16", ngImport: i0, type: TuiNotificationMiddleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", 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: `
35
31
  <tui-loader class="t-loader" />
36
32
  <ng-container *polymorpheusOutlet="context.content as text">
37
33
  {{ text }}
38
34
  </ng-container>
39
- `, 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", "showLoader"] }], 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-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 }); }
40
36
  }
41
- 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.16", ngImport: i0, type: TuiNotificationMiddleComponent, decorators: [{
42
38
  type: Component,
43
39
  args: [{ selector: 'tui-notification-middle', imports: [PolymorpheusOutlet, TuiLoader], template: `
44
40
  <tui-loader class="t-loader" />
45
41
  <ng-container *polymorpheusOutlet="context.content as text">
46
42
  {{ text }}
47
43
  </ng-container>
48
- `, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
49
- tuiLoaderOptionsProvider({ size: 'l' }),
50
- tuiAvatarOptionsProvider({ size: 'm' }),
51
- ], hostDirectives: [
44
+ `, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiLoaderOptionsProvider({ size: 'l' })], hostDirectives: [
52
45
  TuiAnimated,
53
46
  { directive: WaResizeObserver, outputs: ['waResizeObserver'] },
54
47
  ], host: {
48
+ class: 'tui-backdrop-hidden',
55
49
  '(document:click.capture)': 'onClick($event.target)',
56
50
  '(document:keydown.esc)': 'onClick($event.currentTarget)',
57
51
  '(waResizeObserver)': 'el.style.setProperty("--t-width", el.clientWidth + "px")',
58
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"] }]
59
53
  }] });
60
54
 
61
- class TuiNotificationMiddleService extends TuiPopoverService {
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
63
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, providedIn: 'root', useFactory: () => new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {
64
- closable: false,
65
- }) }); }
55
+ class TuiNotificationMiddleService extends TuiModalService {
56
+ constructor() {
57
+ super(...arguments);
58
+ this.options = { closable: false };
59
+ this.content = TuiNotificationMiddleComponent;
60
+ }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiNotificationMiddleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
62
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiNotificationMiddleService, providedIn: 'root' }); }
66
63
  }
67
- 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.16", ngImport: i0, type: TuiNotificationMiddleService, decorators: [{
68
65
  type: Injectable,
69
66
  args: [{
70
67
  providedIn: 'root',
71
- useFactory: () => new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {
72
- closable: false,
73
- }),
74
68
  }]
75
69
  }] });
76
70
 
77
- class TuiNotificationMiddle extends TuiPopoverDirective {
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddle, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
79
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiNotificationMiddle, isStandalone: true, selector: "ng-template[tuiNotificationMiddle]", inputs: { options: ["tuiNotificationMiddleOptions", "options"], open: ["tuiNotificationMiddle", "open"] }, outputs: { openChange: "tuiNotificationMiddleChange" }, providers: [tuiAsPopover(TuiNotificationMiddleService)], usesInheritance: true, ngImport: i0 }); }
71
+ class TuiNotificationMiddle {
72
+ constructor() {
73
+ this.tuiNotificationMiddleOptions = input({});
74
+ }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiNotificationMiddle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
76
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.16", 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 }); }
80
77
  }
81
- 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.16", ngImport: i0, type: TuiNotificationMiddle, decorators: [{
82
79
  type: Directive,
83
80
  args: [{
84
- standalone: true,
85
81
  selector: 'ng-template[tuiNotificationMiddle]',
86
- inputs: ['options: tuiNotificationMiddleOptions', 'open: tuiNotificationMiddle'],
87
- outputs: ['openChange: tuiNotificationMiddleChange'],
88
- providers: [tuiAsPopover(TuiNotificationMiddleService)],
82
+ providers: [tuiAsPortal(TuiNotificationMiddleService)],
83
+ hostDirectives: [
84
+ {
85
+ directive: TuiPortalDirective,
86
+ inputs: [
87
+ 'options: tuiNotificationMiddleOptions',
88
+ 'open: tuiNotificationMiddle',
89
+ ],
90
+ outputs: ['openChange: tuiNotificationMiddleChange'],
91
+ },
92
+ ],
89
93
  }]
90
94
  }] });
91
95
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-notification-middle.mjs","sources":["../../../projects/kit/components/notification-middle/notification-middle.component.ts","../../../projects/kit/components/notification-middle/notification-middle.service.ts","../../../projects/kit/components/notification-middle/notification-middle.directive.ts","../../../projects/kit/components/notification-middle/taiga-ui-kit-components-notification-middle.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, isSignal, type Signal} from '@angular/core';\nimport {WaResizeObserver} from '@ng-web-apis/resize-observer';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiLoader, tuiLoaderOptionsProvider} from '@taiga-ui/core/components/loader';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nexport interface TuiNotificationMiddleOptions {\n closable: Signal<boolean> | boolean;\n}\n\n@Component({\n selector: 'tui-notification-middle',\n imports: [PolymorpheusOutlet, TuiLoader],\n template: `\n <tui-loader class=\"t-loader\" />\n <ng-container *polymorpheusOutlet=\"context.content as text\">\n {{ text }}\n </ng-container>\n `,\n styleUrls: ['./notification-middle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiLoaderOptionsProvider({size: 'l'}),\n tuiAvatarOptionsProvider({size: 'm'}),\n ],\n hostDirectives: [\n TuiAnimated,\n {directive: WaResizeObserver, outputs: ['waResizeObserver']},\n ],\n host: {\n '(document:click.capture)': 'onClick($event.target)',\n '(document:keydown.esc)': 'onClick($event.currentTarget)',\n '(waResizeObserver)': 'el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")',\n },\n})\nexport class TuiNotificationMiddleComponent {\n protected readonly el = tuiInjectElement();\n protected readonly context =\n injectContext<TuiPopover<TuiNotificationMiddleOptions, void>>();\n\n protected onClick(target: HTMLElement): void {\n if (this.closable && !this.el.contains(target)) {\n this.context.$implicit.complete();\n }\n }\n\n private get closable(): boolean {\n return isSignal(this.context.closable)\n ? this.context.closable()\n : this.context.closable;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {\n TuiNotificationMiddleComponent,\n type TuiNotificationMiddleOptions,\n} from './notification-middle.component';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {\n closable: false,\n }),\n})\nexport class TuiNotificationMiddleService extends TuiPopoverService<TuiNotificationMiddleOptions> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiNotificationMiddleOptions} from './notification-middle.component';\nimport {TuiNotificationMiddleService} from './notification-middle.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiNotificationMiddle]',\n inputs: ['options: tuiNotificationMiddleOptions', 'open: tuiNotificationMiddle'],\n outputs: ['openChange: tuiNotificationMiddleChange'],\n providers: [tuiAsPopover(TuiNotificationMiddleService)],\n})\nexport class TuiNotificationMiddle extends TuiPopoverDirective<TuiNotificationMiddleOptions> {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAsCa,8BAA8B,CAAA;AAzB3C,IAAA,WAAA,GAAA;QA0BuB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;QACvB,IAAO,CAAA,OAAA,GACtB,aAAa,EAAkD;AAatE;AAXa,IAAA,OAAO,CAAC,MAAmB,EAAA;AACjC,QAAA,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC5C,YAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE;;;AAIzC,IAAA,IAAY,QAAQ,GAAA;AAChB,QAAA,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ;AACjC,cAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;AACvB,cAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;;+GAdtB,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,8BAA8B,EAd5B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,wBAAA,EAAA,wBAAA,EAAA,sBAAA,EAAA,+BAAA,EAAA,kBAAA,EAAA,8DAA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AAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAE9C,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oCAAoC;AAC9C,oBAAA,MAAM,EAAE,CAAC,uCAAuC,EAAE,6BAA6B,CAAC;oBAChF,OAAO,EAAE,CAAC,yCAAyC,CAAC;AACpD,oBAAA,SAAS,EAAE,CAAC,YAAY,CAAC,4BAA4B,CAAC,CAAC;AAC1D,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-notification-middle.mjs","sources":["../../../projects/kit/components/notification-middle/notification-middle.component.ts","../../../projects/kit/components/notification-middle/notification-middle.service.ts","../../../projects/kit/components/notification-middle/notification-middle.directive.ts","../../../projects/kit/components/notification-middle/taiga-ui-kit-components-notification-middle.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, isSignal, type Signal} from '@angular/core';\nimport {WaResizeObserver} from '@ng-web-apis/resize-observer';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiLoader, tuiLoaderOptionsProvider} from '@taiga-ui/core/components/loader';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nexport interface TuiNotificationMiddleOptions {\n closable: Signal<boolean> | boolean;\n}\n\n@Component({\n selector: 'tui-notification-middle',\n imports: [PolymorpheusOutlet, TuiLoader],\n template: `\n <tui-loader class=\"t-loader\" />\n <ng-container *polymorpheusOutlet=\"context.content as text\">\n {{ text }}\n </ng-container>\n `,\n styleUrl: './notification-middle.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiLoaderOptionsProvider({size: 'l'})],\n hostDirectives: [\n TuiAnimated,\n {directive: WaResizeObserver, outputs: ['waResizeObserver']},\n ],\n host: {\n class: 'tui-backdrop-hidden',\n '(document:click.capture)': 'onClick($event.target)',\n '(document:keydown.esc)': 'onClick($event.currentTarget)',\n '(waResizeObserver)': 'el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")',\n },\n})\nexport class TuiNotificationMiddleComponent {\n protected readonly el = tuiInjectElement();\n protected readonly context =\n injectContext<TuiPortalContext<TuiNotificationMiddleOptions>>();\n\n protected onClick(target: HTMLElement): void {\n if (this.closable && !this.el.contains(target)) {\n this.context.$implicit.complete();\n }\n }\n\n private get closable(): boolean {\n return isSignal(this.context.closable)\n ? this.context.closable()\n : this.context.closable;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {TuiModalService} from '@taiga-ui/core/portals/modal';\n\nimport {\n TuiNotificationMiddleComponent,\n type TuiNotificationMiddleOptions,\n} from './notification-middle.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNotificationMiddleService extends TuiModalService<TuiNotificationMiddleOptions> {\n protected readonly options = {closable: false};\n protected readonly content = TuiNotificationMiddleComponent;\n}\n","import {Directive, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\n\nimport {type TuiNotificationMiddleOptions} from './notification-middle.component';\nimport {TuiNotificationMiddleService} from './notification-middle.service';\n\n@Directive({\n selector: 'ng-template[tuiNotificationMiddle]',\n providers: [tuiAsPortal(TuiNotificationMiddleService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: [\n 'options: tuiNotificationMiddleOptions',\n 'open: tuiNotificationMiddle',\n ],\n outputs: ['openChange: tuiNotificationMiddleChange'],\n },\n ],\n})\nexport class TuiNotificationMiddle {\n public readonly tuiNotificationMiddleOptions = input<\n Partial<TuiNotificationMiddleOptions>\n >({});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;MAmCa,8BAA8B,CAAA;AAvB3C,IAAA,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BAA6B;AAChC,6BAAA;4BACD,OAAO,EAAE,CAAC,yCAAyC,CAAC;AACvD,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;ACnBD;;AAEG;;;;"}
@@ -2,9 +2,7 @@ import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { signal, inject, Input, ViewChildren, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
- import { FormsModule } from '@angular/forms';
6
5
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
7
- import { TuiRepeatTimes } from '@taiga-ui/cdk/directives/repeat-times';
8
6
  import { tuiWatch } from '@taiga-ui/cdk/observables';
9
7
  import { delay, map } from 'rxjs';
10
8
 
@@ -48,8 +46,8 @@ class TuiPager {
48
46
  }
49
47
  this.left.set(-1 * left);
50
48
  }
51
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPager, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiPager, isStandalone: true, selector: "tui-pager", inputs: { max: "max", count: "count", size: "size", valueContent: "valueContent", index: "index" }, host: { properties: { "attr.data-size": "size", "style.--t-gap.px": "gap", "style.max-width.px": "maxWidth()" } }, providers: [
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiPager, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
50
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiPager, isStandalone: true, selector: "tui-pager", inputs: { max: "max", count: "count", size: "size", valueContent: "valueContent", index: "index" }, host: { properties: { "attr.data-size": "size", "style.--t-gap.px": "gap", "style.max-width.px": "maxWidth()" } }, providers: [
53
51
  MutationObserverService,
54
52
  {
55
53
  provide: WA_MUTATION_OBSERVER_INIT,
@@ -60,11 +58,11 @@ class TuiPager {
60
58
  subtree: true,
61
59
  },
62
60
  },
63
- ], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{display:flex;align-items:center;overflow:hidden}:host[data-size=m]{--t-size: .5rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem;min-block-size:1.25rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{--t-size: .375rem;--t-small-dot: scale(.666);--t-super-small-dot: scale(.333);--t-icon-size: .75rem;min-block-size:1rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiRepeatTimes, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
61
+ ], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n @for (_ of '-'.repeat(count); track $index) {\n <div\n #item\n class=\"t-item\"\n [attr.data-index]=\"$index\"\n [class._active]=\"$index === index\"\n [class._last]=\"$index === count - 1\"\n [class._post-active]=\"$index === index + 1\"\n [class._pre-active]=\"$index === index - 1\"\n [class._pre-last]=\"$index === count - 2\"\n [class._visible]=\"$index >= start && $index <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: $index}\" />\n </div>\n }\n</div>\n", styles: [":host{display:flex;align-items:center;overflow:hidden}:host[data-size=m]{--t-size: .5rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem;min-block-size:1.25rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{--t-size: .375rem;--t-small-dot: scale(.666);--t-super-small-dot: scale(.333);--t-icon-size: .75rem;min-block-size:1rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64
62
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPager, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiPager, decorators: [{
66
64
  type: Component,
67
- args: [{ selector: 'tui-pager', imports: [FormsModule, NgTemplateOutlet, TuiRepeatTimes], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
65
+ args: [{ selector: 'tui-pager', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
68
66
  MutationObserverService,
69
67
  {
70
68
  provide: WA_MUTATION_OBSERVER_INIT,
@@ -79,7 +77,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
79
77
  '[attr.data-size]': 'size',
80
78
  '[style.--t-gap.px]': 'gap',
81
79
  '[style.max-width.px]': 'maxWidth()',
82
- }, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{display:flex;align-items:center;overflow:hidden}:host[data-size=m]{--t-size: .5rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem;min-block-size:1.25rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{--t-size: .375rem;--t-small-dot: scale(.666);--t-super-small-dot: scale(.333);--t-icon-size: .75rem;min-block-size:1rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"] }]
80
+ }, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n @for (_ of '-'.repeat(count); track $index) {\n <div\n #item\n class=\"t-item\"\n [attr.data-index]=\"$index\"\n [class._active]=\"$index === index\"\n [class._last]=\"$index === count - 1\"\n [class._post-active]=\"$index === index + 1\"\n [class._pre-active]=\"$index === index - 1\"\n [class._pre-last]=\"$index === count - 2\"\n [class._visible]=\"$index >= start && $index <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: $index}\" />\n </div>\n }\n</div>\n", styles: [":host{display:flex;align-items:center;overflow:hidden}:host[data-size=m]{--t-size: .5rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem;min-block-size:1.25rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{--t-size: .375rem;--t-small-dot: scale(.666);--t-super-small-dot: scale(.333);--t-icon-size: .75rem;min-block-size:1rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"] }]
83
81
  }], propDecorators: { items: [{
84
82
  type: ViewChildren,
85
83
  args: ['item']