@taiga-ui/kit 2.55.0 → 2.56.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 (1005) hide show
  1. package/bundles/taiga-ui-kit-abstract.umd.js +22 -22
  2. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-kit-components-accordion.umd.js +13 -13
  5. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-action.umd.js +8 -8
  8. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-arrow.umd.js +5 -5
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-avatar.umd.js +13 -13
  14. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-badge.umd.js +14 -14
  17. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-badged-content.umd.js +21 -21
  20. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +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 +7 -7
  23. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
  26. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +3 -3
  29. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-carousel.umd.js +18 -18
  32. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +8 -8
  35. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +4 -4
  38. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
  41. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-combo-box.umd.js +9 -9
  44. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +4 -4
  47. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-field-error.umd.js +5 -5
  50. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-files.umd.js +20 -20
  53. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-filter.umd.js +3 -3
  56. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-copy.umd.js +8 -8
  59. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-count.umd.js +19 -19
  62. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +14 -14
  65. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +16 -16
  68. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-date.umd.js +10 -10
  71. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-file.umd.js +34 -34
  74. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-files.umd.js +15 -15
  77. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input-inline.umd.js +4 -4
  80. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +7 -7
  83. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-input-month.umd.js +5 -5
  86. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-number.umd.js +22 -22
  89. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-input-password.umd.js +9 -9
  92. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +230 -230
  95. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-input-phone.umd.js +36 -36
  98. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +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 +16 -16
  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.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-slider.umd.js +37 -25
  104. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  106. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-input-tag.umd.js +24 -24
  108. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-time.umd.js +13 -13
  111. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input.umd.js +5 -5
  114. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-island.umd.js +18 -18
  117. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +9 -9
  120. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +6 -6
  123. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +2 -2
  126. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-multi-select.umd.js +17 -17
  129. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-pagination.umd.js +7 -7
  132. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +10 -10
  135. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-kit-components-progress.umd.js +26 -26
  138. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  139. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-radio-block.umd.js +9 -9
  141. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-kit-components-radio-group.umd.js +1 -1
  144. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +5 -5
  147. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-list.umd.js +5 -5
  150. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio.umd.js +8 -8
  153. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-range.umd.js +33 -33
  156. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  157. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-rating.umd.js +7 -7
  159. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  161. package/bundles/taiga-ui-kit-components-select-option.umd.js +2 -2
  162. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  163. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-select.umd.js +6 -6
  165. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  167. package/bundles/taiga-ui-kit-components-slider.umd.js +39 -39
  168. package/bundles/taiga-ui-kit-components-slider.umd.js.map +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 +25 -25
  171. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-tabs.umd.js +41 -41
  174. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  176. package/bundles/taiga-ui-kit-components-tag.umd.js +24 -24
  177. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  178. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-text-area.umd.js +17 -17
  180. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  182. package/bundles/taiga-ui-kit-components-toggle.umd.js +11 -11
  183. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  184. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-tree.umd.js +24 -24
  186. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  188. package/bundles/taiga-ui-kit-constants.umd.js +18 -18
  189. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  190. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  191. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +10 -10
  192. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  193. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  194. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js +6 -6
  195. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  196. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +12 -12
  198. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  200. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  201. package/bundles/taiga-ui-kit-directives-highlight.umd.js +10 -10
  202. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  203. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +11 -11
  205. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  207. package/bundles/taiga-ui-kit-directives-present.umd.js +5 -5
  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 +2 -2
  211. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  212. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  213. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +4 -4
  214. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  215. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
  216. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +1 -1
  217. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  218. package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
  219. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  221. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +1 -1
  222. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  223. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  224. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +8 -8
  225. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  226. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  227. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +4 -4
  228. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  229. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  230. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +1 -1
  231. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  232. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  233. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +2 -2
  234. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  235. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  236. package/bundles/taiga-ui-kit-providers.umd.js +3 -3
  237. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  238. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  239. package/bundles/taiga-ui-kit-tokens.umd.js +38 -38
  240. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  241. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  242. package/bundles/taiga-ui-kit-utils-dom.umd.js +4 -4
  243. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  244. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  245. package/bundles/taiga-ui-kit-utils-files.umd.js +2 -2
  246. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  247. package/bundles/taiga-ui-kit-utils-files.umd.min.js.map +1 -1
  248. package/bundles/taiga-ui-kit-utils-format.umd.js +2 -2
  249. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  250. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  251. package/bundles/taiga-ui-kit-utils-mask.umd.js +12 -12
  252. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  253. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  254. package/bundles/taiga-ui-kit-utils-math.umd.js +2 -2
  255. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  256. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  257. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +7 -7
  258. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  259. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  260. package/bundles/taiga-ui-kit-validators.umd.js +1 -1
  261. package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
  262. package/bundles/taiga-ui-kit-validators.umd.min.js.map +1 -1
  263. package/components/input-slider/input-slider.component.d.ts +4 -1
  264. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  265. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  266. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  267. package/esm2015/abstract/input-slider.js +12 -12
  268. package/esm2015/abstract/slider/slider.js +12 -12
  269. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  270. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  271. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +11 -11
  272. package/esm2015/components/accordion/accordion.component.js +2 -2
  273. package/esm2015/components/action/action.component.js +9 -9
  274. package/esm2015/components/arrow/arrow-options.js +5 -5
  275. package/esm2015/components/arrow/arrow.component.js +2 -2
  276. package/esm2015/components/avatar/avatar-options.js +3 -3
  277. package/esm2015/components/avatar/avatar.component.js +12 -12
  278. package/esm2015/components/badge/badge.component.js +15 -15
  279. package/esm2015/components/badged-content/badged-content.component.js +22 -22
  280. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  281. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +4 -4
  282. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  283. package/esm2015/components/calendar-range/calendar-range.component.js +4 -4
  284. package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
  285. package/esm2015/components/carousel/carousel-buttons.directive.js +4 -4
  286. package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
  287. package/esm2015/components/carousel/carousel.component.js +10 -10
  288. package/esm2015/components/carousel/carousel.directive.js +3 -3
  289. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  290. package/esm2015/components/checkbox-block/checkbox-block.component.js +9 -9
  291. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  292. package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
  293. package/esm2015/components/combo-box/combo-box.component.js +7 -7
  294. package/esm2015/components/combo-box/combo-box.directive.js +2 -2
  295. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  296. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  297. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +3 -3
  298. package/esm2015/components/field-error/field-error.component.js +6 -6
  299. package/esm2015/components/files/file/file.component.js +20 -20
  300. package/esm2015/components/files/files.component.js +2 -2
  301. package/esm2015/components/filter/filter.component.js +4 -4
  302. package/esm2015/components/input/input.component.js +5 -5
  303. package/esm2015/components/input/input.directive.js +2 -2
  304. package/esm2015/components/input-copy/input-copy.component.js +8 -8
  305. package/esm2015/components/input-copy/input-copy.directive.js +2 -2
  306. package/esm2015/components/input-count/input-count-options.js +6 -6
  307. package/esm2015/components/input-count/input-count.component.js +12 -12
  308. package/esm2015/components/input-count/input-count.directive.js +4 -4
  309. package/esm2015/components/input-date/input-date.component.js +9 -9
  310. package/esm2015/components/input-date/input-date.directive.js +3 -3
  311. package/esm2015/components/input-date-range/input-date-range.component.js +13 -13
  312. package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
  313. package/esm2015/components/input-date-time/input-date-time.component.js +15 -15
  314. package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
  315. package/esm2015/components/input-file/file/file.component.js +18 -18
  316. package/esm2015/components/input-file/input-file.component.js +18 -18
  317. package/esm2015/components/input-files/input-files.component.js +16 -16
  318. package/esm2015/components/input-inline/input-inline.component.js +5 -5
  319. package/esm2015/components/input-month/input-month.component.js +4 -4
  320. package/esm2015/components/input-month/input-month.directive.js +3 -3
  321. package/esm2015/components/input-month-range/input-month-range.component.js +5 -5
  322. package/esm2015/components/input-month-range/input-month-range.directive.js +4 -4
  323. package/esm2015/components/input-number/input-number.component.js +21 -21
  324. package/esm2015/components/input-number/input-number.directive.js +3 -3
  325. package/esm2015/components/input-password/input-password-options.js +4 -4
  326. package/esm2015/components/input-password/input-password.component.js +5 -5
  327. package/esm2015/components/input-password/input-password.directive.js +3 -3
  328. package/esm2015/components/input-phone/input-phone.component.js +30 -30
  329. package/esm2015/components/input-phone/input-phone.directive.js +3 -3
  330. package/esm2015/components/input-phone/input-phone.options.js +4 -4
  331. package/esm2015/components/input-phone/input-phone.providers.js +3 -3
  332. package/esm2015/components/input-phone-international/const/countries.js +215 -215
  333. package/esm2015/components/input-phone-international/country-iso-code.js +1 -1
  334. package/esm2015/components/input-phone-international/input-phone-international.component.js +14 -14
  335. package/esm2015/components/input-phone-international/input-phone-international.options.js +2 -2
  336. package/esm2015/components/input-phone-international/tokens/countries-masks.js +2 -2
  337. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +2 -2
  338. package/esm2015/components/input-range/input-range.component.js +17 -17
  339. package/esm2015/components/input-slider/input-slider.component.js +31 -22
  340. package/esm2015/components/input-tag/input-tag-options.js +3 -3
  341. package/esm2015/components/input-tag/input-tag.component.js +23 -23
  342. package/esm2015/components/input-time/input-time-options.js +6 -6
  343. package/esm2015/components/input-time/input-time.component.js +9 -9
  344. package/esm2015/components/island/island.component.js +19 -19
  345. package/esm2015/components/line-clamp/line-clamp-options.js +2 -2
  346. package/esm2015/components/line-clamp/line-clamp.component.js +9 -9
  347. package/esm2015/components/marker-icon/marker-icon.component.js +7 -7
  348. package/esm2015/components/multi-select/hide-selected.pipe.js +2 -2
  349. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  350. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  351. package/esm2015/components/multi-select/multi-select-options.js +3 -3
  352. package/esm2015/components/multi-select/multi-select.component.js +10 -10
  353. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  354. package/esm2015/components/pagination/pagination.component.js +8 -8
  355. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -6
  356. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  357. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +3 -3
  358. package/esm2015/components/progress/progress-bar/progress-bar.component.js +6 -6
  359. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  360. package/esm2015/components/progress/progress-circle/progress-circle.component.js +7 -7
  361. package/esm2015/components/progress/progress-label/progress-label.component.js +2 -2
  362. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  363. package/esm2015/components/progress/utils/calculate-color-segments.js +2 -2
  364. package/esm2015/components/progress/utils/progress-color-segments-async.pipe.js +2 -2
  365. package/esm2015/components/progress/utils/progress-color-segments.pipe.js +2 -2
  366. package/esm2015/components/radio/radio-options.js +3 -3
  367. package/esm2015/components/radio/radio.component.js +7 -7
  368. package/esm2015/components/radio-block/radio-block.component.js +10 -10
  369. package/esm2015/components/radio-group/radio-group.component.js +2 -2
  370. package/esm2015/components/radio-labeled/radio-labeled.component.js +6 -6
  371. package/esm2015/components/radio-list/radio-list.component.js +6 -6
  372. package/esm2015/components/range/range-change.directive.js +10 -10
  373. package/esm2015/components/range/range.component.js +23 -23
  374. package/esm2015/components/rating/rating-options.js +4 -4
  375. package/esm2015/components/rating/rating.component.js +5 -5
  376. package/esm2015/components/select/select-options.js +3 -3
  377. package/esm2015/components/select/select.component.js +4 -4
  378. package/esm2015/components/select/select.directive.js +2 -2
  379. package/esm2015/components/select-option/select-option.component.js +3 -3
  380. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +11 -11
  381. package/esm2015/components/slider/helpers/slider-readonly.directive.js +15 -15
  382. package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +4 -4
  383. package/esm2015/components/slider/slider-old.component.js +2 -2
  384. package/esm2015/components/slider/slider-options.js +4 -4
  385. package/esm2015/components/slider/slider.component.js +9 -9
  386. package/esm2015/components/stepper/step/step.component.js +12 -12
  387. package/esm2015/components/stepper/stepper.component.js +15 -15
  388. package/esm2015/components/tabs/tab/tab.component.js +8 -8
  389. package/esm2015/components/tabs/tab/tab.providers.js +4 -4
  390. package/esm2015/components/tabs/tabs/tabs.component.js +13 -13
  391. package/esm2015/components/tabs/tabs-options.js +2 -2
  392. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
  393. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -2
  394. package/esm2015/components/tabs/underline/underline.component.js +13 -13
  395. package/esm2015/components/tag/tag-options.js +4 -4
  396. package/esm2015/components/tag/tag.component.js +22 -22
  397. package/esm2015/components/text-area/text-area.component.js +17 -17
  398. package/esm2015/components/text-area/text-area.directive.js +2 -2
  399. package/esm2015/components/toggle/toggle-options.js +5 -5
  400. package/esm2015/components/toggle/toggle.component.js +8 -8
  401. package/esm2015/components/tree/components/tree/tree.component.js +3 -3
  402. package/esm2015/components/tree/components/tree-item/tree-item.component.js +4 -4
  403. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  404. package/esm2015/components/tree/directives/tree-children.directive.js +2 -2
  405. package/esm2015/components/tree/directives/tree-controller.directive.js +4 -4
  406. package/esm2015/components/tree/directives/tree-item-controller.directive.js +4 -4
  407. package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
  408. package/esm2015/components/tree/misc/tree.tokens.js +9 -9
  409. package/esm2015/constants/date-time-separator.js +2 -2
  410. package/esm2015/constants/group-class-names.js +10 -10
  411. package/esm2015/constants/icon-blank.js +2 -2
  412. package/esm2015/constants/masks.js +7 -7
  413. package/esm2015/constants/router-link-options.js +2 -2
  414. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +11 -11
  415. package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +5 -5
  416. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +13 -13
  417. package/esm2015/directives/highlight/highlight.directive.js +11 -11
  418. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +12 -12
  419. package/esm2015/directives/present/present.directive.js +6 -6
  420. package/esm2015/directives/project-class/project-class.directive.js +3 -3
  421. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  422. package/esm2015/directives/value-accessor/value-accessor.directive.js +2 -2
  423. package/esm2015/enums/borders.js +1 -1
  424. package/esm2015/enums/dropdown-position.js +1 -1
  425. package/esm2015/enums/file-state.js +1 -1
  426. package/esm2015/enums/marker-icon-mode.js +1 -1
  427. package/esm2015/enums/status.js +1 -1
  428. package/esm2015/enums/step-state.js +1 -1
  429. package/esm2015/enums/text-align.js +1 -1
  430. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  431. package/esm2015/pipes/field-error/field-error-content-pipe.js +4 -4
  432. package/esm2015/pipes/field-error/field-error-pipe.js +6 -6
  433. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
  434. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +3 -3
  435. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
  436. package/esm2015/pipes/stringify/stringify.pipe.js +3 -3
  437. package/esm2015/pipes/stringify-content/stringify-content.pipe.js +2 -2
  438. package/esm2015/providers/month-formatter.provider.js +2 -2
  439. package/esm2015/providers/specific-dropdown-controllers.js +3 -3
  440. package/esm2015/tokens/calendar-data-stream.js +2 -2
  441. package/esm2015/tokens/date-inputs-value-transformers.js +4 -4
  442. package/esm2015/tokens/i18n.js +28 -28
  443. package/esm2015/tokens/items-handlers.js +2 -2
  444. package/esm2015/tokens/mobile-aware.js +2 -2
  445. package/esm2015/tokens/mobile-calendar.js +2 -2
  446. package/esm2015/tokens/month-formatter.js +2 -2
  447. package/esm2015/tokens/tab-margin.js +2 -2
  448. package/esm2015/tokens/tag-status.js +2 -2
  449. package/esm2015/tokens/validation-errors.js +2 -2
  450. package/esm2015/utils/dom/get-word-range.js +5 -5
  451. package/esm2015/utils/files/format-size.js +2 -2
  452. package/esm2015/utils/files/get-accept-array.js +2 -2
  453. package/esm2015/utils/format/string-hash-to-hsl.js +3 -3
  454. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +2 -2
  455. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +6 -6
  456. package/esm2015/utils/mask/create-date-mask.js +5 -5
  457. package/esm2015/utils/mask/create-date-range-mask.js +2 -2
  458. package/esm2015/utils/mask/create-time-mask.js +4 -4
  459. package/esm2015/utils/math/horizontal-direction-to-number.js +3 -3
  460. package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +7 -7
  461. package/esm2015/utils/miscellaneous/get-precision.js +2 -2
  462. package/esm2015/validators/unfinished.validator.js +2 -2
  463. package/esm5/abstract/input-slider.js +12 -12
  464. package/esm5/abstract/slider/slider.js +12 -12
  465. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  466. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  467. package/esm5/components/accordion/accordion-item/accordion-item.component.js +11 -11
  468. package/esm5/components/accordion/accordion.component.js +2 -2
  469. package/esm5/components/action/action.component.js +9 -9
  470. package/esm5/components/arrow/arrow-options.js +5 -5
  471. package/esm5/components/arrow/arrow.component.js +2 -2
  472. package/esm5/components/avatar/avatar-options.js +3 -3
  473. package/esm5/components/avatar/avatar.component.js +12 -12
  474. package/esm5/components/badge/badge.component.js +15 -15
  475. package/esm5/components/badged-content/badged-content.component.js +22 -22
  476. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  477. package/esm5/components/breadcrumbs/breadcrumbs.component.js +4 -4
  478. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  479. package/esm5/components/calendar-range/calendar-range.component.js +4 -4
  480. package/esm5/components/carousel/carousel-autoscroll.directive.js +3 -3
  481. package/esm5/components/carousel/carousel-buttons.directive.js +4 -4
  482. package/esm5/components/carousel/carousel-scroll.directive.js +3 -3
  483. package/esm5/components/carousel/carousel.component.js +10 -10
  484. package/esm5/components/carousel/carousel.directive.js +3 -3
  485. package/esm5/components/checkbox/checkbox.component.js +4 -4
  486. package/esm5/components/checkbox-block/checkbox-block.component.js +9 -9
  487. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  488. package/esm5/components/combo-box/combo-box-strict.directive.js +3 -3
  489. package/esm5/components/combo-box/combo-box.component.js +7 -7
  490. package/esm5/components/combo-box/combo-box.directive.js +2 -2
  491. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  492. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  493. package/esm5/components/data-list-wrapper/data-list-wrapper.js +3 -3
  494. package/esm5/components/field-error/field-error.component.js +6 -6
  495. package/esm5/components/files/file/file.component.js +20 -20
  496. package/esm5/components/files/files.component.js +2 -2
  497. package/esm5/components/filter/filter.component.js +4 -4
  498. package/esm5/components/input/input.component.js +5 -5
  499. package/esm5/components/input/input.directive.js +2 -2
  500. package/esm5/components/input-copy/input-copy.component.js +8 -8
  501. package/esm5/components/input-copy/input-copy.directive.js +2 -2
  502. package/esm5/components/input-count/input-count-options.js +6 -6
  503. package/esm5/components/input-count/input-count.component.js +12 -12
  504. package/esm5/components/input-count/input-count.directive.js +4 -4
  505. package/esm5/components/input-date/input-date.component.js +9 -9
  506. package/esm5/components/input-date/input-date.directive.js +3 -3
  507. package/esm5/components/input-date-range/input-date-range.component.js +13 -13
  508. package/esm5/components/input-date-range/input-date-range.directive.js +3 -3
  509. package/esm5/components/input-date-time/input-date-time.component.js +15 -15
  510. package/esm5/components/input-date-time/input-date-time.directive.js +3 -3
  511. package/esm5/components/input-file/file/file.component.js +18 -18
  512. package/esm5/components/input-file/input-file.component.js +18 -18
  513. package/esm5/components/input-files/input-files.component.js +16 -16
  514. package/esm5/components/input-inline/input-inline.component.js +5 -5
  515. package/esm5/components/input-month/input-month.component.js +4 -4
  516. package/esm5/components/input-month/input-month.directive.js +3 -3
  517. package/esm5/components/input-month-range/input-month-range.component.js +5 -5
  518. package/esm5/components/input-month-range/input-month-range.directive.js +4 -4
  519. package/esm5/components/input-number/input-number.component.js +21 -21
  520. package/esm5/components/input-number/input-number.directive.js +3 -3
  521. package/esm5/components/input-password/input-password-options.js +4 -4
  522. package/esm5/components/input-password/input-password.component.js +5 -5
  523. package/esm5/components/input-password/input-password.directive.js +3 -3
  524. package/esm5/components/input-phone/input-phone.component.js +30 -30
  525. package/esm5/components/input-phone/input-phone.directive.js +3 -3
  526. package/esm5/components/input-phone/input-phone.options.js +4 -4
  527. package/esm5/components/input-phone/input-phone.providers.js +3 -3
  528. package/esm5/components/input-phone-international/const/countries.js +215 -215
  529. package/esm5/components/input-phone-international/country-iso-code.js +1 -1
  530. package/esm5/components/input-phone-international/input-phone-international.component.js +14 -14
  531. package/esm5/components/input-phone-international/input-phone-international.options.js +2 -2
  532. package/esm5/components/input-phone-international/tokens/countries-masks.js +2 -2
  533. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +2 -2
  534. package/esm5/components/input-range/input-range.component.js +17 -17
  535. package/esm5/components/input-slider/input-slider.component.js +35 -22
  536. package/esm5/components/input-tag/input-tag-options.js +3 -3
  537. package/esm5/components/input-tag/input-tag.component.js +23 -23
  538. package/esm5/components/input-time/input-time-options.js +6 -6
  539. package/esm5/components/input-time/input-time.component.js +9 -9
  540. package/esm5/components/island/island.component.js +19 -19
  541. package/esm5/components/line-clamp/line-clamp-options.js +2 -2
  542. package/esm5/components/line-clamp/line-clamp.component.js +9 -9
  543. package/esm5/components/marker-icon/marker-icon.component.js +7 -7
  544. package/esm5/components/multi-select/hide-selected.pipe.js +2 -2
  545. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  546. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  547. package/esm5/components/multi-select/multi-select-options.js +3 -3
  548. package/esm5/components/multi-select/multi-select.component.js +10 -10
  549. package/esm5/components/multi-select-option/multi-select-option.component.js +3 -3
  550. package/esm5/components/pagination/pagination.component.js +8 -8
  551. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -6
  552. package/esm5/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  553. package/esm5/components/pdf-viewer/pdf-viewer.service.js +3 -3
  554. package/esm5/components/progress/progress-bar/progress-bar.component.js +6 -6
  555. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  556. package/esm5/components/progress/progress-circle/progress-circle.component.js +7 -7
  557. package/esm5/components/progress/progress-label/progress-label.component.js +2 -2
  558. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  559. package/esm5/components/progress/utils/calculate-color-segments.js +2 -2
  560. package/esm5/components/progress/utils/progress-color-segments-async.pipe.js +2 -2
  561. package/esm5/components/progress/utils/progress-color-segments.pipe.js +2 -2
  562. package/esm5/components/radio/radio-options.js +3 -3
  563. package/esm5/components/radio/radio.component.js +7 -7
  564. package/esm5/components/radio-block/radio-block.component.js +10 -10
  565. package/esm5/components/radio-group/radio-group.component.js +2 -2
  566. package/esm5/components/radio-labeled/radio-labeled.component.js +6 -6
  567. package/esm5/components/radio-list/radio-list.component.js +6 -6
  568. package/esm5/components/range/range-change.directive.js +12 -12
  569. package/esm5/components/range/range.component.js +23 -23
  570. package/esm5/components/rating/rating-options.js +4 -4
  571. package/esm5/components/rating/rating.component.js +5 -5
  572. package/esm5/components/select/select-options.js +3 -3
  573. package/esm5/components/select/select.component.js +4 -4
  574. package/esm5/components/select/select.directive.js +2 -2
  575. package/esm5/components/select-option/select-option.component.js +3 -3
  576. package/esm5/components/slider/helpers/slider-key-steps.directive.js +11 -11
  577. package/esm5/components/slider/helpers/slider-readonly.directive.js +15 -15
  578. package/esm5/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +4 -4
  579. package/esm5/components/slider/slider-old.component.js +2 -2
  580. package/esm5/components/slider/slider-options.js +4 -4
  581. package/esm5/components/slider/slider.component.js +9 -9
  582. package/esm5/components/stepper/step/step.component.js +12 -12
  583. package/esm5/components/stepper/stepper.component.js +15 -15
  584. package/esm5/components/tabs/tab/tab.component.js +8 -8
  585. package/esm5/components/tabs/tab/tab.providers.js +4 -4
  586. package/esm5/components/tabs/tabs/tabs.component.js +13 -13
  587. package/esm5/components/tabs/tabs-options.js +2 -2
  588. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
  589. package/esm5/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -2
  590. package/esm5/components/tabs/underline/underline.component.js +13 -13
  591. package/esm5/components/tag/tag-options.js +4 -4
  592. package/esm5/components/tag/tag.component.js +22 -22
  593. package/esm5/components/text-area/text-area.component.js +17 -17
  594. package/esm5/components/text-area/text-area.directive.js +2 -2
  595. package/esm5/components/toggle/toggle-options.js +5 -5
  596. package/esm5/components/toggle/toggle.component.js +8 -8
  597. package/esm5/components/tree/components/tree/tree.component.js +3 -3
  598. package/esm5/components/tree/components/tree-item/tree-item.component.js +4 -4
  599. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  600. package/esm5/components/tree/directives/tree-children.directive.js +2 -2
  601. package/esm5/components/tree/directives/tree-controller.directive.js +4 -4
  602. package/esm5/components/tree/directives/tree-item-controller.directive.js +4 -4
  603. package/esm5/components/tree/directives/tree-node.directive.js +3 -3
  604. package/esm5/components/tree/misc/tree.tokens.js +9 -9
  605. package/esm5/constants/date-time-separator.js +2 -2
  606. package/esm5/constants/group-class-names.js +10 -10
  607. package/esm5/constants/icon-blank.js +2 -2
  608. package/esm5/constants/masks.js +7 -7
  609. package/esm5/constants/router-link-options.js +2 -2
  610. package/esm5/directives/dropdown-context/dropdown-context.directive.js +11 -11
  611. package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +7 -7
  612. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +13 -13
  613. package/esm5/directives/highlight/highlight.directive.js +11 -11
  614. package/esm5/directives/lazy-loading/lazy-loading.directive.js +12 -12
  615. package/esm5/directives/present/present.directive.js +6 -6
  616. package/esm5/directives/project-class/project-class.directive.js +3 -3
  617. package/esm5/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  618. package/esm5/directives/value-accessor/value-accessor.directive.js +2 -2
  619. package/esm5/enums/borders.js +1 -1
  620. package/esm5/enums/dropdown-position.js +1 -1
  621. package/esm5/enums/file-state.js +1 -1
  622. package/esm5/enums/marker-icon-mode.js +1 -1
  623. package/esm5/enums/status.js +1 -1
  624. package/esm5/enums/step-state.js +1 -1
  625. package/esm5/enums/text-align.js +1 -1
  626. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  627. package/esm5/pipes/field-error/field-error-content-pipe.js +4 -4
  628. package/esm5/pipes/field-error/field-error-pipe.js +6 -6
  629. package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
  630. package/esm5/pipes/filter-by-input/filter-by-input.base.js +3 -3
  631. package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
  632. package/esm5/pipes/stringify/stringify.pipe.js +3 -3
  633. package/esm5/pipes/stringify-content/stringify-content.pipe.js +2 -2
  634. package/esm5/providers/month-formatter.provider.js +2 -2
  635. package/esm5/providers/specific-dropdown-controllers.js +3 -3
  636. package/esm5/tokens/calendar-data-stream.js +2 -2
  637. package/esm5/tokens/date-inputs-value-transformers.js +4 -4
  638. package/esm5/tokens/i18n.js +28 -28
  639. package/esm5/tokens/items-handlers.js +2 -2
  640. package/esm5/tokens/mobile-aware.js +2 -2
  641. package/esm5/tokens/mobile-calendar.js +2 -2
  642. package/esm5/tokens/month-formatter.js +2 -2
  643. package/esm5/tokens/tab-margin.js +2 -2
  644. package/esm5/tokens/tag-status.js +2 -2
  645. package/esm5/tokens/validation-errors.js +2 -2
  646. package/esm5/utils/dom/get-word-range.js +5 -5
  647. package/esm5/utils/files/format-size.js +2 -2
  648. package/esm5/utils/files/get-accept-array.js +2 -2
  649. package/esm5/utils/format/string-hash-to-hsl.js +3 -3
  650. package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +2 -2
  651. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +6 -6
  652. package/esm5/utils/mask/create-date-mask.js +5 -5
  653. package/esm5/utils/mask/create-date-range-mask.js +2 -2
  654. package/esm5/utils/mask/create-time-mask.js +2 -2
  655. package/esm5/utils/math/horizontal-direction-to-number.js +3 -3
  656. package/esm5/utils/miscellaneous/create-default-day-range-periods.js +7 -7
  657. package/esm5/utils/miscellaneous/get-precision.js +2 -2
  658. package/esm5/validators/unfinished.validator.js +2 -2
  659. package/fesm2015/taiga-ui-kit-abstract.js +22 -22
  660. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  661. package/fesm2015/taiga-ui-kit-components-accordion.js +13 -13
  662. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  663. package/fesm2015/taiga-ui-kit-components-action.js +8 -8
  664. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  665. package/fesm2015/taiga-ui-kit-components-arrow.js +5 -5
  666. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  667. package/fesm2015/taiga-ui-kit-components-avatar.js +13 -13
  668. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  669. package/fesm2015/taiga-ui-kit-components-badge.js +14 -14
  670. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  671. package/fesm2015/taiga-ui-kit-components-badged-content.js +21 -21
  672. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  673. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +7 -7
  674. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  675. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  676. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  677. package/fesm2015/taiga-ui-kit-components-calendar-range.js +3 -3
  678. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  679. package/fesm2015/taiga-ui-kit-components-carousel.js +18 -18
  680. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  681. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +8 -8
  682. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  683. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  684. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  685. package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -3
  686. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  687. package/fesm2015/taiga-ui-kit-components-combo-box.js +9 -9
  688. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  689. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  690. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  691. package/fesm2015/taiga-ui-kit-components-field-error.js +5 -5
  692. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  693. package/fesm2015/taiga-ui-kit-components-files.js +20 -20
  694. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  695. package/fesm2015/taiga-ui-kit-components-filter.js +3 -3
  696. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  697. package/fesm2015/taiga-ui-kit-components-input-copy.js +8 -8
  698. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  699. package/fesm2015/taiga-ui-kit-components-input-count.js +19 -19
  700. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  701. package/fesm2015/taiga-ui-kit-components-input-date-range.js +14 -14
  702. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  703. package/fesm2015/taiga-ui-kit-components-input-date-time.js +16 -16
  704. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  705. package/fesm2015/taiga-ui-kit-components-input-date.js +10 -10
  706. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  707. package/fesm2015/taiga-ui-kit-components-input-file.js +34 -34
  708. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  709. package/fesm2015/taiga-ui-kit-components-input-files.js +15 -15
  710. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  711. package/fesm2015/taiga-ui-kit-components-input-inline.js +4 -4
  712. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  713. package/fesm2015/taiga-ui-kit-components-input-month-range.js +7 -7
  714. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  715. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -5
  716. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  717. package/fesm2015/taiga-ui-kit-components-input-number.js +22 -22
  718. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  719. package/fesm2015/taiga-ui-kit-components-input-password.js +9 -9
  720. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  721. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +230 -230
  722. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  723. package/fesm2015/taiga-ui-kit-components-input-phone.js +36 -36
  724. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  725. package/fesm2015/taiga-ui-kit-components-input-range.js +16 -16
  726. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  727. package/fesm2015/taiga-ui-kit-components-input-slider.js +30 -22
  728. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  729. package/fesm2015/taiga-ui-kit-components-input-tag.js +24 -24
  730. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  731. package/fesm2015/taiga-ui-kit-components-input-time.js +13 -13
  732. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  733. package/fesm2015/taiga-ui-kit-components-input.js +5 -5
  734. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  735. package/fesm2015/taiga-ui-kit-components-island.js +18 -18
  736. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  737. package/fesm2015/taiga-ui-kit-components-line-clamp.js +9 -9
  738. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  739. package/fesm2015/taiga-ui-kit-components-marker-icon.js +6 -6
  740. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  741. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
  742. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  743. package/fesm2015/taiga-ui-kit-components-multi-select.js +17 -17
  744. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
  746. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +10 -10
  748. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-progress.js +26 -26
  750. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-radio-block.js +9 -9
  752. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-radio-group.js +1 -1
  754. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -5
  756. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components-radio-list.js +5 -5
  758. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-components-radio.js +8 -8
  760. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-components-range.js +31 -31
  762. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  763. package/fesm2015/taiga-ui-kit-components-rating.js +7 -7
  764. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  765. package/fesm2015/taiga-ui-kit-components-select-option.js +2 -2
  766. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-components-select.js +6 -6
  768. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-components-slider.js +39 -39
  770. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-components-stepper.js +25 -25
  772. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  773. package/fesm2015/taiga-ui-kit-components-tabs.js +41 -41
  774. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  775. package/fesm2015/taiga-ui-kit-components-tag.js +24 -24
  776. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  777. package/fesm2015/taiga-ui-kit-components-text-area.js +17 -17
  778. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  779. package/fesm2015/taiga-ui-kit-components-toggle.js +11 -11
  780. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  781. package/fesm2015/taiga-ui-kit-components-tree.js +24 -24
  782. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  783. package/fesm2015/taiga-ui-kit-constants.js +18 -18
  784. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  785. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +10 -10
  786. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  787. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js +4 -4
  788. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  789. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +12 -12
  790. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  791. package/fesm2015/taiga-ui-kit-directives-highlight.js +10 -10
  792. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  793. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +11 -11
  794. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  795. package/fesm2015/taiga-ui-kit-directives-present.js +5 -5
  796. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  797. package/fesm2015/taiga-ui-kit-directives-project-class.js +2 -2
  798. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  799. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  800. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  801. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +1 -1
  802. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  803. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  804. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  805. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  806. package/fesm2015/taiga-ui-kit-pipes-field-error.js +8 -8
  807. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  808. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +4 -4
  809. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  810. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +1 -1
  811. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  812. package/fesm2015/taiga-ui-kit-pipes-stringify.js +2 -2
  813. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  814. package/fesm2015/taiga-ui-kit-providers.js +3 -3
  815. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  816. package/fesm2015/taiga-ui-kit-tokens.js +38 -38
  817. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  818. package/fesm2015/taiga-ui-kit-utils-dom.js +4 -4
  819. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  820. package/fesm2015/taiga-ui-kit-utils-files.js +2 -2
  821. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  822. package/fesm2015/taiga-ui-kit-utils-format.js +2 -2
  823. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  824. package/fesm2015/taiga-ui-kit-utils-mask.js +14 -14
  825. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  826. package/fesm2015/taiga-ui-kit-utils-math.js +2 -2
  827. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  828. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +7 -7
  829. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  830. package/fesm2015/taiga-ui-kit-validators.js +1 -1
  831. package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
  832. package/fesm5/taiga-ui-kit-abstract.js +22 -22
  833. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  834. package/fesm5/taiga-ui-kit-components-accordion.js +13 -13
  835. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  836. package/fesm5/taiga-ui-kit-components-action.js +8 -8
  837. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  838. package/fesm5/taiga-ui-kit-components-arrow.js +5 -5
  839. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  840. package/fesm5/taiga-ui-kit-components-avatar.js +13 -13
  841. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  842. package/fesm5/taiga-ui-kit-components-badge.js +14 -14
  843. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  844. package/fesm5/taiga-ui-kit-components-badged-content.js +21 -21
  845. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  846. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +7 -7
  847. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  848. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  849. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  850. package/fesm5/taiga-ui-kit-components-calendar-range.js +3 -3
  851. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  852. package/fesm5/taiga-ui-kit-components-carousel.js +18 -18
  853. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  854. package/fesm5/taiga-ui-kit-components-checkbox-block.js +8 -8
  855. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  856. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  857. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-checkbox.js +3 -3
  859. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-combo-box.js +9 -9
  861. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +4 -4
  863. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-field-error.js +5 -5
  865. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-files.js +20 -20
  867. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-filter.js +3 -3
  869. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  870. package/fesm5/taiga-ui-kit-components-input-copy.js +8 -8
  871. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  872. package/fesm5/taiga-ui-kit-components-input-count.js +19 -19
  873. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  874. package/fesm5/taiga-ui-kit-components-input-date-range.js +14 -14
  875. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  876. package/fesm5/taiga-ui-kit-components-input-date-time.js +16 -16
  877. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  878. package/fesm5/taiga-ui-kit-components-input-date.js +10 -10
  879. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  880. package/fesm5/taiga-ui-kit-components-input-file.js +34 -34
  881. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  882. package/fesm5/taiga-ui-kit-components-input-files.js +15 -15
  883. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  884. package/fesm5/taiga-ui-kit-components-input-inline.js +4 -4
  885. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  886. package/fesm5/taiga-ui-kit-components-input-month-range.js +7 -7
  887. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  888. package/fesm5/taiga-ui-kit-components-input-month.js +5 -5
  889. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  890. package/fesm5/taiga-ui-kit-components-input-number.js +22 -22
  891. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  892. package/fesm5/taiga-ui-kit-components-input-password.js +9 -9
  893. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  894. package/fesm5/taiga-ui-kit-components-input-phone-international.js +230 -230
  895. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  896. package/fesm5/taiga-ui-kit-components-input-phone.js +36 -36
  897. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  898. package/fesm5/taiga-ui-kit-components-input-range.js +16 -16
  899. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  900. package/fesm5/taiga-ui-kit-components-input-slider.js +34 -22
  901. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  902. package/fesm5/taiga-ui-kit-components-input-tag.js +24 -24
  903. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  904. package/fesm5/taiga-ui-kit-components-input-time.js +13 -13
  905. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  906. package/fesm5/taiga-ui-kit-components-input.js +5 -5
  907. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  908. package/fesm5/taiga-ui-kit-components-island.js +18 -18
  909. package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
  910. package/fesm5/taiga-ui-kit-components-line-clamp.js +9 -9
  911. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  912. package/fesm5/taiga-ui-kit-components-marker-icon.js +6 -6
  913. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  914. package/fesm5/taiga-ui-kit-components-multi-select-option.js +2 -2
  915. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  916. package/fesm5/taiga-ui-kit-components-multi-select.js +17 -17
  917. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  918. package/fesm5/taiga-ui-kit-components-pagination.js +7 -7
  919. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  920. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -10
  921. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  922. package/fesm5/taiga-ui-kit-components-progress.js +26 -26
  923. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  924. package/fesm5/taiga-ui-kit-components-radio-block.js +9 -9
  925. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  926. package/fesm5/taiga-ui-kit-components-radio-group.js +1 -1
  927. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  928. package/fesm5/taiga-ui-kit-components-radio-labeled.js +5 -5
  929. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  930. package/fesm5/taiga-ui-kit-components-radio-list.js +5 -5
  931. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  932. package/fesm5/taiga-ui-kit-components-radio.js +8 -8
  933. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  934. package/fesm5/taiga-ui-kit-components-range.js +33 -33
  935. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  936. package/fesm5/taiga-ui-kit-components-rating.js +7 -7
  937. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  938. package/fesm5/taiga-ui-kit-components-select-option.js +2 -2
  939. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  940. package/fesm5/taiga-ui-kit-components-select.js +6 -6
  941. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  942. package/fesm5/taiga-ui-kit-components-slider.js +39 -39
  943. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  944. package/fesm5/taiga-ui-kit-components-stepper.js +25 -25
  945. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  946. package/fesm5/taiga-ui-kit-components-tabs.js +41 -41
  947. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  948. package/fesm5/taiga-ui-kit-components-tag.js +24 -24
  949. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  950. package/fesm5/taiga-ui-kit-components-text-area.js +17 -17
  951. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  952. package/fesm5/taiga-ui-kit-components-toggle.js +11 -11
  953. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  954. package/fesm5/taiga-ui-kit-components-tree.js +24 -24
  955. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  956. package/fesm5/taiga-ui-kit-constants.js +18 -18
  957. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  958. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +10 -10
  959. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  960. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js +6 -6
  961. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  962. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +12 -12
  963. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  964. package/fesm5/taiga-ui-kit-directives-highlight.js +10 -10
  965. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  966. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +11 -11
  967. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  968. package/fesm5/taiga-ui-kit-directives-present.js +5 -5
  969. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  970. package/fesm5/taiga-ui-kit-directives-project-class.js +2 -2
  971. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  972. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  973. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  974. package/fesm5/taiga-ui-kit-directives-value-accessor.js +1 -1
  975. package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  976. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  977. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  978. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  979. package/fesm5/taiga-ui-kit-pipes-field-error.js +8 -8
  980. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  981. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js +4 -4
  982. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  983. package/fesm5/taiga-ui-kit-pipes-stringify-content.js +1 -1
  984. package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  985. package/fesm5/taiga-ui-kit-pipes-stringify.js +2 -2
  986. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  987. package/fesm5/taiga-ui-kit-providers.js +3 -3
  988. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  989. package/fesm5/taiga-ui-kit-tokens.js +38 -38
  990. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  991. package/fesm5/taiga-ui-kit-utils-dom.js +4 -4
  992. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  993. package/fesm5/taiga-ui-kit-utils-files.js +2 -2
  994. package/fesm5/taiga-ui-kit-utils-files.js.map +1 -1
  995. package/fesm5/taiga-ui-kit-utils-format.js +2 -2
  996. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  997. package/fesm5/taiga-ui-kit-utils-mask.js +12 -12
  998. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  999. package/fesm5/taiga-ui-kit-utils-math.js +2 -2
  1000. package/fesm5/taiga-ui-kit-utils-math.js.map +1 -1
  1001. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +7 -7
  1002. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  1003. package/fesm5/taiga-ui-kit-validators.js +1 -1
  1004. package/fesm5/taiga-ui-kit-validators.js.map +1 -1
  1005. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-field-error.js","sources":["ng://@taiga-ui/kit/components/field-error/field-error.component.ts","ng://@taiga-ui/kit/components/field-error/field-error.module.ts","ng://@taiga-ui/kit/components/field-error/taiga-ui-kit-components-field-error.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional,\n Self,\n} from '@angular/core';\nimport {\n AbstractControl,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiDefaultProp, tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, isObservable, merge, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n// @dynamic\n@Component({\n selector: 'tui-field-error',\n // @bad TODO: find a way to get 'touched' state change\n // https://github.com/angular/angular/issues/10887\n changeDetection: ChangeDetectionStrategy.Default,\n templateUrl: './field-error.template.html',\n styleUrls: ['./field-error.style.less'],\n})\nexport class TuiFieldErrorComponent {\n @Input()\n @tuiDefaultProp()\n order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n PolymorpheusContent | Observable<PolymorpheusContent>\n >,\n ) {\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n @tuiPure\n get change$(): Observable<unknown> {\n return merge(\n this.control?.valueChanges || EMPTY,\n this.control?.statusChanges || EMPTY,\n );\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError | null> {\n const {errorId} = this;\n\n if (!errorId) {\n return of(null);\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control && this.control.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control && this.control.touched;\n }\n\n private get control(): AbstractControl | null {\n if (this.ngControl) {\n return this.ngControl.control;\n }\n\n if (this.formArrayName) {\n return this.formArrayName.control;\n }\n\n if (this.formGroupName) {\n return this.formGroupName.control;\n }\n\n if (this.formGroup) {\n return this.formGroup.control;\n }\n\n return null;\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || '';\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: PolymorpheusContent | Observable<PolymorpheusContent>,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === 'string') {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || '', firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || '', firstError));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {ReactiveFormsModule} from '@angular/forms';\nimport {TuiErrorModule} from '@taiga-ui/core';\n\nimport {TuiFieldErrorComponent} from './field-error.component';\n\n/**\n * @deprecated use {@link TuiFieldErrorPipeModule} (from '@taiga-ui/kit') instead\n */\n@NgModule({\n imports: [CommonModule, TuiErrorModule, ReactiveFormsModule],\n declarations: [TuiFieldErrorComponent],\n exports: [TuiFieldErrorComponent],\n})\nexport class TuiFieldErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from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AAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QAErB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QAErB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;QAE1B,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OAtBzB,sBAAsB,CAsIlC;IAAD,6BAAC;CAtID;;ACxBA;;;;IAQA;KAAmC;IAAtB,mBAAmB;QAL/B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,mBAAmB,CAAC;YAC5D,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACfA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-field-error.js","sources":["ng://@taiga-ui/kit/components/field-error/field-error.component.ts","ng://@taiga-ui/kit/components/field-error/field-error.module.ts","ng://@taiga-ui/kit/components/field-error/taiga-ui-kit-components-field-error.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional,\n Self,\n} from '@angular/core';\nimport {\n AbstractControl,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiDefaultProp, tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, isObservable, merge, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n// @dynamic\n@Component({\n selector: `tui-field-error`,\n // @bad TODO: find a way to get 'touched' state change\n // https://github.com/angular/angular/issues/10887\n changeDetection: ChangeDetectionStrategy.Default,\n templateUrl: `./field-error.template.html`,\n styleUrls: [`./field-error.style.less`],\n})\nexport class TuiFieldErrorComponent {\n @Input()\n @tuiDefaultProp()\n order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n PolymorpheusContent | Observable<PolymorpheusContent>\n >,\n ) {\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n @tuiPure\n get change$(): Observable<unknown> {\n return merge(\n this.control?.valueChanges || EMPTY,\n this.control?.statusChanges || EMPTY,\n );\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError | null> {\n const {errorId} = this;\n\n if (!errorId) {\n return of(null);\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control && this.control.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control && this.control.touched;\n }\n\n private get control(): AbstractControl | null {\n if (this.ngControl) {\n return this.ngControl.control;\n }\n\n if (this.formArrayName) {\n return this.formArrayName.control;\n }\n\n if (this.formGroupName) {\n return this.formGroupName.control;\n }\n\n if (this.formGroup) {\n return this.formGroup.control;\n }\n\n return null;\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || ``;\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: PolymorpheusContent | Observable<PolymorpheusContent>,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === `string`) {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || ``, firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || ``, firstError));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {ReactiveFormsModule} from '@angular/forms';\nimport {TuiErrorModule} from '@taiga-ui/core';\n\nimport {TuiFieldErrorComponent} from './field-error.component';\n\n/**\n * @deprecated use {@link TuiFieldErrorPipeModule} (from '@taiga-ui/kit') instead\n */\n@NgModule({\n imports: [CommonModule, TuiErrorModule, ReactiveFormsModule],\n declarations: [TuiFieldErrorComponent],\n exports: [TuiFieldErrorComponent],\n})\nexport class TuiFieldErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAqBA,IAAM,YAAY,GAAG,EAAE,CAAC;AACxB;;IAcI,gCAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3B,kBAAa,GAAb,aAAa,CAAsB;QAInC,kBAAa,GAAb,aAAa,CAAsB;QAInC,cAAS,GAAT,SAAS,CAA2B;QAEpC,qBAAgB,GAAhB,gBAAgB,CAGhC;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AkB,CAAC,CAAA;QAE1B,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OAtBzB,sBAAsB,CAsIlC;IAAD,6BAAC;CAtID;;ACxBA;;;;IAQA;KAAmC;IAAtB,mBAAmB;QAL/B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,mBAAmB,CAAC;YAC5D,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACfA;;;;;;"}
