@taiga-ui/kit 2.74.0 → 2.76.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 (963) hide show
  1. package/abstract/input-slider.d.ts +2 -2
  2. package/abstract/slider/slider.d.ts +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +46 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.js +59 -14
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-action.umd.js +54 -9
  10. package/bundles/taiga-ui-kit-components-action.umd.js.map +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 +47 -2
  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 +59 -14
  16. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badge.umd.js +62 -19
  19. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-badge.umd.min.js +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 +66 -21
  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.map +1 -1
  25. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +54 -9
  26. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +48 -3
  29. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +50 -5
  32. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js +1 -1
  34. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-carousel.umd.js +69 -33
  36. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +1 -1
  38. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +56 -10
  40. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +50 -5
  44. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-checkbox.umd.js +49 -4
  47. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-combo-box.umd.js +55 -10
  50. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +48 -3
  53. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-field-error.umd.js +51 -6
  56. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-files.umd.js +66 -21
  59. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-filter.umd.js +49 -4
  62. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-copy.umd.js +56 -10
  65. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  67. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-count.umd.js +62 -17
  69. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  71. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +60 -15
  73. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +62 -17
  76. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-date.umd.js +56 -11
  79. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-file.umd.js +80 -35
  82. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-files.umd.js +61 -16
  85. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-inline.umd.js +50 -5
  88. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +53 -8
  91. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-month.umd.js +51 -6
  94. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-number.umd.js +72 -27
  97. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  99. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-password.umd.js +52 -7
  101. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +59 -14
  104. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-phone.umd.js +77 -32
  107. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-range.umd.js +62 -17
  111. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input-slider.umd.js +62 -15
  114. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-tag.umd.js +68 -23
  117. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-input-time.umd.js +54 -9
  120. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-input.umd.js +51 -6
  123. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-island.umd.js +64 -19
  126. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +54 -9
  129. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +52 -7
  132. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +51 -4
  135. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-kit-components-multi-select.umd.js +60 -15
  138. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  139. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-pagination.umd.js +53 -8
  141. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +54 -9
  144. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.js +69 -24
  147. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-push.umd.js +60 -15
  150. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-push.umd.min.js +1 -1
  152. package/bundles/taiga-ui-kit-components-push.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-block.umd.js +57 -11
  154. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-group.umd.js +47 -2
  158. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +51 -6
  161. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  163. package/bundles/taiga-ui-kit-components-radio-list.umd.js +51 -6
  164. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-radio.umd.js +52 -7
  167. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  168. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-range.umd.js +79 -34
  170. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-rating.umd.js +50 -5
  173. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-select-option.umd.js +48 -3
  176. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  178. package/bundles/taiga-ui-kit-components-select.umd.js +50 -5
  179. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  180. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-slider.umd.js +82 -37
  182. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  184. package/bundles/taiga-ui-kit-components-stepper.umd.js +83 -30
  185. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  187. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  188. package/bundles/taiga-ui-kit-components-tabs.umd.js +89 -42
  189. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  190. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  191. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  192. package/bundles/taiga-ui-kit-components-tag.umd.js +68 -23
  193. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  194. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  195. package/bundles/taiga-ui-kit-components-text-area.umd.js +63 -18
  196. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  197. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  198. package/bundles/taiga-ui-kit-components-toggle.umd.js +53 -8
  199. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  200. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  201. package/bundles/taiga-ui-kit-components-tree.umd.js +63 -18
  202. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  203. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  204. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  205. package/bundles/taiga-ui-kit-constants.umd.js +47 -2
  206. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  207. package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
  208. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  209. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +56 -11
  210. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  211. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  212. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js +52 -7
  213. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  214. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  215. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +57 -12
  216. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  217. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  218. package/bundles/taiga-ui-kit-directives-highlight.umd.js +56 -11
  219. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  221. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +57 -12
  222. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  223. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  224. package/bundles/taiga-ui-kit-directives-present.umd.js +51 -6
  225. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  226. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  227. package/bundles/taiga-ui-kit-directives-project-class.umd.js +48 -3
  228. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  229. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  230. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +50 -5
  231. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  232. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
  233. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +47 -2
  234. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  235. package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
  236. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  237. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  238. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +47 -2
  239. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  240. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  241. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +46 -1
  242. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  243. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  244. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +46 -1
  245. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  246. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  247. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +46 -1
  248. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  249. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  250. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +46 -1
  251. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  252. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  253. package/bundles/taiga-ui-kit-tokens.umd.js +46 -1
  254. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  255. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  256. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  257. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  258. package/bundles/taiga-ui-kit-utils-format.umd.js +1 -1
  259. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  260. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  261. package/bundles/taiga-ui-kit-utils-mask.umd.js +46 -1
  262. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  263. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  264. package/bundles/taiga-ui-kit-utils-math.umd.js +46 -1
  265. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  266. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  267. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +46 -1
  268. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  269. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  270. package/components/arrow/arrow-options.d.ts +2 -2
  271. package/components/avatar/avatar.component.d.ts +3 -3
  272. package/components/badge/badge.component.d.ts +1 -1
  273. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  274. package/components/badged-content/badged-content.component.d.ts +1 -1
  275. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  276. package/components/calendar-range/calendar-range.component.d.ts +2 -2
  277. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  278. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  279. package/components/combo-box/combo-box.component.d.ts +1 -1
  280. package/components/data-list-wrapper/data-list-wrapper.d.ts +1 -1
  281. package/components/field-error/field-error.component.d.ts +1 -1
  282. package/components/filter/filter.component.d.ts +1 -1
  283. package/components/input-date/input-date.component.d.ts +1 -1
  284. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  285. package/components/input-date-range/input-date-range.component.d.ts +2 -2
  286. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  287. package/components/input-file/file/file.component.d.ts +1 -1
  288. package/components/input-file/input-file.component.d.ts +5 -5
  289. package/components/input-files/input-files.component.d.ts +2 -2
  290. package/components/input-inline/input-inline.component.d.ts +1 -1
  291. package/components/input-password/input-password-options.d.ts +4 -4
  292. package/components/input-password/input-password.component.d.ts +3 -3
  293. package/components/input-phone-international/input-phone-international.component.d.ts +1 -1
  294. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -1
  295. package/components/input-range/input-range.component.d.ts +1 -1
  296. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  297. package/components/input-tag/input-tag-options.d.ts +1 -1
  298. package/components/input-tag/input-tag.component.d.ts +2 -2
  299. package/components/input-time/input-time-options.d.ts +3 -3
  300. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  301. package/components/island/island.component.d.ts +1 -1
  302. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  303. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  304. package/components/multi-select/multi-select.component.d.ts +2 -2
  305. package/components/pdf-viewer/pdf-viewer.service.d.ts +1 -1
  306. package/components/push/taiga-ui-kit-components-push.metadata.json +1 -1
  307. package/components/radio-block/radio-block.component.d.ts +1 -1
  308. package/components/range/range-change.directive.d.ts +1 -1
  309. package/components/range/range.component.d.ts +1 -1
  310. package/components/select/select.component.d.ts +1 -1
  311. package/components/slider/helpers/slider-readonly.directive.d.ts +1 -1
  312. package/components/stepper/step/step.component.d.ts +1 -1
  313. package/components/stepper/stepper.component.d.ts +2 -1
  314. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  315. package/components/tabs/tabs-options.d.ts +1 -0
  316. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  317. package/components/tag/tag-options.d.ts +1 -1
  318. package/components/tag/tag.component.d.ts +2 -2
  319. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  320. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +1 -1
  321. package/directives/lazy-loading/lazy-loading.directive.d.ts +2 -2
  322. package/directives/lazy-loading/lazy-loading.service.d.ts +2 -2
  323. package/enums/dropdown-position.d.ts +1 -1
  324. package/enums/file-state.d.ts +1 -1
  325. package/enums/step-state.d.ts +1 -1
  326. package/esm2015/abstract/input-slider.js +1 -1
  327. package/esm2015/abstract/slider/slider.js +1 -1
  328. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  329. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  330. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +11 -11
  331. package/esm2015/components/accordion/accordion.component.js +2 -2
  332. package/esm2015/components/action/action.component.js +9 -9
  333. package/esm2015/components/arrow/arrow-options.js +1 -1
  334. package/esm2015/components/arrow/arrow.component.js +2 -2
  335. package/esm2015/components/avatar/avatar.component.js +14 -14
  336. package/esm2015/components/badge/badge.component.js +17 -19
  337. package/esm2015/components/badged-content/badged-content.component.js +21 -21
  338. package/esm2015/components/breadcrumbs/breadcrumb.directive.js +2 -2
  339. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  340. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +4 -4
  341. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  342. package/esm2015/components/calendar-range/calendar-range.component.js +5 -5
  343. package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
  344. package/esm2015/components/carousel/carousel-buttons.directive.js +4 -4
  345. package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
  346. package/esm2015/components/carousel/carousel.component.js +11 -21
  347. package/esm2015/components/carousel/carousel.directive.js +3 -3
  348. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  349. package/esm2015/components/checkbox-block/checkbox-block.component.js +11 -10
  350. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  351. package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
  352. package/esm2015/components/combo-box/combo-box.component.js +7 -7
  353. package/esm2015/components/combo-box/combo-box.directive.js +2 -2
  354. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  355. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  356. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +1 -1
  357. package/esm2015/components/field-error/field-error.component.js +6 -6
  358. package/esm2015/components/files/file/file.component.js +20 -20
  359. package/esm2015/components/files/files.component.js +2 -2
  360. package/esm2015/components/filter/filter.component.js +4 -4
  361. package/esm2015/components/input/input.component.js +5 -5
  362. package/esm2015/components/input/input.directive.js +2 -2
  363. package/esm2015/components/input-copy/input-copy.component.js +10 -9
  364. package/esm2015/components/input-copy/input-copy.directive.js +2 -2
  365. package/esm2015/components/input-count/input-count.component.js +14 -14
  366. package/esm2015/components/input-count/input-count.directive.js +4 -4
  367. package/esm2015/components/input-date/input-date.component.js +9 -9
  368. package/esm2015/components/input-date/input-date.directive.js +3 -3
  369. package/esm2015/components/input-date-range/input-date-range.component.js +13 -13
  370. package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
  371. package/esm2015/components/input-date-time/input-date-time.component.js +15 -15
  372. package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
  373. package/esm2015/components/input-file/file/file.component.js +18 -18
  374. package/esm2015/components/input-file/input-file.component.js +18 -18
  375. package/esm2015/components/input-files/input-files.component.js +16 -16
  376. package/esm2015/components/input-inline/input-inline.component.js +5 -5
  377. package/esm2015/components/input-month/input-month.component.js +4 -4
  378. package/esm2015/components/input-month/input-month.directive.js +3 -3
  379. package/esm2015/components/input-month-range/input-month-range.component.js +5 -5
  380. package/esm2015/components/input-month-range/input-month-range.directive.js +4 -4
  381. package/esm2015/components/input-number/input-number.component.js +25 -25
  382. package/esm2015/components/input-number/input-number.directive.js +3 -3
  383. package/esm2015/components/input-password/input-password-options.js +1 -1
  384. package/esm2015/components/input-password/input-password.component.js +5 -5
  385. package/esm2015/components/input-password/input-password.directive.js +3 -3
  386. package/esm2015/components/input-phone/input-phone.component.js +30 -30
  387. package/esm2015/components/input-phone/input-phone.directive.js +3 -3
  388. package/esm2015/components/input-phone-international/input-phone-international.component.js +14 -14
  389. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +1 -1
  390. package/esm2015/components/input-range/input-range.component.js +17 -17
  391. package/esm2015/components/input-slider/input-slider.component.js +17 -15
  392. package/esm2015/components/input-tag/input-tag-options.js +1 -1
  393. package/esm2015/components/input-tag/input-tag.component.js +23 -23
  394. package/esm2015/components/input-time/input-time-options.js +1 -1
  395. package/esm2015/components/input-time/input-time.component.js +9 -9
  396. package/esm2015/components/island/island.component.js +19 -19
  397. package/esm2015/components/line-clamp/line-clamp.component.js +9 -9
  398. package/esm2015/components/marker-icon/marker-icon.component.js +7 -7
  399. package/esm2015/components/multi-select/hide-selected.pipe.js +1 -1
  400. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  401. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  402. package/esm2015/components/multi-select/multi-select.component.js +10 -10
  403. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  404. package/esm2015/components/pagination/pagination.component.js +8 -8
  405. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -6
  406. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  407. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +1 -1
  408. package/esm2015/components/progress/progress-bar/progress-bar.component.js +6 -6
  409. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  410. package/esm2015/components/progress/progress-circle/progress-circle.component.js +7 -7
  411. package/esm2015/components/progress/progress-label/progress-label.component.js +2 -2
  412. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  413. package/esm2015/components/push/push-alert.component.js +7 -7
  414. package/esm2015/components/push/push-alert.directive.js +2 -2
  415. package/esm2015/components/push/push.component.js +5 -5
  416. package/esm2015/components/push/push.directive.js +4 -4
  417. package/esm2015/components/radio/radio.component.js +7 -7
  418. package/esm2015/components/radio-block/radio-block.component.js +12 -11
  419. package/esm2015/components/radio-group/radio-group.component.js +2 -2
  420. package/esm2015/components/radio-labeled/radio-labeled.component.js +6 -6
  421. package/esm2015/components/radio-list/radio-list.component.js +6 -6
  422. package/esm2015/components/range/range-change.directive.js +10 -10
  423. package/esm2015/components/range/range.component.js +23 -23
  424. package/esm2015/components/rating/rating.component.js +5 -5
  425. package/esm2015/components/select/select.component.js +4 -4
  426. package/esm2015/components/select/select.directive.js +2 -2
  427. package/esm2015/components/select-option/select-option.component.js +3 -3
  428. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +10 -10
  429. package/esm2015/components/slider/helpers/slider-readonly.directive.js +15 -15
  430. package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +5 -5
  431. package/esm2015/components/slider/slider-old.component.js +2 -2
  432. package/esm2015/components/slider/slider.component.js +9 -9
  433. package/esm2015/components/stepper/step/step.component.js +12 -12
  434. package/esm2015/components/stepper/stepper.component.js +23 -19
  435. package/esm2015/components/tabs/tab/tab.component.js +10 -10
  436. package/esm2015/components/tabs/tab.directive.js +2 -2
  437. package/esm2015/components/tabs/tabs/tabs.component.js +13 -13
  438. package/esm2015/components/tabs/tabs-options.js +2 -1
  439. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +9 -8
  440. package/esm2015/components/tabs/underline/underline.component.js +13 -13
  441. package/esm2015/components/tag/tag-options.js +1 -1
  442. package/esm2015/components/tag/tag.component.js +23 -23
  443. package/esm2015/components/text-area/text-area.component.js +17 -17
  444. package/esm2015/components/text-area/text-area.directive.js +2 -2
  445. package/esm2015/components/toggle/toggle.component.js +8 -8
  446. package/esm2015/components/tree/components/tree/tree.component.js +3 -3
  447. package/esm2015/components/tree/components/tree-item/tree-item.component.js +5 -5
  448. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  449. package/esm2015/components/tree/directives/tree-children.directive.js +2 -2
  450. package/esm2015/components/tree/directives/tree-controller.directive.js +4 -4
  451. package/esm2015/components/tree/directives/tree-item-controller.directive.js +4 -4
  452. package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
  453. package/esm2015/constants/max-day-range-length-mapper.js +2 -2
  454. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +11 -11
  455. package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +5 -5
  456. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +12 -12
  457. package/esm2015/directives/highlight/highlight.directive.js +11 -11
  458. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +12 -12
  459. package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
  460. package/esm2015/directives/present/present.directive.js +6 -6
  461. package/esm2015/directives/project-class/project-class.directive.js +3 -3
  462. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  463. package/esm2015/directives/value-accessor/value-accessor.directive.js +2 -2
  464. package/esm2015/enums/dropdown-position.js +1 -1
  465. package/esm2015/enums/file-state.js +1 -1
  466. package/esm2015/enums/step-state.js +1 -1
  467. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  468. package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
  469. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  470. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +1 -1
  471. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  472. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  473. package/esm2015/tokens/validation-errors.js +1 -1
  474. package/esm2015/types/marker-icon-mode.js +1 -1
  475. package/esm2015/types/status.js +1 -1
  476. package/esm2015/types/time-format-parts.js +1 -1
  477. package/esm2015/utils/dom/set-range-offset.js +1 -1
  478. package/esm2015/utils/format/string-hash-to-hsl.js +2 -2
  479. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +1 -1
  480. package/esm2015/utils/mask/create-time-mask.js +1 -1
  481. package/esm2015/utils/miscellaneous/is-flat.js +1 -1
  482. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +1 -1
  483. package/esm5/abstract/input-slider.js +1 -1
  484. package/esm5/abstract/slider/slider.js +1 -1
  485. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  486. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  487. package/esm5/components/accordion/accordion-item/accordion-item.component.js +11 -11
  488. package/esm5/components/accordion/accordion.component.js +2 -2
  489. package/esm5/components/action/action.component.js +9 -9
  490. package/esm5/components/arrow/arrow-options.js +1 -1
  491. package/esm5/components/arrow/arrow.component.js +2 -2
  492. package/esm5/components/avatar/avatar.component.js +14 -14
  493. package/esm5/components/badge/badge.component.js +17 -19
  494. package/esm5/components/badged-content/badged-content.component.js +21 -21
  495. package/esm5/components/breadcrumbs/breadcrumb.directive.js +2 -2
  496. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  497. package/esm5/components/breadcrumbs/breadcrumbs.component.js +4 -4
  498. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  499. package/esm5/components/calendar-range/calendar-range.component.js +5 -5
  500. package/esm5/components/carousel/carousel-autoscroll.directive.js +3 -3
  501. package/esm5/components/carousel/carousel-buttons.directive.js +4 -4
  502. package/esm5/components/carousel/carousel-scroll.directive.js +3 -3
  503. package/esm5/components/carousel/carousel.component.js +11 -21
  504. package/esm5/components/carousel/carousel.directive.js +3 -3
  505. package/esm5/components/checkbox/checkbox.component.js +4 -4
  506. package/esm5/components/checkbox-block/checkbox-block.component.js +11 -10
  507. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  508. package/esm5/components/combo-box/combo-box-strict.directive.js +3 -3
  509. package/esm5/components/combo-box/combo-box.component.js +7 -7
  510. package/esm5/components/combo-box/combo-box.directive.js +2 -2
  511. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  512. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  513. package/esm5/components/data-list-wrapper/data-list-wrapper.js +1 -1
  514. package/esm5/components/field-error/field-error.component.js +6 -6
  515. package/esm5/components/files/file/file.component.js +20 -20
  516. package/esm5/components/files/files.component.js +2 -2
  517. package/esm5/components/filter/filter.component.js +4 -4
  518. package/esm5/components/input/input.component.js +5 -5
  519. package/esm5/components/input/input.directive.js +2 -2
  520. package/esm5/components/input-copy/input-copy.component.js +10 -9
  521. package/esm5/components/input-copy/input-copy.directive.js +2 -2
  522. package/esm5/components/input-count/input-count.component.js +14 -14
  523. package/esm5/components/input-count/input-count.directive.js +4 -4
  524. package/esm5/components/input-date/input-date.component.js +9 -9
  525. package/esm5/components/input-date/input-date.directive.js +3 -3
  526. package/esm5/components/input-date-range/input-date-range.component.js +13 -13
  527. package/esm5/components/input-date-range/input-date-range.directive.js +3 -3
  528. package/esm5/components/input-date-time/input-date-time.component.js +15 -15
  529. package/esm5/components/input-date-time/input-date-time.directive.js +3 -3
  530. package/esm5/components/input-file/file/file.component.js +18 -18
  531. package/esm5/components/input-file/input-file.component.js +18 -18
  532. package/esm5/components/input-files/input-files.component.js +16 -16
  533. package/esm5/components/input-inline/input-inline.component.js +5 -5
  534. package/esm5/components/input-month/input-month.component.js +4 -4
  535. package/esm5/components/input-month/input-month.directive.js +3 -3
  536. package/esm5/components/input-month-range/input-month-range.component.js +5 -5
  537. package/esm5/components/input-month-range/input-month-range.directive.js +4 -4
  538. package/esm5/components/input-number/input-number.component.js +25 -25
  539. package/esm5/components/input-number/input-number.directive.js +3 -3
  540. package/esm5/components/input-password/input-password-options.js +1 -1
  541. package/esm5/components/input-password/input-password.component.js +5 -5
  542. package/esm5/components/input-password/input-password.directive.js +3 -3
  543. package/esm5/components/input-phone/input-phone.component.js +30 -30
  544. package/esm5/components/input-phone/input-phone.directive.js +3 -3
  545. package/esm5/components/input-phone-international/input-phone-international.component.js +14 -14
  546. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +1 -1
  547. package/esm5/components/input-range/input-range.component.js +17 -17
  548. package/esm5/components/input-slider/input-slider.component.js +17 -15
  549. package/esm5/components/input-tag/input-tag-options.js +1 -1
  550. package/esm5/components/input-tag/input-tag.component.js +23 -23
  551. package/esm5/components/input-time/input-time-options.js +1 -1
  552. package/esm5/components/input-time/input-time.component.js +9 -9
  553. package/esm5/components/island/island.component.js +19 -19
  554. package/esm5/components/line-clamp/line-clamp.component.js +9 -9
  555. package/esm5/components/marker-icon/marker-icon.component.js +7 -7
  556. package/esm5/components/multi-select/hide-selected.pipe.js +1 -1
  557. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  558. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  559. package/esm5/components/multi-select/multi-select.component.js +10 -10
  560. package/esm5/components/multi-select-option/multi-select-option.component.js +6 -4
  561. package/esm5/components/pagination/pagination.component.js +8 -8
  562. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -6
  563. package/esm5/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  564. package/esm5/components/pdf-viewer/pdf-viewer.service.js +1 -1
  565. package/esm5/components/progress/progress-bar/progress-bar.component.js +6 -6
  566. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  567. package/esm5/components/progress/progress-circle/progress-circle.component.js +7 -7
  568. package/esm5/components/progress/progress-label/progress-label.component.js +2 -2
  569. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  570. package/esm5/components/push/push-alert.component.js +7 -7
  571. package/esm5/components/push/push-alert.directive.js +2 -2
  572. package/esm5/components/push/push.component.js +5 -5
  573. package/esm5/components/push/push.directive.js +4 -4
  574. package/esm5/components/radio/radio.component.js +7 -7
  575. package/esm5/components/radio-block/radio-block.component.js +12 -11
  576. package/esm5/components/radio-group/radio-group.component.js +2 -2
  577. package/esm5/components/radio-labeled/radio-labeled.component.js +6 -6
  578. package/esm5/components/radio-list/radio-list.component.js +6 -6
  579. package/esm5/components/range/range-change.directive.js +12 -12
  580. package/esm5/components/range/range.component.js +23 -23
  581. package/esm5/components/rating/rating.component.js +5 -5
  582. package/esm5/components/select/select.component.js +4 -4
  583. package/esm5/components/select/select.directive.js +2 -2
  584. package/esm5/components/select-option/select-option.component.js +3 -3
  585. package/esm5/components/slider/helpers/slider-key-steps.directive.js +10 -10
  586. package/esm5/components/slider/helpers/slider-readonly.directive.js +15 -15
  587. package/esm5/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +5 -5
  588. package/esm5/components/slider/slider-old.component.js +2 -2
  589. package/esm5/components/slider/slider.component.js +9 -9
  590. package/esm5/components/stepper/step/step.component.js +12 -12
  591. package/esm5/components/stepper/stepper.component.js +27 -19
  592. package/esm5/components/tabs/tab/tab.component.js +10 -10
  593. package/esm5/components/tabs/tab.directive.js +2 -2
  594. package/esm5/components/tabs/tabs/tabs.component.js +13 -13
  595. package/esm5/components/tabs/tabs-options.js +2 -1
  596. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +9 -8
  597. package/esm5/components/tabs/underline/underline.component.js +13 -13
  598. package/esm5/components/tag/tag-options.js +1 -1
  599. package/esm5/components/tag/tag.component.js +23 -23
  600. package/esm5/components/text-area/text-area.component.js +17 -17
  601. package/esm5/components/text-area/text-area.directive.js +2 -2
  602. package/esm5/components/toggle/toggle.component.js +8 -8
  603. package/esm5/components/tree/components/tree/tree.component.js +3 -3
  604. package/esm5/components/tree/components/tree-item/tree-item.component.js +5 -5
  605. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  606. package/esm5/components/tree/directives/tree-children.directive.js +2 -2
  607. package/esm5/components/tree/directives/tree-controller.directive.js +4 -4
  608. package/esm5/components/tree/directives/tree-item-controller.directive.js +4 -4
  609. package/esm5/components/tree/directives/tree-node.directive.js +3 -3
  610. package/esm5/constants/max-day-range-length-mapper.js +2 -2
  611. package/esm5/directives/dropdown-context/dropdown-context.directive.js +11 -11
  612. package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +7 -7
  613. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +12 -12
  614. package/esm5/directives/highlight/highlight.directive.js +11 -11
  615. package/esm5/directives/lazy-loading/lazy-loading.directive.js +12 -12
  616. package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
  617. package/esm5/directives/present/present.directive.js +6 -6
  618. package/esm5/directives/project-class/project-class.directive.js +3 -3
  619. package/esm5/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  620. package/esm5/directives/value-accessor/value-accessor.directive.js +2 -2
  621. package/esm5/enums/dropdown-position.js +1 -1
  622. package/esm5/enums/file-state.js +1 -1
  623. package/esm5/enums/step-state.js +1 -1
  624. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  625. package/esm5/pipes/field-error/field-error-pipe.js +1 -1
  626. package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  627. package/esm5/pipes/filter-by-input/filter-by-input.base.js +1 -1
  628. package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  629. package/esm5/pipes/stringify/stringify.pipe.js +1 -1
  630. package/esm5/tokens/validation-errors.js +1 -1
  631. package/esm5/types/marker-icon-mode.js +1 -1
  632. package/esm5/types/status.js +1 -1
  633. package/esm5/types/time-format-parts.js +1 -1
  634. package/esm5/utils/dom/set-range-offset.js +1 -1
  635. package/esm5/utils/format/string-hash-to-hsl.js +2 -2
  636. package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +1 -1
  637. package/esm5/utils/mask/create-time-mask.js +1 -1
  638. package/esm5/utils/miscellaneous/is-flat.js +1 -1
  639. package/esm5/utils/miscellaneous/replay-control-value-changes-factory.js +1 -1
  640. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  641. package/fesm2015/taiga-ui-kit-components-accordion.js +13 -13
  642. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  643. package/fesm2015/taiga-ui-kit-components-action.js +8 -8
  644. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  645. package/fesm2015/taiga-ui-kit-components-arrow.js +1 -1
  646. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  647. package/fesm2015/taiga-ui-kit-components-avatar.js +13 -13
  648. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  649. package/fesm2015/taiga-ui-kit-components-badge.js +16 -18
  650. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  651. package/fesm2015/taiga-ui-kit-components-badged-content.js +20 -20
  652. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  653. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +8 -8
  654. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  655. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  656. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  657. package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -4
  658. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  659. package/fesm2015/taiga-ui-kit-components-carousel.js +20 -29
  660. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  661. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +10 -9
  662. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  663. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  664. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  665. package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -3
  666. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  667. package/fesm2015/taiga-ui-kit-components-combo-box.js +9 -9
  668. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  669. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  670. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  671. package/fesm2015/taiga-ui-kit-components-field-error.js +5 -5
  672. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  673. package/fesm2015/taiga-ui-kit-components-files.js +20 -20
  674. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  675. package/fesm2015/taiga-ui-kit-components-filter.js +3 -3
  676. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  677. package/fesm2015/taiga-ui-kit-components-input-copy.js +10 -9
  678. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  679. package/fesm2015/taiga-ui-kit-components-input-count.js +16 -16
  680. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  681. package/fesm2015/taiga-ui-kit-components-input-date-range.js +14 -14
  682. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  683. package/fesm2015/taiga-ui-kit-components-input-date-time.js +16 -16
  684. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  685. package/fesm2015/taiga-ui-kit-components-input-date.js +10 -10
  686. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  687. package/fesm2015/taiga-ui-kit-components-input-file.js +34 -34
  688. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  689. package/fesm2015/taiga-ui-kit-components-input-files.js +15 -15
  690. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  691. package/fesm2015/taiga-ui-kit-components-input-inline.js +4 -4
  692. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  693. package/fesm2015/taiga-ui-kit-components-input-month-range.js +7 -7
  694. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  695. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -5
  696. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  697. package/fesm2015/taiga-ui-kit-components-input-number.js +26 -26
  698. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  699. package/fesm2015/taiga-ui-kit-components-input-password.js +6 -6
  700. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  701. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +13 -13
  702. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  703. package/fesm2015/taiga-ui-kit-components-input-phone.js +31 -31
  704. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  705. package/fesm2015/taiga-ui-kit-components-input-range.js +16 -16
  706. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  707. package/fesm2015/taiga-ui-kit-components-input-slider.js +16 -14
  708. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  709. package/fesm2015/taiga-ui-kit-components-input-tag.js +22 -22
  710. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  711. package/fesm2015/taiga-ui-kit-components-input-time.js +8 -8
  712. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  713. package/fesm2015/taiga-ui-kit-components-input.js +5 -5
  714. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  715. package/fesm2015/taiga-ui-kit-components-island.js +18 -18
  716. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  717. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
  718. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  719. package/fesm2015/taiga-ui-kit-components-marker-icon.js +6 -6
  720. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  721. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
  722. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  723. package/fesm2015/taiga-ui-kit-components-multi-select.js +14 -14
  724. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  725. package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
  726. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  727. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +8 -8
  728. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  729. package/fesm2015/taiga-ui-kit-components-progress.js +23 -23
  730. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  731. package/fesm2015/taiga-ui-kit-components-push.js +14 -14
  732. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  733. package/fesm2015/taiga-ui-kit-components-radio-block.js +11 -10
  734. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  735. package/fesm2015/taiga-ui-kit-components-radio-group.js +1 -1
  736. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  737. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -5
  738. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  739. package/fesm2015/taiga-ui-kit-components-radio-list.js +5 -5
  740. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  741. package/fesm2015/taiga-ui-kit-components-radio.js +6 -6
  742. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  743. package/fesm2015/taiga-ui-kit-components-range.js +31 -31
  744. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-rating.js +4 -4
  746. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-select-option.js +2 -2
  748. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-select.js +4 -4
  750. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-slider.js +36 -36
  752. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-stepper.js +33 -29
  754. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-tabs.js +43 -41
  756. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components-tag.js +22 -22
  758. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-components-text-area.js +17 -17
  760. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -7
  762. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  763. package/fesm2015/taiga-ui-kit-components-tree.js +17 -17
  764. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  765. package/fesm2015/taiga-ui-kit-constants.js +1 -1
  766. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +10 -10
  768. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js +4 -4
  770. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +11 -11
  772. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  773. package/fesm2015/taiga-ui-kit-directives-highlight.js +10 -10
  774. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  775. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +11 -11
  776. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  777. package/fesm2015/taiga-ui-kit-directives-present.js +5 -5
  778. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  779. package/fesm2015/taiga-ui-kit-directives-project-class.js +2 -2
  780. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  781. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  782. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  783. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +1 -1
  784. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  785. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  786. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  787. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  788. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  789. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  790. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  791. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  792. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  793. package/fesm2015/taiga-ui-kit-utils-format.js +1 -1
  794. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  795. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  796. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  797. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  798. package/fesm5/taiga-ui-kit-components-accordion.js +13 -13
  799. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  800. package/fesm5/taiga-ui-kit-components-action.js +8 -8
  801. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  802. package/fesm5/taiga-ui-kit-components-arrow.js +1 -1
  803. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  804. package/fesm5/taiga-ui-kit-components-avatar.js +13 -13
  805. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  806. package/fesm5/taiga-ui-kit-components-badge.js +16 -18
  807. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  808. package/fesm5/taiga-ui-kit-components-badged-content.js +20 -20
  809. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  810. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +8 -8
  811. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  812. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  813. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  814. package/fesm5/taiga-ui-kit-components-calendar-range.js +4 -4
  815. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  816. package/fesm5/taiga-ui-kit-components-carousel.js +20 -29
  817. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  818. package/fesm5/taiga-ui-kit-components-checkbox-block.js +10 -9
  819. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  820. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  821. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  822. package/fesm5/taiga-ui-kit-components-checkbox.js +3 -3
  823. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  824. package/fesm5/taiga-ui-kit-components-combo-box.js +9 -9
  825. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  826. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  827. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  828. package/fesm5/taiga-ui-kit-components-field-error.js +5 -5
  829. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  830. package/fesm5/taiga-ui-kit-components-files.js +20 -20
  831. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  832. package/fesm5/taiga-ui-kit-components-filter.js +3 -3
  833. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  834. package/fesm5/taiga-ui-kit-components-input-copy.js +10 -9
  835. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  836. package/fesm5/taiga-ui-kit-components-input-count.js +16 -16
  837. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  838. package/fesm5/taiga-ui-kit-components-input-date-range.js +14 -14
  839. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  840. package/fesm5/taiga-ui-kit-components-input-date-time.js +16 -16
  841. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  842. package/fesm5/taiga-ui-kit-components-input-date.js +10 -10
  843. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  844. package/fesm5/taiga-ui-kit-components-input-file.js +34 -34
  845. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  846. package/fesm5/taiga-ui-kit-components-input-files.js +15 -15
  847. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  848. package/fesm5/taiga-ui-kit-components-input-inline.js +4 -4
  849. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  850. package/fesm5/taiga-ui-kit-components-input-month-range.js +7 -7
  851. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  852. package/fesm5/taiga-ui-kit-components-input-month.js +5 -5
  853. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  854. package/fesm5/taiga-ui-kit-components-input-number.js +26 -26
  855. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  856. package/fesm5/taiga-ui-kit-components-input-password.js +6 -6
  857. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-input-phone-international.js +13 -13
  859. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-input-phone.js +31 -31
  861. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-input-range.js +16 -16
  863. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-input-slider.js +16 -14
  865. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-input-tag.js +22 -22
  867. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-input-time.js +8 -8
  869. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  870. package/fesm5/taiga-ui-kit-components-input.js +5 -5
  871. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  872. package/fesm5/taiga-ui-kit-components-island.js +18 -18
  873. package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
  874. package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
  875. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  876. package/fesm5/taiga-ui-kit-components-marker-icon.js +6 -6
  877. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  878. package/fesm5/taiga-ui-kit-components-multi-select-option.js +5 -3
  879. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  880. package/fesm5/taiga-ui-kit-components-multi-select.js +14 -14
  881. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  882. package/fesm5/taiga-ui-kit-components-pagination.js +7 -7
  883. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  884. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +8 -8
  885. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  886. package/fesm5/taiga-ui-kit-components-progress.js +23 -23
  887. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  888. package/fesm5/taiga-ui-kit-components-push.js +14 -14
  889. package/fesm5/taiga-ui-kit-components-push.js.map +1 -1
  890. package/fesm5/taiga-ui-kit-components-radio-block.js +11 -10
  891. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  892. package/fesm5/taiga-ui-kit-components-radio-group.js +1 -1
  893. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  894. package/fesm5/taiga-ui-kit-components-radio-labeled.js +5 -5
  895. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  896. package/fesm5/taiga-ui-kit-components-radio-list.js +5 -5
  897. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  898. package/fesm5/taiga-ui-kit-components-radio.js +6 -6
  899. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  900. package/fesm5/taiga-ui-kit-components-range.js +33 -33
  901. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  902. package/fesm5/taiga-ui-kit-components-rating.js +4 -4
  903. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  904. package/fesm5/taiga-ui-kit-components-select-option.js +2 -2
  905. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  906. package/fesm5/taiga-ui-kit-components-select.js +4 -4
  907. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  908. package/fesm5/taiga-ui-kit-components-slider.js +36 -36
  909. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  910. package/fesm5/taiga-ui-kit-components-stepper.js +37 -29
  911. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  912. package/fesm5/taiga-ui-kit-components-tabs.js +43 -41
  913. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  914. package/fesm5/taiga-ui-kit-components-tag.js +22 -22
  915. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  916. package/fesm5/taiga-ui-kit-components-text-area.js +17 -17
  917. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  918. package/fesm5/taiga-ui-kit-components-toggle.js +7 -7
  919. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  920. package/fesm5/taiga-ui-kit-components-tree.js +17 -17
  921. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  922. package/fesm5/taiga-ui-kit-constants.js +1 -1
  923. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  924. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +10 -10
  925. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  926. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js +6 -6
  927. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  928. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +11 -11
  929. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  930. package/fesm5/taiga-ui-kit-directives-highlight.js +10 -10
  931. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  932. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +11 -11
  933. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  934. package/fesm5/taiga-ui-kit-directives-present.js +5 -5
  935. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  936. package/fesm5/taiga-ui-kit-directives-project-class.js +2 -2
  937. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  938. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  939. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  940. package/fesm5/taiga-ui-kit-directives-value-accessor.js +1 -1
  941. package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  942. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  943. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  944. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  945. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  946. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  947. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  948. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  949. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  950. package/fesm5/taiga-ui-kit-utils-format.js +1 -1
  951. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  952. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  953. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  954. package/package.json +4 -4
  955. package/pipes/field-error/field-error-pipe.d.ts +1 -1
  956. package/pipes/filter-by-input/filter-by-input.base.d.ts +1 -1
  957. package/pipes/stringify/stringify.pipe.d.ts +1 -1
  958. package/types/marker-icon-mode.d.ts +1 -1
  959. package/types/status.d.ts +1 -1
  960. package/types/time-format-parts.d.ts +1 -1
  961. package/utils/dom/set-range-offset.d.ts +1 -1
  962. package/utils/miscellaneous/is-flat.d.ts +1 -1
  963. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +1 -1
