@taiga-ui/kit 4.52.0-canary.d626d20 → 4.52.0-canary.e07790b

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 (967) 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/avatar/avatar.directive.d.ts +15 -0
  10. package/components/avatar/avatar.options.d.ts +1 -4
  11. package/components/avatar/index.d.ts +1 -1
  12. package/components/badge/badge.directive.d.ts +2 -2
  13. package/components/badge/badge.options.d.ts +1 -3
  14. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  15. package/components/block/block.directive.d.ts +4 -4
  16. package/components/block/block.options.d.ts +2 -4
  17. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  18. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  19. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  20. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  21. package/components/calendar-range/day-range-period.d.ts +2 -1
  22. package/components/checkbox/checkbox.component.d.ts +7 -18
  23. package/components/checkbox/checkbox.options.d.ts +5 -9
  24. package/components/chip/chip.directive.d.ts +2 -4
  25. package/components/chip/chip.options.d.ts +1 -3
  26. package/components/combo-box/combo-box.d.ts +5 -0
  27. package/components/combo-box/combo-box.directive.d.ts +5 -5
  28. package/components/combo-box/index.d.ts +1 -0
  29. package/components/comment/comment.directive.d.ts +2 -2
  30. package/components/confirm/confirm.component.d.ts +5 -3
  31. package/components/confirm/confirm.service.d.ts +3 -2
  32. package/{directives → components}/copy/copy.component.d.ts +2 -2
  33. package/{directives → components}/copy/copy.directive.d.ts +4 -6
  34. package/{directives → components}/copy/copy.options.d.ts +2 -2
  35. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  36. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  37. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  38. package/components/data-list-wrapper/index.d.ts +1 -1
  39. package/components/files/file/file.options.d.ts +2 -2
  40. package/components/files/files/files.component.d.ts +2 -2
  41. package/components/files/input-files/input-files.options.d.ts +1 -3
  42. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  43. package/components/fullscreen/index.d.ts +1 -0
  44. package/components/index.d.ts +3 -5
  45. package/components/input-chip/input-chip.component.d.ts +9 -8
  46. package/components/input-chip/input-chip.d.ts +5 -1
  47. package/components/input-chip/input-chip.directive.d.ts +7 -12
  48. package/components/input-chip/input-chip.options.d.ts +1 -1
  49. package/components/input-color/index.d.ts +1 -0
  50. package/components/input-color/input-color.component.d.ts +6 -5
  51. package/components/input-color/input-color.d.ts +5 -0
  52. package/components/input-color/input-color.options.d.ts +1 -1
  53. package/components/input-date/input-date.d.ts +4 -1
  54. package/components/input-date/input-date.directive.d.ts +12 -14
  55. package/components/input-date/input-date.options.d.ts +3 -3
  56. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  57. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  58. package/components/input-date-range/input-date-range.d.ts +4 -1
  59. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  60. package/components/input-date-range/input-date-range.options.d.ts +2 -2
  61. package/components/input-date-time/input-date-time.d.ts +4 -1
  62. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  63. package/components/input-date-time/input-date-time.options.d.ts +2 -2
  64. package/components/input-month/input-month.d.ts +4 -1
  65. package/components/input-month/input-month.directive.d.ts +6 -5
  66. package/components/input-month-range/input-month-range.d.ts +4 -1
  67. package/components/input-month-range/input-month-range.directive.d.ts +6 -5
  68. package/components/input-number/input-number.d.ts +4 -1
  69. package/components/input-number/input-number.directive.d.ts +7 -11
  70. package/components/input-number/input-number.options.d.ts +1 -1
  71. package/components/input-number/quantum.directive.d.ts +2 -2
  72. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  73. package/components/input-phone/index.d.ts +1 -0
  74. package/components/input-phone/input-phone.d.ts +5 -0
  75. package/components/input-phone/input-phone.directive.d.ts +7 -7
  76. package/components/input-phone/input-phone.options.d.ts +1 -1
  77. package/components/input-phone-international/index.d.ts +1 -0
  78. package/components/input-phone-international/input-phone-international.component.d.ts +26 -32
  79. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  80. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  81. package/components/input-pin/index.d.ts +1 -0
  82. package/components/input-pin/input-pin.component.d.ts +4 -4
  83. package/components/input-pin/input-pin.d.ts +5 -0
  84. package/components/input-range/index.d.ts +0 -1
  85. package/components/input-range/input-range.component.d.ts +11 -14
  86. package/components/input-slider/input-slider.d.ts +4 -1
  87. package/components/input-slider/input-slider.directive.d.ts +3 -5
  88. package/components/input-time/input-time.component.d.ts +1 -3
  89. package/components/input-time/input-time.d.ts +4 -1
  90. package/components/input-time/input-time.directive.d.ts +8 -10
  91. package/components/input-time/input-time.options.d.ts +1 -1
  92. package/components/input-year/input-year.d.ts +4 -1
  93. package/components/input-year/input-year.directive.d.ts +5 -5
  94. package/components/input-year/input-year.options.d.ts +2 -2
  95. package/components/like/like.component.d.ts +4 -11
  96. package/components/like/like.options.d.ts +4 -5
  97. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  98. package/components/line-clamp/line-clamp.component.d.ts +12 -18
  99. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  100. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  101. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  102. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  103. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  104. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  105. package/components/pager/pager.component.d.ts +1 -1
  106. package/components/pagination/index.d.ts +1 -0
  107. package/components/pagination/pagination.component.d.ts +25 -54
  108. package/components/pagination/pagination.options.d.ts +7 -0
  109. package/components/pin/pin.directive.d.ts +2 -2
  110. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  111. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  112. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  113. package/components/preview/index.d.ts +1 -0
  114. package/components/preview/pagination/preview-pagination.component.d.ts +3 -2
  115. package/components/preview/preview.component.d.ts +2 -2
  116. package/components/preview/preview.d.ts +2 -1
  117. package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +1 -3
  118. package/components/preview/zoom/preview-zoom.component.d.ts +4 -2
  119. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  120. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  121. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  122. package/components/progress/progress.options.d.ts +1 -3
  123. package/components/push/push-alert.component.d.ts +4 -3
  124. package/components/push/push.component.d.ts +2 -2
  125. package/components/push/push.directive.d.ts +4 -6
  126. package/components/push/push.options.d.ts +5 -8
  127. package/components/push/push.service.d.ts +6 -2
  128. package/components/radio/radio.component.d.ts +8 -9
  129. package/components/radio/radio.directive.d.ts +2 -2
  130. package/components/radio/radio.options.d.ts +2 -5
  131. package/components/radio-list/radio-list.component.d.ts +5 -3
  132. package/components/range/range-change.directive.d.ts +1 -2
  133. package/components/range/range.component.d.ts +16 -24
  134. package/components/rating/rating.component.d.ts +5 -5
  135. package/components/rating/rating.options.d.ts +6 -6
  136. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  137. package/components/segmented/segmented.component.d.ts +8 -12
  138. package/components/segmented/segmented.directive.d.ts +6 -7
  139. package/components/select/native-select/native-select.component.d.ts +7 -8
  140. package/components/select/select.d.ts +4 -1
  141. package/components/select/select.directive.d.ts +4 -3
  142. package/components/slider/helpers/key-steps.d.ts +1 -2
  143. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  144. package/components/slider/slider.options.d.ts +1 -6
  145. package/components/status/status.directive.d.ts +2 -2
  146. package/components/stepper/step.component.d.ts +6 -8
  147. package/components/stepper/stepper.component.d.ts +6 -11
  148. package/components/switch/switch.component.d.ts +8 -19
  149. package/components/switch/switch.options.d.ts +4 -8
  150. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  151. package/components/tabs/tabs.options.d.ts +1 -6
  152. package/components/textarea/index.d.ts +2 -1
  153. package/components/textarea/textarea.component.d.ts +4 -4
  154. package/components/textarea/textarea.d.ts +6 -0
  155. package/components/textarea/textarea.directive.d.ts +13 -0
  156. package/components/textarea/textarea.options.d.ts +1 -1
  157. package/components/toast/index.d.ts +5 -0
  158. package/components/toast/toast.component.d.ts +18 -0
  159. package/components/toast/toast.d.ts +3 -0
  160. package/components/toast/toast.directive.d.ts +7 -0
  161. package/components/toast/toast.options.d.ts +10 -0
  162. package/components/toast/toast.service.d.ts +17 -0
  163. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  164. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +9 -7
  165. package/components/tree/misc/tree.constants.d.ts +0 -3
  166. package/components/tree/misc/tree.tokens.d.ts +1 -6
  167. package/directives/button-close/button-close.directive.d.ts +2 -1
  168. package/directives/button-select/button-select.directive.d.ts +4 -4
  169. package/directives/chevron/chevron.directive.d.ts +2 -3
  170. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  171. package/directives/fade/fade.directive.d.ts +6 -6
  172. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  173. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  174. package/directives/highlight/highlight.directive.d.ts +8 -11
  175. package/directives/index.d.ts +0 -3
  176. package/directives/password/password.directive.d.ts +1 -1
  177. package/directives/password/password.options.d.ts +1 -1
  178. package/directives/present/present.directive.d.ts +2 -3
  179. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  180. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  181. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  182. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  183. package/directives/tooltip/tooltip.options.d.ts +1 -4
  184. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +2 -2
  185. package/directives/unmask-handler/unmask-handler.directive.d.ts +3 -3
  186. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -146
  187. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
  189. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-avatar.mjs +82 -101
  191. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  193. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-badge.mjs +18 -28
  195. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -9
  197. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  199. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +14 -22
  201. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +7 -8
  203. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +7 -20
  205. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +27 -20
  207. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-carousel.mjs +22 -30
  209. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +18 -76
  211. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-chip.mjs +25 -34
  213. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +43 -33
  215. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  217. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-compass.mjs +6 -6
  219. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -17
  221. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-copy.mjs +113 -0
  223. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  224. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -79
  225. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  227. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-files.mjs +48 -65
  229. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-components-filter.mjs +8 -17
  231. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  233. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  234. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +80 -82
  235. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components-input-color.mjs +31 -23
  237. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +36 -53
  239. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +31 -36
  241. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +35 -33
  243. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-components-input-date.mjs +53 -57
  245. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +6 -7
  247. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +31 -28
  249. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-components-input-month.mjs +40 -32
  251. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-components-input-number.mjs +68 -85
  253. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +123 -142
  255. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  256. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +37 -29
  257. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  258. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +21 -12
  259. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  260. package/fesm2022/taiga-ui-kit-components-input-range.mjs +41 -47
  261. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  262. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +36 -45
  263. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  264. package/fesm2022/taiga-ui-kit-components-input-time.mjs +66 -72
  265. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  266. package/fesm2022/taiga-ui-kit-components-input-year.mjs +31 -23
  267. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  268. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +18 -20
  269. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  270. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  271. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  272. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +42 -92
  273. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  274. package/fesm2022/taiga-ui-kit-components-message.mjs +10 -13
  275. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +56 -65
  277. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +40 -36
  279. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-components-pager.mjs +8 -10
  281. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-components-pagination.mjs +69 -140
  283. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  285. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-components-preview.mjs +75 -57
  287. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  288. package/fesm2022/taiga-ui-kit-components-progress.mjs +78 -83
  289. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-components-pulse.mjs +5 -5
  291. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  292. package/fesm2022/taiga-ui-kit-components-push.mjs +50 -58
  293. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  294. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +10 -11
  295. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  296. package/fesm2022/taiga-ui-kit-components-radio.mjs +35 -41
  297. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  298. package/fesm2022/taiga-ui-kit-components-range.mjs +42 -86
  299. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  300. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  301. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  302. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +13 -9
  303. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  304. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  305. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  306. package/fesm2022/taiga-ui-kit-components-select.mjs +85 -65
  307. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-components-slider.mjs +77 -86
  309. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  310. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  311. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  312. package/fesm2022/taiga-ui-kit-components-stepper.mjs +47 -81
  313. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  314. package/fesm2022/taiga-ui-kit-components-switch.mjs +22 -64
  315. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  316. package/fesm2022/taiga-ui-kit-components-tabs.mjs +39 -52
  317. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-components-textarea.mjs +54 -63
  319. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  320. package/fesm2022/taiga-ui-kit-components-tiles.mjs +15 -16
  321. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  322. package/fesm2022/taiga-ui-kit-components-toast.mjs +164 -0
  323. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  324. package/fesm2022/taiga-ui-kit-components-tree.mjs +64 -84
  325. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  326. package/fesm2022/taiga-ui-kit-components.mjs +3 -5
  327. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  328. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  329. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  330. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +10 -13
  331. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  332. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  333. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  334. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
  335. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  336. package/fesm2022/taiga-ui-kit-directives-connected.mjs +10 -16
  337. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  338. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  339. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  340. package/fesm2022/taiga-ui-kit-directives-fade.mjs +28 -40
  341. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  342. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  343. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  344. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +16 -25
  345. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  346. package/fesm2022/taiga-ui-kit-directives-password.mjs +14 -16
  347. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  348. package/fesm2022/taiga-ui-kit-directives-present.mjs +8 -13
  349. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  350. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  351. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  352. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  353. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  354. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
  355. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  356. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +17 -22
  357. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  358. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +10 -14
  359. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  360. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +10 -15
  361. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  362. package/fesm2022/taiga-ui-kit-directives.mjs +0 -3
  363. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  364. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  365. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  366. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  367. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  368. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  369. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  370. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
  371. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  372. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  373. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  374. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  375. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  376. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -8
  377. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  378. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  379. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  380. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  381. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  382. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
  383. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  384. package/fesm2022/taiga-ui-kit-tokens.mjs +5 -103
  385. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  386. package/fesm2022/taiga-ui-kit-utils.mjs +3 -15
  387. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  388. package/package.json +45 -269
  389. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  390. package/pipes/auto-color/index.d.ts +1 -0
  391. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  392. package/pipes/flag/flag.pipe.d.ts +14 -0
  393. package/pipes/flag/index.d.ts +1 -0
  394. package/pipes/index.d.ts +3 -1
  395. package/pipes/initials/index.d.ts +1 -0
  396. package/pipes/initials/initials.pipe.d.ts +7 -0
  397. package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
  398. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  399. package/styles/components/avatar.less +188 -0
  400. package/styles/components/badge.less +4 -18
  401. package/styles/components/block.less +1 -1
  402. package/styles/components/checkbox.less +17 -16
  403. package/styles/components/chip.less +13 -4
  404. package/styles/components/like.less +15 -17
  405. package/styles/components/pin.less +3 -7
  406. package/styles/components/radio.less +2 -2
  407. package/styles/components/switch.less +14 -14
  408. package/styles/components/toast.less +44 -0
  409. package/tokens/i18n.d.ts +26 -26
  410. package/tokens/index.d.ts +0 -7
  411. package/utils/index.d.ts +0 -2
  412. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  413. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  414. package/components/accordion/accordion-item.component.d.ts +0 -25
  415. package/components/action-bar/action-bar.d.ts +0 -3
  416. package/components/action-bar/action-bar.directive.d.ts +0 -6
  417. package/components/avatar/avatar.component.d.ts +0 -15
  418. package/components/elastic-container/elastic-container.component.d.ts +0 -8
  419. package/components/elastic-container/elastic-container.directive.d.ts +0 -7
  420. package/components/elastic-container/index.d.ts +0 -2
  421. package/components/floating-container/floating-container.directive.d.ts +0 -7
  422. package/components/floating-container/index.d.ts +0 -1
  423. package/components/input-password/index.d.ts +0 -2
  424. package/components/input-password/input-password.component.d.ts +0 -16
  425. package/components/input-password/input-password.options.d.ts +0 -24
  426. package/components/input-range/input-range.d.ts +0 -3
  427. package/components/pdf-viewer/index.d.ts +0 -4
  428. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  429. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  430. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  431. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  432. package/components/slides/index.d.ts +0 -1
  433. package/components/slides/slides.directive.d.ts +0 -11
  434. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  435. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  436. package/directives/icon-badge/index.d.ts +0 -1
  437. package/directives/lazy-loading/index.d.ts +0 -2
  438. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  439. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  440. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  441. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  442. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  443. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  444. package/esm2022/components/accordion/accordion.mjs +0 -11
  445. package/esm2022/components/accordion/index.mjs +0 -6
  446. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  447. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  448. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  449. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  450. package/esm2022/components/action-bar/index.mjs +0 -4
  451. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  452. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  453. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  454. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  455. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  456. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  457. package/esm2022/components/avatar/index.mjs +0 -6
  458. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  459. package/esm2022/components/badge/badge.directive.mjs +0 -42
  460. package/esm2022/components/badge/badge.options.mjs +0 -13
  461. package/esm2022/components/badge/index.mjs +0 -3
  462. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  463. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  464. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  465. package/esm2022/components/badge-notification/index.mjs +0 -3
  466. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  467. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  468. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  469. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  470. package/esm2022/components/badged-content/index.mjs +0 -4
  471. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  472. package/esm2022/components/block/block.directive.mjs +0 -58
  473. package/esm2022/components/block/block.options.mjs +0 -13
  474. package/esm2022/components/block/index.mjs +0 -3
  475. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  476. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  477. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  478. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  479. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  480. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  481. package/esm2022/components/button-loading/index.mjs +0 -2
  482. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  483. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  484. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  485. package/esm2022/components/calendar-month/index.mjs +0 -3
  486. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  487. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  488. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  489. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  490. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  491. package/esm2022/components/calendar-range/index.mjs +0 -5
  492. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  493. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  494. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  495. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  496. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  497. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  498. package/esm2022/components/carousel/carousel.mjs +0 -15
  499. package/esm2022/components/carousel/index.mjs +0 -7
  500. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  501. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  502. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  503. package/esm2022/components/checkbox/index.mjs +0 -3
  504. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  505. package/esm2022/components/chip/chip.directive.mjs +0 -63
  506. package/esm2022/components/chip/chip.options.mjs +0 -13
  507. package/esm2022/components/chip/index.mjs +0 -3
  508. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  509. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  510. package/esm2022/components/combo-box/index.mjs +0 -2
  511. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  512. package/esm2022/components/comment/comment.directive.mjs +0 -35
  513. package/esm2022/components/comment/index.mjs +0 -2
  514. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  515. package/esm2022/components/compass/compass.component.mjs +0 -19
  516. package/esm2022/components/compass/index.mjs +0 -2
  517. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  518. package/esm2022/components/confirm/confirm.component.mjs +0 -28
  519. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  520. package/esm2022/components/confirm/index.mjs +0 -3
  521. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  522. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  523. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  524. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  525. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  526. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  527. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  528. package/esm2022/components/drawer/index.mjs +0 -2
  529. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  530. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  531. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  532. package/esm2022/components/elastic-container/index.mjs +0 -3
  533. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  534. package/esm2022/components/files/file/file.component.mjs +0 -144
  535. package/esm2022/components/files/file/file.options.mjs +0 -16
  536. package/esm2022/components/files/files/files.component.mjs +0 -56
  537. package/esm2022/components/files/files.mjs +0 -15
  538. package/esm2022/components/files/files.types.mjs +0 -2
  539. package/esm2022/components/files/files.utils.mjs +0 -30
  540. package/esm2022/components/files/files.validators.mjs +0 -32
  541. package/esm2022/components/files/index.mjs +0 -13
  542. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  543. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  544. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  545. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  546. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  547. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  548. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  549. package/esm2022/components/filter/filter.component.mjs +0 -65
  550. package/esm2022/components/filter/index.mjs +0 -2
  551. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  552. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  553. package/esm2022/components/floating-container/index.mjs +0 -2
  554. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  555. package/esm2022/components/index.mjs +0 -73
  556. package/esm2022/components/input-chip/index.mjs +0 -5
  557. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  558. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  559. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  560. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  561. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  562. package/esm2022/components/input-color/index.mjs +0 -3
  563. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  564. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  565. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  566. package/esm2022/components/input-date/date-filler.mjs +0 -20
  567. package/esm2022/components/input-date/index.mjs +0 -6
  568. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  569. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  570. package/esm2022/components/input-date/input-date.mjs +0 -9
  571. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  572. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  573. package/esm2022/components/input-date-multi/index.mjs +0 -3
  574. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  575. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  576. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  577. package/esm2022/components/input-date-range/index.mjs +0 -4
  578. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  579. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  580. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  581. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  582. package/esm2022/components/input-date-time/index.mjs +0 -5
  583. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  584. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  585. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  586. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  587. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  588. package/esm2022/components/input-inline/index.mjs +0 -2
  589. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  590. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  591. package/esm2022/components/input-month/index.mjs +0 -5
  592. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  593. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  594. package/esm2022/components/input-month/input-month.mjs +0 -9
  595. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  596. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  597. package/esm2022/components/input-month-range/index.mjs +0 -4
  598. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  599. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  600. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  601. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  602. package/esm2022/components/input-number/index.mjs +0 -6
  603. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  604. package/esm2022/components/input-number/input-number.mjs +0 -9
  605. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  606. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  607. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  608. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  609. package/esm2022/components/input-password/index.mjs +0 -3
  610. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  611. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  612. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  613. package/esm2022/components/input-phone/index.mjs +0 -3
  614. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  615. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  616. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  617. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  618. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  619. package/esm2022/components/input-phone-international/index.mjs +0 -3
  620. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  621. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  622. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  623. package/esm2022/components/input-pin/index.mjs +0 -2
  624. package/esm2022/components/input-pin/input-pin.component.mjs +0 -66
  625. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  626. package/esm2022/components/input-range/index.mjs +0 -3
  627. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  628. package/esm2022/components/input-range/input-range.mjs +0 -4
  629. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  630. package/esm2022/components/input-slider/index.mjs +0 -3
  631. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  632. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  633. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  634. package/esm2022/components/input-time/index.mjs +0 -5
  635. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  636. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  637. package/esm2022/components/input-time/input-time.mjs +0 -4
  638. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  639. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  640. package/esm2022/components/input-year/index.mjs +0 -4
  641. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  642. package/esm2022/components/input-year/input-year.mjs +0 -4
  643. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  644. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  645. package/esm2022/components/items-with-more/index.mjs +0 -6
  646. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  647. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  648. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  649. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  650. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  651. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  652. package/esm2022/components/like/index.mjs +0 -3
  653. package/esm2022/components/like/like.component.mjs +0 -46
  654. package/esm2022/components/like/like.options.mjs +0 -10
  655. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  656. package/esm2022/components/line-clamp/index.mjs +0 -4
  657. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  658. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  659. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  660. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  661. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  662. package/esm2022/components/message/index.mjs +0 -2
  663. package/esm2022/components/message/message.directive.mjs +0 -43
  664. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  665. package/esm2022/components/multi-select/index.mjs +0 -6
  666. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  667. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  668. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  669. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  670. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  671. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  672. package/esm2022/components/notification-middle/index.mjs +0 -4
  673. package/esm2022/components/notification-middle/notification-middle.component.mjs +0 -57
  674. package/esm2022/components/notification-middle/notification-middle.directive.mjs +0 -21
  675. package/esm2022/components/notification-middle/notification-middle.service.mjs +0 -22
  676. package/esm2022/components/notification-middle/taiga-ui-kit-components-notification-middle.mjs +0 -5
  677. package/esm2022/components/pager/index.mjs +0 -2
  678. package/esm2022/components/pager/pager.component.mjs +0 -97
  679. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  680. package/esm2022/components/pagination/index.mjs +0 -2
  681. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  682. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  683. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  684. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  685. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  686. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  687. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  688. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  689. package/esm2022/components/pin/index.mjs +0 -2
  690. package/esm2022/components/pin/pin.directive.mjs +0 -35
  691. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  692. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  693. package/esm2022/components/preview/dialog/index.mjs +0 -4
  694. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  695. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  696. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  697. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  698. package/esm2022/components/preview/index.mjs +0 -8
  699. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  700. package/esm2022/components/preview/preview.component.mjs +0 -142
  701. package/esm2022/components/preview/preview.mjs +0 -13
  702. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  703. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  704. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  705. package/esm2022/components/progress/index.mjs +0 -9
  706. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  707. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  708. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  709. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  710. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  711. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  712. package/esm2022/components/progress/progress.mjs +0 -15
  713. package/esm2022/components/progress/progress.options.mjs +0 -13
  714. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  715. package/esm2022/components/pulse/index.mjs +0 -2
  716. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  717. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  718. package/esm2022/components/push/index.mjs +0 -7
  719. package/esm2022/components/push/push-alert.component.mjs +0 -29
  720. package/esm2022/components/push/push.component.mjs +0 -39
  721. package/esm2022/components/push/push.directive.mjs +0 -33
  722. package/esm2022/components/push/push.mjs +0 -5
  723. package/esm2022/components/push/push.options.mjs +0 -21
  724. package/esm2022/components/push/push.service.mjs +0 -19
  725. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  726. package/esm2022/components/radio/index.mjs +0 -5
  727. package/esm2022/components/radio/radio.component.mjs +0 -53
  728. package/esm2022/components/radio/radio.directive.mjs +0 -32
  729. package/esm2022/components/radio/radio.mjs +0 -4
  730. package/esm2022/components/radio/radio.options.mjs +0 -13
  731. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  732. package/esm2022/components/radio-list/index.mjs +0 -2
  733. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  734. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  735. package/esm2022/components/range/index.mjs +0 -3
  736. package/esm2022/components/range/range-change.directive.mjs +0 -78
  737. package/esm2022/components/range/range.component.mjs +0 -164
  738. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  739. package/esm2022/components/rating/index.mjs +0 -3
  740. package/esm2022/components/rating/rating.component.mjs +0 -64
  741. package/esm2022/components/rating/rating.options.mjs +0 -13
  742. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  743. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  744. package/esm2022/components/routable-dialog/index.mjs +0 -3
  745. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  746. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  747. package/esm2022/components/segmented/index.mjs +0 -3
  748. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  749. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  750. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  751. package/esm2022/components/select/index.mjs +0 -5
  752. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  753. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  754. package/esm2022/components/select/select.directive.mjs +0 -56
  755. package/esm2022/components/select/select.mjs +0 -4
  756. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  757. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  758. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  759. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  760. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  761. package/esm2022/components/slider/index.mjs +0 -8
  762. package/esm2022/components/slider/slider.component.mjs +0 -124
  763. package/esm2022/components/slider/slider.mjs +0 -12
  764. package/esm2022/components/slider/slider.options.mjs +0 -16
  765. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  766. package/esm2022/components/slides/index.mjs +0 -2
  767. package/esm2022/components/slides/slides.directive.mjs +0 -51
  768. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  769. package/esm2022/components/status/index.mjs +0 -2
  770. package/esm2022/components/status/status.directive.mjs +0 -35
  771. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  772. package/esm2022/components/stepper/index.mjs +0 -4
  773. package/esm2022/components/stepper/step.component.mjs +0 -58
  774. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  775. package/esm2022/components/stepper/stepper.mjs +0 -4
  776. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  777. package/esm2022/components/switch/index.mjs +0 -3
  778. package/esm2022/components/switch/switch.component.mjs +0 -63
  779. package/esm2022/components/switch/switch.options.mjs +0 -15
  780. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  781. package/esm2022/components/tabs/index.mjs +0 -9
  782. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  783. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  784. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  785. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -213
  786. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  787. package/esm2022/components/tabs/tabs.mjs +0 -15
  788. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  789. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  790. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  791. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  792. package/esm2022/components/textarea/index.mjs +0 -4
  793. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  794. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -93
  795. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  796. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  797. package/esm2022/components/tiles/index.mjs +0 -7
  798. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  799. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  800. package/esm2022/components/tiles/tile.component.mjs +0 -69
  801. package/esm2022/components/tiles/tile.service.mjs +0 -90
  802. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  803. package/esm2022/components/tiles/tiles.mjs +0 -5
  804. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  805. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  806. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  807. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  808. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  809. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  810. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  811. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  812. package/esm2022/components/tree/index.mjs +0 -12
  813. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  814. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  815. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  816. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  817. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  818. package/esm2022/components/tree/tree.mjs +0 -17
  819. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  820. package/esm2022/directives/button-close/index.mjs +0 -2
  821. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  822. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  823. package/esm2022/directives/button-group/index.mjs +0 -2
  824. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  825. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  826. package/esm2022/directives/button-select/index.mjs +0 -2
  827. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  828. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  829. package/esm2022/directives/chevron/index.mjs +0 -2
  830. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  831. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  832. package/esm2022/directives/connected/index.mjs +0 -2
  833. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  834. package/esm2022/directives/copy/copy.component.mjs +0 -48
  835. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  836. package/esm2022/directives/copy/copy.mjs +0 -4
  837. package/esm2022/directives/copy/copy.options.mjs +0 -3
  838. package/esm2022/directives/copy/index.mjs +0 -6
  839. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  840. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  841. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  842. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  843. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  844. package/esm2022/directives/fade/index.mjs +0 -2
  845. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  846. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  847. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  848. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  849. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  850. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  851. package/esm2022/directives/highlight/index.mjs +0 -2
  852. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  853. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  854. package/esm2022/directives/icon-badge/index.mjs +0 -2
  855. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  856. package/esm2022/directives/index.mjs +0 -21
  857. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  858. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  859. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  860. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  861. package/esm2022/directives/password/index.mjs +0 -3
  862. package/esm2022/directives/password/password.directive.mjs +0 -67
  863. package/esm2022/directives/password/password.options.mjs +0 -8
  864. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  865. package/esm2022/directives/present/index.mjs +0 -2
  866. package/esm2022/directives/present/present.directive.mjs +0 -33
  867. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  868. package/esm2022/directives/sensitive/index.mjs +0 -2
  869. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  870. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  871. package/esm2022/directives/shimmer/index.mjs +0 -2
  872. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  873. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  874. package/esm2022/directives/skeleton/index.mjs +0 -2
  875. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  876. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  877. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  878. package/esm2022/directives/tooltip/index.mjs +0 -3
  879. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  880. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  881. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  882. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  883. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  884. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  885. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  886. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  887. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  888. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  889. package/esm2022/index.mjs +0 -6
  890. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  891. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  892. package/esm2022/pipes/emails/index.mjs +0 -3
  893. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  894. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  895. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  896. package/esm2022/pipes/field-error/index.mjs +0 -3
  897. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  898. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  899. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  900. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  901. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  902. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  903. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  904. package/esm2022/pipes/index.mjs +0 -8
  905. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  906. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  907. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  908. package/esm2022/pipes/stringify/index.mjs +0 -2
  909. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  910. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  911. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  912. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  913. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  914. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  915. package/esm2022/taiga-ui-kit.mjs +0 -5
  916. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  917. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  918. package/esm2022/tokens/i18n.mjs +0 -75
  919. package/esm2022/tokens/index.mjs +0 -10
  920. package/esm2022/tokens/input-date-options.mjs +0 -13
  921. package/esm2022/tokens/items-handlers.mjs +0 -27
  922. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  923. package/esm2022/tokens/month-formatter.mjs +0 -12
  924. package/esm2022/tokens/preview-icons.mjs +0 -17
  925. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  926. package/esm2022/tokens/validation-errors.mjs +0 -6
  927. package/esm2022/utils/create-time-periods.mjs +0 -12
  928. package/esm2022/utils/index.mjs +0 -7
  929. package/esm2022/utils/inject-value.mjs +0 -11
  930. package/esm2022/utils/is-flat.mjs +0 -4
  931. package/esm2022/utils/maskito.binding.mjs +0 -6
  932. package/esm2022/utils/phone.mjs +0 -6
  933. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  934. package/esm2022/utils/toggle-day.mjs +0 -6
  935. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -78
  936. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
  937. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -43
  938. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
  939. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -96
  940. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  941. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  942. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  943. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  944. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  945. package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -57
  946. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
  947. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -120
  948. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  949. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  950. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  951. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -82
  952. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  953. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  954. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  955. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  956. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  957. package/pipes/field-error/index.d.ts +0 -2
  958. package/tokens/date-inputs-value-transformers.d.ts +0 -19
  959. package/tokens/input-date-options.d.ts +0 -15
  960. package/tokens/items-handlers.d.ts +0 -26
  961. package/tokens/mobile-calendar.d.ts +0 -6
  962. package/tokens/month-formatter.d.ts +0 -5
  963. package/tokens/validation-errors.d.ts +0 -5
  964. package/utils/phone.d.ts +0 -3
  965. package/utils/toggle-day.d.ts +0 -2
  966. /package/{directives → components}/copy/copy.d.ts +0 -0
  967. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-range.mjs","sources":["../../../projects/kit/components/input-range/input-range.component.ts","../../../projects/kit/components/input-range/input-range.template.html","../../../projects/kit/components/input-range/input-range.ts","../../../projects/kit/components/input-range/taiga-ui-kit-components-input-range.ts"],"sourcesContent":["import {NgIf} from '@angular/common';\nimport {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n Input,\n type QueryList,\n signal,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n tuiAsControl,\n TuiControl,\n} from '@taiga-ui/cdk/classes';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TUI_IS_MOBILE, tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {TUI_TEXTFIELD_OPTIONS, TuiTextfield} from '@taiga-ui/core/components/textfield';\nimport {\n TuiInputNumber,\n TuiInputNumberDirective,\n TuiQuantumValueTransformerBase,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiRange} from '@taiga-ui/kit/components/range';\nimport {\n type TuiKeySteps,\n tuiSliderOptionsProvider,\n} from '@taiga-ui/kit/components/slider';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-input-range',\n imports: [\n FormsModule,\n NgIf,\n PolymorpheusOutlet,\n TuiInputNumber,\n TuiRange,\n TuiTextfield,\n ],\n templateUrl: './input-range.template.html',\n styleUrls: ['./input-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputRangeComponent),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n tuiFallbackValueProvider([0, 0]),\n ],\n host: {\n new: '', // TODO(v5): remove after deletion of legacy control\n // TODO: use css :host:has(tui-textfield[data-size]) after browser bump\n '[attr.data-size]': 'size()',\n },\n})\nexport class TuiInputRangeComponent\n extends TuiControl<readonly [number, number]>\n implements AfterViewInit\n{\n @ViewChildren(TuiInputNumberDirective, {read: ElementRef})\n private readonly inputNumberRefs: QueryList<ElementRef<HTMLInputElement>> =\n EMPTY_QUERY;\n\n @ViewChild(TuiRange)\n private readonly range?: TuiRange;\n\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly quantum = signal(0);\n private readonly quantumTransformer = computed((quantum = this.quantum()) =>\n quantum\n ? new TuiQuantumValueTransformerBase(quantum)\n : TUI_IDENTITY_VALUE_TRANSFORMER,\n );\n\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected textfieldValueStart = this.value()[0];\n protected textfieldValueEnd = this.value()[1];\n protected lastActiveSide: 'end' | 'start' = 'start';\n\n @Input()\n public min = 0;\n\n @Input()\n public max = 100;\n\n @Input()\n public step = 1;\n\n @Input()\n public segments = 1;\n\n @Input()\n public keySteps: TuiKeySteps | null = null;\n\n @Input()\n public content: readonly [\n PolymorpheusContent<TuiContext<number>>,\n PolymorpheusContent<TuiContext<number>>,\n ] = ['', ''];\n\n @Input({transform: (x: readonly [string, string] | null) => x ?? ['', '']})\n public prefix: readonly [string, string] = ['', ''];\n\n @Input({transform: (x: readonly [string, string] | null) => x ?? ['', '']})\n public postfix: readonly [string, string] = ['', ''];\n\n // TODO(v5): use signal inputs\n @Input('quantum')\n public set quantumSetter(x: number) {\n this.quantum.set(x);\n }\n\n public override writeValue(value: [number, number]): void {\n super.writeValue(value);\n this.setTextfieldValues(this.value());\n }\n\n public ngAfterViewInit(): void {\n if (this.range) {\n this.range.legacyMode = false; // TODO(v5): remove backward compatibility\n }\n }\n\n protected get hideStartContent(): boolean {\n return !this.content[0] || tuiIsNativeFocused(this.textfieldStart);\n }\n\n protected get hideEndContent(): boolean {\n return !this.content[1] || tuiIsNativeFocused(this.textfieldEnd);\n }\n\n protected takeStep(\n event: Event | KeyboardEvent,\n coefficients: readonly [number, number],\n ): void {\n if (!this.interactive() || !this.range) {\n return;\n }\n\n event.preventDefault();\n\n const [start, end] = this.value();\n const newValue = this.valueGuard(this.range.takeStep(coefficients));\n\n if (newValue[0] !== start || newValue[1] !== end) {\n this.onExternalValueUpdate(newValue);\n }\n }\n\n protected onInput([start, end]: [number | null, number | null]): void {\n const [prevStart, prevEnd] = this.value();\n\n this.setValue([start ?? prevStart, end ?? prevEnd]);\n }\n\n protected onExternalValueUpdate(value: readonly [number, number]): void {\n this.setValue(value);\n this.setTextfieldValues(this.value());\n\n setTimeout((end = Number.MAX_SAFE_INTEGER) => {\n if (tuiIsNativeFocused(this.activeTextfield)) {\n this.activeTextfield?.setSelectionRange(end, end);\n }\n });\n }\n\n protected focusToTextfield(): void {\n if (!this.isMobile) {\n this.activeTextfield?.focus();\n }\n }\n\n protected onActiveThumbChange(activeThumb: 'left' | 'right'): void {\n // TODO(v5): remove backward compatibility\n this.lastActiveSide = activeThumb === 'left' ? 'start' : 'end';\n }\n\n protected setTextfieldValues([start, end]: readonly [number, number]): void {\n this.textfieldValueStart = start;\n this.textfieldValueEnd = end;\n }\n\n private get textfieldStart(): HTMLInputElement | null {\n return this.inputNumberRefs.first?.nativeElement || null;\n }\n\n private get textfieldEnd(): HTMLInputElement | null {\n return this.inputNumberRefs.last?.nativeElement || null;\n }\n\n private get activeTextfield(): HTMLInputElement | null {\n return this.lastActiveSide === 'start' ? this.textfieldStart : this.textfieldEnd;\n }\n\n private setValue(value: readonly [number, number]): void {\n this.onChange(this.valueGuard(value));\n }\n\n private valueGuard(value: readonly [number, number]): readonly [number, number] {\n const [prevStart, prevEnd] = this.value();\n const [start, end] = value.map(\n (x) => this.quantumTransformer().toControlValue(x) ?? x,\n ) as unknown as readonly [number, number];\n\n return [Math.min(start, prevEnd), Math.max(end, prevStart)];\n }\n}\n","<tui-textfield [content]=\"hideStartContent ? '' : content[0]\">\n <ng-container ngProjectAs=\"label\">\n <ng-content select=\"label\" />\n </ng-container>\n\n <input\n tuiInputNumber\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"value()[1]\"\n [min]=\"min\"\n [postfix]=\"postfix[0]\"\n [prefix]=\"prefix[0]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"textfieldValueStart\"\n (blur)=\"textfieldValueStart = value()[0]\"\n (keydown.arrowDown)=\"takeStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"takeStep($event, [1, 0])\"\n (ngModelChange)=\"onInput([$event, null])\"\n />\n\n <input\n tuiInputNumber\n tuiTextfieldAppearance=\"none\"\n class=\"t-end\"\n [class._hidden]=\"!hideEndContent\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"max\"\n [min]=\"value()[0]\"\n [postfix]=\"postfix[1]\"\n [prefix]=\"prefix[1]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"textfieldValueEnd\"\n (blur)=\"textfieldValueEnd = value()[1]\"\n (keydown.arrowDown)=\"takeStep($event, [0, -1])\"\n (keydown.arrowUp)=\"takeStep($event, [0, 1])\"\n (ngModelChange)=\"onInput([null, $event])\"\n />\n\n <div\n class=\"t-content-end\"\n [class._hidden]=\"hideEndContent\"\n >\n <ng-container *polymorpheusOutlet=\"content[1] as text; context: {$implicit: value()[1]}\">\n {{ text }}\n </ng-container>\n </div>\n</tui-textfield>\n\n<tui-range\n *ngIf=\"interactive()\"\n [focusable]=\"false\"\n [keySteps]=\"keySteps\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value()\"\n [segments]=\"segments\"\n [step]=\"step\"\n (activeThumbChange)=\"onActiveThumbChange($event)\"\n (mousedown.prevent)=\"focusToTextfield()\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n/>\n","import {TuiLabel} from '@taiga-ui/core/components/label';\n\nimport {TuiInputRangeComponent} from './input-range.component';\n\nexport const TuiInputRange = [TuiInputRangeComponent, TuiLabel] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAqCA,MAyBa,sBACT,SAAQ,UAAqC,CAAA;AA1BjD,IAAA,WAAA,GAAA;;QA8BqB,IAAe,CAAA,eAAA,GAC5B,WAAW,CAAC;AAKC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACpB,QAAA,IAAA,CAAA,kBAAkB,GAAG,QAAQ,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,KACpE,OAAO;AACH,cAAE,IAAI,8BAA8B,CAAC,OAAO,CAAC;cAC3C,8BAA8B,CACvC,CAAC;AAEiB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAA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ADd,KAAK;gBAIC,OAAO,EAAA,CAAA;sBADb,KAAK;gBAOC,MAAM,EAAA,CAAA;sBADZ,KAAK;AAAC,gBAAA,IAAA,EAAA,CAAA,EAAC,SAAS,EAAE,CAAC,CAAmC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAA;gBAInE,OAAO,EAAA,CAAA;sBADb,KAAK;AAAC,gBAAA,IAAA,EAAA,CAAA,EAAC,SAAS,EAAE,CAAC,CAAmC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC,CAAA;gBAK/D,aAAa,EAAA,CAAA;sBADvB,KAAK;uBAAC,SAAS,CAAA;;;ME9GP,aAAa,GAAG,CAAC,sBAAsB,EAAE,QAAQ;;ACJ9D;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-range.mjs","sources":["../../../projects/kit/components/input-range/input-range.component.ts","../../../projects/kit/components/input-range/input-range.template.html","../../../projects/kit/components/input-range/taiga-ui-kit-components-input-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n Input,\n input,\n type QueryList,\n signal,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TUI_IS_MOBILE, tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsFocused} from '@taiga-ui/cdk/utils/focus';\nimport {tuiIsNumber, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_TEXTFIELD_OPTIONS, TuiTextfield} from '@taiga-ui/core/components/textfield';\nimport {\n TuiInputNumber,\n TuiInputNumberDirective,\n TuiQuantumValueTransformerBase,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiRange} from '@taiga-ui/kit/components/range';\nimport {\n type TuiKeySteps,\n tuiSliderOptionsProvider,\n} from '@taiga-ui/kit/components/slider';\nimport {\n type PolymorpheusContent,\n PolymorpheusOutlet,\n type PolymorpheusPrimitive,\n} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-input-range',\n imports: [FormsModule, PolymorpheusOutlet, TuiInputNumber, TuiRange, TuiTextfield],\n templateUrl: './input-range.template.html',\n styleUrl: './input-range.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputRange),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n tuiFallbackValueProvider([0, 0]),\n ],\n host: {\n new: '', // TODO(v5): remove after deletion of legacy control\n // TODO: use css :host:has(tui-textfield[data-size]) after browser bump\n '[attr.data-size]': 'size()',\n // TODO: Delete this line and put `tui-input-range:has(.t-content-end) {--t-icon-lock: none}` to proprietary styles\n '[style.--t-icon-lock]': 'contentEnd() ? \"none\" : null',\n },\n})\nexport class TuiInputRange extends TuiControl<readonly [number, number]> {\n @ViewChildren(TuiInputNumberDirective, {read: ElementRef})\n private readonly inputNumberRefs: QueryList<ElementRef<HTMLInputElement>> =\n EMPTY_QUERY;\n\n @ViewChild(TuiRange)\n private readonly range?: TuiRange;\n\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly quantum = signal(0);\n private readonly quantumTransformer = computed(\n () => new TuiQuantumValueTransformerBase(this.quantum()),\n );\n\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected textfieldValueStart = this.value()[0];\n protected textfieldValueEnd = this.value()[1];\n protected lastActiveSide: 'end' | 'start' = 'start';\n protected readonly contentStart = computed(() => {\n const [start, end] = this.content().map((x, i) => {\n const value = this.value()[i]!;\n\n return typeof x === 'function' ? x({$implicit: value}) : x || value;\n });\n\n if (this.interactive() || !this.isPrimitive(start) || !this.isPrimitive(end)) {\n return this.content()[0];\n }\n\n return `${start}${CHAR_NO_BREAK_SPACE}${CHAR_EN_DASH}${CHAR_NO_BREAK_SPACE}${end}`;\n });\n\n protected readonly contentEnd = computed(() =>\n this.contentStart() === this.content()[0] ? this.content()[1] : '',\n );\n\n @Input()\n public min = 0;\n\n @Input()\n public max = 100;\n\n @Input()\n public step = 1;\n\n @Input()\n public segments = 1;\n\n @Input()\n public keySteps: TuiKeySteps | null = null;\n\n @Input({transform: (x: readonly [string, string] | null) => x ?? ['', '']})\n public prefix: readonly [string, string] = ['', ''];\n\n @Input({transform: (x: readonly [string, string] | null) => x ?? ['', '']})\n public postfix: readonly [string, string] = ['', ''];\n\n public content = input<\n readonly [\n PolymorpheusContent<TuiContext<number>>,\n PolymorpheusContent<TuiContext<number>>,\n ]\n >(['', '']);\n\n // TODO(v5): use signal inputs\n @Input('quantum')\n public set quantumSetter(x: number) {\n this.quantum.set(x);\n }\n\n public override writeValue(value: [number, number]): void {\n super.writeValue(value);\n this.setTextfieldValues(this.value());\n }\n\n protected get contentStartHidden(): boolean {\n return this.interactive() && tuiIsFocused(this.textfieldStart);\n }\n\n protected get contentEndHidden(): boolean {\n return (\n !this.content()[1] || (this.interactive() && tuiIsFocused(this.textfieldEnd))\n );\n }\n\n protected takeStep(\n event: Event | KeyboardEvent,\n coefficients: readonly [number, number],\n ): void {\n if (!this.interactive() || !this.range) {\n return;\n }\n\n event.preventDefault();\n\n const [start, end] = this.value();\n const newValue = this.valueGuard(this.range.takeStep(coefficients));\n\n if (newValue[0] !== start || newValue[1] !== end) {\n this.onExternalValueUpdate(newValue);\n }\n }\n\n protected onInput([start, end]: [number | null, number | null]): void {\n const [prevStart, prevEnd] = this.value();\n\n this.setValue([start ?? prevStart, end ?? prevEnd]);\n }\n\n protected onExternalValueUpdate(value: readonly [number, number]): void {\n this.setValue(value);\n this.setTextfieldValues(this.value());\n\n setTimeout((end = Number.MAX_SAFE_INTEGER) => {\n if (tuiIsFocused(this.activeTextfield)) {\n this.activeTextfield?.setSelectionRange(end, end);\n }\n });\n }\n\n protected focusToTextfield(): void {\n if (!this.isMobile) {\n this.activeTextfield?.focus();\n }\n }\n\n protected setTextfieldValues([start, end]: readonly [number, number]): void {\n this.textfieldValueStart = start;\n this.textfieldValueEnd = end;\n }\n\n private get textfieldStart(): HTMLInputElement | null {\n return this.inputNumberRefs.first?.nativeElement || null;\n }\n\n private get textfieldEnd(): HTMLInputElement | null {\n return this.inputNumberRefs.last?.nativeElement || null;\n }\n\n private get activeTextfield(): HTMLInputElement | null {\n return this.lastActiveSide === 'start' ? this.textfieldStart : this.textfieldEnd;\n }\n\n private setValue(value: readonly [number, number]): void {\n this.onChange(this.valueGuard(value));\n }\n\n private valueGuard(value: readonly [number, number]): readonly [number, number] {\n const [prevStart, prevEnd] = this.value();\n const [start, end] = value.map(\n (x) => this.quantumTransformer().toControlValue(x) ?? x,\n ) as unknown as readonly [number, number];\n\n return [Math.min(start, prevEnd), Math.max(end, prevStart)];\n }\n\n private isPrimitive(x: PolymorpheusContent): x is PolymorpheusPrimitive {\n return !x || tuiIsString(x) || tuiIsNumber(x);\n }\n}\n","<tui-textfield [content]=\"contentStartHidden ? '' : contentStart()\">\n <label tuiLabel>\n <ng-content />\n </label>\n\n <input\n tuiInputNumber\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"value()[1]\"\n [min]=\"min\"\n [postfix]=\"postfix[0]\"\n [prefix]=\"prefix[0]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"textfieldValueStart\"\n (blur)=\"textfieldValueStart = value()[0]\"\n (keydown.arrowDown)=\"takeStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"takeStep($event, [1, 0])\"\n (ngModelChange)=\"onInput([$event, null])\"\n />\n\n <input\n tuiInputNumber\n tuiTextfieldAppearance=\"none\"\n class=\"t-end\"\n [class._hidden]=\"!contentEndHidden || !this.interactive()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"max\"\n [min]=\"value()[0]\"\n [postfix]=\"postfix[1]\"\n [prefix]=\"prefix[1]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"textfieldValueEnd\"\n (blur)=\"textfieldValueEnd = value()[1]\"\n (keydown.arrowDown)=\"takeStep($event, [0, -1])\"\n (keydown.arrowUp)=\"takeStep($event, [0, 1])\"\n (ngModelChange)=\"onInput([null, $event])\"\n />\n\n @if (!contentEndHidden && contentEnd()) {\n <div class=\"t-content-end\">\n <ng-container *polymorpheusOutlet=\"contentEnd() as text; context: {$implicit: value()[1]}\">\n {{ text }}\n </ng-container>\n </div>\n }\n</tui-textfield>\n\n@if (interactive()) {\n <tui-range\n [focusable]=\"false\"\n [keySteps]=\"keySteps\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value()\"\n [segments]=\"segments\"\n [step]=\"step\"\n (activeThumbChange)=\"lastActiveSide = $event\"\n (mousedown.prevent)=\"focusToTextfield()\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n />\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAwDM,MAAO,aAAc,SAAQ,UAAqC,CAAA;AAnBxE,IAAA,WAAA,GAAA;;QAqBqB,IAAe,CAAA,eAAA,GAC5B,WAAW;AAKE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC;AAChC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC;AACnB,QAAA,IAAA,CAAA,kBAAkB,GAAG,QAAQ,CAC1C,MAAM,IAAI,8BAA8B,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAC3D;AAEkB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI;QAClD,IAAmB,CAAA,mBAAA,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACrC,IAAiB,CAAA,iBAAA,GAAG,IAAI,CAAC,KAAK,EAAE,C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,EAAA;8BAIgB,eAAe,EAAA,CAAA;sBAD/B,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,uBAAuB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;gBAKxC,KAAK,EAAA,CAAA;sBADrB,SAAS;uBAAC,QAAQ;gBAgCZ,GAAG,EAAA,CAAA;sBADT;gBAIM,GAAG,EAAA,CAAA;sBADT;gBAIM,IAAI,EAAA,CAAA;sBADV;gBAIM,QAAQ,EAAA,CAAA;sBADd;gBAIM,QAAQ,EAAA,CAAA;sBADd;gBAIM,MAAM,EAAA,CAAA;sBADZ,KAAK;AAAC,gBAAA,IAAA,EAAA,CAAA,EAAC,SAAS,EAAE,CAAC,CAAmC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC;gBAInE,OAAO,EAAA,CAAA;sBADb,KAAK;AAAC,gBAAA,IAAA,EAAA,CAAA,EAAC,SAAS,EAAE,CAAC,CAAmC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,EAAC;gBAY/D,aAAa,EAAA,CAAA;sBADvB,KAAK;uBAAC,SAAS;;;AEzHpB;;AAEG;;;;"}
@@ -1,58 +1,62 @@
1
+ import { TuiLabel } from '@taiga-ui/core/components/label';
2
+ import { tuiInjectAuxiliary, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
3
+ import { TuiDropdownContent } from '@taiga-ui/core/portals';
1
4
  import { TuiSliderComponent, TuiSliderKeyStepsBase, TuiSliderKeySteps } from '@taiga-ui/kit/components/slider';
2
5
  import * as i0 from '@angular/core';
3
- import { inject, computed, effect, Directive, Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
4
- import { TuiValueTransformer, TUI_IDENTITY_VALUE_TRANSFORMER, TuiNonNullableValueTransformer } from '@taiga-ui/cdk/classes';
5
- import { TUI_ALLOW_SIGNAL_WRITES } from '@taiga-ui/cdk/constants';
6
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, computed, effect, Directive } from '@angular/core';
7
+ import { TuiValueTransformer, TuiNonNullableValueTransformer } from '@taiga-ui/cdk/classes';
6
8
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
7
- import { tuiInjectElement, tuiIsElement, tuiIsInput } from '@taiga-ui/cdk/utils/dom';
9
+ import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
8
10
  import { tuiClamp } from '@taiga-ui/cdk/utils/math';
9
11
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
10
- import { tuiInjectAuxiliary } from '@taiga-ui/core/components/textfield';
11
12
  import * as i1 from '@taiga-ui/kit/components/input-number';
12
13
  import { TuiInputNumberDirective, tuiInputNumberOptionsProvider, TuiWithQuantumValueTransformer } from '@taiga-ui/kit/components/input-number';
13
- import { fromEvent, filter } from 'rxjs';
14
+ import { fromEvent, tap, filter, switchMap } from 'rxjs';
14
15
 
16
+ class Styles {
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-input-slider" }, ngImport: i0, template: '', isInline: true, styles: ["tui-textfield [tuiInputSlider]~.t-content .t-clear{display:none!important}\n", "tui-textfield [tuiInputSlider]~[tuiSlider]:disabled{display:none}\n", "tui-textfield [tuiSlider]{--tui-slider-track-color: transparent !important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
19
+ }
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, decorators: [{
21
+ type: Component,
22
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-input-slider' }, styles: ["tui-textfield [tuiInputSlider]~.t-content .t-clear{display:none!important}\n", "tui-textfield [tuiInputSlider]~[tuiSlider]:disabled{display:none}\n", "tui-textfield [tuiSlider]{--tui-slider-track-color: transparent !important}\n"] }]
23
+ }] });
15
24
  class TuiInputSliderDirective {
16
25
  constructor() {
17
26
  this.isMobile = inject(TUI_IS_MOBILE);
18
- this.element = tuiInjectElement();
27
+ this.el = tuiInjectElement();
19
28
  this.slider = tuiInjectAuxiliary((x) => x instanceof TuiSliderComponent);
20
29
  this.controlTransformer = inject(TuiValueTransformer, { self: true });
21
- this.keyStepsTransformer = computed(() => this.slider()?.keySteps?.transformer() ?? TUI_IDENTITY_VALUE_TRANSFORMER);
30
+ this.nothing = tuiWithStyles(Styles);
22
31
  this.inputNumber = inject(TuiInputNumberDirective, { self: true });
23
32
  this.value = computed(() => this.controlTransformer.toControlValue(this.inputNumber.value()));
24
- this.nothing = tuiWithStyles(TuiInputSliderStyles);
25
33
  this.textfieldToSliderSync = effect(() => {
26
34
  const slider = this.slider();
27
35
  if (!slider) {
28
36
  return;
29
37
  }
30
- if (slider.keySteps?.transformer() &&
31
- Number.isFinite(slider.keySteps?.totalSteps)) {
32
- // TODO(v5): move all if-condition body inside `TuiSliderKeyStepsBase`
33
- slider.min = 0;
34
- slider.step = 1;
35
- slider.max = slider.keySteps?.totalSteps ?? 100;
36
- }
37
- else {
38
+ if (!slider.keySteps?.transformer()) {
38
39
  slider.min = this.inputNumber.min();
39
40
  slider.max = this.inputNumber.max();
41
+ slider.value = this.value();
42
+ }
43
+ else {
44
+ slider.keySteps?.setControlValue(this.value());
40
45
  }
41
- slider.value = this.keyStepsTransformer().fromControlValue(this.value());
42
46
  slider.el.disabled = !this.inputNumber.interactive();
43
- }, TUI_ALLOW_SIGNAL_WRITES);
44
- this.sliderInitEffect = effect((onCleanup) => {
47
+ });
48
+ this.sliderInit = effect((onCleanup) => {
45
49
  const slider = this.slider();
46
50
  if (!slider) {
47
51
  return;
48
52
  }
49
- slider.el.style.setProperty('--tui-slider-track-color', 'transparent');
53
+ slider.el.setAttribute('tabindex', '-1');
50
54
  if (slider.keySteps) {
51
- slider.keySteps.value = this.value;
55
+ slider.keySteps.controlValue = this.value;
52
56
  }
53
- const subscription = fromEvent(slider.el, 'input', (x) => x.target)
54
- .pipe(filter(tuiIsElement), filter(tuiIsInput))
55
- .subscribe((x) => this.onSliderInput(x.valueAsNumber));
57
+ const subscription = fromEvent(slider.el, 'input')
58
+ .pipe(tap(() => this.inputNumber.setValue(slider.keySteps?.getControlValue() ?? slider.el.valueAsNumber)), filter(() => !this.isMobile), switchMap(() => fromEvent(this.el.ownerDocument, 'pointerup', { once: true })))
59
+ .subscribe(() => this.el.focus());
56
60
  onCleanup(() => subscription.unsubscribe());
57
61
  });
58
62
  }
@@ -64,23 +68,16 @@ class TuiInputSliderDirective {
64
68
  this.inputNumber.setValue(newValue);
65
69
  }
66
70
  }
67
- onSliderInput(value) {
68
- this.inputNumber.setValue(this.keyStepsTransformer().toControlValue(value));
69
- if (!this.isMobile) {
70
- this.element.focus();
71
- }
72
- }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputSliderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputSliderDirective, isStandalone: true, selector: "input[tuiInputSlider]", host: { listeners: { "blur": "inputNumber.setValue(value() ?? null)", "keydown.arrowUp": "onStep(1)", "keydown.arrowDown": "onStep(-1)" } }, providers: [
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputSliderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
72
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiInputSliderDirective, isStandalone: true, selector: "input[tuiInputSlider]", host: { listeners: { "blur": "inputNumber.setValue(value() ?? null)", "keydown.arrowUp": "onStep(1)", "keydown.arrowDown": "onStep(-1)" } }, providers: [
75
73
  tuiInputNumberOptionsProvider({
76
74
  valueTransformer: new TuiNonNullableValueTransformer(),
77
75
  }),
78
76
  ], hostDirectives: [{ directive: i1.TuiInputNumberDirective, inputs: ["min", "min", "max", "max", "prefix", "prefix", "postfix", "postfix", "invalid", "invalid", "readOnly", "readOnly"] }, { directive: i1.TuiWithQuantumValueTransformer }], ngImport: i0 }); }
