@taiga-ui/kit 4.52.0-canary.a4e325d → 4.52.0-canary.bf9131e

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 (352) hide show
  1. package/components/accordion/accordion.component.d.ts +13 -0
  2. package/components/accordion/accordion.d.ts +4 -4
  3. package/components/accordion/accordion.directive.d.ts +11 -10
  4. package/components/accordion/index.d.ts +1 -3
  5. package/components/action-bar/action-bar.component.d.ts +5 -7
  6. package/components/action-bar/index.d.ts +0 -2
  7. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  8. package/components/avatar/avatar.directive.d.ts +15 -0
  9. package/components/avatar/avatar.options.d.ts +1 -4
  10. package/components/avatar/index.d.ts +1 -1
  11. package/components/badge/badge.directive.d.ts +2 -2
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +1 -1
  14. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  15. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/checkbox/checkbox.component.d.ts +7 -18
  18. package/components/checkbox/checkbox.options.d.ts +5 -9
  19. package/components/chip/chip.directive.d.ts +2 -4
  20. package/components/comment/comment.directive.d.ts +2 -2
  21. package/components/confirm/confirm.component.d.ts +2 -1
  22. package/components/confirm/confirm.service.d.ts +2 -1
  23. package/{directives → components}/copy/copy.component.d.ts +1 -1
  24. package/{directives → components}/copy/copy.directive.d.ts +2 -2
  25. package/{directives → components}/copy/copy.options.d.ts +2 -2
  26. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -0
  27. package/components/files/file/file.options.d.ts +1 -1
  28. package/components/files/files/files.component.d.ts +2 -2
  29. package/components/floating-container/floating-container.directive.d.ts +2 -2
  30. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  31. package/components/fullscreen/index.d.ts +1 -0
  32. package/components/index.d.ts +3 -2
  33. package/components/input-chip/input-chip.options.d.ts +1 -1
  34. package/components/input-color/input-color.component.d.ts +2 -2
  35. package/components/input-color/input-color.options.d.ts +1 -1
  36. package/components/input-date/input-date.options.d.ts +1 -1
  37. package/components/input-number/input-number.options.d.ts +1 -1
  38. package/components/input-number/quantum.directive.d.ts +1 -1
  39. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  40. package/components/input-phone/input-phone.options.d.ts +1 -1
  41. package/components/input-phone-international/input-phone-international.component.d.ts +24 -30
  42. package/components/input-pin/input-pin.component.d.ts +1 -1
  43. package/components/input-range/input-range.component.d.ts +9 -12
  44. package/components/input-slider/input-slider.directive.d.ts +2 -4
  45. package/components/input-time/input-time.directive.d.ts +6 -8
  46. package/components/input-time/input-time.options.d.ts +1 -1
  47. package/components/like/like.component.d.ts +4 -11
  48. package/components/like/like.options.d.ts +3 -4
  49. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  50. package/components/line-clamp/line-clamp.component.d.ts +12 -18
  51. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +3 -3
  52. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  53. package/components/pager/pager.component.d.ts +1 -1
  54. package/components/pagination/pagination.component.d.ts +1 -1
  55. package/components/pin/pin.directive.d.ts +2 -2
  56. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  57. package/components/preview/preview.component.d.ts +1 -1
  58. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  59. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  60. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  61. package/components/push/push-alert.component.d.ts +4 -3
  62. package/components/push/push.component.d.ts +2 -2
  63. package/components/push/push.directive.d.ts +4 -6
  64. package/components/push/push.options.d.ts +4 -8
  65. package/components/push/push.service.d.ts +6 -2
  66. package/components/radio/radio.component.d.ts +7 -8
  67. package/components/radio/radio.directive.d.ts +2 -2
  68. package/components/radio/radio.options.d.ts +2 -5
  69. package/components/range/range-change.directive.d.ts +1 -2
  70. package/components/range/range.component.d.ts +16 -24
  71. package/components/rating/rating.component.d.ts +5 -5
  72. package/components/rating/rating.options.d.ts +5 -3
  73. package/components/segmented/segmented.component.d.ts +1 -3
  74. package/components/slider/helpers/key-steps.d.ts +1 -2
  75. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  76. package/components/slides/slides.directive.d.ts +4 -4
  77. package/components/status/status.directive.d.ts +2 -2
  78. package/components/switch/switch.component.d.ts +7 -19
  79. package/components/switch/switch.options.d.ts +4 -8
  80. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  81. package/components/textarea/textarea-limit.directive.d.ts +4 -5
  82. package/components/textarea/textarea.options.d.ts +1 -1
  83. package/components/toast/index.d.ts +5 -0
  84. package/components/toast/toast.component.d.ts +18 -0
  85. package/components/toast/toast.d.ts +3 -0
  86. package/components/toast/toast.directive.d.ts +7 -0
  87. package/components/toast/toast.options.d.ts +9 -0
  88. package/components/toast/toast.service.d.ts +17 -0
  89. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -1
  90. package/directives/button-select/button-select.directive.d.ts +1 -2
  91. package/directives/chevron/chevron.directive.d.ts +2 -3
  92. package/directives/fade/fade.directive.d.ts +1 -0
  93. package/directives/highlight/highlight.directive.d.ts +1 -3
  94. package/directives/index.d.ts +0 -2
  95. package/directives/password/password.options.d.ts +1 -1
  96. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  97. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  98. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  99. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  100. package/directives/tooltip/tooltip.options.d.ts +1 -4
  101. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  102. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  104. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-kit-components-avatar.mjs +81 -100
  106. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +3 -3
  108. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-kit-components-badge.mjs +15 -21
  110. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -6
  112. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-kit-components-block.mjs +17 -24
  114. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +7 -10
  116. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +6 -6
  118. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -8
  120. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -8
  122. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -19
  124. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +19 -76
  126. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-chip.mjs +22 -27
  128. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +8 -8
  130. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  132. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-compass.mjs +3 -3
  134. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-confirm.mjs +13 -14
  136. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-copy.mjs +120 -0
  138. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  139. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +18 -11
  140. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  142. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +6 -6
  144. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-files.mjs +35 -43
  146. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-filter.mjs +6 -15
  148. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +13 -19
  150. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  152. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  153. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +20 -17
  154. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-input-color.mjs +9 -12
  156. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +6 -7
  158. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +3 -3
  160. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +8 -10
  162. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-input-date.mjs +16 -18
  164. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +5 -5
  166. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +8 -9
  168. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-input-month.mjs +13 -15
  170. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-input-number.mjs +28 -27
  172. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +105 -131
  174. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +5 -6
  176. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +5 -5
  178. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-input-range.mjs +34 -38
  180. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +28 -42
  182. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-input-time.mjs +39 -45
  184. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-input-year.mjs +7 -8
  186. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +16 -16
  188. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  190. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -83
  192. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -11
  194. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +45 -44
  196. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +12 -19
  198. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -6
  200. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-pagination.mjs +7 -8
  202. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  204. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +11 -11
  206. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-preview.mjs +34 -36
  208. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-progress.mjs +37 -50
  210. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-pulse.mjs +3 -3
  212. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-push.mjs +49 -56
  214. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +5 -6
  216. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-radio.mjs +34 -39
  218. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-range.mjs +40 -81
  220. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-rating.mjs +17 -21
  222. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +3 -3
  224. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-segmented.mjs +6 -6
  226. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-select.mjs +38 -31
  228. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-slider.mjs +69 -67
  230. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-slides.mjs +14 -22
  232. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  234. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-stepper.mjs +11 -11
  236. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-switch.mjs +19 -65
  238. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-tabs.mjs +29 -34
  240. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-textarea.mjs +17 -25
  242. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-tiles.mjs +12 -12
  244. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-toast.mjs +165 -0
  246. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  247. package/fesm2022/taiga-ui-kit-components-tree.mjs +33 -41
  248. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components.mjs +3 -2
  250. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  252. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  254. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +5 -12
  256. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +13 -20
  258. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -14
  260. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +3 -3
  262. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -12
  264. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +3 -3
  266. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -3
  268. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +6 -7
  270. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-directives-password.mjs +8 -11
  272. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -3
  274. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  276. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  278. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +27 -38
  280. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +15 -20
  282. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +5 -6
  284. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +3 -3
  286. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  288. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  290. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  292. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  294. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -4
  296. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  298. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  300. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  302. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -7
  304. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  306. package/package.json +30 -37
  307. package/pipes/index.d.ts +0 -1
  308. package/styles/components/avatar.less +188 -0
  309. package/styles/components/badge.less +1 -0
  310. package/styles/components/block.less +1 -1
  311. package/styles/components/checkbox.less +14 -12
  312. package/styles/components/chip.less +13 -4
  313. package/styles/components/like.less +4 -9
  314. package/styles/components/pin.less +3 -7
  315. package/styles/components/radio.less +1 -1
  316. package/styles/components/switch.less +9 -9
  317. package/styles/components/toast.less +44 -0
  318. package/tokens/i18n.d.ts +25 -26
  319. package/tokens/index.d.ts +0 -1
  320. package/tokens/input-date-options.d.ts +1 -1
  321. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  322. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  323. package/components/accordion/accordion-item.component.d.ts +0 -25
  324. package/components/action-bar/action-bar.d.ts +0 -3
  325. package/components/action-bar/action-bar.directive.d.ts +0 -6
  326. package/components/avatar/avatar.component.d.ts +0 -15
  327. package/components/input-password/index.d.ts +0 -2
  328. package/components/input-password/input-password.component.d.ts +0 -16
  329. package/components/input-password/input-password.options.d.ts +0 -24
  330. package/components/pdf-viewer/index.d.ts +0 -4
  331. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  332. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  333. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  334. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  335. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  336. package/directives/icon-badge/index.d.ts +0 -1
  337. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -95
  338. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  339. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  340. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  341. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -120
  342. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  343. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  344. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  345. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  346. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  347. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  348. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  349. package/pipes/field-error/index.d.ts +0 -2
  350. package/tokens/validation-errors.d.ts +0 -5
  351. /package/{directives → components}/copy/copy.d.ts +0 -0
  352. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1,34 +1,30 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, input, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
 
