@taiga-ui/kit 2.34.0 → 2.37.0

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 (609) hide show
  1. package/abstract/input-slider.d.ts +22 -3
  2. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +65 -17
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
  6. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  10. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
  16. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
  18. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
  20. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +2 -2
  22. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-combo-box.umd.js +1 -1
  24. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  26. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +4 -4
  28. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  30. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-files.umd.js +504 -0
  32. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -0
  33. package/bundles/taiga-ui-kit-components-files.umd.min.js +16 -0
  34. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -0
  35. package/bundles/taiga-ui-kit-components-input-count.umd.js +2 -2
  36. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  38. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +3 -1
  40. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +1 -1
  43. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  45. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-date.umd.js +4 -2
  47. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  49. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-file.umd.js +43 -45
  51. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  53. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-files.umd.js +490 -0
  55. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -0
  56. package/bundles/taiga-ui-kit-components-input-files.umd.min.js +16 -0
  57. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -0
  58. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +64 -41
  59. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +2 -2
  61. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-month.umd.js +57 -32
  63. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +2 -2
  65. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-number.umd.js +24 -16
  67. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  69. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-password.umd.js +2 -2
  71. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  73. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +20 -8
  75. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +2 -2
  77. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-phone.umd.js +13 -6
  79. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +2 -2
  81. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-range.umd.js +16 -4
  83. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  85. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-slider.umd.js +61 -14
  87. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  89. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-tag.umd.js +16 -9
  91. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
  93. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +27 -16
  99. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +2 -2
  103. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-multi-select.umd.js +23 -9
  107. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
  109. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-pagination.umd.js +1 -1
  111. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  113. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-progress.umd.js +140 -73
  115. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
  117. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-slider.umd.js +205 -30
  123. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  125. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-text-area.umd.js +50 -13
  127. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  129. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components.umd.js +20 -4
  131. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  133. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +22 -5
  134. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  135. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  136. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +1 -1
  138. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  139. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  141. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +46 -6
  142. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  143. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +2 -2
  144. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  145. package/bundles/taiga-ui-kit-providers.umd.js +29 -12
  146. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  147. package/bundles/taiga-ui-kit-providers.umd.min.js +1 -1
  148. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-kit-tokens.umd.js +11 -0
  150. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
  152. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-kit-utils-files.umd.js +8 -0
  154. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-utils-files.umd.min.js +1 -1
  156. package/bundles/taiga-ui-kit-utils-files.umd.min.js.map +1 -1
  157. package/components/arrow/arrow-options.d.ts +4 -2
  158. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  159. package/components/badge/badge.component.d.ts +2 -1
  160. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  161. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  162. package/components/combo-box/combo-box.component.d.ts +4 -4
  163. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  164. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  165. package/components/files/file/file.component.d.ts +42 -0
  166. package/components/files/files.component.d.ts +12 -0
  167. package/components/files/files.module.d.ts +2 -0
  168. package/components/files/index.d.ts +2 -0
  169. package/components/files/package.json +13 -0
  170. package/components/files/taiga-ui-kit-components-files.d.ts +5 -0
  171. package/components/files/taiga-ui-kit-components-files.metadata.json +1 -0
  172. package/components/index.d.ts +2 -0
  173. package/components/input/input.component.d.ts +2 -2
  174. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  175. package/components/input-count/input-count.component.d.ts +3 -2
  176. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  177. package/components/input-date/input-date.component.d.ts +5 -3
  178. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  179. package/components/input-date-range/input-date-range.component.d.ts +3 -2
  180. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  181. package/components/input-date-time/input-date-time.component.d.ts +7 -5
  182. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  183. package/components/input-file/file/file.component.d.ts +1 -1
  184. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  185. package/components/input-files/index.d.ts +2 -0
  186. package/components/input-files/input-files.component.d.ts +41 -0
  187. package/components/input-files/input-files.module.d.ts +2 -0
  188. package/components/input-files/package.json +13 -0
  189. package/components/input-files/taiga-ui-kit-components-input-files.d.ts +4 -0
  190. package/components/input-files/taiga-ui-kit-components-input-files.metadata.json +1 -0
  191. package/components/input-month/index.d.ts +1 -0
  192. package/components/input-month/input-month.component.d.ts +6 -4
  193. package/components/input-month/input-month.directive.d.ts +8 -1
  194. package/components/input-month/input-month.providers.d.ts +2 -0
  195. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  196. package/components/input-month-range/index.d.ts +1 -0
  197. package/components/input-month-range/input-month-range.component.d.ts +6 -7
  198. package/components/input-month-range/input-month-range.directive.d.ts +8 -1
  199. package/components/input-month-range/input-month-range.providers.d.ts +2 -0
  200. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  201. package/components/input-number/input-number.component.d.ts +3 -2
  202. package/components/input-number/input-number.directive.d.ts +4 -1
  203. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  204. package/components/input-password/input-password.component.d.ts +4 -3
  205. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  206. package/components/input-phone/input-phone.component.d.ts +5 -6
  207. package/components/input-phone/input-phone.directive.d.ts +4 -1
  208. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  209. package/components/input-phone-international/input-phone-international.component.d.ts +4 -2
  210. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  211. package/components/input-range/input-range.component.d.ts +2 -0
  212. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  213. package/components/input-slider/input-slider.component.d.ts +19 -3
  214. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  215. package/components/input-tag/input-tag.component.d.ts +6 -4
  216. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  217. package/components/input-time/input-time.component.d.ts +2 -2
  218. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  219. package/components/line-clamp/line-clamp.component.d.ts +7 -3
  220. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  221. package/components/multi-select/hide-selected.pipe.d.ts +1 -1
  222. package/components/multi-select/multi-select.component.d.ts +8 -6
  223. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  224. package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.metadata.json +1 -1
  225. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  226. package/components/progress/index.d.ts +4 -3
  227. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +11 -0
  228. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  229. package/components/progress/{pipes → utils}/abstract-color-segments.d.ts +0 -0
  230. package/components/progress/utils/calculate-color-segments.d.ts +1 -0
  231. package/components/progress/{pipes → utils}/progress-color-segments-async.pipe.d.ts +5 -0
  232. package/components/progress/utils/progress-color-segments.pipe.d.ts +9 -0
  233. package/components/radio/radio.component.d.ts +1 -1
  234. package/components/select/select.component.d.ts +4 -4
  235. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  236. package/components/slider/index.d.ts +2 -0
  237. package/components/slider/slider-key-steps.directive.d.ts +27 -0
  238. package/components/slider/slider-options.d.ts +9 -0
  239. package/components/slider/slider.component.d.ts +8 -6
  240. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  241. package/components/taiga-ui-kit-components.metadata.json +1 -1
  242. package/components/text-area/index.d.ts +1 -0
  243. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  244. package/components/text-area/text-area.component.d.ts +2 -1
  245. package/components/text-area/text-area.directive.d.ts +5 -0
  246. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +2 -2
  247. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  248. package/directives/lazy-loading/index.d.ts +1 -0
  249. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +0 -1
  250. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  251. package/enums/file-state.d.ts +1 -0
  252. package/enums/taiga-ui-kit-enums.metadata.json +1 -1
  253. package/esm2015/abstract/input-slider.js +43 -4
  254. package/esm2015/components/accordion/accordion.component.js +2 -2
  255. package/esm2015/components/arrow/arrow-options.js +1 -1
  256. package/esm2015/components/badge/badge.component.js +1 -1
  257. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  258. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  259. package/esm2015/components/combo-box/combo-box.component.js +2 -2
  260. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +3 -3
  261. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +3 -3
  262. package/esm2015/components/files/file/file.component.js +164 -0
  263. package/esm2015/components/files/files.component.js +45 -0
  264. package/esm2015/components/files/files.module.js +29 -0
  265. package/esm2015/components/files/index.js +3 -0
  266. package/esm2015/components/files/taiga-ui-kit-components-files.js +6 -0
  267. package/esm2015/components/index.js +3 -1
  268. package/esm2015/components/input/input.component.js +1 -1
  269. package/esm2015/components/input-count/input-count.component.js +3 -3
  270. package/esm2015/components/input-date/input-date.component.js +5 -3
  271. package/esm2015/components/input-date-range/input-date-range.component.js +4 -2
  272. package/esm2015/components/input-date-time/input-date-time.component.js +2 -2
  273. package/esm2015/components/input-file/file/file.component.js +19 -19
  274. package/esm2015/components/input-file/input-file.component.js +7 -7
  275. package/esm2015/components/input-file/input-file.module.js +3 -3
  276. package/esm2015/components/input-files/index.js +3 -0
  277. package/esm2015/components/input-files/input-files.component.js +208 -0
  278. package/esm2015/components/input-files/input-files.module.js +34 -0
  279. package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +5 -0
  280. package/esm2015/components/input-month/index.js +2 -1
  281. package/esm2015/components/input-month/input-month.component.js +19 -25
  282. package/esm2015/components/input-month/input-month.directive.js +32 -7
  283. package/esm2015/components/input-month/input-month.module.js +4 -4
  284. package/esm2015/components/input-month/input-month.providers.js +19 -0
  285. package/esm2015/components/input-month-range/index.js +2 -1
  286. package/esm2015/components/input-month-range/input-month-range.component.js +21 -37
  287. package/esm2015/components/input-month-range/input-month-range.directive.js +37 -7
  288. package/esm2015/components/input-month-range/input-month-range.module.js +3 -2
  289. package/esm2015/components/input-month-range/input-month-range.providers.js +19 -0
  290. package/esm2015/components/input-number/input-number.component.js +5 -5
  291. package/esm2015/components/input-number/input-number.directive.js +9 -3
  292. package/esm2015/components/input-password/input-password.component.js +3 -3
  293. package/esm2015/components/input-phone/input-phone.component.js +6 -5
  294. package/esm2015/components/input-phone/input-phone.directive.js +9 -3
  295. package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -6
  296. package/esm2015/components/input-range/input-range.component.js +18 -6
  297. package/esm2015/components/input-slider/input-slider.component.js +55 -11
  298. package/esm2015/components/input-slider/input-slider.module.js +10 -6
  299. package/esm2015/components/input-tag/input-tag.component.js +17 -10
  300. package/esm2015/components/input-time/input-time.component.js +1 -1
  301. package/esm2015/components/line-clamp/line-clamp.component.js +25 -15
  302. package/esm2015/components/line-clamp/line-clamp.directive.js +5 -4
  303. package/esm2015/components/multi-select/hide-selected.pipe.js +4 -3
  304. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +3 -3
  305. package/esm2015/components/multi-select/multi-select.component.js +16 -6
  306. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  307. package/esm2015/components/pagination/pagination.component.js +2 -2
  308. package/esm2015/components/progress/index.js +5 -4
  309. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +48 -0
  310. package/esm2015/components/progress/progress.module.js +6 -3
  311. package/esm2015/components/progress/utils/abstract-color-segments.js +32 -0
  312. package/esm2015/components/progress/utils/calculate-color-segments.js +11 -0
  313. package/esm2015/components/progress/utils/progress-color-segments-async.pipe.js +21 -0
  314. package/esm2015/components/progress/utils/progress-color-segments.pipe.js +19 -0
  315. package/esm2015/components/radio/radio.component.js +1 -1
  316. package/esm2015/components/select/select.component.js +2 -2
  317. package/esm2015/components/slider/index.js +3 -1
  318. package/esm2015/components/slider/slider-key-steps.directive.js +106 -0
  319. package/esm2015/components/slider/slider-options.js +13 -0
  320. package/esm2015/components/slider/slider.component.js +48 -26
  321. package/esm2015/components/slider/slider.module.js +14 -3
  322. package/esm2015/components/text-area/index.js +2 -1
  323. package/esm2015/components/text-area/text-area.component.js +21 -13
  324. package/esm2015/components/text-area/text-area.directive.js +22 -0
  325. package/esm2015/components/text-area/text-area.module.js +7 -6
  326. package/esm2015/components/text-area/text-area.providers.js +6 -2
  327. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +23 -6
  328. package/esm2015/directives/lazy-loading/index.js +2 -1
  329. package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
  330. package/esm2015/enums/file-state.js +1 -1
  331. package/esm2015/pipes/field-error/field-error-content-pipe.js +43 -0
  332. package/esm2015/pipes/field-error/field-error.module.js +4 -3
  333. package/esm2015/pipes/field-error/index.js +2 -1
  334. package/esm2015/providers/index.js +2 -1
  335. package/esm2015/providers/month-formatter.provider.js +17 -0
  336. package/esm2015/providers/value-accessor.provider.js +2 -2
  337. package/esm2015/tokens/i18n.js +7 -1
  338. package/esm2015/tokens/index.js +2 -1
  339. package/esm2015/tokens/month-formatter.js +3 -0
  340. package/esm2015/utils/files/get-accept-array.js +7 -0
  341. package/esm2015/utils/files/index.js +2 -1
  342. package/esm5/abstract/input-slider.js +65 -16
  343. package/esm5/components/accordion/accordion.component.js +2 -2
  344. package/esm5/components/arrow/arrow-options.js +1 -1
  345. package/esm5/components/badge/badge.component.js +1 -1
  346. package/esm5/components/badged-content/badged-content.component.js +3 -3
  347. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  348. package/esm5/components/combo-box/combo-box.component.js +2 -2
  349. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +3 -3
  350. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +3 -3
  351. package/esm5/components/files/file/file.component.js +213 -0
  352. package/esm5/components/files/files.component.js +50 -0
  353. package/esm5/components/files/files.module.js +32 -0
  354. package/esm5/components/files/index.js +3 -0
  355. package/esm5/components/files/taiga-ui-kit-components-files.js +6 -0
  356. package/esm5/components/index.js +3 -1
  357. package/esm5/components/input/input.component.js +1 -1
  358. package/esm5/components/input-count/input-count.component.js +3 -3
  359. package/esm5/components/input-date/input-date.component.js +5 -3
  360. package/esm5/components/input-date-range/input-date-range.component.js +4 -2
  361. package/esm5/components/input-date-time/input-date-time.component.js +2 -2
  362. package/esm5/components/input-file/file/file.component.js +37 -37
  363. package/esm5/components/input-file/input-file.component.js +7 -9
  364. package/esm5/components/input-file/input-file.module.js +3 -3
  365. package/esm5/components/input-files/index.js +3 -0
  366. package/esm5/components/input-files/input-files.component.js +239 -0
  367. package/esm5/components/input-files/input-files.module.js +37 -0
  368. package/esm5/components/input-files/taiga-ui-kit-components-input-files.js +5 -0
  369. package/esm5/components/input-month/index.js +2 -1
  370. package/esm5/components/input-month/input-month.component.js +18 -25
  371. package/esm5/components/input-month/input-month.directive.js +32 -9
  372. package/esm5/components/input-month/input-month.module.js +4 -4
  373. package/esm5/components/input-month/input-month.providers.js +19 -0
  374. package/esm5/components/input-month-range/index.js +2 -1
  375. package/esm5/components/input-month-range/input-month-range.component.js +20 -38
  376. package/esm5/components/input-month-range/input-month-range.directive.js +38 -8
  377. package/esm5/components/input-month-range/input-month-range.module.js +3 -2
  378. package/esm5/components/input-month-range/input-month-range.providers.js +19 -0
  379. package/esm5/components/input-number/input-number.component.js +18 -16
  380. package/esm5/components/input-number/input-number.directive.js +9 -3
  381. package/esm5/components/input-password/input-password.component.js +3 -3
  382. package/esm5/components/input-phone/input-phone.component.js +6 -5
  383. package/esm5/components/input-phone/input-phone.directive.js +9 -3
  384. package/esm5/components/input-phone-international/input-phone-international.component.js +21 -9
  385. package/esm5/components/input-range/input-range.component.js +18 -6
  386. package/esm5/components/input-slider/input-slider.component.js +58 -11
  387. package/esm5/components/input-slider/input-slider.module.js +10 -6
  388. package/esm5/components/input-tag/input-tag.component.js +17 -10
  389. package/esm5/components/input-time/input-time.component.js +1 -1
  390. package/esm5/components/line-clamp/line-clamp.component.js +26 -16
  391. package/esm5/components/line-clamp/line-clamp.directive.js +5 -4
  392. package/esm5/components/multi-select/hide-selected.pipe.js +4 -4
  393. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +3 -3
  394. package/esm5/components/multi-select/multi-select.component.js +20 -6
  395. package/esm5/components/multi-select-option/multi-select-option.component.js +3 -3
  396. package/esm5/components/pagination/pagination.component.js +2 -2
  397. package/esm5/components/progress/index.js +5 -4
  398. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +56 -0
  399. package/esm5/components/progress/progress.module.js +6 -3
  400. package/esm5/components/progress/utils/abstract-color-segments.js +33 -0
  401. package/esm5/components/progress/utils/calculate-color-segments.js +13 -0
  402. package/esm5/components/progress/utils/progress-color-segments-async.pipe.js +27 -0
  403. package/esm5/components/progress/utils/progress-color-segments.pipe.js +24 -0
  404. package/esm5/components/radio/radio.component.js +1 -1
  405. package/esm5/components/select/select.component.js +2 -2
  406. package/esm5/components/slider/index.js +3 -1
  407. package/esm5/components/slider/slider-key-steps.directive.js +137 -0
  408. package/esm5/components/slider/slider-options.js +14 -0
  409. package/esm5/components/slider/slider.component.js +49 -27
  410. package/esm5/components/slider/slider.module.js +14 -3
  411. package/esm5/components/text-area/index.js +2 -1
  412. package/esm5/components/text-area/text-area.component.js +21 -13
  413. package/esm5/components/text-area/text-area.directive.js +28 -0
  414. package/esm5/components/text-area/text-area.module.js +7 -6
  415. package/esm5/components/text-area/text-area.providers.js +6 -2
  416. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +23 -6
  417. package/esm5/directives/lazy-loading/index.js +2 -1
  418. package/esm5/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
  419. package/esm5/enums/file-state.js +1 -1
  420. package/esm5/pipes/field-error/field-error-content-pipe.js +44 -0
  421. package/esm5/pipes/field-error/field-error.module.js +4 -3
  422. package/esm5/pipes/field-error/index.js +2 -1
  423. package/esm5/providers/index.js +2 -1
  424. package/esm5/providers/month-formatter.provider.js +19 -0
  425. package/esm5/providers/value-accessor.provider.js +2 -2
  426. package/esm5/tokens/i18n.js +7 -1
  427. package/esm5/tokens/index.js +2 -1
  428. package/esm5/tokens/month-formatter.js +3 -0
  429. package/esm5/utils/files/get-accept-array.js +7 -0
  430. package/esm5/utils/files/index.js +2 -1
  431. package/fesm2015/taiga-ui-kit-abstract.js +42 -3
  432. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  433. package/fesm2015/taiga-ui-kit-components-accordion.js +1 -1
  434. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  435. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  436. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  437. package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
  438. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  439. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  440. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  441. package/fesm2015/taiga-ui-kit-components-combo-box.js +1 -1
  442. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  443. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  444. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  445. package/fesm2015/taiga-ui-kit-components-files.js +232 -0
  446. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -0
  447. package/fesm2015/taiga-ui-kit-components-input-count.js +2 -2
  448. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  449. package/fesm2015/taiga-ui-kit-components-input-date-range.js +3 -1
  450. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  451. package/fesm2015/taiga-ui-kit-components-input-date-time.js +1 -1
  452. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  453. package/fesm2015/taiga-ui-kit-components-input-date.js +4 -2
  454. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  455. package/fesm2015/taiga-ui-kit-components-input-file.js +25 -25
  456. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  457. package/fesm2015/taiga-ui-kit-components-input-files.js +242 -0
  458. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -0
  459. package/fesm2015/taiga-ui-kit-components-input-month-range.js +67 -41
  460. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  461. package/fesm2015/taiga-ui-kit-components-input-month.js +61 -31
  462. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  463. package/fesm2015/taiga-ui-kit-components-input-number.js +12 -6
  464. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  465. package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
  466. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  467. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +19 -5
  468. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  469. package/fesm2015/taiga-ui-kit-components-input-phone.js +13 -6
  470. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  471. package/fesm2015/taiga-ui-kit-components-input-range.js +17 -5
  472. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  473. package/fesm2015/taiga-ui-kit-components-input-slider.js +61 -15
  474. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  475. package/fesm2015/taiga-ui-kit-components-input-tag.js +16 -9
  476. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  477. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  478. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  479. package/fesm2015/taiga-ui-kit-components-line-clamp.js +28 -17
  480. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  481. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
  482. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  483. package/fesm2015/taiga-ui-kit-components-multi-select.js +20 -9
  484. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  485. package/fesm2015/taiga-ui-kit-components-pagination.js +1 -1
  486. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  487. package/fesm2015/taiga-ui-kit-components-progress.js +113 -55
  488. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  489. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  490. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  491. package/fesm2015/taiga-ui-kit-components-slider.js +169 -28
  492. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  493. package/fesm2015/taiga-ui-kit-components-text-area.js +47 -17
  494. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  495. package/fesm2015/taiga-ui-kit-components.js +2 -0
  496. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  497. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +22 -5
  498. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  499. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +1 -1
  500. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  501. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  502. package/fesm2015/taiga-ui-kit-pipes-field-error.js +43 -4
  503. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  504. package/fesm2015/taiga-ui-kit-providers.js +18 -4
  505. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  506. package/fesm2015/taiga-ui-kit-tokens.js +9 -1
  507. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  508. package/fesm2015/taiga-ui-kit-utils-files.js +8 -1
  509. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  510. package/fesm5/taiga-ui-kit-abstract.js +64 -15
  511. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  512. package/fesm5/taiga-ui-kit-components-accordion.js +1 -1
  513. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  514. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  515. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  516. package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
  517. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  518. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  519. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  520. package/fesm5/taiga-ui-kit-components-combo-box.js +1 -1
  521. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  522. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  523. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  524. package/fesm5/taiga-ui-kit-components-files.js +289 -0
  525. package/fesm5/taiga-ui-kit-components-files.js.map +1 -0
  526. package/fesm5/taiga-ui-kit-components-input-count.js +2 -2
  527. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  528. package/fesm5/taiga-ui-kit-components-input-date-range.js +3 -1
  529. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  530. package/fesm5/taiga-ui-kit-components-input-date-time.js +1 -1
  531. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  532. package/fesm5/taiga-ui-kit-components-input-date.js +4 -2
  533. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  534. package/fesm5/taiga-ui-kit-components-input-file.js +43 -45
  535. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  536. package/fesm5/taiga-ui-kit-components-input-files.js +276 -0
  537. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -0
  538. package/fesm5/taiga-ui-kit-components-input-month-range.js +68 -44
  539. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  540. package/fesm5/taiga-ui-kit-components-input-month.js +60 -33
  541. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  542. package/fesm5/taiga-ui-kit-components-input-number.js +25 -17
  543. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  544. package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
  545. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  546. package/fesm5/taiga-ui-kit-components-input-phone-international.js +20 -8
  547. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  548. package/fesm5/taiga-ui-kit-components-input-phone.js +13 -6
  549. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  550. package/fesm5/taiga-ui-kit-components-input-range.js +17 -5
  551. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  552. package/fesm5/taiga-ui-kit-components-input-slider.js +65 -16
  553. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  554. package/fesm5/taiga-ui-kit-components-input-tag.js +16 -9
  555. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  556. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  557. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  558. package/fesm5/taiga-ui-kit-components-line-clamp.js +29 -18
  559. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  560. package/fesm5/taiga-ui-kit-components-multi-select-option.js +2 -2
  561. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  562. package/fesm5/taiga-ui-kit-components-multi-select.js +24 -10
  563. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  564. package/fesm5/taiga-ui-kit-components-pagination.js +1 -1
  565. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  566. package/fesm5/taiga-ui-kit-components-progress.js +135 -69
  567. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  568. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  569. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  570. package/fesm5/taiga-ui-kit-components-slider.js +202 -30
  571. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  572. package/fesm5/taiga-ui-kit-components-text-area.js +53 -17
  573. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  574. package/fesm5/taiga-ui-kit-components.js +2 -0
  575. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  576. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +22 -5
  577. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  578. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +1 -1
  579. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  580. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  581. package/fesm5/taiga-ui-kit-pipes-field-error.js +44 -4
  582. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  583. package/fesm5/taiga-ui-kit-providers.js +20 -4
  584. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  585. package/fesm5/taiga-ui-kit-tokens.js +9 -1
  586. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  587. package/fesm5/taiga-ui-kit-utils-files.js +8 -1
  588. package/fesm5/taiga-ui-kit-utils-files.js.map +1 -1
  589. package/package.json +4 -4
  590. package/pipes/field-error/field-error-content-pipe.d.ts +12 -0
  591. package/pipes/field-error/index.d.ts +1 -0
  592. package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -1
  593. package/providers/index.d.ts +1 -0
  594. package/providers/month-formatter.provider.d.ts +6 -0
  595. package/providers/taiga-ui-kit-providers.metadata.json +1 -1
  596. package/tokens/i18n.d.ts +2 -0
  597. package/tokens/index.d.ts +1 -0
  598. package/tokens/month-formatter.d.ts +4 -0
  599. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  600. package/utils/files/get-accept-array.d.ts +1 -0
  601. package/utils/files/index.d.ts +1 -0
  602. package/utils/files/taiga-ui-kit-utils-files.metadata.json +1 -1
  603. package/components/progress/pipes/progress-color-segments.pipe.d.ts +0 -9
  604. package/esm2015/components/progress/pipes/abstract-color-segments.js +0 -32
  605. package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +0 -15
  606. package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +0 -18
  607. package/esm5/components/progress/pipes/abstract-color-segments.js +0 -35
  608. package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +0 -21
  609. package/esm5/components/progress/pipes/progress-color-segments.pipe.js +0 -23
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-range.js","sources":["ng://@taiga-ui/kit/components/input-range/input-range.component.ts","ng://@taiga-ui/kit/components/input-range/input-range.module.ts","ng://@taiga-ui/kit/components/input-range/taiga-ui-kit-components-input-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TuiModeDirective,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\n\n// @dynamic\n@Component({\n selector: 'tui-input-range',\n templateUrl: './input-range.template.html',\n styleUrls: ['./input-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputRangeComponent),\n },\n ],\n})\nexport class TuiInputRangeComponent\n extends AbstractTuiInputSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('nativeLeft')\n private readonly nativeLeft?: ElementRef<HTMLInputElement>;\n\n @ViewChild('nativeRight')\n private readonly nativeRight?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_IS_MOBILE)\n private readonly isMobile: boolean,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.nativeLeft || this.disabled ? null : this.nativeLeft.nativeElement;\n }\n\n get focused(): boolean {\n return this.focusedLeft || this.focusedRight;\n }\n\n get focusedLeft(): boolean {\n return !!this.nativeLeft && isNativeFocused(this.nativeLeft.nativeElement);\n }\n\n get focusedRight(): boolean {\n return !!this.nativeRight && isNativeFocused(this.nativeRight.nativeElement);\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focusedLeft && !!this.minLabel && this.value[0] === this.min;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focusedRight && !!this.maxLabel && this.value[1] === this.max;\n }\n\n get inputValueLeft(): string {\n return this.nativeLeft ? this.nativeLeft.nativeElement.value : '';\n }\n\n get inputValueRight(): string {\n return this.nativeRight ? this.nativeRight.nativeElement.value : '';\n }\n\n get computedValueLeft(): string {\n return this.formatNumber(this.value[0]);\n }\n\n get computedValueRight(): string {\n return this.formatNumber(this.value[1]);\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n onMouseDown() {\n if (this.nativeRight && !this.isMobile) {\n setNativeFocused(this.nativeRight.nativeElement);\n }\n }\n\n onKeyDownArrowUpLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, false);\n }\n\n onKeyDownArrowDownLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, false);\n }\n\n onKeyDownArrowUpRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, true);\n }\n\n onKeyDownArrowDownRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, true);\n }\n\n onInputLeft() {\n const value = this.inputValueLeft;\n const capped = this.capInputValue(value, this.value[1]);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeLeft && this.inputValueLeft !== newValue) {\n this.nativeLeft.nativeElement.value = newValue;\n }\n\n this.updateValue([capped, this.value[1]]);\n }\n\n onInputRight() {\n const value = this.inputValueRight;\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeRight && this.inputValueRight !== newValue) {\n this.nativeRight.nativeElement.value = newValue;\n }\n\n if (capped >= this.value[0]) {\n this.updateValue([this.value[0], capped]);\n }\n }\n\n onRangeValue(value: [number, number]) {\n const guardedValue = value.map(item => this.valueGuard(item)) as [number, number];\n\n if (\n !this.nativeLeft ||\n !this.nativeRight ||\n (guardedValue[0] === this.value[0] && guardedValue[1] === this.value[1])\n ) {\n return;\n }\n\n if (!this.isMobile) {\n const element =\n guardedValue[0] !== this.value[0]\n ? this.nativeLeft.nativeElement\n : this.nativeRight.nativeElement;\n\n setNativeFocused(element);\n }\n\n this.updateValue(guardedValue);\n this.nativeLeft.nativeElement.value = this.formatNumber(guardedValue[0]);\n }\n\n onLeftFocused(focused: boolean) {\n if (focused || !this.nativeLeft) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueLeft,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.nativeLeft.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[0]) {\n this.updateValue([value, this.value[1]]);\n }\n }\n\n onRightFocused(focused: boolean) {\n if (focused || !this.nativeRight) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueRight,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n const value = isNaN(inputValue)\n ? this.value[0]\n : this.valueGuard(Math.max(inputValue, this.value[0]));\n\n this.nativeRight.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[1]) {\n this.updateValue([this.value[0], value]);\n }\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private processStep(increment: boolean, right: boolean) {\n const start = this.valueGuard(\n increment ? this.value[0] + this.step : this.value[0] - this.step,\n );\n const end = this.valueGuard(\n increment ? this.value[1] + this.step : this.value[1] - this.step,\n );\n const value: [number, number] = [\n right ? this.value[0] : Math.min(start, this.value[1]),\n right ? Math.max(end, this.value[0]) : this.value[1],\n ];\n\n if (value[0] !== this.value[0] || value[1] !== this.value[1]) {\n this.updateValue(value);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRangeModule} from '@taiga-ui/kit/components/range';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputRangeComponent} from './input-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiActiveZoneModule,\n TuiRangeModule,\n TuiWrapperModule,\n ],\n declarations: [TuiInputRangeComponent],\n exports: [TuiInputRangeComponent],\n})\nex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AAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QAExB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QAErB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;OAvB5B,sBAAsB,CAyPlC;IAAD,6BAAC;CAAA,CAxPW,sBAAsB;;;ICTlC;KAAmC;IAAtB,mBAAmB;QAnB/B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,mBAAmB;gBACnB,cAAc;gBACd,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,gBAAgB;gBAChB,mBAAmB;gBACnB,kBAAkB;gBAClB,mBAAmB;gBACnB,cAAc;gBACd,gBAAgB;aACnB;YACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACrCA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-range.js","sources":["ng://@taiga-ui/kit/components/input-range/input-range.component.ts","ng://@taiga-ui/kit/components/input-range/input-range.module.ts","ng://@taiga-ui/kit/components/input-range/taiga-ui-kit-components-input-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TuiModeDirective,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\n\n// @dynamic\n@Component({\n selector: 'tui-input-range',\n templateUrl: './input-range.template.html',\n styleUrls: ['./input-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputRangeComponent),\n },\n ],\n})\nexport class TuiInputRangeComponent\n extends AbstractTuiInputSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('nativeLeft')\n private readonly nativeLeft?: ElementRef<HTMLInputElement>;\n\n @ViewChild('nativeRight')\n private readonly nativeRight?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_IS_MOBILE)\n private readonly isMobile: boolean,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.nativeLeft || this.disabled ? null : this.nativeLeft.nativeElement;\n }\n\n get focused(): boolean {\n return this.focusedLeft || this.focusedRight;\n }\n\n get focusedLeft(): boolean {\n return !!this.nativeLeft && isNativeFocused(this.nativeLeft.nativeElement);\n }\n\n get focusedRight(): boolean {\n return !!this.nativeRight && isNativeFocused(this.nativeRight.nativeElement);\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focusedLeft && !!this.minLabel && this.value[0] === this.min;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focusedRight && !!this.maxLabel && this.value[1] === this.max;\n }\n\n get inputValueLeft(): string {\n return this.nativeLeft ? this.nativeLeft.nativeElement.value : '';\n }\n\n get inputValueRight(): string {\n return this.nativeRight ? this.nativeRight.nativeElement.value : '';\n }\n\n get computedValueLeft(): string {\n return this.computedPureValueLeft(this.value[0]);\n }\n\n get computedValueRight(): string {\n return this.computedPureValueRight(this.value[1]);\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n onMouseDown() {\n if (this.nativeRight && !this.isMobile) {\n setNativeFocused(this.nativeRight.nativeElement);\n }\n }\n\n onKeyDownArrowUpLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, false);\n }\n\n onKeyDownArrowDownLeft(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, false);\n }\n\n onKeyDownArrowUpRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true, true);\n }\n\n onKeyDownArrowDownRight(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false, true);\n }\n\n onInputLeft() {\n const value = this.inputValueLeft;\n const capped = this.capInputValue(value, this.value[1]);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeLeft && this.inputValueLeft !== newValue) {\n this.nativeLeft.nativeElement.value = newValue;\n }\n\n this.updateValue([capped, this.value[1]]);\n }\n\n onInputRight() {\n const value = this.inputValueRight;\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (this.nativeRight && this.inputValueRight !== newValue) {\n this.nativeRight.nativeElement.value = newValue;\n }\n\n if (capped >= this.value[0]) {\n this.updateValue([this.value[0], capped]);\n }\n }\n\n onRangeValue(value: [number, number]) {\n const guardedValue = value.map(item => this.valueGuard(item)) as [number, number];\n\n if (\n !this.nativeLeft ||\n !this.nativeRight ||\n (guardedValue[0] === this.value[0] && guardedValue[1] === this.value[1])\n ) {\n return;\n }\n\n if (!this.isMobile) {\n const element =\n guardedValue[0] !== this.value[0]\n ? this.nativeLeft.nativeElement\n : this.nativeRight.nativeElement;\n\n setNativeFocused(element);\n }\n\n this.updateValue(guardedValue);\n this.nativeLeft.nativeElement.value = this.formatNumber(guardedValue[0]);\n }\n\n onLeftFocused(focused: boolean) {\n if (focused || !this.nativeLeft) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueLeft,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.nativeLeft.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[0]) {\n this.updateValue([value, this.value[1]]);\n }\n }\n\n onRightFocused(focused: boolean) {\n if (focused || !this.nativeRight) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValueRight,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n const value = isNaN(inputValue)\n ? this.value[0]\n : this.valueGuard(Math.max(inputValue, this.value[0]));\n\n this.nativeRight.nativeElement.value = this.formatNumber(value);\n\n if (value !== this.value[1]) {\n this.updateValue([this.value[0], value]);\n }\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n @tuiPure\n private computedPureValueLeft(value: number) {\n return this.formatNumber(value);\n }\n\n @tuiPure\n private computedPureValueRight(value: number) {\n return this.formatNumber(value);\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private processStep(increment: boolean, right: boolean) {\n const start = this.valueGuard(\n increment ? this.value[0] + this.step : this.value[0] - this.step,\n );\n const end = this.valueGuard(\n increment ? this.value[1] + this.step : this.value[1] - this.step,\n );\n const value: [number, number] = [\n right ? this.value[0] : Math.min(start, this.value[1]),\n right ? Math.max(end, this.value[0]) : this.value[1],\n ];\n\n if (value[0] !== this.value[0] || value[1] !== this.value[1]) {\n this.updateValue(value);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRangeModule} from '@taiga-ui/kit/components/range';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputRangeComponent} from './input-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiActiveZoneModule,\n TuiRangeModule,\n TuiWrapperModule,\n ],\n declarations: [TuiInputRangeComponent],\n exports: [TuiInputRangeComponent],\n})\nexport class TuiInputRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAiCA;;IAcY,0CAAwC;IAShD,gCAII,OAAyB,EACE,iBAAoC,EAG5C,aAAsC,EAExC,QAAiB,EAEf,YAAkC,EAE5C,UAAkB;QAd/B,YAgBI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QATsB,mBAAa,GAAb,aAAa,CAAyB;QAExC,cAAQ,GAAR,QAAQ,CAAS;QAEf,kBAAY,GAAZ,YAAY,CAAsB;QAE5C,gBAAU,GAAV,UAAU,CAAQ;;KAG9B;+BA3BQ,sBAAsB;IA6B/B,sBAAI,0DAAsB;aAA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;OAvB5B,sBAAsB,CAmQlC;IAAD,6BAAC;CAAA,CAlQW,sBAAsB;;;ICVlC;KAAmC;IAAtB,mBAAmB;QAnB/B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,mBAAmB;gBACnB,cAAc;gBACd,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,gBAAgB;gBAChB,mBAAmB;gBACnB,kBAAkB;gBAClB,mBAAmB;gBACnB,cAAc;gBACd,gBAAgB;aACnB;YACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACrCA;;;;;;"}
@@ -1,22 +1,47 @@
1
- import { __extends, __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
1
+ import { __decorate, __extends, __param } from 'tslib';
2
+ import { Directive, Optional, Self, Inject, ChangeDetectorRef, ViewChild, ElementRef, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { isNativeFocused, setNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule, TuiPressedModule, TuiMapperPipeModule, TuiInputModeModule } from '@taiga-ui/cdk';
5
- import { maskedNumberStringToNumber, maskedMoneyValueIsEmpty, formatNumber, TuiModeDirective, TuiHintControllerDirective, TUI_HINT_WATCHED_CONTROLLER, TUI_NUMBER_FORMAT, TUI_TEXTFIELD_APPEARANCE, HINT_CONTROLLER_PROVIDER, TuiTooltipModule, TuiWrapperModule } from '@taiga-ui/core';
4
+ import { isNativeFocused, setNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule, TuiPressedModule, TuiMapperPipeModule, TuiInputModeModule, TuiRepeatTimesModule } from '@taiga-ui/cdk';
5
+ import { maskedNumberStringToNumber, maskedMoneyValueIsEmpty, formatNumber, TuiModeDirective, TuiHintControllerDirective, TUI_HINT_WATCHED_CONTROLLER, TuiTextfieldController, TUI_TEXTFIELD_WATCHED_CONTROLLER, TUI_NUMBER_FORMAT, TUI_TEXTFIELD_APPEARANCE, HINT_CONTROLLER_PROVIDER, TEXTFIELD_CONTROLLER_PROVIDER, TuiTooltipModule, TuiWrapperModule, TuiFormatNumberPipeModule } from '@taiga-ui/core';
6
6
  import { AbstractTuiInputSlider } from '@taiga-ui/kit/abstract';
7
+ import { TuiSliderComponent, tuiSliderOptionsProvider, TuiSliderModule } from '@taiga-ui/kit/components/slider';
8
+ import { TUI_FROM_TO_TEXTS } from '@taiga-ui/kit/tokens';
9
+ import { Observable } from 'rxjs';
7
10
  import { CommonModule } from '@angular/common';
8
- import { TuiSliderModule } from '@taiga-ui/kit/components/slider';
11
+ import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
9
12
  import { TextMaskModule } from 'angular2-text-mask';
10
13
 
14
+ /**
15
+ * Turn on new `InputSlider`'s version.
16
+ * The new version will behave almost the same as `InputSlider` from the next major release.
17
+ * @deprecated TODO remove me in v3.0 and make `InputSlider` always "new".
18
+ */
19
+ var TuiNewInputSliderDirective = /** @class */ (function () {
20
+ function TuiNewInputSliderDirective() {
21
+ }
22
+ TuiNewInputSliderDirective = __decorate([
23
+ Directive({
24
+ selector: 'tui-input-slider[new]',
25
+ })
26
+ ], TuiNewInputSliderDirective);
27
+ return TuiNewInputSliderDirective;
28
+ }());
11
29
  // @dynamic
12
30
  var TuiInputSliderComponent = /** @class */ (function (_super) {
13
31
  __extends(TuiInputSliderComponent, _super);
14
- function TuiInputSliderComponent(control, changeDetectorRef, modeDirective, hintController, numberFormat, appearance) {
32
+ function TuiInputSliderComponent(control, changeDetectorRef, modeDirective, hintController, controller, numberFormat, appearance, fromToTexts$, isNew) {
15
33
  var _this = _super.call(this, control, changeDetectorRef) || this;
16
34
  _this.modeDirective = modeDirective;
17
35
  _this.hintController = hintController;
36
+ _this.controller = controller;
18
37
  _this.numberFormat = numberFormat;
19
38
  _this.appearance = appearance;
39
+ _this.fromToTexts$ = fromToTexts$;
40
+ _this.isNew = isNew;
41
+ /**
42
+ * @deprecated use `tuiTextfieldCustomContent` instead
43
+ * TODO delete in v3.0
44
+ */
20
45
  _this.secondary = '';
21
46
  return _this;
22
47
  }
@@ -32,7 +57,9 @@ var TuiInputSliderComponent = /** @class */ (function (_super) {
32
57
  });
33
58
  Object.defineProperty(TuiInputSliderComponent.prototype, "focused", {
34
59
  get: function () {
35
- return isNativeFocused(this.nativeFocusableElement);
60
+ var _a;
61
+ return (isNativeFocused(this.nativeFocusableElement) ||
62
+ isNativeFocused(((_a = this.sliderRef) === null || _a === void 0 ? void 0 : _a.nativeElement) || null));
36
63
  },
37
64
  enumerable: true,
38
65
  configurable: true
@@ -87,7 +114,7 @@ var TuiInputSliderComponent = /** @class */ (function (_super) {
87
114
  enumerable: true,
88
115
  configurable: true
89
116
  });
90
- TuiInputSliderComponent.prototype.onMouseDown = function () {
117
+ TuiInputSliderComponent.prototype.focusTextInput = function () {
91
118
  if (this.focusableElement) {
92
119
  setNativeFocused(this.focusableElement.nativeElement);
93
120
  }
@@ -172,12 +199,18 @@ var TuiInputSliderComponent = /** @class */ (function (_super) {
172
199
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
173
200
  { type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] },
174
201
  { type: TuiHintControllerDirective, decorators: [{ type: Inject, args: [TUI_HINT_WATCHED_CONTROLLER,] }] },
202
+ { type: TuiTextfieldController, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] },
175
203
  { type: undefined, decorators: [{ type: Inject, args: [TUI_NUMBER_FORMAT,] }] },
176
- { type: String, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_APPEARANCE,] }] }
204
+ { type: String, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_APPEARANCE,] }] },
205
+ { type: Observable, decorators: [{ type: Inject, args: [TUI_FROM_TO_TEXTS,] }] },
206
+ { type: TuiNewInputSliderDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiNewInputSliderDirective,] }] }
177
207
  ]; };
