@taiga-ui/kit 2.21.0 → 2.25.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 (918) hide show
  1. package/README.md +7 -3
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js +5 -6
  3. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  5. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-action.umd.js +2 -2
  7. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  8. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-avatar.umd.js +1 -1
  11. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
  13. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-badge.umd.js +2 -2
  15. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
  17. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
  19. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
  21. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +6 -6
  23. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +2 -2
  25. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +1 -1
  27. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
  29. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +1 -1
  31. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js +1 -1
  33. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-combo-box.umd.js +13 -4
  37. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  39. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +2 -2
  41. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
  43. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-filter.umd.js +1 -1
  47. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  49. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-copy.umd.js +2 -2
  51. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  53. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-count.umd.js +7 -2
  55. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +2 -2
  57. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +2 -2
  59. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +2 -2
  63. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  65. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-date.umd.js +2 -2
  67. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  69. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-file.umd.js +191 -191
  71. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +2 -2
  73. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-inline.umd.js +1 -1
  75. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  77. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +1 -1
  79. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  80. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-month.umd.js +1 -1
  82. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  83. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-number.umd.js +8 -2
  85. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  87. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-password.umd.js +3 -2
  89. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  91. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +1 -1
  93. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  95. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-phone.umd.js +2 -2
  97. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  99. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-range.umd.js +2 -2
  101. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  103. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-slider.umd.js +2 -2
  105. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  107. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-tag.umd.js +2 -2
  109. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
  111. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-time.umd.js +2 -2
  113. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  115. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input.umd.js +1 -1
  117. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  119. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +5 -5
  123. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +2 -2
  125. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +16 -12
  129. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +2 -2
  131. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-multi-select.umd.js +18 -45
  133. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
  135. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-pagination.umd.js +1 -1
  137. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  139. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +338 -0
  141. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -0
  142. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +16 -0
  143. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -0
  144. package/bundles/taiga-ui-kit-components-progress.umd.js +61 -25
  145. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
  147. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +1 -1
  151. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  152. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-range.umd.js +2 -2
  155. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  157. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-select-option.umd.js +23 -14
  159. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-select-option.umd.min.js +2 -2
  161. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-select.umd.js +9 -3
  163. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  165. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-slider.umd.js +2 -2
  167. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  168. package/bundles/taiga-ui-kit-components-slider.umd.min.js +1 -1
  169. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  170. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -1
  171. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  173. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  174. package/bundles/taiga-ui-kit-components-tabs.umd.js +3 -3
  175. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  176. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  177. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  178. package/bundles/taiga-ui-kit-components-tag.umd.js +2 -2
  179. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  180. package/bundles/taiga-ui-kit-components-tag.umd.min.js +2 -2
  181. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  182. package/bundles/taiga-ui-kit-components-text-area.umd.js +19 -2
  183. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  184. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
  185. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  186. package/bundles/taiga-ui-kit-components-toggle.umd.js +1 -1
  187. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  188. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  189. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  190. package/bundles/taiga-ui-kit-components-tree.umd.js +653 -0
  191. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -0
  192. package/bundles/taiga-ui-kit-components-tree.umd.min.js +16 -0
  193. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -0
  194. package/bundles/taiga-ui-kit-components.umd.js +36 -20
  195. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  196. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  197. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  198. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  199. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  200. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  201. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +2 -1
  202. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  203. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  205. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  207. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  208. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  209. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  210. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  211. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  212. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
  214. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  215. package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
  216. package/bundles/taiga-ui-kit-directives.umd.js +12 -12
  217. package/bundles/taiga-ui-kit-directives.umd.min.js +1 -1
  218. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +1 -1
  219. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
  221. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  222. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +21 -21
  223. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  224. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js +1 -1
  225. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  226. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  227. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  228. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  229. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  230. package/bundles/taiga-ui-kit-tokens.umd.js +14 -14
  231. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  232. package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
  233. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  234. package/bundles/taiga-ui-kit-utils-format.umd.js +0 -2
  235. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  236. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  237. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  238. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  239. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  240. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  241. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  242. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  243. package/components/breadcrumbs/index.d.ts +1 -1
  244. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  245. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  246. package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
  247. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  248. package/components/combo-box/combo-box.component.d.ts +3 -3
  249. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  250. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  251. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  252. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  253. package/components/index.d.ts +4 -2
  254. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  255. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  256. package/components/input-count/input-count.component.d.ts +1 -0
  257. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  258. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  259. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  260. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  261. package/components/input-file/index.d.ts +1 -1
  262. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  263. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  264. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  265. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  266. package/components/input-number/input-number.component.d.ts +1 -0
  267. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  268. package/components/input-password/index.d.ts +1 -1
  269. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  270. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  271. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  272. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  273. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  274. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  275. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  276. package/components/island/taiga-ui-kit-components-island.metadata.json +1 -1
  277. package/components/line-clamp/index.d.ts +1 -1
  278. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  279. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  280. package/components/multi-select/index.d.ts +0 -1
  281. package/components/multi-select/multi-select.component.d.ts +6 -5
  282. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  283. package/components/multi-select-option/multi-select-option.component.d.ts +1 -1
  284. package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.metadata.json +1 -1
  285. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  286. package/components/pdf-viewer/index.d.ts +5 -0
  287. package/components/pdf-viewer/package.json +13 -0
  288. package/components/pdf-viewer/pdf-viewer-options.d.ts +6 -0
  289. package/components/pdf-viewer/pdf-viewer.component.d.ts +20 -0
  290. package/components/pdf-viewer/pdf-viewer.directive.d.ts +4 -0
  291. package/components/pdf-viewer/pdf-viewer.module.d.ts +2 -0
  292. package/components/pdf-viewer/pdf-viewer.service.d.ts +8 -0
  293. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +4 -0
  294. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -0
  295. package/components/progress/index.d.ts +4 -2
  296. package/components/progress/pipes/abstract-color-segments.d.ts +9 -0
  297. package/components/progress/pipes/progress-color-segments-async.pipe.d.ts +5 -0
  298. package/components/progress/pipes/progress-color-segments.pipe.d.ts +7 -6
  299. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  300. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  301. package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
  302. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  303. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  304. package/components/select/select.component.d.ts +1 -1
  305. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  306. package/components/select-option/select-option.component.d.ts +4 -2
  307. package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
  308. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  309. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  310. package/components/tabs/index.d.ts +2 -2
  311. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  312. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  313. package/components/taiga-ui-kit-components.metadata.json +1 -1
  314. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  315. package/components/text-area/text-area.component.d.ts +2 -0
  316. package/components/toggle/index.d.ts +1 -1
  317. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  318. package/components/tree/components/tree/tree.component.d.ts +10 -0
  319. package/components/tree/components/tree-item/tree-item.component.d.ts +17 -0
  320. package/components/tree/components/tree-item/tree-item.providers.d.ts +3 -0
  321. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +9 -0
  322. package/components/tree/directives/tree-children.directive.d.ts +5 -0
  323. package/components/tree/directives/tree-controller.directive.d.ts +13 -0
  324. package/components/tree/directives/tree-item-controller.directive.d.ts +8 -0
  325. package/components/tree/directives/tree-node.directive.d.ts +10 -0
  326. package/components/tree/index.d.ts +13 -0
  327. package/components/tree/misc/tree.constants.d.ts +5 -0
  328. package/components/tree/misc/tree.interfaces.d.ts +22 -0
  329. package/components/tree/misc/tree.service.d.ts +12 -0
  330. package/components/tree/misc/tree.tokens.d.ts +11 -0
  331. package/components/tree/package.json +13 -0
  332. package/components/tree/taiga-ui-kit-components-tree.d.ts +4 -0
  333. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -0
  334. package/components/tree/tree.module.d.ts +2 -0
  335. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  336. package/directives/dropdown-hover/taiga-ui-kit-directives-dropdown-hover.metadata.json +1 -1
  337. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  338. package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
  339. package/directives/index.d.ts +1 -1
  340. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  341. package/directives/present/taiga-ui-kit-directives-present.metadata.json +1 -1
  342. package/directives/project-class/taiga-ui-kit-directives-project-class.metadata.json +1 -1
  343. package/directives/taiga-ui-kit-directives.metadata.json +1 -1
  344. package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.metadata.json +1 -1
  345. package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.metadata.json +1 -1
  346. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +5 -6
  347. package/esm2015/components/accordion/accordion.component.js +2 -2
  348. package/esm2015/components/accordion/accordion.module.js +3 -3
  349. package/esm2015/components/action/action.component.js +2 -2
  350. package/esm2015/components/arrow/arrow.module.js +1 -1
  351. package/esm2015/components/avatar/avatar.component.js +2 -2
  352. package/esm2015/components/avatar/avatar.module.js +1 -1
  353. package/esm2015/components/badge/badge.component.js +3 -3
  354. package/esm2015/components/badge/badge.module.js +1 -1
  355. package/esm2015/components/badged-content/badged-content.component.js +1 -1
  356. package/esm2015/components/badged-content/badged-content.module.js +1 -1
  357. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
  358. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +2 -2
  359. package/esm2015/components/breadcrumbs/breadcrumbs.module.js +2 -2
  360. package/esm2015/components/breadcrumbs/index.js +2 -2
  361. package/esm2015/components/calendar-month/calendar-month.component.js +2 -2
  362. package/esm2015/components/calendar-month/calendar-month.module.js +1 -1
  363. package/esm2015/components/calendar-range/calendar-range.component.js +2 -2
  364. package/esm2015/components/checkbox/checkbox.module.js +1 -1
  365. package/esm2015/components/combo-box/combo-box.component.js +10 -5
  366. package/esm2015/components/combo-box/combo-box.module.js +1 -1
  367. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  368. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  369. package/esm2015/components/data-list-wrapper/data-list-wrapper.module.js +1 -1
  370. package/esm2015/components/field-error/field-error.module.js +1 -1
  371. package/esm2015/components/filter/filter.component.js +1 -1
  372. package/esm2015/components/filter/filter.module.js +1 -1
  373. package/esm2015/components/index.js +5 -3
  374. package/esm2015/components/input/input.component.js +2 -2
  375. package/esm2015/components/input/input.module.js +1 -1
  376. package/esm2015/components/input/input.providers.js +1 -1
  377. package/esm2015/components/input-copy/input-copy.component.js +2 -2
  378. package/esm2015/components/input-copy/input-copy.module.js +1 -1
  379. package/esm2015/components/input-count/input-count.component.js +8 -3
  380. package/esm2015/components/input-count/input-count.module.js +1 -1
  381. package/esm2015/components/input-date/input-date.component.js +3 -3
  382. package/esm2015/components/input-date/input-date.module.js +1 -1
  383. package/esm2015/components/input-date-range/input-date-range.component.js +2 -2
  384. package/esm2015/components/input-date-range/input-date-range.module.js +1 -1
  385. package/esm2015/components/input-date-time/input-date-time.component.js +2 -2
  386. package/esm2015/components/input-date-time/input-date-time.module.js +1 -1
  387. package/esm2015/components/input-file/file/file.component.js +3 -3
  388. package/esm2015/components/input-file/index.js +2 -2
  389. package/esm2015/components/input-file/input-file.component.js +3 -3
  390. package/esm2015/components/input-file/input-file.module.js +1 -1
  391. package/esm2015/components/input-inline/input-inline.component.js +1 -1
  392. package/esm2015/components/input-inline/input-inline.module.js +1 -1
  393. package/esm2015/components/input-month/input-month.component.js +1 -1
  394. package/esm2015/components/input-month-range/input-month-range.component.js +1 -1
  395. package/esm2015/components/input-number/input-number.component.js +9 -3
  396. package/esm2015/components/input-number/input-number.module.js +1 -1
  397. package/esm2015/components/input-password/index.js +2 -2
  398. package/esm2015/components/input-password/input-password.component.js +3 -3
  399. package/esm2015/components/input-password/input-password.module.js +3 -1
  400. package/esm2015/components/input-phone/input-phone.component.js +3 -3
  401. package/esm2015/components/input-phone/input-phone.module.js +1 -1
  402. package/esm2015/components/input-phone-international/const/countries.js +1 -1
  403. package/esm2015/components/input-phone-international/input-phone-international.component.js +2 -2
  404. package/esm2015/components/input-phone-international/input-phone-international.module.js +1 -1
  405. package/esm2015/components/input-range/input-range.component.js +3 -3
  406. package/esm2015/components/input-slider/input-slider.component.js +3 -3
  407. package/esm2015/components/input-tag/input-tag.component.js +3 -3
  408. package/esm2015/components/input-tag/input-tag.module.js +1 -1
  409. package/esm2015/components/input-time/input-time.component.js +3 -3
  410. package/esm2015/components/input-time/input-time.module.js +1 -1
  411. package/esm2015/components/island/island.module.js +1 -1
  412. package/esm2015/components/line-clamp/index.js +2 -2
  413. package/esm2015/components/line-clamp/line-clamp.component.js +1 -1
  414. package/esm2015/components/line-clamp/line-clamp.module.js +1 -1
  415. package/esm2015/components/marker-icon/marker-icon.module.js +1 -1
  416. package/esm2015/components/multi-select/hide-selected.pipe.js +1 -1
  417. package/esm2015/components/multi-select/index.js +1 -2
  418. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +10 -4
  419. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
  420. package/esm2015/components/multi-select/multi-select.component.js +12 -20
  421. package/esm2015/components/multi-select/multi-select.module.js +2 -4
  422. package/esm2015/components/multi-select-option/multi-select-option.component.js +8 -10
  423. package/esm2015/components/multi-select-option/multi-select-option.module.js +1 -1
  424. package/esm2015/components/pagination/pagination.component.js +1 -1
  425. package/esm2015/components/pagination/pagination.module.js +1 -1
  426. package/esm2015/components/pdf-viewer/index.js +5 -0
  427. package/esm2015/components/pdf-viewer/pdf-viewer-options.js +1 -0
  428. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +50 -0
  429. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +21 -0
  430. package/esm2015/components/pdf-viewer/pdf-viewer.module.js +28 -0
  431. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +24 -0
  432. package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
  433. package/esm2015/components/progress/index.js +5 -3
  434. package/esm2015/components/progress/pipes/abstract-color-segments.js +32 -0
  435. package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +15 -0
  436. package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +12 -28
  437. package/esm2015/components/progress/progress-circle/progress-circle.component.js +2 -2
  438. package/esm2015/components/progress/progress-label/progress-label.component.js +1 -1
  439. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +2 -2
  440. package/esm2015/components/progress/progress.module.js +4 -1
  441. package/esm2015/components/radio/radio.component.js +1 -1
  442. package/esm2015/components/radio/radio.module.js +1 -1
  443. package/esm2015/components/radio-group/radio-group.module.js +1 -1
  444. package/esm2015/components/radio-labeled/radio-labeled.component.js +1 -1
  445. package/esm2015/components/range/range.component.js +3 -3
  446. package/esm2015/components/range/range.module.js +1 -1
  447. package/esm2015/components/select/select.component.js +6 -4
  448. package/esm2015/components/select/select.module.js +1 -1
  449. package/esm2015/components/select-option/select-option.component.js +20 -12
  450. package/esm2015/components/select-option/select-option.module.js +1 -1
  451. package/esm2015/components/slider/slider.component.js +3 -3
  452. package/esm2015/components/slider/slider.module.js +1 -1
  453. package/esm2015/components/stepper/step/step.component.js +2 -2
  454. package/esm2015/components/stepper/stepper.component.js +1 -1
  455. package/esm2015/components/stepper/stepper.module.js +1 -1
  456. package/esm2015/components/tabs/index.js +3 -3
  457. package/esm2015/components/tabs/tab/tab.component.js +1 -1
  458. package/esm2015/components/tabs/tabs/tabs.component.js +2 -2
  459. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -3
  460. package/esm2015/components/tabs/tabs.module.js +2 -2
  461. package/esm2015/components/tag/tag.component.js +3 -3
  462. package/esm2015/components/tag/tag.module.js +1 -1
  463. package/esm2015/components/text-area/text-area.component.js +10 -4
  464. package/esm2015/components/text-area/text-area.module.js +5 -2
  465. package/esm2015/components/text-area/text-area.providers.js +1 -1
  466. package/esm2015/components/toggle/index.js +2 -2
  467. package/esm2015/components/toggle/toggle.component.js +2 -2
  468. package/esm2015/components/toggle/toggle.module.js +1 -1
  469. package/esm2015/components/tree/components/tree/tree.component.js +44 -0
  470. package/esm2015/components/tree/components/tree-item/tree-item.component.js +58 -0
  471. package/esm2015/components/tree/components/tree-item/tree-item.providers.js +18 -0
  472. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +41 -0
  473. package/esm2015/components/tree/directives/tree-children.directive.js +23 -0
  474. package/esm2015/components/tree/directives/tree-controller.directive.js +62 -0
  475. package/esm2015/components/tree/directives/tree-item-controller.directive.js +36 -0
  476. package/esm2015/components/tree/directives/tree-node.directive.js +35 -0
  477. package/esm2015/components/tree/index.js +13 -0
  478. package/esm2015/components/tree/misc/tree.constants.js +9 -0
  479. package/esm2015/components/tree/misc/tree.interfaces.js +1 -0
  480. package/esm2015/components/tree/misc/tree.service.js +40 -0
  481. package/esm2015/components/tree/misc/tree.tokens.js +17 -0
  482. package/esm2015/components/tree/taiga-ui-kit-components-tree.js +5 -0
  483. package/esm2015/components/tree/tree.module.js +38 -0
  484. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +1 -1
  485. package/esm2015/directives/dropdown-context/dropdown-context.module.js +1 -1
  486. package/esm2015/directives/dropdown-hover/dropdown-hover.module.js +1 -1
  487. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +3 -2
  488. package/esm2015/directives/dropdown-selection/dropdown-selection.module.js +1 -1
  489. package/esm2015/directives/highlight/highlight.module.js +1 -1
  490. package/esm2015/directives/index.js +2 -2
  491. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +1 -1
  492. package/esm2015/directives/lazy-loading/lazy-loading.module.js +1 -1
  493. package/esm2015/directives/present/present.module.js +1 -1
  494. package/esm2015/directives/project-class/project-class.module.js +1 -1
  495. package/esm2015/directives/unfinished-validator/unfinished-validator.module.js +1 -1
  496. package/esm2015/directives/value-accessor/value-accessor.module.js +1 -1
  497. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  498. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +1 -1
  499. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  500. package/esm2015/pipes/filter-by-input/filter-by-input.module.js +2 -2
  501. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  502. package/esm2015/pipes/stringify/stringify.module.js +1 -1
  503. package/esm2015/pipes/stringify-content/stringify-content.module.js +1 -1
  504. package/esm2015/tokens/index.js +2 -2
  505. package/esm2015/types/status.js +1 -1
  506. package/esm2015/utils/format/string-hash-to-hsl.js +1 -3
  507. package/esm2015/utils/mask/index.js +2 -2
  508. package/esm5/components/accordion/accordion-item/accordion-item.component.js +5 -6
  509. package/esm5/components/accordion/accordion.component.js +2 -2
  510. package/esm5/components/accordion/accordion.module.js +3 -3
  511. package/esm5/components/action/action.component.js +2 -2
  512. package/esm5/components/arrow/arrow.module.js +1 -1
  513. package/esm5/components/avatar/avatar.component.js +2 -2
  514. package/esm5/components/avatar/avatar.module.js +1 -1
  515. package/esm5/components/badge/badge.component.js +3 -3
  516. package/esm5/components/badge/badge.module.js +1 -1
  517. package/esm5/components/badged-content/badged-content.component.js +1 -1
  518. package/esm5/components/badged-content/badged-content.module.js +1 -1
  519. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
  520. package/esm5/components/breadcrumbs/breadcrumbs.component.js +2 -2
  521. package/esm5/components/breadcrumbs/breadcrumbs.module.js +2 -2
  522. package/esm5/components/breadcrumbs/index.js +2 -2
  523. package/esm5/components/calendar-month/calendar-month.component.js +2 -2
  524. package/esm5/components/calendar-month/calendar-month.module.js +1 -1
  525. package/esm5/components/calendar-range/calendar-range.component.js +2 -2
  526. package/esm5/components/checkbox/checkbox.module.js +1 -1
  527. package/esm5/components/combo-box/combo-box.component.js +14 -5
  528. package/esm5/components/combo-box/combo-box.module.js +1 -1
  529. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  530. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  531. package/esm5/components/data-list-wrapper/data-list-wrapper.module.js +1 -1
  532. package/esm5/components/field-error/field-error.module.js +1 -1
  533. package/esm5/components/filter/filter.component.js +1 -1
  534. package/esm5/components/filter/filter.module.js +1 -1
  535. package/esm5/components/index.js +5 -3
  536. package/esm5/components/input/input.component.js +2 -2
  537. package/esm5/components/input/input.module.js +1 -1
  538. package/esm5/components/input/input.providers.js +1 -1
  539. package/esm5/components/input-copy/input-copy.component.js +2 -2
  540. package/esm5/components/input-copy/input-copy.module.js +1 -1
  541. package/esm5/components/input-count/input-count.component.js +8 -3
  542. package/esm5/components/input-count/input-count.module.js +1 -1
  543. package/esm5/components/input-date/input-date.component.js +3 -3
  544. package/esm5/components/input-date/input-date.module.js +1 -1
  545. package/esm5/components/input-date-range/input-date-range.component.js +2 -2
  546. package/esm5/components/input-date-range/input-date-range.module.js +1 -1
  547. package/esm5/components/input-date-time/input-date-time.component.js +2 -2
  548. package/esm5/components/input-date-time/input-date-time.module.js +1 -1
  549. package/esm5/components/input-file/file/file.component.js +3 -3
  550. package/esm5/components/input-file/index.js +2 -2
  551. package/esm5/components/input-file/input-file.component.js +3 -3
  552. package/esm5/components/input-file/input-file.module.js +1 -1
  553. package/esm5/components/input-inline/input-inline.component.js +1 -1
  554. package/esm5/components/input-inline/input-inline.module.js +1 -1
  555. package/esm5/components/input-month/input-month.component.js +1 -1
  556. package/esm5/components/input-month-range/input-month-range.component.js +1 -1
  557. package/esm5/components/input-number/input-number.component.js +9 -3
  558. package/esm5/components/input-number/input-number.module.js +1 -1
  559. package/esm5/components/input-password/index.js +2 -2
  560. package/esm5/components/input-password/input-password.component.js +3 -3
  561. package/esm5/components/input-password/input-password.module.js +3 -1
  562. package/esm5/components/input-phone/input-phone.component.js +3 -3
  563. package/esm5/components/input-phone/input-phone.module.js +1 -1
  564. package/esm5/components/input-phone-international/const/countries.js +1 -1
  565. package/esm5/components/input-phone-international/input-phone-international.component.js +2 -2
  566. package/esm5/components/input-phone-international/input-phone-international.module.js +1 -1
  567. package/esm5/components/input-range/input-range.component.js +3 -3
  568. package/esm5/components/input-slider/input-slider.component.js +3 -3
  569. package/esm5/components/input-tag/input-tag.component.js +3 -3
  570. package/esm5/components/input-tag/input-tag.module.js +1 -1
  571. package/esm5/components/input-time/input-time.component.js +3 -3
  572. package/esm5/components/input-time/input-time.module.js +1 -1
  573. package/esm5/components/island/island.module.js +1 -1
  574. package/esm5/components/line-clamp/index.js +2 -2
  575. package/esm5/components/line-clamp/line-clamp.component.js +1 -1
  576. package/esm5/components/line-clamp/line-clamp.module.js +1 -1
  577. package/esm5/components/marker-icon/marker-icon.module.js +1 -1
  578. package/esm5/components/multi-select/hide-selected.pipe.js +1 -1
  579. package/esm5/components/multi-select/index.js +1 -2
  580. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +10 -4
  581. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
  582. package/esm5/components/multi-select/multi-select.component.js +12 -24
  583. package/esm5/components/multi-select/multi-select.module.js +2 -4
  584. package/esm5/components/multi-select-option/multi-select-option.component.js +14 -11
  585. package/esm5/components/multi-select-option/multi-select-option.module.js +1 -1
  586. package/esm5/components/pagination/pagination.component.js +1 -1
  587. package/esm5/components/pagination/pagination.module.js +1 -1
  588. package/esm5/components/pdf-viewer/index.js +5 -0
  589. package/esm5/components/pdf-viewer/pdf-viewer-options.js +1 -0
  590. package/esm5/components/pdf-viewer/pdf-viewer.component.js +51 -0
  591. package/esm5/components/pdf-viewer/pdf-viewer.directive.js +26 -0
  592. package/esm5/components/pdf-viewer/pdf-viewer.module.js +31 -0
  593. package/esm5/components/pdf-viewer/pdf-viewer.service.js +27 -0
  594. package/esm5/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
  595. package/esm5/components/progress/index.js +5 -3
  596. package/esm5/components/progress/pipes/abstract-color-segments.js +35 -0
  597. package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +21 -0
  598. package/esm5/components/progress/pipes/progress-color-segments.pipe.js +16 -30
  599. package/esm5/components/progress/progress-circle/progress-circle.component.js +2 -2
  600. package/esm5/components/progress/progress-label/progress-label.component.js +1 -1
  601. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +2 -2
  602. package/esm5/components/progress/progress.module.js +4 -1
  603. package/esm5/components/radio/radio.component.js +1 -1
  604. package/esm5/components/radio/radio.module.js +1 -1
  605. package/esm5/components/radio-group/radio-group.module.js +1 -1
  606. package/esm5/components/radio-labeled/radio-labeled.component.js +1 -1
  607. package/esm5/components/range/range.component.js +3 -3
  608. package/esm5/components/range/range.module.js +1 -1
  609. package/esm5/components/select/select.component.js +10 -4
  610. package/esm5/components/select/select.module.js +1 -1
  611. package/esm5/components/select-option/select-option.component.js +24 -14
  612. package/esm5/components/select-option/select-option.module.js +1 -1
  613. package/esm5/components/slider/slider.component.js +3 -3
  614. package/esm5/components/slider/slider.module.js +1 -1
  615. package/esm5/components/stepper/step/step.component.js +2 -2
  616. package/esm5/components/stepper/stepper.component.js +1 -1
  617. package/esm5/components/stepper/stepper.module.js +1 -1
  618. package/esm5/components/tabs/index.js +3 -3
  619. package/esm5/components/tabs/tab/tab.component.js +1 -1
  620. package/esm5/components/tabs/tabs/tabs.component.js +2 -2
  621. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -3
  622. package/esm5/components/tabs/tabs.module.js +2 -2
  623. package/esm5/components/tag/tag.component.js +3 -3
  624. package/esm5/components/tag/tag.module.js +1 -1
  625. package/esm5/components/text-area/text-area.component.js +18 -4
  626. package/esm5/components/text-area/text-area.module.js +5 -2
  627. package/esm5/components/text-area/text-area.providers.js +1 -1
  628. package/esm5/components/toggle/index.js +2 -2
  629. package/esm5/components/toggle/toggle.component.js +2 -2
  630. package/esm5/components/toggle/toggle.module.js +1 -1
  631. package/esm5/components/tree/components/tree/tree.component.js +53 -0
  632. package/esm5/components/tree/components/tree-item/tree-item.component.js +68 -0
  633. package/esm5/components/tree/components/tree-item/tree-item.providers.js +18 -0
  634. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +50 -0
  635. package/esm5/components/tree/directives/tree-children.directive.js +25 -0
  636. package/esm5/components/tree/directives/tree-controller.directive.js +64 -0
  637. package/esm5/components/tree/directives/tree-item-controller.directive.js +38 -0
  638. package/esm5/components/tree/directives/tree-node.directive.js +40 -0
  639. package/esm5/components/tree/index.js +13 -0
  640. package/esm5/components/tree/misc/tree.constants.js +9 -0
  641. package/esm5/components/tree/misc/tree.interfaces.js +1 -0
  642. package/esm5/components/tree/misc/tree.service.js +44 -0
  643. package/esm5/components/tree/misc/tree.tokens.js +17 -0
  644. package/esm5/components/tree/taiga-ui-kit-components-tree.js +5 -0
  645. package/esm5/components/tree/tree.module.js +41 -0
  646. package/esm5/directives/dropdown-context/dropdown-context.directive.js +1 -1
  647. package/esm5/directives/dropdown-context/dropdown-context.module.js +1 -1
  648. package/esm5/directives/dropdown-hover/dropdown-hover.module.js +1 -1
  649. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +3 -2
  650. package/esm5/directives/dropdown-selection/dropdown-selection.module.js +1 -1
  651. package/esm5/directives/highlight/highlight.module.js +1 -1
  652. package/esm5/directives/index.js +2 -2
  653. package/esm5/directives/lazy-loading/lazy-loading.directive.js +1 -1
  654. package/esm5/directives/lazy-loading/lazy-loading.module.js +1 -1
  655. package/esm5/directives/present/present.module.js +1 -1
  656. package/esm5/directives/project-class/project-class.module.js +1 -1
  657. package/esm5/directives/unfinished-validator/unfinished-validator.module.js +1 -1
  658. package/esm5/directives/value-accessor/value-accessor.module.js +1 -1
  659. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  660. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.module.js +1 -1
  661. package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  662. package/esm5/pipes/filter-by-input/filter-by-input.module.js +2 -2
  663. package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  664. package/esm5/pipes/stringify/stringify.module.js +1 -1
  665. package/esm5/pipes/stringify-content/stringify-content.module.js +1 -1
  666. package/esm5/tokens/index.js +2 -2
  667. package/esm5/types/status.js +1 -1
  668. package/esm5/utils/format/string-hash-to-hsl.js +1 -3
  669. package/esm5/utils/mask/index.js +2 -2
  670. package/fesm2015/taiga-ui-kit-components-accordion.js +5 -6
  671. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  672. package/fesm2015/taiga-ui-kit-components-action.js +2 -2
  673. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  674. package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
  675. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  676. package/fesm2015/taiga-ui-kit-components-badge.js +2 -2
  677. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  678. package/fesm2015/taiga-ui-kit-components-badged-content.js +1 -1
  679. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  680. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -4
  681. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  682. package/fesm2015/taiga-ui-kit-components-calendar-month.js +1 -1
  683. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  684. package/fesm2015/taiga-ui-kit-components-calendar-range.js +1 -1
  685. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  686. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  687. package/fesm2015/taiga-ui-kit-components-combo-box.js +9 -4
  688. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  689. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  690. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  691. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  692. package/fesm2015/taiga-ui-kit-components-filter.js +1 -1
  693. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  694. package/fesm2015/taiga-ui-kit-components-input-copy.js +2 -2
  695. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  696. package/fesm2015/taiga-ui-kit-components-input-count.js +7 -2
  697. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  698. package/fesm2015/taiga-ui-kit-components-input-date-range.js +2 -2
  699. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  700. package/fesm2015/taiga-ui-kit-components-input-date-time.js +2 -2
  701. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  702. package/fesm2015/taiga-ui-kit-components-input-date.js +2 -2
  703. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  704. package/fesm2015/taiga-ui-kit-components-input-file.js +148 -148
  705. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  706. package/fesm2015/taiga-ui-kit-components-input-inline.js +1 -1
  707. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  708. package/fesm2015/taiga-ui-kit-components-input-month-range.js +1 -1
  709. package/fesm2015/taiga-ui-kit-components-input-month.js +1 -1
  710. package/fesm2015/taiga-ui-kit-components-input-number.js +8 -2
  711. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  712. package/fesm2015/taiga-ui-kit-components-input-password.js +5 -4
  713. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  714. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +1 -1
  715. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  716. package/fesm2015/taiga-ui-kit-components-input-phone.js +2 -2
  717. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  718. package/fesm2015/taiga-ui-kit-components-input-range.js +2 -2
  719. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  720. package/fesm2015/taiga-ui-kit-components-input-slider.js +2 -2
  721. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  722. package/fesm2015/taiga-ui-kit-components-input-tag.js +2 -2
  723. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  724. package/fesm2015/taiga-ui-kit-components-input-time.js +2 -2
  725. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  726. package/fesm2015/taiga-ui-kit-components-input.js +1 -1
  727. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  728. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  729. package/fesm2015/taiga-ui-kit-components-line-clamp.js +2 -2
  730. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  731. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  732. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +7 -9
  733. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  734. package/fesm2015/taiga-ui-kit-components-multi-select.js +21 -40
  735. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  736. package/fesm2015/taiga-ui-kit-components-pagination.js +1 -1
  737. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  738. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +108 -0
  739. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
  740. package/fesm2015/taiga-ui-kit-components-progress.js +41 -16
  741. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  742. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  743. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +1 -1
  744. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-range.js +2 -2
  746. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-select-option.js +19 -11
  748. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-select.js +5 -3
  750. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-slider.js +2 -2
  752. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-stepper.js +1 -1
  754. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-tabs.js +3 -3
  756. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components-tag.js +2 -2
  758. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-components-text-area.js +12 -3
  760. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-components-toggle.js +2 -2
  762. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  763. package/fesm2015/taiga-ui-kit-components-tree.js +371 -0
  764. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -0
  765. package/fesm2015/taiga-ui-kit-components.js +4 -2
  766. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  768. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +2 -1
  770. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  772. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  773. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  774. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  775. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  776. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  777. package/fesm2015/taiga-ui-kit-directives.js +1 -1
  778. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  779. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  780. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +15 -15
  781. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  782. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  783. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  784. package/fesm2015/taiga-ui-kit-tokens.js +14 -14
  785. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  786. package/fesm2015/taiga-ui-kit-utils-format.js +0 -2
  787. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  788. package/fesm5/taiga-ui-kit-components-accordion.js +5 -6
  789. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  790. package/fesm5/taiga-ui-kit-components-action.js +2 -2
  791. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  792. package/fesm5/taiga-ui-kit-components-avatar.js +1 -1
  793. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  794. package/fesm5/taiga-ui-kit-components-badge.js +2 -2
  795. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  796. package/fesm5/taiga-ui-kit-components-badged-content.js +1 -1
  797. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  798. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +4 -4
  799. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  800. package/fesm5/taiga-ui-kit-components-calendar-month.js +1 -1
  801. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  802. package/fesm5/taiga-ui-kit-components-calendar-range.js +1 -1
  803. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  804. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  805. package/fesm5/taiga-ui-kit-components-combo-box.js +13 -4
  806. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  807. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  808. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  809. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  810. package/fesm5/taiga-ui-kit-components-filter.js +1 -1
  811. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  812. package/fesm5/taiga-ui-kit-components-input-copy.js +2 -2
  813. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  814. package/fesm5/taiga-ui-kit-components-input-count.js +7 -2
  815. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  816. package/fesm5/taiga-ui-kit-components-input-date-range.js +2 -2
  817. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  818. package/fesm5/taiga-ui-kit-components-input-date-time.js +2 -2
  819. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  820. package/fesm5/taiga-ui-kit-components-input-date.js +2 -2
  821. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  822. package/fesm5/taiga-ui-kit-components-input-file.js +194 -194
  823. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  824. package/fesm5/taiga-ui-kit-components-input-inline.js +1 -1
  825. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  826. package/fesm5/taiga-ui-kit-components-input-month-range.js +1 -1
  827. package/fesm5/taiga-ui-kit-components-input-month.js +1 -1
  828. package/fesm5/taiga-ui-kit-components-input-number.js +8 -2
  829. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  830. package/fesm5/taiga-ui-kit-components-input-password.js +5 -4
  831. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  832. package/fesm5/taiga-ui-kit-components-input-phone-international.js +1 -1
  833. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  834. package/fesm5/taiga-ui-kit-components-input-phone.js +2 -2
  835. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  836. package/fesm5/taiga-ui-kit-components-input-range.js +2 -2
  837. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  838. package/fesm5/taiga-ui-kit-components-input-slider.js +2 -2
  839. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  840. package/fesm5/taiga-ui-kit-components-input-tag.js +2 -2
  841. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  842. package/fesm5/taiga-ui-kit-components-input-time.js +2 -2
  843. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  844. package/fesm5/taiga-ui-kit-components-input.js +1 -1
  845. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  846. package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
  847. package/fesm5/taiga-ui-kit-components-line-clamp.js +2 -2
  848. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  849. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  850. package/fesm5/taiga-ui-kit-components-multi-select-option.js +13 -10
  851. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  852. package/fesm5/taiga-ui-kit-components-multi-select.js +21 -47
  853. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  854. package/fesm5/taiga-ui-kit-components-pagination.js +1 -1
  855. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  856. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +120 -0
  857. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
  858. package/fesm5/taiga-ui-kit-components-progress.js +55 -19
  859. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  861. package/fesm5/taiga-ui-kit-components-radio-labeled.js +1 -1
  862. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  863. package/fesm5/taiga-ui-kit-components-range.js +2 -2
  864. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  865. package/fesm5/taiga-ui-kit-components-select-option.js +23 -13
  866. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  867. package/fesm5/taiga-ui-kit-components-select.js +9 -3
  868. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  869. package/fesm5/taiga-ui-kit-components-slider.js +2 -2
  870. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  871. package/fesm5/taiga-ui-kit-components-stepper.js +1 -1
  872. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  873. package/fesm5/taiga-ui-kit-components-tabs.js +3 -3
  874. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  875. package/fesm5/taiga-ui-kit-components-tag.js +2 -2
  876. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  877. package/fesm5/taiga-ui-kit-components-text-area.js +20 -3
  878. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  879. package/fesm5/taiga-ui-kit-components-toggle.js +2 -2
  880. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  881. package/fesm5/taiga-ui-kit-components-tree.js +417 -0
  882. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -0
  883. package/fesm5/taiga-ui-kit-components.js +4 -2
  884. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  885. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  886. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  887. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +2 -1
  888. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  889. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  890. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  891. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  892. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  893. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  894. package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  895. package/fesm5/taiga-ui-kit-directives.js +1 -1
  896. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  897. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  898. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js +22 -22
  899. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  900. package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  901. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  902. package/fesm5/taiga-ui-kit-tokens.js +14 -14
  903. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  904. package/fesm5/taiga-ui-kit-utils-format.js +0 -2
  905. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  906. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  907. package/package.json +5 -5
  908. package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.metadata.json +1 -1
  909. package/pipes/stringify/taiga-ui-kit-pipes-stringify.metadata.json +1 -1
  910. package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.metadata.json +1 -1
  911. package/tokens/index.d.ts +1 -1
  912. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  913. package/types/status.d.ts +1 -1
  914. package/utils/mask/index.d.ts +1 -1
  915. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  916. package/components/multi-select/multi-select-group/multi-select-group-reset.directive.d.ts +0 -3
  917. package/esm2015/components/multi-select/multi-select-group/multi-select-group-reset.directive.js +0 -20
  918. package/esm5/components/multi-select/multi-select-group/multi-select-group-reset.directive.js +0 -23