@@ -17,24 +17,24 @@ var TuiFileComponent = /** @class */ (function () {
17
17
  this.sanitizer = sanitizer;
18
18
  this.fileTexts$ = fileTexts$;
19
19
  this.units$ = units$;
20
- this.file = { name: '' };
21
- this.state = 'normal';
22
- this.size = 'm';
20
+ this.file = { name: "" };
21
+ this.state = "normal";
22
+ this.size = "m";
23
23
  this.showSize = true;
24
- this.leftContent = '';
24
+ this.leftContent = "";
25
25
  this.removed = new EventEmitter();
26
26
  this.focused = false;
27
27
  }
28
28
  Object.defineProperty(TuiFileComponent.prototype, "preview", {
29
29
  get: function () {
30
- return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';
30
+ return this.isBig ? this.createPreview(this.file, this.sanitizer) : "";
31
31
  },
32
32
  enumerable: true,
33
33
  configurable: true
34
34
  });
35
35
  Object.defineProperty(TuiFileComponent.prototype, "isBig", {
36
36
  get: function () {
37
- return this.size === 'l';
37
+ return this.size === "l";
38
38
  },
39
39
  enumerable: true,
40
40
  configurable: true
@@ -70,15 +70,15 @@ var TuiFileComponent = /** @class */ (function () {
70
70
  Object.defineProperty(TuiFileComponent.prototype, "icon", {
71
71
  get: function () {
72
72
  if (this.state === "normal" /* Normal */ && this.isBig) {
73
- return 'tuiIconDefaultDocLarge';
73
+ return "tuiIconDefaultDocLarge";
74
74
  }
75
75
  switch (this.state) {
76
76
  case "deleted" /* Deleted */:
77
- return 'tuiIconTrashLarge';
77
+ return "tuiIconTrashLarge";
78
78
  case "error" /* Error */:
79
- return 'tuiIconAlertCircleLarge';
79
+ return "tuiIconAlertCircleLarge";
80
80
  default:
81
- return 'tuiIconCheckCircleLarge';
81
+ return "tuiIconCheckCircleLarge";
82
82
  }
83
83
  },
84
84
  enumerable: true,
@@ -86,7 +86,7 @@ var TuiFileComponent = /** @class */ (function () {
86
86
  });
87
87
  Object.defineProperty(TuiFileComponent.prototype, "src", {
88
88
  get: function () {
89
- return this.file.src || '';
89
+ return this.file.src || "";
90
90
  },
91
91
  enumerable: true,
92
92
  configurable: true
@@ -128,7 +128,7 @@ var TuiFileComponent = /** @class */ (function () {
128
128
  TuiFileComponent.prototype.calculateContent$ = function (state, file, fileTexts$) {
129
129
  return state === "error" /* Error */ && !file.content
130
130
  ? fileTexts$.pipe(map(function (texts) { return texts.loadingError; }))
131
- : of(this.file.content || '');
131
+ : of(this.file.content || "");
132
132
  };
133
133
  TuiFileComponent.prototype.calculateFileSize$ = function (file, units$) {
134
134
  return units$.pipe(map(function (units) { return formatSize(units, file.size); }));
@@ -138,16 +138,16 @@ var TuiFileComponent = /** @class */ (function () {
138
138
  return file.src;
139
139
  }
140
140
  // TODO: iframe warning
141
- if (file instanceof File && file.type && file.type.startsWith('image/')) {
141
+ if (file instanceof File && file.type && file.type.startsWith("image/")) {
142
142
  return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));
143
143
  }
144
- return '';
144
+ return "";
145
145
  };
146
146
  TuiFileComponent.prototype.getName = function (file) {
147
- return file.name.split('.').slice(0, -1).join('.');
147
+ return file.name.split(".").slice(0, -1).join(".");
148
148
  };
149
149
  TuiFileComponent.prototype.getType = function (file) {
150
- return "." + file.name.split('.').pop() || '';
150
+ return "." + file.name.split(".").pop() || "";
151
151
  };
152
152
  TuiFileComponent.ctorParameters = function () { return [
153
153
  { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
@@ -179,10 +179,10 @@ var TuiFileComponent = /** @class */ (function () {
179
179
  Output()
180
180
  ], TuiFileComponent.prototype, "removed", void 0);
181
181
  __decorate([
182
- HostBinding('class._focused')
182
+ HostBinding("class._focused")
183
183
  ], TuiFileComponent.prototype, "focused", void 0);
184
184
  __decorate([
185
- HostBinding('class._link')
185
+ HostBinding("class._link")
186
186
  ], TuiFileComponent.prototype, "src", null);
187
187
  __decorate([
188
188
  tuiPure
@@ -201,7 +201,7 @@ var TuiFileComponent = /** @class */ (function () {
201
201
  ], TuiFileComponent.prototype, "getType", null);
202
202
  TuiFileComponent = __decorate([
203
203
  Component({
204
- selector: 'tui-file',
204
+ selector: "tui-file",
205
205
  changeDetection: ChangeDetectionStrategy.OnPush,
206
206
  template: "<ng-container\n *ngIf=\"!src; else withLink\"\n [ngTemplateOutlet]=\"fileInfoTemplate\"\n></ng-container>\n\n<ng-template #withLink>\n <a\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"t-link\"\n [href]=\"src\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"fileInfoTemplate\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div\n polymorpheus-outlet\n class=\"t-preview\"\n [class.t-preview_big]=\"isBig\"\n [content]=\"leftContent || defaultLeftContent\"\n ></div>\n <div class=\"t-wrapper\">\n <div class=\"t-text\">\n <div\n automation-id=\"tui-file__name\"\n class=\"t-name\"\n >\n {{ name }}\n </div>\n <div\n automation-id=\"tui-file__type\"\n class=\"t-type\"\n >\n {{ type }}\n </div>\n <div\n *ngIf=\"showSize && (fileSize$ | async) as fileSize\"\n automation-id=\"tui-file__size\"\n class=\"t-size\"\n >\n {{ fileSize }}\n </div>\n </div>\n <div\n *ngIf=\"content$ | async as content\"\n polymorpheus-outlet\n automation-id=\"tui-file__content\"\n class=\"t-content\"\n [content]=\"content\"\n ></div>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"allowDelete\">\n <button\n *ngIf=\"fileTexts$ | async as texts\"\n automation-id=\"tui-file__remove\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconCloseLarge\"\n appearance=\"icon\"\n class=\"t-remove\"\n [title]=\"texts.remove\"\n [class.t-remove_mobile]=\"isMobile\"\n (click.prevent)=\"onRemoveClick()\"\n ></button>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultLeftContent>\n <img\n *ngIf=\"preview; else loader\"\n automation-id=\"tui-file__preview\"\n class=\"t-image\"\n [src]=\"preview\"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf=\"isLoading; else svg\"\n automation-id=\"tui-file__loader\"\n class=\"t-loader\"\n [inheritColor]=\"isBig\"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n automation-id=\"tui-file__icon\"\n class=\"t-icon\"\n [class.t-icon_deleted]=\"isDeleted\"\n [class.t-icon_error]=\"isError\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n</ng-template>\n",
207
207
  styles: [":host{position:relative;display:flex;align-items:center;font:var(--tui-font-text-m);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .t-remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.t-link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.t-link:hover{background-color:var(--tui-base-02)}.t-preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:var(--tui-base-06)}.t-preview_big{width:4rem;height:4rem;margin-right:1rem}.t-preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:var(--tui-base-08);opacity:.08}.t-image{max-width:100%;max-height:100%}.t-loader{position:absolute;top:0;left:0;width:100%;height:100%}.t-icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.t-icon_error{color:var(--tui-error-fill)}.t-icon_deleted{color:var(--tui-base-06)}.t-remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.t-remove:focus,.t-remove_mobile{opacity:1}.t-wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.t-text{display:flex}.t-size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.t-type{flex-shrink:0}.t-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]
@@ -246,7 +246,7 @@ var TuiFilesComponent = /** @class */ (function () {
246
246
  ], TuiFilesComponent.prototype, "max", void 0);
247
247
  TuiFilesComponent = __decorate([
248
248
  Component({
249
- selector: 'tui-files',
249
+ selector: "tui-files",
250
250
  template: "<ng-container *ngIf=\"items?.changes | async\"></ng-container>\n\n<section\n tuiGroup\n orientation=\"vertical\"\n class=\"t-files\"\n [collapsed]=\"true\"\n>\n <ng-content></ng-content>\n <ng-container *ngFor=\"let item of items; let index = index\">\n <ng-container\n *ngIf=\"!max || index < max\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n </ng-container>\n <tui-expand\n *ngIf=\"hasExtraItems\"\n [expanded]=\"!hidden\"\n >\n <div class=\"t-extra-items\">\n <ng-container *ngFor=\"let item of items; let index = index\">\n <ng-container\n *ngIf=\"max && index >= max\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n </ng-container>\n </div>\n </tui-expand>\n <button\n *ngIf=\"hasExtraItems\"\n tuiButton\n appearance=\"outline\"\n size=\"m\"\n class=\"t-button\"\n [class.t-button_collapsed]=\"hidden\"\n (click)=\"toggle()\"\n >\n {{ (hidden ? showAllText$ : hideText$) | async }}\n </button>\n</section>\n",
251
251
  changeDetection: ChangeDetectionStrategy.OnPush,
252
252
  encapsulation: ViewEncapsulation.None,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-files.js","sources":["ng://@taiga-ui/kit/components/files/file/file.component.ts","ng://@taiga-ui/kit/components/files/files.component.ts","ng://@taiga-ui/kit/components/files/files.module.ts","ng://@taiga-ui/kit/components/files/taiga-ui-kit-components-files.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, TuiFileStateT} from '@taiga-ui/kit/enums';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\ntype FileTexts = 'loadingError' | 'preview' | 'remove';\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: TuiFileStateT = 'normal';\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Input()\n @tuiDefaultProp()\n leftContent: PolymorpheusContent = '';\n\n @Output()\n readonly removed = 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<Record<FileTexts, string>>,\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 allowDelete(): boolean {\n return !!this.removed.observers.length;\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.getName(this.file);\n }\n\n get type(): string {\n return this.getType(this.file);\n }\n\n get content$(): Observable<PolymorpheusContent> {\n return this.calculateContent$(this.state, this.file, this.fileTexts$);\n }\n\n get fileSize$(): Observable<string | null> {\n return this.calculateFileSize$(this.file, this.units$);\n }\n\n onRemoveClick(): void {\n this.removed.emit();\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: TuiFileStateT,\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 @tuiPure\n private getName(file: TuiFileLike): string {\n return file.name.split('.').slice(0, -1).join('.');\n }\n\n @tuiPure\n private getType(file: TuiFileLike): string {\n return `.${file.name.split('.').pop()}` || '';\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Inject,\n Input,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiItemDirective} from '@taiga-ui/cdk';\nimport {TUI_HIDE_TEXT, TUI_SHOW_ALL_TEXT} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-files',\n templateUrl: './files.component.html',\n styleUrls: ['./files.component.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiFilesComponent {\n @ContentChildren(TuiItemDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<Record<string, unknown>>> | null = null;\n\n @Input()\n @tuiDefaultProp()\n max = 0;\n\n hidden = true;\n\n constructor(\n @Inject(TUI_HIDE_TEXT) readonly hideText$: Observable<string>,\n @Inject(TUI_SHOW_ALL_TEXT) readonly showAllText$: Observable<string>,\n ) {}\n\n get hasExtraItems(): boolean {\n return !!this.max && (this.items?.length ?? 0) > this.max;\n }\n\n toggle(): void {\n this.hidden = !this.hidden;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusVisibleModule, TuiItemDirective, TuiItemModule} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiExpandModule,\n TuiGroupModule,\n TuiLoaderModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFileComponent} from './file/file.component';\nimport {TuiFilesComponent} from './files.component';\n\n@NgModule({\n declarations: [TuiFilesComponent, TuiFileComponent],\n imports: [\n CommonModule,\n TuiGroupModule,\n TuiLoaderModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiFocusVisibleModule,\n TuiButtonModule,\n TuiItemModule,\n TuiExpandModule,\n ],\n exports: [TuiFilesComponent, TuiFileComponent, TuiItemDirective],\n})\nexport class TuiFilesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAsBA;;IAkCI,0BACoC,QAAiB,EACV,SAAuB,EAErD,UAAiD,EAEzC,MAA4C;QAL7B,aAAQ,GAAR,QAAQ,CAAS;QACV,cAAS,GAAT,SAAS,CAAc;QAErD,eAAU,GAAV,UAAU,CAAuC;QAEzC,WAAM,GAAN,MAAM,CAAsC;QA9BjE,SAAI,GAAgB,EAAC,IAAI,EAAE,EAAE,EAAC,CAAC;QAI/B,UAAK,GAAkB,QAAQ,CAAC;QAIhC,SAAI,GAAa,GAAG,CAAC;QAIrB,aAAQ,GAAG,IAAI,CAAC;QAIhB,gBAAW,GAAwB,EAAE,CAAC;QAG7B,YAAO,GAAG,IAAI,YAAY,EAAQ,CAAC;QAG5C,YAAO,GAAG,KAAK,CAAC;KASZ;IAEJ,sBAAI,qCAAO;aAAX;YACI,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;SAC1E;;;OAAA;IAED,sBAAI,mCAAK;aAAT;YACI,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;SAC5B;;;OAAA;IAED,sBAAI,uCAAS;aAAb;YACI,OAAO,IAAI,CAAC,KAAK,6BAA0B;SAC9C;;;OAAA;IAED,sBAA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CAAC,IAAI,CAAC,GAAG,IAAI,aAAC,IAAI,CAAC,KAAK,0CAAE,MAAM,mCAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC;SAC7D;;;OAAA;IAED,kCAAM,GAAN;QACI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;KAC9B;;gBAV8C,UAAU,uBAApD,MAAM,SAAC,aAAa;gBAC6B,UAAU,uBAA3D,MAAM,SAAC,iBAAiB;;IAV7B;QADC,eAAe,CAAC,gBAAgB,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC;oDACuB;IAI9E;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;kDACT;IANC,iBAAiB;QAP7B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;YACrB,iqCAAqC;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;SACxC,CAAC;QAYO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAZrB,iBAAiB,CAsB7B;IAAD,wBAAC;CAtBD;;;ICSA;KAA8B;IAAjB,cAAc;QAf1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACnD,OAAO,EAAE;gBACL,YAAY;gBACZ,cAAc;gBACd,eAAe;gBACf,kBAAkB;gBAClB,YAAY;gBACZ,qBAAqB;gBACrB,eAAe;gBACf,aAAa;gBACb,eAAe;aAClB;YACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;SACnE,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;AC9BA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-files.js","sources":["ng://@taiga-ui/kit/components/files/file/file.component.ts","ng://@taiga-ui/kit/components/files/files.component.ts","ng://@taiga-ui/kit/components/files/files.module.ts","ng://@taiga-ui/kit/components/files/taiga-ui-kit-components-files.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, TuiFileStateT} from '@taiga-ui/kit/enums';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\ntype FileTexts = 'loadingError' | 'preview' | 'remove';\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: TuiFileStateT = `normal`;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Input()\n @tuiDefaultProp()\n leftContent: PolymorpheusContent = ``;\n\n @Output()\n readonly removed = 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<Record<FileTexts, string>>,\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 allowDelete(): boolean {\n return !!this.removed.observers.length;\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.getName(this.file);\n }\n\n get type(): string {\n return this.getType(this.file);\n }\n\n get content$(): Observable<PolymorpheusContent> {\n return this.calculateContent$(this.state, this.file, this.fileTexts$);\n }\n\n get fileSize$(): Observable<string | null> {\n return this.calculateFileSize$(this.file, this.units$);\n }\n\n onRemoveClick(): void {\n this.removed.emit();\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: TuiFileStateT,\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 @tuiPure\n private getName(file: TuiFileLike): string {\n return file.name.split(`.`).slice(0, -1).join(`.`);\n }\n\n @tuiPure\n private getType(file: TuiFileLike): string {\n return `.${file.name.split(`.`).pop()}` || ``;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Inject,\n Input,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiItemDirective} from '@taiga-ui/cdk';\nimport {TUI_HIDE_TEXT, TUI_SHOW_ALL_TEXT} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-files`,\n templateUrl: `./files.component.html`,\n styleUrls: [`./files.component.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiFilesComponent {\n @ContentChildren(TuiItemDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<Record<string, unknown>>> | null = null;\n\n @Input()\n @tuiDefaultProp()\n max = 0;\n\n hidden = true;\n\n constructor(\n @Inject(TUI_HIDE_TEXT) readonly hideText$: Observable<string>,\n @Inject(TUI_SHOW_ALL_TEXT) readonly showAllText$: Observable<string>,\n ) {}\n\n get hasExtraItems(): boolean {\n return !!this.max && (this.items?.length ?? 0) > this.max;\n }\n\n toggle(): void {\n this.hidden = !this.hidden;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusVisibleModule, TuiItemDirective, TuiItemModule} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiExpandModule,\n TuiGroupModule,\n TuiLoaderModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFileComponent} from './file/file.component';\nimport {TuiFilesComponent} from './files.component';\n\n@NgModule({\n declarations: [TuiFilesComponent, TuiFileComponent],\n imports: [\n CommonModule,\n TuiGroupModule,\n TuiLoaderModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiFocusVisibleModule,\n TuiButtonModule,\n TuiItemModule,\n TuiExpandModule,\n ],\n exports: [TuiFilesComponent, TuiFileComponent, TuiItemDirective],\n})\nexport class TuiFilesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAsBA;;IAkCI,0BACoC,QAAiB,EACV,SAAuB,EAErD,UAAiD,EAEzC,MAA4C;QAL7B,aAAQ,GAAR,QAAQ,CAAS;QACV,cAAS,GAAT,SAAS,CAAc;QAErD,eAAU,GAAV,UAAU,CAAuC;QAEzC,WAAM,GAAN,MAAM,CAAsC;QA9BjE,SAAI,GAAgB,EAAC,IAAI,EAAE,EAAE,EAAC,CAAC;QAI/B,UAAK,GAAkB,QAAQ,CAAC;QAIhC,SAAI,GAAa,GAAG,CAAC;QAIrB,aAAQ,GAAG,IAAI,CAAC;QAIhB,gBAAW,GAAwB,EAAE,CAAC;QAG7B,YAAO,GAAG,IAAI,YAAY,EAAQ,CAAC;QAG5C,YAAO,GAAG,KAAK,CAAC;KASZ;IAEJ,sBAAI,qCAAO;aAAX;YACI,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;SAC1E;;;OAAA;IAED,sBAAI,mCAAK;aAAT;YACI,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;SAC5B;;;OAAA;IAED,sBAAI,uCAAS;aAAb;YACI,OAAO,IAAI,CAAC,KAAK,6BAA0B;SAC9C;;;OAAA;IAED,sBAAI,qCAAO;aAAX;YACI,OAAO,IAAI,CAAC,KAAK,yBAAwB;SAC5C;;;OAAA;IAED,sBAAI,uCAAS;aAAb;YACI,OAAO,IAAI,CAAC,KAAK,6BAA0B;SAC9C;;;OAAA;IAED,sBAAI,yCAAW;aAAf;YACI,OAAO,CAAC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AC,MAAM,CAAC;KAC9B;;gBAV8C,UAAU,uBAApD,MAAM,SAAC,aAAa;gBAC6B,UAAU,uBAA3D,MAAM,SAAC,iBAAiB;;IAV7B;QADC,eAAe,CAAC,gBAAgB,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC;oDACuB;IAI9E;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;kDACT;IANC,iBAAiB;QAP7B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;YACrB,iqCAAqC;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;SACxC,CAAC;QAYO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAZrB,iBAAiB,CAsB7B;IAAD,wBAAC;CAtBD;;;ICSA;KAA8B;IAAjB,cAAc;QAf1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACnD,OAAO,EAAE;gBACL,YAAY;gBACZ,cAAc;gBACd,eAAe;gBACf,kBAAkB;gBAClB,YAAY;gBACZ,qBAAqB;gBACrB,eAAe;gBACf,aAAa;gBACb,eAAe;aAClB;YACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;SACnE,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;AC9BA;;;;;;"}
@@ -16,7 +16,7 @@ var TuiFilterComponent = /** @class */ (function (_super) {
16
16
  _this.elementRef = elementRef;
17
17
  _this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
18
18
  _this.items = [];
19
- _this.size = 'm';
19
+ _this.size = "m";
20
20
  _this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
21
21
  _this.toggledItem = new EventEmitter();
22
22
  _this.content = function (_a) {
@@ -63,7 +63,7 @@ var TuiFilterComponent = /** @class */ (function (_super) {
63
63
  ], TuiFilterComponent.prototype, "items", void 0);
64
64
  __decorate([
65
65
  Input(),
66
- HostBinding('attr.data-size'),
66
+ HostBinding("attr.data-size"),
67
67
  tuiDefaultProp()
68
68
  ], TuiFilterComponent.prototype, "size", void 0);
69
69
  __decorate([
@@ -86,7 +86,7 @@ var TuiFilterComponent = /** @class */ (function (_super) {
86
86
  ], TuiFilterComponent.prototype, "getItemContentContext", null);
87
87
  TuiFilterComponent = __decorate([
88
88
  Component({
89
- selector: 'tui-filter',
89
+ selector: "tui-filter",
90
90
  template: "<ng-container *ngFor=\"let item of items\">\n <tui-checkbox-block\n automation-id=\"tui-filter__checkbox\"\n class=\"item\"\n [disabled]=\"disabledItemHandler(item)\"\n [hideCheckbox]=\"true\"\n [ngModel]=\"isCheckboxEnabled(item)\"\n [size]=\"size\"\n (ngModelChange)=\"onCheckbox($event, item)\"\n >\n <div\n automation-id=\"tui-filter__content\"\n class=\"content\"\n >\n <div\n polymorpheus-outlet\n [content]=\"content\"\n [context]=\"getItemContentContext(item)\"\n ></div>\n <tui-badge\n *ngIf=\"badgeHandler(item) as badgeValue\"\n automation-id=\"tui-filter__badge\"\n tuiMode=\"onLight\"\n class=\"badge\"\n [class.badge_disabled]=\"disabledItemHandler(item)\"\n [size]=\"size\"\n [value]=\"badgeValue\"\n ></tui-badge>\n </div>\n </tui-checkbox-block>\n</ng-container>\n",
91
91
  changeDetection: ChangeDetectionStrategy.OnPush,
92
92
  styles: [":host{display:block;margin-bottom:-.25rem}.content{display:flex;align-items:center}.item{margin-right:.25rem;margin-bottom:.25rem}.item:last-child,:host[data-size='l'] .item:last-child{margin-right:0}:host[data-size='l'] .item{margin-right:.5rem;margin-bottom:.5rem}.badge{margin-left:.25rem}.badge_disabled{opacity:var(--tui-disabled-opacity)}"]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-filter.js","sources":["ng://@taiga-ui/kit/components/filter/filter.component.ts","ng://@taiga-ui/kit/components/filter/filter.module.ts","ng://@taiga-ui/kit/components/filter/taiga-ui-kit-components-filter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiMultipleControl,\n ALWAYS_FALSE_HANDLER,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiHandler,\n TuiIdentityMatcher,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n// @bad TODO: Add active zone to track focus\n@Component({\n selector: 'tui-filter',\n templateUrl: './filter.template.html',\n styleUrls: ['./filter.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiFilterComponent<T> extends AbstractTuiMultipleControl<T> {\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n @Output()\n readonly toggledItem = new EventEmitter<T>();\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent<any> = ({$implicit}: TuiContextWithImplicit<unknown>) =>\n TUI_DEFAULT_STRINGIFY($implicit);\n\n @Input()\n @tuiDefaultProp()\n badgeHandler: TuiHandler<T, number> = item => Number(item);\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n @tuiPure\n getItemContentContext($implicit: T): TuiContextWithImplicit<T> {\n return {\n $implicit,\n };\n }\n\n onCheckbox(value: boolean, item: T): void {\n this.toggledItem.emit(item);\n this.updateValue(\n value\n ? [...this.value, item]\n : this.value.filter(arrItem => !this.identityMatcher(arrItem, item)),\n );\n }\n\n isCheckboxEnabled(item: T): boolean {\n return this.value.some(arrItem => this.identityMatcher(arrItem, item));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiModeModule} from '@taiga-ui/core';\nimport {TuiBadgeModule} from '@taiga-ui/kit/components/badge';\nimport {TuiCheckboxBlockModule} from '@taiga-ui/kit/components/checkbox-block';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFilterComponent} from './filter.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiCheckboxBlockModule,\n TuiBadgeModule,\n TuiModeModule,\n ],\n declarations: [TuiFilterComponent],\n exports: [TuiFilterComponent],\n})\nexport class TuiFilterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA8BA;;IAO2C,sCAA6B;IAqBpE,4BAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC;QAN5E,YAQI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHwC,gBAAU,GAAV,UAAU,CAAyB;QAxB5E,qBAAe,GAA0B,4BAA4B,CAAC;QAItE,WAAK,GAAiB,EAAE,CAAC;QAKzB,UAAI,GAAwB,GAAG,CAAC;QAIhC,yBAAmB,GAAyB,oBAAoB,CAAC;QAGxD,iBAAW,GAAG,IAAI,YAAY,EAAK,CAAC;QAe7C,aAAO,G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IAIhC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;mEACgD;IAGjE;QADC,MAAM,EAAE;2DACoC;IAe7C;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;uDAEoB;IAIrC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;4DAC0C;IAO3D;QADC,OAAO;mEAKP;IAlDQ,kBAAkB;QAN9B,SAAS,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,gkCAAqC;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;SAClD,CAAC;QAuBO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OA3Bd,kBAAkB,CAgE9B;IAAD,yBAAC;CAAA,CAhE0C,0BAA0B;;;ICfrE;KAA+B;IAAlB,eAAe;QAZ3B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,sBAAsB;gBACtB,cAAc;gBACd,aAAa;aAChB;YACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACtBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-filter.js","sources":["ng://@taiga-ui/kit/components/filter/filter.component.ts","ng://@taiga-ui/kit/components/filter/filter.module.ts","ng://@taiga-ui/kit/components/filter/taiga-ui-kit-components-filter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiMultipleControl,\n ALWAYS_FALSE_HANDLER,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiHandler,\n TuiIdentityMatcher,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n// @bad TODO: Add active zone to track focus\n@Component({\n selector: `tui-filter`,\n templateUrl: `./filter.template.html`,\n styleUrls: [`./filter.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiFilterComponent<T> extends AbstractTuiMultipleControl<T> {\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n @Output()\n readonly toggledItem = new EventEmitter<T>();\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent<any> = ({$implicit}: TuiContextWithImplicit<unknown>) =>\n TUI_DEFAULT_STRINGIFY($implicit);\n\n @Input()\n @tuiDefaultProp()\n badgeHandler: TuiHandler<T, number> = item => Number(item);\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n @tuiPure\n getItemContentContext($implicit: T): TuiContextWithImplicit<T> {\n return {\n $implicit,\n };\n }\n\n onCheckbox(value: boolean, item: T): void {\n this.toggledItem.emit(item);\n this.updateValue(\n value\n ? [...this.value, item]\n : this.value.filter(arrItem => !this.identityMatcher(arrItem, item)),\n );\n }\n\n isCheckboxEnabled(item: T): boolean {\n return this.value.some(arrItem => this.identityMatcher(arrItem, item));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiModeModule} from '@taiga-ui/core';\nimport {TuiBadgeModule} from '@taiga-ui/kit/components/badge';\nimport {TuiCheckboxBlockModule} from '@taiga-ui/kit/components/checkbox-block';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFilterComponent} from './filter.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiCheckboxBlockModule,\n TuiBadgeModule,\n TuiModeModule,\n ],\n declarations: [TuiFilterComponent],\n exports: [TuiFilterComponent],\n})\nexport class TuiFilterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA8BA;;IAO2C,sCAA6B;IAqBpE,4BAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC;QAN5E,YAQI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHwC,gBAAU,GAAV,UAAU,CAAyB;QAxB5E,qBAAe,GAA0B,4BAA4B,CAAC;QAItE,WAAK,GAAiB,EAAE,CAAC;QAKzB,UAAI,GAAwB,GAAG,CAAC;QAIhC,yBAAmB,GAAyB,oBAAoB,CAAC;QAGxD,iBAAW,GAAG,IAAI,YAAY,EAAK,CAAC;QAe7C,aAAO,GAA6B,UAAC,EAA4C;gBAA3C,wBAAS;YAC3C,OAAA,qBAAqB,CAAC,SAAS,CAAC;SAAA,CAAC;QAIrC,kBAAY,GAA0B,UAAA,IAAI,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAA,CAAC;;KAT1D;IAWD,sBAAI,uCAAO;aAAX;YACI,OAAO,iB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BAAkB;QAN9B,SAAS,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,gkCAAqC;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;SAClD,CAAC;QAuBO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OA3Bd,kBAAkB,CAgE9B;IAAD,yBAAC;CAAA,CAhE0C,0BAA0B;;;ICfrE;KAA+B;IAAlB,eAAe;QAZ3B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,sBAAsB;gBACtB,cAAc;gBACd,aAAa;aAChB;YACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACtBA;;;;;;"}
@@ -31,8 +31,8 @@ var TuiInputCopyComponent = /** @class */ (function (_super) {
31
31
  _this.textfieldSize = textfieldSize;
32
32
  _this.copyTexts$ = copyTexts$;
33
33
  _this.copy$ = new Subject();
34
- _this.successMessage = '';
35
- _this.messageDirection = 'bottom-left';
34
+ _this.successMessage = "";
35
+ _this.messageDirection = "bottom-left";
36
36
  _this.messageMode = null;
37
37
  return _this;
38
38
  }
@@ -73,7 +73,7 @@ var TuiInputCopyComponent = /** @class */ (function (_super) {
73
73
  });
74
74
  Object.defineProperty(TuiInputCopyComponent.prototype, "icon", {
75
75
  get: function () {
76
- return this.textfieldSize.size === 's' ? 'tuiIconCopy' : 'tuiIconCopyLarge';
76
+ return this.textfieldSize.size === "s" ? "tuiIconCopy" : "tuiIconCopyLarge";
77
77
  },
78
78
  enumerable: true,
79
79
  configurable: true
@@ -95,11 +95,11 @@ var TuiInputCopyComponent = /** @class */ (function (_super) {
95
95
  return;
96
96
  }
97
97
  this.textfield.nativeFocusableElement.select();
98
- this.documentRef.execCommand('copy');
98
+ this.documentRef.execCommand("copy");
99
99
  this.copy$.next();
100
100
  };
101
101
  TuiInputCopyComponent.prototype.getFallbackValue = function () {
102
- return '';
102
+ return "";
103
103
  };
104
104
  TuiInputCopyComponent.ctorParameters = function () { return [
105
105
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
@@ -124,14 +124,14 @@ var TuiInputCopyComponent = /** @class */ (function (_super) {
124
124
  tuiDefaultProp()
125
125
  ], TuiInputCopyComponent.prototype, "messageMode", void 0);
126
126
  __decorate([
127
- HostBinding('class._has-value')
127
+ HostBinding("class._has-value")
128
128
  ], TuiInputCopyComponent.prototype, "hasValue", null);
129
129
  __decorate([
130
130
  tuiPure
131
131
  ], TuiInputCopyComponent.prototype, "hintText$", null);
132
132
  TuiInputCopyComponent = __decorate([
133
133
  Component({
134
- selector: 'tui-input-copy',
134
+ selector: "tui-input-copy",
135
135
  template: "<tui-primitive-textfield\n class=\"textfield\"\n [pseudoFocused]=\"pseudoFocused\"\n [pseudoHovered]=\"pseudoHovered\"\n [pseudoPressed]=\"pseudoPressed\"\n [invalid]=\"computedInvalid\"\n [focusable]=\"focusable\"\n [nativeId]=\"nativeId\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [iconContent]=\"!disabled ? iconContent : null\"\n [value]=\"value\"\n (valueChange)=\"onValueChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (pressedChange)=\"onPressed($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-svg\n automation-id=\"tui-copy__icon\"\n tuiHintId=\"not_required\"\n class=\"icon\"\n [tuiHint]=\"hint\"\n [tuiHintDirection]=\"messageDirection\"\n [tuiHintMode]=\"messageMode\"\n [src]=\"icon\"\n (click)=\"copy()\"\n ></tui-svg>\n</ng-template>\n\n<ng-template #hint>\n <div\n polymorpheus-outlet\n [content]=\"hintText$ | async\"\n ></div>\n</ng-template>\n",
136
136
  changeDetection: ChangeDetectionStrategy.OnPush,
137
137
  providers: TUI_INPUT_COPY_PROVIDERS,
@@ -160,7 +160,7 @@ var TuiInputCopyDirective = /** @class */ (function (_super) {
160
160
  var TuiInputCopyDirective_1;
161
161
  TuiInputCopyDirective = TuiInputCopyDirective_1 = __decorate([
162
162
  Directive({
163
- selector: 'tui-input-copy',
163
+ selector: "tui-input-copy",
164
164
  providers: [
165
165
  {
166
166
  provide: TUI_TEXTFIELD_HOST,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-copy.js","sources":["ng://@taiga-ui/kit/components/input-copy/input-copy.providers.ts","ng://@taiga-ui/kit/components/input-copy/input-copy.component.ts","ng://@taiga-ui/kit/components/input-copy/input-copy.directive.ts","ng://@taiga-ui/kit/components/input-copy/input-copy.module.ts","ng://@taiga-ui/kit/components/input-copy/taiga-ui-kit-components-input-copy.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {AbstractTuiControl, TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\nexport const TUI_INPUT_COPY_PROVIDERS: Provider[] = [\n TUI_VALUE_ACCESSOR_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputCopyComponent),\n },\n {\n provide: AbstractTuiControl,\n useExisting: forwardRef(() => TuiInputCopyComponent),\n },\n];\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\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 tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiDirection,\n TuiHintModeT,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Observable, of, Subject, timer} from 'rxjs';\nimport {mapTo, startWith, switchMap} from 'rxjs/operators';\n\nimport {TUI_INPUT_COPY_PROVIDERS} from './input-copy.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-input-copy',\n templateUrl: './input-copy.template.html',\n styleUrls: ['./input-copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_INPUT_COPY_PROVIDERS,\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copy$ = new Subject<void>();\n\n @Input()\n @tuiDefaultProp()\n successMessage: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n messageDirection: TuiDirection = 'bottom-left';\n\n @Input()\n @tuiDefaultProp()\n messageMode: TuiHintModeT | null = null;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_COPY_TEXTS) private readonly copyTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding('class._has-value')\n get hasValue(): boolean {\n return !!this.value;\n }\n\n @tuiPure\n get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap(texts =>\n this.copy$.pipe(\n switchMap(() =>\n merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(mapTo(texts[0])),\n ),\n ),\n startWith(texts[0]),\n ),\n ),\n );\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get icon(): string {\n return this.textfieldSize.size === 's' ? 'tuiIconCopy' : 'tuiIconCopyLarge';\n }\n\n onValueChange(value: string): void {\n this.updateValue(value);\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n copy(): void {\n if (!this.textfield || !this.textfield.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.documentRef.execCommand('copy');\n this.copy$.next();\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {Directive, forwardRef} from '@angular/core';\nimport {TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\n@Directive({\n selector: 'tui-input-copy',\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiInputCopyDirective),\n },\n ],\n})\nexport class TuiInputCopyDirective extends TuiAbstractTextfieldHost<TuiInputCopyComponent> {\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiAlertModule,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [TuiInputCopyComponent, TuiInputCopyDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCopyModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;IAMa,wBAAwB,GAAe;IAChD,2BAA2B;IAC3B;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,qBAAqB,GAAA,CAAC;KACvD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,qBAAqB,GAAA,CAAC;KACvD;;;ACmBL;;IASY,yCAA0B;IAoBlC,+BAII,OAAyB,EACE,iBAAoC,EAC5B,WAAqB,EAEvC,aAAwC,EAChB,UAAwC;QATrF,YAWI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QANsC,iBAAW,GAAX,WAAW,CAAU;QAEvC,mBAAa,GAAb,aAAa,CAA2B;QAChB,gBAAU,GAAV,UAAU,CAA8B;QAvBpE,WAAK,GAAG,IAAI,OAAO,EAAQ,CAAC;QAI7C,oBAAc,GAAwB,EAAE,CAAC;QAIzC,sBAAgB,GAAiB,aAAa,CAAC;QAI/C,iBAAW,GAAwB,IAAI,CAAC;;KAcvC;IAGD,sBAAI,2CAAQ;aAAZ;YACI,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;SACvB;;;OAAA;IAGD,sBAAI,4CAAS;aAAb;YADA,iBAeC;YAbG,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CACvB,SAAS,CAAC,UAAA,KAAK;gBACX,OAAA,KAAI,CAAC,KAAK,CAAC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C;8BAJY,qBAAqB;IAC9B,6CAAa,GAAb,UAAc,KAAa;QACvB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAClC;;IAHQ,qBAAqB;QATjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,kBAAkB;oBAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;iBACvD;aACJ;SACJ,CAAC;OACW,qBAAqB,CAIjC;IAAD,4BAAC;CAAA,CAJ0C,wBAAwB;;;ICYnE;KAAkC;IAArB,kBAAkB;QAZ9B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,YAAY;gBACZ,aAAa;gBACb,2BAA2B;gBAC3B,cAAc;aACjB;YACD,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;YAC5D,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;SACjF,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;AC1BA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-copy.js","sources":["ng://@taiga-ui/kit/components/input-copy/input-copy.providers.ts","ng://@taiga-ui/kit/components/input-copy/input-copy.component.ts","ng://@taiga-ui/kit/components/input-copy/input-copy.directive.ts","ng://@taiga-ui/kit/components/input-copy/input-copy.module.ts","ng://@taiga-ui/kit/components/input-copy/taiga-ui-kit-components-input-copy.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {AbstractTuiControl, TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\nexport const TUI_INPUT_COPY_PROVIDERS: Provider[] = [\n TUI_VALUE_ACCESSOR_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputCopyComponent),\n },\n {\n provide: AbstractTuiControl,\n useExisting: forwardRef(() => TuiInputCopyComponent),\n },\n];\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\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 tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiDirection,\n TuiHintModeT,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Observable, of, Subject, timer} from 'rxjs';\nimport {mapTo, startWith, switchMap} from 'rxjs/operators';\n\nimport {TUI_INPUT_COPY_PROVIDERS} from './input-copy.providers';\n\n// @dynamic\n@Component({\n selector: `tui-input-copy`,\n templateUrl: `./input-copy.template.html`,\n styleUrls: [`./input-copy.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_INPUT_COPY_PROVIDERS,\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copy$ = new Subject<void>();\n\n @Input()\n @tuiDefaultProp()\n successMessage: PolymorpheusContent = ``;\n\n @Input()\n @tuiDefaultProp()\n messageDirection: TuiDirection = `bottom-left`;\n\n @Input()\n @tuiDefaultProp()\n messageMode: TuiHintModeT | null = null;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_COPY_TEXTS) private readonly copyTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding(`class._has-value`)\n get hasValue(): boolean {\n return !!this.value;\n }\n\n @tuiPure\n get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap(texts =>\n this.copy$.pipe(\n switchMap(() =>\n merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(mapTo(texts[0])),\n ),\n ),\n startWith(texts[0]),\n ),\n ),\n );\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get icon(): string {\n return this.textfieldSize.size === `s` ? `tuiIconCopy` : `tuiIconCopyLarge`;\n }\n\n onValueChange(value: string): void {\n this.updateValue(value);\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n copy(): void {\n if (!this.textfield || !this.textfield.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.documentRef.execCommand(`copy`);\n this.copy$.next();\n }\n\n protected getFallbackValue(): string {\n return ``;\n }\n}\n","import {Directive, forwardRef} from '@angular/core';\nimport {TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\n@Directive({\n selector: `tui-input-copy`,\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiInputCopyDirective),\n },\n ],\n})\nexport class TuiInputCopyDirective extends TuiAbstractTextfieldHost<TuiInputCopyComponent> {\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiAlertModule,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [TuiInputCopyComponent, TuiInputCopyDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCopyModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;IAMa,wBAAwB,GAAe;IAChD,2BAA2B;IAC3B;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,qBAAqB,GAAA,CAAC;KACvD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,qBAAqB,GAAA,CAAC;KACvD;;;ACmBL;;IASY,yCAA0B;IAoBlC,+BAII,OAAyB,EACE,iBAAoC,EAC5B,WAAqB,EAEvC,aAAwC,EAChB,UAAwC;QATrF,YAWI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QANsC,iBAAW,GAAX,WAAW,CAAU;QAEvC,mBAAa,GAAb,aAAa,CAA2B;QAChB,gBAAU,GAAV,UAAU,CAA8B;QAvBpE,WAAK,GAAG,IAAI,OAAO,EAAQ,CAAC;QAI7C,oBAAc,GAAwB,EAAE,CAAC;QAIzC,sBAAgB,GAAiB,aAAa,CAAC;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AC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;QAE1B,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;OA9BlB,qBAAqB,CAoGjC;IAAD,4BAAC;CAAA,CAnGW,kBAAkB;;;IC7Ba,yCAA+C;IAA1F;;KAIC;8BAJY,qBAAqB;IAC9B,6CAAa,GAAb,UAAc,KAAa;QACvB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAClC;;IAHQ,qBAAqB;QATjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,kBAAkB;oBAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;iBACvD;aACJ;SACJ,CAAC;OACW,qBAAqB,CAIjC;IAAD,4BAAC;CAAA,CAJ0C,wBAAwB;;;ICYnE;KAAkC;IAArB,kBAAkB;QAZ9B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,YAAY;gBACZ,aAAa;gBACb,2BAA2B;gBAC3B,cAAc;aACjB;YACD,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;YAC5D,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;SACjF,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;AC1BA;;;;;;"}
@@ -11,22 +11,22 @@ import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
11
11
  import { TextMaskModule } from 'angular2-text-mask';
12
12
 
13
13
  // TODO: 3.0 remove in ivy compilation
14
- var PASSWORD_ICON_UP = 'tuiIconPlus';
15
- var PASSWORD_ICON_DOWN = 'tuiIconMinus';
14
+ var PASSWORD_ICON_UP = "tuiIconPlus";
15
+ var PASSWORD_ICON_DOWN = "tuiIconMinus";
16
16
  /** Default values for the input count options. */
17
17
  var TUI_INPUT_COUNT_DEFAULT_OPTIONS = {
18
18
  icons: {
19
19
  up: PASSWORD_ICON_UP,
20
20
  down: PASSWORD_ICON_DOWN,
21
21
  },
22
- appearance: 'textfield',
22
+ appearance: "textfield",
23
23
  hideButtons: false,
24
24
  min: 0,
25
25
  max: Infinity,
26
26
  step: 1,
27
- postfix: '',
27
+ postfix: "",
28
28
  };
29
- var TUI_INPUT_COUNT_OPTIONS = new InjectionToken('Default parameters for input count component', {
29
+ var TUI_INPUT_COUNT_OPTIONS = new InjectionToken("Default parameters for input count component", {
30
30
  factory: function () { return TUI_INPUT_COUNT_DEFAULT_OPTIONS; },
31
31
  });
32
32
  var tuiInputCountOptionsProvider = function (options) { return ({
@@ -49,7 +49,7 @@ var TuiInputCountComponent = /** @class */ (function (_super) {
49
49
  _this.min = _this.options.min;
50
50
  _this.max = _this.options.max;
51
51
  _this.hideButtons = _this.options.hideButtons;
52
- _this.prefix = '';
52
+ _this.prefix = "";
53
53
  _this.postfix = _this.options.postfix;
54
54
  return _this;
55
55
  }
@@ -67,7 +67,7 @@ var TuiInputCountComponent = /** @class */ (function (_super) {
67
67
  Object.defineProperty(TuiInputCountComponent.prototype, "buttonsHidden", {
68
68
  // TODO: 3.0 Remove in v.3
69
69
  get: function () {
70
- return this.hideButtons || this.appearance === 'table';
70
+ return this.hideButtons || this.appearance === "table";
71
71
  },
72
72
  enumerable: true,
73
73
  configurable: true
@@ -184,13 +184,13 @@ var TuiInputCountComponent = /** @class */ (function (_super) {
184
184
  };
185
185
  TuiInputCountComponent.prototype.onKeydown = function (event) {
186
186
  switch (event.key) {
187
- case 'ArrowUp':
188
- case 'Up':
187
+ case "ArrowUp":
188
+ case "Up":
189
189
  this.increaseValue();
190
190
  event.preventDefault();
191
191
  break;
192
- case 'ArrowDown':
193
- case 'Down':
192
+ case "ArrowDown":
193
+ case "Down":
194
194
  this.decreaseValue();
195
195
  event.preventDefault();
196
196
  break;
@@ -203,14 +203,14 @@ var TuiInputCountComponent = /** @class */ (function (_super) {
203
203
  };
204
204
  Object.defineProperty(TuiInputCountComponent.prototype, "nativeNumberValue", {
205
205
  get: function () {
206
- return parseInt(this.nativeValue.split(this.numberFormat.thousandSeparator).join(''), 10);
206
+ return parseInt(this.nativeValue.split(this.numberFormat.thousandSeparator).join(""), 10);
207
207
  },
208
208
  enumerable: true,
209
209
  configurable: true
210
210
  });
211
211
  Object.defineProperty(TuiInputCountComponent.prototype, "nativeValue", {
212
212
  get: function () {
213
- return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';
213
+ return this.nativeFocusableElement ? this.nativeFocusableElement.value : "";
214
214
  },
215
215
  set: function (value) {
216
216
  if (!this.nativeFocusableElement) {
@@ -284,14 +284,14 @@ var TuiInputCountComponent = /** @class */ (function (_super) {
284
284
  tuiPure
285
285
  ], TuiInputCountComponent.prototype, "getMask", null);
286
286
  __decorate([
287
- HostBinding('class._hide-buttons')
287
+ HostBinding("class._hide-buttons")
288
288
  ], TuiInputCountComponent.prototype, "buttonsHidden", null);
289
289
  __decorate([
290
- HostBinding('attr.data-size')
290
+ HostBinding("attr.data-size")
291
291
  ], TuiInputCountComponent.prototype, "size", null);
292
292
  TuiInputCountComponent = TuiInputCountComponent_1 = __decorate([
293
293
  Component({
294
- selector: 'tui-input-count',
294
+ selector: "tui-input-count",
295
295
  template: "<tui-primitive-textfield\n tuiValueAccessor\n tuiTextfieldAutocomplete=\"off\"\n tuiTextfieldInputMode=\"numeric\"\n class=\"textfield\"\n [tuiTextfieldMaxLength]=\"18\"\n [pseudoFocused]=\"pseudoFocused\"\n [pseudoHovered]=\"pseudoHovered\"\n [pseudoPressed]=\"pseudoPressed\"\n [focusable]=\"focusable\"\n [nativeId]=\"nativeId\"\n [prefix]=\"prefix\"\n [postfix]=\"postfix\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [textMask]=\"getMask(min < 0)\"\n [invalid]=\"computedInvalid\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange()\"\n (keydown)=\"onKeydown($event)\"\n (focusedChange)=\"onFocused($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (pressedChange)=\"onPressed($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n<ng-container *ngIf=\"!buttonsHidden\">\n <ng-container *ngIf=\"minusTexts$ | async as texts\">\n <section class=\"buttons\">\n <button\n tuiIconButton\n type=\"button\"\n automation-id=\"tui-input-count__plus-button\"\n size=\"s\"\n class=\"button button_plus\"\n [icon]=\"iconUp\"\n [appearance]=\"options.appearance\"\n [title]=\"texts[0]\"\n [disabled]=\"plusButtonDisabled\"\n [focusable]=\"false\"\n (mousedown)=\"onButtonMouseDown($event, plusButtonDisabled)\"\n (click)=\"increaseValue()\"\n ></button>\n <button\n tuiIconButton\n type=\"button\"\n automation-id=\"tui-input-count__minus-button\"\n size=\"s\"\n class=\"button button_minus\"\n [icon]=\"iconDown\"\n [appearance]=\"options.appearance\"\n [disabled]=\"minusButtonDisabled\"\n [focusable]=\"false\"\n [title]=\"texts[1]\"\n (mousedown)=\"onButtonMouseDown($event, minusButtonDisabled)\"\n (click)=\"decreaseValue()\"\n ></button>\n </section>\n </ng-container>\n</ng-container>\n",
296
296
  changeDetection: ChangeDetectionStrategy.OnPush,
297
297
  providers: [
@@ -330,13 +330,13 @@ var TuiInputCountDirective = /** @class */ (function (_super) {
330
330
  this.host.onValueChange();
331
331
  };
332
332
  TuiInputCountDirective.prototype.process = function (input) {
333
- input.autocomplete = 'off';
334
- input.inputMode = 'numeric';
333
+ input.autocomplete = "off";
334
+ input.inputMode = "numeric";
335
335
  };
336
336
  var TuiInputCountDirective_1;
337
337
  TuiInputCountDirective = TuiInputCountDirective_1 = __decorate([
338
338
  Directive({
339
- selector: 'tui-input-count',
339
+ selector: "tui-input-count",
340
340
  providers: [
341
341
  {
342
342
  provide: TUI_TEXTFIELD_HOST,