@@ -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,EAAG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,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 (g && (g = 0, op[0] && (_ = 0)), _) 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,iBAAZ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AAkB5L,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 __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.push(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.push(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\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 (g && (g = 0, op[0] && (_ = 0)), _) 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: false } : 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: TuiFileState | TuiFileStateT = 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: TuiFileState | string | keyof Record<TuiFileState, string>,\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 | 'defaultLabelMultiple'\n | 'defaultLabelSingle'\n | 'defaultLinkMultiple'\n | 'defaultLinkSingle'\n | 'drop'\n | 'dropMultiple'\n | 'formatRejectionReason'\n | 'maxSizeRejectionReason',\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<'formatRejectionReason' | 'maxSizeRejectionReason', 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<'formatRejectionReason' | 'maxSizeRejectionReason', 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: unknown | null): 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<'formatRejectionReason' | 'maxSizeRejectionReason', 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"]}
@@ -69,6 +69,51 @@
69
69
  return function (target, key) { decorator(target, key, paramIndex); }
70
70
  }
71
71
 
72
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
73
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
74
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
75
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
76
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
77
+ var _, done = false;
78
+ for (var i = decorators.length - 1; i >= 0; i--) {
79
+ var context = {};
80
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
81
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
82
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
83
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
84
+ if (kind === "accessor") {
85
+ if (result === void 0) continue;
86
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
87
+ if (_ = accept(result.get)) descriptor.get = _;
88
+ if (_ = accept(result.set)) descriptor.set = _;
89
+ if (_ = accept(result.init)) initializers.push(_);
90
+ }
91
+ else if (_ = accept(result)) {
92
+ if (kind === "field") initializers.push(_);
93
+ else descriptor[key] = _;
94
+ }
95
+ }
96
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
97
+ done = true;
98
+ };
99
+
100
+ function __runInitializers(thisArg, initializers, value) {
101
+ var useValue = arguments.length > 2;
102
+ for (var i = 0; i < initializers.length; i++) {
103
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
104
+ }
105
+ return useValue ? value : void 0;
106
+ };
107
+
108
+ function __propKey(x) {
109
+ return typeof x === "symbol" ? x : "".concat(x);
110
+ };
111
+
112
+ function __setFunctionName(f, name, prefix) {
113
+ if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
114
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
115
+ };
116
+
72
117
  function __metadata(metadataKey, metadataValue) {
73
118
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
74
119
  }