178
208
  __decorate([
179
209
  ViewChild('focusableElement')
180
210
  ], TuiInputSliderComponent.prototype, "focusableElement", void 0);
211
+ __decorate([
212
+ ViewChild(TuiSliderComponent, { read: ElementRef })
213
+ ], TuiInputSliderComponent.prototype, "sliderRef", void 0);
181
214
  __decorate([
182
215
  Input(),
183
216
  tuiDefaultProp()
@@ -194,16 +227,25 @@ var TuiInputSliderComponent = /** @class */ (function (_super) {
194
227
  TuiInputSliderComponent = TuiInputSliderComponent_1 = __decorate([
195
228
  Component({
196
229
  selector: 'tui-input-slider',
197
- template: "<tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [invalid]=\"computedInvalid\"\n>\n <span\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-slider__placeholder\"\n class=\"placeholder placeholder_raised\"\n >\n <ng-content></ng-content>\n </span>\n <input\n #focusableElement\n automation-id=\"tui-input-slider__native\"\n class=\"native\"\n [disabled]=\"disabled\"\n [readOnly]=\"readOnly\"\n [tuiInputMode]=\"inputMode\"\n [tuiFocusable]=\"focusable\"\n [textMask]=\"quantum | tuiMapper: mask:min\"\n [ngModel]=\"computedValue\"\n (ngModelChange)=\"onValue($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (keydown.arrowUp)=\"onKeyDownArrowUp($event)\"\n (keydown.arrowDown)=\"onKeyDownArrowDown($event)\"\n />\n <div class=\"content\">\n <span *ngIf=\"showValue\" class=\"label\">\n <span class=\"value\">{{ computedValue }}</span>\n <span\n *ngIf=\"pluralizeMap\"\n automation-id=\"tui-input-slider__pluralize\"\n >\n {{ value | i18nPlural: pluralizeMap }}\n </span>\n </span>\n <span\n *ngIf=\"showMinLabel\"\n automation-id=\"tui-input-slider__min-label\"\n class=\"label\"\n >\n {{ minLabel }}\n </span>\n <span\n *ngIf=\"showMaxLabel\"\n automation-id=\"tui-input-slider__max-label\"\n class=\"label\"\n >\n {{ maxLabel }}\n </span>\n <span automation-id=\"tui-input-slider__secondary\" class=\"secondary\">\n {{ secondary }}\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-slider__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"tooltip\"\n [content]=\"hintController.content\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n (mousedown.prevent)=\"onMouseDown()\"\n ></tui-tooltip>\n </span>\n </div>\n</tui-wrapper>\n<tui-slider\n class=\"slider\"\n [min]=\"min\"\n [max]=\"max\"\n [steps]=\"computedSteps\"\n [segments]=\"segments\"\n [keySteps]=\"keySteps\"\n [pluralize]=\"segmentsPluralize\"\n [focusable]=\"false\"\n [disabled]=\"readOnly || disabled\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onSliderValue($event)\"\n (mousedown)=\"onMouseDown()\"\n></tui-slider>\n",
230
+ template: "<tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [invalid]=\"computedInvalid\"\n>\n <span\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-slider__placeholder\"\n class=\"t-placeholder t-placeholder_raised\"\n >\n <ng-content></ng-content>\n </span>\n <input\n #focusableElement\n automation-id=\"tui-input-slider__native\"\n class=\"t-native\"\n [disabled]=\"disabled\"\n [readOnly]=\"readOnly\"\n [tuiInputMode]=\"inputMode\"\n [tuiFocusable]=\"focusable\"\n [textMask]=\"quantum | tuiMapper: mask:min\"\n [ngModel]=\"computedValue\"\n (ngModelChange)=\"onValue($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (keydown.arrowUp)=\"onKeyDownArrowUp($event)\"\n (keydown.arrowDown)=\"onKeyDownArrowDown($event)\"\n />\n <div class=\"t-content\">\n <span *ngIf=\"showValue\" class=\"t-label\">\n <span class=\"t-value\">{{ computedValue }}</span>\n <span\n *ngIf=\"pluralizeMap\"\n automation-id=\"tui-input-slider__pluralize\"\n >\n {{ value | i18nPlural: pluralizeMap }}\n </span>\n </span>\n <span\n *ngIf=\"showMinLabel\"\n automation-id=\"tui-input-slider__min-label\"\n class=\"t-label\"\n >\n {{ minLabel }}\n </span>\n <span\n *ngIf=\"showMaxLabel\"\n automation-id=\"tui-input-slider__max-label\"\n class=\"t-label\"\n >\n {{ maxLabel }}\n </span>\n <span automation-id=\"tui-input-slider__secondary\" class=\"t-secondary\">\n <span\n polymorpheus-outlet\n [content]=\"controller.customContent || secondary\"\n ></span>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-slider__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"t-tooltip\"\n [content]=\"hintController.content\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n (mousedown.prevent)=\"focusTextInput()\"\n ></tui-tooltip>\n </span>\n </div>\n</tui-wrapper>\n\n<!--TODO: remove wrapper + ticks labels (leave only slider) in v3.0-->\n<div class=\"t-slider-wrapper\">\n <input\n tuiSlider\n type=\"range\"\n [tuiFocusable]=\"false\"\n [max]=\"computedSteps\"\n [segments]=\"segments\"\n [keySteps]=\"computedKeySteps\"\n [attr.disabled]=\"readOnly || disabled || null\"\n [ngModel]=\"value\"\n (keyStepsInput)=\"onSliderValue($event)\"\n (click)=\"focusTextInput()\"\n />\n\n <!--TODO delete ticks labels in v3.0-->\n <div *ngIf=\"segmented && !isNew\" class=\"t-ticks-labels\">\n <span\n *tuiRepeatTimes=\"let tickIndex of segments + 1\"\n automation-id=\"tui-slider__segment\"\n >\n <span *ngIf=\"fromToTexts$ | async as fromToText\">\n {{ getTickPrefix(tickIndex, segments, fromToText) }} {{\n tickIndex | tuiSliderTickLabel:segments:computedKeySteps |\n tuiFormatNumber}}\n <span *ngIf=\"segmentsPluralizeMap\">\n {{ tickIndex | tuiSliderTickLabel:segments:computedKeySteps\n | i18nPlural: segmentsPluralizeMap }}\n </span>\n </span>\n </span>\n </div>\n</div>\n",
231
+ host: {
232
+ /**
233
+ * TODO delete it in v3.0
234
+ * Dont forget to clear html-tags
235
+ */
236
+ '[class._show-ticks-labels]': '!isNew',
237
+ },
198
238
  changeDetection: ChangeDetectionStrategy.OnPush,
199
239
  providers: [
200
240
  {
201
241
  provide: TUI_FOCUSABLE_ITEM_ACCESSOR,
202
242
  useExisting: forwardRef(function () { return TuiInputSliderComponent_1; }),
203
243
  },
244
+ tuiSliderOptionsProvider({ trackColor: 'transparent' }),
204
245
  HINT_CONTROLLER_PROVIDER,
246
+ TEXTFIELD_CONTROLLER_PROVIDER,
205
247
  ],
206
- styles: [":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented{border-bottom:26px solid transparent}.native{position:absolute;top:0;left:0;height:100%;padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;width:100%;color:var(--tui-text-01);box-sizing:border-box;outline:0}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._max-label .native,:host._min-label .native{opacity:0}:host[data-size='l'] .native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .native{color:var(--tui-text-03-night)}.content{display:flex;align-items:center;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between}:host[data-size='l'] .content{height:var(--tui-height-l);padding:0 1rem}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-l);line-height:var(--tui-height-l);box-sizing:border-box;pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-size='l']._focused._label-outside .placeholder,:host[data-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-size='l'] .placeholder{font-size:.9375rem}:host[data-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .placeholder,:host[data-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}:host._has-tooltip .placeholder{max-width:calc(100% - 1.75rem)}.value{visibility:hidden}.label{overflow:hidden;text-overflow:ellipsis}:host[data-size='l'] .label{padding-top:1.25rem}.secondary{color:var(--tui-text-01)}:host._disabled .secondary{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .secondary{color:var(--tui-text-03-night)}.tooltip{margin-left:.75rem}.slider{position:absolute;top:100%;left:0;right:0;border-top-left-radius:0;border-top-right-radius:0;margin:-.5625rem 0 0;color:transparent}:host._disabled .slider,:host._readonly .slider{pointer-events:none}"]
248
+ styles: [":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented._show-ticks-labels{border-bottom:26px solid transparent}.t-native{position:absolute;top:0;left:0;height:100%;padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;width:100%;color:var(--tui-text-01);box-sizing:border-box;outline:0}.t-native:-webkit-autofill,.t-native:-webkit-autofill:focus,.t-native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .t-native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._max-label .t-native,:host._min-label .t-native{opacity:0}:host[data-size='l'] .t-native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .t-native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .t-native{color:var(--tui-text-03-night)}.t-content{display:flex;align-items:center;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between}:host[data-size='l'] .t-content{height:var(--tui-height-l);padding:0 1rem}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-l);line-height:var(--tui-height-l);box-sizing:border-box;pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused)._hovered .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}:host._has-tooltip .t-placeholder{max-width:calc(100% - 1.75rem)}.t-value{visibility:hidden}.t-label{overflow:hidden;text-overflow:ellipsis}:host[data-size='l'] .t-label{padding-top:1.25rem}.t-secondary{color:var(--tui-text-01)}:host._disabled .t-secondary{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .t-secondary{color:var(--tui-text-03-night)}.t-tooltip{margin-left:.75rem}.t-slider-wrapper{position:absolute;top:100%;left:calc(var(--tui-radius-m)/ 2);right:0;margin:-.5625rem 0 0}input[type=range]{border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.t-ticks-labels{display:flex;margin:0 .5rem;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-ticks-labels>*{position:relative;flex:2;text-align:center}.t-ticks-labels>:first-child{left:-.5rem;flex:1;text-align:left}.t-ticks-labels>:last-child{right:-.5rem;flex:1;text-align:right}tui-input-slider+.t-ticks-labels{margin-left:calc(var(--tui-radius-m)/ 2 + .5rem)}"]
207
249
  }),
208
250
  __param(0, Optional()),
209
251
  __param(0, Self()),
@@ -212,8 +254,12 @@ var TuiInputSliderComponent = /** @class */ (function (_super) {
212
254
  __param(2, Optional()),
213
255
  __param(2, Inject(TuiModeDirective)),
214
256
  __param(3, Inject(TUI_HINT_WATCHED_CONTROLLER)),
215
- __param(4, Inject(TUI_NUMBER_FORMAT)),
216
- __param(5, Inject(TUI_TEXTFIELD_APPEARANCE))
257
+ __param(4, Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)),
258
+ __param(5, Inject(TUI_NUMBER_FORMAT)),
259
+ __param(6, Inject(TUI_TEXTFIELD_APPEARANCE)),
260
+ __param(7, Inject(TUI_FROM_TO_TEXTS)),
261
+ __param(8, Optional()),
262
+ __param(8, Inject(TuiNewInputSliderDirective))
217
263
  ], TuiInputSliderComponent);
218
264
  return TuiInputSliderComponent;
219
265
  }(AbstractTuiInputSlider));
@@ -237,9 +283,12 @@ var TuiInputSliderModule = /** @class */ (function () {
237
283
  TuiTooltipModule,
238
284
  TuiSliderModule,
239
285
  TuiWrapperModule,
286
+ TuiFormatNumberPipeModule,
287
+ TuiRepeatTimesModule,
288
+ PolymorpheusModule,
240
289
  ],
241
- declarations: [TuiInputSliderComponent],
242
- exports: [TuiInputSliderComponent],
290
+ declarations: [TuiInputSliderComponent, TuiNewInputSliderDirective],
291
+ exports: [TuiInputSliderComponent, TuiNewInputSliderDirective],
243
292
  })
244
293
  ], TuiInputSliderModule);
