@taiga-ui/kit 5.0.0-canary.cf66fed → 5.0.0-canary.d205016

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 (312) hide show
  1. package/components/accordion/accordion.component.d.ts +4 -1
  2. package/components/accordion/accordion.directive.d.ts +1 -0
  3. package/components/calendar-month/calendar-month.component.d.ts +11 -18
  4. package/components/calendar-range/calendar-range.component.d.ts +17 -22
  5. package/components/combo-box/combo-box.directive.d.ts +1 -0
  6. package/components/copy/button-copy.component.d.ts +17 -0
  7. package/components/copy/copy.component.d.ts +3 -1
  8. package/components/copy/copy.d.ts +2 -1
  9. package/components/copy/copy.directive.d.ts +5 -2
  10. package/components/copy/copy.options.d.ts +8 -4
  11. package/components/copy/index.d.ts +1 -0
  12. package/components/counter/counter.component.d.ts +17 -0
  13. package/components/counter/counter.options.d.ts +14 -0
  14. package/components/counter/index.d.ts +2 -0
  15. package/components/files/input-files/input-files.component.d.ts +4 -1
  16. package/components/filter/filter.component.d.ts +1 -1
  17. package/components/index.d.ts +3 -4
  18. package/components/input-chip/input-chip.component.d.ts +5 -0
  19. package/components/input-chip/input-chip.directive.d.ts +1 -1
  20. package/components/input-date/input-date.directive.d.ts +3 -2
  21. package/components/input-date/input-date.options.d.ts +2 -4
  22. package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
  23. package/components/input-date-time/input-date-time.component.d.ts +2 -2
  24. package/components/input-month/input-month.directive.d.ts +1 -1
  25. package/components/input-month/input-month.options.d.ts +1 -7
  26. package/components/input-month-range/input-month-range.directive.d.ts +1 -1
  27. package/components/input-month-range/input-month-range.options.d.ts +1 -3
  28. package/components/input-number/index.d.ts +1 -0
  29. package/components/input-number/input-number.directive.d.ts +1 -0
  30. package/components/input-number/number-mask.directive.d.ts +1 -1
  31. package/components/input-number/step/input-number-step.component.d.ts +3 -5
  32. package/components/input-number/step/input-number-step.service.d.ts +12 -0
  33. package/components/input-phone/input-phone.directive.d.ts +1 -1
  34. package/components/input-range/input-range.component.d.ts +1 -1
  35. package/components/input-slider/input-slider.d.ts +1 -1
  36. package/components/input-time/input-time.directive.d.ts +1 -1
  37. package/components/input-time/input-time.options.d.ts +1 -3
  38. package/components/input-year/input-year.directive.d.ts +1 -1
  39. package/components/line-clamp/line-clamp-box.component.d.ts +2 -0
  40. package/components/line-clamp/line-clamp.component.d.ts +5 -3
  41. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +1 -0
  42. package/components/multi-select/multi-select-native/multi-select-native.component.d.ts +1 -1
  43. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +2 -2
  44. package/components/radio-list/radio-list.component.d.ts +1 -5
  45. package/components/range/range.component.d.ts +2 -2
  46. package/components/select/native-select/native-select.component.d.ts +1 -1
  47. package/components/select/select-option/select-option.component.d.ts +1 -1
  48. package/components/shrink-wrap/index.d.ts +3 -0
  49. package/components/shrink-wrap/shrink-wrap.component.d.ts +5 -0
  50. package/components/shrink-wrap/shrink-wrap.d.ts +3 -0
  51. package/components/shrink-wrap/shrink-wrap.directive.d.ts +6 -0
  52. package/components/stepper/step.component.d.ts +1 -1
  53. package/components/switch/switch.component.d.ts +1 -1
  54. package/components/switch/switch.options.d.ts +1 -1
  55. package/components/tabs/tabs-with-more.component.d.ts +3 -3
  56. package/components/textarea/textarea.directive.d.ts +1 -1
  57. package/components/timeline/index.d.ts +3 -0
  58. package/components/timeline/timeline-item.component.d.ts +14 -0
  59. package/components/timeline/timeline.component.d.ts +16 -0
  60. package/components/timeline/timeline.d.ts +3 -0
  61. package/components/toast/toast.directive.d.ts +4 -1
  62. package/components/tree/components/tree/tree.component.d.ts +1 -3
  63. package/directives/password/password.options.d.ts +18 -5
  64. package/fesm2022/taiga-ui-kit-components-accordion.mjs +20 -10
  65. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +5 -5
  67. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-avatar.mjs +24 -23
  69. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  71. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-badge.mjs +8 -7
  73. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +7 -7
  75. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-block.mjs +8 -7
  77. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -5
  79. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  81. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +36 -48
  83. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +68 -100
  85. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-chip.mjs +9 -8
  87. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +9 -5
  89. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-comment.mjs +12 -8
  91. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-compass.mjs +8 -4
  93. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-confirm.mjs +7 -7
  95. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-copy.mjs +93 -28
  97. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-counter.mjs +66 -0
  99. package/fesm2022/taiga-ui-kit-components-counter.mjs.map +1 -0
  100. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +7 -7
  101. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-drawer.mjs +4 -4
  103. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-files.mjs +37 -30
  105. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -4
  107. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +3 -3
  109. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +21 -15
  111. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-input-color.mjs +8 -7
  113. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +11 -11
  115. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +6 -5
  117. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +10 -8
  119. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-input-date.mjs +35 -24
  121. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +5 -4
  123. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +10 -6
  125. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-input-month.mjs +17 -20
  127. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-input-number.mjs +83 -56
  129. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +5 -5
  131. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +6 -6
  133. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +4 -4
  135. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-input-range.mjs +4 -4
  137. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +9 -8
  139. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-input-time.mjs +15 -13
  141. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-input-year.mjs +11 -9
  143. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -14
  145. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-like.mjs +6 -5
  147. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +24 -13
  149. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-message.mjs +8 -7
  151. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +27 -20
  153. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +11 -11
  155. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-pager.mjs +3 -3
  157. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-pagination.mjs +4 -4
  159. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-pin.mjs +9 -7
  161. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-preview.mjs +37 -34
  163. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-progress.mjs +38 -49
  165. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-pulse.mjs +3 -3
  167. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-push.mjs +15 -14
  169. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +9 -7
  171. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-range.mjs +24 -23
  173. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -4
  175. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +3 -3
  177. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-segmented.mjs +10 -9
  179. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-select.mjs +21 -23
  181. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs +40 -0
  183. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs.map +1 -0
  184. package/fesm2022/taiga-ui-kit-components-status.mjs +9 -7
  185. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-stepper.mjs +8 -8
  187. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-switch.mjs +6 -5
  189. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-tabs.mjs +40 -35
  191. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-textarea.mjs +17 -16
  193. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-tiles.mjs +16 -14
  195. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-timeline.mjs +68 -0
  197. package/fesm2022/taiga-ui-kit-components-timeline.mjs.map +1 -0
  198. package/fesm2022/taiga-ui-kit-components-toast.mjs +29 -24
  199. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-tree.mjs +24 -24
  201. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components.mjs +3 -4
  203. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +3 -3
  205. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +12 -8
  207. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  209. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +8 -7
  211. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-directives-connected.mjs +12 -8
  213. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +3 -3
  215. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -7
  217. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  219. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -3
  221. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-directives-password.mjs +4 -10
  223. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -3
  225. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +9 -7
  227. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -7
  229. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +8 -8
  231. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -7
  233. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +3 -3
  235. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +3 -3
  237. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +3 -3
  239. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  241. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +3 -3
  243. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -4
  245. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +3 -3
  247. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  249. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  251. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  253. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  255. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  256. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-utils.mjs +1 -5
  258. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  259. package/package.json +64 -59
  260. package/pipes/index.d.ts +0 -1
  261. package/tokens/i18n.d.ts +0 -1
  262. package/utils/index.d.ts +0 -1
  263. package/components/carousel/carousel-autoscroll.directive.d.ts +0 -6
  264. package/components/carousel/carousel-buttons.directive.d.ts +0 -5
  265. package/components/carousel/carousel-scroll.directive.d.ts +0 -7
  266. package/components/carousel/carousel.component.d.ts +0 -34
  267. package/components/carousel/carousel.d.ts +0 -7
  268. package/components/carousel/carousel.directive.d.ts +0 -16
  269. package/components/carousel/index.d.ts +0 -6
  270. package/components/checkbox/checkbox.component.d.ts +0 -10
  271. package/components/checkbox/checkbox.options.d.ts +0 -10
  272. package/components/checkbox/index.d.ts +0 -2
  273. package/components/radio/index.d.ts +0 -4
  274. package/components/radio/radio.component.d.ts +0 -18
  275. package/components/radio/radio.d.ts +0 -3
  276. package/components/radio/radio.directive.d.ts +0 -8
  277. package/components/radio/radio.options.d.ts +0 -7
  278. package/components/slider/helpers/key-steps.d.ts +0 -27
  279. package/components/slider/helpers/slider-key-steps.directive.d.ts +0 -32
  280. package/components/slider/helpers/slider-readonly.directive.d.ts +0 -15
  281. package/components/slider/helpers/slider-thumb-label.component.d.ts +0 -13
  282. package/components/slider/index.d.ts +0 -6
  283. package/components/slider/slider.component.d.ts +0 -22
  284. package/components/slider/slider.d.ts +0 -5
  285. package/fesm2022/taiga-ui-kit-components-carousel.mjs +0 -211
  286. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +0 -1
  287. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +0 -36
  288. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +0 -1
  289. package/fesm2022/taiga-ui-kit-components-radio.mjs +0 -91
  290. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +0 -1
  291. package/fesm2022/taiga-ui-kit-components-slider.mjs +0 -337
  292. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +0 -1
  293. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +0 -60
  294. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +0 -1
  295. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +0 -21
  296. package/pipes/filter-by-input/index.d.ts +0 -1
  297. package/styles/components/avatar.less +0 -188
  298. package/styles/components/badge.less +0 -127
  299. package/styles/components/block.less +0 -118
  300. package/styles/components/checkbox.less +0 -84
  301. package/styles/components/chip.less +0 -139
  302. package/styles/components/comment.less +0 -64
  303. package/styles/components/compass.less +0 -49
  304. package/styles/components/like.less +0 -67
  305. package/styles/components/message.less +0 -33
  306. package/styles/components/pin.less +0 -164
  307. package/styles/components/progress-bar.less +0 -117
  308. package/styles/components/radio.less +0 -59
  309. package/styles/components/status.less +0 -40
  310. package/styles/components/switch.less +0 -103
  311. package/styles/components/toast.less +0 -44
  312. package/utils/is-flat.d.ts +0 -1
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { inject, contentChildren, ElementRef, Directive, input, model, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { WaResizeObserverService } from '@ng-web-apis/resize-observer';
5
+ import { TUI_VERSION } from '@taiga-ui/cdk/constants';
5
6
  import { tuiControlValue, tuiZonefree } from '@taiga-ui/cdk/observables';
6
7
  import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
7
8
  import { tuiInjectElement, tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';
@@ -39,10 +40,10 @@ class TuiSegmentedDirective {
39
40
  update(target) {
40
41
  this.component.update(Array.from(this.el.children).findIndex((tab) => tab.contains(target)));
41
42
  }
42
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSegmentedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
43
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.18", type: TuiSegmentedDirective, isStandalone: true, host: { listeners: { "click": "update($event.target)" } }, queries: [{ propertyName: "links", predicate: RouterLinkActive, isSignal: true }, { propertyName: "elements", predicate: RouterLinkActive, read: ElementRef, isSignal: true }, { propertyName: "controls", predicate: NgControl, descendants: true, isSignal: true }, { propertyName: "radios", predicate: RadioControlValueAccessor, descendants: true, isSignal: true }], ngImport: i0 }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSegmentedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.19", type: TuiSegmentedDirective, isStandalone: true, host: { listeners: { "click": "update($event.target)" } }, queries: [{ propertyName: "links", predicate: RouterLinkActive, isSignal: true }, { propertyName: "elements", predicate: RouterLinkActive, read: ElementRef, isSignal: true }, { propertyName: "controls", predicate: NgControl, descendants: true, isSignal: true }, { propertyName: "radios", predicate: RadioControlValueAccessor, descendants: true, isSignal: true }], ngImport: i0 }); }
44
45
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSegmentedDirective, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSegmentedDirective, decorators: [{
46
47
  type: Directive,
47
48
  args: [{ host: { '(click)': 'update($event.target)' } }]
48
49
  }] });