@@ -201,7 +246,7 @@
201
246
  function __asyncDelegator(o) {
202
247
  var i, p;
203
248
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
204
- 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; }
249
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
205
250
  }
206
251
 
207
252
  function __asyncValues(o) {
@@ -262,11 +307,11 @@
262
307
  _this.isMobile = isMobile;
263
308
  _this.inputFileTexts$ = inputFileTexts$;
264
309
  _this.dataTransfer = null;
265
- _this.link = "";
266
- _this.label = "";
267
- _this.accept = "";
310
+ _this.link = '';
311
+ _this.label = '';
312
+ _this.accept = '';
268
313
  _this.multiple = false;
269
- _this.size = "m";
314
+ _this.size = 'm';
270
315
  _this.maxFileSize = DEFAULT_MAX_SIZE;
271
316
  _this.reject = new core.EventEmitter();
272
317
  return _this;
@@ -312,7 +357,7 @@
312
357
  Object.defineProperty(TuiInputFilesComponent.prototype, "fileDragged", {
313
358
  get: function () {
314
359
  var _a;
315
- return !!((_a = this.dataTransfer) === null || _a === void 0 ? void 0 : _a.types.includes("Files"));
360
+ return !!((_a = this.dataTransfer) === null || _a === void 0 ? void 0 : _a.types.includes('Files'));
316
361
  },
317
362
  enumerable: true,
318
363
  configurable: true
@@ -335,7 +380,7 @@
335
380
  };
336
381
  TuiInputFilesComponent.prototype.onFilesSelected = function (input, formatRejection, maxSizeRejection) {
337
382
  this.processSelectedFiles(input.files, { formatRejection: formatRejection, maxSizeRejection: maxSizeRejection });
338
- input.value = "";
383
+ input.value = '';
339
384
  };
340
385
  TuiInputFilesComponent.prototype.onDropped = function (event, formatRejection, maxSizeRejection) {
341
386
  this.processSelectedFiles(event.files, { formatRejection: formatRejection, maxSizeRejection: maxSizeRejection });
@@ -348,22 +393,22 @@
348
393
  };
349
394
  TuiInputFilesComponent.prototype.computeLink$ = function (fileDragged, multiple, link) {
350
395
  return fileDragged
351
- ? rxjs.of("")
396
+ ? rxjs.of('')
352
397
  : this.inputFileTexts$.pipe(operators.map(function (texts) {
353
- return multiple && link === ""
398
+ return multiple && link === ''
354
399
  ? texts.defaultLinkMultiple
355
400
  : link || texts.defaultLinkSingle;
356
401
  }));
357
402
  };
358
403
  TuiInputFilesComponent.prototype.computeLabel$ = function (isMobile, fileDragged, multiple, label) {
359
404
  if (isMobile) {
360
- return rxjs.of("");
405
+ return rxjs.of('');
361
406
  }
362
407
  if (fileDragged) {
363
408
  return this.inputFileTexts$.pipe(operators.map(function (texts) { return (multiple ? texts.dropMultiple : texts.drop); }));
364
409
  }
365
410
  return this.inputFileTexts$.pipe(operators.map(function (texts) {
366
- return multiple && label === ""
411
+ return multiple && label === ''
367
412
  ? texts.defaultLabelMultiple
368
413
  : label || texts.defaultLabelSingle;
369
414
  }));
@@ -404,12 +449,12 @@
404
449
  if (!this.accept) {
405
450
  return true;
406
451
  }
407
- var extension = "." + (file.name.split(".").pop() || "").toLowerCase();
452
+ var extension = "." + (file.name.split('.').pop() || '').toLowerCase();
408
453
  return files.getAcceptArray(this.accept).some(function (format) {
409
454
  return format === extension ||
410
455
  format === file.type ||
411
- (format.split("/")[1] === "*" &&
412
- file.type.split("/")[0] === format.split("/")[0]);
456
+ (format.split('/')[1] === '*' &&
457
+ file.type.split('/')[0] === format.split('/')[0]);
413
458
  });
414
459
  };
415
460
  TuiInputFilesComponent.prototype.rejectFiles = function (rejectedFiles) {
@@ -423,7 +468,7 @@
423
468
  { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_INPUT_FILE_TEXTS,] }] }