79
77
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputSliderDirective, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputSliderDirective, decorators: [{
81
79
  type: Directive,
82
80
  args: [{
83
- standalone: true,
84
81
  selector: 'input[tuiInputSlider]',
85
82
  providers: [
86
83
  tuiInputNumberOptionsProvider({
@@ -101,22 +98,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
101
98
  },
102
99
  }]
103
100
  }] });
104
- class TuiInputSliderStyles {
105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputSliderStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
106
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputSliderStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-input-slider" }, ngImport: i0, template: '', isInline: true, styles: ["tui-textfield [tuiInputSlider]~.t-content .t-clear{display:none!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
107
- }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputSliderStyles, decorators: [{
109
- type: Component,
110
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
111
- class: 'tui-input-slider',
112
- }, styles: ["tui-textfield [tuiInputSlider]~.t-content .t-clear{display:none!important}\n"] }]
113
- }] });
114
101
 
115
102
  const TuiInputSlider = [
116
103
  TuiSliderComponent,
117
104
  TuiSliderKeyStepsBase,
118
105
  TuiSliderKeySteps,
119
106
  TuiInputSliderDirective,
107
+ TuiLabel,
108
+ TuiTextfieldComponent,
109
+ TuiTextfieldOptionsDirective,
110
+ TuiDropdownContent,
120
111
  ];
