@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,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@ng-web-apis/common"),require("@taiga-ui/cdk"),require("@angular/common"),require("@taiga-ui/core"),require("@taiga-ui/kit/abstract"),require("@taiga-ui/kit/tokens"),require("rxjs")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/slider",["exports","@angular/core","@angular/forms","@ng-web-apis/common","@taiga-ui/cdk","@angular/common","@taiga-ui/core","@taiga-ui/kit/abstract","@taiga-ui/kit/tokens","rxjs"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.components=e["taiga-ui"].kit.components||{},e["taiga-ui"].kit.components.slider={}),e.ng.core,e.ng.forms,e.common,e.cdk,e.ng.common,e.core$1,e["taiga-ui"].kit.abstract,e["taiga-ui"].kit.tokens,e.rxjs)}(this,(function(e,t,r,n,o,i,a,s,u,l){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@ng-web-apis/common"),require("@taiga-ui/cdk"),require("rxjs/operators"),require("@angular/common"),require("@taiga-ui/core"),require("@taiga-ui/kit/constants"),require("@taiga-ui/kit/abstract"),require("@taiga-ui/kit/tokens"),require("rxjs")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/slider",["exports","@angular/core","@angular/forms","@ng-web-apis/common","@taiga-ui/cdk","rxjs/operators","@angular/common","@taiga-ui/core","@taiga-ui/kit/constants","@taiga-ui/kit/abstract","@taiga-ui/kit/tokens","rxjs"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.components=e["taiga-ui"].kit.components||{},e["taiga-ui"].kit.components.slider={}),e.ng.core,e.ng.forms,e.common,e.cdk,e.rxjs.operators,e.ng.common,e.core$1,e["taiga-ui"].kit.constants,e["taiga-ui"].kit.abstract,e["taiga-ui"].kit.tokens,e.rxjs)}(this,(function(e,t,r,n,o,i,a,s,u,c,l,d){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function c(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function p(e,t){return function(r,n){t(r,n,e)}}var g=function(){function e(e,t,r){this.control=e,this.elementRef=t,this.userAgent=r,this.size="m",this.segments=1}return Object.defineProperty(e.prototype,"min",{get:function(){return Number(this.elementRef.nativeElement.min)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return Number(this.elementRef.nativeElement.max)||100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return Number(this.elementRef.nativeElement.step)||1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillPercentage",{get:function(){return Math.floor(100*this.value/(this.max-this.min))+"%"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stepPercentage",{get:function(){return 100/this.segments-.1+"%"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOldEdge",{get:function(){return o.isEdgeOlderThan(o.CHROMIUM_EDGE_START_VERSION,this.userAgent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var e=this.control;return(e instanceof r.NgModel?e.viewModel:null==e?void 0:e.value)||Number(this.elementRef.nativeElement.value)||0},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:r.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[r.NgControl]}]},{type:t.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:String,decorators:[{type:t.Inject,args:[n.USER_AGENT]}]}]},c([t.Input(),t.HostBinding("attr.data-size"),o.tuiDefaultProp()],e.prototype,"size",void 0),c([t.Input(),o.tuiDefaultProp()],e.prototype,"segments",void 0),c([t.HostBinding("style.--tui-slider-fill-percentage")],e.prototype,"fillPercentage",null),c([t.HostBinding("style.--tui-slider-segment-width")],e.prototype,"stepPercentage",null),c([t.HostBinding("class._old-edge")],e.prototype,"isOldEdge",null),e=c([t.Component({selector:"input[tuiSlider]",template:"",host:{type:"range","(input)":"0"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:100%;color:var(--tui-primary);cursor:pointer}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background:var(--tui-base-03);background-clip:content-box;outline:0}:host:not(._old-edge)::-webkit-slider-runnable-track{height:.125rem;border-radius:var(--tui-radius-m);background:linear-gradient(to right,currentColor 0 .25rem,transparent .25rem),linear-gradient(to left,var(--tui-base-03) 0 .25rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent .25rem var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage))}:host:not(._old-edge)::-moz-range-track{height:.125rem;border-radius:var(--tui-radius-m);background:linear-gradient(to right,currentColor 0 .25rem,transparent .25rem),linear-gradient(to left,var(--tui-base-03) 0 .25rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent .25rem var(--tui-slider-segment-width))}:host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem;margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem;margin-top:-.1875rem}:not(:disabled):host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='m']::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem}:not(:disabled):host:not(._old-edge)[data-size='m']::-moz-range-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='m']::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='s']::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem}:not(:disabled):host:not(._old-edge)[data-size='s']::-moz-range-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='s']::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)::-moz-range-progress{background:currentColor}:host._old-edge::-ms-thumb{background:currentColor}:host._old-edge::-ms-fill-lower{background:currentColor}:host._old-edge::-ms-track{background:var(--tui-base-03)}"]}),p(0,t.Optional()),p(0,t.Self()),p(0,t.Inject(r.NgControl)),p(1,t.Inject(t.ElementRef)),p(2,t.Inject(n.USER_AGENT))],e)}(),m=function(e){function n(t,r,n,o){return e.call(this,t,r,n,o)||this}var a;return function(e,t){function r(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(n,e),a=n,Object.defineProperty(n.prototype,"nativeFocusableElement",{get:function(){return this.dotRight?this.dotRight.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focused",{get:function(){return o.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"right",{get:function(){return 100-100*this.getFractionFromValue(this.value)},enumerable:!0,configurable:!0}),n.prototype.getFallbackValue=function(){return 0},n.prototype.processStep=function(e){var t=this.getFractionFromValue(this.value),r=this.computedStep,n=this.getValueFromFraction(e?t+r:t-r);this.processValue(n)},n.prototype.processValue=function(e){this.updateValue(this.valueGuard(e))},n.ctorParameters=function(){return[{type:r.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[r.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:Document,decorators:[{type:t.Inject,args:[i.DOCUMENT]}]},{type:l.Observable,decorators:[{type:t.Inject,args:[u.TUI_FROM_TO_TEXTS]}]}]},n=a=c([t.Component({selector:"tui-slider",template:'<div\n class="event-catcher"\n (tuiActiveZoneChange)="onActiveZone($event)"\n (mousedown)="onMouseDown($event)"\n (touchstart)="onTouchStart($event)"\n>\n <div class="wrapper">\n <div *ngIf="segmented" class="segments">\n <span\n *tuiRepeatTimes="let segmentIndex of segments + 1"\n automation-id="tui-slider__segment"\n class="segment"\n >\n <span *ngIf="fromToTexts$ | async as fromToText" class="number">\n {{ getSegmentPrefix(segmentIndex, fromToText) }} {{\n getSegmentLabel(segmentIndex) | tuiFormatNumber }}\n <span *ngIf="pluralizeMap">\n {{ getSegmentLabel(segmentIndex) | i18nPlural:\n pluralizeMap }}\n </span>\n </span>\n </span>\n </div>\n <div\n automation-id="tui-slider__bar"\n class="bar"\n [style.left.%]="left"\n [style.right.%]="right"\n >\n <div\n #dotLeft\n automation-id="tui-slider__left"\n class="dot"\n [class.dot_focus-visible]="focusVisibleLeft && computedFocused"\n [tuiFocusable]="isLeftFocusable"\n (tuiFocusVisibleChange)="onLeftFocusVisible($event)"\n (keydown.arrowLeft.prevent)="decrement(false)"\n (keydown.arrowDown.prevent)="decrement(false)"\n (keydown.arrowRight.prevent)="increment(false)"\n (keydown.arrowUp.prevent)="increment(false)"\n ></div>\n <div\n #dotRight\n automation-id="tui-slider__right"\n class="dot"\n [class.dot_focus-visible]="focusVisibleRight && computedFocused"\n [tuiFocusable]="isRightFocusable"\n (tuiFocusVisibleChange)="onRightFocusVisible($event)"\n (keydown.arrowLeft.prevent)="decrement(true)"\n (keydown.arrowDown.prevent)="decrement(true)"\n (keydown.arrowRight.prevent)="increment(true)"\n (keydown.arrowUp.prevent)="increment(true)"\n ></div>\n </div>\n </div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:o.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return a}))}],styles:[":host{display:block;border-radius:var(--tui-radius-m);color:var(--tui-base-03);min-height:.125rem;font-size:1rem}:host[data-size='s']{min-height:.125rem;font-size:.5rem}:host._segmented{padding-bottom:1.25rem}:host._disabled{cursor:default;pointer-events:none;opacity:var(--tui-disabled-opacity)}.event-catcher{min-height:inherit;border-radius:inherit;padding:.4375rem 0;cursor:pointer}.wrapper{position:relative;min-height:inherit;border-radius:inherit;background-color:currentColor;border:solid transparent;border-width:0 1em}.bar{position:absolute;top:0;bottom:0;margin:0 -1em;border-radius:inherit;background-color:var(--tui-primary)}:host-context(tui-input-slider) .bar{margin-left:calc(var(--tui-radius-m)/ 2);border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.dot{transition-property:background-color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:50%;z-index:1;width:1em;height:1em;transform:translate(0,-50%);border-radius:100%;background-color:var(--tui-primary);outline:0;cursor:ew-resize}.dot:last-child{right:0;transform:translate(0,-50%)}.dot:hover{background-color:var(--tui-primary-hover)}.dot:active{background-color:var(--tui-primary-active)}.dot_focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}.segments{position:relative;z-index:1;display:flex;justify-content:space-between;min-height:inherit;margin:0 -1em}.segments-spacer{height:1.625rem}.segment{position:relative;height:inherit;width:.25rem;background-color:rgba(0,0,0,.36);pointer-events:none}.segment:first-of-type,.segment:last-of-type{background-color:transparent}.number{position:absolute;left:50%;transform:translate(-50%,0);top:100%;font:var(--tui-font-text-s);margin-top:.5rem;color:var(--tui-text-02);white-space:nowrap}.segment:first-of-type .number{left:-.05em;transform:none}.segment:last-of-type .number{left:auto;right:-.05em;transform:none}:host._disabled .number{color:var(--tui-text-01)}",".dot:first-child{display:none}.wrapper{border-left:none}.bar,.segments{margin-left:0}"]}),p(0,t.Optional()),p(0,t.Self()),p(0,t.Inject(r.NgControl)),p(1,t.Inject(t.ChangeDetectorRef)),p(2,t.Inject(i.DOCUMENT)),p(3,t.Inject(u.TUI_FROM_TO_TEXTS))],n)}(s.AbstractTuiSlider),b=function(){function e(){}return e=c([t.NgModule({imports:[i.CommonModule,o.TuiRepeatTimesModule,o.TuiFocusableModule,o.TuiFocusVisibleModule,o.TuiActiveZoneModule,a.TuiFormatNumberPipeModule],declarations:[g,m],exports:[g,m]})],e)}();e.TuiSliderComponent=g,e.TuiSliderModule=b,e.TuiSliderOldComponent=m,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function g(e,t){function r(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m=function(){return(m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function f(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function b(e,t){return function(r,n){t(r,n,e)}}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}var v={size:"m",trackColor:"var(--tui-base-03)"},y=new t.InjectionToken("Default parameters for Slider component",{factory:function(){return v}});var k=function(){function e(e,t,n,a,s){var u;this.options=n,this.elementRef=a,this.userAgent=s,this.size=this.options.size,this.segments=1,e instanceof r.NgModel&&(null===(u=e.valueChanges)||void 0===u||u.pipe(o.watch(t),i.take(1)).subscribe())}return Object.defineProperty(e.prototype,"min",{get:function(){return Number(this.elementRef.nativeElement.min)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return Number(this.elementRef.nativeElement.max)||100},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return Number(this.elementRef.nativeElement.step)||1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return Number(this.elementRef.nativeElement.value)||0},set:function(e){this.elementRef.nativeElement.value=""+e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valuePercentage",{get:function(){return 100*this.value/(this.max-this.min)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"segmentWidth",{get:function(){return 100/Math.max(1,this.segments)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOldEdge",{get:function(){return o.isEdgeOlderThan(o.CHROMIUM_EDGE_START_VERSION,this.userAgent)},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:r.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[r.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:void 0,decorators:[{type:t.Inject,args:[y]}]},{type:t.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:String,decorators:[{type:t.Inject,args:[n.USER_AGENT]}]}]},f([t.Input(),t.HostBinding("attr.data-size"),o.tuiDefaultProp()],e.prototype,"size",void 0),f([t.Input(),o.tuiDefaultProp()],e.prototype,"segments",void 0),f([t.HostBinding("style.--tui-slider-fill-percentage.%")],e.prototype,"valuePercentage",null),f([t.HostBinding("style.--tui-slider-segment-width.%")],e.prototype,"segmentWidth",null),f([t.HostBinding("class._old-edge")],e.prototype,"isOldEdge",null),e=f([t.Component({selector:"input[type=range][tuiSlider]",template:"",host:{"(input)":"0","[style.--tui-slider-track-color]":"options.trackColor"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:100%;color:var(--tui-primary);cursor:pointer}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background:var(--tui-slider-track-color);background-clip:content-box;outline:0;border-radius:var(--tui-radius-m)}:host:not(._old-edge)::-webkit-slider-container{border-radius:inherit}:host:not(._old-edge)[data-size='m']::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-image:linear-gradient(to right,currentColor 0 .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.375rem,0;background-size:calc(100% - 1rem),calc(100% - 1rem),auto}:host:not(._old-edge)[data-size='s']::-webkit-slider-runnable-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-image:linear-gradient(to right,currentColor 0 .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}:host:not(._old-edge)[data-size='m']::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-image:linear-gradient(to right,currentColor 0 .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.375rem;background-size:calc(100% - 1rem)}:host:not(._old-edge)[data-size='s']::-moz-range-track{height:.125rem;border-radius:inherit;background-repeat:no-repeat;background-image:linear-gradient(to right,currentColor 0 .375rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}:host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem;margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem;margin-top:-.1875rem}:not(:disabled):host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='m']::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem}:not(:disabled):host:not(._old-edge)[data-size='m']::-moz-range-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='m']::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='s']::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem}:not(:disabled):host:not(._old-edge)[data-size='s']::-moz-range-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='s']::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)::-moz-range-progress{background:currentColor;border-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0}:host._old-edge::-ms-thumb{background:currentColor}:host._old-edge::-ms-fill-lower{background:currentColor}:host._old-edge::-ms-track{background:var(--tui-slider-track-color)}"]}),b(0,t.Optional()),b(0,t.Self()),b(0,t.Inject(r.NgControl)),b(1,t.Inject(t.ChangeDetectorRef)),b(2,t.Inject(y)),b(3,t.Inject(t.ElementRef)),b(4,t.Inject(n.USER_AGENT))],e)}(),w=function(e){function n(t,r,n,a){var s=e.call(this,t,r)||this;return s.elementRef=n,s.slider=a,s.keySteps=[],s.keyStepsInput=o.typedFromEvent(s.elementRef.nativeElement,"input").pipe(i.map((function(){return s.controlValue}))),s}return g(n,e),Object.defineProperty(n.prototype,"nativeFocusableElement",{get:function(){return this.computedDisabled?null:this.elementRef.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focused",{get:function(){return o.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controlValue",{get:function(){var e=this.slider.valuePercentage,t=h(I(this.keySteps,(function(t){var r=h(t,2),n=r[0];r[1];return e<=n})),2),r=t[0],n=t[1];return O(e,r,n)},enumerable:!0,configurable:!0}),n.prototype.updateControlValue=function(){this.updateValue(this.controlValue)},n.prototype.writeValue=function(e){if(null!==e){var t=h(I(this.keySteps,(function(t){var r=h(t,2),n=(r[0],r[1]);return e<=n})),2),r=t[0],n=t[1];this.slider.value=this.transformToNativeValue(e,r,n)}},n.prototype.getFallbackValue=function(){return 0},n.prototype.transformToNativeValue=function(e,t,r){var n=h(t,2),o=n[0],i=n[1],a=h(r,2),s=a[0],u=a[1],c=this.slider,l=c.min;return((o-s)*((e-u)/(i-u))+s)*(c.max-l)/100},n.ctorParameters=function(){return[{type:r.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[r.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:t.ElementRef,decorators:[{type:t.Inject,args:[t.ElementRef]}]},{type:k,decorators:[{type:t.Inject,args:[k]}]}]},f([t.Input(),o.tuiDefaultProp(j,"Should contain min and max values")],n.prototype,"keySteps",void 0),f([t.Output()],n.prototype,"keyStepsInput",void 0),f([t.HostListener("change")],n.prototype,"updateControlValue",null),n=f([t.Directive({selector:"input[tuiSlider][keySteps]"}),b(0,t.Optional()),b(0,t.Self()),b(0,t.Inject(r.NgControl)),b(1,t.Inject(t.ChangeDetectorRef)),b(2,t.Inject(t.ElementRef)),b(3,t.Inject(k))],n)}(o.AbstractTuiControl),_=function(){function e(){}return e.prototype.transform=function(e,t,r){var n=100/t*e,o=h(I(r,(function(e){var t=h(e,2),r=t[0];t[1];return n<=r})),2),i=o[0],a=o[1];return O(n,a,i)},e=f([t.Pipe({name:"tuiSliderTickLabel"})],e)}();function j(e){return!e.length||0===e[0][0]&&100===e[e.length-1][0]}function I(e,t){var r=e.findIndex((function(e,r){return r&&t(e)}));return[e[r-1],e[r]]}function O(e,t,r){var n=h(t,2),i=n[0],a=n[1],s=h(r,2),c=s[0],l=s[1],d=(a-l)*((e-c)/(i-c))+l;return o.round(d,u.TUI_FLOATING_PRECISION)}var C=function(e){function n(t,r,n,o){return e.call(this,t,r,n,o)||this}var i;return g(n,e),i=n,Object.defineProperty(n.prototype,"nativeFocusableElement",{get:function(){return this.dotRight?this.dotRight.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focused",{get:function(){return o.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"right",{get:function(){return 100-100*this.getFractionFromValue(this.value)},enumerable:!0,configurable:!0}),n.prototype.getFallbackValue=function(){return 0},n.prototype.processStep=function(e){var t=this.getFractionFromValue(this.value),r=this.computedStep,n=this.getValueFromFraction(e?t+r:t-r);this.processValue(n)},n.prototype.processValue=function(e){this.updateValue(this.valueGuard(e))},n.ctorParameters=function(){return[{type:r.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[r.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:Document,decorators:[{type:t.Inject,args:[a.DOCUMENT]}]},{type:d.Observable,decorators:[{type:t.Inject,args:[l.TUI_FROM_TO_TEXTS]}]}]},n=i=f([t.Component({selector:"tui-slider",template:'<div\n class="event-catcher"\n (tuiActiveZoneChange)="onActiveZone($event)"\n (mousedown)="onMouseDown($event)"\n (touchstart)="onTouchStart($event)"\n>\n <div class="wrapper">\n <div *ngIf="segmented" class="segments">\n <span\n *tuiRepeatTimes="let segmentIndex of segments + 1"\n automation-id="tui-slider__segment"\n class="segment"\n >\n <span *ngIf="fromToTexts$ | async as fromToText" class="number">\n {{ getSegmentPrefix(segmentIndex, fromToText) }} {{\n getSegmentLabel(segmentIndex) | tuiFormatNumber }}\n <span *ngIf="pluralizeMap">\n {{ getSegmentLabel(segmentIndex) | i18nPlural:\n pluralizeMap }}\n </span>\n </span>\n </span>\n </div>\n <div\n automation-id="tui-slider__bar"\n class="bar"\n [style.left.%]="left"\n [style.right.%]="right"\n >\n <div\n #dotLeft\n automation-id="tui-slider__left"\n class="dot"\n [class.dot_focus-visible]="focusVisibleLeft && computedFocused"\n [tuiFocusable]="isLeftFocusable"\n (tuiFocusVisibleChange)="onLeftFocusVisible($event)"\n (keydown.arrowLeft.prevent)="decrement(false)"\n (keydown.arrowDown.prevent)="decrement(false)"\n (keydown.arrowRight.prevent)="increment(false)"\n (keydown.arrowUp.prevent)="increment(false)"\n ></div>\n <div\n #dotRight\n automation-id="tui-slider__right"\n class="dot"\n [class.dot_focus-visible]="focusVisibleRight && computedFocused"\n [tuiFocusable]="isRightFocusable"\n (tuiFocusVisibleChange)="onRightFocusVisible($event)"\n (keydown.arrowLeft.prevent)="decrement(true)"\n (keydown.arrowDown.prevent)="decrement(true)"\n (keydown.arrowRight.prevent)="increment(true)"\n (keydown.arrowUp.prevent)="increment(true)"\n ></div>\n </div>\n </div>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:o.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return i}))}],styles:[":host{display:block;border-radius:var(--tui-radius-m);color:var(--tui-base-03);min-height:.125rem;font-size:1rem}:host[data-size='s']{min-height:.125rem;font-size:.5rem}:host._segmented{padding-bottom:1.25rem}:host._disabled{cursor:default;pointer-events:none;opacity:var(--tui-disabled-opacity)}.event-catcher{min-height:inherit;border-radius:inherit;padding:.4375rem 0;cursor:pointer}.wrapper{position:relative;min-height:inherit;border-radius:inherit;background-color:currentColor;border:solid transparent;border-width:0 1em}.bar{position:absolute;top:0;bottom:0;margin:0 -1em;border-radius:inherit;background-color:var(--tui-primary)}:host-context(tui-input-slider) .bar{margin-left:calc(var(--tui-radius-m)/ 2);border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.dot{transition-property:background-color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:50%;z-index:1;width:1em;height:1em;transform:translate(0,-50%);border-radius:100%;background-color:var(--tui-primary);outline:0;cursor:ew-resize}.dot:last-child{right:0;transform:translate(0,-50%)}.dot:hover{background-color:var(--tui-primary-hover)}.dot:active{background-color:var(--tui-primary-active)}.dot_focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}.segments{position:relative;z-index:1;display:flex;justify-content:space-between;min-height:inherit;margin:0 -1em}.segments-spacer{height:1.625rem}.segment{position:relative;height:inherit;width:.25rem;background-color:rgba(0,0,0,.36);pointer-events:none}.segment:first-of-type,.segment:last-of-type{background-color:transparent}.number{position:absolute;left:50%;transform:translate(-50%,0);top:100%;font:var(--tui-font-text-s);margin-top:.5rem;color:var(--tui-text-02);white-space:nowrap}.segment:first-of-type .number{left:-.05em;transform:none}.segment:last-of-type .number{left:auto;right:-.05em;transform:none}:host._disabled .number{color:var(--tui-text-01)}",".dot:first-child{display:none}.wrapper{border-left:none}.bar,.segments{margin-left:0}"]}),b(0,t.Optional()),b(0,t.Self()),b(0,t.Inject(r.NgControl)),b(1,t.Inject(t.ChangeDetectorRef)),b(2,t.Inject(a.DOCUMENT)),b(3,t.Inject(l.TUI_FROM_TO_TEXTS))],n)}(c.AbstractTuiSlider),S=function(){function e(){}return e=f([t.NgModule({imports:[a.CommonModule,o.TuiRepeatTimesModule,o.TuiFocusableModule,o.TuiFocusVisibleModule,o.TuiActiveZoneModule,s.TuiFormatNumberPipeModule],declarations:[k,w,_,C],exports:[k,w,_,C]})],e)}();e.TUI_SLIDER_DEFAULT_OPTIONS=v,e.TUI_SLIDER_OPTIONS=y,e.TuiSliderComponent=k,e.TuiSliderKeyStepsDirective=w,e.TuiSliderModule=S,e.TuiSliderOldComponent=C,e.TuiSliderTickLabelPipe=_,e.tuiSliderOptionsProvider=function(e){return{provide:y,useValue:m(m({},v),e)}},Object.defineProperty(e,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=taiga-ui-kit-components-slider.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/slider/slider.component.ts","ng://@taiga-ui/kit/components/slider/slider-old.component.ts","ng://@taiga-ui/kit/components/slider/slider.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiSliderComponent","control","elementRef","userAgent","this","size","segments","prototype","Number","nativeElement","min","max","step","Math","floor","value","isEdgeOlderThan","CHROMIUM_EDGE_START_VERSION","NgModel","viewModel","NgControl","type","Optional","Self","Inject","args","ElementRef","USER_AGENT","Input","HostBinding","tuiDefaultProp","Component","selector","template","host","(input)","changeDetection","ChangeDetectionStrategy","OnPush","TuiSliderOldComponent","changeDetectorRef","documentRef","fromToTexts$","_super","call","__","constructor","create","__extends","dotRight","isNativeFocused","nativeFocusableElement","getFractionFromValue","getFallbackValue","processStep","increment","fraction","computedStep","getValueFromFraction","processValue","updateValue","valueGuard","ChangeDetectorRef","Document","DOCUMENT","Observable","TUI_FROM_TO_TEXTS","TuiSliderOldComponent_1","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiSlider","TuiSliderModule","NgModule","imports","CommonModule","TuiRepeatTimesModule","TuiFocusableModule","TuiFocusVisibleModule","TuiActiveZoneModule","TuiFormatNumberPipeModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAW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E,WAAA,CAAA,CAAAqC,KAAtCG,EAAAA,OAAMC,KAAA,CAACuC,EAAAA,mBACiCC,EAAAA,WAAUjF,WAAA,CAAA,CAAAqC,KAAlDG,EAAAA,OAAMC,KAAA,CAACyC,EAAAA,wBAXH3B,EAAqB4B,EAAApF,EAAA,CAfjCgD,EAAAA,UAAU,CACPC,SAAU,aACVC,SAAA,8wEAKAG,gBAAiBC,EAAAA,wBAAwBC,OACzC8B,UAAW,CACP,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAL,+iEASjCtE,EAAA,EAAAyB,EAAAA,YACAzB,EAAA,EAAA0B,EAAAA,QACA1B,EAAA,EAAA2B,EAAAA,OAAOJ,EAAAA,YAEPvB,EAAA,EAAA2B,EAAAA,OAAOsC,EAAAA,oBACPjE,EAAA,EAAA2B,EAAAA,OAAOwC,EAAAA,WACPnE,EAAA,EAAA2B,EAAAA,OAAO0C,EAAAA,qBAXH3B,IACDkC,EAAAA,gCCjBZ,SAAAC,KAA8B,OAAjBA,EAAe3F,EAAA,CAZ3B4F,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,qBACAC,EAAAA,mBACAC,EAAAA,sBACAC,EAAAA,oBACAC,EAAAA,2BAEJC,aAAc,CAACnF,EAAoBuC,GACnC6C,QAAS,CAACpF,EAAoBuC,MAErBmC","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl, NgModel} from '@angular/forms';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'input[tuiSlider]',\n template: ``,\n styleUrls: ['./slider.style.less'],\n host: {\n type: 'range',\n /**\n * For change detection.\n * Webkit does not have built-in method for customization of filling progress (as Firefox).\n * We draw filling of progress by `background: linear-gradient(...)` of the track.\n * This function triggers change detection (for `fillPercentage` function) when we drag thumb of the input.\n */\n '(input)': '0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSliderComponent {\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n segments = 1;\n\n get min(): number {\n return Number(this.elementRef.nativeElement.min);\n }\n\n get max(): number {\n return Number(this.elementRef.nativeElement.max) || 100;\n }\n\n get step(): number {\n return Number(this.elementRef.nativeElement.step) || 1;\n }\n\n @HostBinding('style.--tui-slider-fill-percentage')\n get fillPercentage(): string {\n const percentage = Math.floor((100 * this.value) / (this.max - this.min));\n\n return `${percentage}%`;\n }\n\n @HostBinding('style.--tui-slider-segment-width')\n get stepPercentage(): string {\n const percentage = 100 / this.segments - 0.1;\n\n return `${percentage}%`;\n }\n\n @HostBinding('class._old-edge')\n get isOldEdge(): boolean {\n return isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent);\n }\n\n get value(): number {\n const {control} = this;\n const controlValue =\n control instanceof NgModel ? control.viewModel : control?.value;\n\n return controlValue || Number(this.elementRef.nativeElement.value) || 0;\n }\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly control: NgControl | null,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLInputElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n ) {}\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider} from '@taiga-ui/kit/abstract';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n/**\n * @deprecated use {@link TuiSliderComponent} instead\n * TODO remove in 3.0\n */\n// @dynamic\n@Component({\n selector: 'tui-slider',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: [\n '../../abstract/slider/slider.common.style.less',\n './slider-old.style.less',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiSliderOldComponent),\n },\n ],\n})\nexport class TuiSliderOldComponent\n extends AbstractTuiSlider<number>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.dotRight ? this.dotRight.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get left(): number {\n return 0;\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value);\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n protected processStep(increment: boolean) {\n const fraction = this.getFractionFromValue(this.value);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value);\n }\n\n protected processValue(value: number) {\n this.updateValue(this.valueGuard(value));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\n\nimport {TuiSliderComponent} from './slider.component';\nimport {TuiSliderOldComponent} from './slider-old.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiActiveZoneModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [TuiSliderComponent, TuiSliderOldComponent],\n exports: [TuiSliderComponent, TuiSliderOldComponent],\n})\nexport class TuiSliderModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/slider/slider-options.ts","ng://@taiga-ui/kit/components/slider/slider.component.ts","ng://@taiga-ui/kit/components/slider/slider-key-steps.directive.ts","ng://@taiga-ui/kit/components/slider/slider-old.component.ts","ng://@taiga-ui/kit/components/slider/slider.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__assign","assign","t","s","i","n","arguments","length","call","apply","__decorate","decorators","target","key","desc","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param","paramIndex","decorator","__read","o","m","Symbol","iterator","e","ar","next","done","push","value","error","TUI_SLIDER_DEFAULT_OPTIONS","size","trackColor","TUI_SLIDER_OPTIONS","InjectionToken","factory","TuiSliderComponent","control","changeDetectorRef","options","elementRef","userAgent","segments","NgModel","_a","valueChanges","pipe","watch","take","subscribe","Number","nativeElement","min","max","step","newValue","Math","isEdgeOlderThan","CHROMIUM_EDGE_START_VERSION","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","ElementRef","USER_AGENT","Input","HostBinding","tuiDefaultProp","Component","selector","template","host","(input)","[style.--tui-slider-track-color]","changeDetection","ChangeDetectionStrategy","OnPush","TuiSliderKeyStepsDirective","slider","_this","_super","keySteps","keyStepsInput","typedFromEvent","map","controlValue","computedDisabled","isNativeFocused","nativeFocusableElement","valuePercentage","findKeyStepsBoundariesByFn","lowerStep","upperStep","transformToControlValue","updateControlValue","updateValue","writeValue","transformToNativeValue","getFallbackValue","_b","_c","upperStepPercent","upperStepValue","_d","lowerStepPercent","lowerStepValue","_e","checkHasMinMaxPercents","Output","HostListener","Directive","AbstractTuiControl","TuiSliderTickLabelPipe","transform","tickIndex","totalSegments","percentage","Pipe","name","steps","fn","keyStepUpperIndex","findIndex","ketStep","round","TUI_FLOATING_PRECISION","TuiSliderOldComponent","documentRef","fromToTexts$","dotRight","getFractionFromValue","processStep","increment","fraction","computedStep","getValueFromFraction","processValue","valueGuard","Document","DOCUMENT","Observable","TUI_FROM_TO_TEXTS","TuiSliderOldComponent_1","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiSlider","TuiSliderModule","NgModule","imports","CommonModule","TuiRepeatTimesModule","TuiFocusableModule","TuiFocusVisibleModule","TuiActiveZoneModule","TuiFormatNumberPipeModule","declarations","exports","useValue"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAGrB,SAASO,EAAUR,EAAGC,GAEzB,SAASQ,IAAOC,KAAKC,YAAcX,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEY,UAAkB,OAANX,EAAaC,OAAOW,OAAOZ,IAAMQ,EAAGG,UAAYX,EAAEW,UAAW,IAAIH,GAG5E,IAAIK,EAAW,WAQlB,OAPAA,EAAWZ,OAAOa,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAIZ,KADTW,EAAIG,UAAUF,GACOhB,OAAOU,UAAUL,eAAee,KAAKL,EAAGX,KAAIU,EAAEV,GAAKW,EAAEX,IAE9E,OAAOU,IAEKO,MAAMb,KAAMU,YAezB,SAASI,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2H5B,EAAvH6B,EAAIT,UAAUC,OAAQS,EAAID,EAAI,EAAIH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I,CAAAF,KACJG,EAAAA,OAAMC,KAAA,CAACL,EAAAA,oBAEsCM,EAAAA,kBAAiB5D,WAAA,CAAA,CAAAuD,KAA9DG,EAAAA,OAAMC,KAAA,CAACC,EAAAA,4BACuB4E,SAAQxI,WAAA,CAAA,CAAAuD,KAAtCG,EAAAA,OAAMC,KAAA,CAAC8E,EAAAA,mBACiCC,EAAAA,WAAU1I,WAAA,CAAA,CAAAuD,KAAlDG,EAAAA,OAAMC,KAAA,CAACgF,EAAAA,wBAXHf,EAAqBgB,EAAA7I,EAAA,CAfjCmE,EAAAA,UAAU,CACPC,SAAU,aACVC,SAAA,8wEAKAI,gBAAiBC,EAAAA,wBAAwBC,OACzCmE,UAAW,CACP,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAL,+iEASjClI,EAAA,EAAA8C,EAAAA,YACA9C,EAAA,EAAA+C,EAAAA,QACA/C,EAAA,EAAAgD,EAAAA,OAAOJ,EAAAA,YAEP5C,EAAA,EAAAgD,EAAAA,OAAOE,EAAAA,oBACPlD,EAAA,EAAAgD,EAAAA,OAAO+E,EAAAA,WACP/H,EAAA,EAAAgD,EAAAA,OAAOiF,EAAAA,qBAXHf,IACDsB,EAAAA,gCCHZ,SAAAC,KAA8B,OAAjBA,EAAepJ,EAAA,CAtB3BqJ,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,qBACAC,EAAAA,mBACAC,EAAAA,sBACAC,EAAAA,oBACAC,EAAAA,2BAEJC,aAAc,CACV7H,EACA4C,EACAmC,EACAc,GAEJiC,QAAS,CACL9H,EACA4C,EACAmC,EACAc,MAGKuB,+NJpBTjH,GAEA,MAAO,CACH4G,QAASlH,EACTkI,SAAQzK,EAAAA,EAAA,GAAMoC,GAA+BS","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiSizeS} from '@taiga-ui/core';\n\nexport interface TuiSliderOptions {\n readonly size: TuiSizeS;\n readonly trackColor: string;\n}\n\nexport const TUI_SLIDER_DEFAULT_OPTIONS: TuiSliderOptions = {\n size: 'm',\n trackColor: 'var(--tui-base-03)',\n};\n\nexport const TUI_SLIDER_OPTIONS = new InjectionToken<TuiSliderOptions>(\n 'Default parameters for Slider component',\n {factory: () => TUI_SLIDER_DEFAULT_OPTIONS},\n);\n\nexport function tuiSliderOptionsProvider(\n options: Partial<TuiSliderOptions>,\n): ValueProvider {\n return {\n provide: TUI_SLIDER_OPTIONS,\n useValue: {...TUI_SLIDER_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl, NgModel} from '@angular/forms';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n tuiDefaultProp,\n watch,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\nimport {take} from 'rxjs/operators';\n\nimport {TUI_SLIDER_OPTIONS, TuiSliderOptions} from './slider-options';\n\n@Component({\n /**\n * We have to call our component as `<input tuiSlider type=\"range\" ... />`\n * because otherwise built-in angular\n * {@link https://github.com/angular/angular/blob/master/packages/forms/src/directives/range_value_accessor.ts#L45 RangeValueAccessor}\n * cannot be matched by its CSS selector.\n */\n selector: 'input[type=range][tuiSlider]',\n template: ``,\n styleUrls: ['./slider.style.less'],\n host: {\n /**\n * For change detection.\n * Webkit does not have built-in method for customization of filling progress (as Firefox).\n * We draw filling of progress by `background: linear-gradient(...)` of the track.\n * This function triggers change detection (for `fillPercentage` function) when we drag thumb of the input.\n */\n '(input)': '0',\n '[style.--tui-slider-track-color]': 'options.trackColor',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSliderComponent {\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n segments = 1;\n\n get min(): number {\n return Number(this.elementRef.nativeElement.min);\n }\n\n get max(): number {\n return Number(this.elementRef.nativeElement.max) || 100;\n }\n\n get step(): number {\n return Number(this.elementRef.nativeElement.step) || 1;\n }\n\n get value(): number {\n return Number(this.elementRef.nativeElement.value) || 0;\n }\n\n set value(newValue: number) {\n this.elementRef.nativeElement.value = `${newValue}`;\n }\n\n @HostBinding('style.--tui-slider-fill-percentage.%')\n get valuePercentage(): number {\n return (100 * this.value) / (this.max - this.min);\n }\n\n @HostBinding('style.--tui-slider-segment-width.%')\n get segmentWidth(): number {\n return 100 / Math.max(1, this.segments);\n }\n\n @HostBinding('class._old-edge')\n get isOldEdge(): boolean {\n return isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent);\n }\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_SLIDER_OPTIONS) readonly options: TuiSliderOptions,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLInputElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n ) {\n if (control instanceof NgModel) {\n /**\n * The ValueAccessor.writeValue method is called twice on any value accessor during component initialization,\n * when a control is bound using [(ngModel)], first time with a phantom null value.\n * With `changeDetection: ChangeDetectionStrategy.OnPush` the second call of writeValue with real value don't re-render the view.\n * ___\n * See this {@link https://github.com/angular/angular/issues/14988 issue}\n */\n control.valueChanges?.pipe(watch(changeDetectorRef), take(1)).subscribe();\n }\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Output,\n Pipe,\n PipeTransform,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n round,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants';\nimport {TuiKeySteps} from '@taiga-ui/kit/types';\nimport {map} from 'rxjs/operators';\n\nimport {TuiSliderComponent} from './slider.component';\n\n// @dynamic\n@Directive({\n selector: 'input[tuiSlider][keySteps]',\n})\nexport class TuiSliderKeyStepsDirective\n extends AbstractTuiControl<number>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp(checkHasMinMaxPercents, 'Should contain min and max values')\n keySteps: TuiKeySteps = [];\n\n @Output()\n keyStepsInput = typedFromEvent(this.elementRef.nativeElement, 'input').pipe(\n map(() => this.controlValue),\n );\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.computedDisabled ? null : this.elementRef.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n private get controlValue(): number {\n const {valuePercentage} = this.slider;\n const [lowerStep, upperStep] = findKeyStepsBoundariesByFn(\n this.keySteps,\n ([keyStepPercentage, _]) => valuePercentage <= keyStepPercentage,\n );\n\n return transformToControlValue(valuePercentage, lowerStep, upperStep);\n }\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLInputElement>,\n @Inject(TuiSliderComponent) private readonly slider: TuiSliderComponent,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostListener('change')\n updateControlValue() {\n this.updateValue(this.controlValue);\n }\n\n writeValue(controlValue: number | null) {\n if (controlValue === null) {\n return;\n }\n\n const [lowerStep, upperStep] = findKeyStepsBoundariesByFn(\n this.keySteps,\n ([_, keyStepValue]) => controlValue <= keyStepValue,\n );\n\n this.slider.value = this.transformToNativeValue(\n controlValue,\n lowerStep,\n upperStep,\n );\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n private transformToNativeValue(\n controlValue: number,\n [upperStepPercent, upperStepValue]: [number, number],\n [lowerStepPercent, lowerStepValue]: [number, number],\n ): number {\n const {min, max} = this.slider;\n const ratio = (controlValue - lowerStepValue) / (upperStepValue - lowerStepValue);\n const newValuePercentage =\n (upperStepPercent - lowerStepPercent) * ratio + lowerStepPercent;\n\n return (newValuePercentage * (max - min)) / 100;\n }\n}\n\n/**\n * @deprecated DONT USE IT! It is just temporary solution for internal purposes only. We will delete it in next major release.\n * TODO delete it in v3.0\n *\n */\n@Pipe({name: 'tuiSliderTickLabel'})\nexport class TuiSliderTickLabelPipe implements PipeTransform {\n transform(tickIndex: number, totalSegments: number, keySteps: TuiKeySteps): number {\n const percentage = (100 / totalSegments) * tickIndex;\n const [lowerStep, upperStep] = findKeyStepsBoundariesByFn(\n keySteps,\n ([keyStepPercentage, _]) => percentage <= keyStepPercentage,\n );\n\n return transformToControlValue(percentage, upperStep, lowerStep);\n }\n}\n\nfunction checkHasMinMaxPercents(steps: TuiKeySteps): boolean {\n return !steps.length || (steps[0][0] === 0 && steps[steps.length - 1][0] === 100);\n}\n\nfunction findKeyStepsBoundariesByFn(\n keySteps: TuiKeySteps,\n fn: ([keyStepPercent, keyStepValue]: [number, number]) => boolean,\n): [[number, number], [number, number]] {\n const keyStepUpperIndex = keySteps.findIndex((ketStep, i) => i && fn(ketStep));\n const lowerStep = keySteps[keyStepUpperIndex - 1];\n const upperStep = keySteps[keyStepUpperIndex];\n\n return [lowerStep, upperStep];\n}\n\nfunction transformToControlValue(\n valuePercentage: number,\n [upperStepPercent, upperStepValue]: [number, number],\n [lowerStepPercent, lowerStepValue]: [number, number],\n): number {\n const ratio =\n (valuePercentage - lowerStepPercent) / (upperStepPercent - lowerStepPercent);\n const controlValue = (upperStepValue - lowerStepValue) * ratio + lowerStepValue;\n\n return round(controlValue, TUI_FLOATING_PRECISION);\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider} from '@taiga-ui/kit/abstract';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n/**\n * @deprecated use {@link TuiSliderComponent} instead\n * TODO remove in 3.0\n */\n// @dynamic\n@Component({\n selector: 'tui-slider',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: [\n '../../abstract/slider/slider.common.style.less',\n './slider-old.style.less',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiSliderOldComponent),\n },\n ],\n})\nexport class TuiSliderOldComponent\n extends AbstractTuiSlider<number>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.dotRight ? this.dotRight.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get left(): number {\n return 0;\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value);\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n protected processStep(increment: boolean) {\n const fraction = this.getFractionFromValue(this.value);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value);\n }\n\n protected processValue(value: number) {\n this.updateValue(this.valueGuard(value));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\n\nimport {TuiSliderComponent} from './slider.component';\nimport {\n TuiSliderKeyStepsDirective,\n TuiSliderTickLabelPipe,\n} from './slider-key-steps.directive';\nimport {TuiSliderOldComponent} from './slider-old.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiActiveZoneModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [\n TuiSliderComponent,\n TuiSliderKeyStepsDirective,\n TuiSliderTickLabelPipe,\n TuiSliderOldComponent,\n ],\n exports: [\n TuiSliderComponent,\n TuiSliderKeyStepsDirective,\n TuiSliderTickLabelPipe,\n TuiSliderOldComponent,\n ],\n})\nexport class TuiSliderModule {}\n"]}
@@ -228,6 +228,10 @@
228
228
  provide: cdk.TUI_FOCUSABLE_ITEM_ACCESSOR,
229
229
  useExisting: core.forwardRef(function () { return TuiTextAreaComponent; }),
230
230
  },
231
+ {
232
+ provide: cdk.AbstractTuiControl,
233
+ useExisting: core.forwardRef(function () { return TuiTextAreaComponent; }),
234
+ },
231
235
  core$1.TEXTFIELD_CONTROLLER_PROVIDER,
232
236
  core$1.HINT_CONTROLLER_PROVIDER,
233
237
  core$1.MODE_PROVIDER,
@@ -258,9 +262,11 @@
258
262
  });
259
263
  Object.defineProperty(TuiTextAreaComponent.prototype, "nativeFocusableElement", {
260
264
  get: function () {
261
- return this.computedDisabled || !this.focusableElement
262
- ? null
263
- : this.focusableElement.nativeElement;
265
+ var _a, _b;
266
+ if (this.computedDisabled) {
267
+ return null;
268
+ }
269
+ return (((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeElement) || ((_b = this.focusableElement) === null || _b === void 0 ? void 0 : _b.nativeElement) || null);
264
270
  },
265
271
  enumerable: true,
266
272
  configurable: true
@@ -323,10 +329,9 @@
323
329
  });
324
330
  Object.defineProperty(TuiTextAreaComponent.prototype, "hasExampleText", {
325
331
  get: function () {
326
- return (!!this.controller.exampleText &&
327
- this.focused &&
328
- !this.hasValue &&
329
- !this.readOnly);
332
+ var _a;
333
+ var text = this.controller.exampleText || ((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeElement.placeholder);
334
+ return !!text && this.focused && !this.hasValue && !this.readOnly;
330
335
  },
331
336
  enumerable: true,
332
337
  configurable: true
@@ -369,7 +374,7 @@
369
374
  TuiTextAreaComponent.prototype.onPressed = function (pressed) {
370
375
  this.updatePressed(pressed);
371
376
  };
372
- TuiTextAreaComponent.prototype.onValue = function (value) {
377
+ TuiTextAreaComponent.prototype.onValueChange = function (value) {
373
378
  this.updateValue(value);
374
379
  };
375
380
  TuiTextAreaComponent.prototype.onMouseDown = function (event) {
@@ -403,6 +408,9 @@
403
408
  __decorate([
404
409
  core.ViewChild('focusableElement')
405
410
  ], TuiTextAreaComponent.prototype, "focusableElement", void 0);
411
+ __decorate([
412
+ core.ContentChild(core$1.TuiTextfieldComponent, { read: core.ElementRef })
413
+ ], TuiTextAreaComponent.prototype, "textfield", void 0);
406
414
  __decorate([
407
415
  core.Input(),
408
416
  cdk.tuiDefaultProp()
@@ -430,17 +438,21 @@
430
438
  __decorate([
431
439
  core.HostBinding('class._has-counter')
432
440
  ], TuiTextAreaComponent.prototype, "hasCounter", null);
441
+ __decorate([
442
+ core.HostListener('focusin', ['true']),
443
+ core.HostListener('focusout', ['false'])
444
+ ], TuiTextAreaComponent.prototype, "onFocused", null);
433
445
  TuiTextAreaComponent = __decorate([
434
446
  core.Component({
435
447
  selector: 'tui-text-area',
436
- template: "<tui-wrapper\n automation-id=\"tui-text-area__wrapper\"\n class=\"outline\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [readOnly]=\"readOnly\"\n [invalid]=\"computedInvalid\"\n>\n <div\n *ngIf=\"hasCounter\"\n automation-id=\"tui-text-area__counter\"\n class=\"counter\"\n >\n {{ value.length }}/{{ controller.maxLength }}\n </div>\n</tui-wrapper>\n\n<label\n class=\"content\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (mousedown)=\"onMouseDown($event)\"\n>\n <div class=\"wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-text-area__placeholder\"\n class=\"placeholder\"\n [class.placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n <tui-scrollbar\n automation-id=\"tui-text-area__scrollbar\"\n class=\"box\"\n [style.maxHeight.px]=\"computeMaxHeight\"\n >\n <div class=\"input-wrapper\">\n <div class=\"relative\">\n <div aria-hidden=\"true\" class=\"pseudo-content\">\n <span\n [textContent]=\"fittedContent || controller.exampleText\"\n ></span>\n <span\n class=\"pseudo-content__extra\"\n [textContent]=\"extraContent\"\n ></span>\n &nbsp;\n </div>\n <textarea\n #focusableElement\n automation-id=\"tui-text-area__native\"\n class=\"input\"\n [placeholder]=\"controller.exampleText\"\n [id]=\"id\"\n [tuiDescribedBy]=\"id\"\n [tuiFocusable]=\"focusable\"\n [disabled]=\"disabled\"\n [ngModel]=\"value\"\n [readOnly]=\"readOnly\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (ngModelChange)=\"onValue($event)\"\n ></textarea>\n </div>\n </div>\n </tui-scrollbar>\n </div>\n <div class=\"icons\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"cleaner\"\n (click.stop)=\"onValue('')\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n class=\"tooltip\"\n [describeId]=\"id\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n </div>\n</label>\n",
448
+ template: "<tui-wrapper\n automation-id=\"tui-text-area__wrapper\"\n class=\"t-outline\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [readOnly]=\"readOnly\"\n [invalid]=\"computedInvalid\"\n>\n <div\n *ngIf=\"hasCounter\"\n automation-id=\"tui-text-area__counter\"\n class=\"t-counter\"\n >\n {{ value.length }}/{{ controller.maxLength }}\n </div>\n</tui-wrapper>\n\n<label\n class=\"t-content\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (mousedown)=\"onMouseDown($event)\"\n>\n <div class=\"t-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-text-area__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n <tui-scrollbar\n automation-id=\"tui-text-area__scrollbar\"\n class=\"t-box\"\n [style.maxHeight.px]=\"computeMaxHeight\"\n >\n <div class=\"t-input-wrapper\">\n <div class=\"t-relative\">\n <div aria-hidden=\"true\" class=\"t-pseudo-content\">\n <span\n [textContent]=\"fittedContent || controller.exampleText\"\n ></span>\n <span\n class=\"t-pseudo-content__extra\"\n [textContent]=\"extraContent\"\n ></span>\n &nbsp;\n </div>\n <textarea\n #focusableElement\n automation-id=\"tui-text-area__native\"\n class=\"t-input\"\n [placeholder]=\"controller.exampleText\"\n [id]=\"id\"\n [tuiDescribedBy]=\"id\"\n [tuiFocusable]=\"computedFocusable\"\n [disabled]=\"computedDisabled\"\n [ngModel]=\"value\"\n [readOnly]=\"readOnly\"\n (ngModelChange)=\"onValueChange($event)\"\n ></textarea>\n <ng-content select=\"textarea\"></ng-content>\n </div>\n </div>\n </tui-scrollbar>\n </div>\n <div class=\"t-icons\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"t-cleaner\"\n (click.stop)=\"onValueChange('')\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n class=\"t-tooltip\"\n [describeId]=\"id\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n </div>\n</label>\n",
437
449
  changeDetection: core.ChangeDetectionStrategy.OnPush,
438
450
  providers: TUI_TEXT_AREA_PROVIDERS,
439
451
  host: {
440
452
  '($.data-mode.attr)': 'mode$',
441
453
  '[class._ios]': 'isIOS',
442
454
  },
443
- styles: [":host{position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);flex-direction:column;min-height:6.75rem;border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-size='m']._has-counter{min-height:6.625rem}:host[data-size='l']._has-counter{min-height:7.875rem}.outline{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.content{margin-top:0;margin-bottom:0;min-height:inherit;width:100%;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .content{bottom:1.6875rem}.wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-size='m']._label-outside .wrapper{padding-top:.75rem}:host[data-size='l']._label-outside .wrapper{padding-top:1rem}:host[data-size='m']:not(._label-outside) .wrapper{padding-top:1.375rem}:host[data-size='l']:not(._label-outside) .wrapper{padding-top:1.625rem}.input-wrapper{min-height:inherit;width:100%;flex:1}.relative{position:relative;min-height:inherit}.box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .box{height:100%}:host._has-counter._expandable .box{margin-bottom:1.25rem}.pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:0 solid transparent;border-width:0 var(--border-end) 0 var(--border-start);border-inline-start-width:var(--border-start);border-inline-end-width:var(--border-end)}:host[data-size='m'] .pseudo-content{padding:0 .75rem}:host[data-size='l'] .pseudo-content{padding:0 1rem}.pseudo-content__extra{background-color:var(--tui-error-bg-night)}.input{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;-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%;box-sizing:border-box;resize:none;overflow:hidden;outline:0;border-width:0 var(--border-end) 0 var(--border-start);border-inline-start-width:var(--border-start);border-inline-end-width:var(--border-end)}.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::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .input::placeholder{color:var(--tui-text-03-night)}:host._focused .input:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .input:not(:read-only)::placeholder{opacity:1}:host[data-size='m'] .input{padding:0 .75rem}:host[data-size='l'] .input{padding:0 1rem}:host._ios .input{padding-left:.8125rem}:host[data-mode=onDark]._disabled .input{color:var(--tui-text-03-night)}.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;position:absolute;left:0;max-width:100%;padding:0 1rem;border:0 solid transparent;border-width:0 var(--border-end) 0 var(--border-start);border-inline-start-width:var(--border-start);border-inline-end-width:var(--border-end);box-sizing:border-box}.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[data-size='m'] .placeholder{top:.75rem;padding:0 .75rem}:host[data-size='l'] .placeholder{top:1rem}:host._label-outside .placeholder{overflow:initial;height:auto;white-space:initial}.icons{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:flex-end;pointer-events:none;padding:1rem .75rem}:host[data-size='m'] .icons{padding:.75rem}.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;pointer-events:auto}.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)}.tooltip{pointer-events:auto}.counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:right;color:var(--tui-text-03)}:host[data-mode=onDark] .counter{color:var(--tui-text-03-night)}"]
455
+ styles: [":host{position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);flex-direction:column;min-height:6.75rem;border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-size='m']._has-counter{min-height:6.625rem}:host[data-size='l']._has-counter{min-height:7.875rem}.t-outline{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.t-content{margin-top:0;margin-bottom:0;min-height:inherit;width:100%;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .t-content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .t-content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}.t-wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-size='m']._label-outside .t-wrapper{padding-top:.75rem}:host[data-size='l']._label-outside .t-wrapper{padding-top:1rem}:host[data-size='m']:not(._label-outside) .t-wrapper{padding-top:1.375rem}:host[data-size='l']:not(._label-outside) .t-wrapper{padding-top:1.625rem}.t-input-wrapper{min-height:inherit;width:100%;flex:1}.t-relative{position:relative;min-height:inherit}.t-box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .t-box{height:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;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)}:host[data-size='m'] .t-pseudo-content{padding:0 .75rem}:host[data-size='l'] .t-pseudo-content{padding:0 1rem}.t-pseudo-content__extra{background-color:var(--tui-error-bg-night)}.t-input{padding:0;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;position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:0;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)}.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:not(:last-child){display:none}.t-input::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}:host._focused .t-input:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-input:not(:read-only)::placeholder{opacity:1}:host[data-size='m'] .t-input{padding:0 .75rem}:host[data-size='l'] .t-input{padding:0 1rem}:host._ios .t-input{padding-left:.8125rem}:host[data-mode=onDark]._disabled .t-input{color:var(--tui-text-03-night)}.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;position:absolute;left:0;max-width:100%;padding:0 1rem;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);box-sizing:border-box}.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[data-size='m'] .t-placeholder{top:.75rem;padding:0 .75rem}:host[data-size='l'] .t-placeholder{top:1rem}:host._label-outside .t-placeholder{overflow:initial;height:auto;white-space:initial}.t-icons{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:flex-end;pointer-events:none;padding:1rem .75rem}:host[data-size='m'] .t-icons{padding:.75rem}.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;pointer-events:auto}.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-tooltip{pointer-events:auto}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:right;color:var(--tui-text-03)}:host[data-mode=onDark] .t-counter{color:var(--tui-text-03-night)}"]
444
456
  }),
445
457
  __param(0, core.Optional()),
446
458
  __param(0, core.Self()),
@@ -455,6 +467,30 @@
455
467
  return TuiTextAreaComponent;
456
468
  }(cdk.AbstractTuiControl));
457
469
 
470
+ var TuiTextAreaDirective = /** @class */ (function (_super) {
471
+ __extends(TuiTextAreaDirective, _super);
472
+ function TuiTextAreaDirective() {
473
+ return _super !== null && _super.apply(this, arguments) || this;
474
+ }
475
+ TuiTextAreaDirective_1 = TuiTextAreaDirective;
476
+ TuiTextAreaDirective.prototype.onValueChange = function (value) {
477
+ this.host.onValueChange(value);
478
+ };
479
+ var TuiTextAreaDirective_1;
480
+ TuiTextAreaDirective = TuiTextAreaDirective_1 = __decorate([
481
+ core.Directive({
482
+ selector: 'tui-text-area',
483
+ providers: [
484
+ {
485
+ provide: core$1.TUI_TEXTFIELD_HOST,
486
+ useExisting: core.forwardRef(function () { return TuiTextAreaDirective_1; }),
487
+ },
488
+ ],
489
+ })
490
+ ], TuiTextAreaDirective);
491
+ return TuiTextAreaDirective;
492
+ }(core$1.TuiAbstractTextfieldHost));
493
+
458
494
  var TuiTextAreaModule = /** @class */ (function () {
459
495
  function TuiTextAreaModule() {
460
496
  }
@@ -464,16 +500,16 @@
464
500
  common.CommonModule,
465
501
  forms.FormsModule,
466
502
  cdk.TuiFocusableModule,
467
- cdk.TuiFocusedModule,
468
503
  cdk.TuiHoveredModule,
469
504
  core$1.TuiScrollbarModule,
470
505
  core$1.TuiTooltipModule,
471
506
  core$1.TuiWrapperModule,
472
507
  core$1.TuiDescribedByModule,
473
508
  core$1.TuiSvgModule,
509
+ core$1.TuiPrimitiveTextfieldModule,
474
510
  ],
475
- declarations: [TuiTextAreaComponent],
476
- exports: [TuiTextAreaComponent],
511
+ declarations: [TuiTextAreaComponent, TuiTextAreaDirective],
512
+ exports: [TuiTextAreaComponent, TuiTextAreaDirective, core$1.TuiTextfieldComponent],
477
513
  })
478
514
  ], TuiTextAreaModule);
479
515
  return TuiTextAreaModule;
@@ -484,6 +520,7 @@
484
520
  exports.LINE_HEIGHT_M = LINE_HEIGHT_M;
485
521
  exports.TUI_TEXT_AREA_PROVIDERS = TUI_TEXT_AREA_PROVIDERS;
486
522
  exports.TuiTextAreaComponent = TuiTextAreaComponent;
523
+ exports.TuiTextAreaDirective = TuiTextAreaDirective;
487
524
  exports.TuiTextAreaModule = TuiTextAreaModule;
488
525
 
489
526
  Object.defineProperty(exports, '__esModule', { value: true });