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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  9. package/components/badge/badge.directive.d.ts +2 -2
  10. package/components/badge/badge.options.d.ts +1 -3
  11. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +2 -4
  14. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  15. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/chip/chip.directive.d.ts +2 -4
  18. package/components/chip/chip.options.d.ts +1 -3
  19. package/components/combo-box/combo-box.d.ts +5 -0
  20. package/components/combo-box/combo-box.directive.d.ts +5 -5
  21. package/components/combo-box/index.d.ts +1 -0
  22. package/components/comment/comment.directive.d.ts +2 -2
  23. package/components/confirm/confirm.component.d.ts +5 -3
  24. package/components/confirm/confirm.service.d.ts +3 -2
  25. package/{directives → components}/copy/copy.component.d.ts +2 -2
  26. package/{directives → components}/copy/copy.directive.d.ts +3 -4
  27. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  28. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  29. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  30. package/components/data-list-wrapper/index.d.ts +1 -1
  31. package/components/elastic-container/elastic-container.component.d.ts +1 -1
  32. package/components/files/file/file.options.d.ts +1 -1
  33. package/components/files/files/files.component.d.ts +2 -2
  34. package/components/files/input-files/input-files.options.d.ts +1 -3
  35. package/components/floating-container/floating-container.directive.d.ts +3 -2
  36. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  37. package/components/fullscreen/index.d.ts +1 -0
  38. package/components/index.d.ts +3 -1
  39. package/components/input-chip/input-chip.component.d.ts +9 -8
  40. package/components/input-chip/input-chip.d.ts +5 -1
  41. package/components/input-chip/input-chip.directive.d.ts +7 -12
  42. package/components/input-color/index.d.ts +1 -0
  43. package/components/input-color/input-color.component.d.ts +4 -4
  44. package/components/input-color/input-color.d.ts +5 -0
  45. package/components/input-date/input-date.d.ts +4 -1
  46. package/components/input-date/input-date.directive.d.ts +10 -12
  47. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  48. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  49. package/components/input-date-range/input-date-range.d.ts +4 -1
  50. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  51. package/components/input-date-time/input-date-time.d.ts +4 -1
  52. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  53. package/components/input-month/input-month.d.ts +4 -1
  54. package/components/input-month/input-month.directive.d.ts +5 -4
  55. package/components/input-month-range/input-month-range.d.ts +4 -1
  56. package/components/input-month-range/input-month-range.directive.d.ts +5 -4
  57. package/components/input-number/input-number.d.ts +4 -1
  58. package/components/input-number/input-number.directive.d.ts +7 -11
  59. package/components/input-number/quantum.directive.d.ts +1 -1
  60. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  61. package/components/input-phone/index.d.ts +1 -0
  62. package/components/input-phone/input-phone.d.ts +5 -0
  63. package/components/input-phone/input-phone.directive.d.ts +7 -7
  64. package/components/input-phone-international/index.d.ts +1 -0
  65. package/components/input-phone-international/input-phone-international.component.d.ts +26 -32
  66. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  67. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  68. package/components/input-pin/index.d.ts +1 -0
  69. package/components/input-pin/input-pin.component.d.ts +4 -4
  70. package/components/input-pin/input-pin.d.ts +5 -0
  71. package/components/input-range/input-range.component.d.ts +9 -12
  72. package/components/input-slider/input-slider.d.ts +4 -1
  73. package/components/input-slider/input-slider.directive.d.ts +3 -5
  74. package/components/input-time/input-time.component.d.ts +1 -3
  75. package/components/input-time/input-time.d.ts +4 -1
  76. package/components/input-time/input-time.directive.d.ts +8 -10
  77. package/components/input-year/input-year.d.ts +4 -1
  78. package/components/input-year/input-year.directive.d.ts +5 -5
  79. package/components/like/like.component.d.ts +2 -2
  80. package/components/like/like.options.d.ts +1 -1
  81. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  82. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  83. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  84. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  85. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  86. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  87. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  88. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  89. package/components/pagination/index.d.ts +1 -0
  90. package/components/pagination/pagination.component.d.ts +25 -54
  91. package/components/pagination/pagination.options.d.ts +7 -0
  92. package/components/pin/pin.directive.d.ts +2 -2
  93. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  94. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  95. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  96. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  97. package/components/preview/preview.component.d.ts +1 -1
  98. package/components/preview/preview.d.ts +2 -1
  99. package/components/preview/zoom/preview-zoom.component.d.ts +2 -1
  100. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  101. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  102. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  103. package/components/progress/progress.options.d.ts +1 -3
  104. package/components/push/push-alert.component.d.ts +4 -3
  105. package/components/push/push.component.d.ts +1 -1
  106. package/components/push/push.directive.d.ts +4 -6
  107. package/components/push/push.options.d.ts +5 -8
  108. package/components/push/push.service.d.ts +6 -2
  109. package/components/radio/radio.component.d.ts +1 -1
  110. package/components/radio-list/radio-list.component.d.ts +5 -3
  111. package/components/range/range-change.directive.d.ts +1 -2
  112. package/components/range/range.component.d.ts +16 -24
  113. package/components/rating/rating.component.d.ts +5 -5
  114. package/components/rating/rating.options.d.ts +6 -6
  115. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  116. package/components/segmented/segmented.component.d.ts +4 -6
  117. package/components/segmented/segmented.directive.d.ts +6 -7
  118. package/components/select/native-select/native-select.component.d.ts +7 -8
  119. package/components/select/select.d.ts +4 -1
  120. package/components/select/select.directive.d.ts +4 -3
  121. package/components/slider/helpers/key-steps.d.ts +1 -2
  122. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  123. package/components/slider/slider.options.d.ts +1 -6
  124. package/components/slides/slides.directive.d.ts +4 -4
  125. package/components/status/status.directive.d.ts +2 -2
  126. package/components/stepper/step.component.d.ts +6 -8
  127. package/components/stepper/stepper.component.d.ts +6 -11
  128. package/components/switch/switch.component.d.ts +1 -0
  129. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  130. package/components/tabs/tabs.options.d.ts +1 -6
  131. package/components/textarea/index.d.ts +2 -1
  132. package/components/textarea/textarea.component.d.ts +4 -4
  133. package/components/textarea/textarea.d.ts +6 -0
  134. package/components/textarea/textarea.directive.d.ts +13 -0
  135. package/components/toast/index.d.ts +5 -0
  136. package/components/toast/toast.component.d.ts +18 -0
  137. package/components/toast/toast.d.ts +3 -0
  138. package/components/toast/toast.directive.d.ts +7 -0
  139. package/components/toast/toast.options.d.ts +10 -0
  140. package/components/toast/toast.service.d.ts +17 -0
  141. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  142. package/components/tree/misc/tree.constants.d.ts +0 -3
  143. package/components/tree/misc/tree.tokens.d.ts +1 -6
  144. package/directives/button-close/button-close.directive.d.ts +2 -1
  145. package/directives/button-select/button-select.directive.d.ts +4 -4
  146. package/directives/chevron/chevron.directive.d.ts +2 -3
  147. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  148. package/directives/fade/fade.directive.d.ts +2 -2
  149. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  150. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  151. package/directives/index.d.ts +0 -2
  152. package/directives/password/password.directive.d.ts +1 -1
  153. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  154. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  155. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  156. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  157. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  158. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
  160. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-avatar.mjs +33 -44
  162. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  164. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-badge.mjs +16 -27
  166. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -7
  168. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  170. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +12 -18
  172. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +6 -6
  174. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -17
  176. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -8
  178. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -23
  180. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -6
  182. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-chip.mjs +18 -34
  184. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +42 -32
  186. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  188. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -5
  190. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -17
  192. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-copy.mjs +113 -0
  194. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  195. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -78
  196. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  198. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -12
  200. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-files.mjs +43 -50
  202. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -5
  204. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +16 -19
  206. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  208. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  209. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +69 -74
  210. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-input-color.mjs +24 -14
  212. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +34 -51
  214. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +27 -32
  216. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +32 -29
  218. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-input-date.mjs +44 -47
  220. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
  222. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +24 -18
  224. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-input-month.mjs +27 -21
  226. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-input-number.mjs +60 -77
  228. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +122 -138
  230. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +32 -23
  232. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +20 -11
  234. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-input-range.mjs +33 -29
  236. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +36 -45
  238. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-input-time.mjs +64 -70
  240. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-input-year.mjs +26 -18
  242. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -16
  244. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-like.mjs +6 -6
  246. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -82
  248. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -12
  250. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +37 -48
  252. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +37 -33
  254. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -8
  256. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-pagination.mjs +69 -140
  258. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  260. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-preview.mjs +59 -50
  262. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-progress.mjs +76 -81
  264. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  266. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-push.mjs +49 -57
  268. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  270. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -9
  272. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-range.mjs +41 -85
  274. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  276. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  278. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  280. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-components-select.mjs +82 -62
  282. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-components-slider.mjs +74 -82
  284. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-components-slides.mjs +16 -24
  286. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  288. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-components-stepper.mjs +45 -79
  290. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  292. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-components-tabs.mjs +36 -47
  294. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-components-textarea.mjs +54 -62
  296. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -15
  298. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-components-toast.mjs +164 -0
  300. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  301. package/fesm2022/taiga-ui-kit-components-tree.mjs +59 -63
  302. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-components.mjs +3 -1
  304. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  306. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  308. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  310. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
  312. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -15
  314. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  316. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-directives-fade.mjs +15 -17
  318. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  319. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  320. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  321. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -4
  322. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  323. package/fesm2022/taiga-ui-kit-directives-password.mjs +12 -14
  324. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  325. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -4
  326. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  327. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  328. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  329. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  330. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  331. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
  332. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  333. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +17 -22
  334. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  335. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +6 -8
  336. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  337. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -5
  338. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  339. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  340. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  342. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  343. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  344. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  345. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  346. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  347. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +31 -0
  348. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  349. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  350. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  351. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  352. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  353. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -5
  354. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  355. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  356. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  357. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  358. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  359. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
  360. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  361. package/fesm2022/taiga-ui-kit-tokens.mjs +7 -25
  362. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  363. package/fesm2022/taiga-ui-kit-utils.mjs +2 -8
  364. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  365. package/package.json +54 -46
  366. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  367. package/pipes/auto-color/index.d.ts +1 -0
  368. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  369. package/pipes/flag/flag.pipe.d.ts +14 -0
  370. package/pipes/flag/index.d.ts +1 -0
  371. package/pipes/index.d.ts +3 -1
  372. package/pipes/initials/index.d.ts +1 -0
  373. package/pipes/initials/initials.pipe.d.ts +7 -0
  374. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  375. package/styles/components/badge.less +1 -0
  376. package/styles/components/checkbox.less +1 -1
  377. package/styles/components/chip.less +12 -1
  378. package/styles/components/pin.less +0 -1
  379. package/styles/components/radio.less +1 -1
  380. package/styles/components/switch.less +1 -1
  381. package/styles/components/toast.less +44 -0
  382. package/tokens/i18n.d.ts +25 -26
  383. package/tokens/index.d.ts +0 -1
  384. package/tokens/items-handlers.d.ts +1 -7
  385. package/tokens/preview-icons.d.ts +1 -3
  386. package/utils/index.d.ts +0 -1
  387. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  388. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  389. package/components/accordion/accordion-item.component.d.ts +0 -25
  390. package/components/action-bar/action-bar.d.ts +0 -3
  391. package/components/action-bar/action-bar.directive.d.ts +0 -6
  392. package/components/pdf-viewer/index.d.ts +0 -4
  393. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  394. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  395. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  396. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  397. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  398. package/directives/lazy-loading/index.d.ts +0 -2
  399. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  400. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  401. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  402. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  403. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  404. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  405. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -119
  406. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  407. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  408. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  409. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  410. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  411. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  412. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  413. package/pipes/field-error/index.d.ts +0 -2
  414. package/tokens/validation-errors.d.ts +0 -5
  415. package/utils/phone.d.ts +0 -3
  416. /package/{directives → components}/copy/copy.d.ts +0 -0
  417. /package/{directives → components}/copy/copy.options.d.ts +0 -0
  418. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1 +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 signal,\n} from '@angular/core';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n TuiTextfieldDirective,\n TuiWithTextfield,\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: [TuiWithTextfield],\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 textfield = inject(TuiTextfieldDirective);\n\n protected readonly isFlat = tuiIsFlat;\n protected readonly placeholder = signal('');\n protected readonly itemsHandlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n\n protected readonly stringified = computed((value = this.value()) =>\n tuiIsPresent(value) ? this.itemsHandlers.stringify()(value) : '',\n );\n\n protected readonly showPlaceholder = computed(\n () => this.placeholder() && !this.stringified(),\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 this.textfield.value.set(this.stringified());\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n @Input()\n public items: ReadonlyArray<readonly T[]> | readonly T[] | null = [];\n\n @Input()\n public labels: readonly string[] = [];\n\n // TODO(v5): use signal inputs\n @Input('placeholder')\n public set placeholderSetter(x: string) {\n this.placeholder.set(x);\n }\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\n this.onChange(items[index - (this.showPlaceholder() ? 1 : 0)] ?? null);\n }\n}\n","@if (showPlaceholder()) {\n <option\n disabled\n selected\n value=\"\"\n >\n {{ placeholder() }}\n </option>\n}\n\n@if (items && !isFlat(items)) {\n @for (group of labels; track group; let index = $index) {\n <optgroup [label]=\"labels[index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[index]}\" />\n </optgroup>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track 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, 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 <input\n tuiCheckbox\n type=\"checkbox\"\n class=\"t-check\"\n [checked]=\"selected()\"\n [size]=\"datalist.size === 'l' ? 'm' : 's'\"\n />\n `,\n styleUrls: ['./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 {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n tuiAsTextfieldAccessor,\n TuiSelectLike,\n type TuiTextfieldAccessor,\n TuiTextfieldDirective,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {tuiDropdownEnabled, tuiDropdownOpen} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\n\nimport {TuiSelectOption} from './select-option/select-option.component';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiSelect]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsTextfieldAccessor(TuiSelectDirective),\n tuiAsControl(TuiSelectDirective),\n ],\n hostDirectives: [TuiWithTextfield, 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 textfield = inject(TuiTextfieldDirective);\n private readonly open = tuiDropdownOpen();\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.textfield.value.set(string);\n }, TUI_ALLOW_SIGNAL_WRITES);\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 {TuiNativeSelect} from './native-select/native-select.component';\nimport {TuiSelectDirective} from './select.directive';\n\nexport const TuiSelect = [TuiSelectDirective, TuiNativeSelect] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;AAsCM,MAAO,eACT,SAAQ,UAAoB,CAAA;AAdhC,IAAA,WAAA,GAAA;;AAiBqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC;QAEvC,IAAM,CAAA,MAAA,GAAG,SAAS;AAClB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,EAAE,CAAC;AACxB,QAAA,IAAA,CAAA,aAAa,GAAwB,MAAM,CAAC,kBAAkB,CAAC;AAE/D,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,KAC3D,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CACnE;AAEkB,QAAA,IAAA,CAAA,eAAe,GAAG,QAAQ,CACzC,MAAM,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAClD;AAEkB,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CACpC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,KACjB,CAAC,C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SAAS,EAAE;wBACP,kBAAkB,CAAC,eAAe,CAAC;AACnC,wBAAA,sBAAsB,CAAoB,kBAAA,CAAA;AAC1C,wBAAA,YAAY,CAAoB,kBAAA,CAAA;AACnC,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,aAAa,CAAC;AACjD,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,wDAAwD;AACtE,qBAAA;AACJ,iBAAA;;;MC9BY,SAAS,GAAG,CAAC,kBAAkB,EAAE,eAAe;;ACH7D;;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 {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';\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,QAAA,IAAA,CAAA,aAAa,GAAwB,MAAM,CAAC,kBAAkB,CAAC;AAC/D,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,KAC3D,YAAY,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CACnE;AAEkB,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CACpC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,KACjB,CAAC,CAAI,KACD,YAAY,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAChF;AAEkB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,MAAK;AACzC;;;;;;;;;AASG;AACH,YAAA,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;AACvB,gBAAA,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CA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AA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAOQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAb9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,SAAS,EAAE;wBACP,kBAAkB,CAAC,eAAe,CAAC;AACnC,wBAAA,sBAAsB,CAAoB,kBAAA,CAAA;AAC1C,wBAAA,YAAY,CAAoB,kBAAA,CAAA;AACnC,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;AAC7C,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,wDAAwD;AACtE,qBAAA;AACJ,iBAAA;;;ACpBY,MAAA,SAAS,GAAG;IACrB,kBAAkB;IAClB,eAAe;IACf,QAAQ;IACR,qBAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AChBtB;;AAEG;;;;"}
@@ -1,20 +1,21 @@
1
1
  import { tuiRound } from '@taiga-ui/cdk/utils/math';
2
2
  import { __decorate } from 'tslib';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, inject, signal, computed, Input, ChangeDetectionStrategy, Component, INJECTOR, Directive, forwardRef, ContentChild } from '@angular/core';