5
- class TuiStatusStyles {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStatusStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiStatusStyles, 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 }); }
5
+ class Styles {
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", 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 }); }
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStatusStyles, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, decorators: [{
10
10
  type: Component,
11
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
12
- class: 'tui-status',
13
- }, 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"] }]
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"] }]
14
12
  }] });
15
13
  class TuiStatus {
16
14
  constructor() {
17
- this.nothing = tuiWithStyles(TuiStatusStyles);
18
- this.tuiStatus = '';
15
+ this.nothing = tuiWithStyles(Styles);
16
+ this.tuiStatus = input('');
19
17
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStatus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiStatus, isStandalone: true, selector: "[tuiStatus]", inputs: { tuiStatus: "tuiStatus" }, host: { attributes: { "tuiStatus": "" }, properties: { "style.--t-status": "tuiStatus || null" } }, ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStatus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", 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 }); }
22
20
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStatus, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStatus, decorators: [{
24
22
  type: Directive,
25
23
  args: [{
26
- standalone: true,
27
24
  selector: '[tuiStatus]',
28
- inputs: ['tuiStatus'],
29
25
  host: {
30
26
  tuiStatus: '',
31
- '[style.--t-status]': 'tuiStatus || null',
27
+ '[style.--t-status]': 'tuiStatus() || null',
32
28
  },
33
29
  }]
34
30
  }] });