@@ -1,15 +1,200 @@
1
- import { __extends, __spread, __decorate, __param } from 'tslib';
2
- import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, Input, Output, ViewChild, Component, ChangeDetectionStrategy, forwardRef, HostBinding, NgModule } from '@angular/core';
3
- import { NgControl } from '@angular/forms';
4
- import { isNativeFocused, EMPTY_ARRAY, TUI_IS_MOBILE, tuiDefaultProp, tuiPure, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiNullableControl, TuiLetModule, TuiFocusedModule, TuiFocusVisibleModule, TuiPressedModule, TuiHoveredModule, TuiFocusableModule, TuiDroppableModule, TuiPreventDefaultModule } from '@taiga-ui/cdk';
5
- import { TUI_MODE, MODE_PROVIDER, TuiWrapperModule, TuiSvgModule, TuiLinkModule, TuiLoaderModule, TuiButtonModule, TuiGroupModule } from '@taiga-ui/core';
6
- import { TUI_INPUT_FILE_TEXTS, TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS } from '@taiga-ui/kit/tokens';
1
+ import { __decorate, __param, __extends, __spread } from 'tslib';
2
+ import { EventEmitter, Inject, Input, Output, HostBinding, Component, ChangeDetectionStrategy, Optional, Self, ChangeDetectorRef, ViewChild, forwardRef, NgModule } from '@angular/core';
3
+ import { DomSanitizer } from '@angular/platform-browser';
4
+ import { TUI_IS_MOBILE, tuiDefaultProp, tuiPure, isNativeFocused, EMPTY_ARRAY, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiNullableControl, TuiLetModule, TuiFocusedModule, TuiFocusVisibleModule, TuiPressedModule, TuiHoveredModule, TuiFocusableModule, TuiDroppableModule, TuiPreventDefaultModule } from '@taiga-ui/cdk';
5
+ import { TUI_FILE_TEXTS, TUI_DIGITAL_INFORMATION_UNITS, TUI_INPUT_FILE_TEXTS } from '@taiga-ui/kit/tokens';
7
6
  import { formatSize } from '@taiga-ui/kit/utils/files';
