@taiga-ui/kit 2.55.0 → 2.58.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 (1092) hide show
  1. package/bundles/taiga-ui-kit-abstract.umd.js +22 -22
  2. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-kit-components-accordion.umd.js +15 -15
  5. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  7. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-action.umd.js +10 -10
  9. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  11. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.js +5 -5
  13. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-avatar.umd.js +15 -15
  16. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
  18. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-badge.umd.js +14 -14
  20. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-badged-content.umd.js +23 -23
  23. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
  25. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +11 -11
  27. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +1 -1
  29. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
  31. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +5 -5
  34. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js +1 -1
  36. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-carousel.umd.js +18 -18
  38. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +10 -10
  41. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  43. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +6 -6
  45. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  47. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-checkbox.umd.js +5 -5
  49. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  51. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-combo-box.umd.js +11 -11
  53. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  55. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +4 -4
  57. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-field-error.umd.js +5 -5
  60. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-files.umd.js +20 -20
  63. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-filter.umd.js +5 -5
  66. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  68. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-copy.umd.js +10 -10
  70. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  72. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-count.umd.js +21 -21
  74. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  76. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +16 -16
  78. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +1 -1
  80. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +18 -18
  82. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  84. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-input-date.umd.js +12 -12
  86. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  88. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-input-file.umd.js +38 -38
  90. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  92. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-files.umd.js +15 -15
  94. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-inline.umd.js +4 -4
  97. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +9 -9
  100. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  102. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-month.umd.js +7 -7
  104. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  106. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-input-number.umd.js +24 -24
  108. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  110. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-input-password.umd.js +11 -11
  112. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  114. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +232 -232
  116. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  118. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-input-phone.umd.js +38 -38
  120. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  122. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  123. package/bundles/taiga-ui-kit-components-input-range.umd.js +16 -16
  124. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-input-slider.umd.js +37 -25
  127. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  129. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-input-tag.umd.js +25 -25
  131. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  133. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-input-time.umd.js +15 -15
  135. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  137. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
  139. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  141. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-island.umd.js +18 -18
  143. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +18 -12
  146. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  147. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  148. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +8 -8
  150. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  152. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +2 -2
  154. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-multi-select.umd.js +19 -19
  157. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  159. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-pagination.umd.js +9 -9
  161. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  163. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +10 -10
  165. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  167. package/bundles/taiga-ui-kit-components-progress.umd.js +26 -26
  168. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  170. package/bundles/taiga-ui-kit-components-radio-block.umd.js +11 -11
  171. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  173. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  174. package/bundles/taiga-ui-kit-components-radio-group.umd.js +1 -1
  175. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  176. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +7 -7
  178. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  180. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-radio-list.umd.js +7 -7
  182. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-radio.umd.js +10 -10
  186. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-range.umd.js +35 -35
  190. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  192. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-rating.umd.js +7 -7
  194. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  195. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  196. package/bundles/taiga-ui-kit-components-select-option.umd.js +4 -4
  197. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  198. package/bundles/taiga-ui-kit-components-select-option.umd.min.js +1 -1
  199. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  200. package/bundles/taiga-ui-kit-components-select.umd.js +6 -6
  201. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  203. package/bundles/taiga-ui-kit-components-slider.umd.js +65 -46
  204. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  205. package/bundles/taiga-ui-kit-components-slider.umd.min.js +1 -1
  206. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  207. package/bundles/taiga-ui-kit-components-stepper.umd.js +27 -27
  208. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  209. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  210. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  211. package/bundles/taiga-ui-kit-components-tabs.umd.js +41 -41
  212. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  214. package/bundles/taiga-ui-kit-components-tag.umd.js +25 -25
  215. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  216. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  217. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  218. package/bundles/taiga-ui-kit-components-text-area.umd.js +18 -18
  219. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  221. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  222. package/bundles/taiga-ui-kit-components-toggle.umd.js +13 -13
  223. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  224. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  225. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  226. package/bundles/taiga-ui-kit-components-tree.umd.js +24 -24
  227. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  228. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  229. package/bundles/taiga-ui-kit-constants.umd.js +18 -18
  230. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  231. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  232. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +10 -10
  233. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  234. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  235. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js +6 -6
  236. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  237. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  238. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +18 -14
  239. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  240. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  241. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  242. package/bundles/taiga-ui-kit-directives-highlight.umd.js +10 -10
  243. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  244. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  245. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +11 -11
  246. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  247. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  248. package/bundles/taiga-ui-kit-directives-present.umd.js +5 -5
  249. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  250. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  251. package/bundles/taiga-ui-kit-directives-project-class.umd.js +2 -2
  252. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  253. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  254. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +4 -4
  255. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  256. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
  257. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +1 -1
  258. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  259. package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
  260. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  261. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  262. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +3 -3
  263. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  264. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
  265. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  266. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +8 -8
  267. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  268. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  269. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +4 -4
  270. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  271. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  272. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +1 -1
  273. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  274. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  275. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +2 -2
  276. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  277. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  278. package/bundles/taiga-ui-kit-providers.umd.js +3 -3
  279. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  280. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  281. package/bundles/taiga-ui-kit-tokens.umd.js +38 -38
  282. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  283. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  284. package/bundles/taiga-ui-kit-utils-dom.umd.js +4 -4
  285. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  286. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  287. package/bundles/taiga-ui-kit-utils-files.umd.js +2 -2
  288. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  289. package/bundles/taiga-ui-kit-utils-files.umd.min.js.map +1 -1
  290. package/bundles/taiga-ui-kit-utils-format.umd.js +2 -2
  291. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  292. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  293. package/bundles/taiga-ui-kit-utils-mask.umd.js +12 -12
  294. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  295. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  296. package/bundles/taiga-ui-kit-utils-math.umd.js +2 -2
  297. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  298. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  299. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +7 -7
  300. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  301. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  302. package/bundles/taiga-ui-kit-validators.umd.js +1 -1
  303. package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
  304. package/bundles/taiga-ui-kit-validators.umd.min.js.map +1 -1
  305. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  306. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  307. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  308. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  309. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  310. package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
  311. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  312. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  313. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  314. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  315. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  316. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  317. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  318. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  319. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  320. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  321. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  322. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  323. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  324. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  325. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  326. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  327. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  328. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  329. package/components/input-slider/input-slider.component.d.ts +4 -1
  330. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  331. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  332. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  333. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  334. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  335. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  336. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  337. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  338. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  339. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  340. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  341. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  342. package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
  343. package/components/slider/helpers/slider-key-steps.directive.d.ts +8 -0
  344. package/components/slider/slider.component.d.ts +4 -2
  345. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  346. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  347. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  348. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  349. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  350. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  351. package/esm2015/abstract/input-slider.js +12 -12
  352. package/esm2015/abstract/slider/slider.js +12 -12
  353. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  354. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  355. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +11 -11
  356. package/esm2015/components/accordion/accordion.component.js +4 -4
  357. package/esm2015/components/action/action.component.js +11 -11
  358. package/esm2015/components/arrow/arrow-options.js +5 -5
  359. package/esm2015/components/arrow/arrow.component.js +2 -2
  360. package/esm2015/components/avatar/avatar-options.js +3 -3
  361. package/esm2015/components/avatar/avatar.component.js +14 -14
  362. package/esm2015/components/badge/badge.component.js +15 -15
  363. package/esm2015/components/badged-content/badged-content.component.js +24 -24
  364. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +7 -7
  365. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +6 -6
  366. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  367. package/esm2015/components/calendar-range/calendar-range.component.js +6 -6
  368. package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
  369. package/esm2015/components/carousel/carousel-buttons.directive.js +4 -4
  370. package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
  371. package/esm2015/components/carousel/carousel.component.js +10 -10
  372. package/esm2015/components/carousel/carousel.directive.js +3 -3
  373. package/esm2015/components/checkbox/checkbox.component.js +6 -6
  374. package/esm2015/components/checkbox-block/checkbox-block.component.js +11 -11
  375. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +7 -7
  376. package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
  377. package/esm2015/components/combo-box/combo-box.component.js +9 -9
  378. package/esm2015/components/combo-box/combo-box.directive.js +2 -2
  379. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  380. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  381. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +3 -3
  382. package/esm2015/components/field-error/field-error.component.js +6 -6
  383. package/esm2015/components/files/file/file.component.js +20 -20
  384. package/esm2015/components/files/files.component.js +2 -2
  385. package/esm2015/components/filter/filter.component.js +6 -6
  386. package/esm2015/components/input/input.component.js +7 -7
  387. package/esm2015/components/input/input.directive.js +2 -2
  388. package/esm2015/components/input-copy/input-copy.component.js +10 -10
  389. package/esm2015/components/input-copy/input-copy.directive.js +2 -2
  390. package/esm2015/components/input-count/input-count-options.js +6 -6
  391. package/esm2015/components/input-count/input-count.component.js +14 -14
  392. package/esm2015/components/input-count/input-count.directive.js +4 -4
  393. package/esm2015/components/input-date/input-date.component.js +11 -11
  394. package/esm2015/components/input-date/input-date.directive.js +3 -3
  395. package/esm2015/components/input-date-range/input-date-range.component.js +15 -15
  396. package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
  397. package/esm2015/components/input-date-time/input-date-time.component.js +17 -17
  398. package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
  399. package/esm2015/components/input-file/file/file.component.js +20 -20
  400. package/esm2015/components/input-file/input-file.component.js +20 -20
  401. package/esm2015/components/input-files/input-files.component.js +16 -16
  402. package/esm2015/components/input-inline/input-inline.component.js +5 -5
  403. package/esm2015/components/input-month/input-month.component.js +6 -6
  404. package/esm2015/components/input-month/input-month.directive.js +3 -3
  405. package/esm2015/components/input-month-range/input-month-range.component.js +7 -7
  406. package/esm2015/components/input-month-range/input-month-range.directive.js +4 -4
  407. package/esm2015/components/input-number/input-number.component.js +23 -23
  408. package/esm2015/components/input-number/input-number.directive.js +3 -3
  409. package/esm2015/components/input-password/input-password-options.js +4 -4
  410. package/esm2015/components/input-password/input-password.component.js +7 -7
  411. package/esm2015/components/input-password/input-password.directive.js +3 -3
  412. package/esm2015/components/input-phone/input-phone.component.js +32 -32
  413. package/esm2015/components/input-phone/input-phone.directive.js +3 -3
  414. package/esm2015/components/input-phone/input-phone.options.js +4 -4
  415. package/esm2015/components/input-phone/input-phone.providers.js +3 -3
  416. package/esm2015/components/input-phone-international/const/countries.js +215 -215
  417. package/esm2015/components/input-phone-international/country-iso-code.js +1 -1
  418. package/esm2015/components/input-phone-international/input-phone-international.component.js +16 -16
  419. package/esm2015/components/input-phone-international/input-phone-international.options.js +2 -2
  420. package/esm2015/components/input-phone-international/tokens/countries-masks.js +2 -2
  421. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +2 -2
  422. package/esm2015/components/input-range/input-range.component.js +17 -17
  423. package/esm2015/components/input-slider/input-slider.component.js +31 -22
  424. package/esm2015/components/input-tag/input-tag-options.js +3 -3
  425. package/esm2015/components/input-tag/input-tag.component.js +24 -24
  426. package/esm2015/components/input-time/input-time-options.js +6 -6
  427. package/esm2015/components/input-time/input-time.component.js +11 -11
  428. package/esm2015/components/island/island.component.js +19 -19
  429. package/esm2015/components/line-clamp/line-clamp-options.js +2 -2
  430. package/esm2015/components/line-clamp/line-clamp.component.js +11 -11
  431. package/esm2015/components/line-clamp/line-clamp.module.js +9 -3
  432. package/esm2015/components/marker-icon/marker-icon.component.js +9 -9
  433. package/esm2015/components/multi-select/hide-selected.pipe.js +2 -2
  434. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  435. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  436. package/esm2015/components/multi-select/multi-select-options.js +3 -3
  437. package/esm2015/components/multi-select/multi-select.component.js +12 -12
  438. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  439. package/esm2015/components/pagination/pagination.component.js +10 -10
  440. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -6
  441. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  442. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +3 -3
  443. package/esm2015/components/progress/progress-bar/progress-bar.component.js +6 -6
  444. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  445. package/esm2015/components/progress/progress-circle/progress-circle.component.js +7 -7
  446. package/esm2015/components/progress/progress-label/progress-label.component.js +2 -2
  447. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  448. package/esm2015/components/progress/utils/calculate-color-segments.js +2 -2
  449. package/esm2015/components/progress/utils/progress-color-segments-async.pipe.js +2 -2
  450. package/esm2015/components/progress/utils/progress-color-segments.pipe.js +2 -2
  451. package/esm2015/components/radio/radio-options.js +3 -3
  452. package/esm2015/components/radio/radio.component.js +9 -9
  453. package/esm2015/components/radio-block/radio-block.component.js +12 -12
  454. package/esm2015/components/radio-group/radio-group.component.js +2 -2
  455. package/esm2015/components/radio-labeled/radio-labeled.component.js +8 -8
  456. package/esm2015/components/radio-list/radio-list.component.js +8 -8
  457. package/esm2015/components/range/range-change.directive.js +10 -10
  458. package/esm2015/components/range/range.component.js +25 -25
  459. package/esm2015/components/rating/rating-options.js +4 -4
  460. package/esm2015/components/rating/rating.component.js +5 -5
  461. package/esm2015/components/select/select-options.js +3 -3
  462. package/esm2015/components/select/select.component.js +4 -4
  463. package/esm2015/components/select/select.directive.js +2 -2
  464. package/esm2015/components/select-option/select-option.component.js +5 -5
  465. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +21 -14
  466. package/esm2015/components/slider/helpers/slider-readonly.directive.js +15 -15
  467. package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +4 -4
  468. package/esm2015/components/slider/slider-old.component.js +2 -2
  469. package/esm2015/components/slider/slider-options.js +4 -4
  470. package/esm2015/components/slider/slider.component.js +25 -16
  471. package/esm2015/components/stepper/step/step.component.js +14 -14
  472. package/esm2015/components/stepper/stepper.component.js +15 -15
  473. package/esm2015/components/tabs/tab/tab.component.js +8 -8
  474. package/esm2015/components/tabs/tab/tab.providers.js +4 -4
  475. package/esm2015/components/tabs/tabs/tabs.component.js +13 -13
  476. package/esm2015/components/tabs/tabs-options.js +2 -2
  477. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
  478. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -2
  479. package/esm2015/components/tabs/underline/underline.component.js +13 -13
  480. package/esm2015/components/tag/tag-options.js +4 -4
  481. package/esm2015/components/tag/tag.component.js +23 -23
  482. package/esm2015/components/text-area/text-area.component.js +18 -18
  483. package/esm2015/components/text-area/text-area.directive.js +2 -2
  484. package/esm2015/components/toggle/toggle-options.js +5 -5
  485. package/esm2015/components/toggle/toggle.component.js +10 -10
  486. package/esm2015/components/tree/components/tree/tree.component.js +3 -3
  487. package/esm2015/components/tree/components/tree-item/tree-item.component.js +4 -4
  488. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  489. package/esm2015/components/tree/directives/tree-children.directive.js +2 -2
  490. package/esm2015/components/tree/directives/tree-controller.directive.js +4 -4
  491. package/esm2015/components/tree/directives/tree-item-controller.directive.js +4 -4
  492. package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
  493. package/esm2015/components/tree/misc/tree.tokens.js +9 -9
  494. package/esm2015/constants/date-time-separator.js +2 -2
  495. package/esm2015/constants/group-class-names.js +10 -10
  496. package/esm2015/constants/icon-blank.js +2 -2
  497. package/esm2015/constants/masks.js +7 -7
  498. package/esm2015/constants/router-link-options.js +2 -2
  499. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +11 -11
  500. package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +5 -5
  501. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +20 -16
  502. package/esm2015/directives/highlight/highlight.directive.js +11 -11
  503. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +12 -12
  504. package/esm2015/directives/present/present.directive.js +6 -6
  505. package/esm2015/directives/project-class/project-class.directive.js +3 -3
  506. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  507. package/esm2015/directives/value-accessor/value-accessor.directive.js +2 -2
  508. package/esm2015/enums/borders.js +1 -1
  509. package/esm2015/enums/dropdown-position.js +1 -1
  510. package/esm2015/enums/file-state.js +1 -1
  511. package/esm2015/enums/marker-icon-mode.js +1 -1
  512. package/esm2015/enums/status.js +1 -1
  513. package/esm2015/enums/step-state.js +1 -1
  514. package/esm2015/enums/text-align.js +1 -1
  515. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -4
  516. package/esm2015/pipes/field-error/field-error-content-pipe.js +4 -4
  517. package/esm2015/pipes/field-error/field-error-pipe.js +6 -6
  518. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
  519. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +3 -3
  520. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
  521. package/esm2015/pipes/stringify/stringify.pipe.js +3 -3
  522. package/esm2015/pipes/stringify-content/stringify-content.pipe.js +2 -2
  523. package/esm2015/providers/month-formatter.provider.js +2 -2
  524. package/esm2015/providers/specific-dropdown-controllers.js +3 -3
  525. package/esm2015/tokens/calendar-data-stream.js +2 -2
  526. package/esm2015/tokens/date-inputs-value-transformers.js +4 -4
  527. package/esm2015/tokens/i18n.js +28 -28
  528. package/esm2015/tokens/items-handlers.js +2 -2
  529. package/esm2015/tokens/mobile-aware.js +2 -2
  530. package/esm2015/tokens/mobile-calendar.js +2 -2
  531. package/esm2015/tokens/month-formatter.js +2 -2
  532. package/esm2015/tokens/tab-margin.js +2 -2
  533. package/esm2015/tokens/tag-status.js +2 -2
  534. package/esm2015/tokens/validation-errors.js +2 -2
  535. package/esm2015/utils/dom/get-word-range.js +5 -5
  536. package/esm2015/utils/files/format-size.js +2 -2
  537. package/esm2015/utils/files/get-accept-array.js +2 -2
  538. package/esm2015/utils/format/string-hash-to-hsl.js +3 -3
  539. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +2 -2
  540. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +6 -6
  541. package/esm2015/utils/mask/create-date-mask.js +5 -5
  542. package/esm2015/utils/mask/create-date-range-mask.js +2 -2
  543. package/esm2015/utils/mask/create-time-mask.js +4 -4
  544. package/esm2015/utils/math/horizontal-direction-to-number.js +3 -3
  545. package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +7 -7
  546. package/esm2015/utils/miscellaneous/get-precision.js +2 -2
  547. package/esm2015/validators/unfinished.validator.js +2 -2
  548. package/esm5/abstract/input-slider.js +12 -12
  549. package/esm5/abstract/slider/slider.js +12 -12
  550. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  551. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  552. package/esm5/components/accordion/accordion-item/accordion-item.component.js +11 -11
  553. package/esm5/components/accordion/accordion.component.js +4 -4
  554. package/esm5/components/action/action.component.js +11 -11
  555. package/esm5/components/arrow/arrow-options.js +5 -5
  556. package/esm5/components/arrow/arrow.component.js +2 -2
  557. package/esm5/components/avatar/avatar-options.js +3 -3
  558. package/esm5/components/avatar/avatar.component.js +14 -14
  559. package/esm5/components/badge/badge.component.js +15 -15
  560. package/esm5/components/badged-content/badged-content.component.js +24 -24
  561. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +7 -7
  562. package/esm5/components/breadcrumbs/breadcrumbs.component.js +6 -6
  563. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  564. package/esm5/components/calendar-range/calendar-range.component.js +6 -6
  565. package/esm5/components/carousel/carousel-autoscroll.directive.js +3 -3
  566. package/esm5/components/carousel/carousel-buttons.directive.js +4 -4
  567. package/esm5/components/carousel/carousel-scroll.directive.js +3 -3
  568. package/esm5/components/carousel/carousel.component.js +10 -10
  569. package/esm5/components/carousel/carousel.directive.js +3 -3
  570. package/esm5/components/checkbox/checkbox.component.js +6 -6
  571. package/esm5/components/checkbox-block/checkbox-block.component.js +11 -11
  572. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +7 -7
  573. package/esm5/components/combo-box/combo-box-strict.directive.js +3 -3
  574. package/esm5/components/combo-box/combo-box.component.js +9 -9
  575. package/esm5/components/combo-box/combo-box.directive.js +2 -2
  576. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  577. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  578. package/esm5/components/data-list-wrapper/data-list-wrapper.js +3 -3
  579. package/esm5/components/field-error/field-error.component.js +6 -6
  580. package/esm5/components/files/file/file.component.js +20 -20
  581. package/esm5/components/files/files.component.js +2 -2
  582. package/esm5/components/filter/filter.component.js +6 -6
  583. package/esm5/components/input/input.component.js +7 -7
  584. package/esm5/components/input/input.directive.js +2 -2
  585. package/esm5/components/input-copy/input-copy.component.js +10 -10
  586. package/esm5/components/input-copy/input-copy.directive.js +2 -2
  587. package/esm5/components/input-count/input-count-options.js +6 -6
  588. package/esm5/components/input-count/input-count.component.js +14 -14
  589. package/esm5/components/input-count/input-count.directive.js +4 -4
  590. package/esm5/components/input-date/input-date.component.js +11 -11
  591. package/esm5/components/input-date/input-date.directive.js +3 -3
  592. package/esm5/components/input-date-range/input-date-range.component.js +15 -15
  593. package/esm5/components/input-date-range/input-date-range.directive.js +3 -3
  594. package/esm5/components/input-date-time/input-date-time.component.js +17 -17
  595. package/esm5/components/input-date-time/input-date-time.directive.js +3 -3
  596. package/esm5/components/input-file/file/file.component.js +20 -20
  597. package/esm5/components/input-file/input-file.component.js +20 -20
  598. package/esm5/components/input-files/input-files.component.js +16 -16
  599. package/esm5/components/input-inline/input-inline.component.js +5 -5
  600. package/esm5/components/input-month/input-month.component.js +6 -6
  601. package/esm5/components/input-month/input-month.directive.js +3 -3
  602. package/esm5/components/input-month-range/input-month-range.component.js +7 -7
  603. package/esm5/components/input-month-range/input-month-range.directive.js +4 -4
  604. package/esm5/components/input-number/input-number.component.js +23 -23
  605. package/esm5/components/input-number/input-number.directive.js +3 -3
  606. package/esm5/components/input-password/input-password-options.js +4 -4
  607. package/esm5/components/input-password/input-password.component.js +7 -7
  608. package/esm5/components/input-password/input-password.directive.js +3 -3
  609. package/esm5/components/input-phone/input-phone.component.js +32 -32
  610. package/esm5/components/input-phone/input-phone.directive.js +3 -3
  611. package/esm5/components/input-phone/input-phone.options.js +4 -4
  612. package/esm5/components/input-phone/input-phone.providers.js +3 -3
  613. package/esm5/components/input-phone-international/const/countries.js +215 -215
  614. package/esm5/components/input-phone-international/country-iso-code.js +1 -1
  615. package/esm5/components/input-phone-international/input-phone-international.component.js +16 -16
  616. package/esm5/components/input-phone-international/input-phone-international.options.js +2 -2
  617. package/esm5/components/input-phone-international/tokens/countries-masks.js +2 -2
  618. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +2 -2
  619. package/esm5/components/input-range/input-range.component.js +17 -17
  620. package/esm5/components/input-slider/input-slider.component.js +35 -22
  621. package/esm5/components/input-tag/input-tag-options.js +3 -3
  622. package/esm5/components/input-tag/input-tag.component.js +24 -24
  623. package/esm5/components/input-time/input-time-options.js +6 -6
  624. package/esm5/components/input-time/input-time.component.js +11 -11
  625. package/esm5/components/island/island.component.js +19 -19
  626. package/esm5/components/line-clamp/line-clamp-options.js +2 -2
  627. package/esm5/components/line-clamp/line-clamp.component.js +11 -11
  628. package/esm5/components/line-clamp/line-clamp.module.js +9 -3
  629. package/esm5/components/marker-icon/marker-icon.component.js +9 -9
  630. package/esm5/components/multi-select/hide-selected.pipe.js +2 -2
  631. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  632. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  633. package/esm5/components/multi-select/multi-select-options.js +3 -3
  634. package/esm5/components/multi-select/multi-select.component.js +12 -12
  635. package/esm5/components/multi-select-option/multi-select-option.component.js +3 -3
  636. package/esm5/components/pagination/pagination.component.js +10 -10
  637. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -6
  638. package/esm5/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  639. package/esm5/components/pdf-viewer/pdf-viewer.service.js +3 -3
  640. package/esm5/components/progress/progress-bar/progress-bar.component.js +6 -6
  641. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  642. package/esm5/components/progress/progress-circle/progress-circle.component.js +7 -7
  643. package/esm5/components/progress/progress-label/progress-label.component.js +2 -2
  644. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  645. package/esm5/components/progress/utils/calculate-color-segments.js +2 -2
  646. package/esm5/components/progress/utils/progress-color-segments-async.pipe.js +2 -2
  647. package/esm5/components/progress/utils/progress-color-segments.pipe.js +2 -2
  648. package/esm5/components/radio/radio-options.js +3 -3
  649. package/esm5/components/radio/radio.component.js +9 -9
  650. package/esm5/components/radio-block/radio-block.component.js +12 -12
  651. package/esm5/components/radio-group/radio-group.component.js +2 -2
  652. package/esm5/components/radio-labeled/radio-labeled.component.js +8 -8
  653. package/esm5/components/radio-list/radio-list.component.js +8 -8
  654. package/esm5/components/range/range-change.directive.js +12 -12
  655. package/esm5/components/range/range.component.js +25 -25
  656. package/esm5/components/rating/rating-options.js +4 -4
  657. package/esm5/components/rating/rating.component.js +5 -5
  658. package/esm5/components/select/select-options.js +3 -3
  659. package/esm5/components/select/select.component.js +4 -4
  660. package/esm5/components/select/select.directive.js +2 -2
  661. package/esm5/components/select-option/select-option.component.js +5 -5
  662. package/esm5/components/slider/helpers/slider-key-steps.directive.js +21 -14
  663. package/esm5/components/slider/helpers/slider-readonly.directive.js +15 -15
  664. package/esm5/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +4 -4
  665. package/esm5/components/slider/slider-old.component.js +2 -2
  666. package/esm5/components/slider/slider-options.js +4 -4
  667. package/esm5/components/slider/slider.component.js +29 -16
  668. package/esm5/components/stepper/step/step.component.js +14 -14
  669. package/esm5/components/stepper/stepper.component.js +15 -15
  670. package/esm5/components/tabs/tab/tab.component.js +8 -8
  671. package/esm5/components/tabs/tab/tab.providers.js +4 -4
  672. package/esm5/components/tabs/tabs/tabs.component.js +13 -13
  673. package/esm5/components/tabs/tabs-options.js +2 -2
  674. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
  675. package/esm5/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -2
  676. package/esm5/components/tabs/underline/underline.component.js +13 -13
  677. package/esm5/components/tag/tag-options.js +4 -4
  678. package/esm5/components/tag/tag.component.js +23 -23
  679. package/esm5/components/text-area/text-area.component.js +18 -18
  680. package/esm5/components/text-area/text-area.directive.js +2 -2
  681. package/esm5/components/toggle/toggle-options.js +5 -5
  682. package/esm5/components/toggle/toggle.component.js +10 -10
  683. package/esm5/components/tree/components/tree/tree.component.js +3 -3
  684. package/esm5/components/tree/components/tree-item/tree-item.component.js +4 -4
  685. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  686. package/esm5/components/tree/directives/tree-children.directive.js +2 -2
  687. package/esm5/components/tree/directives/tree-controller.directive.js +4 -4
  688. package/esm5/components/tree/directives/tree-item-controller.directive.js +4 -4
  689. package/esm5/components/tree/directives/tree-node.directive.js +3 -3
  690. package/esm5/components/tree/misc/tree.tokens.js +9 -9
  691. package/esm5/constants/date-time-separator.js +2 -2
  692. package/esm5/constants/group-class-names.js +10 -10
  693. package/esm5/constants/icon-blank.js +2 -2
  694. package/esm5/constants/masks.js +7 -7
  695. package/esm5/constants/router-link-options.js +2 -2
  696. package/esm5/directives/dropdown-context/dropdown-context.directive.js +11 -11
  697. package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +7 -7
  698. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +20 -16
  699. package/esm5/directives/highlight/highlight.directive.js +11 -11
  700. package/esm5/directives/lazy-loading/lazy-loading.directive.js +12 -12
  701. package/esm5/directives/present/present.directive.js +6 -6
  702. package/esm5/directives/project-class/project-class.directive.js +3 -3
  703. package/esm5/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  704. package/esm5/directives/value-accessor/value-accessor.directive.js +2 -2
  705. package/esm5/enums/borders.js +1 -1
  706. package/esm5/enums/dropdown-position.js +1 -1
  707. package/esm5/enums/file-state.js +1 -1
  708. package/esm5/enums/marker-icon-mode.js +1 -1
  709. package/esm5/enums/status.js +1 -1
  710. package/esm5/enums/step-state.js +1 -1
  711. package/esm5/enums/text-align.js +1 -1
  712. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -4
  713. package/esm5/pipes/field-error/field-error-content-pipe.js +4 -4
  714. package/esm5/pipes/field-error/field-error-pipe.js +6 -6
  715. package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
  716. package/esm5/pipes/filter-by-input/filter-by-input.base.js +3 -3
  717. package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
  718. package/esm5/pipes/stringify/stringify.pipe.js +3 -3
  719. package/esm5/pipes/stringify-content/stringify-content.pipe.js +2 -2
  720. package/esm5/providers/month-formatter.provider.js +2 -2
  721. package/esm5/providers/specific-dropdown-controllers.js +3 -3
  722. package/esm5/tokens/calendar-data-stream.js +2 -2
  723. package/esm5/tokens/date-inputs-value-transformers.js +4 -4
  724. package/esm5/tokens/i18n.js +28 -28
  725. package/esm5/tokens/items-handlers.js +2 -2
  726. package/esm5/tokens/mobile-aware.js +2 -2
  727. package/esm5/tokens/mobile-calendar.js +2 -2
  728. package/esm5/tokens/month-formatter.js +2 -2
  729. package/esm5/tokens/tab-margin.js +2 -2
  730. package/esm5/tokens/tag-status.js +2 -2
  731. package/esm5/tokens/validation-errors.js +2 -2
  732. package/esm5/utils/dom/get-word-range.js +5 -5
  733. package/esm5/utils/files/format-size.js +2 -2
  734. package/esm5/utils/files/get-accept-array.js +2 -2
  735. package/esm5/utils/format/string-hash-to-hsl.js +3 -3
  736. package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +2 -2
  737. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +6 -6
  738. package/esm5/utils/mask/create-date-mask.js +5 -5
  739. package/esm5/utils/mask/create-date-range-mask.js +2 -2
  740. package/esm5/utils/mask/create-time-mask.js +2 -2
  741. package/esm5/utils/math/horizontal-direction-to-number.js +3 -3
  742. package/esm5/utils/miscellaneous/create-default-day-range-periods.js +7 -7
  743. package/esm5/utils/miscellaneous/get-precision.js +2 -2
  744. package/esm5/validators/unfinished.validator.js +2 -2
  745. package/fesm2015/taiga-ui-kit-abstract.js +22 -22
  746. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-accordion.js +15 -15
  748. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-action.js +10 -10
  750. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-arrow.js +5 -5
  752. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-avatar.js +15 -15
  754. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-badge.js +14 -14
  756. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components-badged-content.js +23 -23
  758. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +11 -11
  760. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  762. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  763. package/fesm2015/taiga-ui-kit-components-calendar-range.js +5 -5
  764. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  765. package/fesm2015/taiga-ui-kit-components-carousel.js +18 -18
  766. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +10 -10
  768. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +6 -6
  770. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-components-checkbox.js +5 -5
  772. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  773. package/fesm2015/taiga-ui-kit-components-combo-box.js +11 -11
  774. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  775. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  776. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  777. package/fesm2015/taiga-ui-kit-components-field-error.js +5 -5
  778. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  779. package/fesm2015/taiga-ui-kit-components-files.js +20 -20
  780. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  781. package/fesm2015/taiga-ui-kit-components-filter.js +5 -5
  782. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  783. package/fesm2015/taiga-ui-kit-components-input-copy.js +10 -10
  784. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  785. package/fesm2015/taiga-ui-kit-components-input-count.js +21 -21
  786. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  787. package/fesm2015/taiga-ui-kit-components-input-date-range.js +16 -16
  788. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  789. package/fesm2015/taiga-ui-kit-components-input-date-time.js +18 -18
  790. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  791. package/fesm2015/taiga-ui-kit-components-input-date.js +12 -12
  792. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  793. package/fesm2015/taiga-ui-kit-components-input-file.js +38 -38
  794. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  795. package/fesm2015/taiga-ui-kit-components-input-files.js +15 -15
  796. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  797. package/fesm2015/taiga-ui-kit-components-input-inline.js +4 -4
  798. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  799. package/fesm2015/taiga-ui-kit-components-input-month-range.js +9 -9
  800. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  801. package/fesm2015/taiga-ui-kit-components-input-month.js +7 -7
  802. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  803. package/fesm2015/taiga-ui-kit-components-input-number.js +24 -24
  804. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  805. package/fesm2015/taiga-ui-kit-components-input-password.js +11 -11
  806. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  807. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +232 -232
  808. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  809. package/fesm2015/taiga-ui-kit-components-input-phone.js +38 -38
  810. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  811. package/fesm2015/taiga-ui-kit-components-input-range.js +16 -16
  812. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  813. package/fesm2015/taiga-ui-kit-components-input-slider.js +30 -22
  814. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  815. package/fesm2015/taiga-ui-kit-components-input-tag.js +25 -25
  816. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  817. package/fesm2015/taiga-ui-kit-components-input-time.js +15 -15
  818. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  819. package/fesm2015/taiga-ui-kit-components-input.js +7 -7
  820. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  821. package/fesm2015/taiga-ui-kit-components-island.js +18 -18
  822. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  823. package/fesm2015/taiga-ui-kit-components-line-clamp.js +19 -13
  824. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  825. package/fesm2015/taiga-ui-kit-components-marker-icon.js +8 -8
  826. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  827. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
  828. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  829. package/fesm2015/taiga-ui-kit-components-multi-select.js +19 -19
  830. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  831. package/fesm2015/taiga-ui-kit-components-pagination.js +9 -9
  832. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  833. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +10 -10
  834. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  835. package/fesm2015/taiga-ui-kit-components-progress.js +26 -26
  836. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  837. package/fesm2015/taiga-ui-kit-components-radio-block.js +11 -11
  838. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  839. package/fesm2015/taiga-ui-kit-components-radio-group.js +1 -1
  840. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  841. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +7 -7
  842. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  843. package/fesm2015/taiga-ui-kit-components-radio-list.js +7 -7
  844. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  845. package/fesm2015/taiga-ui-kit-components-radio.js +10 -10
  846. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  847. package/fesm2015/taiga-ui-kit-components-range.js +33 -33
  848. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  849. package/fesm2015/taiga-ui-kit-components-rating.js +7 -7
  850. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  851. package/fesm2015/taiga-ui-kit-components-select-option.js +4 -4
  852. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  853. package/fesm2015/taiga-ui-kit-components-select.js +6 -6
  854. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  855. package/fesm2015/taiga-ui-kit-components-slider.js +63 -48
  856. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  857. package/fesm2015/taiga-ui-kit-components-stepper.js +27 -27
  858. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  859. package/fesm2015/taiga-ui-kit-components-tabs.js +41 -41
  860. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  861. package/fesm2015/taiga-ui-kit-components-tag.js +25 -25
  862. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  863. package/fesm2015/taiga-ui-kit-components-text-area.js +18 -18
  864. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  865. package/fesm2015/taiga-ui-kit-components-toggle.js +13 -13
  866. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  867. package/fesm2015/taiga-ui-kit-components-tree.js +24 -24
  868. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  869. package/fesm2015/taiga-ui-kit-constants.js +18 -18
  870. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  871. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +10 -10
  872. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  873. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js +4 -4
  874. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  875. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +19 -15
  876. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  877. package/fesm2015/taiga-ui-kit-directives-highlight.js +10 -10
  878. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  879. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +11 -11
  880. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  881. package/fesm2015/taiga-ui-kit-directives-present.js +5 -5
  882. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  883. package/fesm2015/taiga-ui-kit-directives-project-class.js +2 -2
  884. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  885. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  886. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  887. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +1 -1
  888. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  889. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  890. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +3 -3
  891. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  892. package/fesm2015/taiga-ui-kit-pipes-field-error.js +8 -8
  893. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  894. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +4 -4
  895. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  896. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +1 -1
  897. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  898. package/fesm2015/taiga-ui-kit-pipes-stringify.js +2 -2
  899. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  900. package/fesm2015/taiga-ui-kit-providers.js +3 -3
  901. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  902. package/fesm2015/taiga-ui-kit-tokens.js +38 -38
  903. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  904. package/fesm2015/taiga-ui-kit-utils-dom.js +4 -4
  905. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  906. package/fesm2015/taiga-ui-kit-utils-files.js +2 -2
  907. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  908. package/fesm2015/taiga-ui-kit-utils-format.js +2 -2
  909. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  910. package/fesm2015/taiga-ui-kit-utils-mask.js +14 -14
  911. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  912. package/fesm2015/taiga-ui-kit-utils-math.js +2 -2
  913. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  914. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +7 -7
  915. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  916. package/fesm2015/taiga-ui-kit-validators.js +1 -1
  917. package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
  918. package/fesm5/taiga-ui-kit-abstract.js +22 -22
  919. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  920. package/fesm5/taiga-ui-kit-components-accordion.js +15 -15
  921. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  922. package/fesm5/taiga-ui-kit-components-action.js +10 -10
  923. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  924. package/fesm5/taiga-ui-kit-components-arrow.js +5 -5
  925. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  926. package/fesm5/taiga-ui-kit-components-avatar.js +15 -15
  927. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  928. package/fesm5/taiga-ui-kit-components-badge.js +14 -14
  929. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  930. package/fesm5/taiga-ui-kit-components-badged-content.js +23 -23
  931. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  932. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +11 -11
  933. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  934. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  935. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  936. package/fesm5/taiga-ui-kit-components-calendar-range.js +5 -5
  937. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  938. package/fesm5/taiga-ui-kit-components-carousel.js +18 -18
  939. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  940. package/fesm5/taiga-ui-kit-components-checkbox-block.js +10 -10
  941. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  942. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +6 -6
  943. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  944. package/fesm5/taiga-ui-kit-components-checkbox.js +5 -5
  945. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  946. package/fesm5/taiga-ui-kit-components-combo-box.js +11 -11
  947. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  948. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  949. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  950. package/fesm5/taiga-ui-kit-components-field-error.js +5 -5
  951. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  952. package/fesm5/taiga-ui-kit-components-files.js +20 -20
  953. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  954. package/fesm5/taiga-ui-kit-components-filter.js +5 -5
  955. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  956. package/fesm5/taiga-ui-kit-components-input-copy.js +10 -10
  957. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  958. package/fesm5/taiga-ui-kit-components-input-count.js +21 -21
  959. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  960. package/fesm5/taiga-ui-kit-components-input-date-range.js +16 -16
  961. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  962. package/fesm5/taiga-ui-kit-components-input-date-time.js +18 -18
  963. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  964. package/fesm5/taiga-ui-kit-components-input-date.js +12 -12
  965. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  966. package/fesm5/taiga-ui-kit-components-input-file.js +38 -38
  967. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  968. package/fesm5/taiga-ui-kit-components-input-files.js +15 -15
  969. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  970. package/fesm5/taiga-ui-kit-components-input-inline.js +4 -4
  971. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  972. package/fesm5/taiga-ui-kit-components-input-month-range.js +9 -9
  973. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  974. package/fesm5/taiga-ui-kit-components-input-month.js +7 -7
  975. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  976. package/fesm5/taiga-ui-kit-components-input-number.js +24 -24
  977. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  978. package/fesm5/taiga-ui-kit-components-input-password.js +11 -11
  979. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  980. package/fesm5/taiga-ui-kit-components-input-phone-international.js +232 -232
  981. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  982. package/fesm5/taiga-ui-kit-components-input-phone.js +38 -38
  983. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  984. package/fesm5/taiga-ui-kit-components-input-range.js +16 -16
  985. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  986. package/fesm5/taiga-ui-kit-components-input-slider.js +34 -22
  987. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  988. package/fesm5/taiga-ui-kit-components-input-tag.js +25 -25
  989. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  990. package/fesm5/taiga-ui-kit-components-input-time.js +15 -15
  991. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  992. package/fesm5/taiga-ui-kit-components-input.js +7 -7
  993. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  994. package/fesm5/taiga-ui-kit-components-island.js +18 -18
  995. package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
  996. package/fesm5/taiga-ui-kit-components-line-clamp.js +19 -13
  997. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  998. package/fesm5/taiga-ui-kit-components-marker-icon.js +8 -8
  999. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  1000. package/fesm5/taiga-ui-kit-components-multi-select-option.js +2 -2
  1001. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  1002. package/fesm5/taiga-ui-kit-components-multi-select.js +19 -19
  1003. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  1004. package/fesm5/taiga-ui-kit-components-pagination.js +9 -9
  1005. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  1006. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -10
  1007. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  1008. package/fesm5/taiga-ui-kit-components-progress.js +26 -26
  1009. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  1010. package/fesm5/taiga-ui-kit-components-radio-block.js +11 -11
  1011. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  1012. package/fesm5/taiga-ui-kit-components-radio-group.js +1 -1
  1013. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  1014. package/fesm5/taiga-ui-kit-components-radio-labeled.js +7 -7
  1015. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  1016. package/fesm5/taiga-ui-kit-components-radio-list.js +7 -7
  1017. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  1018. package/fesm5/taiga-ui-kit-components-radio.js +10 -10
  1019. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  1020. package/fesm5/taiga-ui-kit-components-range.js +35 -35
  1021. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  1022. package/fesm5/taiga-ui-kit-components-rating.js +7 -7
  1023. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  1024. package/fesm5/taiga-ui-kit-components-select-option.js +4 -4
  1025. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  1026. package/fesm5/taiga-ui-kit-components-select.js +6 -6
  1027. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  1028. package/fesm5/taiga-ui-kit-components-slider.js +67 -48
  1029. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  1030. package/fesm5/taiga-ui-kit-components-stepper.js +27 -27
  1031. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  1032. package/fesm5/taiga-ui-kit-components-tabs.js +41 -41
  1033. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  1034. package/fesm5/taiga-ui-kit-components-tag.js +25 -25
  1035. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  1036. package/fesm5/taiga-ui-kit-components-text-area.js +18 -18
  1037. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  1038. package/fesm5/taiga-ui-kit-components-toggle.js +13 -13
  1039. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  1040. package/fesm5/taiga-ui-kit-components-tree.js +24 -24
  1041. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  1042. package/fesm5/taiga-ui-kit-constants.js +18 -18
  1043. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  1044. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +10 -10
  1045. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  1046. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js +6 -6
  1047. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  1048. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +19 -15
  1049. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  1050. package/fesm5/taiga-ui-kit-directives-highlight.js +10 -10
  1051. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  1052. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +11 -11
  1053. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  1054. package/fesm5/taiga-ui-kit-directives-present.js +5 -5
  1055. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  1056. package/fesm5/taiga-ui-kit-directives-project-class.js +2 -2
  1057. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  1058. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  1059. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  1060. package/fesm5/taiga-ui-kit-directives-value-accessor.js +1 -1
  1061. package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  1062. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  1063. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +3 -3
  1064. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  1065. package/fesm5/taiga-ui-kit-pipes-field-error.js +8 -8
  1066. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  1067. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js +4 -4
  1068. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  1069. package/fesm5/taiga-ui-kit-pipes-stringify-content.js +1 -1
  1070. package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  1071. package/fesm5/taiga-ui-kit-pipes-stringify.js +2 -2
  1072. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  1073. package/fesm5/taiga-ui-kit-providers.js +3 -3
  1074. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  1075. package/fesm5/taiga-ui-kit-tokens.js +38 -38
  1076. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  1077. package/fesm5/taiga-ui-kit-utils-dom.js +4 -4
  1078. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  1079. package/fesm5/taiga-ui-kit-utils-files.js +2 -2
  1080. package/fesm5/taiga-ui-kit-utils-files.js.map +1 -1
  1081. package/fesm5/taiga-ui-kit-utils-format.js +2 -2
  1082. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  1083. package/fesm5/taiga-ui-kit-utils-mask.js +12 -12
  1084. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  1085. package/fesm5/taiga-ui-kit-utils-math.js +2 -2
  1086. package/fesm5/taiga-ui-kit-utils-math.js.map +1 -1
  1087. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +7 -7
  1088. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  1089. package/fesm5/taiga-ui-kit-validators.js +1 -1
  1090. package/fesm5/taiga-ui-kit-validators.js.map +1 -1
  1091. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  1092. package/package.json +4 -4
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@taiga-ui/cdk"),require("@taiga-ui/kit/tokens"),require("@taiga-ui/kit/utils/files"),require("rxjs"),require("rxjs/operators"),require("@angular/forms"),require("@taiga-ui/core"),require("@angular/common"),require("@tinkoff/ng-polymorpheus")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/input-file",["exports","@angular/core","@angular/platform-browser","@taiga-ui/cdk","@taiga-ui/kit/tokens","@taiga-ui/kit/utils/files","rxjs","rxjs/operators","@angular/forms","@taiga-ui/core","@angular/common","@tinkoff/ng-polymorpheus"],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["input-file"]={}),e.ng.core,e.ng.platformBrowser,e.cdk,e["taiga-ui"].kit.tokens,e["taiga-ui"].kit.utils.files,e.rxjs,e.rxjs.operators,e.ng.forms,e.core$1,e.ng.common,e.ngPolymorpheus)}(this,(function(e,t,n,i,r,o,a,l,u,s,p,c){"use strict";var f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function d(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function g(e,t){return function(n,i){t(n,i,e)}}Object.create;function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}Object.create;var h=function(){function e(e,n,i,r){this.isMobile=e,this.sanitizer=n,this.fileTexts$=i,this.units$=r,this.file={name:""},this.state="normal",this.size="m",this.allowDelete=!0,this.showSize=!0,this.fileRemoved=new t.EventEmitter,this.focused=!1}return Object.defineProperty(e.prototype,"preview",{get:function(){return this.isBig?this.createPreview(this.file,this.sanitizer):""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBig",{get:function(){return"l"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return"loading"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isError",{get:function(){return"error"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDeleted",{get:function(){return"deleted"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){if("normal"===this.state&&this.isBig)return"tuiIconDefaultDocLarge";switch(this.state){case"deleted":return"tuiIconTrashLarge";case"error":return"tuiIconAlertCircleLarge";default:return"tuiIconCheckCircleLarge"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"src",{get:function(){return this.file.src||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.file.name.split(".").slice(0,-1).join(".")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return"."+this.file.name.split(".").pop()||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content$",{get:function(){return this.calculateContent$(this.state,this.file,this.fileTexts$)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileSize$",{get:function(){return this.calculateFileSize$(this.file,this.units$)},enumerable:!0,configurable:!0}),e.prototype.onRemoveClick=function(){this.fileRemoved.emit()},e.prototype.onFocusVisible=function(e){this.focused=e},e.prototype.calculateContent$=function(e,t,n){return"error"!==e||t.content?a.of(this.file.content||""):n.pipe(l.map((function(e){return e.loadingError})))},e.prototype.calculateFileSize$=function(e,t){return t.pipe(l.map((function(t){return o.formatSize(t,e.size)})))},e.prototype.createPreview=function(e,t){return e.src?e.src:e instanceof File&&e.type&&e.type.startsWith("image/")?t.bypassSecurityTrustUrl(URL.createObjectURL(e)):""},e.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:n.DomSanitizer,decorators:[{type:t.Inject,args:[n.DomSanitizer]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_FILE_TEXTS]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_DIGITAL_INFORMATION_UNITS]}]}]},d([t.Input(),i.tuiDefaultProp()],e.prototype,"file",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"state",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"size",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"allowDelete",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"showSize",void 0),d([t.Output()],e.prototype,"fileRemoved",void 0),d([t.HostBinding("class._focused")],e.prototype,"focused",void 0),d([t.HostBinding("class._link")],e.prototype,"src",null),d([i.tuiPure],e.prototype,"calculateContent$",null),d([i.tuiPure],e.prototype,"calculateFileSize$",null),d([i.tuiPure],e.prototype,"createPreview",null),e=d([t.Component({selector:"tui-file",changeDetection:t.ChangeDetectionStrategy.OnPush,template:'<ng-container *ngIf="!src; else withLink">\n <ng-container [ngTemplateOutlet]="fileInfoTemplate"></ng-container>\n</ng-container>\n\n<ng-template #withLink>\n <a\n rel="noreferrer noopener"\n target="_blank"\n class="link"\n [href]="src"\n (tuiFocusVisibleChange)="onFocusVisible($event)"\n >\n <ng-container [ngTemplateOutlet]="fileInfoTemplate"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div\n class="preview"\n [class.preview_big]="isBig"\n >\n <img\n *ngIf="preview && (fileTexts$ | async) as texts; else loader"\n automation-id="tui-file__preview"\n class="image"\n [alt]="texts.preview"\n [src]="preview"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf="isLoading; else svg"\n automation-id="tui-file__loader"\n class="loader"\n [inheritColor]="isBig"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n automation-id="tui-file__icon"\n class="icon"\n [class.icon_deleted]="isDeleted"\n [class.icon_error]="isError"\n [src]="icon"\n ></tui-svg>\n </ng-template>\n </div>\n <div class="wrapper">\n <div class="text">\n <div\n automation-id="tui-file__name"\n class="name"\n >\n {{ name }}\n </div>\n <div\n automation-id="tui-file__type"\n class="type"\n >\n {{ type }}\n </div>\n <div\n *ngIf="showSize && (fileSize$ | async) as fileSize"\n automation-id="tui-file__size"\n class="size"\n >\n {{ fileSize }}\n </div>\n </div>\n <div\n *ngIf="content$ | async as content"\n polymorpheus-outlet\n automation-id="tui-file__content"\n class="content"\n [content]="content"\n ></div>\n </div>\n <ng-container *ngIf="allowDelete">\n <button\n *ngIf="fileTexts$ | async as texts"\n automation-id="tui-file__remove"\n tuiIconButton\n type="button"\n size="xs"\n icon="tuiIconCloseLarge"\n appearance="icon"\n class="remove"\n [title]="texts.remove"\n [class.remove_mobile]="isMobile"\n (click.prevent)="onRemoveClick()"\n ></button>\n </ng-container>\n</ng-template>\n',styles:[":host{position:relative;display:flex;font:var(--tui-font-text-m);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.link:hover{background-color:var(--tui-base-02)}.preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:rgba(0,0,0,.24)}.preview_big{width:4rem;height:4rem;margin-right:1rem}.preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#333;opacity:.08}.image{max-width:100%;max-height:100%}.loader{position:absolute;top:0;left:0;width:100%;height:100%}.icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.icon_error{color:var(--tui-error-fill)}.icon_deleted{color:var(--tui-base-06)}.remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.remove:focus,.remove_mobile{opacity:1}.wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.text{display:flex}.size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.type{flex-shrink:0}.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]}),g(0,t.Inject(i.TUI_IS_MOBILE)),g(1,t.Inject(n.DomSanitizer)),g(2,t.Inject(r.TUI_FILE_TEXTS)),g(3,t.Inject(r.TUI_DIGITAL_INFORMATION_UNITS))],e)}(),b=function(e){function n(n,i,r,o,a,l){var u=e.call(this,n,i)||this;return u.isMobile=r,u.inputFileTexts$=o,u.mode$=a,u.units$=l,u.dataTransfer=null,u.link="",u.label="",u.accept="",u.multiple=!1,u.size="m",u.showSize=!0,u.maxFileSize=3e7,u.loadingFiles=[],u.rejectedFiles=[],u.rejectedFilesChange=new t.EventEmitter,u}var p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),p=n,Object.defineProperty(n.prototype,"nativeFocusableElement",{get:function(){return this.input?this.input.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focused",{get:function(){return i.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"computedLink$",{get:function(){return this.computeLink$(this.fileDragged,this.multiple,this.link)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"computedLabel$",{get:function(){return this.computeLabel$(this.isMobile,this.fileDragged,this.multiple,this.label)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fileDragged",{get:function(){return!!this.dataTransfer&&-1!==Array.prototype.indexOf.call(this.dataTransfer.types,"Files")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"acceptArray",{get:function(){return this.getAcceptArray(this.accept)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"arrayValue",{get:function(){return this.getValueArray(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyFiles",{get:function(){return this.getReadyFiles(this.arrayValue,this.loadingFiles)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"computedLoading",{get:function(){return this.getLoadingFiles(this.arrayValue,this.loadingFiles)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasFiles",{get:function(){return!!this.rejectedFiles.length||!!this.arrayValue.length},enumerable:!0,configurable:!0}),n.prototype.onHovered=function(e){this.updateHovered(e)},n.prototype.onFocused=function(e){this.updateFocused(e)},n.prototype.onPressed=function(e){this.updatePressed(e)},n.prototype.onFilesSelected=function(e,t,n){this.processSelectedFiles(e.files,t,n),e.value=""},n.prototype.onDropped=function(e,t,n){this.processSelectedFiles(e.files,t,n)},n.prototype.onDragOver=function(e){this.dataTransfer=e},n.prototype.removeFile=function(e){this.updateValue(this.multiple?this.arrayValue.filter((function(t){return t!==e})):null)},n.prototype.removeRejectedFile=function(e){this.updateRejectedFiles(this.rejectedFiles.filter((function(t){return t!==e})))},n.prototype.getAppearance=function(e){return null===e?"":"outline"},n.prototype.computeLink$=function(e,t,n){return e?a.of(""):this.inputFileTexts$.pipe(l.map((function(e){return t&&""===n?e.defaultLinkMultiple:n||e.defaultLinkSingle})))},n.prototype.computeLabel$=function(e,t,n,i){return e?a.of(""):t?this.inputFileTexts$.pipe(l.map((function(e){return n?e.dropMultiple:e.drop}))):this.inputFileTexts$.pipe(l.map((function(e){return n&&""===i?e.defaultLabelMultiple:i||e.defaultLabelSingle})))},n.prototype.getValueArray=function(e){return e?e instanceof Array?e:[e]:i.EMPTY_ARRAY},n.prototype.getReadyFiles=function(e,t){return e.filter((function(e){return!t.includes(e)}))},n.prototype.getLoadingFiles=function(e,t){return t.filter((function(t){return e.includes(t)}))},n.prototype.getAcceptArray=function(e){return e.toLowerCase().split(",").map((function(e){return e.trim()}))},n.prototype.processSelectedFiles=function(e,t,n){var i=this;if(null!==e&&0!==e.length){var r=this.multiple?Array.from(e):[e[0]],a=r.filter((function(e){return e.size>i.maxFileSize})),l=r.filter((function(e){return!i.isFormatAcceptable(e)&&!a.includes(e)})),u=r.filter((function(e){return!a.includes(e)&&!l.includes(e)}));this.updateRejectedFiles(y(a.map((function(e){return{name:e.name,type:e.type,size:e.size,content:t.maxSizeRejectionReason+o.formatSize(n,i.maxFileSize)}})),l.map((function(e){return{name:e.name,type:e.type,size:e.size,content:t.formatRejectionReason}})))),this.updateValue(this.multiple?y(this.arrayValue,u):u[0]||null)}},n.prototype.isFormatAcceptable=function(e){if(!this.accept)return!0;var t="."+(e.name.split(".").pop()||"").toLowerCase();return this.acceptArray.some((function(n){return n===t||n===e.type||"*"===n.split("/")[1]&&e.type.split("/")[0]===n.split("/")[0]}))},n.prototype.updateRejectedFiles=function(e){this.rejectedFiles=e,this.rejectedFilesChange.emit(e)},n.ctorParameters=function(){return[{type:u.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[u.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_INPUT_FILE_TEXTS]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[s.TUI_MODE]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_DIGITAL_INFORMATION_UNITS]}]}]},d([t.Input(),i.tuiDefaultProp()],n.prototype,"link",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"label",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"accept",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"multiple",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"size",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"showSize",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"maxFileSize",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"loadingFiles",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"rejectedFiles",void 0),d([t.Output()],n.prototype,"rejectedFilesChange",void 0),d([t.ViewChild("input")],n.prototype,"input",void 0),d([i.tuiPure],n.prototype,"computeLink$",null),d([i.tuiPure],n.prototype,"computeLabel$",null),d([i.tuiPure],n.prototype,"getValueArray",null),d([i.tuiPure],n.prototype,"getReadyFiles",null),d([i.tuiPure],n.prototype,"getLoadingFiles",null),d([i.tuiPure],n.prototype,"getAcceptArray",null),n=p=d([t.Component({selector:"tui-input-file",template:'<tui-wrapper\n *ngIf="multiple || !value"\n class="wrapper"\n [class.wrapper_mobile]="isMobile"\n [class.wrapper_has-files]="hasFiles"\n [appearance]="getAppearance(mode$ | async)"\n [focused]="computedFocused"\n [hovered]="computedHovered || fileDragged"\n [pressed]="computedPressed"\n [readOnly]="readOnly"\n [disabled]="computedDisabled"\n>\n <label\n *ngIf="units$ | async as units"\n automation-id="tui-input-file__label"\n >\n <a tuiLink>\n <span\n polymorpheus-outlet\n class="inline"\n [content]="computedLink$ | async"\n ></span>\n </a>\n <ng-container *ngIf="computedLabel$ | async as computedLabel">\n <span>&nbsp;</span>\n <span\n polymorpheus-outlet\n class="inline"\n [content]="computedLabel"\n ></span>\n </ng-container>\n <ng-container *ngIf="!readOnly && !computedDisabled">\n <input\n *ngIf="inputFileTexts$ | async as texts"\n #input\n type="file"\n tuiPreventDefault="mousedown"\n class="native"\n [id]="id"\n [accept]="accept"\n [multiple]="multiple"\n [tuiFocusable]="focusable"\n (change)="onFilesSelected(input, texts, units)"\n (tuiHoveredChange)="onHovered($event)"\n (tuiFocusedChange)="onFocused($event)"\n (tuiPressedChange)="onPressed($event)"\n (tuiDroppableDropped)="onDropped($event, texts, units)"\n (tuiDroppableDragOverChange)="onDragOver($event)"\n />\n </ng-container>\n </label>\n</tui-wrapper>\n\n<section\n *tuiLet="mode$ | async as mode"\n tuiGroup\n orientation="vertical"\n class="files"\n [collapsed]="true"\n>\n <tui-file\n *ngFor="let file of rejectedFiles"\n automation-id="tui-input-file__error"\n state="error"\n [attr.data-mode]="mode"\n [showSize]="showSize"\n [allowDelete]="interactive"\n [size]="size"\n [file]="file"\n (fileRemoved)="removeRejectedFile(file)"\n ></tui-file>\n <tui-file\n *ngFor="let file of computedLoading"\n automation-id="tui-input-file__loading"\n state="loading"\n [attr.data-mode]="mode"\n [showSize]="showSize"\n [allowDelete]="interactive"\n [size]="size"\n [file]="file"\n (fileRemoved)="removeFile(file)"\n ></tui-file>\n <tui-file\n *ngFor="let file of readyFiles"\n automation-id="tui-input-file__file"\n [attr.data-mode]="mode"\n [showSize]="showSize"\n [allowDelete]="interactive"\n [size]="size"\n [file]="file"\n (fileRemoved)="removeFile(file)"\n ></tui-file>\n</section>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[s.MODE_PROVIDER,{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return p}))}],styles:[":host{display:block;font:var(--tui-font-text-m);word-wrap:break-word;color:var(--tui-text-02)}.native{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.native::-webkit-file-upload-button{display:none}.inline{display:inline}.wrapper{display:flex;flex:1;justify-content:center;align-items:center;min-height:var(--tui-height-l);border-radius:var(--tui-radius-m);padding:1rem .5rem;box-sizing:border-box}.wrapper:after{border:1px dashed;color:var(--tui-link)}.wrapper_mobile:after{border-style:solid}.wrapper_has-files{margin-bottom:.5rem}.wrapper[data-state=hovered]{background:var(--tui-secondary)}.wrapper[data-state=hovered]:after{color:var(--tui-link-hover)}.wrapper[data-state=pressed]{background:var(--tui-secondary-hover)}.wrapper[data-state=readonly]{pointer-events:none}.wrapper[data-state=readonly]:after{color:var(--tui-text-03)}.wrapper[data-state=disabled]{opacity:var(--tui-disabled-opacity);pointer-events:none}.wrapper[data-state=disabled]:after{color:var(--tui-text-03)}.wrapper._focused:after{border-style:solid;border-width:2px;color:var(--tui-focus)}.files{display:flex}"]}),g(0,t.Optional()),g(0,t.Self()),g(0,t.Inject(u.NgControl)),g(1,t.Inject(t.ChangeDetectorRef)),g(2,t.Inject(i.TUI_IS_MOBILE)),g(3,t.Inject(r.TUI_INPUT_FILE_TEXTS)),g(4,t.Inject(s.TUI_MODE)),g(5,t.Inject(r.TUI_DIGITAL_INFORMATION_UNITS))],n)}(i.AbstractTuiNullableControl),v=function(){function e(){}return e=d([t.NgModule({imports:[p.CommonModule,c.PolymorpheusModule,i.TuiLetModule,i.TuiFocusedModule,i.TuiFocusVisibleModule,i.TuiPressedModule,i.TuiHoveredModule,i.TuiFocusableModule,i.TuiDroppableModule,s.TuiWrapperModule,s.TuiSvgModule,s.TuiLinkModule,s.TuiLoaderModule,s.TuiButtonModule,i.TuiPreventDefaultModule,s.TuiGroupModule],declarations:[h,b],exports:[b]})],e)}();e.TuiFileOldComponent=h,e.TuiInputFileComponent=b,e.TuiInputFileModule=v,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/platform-browser"),require("@taiga-ui/cdk"),require("@taiga-ui/kit/tokens"),require("@taiga-ui/kit/utils/files"),require("rxjs"),require("rxjs/operators"),require("@angular/forms"),require("@taiga-ui/core"),require("@angular/common"),require("@tinkoff/ng-polymorpheus")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/input-file",["exports","@angular/core","@angular/platform-browser","@taiga-ui/cdk","@taiga-ui/kit/tokens","@taiga-ui/kit/utils/files","rxjs","rxjs/operators","@angular/forms","@taiga-ui/core","@angular/common","@tinkoff/ng-polymorpheus"],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["input-file"]={}),e.ng.core,e.ng.platformBrowser,e.cdk,e["taiga-ui"].kit.tokens,e["taiga-ui"].kit.utils.files,e.rxjs,e.rxjs.operators,e.ng.forms,e.core$1,e.ng.common,e.ngPolymorpheus)}(this,(function(e,t,n,i,r,o,a,l,u,s,p,c){"use strict";var f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function d(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function g(e,t){return function(n,i){t(n,i,e)}}Object.create;function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}Object.create;var h=function(){function e(e,n,i,r){this.isMobile=e,this.sanitizer=n,this.fileTexts$=i,this.units$=r,this.file={name:""},this.state="normal",this.size="m",this.allowDelete=!0,this.showSize=!0,this.fileRemoved=new t.EventEmitter,this.focused=!1}return Object.defineProperty(e.prototype,"preview",{get:function(){return this.isBig?this.createPreview(this.file,this.sanitizer):""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBig",{get:function(){return"l"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return"loading"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isError",{get:function(){return"error"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDeleted",{get:function(){return"deleted"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){if("normal"===this.state&&this.isBig)return"tuiIconDefaultDocLarge";switch(this.state){case"deleted":return"tuiIconTrashLarge";case"error":return"tuiIconAlertCircleLarge";default:return"tuiIconCheckCircleLarge"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"src",{get:function(){return this.file.src||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.file.name.split(".").slice(0,-1).join(".")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return"."+this.file.name.split(".").pop()||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content$",{get:function(){return this.calculateContent$(this.state,this.file,this.fileTexts$)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fileSize$",{get:function(){return this.calculateFileSize$(this.file,this.units$)},enumerable:!0,configurable:!0}),e.prototype.onRemoveClick=function(){this.fileRemoved.emit()},e.prototype.onFocusVisible=function(e){this.focused=e},e.prototype.calculateContent$=function(e,t,n){return"error"!==e||t.content?a.of(this.file.content||""):n.pipe(l.map((function(e){return e.loadingError})))},e.prototype.calculateFileSize$=function(e,t){return t.pipe(l.map((function(t){return o.formatSize(t,e.size)})))},e.prototype.createPreview=function(e,t){return e.src?e.src:e instanceof File&&e.type&&e.type.startsWith("image/")?t.bypassSecurityTrustUrl(URL.createObjectURL(e)):""},e.ctorParameters=function(){return[{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:n.DomSanitizer,decorators:[{type:t.Inject,args:[n.DomSanitizer]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_FILE_TEXTS]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_DIGITAL_INFORMATION_UNITS]}]}]},d([t.Input(),i.tuiDefaultProp()],e.prototype,"file",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"state",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"size",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"allowDelete",void 0),d([t.Input(),i.tuiDefaultProp()],e.prototype,"showSize",void 0),d([t.Output()],e.prototype,"fileRemoved",void 0),d([t.HostBinding("class._focused")],e.prototype,"focused",void 0),d([t.HostBinding("class._link")],e.prototype,"src",null),d([i.tuiPure],e.prototype,"calculateContent$",null),d([i.tuiPure],e.prototype,"calculateFileSize$",null),d([i.tuiPure],e.prototype,"createPreview",null),e=d([t.Component({selector:"tui-file",changeDetection:t.ChangeDetectionStrategy.OnPush,template:'<ng-container *ngIf="!src; else withLink">\n <ng-container [ngTemplateOutlet]="fileInfoTemplate"></ng-container>\n</ng-container>\n\n<ng-template #withLink>\n <a\n rel="noreferrer noopener"\n target="_blank"\n class="t-link"\n [href]="src"\n (tuiFocusVisibleChange)="onFocusVisible($event)"\n >\n <ng-container [ngTemplateOutlet]="fileInfoTemplate"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div\n class="t-preview"\n [class.t-preview_big]="isBig"\n >\n <img\n *ngIf="preview && (fileTexts$ | async) as texts; else loader"\n automation-id="tui-file__preview"\n class="t-image"\n [alt]="texts.preview"\n [src]="preview"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf="isLoading; else svg"\n automation-id="tui-file__loader"\n class="t-loader"\n [inheritColor]="isBig"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n automation-id="tui-file__icon"\n class="t-icon"\n [class.t-icon_deleted]="isDeleted"\n [class.t-icon_error]="isError"\n [src]="icon"\n ></tui-svg>\n </ng-template>\n </div>\n <div class="t-wrapper">\n <div class="t-text">\n <div\n automation-id="tui-file__name"\n class="t-name"\n >\n {{ name }}\n </div>\n <div\n automation-id="tui-file__type"\n class="t-type"\n >\n {{ type }}\n </div>\n <div\n *ngIf="showSize && (fileSize$ | async) as fileSize"\n automation-id="tui-file__size"\n class="t-size"\n >\n {{ fileSize }}\n </div>\n </div>\n <div\n *ngIf="content$ | async as content"\n polymorpheus-outlet\n automation-id="tui-file__content"\n class="t-content"\n [content]="content"\n ></div>\n </div>\n <ng-container *ngIf="allowDelete">\n <button\n *ngIf="fileTexts$ | async as texts"\n automation-id="tui-file__remove"\n tuiIconButton\n type="button"\n size="xs"\n icon="tuiIconCloseLarge"\n appearance="icon"\n class="t-remove"\n [title]="texts.remove"\n [class.t-remove_mobile]="isMobile"\n (click.prevent)="onRemoveClick()"\n ></button>\n </ng-container>\n</ng-template>\n',styles:[":host{position:relative;display:flex;font:var(--tui-font-text-m);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .t-remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.t-link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.t-link:hover{background-color:var(--tui-base-02)}.t-preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:rgba(0,0,0,.24)}.t-preview_big{width:4rem;height:4rem;margin-right:1rem}.t-preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#333;opacity:.08}.t-image{max-width:100%;max-height:100%}.t-loader{position:absolute;top:0;left:0;width:100%;height:100%}.t-icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.t-icon_error{color:var(--tui-error-fill)}.t-icon_deleted{color:var(--tui-base-06)}.t-remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.t-remove:focus,.t-remove_mobile{opacity:1}.t-wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.t-text{display:flex}.t-size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.t-type{flex-shrink:0}.t-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]}),g(0,t.Inject(i.TUI_IS_MOBILE)),g(1,t.Inject(n.DomSanitizer)),g(2,t.Inject(r.TUI_FILE_TEXTS)),g(3,t.Inject(r.TUI_DIGITAL_INFORMATION_UNITS))],e)}(),b=function(e){function n(n,i,r,o,a,l){var u=e.call(this,n,i)||this;return u.isMobile=r,u.inputFileTexts$=o,u.mode$=a,u.units$=l,u.dataTransfer=null,u.link="",u.label="",u.accept="",u.multiple=!1,u.size="m",u.showSize=!0,u.maxFileSize=3e7,u.loadingFiles=[],u.rejectedFiles=[],u.rejectedFilesChange=new t.EventEmitter,u}var p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),p=n,Object.defineProperty(n.prototype,"nativeFocusableElement",{get:function(){return this.input?this.input.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"focused",{get:function(){return i.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"computedLink$",{get:function(){return this.computeLink$(this.fileDragged,this.multiple,this.link)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"computedLabel$",{get:function(){return this.computeLabel$(this.isMobile,this.fileDragged,this.multiple,this.label)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fileDragged",{get:function(){return!!this.dataTransfer&&-1!==Array.prototype.indexOf.call(this.dataTransfer.types,"Files")},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"acceptArray",{get:function(){return this.getAcceptArray(this.accept)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"arrayValue",{get:function(){return this.getValueArray(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyFiles",{get:function(){return this.getReadyFiles(this.arrayValue,this.loadingFiles)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"computedLoading",{get:function(){return this.getLoadingFiles(this.arrayValue,this.loadingFiles)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasFiles",{get:function(){return!!this.rejectedFiles.length||!!this.arrayValue.length},enumerable:!0,configurable:!0}),n.prototype.onHovered=function(e){this.updateHovered(e)},n.prototype.onFocused=function(e){this.updateFocused(e)},n.prototype.onPressed=function(e){this.updatePressed(e)},n.prototype.onFilesSelected=function(e,t,n){this.processSelectedFiles(e.files,t,n),e.value=""},n.prototype.onDropped=function(e,t,n){this.processSelectedFiles(e.files,t,n)},n.prototype.onDragOver=function(e){this.dataTransfer=e},n.prototype.removeFile=function(e){this.updateValue(this.multiple?this.arrayValue.filter((function(t){return t!==e})):null)},n.prototype.removeRejectedFile=function(e){this.updateRejectedFiles(this.rejectedFiles.filter((function(t){return t!==e})))},n.prototype.getAppearance=function(e){return null===e?"":"outline"},n.prototype.computeLink$=function(e,t,n){return e?a.of(""):this.inputFileTexts$.pipe(l.map((function(e){return t&&""===n?e.defaultLinkMultiple:n||e.defaultLinkSingle})))},n.prototype.computeLabel$=function(e,t,n,i){return e?a.of(""):t?this.inputFileTexts$.pipe(l.map((function(e){return n?e.dropMultiple:e.drop}))):this.inputFileTexts$.pipe(l.map((function(e){return n&&""===i?e.defaultLabelMultiple:i||e.defaultLabelSingle})))},n.prototype.getValueArray=function(e){return e?e instanceof Array?e:[e]:i.EMPTY_ARRAY},n.prototype.getReadyFiles=function(e,t){return e.filter((function(e){return!t.includes(e)}))},n.prototype.getLoadingFiles=function(e,t){return t.filter((function(t){return e.includes(t)}))},n.prototype.getAcceptArray=function(e){return e.toLowerCase().split(",").map((function(e){return e.trim()}))},n.prototype.processSelectedFiles=function(e,t,n){var i=this;if(null!==e&&0!==e.length){var r=this.multiple?Array.from(e):[e[0]],a=r.filter((function(e){return e.size>i.maxFileSize})),l=r.filter((function(e){return!i.isFormatAcceptable(e)&&!a.includes(e)})),u=r.filter((function(e){return!a.includes(e)&&!l.includes(e)}));this.updateRejectedFiles(y(a.map((function(e){return{name:e.name,type:e.type,size:e.size,content:t.maxSizeRejectionReason+o.formatSize(n,i.maxFileSize)}})),l.map((function(e){return{name:e.name,type:e.type,size:e.size,content:t.formatRejectionReason}})))),this.updateValue(this.multiple?y(this.arrayValue,u):u[0]||null)}},n.prototype.isFormatAcceptable=function(e){if(!this.accept)return!0;var t="."+(e.name.split(".").pop()||"").toLowerCase();return this.acceptArray.some((function(n){return n===t||n===e.type||"*"===n.split("/")[1]&&e.type.split("/")[0]===n.split("/")[0]}))},n.prototype.updateRejectedFiles=function(e){this.rejectedFiles=e,this.rejectedFilesChange.emit(e)},n.ctorParameters=function(){return[{type:u.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[u.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:Boolean,decorators:[{type:t.Inject,args:[i.TUI_IS_MOBILE]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_INPUT_FILE_TEXTS]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[s.TUI_MODE]}]},{type:a.Observable,decorators:[{type:t.Inject,args:[r.TUI_DIGITAL_INFORMATION_UNITS]}]}]},d([t.Input(),i.tuiDefaultProp()],n.prototype,"link",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"label",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"accept",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"multiple",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"size",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"showSize",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"maxFileSize",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"loadingFiles",void 0),d([t.Input(),i.tuiDefaultProp()],n.prototype,"rejectedFiles",void 0),d([t.Output()],n.prototype,"rejectedFilesChange",void 0),d([t.ViewChild("input")],n.prototype,"input",void 0),d([i.tuiPure],n.prototype,"computeLink$",null),d([i.tuiPure],n.prototype,"computeLabel$",null),d([i.tuiPure],n.prototype,"getValueArray",null),d([i.tuiPure],n.prototype,"getReadyFiles",null),d([i.tuiPure],n.prototype,"getLoadingFiles",null),d([i.tuiPure],n.prototype,"getAcceptArray",null),n=p=d([t.Component({selector:"tui-input-file",template:'<tui-wrapper\n *ngIf="multiple || !value"\n class="t-wrapper"\n [class.t-wrapper_mobile]="isMobile"\n [class.t-wrapper_has-files]="hasFiles"\n [appearance]="getAppearance(mode$ | async)"\n [focused]="computedFocused"\n [hovered]="computedHovered || fileDragged"\n [pressed]="computedPressed"\n [readOnly]="readOnly"\n [disabled]="computedDisabled"\n>\n <label\n *ngIf="units$ | async as units"\n automation-id="tui-input-file__label"\n >\n <a tuiLink>\n <span\n polymorpheus-outlet\n class="t-inline"\n [content]="computedLink$ | async"\n ></span>\n </a>\n <ng-container *ngIf="computedLabel$ | async as computedLabel">\n <span>&nbsp;</span>\n <span\n polymorpheus-outlet\n class="t-inline"\n [content]="computedLabel"\n ></span>\n </ng-container>\n <ng-container *ngIf="!readOnly && !computedDisabled">\n <input\n *ngIf="inputFileTexts$ | async as texts"\n #input\n type="file"\n tuiPreventDefault="mousedown"\n class="t-native"\n [id]="id"\n [accept]="accept"\n [multiple]="multiple"\n [tuiFocusable]="focusable"\n (change)="onFilesSelected(input, texts, units)"\n (tuiHoveredChange)="onHovered($event)"\n (tuiFocusedChange)="onFocused($event)"\n (tuiPressedChange)="onPressed($event)"\n (tuiDroppableDropped)="onDropped($event, texts, units)"\n (tuiDroppableDragOverChange)="onDragOver($event)"\n />\n </ng-container>\n </label>\n</tui-wrapper>\n\n<section\n *tuiLet="mode$ | async as mode"\n tuiGroup\n orientation="vertical"\n class="t-files"\n [collapsed]="true"\n>\n <tui-file\n *ngFor="let file of rejectedFiles"\n automation-id="tui-input-file__error"\n state="error"\n [attr.data-mode]="mode"\n [showSize]="showSize"\n [allowDelete]="interactive"\n [size]="size"\n [file]="file"\n (fileRemoved)="removeRejectedFile(file)"\n ></tui-file>\n <tui-file\n *ngFor="let file of computedLoading"\n automation-id="tui-input-file__loading"\n state="loading"\n [attr.data-mode]="mode"\n [showSize]="showSize"\n [allowDelete]="interactive"\n [size]="size"\n [file]="file"\n (fileRemoved)="removeFile(file)"\n ></tui-file>\n <tui-file\n *ngFor="let file of readyFiles"\n automation-id="tui-input-file__file"\n [attr.data-mode]="mode"\n [showSize]="showSize"\n [allowDelete]="interactive"\n [size]="size"\n [file]="file"\n (fileRemoved)="removeFile(file)"\n ></tui-file>\n</section>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[s.MODE_PROVIDER,{provide:i.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return p}))}],styles:[":host{display:block;font:var(--tui-font-text-m);word-wrap:break-word;color:var(--tui-text-02)}.t-native{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native::-webkit-file-upload-button{display:none}.t-inline{display:inline}.t-wrapper{display:flex;flex:1;justify-content:center;align-items:center;min-height:var(--tui-height-l);border-radius:var(--tui-radius-m);padding:1rem .5rem;box-sizing:border-box}.t-wrapper:after{border:1px dashed;color:var(--tui-link)}.t-wrapper_mobile:after{border-style:solid}.t-wrapper_has-files{margin-bottom:.5rem}.t-wrapper[data-state=hovered]{background:var(--tui-secondary)}.t-wrapper[data-state=hovered]:after{color:var(--tui-link-hover)}.t-wrapper[data-state=pressed]{background:var(--tui-secondary-hover)}.t-wrapper[data-state=readonly]{pointer-events:none}.t-wrapper[data-state=readonly]:after{color:var(--tui-text-03)}.t-wrapper[data-state=disabled]{opacity:var(--tui-disabled-opacity);pointer-events:none}.t-wrapper[data-state=disabled]:after{color:var(--tui-text-03)}.t-wrapper._focused:after{border-style:solid;border-width:2px;color:var(--tui-focus)}.t-files{display:flex}"]}),g(0,t.Optional()),g(0,t.Self()),g(0,t.Inject(u.NgControl)),g(1,t.Inject(t.ChangeDetectorRef)),g(2,t.Inject(i.TUI_IS_MOBILE)),g(3,t.Inject(r.TUI_INPUT_FILE_TEXTS)),g(4,t.Inject(s.TUI_MODE)),g(5,t.Inject(r.TUI_DIGITAL_INFORMATION_UNITS))],n)}(i.AbstractTuiNullableControl),v=function(){function e(){}return e=d([t.NgModule({imports:[p.CommonModule,c.PolymorpheusModule,i.TuiLetModule,i.TuiFocusedModule,i.TuiFocusVisibleModule,i.TuiPressedModule,i.TuiHoveredModule,i.TuiFocusableModule,i.TuiDroppableModule,s.TuiWrapperModule,s.TuiSvgModule,s.TuiLinkModule,s.TuiLoaderModule,s.TuiButtonModule,i.TuiPreventDefaultModule,s.TuiGroupModule],declarations:[h,b],exports:[b]})],e)}();e.TuiFileOldComponent=h,e.TuiInputFileComponent=b,e.TuiInputFileModule=v,Object.defineProperty(e,"__esModule",{value:!0})}));
2
2
  //# sourceMappingURL=taiga-ui-kit-components-input-file.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-file/file/file.component.ts","ng://@taiga-ui/kit/components/input-file/input-file.component.ts","ng://@taiga-ui/kit/components/input-file/input-file.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","create","__read","o","n","m","Symbol","iterator","e","ar","next","done","push","value","error","__spread","concat","TuiFileOldComponent","isMobile","sanitizer","fileTexts$","units$","this","file","name","state","size","allowDelete","showSize","fileRemoved","EventEmitter","focused","isBig","createPreview","src","split","slice","join","pop","calculateContent$","calculateFileSize$","onRemoveClick","emit","onFocusVisible","focusVisible","content","of","pipe","map","texts","loadingError","units","formatSize","File","type","startsWith","bypassSecurityTrustUrl","URL","createObjectURL","Inject","args","TUI_IS_MOBILE","DomSanitizer","Observable","TUI_FILE_TEXTS","TUI_DIGITAL_INFORMATION_UNITS","Input","tuiDefaultProp","Output","HostBinding","tuiPure","Component","selector","changeDetection","ChangeDetectionStrategy","OnPush","template","TuiInputFileComponent","control","changeDetectorRef","inputFileTexts$","mode$","_this","_super","dataTransfer","link","label","accept","multiple","maxFileSize","loadingFiles","rejectedFiles","rejectedFilesChange","TypeError","String","__","constructor","__extends","input","nativeElement","isNativeFocused","nativeFocusableElement","computeLink$","fileDragged","computeLabel$","indexOf","types","getAcceptArray","getValueArray","getReadyFiles","arrayValue","getLoadingFiles","onHovered","hovered","updateHovered","onFocused","updateFocused","onPressed","pressed","updatePressed","onFilesSelected","processSelectedFiles","files","onDropped","event","onDragOver","removeFile","removedFile","updateValue","filter","removeRejectedFile","updateRejectedFiles","getAppearance","mode","defaultLinkMultiple","defaultLinkSingle","dropMultiple","drop","defaultLabelMultiple","defaultLabelSingle","EMPTY_ARRAY","loading","includes","toLowerCase","format","trim","newFiles","from","tooBigFiles","wrongFormatFiles","isFormatAcceptable","acceptedFiles","maxSizeRejectionReason","formatRejectionReason","extension","acceptArray","some","NgControl","Optional","Self","ChangeDetectorRef","TUI_INPUT_FILE_TEXTS","TUI_MODE","ViewChild","TuiInputFileComponent_1","providers","MODE_PROVIDER","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiNullableControl","TuiInputFileModule","NgModule","imports","CommonModule","PolymorpheusModule","TuiLetModule","TuiFocusedModule","TuiFocusVisibleModule","TuiPressedModule","TuiHoveredModule","TuiFocusableModule","TuiDroppableModule","TuiWrapperModule","TuiSvgModule","TuiLinkModule","TuiLoaderModule","TuiButtonModule","TuiPreventDefaultModule","TuiGroupModule","declarations","exports"],"mappings":"8lCAgBA,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,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,MAC3EN,EAAGC,IAkCrB,SAASS,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2Hd,EAAvHe,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOZ,OAAOiB,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,G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AAAA,iBACAC,EAAAA,iBACAC,EAAAA,mBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,gBACAC,EAAAA,gBACAC,EAAAA,wBACAC,EAAAA,gBAEJC,aAAc,CAAC9K,EAAqB4D,GACpCmH,QAAS,CAACnH,MAED+F","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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\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 var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(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, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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\n/** @deprecated */\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\n/** @deprecated */\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 __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\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\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\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 (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, 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, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {DomSanitizer, SafeValue} from '@angular/platform-browser';\nimport {TUI_IS_MOBILE, tuiDefaultProp, tuiPure} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {TuiFileState, TuiFileStateT} from '@taiga-ui/kit/enums';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: 'tui-file',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './file.template.html',\n styleUrls: ['./file.style.less'],\n})\nexport class TuiFileOldComponent {\n @Input()\n @tuiDefaultProp()\n file: TuiFileLike = {name: ''};\n\n @Input()\n @tuiDefaultProp()\n state: TuiFileStateT | TuiFileState = TuiFileState.Normal;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n allowDelete = true;\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Output()\n readonly fileRemoved = new EventEmitter<void>();\n\n @HostBinding('class._focused')\n focused = false;\n\n constructor(\n @Inject(TUI_IS_MOBILE) readonly isMobile: boolean,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(TUI_FILE_TEXTS)\n readonly fileTexts$: Observable<\n Record<'loadingError' | 'preview' | 'remove', string>\n >,\n @Inject(TUI_DIGITAL_INFORMATION_UNITS)\n private readonly units$: Observable<[string, string, string]>,\n ) {}\n\n get preview(): SafeValue {\n return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';\n }\n\n get isBig(): boolean {\n return this.size === 'l';\n }\n\n get isLoading(): boolean {\n return this.state === TuiFileState.Loading;\n }\n\n get isError(): boolean {\n return this.state === TuiFileState.Error;\n }\n\n get isDeleted(): boolean {\n return this.state === TuiFileState.Deleted;\n }\n\n get icon(): string {\n if (this.state === TuiFileState.Normal && this.isBig) {\n return 'tuiIconDefaultDocLarge';\n }\n\n switch (this.state) {\n case TuiFileState.Deleted:\n return 'tuiIconTrashLarge';\n case TuiFileState.Error:\n return 'tuiIconAlertCircleLarge';\n default:\n return 'tuiIconCheckCircleLarge';\n }\n }\n\n @HostBinding('class._link')\n get src(): string {\n return this.file.src || '';\n }\n\n get name(): string {\n return this.file.name.split('.').slice(0, -1).join('.');\n }\n\n get type(): string {\n return `.${this.file.name.split('.').pop()}` || '';\n }\n\n get content$(): Observable<PolymorpheusContent> {\n return this.calculateContent$(this.state, this.file, this.fileTexts$);\n }\n\n get fileSize$(): Observable<string | null> {\n return this.calculateFileSize$(this.file, this.units$);\n }\n\n onRemoveClick(): void {\n this.fileRemoved.emit();\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: keyof Record<TuiFileState, string> | string | TuiFileState,\n file: TuiFileLike,\n fileTexts$: Observable<Record<'loadingError' | 'preview' | 'remove', string>>,\n ): Observable<PolymorpheusContent> {\n return state === TuiFileState.Error && !file.content\n ? fileTexts$.pipe(map(texts => texts.loadingError))\n : of(this.file.content || '');\n }\n\n @tuiPure\n private calculateFileSize$(\n file: TuiFileLike,\n units$: Observable<[string, string, string]>,\n ): Observable<string | null> {\n return units$.pipe(map(units => formatSize(units, file.size)));\n }\n\n @tuiPure\n private createPreview(file: TuiFileLike, sanitizer: DomSanitizer): SafeValue {\n if (file.src) {\n return file.src;\n }\n\n // TODO: iframe warning\n if (file instanceof File && file.type && file.type.startsWith('image/')) {\n return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));\n }\n\n return '';\n }\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n EMPTY_ARRAY,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiAppearance,\n TuiBrightness,\n TuiSizeL,\n} from '@taiga-ui/core';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_INPUT_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst DEFAULT_MAX_SIZE = 30 * 1000 * 1000; // 30 MB\n\n// @dynamic\n@Component({\n selector: 'tui-input-file',\n templateUrl: './input-file.template.html',\n styleUrls: ['./input-file.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MODE_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputFileComponent),\n },\n ],\n})\nexport class TuiInputFileComponent\n extends AbstractTuiNullableControl<TuiFileLike | readonly TuiFileLike[]>\n implements TuiFocusableElementAccessor\n{\n private dataTransfer: DataTransfer | null = null;\n\n @Input()\n @tuiDefaultProp()\n link: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n label: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n accept = '';\n\n @Input()\n @tuiDefaultProp()\n multiple = false;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Input()\n @tuiDefaultProp()\n maxFileSize = DEFAULT_MAX_SIZE;\n\n @Input()\n @tuiDefaultProp()\n loadingFiles: readonly TuiFileLike[] = [];\n\n @Input()\n @tuiDefaultProp()\n rejectedFiles: readonly TuiFileLike[] = [];\n\n @Output()\n rejectedFilesChange = new EventEmitter<readonly TuiFileLike[]>();\n\n @ViewChild('input')\n readonly input?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_IS_MOBILE)\n readonly isMobile: boolean,\n @Inject(TUI_INPUT_FILE_TEXTS)\n readonly inputFileTexts$: Observable<\n Record<\n | 'defaultLabelSingle'\n | 'defaultLabelMultiple'\n | 'defaultLinkSingle'\n | 'defaultLinkMultiple'\n | 'maxSizeRejectionReason'\n | 'formatRejectionReason'\n | 'drop'\n | 'dropMultiple',\n string\n >\n >,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_DIGITAL_INFORMATION_UNITS)\n readonly units$: Observable<[string, string, string]>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.input ? this.input.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get computedLink$(): Observable<PolymorpheusContent> {\n return this.computeLink$(this.fileDragged, this.multiple, this.link);\n }\n\n get computedLabel$(): Observable<PolymorpheusContent> {\n return this.computeLabel$(\n this.isMobile,\n this.fileDragged,\n this.multiple,\n this.label,\n );\n }\n\n // @bad TODO: 3.0 refactor after IE is dropped\n get fileDragged(): boolean {\n return (\n !!this.dataTransfer &&\n Array.prototype.indexOf.call(this.dataTransfer.types, 'Files') !== -1\n );\n }\n\n get acceptArray(): readonly string[] {\n return this.getAcceptArray(this.accept);\n }\n\n get arrayValue(): readonly TuiFileLike[] {\n return this.getValueArray(this.value);\n }\n\n get readyFiles(): readonly TuiFileLike[] {\n return this.getReadyFiles(this.arrayValue, this.loadingFiles);\n }\n\n get computedLoading(): readonly TuiFileLike[] {\n return this.getLoadingFiles(this.arrayValue, this.loadingFiles);\n }\n\n get hasFiles(): boolean {\n return !!this.rejectedFiles.length || !!this.arrayValue.length;\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n // TODO: refactor i18n messages\n onFilesSelected(\n input: HTMLInputElement,\n texts: Record<'maxSizeRejectionReason' | 'formatRejectionReason', string>,\n units: [string, string, string],\n ): void {\n this.processSelectedFiles(input.files, texts, units);\n input.value = '';\n }\n\n onDropped(\n event: DataTransfer,\n texts: Record<'maxSizeRejectionReason' | 'formatRejectionReason', string>,\n units: [string, string, string],\n ): void {\n this.processSelectedFiles(event.files, texts, units);\n }\n\n onDragOver(dataTransfer: DataTransfer | null): void {\n this.dataTransfer = dataTransfer;\n }\n\n removeFile(removedFile: TuiFileLike): void {\n this.updateValue(\n this.multiple ? this.arrayValue.filter(file => file !== removedFile) : null,\n );\n }\n\n removeRejectedFile(removedFile: TuiFileLike): void {\n this.updateRejectedFiles(this.rejectedFiles.filter(file => file !== removedFile));\n }\n\n getAppearance(mode: null | unknown): string {\n return mode === null ? '' : TuiAppearance.Outline;\n }\n\n @tuiPure\n private computeLink$(\n fileDragged: boolean,\n multiple: boolean,\n link: PolymorpheusContent,\n ): Observable<PolymorpheusContent> {\n if (fileDragged) {\n return of('');\n }\n\n return this.inputFileTexts$.pipe(\n map(texts =>\n multiple && link === ''\n ? texts.defaultLinkMultiple\n : link || texts.defaultLinkSingle,\n ),\n );\n }\n\n @tuiPure\n private computeLabel$(\n isMobile: boolean,\n fileDragged: boolean,\n multiple: boolean,\n label: PolymorpheusContent,\n ): Observable<PolymorpheusContent> {\n if (isMobile) {\n return of('');\n }\n\n if (fileDragged) {\n return this.inputFileTexts$.pipe(\n map(texts => (multiple ? texts.dropMultiple : texts.drop)),\n );\n }\n\n return this.inputFileTexts$.pipe(\n map(texts =>\n multiple && label === ''\n ? texts.defaultLabelMultiple\n : label || texts.defaultLabelSingle,\n ),\n );\n }\n\n @tuiPure\n private getValueArray(\n value: TuiFileLike | readonly TuiFileLike[] | null,\n ): readonly TuiFileLike[] {\n if (!value) {\n return EMPTY_ARRAY;\n }\n\n return value instanceof Array ? value : [value];\n }\n\n @tuiPure\n private getReadyFiles(\n value: readonly TuiFileLike[],\n loading: readonly TuiFileLike[],\n ): readonly TuiFileLike[] {\n return value.filter(file => !loading.includes(file));\n }\n\n @tuiPure\n private getLoadingFiles(\n value: readonly TuiFileLike[],\n loading: readonly TuiFileLike[],\n ): readonly TuiFileLike[] {\n return loading.filter(file => value.includes(file));\n }\n\n @tuiPure\n private getAcceptArray(accept: string): readonly string[] {\n return accept\n .toLowerCase()\n .split(',')\n .map(format => format.trim());\n }\n\n private processSelectedFiles(\n files: FileList | null,\n texts: Record<'maxSizeRejectionReason' | 'formatRejectionReason', string>,\n units: [string, string, string],\n ): void {\n // IE11 after selecting a file through the open dialog generates a second event passing an empty FileList.\n if (files === null || files.length === 0) {\n return;\n }\n\n const newFiles = this.multiple ? Array.from(files) : [files[0]];\n const tooBigFiles = newFiles.filter(file => file.size > this.maxFileSize);\n const wrongFormatFiles = newFiles.filter(\n file => !this.isFormatAcceptable(file) && !tooBigFiles.includes(file),\n );\n const acceptedFiles = newFiles.filter(\n file => !tooBigFiles.includes(file) && !wrongFormatFiles.includes(file),\n );\n\n this.updateRejectedFiles([\n ...tooBigFiles.map(file => ({\n name: file.name,\n type: file.type,\n size: file.size,\n content:\n texts.maxSizeRejectionReason + formatSize(units, this.maxFileSize),\n })),\n ...wrongFormatFiles.map(file => ({\n name: file.name,\n type: file.type,\n size: file.size,\n content: texts.formatRejectionReason,\n })),\n ]);\n this.updateValue(\n this.multiple\n ? [...this.arrayValue, ...acceptedFiles]\n : acceptedFiles[0] || null,\n );\n }\n\n private isFormatAcceptable(file: File): boolean {\n if (!this.accept) {\n return true;\n }\n\n const extension = `.${(file.name.split('.').pop() || '').toLowerCase()}`;\n\n return this.acceptArray.some(\n format =>\n format === extension ||\n format === file.type ||\n (format.split('/')[1] === '*' &&\n file.type.split('/')[0] === format.split('/')[0]),\n );\n }\n\n private updateRejectedFiles(rejectedFiles: readonly TuiFileLike[]): void {\n this.rejectedFiles = rejectedFiles;\n this.rejectedFilesChange.emit(rejectedFiles);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiDroppableModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiLetModule,\n TuiPressedModule,\n TuiPreventDefaultModule,\n} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiGroupModule,\n TuiLinkModule,\n TuiLoaderModule,\n TuiSvgModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFileOldComponent} from './file/file.component';\nimport {TuiInputFileComponent} from './input-file.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiPressedModule,\n TuiHoveredModule,\n TuiFocusableModule,\n TuiDroppableModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLinkModule,\n TuiLoaderModule,\n TuiButtonModule,\n TuiPreventDefaultModule,\n TuiGroupModule,\n ],\n declarations: [TuiFileOldComponent, TuiInputFileComponent],\n exports: [TuiInputFileComponent],\n})\nexport class TuiInputFileModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-file/file/file.component.ts","ng://@taiga-ui/kit/components/input-file/input-file.component.ts","ng://@taiga-ui/kit/components/input-file/input-file.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","create","__read","o","n","m","Symbol","iterator","e","ar","next","done","push","value","error","__spread","concat","TuiFileOldComponent","isMobile","sanitizer","fileTexts$","units$","this","file","name","state","size","allowDelete","showSize","fileRemoved","EventEmitter","focused","isBig","createPreview","src","split","slice","join","pop","calculateContent$","calculateFileSize$","onRemoveClick","emit","onFocusVisible","focusVisible","content","of","pipe","map","texts","loadingError","units","formatSize","File","type","startsWith","bypassSecurityTrustUrl","URL","createObjectURL","Inject","args","TUI_IS_MOBILE","DomSanitizer","Observable","TUI_FILE_TEXTS","TUI_DIGITAL_INFORMATION_UNITS","Input","tuiDefaultProp","Output","HostBinding","tuiPure","Component","selector","changeDetection","ChangeDetectionStrategy","OnPush","template","TuiInputFileComponent","control","changeDetectorRef","inputFileTexts$","mode$","_this","_super","dataTransfer","link","label","accept","multiple","maxFileSize","loadingFiles","rejectedFiles","rejectedFilesChange","TypeError","String","__","constructor","__extends","input","nativeElement","isNativeFocused","nativeFocusableElement","computeLink$","fileDragged","computeLabel$","indexOf","types","getAcceptArray","getValueArray","getReadyFiles","arrayValue","getLoadingFiles","onHovered","hovered","updateHovered","onFocused","updateFocused","onPressed","pressed","updatePressed","onFilesSelected","processSelectedFiles","files","onDropped","event","onDragOver","removeFile","removedFile","updateValue","filter","removeRejectedFile","updateRejectedFiles","getAppearance","mode","defaultLinkMultiple","defaultLinkSingle","dropMultiple","drop","defaultLabelMultiple","defaultLabelSingle","EMPTY_ARRAY","loading","includes","toLowerCase","format","trim","newFiles","from","tooBigFiles","wrongFormatFiles","isFormatAcceptable","acceptedFiles","maxSizeRejectionReason","formatRejectionReason","extension","acceptArray","some","NgControl","Optional","Self","ChangeDetectorRef","TUI_INPUT_FILE_TEXTS","TUI_MODE","ViewChild","TuiInputFileComponent_1","providers","MODE_PROVIDER","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiNullableControl","TuiInputFileModule","NgModule","imports","CommonModule","PolymorpheusModule","TuiLetModule","TuiFocusedModule","TuiFocusVisibleModule","TuiPressedModule","TuiHoveredModule","TuiFocusableModule","TuiDroppableModule","TuiWrapperModule","TuiSvgModule","TuiLinkModule","TuiLoaderModule","TuiButtonModule","TuiPreventDefaultModule","TuiGroupModule","declarations","exports"],"mappings":"8lCAgBA,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,EAAOC,OAAOK,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,MAC3EN,EAAGC,IAkCrB,SAASS,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2Hd,EAAvHe,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOZ,OAAOiB,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAAStB,EAAIW,EAAWW,MAAIJ,GAAKH,EAAI,EAAIf,EAAEkB,GAAKH,EAAI,EAAIf,EAAEY,EAAQC,EAAKK,GAAKlB,EAAEY,EAAQC,KAASK,GAChJ,OAAOH,EAAI,GAAKG,GAAKhB,OAAOqB,eAAeX,EAAQC,EAAKK,GAAIA,EAGzD,SAASM,EAAQC,EAAYC,GAChC,OAAO,SAAUd,EAAQC,GAAOa,EAAUd,EAAQC,EAAKY,IA6C9BvB,OAAOyB,OA4B7B,SAASC,EAAOC,EAAGC,GACtB,IAAIC,EAAsB,mBAAXC,QAAyBH,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A,2CA2BDtF,EAAA,CADCsF,EAAAA,2CAYDtF,EAAA,CADCsF,EAAAA,2CASDtF,EAAA,CADCsF,EAAAA,6CASDtF,EAAA,CADCsF,EAAAA,4CAvPQO,EAAqBuF,EAAApL,EAAA,CAbjCuF,EAAAA,UAAU,CACPC,SAAU,iBACVI,SAAA,y6FAEAH,gBAAiBC,EAAAA,wBAAwBC,OACzC0F,UAAW,CACPC,EAAAA,cACA,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAN,kpCAqDjCtK,EAAA,EAAAgK,EAAAA,YACAhK,EAAA,EAAAiK,EAAAA,QACAjK,EAAA,EAAA6D,EAAAA,OAAOkG,EAAAA,YAEP/J,EAAA,EAAA6D,EAAAA,OAAOqG,EAAAA,oBAEPlK,EAAA,EAAA6D,EAAAA,OAAOE,EAAAA,gBAEP/D,EAAA,EAAA6D,EAAAA,OAAOsG,EAAAA,uBAcPnK,EAAA,EAAA6D,EAAAA,OAAOuG,EAAAA,WACPpK,EAAA,EAAA6D,EAAAA,OAAOM,EAAAA,iCAxEHY,IACD8F,EAAAA,yCCVZ,SAAAC,KAAiC,OAApBA,EAAkB5L,EAAA,CAtB9B6L,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,mBACAC,EAAAA,aACAC,EAAAA,iBACAC,EAAAA,sBACAC,EAAAA,iBACAC,EAAAA,iBACAC,EAAAA,mBACAC,EAAAA,mBACAC,EAAAA,iBACAC,EAAAA,aACAC,EAAAA,cACAC,EAAAA,gBACAC,EAAAA,gBACAC,EAAAA,wBACAC,EAAAA,gBAEJC,aAAc,CAAC9K,EAAqB4D,GACpCmH,QAAS,CAACnH,MAED+F","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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\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 var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(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, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, 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\n/** @deprecated */\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\n/** @deprecated */\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 __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\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\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\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 (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, 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, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {DomSanitizer, SafeValue} from '@angular/platform-browser';\nimport {TUI_IS_MOBILE, tuiDefaultProp, tuiPure} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {TuiFileState, TuiFileStateT} from '@taiga-ui/kit/enums';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: `tui-file`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: `./file.template.html`,\n styleUrls: [`./file.style.less`],\n})\nexport class TuiFileOldComponent {\n @Input()\n @tuiDefaultProp()\n file: TuiFileLike = {name: ``};\n\n @Input()\n @tuiDefaultProp()\n state: TuiFileStateT | TuiFileState = TuiFileState.Normal;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n allowDelete = true;\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Output()\n readonly fileRemoved = new EventEmitter<void>();\n\n @HostBinding(`class._focused`)\n focused = false;\n\n constructor(\n @Inject(TUI_IS_MOBILE) readonly isMobile: boolean,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(TUI_FILE_TEXTS)\n readonly fileTexts$: Observable<\n Record<'loadingError' | 'preview' | 'remove', string>\n >,\n @Inject(TUI_DIGITAL_INFORMATION_UNITS)\n private readonly units$: Observable<[string, string, string]>,\n ) {}\n\n get preview(): SafeValue {\n return this.isBig ? this.createPreview(this.file, this.sanitizer) : ``;\n }\n\n get isBig(): boolean {\n return this.size === `l`;\n }\n\n get isLoading(): boolean {\n return this.state === TuiFileState.Loading;\n }\n\n get isError(): boolean {\n return this.state === TuiFileState.Error;\n }\n\n get isDeleted(): boolean {\n return this.state === TuiFileState.Deleted;\n }\n\n get icon(): string {\n if (this.state === TuiFileState.Normal && this.isBig) {\n return `tuiIconDefaultDocLarge`;\n }\n\n switch (this.state) {\n case TuiFileState.Deleted:\n return `tuiIconTrashLarge`;\n case TuiFileState.Error:\n return `tuiIconAlertCircleLarge`;\n default:\n return `tuiIconCheckCircleLarge`;\n }\n }\n\n @HostBinding(`class._link`)\n get src(): string {\n return this.file.src || ``;\n }\n\n get name(): string {\n return this.file.name.split(`.`).slice(0, -1).join(`.`);\n }\n\n get type(): string {\n return `.${this.file.name.split(`.`).pop()}` || ``;\n }\n\n get content$(): Observable<PolymorpheusContent> {\n return this.calculateContent$(this.state, this.file, this.fileTexts$);\n }\n\n get fileSize$(): Observable<string | null> {\n return this.calculateFileSize$(this.file, this.units$);\n }\n\n onRemoveClick(): void {\n this.fileRemoved.emit();\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: keyof Record<TuiFileState, string> | string | TuiFileState,\n file: TuiFileLike,\n fileTexts$: Observable<Record<'loadingError' | 'preview' | 'remove', string>>,\n ): Observable<PolymorpheusContent> {\n return state === TuiFileState.Error && !file.content\n ? fileTexts$.pipe(map(texts => texts.loadingError))\n : of(this.file.content || ``);\n }\n\n @tuiPure\n private calculateFileSize$(\n file: TuiFileLike,\n units$: Observable<[string, string, string]>,\n ): Observable<string | null> {\n return units$.pipe(map(units => formatSize(units, file.size)));\n }\n\n @tuiPure\n private createPreview(file: TuiFileLike, sanitizer: DomSanitizer): SafeValue {\n if (file.src) {\n return file.src;\n }\n\n // TODO: iframe warning\n if (file instanceof File && file.type && file.type.startsWith(`image/`)) {\n return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));\n }\n\n return ``;\n }\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n EMPTY_ARRAY,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiAppearance,\n TuiBrightness,\n TuiSizeL,\n} from '@taiga-ui/core';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_INPUT_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst DEFAULT_MAX_SIZE = 30 * 1000 * 1000; // 30 MB\n\n// @dynamic\n@Component({\n selector: `tui-input-file`,\n templateUrl: `./input-file.template.html`,\n styleUrls: [`./input-file.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MODE_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputFileComponent),\n },\n ],\n})\nexport class TuiInputFileComponent\n extends AbstractTuiNullableControl<TuiFileLike | readonly TuiFileLike[]>\n implements TuiFocusableElementAccessor\n{\n private dataTransfer: DataTransfer | null = null;\n\n @Input()\n @tuiDefaultProp()\n link: PolymorpheusContent = ``;\n\n @Input()\n @tuiDefaultProp()\n label: PolymorpheusContent = ``;\n\n @Input()\n @tuiDefaultProp()\n accept = ``;\n\n @Input()\n @tuiDefaultProp()\n multiple = false;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Input()\n @tuiDefaultProp()\n maxFileSize = DEFAULT_MAX_SIZE;\n\n @Input()\n @tuiDefaultProp()\n loadingFiles: readonly TuiFileLike[] = [];\n\n @Input()\n @tuiDefaultProp()\n rejectedFiles: readonly TuiFileLike[] = [];\n\n @Output()\n rejectedFilesChange = new EventEmitter<readonly TuiFileLike[]>();\n\n @ViewChild(`input`)\n readonly input?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_IS_MOBILE)\n readonly isMobile: boolean,\n @Inject(TUI_INPUT_FILE_TEXTS)\n readonly inputFileTexts$: Observable<\n Record<\n | 'defaultLabelSingle'\n | 'defaultLabelMultiple'\n | 'defaultLinkSingle'\n | 'defaultLinkMultiple'\n | 'maxSizeRejectionReason'\n | 'formatRejectionReason'\n | 'drop'\n | 'dropMultiple',\n string\n >\n >,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_DIGITAL_INFORMATION_UNITS)\n readonly units$: Observable<[string, string, string]>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.input ? this.input.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get computedLink$(): Observable<PolymorpheusContent> {\n return this.computeLink$(this.fileDragged, this.multiple, this.link);\n }\n\n get computedLabel$(): Observable<PolymorpheusContent> {\n return this.computeLabel$(\n this.isMobile,\n this.fileDragged,\n this.multiple,\n this.label,\n );\n }\n\n // @bad TODO: 3.0 refactor after IE is dropped\n get fileDragged(): boolean {\n return (\n !!this.dataTransfer &&\n Array.prototype.indexOf.call(this.dataTransfer.types, `Files`) !== -1\n );\n }\n\n get acceptArray(): readonly string[] {\n return this.getAcceptArray(this.accept);\n }\n\n get arrayValue(): readonly TuiFileLike[] {\n return this.getValueArray(this.value);\n }\n\n get readyFiles(): readonly TuiFileLike[] {\n return this.getReadyFiles(this.arrayValue, this.loadingFiles);\n }\n\n get computedLoading(): readonly TuiFileLike[] {\n return this.getLoadingFiles(this.arrayValue, this.loadingFiles);\n }\n\n get hasFiles(): boolean {\n return !!this.rejectedFiles.length || !!this.arrayValue.length;\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n // TODO: refactor i18n messages\n onFilesSelected(\n input: HTMLInputElement,\n texts: Record<'maxSizeRejectionReason' | 'formatRejectionReason', string>,\n units: [string, string, string],\n ): void {\n this.processSelectedFiles(input.files, texts, units);\n input.value = ``;\n }\n\n onDropped(\n event: DataTransfer,\n texts: Record<'maxSizeRejectionReason' | 'formatRejectionReason', string>,\n units: [string, string, string],\n ): void {\n this.processSelectedFiles(event.files, texts, units);\n }\n\n onDragOver(dataTransfer: DataTransfer | null): void {\n this.dataTransfer = dataTransfer;\n }\n\n removeFile(removedFile: TuiFileLike): void {\n this.updateValue(\n this.multiple ? this.arrayValue.filter(file => file !== removedFile) : null,\n );\n }\n\n removeRejectedFile(removedFile: TuiFileLike): void {\n this.updateRejectedFiles(this.rejectedFiles.filter(file => file !== removedFile));\n }\n\n getAppearance(mode: null | unknown): string {\n return mode === null ? `` : TuiAppearance.Outline;\n }\n\n @tuiPure\n private computeLink$(\n fileDragged: boolean,\n multiple: boolean,\n link: PolymorpheusContent,\n ): Observable<PolymorpheusContent> {\n if (fileDragged) {\n return of(``);\n }\n\n return this.inputFileTexts$.pipe(\n map(texts =>\n multiple && link === ``\n ? texts.defaultLinkMultiple\n : link || texts.defaultLinkSingle,\n ),\n );\n }\n\n @tuiPure\n private computeLabel$(\n isMobile: boolean,\n fileDragged: boolean,\n multiple: boolean,\n label: PolymorpheusContent,\n ): Observable<PolymorpheusContent> {\n if (isMobile) {\n return of(``);\n }\n\n if (fileDragged) {\n return this.inputFileTexts$.pipe(\n map(texts => (multiple ? texts.dropMultiple : texts.drop)),\n );\n }\n\n return this.inputFileTexts$.pipe(\n map(texts =>\n multiple && label === ``\n ? texts.defaultLabelMultiple\n : label || texts.defaultLabelSingle,\n ),\n );\n }\n\n @tuiPure\n private getValueArray(\n value: TuiFileLike | readonly TuiFileLike[] | null,\n ): readonly TuiFileLike[] {\n if (!value) {\n return EMPTY_ARRAY;\n }\n\n return value instanceof Array ? value : [value];\n }\n\n @tuiPure\n private getReadyFiles(\n value: readonly TuiFileLike[],\n loading: readonly TuiFileLike[],\n ): readonly TuiFileLike[] {\n return value.filter(file => !loading.includes(file));\n }\n\n @tuiPure\n private getLoadingFiles(\n value: readonly TuiFileLike[],\n loading: readonly TuiFileLike[],\n ): readonly TuiFileLike[] {\n return loading.filter(file => value.includes(file));\n }\n\n @tuiPure\n private getAcceptArray(accept: string): readonly string[] {\n return accept\n .toLowerCase()\n .split(`,`)\n .map(format => format.trim());\n }\n\n private processSelectedFiles(\n files: FileList | null,\n texts: Record<'maxSizeRejectionReason' | 'formatRejectionReason', string>,\n units: [string, string, string],\n ): void {\n // IE11 after selecting a file through the open dialog generates a second event passing an empty FileList.\n if (files === null || files.length === 0) {\n return;\n }\n\n const newFiles = this.multiple ? Array.from(files) : [files[0]];\n const tooBigFiles = newFiles.filter(file => file.size > this.maxFileSize);\n const wrongFormatFiles = newFiles.filter(\n file => !this.isFormatAcceptable(file) && !tooBigFiles.includes(file),\n );\n const acceptedFiles = newFiles.filter(\n file => !tooBigFiles.includes(file) && !wrongFormatFiles.includes(file),\n );\n\n this.updateRejectedFiles([\n ...tooBigFiles.map(file => ({\n name: file.name,\n type: file.type,\n size: file.size,\n content:\n texts.maxSizeRejectionReason + formatSize(units, this.maxFileSize),\n })),\n ...wrongFormatFiles.map(file => ({\n name: file.name,\n type: file.type,\n size: file.size,\n content: texts.formatRejectionReason,\n })),\n ]);\n this.updateValue(\n this.multiple\n ? [...this.arrayValue, ...acceptedFiles]\n : acceptedFiles[0] || null,\n );\n }\n\n private isFormatAcceptable(file: File): boolean {\n if (!this.accept) {\n return true;\n }\n\n const extension = `.${(file.name.split(`.`).pop() || ``).toLowerCase()}`;\n\n return this.acceptArray.some(\n format =>\n format === extension ||\n format === file.type ||\n (format.split(`/`)[1] === `*` &&\n file.type.split(`/`)[0] === format.split(`/`)[0]),\n );\n }\n\n private updateRejectedFiles(rejectedFiles: readonly TuiFileLike[]): void {\n this.rejectedFiles = rejectedFiles;\n this.rejectedFilesChange.emit(rejectedFiles);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiDroppableModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiLetModule,\n TuiPressedModule,\n TuiPreventDefaultModule,\n} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiGroupModule,\n TuiLinkModule,\n TuiLoaderModule,\n TuiSvgModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFileOldComponent} from './file/file.component';\nimport {TuiInputFileComponent} from './input-file.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiPressedModule,\n TuiHoveredModule,\n TuiFocusableModule,\n TuiDroppableModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLinkModule,\n TuiLoaderModule,\n TuiButtonModule,\n TuiPreventDefaultModule,\n TuiGroupModule,\n ],\n declarations: [TuiFileOldComponent, TuiInputFileComponent],\n exports: [TuiInputFileComponent],\n})\nexport class TuiInputFileModule {}\n"]}
@@ -263,11 +263,11 @@
263
263
  _this.inputFileTexts$ = inputFileTexts$;
264
264
  _this.units$ = units$;
265
265
  _this.dataTransfer = null;
266
- _this.link = '';
267
- _this.label = '';
268
- _this.accept = '';
266
+ _this.link = "";
267
+ _this.label = "";
268
+ _this.accept = "";
269
269
  _this.multiple = false;
270
- _this.size = 'm';
270
+ _this.size = "m";
271
271
  _this.maxFileSize = DEFAULT_MAX_SIZE;
272
272
  _this.reject = new core.EventEmitter();
273
273
  return _this;
@@ -313,7 +313,7 @@
313
313
  Object.defineProperty(TuiInputFilesComponent.prototype, "fileDragged", {
314
314
  get: function () {
315
315
  var _a;
316
- return !!((_a = this.dataTransfer) === null || _a === void 0 ? void 0 : _a.types.includes('Files'));
316
+ return !!((_a = this.dataTransfer) === null || _a === void 0 ? void 0 : _a.types.includes("Files"));
317
317
  },
318
318
  enumerable: true,
319
319
  configurable: true
@@ -336,7 +336,7 @@
336
336
  };
337
337
  TuiInputFilesComponent.prototype.onFilesSelected = function (input, texts, units) {
338
338
  this.processSelectedFiles(input.files, texts, units);
339
- input.value = '';
339
+ input.value = "";
340
340
  };
341
341
  TuiInputFilesComponent.prototype.onDropped = function (event, texts, units) {
342
342
  this.processSelectedFiles(event.files, texts, units);
@@ -349,22 +349,22 @@
349
349
  };
350
350
  TuiInputFilesComponent.prototype.computeLink$ = function (fileDragged, multiple, link) {
351
351
  return fileDragged
352
- ? rxjs.of('')
352
+ ? rxjs.of("")
353
353
  : this.inputFileTexts$.pipe(operators.map(function (texts) {
354
- return multiple && link === ''
354
+ return multiple && link === ""
355
355
  ? texts.defaultLinkMultiple
356
356
  : link || texts.defaultLinkSingle;
357
357
  }));
358
358
  };
359
359
  TuiInputFilesComponent.prototype.computeLabel$ = function (isMobile, fileDragged, multiple, label) {
360
360
  if (isMobile) {
361
- return rxjs.of('');
361
+ return rxjs.of("");
362
362
  }
363
363
  if (fileDragged) {
364
364
  return this.inputFileTexts$.pipe(operators.map(function (texts) { return (multiple ? texts.dropMultiple : texts.drop); }));
365
365
  }
366
366
  return this.inputFileTexts$.pipe(operators.map(function (texts) {
367
- return multiple && label === ''
367
+ return multiple && label === ""
368
368
  ? texts.defaultLabelMultiple
369
369
  : label || texts.defaultLabelSingle;
370
370
  }));
@@ -406,12 +406,12 @@
406
406
  if (!this.accept) {
407
407
  return true;
408
408
  }
409
- var extension = "." + (file.name.split('.').pop() || '').toLowerCase();
409
+ var extension = "." + (file.name.split(".").pop() || "").toLowerCase();
410
410
  return files.getAcceptArray(this.accept).some(function (format) {
411
411
  return format === extension ||
412
412
  format === file.type ||
413
- (format.split('/')[1] === '*' &&
414
- file.type.split('/')[0] === format.split('/')[0]);
413
+ (format.split("/")[1] === "*" &&
414
+ file.type.split("/")[0] === format.split("/")[0]);
415
415
  });
416
416
  };
417
417
  TuiInputFilesComponent.prototype.rejectFiles = function (rejectedFiles) {
@@ -426,7 +426,7 @@
426
426
  { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_DIGITAL_INFORMATION_UNITS,] }] }
427
427
  ]; };
428
428
  __decorate([
429
- core.ViewChild('input')
429
+ core.ViewChild("input")
430
430
  ], TuiInputFilesComponent.prototype, "input", void 0);
431
431
  __decorate([
432
432
  core.Input(),
@@ -466,7 +466,7 @@
466
466
  ], TuiInputFilesComponent.prototype, "getValueArray", null);
467
467
  TuiInputFilesComponent = TuiInputFilesComponent_1 = __decorate([
468
468
  core.Component({
469
- selector: 'tui-input-files',
469
+ selector: "tui-input-files",
470
470
  template: "<tui-wrapper\n appearance=\"input-file\"\n class=\"t-wrapper\"\n [class._mobile]=\"isMobile\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered || fileDragged\"\n [pressed]=\"computedPressed\"\n [disabled]=\"computedDisabled\"\n>\n <label\n *ngIf=\"units$ | async as units\"\n automation-id=\"tui-input-file__label\"\n >\n <a tuiLink>\n <span\n polymorpheus-outlet\n class=\"t-inline\"\n [content]=\"computedLink$ | async\"\n ></span>\n </a>\n <ng-container *ngIf=\"computedLabel$ | async as computedLabel\">\n <span>&nbsp;</span>\n <span\n polymorpheus-outlet\n class=\"t-inline\"\n [content]=\"computedLabel\"\n ></span>\n </ng-container>\n <ng-container *ngIf=\"!readOnly && !computedDisabled\">\n <input\n *ngIf=\"inputFileTexts$ | async as texts\"\n #input\n type=\"file\"\n class=\"t-native\"\n [id]=\"id\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [tuiFocusable]=\"focusable\"\n (change)=\"onFilesSelected(input, texts, units)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n (tuiDroppableDropped)=\"onDropped($event, texts, units)\"\n (tuiDroppableDragOverChange)=\"onDragOver($event)\"\n (mousedown.prevent.silent)=\"(0)\"\n />\n </ng-container>\n </label>\n</tui-wrapper>\n",
471
471
  changeDetection: core.ChangeDetectionStrategy.OnPush,
472
472
  encapsulation: core.ViewEncapsulation.None,