245
294
  return TuiInputSliderModule;
@@ -249,5 +298,5 @@ var TuiInputSliderModule = /** @class */ (function () {
249
298
  * Generated bundle index. Do not edit.
250
299
  */
251
300
 
252
- export { TuiInputSliderComponent, TuiInputSliderModule };
301
+ export { TuiInputSliderComponent, TuiInputSliderModule, TuiNewInputSliderDirective };
253
302
  //# sourceMappingURL=taiga-ui-kit-components-input-slider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-slider.js","sources":["ng://@taiga-ui/kit/components/input-slider/input-slider.component.ts","ng://@taiga-ui/kit/components/input-slider/input-slider.module.ts","ng://@taiga-ui/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n HINT_CONTROLLER_PROVIDER,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TuiHintControllerDirective,\n TuiModeDirective,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\n\n// @dynamic\n@Component({\n selector: 'tui-input-slider',\n templateUrl: './input-slider.template.html',\n styleUrls: ['./input-slider.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputSliderComponent),\n },\n HINT_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputSliderComponent\n extends AbstractTuiInputSlider<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n secondary = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focused && this.value === this.min && !!this.minLabel;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focused && this.value === this.max && !!this.maxLabel;\n }\n\n get computedValue(): string {\n if (this.focused && this.isInputValueNotFinished) {\n return this.inputValue;\n }\n\n return this.formattedValue;\n }\n\n get showValue(): boolean {\n return !this.showMinLabel && !this.showMaxLabel;\n }\n\n get inputValue(): string {\n return this.focusableElement ? this.focusableElement.nativeElement.value : '';\n }\n\n set inputValue(value: string) {\n if (this.focusableElement) {\n this.focusableElement.nativeElement.value = value;\n }\n }\n\n onMouseDown() {\n if (this.focusableElement) {\n setNativeFocused(this.focusableElement.nativeElement);\n }\n }\n\n onKeyDownArrowUp(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true);\n this.inputValue = this.formattedValue;\n }\n\n onKeyDownArrowDown(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false);\n this.inputValue = this.formattedValue;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.updateValue(value);\n this.inputValue = this.formattedValue;\n }\n\n onValue(value: string) {\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (value !== newValue) {\n this.inputValue = newValue;\n }\n\n this.updateValue(capped);\n }\n\n onSliderValue(value: number) {\n this.updateValue(this.valueGuard(value));\n this.inputValue = this.formattedValue;\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n private get formattedValue(): string {\n return this.formatNumber(this.value);\n }\n\n private get isInputValueNotFinished(): boolean {\n if (this.inputValue === '') {\n return true;\n }\n\n const nativeNumberValue = maskedNumberStringToNumber(\n this.inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private processStep(increment: boolean) {\n const value = this.valueGuard(\n increment ? this.value + this.step : this.value - this.step,\n );\n\n if (value !== this.value) {\n this.updateValue(value);\n }\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiTooltipModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiSliderModule} from '@taiga-ui/kit/components/slider';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputSliderComponent} from './input-slider.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiTooltipModule,\n TuiSliderModule,\n TuiWrapperModule,\n ],\n declarations: [TuiInputSliderComponent],\n exports: [TuiInputSliderComponent],\n})\nexport class TuiInputSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAoCA;;IAeY,2CAA8B;IAUtC,iCAII,OAAyB,EACE,iBAAoC,EAG5C,aAAsC,EAEhD,cAA0C,EAEhC,YAAkC,EAE5C,UAAkB;QAd/B,YAgBI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QATsB,mBAAa,GAAb,aAAa,CAAyB;QAEhD,oBAAc,GAAd,cAAc,CAA4B;QAEhC,kBAAY,GAAZ,YAAY,CAAsB;QAE5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;iBACzD;gBACD,wBAAwB;aAC3B;;SACJ,CAAC;QAaO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QAExB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;QAEnC,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;OAxB5B,uBAAuB,CAyLnC;IAAD,8BAAC;CAAA,CAxLW,sBAAsB;;;ICflC;KAAoC;IAAvB,oBAAoB;QAnBhC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,mBAAmB;gBACnB,cAAc;gBACd,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,gBAAgB;gBAChB,mBAAmB;gBACnB,kBAAkB;gBAClB,gBAAgB;gBAChB,eAAe;gBACf,gBAAgB;aACnB;YACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACpCA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-slider.js","sources":["ng://@taiga-ui/kit/components/input-slider/input-slider.component.ts","ng://@taiga-ui/kit/components/input-slider/input-slider.module.ts","ng://@taiga-ui/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n HINT_CONTROLLER_PROVIDER,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiHintControllerDirective,\n TuiModeDirective,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\nimport {\n TuiSliderComponent,\n tuiSliderOptionsProvider,\n} from '@taiga-ui/kit/components/slider';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n/**\n * Turn on new `InputSlider`'s version.\n * The new version will behave almost the same as `InputSlider` from the next major release.\n * @deprecated TODO remove me in v3.0 and make `InputSlider` always \"new\".\n */\n@Directive({\n selector: 'tui-input-slider[new]',\n})\nexport class TuiNewInputSliderDirective {}\n\n// @dynamic\n@Component({\n selector: 'tui-input-slider',\n templateUrl: './input-slider.template.html',\n styleUrls: ['./input-slider.style.less'],\n host: {\n /**\n * TODO delete it in v3.0\n * Dont forget to clear html-tags\n */\n '[class._show-ticks-labels]': '!isNew',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputSliderComponent),\n },\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n HINT_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputSliderComponent\n extends AbstractTuiInputSlider<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @ViewChild(TuiSliderComponent, {read: ElementRef})\n private readonly sliderRef?: ElementRef<HTMLInputElement>;\n\n /**\n * @deprecated use `tuiTextfieldCustomContent` instead\n * TODO delete in v3.0\n */\n @Input()\n @tuiDefaultProp()\n secondary = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n @Inject(TUI_FROM_TO_TEXTS) readonly fromToTexts$: Observable<[string, string]>,\n @Optional()\n @Inject(TuiNewInputSliderDirective)\n readonly isNew: TuiNewInputSliderDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n isNativeFocused(this.sliderRef?.nativeElement || null)\n );\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focused && this.value === this.min && !!this.minLabel;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focused && this.value === this.max && !!this.maxLabel;\n }\n\n get computedValue(): string {\n if (this.focused && this.isInputValueNotFinished) {\n return this.inputValue;\n }\n\n return this.formattedValue;\n }\n\n get showValue(): boolean {\n return !this.showMinLabel && !this.showMaxLabel;\n }\n\n get inputValue(): string {\n return this.focusableElement ? this.focusableElement.nativeElement.value : '';\n }\n\n set inputValue(value: string) {\n if (this.focusableElement) {\n this.focusableElement.nativeElement.value = value;\n }\n }\n\n focusTextInput() {\n if (this.focusableElement) {\n setNativeFocused(this.focusableElement.nativeElement);\n }\n }\n\n onKeyDownArrowUp(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true);\n this.inputValue = this.formattedValue;\n }\n\n onKeyDownArrowDown(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false);\n this.inputValue = this.formattedValue;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.updateValue(value);\n this.inputValue = this.formattedValue;\n }\n\n onValue(value: string) {\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (value !== newValue) {\n this.inputValue = newValue;\n }\n\n this.updateValue(capped);\n }\n\n onSliderValue(value: number) {\n this.updateValue(this.valueGuard(value));\n this.inputValue = this.formattedValue;\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n private get formattedValue(): string {\n return this.formatNumber(this.value);\n }\n\n private get isInputValueNotFinished(): boolean {\n if (this.inputValue === '') {\n return true;\n }\n\n const nativeNumberValue = maskedNumberStringToNumber(\n this.inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private processStep(increment: boolean) {\n const value = this.valueGuard(\n increment ? this.value + this.step : this.value - this.step,\n );\n\n if (value !== this.value) {\n this.updateValue(value);\n }\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {\n TuiFormatNumberPipeModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {TuiSliderModule} from '@taiga-ui/kit/components/slider';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {\n TuiInputSliderComponent,\n TuiNewInputSliderDirective,\n} from './input-slider.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiTooltipModule,\n TuiSliderModule,\n TuiWrapperModule,\n TuiFormatNumberPipeModule,\n TuiRepeatTimesModule,\n PolymorpheusModule,\n ],\n declarations: [TuiInputSliderComponent, TuiNewInputSliderDirective],\n exports: [TuiInputSliderComponent, TuiNewInputSliderDirective],\n})\nexport class TuiInputSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AA8CA;;;;;;IAQA;KAA0C;IAA7B,0BAA0B;QAHtC,SAAS,CAAC;YACP,QAAQ,EAAE,uBAAuB;SACpC,CAAC;OACW,0BAA0B,CAAG;IAAD,iCAAC;CAA1C,IAA0C;AAE1C;;IAwBY,2CAA8B;IAiBtC,iCAII,OAAyB,EACE,iBAAoC,EAG5C,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A;QAEhC,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;OArC9B,uBAAuB,CAyMnC;IAAD,8BAAC;CAAA,CAxMW,sBAAsB;;;IChClC;KAAoC;IAAvB,oBAAoB;QAtBhC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,mBAAmB;gBACnB,cAAc;gBACd,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,gBAAgB;gBAChB,mBAAmB;gBACnB,kBAAkB;gBAClB,gBAAgB;gBAChB,eAAe;gBACf,gBAAgB;gBAChB,yBAAyB;gBACzB,oBAAoB;gBACpB,kBAAkB;aACrB;YACD,YAAY,EAAE,CAAC,uBAAuB,EAAE,0BAA0B,CAAC;YACnE,OAAO,EAAE,CAAC,uBAAuB,EAAE,0BAA0B,CAAC;SACjE,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;AChDA;;;;;;"}
@@ -19,10 +19,10 @@ var TUI_INPUT_TAG_OPTIONS = new InjectionToken('Default parameters for input-tag
19
19
  factory: function () { return TUI_INPUT_TAG_DEFAULT_OPTIONS; },
20
20
  });
21
21
 
22
- var EVENT_Y_TO_X_COEFFICENT = 3;
22
+ var EVENT_Y_TO_X_COEFFICIENT = 3;
23
23
  var TuiInputTagComponent = /** @class */ (function (_super) {
24
24
  __extends(TuiInputTagComponent, _super);
25
- function TuiInputTagComponent(control, changeDetectorRef, tuiScrollService, elementRef, appearance, modeDirective, tagStatus, hintController, controller, options) {
25
+ function TuiInputTagComponent(control, changeDetectorRef, tuiScrollService, elementRef, appearance, modeDirective, tagStatus, hintController, controller, options, parentHostedDropdown) {
26
26
  var _this = _super.call(this, control, changeDetectorRef) || this;
27
27
  _this.tuiScrollService = tuiScrollService;
28
28
  _this.elementRef = elementRef;
@@ -32,6 +32,7 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
32
32
  _this.hintController = hintController;
33
33
  _this.controller = controller;
34
34
  _this.options = options;
35
+ _this.parentHostedDropdown = parentHostedDropdown;
35
36
  _this.tags = EMPTY_QUERY;
36
37
  _this.scrollToStart$ = new Subject();
37
38
  _this.scrollToEnd$ = new Subject();
@@ -80,8 +81,9 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
80
81
  });
81
82
  Object.defineProperty(TuiInputTagComponent.prototype, "focused", {
82
83
  get: function () {
84
+ var _a;
83
85
  return (isNativeFocusedIn(this.elementRef.nativeElement) ||
84
- (!!this.dropdown && this.dropdown.focused));
86
+ !!((_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.focused));
85
87
  },
86
88
  enumerable: true,
87
89
  configurable: true
@@ -196,9 +198,11 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
196
198
  : '';
197
199
  };
198
200
  TuiInputTagComponent.prototype.onCleanerClick = function () {
201
+ var _a;
199
202
  this.updateSearch('');
200
203
  this.clear();
201
204
  this.focusInput();
205
+ (_a = this.parentHostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(true);
202
206
  };
203
207
  TuiInputTagComponent.prototype.onActiveZone = function (active) {
204
208
  this.open = false;
@@ -336,7 +340,7 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
336
340
  var nativeElement = scroller.browserScrollRef.nativeElement;
337
341
  var wheel$ = typedFromEvent(nativeElement, 'wheel', { passive: false }).pipe(filter(function (event) { return event.deltaX === 0 && _this.shouldScroll(nativeElement); }), preventDefault(), map(function (_a) {
338
342
  var deltaY = _a.deltaY;
339
- return Math.max(nativeElement.scrollLeft + deltaY * EVENT_Y_TO_X_COEFFICENT, 0);
343
+ return Math.max(nativeElement.scrollLeft + deltaY * EVENT_Y_TO_X_COEFFICIENT, 0);
340
344
  }));
341
345
  var start$ = this.scrollToStart$.pipe(mapTo(0));
342
346
  var end$ = this.scrollToEnd$.pipe(map(function () { return nativeElement.scrollWidth; }));
@@ -388,11 +392,12 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
388
392
  { type: undefined, decorators: [{ type: Inject, args: [TUI_TAG_STATUS,] }] },
389
393
  { type: TuiHintControllerDirective, decorators: [{ type: Inject, args: [TUI_HINT_WATCHED_CONTROLLER,] }] },
390
394
  { type: TuiTextfieldController, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] },
391
- { type: undefined, decorators: [{ type: Inject, args: [TUI_INPUT_TAG_OPTIONS,] }] }
395
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_INPUT_TAG_OPTIONS,] }] },
396
+ { type: TuiHostedDropdownComponent, decorators: [{ type: Optional }, { type: Inject, args: [TuiHostedDropdownComponent,] }] }
392
397
  ]; };