8
7
  import { of, Observable } from 'rxjs';
9
8
  import { map } from 'rxjs/operators';
9
+ import { NgControl } from '@angular/forms';
10
+ import { TUI_MODE, MODE_PROVIDER, TuiWrapperModule, TuiSvgModule, TuiLinkModule, TuiLoaderModule, TuiButtonModule, TuiGroupModule } from '@taiga-ui/core';
10
11
  import { CommonModule } from '@angular/common';
11
12
  import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
12
- import { DomSanitizer } from '@angular/platform-browser';
13
+
14
+ // @dynamic
15
+ var TuiFileComponent = /** @class */ (function () {
16
+ function TuiFileComponent(isMobile, sanitizer, fileTexts$, units$) {
17
+ this.isMobile = isMobile;
18
+ this.sanitizer = sanitizer;
19
+ this.fileTexts$ = fileTexts$;
20
+ this.units$ = units$;
21
+ this.file = { name: '' };
22
+ this.state = "normal" /* Normal */;
23
+ this.size = 'm';
24
+ this.allowDelete = true;
25
+ this.showSize = true;
26
+ this.fileRemoved = new EventEmitter();
27
+ this.focused = false;
28
+ }
29
+ Object.defineProperty(TuiFileComponent.prototype, "preview", {
30
+ get: function () {
31
+ return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';
32
+ },
33
+ enumerable: true,
34
+ configurable: true
35
+ });
36
+ Object.defineProperty(TuiFileComponent.prototype, "isBig", {
37
+ get: function () {
38
+ return this.size === 'l';
39
+ },
40
+ enumerable: true,
41
+ configurable: true
42
+ });
43
+ Object.defineProperty(TuiFileComponent.prototype, "isLoading", {
44
+ get: function () {
45
+ return this.state === "loading" /* Loading */;
46
+ },
47
+ enumerable: true,
48
+ configurable: true
49
+ });
50
+ Object.defineProperty(TuiFileComponent.prototype, "isError", {
51
+ get: function () {
52
+ return this.state === "error" /* Error */;
53
+ },
54
+ enumerable: true,
55
+ configurable: true
56
+ });
57
+ Object.defineProperty(TuiFileComponent.prototype, "isDeleted", {
58
+ get: function () {
59
+ return this.state === "deleted" /* Deleted */;
60
+ },
61
+ enumerable: true,
62
+ configurable: true
63
+ });
64
+ Object.defineProperty(TuiFileComponent.prototype, "icon", {
65
+ get: function () {
66
+ if (this.state === "normal" /* Normal */ && this.isBig) {
67
+ return 'tuiIconDefaultDocLarge';
68
+ }
69
+ switch (this.state) {
70
+ case "deleted" /* Deleted */:
71
+ return 'tuiIconTrashLarge';
72
+ case "error" /* Error */:
73
+ return 'tuiIconAlertCircleLarge';
74
+ default:
75
+ return 'tuiIconCheckCircleLarge';
76
+ }
77
+ },
78
+ enumerable: true,
79
+ configurable: true
80
+ });
81
+ Object.defineProperty(TuiFileComponent.prototype, "src", {
82
+ get: function () {
83
+ return this.file.src || '';
84
+ },
85
+ enumerable: true,
86
+ configurable: true
87
+ });
88
+ Object.defineProperty(TuiFileComponent.prototype, "name", {
89
+ get: function () {
90
+ return this.file.name.split('.').slice(0, -1).join('.');
91
+ },
92
+ enumerable: true,
93
+ configurable: true
94
+ });
95
+ Object.defineProperty(TuiFileComponent.prototype, "type", {
96
+ get: function () {
97
+ return '.' + this.file.name.split('.').pop() || '';
98
+ },
99
+ enumerable: true,
100
+ configurable: true
101
+ });
102
+ Object.defineProperty(TuiFileComponent.prototype, "content$", {
103
+ get: function () {
104
+ return this.calculateContent$(this.state, this.file, this.fileTexts$);
105
+ },
106
+ enumerable: true,
107
+ configurable: true
108
+ });
109
+ Object.defineProperty(TuiFileComponent.prototype, "fileSize$", {
110
+ get: function () {
111
+ return this.calculateFileSize$(this.file, this.units$);
112
+ },
113
+ enumerable: true,
114
+ configurable: true
115
+ });
116
+ TuiFileComponent.prototype.onRemoveClick = function () {
117
+ this.fileRemoved.emit();
118
+ };
119
+ TuiFileComponent.prototype.onFocusVisible = function (focusVisible) {
120
+ this.focused = focusVisible;
121
+ };
122
+ TuiFileComponent.prototype.calculateContent$ = function (state, file, fileTexts$) {
123
+ return state === "error" /* Error */ && !file.content
124
+ ? fileTexts$.pipe(map(function (texts) { return texts.loadingError; }))
125
+ : of(this.file.content || '');
126
+ };
127
+ TuiFileComponent.prototype.calculateFileSize$ = function (file, units$) {
128
+ return units$.pipe(map(function (units) { return formatSize(units, file.size); }));
129
+ };
130
+ TuiFileComponent.prototype.createPreview = function (file, sanitizer) {
131
+ if (file.src) {
132
+ return file.src;
133
+ }
134
+ // TODO: iframe warning
135
+ if (file instanceof File && file.type && file.type.startsWith('image/')) {
136
+ return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));
137
+ }
138
+ return '';
139
+ };
140
+ TuiFileComponent.ctorParameters = function () { return [
141
+ { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
142
+ { type: DomSanitizer, decorators: [{ type: Inject, args: [DomSanitizer,] }] },
143
+ { type: Observable, decorators: [{ type: Inject, args: [TUI_FILE_TEXTS,] }] },
144
+ { type: Observable, decorators: [{ type: Inject, args: [TUI_DIGITAL_INFORMATION_UNITS,] }] }
145
+ ]; };
146
+ __decorate([
147
+ Input(),
148
+ tuiDefaultProp()
149
+ ], TuiFileComponent.prototype, "file", void 0);
150
+ __decorate([
151
+ Input(),
152
+ tuiDefaultProp()
153
+ ], TuiFileComponent.prototype, "state", void 0);
154
+ __decorate([
155
+ Input(),
156
+ tuiDefaultProp()
157
+ ], TuiFileComponent.prototype, "size", void 0);
158
+ __decorate([
159
+ Input(),
160
+ tuiDefaultProp()
161
+ ], TuiFileComponent.prototype, "allowDelete", void 0);
162
+ __decorate([
163
+ Input(),
164
+ tuiDefaultProp()
165
+ ], TuiFileComponent.prototype, "showSize", void 0);
166
+ __decorate([
167
+ Output()
168
+ ], TuiFileComponent.prototype, "fileRemoved", void 0);
169
+ __decorate([
170
+ HostBinding('class._focused')
171
+ ], TuiFileComponent.prototype, "focused", void 0);
172
+ __decorate([
173
+ HostBinding('class._link')
174
+ ], TuiFileComponent.prototype, "src", null);
175
+ __decorate([
176
+ tuiPure
177
+ ], TuiFileComponent.prototype, "calculateContent$", null);
178
+ __decorate([
179
+ tuiPure
180
+ ], TuiFileComponent.prototype, "calculateFileSize$", null);
181
+ __decorate([
182
+ tuiPure
183
+ ], TuiFileComponent.prototype, "createPreview", null);
184
+ TuiFileComponent = __decorate([
185
+ Component({
186
+ selector: 'tui-file',
187
+ changeDetection: ChangeDetectionStrategy.OnPush,
188
+ template: "<ng-container *ngIf=\"!src; else withLink\">\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n</ng-container>\n\n<ng-template #withLink>\n <a\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"link\"\n [href]=\"src\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n >\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div class=\"preview\" [class.preview_big]=\"isBig\">\n <img\n *ngIf=\"preview && (fileTexts$ | async) as texts; else loader\"\n automation-id=\"tui-file__preview\"\n class=\"image\"\n [alt]=\"texts.preview\"\n [src]=\"preview\"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf=\"isLoading; else svg\"\n automation-id=\"tui-file__loader\"\n class=\"loader\"\n [inheritColor]=\"isBig\"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n automation-id=\"tui-file__icon\"\n class=\"icon\"\n [class.icon_deleted]=\"isDeleted\"\n [class.icon_error]=\"isError\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </div>\n <div class=\"wrapper\">\n <div class=\"text\">\n <div automation-id=\"tui-file__name\" class=\"name\">{{ name }}</div>\n <div automation-id=\"tui-file__type\" class=\"type\">{{ type }}</div>\n <div\n *ngIf=\"showSize && (fileSize$ | async) as fileSize\"\n automation-id=\"tui-file__size\"\n class=\"size\"\n >\n {{ fileSize }}\n </div>\n </div>\n <div\n *ngIf=\"content$ | async as content\"\n polymorpheus-outlet\n automation-id=\"tui-file__content\"\n class=\"content\"\n [content]=\"content\"\n ></div>\n </div>\n <button\n *ngIf=\"allowDelete && (fileTexts$ | async) as texts\"\n automation-id=\"tui-file__remove\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconCloseLarge\"\n appearance=\"icon\"\n class=\"remove\"\n [title]=\"texts.remove\"\n [class.remove_mobile]=\"isMobile\"\n (click.prevent)=\"onRemoveClick()\"\n ></button>\n</ng-template>\n",
189
+ styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.link:hover{background-color:var(--tui-base-02)}.preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:rgba(0,0,0,.24)}.preview_big{width:4rem;height:4rem;margin-right:1rem}.preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#333;opacity:.08}.image{max-width:100%;max-height:100%}.loader{position:absolute;top:0;left:0;width:100%;height:100%}.icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.icon_error{color:var(--tui-error-fill)}.icon_deleted{color:var(--tui-base-06)}.remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.remove:focus,.remove_mobile{opacity:1}.wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.text{display:flex}.size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.type{flex-shrink:0}.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]
190
+ }),
191
+ __param(0, Inject(TUI_IS_MOBILE)),
192
+ __param(1, Inject(DomSanitizer)),
193
+ __param(2, Inject(TUI_FILE_TEXTS)),
194
+ __param(3, Inject(TUI_DIGITAL_INFORMATION_UNITS))
195
+ ], TuiFileComponent);
196
+ return TuiFileComponent;
197
+ }());
13
198
 