4
+ import { inject, signal, computed, Input, ChangeDetectionStrategy, Component, INJECTOR, input, Directive, ContentChild } from '@angular/core';
5
5
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
6
  import { NgControl, NgModel } from '@angular/forms';
7
- import { TuiControl } from '@taiga-ui/cdk/classes';
7
+ import { TuiControl, TUI_IDENTITY_VALUE_TRANSFORMER } from '@taiga-ui/cdk/classes';
8
8
  import { tuiWatch, tuiControlValue, tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
9
9
  import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
10
- import { tuiProvideOptions, tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
10
+ import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
11
11
  import { take, timer, switchMap, merge, tap, map, combineLatest, filter } from 'rxjs';
12
12
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
13
13
  import { tuiAsAuxiliary } from '@taiga-ui/core/tokens';
14
+ import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
14
15
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
15
16
  import { DOCUMENT, AsyncPipe } from '@angular/common';
16
17
  import { TUI_TRUE_HANDLER, TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
17
- import { tuiHintOptionsProvider } from '@taiga-ui/core/directives/hint';
18
+ import { tuiHintOptionsProvider } from '@taiga-ui/core/portals/hint';
18
19
 
19
20
  /**
20
21
  * Used as a limit for eliminating JS issues with floating point math
@@ -38,15 +39,13 @@ function tuiKeyStepValueToPercentage(value, keySteps) {
38
39
  const ratio = (value - lowerStepValue) / (upperStepValue - lowerStepValue) || 0;
39
40
  return (upperStepPercent - lowerStepPercent) * ratio + lowerStepPercent;
40
41
  }
41
- function tuiCreateKeyStepsTransformer(keySteps, slider) {
42
+ function tuiCreateKeyStepsTransformer(keySteps) {
42
43
  return new (class {
43
44
  fromControlValue(controlValue) {
44
- const newValuePercentage = tuiKeyStepValueToPercentage(controlValue, keySteps);
45
- return (newValuePercentage * (slider.max - slider.min)) / 100 + slider.min;
45
+ return tuiKeyStepValueToPercentage(controlValue, keySteps) / 100;
46
46
  }
47
- toControlValue(nativeValue) {
48
- const valueRatio = (nativeValue - slider.min) / (slider.max - slider.min) || 0;
49
- return tuiPercentageToKeyStepValue(valueRatio * 100, keySteps);
47
+ toControlValue(ratio) {
48
+ return tuiPercentageToKeyStepValue(ratio * 100, keySteps);
50
49
  }
51
50
  })();
52
51
  }
@@ -55,15 +54,7 @@ const TUI_SLIDER_DEFAULT_OPTIONS = {
55
54
  size: 'm',
56
55
  trackColor: 'var(--tui-background-neutral-2)',
57
56
  };
58
- /**
59
- * Default parameters for Slider component
60
- */
61
- const TUI_SLIDER_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_SLIDER_OPTIONS' : '', {
62
- factory: () => TUI_SLIDER_DEFAULT_OPTIONS,
63
- });
64
- function tuiSliderOptionsProvider(options) {
65
- return tuiProvideOptions(TUI_SLIDER_OPTIONS, options, TUI_SLIDER_DEFAULT_OPTIONS);
66
- }
57
+ const [TUI_SLIDER_OPTIONS, tuiSliderOptionsProvider] = tuiCreateOptions(TUI_SLIDER_DEFAULT_OPTIONS);
67
58
 
68
59
  class TuiSliderComponent {
69
60
  constructor() {
@@ -125,8 +116,8 @@ class TuiSliderComponent {
125
116
  */
126
117
  if (this.control instanceof NgModel) {
127
118
  const transformer = this.keySteps?.transformer();
128
- const value = transformer
129
- ? transformer.fromControlValue(this.control.value)
119
+ const value = this.keySteps && transformer
120
+ ? this.keySteps.toSliderValue(transformer.fromControlValue(this.control.value))
130
121
  : this.control.viewModel;
131
122
  return this.step
132
123
  ? tuiRound(Math.round(value / this.step) * this.step, TUI_FLOATING_PRECISION)
@@ -149,12 +140,12 @@ class TuiSliderComponent {
149
140
  transparent ${segment}% ${percentages[index + 1] ?? 100}%${percentages[index + 1] ? ',' : ')'}
150
141
  `, `linear-gradient(to right, transparent 0 ${percentages[0]}%,`);
151
142
  }
152
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
153
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.15", type: TuiSliderComponent, isStandalone: true, selector: "input[type=range][tuiSlider]", inputs: { size: "size", segmentsSetter: ["segments", "segmentsSetter", (x) => Array.isArray(x) ? x : new Array(x).fill(null).map((_, i) => i / x)] }, host: { listeners: { "input": "0" }, properties: { "style.--tui-slider-track-color": "options.trackColor", "style.--tui-ticks-gradient": "ticksGradient()", "style.--tui-slider-fill-ratio": "valueRatio", "attr.data-size": "size" } }, providers: [tuiAsAuxiliary(TuiSliderComponent)], ngImport: i0, template: '', isInline: true, styles: [":host{--t-tick-thickness: .25rem;position:relative;display:block;inline-size:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;block-size:1rem;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m);--tui-thickness: .125rem}:host:active{cursor:ew-resize}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host[data-size=s]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.5rem;block-size:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=s]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host[data-size=m]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.75rem;block-size:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=m]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host::-webkit-slider-container{border-radius:inherit}:host[data-size=m]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .75rem),auto}:host[data-size=s]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .5rem),auto}:host[data-size=m]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .75rem)}:host[data-size=s]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .5rem)}:host[data-size=m]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=m]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host::-moz-range-progress{border-radius:inherit}:host::-moz-range-progress{block-size:var(--tui-thickness);background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}:host-context(tui-textfield) :host([type=\"range\"]){--tui-radius: var(--tui-radius-m);top:100%;left:calc(var(--tui-radius) / 2);right:calc(var(--tui-radius) / 2);inline-size:calc(100% - calc(var(--tui-radius) / 2) * 2);block-size:1rem;margin:calc(-.5rem - var(--tui-thickness) / 2) 0 0;padding:0;border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius) * 10) calc(var(--tui-radius) * 2);pointer-events:auto}:host-context(tui-textfield[data-size=\"l\"]) :host([type=\"range\"]){--tui-radius: var(--tui-radius-l)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
144
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.16", type: TuiSliderComponent, isStandalone: true, selector: "input[type=range][tuiSlider]", inputs: { size: "size", segmentsSetter: ["segments", "segmentsSetter", (x) => Array.isArray(x) ? x : Array.from({ length: x }, (_, i) => i / x)] }, host: { listeners: { "input": "0" }, properties: { "style.--tui-slider-track-color": "options.trackColor", "style.--tui-ticks-gradient": "ticksGradient()", "style.--tui-slider-fill-ratio": "valueRatio", "attr.data-size": "size" } }, providers: [tuiAsAuxiliary(TuiSliderComponent)], ngImport: i0, template: '', isInline: true, styles: [":host{--t-tick-thickness: .25rem;position:relative;display:block;inline-size:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;block-size:1rem;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m);--tui-thickness: .125rem}:host:active{cursor:ew-resize}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host[data-size=s]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.5rem;block-size:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=s]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host[data-size=m]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.75rem;block-size:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=m]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host::-webkit-slider-container{border-radius:inherit}:host[data-size=m]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .75rem),auto}:host[data-size=s]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .5rem),auto}:host[data-size=m]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .75rem)}:host[data-size=s]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .5rem)}:host[data-size=m]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=m]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host::-moz-range-progress{border-radius:inherit}:host::-moz-range-progress{block-size:var(--tui-thickness);background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}:host-context(tui-textfield) :host([type=\"range\"]){top:100%;left:var(--t-padding);right:var(--t-padding);inline-size:calc(100% - var(--t-padding) * 2);block-size:1rem;margin:calc(-.5rem - var(--tui-thickness) / 2) 0 0;padding:0;pointer-events:auto}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
154
145
  }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderComponent, decorators: [{
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderComponent, decorators: [{
156
147
  type: Component,
157
- args: [{ standalone: true, selector: 'input[type=range][tuiSlider]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsAuxiliary(TuiSliderComponent)], host: {
148
+ args: [{ selector: 'input[type=range][tuiSlider]', template: '', changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsAuxiliary(TuiSliderComponent)], host: {
158
149
  /**
159
150
  * For change detection.
160
151
  * Webkit does not have built-in method for customization of filling progress (as Firefox).
@@ -166,14 +157,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
166
157
  '[style.--tui-ticks-gradient]': 'ticksGradient()',
167
158
  '[style.--tui-slider-fill-ratio]': 'valueRatio',
168
159
  '[attr.data-size]': 'size',
169
- }, styles: [":host{--t-tick-thickness: .25rem;position:relative;display:block;inline-size:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;block-size:1rem;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m);--tui-thickness: .125rem}:host:active{cursor:ew-resize}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host[data-size=s]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.5rem;block-size:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=s]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host[data-size=m]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.75rem;block-size:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=m]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host::-webkit-slider-container{border-radius:inherit}:host[data-size=m]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .75rem),auto}:host[data-size=s]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .5rem),auto}:host[data-size=m]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .75rem)}:host[data-size=s]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .5rem)}:host[data-size=m]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=m]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host::-moz-range-progress{border-radius:inherit}:host::-moz-range-progress{block-size:var(--tui-thickness);background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}:host-context(tui-textfield) :host([type=\"range\"]){--tui-radius: var(--tui-radius-m);top:100%;left:calc(var(--tui-radius) / 2);right:calc(var(--tui-radius) / 2);inline-size:calc(100% - calc(var(--tui-radius) / 2) * 2);block-size:1rem;margin:calc(-.5rem - var(--tui-thickness) / 2) 0 0;padding:0;border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius) * 10) calc(var(--tui-radius) * 2);pointer-events:auto}:host-context(tui-textfield[data-size=\"l\"]) :host([type=\"range\"]){--tui-radius: var(--tui-radius-l)}\n"] }]
160
+ }, styles: [":host{--t-tick-thickness: .25rem;position:relative;display:block;inline-size:100%;color:var(--tui-background-accent-1);cursor:pointer;-webkit-appearance:none;appearance:none;block-size:1rem;background-color:transparent;background-clip:content-box;outline:none;border-radius:var(--tui-radius-m);--tui-thickness: .125rem}:host:active{cursor:ew-resize}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host[data-size=s]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.5rem;block-size:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .5rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=s]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host[data-size=m]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:var(--t-left);inset-inline-start:var(--t-left);inline-size:.75rem;block-size:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));--t-left: calc(var(--tui-slider-fill-ratio) * 100% - var(--tui-slider-fill-ratio) * .75rem);content:\"\";cursor:ew-resize;background:currentColor;opacity:0}:host[data-size=m]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}:host::-webkit-slider-container{border-radius:inherit}:host[data-size=m]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .75rem),auto}:host[data-size=s]::-webkit-slider-runnable-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient),linear-gradient(to var(--tui-inline-end),currentColor calc(100% * var(--tui-slider-fill-ratio)),transparent calc(100% * var(--tui-slider-fill-ratio)));background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2),0;background-size:calc(100% - .5rem),auto}:host[data-size=m]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.75rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .75rem)}:host[data-size=s]::-moz-range-track{block-size:var(--tui-thickness);border-radius:inherit;background-repeat:no-repeat;background-color:var(--tui-slider-track-color);background-image:var(--tui-ticks-gradient);background-position-x:calc((.5rem - var(--t-tick-thickness)) / 2);background-size:calc(100% - .5rem)}:host[data-size=m]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-webkit-slider-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-block-start:calc(var(--tui-thickness) / 2 - (1rem / 2))}:not(:disabled):host[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-webkit-slider-thumb:hover,:active:not(:disabled):host[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=m]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.75rem;inline-size:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=m]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}:focus-visible:host[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host[data-size=s]::-moz-range-thumb{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;block-size:.5rem;inline-size:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-inline-start:0;border-inline-end:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled):host[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled):host[data-size=s]::-moz-range-thumb:hover,:active:not(:disabled):host[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}:focus-visible:host[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-border-focus)}:host::-moz-range-progress{border-radius:inherit}:host::-moz-range-progress{block-size:var(--tui-thickness);background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}:host-context(tui-textfield) :host([type=\"range\"]){top:100%;left:var(--t-padding);right:var(--t-padding);inline-size:calc(100% - var(--t-padding) * 2);block-size:1rem;margin:calc(-.5rem - var(--tui-thickness) / 2) 0 0;padding:0;pointer-events:auto}\n"] }]
170
161
  }], ctorParameters: () => [], propDecorators: { size: [{
171
162
  type: Input
172
163
  }], segmentsSetter: [{
173
164
  type: Input,
174
165
  args: [{
175
166
  alias: 'segments',
176
- transform: (x) => Array.isArray(x) ? x : new Array(x).fill(null).map((_, i) => i / x),
167
+ transform: (x) => Array.isArray(x) ? x : Array.from({ length: x }, (_, i) => i / x),
177
168
  }]
178
169
  }] } });
179
170
 
@@ -181,32 +172,13 @@ class TuiSliderKeyStepsBase {
181
172
  constructor() {
182
173
  this.injector = inject(INJECTOR);
183
174
  this.control = inject(NgControl, { self: true, optional: true });
184
- this.step = 1;
175
+ this.min = signal(undefined);
176
+ this.max = signal(undefined);
177
+ this.step = input(1);
185
178
  this.transformer = signal(null);
186
- this.value = toSignal(timer(0) // https://github.com/angular/angular/issues/54418
179
+ this.controlValue = toSignal(timer(0) // https://github.com/angular/angular/issues/54418
187
180
  .pipe(switchMap(() => tuiControlValue(this.control))));
188
- }
189
- get slider() {
190
- return this.injector.get(TuiSliderComponent);
191
- }
192
- set keySteps(steps) {
193
- this.transformer.set(steps && tuiCreateKeyStepsTransformer(steps, this.slider));
194
- this.min = steps?.[0][1];
195
- this.max = steps?.[steps.length - 1]?.[1];
196
- }
197
- /**
198
- * TODO(v5): standardize logic between `TuiSlider` & `TuiInputSlider` & `Range` & `InputRange`
199
- * For non-linear slider (with `[keySteps]` property) `step` means percentage
200
- * Add these host-bindings to `TuiSliderKeyStepsBase`:
201
- * ```
202
- * host: {
203
- * '[attr.min]': '0',
204
- * '[attr.step]': '1',
205
- * '[attr.max]': 'totalSteps',
206
- * },
207
- * ```
208
- */
209
- get totalSteps() {
181
+ this.totalSteps = computed(() =>
210
182
  /**
211
183
  * Not-integer amount of steps is invalid usage of native sliders
212
184
  * ```html
@@ -214,59 +186,80 @@ class TuiSliderKeyStepsBase {
214
186
  * ```
215
187
  * (impossible to select 100; 99.9 is max allowed value)
216
188
  */
217
- return this.step ? Math.round(100 / this.step) : Infinity;
189
+ Math.round(100 / this.step()));
190
+ }
191
+ get slider() {
192
+ return this.injector.get(TuiSliderComponent);
193
+ }
194
+ set keySteps(steps) {
195
+ this.transformer.set(steps && tuiCreateKeyStepsTransformer(steps));
196
+ this.min.set(steps?.[0][1]);
197
+ this.max.set(steps?.[steps.length - 1]?.[1]);
218
198
  }
219
199
  takeStep(coefficient) {
220
200
  const newValue = this.slider.value + coefficient;
221
- return (this.transformer()?.toControlValue(this.slider.value + coefficient) ??
222
- newValue);
201
+ return (this.transformer()?.toControlValue((this.slider.value + coefficient) / this.totalSteps()) ?? newValue);
202
+ }
203
+ toSliderValue(fraction) {
204
+ return this.transformer() ? fraction * this.totalSteps() : fraction;
223
205
  }
224
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderKeyStepsBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
225
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.15", type: TuiSliderKeyStepsBase, isStandalone: true, selector: "input[tuiSlider][keySteps]", inputs: { step: ["step", "step", (x) => (x === 'any' ? null : x)], keySteps: "keySteps" }, host: { properties: { "attr.aria-valuemin": "min", "attr.aria-valuemax": "max", "attr.aria-valuenow": "value()" } }, ngImport: i0 }); }
206
+ setControlValue(controlValue) {
207
+ const fraction = this.transformer()?.fromControlValue(controlValue) ?? controlValue;
208
+ this.slider.value = this.toSliderValue(fraction);
209
+ }
210
+ getControlValue() {
211
+ const { value } = this.slider;
212
+ return this.transformer()?.toControlValue(value / this.totalSteps()) ?? value;
213
+ }
214
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderKeyStepsBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
215
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.16", type: TuiSliderKeyStepsBase, isStandalone: true, selector: "input[tuiSlider][keySteps]", inputs: { step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, keySteps: { classPropertyName: "keySteps", publicName: "keySteps", isSignal: false, isRequired: false, transformFunction: null } }, host: { properties: { "attr.min": "transformer() ? 0 : slider.min", "attr.step": "transformer() ? 1 : step()", "attr.max": "transformer() ? totalSteps() : slider.max", "attr.aria-valuemin": "min()", "attr.aria-valuemax": "max()", "attr.aria-valuenow": "controlValue()" } }, ngImport: i0 }); }
226
216
  }
227
217
  __decorate([
228
218
  tuiPure
229
219
  ], TuiSliderKeyStepsBase.prototype, "slider", null);
230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderKeyStepsBase, decorators: [{
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderKeyStepsBase, decorators: [{
231
221
  type: Directive,
232
222
  args: [{
233
- standalone: true,
234
223
  selector: 'input[tuiSlider][keySteps]',
235
224
  host: {
236
- '[attr.aria-valuemin]': 'min',
237
- '[attr.aria-valuemax]': 'max',
238
- '[attr.aria-valuenow]': 'value()',
225
+ '[attr.min]': 'transformer() ? 0 : slider.min',
226
+ '[attr.step]': 'transformer() ? 1 : step()',
227
+ '[attr.max]': 'transformer() ? totalSteps() : slider.max',
228
+ '[attr.aria-valuemin]': 'min()',
229
+ '[attr.aria-valuemax]': 'max()',
230
+ '[attr.aria-valuenow]': 'controlValue()',
239
231
  },
240
232
  }]
241
- }], propDecorators: { step: [{
242
- type: Input,
243
- args: [{ transform: (x) => (x === 'any' ? null : x) }]
244
- }], slider: [], keySteps: [{
233
+ }], propDecorators: { slider: [], keySteps: [{
245
234
  type: Input
246
235
  }] } });
247
236
  class TuiSliderKeySteps extends TuiControl {
248
237
  constructor() {
249
238
  super(...arguments);
250
- this.slider = inject(forwardRef(() => TuiSliderComponent));
239
+ this.base = inject(TuiSliderKeyStepsBase);
251
240
  }
252
241
  set keySteps(steps) {
253
- this.transformer = tuiCreateKeyStepsTransformer(steps, this.slider);
242
+ this.transformer = steps
243
+ ? tuiCreateKeyStepsTransformer(steps)
244
+ : TUI_IDENTITY_VALUE_TRANSFORMER;
245
+ }
246
+ setValue(sliderValue) {
247
+ this.onChange(this.base.transformer() ? sliderValue / this.base.totalSteps() : sliderValue);
254
248
  }
255
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderKeySteps, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
256
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiSliderKeySteps, isStandalone: true, selector: "input[tuiSlider][keySteps][ngModel],input[tuiSlider][keySteps][formControl],input[tuiSlider][keySteps][formControlName]", inputs: { keySteps: "keySteps" }, host: { listeners: { "blur": "onTouched()", "input": "onChange($event.target.value)", "change": "onChange($event.target.value)" }, properties: { "value": "value()", "disabled": "disabled()" } }, providers: [tuiFallbackValueProvider(0)], usesInheritance: true, ngImport: i0 }); }
249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderKeySteps, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
250
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiSliderKeySteps, isStandalone: true, selector: "input[tuiSlider][keySteps][ngModel],input[tuiSlider][keySteps][formControl],input[tuiSlider][keySteps][formControlName]", inputs: { keySteps: "keySteps" }, host: { listeners: { "blur": "onTouched()", "input": "setValue($event.target.value)", "change": "setValue($event.target.value)" }, properties: { "value": "base.toSliderValue(value())", "disabled": "disabled()" } }, providers: [tuiFallbackValueProvider(0)], usesInheritance: true, ngImport: i0 }); }
257
251
  }
258
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderKeySteps, decorators: [{
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderKeySteps, decorators: [{
259
253
  type: Directive,
260
254
  args: [{
261
- standalone: true,
262
255
  selector: 'input[tuiSlider][keySteps][ngModel],input[tuiSlider][keySteps][formControl],input[tuiSlider][keySteps][formControlName]',
263
256
  providers: [tuiFallbackValueProvider(0)],
264
257
  host: {
265
- '[value]': 'value()',
258
+ '[value]': 'base.toSliderValue(value())',
266
259
  '[disabled]': 'disabled()',
267
260
  '(blur)': 'onTouched()',
268
- '(input)': 'onChange($event.target.value)',
269
- '(change)': 'onChange($event.target.value)',
261
+ '(input)': 'setValue($event.target.value)',
262
+ '(change)': 'setValue($event.target.value)',
270
263
  },
271
264
  }]
272
265
  }], propDecorators: { keySteps: [{
@@ -320,13 +313,12 @@ class TuiSliderReadonly {
320
313
  this.preventEvent(event);
321
314
  }
322
315
  }
323
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderReadonly, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
324
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.15", type: TuiSliderReadonly, isStandalone: true, selector: "input[tuiSlider][readonly]", inputs: { readonly: ["readonly", "readonly", coerceBooleanProperty] }, host: { listeners: { "keydown": "preventKeyboardInteraction($event)", "mousedown": "preventEvent($event)" } }, ngImport: i0 }); }
316
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderReadonly, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
317
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.16", type: TuiSliderReadonly, isStandalone: true, selector: "input[tuiSlider][readonly]", inputs: { readonly: ["readonly", "readonly", coerceBooleanProperty] }, host: { listeners: { "keydown": "preventKeyboardInteraction($event)", "mousedown": "preventEvent($event)" } }, ngImport: i0 }); }
325
318
  }
326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderReadonly, decorators: [{
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderReadonly, decorators: [{
327
320
  type: Directive,
328
321
  args: [{
329
- standalone: true,
330
322
  selector: 'input[tuiSlider][readonly]',
331
323
  host: {
332
324
  '(keydown)': 'preventKeyboardInteraction($event)',
@@ -354,12 +346,12 @@ class TuiSliderThumbLabel {
354
346
  get ghostStart() {
355
347
  return this.ratio * (this.slider?.el.offsetWidth || 0);
356
348
  }
357
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderThumbLabel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
358
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiSliderThumbLabel, isStandalone: true, selector: "[tuiSliderThumbLabel]", providers: [tuiHintOptionsProvider({ direction: 'top', appearance: 'dark' })], queries: [{ propertyName: "slider", first: true, predicate: TuiSliderComponent, descendants: true }, { propertyName: "control", first: true, predicate: NgControl, descendants: true }], ngImport: i0, template: "@if (control?.valueChanges | async) {}\n\n<div\n class=\"t-ghost\"\n [attr.data-size]=\"size\"\n [style.--tui-slider-thumb-ratio]=\"ratio\"\n [style.inset-inline-start.px]=\"ghostStart\"\n [style.left.px]=\"ghostStart\"\n>\n <ng-content />\n</div>\n\n<ng-content select=\"input[type=range]\" />\n", styles: [":host{position:relative}.t-ghost{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s]{inline-size:.5rem;block-size:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem * var(--tui-inline)))}.t-ghost[data-size=m]{inline-size:.75rem;block-size:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem * var(--tui-inline)))}@supports (inset-inline-end: 0){:host-context([dir=\"rtl\"]) .t-ghost{left:unset!important}}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderThumbLabel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
350
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiSliderThumbLabel, isStandalone: true, selector: "[tuiSliderThumbLabel]", providers: [tuiHintOptionsProvider({ direction: 'top', appearance: 'floating' })], queries: [{ propertyName: "slider", first: true, predicate: TuiSliderComponent, descendants: true }, { propertyName: "control", first: true, predicate: NgControl, descendants: true }], ngImport: i0, template: "@if (control?.valueChanges | async) {}\n\n<div\n class=\"t-ghost\"\n [attr.data-size]=\"size\"\n [style.--tui-slider-thumb-ratio]=\"ratio\"\n [style.inset-inline-start.px]=\"ghostStart\"\n>\n <ng-content />\n</div>\n\n<ng-content select=\"input[type=range]\" />\n", styles: [":host{position:relative}.t-ghost{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s]{inline-size:.5rem;block-size:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem * var(--tui-inline)))}.t-ghost[data-size=m]{inline-size:.75rem;block-size:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem * var(--tui-inline)))}@supports (inset-inline-end: 0){:host-context([dir=\"rtl\"]) .t-ghost{left:unset!important}}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
359
351
  }
360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSliderThumbLabel, decorators: [{
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSliderThumbLabel, decorators: [{
361
353
  type: Component,
362
- args: [{ selector: '[tuiSliderThumbLabel]', imports: [AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiHintOptionsProvider({ direction: 'top', appearance: 'dark' })], template: "@if (control?.valueChanges | async) {}\n\n<div\n class=\"t-ghost\"\n [attr.data-size]=\"size\"\n [style.--tui-slider-thumb-ratio]=\"ratio\"\n [style.inset-inline-start.px]=\"ghostStart\"\n [style.left.px]=\"ghostStart\"\n>\n <ng-content />\n</div>\n\n<ng-content select=\"input[type=range]\" />\n", styles: [":host{position:relative}.t-ghost{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s]{inline-size:.5rem;block-size:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem * var(--tui-inline)))}.t-ghost[data-size=m]{inline-size:.75rem;block-size:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem * var(--tui-inline)))}@supports (inset-inline-end: 0){:host-context([dir=\"rtl\"]) .t-ghost{left:unset!important}}\n"] }]
354
+ args: [{ selector: '[tuiSliderThumbLabel]', imports: [AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiHintOptionsProvider({ direction: 'top', appearance: 'floating' })], template: "@if (control?.valueChanges | async) {}\n\n<div\n class=\"t-ghost\"\n [attr.data-size]=\"size\"\n [style.--tui-slider-thumb-ratio]=\"ratio\"\n [style.inset-inline-start.px]=\"ghostStart\"\n>\n <ng-content />\n</div>\n\n<ng-content select=\"input[type=range]\" />\n", styles: [":host{position:relative}.t-ghost{position:absolute;top:0;bottom:0;margin:auto;border-radius:50%;pointer-events:none}.t-ghost[data-size=s]{inline-size:.5rem;block-size:.5rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.5rem * var(--tui-inline)))}.t-ghost[data-size=m]{inline-size:.75rem;block-size:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem * var(--tui-inline)))}@supports (inset-inline-end: 0){:host-context([dir=\"rtl\"]) .t-ghost{left:unset!important}}\n"] }]
363
355
  }], propDecorators: { slider: [{
364
356
  type: ContentChild,
365
357
  args: [TuiSliderComponent]