121
112
 
122
113
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-slider.mjs","sources":["../../../projects/kit/components/input-slider/input-slider.directive.ts","../../../projects/kit/components/input-slider/input-slider.ts","../../../projects/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n effect,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n TuiNonNullableValueTransformer,\n TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement, tuiIsElement, tuiIsInput} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiInjectAuxiliary} from '@taiga-ui/core/components/textfield';\nimport {\n TuiInputNumberDirective,\n tuiInputNumberOptionsProvider,\n TuiWithQuantumValueTransformer,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiSliderComponent} from '@taiga-ui/kit/components/slider';\nimport {filter, fromEvent} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputSlider]',\n providers: [\n tuiInputNumberOptionsProvider({\n valueTransformer: new TuiNonNullableValueTransformer(),\n }),\n ],\n hostDirectives: [\n {\n directive: TuiInputNumberDirective,\n inputs: ['min', 'max', 'prefix', 'postfix', 'invalid', 'readOnly'],\n },\n TuiWithQuantumValueTransformer,\n ],\n host: {\n '(blur)': 'inputNumber.setValue(value() ?? null)',\n '(keydown.arrowUp)': 'onStep(1)',\n '(keydown.arrowDown)': 'onStep(-1)',\n },\n})\nexport class TuiInputSliderDirective {\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly element = tuiInjectElement<HTMLInputElement>();\n private readonly slider = tuiInjectAuxiliary<TuiSliderComponent>(\n (x) => x instanceof TuiSliderComponent,\n );\n\n private readonly controlTransformer = inject<\n TuiValueTransformer<number | null, number>\n >(TuiValueTransformer, {self: true});\n\n private readonly keyStepsTransformer = computed(\n () => this.slider()?.keySteps?.transformer() ?? TUI_IDENTITY_VALUE_TRANSFORMER,\n );\n\n protected readonly inputNumber = inject(TuiInputNumberDirective, {self: true});\n protected readonly value = computed(() =>\n this.controlTransformer.toControlValue(this.inputNumber.value()),\n );\n\n protected readonly nothing = tuiWithStyles(TuiInputSliderStyles);\n\n protected readonly textfieldToSliderSync = effect(() => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n if (\n slider.keySteps?.transformer() &&\n Number.isFinite(slider.keySteps?.totalSteps)\n ) {\n // TODO(v5): move all if-condition body inside `TuiSliderKeyStepsBase`\n slider.min = 0;\n slider.step = 1;\n slider.max = slider.keySteps?.totalSteps ?? 100;\n } else {\n slider.min = this.inputNumber.min();\n slider.max = this.inputNumber.max();\n }\n\n slider.value = this.keyStepsTransformer().fromControlValue(this.value());\n slider.el.disabled = !this.inputNumber.interactive();\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly sliderInitEffect = effect((onCleanup) => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n slider.el.style.setProperty('--tui-slider-track-color', 'transparent');\n\n if (slider.keySteps) {\n slider.keySteps.value = this.value;\n }\n\n const subscription = fromEvent(slider.el, 'input', (x) => x.target)\n .pipe(filter(tuiIsElement), filter(tuiIsInput))\n .subscribe((x) => this.onSliderInput(x.valueAsNumber));\n\n onCleanup(() => subscription.unsubscribe());\n });\n\n protected onStep(coefficient: number): void {\n const slider = this.slider();\n\n if (slider && this.inputNumber.interactive()) {\n const newValue = tuiClamp(\n slider.keySteps?.takeStep(coefficient) ??\n slider.value + coefficient * slider.step,\n this.inputNumber.min(),\n this.inputNumber.max(),\n );\n\n this.inputNumber.setValue(newValue);\n }\n }\n\n private onSliderInput(value: number): void {\n this.inputNumber.setValue(this.keyStepsTransformer().toControlValue(value));\n\n if (!this.isMobile) {\n this.element.focus();\n }\n }\n}\n\n@Component({\n standalone: true,\n template: '',\n styles: [\n // TODO: tui-textfield:has([tuiInputSlider]) .t-clear\n 'tui-textfield [tuiInputSlider] ~ .t-content .t-clear {display: none !important}',\n ],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-input-slider',\n },\n})\nclass TuiInputSliderStyles {}\n","import {\n TuiSliderComponent,\n TuiSliderKeySteps,\n TuiSliderKeyStepsBase,\n} from '@taiga-ui/kit/components/slider';\n\nimport {TuiInputSliderDirective} from './input-slider.directive';\n\nexport const TuiInputSlider = [\n TuiSliderComponent,\n TuiSliderKeyStepsBase,\n TuiSliderKeySteps,\n TuiInputSliderDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA4BA,MAqBa,uBAAuB,CAAA;AArBpC,IAAA,WAAA,GAAA;AAsBqB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QACjC,IAAO,CAAA,OAAA,GAAG,gBAAgB,EAAoB,CAAC;AAC/C,QAAA,IAAA,CAAA,MAAM,GAAG,kBAAkB,CACxC,CAAC,CAAC,KAA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MAAA,EAAA,CAAA,8EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAWV,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbzB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAKG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,kBAAkB;AAC5B,qBAAA,EAAA,MAAA,EAAA,CAAA,8EAAA,CAAA,EAAA,CAAA;;;AC9IQ,MAAA,cAAc,GAAG;IAC1B,kBAAkB;IAClB,qBAAqB;IACrB,iBAAiB;IACjB,uBAAuB;;;ACZ3B;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-slider.mjs","sources":["../../../projects/kit/components/input-slider/input-slider.directive.ts","../../../projects/kit/components/input-slider/input-slider.ts","../../../projects/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n effect,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiNonNullableValueTransformer, TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiInjectAuxiliary} from '@taiga-ui/core/components/textfield';\nimport {\n TuiInputNumberDirective,\n tuiInputNumberOptionsProvider,\n TuiWithQuantumValueTransformer,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiSliderComponent} from '@taiga-ui/kit/components/slider';\nimport {filter, fromEvent, switchMap, tap} from 'rxjs';\n\n@Component({\n template: '',\n styles: [\n // TODO: tui-textfield:has([tuiInputSlider]) .t-clear\n 'tui-textfield [tuiInputSlider] ~ .t-content .t-clear {display: none !important}',\n // TODO: tui-textfield:has([tuiInputSlider]) [tuiSlider]:disabled\n 'tui-textfield [tuiInputSlider] ~ [tuiSlider]:disabled {display: none}',\n 'tui-textfield [tuiSlider] { --tui-slider-track-color: transparent !important; }',\n ],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-input-slider'},\n})\nclass Styles {}\n\n@Directive({\n selector: 'input[tuiInputSlider]',\n providers: [\n tuiInputNumberOptionsProvider({\n valueTransformer: new TuiNonNullableValueTransformer(),\n }),\n ],\n hostDirectives: [\n {\n directive: TuiInputNumberDirective,\n inputs: ['min', 'max', 'prefix', 'postfix', 'invalid', 'readOnly'],\n },\n TuiWithQuantumValueTransformer,\n ],\n host: {\n '(blur)': 'inputNumber.setValue(value() ?? null)',\n '(keydown.arrowUp)': 'onStep(1)',\n '(keydown.arrowDown)': 'onStep(-1)',\n },\n})\nexport class TuiInputSliderDirective {\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n private readonly slider = tuiInjectAuxiliary<TuiSliderComponent>(\n (x) => x instanceof TuiSliderComponent,\n );\n\n private readonly controlTransformer = inject<\n TuiValueTransformer<number | null, number>\n >(TuiValueTransformer, {self: true});\n\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly inputNumber = inject(TuiInputNumberDirective, {self: true});\n protected readonly value = computed(() =>\n this.controlTransformer.toControlValue(this.inputNumber.value()),\n );\n\n protected readonly textfieldToSliderSync = effect(() => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n if (!slider.keySteps?.transformer()) {\n slider.min = this.inputNumber.min();\n slider.max = this.inputNumber.max();\n slider.value = this.value();\n } else {\n slider.keySteps?.setControlValue(this.value());\n }\n\n slider.el.disabled = !this.inputNumber.interactive();\n });\n\n protected readonly sliderInit = effect((onCleanup) => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n slider.el.setAttribute('tabindex', '-1');\n\n if (slider.keySteps) {\n slider.keySteps.controlValue = this.value;\n }\n\n const subscription = fromEvent(slider.el, 'input')\n .pipe(\n tap(() =>\n this.inputNumber.setValue(\n slider.keySteps?.getControlValue() ?? slider.el.valueAsNumber,\n ),\n ),\n filter(() => !this.isMobile),\n switchMap(() =>\n fromEvent(this.el.ownerDocument, 'pointerup', {once: true}),\n ),\n )\n .subscribe(() => this.el.focus());\n\n onCleanup(() => subscription.unsubscribe());\n });\n\n protected onStep(coefficient: number): void {\n const slider = this.slider();\n\n if (slider && this.inputNumber.interactive()) {\n const newValue = tuiClamp(\n slider.keySteps?.takeStep(coefficient) ??\n slider.value + coefficient * slider.step,\n this.inputNumber.min(),\n this.inputNumber.max(),\n );\n\n this.inputNumber.setValue(newValue);\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';\nimport {\n TuiSliderComponent,\n TuiSliderKeySteps,\n TuiSliderKeyStepsBase,\n} from '@taiga-ui/kit/components/slider';\n\nimport {TuiInputSliderDirective} from './input-slider.directive';\n\nexport const TuiInputSlider = [\n TuiSliderComponent,\n TuiSliderKeyStepsBase,\n TuiSliderKeySteps,\n TuiInputSliderDirective,\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":[],"mappings":";;;;;;;;;;;;;;;AAuBA,MAaM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,I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 import { TuiLabel } from '@taiga-ui/core/components/label';
2
+ import * as i1$1 from '@taiga-ui/core/components/textfield';
3
+ import { tuiTextfieldIcon, TuiTextfieldComponent, TuiWithNativePicker, tuiAsTextfieldAccessor, TuiTextfieldContent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
4
+ import { TuiDropdownContent } from '@taiga-ui/core/portals';
2
5
  import * as i0 from '@angular/core';
3
- import { inject, signal, computed, untracked, Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
6
+ import { inject, computed, input, untracked, Directive, HostAttributeToken, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
7
  import { TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
5
8
  import { TuiTime } from '@taiga-ui/cdk/date-time';
6
- import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
7
- import * as i1 from '@taiga-ui/core/components/textfield';
8
- import { TuiTextfieldDirective, tuiTextfieldIconBinding, TuiTextfieldComponent, TuiWithNativePicker, tuiAsTextfieldAccessor, TuiWithTextfield, TuiTextfieldContent } from '@taiga-ui/core/components/textfield';
9
- import { toSignal } from '@angular/core/rxjs-interop';
10
9
  import * as i2 from '@maskito/angular';
11
10
  import { MaskitoDirective } from '@maskito/angular';
12
11
  import { maskitoTimeOptionsGenerator, maskitoSelectionChangeHandler, maskitoCaretGuard, maskitoAddOnFocusPlugin, maskitoRemoveOnBlurPlugin } from '@maskito/kit';
13
12
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
14
- import { tuiDirectiveBinding } from '@taiga-ui/cdk/utils/miscellaneous';
13
+ import { tuiCreateOptions, tuiDirectiveBinding } from '@taiga-ui/cdk/utils/di';
15
14
  import { tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
16
- import { TuiDropdownDirective, tuiDropdownOpen, tuiDropdownEnabled } from '@taiga-ui/core/directives/dropdown';
17
- import { tuiAsAuxiliary } from '@taiga-ui/core/tokens';
15
+ import * as i1 from '@taiga-ui/core/components/input';
16
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
17
+ import { TuiDropdownDirective, TuiDropdownOpen, tuiDropdownEnabled } from '@taiga-ui/core/portals/dropdown';
18
18
  import { TuiSelectOption } from '@taiga-ui/kit/components/select';
19
19
  import { TUI_TIME_TEXTS } from '@taiga-ui/kit/tokens';
20
20
  import { tuiMaskito } from '@taiga-ui/kit/utils';
21
- import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
22
21
 
23
22
  const TUI_INPUT_TIME_DEFAULT_OPTIONS = {
24
23
  icon: () => '@tui.clock',
@@ -32,46 +31,34 @@ const [TUI_INPUT_TIME_OPTIONS, tuiInputTimeOptionsProvider] = tuiCreateOptions(T
32
31
  class TuiInputTimeDirective extends TuiControl {
33
32
  constructor() {
34
33
  super(...arguments);
35
- this.textfield = inject(TuiTextfieldDirective);
34
+ this.input = inject(TuiInputDirective);
36
35
  this.dropdown = inject(TuiDropdownDirective);
37
- this.open = tuiDropdownOpen();
36
+ this.open = inject(TuiDropdownOpen).open;
38
37
  this.options = inject(TUI_INPUT_TIME_OPTIONS);
39
- this.fillers = toSignal(inject(TUI_TIME_TEXTS));
40
- this.prefix = signal('');
41
- this.postfix = signal('');
42
- this.icon = tuiTextfieldIconBinding(TUI_INPUT_TIME_OPTIONS);
38
+ this.fillers = inject(TUI_TIME_TEXTS);
39
+ this.icon = tuiTextfieldIcon(TUI_INPUT_TIME_OPTIONS);
43
40
  this.dropdownEnabled = tuiDropdownEnabled(computed(() => !this.native && this.interactive()));
44
- this.filler = tuiDirectiveBinding(TuiTextfieldComponent, 'fillerSetter', computed((filler = this.fillers()?.[this.timeMode()] ?? '') => this.postfix() ? '' : this.prefix() + filler), {});
41
+ this.filler = tuiDirectiveBinding(TuiTextfieldComponent, 'filler', computed((filler = this.fillers()?.[this.timeMode()] ?? '') => this.postfix() ? '' : this.prefix() + filler), {});
45
42
  this.mask = tuiMaskito(computed(() => this.computeMask({
46
43
  ...this.options,
47
44
  mode: this.timeMode(),
48
- step: this.interactive() && !this.dropdown._content() ? 1 : 0,
45
+ step: this.interactive() && !this.dropdown.content() ? 1 : 0,
49
46
  prefix: this.prefix(),
50
47
  postfix: this.postfix(),
51
48
  })));
52
- this.accept = [];
49
+ this.accept = input([]);
50
+ this.timeMode = input(this.options.mode, { alias: 'mode' });
51
+ this.prefix = input('');
52
+ this.postfix = input('');
53
53
  this.native = !!inject(TuiWithNativePicker, { optional: true }) && inject(TUI_IS_MOBILE);
54
- this.timeMode = signal(this.options.mode);
55
- }
56
- // TODO(v5): use signal inputs
57
- set modeSetter(x) {
58
- this.timeMode.set(x);
59
- }
60
- // TODO(v5): use signal inputs
61
- set prefixSetter(x) {
62
- this.prefix.set(x);
63
- }
64
- // TODO(v5): use signal inputs
65
- set postfixSetter(x) {
66
- this.postfix.set(x);
67
54
  }
68
55
  setValue(value) {
69
56
  this.onChange(value);
70
57
  if (value) {
71
- this.textfield.value.set(this.stringify(value));
58
+ this.input.value.set(this.stringify(value));
72
59
  }
73
60
  else {
74
- this.textfield.setValue(value);
61
+ this.input.setValue(value);
75
62
  }
76
63
  if (!value && this.dropdownEnabled()) {
77
64
  this.open.set(true);
@@ -82,7 +69,7 @@ class TuiInputTimeDirective extends TuiControl {
82
69
  const changed = untracked(() => value !== this.value());
83
70
  if (changed || reset) {
84
71
  super.writeValue(value);
85
- untracked(() => this.textfield.value.set(this.stringify(this.value())));
72
+ untracked(() => this.input.value.set(this.stringify(this.value())));
86
73
  }
87
74
  }
88
75
  onInput(valueWithAffixes) {
@@ -90,16 +77,34 @@ class TuiInputTimeDirective extends TuiControl {
90
77
  .replace(this.prefix(), '')
91
78
  .replace(this.postfix(), '');
92
79
  const time = value.length === this.timeMode().length ? TuiTime.fromString(value) : null;
93
- const newValue = this.accept.length && time ? this.findNearestTime(time, this.accept) : time;
80
+ const newValue = this.accept().length && time
81
+ ? this.findNearestTime(time, this.accept())
82
+ : time;
94
83
  this.control?.control?.updateValueAndValidity({ emitEvent: false });
95
84
  this.onChange(newValue);
96
85
  if (newValue && newValue !== time) {
97
- this.textfield.value.set(this.stringify(newValue));
86
+ this.input.value.set(this.stringify(newValue));
98
87
  }
99
88
  }
100
89
  toggle() {
101
90
  this.open.update((x) => !x);
102
91
  }
92
+ onBlur(valueWithAffixes) {
93
+ const value = valueWithAffixes
94
+ .replace(this.prefix(), '')
95
+ .replace(this.postfix(), '');
96
+ if (value && !this.value()) {
97
+ const time = TuiTime.fromString(value);
98
+ const newValue = this.accept().length
99
+ ? this.findNearestTime(time, this.accept())
100
+ : time;
101
+ this.control?.control?.updateValueAndValidity({ emitEvent: false });
102
+ this.onChange(newValue);
103
+ if (newValue) {
104
+ this.input.value.set(this.stringify(newValue));
105
+ }
106
+ }
107
+ }
103
108
  computeMask(params) {
104
109
  const options = maskitoTimeOptionsGenerator(params);
105
110
  const { mode, prefix, postfix } = params;
@@ -126,51 +131,38 @@ class TuiInputTimeDirective extends TuiControl {
126
131
  stringify(time) {
127
132
  return this.prefix() + (time?.toString(this.timeMode()) || '') + this.postfix();
128
133
  }
129
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputTimeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
130
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputTimeDirective, isStandalone: true, selector: "input[tuiInputTime]", inputs: { accept: "accept", modeSetter: ["mode", "modeSetter"], prefixSetter: ["prefix", "prefixSetter"], postfixSetter: ["postfix", "postfixSetter"] }, host: { attributes: { "inputmode": "numeric" }, listeners: { "click": "toggle()", "input": "onInput($event.target.value)" }, properties: { "disabled": "disabled()" } }, providers: [
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputTimeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
135
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiInputTimeDirective, isStandalone: true, selector: "input[tuiInputTime]", inputs: { accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, timeMode: { classPropertyName: "timeMode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, postfix: { classPropertyName: "postfix", publicName: "postfix", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "inputmode": "numeric" }, listeners: { "click": "toggle()", "input": "onInput($event.target.value)", "blur": "onBlur($event.target.value)" }, properties: { "disabled": "disabled()" } }, providers: [
131
136
  tuiAsControl(TuiInputTimeDirective),
132
137
  tuiAsTextfieldAccessor(TuiInputTimeDirective),
133
- tuiAsAuxiliary(TuiInputTimeDirective),
134
138
  tuiValueTransformerFrom(TUI_INPUT_TIME_OPTIONS),
135
139
  tuiAsOptionContent(TuiSelectOption),
136
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i2.MaskitoDirective }], ngImport: i0 }); }
140
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.MaskitoDirective }], ngImport: i0 }); }
137
141
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputTimeDirective, decorators: [{
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputTimeDirective, decorators: [{
139
143
  type: Directive,
140
144
  args: [{
141
- standalone: true,
142
145
  selector: 'input[tuiInputTime]',
143
146
  providers: [
144
147
  tuiAsControl(TuiInputTimeDirective),
145
148
  tuiAsTextfieldAccessor(TuiInputTimeDirective),
146
- tuiAsAuxiliary(TuiInputTimeDirective),
147
149
  tuiValueTransformerFrom(TUI_INPUT_TIME_OPTIONS),
148
150
  tuiAsOptionContent(TuiSelectOption),
149
151
  ],
150
- hostDirectives: [TuiWithTextfield, MaskitoDirective],
152
+ hostDirectives: [TuiWithInput, MaskitoDirective],
151
153
  host: {
152
154
  inputmode: 'numeric',
153
155
  '[disabled]': 'disabled()',
154
156
  '(click)': 'toggle()',
155
157
  '(input)': 'onInput($event.target.value)',
158
+ '(blur)': 'onBlur($event.target.value)',
156
159
  },
157
160
  }]
158
- }], propDecorators: { accept: [{
159
- type: Input
160
- }], modeSetter: [{
161
- type: Input,
162
- args: ['mode']
163
- }], prefixSetter: [{
164
- type: Input,
165
- args: ['prefix']
166
- }], postfixSetter: [{
167
- type: Input,
168
- args: ['postfix']
169
- }] } });
161
+ }] });
170
162
 
171
163
  class TuiNativeTimePicker {
172
164
  constructor() {
173
- this.list = tuiInjectElement().getAttribute('list');
165
+ this.list = inject(new HostAttributeToken('list'), { optional: true });
174
166
  }
175
167
  getStep(timeMode) {
176
168
  switch (timeMode) {
@@ -190,38 +182,40 @@ class TuiNativeTimePicker {
190
182
  const timeString = time ? time.toString('HH:MM:SS.MSS') : '';
191
183
  return dateString + timeString;
192
184
  }
193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNativeTimePicker, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
194
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiNativeTimePicker, host: { properties: { "attr.list": "null" } }, ngImport: i0 }); }
185
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNativeTimePicker, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
186
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiNativeTimePicker, isStandalone: true, host: { properties: { "attr.list": "null" } }, ngImport: i0 }); }
195
187
  }
196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNativeTimePicker, decorators: [{
188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNativeTimePicker, decorators: [{
197
189
  type: Directive,
198
- args: [{
199
- host: {
200
- '[attr.list]': 'null',
201
- },
202
- }]
190
+ args: [{ host: { '[attr.list]': 'null' } }]
203
191
  }] });
204
192
  class TuiInputTimeComponent extends TuiNativeTimePicker {
205
193
  constructor() {
206
194
  super(...arguments);
207
195
  this.control = inject(TuiControl);
208
196
  this.host = inject(TuiInputTimeDirective);
209
- this.textfield = inject(TuiTextfieldDirective);
210
197
  this.value = computed(() => this.toISOString(this.control.value()));
211
198
  this.step = computed(() => this.getStep(this.host.timeMode()));
212
199
  }
213
200
  setValue(value) {
214
201
  this.host.setValue(TuiTime.fromString(value));
215
202
  }
216
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputTimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
217
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputTimeComponent, isStandalone: true, selector: "input[tuiInputTime][type=\"time\"]", host: { attributes: { "ngSkipHydration": "true" } }, usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithNativePicker }], ngImport: i0, template: "<ng-container *ngIf=\"host.native\">\n <input\n *tuiTextfieldContent\n type=\"time\"\n [attr.list]=\"list\"\n [step]=\"step()\"\n [value]=\"value()\"\n (change)=\"setValue($any($event.target).value)\"\n />\n</ng-container>\n", styles: ["tui-textfield input[tuiInputTime]~.t-content input[type=time]{position:absolute;right:0;left:auto;inline-size:calc(var(--t-right) + var(--t-padding));opacity:0;margin:0;padding:0}tui-textfield input[tuiInputTime]~.t-content input[type=time]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
203
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputTimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
204
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiInputTimeComponent, isStandalone: true, selector: "input[tuiInputTime][type=\"time\"]", host: { attributes: { "ngSkipHydration": "true" } }, usesInheritance: true, hostDirectives: [{ directive: i1$1.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"time\"\n [attr.list]=\"list\"\n [step]=\"step()\"\n [value]=\"value()\"\n (change)=\"setValue($any($event.target).value)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputTime]~.t-content input[type=time]{position:absolute;right:0;left:auto;inline-size:calc(var(--t-right) + var(--t-padding));opacity:0;margin:0;padding:0}tui-textfield input[tuiInputTime]~.t-content input[type=time]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
218
205
  }
219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputTimeComponent, decorators: [{
206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputTimeComponent, decorators: [{
220
207
  type: Component,
221
- args: [{ standalone: true, selector: 'input[tuiInputTime][type="time"]', imports: [NgIf, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: { ngSkipHydration: 'true' }, template: "<ng-container *ngIf=\"host.native\">\n <input\n *tuiTextfieldContent\n type=\"time\"\n [attr.list]=\"list\"\n [step]=\"step()\"\n [value]=\"value()\"\n (change)=\"setValue($any($event.target).value)\"\n />\n</ng-container>\n", styles: ["tui-textfield input[tuiInputTime]~.t-content input[type=time]{position:absolute;right:0;left:auto;inline-size:calc(var(--t-right) + var(--t-padding));opacity:0;margin:0;padding:0}tui-textfield input[tuiInputTime]~.t-content input[type=time]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
208
+ args: [{ selector: 'input[tuiInputTime][type="time"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: { ngSkipHydration: 'true' }, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"time\"\n [attr.list]=\"list\"\n [step]=\"step()\"\n [value]=\"value()\"\n (change)=\"setValue($any($event.target).value)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputTime]~.t-content input[type=time]{position:absolute;right:0;left:auto;inline-size:calc(var(--t-right) + var(--t-padding));opacity:0;margin:0;padding:0}tui-textfield input[tuiInputTime]~.t-content input[type=time]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
222
209
  }] });
223
210
 
224
- const TuiInputTime = [TuiInputTimeDirective, TuiInputTimeComponent];
211
+ const TuiInputTime = [
212
+ TuiInputTimeDirective,
213
+ TuiInputTimeComponent,
214
+ TuiLabel,
215
+ TuiTextfieldComponent,
216
+ TuiTextfieldOptionsDirective,
217
+ TuiDropdownContent,
218
+ ];
225
219
 
226
220
  /**
227
221
  * Generated bundle index. Do not edit.