393
398
  __decorate([
394
399
  ViewChild(TuiHostedDropdownComponent)
395
- ], TuiInputTagComponent.prototype, "dropdown", void 0);
400
+ ], TuiInputTagComponent.prototype, "hostedDropdown", void 0);
396
401
  __decorate([
397
402
  ViewChild('focusableElement')
398
403
  ], TuiInputTagComponent.prototype, "focusableElement", void 0);
@@ -478,7 +483,7 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
478
483
  Component({
479
484
  selector: 'tui-input-tag',
480
485
  changeDetection: ChangeDetectionStrategy.OnPush,
481
- template: "<tui-hosted-dropdown\n class=\"hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"content\">\n <div *ngIf=\"iconAlignLeft\" class=\"icons icons_left\">\n <tui-svg class=\"icon\" [src]=\"icon\"></tui-svg>\n </div>\n <div class=\"wrapper\">\n <div class=\"absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"placeholder\"\n [class.placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf=\"!expandable; else items\"\n class=\"scrollbar\"\n [hidden]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"items\"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class=\"tags\">\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"tag\"\n [status]=\"status\"\n [leftContent]=\"getLeftContent(item)\"\n [allowSpaces]=\"allowSpaces\"\n [tuiFocusable]=\"false\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [removable]=\"!readOnly\"\n [separator]=\"separator\"\n [maxLength]=\"controller.maxLength\"\n [size]=\"controller.size\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, index)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"text\"\n [class.text_disabled]=\"disabledItemHandler(item)\"\n [class.text_error]=\"!tagValidator(item)\"\n [innerText]=\"item\"\n ></span>\n </ng-template>\n <div\n class=\"input-wrapper\"\n [class.input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"ghost\">{{ search }}</div>\n <input\n #focusableElement\n type=\"text\"\n automation-id=\"tui-input-tag__native\"\n class=\"native\"\n [placeholder]=\"controller.exampleText\"\n [class.native_hidden]=\"inputHidden\"\n [attr.maxLength]=\"controller.maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n [ngModel]=\"search\"\n (ngModelChange)=\"onInput($event)\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf=\"hasRightIcons\" class=\"icons icons_right\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n #cleaner\n automation-id=\"tui-input-tag__cleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"cleaner\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-tag__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"tooltip\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n <tui-svg\n *ngIf=\"iconAlignRight\"\n class=\"icon\"\n [src]=\"icon\"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src=\"tuiIconAttention\" class=\"error-icon\"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n",
486
+ template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-content\">\n <div *ngIf=\"iconAlignLeft\" class=\"t-icons t-icons_left\">\n <tui-svg class=\"t-icon\" [src]=\"icon\"></tui-svg>\n </div>\n <div class=\"t-wrapper\">\n <div class=\"t-absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf=\"!expandable; else items\"\n class=\"t-scrollbar\"\n [hidden]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"items\"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class=\"t-tags\">\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"t-tag\"\n [status]=\"status\"\n [leftContent]=\"getLeftContent(item)\"\n [allowSpaces]=\"allowSpaces\"\n [tuiFocusable]=\"false\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [removable]=\"!readOnly\"\n [separator]=\"separator\"\n [maxLength]=\"controller.maxLength\"\n [size]=\"controller.size\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, index)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"t-text\"\n [class.t-text_disabled]=\"disabledItemHandler(item)\"\n [class.t-text_error]=\"!tagValidator(item)\"\n [innerText]=\"item\"\n ></span>\n </ng-template>\n <div\n class=\"t-input-wrapper\"\n [class.t-input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"t-ghost\">{{ search }}</div>\n <input\n #focusableElement\n type=\"text\"\n automation-id=\"tui-input-tag__native\"\n class=\"t-native\"\n [placeholder]=\"controller.exampleText\"\n [class.t-native_hidden]=\"inputHidden\"\n [attr.maxLength]=\"controller.maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n [ngModel]=\"search\"\n (ngModelChange)=\"onInput($event)\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf=\"hasRightIcons\" class=\"t-icons t-icons_right\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n #cleaner\n automation-id=\"tui-input-tag__cleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"t-cleaner\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-tag__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"t-tooltip\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n <tui-svg\n *ngIf=\"iconAlignRight\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src=\"tuiIconAttention\" class=\"t-error-icon\"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n",
482
487
  providers: [
483
488
  {
484
489
  provide: TUI_FOCUSABLE_ITEM_ACCESSOR,
@@ -492,7 +497,7 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
492
497
  TEXTFIELD_CONTROLLER_PROVIDER,
493
498
  HINT_CONTROLLER_PROVIDER,
494
499
  ],
495
- styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font-size:.9375rem}.input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0 solid transparent;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border-width:0 var(--border-end) 0 var(--border-start);border-inline-start-width:var(--border-start);border-inline-end-width:var(--border-end);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit}.input:-webkit-autofill,.input:-webkit-autofill:focus,.input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .input:-webkit-autofill,:host[data-mode=onDark] .input:-webkit-autofill:focus,:host[data-mode=onDark] .input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),:host[data-size='s'] .input{padding:0 var(--tui-padding-s)}.input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),:host[data-size='l'] .input{padding:0 var(--tui-padding-l)}.input :host-context(tui-primitive-textfield._disabled),:host._disabled .input{pointer-events:none}.input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .input{padding-top:1.25rem}.input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .input{padding-top:1.125rem}.input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.input :host-context(tui-primitive-textfield._hidden),:host._hidden input.input{opacity:0;text-indent:-10em;-webkit-user-select:none}.filler{vertical-align:middle}.content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .content{padding:0 var(--tui-padding-l)}.content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .content:after{display:none}.wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;font-size:.8125rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-size='l']._focused._label-outside .placeholder,:host[data-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-size='l'] .placeholder{font-size:.9375rem}:host[data-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .placeholder,:host[data-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.placeholder{transition-property:transform,color,letter-spacing}}.cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.cleaner:hover{color:var(--tui-text-02)}:host._disabled .cleaner,:host._readonly .cleaner{pointer-events:none}:host[data-mode=onDark] .cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .cleaner:hover{color:var(--tui-text-01-night)}.icon{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}:host[data-mode=onDark] .icon{color:var(--tui-text-03-night)}.icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}.hosted{display:block;border-radius:inherit}.scrollbar{margin:0 -.25rem;padding:0 .25rem}.tags{display:flex;align-items:center;box-sizing:border-box}:host._expandable .tags{flex-wrap:wrap;white-space:normal}:host._readonly .tags{pointer-events:none}:host[data-size='s'] .tags{min-height:var(--tui-height-s);padding:.25rem .25rem .25rem 0}:host[data-size='m'] .tags{min-height:var(--tui-height-m);padding:.5rem .25rem .5rem 0}:host[data-size='l'] .tags{min-height:var(--tui-height-l);padding:.625rem .25rem .625rem 0}:host[data-size='m']:not(._label-outside) .tags{padding:1.1875rem 1rem 0 0}:host[data-size='l']:not(._label-outside) .tags{padding:1.6875rem 1rem .5625rem 0}.tags :host[data-size]{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}:host[data-size]:not(._label-outside) .tags{-webkit-padding-end:1rem;padding-inline-end:1rem}.content{align-items:flex-start}.icons{display:flex;align-items:center;padding:0 0 0 .75rem;-webkit-padding-start:.75rem;padding-inline-start:.75rem;-webkit-padding-end:0;padding-inline-end:0}.icons_left{padding:0;margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host._expandable .icons_right{margin:0 0 0 -.625rem;-webkit-margin-start:-.625rem;margin-inline-start:-.625rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .icons{height:var(--tui-height-s)}:host[data-size='m'] .icons{height:var(--tui-height-m)}:host[data-size='l'] .icons{height:var(--tui-height-l)}.absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-size='m'] .absolute-wrapper{height:var(--tui-height-m)}:host[data-size='l'] .absolute-wrapper{height:var(--tui-height-l)}.wrapper{position:relative;padding:0}.tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}.text:after{content:',\\00a0'}.text_disabled{color:var(--tui-text-03)}.text_error{color:var(--tui-negative)}:host:not(._expandable) .text{white-space:nowrap}:host:not(:focus-within) .text:last-of-type:after{content:''}.input-wrapper{position:relative;flex:1;max-width:100%}.input-wrapper_collapsed{flex:0;margin:0 0 0 -.5rem;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .input-wrapper{min-height:1.5rem}:host[data-size='m'] .input-wrapper{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-size='l'] .input-wrapper{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .input-wrapper{min-height:1.25rem}.ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .ghost{min-width:2rem}.native{border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.native_hidden{opacity:0;text-indent:-10em}.native::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.native::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .native::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .native::placeholder{color:var(--tui-text-03-night)}:host._focused .native:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .native:not(:read-only)::placeholder{opacity:1}.error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}"]
500
+ styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,:host[data-mode=onDark] .t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.t-input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-input{padding:0 var(--tui-padding-s)}.t-input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-input{padding:0 var(--tui-padding-l)}.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-text-area._disabled),:host._disabled .t-input{pointer-events:none}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-input{padding-top:1.25rem}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-input{padding-top:1.125rem}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-input :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-input{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .t-content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .t-content{padding:0 var(--tui-padding-l)}.t-content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .t-content:after{display:none}.t-wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused)._hovered .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{transition-property:transform,color,letter-spacing}}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-icon{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}.t-icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .t-icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-scrollbar{margin:0 -.25rem;padding:0 .25rem}.t-tags{display:flex;align-items:center;box-sizing:border-box}:host._expandable .t-tags{flex-wrap:wrap;white-space:normal}:host._readonly .t-tags{pointer-events:none}:host[data-size='s'] .t-tags{min-height:var(--tui-height-s);padding:.25rem .25rem .25rem 0}:host[data-size='m'] .t-tags{min-height:var(--tui-height-m);padding:.5rem .25rem .5rem 0}:host[data-size='l'] .t-tags{min-height:var(--tui-height-l);padding:.625rem .25rem .625rem 0}:host[data-size='m']:not(._label-outside) .t-tags{padding:1.1875rem 1rem 0 0}:host[data-size='l']:not(._label-outside) .t-tags{padding:1.6875rem 1rem .5625rem 0}.t-tags :host[data-size]{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}:host[data-size]:not(._label-outside) .t-tags{-webkit-padding-end:1rem;padding-inline-end:1rem}.t-content{align-items:flex-start}.t-icons{display:flex;align-items:center;padding:0 0 0 .75rem;-webkit-padding-start:.75rem;padding-inline-start:.75rem;-webkit-padding-end:0;padding-inline-end:0}.t-icons_left{padding:0;margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host._expandable .t-icons_right{margin:0 0 0 -.625rem;-webkit-margin-start:-.625rem;margin-inline-start:-.625rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-icons{height:var(--tui-height-s)}:host[data-size='m'] .t-icons{height:var(--tui-height-m)}:host[data-size='l'] .t-icons{height:var(--tui-height-l)}.t-absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-size='m'] .t-absolute-wrapper{height:var(--tui-height-m)}:host[data-size='l'] .t-absolute-wrapper{height:var(--tui-height-l)}.t-wrapper{position:relative;padding:0}.t-tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}.t-text:after{content:',\\00a0'}.t-text_disabled{color:var(--tui-text-03)}.t-text_error{color:var(--tui-negative)}:host:not(._expandable) .t-text{white-space:nowrap}:host:not(._focused) .t-text:last-of-type:after{content:''}.t-input-wrapper{position:relative;flex:1;max-width:100%}.t-input-wrapper_collapsed{flex:0;margin:0 0 0 -.5rem;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-input-wrapper{min-height:1.5rem}:host[data-size='m'] .t-input-wrapper{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-size='l'] .t-input-wrapper{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .t-input-wrapper{min-height:1.25rem}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .t-ghost{min-width:2rem}.t-native{border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native:-webkit-autofill,.t-native:-webkit-autofill:focus,.t-native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-native_hidden{opacity:0;text-indent:-10em}.t-native::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-native::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-native::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-native::placeholder{color:var(--tui-text-03-night)}:host._focused .t-native:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-native:not(:read-only)::placeholder{opacity:1}.t-error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}"]
496
501
  }),
497
502
  __param(0, Optional()),
498
503
  __param(0, Self()),
@@ -506,7 +511,9 @@ var TuiInputTagComponent = /** @class */ (function (_super) {
506
511
  __param(6, Inject(TUI_TAG_STATUS)),
507
512
  __param(7, Inject(TUI_HINT_WATCHED_CONTROLLER)),
508
513
  __param(8, Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)),
509
- __param(9, Inject(TUI_INPUT_TAG_OPTIONS))
514
+ __param(9, Inject(TUI_INPUT_TAG_OPTIONS)),
515
+ __param(10, Optional()),
516
+ __param(10, Inject(TuiHostedDropdownComponent))
510
517
  ], TuiInputTagComponent);
511
518
  return TuiInputTagComponent;
512
519
  }(AbstractTuiMultipleControl));