@@ -76,23 +77,23 @@ class TuiSegmented {
76
77
  }
77
78
  Array.from(this.el.children).forEach((e) => e.classList.remove('tui-segmented_active'));
78
79
  el.classList.add('tui-segmented_active');
79
- const { offsetWidth = 0, offsetLeft = 0, offsetTop = 0 } = el;
80
+ const { offsetWidth, offsetLeft, offsetTop } = el;
80
81
  this.el.style.setProperty('--t-top', tuiPx(offsetTop));
81
82
  this.el.style.setProperty('--t-left', tuiPx(offsetLeft));
82
83
  this.el.style.setProperty('--t-width', tuiPx(offsetWidth));
83
84
  }
84
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSegmented, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
85
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.18", type: TuiSegmented, isStandalone: true, selector: "tui-segmented", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, activeItemIndex: { classPropertyName: "activeItemIndex", publicName: "activeItemIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeItemIndex: "activeItemIndexChange" }, host: { properties: { "attr.data-size": "size()" } }, providers: [
85
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSegmented, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
86
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.19", type: TuiSegmented, isStandalone: true, selector: "tui-segmented", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, activeItemIndex: { classPropertyName: "activeItemIndex", publicName: "activeItemIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeItemIndex: "activeItemIndexChange" }, host: { attributes: { "data-tui-version": "5.0.0-canary.d205016" }, properties: { "attr.data-size": "size()" } }, providers: [
86
87
  WaResizeObserverService,
87
88
  tuiBadgeNotificationOptionsProvider({ size: 's' }),
88
- ], usesOnChanges: true, hostDirectives: [{ directive: TuiSegmentedDirective }], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["tui-segmented{position:relative;display:flex;flex-shrink:0;color:var(--tui-background-base);background:var(--tui-background-neutral-1);overflow:hidden;-webkit-mask-image:linear-gradient(#000,#000);mask-image:linear-gradient(#000,#000)}tui-segmented[data-size=s]{--t-padding: .5rem;--t-gap: .5rem;--t-margin: -.125rem;--t-height: var(--tui-height-s);font:var(--tui-font-body-s);border-radius:var(--tui-radius-m)}tui-segmented[data-size=s] tui-icon{font-size:1rem}tui-segmented[data-size=m]{--t-padding: .875rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-m);font:var(--tui-font-body-m);border-radius:var(--tui-radius-m)}tui-segmented[data-size=l]{--t-padding: 1.25rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-l);font:var(--tui-font-body-l);border-radius:var(--tui-radius-l)}tui-segmented[data-size=l]>*:before{block-size:1.25rem}tui-segmented>a,tui-segmented>button,tui-segmented>label,tui-segmented>label>input:not([tuiRadio]){transition-property:color,background,opacity,border-image;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;justify-content:center;block-size:var(--t-height);white-space:nowrap;gap:var(--t-gap);margin:0;padding:0 var(--t-padding);color:var(--tui-text-primary);overflow:hidden;cursor:pointer;font:inherit;border-radius:inherit;border:.125rem solid transparent;background-clip:padding-box;box-sizing:border-box;border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 0 0 100 .5;clip-path:polygon(-1rem calc(50% - .5rem),1px calc(50% - .5rem),1px 0,100% 0,100% 100%,1px 100%,1px calc(50% + .5rem),-1rem calc(50% + .5rem))}tui-segmented>a>*,tui-segmented>button>*,tui-segmented>label>*,tui-segmented>label>input:not([tuiRadio])>*{margin:0 var(--t-margin)}tui-segmented>a:focus-visible,tui-segmented>button:focus-visible,tui-segmented>label:focus-visible,tui-segmented>label>input:not([tuiRadio]):focus-visible{outline:.125rem solid var(--tui-border-focus);outline-offset:-.25rem}@media (hover: hover) and (pointer: fine){tui-segmented>a:not(.tui-segmented_active):not(:active):hover,tui-segmented>button:not(.tui-segmented_active):not(:active):hover,tui-segmented>label:not(.tui-segmented_active):not(:active):hover,tui-segmented>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover{background-color:var(--tui-background-neutral-1-hover)}tui-segmented>a:not(.tui-segmented_active):not(:active):hover,tui-segmented>button:not(.tui-segmented_active):not(:active):hover,tui-segmented>label:not(.tui-segmented_active):not(:active):hover,tui-segmented>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover,tui-segmented>a:not(.tui-segmented_active):not(:active):hover+*,tui-segmented>button:not(.tui-segmented_active):not(:active):hover+*,tui-segmented>label:not(.tui-segmented_active):not(:active):hover+*,tui-segmented>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}}tui-segmented>a:active,tui-segmented>button:active,tui-segmented>label:active,tui-segmented>label>input:not([tuiRadio]):active,tui-segmented>a:active+*,tui-segmented>button:active+*,tui-segmented>label:active+*,tui-segmented>label>input:not([tuiRadio]):active+*,tui-segmented>a.tui-segmented_active,tui-segmented>button.tui-segmented_active,tui-segmented>label.tui-segmented_active,tui-segmented>label>input:not([tuiRadio]).tui-segmented_active,tui-segmented>a.tui-segmented_active+*,tui-segmented>button.tui-segmented_active+*,tui-segmented>label.tui-segmented_active+*,tui-segmented>label>input:not([tuiRadio]).tui-segmented_active+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}tui-segmented>label>input:not([tuiRadio]){position:absolute;inset:-.125rem;background:transparent!important}tui-segmented:before{transition-property:inset,width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;inset:var(--t-top) auto auto var(--t-left);block-size:var(--t-height);inline-size:var(--t-width);border-radius:inherit;background:currentColor;background-clip:padding-box;border:.125rem solid transparent;box-sizing:border-box;filter:drop-shadow(0 .25rem 1.25rem rgba(0,0,0,.1))}[dir=rtl] tui-segmented:before{inset-inline:auto var(--t-left)}[tuiTheme=dark] tui-segmented,tui-segmented[tuiTheme=dark]{--tui-background-base: var(--tui-background-neutral-1-hover)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
89
+ ], usesOnChanges: true, hostDirectives: [{ directive: TuiSegmentedDirective }], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){position:relative;display:flex;flex-shrink:0;color:var(--tui-background-base);background:var(--tui-background-neutral-1);overflow:hidden;-webkit-mask-image:linear-gradient(#000,#000);mask-image:linear-gradient(#000,#000)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=s]{--t-padding: .5rem;--t-gap: .5rem;--t-margin: -.125rem;--t-height: var(--tui-height-s);font:var(--tui-typography-body-s);border-radius:var(--tui-radius-m)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=s] tui-icon{font-size:1rem}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=m]{--t-padding: .875rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-m);font:var(--tui-typography-body-m);border-radius:var(--tui-radius-m)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=l]{--t-padding: 1.25rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-l);font:var(--tui-typography-body-l);border-radius:var(--tui-radius-l)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=l]>*:before{block-size:1.25rem}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]){transition-property:color,background,opacity,border-image;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;justify-content:center;block-size:var(--t-height);white-space:nowrap;gap:var(--t-gap);margin:0;padding:0 var(--t-padding);color:var(--tui-text-primary);overflow:hidden;cursor:pointer;font:inherit;border-radius:inherit;border:.125rem solid transparent;background-clip:padding-box;box-sizing:border-box;border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 0 0 100 .5;clip-path:polygon(-1rem calc(50% - .5rem),1px calc(50% - .5rem),1px 0,100% 0,100% 100%,1px 100%,1px calc(50% + .5rem),-1rem calc(50% + .5rem))}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a>*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button>*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio])>*{margin:0 var(--t-margin)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:focus-visible,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:focus-visible,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:focus-visible,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):focus-visible{outline:.125rem solid var(--tui-border-focus);outline-offset:-.25rem}@media (hover: hover) and (pointer: fine){tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover{background-color:var(--tui-background-neutral-1-hover)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:not(.tui-segmented_active):not(:active):hover+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:not(.tui-segmented_active):not(:active):hover+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:not(.tui-segmented_active):not(:active):hover+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a.tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button.tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label.tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]).tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a.tui-segmented_active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button.tui-segmented_active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label.tui-segmented_active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]).tui-segmented_active+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]){position:absolute;inset:-.125rem;background:transparent!important}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{transition-property:inset,width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;inset:var(--t-top) auto auto var(--t-left);block-size:var(--t-height);inline-size:var(--t-width);border-radius:inherit;background:currentColor;background-clip:padding-box;border:.125rem solid transparent;box-sizing:border-box;filter:drop-shadow(0 .25rem 1.25rem rgba(0,0,0,.1))}[dir=rtl] tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{inset-inline:auto var(--t-left)}[tuiTheme=dark] tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]),tui-segmented[tuiTheme=dark]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){--tui-background-base: var(--tui-background-neutral-1-hover)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
89
90
  }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSegmented, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSegmented, decorators: [{
91
92
  type: Component,
92
93
  args: [{ selector: 'tui-segmented', template: '<ng-content />', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
93
94
  WaResizeObserverService,
94
95
  tuiBadgeNotificationOptionsProvider({ size: 's' }),
95
- ], hostDirectives: [TuiSegmentedDirective], host: { '[attr.data-size]': 'size()' }, styles: ["tui-segmented{position:relative;display:flex;flex-shrink:0;color:var(--tui-background-base);background:var(--tui-background-neutral-1);overflow:hidden;-webkit-mask-image:linear-gradient(#000,#000);mask-image:linear-gradient(#000,#000)}tui-segmented[data-size=s]{--t-padding: .5rem;--t-gap: .5rem;--t-margin: -.125rem;--t-height: var(--tui-height-s);font:var(--tui-font-body-s);border-radius:var(--tui-radius-m)}tui-segmented[data-size=s] tui-icon{font-size:1rem}tui-segmented[data-size=m]{--t-padding: .875rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-m);font:var(--tui-font-body-m);border-radius:var(--tui-radius-m)}tui-segmented[data-size=l]{--t-padding: 1.25rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-l);font:var(--tui-font-body-l);border-radius:var(--tui-radius-l)}tui-segmented[data-size=l]>*:before{block-size:1.25rem}tui-segmented>a,tui-segmented>button,tui-segmented>label,tui-segmented>label>input:not([tuiRadio]){transition-property:color,background,opacity,border-image;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;justify-content:center;block-size:var(--t-height);white-space:nowrap;gap:var(--t-gap);margin:0;padding:0 var(--t-padding);color:var(--tui-text-primary);overflow:hidden;cursor:pointer;font:inherit;border-radius:inherit;border:.125rem solid transparent;background-clip:padding-box;box-sizing:border-box;border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 0 0 100 .5;clip-path:polygon(-1rem calc(50% - .5rem),1px calc(50% - .5rem),1px 0,100% 0,100% 100%,1px 100%,1px calc(50% + .5rem),-1rem calc(50% + .5rem))}tui-segmented>a>*,tui-segmented>button>*,tui-segmented>label>*,tui-segmented>label>input:not([tuiRadio])>*{margin:0 var(--t-margin)}tui-segmented>a:focus-visible,tui-segmented>button:focus-visible,tui-segmented>label:focus-visible,tui-segmented>label>input:not([tuiRadio]):focus-visible{outline:.125rem solid var(--tui-border-focus);outline-offset:-.25rem}@media (hover: hover) and (pointer: fine){tui-segmented>a:not(.tui-segmented_active):not(:active):hover,tui-segmented>button:not(.tui-segmented_active):not(:active):hover,tui-segmented>label:not(.tui-segmented_active):not(:active):hover,tui-segmented>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover{background-color:var(--tui-background-neutral-1-hover)}tui-segmented>a:not(.tui-segmented_active):not(:active):hover,tui-segmented>button:not(.tui-segmented_active):not(:active):hover,tui-segmented>label:not(.tui-segmented_active):not(:active):hover,tui-segmented>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover,tui-segmented>a:not(.tui-segmented_active):not(:active):hover+*,tui-segmented>button:not(.tui-segmented_active):not(:active):hover+*,tui-segmented>label:not(.tui-segmented_active):not(:active):hover+*,tui-segmented>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}}tui-segmented>a:active,tui-segmented>button:active,tui-segmented>label:active,tui-segmented>label>input:not([tuiRadio]):active,tui-segmented>a:active+*,tui-segmented>button:active+*,tui-segmented>label:active+*,tui-segmented>label>input:not([tuiRadio]):active+*,tui-segmented>a.tui-segmented_active,tui-segmented>button.tui-segmented_active,tui-segmented>label.tui-segmented_active,tui-segmented>label>input:not([tuiRadio]).tui-segmented_active,tui-segmented>a.tui-segmented_active+*,tui-segmented>button.tui-segmented_active+*,tui-segmented>label.tui-segmented_active+*,tui-segmented>label>input:not([tuiRadio]).tui-segmented_active+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}tui-segmented>label>input:not([tuiRadio]){position:absolute;inset:-.125rem;background:transparent!important}tui-segmented:before{transition-property:inset,width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;inset:var(--t-top) auto auto var(--t-left);block-size:var(--t-height);inline-size:var(--t-width);border-radius:inherit;background:currentColor;background-clip:padding-box;border:.125rem solid transparent;box-sizing:border-box;filter:drop-shadow(0 .25rem 1.25rem rgba(0,0,0,.1))}[dir=rtl] tui-segmented:before{inset-inline:auto var(--t-left)}[tuiTheme=dark] tui-segmented,tui-segmented[tuiTheme=dark]{--tui-background-base: var(--tui-background-neutral-1-hover)}\n"] }]
96
+ ], hostDirectives: [TuiSegmentedDirective], host: { 'data-tui-version': TUI_VERSION, '[attr.data-size]': 'size()' }, styles: ["tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){position:relative;display:flex;flex-shrink:0;color:var(--tui-background-base);background:var(--tui-background-neutral-1);overflow:hidden;-webkit-mask-image:linear-gradient(#000,#000);mask-image:linear-gradient(#000,#000)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=s]{--t-padding: .5rem;--t-gap: .5rem;--t-margin: -.125rem;--t-height: var(--tui-height-s);font:var(--tui-typography-body-s);border-radius:var(--tui-radius-m)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=s] tui-icon{font-size:1rem}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=m]{--t-padding: .875rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-m);font:var(--tui-typography-body-m);border-radius:var(--tui-radius-m)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=l]{--t-padding: 1.25rem;--t-gap: 1rem;--t-margin: -.375rem;--t-height: var(--tui-height-l);font:var(--tui-typography-body-l);border-radius:var(--tui-radius-l)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=l]>*:before{block-size:1.25rem}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]){transition-property:color,background,opacity,border-image;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;justify-content:center;block-size:var(--t-height);white-space:nowrap;gap:var(--t-gap);margin:0;padding:0 var(--t-padding);color:var(--tui-text-primary);overflow:hidden;cursor:pointer;font:inherit;border-radius:inherit;border:.125rem solid transparent;background-clip:padding-box;box-sizing:border-box;border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 0 0 100 .5;clip-path:polygon(-1rem calc(50% - .5rem),1px calc(50% - .5rem),1px 0,100% 0,100% 100%,1px 100%,1px calc(50% + .5rem),-1rem calc(50% + .5rem))}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a>*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button>*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio])>*{margin:0 var(--t-margin)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:focus-visible,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:focus-visible,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:focus-visible,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):focus-visible{outline:.125rem solid var(--tui-border-focus);outline-offset:-.25rem}@media (hover: hover) and (pointer: fine){tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover{background-color:var(--tui-background-neutral-1-hover)}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:not(.tui-segmented_active):not(:active):hover+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:not(.tui-segmented_active):not(:active):hover+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:not(.tui-segmented_active):not(:active):hover+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):not(.tui-segmented_active):not(:active):hover+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a:active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button:active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label:active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]):active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a.tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button.tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label.tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]).tui-segmented_active,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>a.tui-segmented_active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>button.tui-segmented_active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label.tui-segmented_active+*,tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]).tui-segmented_active+*{border-image:linear-gradient(var(--tui-border-normal),transparent) 1 / 0 0 25% .5 / 100 0 0 .5}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>label>input:not([tuiRadio]){position:absolute;inset:-.125rem;background:transparent!important}tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{transition-property:inset,width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;inset:var(--t-top) auto auto var(--t-left);block-size:var(--t-height);inline-size:var(--t-width);border-radius:inherit;background:currentColor;background-clip:padding-box;border:.125rem solid transparent;box-sizing:border-box;filter:drop-shadow(0 .25rem 1.25rem rgba(0,0,0,.1))}[dir=rtl] tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{inset-inline:auto var(--t-left)}[tuiTheme=dark] tui-segmented:where(*[data-tui-version=\"5.0.0-canary.d205016\"]),tui-segmented[tuiTheme=dark]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){--tui-background-base: var(--tui-background-neutral-1-hover)}\n"] }]
96
97
  }] });