@@ -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 ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/status.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-status',\n },\n})\nclass TuiStatusStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiStatus]',\n inputs: ['tuiStatus'],\n host: {\n tuiStatus: '',\n '[style.--t-status]': 'tuiStatus || null',\n },\n})\nexport class TuiStatus {\n protected readonly nothing = tuiWithStyles(TuiStatusStyles);\n\n public tuiStatus = '';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAQA,MAUM,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,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YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,aAAa;oBACvB,MAAM,EAAE,CAAC,WAAW,CAAC;AACrB,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,EAAE;AACb,wBAAA,oBAAoB,EAAE,mBAAmB;AAC5C,qBAAA;AACJ,iBAAA;;;AC5BD;;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 {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,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AC9C,qBAAA;AACJ,iBAAA;;;ACxBD;;AAEG;;;;"}
@@ -1,4 +1,3 @@
1
- import { AsyncPipe, NgIf } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
2
  import { inject, ChangeDetectorRef, DestroyRef, EventEmitter, ElementRef, Output, Input, forwardRef, ContentChildren, ChangeDetectionStrategy, Component } from '@angular/core';
4
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -8,6 +7,7 @@ import { TuiIcon } from '@taiga-ui/core/components/icon';
8
7
  import { TUI_ANIMATIONS_SPEED, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
9
8
  import { delay, EMPTY, filter } from 'rxjs';
10
9
  import { __decorate } from 'tslib';
10
+ import { AsyncPipe } from '@angular/common';
11
11
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
12
12
  import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
13
13
  import { tuiQueryListChanges } from '@taiga-ui/cdk/observables';
@@ -91,21 +91,21 @@ class TuiStepperComponent {
91
91
  .pipe(takeUntilDestroyed(this.destroyRef))
92
92
  .subscribe();
93
93
  }
94
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
95
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiStepperComponent, isStandalone: true, selector: "tui-stepper, nav[tuiStepper]", inputs: { activeItemIndex: "activeItemIndex", orientation: "orientation" }, outputs: { activeItemIndexChange: "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: [ResizeObserverService], queries: [{ propertyName: "steps", predicate: i0.forwardRef(() => TuiStep), read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"changes$ | async\" />\n<ng-content />\n", 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-text-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
94
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStepperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
95
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiStepperComponent, isStandalone: true, selector: "tui-stepper, nav[tuiStepper]", inputs: { activeItemIndex: "activeItemIndex", orientation: "orientation" }, outputs: { activeItemIndexChange: "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: [ResizeObserverService], queries: [{ propertyName: "steps", predicate: i0.forwardRef(() => TuiStep), read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "@if (changes$ | async) {}\n<ng-content />\n", 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-text-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
96
96
  }
97
97
  __decorate([
98
98
  tuiPure
99
99
  ], TuiStepperComponent.prototype, "changes$", null);
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStepperComponent, decorators: [{
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStepperComponent, decorators: [{
101
101
  type: Component,
102
- args: [{ selector: 'tui-stepper, nav[tuiStepper]', imports: [AsyncPipe, NgIf], changeDetection: ChangeDetectionStrategy.OnPush, providers: [ResizeObserverService], host: {
102
+ args: [{ selector: 'tui-stepper, nav[tuiStepper]', imports: [AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, providers: [ResizeObserverService], host: {
103
103
  '[attr.data-orientation]': 'orientation',
104
104
  '(keydown.arrowRight)': 'onHorizontal($event, 1)',
105
105
  '(keydown.arrowLeft)': 'onHorizontal($event, -1)',
106
106
  '(keydown.arrowDown)': 'onVertical($event, 1)',
107
107
  '(keydown.arrowUp)': 'onVertical($event, -1)',
108
- }, template: "<ng-container *ngIf=\"changes$ | async\" />\n<ng-content />\n", 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-text-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"] }]
108
+ }, template: "@if (changes$ | async) {}\n<ng-content />\n", 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-text-m)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host[data-orientation=vertical]{flex-direction:column}\n"] }]
109
109
  }], propDecorators: { steps: [{
110
110
  type: ContentChildren,
111
111
  args: [forwardRef(() => TuiStep), { read: ElementRef }]
@@ -144,12 +144,12 @@ class TuiStep {
144
144
  activate() {
145
145
  this.stepper.activate(this.index);
146
146
  }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
148
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiStep, isStandalone: true, selector: "button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]", inputs: { stepState: "stepState", icon: "icon" }, host: { attributes: { "type": "button" }, listeners: { "click": "activate()" }, properties: { "attr.data-state": "stepState", "class._vertical": "isVertical", "class._focus-visible": "focusVisible", "class._active": "isActive", "tabIndex": "tabIndex" } }, ngImport: i0, template: "<tui-icon\n *ngIf=\"icon\"\n class=\"t-marker t-marker_custom\"\n [icon]=\"icon\"\n/>\n<tui-icon\n class=\"t-marker t-marker_error\"\n [icon]=\"icons.error\"\n/>\n<tui-icon\n class=\"t-marker t-marker_pass\"\n [icon]=\"icons.check\"\n/>\n<div class=\"t-marker t-marker_index\"></div>\n<ng-content />\n", styles: [":host{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;flex-shrink:0;color:var(--tui-text-action);margin-inline-end:1.5rem;outline:none;cursor:pointer;counter-increment:steps;text-align:start}:host:disabled{pointer-events:none;color:var(--tui-text-secondary)}:host:hover{color:var(--tui-text-action-hover)}:host:not(:last-of-type)._vertical{margin-block-end:1.25rem}:host._active,:host._active:hover{color:var(--tui-text-primary);cursor:default}:host:focus-visible:before{content:\"\";position:absolute;left:2.75rem;right:0;top:50%;block-size:1.5rem;margin-block-start:-.75rem;background:var(--tui-service-selection-background)}.t-marker{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;inline-size:2rem;block-size:2rem;border-radius:100%;margin-inline-end:.75rem;flex-shrink:0;align-items:center;align-self:flex-start;justify-content:center;background:var(--tui-background-neutral-1);color:var(--tui-text-action);box-sizing:border-box}.t-marker:before{font-size:1rem}:host:disabled .t-marker{background:var(--tui-background-neutral-1);color:var(--tui-text-secondary)}.t-marker_index:before{content:counter(steps)}:host:hover .t-marker_index{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}:host._active .t-marker_index{color:var(--tui-text-primary-on-accent-1);background:var(--tui-background-accent-1)}:host:not([data-state=normal]):not(._active) .t-marker_index,:host:not(._active) .t-marker_custom~.t-marker_index{display:none}.t-marker_error{background:var(--tui-status-negative-pale);color:var(--tui-status-negative)}:host:hover .t-marker_error{background:var(--tui-status-negative-pale-hover);color:var(--tui-status-negative)}:host:not([data-state=error]) .t-marker_error,:host._active .t-marker_error{display:none}:host:not([data-state=pass]) .t-marker_pass,:host._active .t-marker_pass{display:none}:host:not([data-state=normal]) .t-marker_custom,:host._active .t-marker_custom{display:none}:host:hover .t-marker_custom{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
148
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiStep, isStandalone: true, selector: "button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]", inputs: { stepState: "stepState", icon: "icon" }, host: { attributes: { "type": "button" }, listeners: { "click": "activate()" }, properties: { "attr.data-state": "stepState", "class._vertical": "isVertical", "class._focus-visible": "focusVisible", "class._active": "isActive", "tabIndex": "tabIndex" } }, ngImport: i0, template: "@if (icon) {\n <tui-icon\n class=\"t-marker t-marker_custom\"\n [icon]=\"icon\"\n />\n}\n<tui-icon\n class=\"t-marker t-marker_error\"\n [icon]=\"icons.error\"\n/>\n<tui-icon\n class=\"t-marker t-marker_pass\"\n [icon]=\"icons.check\"\n/>\n<div class=\"t-marker t-marker_index\"></div>\n<ng-content />\n", styles: [":host{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;flex-shrink:0;color:var(--tui-text-action);margin-inline-end:1.5rem;outline:none;cursor:pointer;counter-increment:steps;text-align:start}:host:disabled{pointer-events:none;color:var(--tui-text-secondary)}:host:hover{color:var(--tui-text-action-hover)}:host:not(:last-of-type)._vertical{margin-block-end:1.25rem}:host._active,:host._active:hover{color:var(--tui-text-primary);cursor:default}:host:focus-visible:before{content:\"\";position:absolute;left:2.75rem;right:0;top:50%;block-size:1.5rem;margin-block-start:-.75rem;background:var(--tui-service-selection-background)}.t-marker{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;inline-size:2rem;block-size:2rem;border-radius:100%;margin-inline-end:.75rem;flex-shrink:0;align-items:center;align-self:flex-start;justify-content:center;background:var(--tui-background-neutral-1);color:var(--tui-text-action);box-sizing:border-box}.t-marker:before{font-size:1rem}:host:disabled .t-marker{background:var(--tui-background-neutral-1);color:var(--tui-text-secondary)}.t-marker_index:before{content:counter(steps)}:host:hover .t-marker_index{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}:host._active .t-marker_index{color:var(--tui-text-primary-on-accent-1);background:var(--tui-background-accent-1)}:host:not([data-state=normal]):not(._active) .t-marker_index,:host:not(._active) .t-marker_custom~.t-marker_index{display:none}.t-marker_error{background:var(--tui-status-negative-pale);color:var(--tui-status-negative)}:host:hover .t-marker_error{background:var(--tui-status-negative-pale-hover);color:var(--tui-status-negative)}:host:not([data-state=error]) .t-marker_error,:host._active .t-marker_error{display:none}:host:not([data-state=pass]) .t-marker_pass,:host._active .t-marker_pass{display:none}:host:not([data-state=normal]) .t-marker_custom,:host._active .t-marker_custom{display:none}:host:hover .t-marker_custom{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}\n"], dependencies: [{ kind: "component", type: TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
149
149
  }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiStep, decorators: [{
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStep, decorators: [{
151
151
  type: Component,
152
- args: [{ selector: 'button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]', imports: [NgIf, TuiIcon], changeDetection: ChangeDetectionStrategy.OnPush, host: {
152
+ args: [{ selector: 'button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]', imports: [TuiIcon], changeDetection: ChangeDetectionStrategy.OnPush, host: {
153
153
  type: 'button',
154
154
  '[attr.data-state]': 'stepState',
155
155
  '[class._vertical]': 'isVertical',
@@ -157,7 +157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
157
157
  '[class._active]': 'isActive',
158
158
  '[tabIndex]': 'tabIndex',
159
159
  '(click)': 'activate()',
160
- }, template: "<tui-icon\n *ngIf=\"icon\"\n class=\"t-marker t-marker_custom\"\n [icon]=\"icon\"\n/>\n<tui-icon\n class=\"t-marker t-marker_error\"\n [icon]=\"icons.error\"\n/>\n<tui-icon\n class=\"t-marker t-marker_pass\"\n [icon]=\"icons.check\"\n/>\n<div class=\"t-marker t-marker_index\"></div>\n<ng-content />\n", styles: [":host{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;flex-shrink:0;color:var(--tui-text-action);margin-inline-end:1.5rem;outline:none;cursor:pointer;counter-increment:steps;text-align:start}:host:disabled{pointer-events:none;color:var(--tui-text-secondary)}:host:hover{color:var(--tui-text-action-hover)}:host:not(:last-of-type)._vertical{margin-block-end:1.25rem}:host._active,:host._active:hover{color:var(--tui-text-primary);cursor:default}:host:focus-visible:before{content:\"\";position:absolute;left:2.75rem;right:0;top:50%;block-size:1.5rem;margin-block-start:-.75rem;background:var(--tui-service-selection-background)}.t-marker{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;inline-size:2rem;block-size:2rem;border-radius:100%;margin-inline-end:.75rem;flex-shrink:0;align-items:center;align-self:flex-start;justify-content:center;background:var(--tui-background-neutral-1);color:var(--tui-text-action);box-sizing:border-box}.t-marker:before{font-size:1rem}:host:disabled .t-marker{background:var(--tui-background-neutral-1);color:var(--tui-text-secondary)}.t-marker_index:before{content:counter(steps)}:host:hover .t-marker_index{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}:host._active .t-marker_index{color:var(--tui-text-primary-on-accent-1);background:var(--tui-background-accent-1)}:host:not([data-state=normal]):not(._active) .t-marker_index,:host:not(._active) .t-marker_custom~.t-marker_index{display:none}.t-marker_error{background:var(--tui-status-negative-pale);color:var(--tui-status-negative)}:host:hover .t-marker_error{background:var(--tui-status-negative-pale-hover);color:var(--tui-status-negative)}:host:not([data-state=error]) .t-marker_error,:host._active .t-marker_error{display:none}:host:not([data-state=pass]) .t-marker_pass,:host._active .t-marker_pass{display:none}:host:not([data-state=normal]) .t-marker_custom,:host._active .t-marker_custom{display:none}:host:hover .t-marker_custom{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}\n"] }]
160
+ }, template: "@if (icon) {\n <tui-icon\n class=\"t-marker t-marker_custom\"\n [icon]=\"icon\"\n />\n}\n<tui-icon\n class=\"t-marker t-marker_error\"\n [icon]=\"icons.error\"\n/>\n<tui-icon\n class=\"t-marker t-marker_pass\"\n [icon]=\"icons.check\"\n/>\n<div class=\"t-marker t-marker_index\"></div>\n<ng-content />\n", styles: [":host{-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;flex-shrink:0;color:var(--tui-text-action);margin-inline-end:1.5rem;outline:none;cursor:pointer;counter-increment:steps;text-align:start}:host:disabled{pointer-events:none;color:var(--tui-text-secondary)}:host:hover{color:var(--tui-text-action-hover)}:host:not(:last-of-type)._vertical{margin-block-end:1.25rem}:host._active,:host._active:hover{color:var(--tui-text-primary);cursor:default}:host:focus-visible:before{content:\"\";position:absolute;left:2.75rem;right:0;top:50%;block-size:1.5rem;margin-block-start:-.75rem;background:var(--tui-service-selection-background)}.t-marker{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;inline-size:2rem;block-size:2rem;border-radius:100%;margin-inline-end:.75rem;flex-shrink:0;align-items:center;align-self:flex-start;justify-content:center;background:var(--tui-background-neutral-1);color:var(--tui-text-action);box-sizing:border-box}.t-marker:before{font-size:1rem}:host:disabled .t-marker{background:var(--tui-background-neutral-1);color:var(--tui-text-secondary)}.t-marker_index:before{content:counter(steps)}:host:hover .t-marker_index{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}:host._active .t-marker_index{color:var(--tui-text-primary-on-accent-1);background:var(--tui-background-accent-1)}:host:not([data-state=normal]):not(._active) .t-marker_index,:host:not(._active) .t-marker_custom~.t-marker_index{display:none}.t-marker_error{background:var(--tui-status-negative-pale);color:var(--tui-status-negative)}:host:hover .t-marker_error{background:var(--tui-status-negative-pale-hover);color:var(--tui-status-negative)}:host:not([data-state=error]) .t-marker_error,:host._active .t-marker_error{display:none}:host:not([data-state=pass]) .t-marker_pass,:host._active .t-marker_pass{display:none}:host:not([data-state=normal]) .t-marker_custom,:host._active .t-marker_custom{display:none}:host:hover .t-marker_custom{color:var(--tui-text-action-hover);background:var(--tui-background-neutral-1-hover)}\n"] }]
161
161
  }], propDecorators: { stepState: [{
162
162
  type: Input
163
163
  }], icon: [{
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-stepper.mjs","sources":["../../../projects/kit/components/stepper/stepper.component.ts","../../../projects/kit/components/stepper/stepper.template.html","../../../projects/kit/components/stepper/step.component.ts","../../../projects/kit/components/stepper/step.template.html","../../../projects/kit/components/stepper/stepper.ts","../../../projects/kit/components/stepper/taiga-ui-kit-components-stepper.ts"],"sourcesContent":["import {AsyncPipe, NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n DestroyRef,\n ElementRef,\n EventEmitter,\n forwardRef,\n inject,\n Input,\n type OnChanges,\n Output,\n type QueryList,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {tuiQueryListChanges} from '@taiga-ui/cdk/observables';\nimport {TuiScrollService} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement, tuiIsElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiMoveFocus} from '@taiga-ui/cdk/utils/focus';\nimport {\n tuiGetOriginalArrayFromQueryList,\n tuiPure,\n} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {type TuiOrientation} from '@taiga-ui/core/types';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\nimport {delay, type Observable} from 'rxjs';\n\nimport {TuiStep} from './step.component';\n\n@Component({\n selector: 'tui-stepper, nav[tuiStepper]',\n imports: [AsyncPipe, NgIf],\n templateUrl: './stepper.template.html',\n styleUrls: ['./stepper.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [ResizeObserverService],\n host: {\n '[attr.data-orientation]': 'orientation',\n '(keydown.arrowRight)': 'onHorizontal($event, 1)',\n '(keydown.arrowLeft)': 'onHorizontal($event, -1)',\n '(keydown.arrowDown)': 'onVertical($event, 1)',\n '(keydown.arrowUp)': 'onVertical($event, -1)',\n },\n})\nexport class TuiStepperComponent implements OnChanges {\n @ContentChildren(forwardRef(() => TuiStep), {read: ElementRef})\n private readonly steps: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly el = tuiInjectElement();\n private readonly scrollService = inject(TuiScrollService);\n private readonly speed = inject(TUI_ANIMATIONS_SPEED);\n private readonly destroyRef = inject(DestroyRef);\n\n protected readonly $ = inject(ResizeObserverService, {self: true})\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.scrollIntoView(this.activeItemIndex));\n\n @Input()\n public activeItemIndex = 0;\n\n @Input()\n public orientation: TuiOrientation = 'horizontal';\n\n @Output()\n public readonly activeItemIndexChange = new EventEmitter<number>();\n\n public ngOnChanges(): void {\n this.scrollIntoView(this.activeItemIndex);\n }\n\n public indexOf(step: HTMLElement): number {\n const index = tuiGetOriginalArrayFromQueryList(this.steps).findIndex(\n ({nativeElement}) => nativeElement === step,\n );\n\n return index < 0 ? NaN : index;\n }\n\n public isActive(index: number): boolean {\n return index === this.activeItemIndex;\n }\n\n public activate(index: number): void {\n if (this.activeItemIndex === index) {\n return;\n }\n\n this.activeItemIndex = index;\n this.activeItemIndexChange.emit(index);\n this.cdr.markForCheck();\n this.scrollIntoView(index);\n }\n\n @tuiPure\n protected get changes$(): Observable<unknown> {\n // Delay is required to trigger change detection after steps are rendered,\n // so they can update their \"active\" status\n return tuiQueryListChanges(this.steps).pipe(delay(0));\n }\n\n protected onHorizontal(event: Event, step: number): void {\n if (this.orientation !== 'horizontal' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n protected onVertical(event: Event, step: number): void {\n if (this.orientation !== 'vertical' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n private moveFocus(current: EventTarget, step: number): void {\n if (!tuiIsElement(current)) {\n return;\n }\n\n const stepElements = this.steps.toArray().map(({nativeElement}) => nativeElement);\n const index = stepElements.findIndex((element) => element === current);\n\n tuiMoveFocus(index, stepElements, step);\n }\n\n private scrollIntoView(index: number): void {\n const step = this.steps.get(index)?.nativeElement;\n\n if (!step) {\n return;\n }\n\n const {clientHeight, clientWidth, offsetTop, offsetLeft} = this.el;\n const {\n offsetHeight,\n offsetWidth,\n offsetTop: stepOffsetTop,\n offsetLeft: stepOffsetLeft,\n } = step;\n const top = stepOffsetTop - offsetTop - clientHeight / 2 + offsetHeight / 2;\n const left = stepOffsetLeft - offsetLeft - clientWidth / 2 + offsetWidth / 2;\n\n this.scrollService\n .scroll$(\n this.el,\n Math.max(0, top),\n Math.max(0, left),\n tuiGetDuration(this.speed) / 3,\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe();\n }\n}\n","<ng-container *ngIf=\"changes$ | async\" />\n<ng-content />\n","import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {RouterLinkActive} from '@angular/router';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {EMPTY, filter} from 'rxjs';\n\nimport {TuiStepperComponent} from './stepper.component';\n\n@Component({\n selector:\n 'button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]',\n imports: [NgIf, TuiIcon],\n templateUrl: './step.template.html',\n styleUrls: ['./step.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n type: 'button',\n '[attr.data-state]': 'stepState',\n '[class._vertical]': 'isVertical',\n '[class._focus-visible]': 'focusVisible',\n '[class._active]': 'isActive',\n '[tabIndex]': 'tabIndex',\n '(click)': 'activate()',\n },\n})\nexport class TuiStep {\n private readonly stepper = inject(TuiStepperComponent);\n private readonly el = tuiInjectElement();\n protected readonly $ = (\n inject(RouterLinkActive, {optional: true})?.isActiveChange.asObservable() ?? EMPTY\n )\n .pipe(filter(Boolean), takeUntilDestroyed())\n .subscribe(() => this.activate());\n\n protected focusVisible = false;\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n\n @Input()\n public stepState: 'error' | 'normal' | 'pass' = 'normal';\n\n @Input()\n public icon = '';\n\n protected get isActive(): boolean {\n return this.stepper.isActive(this.index);\n }\n\n protected get isVertical(): boolean {\n return this.stepper.orientation === 'vertical';\n }\n\n protected get tabIndex(): number {\n return this.isActive ? 0 : -1;\n }\n\n protected get index(): number {\n return this.stepper.indexOf(this.el);\n }\n\n protected activate(): void {\n this.stepper.activate(this.index);\n }\n}\n","<tui-icon\n *ngIf=\"icon\"\n class=\"t-marker t-marker_custom\"\n [icon]=\"icon\"\n/>\n<tui-icon\n class=\"t-marker t-marker_error\"\n [icon]=\"icons.error\"\n/>\n<tui-icon\n class=\"t-marker t-marker_pass\"\n [icon]=\"icons.check\"\n/>\n<div class=\"t-marker t-marker_index\"></div>\n<ng-content />\n","import {TuiStep} from './step.component';\nimport {TuiStepperComponent} from './stepper.component';\n\nexport const TuiStepper = [TuiStepperComponent, TuiStep] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAiDa,mBAAmB,CAAA;AAfhC,IAAA,WAAA,GAAA;QAiBqB,IAAA,CAAA,KAAK,GAAuC,WAAW;AAEvD,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;QAC/B,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACpC,QAAA,IAAA,CAAA,UAAU,GAAG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,EAAE,YAAY;AACjC,wBAAA,wBAAwB,EAAE,cAAc;AACxC,wBAAA,iBAAiB,EAAE,UAAU;AAC7B,wBAAA,YAAY,EAAE,UAAU;AACxB,wBAAA,SAAS,EAAE,YAAY;AAC1B,qBAAA,EAAA,QAAA,EAAA,oUAAA,EAAA,MAAA,EAAA,CAAA,wuEAAA,CAAA,EAAA;8BAgBM,SAAS,EAAA,CAAA;sBADf;gBAIM,IAAI,EAAA,CAAA;sBADV;;;MEzCQ,UAAU,GAAG,CAAC,mBAAmB,EAAE,OAAO;;ACHvD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-stepper.mjs","sources":["../../../projects/kit/components/stepper/stepper.component.ts","../../../projects/kit/components/stepper/stepper.template.html","../../../projects/kit/components/stepper/step.component.ts","../../../projects/kit/components/stepper/step.template.html","../../../projects/kit/components/stepper/stepper.ts","../../../projects/kit/components/stepper/taiga-ui-kit-components-stepper.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n DestroyRef,\n ElementRef,\n EventEmitter,\n forwardRef,\n inject,\n Input,\n type OnChanges,\n Output,\n type QueryList,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {tuiQueryListChanges} from '@taiga-ui/cdk/observables';\nimport {TuiScrollService} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement, tuiIsElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiMoveFocus} from '@taiga-ui/cdk/utils/focus';\nimport {\n tuiGetOriginalArrayFromQueryList,\n tuiPure,\n} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {type TuiOrientation} from '@taiga-ui/core/types';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\nimport {delay, type Observable} from 'rxjs';\n\nimport {TuiStep} from './step.component';\n\n@Component({\n selector: 'tui-stepper, nav[tuiStepper]',\n imports: [AsyncPipe],\n templateUrl: './stepper.template.html',\n styleUrl: './stepper.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [ResizeObserverService],\n host: {\n '[attr.data-orientation]': 'orientation',\n '(keydown.arrowRight)': 'onHorizontal($event, 1)',\n '(keydown.arrowLeft)': 'onHorizontal($event, -1)',\n '(keydown.arrowDown)': 'onVertical($event, 1)',\n '(keydown.arrowUp)': 'onVertical($event, -1)',\n },\n})\nexport class TuiStepperComponent implements OnChanges {\n @ContentChildren(forwardRef(() => TuiStep), {read: ElementRef})\n private readonly steps: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly el = tuiInjectElement();\n private readonly scrollService = inject(TuiScrollService);\n private readonly speed = inject(TUI_ANIMATIONS_SPEED);\n private readonly destroyRef = inject(DestroyRef);\n\n protected readonly $ = inject(ResizeObserverService, {self: true})\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.scrollIntoView(this.activeItemIndex));\n\n @Input()\n public activeItemIndex = 0;\n\n @Input()\n public orientation: TuiOrientation = 'horizontal';\n\n @Output()\n public readonly activeItemIndexChange = new EventEmitter<number>();\n\n public ngOnChanges(): void {\n this.scrollIntoView(this.activeItemIndex);\n }\n\n public indexOf(step: HTMLElement): number {\n const index = tuiGetOriginalArrayFromQueryList(this.steps).findIndex(\n ({nativeElement}) => nativeElement === step,\n );\n\n return index < 0 ? NaN : index;\n }\n\n public isActive(index: number): boolean {\n return index === this.activeItemIndex;\n }\n\n public activate(index: number): void {\n if (this.activeItemIndex === index) {\n return;\n }\n\n this.activeItemIndex = index;\n this.activeItemIndexChange.emit(index);\n this.cdr.markForCheck();\n this.scrollIntoView(index);\n }\n\n @tuiPure\n protected get changes$(): Observable<unknown> {\n // Delay is required to trigger change detection after steps are rendered,\n // so they can update their \"active\" status\n return tuiQueryListChanges(this.steps).pipe(delay(0));\n }\n\n protected onHorizontal(event: Event, step: number): void {\n if (this.orientation !== 'horizontal' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n protected onVertical(event: Event, step: number): void {\n if (this.orientation !== 'vertical' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n private moveFocus(current: EventTarget, step: number): void {\n if (!tuiIsElement(current)) {\n return;\n }\n\n const stepElements = this.steps.toArray().map(({nativeElement}) => nativeElement);\n const index = stepElements.findIndex((element) => element === current);\n\n tuiMoveFocus(index, stepElements, step);\n }\n\n private scrollIntoView(index: number): void {\n const step = this.steps.get(index)?.nativeElement;\n\n if (!step) {\n return;\n }\n\n const {clientHeight, clientWidth, offsetTop, offsetLeft} = this.el;\n const {\n offsetHeight,\n offsetWidth,\n offsetTop: stepOffsetTop,\n offsetLeft: stepOffsetLeft,\n } = step;\n const top = stepOffsetTop - offsetTop - clientHeight / 2 + offsetHeight / 2;\n const left = stepOffsetLeft - offsetLeft - clientWidth / 2 + offsetWidth / 2;\n\n this.scrollService\n .scroll$(\n this.el,\n Math.max(0, top),\n Math.max(0, left),\n tuiGetDuration(this.speed) / 3,\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe();\n }\n}\n","@if (changes$ | async) {}\n<ng-content />\n","import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {RouterLinkActive} from '@angular/router';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {EMPTY, filter} from 'rxjs';\n\nimport {TuiStepperComponent} from './stepper.component';\n\n@Component({\n selector:\n 'button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]',\n imports: [TuiIcon],\n templateUrl: './step.template.html',\n styleUrl: './step.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n type: 'button',\n '[attr.data-state]': 'stepState',\n '[class._vertical]': 'isVertical',\n '[class._focus-visible]': 'focusVisible',\n '[class._active]': 'isActive',\n '[tabIndex]': 'tabIndex',\n '(click)': 'activate()',\n },\n})\nexport class TuiStep {\n private readonly stepper = inject(TuiStepperComponent);\n private readonly el = tuiInjectElement();\n protected readonly $ = (\n inject(RouterLinkActive, {optional: true})?.isActiveChange.asObservable() ?? EMPTY\n )\n .pipe(filter(Boolean), takeUntilDestroyed())\n .subscribe(() => this.activate());\n\n protected focusVisible = false;\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n\n @Input()\n public stepState: 'error' | 'normal' | 'pass' = 'normal';\n\n @Input()\n public icon = '';\n\n protected get isActive(): boolean {\n return this.stepper.isActive(this.index);\n }\n\n protected get isVertical(): boolean {\n return this.stepper.orientation === 'vertical';\n }\n\n protected get tabIndex(): number {\n return this.isActive ? 0 : -1;\n }\n\n protected get index(): number {\n return this.stepper.indexOf(this.el);\n }\n\n protected activate(): void {\n this.stepper.activate(this.index);\n }\n}\n","@if (icon) {\n <tui-icon\n class=\"t-marker t-marker_custom\"\n [icon]=\"icon\"\n />\n}\n<tui-icon\n class=\"t-marker t-marker_error\"\n [icon]=\"icons.error\"\n/>\n<tui-icon\n class=\"t-marker t-marker_pass\"\n [icon]=\"icons.check\"\n/>\n<div class=\"t-marker t-marker_index\"></div>\n<ng-content />\n","import {TuiStep} from './step.component';\nimport {TuiStepperComponent} from './stepper.component';\n\nexport const TuiStepper = [TuiStepperComponent, TuiStep] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAiDa,mBAAmB,CAAA;AAfhC,IAAA,WAAA,GAAA;QAiBqB,IAAK,CAAA,KAAA,GAAuC,WAAW;AAEvD,QAAA,IAAA,C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EAAA;8BAgBM,SAAS,EAAA,CAAA;sBADf;gBAIM,IAAI,EAAA,CAAA;sBADV;;;MExCQ,UAAU,GAAG,CAAC,mBAAmB,EAAE,OAAO;;ACHvD;;AAEG;;;;"}
@@ -1,81 +1,35 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, DestroyRef, ChangeDetectorRef, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import { NgControl } from '@angular/forms';
5
- import * as i2 from '@taiga-ui/cdk/directives/native-validator';
6
- import { TuiNativeValidator } from '@taiga-ui/cdk/directives/native-validator';
7
- import { tuiWatch } from '@taiga-ui/cdk/observables';
8
- import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
9
- import { tuiProvideOptions, tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
10
- import * as i1 from '@taiga-ui/core/directives/appearance';
11
- import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
12
- import { tuiInjectIconResolver } from '@taiga-ui/core/tokens';
2
+ import { computed, input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
+ import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
4
+ import * as i1 from '@taiga-ui/core/directives/icons';
5
+ import { tuiIconStart, TuiIcons } from '@taiga-ui/core/directives/icons';
6
+ import { TuiRadioComponent, TUI_RADIO_OPTIONS } from '@taiga-ui/kit/components/radio';
7
+ import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
13
8
 
14
- const TUI_SWITCH_DEFAULT_OPTIONS = {
9
+ const [TUI_SWITCH_OPTIONS, tuiSwitchOptionsProvider] = tuiCreateOptions({
15
10
  showIcons: true,
16
11
  size: 'm',
17
- icon: '@tui.check',
18
- appearance: (el) => (el.checked ? 'primary' : 'secondary'),
19
- };
20
- const TUI_SWITCH_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_SWITCH_OPTIONS' : '', {
21
- factory: () => TUI_SWITCH_DEFAULT_OPTIONS,
12
+ icon: () => '@tui.check',
13
+ appearance: ({ checked }) => (checked ? 'primary' : 'secondary'),
22
14
  });
23
- function tuiSwitchOptionsProvider(options) {
24
- return tuiProvideOptions(TUI_SWITCH_OPTIONS, options, TUI_SWITCH_DEFAULT_OPTIONS);
25
- }
26
15
 
27
- class TuiSwitch {
16
+ class TuiSwitch extends TuiRadioComponent {
28
17
  constructor() {
29
- this.appearance = inject(TuiAppearance);
30
- this.resolver = tuiInjectIconResolver();
31
- this.destroyRef = inject(DestroyRef);
32
- this.cdr = inject(ChangeDetectorRef);
33
- this.options = inject(TUI_SWITCH_OPTIONS);
34
- this.el = tuiInjectElement();
35
- this.control = inject(NgControl, { self: true, optional: true });
36
- this.size = this.options.size;
37
- this.showIcons = this.options.showIcons;
38
- }
39
- ngOnInit() {
40
- this.control?.valueChanges
41
- ?.pipe(tuiWatch(this.cdr), takeUntilDestroyed(this.destroyRef))
42
- .subscribe();
43
- }
44
- ngDoCheck() {
45
- this.appearance.tuiAppearance = this.options.appearance(this.el);
46
- }
47
- get icon() {
48
- const { options, resolver, size } = this;
49
- const icon = tuiIsString(options.icon) ? options.icon : options.icon(size);
50
- return this.showIcons && icon ? `url(${resolver(icon)})` : null;
18
+ super(...arguments);
19
+ this.icon = tuiIconStart(computed(() => (this.showIcons() ? this.options.icon(this.size()) : '')));
20
+ this.showIcons = input(this.options.showIcons);
51
21
  }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiSwitch, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
53
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiSwitch, isStandalone: true, selector: "input[type=\"checkbox\"][tuiSwitch]", inputs: { size: "size", showIcons: "showIcons" }, host: { attributes: { "role": "switch" }, properties: { "disabled": "!control || control.disabled", "attr.data-size": "size", "class._readonly": "!control", "style.--t-checked-icon": "icon" } }, hostDirectives: [{ directive: i1.TuiAppearance, inputs: ["tuiAppearanceState", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceFocus", "tuiAppearanceMode", "tuiAppearanceMode"] }, { directive: i2.TuiNativeValidator }], ngImport: i0, template: '', isInline: true, styles: ["[tuiSwitch]{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:3rem;block-size:1.5rem;border-radius:2rem;overflow:hidden;cursor:pointer;margin:0;flex-shrink:0;color:#fff!important}[tuiSwitch][data-size=s]{block-size:1rem;inline-size:2rem}[tuiSwitch][data-size=s]:before{inline-size:1.125rem;transform:translate(-1rem);font-size:.75rem}[tuiSwitch][data-size=s]:after{inline-size:1rem;box-shadow:-2.625rem 0 0 .5rem var(--tui-background-base);outline-width:.167rem;transform:scale(.375)}[tuiSwitch][data-size=s]:checked:after{transform:scale(.375) translate(2.625rem)}[tuiSwitch]:checked:before{transform:none}[tuiSwitch]:checked:after{transform:scale(.33333) translate(4.5rem)}[tuiSwitch]:disabled._readonly{opacity:1}[tuiSwitch]:before,[tuiSwitch]:after{content:\"\";position:absolute;block-size:100%;inline-size:1.5rem;transition-property:transform}[tuiSwitch]:before{display:var(--t-checked-icon, none);background:currentColor;mask:var(--t-checked-icon) no-repeat center / calc(min(1em,100%) + 10 * var(--tui-stroke-width, .125rem)) min(1em,100%) padding-box;font-size:1rem;inline-size:1.375rem;transform:translate(-1.5rem)}[tuiSwitch]:after{right:0;border-radius:100%;transform:scale(.33333);box-shadow:-4.5rem 0 0 .75rem var(--tui-background-base);outline:.375rem solid var(--tui-background-neutral-2-pressed);outline-offset:var(--t-checked-icon, 20rem)}[tuiSwitch]:invalid:not([data-mode]),[tuiSwitch][data-mode~=invalid]{color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwitch, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: TuiSwitch, isStandalone: true, selector: "input[type=\"checkbox\"][tuiSwitch]", inputs: { showIcons: { classPropertyName: "showIcons", publicName: "showIcons", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "switch" } }, providers: [tuiProvide(TUI_RADIO_OPTIONS, TUI_SWITCH_OPTIONS)], usesInheritance: true, hostDirectives: [{ directive: i1.TuiIcons }], ngImport: i0, template: '', isInline: true, styles: ["[tuiSwitch]{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:3rem;block-size:1.5rem;border-radius:2rem;overflow:hidden;cursor:pointer;margin:0;flex-shrink:0;color:#fff!important}[tuiSwitch][data-size=s]{block-size:1rem;inline-size:2rem}[tuiSwitch][data-size=s]:before{inline-size:1.125rem;transform:translate(-1rem);font-size:.75rem}[tuiSwitch][data-size=s]:after{inline-size:1rem;box-shadow:-2.625rem 0 0 .5rem var(--tui-background-base);outline-width:.167rem;transform:scale(.375)}[tuiSwitch][data-size=s]:checked:after{transform:scale(.375) translate(2.625rem)}[tuiSwitch]:checked:before{transform:none}[tuiSwitch]:checked:after{transform:scale(.33333) translate(4.5rem)}[tuiSwitch]:disabled._readonly._readonly{opacity:1}[tuiSwitch]:before,[tuiSwitch]:after{position:absolute;block-size:100%;inline-size:1.5rem;transition-property:transform}[tuiSwitch]:before{font-size:1rem;inline-size:1.375rem;transform:translate(-1.5rem)}[tuiSwitch]:after{right:0;display:block;border-radius:100%;background:none;transform:scale(.33333);box-shadow:-4.5rem 0 0 .75rem var(--tui-background-base);outline:.375rem solid var(--tui-background-neutral-2-pressed)}[tuiSwitch]:not([data-icon-start]):after{outline-offset:20rem}[tuiSwitch]:invalid:not([data-mode]),[tuiSwitch][data-mode~=invalid]{color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
54
24
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiSwitch, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwitch, decorators: [{
56
26
  type: Component,
57
- args: [{ standalone: true, selector: 'input[type="checkbox"][tuiSwitch]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
58
- {
59
- directive: TuiAppearance,
60
- inputs: ['tuiAppearanceState', 'tuiAppearanceFocus', 'tuiAppearanceMode'],
61
- },
62
- TuiNativeValidator,
63
- ], host: {
64
- role: 'switch',
65
- '[disabled]': '!control || control.disabled',
66
- '[attr.data-size]': 'size',
67
- '[class._readonly]': '!control',
68
- '[style.--t-checked-icon]': 'icon',
69
- }, styles: ["[tuiSwitch]{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:3rem;block-size:1.5rem;border-radius:2rem;overflow:hidden;cursor:pointer;margin:0;flex-shrink:0;color:#fff!important}[tuiSwitch][data-size=s]{block-size:1rem;inline-size:2rem}[tuiSwitch][data-size=s]:before{inline-size:1.125rem;transform:translate(-1rem);font-size:.75rem}[tuiSwitch][data-size=s]:after{inline-size:1rem;box-shadow:-2.625rem 0 0 .5rem var(--tui-background-base);outline-width:.167rem;transform:scale(.375)}[tuiSwitch][data-size=s]:checked:after{transform:scale(.375) translate(2.625rem)}[tuiSwitch]:checked:before{transform:none}[tuiSwitch]:checked:after{transform:scale(.33333) translate(4.5rem)}[tuiSwitch]:disabled._readonly{opacity:1}[tuiSwitch]:before,[tuiSwitch]:after{content:\"\";position:absolute;block-size:100%;inline-size:1.5rem;transition-property:transform}[tuiSwitch]:before{display:var(--t-checked-icon, none);background:currentColor;mask:var(--t-checked-icon) no-repeat center / calc(min(1em,100%) + 10 * var(--tui-stroke-width, .125rem)) min(1em,100%) padding-box;font-size:1rem;inline-size:1.375rem;transform:translate(-1.5rem)}[tuiSwitch]:after{right:0;border-radius:100%;transform:scale(.33333);box-shadow:-4.5rem 0 0 .75rem var(--tui-background-base);outline:.375rem solid var(--tui-background-neutral-2-pressed);outline-offset:var(--t-checked-icon, 20rem)}[tuiSwitch]:invalid:not([data-mode]),[tuiSwitch][data-mode~=invalid]{color:#fff}\n"] }]
70
- }], propDecorators: { size: [{
71
- type: Input
72
- }], showIcons: [{
73
- type: Input
74
- }] } });
27
+ args: [{ standalone: true, selector: 'input[type="checkbox"][tuiSwitch]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiProvide(TUI_RADIO_OPTIONS, TUI_SWITCH_OPTIONS)], hostDirectives: [TuiIcons], host: { role: 'switch' }, styles: ["[tuiSwitch]{transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:3rem;block-size:1.5rem;border-radius:2rem;overflow:hidden;cursor:pointer;margin:0;flex-shrink:0;color:#fff!important}[tuiSwitch][data-size=s]{block-size:1rem;inline-size:2rem}[tuiSwitch][data-size=s]:before{inline-size:1.125rem;transform:translate(-1rem);font-size:.75rem}[tuiSwitch][data-size=s]:after{inline-size:1rem;box-shadow:-2.625rem 0 0 .5rem var(--tui-background-base);outline-width:.167rem;transform:scale(.375)}[tuiSwitch][data-size=s]:checked:after{transform:scale(.375) translate(2.625rem)}[tuiSwitch]:checked:before{transform:none}[tuiSwitch]:checked:after{transform:scale(.33333) translate(4.5rem)}[tuiSwitch]:disabled._readonly._readonly{opacity:1}[tuiSwitch]:before,[tuiSwitch]:after{position:absolute;block-size:100%;inline-size:1.5rem;transition-property:transform}[tuiSwitch]:before{font-size:1rem;inline-size:1.375rem;transform:translate(-1.5rem)}[tuiSwitch]:after{right:0;display:block;border-radius:100%;background:none;transform:scale(.33333);box-shadow:-4.5rem 0 0 .75rem var(--tui-background-base);outline:.375rem solid var(--tui-background-neutral-2-pressed)}[tuiSwitch]:not([data-icon-start]):after{outline-offset:20rem}[tuiSwitch]:invalid:not([data-mode]),[tuiSwitch][data-mode~=invalid]{color:#fff}\n"] }]
28
+ }] });
75
29
 
76
30
  /**
77
31
  * Generated bundle index. Do not edit.
78
32
  */
79
33
 
80
- export { TUI_SWITCH_DEFAULT_OPTIONS, TUI_SWITCH_OPTIONS, TuiSwitch, tuiSwitchOptionsProvider };
34
+ export { TUI_SWITCH_OPTIONS, TuiSwitch, tuiSwitchOptionsProvider };
81
35
  //# sourceMappingURL=taiga-ui-kit-components-switch.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-switch.mjs","sources":["../../../projects/kit/components/switch/switch.options.ts","../../../projects/kit/components/switch/switch.component.ts","../../../projects/kit/components/switch/taiga-ui-kit-components-switch.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiSwitchOptions {\n readonly showIcons: boolean;\n readonly size: TuiSizeS;\n readonly icon: TuiStringHandler<TuiSizeS> | string;\n readonly appearance: TuiStringHandler<HTMLInputElement>;\n}\n\nexport const TUI_SWITCH_DEFAULT_OPTIONS: TuiSwitchOptions = {\n showIcons: true,\n size: 'm',\n icon: '@tui.check',\n appearance: (el) => (el.checked ? 'primary' : 'secondary'),\n};\n\nexport const TUI_SWITCH_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_SWITCH_OPTIONS' : '',\n {\n factory: () => TUI_SWITCH_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiSwitchOptionsProvider(options: Partial<TuiSwitchOptions>): Provider {\n return tuiProvideOptions(TUI_SWITCH_OPTIONS, options, TUI_SWITCH_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n type DoCheck,\n inject,\n Input,\n type OnInit,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {tuiInjectIconResolver} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nimport {TUI_SWITCH_OPTIONS} from './switch.options';\n\n@Component({\n standalone: true,\n selector: 'input[type=\"checkbox\"][tuiSwitch]',\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/switch.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: TuiAppearance,\n inputs: ['tuiAppearanceState', 'tuiAppearanceFocus', 'tuiAppearanceMode'],\n },\n TuiNativeValidator,\n ],\n host: {\n role: 'switch',\n '[disabled]': '!control || control.disabled',\n '[attr.data-size]': 'size',\n '[class._readonly]': '!control',\n '[style.--t-checked-icon]': 'icon',\n },\n})\nexport class TuiSwitch implements DoCheck, OnInit {\n private readonly appearance = inject(TuiAppearance);\n private readonly resolver = tuiInjectIconResolver();\n private readonly destroyRef = inject(DestroyRef);\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly options = inject(TUI_SWITCH_OPTIONS);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n\n protected readonly control = inject(NgControl, {self: true, optional: true});\n\n @Input()\n public size: TuiSizeS = this.options.size;\n\n @Input()\n public showIcons = this.options.showIcons;\n\n public ngOnInit(): void {\n this.control?.valueChanges\n ?.pipe(tuiWatch(this.cdr), takeUntilDestroyed(this.destroyRef))\n .subscribe();\n }\n\n public ngDoCheck(): void {\n this.appearance.tuiAppearance = this.options.appearance(this.el);\n }\n\n protected get icon(): string | null {\n const {options, resolver, size} = this;\n const icon = tuiIsString(options.icon) ? options.icon : options.icon(size);\n\n return this.showIcons && icon ? `url(${resolver(icon)})` : null;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAYO,MAAM,0BAA0B,GAAqB;AACxD,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;;AAGvD,MAAM,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,MAAM,0BAA0B;AAC5C,CAAA;AAGC,SAAU,wBAAwB,CAAC,OAAkC,EAAA;IACvE,OAAO,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,EAAE,0BAA0B,CAAC;AACrF;;MCiBa,SAAS,CAAA;AAtBtB,IAAA,WAAA,GAAA;AAuBqB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC;QAClC,IAAA,CAAA,QAAQ,GAAG,qBAAqB,EAAE;AAClC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC/B,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,kBAAkB,CAAC;QACpC,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAoB;AAEvC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,EAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;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,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAmBH,SAAS,EAAA,UAAA,EAAA,CAAA;kBAtBrB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EAAA,QAAA,EACN,mCAAmC,EAAA,QAAA,EACnC,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,aAAa;AACxB,4BAAA,MAAM,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,CAAC;AAC5E,yBAAA;wBACD,kBAAkB;qBACrB,EAAA,IAAA,EACK;AACF,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,YAAY,EAAE,8BAA8B;AAC5C,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,mBAAmB,EAAE,UAAU;AAC/B,wBAAA,0BAA0B,EAAE,MAAM;AACrC,qBAAA,EAAA,MAAA,EAAA,CAAA,y/CAAA,CAAA,EAAA;8BAaM,IAAI,EAAA,CAAA;sBADV;gBAIM,SAAS,EAAA,CAAA;sBADf;;;AC1DL;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-switch.mjs","sources":["../../../projects/kit/components/switch/switch.options.ts","../../../projects/kit/components/switch/switch.component.ts","../../../projects/kit/components/switch/taiga-ui-kit-components-switch.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {type TuiRadioOptions} from '@taiga-ui/kit/components/radio';\n\nexport interface TuiSwitchOptions extends TuiRadioOptions {\n readonly showIcons: boolean;\n readonly icon: TuiStringHandler<TuiSizeS>;\n}\n\nexport const [TUI_SWITCH_OPTIONS, tuiSwitchOptionsProvider] =\n tuiCreateOptions<TuiSwitchOptions>({\n showIcons: true,\n size: 'm',\n icon: () => '@tui.check',\n appearance: ({checked}) => (checked ? 'primary' : 'secondary'),\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiIcons, tuiIconStart} from '@taiga-ui/core/directives/icons';\nimport {TUI_RADIO_OPTIONS, TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\nimport {TUI_SWITCH_OPTIONS, type TuiSwitchOptions} from './switch.options';\n\n@Component({\n standalone: true,\n selector: 'input[type=\"checkbox\"][tuiSwitch]',\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/switch.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiProvide(TUI_RADIO_OPTIONS, TUI_SWITCH_OPTIONS)],\n hostDirectives: [TuiIcons],\n host: {role: 'switch'},\n})\nexport class TuiSwitch extends TuiRadioComponent<TuiSwitchOptions> {\n protected readonly icon = tuiIconStart(\n computed(() => (this.showIcons() ? this.options.icon(this.size()) : '')),\n );\n\n public readonly showIcons = input(this.options.showIcons);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,GACvD,gBAAgB,CAAmB;AAC/B,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,IAAI,EAAE,MAAM,YAAY;AACxB,IAAA,UAAU,EAAE,CAAC,EAAC,OAAO,EAAC,MAAM,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AACjE,CAAA;;ACQC,MAAO,SAAU,SAAQ,iBAAmC,CAAA;AAXlE,IAAA,WAAA,GAAA;;AAYuB,QAAA,IAAA,CAAA,IAAI,GAAG,YAAY,CAClC,QAAQ,CAAC,OAAO,IAAI,CAAC,SAAS,EAAE,GA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