14
199
  var DEFAULT_MAX_SIZE = 30 * 1000 * 1000; // 30 MB
15
200
  // @dynamic
@@ -298,7 +483,7 @@ var TuiInputFileComponent = /** @class */ (function (_super) {
298
483
  TuiInputFileComponent = TuiInputFileComponent_1 = __decorate([
299
484
  Component({
300
485
  selector: 'tui-input-file',
301
- template: "<tui-wrapper\n *ngIf=\"multiple || !value\"\n class=\"wrapper\"\n [class.wrapper_mobile]=\"isMobile\"\n [class.wrapper_has-files]=\"hasFiles\"\n [appearance]=\"getAppearance(mode$ | async)\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered || fileDragged\"\n [pressed]=\"computedPressed\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n>\n <label\n *ngIf=\"(units$ | async) as units\"\n automation-id=\"tui-input-file__label\"\n >\n <a tuiLink>\n <span\n polymorpheus-outlet\n class=\"inline\"\n [content]=\"computedLink$ | async\"\n ></span>\n </a>\n <ng-container *ngIf=\"computedLabel$ | async as computedLabel\">\n <span>&nbsp;</span>\n <span\n polymorpheus-outlet\n class=\"inline\"\n [content]=\"computedLabel\"\n ></span>\n </ng-container>\n <input\n *ngIf=\"!readOnly && !computedDisabled && (inputFileTexts$ | async) as texts\"\n #input\n class=\"native\"\n type=\"file\"\n tuiPreventDefault=\"mousedown\"\n [id]=\"id\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [tuiFocusable]=\"focusable\"\n (change)=\"onFilesSelected(input, texts, units)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n (tuiDroppableDropped)=\"onDropped($event, texts, units)\"\n (tuiDroppableDragOverChange)=\"onDragOver($event)\"\n />\n </label>\n</tui-wrapper>\n\n<section\n *tuiLet=\"mode$ | async as mode\"\n tuiGroup\n class=\"files\"\n orientation=\"vertical\"\n [collapsed]=\"true\"\n>\n <tui-file\n *ngFor=\"let file of rejectedFiles\"\n automation-id=\"tui-input-file__error\"\n state=\"error\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeRejectedFile(file)\"\n ></tui-file>\n <tui-file\n *ngFor=\"let file of computedLoading\"\n automation-id=\"tui-input-file__loading\"\n state=\"loading\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeFile(file)\"\n ></tui-file>\n <tui-file\n *ngFor=\"let file of readyFiles\"\n automation-id=\"tui-input-file__file\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeFile(file)\"\n ></tui-file>\n</section>\n",
486
+ template: "<tui-wrapper\n *ngIf=\"multiple || !value\"\n class=\"wrapper\"\n [class.wrapper_mobile]=\"isMobile\"\n [class.wrapper_has-files]=\"hasFiles\"\n [appearance]=\"getAppearance(mode$ | async)\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered || fileDragged\"\n [pressed]=\"computedPressed\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n>\n <label\n *ngIf=\"units$ | async as units\"\n automation-id=\"tui-input-file__label\"\n >\n <a tuiLink>\n <span\n polymorpheus-outlet\n class=\"inline\"\n [content]=\"computedLink$ | async\"\n ></span>\n </a>\n <ng-container *ngIf=\"computedLabel$ | async as computedLabel\">\n <span>&nbsp;</span>\n <span\n polymorpheus-outlet\n class=\"inline\"\n [content]=\"computedLabel\"\n ></span>\n </ng-container>\n <input\n *ngIf=\"!readOnly && !computedDisabled && (inputFileTexts$ | async) as texts\"\n #input\n type=\"file\"\n tuiPreventDefault=\"mousedown\"\n class=\"native\"\n [id]=\"id\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [tuiFocusable]=\"focusable\"\n (change)=\"onFilesSelected(input, texts, units)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n (tuiDroppableDropped)=\"onDropped($event, texts, units)\"\n (tuiDroppableDragOverChange)=\"onDragOver($event)\"\n />\n </label>\n</tui-wrapper>\n\n<section\n *tuiLet=\"mode$ | async as mode\"\n tuiGroup\n orientation=\"vertical\"\n class=\"files\"\n [collapsed]=\"true\"\n>\n <tui-file\n *ngFor=\"let file of rejectedFiles\"\n automation-id=\"tui-input-file__error\"\n state=\"error\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeRejectedFile(file)\"\n ></tui-file>\n <tui-file\n *ngFor=\"let file of computedLoading\"\n automation-id=\"tui-input-file__loading\"\n state=\"loading\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeFile(file)\"\n ></tui-file>\n <tui-file\n *ngFor=\"let file of readyFiles\"\n automation-id=\"tui-input-file__file\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeFile(file)\"\n ></tui-file>\n</section>\n",
302
487
  changeDetection: ChangeDetectionStrategy.OnPush,
303
488
  providers: [
304
489
  MODE_PROVIDER,
@@ -307,7 +492,7 @@ var TuiInputFileComponent = /** @class */ (function (_super) {
307
492
  useExisting: forwardRef(function () { return TuiInputFileComponent_1; }),
308
493
  },
309
494
  ],
310
- styles: [":host{font:var(--tui-font-text-m);display:block;word-wrap:break-word;color:var(--tui-text-02)}.native{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.native::-webkit-file-upload-button{display:none}.inline{display:inline}.wrapper{display:flex;flex:1;justify-content:center;align-items:center;min-height:var(--tui-height-l);border-radius:var(--tui-radius-m);padding:1rem .5rem;box-sizing:border-box}.wrapper:after{border:1px dashed;color:var(--tui-link)}.wrapper_mobile:after{border-style:solid}.wrapper_has-files{margin-bottom:.5rem}.wrapper[data-state=hovered]{background:var(--tui-secondary)}.wrapper[data-state=hovered]:after{color:var(--tui-link-hover)}.wrapper[data-state=pressed]{background:var(--tui-secondary-hover)}.wrapper[data-state=readonly]{pointer-events:none}.wrapper[data-state=readonly]:after{color:var(--tui-text-03)}.wrapper[data-state=disabled]{opacity:var(--tui-disabled-opacity);pointer-events:none}.wrapper[data-state=disabled]:after{color:var(--tui-text-03)}.wrapper._focused:after{border-style:solid;border-width:2px;color:var(--tui-focus)}.files{display:flex}"]
495
+ styles: [":host{display:block;font:var(--tui-font-text-m);word-wrap:break-word;color:var(--tui-text-02)}.native{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.native::-webkit-file-upload-button{display:none}.inline{display:inline}.wrapper{display:flex;flex:1;justify-content:center;align-items:center;min-height:var(--tui-height-l);border-radius:var(--tui-radius-m);padding:1rem .5rem;box-sizing:border-box}.wrapper:after{border:1px dashed;color:var(--tui-link)}.wrapper_mobile:after{border-style:solid}.wrapper_has-files{margin-bottom:.5rem}.wrapper[data-state=hovered]{background:var(--tui-secondary)}.wrapper[data-state=hovered]:after{color:var(--tui-link-hover)}.wrapper[data-state=pressed]{background:var(--tui-secondary-hover)}.wrapper[data-state=readonly]{pointer-events:none}.wrapper[data-state=readonly]:after{color:var(--tui-text-03)}.wrapper[data-state=disabled]{opacity:var(--tui-disabled-opacity);pointer-events:none}.wrapper[data-state=disabled]:after{color:var(--tui-text-03)}.wrapper._focused:after{border-style:solid;border-width:2px;color:var(--tui-focus)}.files{display:flex}"]
311
496
  }),
312
497
  __param(0, Optional()),
313
498
  __param(0, Self()),
@@ -321,191 +506,6 @@ var TuiInputFileComponent = /** @class */ (function (_super) {
321
506
  return TuiInputFileComponent;
322
507
  }(AbstractTuiNullableControl));
323
508
 
324
- // @dynamic
325
- var TuiFileComponent = /** @class */ (function () {
326
- function TuiFileComponent(isMobile, sanitizer, fileTexts$, units$) {
327
- this.isMobile = isMobile;
328
- this.sanitizer = sanitizer;
329
- this.fileTexts$ = fileTexts$;
330
- this.units$ = units$;
331
- this.file = { name: '' };
332
- this.state = "normal" /* Normal */;
333
- this.size = 'm';
334
- this.allowDelete = true;
335
- this.showSize = true;
336
- this.fileRemoved = new EventEmitter();
337
- this.focused = false;
338
- }
339
- Object.defineProperty(TuiFileComponent.prototype, "preview", {
340
- get: function () {
341
- return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';
342
- },
343
- enumerable: true,
344
- configurable: true
345
- });
346
- Object.defineProperty(TuiFileComponent.prototype, "isBig", {
347
- get: function () {
348
- return this.size === 'l';
349
- },
350
- enumerable: true,
351
- configurable: true
352
- });
353
- Object.defineProperty(TuiFileComponent.prototype, "isLoading", {
354
- get: function () {
355
- return this.state === "loading" /* Loading */;
356
- },
357
- enumerable: true,
358
- configurable: true
359
- });
360
- Object.defineProperty(TuiFileComponent.prototype, "isError", {
361
- get: function () {
362
- return this.state === "error" /* Error */;
363
- },
364
- enumerable: true,
365
- configurable: true
366
- });
367
- Object.defineProperty(TuiFileComponent.prototype, "isDeleted", {
368
- get: function () {
369
- return this.state === "deleted" /* Deleted */;
370
- },
371
- enumerable: true,
372
- configurable: true
373
- });
374
- Object.defineProperty(TuiFileComponent.prototype, "icon", {
375
- get: function () {
376
- if (this.state === "normal" /* Normal */ && this.isBig) {
377
- return 'tuiIconDefaultDocLarge';
378
- }
379
- switch (this.state) {
380
- case "deleted" /* Deleted */:
381
- return 'tuiIconTrashLarge';
382
- case "error" /* Error */:
383
- return 'tuiIconAlertCircleLarge';
384
- default:
385
- return 'tuiIconCheckCircleLarge';
386
- }
387
- },
388
- enumerable: true,
389
- configurable: true
390
- });
391
- Object.defineProperty(TuiFileComponent.prototype, "src", {
392
- get: function () {
393
- return this.file.src || '';
394
- },
395
- enumerable: true,
396
- configurable: true
397
- });
398
- Object.defineProperty(TuiFileComponent.prototype, "name", {
399
- get: function () {
400
- return this.file.name.split('.').slice(0, -1).join('.');
401
- },
402
- enumerable: true,
403
- configurable: true
404
- });
405
- Object.defineProperty(TuiFileComponent.prototype, "type", {
406
- get: function () {
407
- return '.' + this.file.name.split('.').pop() || '';
408
- },
409
- enumerable: true,
410
- configurable: true
411
- });
412
- Object.defineProperty(TuiFileComponent.prototype, "content$", {
413
- get: function () {
414
- return this.calculateContent$(this.state, this.file, this.fileTexts$);
415
- },
416
- enumerable: true,
417
- configurable: true
418
- });
419
- Object.defineProperty(TuiFileComponent.prototype, "fileSize$", {
420
- get: function () {
421
- return this.calculateFileSize$(this.file, this.units$);
422
- },
423
- enumerable: true,
424
- configurable: true
425
- });
426
- TuiFileComponent.prototype.onRemoveClick = function () {
427
- this.fileRemoved.emit();
428
- };
429
- TuiFileComponent.prototype.onFocusVisible = function (focusVisible) {
430
- this.focused = focusVisible;
431
- };
432
- TuiFileComponent.prototype.calculateContent$ = function (state, file, fileTexts$) {
433
- return state === "error" /* Error */ && !file.content
434
- ? fileTexts$.pipe(map(function (texts) { return texts.loadingError; }))
435
- : of(this.file.content || '');
436
- };
437
- TuiFileComponent.prototype.calculateFileSize$ = function (file, units$) {
438
- return units$.pipe(map(function (units) { return formatSize(units, file.size); }));
439
- };
440
- TuiFileComponent.prototype.createPreview = function (file, sanitizer) {
441
- if (file.src) {
442
- return file.src;
443
- }
444
- // TODO: iframe warning
445
- if (file instanceof File && file.type && file.type.startsWith('image/')) {
446
- return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));
447
- }
448
- return '';
449
- };
450
- TuiFileComponent.ctorParameters = function () { return [
451
- { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
452
- { type: DomSanitizer, decorators: [{ type: Inject, args: [DomSanitizer,] }] },
453
- { type: Observable, decorators: [{ type: Inject, args: [TUI_FILE_TEXTS,] }] },
454
- { type: Observable, decorators: [{ type: Inject, args: [TUI_DIGITAL_INFORMATION_UNITS,] }] }
455
- ]; };
456
- __decorate([
457
- Input(),
458
- tuiDefaultProp()
459
- ], TuiFileComponent.prototype, "file", void 0);
460
- __decorate([
461
- Input(),
462
- tuiDefaultProp()
463
- ], TuiFileComponent.prototype, "state", void 0);
464
- __decorate([
465
- Input(),
466
- tuiDefaultProp()
467
- ], TuiFileComponent.prototype, "size", void 0);
468
- __decorate([
469
- Input(),
470
- tuiDefaultProp()
471
- ], TuiFileComponent.prototype, "allowDelete", void 0);
472
- __decorate([
473
- Input(),
474
- tuiDefaultProp()
475
- ], TuiFileComponent.prototype, "showSize", void 0);
476
- __decorate([
477
- Output()
478
- ], TuiFileComponent.prototype, "fileRemoved", void 0);
479
- __decorate([
480
- HostBinding('class._focused')
481
- ], TuiFileComponent.prototype, "focused", void 0);
482
- __decorate([
483
- HostBinding('class._link')
484
- ], TuiFileComponent.prototype, "src", null);
485
- __decorate([
486
- tuiPure
487
- ], TuiFileComponent.prototype, "calculateContent$", null);
488
- __decorate([
489
- tuiPure
490
- ], TuiFileComponent.prototype, "calculateFileSize$", null);
491
- __decorate([
492
- tuiPure
493
- ], TuiFileComponent.prototype, "createPreview", null);
494
- TuiFileComponent = __decorate([
495
- Component({
496
- selector: 'tui-file',
497
- changeDetection: ChangeDetectionStrategy.OnPush,
498
- template: "<ng-container *ngIf=\"!src; else withLink\">\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n</ng-container>\n\n<ng-template #withLink>\n <a\n class=\"link\"\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n [href]=\"src\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n >\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div class=\"preview\" [class.preview_big]=\"isBig\">\n <img\n *ngIf=\"preview && (fileTexts$ | async) as texts; else loader\"\n automation-id=\"tui-file__preview\"\n class=\"image\"\n [alt]=\"texts.preview\"\n [src]=\"preview\"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf=\"isLoading; else svg\"\n automation-id=\"tui-file__loader\"\n class=\"loader\"\n [inheritColor]=\"isBig\"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n class=\"icon\"\n automation-id=\"tui-file__icon\"\n [class.icon_deleted]=\"isDeleted\"\n [class.icon_error]=\"isError\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </div>\n <div class=\"wrapper\">\n <div class=\"text\">\n <div automation-id=\"tui-file__name\" class=\"name\">{{name}}</div>\n <div automation-id=\"tui-file__type\" class=\"type\">{{type}}</div>\n <div\n *ngIf=\"showSize && (fileSize$ | async) as fileSize\"\n automation-id=\"tui-file__size\"\n class=\"size\"\n >\n {{fileSize}}\n </div>\n </div>\n <div\n polymorpheus-outlet\n *ngIf=\"content$ | async as content\"\n automation-id=\"tui-file__content\"\n class=\"content\"\n [content]=\"content\"\n ></div>\n </div>\n <button\n *ngIf=\"allowDelete && (fileTexts$ | async) as texts\"\n automation-id=\"tui-file__remove\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconCloseLarge\"\n appearance=\"icon\"\n class=\"remove\"\n [title]=\"texts.remove\"\n [class.remove_mobile]=\"isMobile\"\n (click.prevent)=\"onRemoveClick()\"\n ></button>\n</ng-template>\n",
499
- styles: [":host{font:var(--tui-font-text-m);position:relative;display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.link:hover{background-color:var(--tui-base-02)}.preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:rgba(0,0,0,.24)}.preview_big{width:4rem;height:4rem;margin-right:1rem}.preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#333;opacity:.08}.image{max-width:100%;max-height:100%}.loader{position:absolute;top:0;left:0;width:100%;height:100%}.icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.icon_error{color:var(--tui-error-fill)}.icon_deleted{color:var(--tui-base-06)}.remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.remove:focus,.remove_mobile{opacity:1}.wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.text{display:flex}.size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.type{flex-shrink:0}.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]
500
- }),
501
- __param(0, Inject(TUI_IS_MOBILE)),
502
- __param(1, Inject(DomSanitizer)),
503
- __param(2, Inject(TUI_FILE_TEXTS)),
504
- __param(3, Inject(TUI_DIGITAL_INFORMATION_UNITS))
505
- ], TuiFileComponent);
506
- return TuiFileComponent;
507
- }());
508
-
509
509
  var TuiInputFileModule = /** @class */ (function () {
510
510
  function TuiInputFileModule() {
511
511
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-file.js","sources":["ng://@taiga-ui/kit/components/input-file/input-file.component.ts","ng://@taiga-ui/kit/components/input-file/file/file.component.ts","ng://@taiga-ui/kit/components/input-file/input-file.module.ts","ng://@taiga-ui/kit/components/input-file/taiga-ui-kit-components-input-file.ts"],"sourcesContent":["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 | ReadonlyArray<TuiFileLike>>\n implements TuiFocusableElementAccessor\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: ReadonlyArray<TuiFileLike> = [];\n\n @Input()\n @tuiDefaultProp()\n rejectedFiles: ReadonlyArray<TuiFileLike> = [];\n\n @Output()\n rejectedFilesChange = new EventEmitter<ReadonlyArray<TuiFileLike>>();\n\n @ViewChild('input')\n readonly input?: ElementRef<HTMLInputElement>;\n\n private dataTransfer: DataTransfer | null = null;\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 allowDelete(): boolean {\n return !this.computedDisabled && !this.readOnly;\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: 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(): ReadonlyArray<TuiFileLike> {\n return this.getValueArray(this.value);\n }\n\n get readyFiles(): ReadonlyArray<TuiFileLike> {\n return this.getReadyFiles(this.arrayValue, this.loadingFiles);\n }\n\n get computedLoading(): ReadonlyArray<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) {\n this.updateHovered(hovered);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onPressed(pressed: boolean) {\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 ) {\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 ) {\n this.processSelectedFiles(event.files, texts, units);\n }\n\n onDragOver(dataTransfer: DataTransfer | null) {\n this.dataTransfer = dataTransfer;\n }\n\n removeFile(removedFile: TuiFileLike) {\n this.updateValue(\n this.multiple ? this.arrayValue.filter(file => file !== removedFile) : null,\n );\n }\n\n removeRejectedFile(removedFile: TuiFileLike) {\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 | ReadonlyArray<TuiFileLike> | null,\n ): ReadonlyArray<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: ReadonlyArray<TuiFileLike>,\n loading: ReadonlyArray<TuiFileLike>,\n ): ReadonlyArray<TuiFileLike> {\n return value.filter(file => loading.indexOf(file) === -1);\n }\n\n @tuiPure\n private getLoadingFiles(\n value: ReadonlyArray<TuiFileLike>,\n loading: ReadonlyArray<TuiFileLike>,\n ): ReadonlyArray<TuiFileLike> {\n return loading.filter(file => value.indexOf(file) !== -1);\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 ) {\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.indexOf(file) === -1,\n );\n const acceptedFiles = newFiles.filter(\n file =>\n tooBigFiles.indexOf(file) === -1 && wrongFormatFiles.indexOf(file) === -1,\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: ReadonlyArray<TuiFileLike>) {\n this.rejectedFiles = rejectedFiles;\n this.rejectedFilesChange.emit(rejectedFiles);\n }\n}\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} 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 TuiFileComponent {\n @Input()\n @tuiDefaultProp()\n file: TuiFileLike = {name: ''};\n\n @Input()\n @tuiDefaultProp()\n state: 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() {\n this.fileRemoved.emit();\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: 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 {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';\nimport {TuiFileComponent} 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: [TuiFileComponent, TuiInputFileComponent],\n exports: [TuiInputFileComponent],\n})\nexport class TuiInputFileModule {}\n","/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D;IAGhB;QADC,MAAM,EAAE;yDACuC;IAGhD;QADC,WAAW,CAAC,gBAAgB,CAAC;qDACd;IAiDhB;QADC,WAAW,CAAC,aAAa,CAAC;+CAG1B;IA2BD;QADC,OAAO;6DASP;IAGD;QADC,OAAO;8DAMP;IAGD;QADC,OAAO;yDAYP;IArIQ,gBAAgB;QAN5B,SAAS,CAAC;YACP,QAAQ,EAAE,UAAU;YACpB,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,ygFAAmC;;SAEtC,CAAC;QA6BO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,YAAY,CAAC,CAAA;QACpB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QAItB,WAAA,MAAM,CAAC,6BAA6B,CAAC,CAAA;OAlCjC,gBAAgB,CAsI5B;IAAD,uBAAC;CAtID;;;ICmBA;KAAkC;IAArB,kBAAkB;QAtB9B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,YAAY;gBACZ,gBAAgB;gBAChB,qBAAqB;gBACrB,gBAAgB;gBAChB,gBAAgB;gBAChB,kBAAkB;gBAClB,kBAAkB;gBAClB,gBAAgB;gBAChB,YAAY;gBACZ,aAAa;gBACb,eAAe;gBACf,eAAe;gBACf,uBAAuB;gBACvB,cAAc;aACjB;YACD,YAAY,EAAE,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;YACvD,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;AC9CA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-file.js","sources":["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","ng://@taiga-ui/kit/components/input-file/taiga-ui-kit-components-input-file.ts"],"sourcesContent":["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} 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 TuiFileComponent {\n @Input()\n @tuiDefaultProp()\n file: TuiFileLike = {name: ''};\n\n @Input()\n @tuiDefaultProp()\n state: 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() {\n this.fileRemoved.emit();\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: 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 | ReadonlyArray<TuiFileLike>>\n implements TuiFocusableElementAccessor\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: ReadonlyArray<TuiFileLike> = [];\n\n @Input()\n @tuiDefaultProp()\n rejectedFiles: ReadonlyArray<TuiFileLike> = [];\n\n @Output()\n rejectedFilesChange = new EventEmitter<ReadonlyArray<TuiFileLike>>();\n\n @ViewChild('input')\n readonly input?: ElementRef<HTMLInputElement>;\n\n private dataTransfer: DataTransfer | null = null;\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 allowDelete(): boolean {\n return !this.computedDisabled && !this.readOnly;\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: 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(): ReadonlyArray<TuiFileLike> {\n return this.getValueArray(this.value);\n }\n\n get readyFiles(): ReadonlyArray<TuiFileLike> {\n return this.getReadyFiles(this.arrayValue, this.loadingFiles);\n }\n\n get computedLoading(): ReadonlyArray<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) {\n this.updateHovered(hovered);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onPressed(pressed: boolean) {\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 ) {\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 ) {\n this.processSelectedFiles(event.files, texts, units);\n }\n\n onDragOver(dataTransfer: DataTransfer | null) {\n this.dataTransfer = dataTransfer;\n }\n\n removeFile(removedFile: TuiFileLike) {\n this.updateValue(\n this.multiple ? this.arrayValue.filter(file => file !== removedFile) : null,\n );\n }\n\n removeRejectedFile(removedFile: TuiFileLike) {\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 | ReadonlyArray<TuiFileLike> | null,\n ): ReadonlyArray<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: ReadonlyArray<TuiFileLike>,\n loading: ReadonlyArray<TuiFileLike>,\n ): ReadonlyArray<TuiFileLike> {\n return value.filter(file => loading.indexOf(file) === -1);\n }\n\n @tuiPure\n private getLoadingFiles(\n value: ReadonlyArray<TuiFileLike>,\n loading: ReadonlyArray<TuiFileLike>,\n ): ReadonlyArray<TuiFileLike> {\n return loading.filter(file => value.indexOf(file) !== -1);\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 ) {\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.indexOf(file) === -1,\n );\n const acceptedFiles = newFiles.filter(\n file =>\n tooBigFiles.indexOf(file) === -1 && wrongFormatFiles.indexOf(file) === -1,\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: ReadonlyArray<TuiFileLike>) {\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 {TuiFileComponent} 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: [TuiFileComponent, TuiInputFileComponent],\n exports: [TuiInputFileComponent],\n})\nexport class TuiInputFileModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;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B;oBACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;iBACvD;aACJ;;SACJ,CAAC;QAkDO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QAErB,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;QAc5B,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,6BAA6B,CAAC,CAAA;OAxEjC,qBAAqB,CAiUjC;IAAD,4BAAC;CAAA,CAhUW,0BAA0B;;;ICVtC;KAAkC;IAArB,kBAAkB;QAtB9B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,YAAY;gBACZ,gBAAgB;gBAChB,qBAAqB;gBACrB,gBAAgB;gBAChB,gBAAgB;gBAChB,kBAAkB;gBAClB,kBAAkB;gBAClB,gBAAgB;gBAChB,YAAY;gBACZ,aAAa;gBACb,eAAe;gBACf,eAAe;gBACf,uBAAuB;gBACvB,cAAc;aACjB;YACD,YAAY,EAAE,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;YACvD,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;AC/CA;;;;;;"}
@@ -71,7 +71,7 @@ var TuiInputInlineComponent = /** @class */ (function (_super) {
71
71
  TuiInputInlineComponent = TuiInputInlineComponent_1 = __decorate([
72
72
  Component({
73
73
  selector: 'tui-input-inline',
74
- template: "<span *ngIf=\"!hasValue\" automation-id=\"tui-input-inline__placeholder\">\n <ng-content></ng-content>\n</span>\n\n<input\n #native\n automation-id=\"tui-input-inline__native\"\n class=\"native\"\n type=\"text\"\n tuiMaskAccessor\n [attr.maxLength]=\"maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiFocusable]=\"focusable\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n/>\n",
74
+ template: "<span *ngIf=\"!hasValue\" automation-id=\"tui-input-inline__placeholder\">\n <ng-content></ng-content>\n</span>\n\n<input\n #native\n automation-id=\"tui-input-inline__native\"\n type=\"text\"\n tuiMaskAccessor\n class=\"native\"\n [attr.maxLength]=\"maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiFocusable]=\"focusable\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n/>\n",
75
75
  changeDetection: ChangeDetectionStrategy.OnPush,
76
76
  providers: [
77
77
  TUI_VALUE_ACCESSOR_PROVIDER,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-inline.js","sources":["ng://@taiga-ui/kit/components/input-inline/input-inline.component.ts","ng://@taiga-ui/kit/components/input-inline/input-inline.module.ts","ng://@taiga-ui/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Component({\n selector: 'tui-input-inline',\n templateUrl: './input-inline.template.html',\n styleUrls: ['./input-inline.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputInlineComponent),\n },\n ],\n})\nexport class TuiInputInlineComponent\n extends AbstractTuiControl<string | number>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n maxLength: number | null = null;\n\n @ViewChild('native')\n private readonly native?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.native ? null : this.native.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('attr.data-value')\n get maskedValue(): string {\n return this.native && this.value\n ? this.native.nativeElement.value\n : String(this.value);\n }\n\n onValueChange(value: string) {\n this.updateValue(value);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule} from '@taiga-ui/cdk';\nimport {TuiMaskAccessorModule} from '@taiga-ui/core';\nimport {TuiInputInlineComponent} from './input-inline.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiMaskAccessorModule,\n ],\n declarations: [TuiInputInlineComponent],\n exports: [TuiInputInlineComponent],\n})\nexport class TuiInputInlineModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAsCY,2CAAmC;IAU3C,iCAII,OAAyB,EACE,iBAAoC;QALnE,YAOI,kBAAM,OAAO,EAAE,iBAAiB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AO,EAAE,2BAA2B;oBACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,yBAAuB,GAAA,CAAC;iBACzD;aACJ;;SACJ,CAAC;QAaO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAhBrB,uBAAuB,CAmDnC;IAAD,8BAAC;CAAA,CAlDW,kBAAkB;;;ICpB9B;KAAoC;IAAvB,oBAAoB;QAXhC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,gBAAgB;gBAChB,qBAAqB;aACxB;YACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;AClBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-inline.js","sources":["ng://@taiga-ui/kit/components/input-inline/input-inline.component.ts","ng://@taiga-ui/kit/components/input-inline/input-inline.module.ts","ng://@taiga-ui/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Component({\n selector: 'tui-input-inline',\n templateUrl: './input-inline.template.html',\n styleUrls: ['./input-inline.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputInlineComponent),\n },\n ],\n})\nexport class TuiInputInlineComponent\n extends AbstractTuiControl<string | number>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n maxLength: number | null = null;\n\n @ViewChild('native')\n private readonly native?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.native ? null : this.native.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('attr.data-value')\n get maskedValue(): string {\n return this.native && this.value\n ? this.native.nativeElement.value\n : String(this.value);\n }\n\n onValueChange(value: string) {\n this.updateValue(value);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule} from '@taiga-ui/cdk';\nimport {TuiMaskAccessorModule} from '@taiga-ui/core';\n\nimport {TuiInputInlineComponent} from './input-inline.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiMaskAccessorModule,\n ],\n declarations: [TuiInputInlineComponent],\n exports: [TuiInputInlineComponent],\n})\nexport class TuiInputInlineModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAsCY,2CAAmC;IAU3C,iCAII,OAAyB,EACE,iBAAoC;QALnE,YAOI,kBAAM,OAAO,EAAE,iBAA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