97
98
 
98
99
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-segmented.mjs","sources":["../../../projects/kit/components/segmented/segmented.directive.ts","../../../projects/kit/components/segmented/segmented.component.ts","../../../projects/kit/components/segmented/taiga-ui-kit-components-segmented.ts"],"sourcesContent":["import {\n type AfterContentChecked,\n type AfterContentInit,\n contentChildren,\n Directive,\n ElementRef,\n inject,\n} from '@angular/core';\nimport {toObservable} from '@angular/core/rxjs-interop';\nimport {NgControl, RadioControlValueAccessor} from '@angular/forms';\nimport {RouterLinkActive} from '@angular/router';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {map, switchMap} from 'rxjs';\n\nimport {TuiSegmented} from './segmented.component';\n\n@Directive({host: {'(click)': 'update($event.target)'}})\nexport class TuiSegmentedDirective implements AfterContentChecked, AfterContentInit {\n private readonly component = inject(TuiSegmented);\n private readonly el = tuiInjectElement();\n private readonly links = contentChildren(RouterLinkActive);\n private readonly elements = contentChildren(RouterLinkActive, {read: ElementRef});\n private readonly controls = contentChildren(NgControl, {descendants: true});\n private readonly controls$ = toObservable(this.controls);\n private readonly radios = contentChildren(RadioControlValueAccessor, {\n descendants: true,\n });\n\n public ngAfterContentInit(): void {\n this.controls$\n .pipe(\n switchMap(([control]) => tuiControlValue(control)),\n map((value) => this.radios().findIndex((c) => c.value === value)),\n )\n .subscribe((index) => {\n this.component.update(index);\n });\n }\n\n public ngAfterContentChecked(): void {\n const index = this.links().findIndex(({isActive}) => isActive);\n\n if (index !== -1) {\n this.update(this.elements()[index]?.nativeElement || null);\n }\n }\n\n protected update(target: Element | null): void {\n this.component.update(\n Array.from(this.el.children).findIndex((tab) => tab.contains(target)),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n model,\n type OnChanges,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WaResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement, tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {tuiBadgeNotificationOptionsProvider} from '@taiga-ui/kit/components/badge-notification';\n\nimport {TuiSegmentedDirective} from './segmented.directive';\n\nexport const [TUI_SEGMENTED_OPTIONS, tuiSegmentedOptionsProvider] = tuiCreateOptions({\n size: 's' as TuiSizeL | TuiSizeS,\n});\n\n@Component({\n selector: 'tui-segmented',\n template: '<ng-content />',\n styleUrl: './segmented.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n WaResizeObserverService,\n tuiBadgeNotificationOptionsProvider({size: 's'}),\n ],\n hostDirectives: [TuiSegmentedDirective],\n host: {'[attr.data-size]': 'size()'},\n})\nexport class TuiSegmented implements OnChanges {\n private readonly el = tuiInjectElement();\n\n protected readonly sub = inject(WaResizeObserverService, {self: true})\n .pipe(tuiZonefree(), takeUntilDestroyed())\n .subscribe(() => this.refresh());\n\n public readonly size = input(inject(TUI_SEGMENTED_OPTIONS).size);\n public readonly activeItemIndex = model(0);\n\n public ngOnChanges(): void {\n this.refresh();\n }\n\n public update(activeItemIndex: number): void {\n if (activeItemIndex === this.activeItemIndex() || activeItemIndex < 0) {\n return;\n }\n\n this.activeItemIndex.set(activeItemIndex);\n this.refresh();\n }\n\n private refresh(): void {\n const el = this.el.children.item(this.activeItemIndex());\n\n if (!tuiIsHTMLElement(el)) {\n return;\n }\n\n Array.from(this.el.children).forEach((e) =>\n e.classList.remove('tui-segmented_active'),\n );\n\n el.classList.add('tui-segmented_active');\n\n const {offsetWidth = 0, offsetLeft = 0, offsetTop = 0} = el;\n\n this.el.style.setProperty('--t-top', tuiPx(offsetTop));\n this.el.style.setProperty('--t-left', tuiPx(offsetLeft));\n this.el.style.setProperty('--t-width', tuiPx(offsetWidth));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiSegmentedDirective"],"mappings":";;;;;;;;;;;;;MAkBa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;QAChC,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,eAAe,CAAC,gBAAgB,CAAC;QACzC,IAAQ,CAAA,QAAA,GAAG,eAAe,CAAC,gBAAgB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;QAChE,IAAQ,CAAA,QAAA,GAAG,eAAe,CAAC,SAAS,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;AAC1D,QAAA,IAAA,CAAA,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;AACvC,QAAA,IAAA,CAAA,MAAM,GAAG,eAAe,CAAC,yBAAyB,EAAE;AACjE,YAAA,WAAW,EAAE,IAAI;AACpB,SAAA,CAAC;AA0BL;IAxBU,kBAAkB,GAAA;AACrB,QAAA,IAAI,CAAC;AACA,aAAA,IAAI,CACD,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,eAAe,CAAC,OAAO,CAAC,CAAC,EAClD,GAAG,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAEpE,aAAA,SAAS,CAAC,CAAC,KAAK,KAAI;AACjB,YAAA,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC;AAChC,SAAC,CAAC;;IAGH,qBAAqB,GAAA;AACxB,QAAA,MAAM,KAAK,GAAG,I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EAAA,SAAA,EAAA;YACP,uBAAuB;AACvB,YAAA,mCAAmC,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;AACnD,SAAA,EAAA,aAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,qBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAPS,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ulJAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAWjB,YAAY,EAAA,UAAA,EAAA,CAAA;kBAbxB,SAAS;+BACI,eAAe,EAAA,QAAA,EACf,gBAAgB,EAAA,aAAA,EAEX,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;wBACP,uBAAuB;AACvB,wBAAA,mCAAmC,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;qBACnD,EACe,cAAA,EAAA,CAAC,qBAAqB,CAAC,EAAA,IAAA,EACjC,EAAC,kBAAkB,EAAE,QAAQ,EAAC,EAAA,MAAA,EAAA,CAAA,ulJAAA,CAAA,EAAA;;;ACnCxC;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-segmented.mjs","sources":["../../../projects/kit/components/segmented/segmented.directive.ts","../../../projects/kit/components/segmented/segmented.component.ts","../../../projects/kit/components/segmented/taiga-ui-kit-components-segmented.ts"],"sourcesContent":["import {\n type AfterContentChecked,\n type AfterContentInit,\n contentChildren,\n Directive,\n ElementRef,\n inject,\n} from '@angular/core';\nimport {toObservable} from '@angular/core/rxjs-interop';\nimport {NgControl, RadioControlValueAccessor} from '@angular/forms';\nimport {RouterLinkActive} from '@angular/router';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {map, switchMap} from 'rxjs';\n\nimport {TuiSegmented} from './segmented.component';\n\n@Directive({host: {'(click)': 'update($event.target)'}})\nexport class TuiSegmentedDirective implements AfterContentChecked, AfterContentInit {\n private readonly component = inject(TuiSegmented);\n private readonly el = tuiInjectElement();\n private readonly links = contentChildren(RouterLinkActive);\n private readonly elements = contentChildren(RouterLinkActive, {read: ElementRef});\n private readonly controls = contentChildren(NgControl, {descendants: true});\n private readonly controls$ = toObservable(this.controls);\n private readonly radios = contentChildren(RadioControlValueAccessor, {\n descendants: true,\n });\n\n public ngAfterContentInit(): void {\n this.controls$\n .pipe(\n switchMap(([control]) => tuiControlValue(control)),\n map((value) => this.radios().findIndex((c) => c.value === value)),\n )\n .subscribe((index) => {\n this.component.update(index);\n });\n }\n\n public ngAfterContentChecked(): void {\n const index = this.links().findIndex(({isActive}) => isActive);\n\n if (index !== -1) {\n this.update(this.elements()[index]?.nativeElement || null);\n }\n }\n\n protected update(target: Element | null): void {\n this.component.update(\n Array.from(this.el.children).findIndex((tab) => tab.contains(target)),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n model,\n type OnChanges,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WaResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement, tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {tuiBadgeNotificationOptionsProvider} from '@taiga-ui/kit/components/badge-notification';\n\nimport {TuiSegmentedDirective} from './segmented.directive';\n\nexport const [TUI_SEGMENTED_OPTIONS, tuiSegmentedOptionsProvider] = tuiCreateOptions({\n size: 's' as TuiSizeL | TuiSizeS,\n});\n\n@Component({\n selector: 'tui-segmented',\n template: '<ng-content />',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './segmented.style.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n WaResizeObserverService,\n tuiBadgeNotificationOptionsProvider({size: 's'}),\n ],\n hostDirectives: [TuiSegmentedDirective],\n host: {'data-tui-version': TUI_VERSION, '[attr.data-size]': 'size()'},\n})\nexport class TuiSegmented implements OnChanges {\n private readonly el = tuiInjectElement();\n\n protected readonly sub = inject(WaResizeObserverService, {self: true})\n .pipe(tuiZonefree(), takeUntilDestroyed())\n .subscribe(() => this.refresh());\n\n public readonly size = input(inject(TUI_SEGMENTED_OPTIONS).size);\n public readonly activeItemIndex = model(0);\n\n public ngOnChanges(): void {\n this.refresh();\n }\n\n public update(activeItemIndex: number): void {\n if (activeItemIndex === this.activeItemIndex() || activeItemIndex < 0) {\n return;\n }\n\n this.activeItemIndex.set(activeItemIndex);\n this.refresh();\n }\n\n private refresh(): void {\n const el = this.el.children.item(this.activeItemIndex());\n\n if (!tuiIsHTMLElement(el)) {\n return;\n }\n\n Array.from(this.el.children).forEach((e) =>\n e.classList.remove('tui-segmented_active'),\n );\n\n el.classList.add('tui-segmented_active');\n\n const {offsetWidth, offsetLeft, offsetTop} = el;\n\n this.el.style.setProperty('--t-top', tuiPx(offsetTop));\n this.el.style.setProperty('--t-left', tuiPx(offsetLeft));\n this.el.style.setProperty('--t-width', tuiPx(offsetWidth));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiSegmentedDirective"],"mappings":";;;;;;;;;;;;;;MAkBa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;QAChC,IAAA,CAAA,EAA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A,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qsOAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAejB,YAAY,EAAA,UAAA,EAAA,CAAA;kBAjBxB,SAAS;+BACI,eAAe,EAAA,QAAA,EACf,gBAAgB,EAAA,aAAA,EAMX,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;wBACP,uBAAuB;AACvB,wBAAA,mCAAmC,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;AACnD,qBAAA,EAAA,cAAA,EACe,CAAC,qBAAqB,CAAC,EAAA,IAAA,EACjC,EAAC,kBAAkB,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAC,EAAA,MAAA,EAAA,CAAA,qsOAAA,CAAA,EAAA;;;ACxCzE;;AAEG;;;;"}
@@ -2,20 +2,20 @@ import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { inject, viewChildren, computed, effect, input, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
4
4
  import { TuiControl, tuiAsControl } from '@taiga-ui/cdk/classes';
5
- import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
5
+ import { tuiIsFlat, tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
6
6
  import * as i1 from '@taiga-ui/core/components/input';
7
7
  import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
8
8
  import * as i2 from '@taiga-ui/core/components/textfield';
9
9
  import { tuiAsTextfieldAccessor, TuiSelectLike, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
10
10
  import { TUI_ITEMS_HANDLERS } from '@taiga-ui/core/directives/items-handlers';
11
- import { tuiIsFlat, tuiInjectValue } from '@taiga-ui/kit/utils';
12
11
  import { TuiLabel } from '@taiga-ui/core/components/label';
13
12
  import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
14
13
  import { TuiDataListComponent, TuiOptionWithValue, tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
15
14
  import { tuiDirectiveBinding } from '@taiga-ui/cdk/utils/di';
15
+ import { TuiCheckbox, tuiCheckboxOptionsProvider } from '@taiga-ui/core/components/checkbox';
16
16
  import * as i1$1 from '@taiga-ui/core/components/scrollbar';
17
17
  import { TuiScrollIntoView } from '@taiga-ui/core/components/scrollbar';
18
- import { TuiCheckbox, tuiCheckboxOptionsProvider } from '@taiga-ui/kit/components/checkbox';
18
+ import { tuiInjectValue } from '@taiga-ui/kit/utils';
19
19
 
20
20
  class TuiNativeSelect extends TuiControl {
21
21
  constructor() {
@@ -53,13 +53,12 @@ class TuiNativeSelect extends TuiControl {
53
53
  const placeholderOffset = this.stringified() ? 0 : 1;
54
54
  this.onChange(items[index - placeholderOffset] ?? null);
55
55
  }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiNativeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
57
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: TuiNativeSelect, isStandalone: true, selector: "select[tuiSelect]", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "selectOption($event.target.options.selectedIndex)" }, properties: { "attr.aria-invalid": "invalid()", "disabled": "!interactive()" } }, providers: [tuiAsTextfieldAccessor(TuiNativeSelect), tuiAsControl(TuiNativeSelect)], viewQueries: [{ propertyName: "options", predicate: ["option"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }], ngImport: i0, template: "@if (!stringified()) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder() }}\n </option>\n}\n\n@let elements = items();\n\n@if (elements && !isFlat(elements)) {\n @for (group of labels(); track group) {\n <optgroup [label]=\"labels()[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements[$index]}\" />\n </optgroup>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements}\" />\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n #option\n [disabled]=\"itemsHandlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"itemsHandlers.stringify()(option)\"\n >\n {{ itemsHandlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiNativeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: TuiNativeSelect, isStandalone: true, selector: "select[tuiSelect]", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "selectOption($event.target.options.selectedIndex)" }, properties: { "disabled": "!interactive()" } }, providers: [tuiAsTextfieldAccessor(TuiNativeSelect), tuiAsControl(TuiNativeSelect)], viewQueries: [{ propertyName: "options", predicate: ["option"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }], ngImport: i0, template: "@if (!stringified()) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder() }}\n </option>\n}\n\n@let elements = items();\n\n@if (elements && !isFlat(elements)) {\n @for (group of labels(); track group) {\n <optgroup [label]=\"labels()[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements[$index]}\" />\n </optgroup>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements}\" />\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n #option\n [disabled]=\"itemsHandlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"itemsHandlers.stringify()(option)\"\n >\n {{ itemsHandlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
58
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiNativeSelect, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiNativeSelect, decorators: [{
60
60
  type: Component,
61
61
  args: [{ selector: 'select[tuiSelect]', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsTextfieldAccessor(TuiNativeSelect), tuiAsControl(TuiNativeSelect)], hostDirectives: [TuiWithInput], host: {
62
- '[attr.aria-invalid]': 'invalid()',
63
62
  '[disabled]': '!interactive()',
64
63
  '(change)': 'selectOption($event.target.options.selectedIndex)',
65
64
  }, template: "@if (!stringified()) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder() }}\n </option>\n}\n\n@let elements = items();\n\n@if (elements && !isFlat(elements)) {\n @for (group of labels(); track group) {\n <optgroup [label]=\"labels()[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements[$index]}\" />\n </optgroup>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements}\" />\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n #option\n [disabled]=\"itemsHandlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"itemsHandlers.stringify()(option)\"\n >\n {{ itemsHandlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n" }]
@@ -70,38 +69,38 @@ class TuiSelectOption {
70
69
  this.handlers = inject(TUI_ITEMS_HANDLERS);
71
70
  this.value = tuiInjectValue();
72
71
  this.datalist = inject(TuiDataListComponent);
73
- this.option = inject(TuiOptionWithValue, {
74
- optional: true,
75
- });
76
- this.selected = computed((controlValue = this.value(), optionValue = this.option?.value()) => tuiIsPresent(optionValue) &&
72
+ this.option = inject(TuiOptionWithValue);
73
+ this.selected = computed((controlValue = this.value(), optionValue = this.option.value()) => tuiIsPresent(optionValue) &&
77
74
  tuiIsPresent(controlValue) &&
78
75
  this.handlers.identityMatcher()(controlValue, optionValue));
79
76
  this.scrolled = tuiDirectiveBinding(TuiScrollIntoView, 'tuiScrollIntoView', this.selected);
80
77
  }
81
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
82
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: TuiSelectOption, isStandalone: true, selector: "ng-component", host: { attributes: { "tuiSelectOption": "" }, properties: { "class._value": "option", "class._selected": "selected()" } }, providers: [tuiCheckboxOptionsProvider({ appearance: () => 'action' })], hostDirectives: [{ directive: i1$1.TuiScrollIntoView }], ngImport: i0, template: `
78
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
79
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: TuiSelectOption, isStandalone: true, selector: "ng-component", host: { attributes: { "tuiSelectOption": "" }, properties: { "attr.aria-selected": "selected()" } }, providers: [tuiCheckboxOptionsProvider({ appearance: () => 'action' })], hostDirectives: [{ directive: i1$1.TuiScrollIntoView }], ngImport: i0, template: `
83
80
  @if (selected()) {
84
81
  <input
82
+ aria-hidden="true"
83
+ checked
85
84
  tuiCheckbox
86
85
  type="checkbox"
87
86
  class="t-check"
88
- [checked]="selected()"
89
87
  [size]="datalist.size() === 'l' ? 'm' : 's'"
90
88
  />
91
89
  } @else {
92
90
  <span class="t-dummy"></span>
93
91
  }
94
- `, isInline: true, styles: [":host._value>.t-check,:host._value>.t-dummy{order:100;margin-inline-start:auto;pointer-events:none}:host._value._selected~::ng-deep [tuiSelectOption]>.t-check:before{opacity:0}:host:not(._value)>.t-check,:host-context(tui-dropdown-mobile)>.t-check{display:none}.t-check:before{font-size:var(--t-size)}.t-dummy{inline-size:1rem}:host[data-size=l] .t-dummy{inline-size:1.5rem}\n"], dependencies: [{ kind: "component", type: TuiCheckbox, selector: "input[type=\"checkbox\"][tuiCheckbox]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
92
+ `, isInline: true, styles: [":host>.t-check,:host>.t-dummy{order:100;margin-inline-start:auto;pointer-events:none}:host[data-size=m]>.t-check,:host[data-size=m]>.t-dummy{margin-inline-end:.25rem}:host-context(tui-dropdown-mobile)>.t-check{display:none}.t-check:before{font-size:var(--t-size)}.t-dummy{inline-size:1rem}:host[data-size=l] .t-dummy{inline-size:1.5rem}\n"], dependencies: [{ kind: "component", type: TuiCheckbox, selector: "input[type=\"checkbox\"][tuiCheckbox]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
95
93
  }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSelectOption, decorators: [{
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSelectOption, decorators: [{
97
95
  type: Component,
98
96
  args: [{ imports: [TuiCheckbox], template: `
99
97
  @if (selected()) {
100
98
  <input
99
+ aria-hidden="true"
100
+ checked
101
101
  tuiCheckbox
102
102
  type="checkbox"
103
103
  class="t-check"
104
- [checked]="selected()"
105
104
  [size]="datalist.size() === 'l' ? 'm' : 's'"
106
105
  />
107
106
  } @else {
@@ -109,9 +108,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
109
108
  }
110
109
  `, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiCheckboxOptionsProvider({ appearance: () => 'action' })], hostDirectives: [TuiScrollIntoView], host: {
111
110
  tuiSelectOption: '',
112
- '[class._value]': 'option',
113
- '[class._selected]': 'selected()',
114
- }, styles: [":host._value>.t-check,:host._value>.t-dummy{order:100;margin-inline-start:auto;pointer-events:none}:host._value._selected~::ng-deep [tuiSelectOption]>.t-check:before{opacity:0}:host:not(._value)>.t-check,:host-context(tui-dropdown-mobile)>.t-check{display:none}.t-check:before{font-size:var(--t-size)}.t-dummy{inline-size:1rem}:host[data-size=l] .t-dummy{inline-size:1.5rem}\n"] }]
111
+ '[attr.aria-selected]': 'selected()',
112
+ }, styles: [":host>.t-check,:host>.t-dummy{order:100;margin-inline-start:auto;pointer-events:none}:host[data-size=m]>.t-check,:host[data-size=m]>.t-dummy{margin-inline-end:.25rem}:host-context(tui-dropdown-mobile)>.t-check{display:none}.t-check:before{font-size:var(--t-size)}.t-dummy{inline-size:1rem}:host[data-size=l] .t-dummy{inline-size:1.5rem}\n"] }]
115
113
  }] });
116
114
 
117
115
  class TuiSelectDirective extends TuiControl {
@@ -133,14 +131,14 @@ class TuiSelectDirective extends TuiControl {
133
131
  this.open.set(true);
134
132
  }
135
133
  }
136
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
137
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TuiSelectDirective, isStandalone: true, selector: "input[tuiSelect]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && setValue(null)" }, properties: { "disabled": "disabled()" } }, providers: [
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
135
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.19", type: TuiSelectDirective, isStandalone: true, selector: "input[tuiSelect]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && setValue(null)" }, properties: { "disabled": "disabled()" } }, providers: [
138
136
  tuiAsOptionContent(TuiSelectOption),
139
137
  tuiAsTextfieldAccessor(TuiSelectDirective),
140
138
  tuiAsControl(TuiSelectDirective),
141
139
  ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }], ngImport: i0 }); }
142
140
  }
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiSelectDirective, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiSelectDirective, decorators: [{
144
142
  type: Directive,
145
143
  args: [{
146
144
  selector: 'input[tuiSelect]',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-select.mjs","sources":["../../../projects/kit/components/select/native-select/native-select.component.ts","../../../projects/kit/components/select/native-select/native-select.template.html","../../../projects/kit/components/select/select-option/select-option.component.ts","../../../projects/kit/components/select/select.directive.ts","../../../projects/kit/components/select/select.ts","../../../projects/kit/components/select/taiga-ui-kit-components-select.ts"],"sourcesContent":["import {NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n viewChildren,\n} from '@angular/core';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\n@Component({\n selector: 'select[tuiSelect]',\n imports: [NgTemplateOutlet],\n templateUrl: './native-select.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsTextfieldAccessor(TuiNativeSelect), tuiAsControl(TuiNativeSelect)],\n hostDirectives: [TuiWithInput],\n host: {\n '[attr.aria-invalid]': 'invalid()',\n '[disabled]': '!interactive()',\n '(change)': 'selectOption($event.target.options.selectedIndex)',\n },\n})\nexport class TuiNativeSelect<T>\n extends TuiControl<T | null>\n implements TuiTextfieldAccessor<T>\n{\n private readonly input = inject(TuiInputDirective);\n private readonly options = viewChildren<HTMLOptionElement>('option');\n\n protected readonly isFlat = tuiIsFlat;\n protected readonly itemsHandlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly stringified = computed((value = this.value()) =>\n tuiIsPresent(value) ? this.itemsHandlers.stringify()(value) : '',\n );\n\n protected readonly isSelected = computed(\n (value = this.value()) =>\n (x: T) =>\n tuiIsPresent(value) && this.itemsHandlers.identityMatcher()(x, value),\n );\n\n protected readonly valueEffect = effect(() => {\n /**\n * Wait until all `<option>`-s are inside DOM.\n * Otherwise\n * ```\n * document.querySelector('select').value = 'even upcoming valid value';\n * // same as\n * document.querySelector('select').value = '';\n * ```\n * (it breaks `tuiValue` utility logic)\n */\n if (this.options().length) {\n this.input.value.set(this.stringified());\n }\n });\n\n public readonly items = input<ReadonlyArray<readonly T[]> | readonly T[] | null>([]);\n public readonly labels = input<readonly string[]>([]);\n public readonly placeholder = input('');\n\n public setValue(value: T | null): void {\n this.onChange(value);\n }\n\n protected selectOption(index: number): void {\n const items = (this.items()?.flat() ?? []) as T[];\n const placeholderOffset = this.stringified() ? 0 : 1;\n\n this.onChange(items[index - placeholderOffset] ?? null);\n }\n}\n","@if (!stringified()) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder() }}\n </option>\n}\n\n@let elements = items();\n\n@if (elements && !isFlat(elements)) {\n @for (group of labels(); track group) {\n <optgroup [label]=\"labels()[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements[$index]}\" />\n </optgroup>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements}\" />\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n #option\n [disabled]=\"itemsHandlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"itemsHandlers.stringify()(option)\"\n >\n {{ itemsHandlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n","import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TuiDataListComponent,\n TuiOptionWithValue,\n} from '@taiga-ui/core/components/data-list';\nimport {TuiScrollIntoView} from '@taiga-ui/core/components/scrollbar';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiCheckbox, tuiCheckboxOptionsProvider} from '@taiga-ui/kit/components/checkbox';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n imports: [TuiCheckbox],\n template: `\n @if (selected()) {\n <input\n tuiCheckbox\n type=\"checkbox\"\n class=\"t-check\"\n [checked]=\"selected()\"\n [size]=\"datalist.size() === 'l' ? 'm' : 's'\"\n />\n } @else {\n <span class=\"t-dummy\"></span>\n }\n `,\n styleUrl: './select-option.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiCheckboxOptionsProvider({appearance: () => 'action'})],\n hostDirectives: [TuiScrollIntoView],\n host: {\n tuiSelectOption: '',\n '[class._value]': 'option',\n '[class._selected]': 'selected()',\n },\n})\nexport class TuiSelectOption<T> {\n private readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n private readonly value = tuiInjectValue<T>();\n\n protected readonly datalist = inject(TuiDataListComponent);\n protected readonly option = inject<TuiOptionWithValue<T>>(TuiOptionWithValue, {\n optional: true,\n });\n\n protected readonly selected = computed(\n (controlValue = this.value(), optionValue = this.option?.value()) =>\n tuiIsPresent(optionValue) &&\n tuiIsPresent(controlValue) &&\n this.handlers.identityMatcher()(controlValue, optionValue),\n );\n\n protected readonly scrolled = tuiDirectiveBinding(\n TuiScrollIntoView,\n 'tuiScrollIntoView',\n this.selected,\n );\n}\n","import {Directive, effect, inject} from '@angular/core';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiAsTextfieldAccessor,\n TuiSelectLike,\n type TuiTextfieldAccessor,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {tuiDropdownEnabled, TuiDropdownOpen} from '@taiga-ui/core/portals/dropdown';\n\nimport {TuiSelectOption} from './select-option/select-option.component';\n\n@Directive({\n selector: 'input[tuiSelect]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsTextfieldAccessor(TuiSelectDirective),\n tuiAsControl(TuiSelectDirective),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && setValue(null)',\n },\n})\nexport class TuiSelectDirective<T>\n extends TuiControl<T | null>\n implements TuiTextfieldAccessor<T>\n{\n private readonly input = inject(TuiInputDirective);\n private readonly open = inject(TuiDropdownOpen).open;\n private readonly itemsHandlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const string = tuiIsPresent(value) ? this.itemsHandlers.stringify()(value) : '';\n\n this.input.value.set(string);\n });\n\n public setValue(value: T | null): void {\n this.onChange(value);\n\n if (!value) {\n this.open.set(true);\n }\n }\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\n\nimport {TuiNativeSelect} from './native-select/native-select.component';\nimport {TuiSelectDirective} from './select.directive';\n\nexport const TuiSelect = [\n TuiSelectDirective,\n TuiNativeSelect,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;AAoCM,MAAO,eACT,SAAQ,UAAoB,CAAA;AAdhC,IAAA,WAAA,GAAA;;AAiBqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CAAA,OAAO,GAAG,YAAY,CAAoB,QAAQ,CAAC;QAEjD,IAAM,CAAA,MAAA,GAAG,SAAS;AAClB,QAA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BAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AChBtB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-select.mjs","sources":["../../../projects/kit/components/select/native-select/native-select.component.ts","../../../projects/kit/components/select/native-select/native-select.template.html","../../../projects/kit/components/select/select-option/select-option.component.ts","../../../projects/kit/components/select/select.directive.ts","../../../projects/kit/components/select/select.ts","../../../projects/kit/components/select/taiga-ui-kit-components-select.ts"],"sourcesContent":["import {NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n viewChildren,\n} from '@angular/core';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiIsFlat, tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\n\n@Component({\n selector: 'select[tuiSelect]',\n imports: [NgTemplateOutlet],\n templateUrl: './native-select.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsTextfieldAccessor(TuiNativeSelect), tuiAsControl(TuiNativeSelect)],\n hostDirectives: [TuiWithInput],\n host: {\n '[disabled]': '!interactive()',\n '(change)': 'selectOption($event.target.options.selectedIndex)',\n },\n})\nexport class TuiNativeSelect<T>\n extends TuiControl<T | null>\n implements TuiTextfieldAccessor<T>\n{\n private readonly input = inject(TuiInputDirective);\n private readonly options = viewChildren<HTMLOptionElement>('option');\n\n protected readonly isFlat = tuiIsFlat;\n protected readonly itemsHandlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly stringified = computed((value = this.value()) =>\n tuiIsPresent(value) ? this.itemsHandlers.stringify()(value) : '',\n );\n\n protected readonly isSelected = computed(\n (value = this.value()) =>\n (x: T) =>\n tuiIsPresent(value) && this.itemsHandlers.identityMatcher()(x, value),\n );\n\n protected readonly valueEffect = effect(() => {\n /**\n * Wait until all `<option>`-s are inside DOM.\n * Otherwise\n * ```\n * document.querySelector('select').value = 'even upcoming valid value';\n * // same as\n * document.querySelector('select').value = '';\n * ```\n * (it breaks `tuiValue` utility logic)\n */\n if (this.options().length) {\n this.input.value.set(this.stringified());\n }\n });\n\n public readonly items = input<ReadonlyArray<readonly T[]> | readonly T[] | null>([]);\n public readonly labels = input<readonly string[]>([]);\n public readonly placeholder = input('');\n\n public setValue(value: T | null): void {\n this.onChange(value);\n }\n\n protected selectOption(index: number): void {\n const items = (this.items()?.flat() ?? []) as T[];\n const placeholderOffset = this.stringified() ? 0 : 1;\n\n this.onChange(items[index - placeholderOffset] ?? null);\n }\n}\n","@if (!stringified()) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder() }}\n </option>\n}\n\n@let elements = items();\n\n@if (elements && !isFlat(elements)) {\n @for (group of labels(); track group) {\n <optgroup [label]=\"labels()[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements[$index]}\" />\n </optgroup>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: elements}\" />\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n #option\n [disabled]=\"itemsHandlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"itemsHandlers.stringify()(option)\"\n >\n {{ itemsHandlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n","import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TuiCheckbox,\n tuiCheckboxOptionsProvider,\n} from '@taiga-ui/core/components/checkbox';\nimport {\n TuiDataListComponent,\n TuiOptionWithValue,\n} from '@taiga-ui/core/components/data-list';\nimport {TuiScrollIntoView} from '@taiga-ui/core/components/scrollbar';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n imports: [TuiCheckbox],\n template: `\n @if (selected()) {\n <input\n aria-hidden=\"true\"\n checked\n tuiCheckbox\n type=\"checkbox\"\n class=\"t-check\"\n [size]=\"datalist.size() === 'l' ? 'm' : 's'\"\n />\n } @else {\n <span class=\"t-dummy\"></span>\n }\n `,\n styleUrl: './select-option.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiCheckboxOptionsProvider({appearance: () => 'action'})],\n hostDirectives: [TuiScrollIntoView],\n host: {\n tuiSelectOption: '',\n '[attr.aria-selected]': 'selected()',\n },\n})\nexport class TuiSelectOption<T> {\n private readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n private readonly value = tuiInjectValue<T>();\n\n protected readonly datalist = inject(TuiDataListComponent);\n protected readonly option = inject<TuiOptionWithValue<T>>(TuiOptionWithValue);\n protected readonly selected = computed(\n (controlValue = this.value(), optionValue = this.option.value()) =>\n tuiIsPresent(optionValue) &&\n tuiIsPresent(controlValue) &&\n this.handlers.identityMatcher()(controlValue, optionValue),\n );\n\n protected readonly scrolled = tuiDirectiveBinding(\n TuiScrollIntoView,\n 'tuiScrollIntoView',\n this.selected,\n );\n}\n","import {Directive, effect, inject} from '@angular/core';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiAsTextfieldAccessor,\n TuiSelectLike,\n type TuiTextfieldAccessor,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {tuiDropdownEnabled, TuiDropdownOpen} from '@taiga-ui/core/portals/dropdown';\n\nimport {TuiSelectOption} from './select-option/select-option.component';\n\n@Directive({\n selector: 'input[tuiSelect]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsTextfieldAccessor(TuiSelectDirective),\n tuiAsControl(TuiSelectDirective),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && setValue(null)',\n },\n})\nexport class TuiSelectDirective<T>\n extends TuiControl<T | null>\n implements TuiTextfieldAccessor<T>\n{\n private readonly input = inject(TuiInputDirective);\n private readonly open = inject(TuiDropdownOpen).open;\n private readonly itemsHandlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const string = tuiIsPresent(value) ? this.itemsHandlers.stringify()(value) : '';\n\n this.input.value.set(string);\n });\n\n public setValue(value: T | null): void {\n this.onChange(value);\n\n if (!value) {\n this.open.set(true);\n }\n }\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\n\nimport {TuiNativeSelect} from './native-select/native-select.component';\nimport {TuiSelectDirective} from './select.directive';\n\nexport const TuiSelect = [\n TuiSelectDirective,\n TuiNativeSelect,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;AAkCM,MAAO,eACT,SAAQ,UAAoB,CAAA;AAbhC,IAAA,WAAA,GAAA;;AAgBqB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AM,SAAS,GAAG;IACrB,kBAAkB;IAClB,eAAe;IACf,QAAQ;IACR,qBAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AChBtB;;AAEG;;;;"}
@@ -0,0 +1,40 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, input, Directive } from '@angular/core';
3
+ import { TUI_VERSION } from '@taiga-ui/cdk/constants';
4
+
5
+ class TuiShrinkWrapComponent {
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiShrinkWrapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: TuiShrinkWrapComponent, isStandalone: true, selector: "tui-shrink-wrap", host: { attributes: { "data-tui-version": "5.0.0-canary.d205016" } }, ngImport: i0, template: '<span><ng-content/></span>', isInline: true, styles: ["@property --t-shrink-wrap-host{syntax: \"<number>\"; inherits: true; initial-value: 0;}@property --t-shrink-wrap-item{syntax: \"<number>\"; inherits: true; initial-value: 0;}@keyframes tuiShrinkWrapHost{to{--t-shrink-wrap-host: 1}}@keyframes tuiShrinkWrapItem{to{--t-shrink-wrap-item: 1}}[tuiShrinkWrap]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){timeline-scope:--t-shrink-wrap-host,--t-shrink-wrap-item;animation:tuiShrinkWrapHost,tuiShrinkWrapItem;animation-timing-function:linear;animation-timeline:--t-shrink-wrap-host,--t-shrink-wrap-item;animation-range:entry 100% exit 100%;--t-shrink-wrap: calc(-1px / (1 - var(--t-shrink-wrap-host)) * var(--t-shrink-wrap-item))}tui-shrink-wrap:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){display:block;overflow:hidden;text-wrap:balance;margin-inline-end:var(--t-shrink-wrap)}tui-shrink-wrap:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>*{view-timeline:--t-shrink-wrap-item inline}tui-shrink-wrap:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{content:\"\";padding-inline-start:1px;margin-inline-end:-1px;view-timeline:--t-shrink-wrap-host inline}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
+ }
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiShrinkWrapComponent, decorators: [{
10
+ type: Component,
11
+ args: [{ selector: 'tui-shrink-wrap', template: '<span><ng-content/></span>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { 'data-tui-version': TUI_VERSION }, styles: ["@property --t-shrink-wrap-host{syntax: \"<number>\"; inherits: true; initial-value: 0;}@property --t-shrink-wrap-item{syntax: \"<number>\"; inherits: true; initial-value: 0;}@keyframes tuiShrinkWrapHost{to{--t-shrink-wrap-host: 1}}@keyframes tuiShrinkWrapItem{to{--t-shrink-wrap-item: 1}}[tuiShrinkWrap]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){timeline-scope:--t-shrink-wrap-host,--t-shrink-wrap-item;animation:tuiShrinkWrapHost,tuiShrinkWrapItem;animation-timing-function:linear;animation-timeline:--t-shrink-wrap-host,--t-shrink-wrap-item;animation-range:entry 100% exit 100%;--t-shrink-wrap: calc(-1px / (1 - var(--t-shrink-wrap-host)) * var(--t-shrink-wrap-item))}tui-shrink-wrap:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){display:block;overflow:hidden;text-wrap:balance;margin-inline-end:var(--t-shrink-wrap)}tui-shrink-wrap:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>*{view-timeline:--t-shrink-wrap-item inline}tui-shrink-wrap:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{content:\"\";padding-inline-start:1px;margin-inline-end:-1px;view-timeline:--t-shrink-wrap-host inline}\n"] }]
12
+ }] });
13
+
14
+ class TuiShrinkWrapDirective {
15
+ constructor() {
16
+ this.tuiShrinkWrap = input('');
17
+ }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiShrinkWrapDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.19", type: TuiShrinkWrapDirective, isStandalone: true, selector: "[tuiShrinkWrap]:not([tuiToast])", inputs: { tuiShrinkWrap: { classPropertyName: "tuiShrinkWrap", publicName: "tuiShrinkWrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiShrinkWrap": "" }, properties: { "style.max-inline-size": "`calc(${tuiShrinkWrap() || \"100%\"} + var(--t-shrink-wrap, 0px))`" } }, ngImport: i0 }); }
20
+ }
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiShrinkWrapDirective, decorators: [{
22
+ type: Directive,
23
+ args: [{
24
+ // TODO: https://github.com/angular/angular/issues/57846
25
+ selector: '[tuiShrinkWrap]:not([tuiToast])',
26
+ host: {
27
+ tuiShrinkWrap: '',
28
+ '[style.max-inline-size]': '`calc(${tuiShrinkWrap() || "100%"} + var(--t-shrink-wrap, 0px))`',
29
+ },
30
+ }]
31
+ }] });
32
+
33
+ const TuiShrinkWrap = [TuiShrinkWrapDirective, TuiShrinkWrapComponent];
34
+
35
+ /**
36
+ * Generated bundle index. Do not edit.
37
+ */
38
+
39
+ export { TuiShrinkWrap, TuiShrinkWrapComponent, TuiShrinkWrapDirective };
40
+ //# sourceMappingURL=taiga-ui-kit-components-shrink-wrap.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-components-shrink-wrap.mjs","sources":["../../../projects/kit/components/shrink-wrap/shrink-wrap.component.ts","../../../projects/kit/components/shrink-wrap/shrink-wrap.directive.ts","../../../projects/kit/components/shrink-wrap/shrink-wrap.ts","../../../projects/kit/components/shrink-wrap/taiga-ui-kit-components-shrink-wrap.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\n\n@Component({\n selector: 'tui-shrink-wrap',\n template: '<span><ng-content/></span>',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './shrink-wrap.style.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {'data-tui-version': TUI_VERSION},\n})\nexport class TuiShrinkWrapComponent {}\n","import {Directive, input} from '@angular/core';\n\n@Directive({\n // TODO: https://github.com/angular/angular/issues/57846\n selector: '[tuiShrinkWrap]:not([tuiToast])',\n host: {\n tuiShrinkWrap: '',\n '[style.max-inline-size]':\n '`calc(${tuiShrinkWrap() || \"100%\"} + var(--t-shrink-wrap, 0px))`',\n },\n})\nexport class TuiShrinkWrapDirective {\n public readonly tuiShrinkWrap = input('');\n}\n","import {TuiShrinkWrapComponent} from './shrink-wrap.component';\nimport {TuiShrinkWrapDirective} from './shrink-wrap.directive';\n\nexport const TuiShrinkWrap = [TuiShrinkWrapDirective, TuiShrinkWrapComponent] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAea,sBAAsB,CAAA;+GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,iJAVrB,4BAA4B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ymCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CA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AAC,sBAAsB,EAAE,sBAAsB;;ACH5E;;AAEG;;;;"}
@@ -1,29 +1,31 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { ChangeDetectionStrategy, ViewEncapsulation, Component, input, Directive } from '@angular/core';
3
+ import { TUI_VERSION } from '@taiga-ui/cdk/constants';
3
4
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
5
 