424
469
  ]; };
425
470
  __decorate([
426
- core.ViewChild("input")
471
+ core.ViewChild('input')
427
472
  ], TuiInputFilesComponent.prototype, "input", void 0);
428
473
  __decorate([
429
474
  core.Input(),
@@ -463,7 +508,7 @@
463
508
  ], TuiInputFilesComponent.prototype, "getValueArray", null);
464
509
  TuiInputFilesComponent = TuiInputFilesComponent_1 = __decorate([
465
510
  core.Component({
466
- selector: "tui-input-files",
511
+ selector: 'tui-input-files',
467
512
  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 automation-id=\"tui-input-file__label\"\n class=\"t-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 #input\n type=\"file\"\n class=\"t-native\"\n [id]=\"id\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [tuiFocusable]=\"focusable\"\n (change)=\"onFilesSelected(input, formatRejection, maxSizeRejection)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n (tuiDroppableDropped)=\"onDropped($event, formatRejection, maxSizeRejection)\"\n (tuiDroppableDragOverChange)=\"onDragOver($event)\"\n (mousedown.prevent.silent)=\"(0)\"\n />\n </ng-container>\n </label>\n</tui-wrapper>\n\n<ng-template #formatRejection>\n {{ (inputFileTexts$ | async)?.formatRejectionReason || '' }}\n</ng-template>\n\n<ng-template #maxSizeRejection>\n {{ maxFileSize | tuiMaxSizeRejectionError | async }}\n</ng-template>\n",
468
513
  changeDetection: core.ChangeDetectionStrategy.OnPush,
469
514
  encapsulation: core.ViewEncapsulation.None,