5
6
  class Styles {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-status" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiStatus]{display:inline-flex;align-items:center;gap:.5rem}[tuiStatus]:before{content:\"\";display:var(--t-status, none);inline-size:.5rem;block-size:.5rem;border-radius:100%;background:var(--t-status)}[tuiStatus][data-size=s],[tuiStatus][data-size=m],[tuiStatus][data-size=l]{gap:.25rem}[tuiStatus][data-size=xl]{gap:.375rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.19", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-status-5.0.0-canary.d205016"], ngImport: i0, template: '', isInline: true, styles: ["[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){display:inline-flex;align-items:center;gap:.5rem}[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{content:\"\";display:var(--t-status, none);inline-size:.5rem;block-size:.5rem;border-radius:100%;background:var(--t-status)}[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=s],[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=m],[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=l]{gap:.25rem}[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=xl]{gap:.375rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
9
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: Styles, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: Styles, decorators: [{
10
11
  type: Component,
11
- args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-status' }, styles: ["[tuiStatus]{display:inline-flex;align-items:center;gap:.5rem}[tuiStatus]:before{content:\"\";display:var(--t-status, none);inline-size:.5rem;block-size:.5rem;border-radius:100%;background:var(--t-status)}[tuiStatus][data-size=s],[tuiStatus][data-size=m],[tuiStatus][data-size=l]{gap:.25rem}[tuiStatus][data-size=xl]{gap:.375rem}\n"] }]
12
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-status-${TUI_VERSION}`, styles: ["[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){display:inline-flex;align-items:center;gap:.5rem}[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"]):before{content:\"\";display:var(--t-status, none);inline-size:.5rem;block-size:.5rem;border-radius:100%;background:var(--t-status)}[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=s],[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=m],[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=l]{gap:.25rem}[tuiStatus]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])[data-size=xl]{gap:.375rem}\n"] }]
12
13
  }] });
13
14
  class TuiStatus {
14
15
  constructor() {
15
16
  this.nothing = tuiWithStyles(Styles);
16
17
  this.tuiStatus = input('');
17
18
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiStatus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.18", type: TuiStatus, isStandalone: true, selector: "[tuiStatus]", inputs: { tuiStatus: { classPropertyName: "tuiStatus", publicName: "tuiStatus", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiStatus": "" }, properties: { "style.--t-status": "tuiStatus() || null" } }, ngImport: i0 }); }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiStatus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.19", type: TuiStatus, isStandalone: true, selector: "[tuiStatus]", inputs: { tuiStatus: { classPropertyName: "tuiStatus", publicName: "tuiStatus", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiStatus": "", "data-tui-version": "5.0.0-canary.d205016" }, properties: { "style.--t-status": "tuiStatus() || null" } }, ngImport: i0 }); }
20
21
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiStatus, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiStatus, decorators: [{
22
23
  type: Directive,
23
24
  args: [{
24
25
  selector: '[tuiStatus]',
25
26
  host: {
26
27
  tuiStatus: '',
28
+ 'data-tui-version': TUI_VERSION,
27
29
  '[style.--t-status]': 'tuiStatus() || null',
28
30
  },
29
31
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-status.mjs","sources":["../../../projects/kit/components/status/status.directive.ts","../../../projects/kit/components/status/taiga-ui-kit-components-status.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/status.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-status'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiStatus]',\n host: {\n tuiStatus: '',\n '[style.--t-status]': 'tuiStatus() || null',\n },\n})\nexport class TuiStatus {\n protected readonly nothing = tuiWithStyles(Styles);\n\n public readonly tuiStatus = input('');\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,gHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,4UAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,KAAK,EAAE,YAAY,EAAC,EAAA,MAAA,EAAA,CAAA,4UAAA,CAAA,EAAA;;MAWlB,SAAS,CAAA;AAPtB,IAAA,WAAA,GAAA;AAQuB,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC;AAElC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC;AACxC;+GAJY,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,EAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBAPrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,EAAE;AACb,wBAAA,oBAAoB,EAAE,qBAAqB;AAC9C,qBAAA;AACJ,iBAAA;;;ACxBD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-status.mjs","sources":["../../../projects/kit/components/status/status.directive.ts","../../../projects/kit/components/status/taiga-ui-kit-components-status.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n template: '',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import '@taiga-ui/styles/components/status.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n exportAs: `tui-status-${TUI_VERSION}`,\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiStatus]',\n host: {\n tuiStatus: '',\n 'data-tui-version': TUI_VERSION,\n '[style.--t-status]': 'tuiStatus() || null',\n },\n})\nexport class TuiStatus {\n protected readonly nothing = tuiWithStyles(Styles);\n\n public readonly tuiStatus = input('');\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAUA,MAWM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,uHAVE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ooBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAUV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAXX,SAAS;+BACI,EAAE,EAAA,aAAA,EAMG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC,CAAA,WAAA,EAAc,WAAW,CAAA,CAAE,EAAA,MAAA,EAAA,CAAA,ooBAAA,CAAA,EAAA;;MAY5B,SAAS,CAAA;AARtB,IAAA,WAAA,GAAA;AASuB,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC;AAElC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC;AACxC,IAAA;+GAJY,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,EAAA,EAAA,kBAAA,EAAA,sBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBARrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,EAAE;AACb,wBAAA,kBAAkB,EAAE,WAAW;AAC/B,wBAAA,oBAAoB,EAAE,qBAAqB;AAC9C,qBAAA;AACJ,iBAAA;;;AC9BD;;AAEG;;;;"}
@@ -74,12 +74,12 @@ class TuiStepperComponent {
74
74
  const left = stepOffsetLeft - offsetLeft - clientWidth / 2 + offsetWidth / 2;
75
75
  this.el.scrollTo?.({ left: Math.max(0, left), top: Math.max(0, top) });
76
76
  }
77
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
78
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.18", type: TuiStepperComponent, isStandalone: true, selector: "tui-stepper", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, activeItemIndex: { classPropertyName: "activeItemIndex", publicName: "activeItemIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeItemIndex: "activeItemIndexChange" }, host: { listeners: { "keydown.arrowRight": "onHorizontal($event, 1)", "keydown.arrowLeft": "onHorizontal($event, -1)", "keydown.arrowDown": "onVertical($event, 1)", "keydown.arrowUp": "onVertical($event, -1)" }, properties: { "attr.data-orientation": "orientation()" } }, providers: [WaResizeObserverService], queries: [{ propertyName: "steps", predicate: i0.forwardRef(() => TuiStep), read: ElementRef, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
78
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.19", type: TuiStepperComponent, isStandalone: true, selector: "tui-stepper", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, activeItemIndex: { classPropertyName: "activeItemIndex", publicName: "activeItemIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeItemIndex: "activeItemIndexChange" }, host: { listeners: { "keydown.arrowRight": "onHorizontal($event, 1)", "keydown.arrowLeft": "onHorizontal($event, -1)", "keydown.arrowDown": "onVertical($event, 1)", "keydown.arrowUp": "onVertical($event, -1)" }, properties: { "attr.data-orientation": "orientation()" } }, providers: [WaResizeObserverService], queries: [{ propertyName: "steps", predicate: i0.forwardRef(() => TuiStep), read: ElementRef, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `
79
79
  <ng-content />
80
- `, isInline: true, styles: [":host{scrollbar-width:none;-ms-overflow-style:none;display:flex;scroll-behavior:var(--tui-scroll-behavior);overflow:auto;counter-reset:steps;font:var(--tui-font-body-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
80
+ `, isInline: true, styles: [":host{scrollbar-width:none;-ms-overflow-style:none;display:flex;scroll-behavior:var(--tui-scroll-behavior);overflow:auto;counter-reset:steps;font:var(--tui-typography-body-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
81
81
  }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiStepperComponent, decorators: [{
82
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiStepperComponent, decorators: [{
83
83
  type: Component,
84
84
  args: [{ selector: 'tui-stepper', template: `
85
85
  <ng-content />
@@ -89,7 +89,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
89
89
  '(keydown.arrowLeft)': 'onHorizontal($event, -1)',
90
90
  '(keydown.arrowDown)': 'onVertical($event, 1)',
91
91
  '(keydown.arrowUp)': 'onVertical($event, -1)',
92
- }, styles: [":host{scrollbar-width:none;-ms-overflow-style:none;display:flex;scroll-behavior:var(--tui-scroll-behavior);overflow:auto;counter-reset:steps;font:var(--tui-font-body-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"] }]
92
+ }, styles: [":host{scrollbar-width:none;-ms-overflow-style:none;display:flex;scroll-behavior:var(--tui-scroll-behavior);overflow:auto;counter-reset:steps;font:var(--tui-typography-body-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"] }]
93
93
  }] });
94
94
 
95
95
  class TuiStep {
@@ -123,10 +123,10 @@ class TuiStep {
123
123
  activate() {
124
124
  this.stepper.activate(this.index);
125
125
  }
126
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
127
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.18", type: TuiStep, isStandalone: true, selector: "button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]", inputs: { stepState: { classPropertyName: "stepState", publicName: "stepState", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "activate()" }, properties: { "tabIndex": "isActive() ? 0 : -1", "class._active": "isActive()", "class._vertical": "stepper.orientation() === \"vertical\"" } }, hostDirectives: [{ directive: i1.TuiCell }, { directive: i2.TuiWithAppearance }], ngImport: i0, template: "<div\n [appearance]=\"avatarAppearance()\"\n [tuiAvatar]=\"avatarContent()\"\n></div>\n<ng-content />\n", styles: [":host{min-inline-size:fit-content}:host:hover{background:unset!important}:host._active._active:not(:disabled){cursor:unset}:host:not(._vertical):first-of-type{padding-inline-start:0}:host:not(._vertical):last-of-type{padding-inline-end:0}:host._vertical{padding-inline:0;margin-block-end:.5rem}[tuiAvatar][data-size]:before{transition:none}[tuiAvatar][data-size]._initials:before{font-weight:400}\n"], dependencies: [{ kind: "directive", type: TuiAvatar, selector: "[tuiAvatar]", inputs: ["size", "round", "badge"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
126
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
127
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.19", type: TuiStep, isStandalone: true, selector: "button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]", inputs: { stepState: { classPropertyName: "stepState", publicName: "stepState", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "activate()" }, properties: { "tabIndex": "isActive() ? 0 : -1", "class._active": "isActive()", "class._vertical": "stepper.orientation() === \"vertical\"" } }, hostDirectives: [{ directive: i1.TuiCell }, { directive: i2.TuiWithAppearance }], ngImport: i0, template: "<div\n [appearance]=\"avatarAppearance()\"\n [tuiAvatar]=\"avatarContent()\"\n></div>\n<ng-content />\n", styles: [":host{min-inline-size:fit-content}:host:hover{background:unset!important}:host._active._active:not(:disabled){cursor:unset}:host:not(._vertical):first-of-type{padding-inline-start:0}:host:not(._vertical):last-of-type{padding-inline-end:0}:host._vertical{padding-inline:0;margin-block-end:.5rem}[tuiAvatar][data-size]:before{transition:none}[tuiAvatar][data-size]._initials:before{font-weight:400}\n"], dependencies: [{ kind: "directive", type: TuiAvatar, selector: "[tuiAvatar]", inputs: ["size", "round", "badge"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
128
128
  }
129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiStep, decorators: [{
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiStep, decorators: [{
130
130
  type: Component,
131
131
  args: [{ selector: 'button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]', imports: [TuiAvatar], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiCell, TuiWithAppearance], host: {
132
132
  type: 'button',