@taiga-ui/kit 2.23.0 → 2.27.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 (1088) hide show
  1. package/README.md +7 -3
  2. package/abstract/input-slider.d.ts +5 -5
  3. package/abstract/slider/slider.d.ts +5 -5
  4. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.js +9 -9
  6. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
  8. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.js +24 -8
  10. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +2 -2
  12. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-action.umd.js +4 -4
  14. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  16. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-avatar.umd.js +1 -1
  20. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
  22. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-badge.umd.js +1 -1
  24. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
  26. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
  28. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
  30. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +6 -6
  32. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +2 -2
  34. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +8 -8
  36. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
  38. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +1 -1
  40. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js +1 -1
  42. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-carousel.umd.js +527 -0
  44. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -0
  45. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +16 -0
  46. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -0
  47. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +3 -3
  48. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  50. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +3 -3
  52. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  54. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
  56. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  58. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-combo-box.umd.js +19 -20
  60. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  62. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +9 -9
  64. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
  66. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-filter.umd.js +9 -9
  70. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  72. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-copy.umd.js +5 -5
  74. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  76. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-count.umd.js +4 -4
  78. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  80. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +17 -14
  82. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +1 -1
  84. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +21 -18
  86. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  88. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-input-date.umd.js +18 -15
  90. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  92. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-file.umd.js +191 -191
  94. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +2 -2
  96. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-input-inline.umd.js +6 -5
  98. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  100. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -3
  102. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  104. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -3
  106. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  108. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-input-number.umd.js +18 -32
  110. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  112. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input-password.umd.js +4 -4
  114. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  116. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +23 -23
  118. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  120. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-input-phone.umd.js +7 -7
  122. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  123. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  124. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-input-range.umd.js +2 -2
  126. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
  128. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-kit-components-input-slider.umd.js +4 -4
  130. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  132. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  133. package/bundles/taiga-ui-kit-components-input-tag.umd.js +32 -32
  134. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  135. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  136. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-kit-components-input-time.umd.js +17 -17
  138. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  139. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  140. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  141. package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
  142. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  143. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  144. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
  147. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +12 -12
  148. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +2 -2
  150. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +1 -1
  152. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  154. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +16 -12
  156. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  157. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +2 -2
  158. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  159. package/bundles/taiga-ui-kit-components-multi-select.umd.js +20 -20
  160. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  161. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  162. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  163. package/bundles/taiga-ui-kit-components-pagination.umd.js +5 -5
  164. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  166. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  167. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +330 -0
  168. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -0
  169. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +16 -0
  170. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -0
  171. package/bundles/taiga-ui-kit-components-progress.umd.js +61 -25
  172. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
  174. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-radio-block.umd.js +3 -3
  176. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  178. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  180. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +3 -3
  182. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-radio-list.umd.js +7 -7
  186. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-radio.umd.js +3 -3
  190. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  192. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  194. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  195. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  196. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-kit-components-select-option.umd.js +23 -14
  198. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-components-select-option.umd.min.js +2 -2
  200. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  201. package/bundles/taiga-ui-kit-components-select.umd.js +10 -13
  202. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  203. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  204. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  205. package/bundles/taiga-ui-kit-components-slider.umd.js +1 -1
  206. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  207. package/bundles/taiga-ui-kit-components-slider.umd.min.js +1 -1
  208. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  209. package/bundles/taiga-ui-kit-components-stepper.umd.js +19 -19
  210. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  211. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  212. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  213. package/bundles/taiga-ui-kit-components-tabs.umd.js +23 -23
  214. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  215. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  216. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  217. package/bundles/taiga-ui-kit-components-tag.umd.js +1 -1
  218. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  219. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  220. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  221. package/bundles/taiga-ui-kit-components-text-area.umd.js +5 -5
  222. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  223. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
  224. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  225. package/bundles/taiga-ui-kit-components-toggle.umd.js +4 -4
  226. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  227. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  228. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  229. package/bundles/taiga-ui-kit-components-tree.umd.js +148 -137
  230. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  231. package/bundles/taiga-ui-kit-components-tree.umd.min.js +2 -2
  232. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  233. package/bundles/taiga-ui-kit-components.umd.js +42 -26
  234. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  235. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  236. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +2 -4
  237. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  238. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +1 -1
  239. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  240. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  241. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  242. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +3 -2
  243. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  244. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  245. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  246. package/bundles/taiga-ui-kit-directives-highlight.umd.js +7 -2
  247. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  248. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js +1 -1
  249. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  250. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +7 -1
  251. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  252. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  253. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  254. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  255. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  256. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  257. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  258. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  259. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
  260. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  261. package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
  262. package/bundles/taiga-ui-kit-directives.umd.js +12 -12
  263. package/bundles/taiga-ui-kit-directives.umd.min.js +1 -1
  264. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +3 -3
  265. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  266. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
  267. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  268. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +21 -21
  269. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  270. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js +1 -1
  271. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  272. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  273. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  274. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  275. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  276. package/bundles/taiga-ui-kit-tokens.umd.js +14 -14
  277. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  278. package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
  279. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  280. package/bundles/taiga-ui-kit-utils-format.umd.js +0 -2
  281. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  282. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  283. package/components/accordion/accordion-item/accordion-item-eager-content.directive.d.ts +2 -0
  284. package/components/accordion/accordion-item/accordion-item.component.d.ts +4 -2
  285. package/components/accordion/index.d.ts +1 -0
  286. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  287. package/components/action/action.component.d.ts +1 -1
  288. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  289. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  290. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  291. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  292. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  293. package/components/breadcrumbs/index.d.ts +1 -1
  294. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  295. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  296. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  297. package/components/calendar-range/calendar-range.component.d.ts +1 -1
  298. package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
  299. package/components/carousel/carousel-autoscroll.directive.d.ts +5 -0
  300. package/components/carousel/carousel-buttons.directive.d.ts +4 -0
  301. package/components/carousel/carousel-scroll.directive.d.ts +6 -0
  302. package/components/carousel/carousel.component.d.ts +29 -0
  303. package/components/carousel/carousel.directive.d.ts +11 -0
  304. package/components/carousel/carousel.module.d.ts +2 -0
  305. package/components/carousel/index.d.ts +6 -0
  306. package/components/carousel/package.json +13 -0
  307. package/components/carousel/taiga-ui-kit-components-carousel.d.ts +4 -0
  308. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -0
  309. package/components/checkbox/checkbox.component.d.ts +1 -1
  310. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  311. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  312. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  313. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -1
  314. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  315. package/components/combo-box/combo-box.component.d.ts +5 -5
  316. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  317. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
  318. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  319. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  320. package/components/filter/filter.component.d.ts +2 -2
  321. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  322. package/components/index.d.ts +5 -3
  323. package/components/input/input.component.d.ts +3 -3
  324. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  325. package/components/input-copy/input-copy.component.d.ts +2 -2
  326. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  327. package/components/input-count/input-count.component.d.ts +2 -2
  328. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  329. package/components/input-date/input-date.component.d.ts +4 -4
  330. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  331. package/components/input-date-range/input-date-range.component.d.ts +3 -3
  332. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  333. package/components/input-date-time/input-date-time.component.d.ts +4 -4
  334. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  335. package/components/input-file/index.d.ts +1 -1
  336. package/components/input-file/input-file.component.d.ts +1 -1
  337. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  338. package/components/input-inline/input-inline.component.d.ts +1 -1
  339. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  340. package/components/input-month/input-month.component.d.ts +1 -1
  341. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  342. package/components/input-month-range/input-month-range.component.d.ts +1 -1
  343. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  344. package/components/input-number/input-number.component.d.ts +3 -4
  345. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  346. package/components/input-password/index.d.ts +1 -1
  347. package/components/input-password/input-password.component.d.ts +2 -2
  348. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  349. package/components/input-phone/input-phone.component.d.ts +3 -3
  350. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  351. package/components/input-phone-international/input-phone-international.component.d.ts +6 -6
  352. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  353. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  354. package/components/input-slider/input-slider.component.d.ts +1 -1
  355. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  356. package/components/input-tag/input-tag.component.d.ts +11 -11
  357. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  358. package/components/input-time/input-time.component.d.ts +4 -4
  359. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  360. package/components/island/taiga-ui-kit-components-island.metadata.json +1 -1
  361. package/components/line-clamp/index.d.ts +1 -1
  362. package/components/line-clamp/line-clamp.component.d.ts +4 -4
  363. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  364. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  365. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  366. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  367. package/components/multi-select/multi-select.component.d.ts +7 -7
  368. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  369. package/components/multi-select-option/multi-select-option.component.d.ts +1 -1
  370. package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.metadata.json +1 -1
  371. package/components/pagination/pagination.component.d.ts +1 -1
  372. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  373. package/components/pdf-viewer/index.d.ts +5 -0
  374. package/components/pdf-viewer/package.json +13 -0
  375. package/components/pdf-viewer/pdf-viewer-options.d.ts +6 -0
  376. package/components/pdf-viewer/pdf-viewer.component.d.ts +17 -0
  377. package/components/pdf-viewer/pdf-viewer.directive.d.ts +4 -0
  378. package/components/pdf-viewer/pdf-viewer.module.d.ts +2 -0
  379. package/components/pdf-viewer/pdf-viewer.service.d.ts +13 -0
  380. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +4 -0
  381. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -0
  382. package/components/progress/index.d.ts +4 -2
  383. package/components/progress/pipes/abstract-color-segments.d.ts +9 -0
  384. package/components/progress/pipes/progress-color-segments-async.pipe.d.ts +5 -0
  385. package/components/progress/pipes/progress-color-segments.pipe.d.ts +7 -6
  386. package/components/progress/progress-circle/progress-circle.component.d.ts +1 -1
  387. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  388. package/components/radio/radio.component.d.ts +1 -1
  389. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  390. package/components/radio-block/radio-block.component.d.ts +1 -1
  391. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  392. package/components/radio-group/radio-group.component.d.ts +1 -1
  393. package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
  394. package/components/radio-labeled/radio-labeled.component.d.ts +1 -1
  395. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  396. package/components/radio-list/radio-list.component.d.ts +3 -3
  397. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  398. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  399. package/components/select/select.component.d.ts +3 -3
  400. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  401. package/components/select-option/select-option.component.d.ts +4 -2
  402. package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
  403. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  404. package/components/stepper/stepper.component.d.ts +3 -3
  405. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  406. package/components/tabs/index.d.ts +2 -2
  407. package/components/tabs/tabs/tabs.component.d.ts +2 -2
  408. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +2 -2
  409. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  410. package/components/tabs/underline/underline.component.d.ts +2 -2
  411. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  412. package/components/taiga-ui-kit-components.metadata.json +1 -1
  413. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  414. package/components/text-area/text-area.component.d.ts +1 -1
  415. package/components/toggle/index.d.ts +1 -1
  416. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  417. package/components/toggle/toggle.component.d.ts +1 -1
  418. package/components/tree/components/tree/tree.component.d.ts +7 -2
  419. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  420. package/components/tree/directives/tree-item-controller.directive.d.ts +1 -1
  421. package/components/tree/index.d.ts +4 -4
  422. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  423. package/directives/dropdown-context/dropdown-context.directive.d.ts +1 -1
  424. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  425. package/directives/dropdown-hover/taiga-ui-kit-directives-dropdown-hover.metadata.json +1 -1
  426. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +3 -3
  427. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  428. package/directives/highlight/highlight.directive.d.ts +2 -1
  429. package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
  430. package/directives/index.d.ts +1 -1
  431. package/directives/lazy-loading/lazy-loading.directive.d.ts +1 -1
  432. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  433. package/directives/present/present.directive.d.ts +1 -1
  434. package/directives/present/taiga-ui-kit-directives-present.metadata.json +1 -1
  435. package/directives/project-class/taiga-ui-kit-directives-project-class.metadata.json +1 -1
  436. package/directives/taiga-ui-kit-directives.metadata.json +1 -1
  437. package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.metadata.json +1 -1
  438. package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.metadata.json +1 -1
  439. package/esm2015/abstract/input-slider.js +2 -2
  440. package/esm2015/abstract/slider/slider.js +9 -9
  441. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  442. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +11 -0
  443. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +10 -6
  444. package/esm2015/components/accordion/accordion.component.js +2 -2
  445. package/esm2015/components/accordion/accordion.module.js +6 -3
  446. package/esm2015/components/accordion/index.js +2 -1
  447. package/esm2015/components/action/action.component.js +5 -5
  448. package/esm2015/components/arrow/arrow.module.js +1 -1
  449. package/esm2015/components/avatar/avatar.component.js +2 -2
  450. package/esm2015/components/avatar/avatar.module.js +1 -1
  451. package/esm2015/components/badge/badge.component.js +2 -2
  452. package/esm2015/components/badge/badge.module.js +1 -1
  453. package/esm2015/components/badged-content/badged-content.component.js +1 -1
  454. package/esm2015/components/badged-content/badged-content.module.js +1 -1
  455. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
  456. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +2 -2
  457. package/esm2015/components/breadcrumbs/breadcrumbs.module.js +2 -2
  458. package/esm2015/components/breadcrumbs/index.js +2 -2
  459. package/esm2015/components/calendar-month/calendar-month.component.js +7 -7
  460. package/esm2015/components/calendar-month/calendar-month.module.js +1 -1
  461. package/esm2015/components/calendar-range/calendar-range.component.js +2 -2
  462. package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
  463. package/esm2015/components/carousel/carousel-buttons.directive.js +24 -0
  464. package/esm2015/components/carousel/carousel-scroll.directive.js +26 -0
  465. package/esm2015/components/carousel/carousel.component.js +144 -0
  466. package/esm2015/components/carousel/carousel.directive.js +35 -0
  467. package/esm2015/components/carousel/carousel.module.js +38 -0
  468. package/esm2015/components/carousel/index.js +7 -0
  469. package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
  470. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  471. package/esm2015/components/checkbox/checkbox.module.js +1 -1
  472. package/esm2015/components/checkbox-block/checkbox-block.component.js +4 -4
  473. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  474. package/esm2015/components/combo-box/combo-box.component.js +20 -21
  475. package/esm2015/components/combo-box/combo-box.module.js +1 -1
  476. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  477. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +9 -9
  478. package/esm2015/components/data-list-wrapper/data-list-wrapper.module.js +1 -1
  479. package/esm2015/components/field-error/field-error.module.js +1 -1
  480. package/esm2015/components/filter/filter.component.js +10 -10
  481. package/esm2015/components/filter/filter.module.js +1 -1
  482. package/esm2015/components/index.js +6 -4
  483. package/esm2015/components/input/input.component.js +8 -8
  484. package/esm2015/components/input/input.module.js +1 -1
  485. package/esm2015/components/input/input.providers.js +1 -1
  486. package/esm2015/components/input-copy/input-copy.component.js +6 -6
  487. package/esm2015/components/input-copy/input-copy.module.js +1 -1
  488. package/esm2015/components/input-count/input-count.component.js +5 -5
  489. package/esm2015/components/input-count/input-count.module.js +1 -1
  490. package/esm2015/components/input-date/input-date.component.js +19 -16
  491. package/esm2015/components/input-date/input-date.module.js +1 -1
  492. package/esm2015/components/input-date-range/input-date-range.component.js +18 -15
  493. package/esm2015/components/input-date-range/input-date-range.module.js +1 -1
  494. package/esm2015/components/input-date-time/input-date-time.component.js +21 -18
  495. package/esm2015/components/input-date-time/input-date-time.module.js +1 -1
  496. package/esm2015/components/input-file/file/file.component.js +2 -2
  497. package/esm2015/components/input-file/index.js +2 -2
  498. package/esm2015/components/input-file/input-file.component.js +3 -3
  499. package/esm2015/components/input-file/input-file.module.js +1 -1
  500. package/esm2015/components/input-inline/input-inline.component.js +7 -6
  501. package/esm2015/components/input-inline/input-inline.module.js +1 -1
  502. package/esm2015/components/input-month/input-month.component.js +5 -4
  503. package/esm2015/components/input-month-range/input-month-range.component.js +5 -4
  504. package/esm2015/components/input-number/input-number.component.js +18 -28
  505. package/esm2015/components/input-number/input-number.module.js +1 -1
  506. package/esm2015/components/input-password/index.js +2 -2
  507. package/esm2015/components/input-password/input-password.component.js +5 -5
  508. package/esm2015/components/input-password/input-password.module.js +1 -1
  509. package/esm2015/components/input-phone/input-phone.component.js +8 -8
  510. package/esm2015/components/input-phone/input-phone.module.js +1 -1
  511. package/esm2015/components/input-phone-international/const/countries.js +1 -1
  512. package/esm2015/components/input-phone-international/input-phone-international.component.js +21 -21
  513. package/esm2015/components/input-phone-international/input-phone-international.module.js +1 -1
  514. package/esm2015/components/input-range/input-range.component.js +3 -3
  515. package/esm2015/components/input-slider/input-slider.component.js +5 -5
  516. package/esm2015/components/input-tag/input-tag.component.js +33 -33
  517. package/esm2015/components/input-tag/input-tag.module.js +1 -1
  518. package/esm2015/components/input-time/input-time.component.js +18 -18
  519. package/esm2015/components/input-time/input-time.module.js +1 -1
  520. package/esm2015/components/island/island.module.js +1 -1
  521. package/esm2015/components/line-clamp/index.js +2 -2
  522. package/esm2015/components/line-clamp/line-clamp.component.js +9 -9
  523. package/esm2015/components/line-clamp/line-clamp.module.js +1 -1
  524. package/esm2015/components/marker-icon/marker-icon.component.js +2 -2
  525. package/esm2015/components/marker-icon/marker-icon.module.js +1 -1
  526. package/esm2015/components/multi-select/hide-selected.pipe.js +1 -1
  527. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +6 -6
  528. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
  529. package/esm2015/components/multi-select/multi-select.component.js +16 -16
  530. package/esm2015/components/multi-select/multi-select.module.js +2 -2
  531. package/esm2015/components/multi-select-option/multi-select-option.component.js +8 -10
  532. package/esm2015/components/multi-select-option/multi-select-option.module.js +1 -1
  533. package/esm2015/components/pagination/pagination.component.js +6 -6
  534. package/esm2015/components/pagination/pagination.module.js +1 -1
  535. package/esm2015/components/pdf-viewer/index.js +5 -0
  536. package/esm2015/components/pdf-viewer/pdf-viewer-options.js +1 -0
  537. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +36 -0
  538. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +21 -0
  539. package/esm2015/components/pdf-viewer/pdf-viewer.module.js +28 -0
  540. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +27 -0
  541. package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
  542. package/esm2015/components/progress/index.js +5 -3
  543. package/esm2015/components/progress/pipes/abstract-color-segments.js +32 -0
  544. package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +15 -0
  545. package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +12 -28
  546. package/esm2015/components/progress/progress-circle/progress-circle.component.js +5 -5
  547. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +1 -1
  548. package/esm2015/components/progress/progress.module.js +4 -1
  549. package/esm2015/components/radio/radio.component.js +4 -4
  550. package/esm2015/components/radio/radio.module.js +1 -1
  551. package/esm2015/components/radio-block/radio-block.component.js +4 -4
  552. package/esm2015/components/radio-group/radio-group.component.js +1 -1
  553. package/esm2015/components/radio-group/radio-group.module.js +1 -1
  554. package/esm2015/components/radio-labeled/radio-labeled.component.js +4 -4
  555. package/esm2015/components/radio-list/radio-list.component.js +8 -8
  556. package/esm2015/components/range/range.component.js +2 -2
  557. package/esm2015/components/range/range.module.js +1 -1
  558. package/esm2015/components/select/select.component.js +11 -14
  559. package/esm2015/components/select/select.module.js +1 -1
  560. package/esm2015/components/select-option/select-option.component.js +20 -12
  561. package/esm2015/components/select-option/select-option.module.js +1 -1
  562. package/esm2015/components/slider/slider.component.js +2 -2
  563. package/esm2015/components/slider/slider.module.js +1 -1
  564. package/esm2015/components/stepper/step/step.component.js +2 -2
  565. package/esm2015/components/stepper/stepper.component.js +18 -18
  566. package/esm2015/components/stepper/stepper.module.js +1 -1
  567. package/esm2015/components/tabs/index.js +3 -3
  568. package/esm2015/components/tabs/tab/tab.component.js +1 -1
  569. package/esm2015/components/tabs/tabs/tabs.component.js +16 -16
  570. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
  571. package/esm2015/components/tabs/tabs.module.js +2 -2
  572. package/esm2015/components/tabs/underline/underline.component.js +3 -3
  573. package/esm2015/components/tag/tag.component.js +2 -2
  574. package/esm2015/components/tag/tag.module.js +1 -1
  575. package/esm2015/components/text-area/text-area.component.js +6 -6
  576. package/esm2015/components/text-area/text-area.module.js +1 -1
  577. package/esm2015/components/text-area/text-area.providers.js +1 -1
  578. package/esm2015/components/toggle/index.js +2 -2
  579. package/esm2015/components/toggle/toggle.component.js +5 -5
  580. package/esm2015/components/toggle/toggle.module.js +1 -1
  581. package/esm2015/components/tree/components/tree/tree.component.js +16 -3
  582. package/esm2015/components/tree/components/tree-item/tree-item.component.js +10 -10
  583. package/esm2015/components/tree/components/tree-item/tree-item.providers.js +1 -1
  584. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +5 -6
  585. package/esm2015/components/tree/directives/tree-controller.directive.js +1 -1
  586. package/esm2015/components/tree/directives/tree-item-controller.directive.js +2 -2
  587. package/esm2015/components/tree/directives/tree-node.directive.js +1 -1
  588. package/esm2015/components/tree/index.js +4 -4
  589. package/esm2015/components/tree/misc/tree.constants.js +1 -1
  590. package/esm2015/components/tree/misc/tree.interfaces.js +1 -1
  591. package/esm2015/components/tree/misc/tree.service.js +1 -1
  592. package/esm2015/components/tree/misc/tree.tokens.js +1 -1
  593. package/esm2015/components/tree/tree.module.js +3 -3
  594. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +3 -5
  595. package/esm2015/directives/dropdown-context/dropdown-context.module.js +1 -1
  596. package/esm2015/directives/dropdown-hover/dropdown-hover.module.js +1 -1
  597. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +4 -3
  598. package/esm2015/directives/dropdown-selection/dropdown-selection.module.js +1 -1
  599. package/esm2015/directives/highlight/highlight.directive.js +8 -3
  600. package/esm2015/directives/highlight/highlight.module.js +1 -1
  601. package/esm2015/directives/index.js +2 -2
  602. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +4 -2
  603. package/esm2015/directives/lazy-loading/lazy-loading.module.js +1 -1
  604. package/esm2015/directives/present/present.directive.js +1 -1
  605. package/esm2015/directives/present/present.module.js +1 -1
  606. package/esm2015/directives/project-class/project-class.module.js +1 -1
  607. package/esm2015/directives/unfinished-validator/unfinished-validator.module.js +1 -1
  608. package/esm2015/directives/value-accessor/value-accessor.module.js +1 -1
  609. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
  610. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +1 -1
  611. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  612. package/esm2015/pipes/filter-by-input/filter-by-input.module.js +2 -2
  613. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  614. package/esm2015/pipes/stringify/stringify.module.js +1 -1
  615. package/esm2015/pipes/stringify-content/stringify-content.module.js +1 -1
  616. package/esm2015/tokens/index.js +2 -2
  617. package/esm2015/utils/format/string-hash-to-hsl.js +1 -3
  618. package/esm2015/utils/mask/index.js +2 -2
  619. package/esm5/abstract/input-slider.js +2 -2
  620. package/esm5/abstract/slider/slider.js +9 -9
  621. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  622. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +14 -0
  623. package/esm5/components/accordion/accordion-item/accordion-item.component.js +10 -6
  624. package/esm5/components/accordion/accordion.component.js +2 -2
  625. package/esm5/components/accordion/accordion.module.js +6 -3
  626. package/esm5/components/accordion/index.js +2 -1
  627. package/esm5/components/action/action.component.js +5 -5
  628. package/esm5/components/arrow/arrow.module.js +1 -1
  629. package/esm5/components/avatar/avatar.component.js +2 -2
  630. package/esm5/components/avatar/avatar.module.js +1 -1
  631. package/esm5/components/badge/badge.component.js +2 -2
  632. package/esm5/components/badge/badge.module.js +1 -1
  633. package/esm5/components/badged-content/badged-content.component.js +1 -1
  634. package/esm5/components/badged-content/badged-content.module.js +1 -1
  635. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
  636. package/esm5/components/breadcrumbs/breadcrumbs.component.js +2 -2
  637. package/esm5/components/breadcrumbs/breadcrumbs.module.js +2 -2
  638. package/esm5/components/breadcrumbs/index.js +2 -2
  639. package/esm5/components/calendar-month/calendar-month.component.js +9 -9
  640. package/esm5/components/calendar-month/calendar-month.module.js +1 -1
  641. package/esm5/components/calendar-range/calendar-range.component.js +2 -2
  642. package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
  643. package/esm5/components/carousel/carousel-buttons.directive.js +27 -0
  644. package/esm5/components/carousel/carousel-scroll.directive.js +34 -0
  645. package/esm5/components/carousel/carousel.component.js +158 -0
  646. package/esm5/components/carousel/carousel.directive.js +45 -0
  647. package/esm5/components/carousel/carousel.module.js +41 -0
  648. package/esm5/components/carousel/index.js +7 -0
  649. package/esm5/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
  650. package/esm5/components/checkbox/checkbox.component.js +4 -4
  651. package/esm5/components/checkbox/checkbox.module.js +1 -1
  652. package/esm5/components/checkbox-block/checkbox-block.component.js +4 -4
  653. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  654. package/esm5/components/combo-box/combo-box.component.js +20 -21
  655. package/esm5/components/combo-box/combo-box.module.js +1 -1
  656. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  657. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +9 -9
  658. package/esm5/components/data-list-wrapper/data-list-wrapper.module.js +1 -1
  659. package/esm5/components/field-error/field-error.module.js +1 -1
  660. package/esm5/components/filter/filter.component.js +10 -10
  661. package/esm5/components/filter/filter.module.js +1 -1
  662. package/esm5/components/index.js +6 -4
  663. package/esm5/components/input/input.component.js +8 -8
  664. package/esm5/components/input/input.module.js +1 -1
  665. package/esm5/components/input/input.providers.js +1 -1
  666. package/esm5/components/input-copy/input-copy.component.js +6 -6
  667. package/esm5/components/input-copy/input-copy.module.js +1 -1
  668. package/esm5/components/input-count/input-count.component.js +5 -5
  669. package/esm5/components/input-count/input-count.module.js +1 -1
  670. package/esm5/components/input-date/input-date.component.js +19 -16
  671. package/esm5/components/input-date/input-date.module.js +1 -1
  672. package/esm5/components/input-date-range/input-date-range.component.js +18 -15
  673. package/esm5/components/input-date-range/input-date-range.module.js +1 -1
  674. package/esm5/components/input-date-time/input-date-time.component.js +22 -19
  675. package/esm5/components/input-date-time/input-date-time.module.js +1 -1
  676. package/esm5/components/input-file/file/file.component.js +2 -2
  677. package/esm5/components/input-file/index.js +2 -2
  678. package/esm5/components/input-file/input-file.component.js +3 -3
  679. package/esm5/components/input-file/input-file.module.js +1 -1
  680. package/esm5/components/input-inline/input-inline.component.js +7 -6
  681. package/esm5/components/input-inline/input-inline.module.js +1 -1
  682. package/esm5/components/input-month/input-month.component.js +5 -4
  683. package/esm5/components/input-month-range/input-month-range.component.js +5 -4
  684. package/esm5/components/input-number/input-number.component.js +19 -33
  685. package/esm5/components/input-number/input-number.module.js +1 -1
  686. package/esm5/components/input-password/index.js +2 -2
  687. package/esm5/components/input-password/input-password.component.js +5 -5
  688. package/esm5/components/input-password/input-password.module.js +1 -1
  689. package/esm5/components/input-phone/input-phone.component.js +8 -8
  690. package/esm5/components/input-phone/input-phone.module.js +1 -1
  691. package/esm5/components/input-phone-international/const/countries.js +1 -1
  692. package/esm5/components/input-phone-international/input-phone-international.component.js +24 -24
  693. package/esm5/components/input-phone-international/input-phone-international.module.js +1 -1
  694. package/esm5/components/input-range/input-range.component.js +3 -3
  695. package/esm5/components/input-slider/input-slider.component.js +5 -5
  696. package/esm5/components/input-tag/input-tag.component.js +33 -33
  697. package/esm5/components/input-tag/input-tag.module.js +1 -1
  698. package/esm5/components/input-time/input-time.component.js +18 -18
  699. package/esm5/components/input-time/input-time.module.js +1 -1
  700. package/esm5/components/island/island.module.js +1 -1
  701. package/esm5/components/line-clamp/index.js +2 -2
  702. package/esm5/components/line-clamp/line-clamp.component.js +9 -9
  703. package/esm5/components/line-clamp/line-clamp.module.js +1 -1
  704. package/esm5/components/marker-icon/marker-icon.component.js +2 -2
  705. package/esm5/components/marker-icon/marker-icon.module.js +1 -1
  706. package/esm5/components/multi-select/hide-selected.pipe.js +1 -1
  707. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +6 -6
  708. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
  709. package/esm5/components/multi-select/multi-select.component.js +16 -16
  710. package/esm5/components/multi-select/multi-select.module.js +2 -2
  711. package/esm5/components/multi-select-option/multi-select-option.component.js +14 -11
  712. package/esm5/components/multi-select-option/multi-select-option.module.js +1 -1
  713. package/esm5/components/pagination/pagination.component.js +6 -6
  714. package/esm5/components/pagination/pagination.module.js +1 -1
  715. package/esm5/components/pdf-viewer/index.js +5 -0
  716. package/esm5/components/pdf-viewer/pdf-viewer-options.js +1 -0
  717. package/esm5/components/pdf-viewer/pdf-viewer.component.js +37 -0
  718. package/esm5/components/pdf-viewer/pdf-viewer.directive.js +26 -0
  719. package/esm5/components/pdf-viewer/pdf-viewer.module.js +31 -0
  720. package/esm5/components/pdf-viewer/pdf-viewer.service.js +31 -0
  721. package/esm5/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
  722. package/esm5/components/progress/index.js +5 -3
  723. package/esm5/components/progress/pipes/abstract-color-segments.js +35 -0
  724. package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +21 -0
  725. package/esm5/components/progress/pipes/progress-color-segments.pipe.js +16 -30
  726. package/esm5/components/progress/progress-circle/progress-circle.component.js +5 -5
  727. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +1 -1
  728. package/esm5/components/progress/progress.module.js +4 -1
  729. package/esm5/components/radio/radio.component.js +4 -4
  730. package/esm5/components/radio/radio.module.js +1 -1
  731. package/esm5/components/radio-block/radio-block.component.js +4 -4
  732. package/esm5/components/radio-group/radio-group.component.js +1 -1
  733. package/esm5/components/radio-group/radio-group.module.js +1 -1
  734. package/esm5/components/radio-labeled/radio-labeled.component.js +4 -4
  735. package/esm5/components/radio-list/radio-list.component.js +8 -8
  736. package/esm5/components/range/range.component.js +2 -2
  737. package/esm5/components/range/range.module.js +1 -1
  738. package/esm5/components/select/select.component.js +11 -14
  739. package/esm5/components/select/select.module.js +1 -1
  740. package/esm5/components/select-option/select-option.component.js +24 -14
  741. package/esm5/components/select-option/select-option.module.js +1 -1
  742. package/esm5/components/slider/slider.component.js +2 -2
  743. package/esm5/components/slider/slider.module.js +1 -1
  744. package/esm5/components/stepper/step/step.component.js +2 -2
  745. package/esm5/components/stepper/stepper.component.js +19 -19
  746. package/esm5/components/stepper/stepper.module.js +1 -1
  747. package/esm5/components/tabs/index.js +3 -3
  748. package/esm5/components/tabs/tab/tab.component.js +1 -1
  749. package/esm5/components/tabs/tabs/tabs.component.js +17 -17
  750. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
  751. package/esm5/components/tabs/tabs.module.js +2 -2
  752. package/esm5/components/tabs/underline/underline.component.js +3 -3
  753. package/esm5/components/tag/tag.component.js +2 -2
  754. package/esm5/components/tag/tag.module.js +1 -1
  755. package/esm5/components/text-area/text-area.component.js +6 -6
  756. package/esm5/components/text-area/text-area.module.js +1 -1
  757. package/esm5/components/text-area/text-area.providers.js +1 -1
  758. package/esm5/components/toggle/index.js +2 -2
  759. package/esm5/components/toggle/toggle.component.js +5 -5
  760. package/esm5/components/toggle/toggle.module.js +1 -1
  761. package/esm5/components/tree/components/tree/tree.component.js +16 -3
  762. package/esm5/components/tree/components/tree-item/tree-item.component.js +10 -10
  763. package/esm5/components/tree/components/tree-item/tree-item.providers.js +1 -1
  764. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +5 -6
  765. package/esm5/components/tree/directives/tree-controller.directive.js +1 -1
  766. package/esm5/components/tree/directives/tree-item-controller.directive.js +2 -2
  767. package/esm5/components/tree/directives/tree-node.directive.js +1 -1
  768. package/esm5/components/tree/index.js +4 -4
  769. package/esm5/components/tree/misc/tree.constants.js +1 -1
  770. package/esm5/components/tree/misc/tree.interfaces.js +1 -1
  771. package/esm5/components/tree/misc/tree.service.js +1 -1
  772. package/esm5/components/tree/misc/tree.tokens.js +1 -1
  773. package/esm5/components/tree/tree.module.js +3 -3
  774. package/esm5/directives/dropdown-context/dropdown-context.directive.js +3 -5
  775. package/esm5/directives/dropdown-context/dropdown-context.module.js +1 -1
  776. package/esm5/directives/dropdown-hover/dropdown-hover.module.js +1 -1
  777. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +4 -3
  778. package/esm5/directives/dropdown-selection/dropdown-selection.module.js +1 -1
  779. package/esm5/directives/highlight/highlight.directive.js +8 -3
  780. package/esm5/directives/highlight/highlight.module.js +1 -1
  781. package/esm5/directives/index.js +2 -2
  782. package/esm5/directives/lazy-loading/lazy-loading.directive.js +8 -2
  783. package/esm5/directives/lazy-loading/lazy-loading.module.js +1 -1
  784. package/esm5/directives/present/present.directive.js +1 -1
  785. package/esm5/directives/present/present.module.js +1 -1
  786. package/esm5/directives/project-class/project-class.module.js +1 -1
  787. package/esm5/directives/unfinished-validator/unfinished-validator.module.js +1 -1
  788. package/esm5/directives/value-accessor/value-accessor.module.js +1 -1
  789. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -4
  790. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.module.js +1 -1
  791. package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  792. package/esm5/pipes/filter-by-input/filter-by-input.module.js +2 -2
  793. package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  794. package/esm5/pipes/stringify/stringify.module.js +1 -1
  795. package/esm5/pipes/stringify-content/stringify-content.module.js +1 -1
  796. package/esm5/tokens/index.js +2 -2
  797. package/esm5/utils/format/string-hash-to-hsl.js +1 -3
  798. package/esm5/utils/mask/index.js +2 -2
  799. package/fesm2015/taiga-ui-kit-abstract.js +9 -9
  800. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  801. package/fesm2015/taiga-ui-kit-components-accordion.js +22 -10
  802. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  803. package/fesm2015/taiga-ui-kit-components-action.js +5 -5
  804. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  805. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  806. package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
  807. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  808. package/fesm2015/taiga-ui-kit-components-badge.js +1 -1
  809. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  810. package/fesm2015/taiga-ui-kit-components-badged-content.js +1 -1
  811. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  812. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -4
  813. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  814. package/fesm2015/taiga-ui-kit-components-calendar-month.js +6 -6
  815. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  816. package/fesm2015/taiga-ui-kit-components-calendar-range.js +1 -1
  817. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  818. package/fesm2015/taiga-ui-kit-components-carousel.js +267 -0
  819. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -0
  820. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +4 -4
  821. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  822. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  823. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  824. package/fesm2015/taiga-ui-kit-components-checkbox.js +4 -4
  825. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  826. package/fesm2015/taiga-ui-kit-components-combo-box.js +21 -22
  827. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  828. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +11 -11
  829. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  830. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  831. package/fesm2015/taiga-ui-kit-components-filter.js +10 -10
  832. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  833. package/fesm2015/taiga-ui-kit-components-input-copy.js +6 -6
  834. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  835. package/fesm2015/taiga-ui-kit-components-input-count.js +5 -5
  836. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  837. package/fesm2015/taiga-ui-kit-components-input-date-range.js +19 -16
  838. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  839. package/fesm2015/taiga-ui-kit-components-input-date-time.js +21 -18
  840. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  841. package/fesm2015/taiga-ui-kit-components-input-date.js +19 -16
  842. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  843. package/fesm2015/taiga-ui-kit-components-input-file.js +148 -148
  844. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  845. package/fesm2015/taiga-ui-kit-components-input-inline.js +7 -6
  846. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  847. package/fesm2015/taiga-ui-kit-components-input-month-range.js +5 -4
  848. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  849. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -4
  850. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  851. package/fesm2015/taiga-ui-kit-components-input-number.js +18 -28
  852. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  853. package/fesm2015/taiga-ui-kit-components-input-password.js +5 -5
  854. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  855. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +21 -21
  856. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  857. package/fesm2015/taiga-ui-kit-components-input-phone.js +9 -9
  858. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  859. package/fesm2015/taiga-ui-kit-components-input-range.js +2 -2
  860. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  861. package/fesm2015/taiga-ui-kit-components-input-slider.js +5 -5
  862. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  863. package/fesm2015/taiga-ui-kit-components-input-tag.js +35 -35
  864. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  865. package/fesm2015/taiga-ui-kit-components-input-time.js +18 -18
  866. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  867. package/fesm2015/taiga-ui-kit-components-input.js +9 -9
  868. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  869. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  870. package/fesm2015/taiga-ui-kit-components-line-clamp.js +10 -10
  871. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  872. package/fesm2015/taiga-ui-kit-components-marker-icon.js +1 -1
  873. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  874. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +7 -9
  875. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  876. package/fesm2015/taiga-ui-kit-components-multi-select.js +22 -22
  877. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  878. package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
  879. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  880. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +98 -0
  881. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
  882. package/fesm2015/taiga-ui-kit-components-progress.js +41 -16
  883. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  884. package/fesm2015/taiga-ui-kit-components-radio-block.js +4 -4
  885. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  886. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  887. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +4 -4
  888. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  889. package/fesm2015/taiga-ui-kit-components-radio-list.js +9 -9
  890. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  891. package/fesm2015/taiga-ui-kit-components-radio.js +4 -4
  892. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  893. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  894. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  895. package/fesm2015/taiga-ui-kit-components-select-option.js +19 -11
  896. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  897. package/fesm2015/taiga-ui-kit-components-select.js +12 -15
  898. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  899. package/fesm2015/taiga-ui-kit-components-slider.js +1 -1
  900. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  901. package/fesm2015/taiga-ui-kit-components-stepper.js +19 -19
  902. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  903. package/fesm2015/taiga-ui-kit-components-tabs.js +23 -23
  904. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  905. package/fesm2015/taiga-ui-kit-components-tag.js +1 -1
  906. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  907. package/fesm2015/taiga-ui-kit-components-text-area.js +6 -6
  908. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  909. package/fesm2015/taiga-ui-kit-components-toggle.js +5 -5
  910. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  911. package/fesm2015/taiga-ui-kit-components-tree.js +133 -122
  912. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  913. package/fesm2015/taiga-ui-kit-components.js +5 -3
  914. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  915. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +2 -4
  916. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  917. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  918. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +3 -2
  919. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  920. package/fesm2015/taiga-ui-kit-directives-highlight.js +7 -2
  921. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  922. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +3 -1
  923. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  924. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  925. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  926. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  927. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  928. package/fesm2015/taiga-ui-kit-directives.js +1 -1
  929. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +2 -2
  930. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  931. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +15 -15
  932. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  933. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  934. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  935. package/fesm2015/taiga-ui-kit-tokens.js +14 -14
  936. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  937. package/fesm2015/taiga-ui-kit-utils-format.js +0 -2
  938. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  939. package/fesm5/taiga-ui-kit-abstract.js +9 -9
  940. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  941. package/fesm5/taiga-ui-kit-components-accordion.js +25 -10
  942. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  943. package/fesm5/taiga-ui-kit-components-action.js +5 -5
  944. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  945. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  946. package/fesm5/taiga-ui-kit-components-avatar.js +1 -1
  947. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  948. package/fesm5/taiga-ui-kit-components-badge.js +1 -1
  949. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  950. package/fesm5/taiga-ui-kit-components-badged-content.js +1 -1
  951. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  952. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +4 -4
  953. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  954. package/fesm5/taiga-ui-kit-components-calendar-month.js +8 -8
  955. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  956. package/fesm5/taiga-ui-kit-components-calendar-range.js +1 -1
  957. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  958. package/fesm5/taiga-ui-kit-components-carousel.js +306 -0
  959. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -0
  960. package/fesm5/taiga-ui-kit-components-checkbox-block.js +4 -4
  961. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  962. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  963. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  964. package/fesm5/taiga-ui-kit-components-checkbox.js +4 -4
  965. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  966. package/fesm5/taiga-ui-kit-components-combo-box.js +21 -22
  967. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  968. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +11 -11
  969. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  970. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  971. package/fesm5/taiga-ui-kit-components-filter.js +10 -10
  972. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  973. package/fesm5/taiga-ui-kit-components-input-copy.js +6 -6
  974. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  975. package/fesm5/taiga-ui-kit-components-input-count.js +5 -5
  976. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  977. package/fesm5/taiga-ui-kit-components-input-date-range.js +19 -16
  978. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  979. package/fesm5/taiga-ui-kit-components-input-date-time.js +22 -19
  980. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  981. package/fesm5/taiga-ui-kit-components-input-date.js +19 -16
  982. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  983. package/fesm5/taiga-ui-kit-components-input-file.js +194 -194
  984. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  985. package/fesm5/taiga-ui-kit-components-input-inline.js +7 -6
  986. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  987. package/fesm5/taiga-ui-kit-components-input-month-range.js +5 -4
  988. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  989. package/fesm5/taiga-ui-kit-components-input-month.js +5 -4
  990. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  991. package/fesm5/taiga-ui-kit-components-input-number.js +19 -33
  992. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  993. package/fesm5/taiga-ui-kit-components-input-password.js +5 -5
  994. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  995. package/fesm5/taiga-ui-kit-components-input-phone-international.js +24 -24
  996. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  997. package/fesm5/taiga-ui-kit-components-input-phone.js +9 -9
  998. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  999. package/fesm5/taiga-ui-kit-components-input-range.js +2 -2
  1000. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  1001. package/fesm5/taiga-ui-kit-components-input-slider.js +5 -5
  1002. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  1003. package/fesm5/taiga-ui-kit-components-input-tag.js +35 -35
  1004. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  1005. package/fesm5/taiga-ui-kit-components-input-time.js +18 -18
  1006. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  1007. package/fesm5/taiga-ui-kit-components-input.js +9 -9
  1008. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  1009. package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
  1010. package/fesm5/taiga-ui-kit-components-line-clamp.js +10 -10
  1011. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  1012. package/fesm5/taiga-ui-kit-components-marker-icon.js +1 -1
  1013. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  1014. package/fesm5/taiga-ui-kit-components-multi-select-option.js +13 -10
  1015. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  1016. package/fesm5/taiga-ui-kit-components-multi-select.js +22 -22
  1017. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  1018. package/fesm5/taiga-ui-kit-components-pagination.js +7 -7
  1019. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  1020. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +111 -0
  1021. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
  1022. package/fesm5/taiga-ui-kit-components-progress.js +55 -19
  1023. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  1024. package/fesm5/taiga-ui-kit-components-radio-block.js +4 -4
  1025. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  1026. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  1027. package/fesm5/taiga-ui-kit-components-radio-labeled.js +4 -4
  1028. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  1029. package/fesm5/taiga-ui-kit-components-radio-list.js +9 -9
  1030. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  1031. package/fesm5/taiga-ui-kit-components-radio.js +4 -4
  1032. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  1033. package/fesm5/taiga-ui-kit-components-range.js +1 -1
  1034. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  1035. package/fesm5/taiga-ui-kit-components-select-option.js +23 -13
  1036. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  1037. package/fesm5/taiga-ui-kit-components-select.js +12 -15
  1038. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  1039. package/fesm5/taiga-ui-kit-components-slider.js +1 -1
  1040. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  1041. package/fesm5/taiga-ui-kit-components-stepper.js +20 -20
  1042. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  1043. package/fesm5/taiga-ui-kit-components-tabs.js +24 -24
  1044. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  1045. package/fesm5/taiga-ui-kit-components-tag.js +1 -1
  1046. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  1047. package/fesm5/taiga-ui-kit-components-text-area.js +6 -6
  1048. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  1049. package/fesm5/taiga-ui-kit-components-toggle.js +5 -5
  1050. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  1051. package/fesm5/taiga-ui-kit-components-tree.js +148 -137
  1052. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  1053. package/fesm5/taiga-ui-kit-components.js +5 -3
  1054. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  1055. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +2 -4
  1056. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  1057. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  1058. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +3 -2
  1059. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  1060. package/fesm5/taiga-ui-kit-directives-highlight.js +7 -2
  1061. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  1062. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +7 -1
  1063. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  1064. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  1065. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  1066. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  1067. package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  1068. package/fesm5/taiga-ui-kit-directives.js +1 -1
  1069. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +3 -3
  1070. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  1071. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js +22 -22
  1072. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  1073. package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  1074. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  1075. package/fesm5/taiga-ui-kit-tokens.js +14 -14
  1076. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  1077. package/fesm5/taiga-ui-kit-utils-format.js +0 -2
  1078. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  1079. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
  1080. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  1081. package/package.json +7 -6
  1082. package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.metadata.json +1 -1
  1083. package/pipes/stringify/taiga-ui-kit-pipes-stringify.metadata.json +1 -1
  1084. package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.metadata.json +1 -1
  1085. package/tokens/index.d.ts +1 -1
  1086. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  1087. package/utils/mask/index.d.ts +1 -1
  1088. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-time.js","sources":["ng://@taiga-ui/kit/components/input-time/input-time-options.ts","ng://@taiga-ui/kit/components/input-time/input-time.component.ts","ng://@taiga-ui/kit/components/input-time/input-time.module.ts","ng://@taiga-ui/kit/components/input-time/taiga-ui-kit-components-input-time.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit, TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface InputTimeOptions {\n readonly icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n readonly mode: TuiTimeMode;\n readonly itemSize: TuiSizeS | TuiSizeL;\n}\n\n// TODO: remove in ivy compilation\nexport const INPUT_TIME_ICON = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconTime' : 'tuiIconTimeLarge';\n\nexport const TUI_INPUT_TIME_DEFAULT_OPTIONS: InputTimeOptions = {\n icon: INPUT_TIME_ICON,\n mode: 'HH:MM',\n itemSize: 'm',\n};\n\nexport const TUI_INPUT_TIME_OPTIONS = new InjectionToken<InputTimeOptions>(\n 'Default parameters for input time component',\n {\n factory: () => TUI_INPUT_TIME_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_STRICT_MATCHER,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n tuiPure,\n TuiTime,\n TuiTimeLike,\n TuiTimeMode,\n} from '@taiga-ui/cdk';\nimport {\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens';\nimport {\n tuiCreateAutoCorrectedTimePipe,\n tuiCreateTimeMask,\n} from '@taiga-ui/kit/utils/mask';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {InputTimeOptions, TUI_INPUT_TIME_OPTIONS} from './input-time-options';\n\n// @dynamic\n@Component({\n selector: 'tui-input-time',\n templateUrl: './input-time.template.html',\n styleUrls: ['./input-time.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputTimeComponent),\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputTimeComponent\n extends AbstractTuiNullableControl<TuiTime>\n implements TuiFocusableElementAccessor, InputTimeOptions\n{\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiTime> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<TuiTime> = [];\n\n @Input()\n @tuiDefaultProp()\n itemSize = this.options.itemSize;\n\n @Input()\n @tuiDefaultProp()\n strict = false;\n\n @Input()\n @tuiDefaultProp()\n mode = this.options.mode;\n\n open = false;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TIME_TEXTS)\n private readonly timeTexts$: Observable<Record<TuiTimeMode, string>>,\n @Inject(TUI_INPUT_TIME_OPTIONS)\n private readonly options: InputTimeOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get filtered(): ReadonlyArray<TuiTime> {\n return this.filter(this.items, this.mode, this.computedSearch);\n }\n\n get textMaskOptions(): TuiTextMaskOptions {\n return this.calculateMask(this.mode);\n }\n\n get computedValue(): string {\n return this.value ? this.value.toString(this.mode) : this.nativeValue;\n }\n\n get computedSearch(): string {\n return this.computedValue.length !== this.mode.length ? this.computedValue : '';\n }\n\n get interactive(): boolean {\n return !this.disabled && !this.readOnly;\n }\n\n get innerPseudoFocused(): boolean | null {\n if (this.pseudoFocused === false) {\n return false;\n }\n\n if (this.open || this.computedFocused) {\n return true;\n }\n\n return null;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.options.icon;\n }\n\n get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n set nativeValue(value: string) {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n this.nativeFocusableElement.value = value;\n }\n\n @tuiPure\n getFiller$(mode: TuiTimeMode): Observable<string> {\n return this.timeTexts$.pipe(map(texts => texts[mode]));\n }\n\n onValueChange(value: string) {\n this.open = !!this.items.length;\n\n if (this.control) {\n this.control.updateValueAndValidity({emitEvent: false});\n }\n\n const match = this.getMatch(value);\n\n if (match !== undefined) {\n this.updateValue(match);\n\n return;\n }\n\n if (value.length !== this.mode.length) {\n this.updateValue(null);\n\n return;\n }\n\n const time = TuiTime.fromString(value);\n\n this.updateValue(this.strict ? this.findNearestTimeFromItems(time) : time);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (\n focused ||\n this.value !== null ||\n this.nativeValue === '' ||\n this.mode === 'HH:MM'\n ) {\n return;\n }\n\n const parsedTime = TuiTime.fromString(this.nativeValue);\n\n this.updateValue(parsedTime);\n\n setTimeout(() => {\n if (this.nativeValue.endsWith('.') || this.nativeValue.endsWith(':')) {\n this.nativeValue = this.nativeValue.slice(0, -1);\n }\n });\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onArrowUp(event: KeyboardEvent) {\n if (this.items.length) {\n return;\n }\n\n this.processArrow(event, 1);\n }\n\n onArrowDown(event: KeyboardEvent) {\n if (this.items.length) {\n return;\n }\n\n this.processArrow(event, -1);\n }\n\n @HostListener('click')\n onClick() {\n this.open = !this.open;\n }\n\n onMenuClick(item: TuiTime) {\n this.focusInput();\n this.updateValue(item);\n }\n\n onOpen(open: boolean) {\n this.open = open;\n }\n\n writeValue(value: TuiTime | null) {\n super.writeValue(value);\n this.nativeValue = value ? this.computedValue : '';\n }\n\n private findNearestTimeFromItems(value: TuiTime): TuiTime | null {\n return this.items.reduce((previous, current) =>\n Math.abs(current.toAbsoluteMilliseconds() - value.toAbsoluteMilliseconds()) <\n Math.abs(previous.toAbsoluteMilliseconds() - value.toAbsoluteMilliseconds())\n ? current\n : previous,\n );\n }\n\n private getMatch(value: string): TuiTime | undefined {\n return this.items.find(item => TUI_STRICT_MATCHER(item, value));\n }\n\n private close() {\n this.open = false;\n }\n\n private processArrow(event: KeyboardEvent, shift: -1 | 1) {\n const {target} = event;\n\n // TODO: iframe warning\n if (this.readOnly || !(target instanceof HTMLInputElement)) {\n return;\n }\n\n const selectionStart = target.selectionStart || 0;\n\n this.shiftTime(this.calculateShift(selectionStart, shift));\n\n target.setSelectionRange(selectionStart, selectionStart);\n event.preventDefault();\n }\n\n private calculateShift(selectionStart: number, shift: number): TuiTimeLike {\n if (selectionStart <= 2) {\n return {hours: shift};\n }\n\n if (selectionStart <= 5) {\n return {minutes: shift};\n }\n\n if (selectionStart <= 8) {\n return {seconds: shift};\n }\n\n return {ms: shift};\n }\n\n private shiftTime(shift: TuiTimeLike) {\n if (this.value === null) {\n return;\n }\n\n const increasedTime = this.value.shift(shift);\n\n // Manual update so we can set caret position properly\n this.nativeValue = increasedTime.toString(this.mode);\n this.updateValue(increasedTime);\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n this.close();\n }\n }\n\n @tuiPure\n private calculateMask(mode: TuiTimeMode): TuiTextMaskOptions {\n return {\n mask: tuiCreateTimeMask(mode),\n pipe: tuiCreateAutoCorrectedTimePipe(mode),\n guide: false,\n };\n }\n\n @tuiPure\n private filter(\n items: ReadonlyArray<TuiTime>,\n mode: TuiTimeMode,\n search: string,\n ): ReadonlyArray<TuiTime> {\n return items.filter(item => item.toString(mode).includes(search));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {TextMaskModule} from 'angular2-text-mask';\nimport {TuiInputTimeComponent} from './input-time.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TextMaskModule,\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiValueAccessorModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputTimeComponent],\n exports: [TuiInputTimeComponent],\n})\nexport class TuiInputTimeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA;MACa,eAAe,GAAG,CAAC,EAAC,SAAS,EAAM,KAC5C,SAAS,KAAK,GAAG,GAAG,aAAa,GAAG,mBAAmB;MAE9C,8BAA8B,GAAqB;IAC5D,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,GAAG;EACf;MAEW,sBAAsB,GAAG,IAAI,cAAc,CACpD,6CAA6C,EAC7C;IACI,OAAO,EAAE,MAAM,8BAA8B;CAChD;;;ACqBL;IAca,qBAAqB,6BAAlC,MAAa,qBACT,SAAQ,0BAAmC;IA4B3C,YAII,OAAyB,EACE,iBAAoC,EAE9C,UAAmD,EAEnD,OAAyB;QAE1C,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAJjB,eAAU,GAAV,UAAU,CAAyC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uBAAuB;YACvB,2BAA2B;YAC3B,sBAAsB;YACtB,4BAA4B;SAC/B;QACD,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACzBlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-time.js","sources":["ng://@taiga-ui/kit/components/input-time/input-time-options.ts","ng://@taiga-ui/kit/components/input-time/input-time.component.ts","ng://@taiga-ui/kit/components/input-time/input-time.module.ts","ng://@taiga-ui/kit/components/input-time/taiga-ui-kit-components-input-time.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit, TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface InputTimeOptions {\n readonly icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n readonly mode: TuiTimeMode;\n readonly itemSize: TuiSizeS | TuiSizeL;\n}\n\n// TODO: remove in ivy compilation\nexport const INPUT_TIME_ICON = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconTime' : 'tuiIconTimeLarge';\n\nexport const TUI_INPUT_TIME_DEFAULT_OPTIONS: InputTimeOptions = {\n icon: INPUT_TIME_ICON,\n mode: 'HH:MM',\n itemSize: 'm',\n};\n\nexport const TUI_INPUT_TIME_OPTIONS = new InjectionToken<InputTimeOptions>(\n 'Default parameters for input time component',\n {\n factory: () => TUI_INPUT_TIME_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_STRICT_MATCHER,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n tuiPure,\n TuiTime,\n TuiTimeLike,\n TuiTimeMode,\n} from '@taiga-ui/cdk';\nimport {\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens';\nimport {\n tuiCreateAutoCorrectedTimePipe,\n tuiCreateTimeMask,\n} from '@taiga-ui/kit/utils/mask';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {InputTimeOptions, TUI_INPUT_TIME_OPTIONS} from './input-time-options';\n\n// @dynamic\n@Component({\n selector: 'tui-input-time',\n templateUrl: './input-time.template.html',\n styleUrls: ['./input-time.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputTimeComponent),\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputTimeComponent\n extends AbstractTuiNullableControl<TuiTime>\n implements TuiFocusableElementAccessor, InputTimeOptions\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiTime> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<TuiTime> = [];\n\n @Input()\n @tuiDefaultProp()\n itemSize = this.options.itemSize;\n\n @Input()\n @tuiDefaultProp()\n strict = false;\n\n @Input()\n @tuiDefaultProp()\n mode = this.options.mode;\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TIME_TEXTS)\n private readonly timeTexts$: Observable<Record<TuiTimeMode, string>>,\n @Inject(TUI_INPUT_TIME_OPTIONS)\n private readonly options: InputTimeOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get filtered(): ReadonlyArray<TuiTime> {\n return this.filter(this.items, this.mode, this.computedSearch);\n }\n\n get textMaskOptions(): TuiTextMaskOptions {\n return this.calculateMask(this.mode);\n }\n\n get computedValue(): string {\n return this.value ? this.value.toString(this.mode) : this.nativeValue;\n }\n\n get computedSearch(): string {\n return this.computedValue.length !== this.mode.length ? this.computedValue : '';\n }\n\n get interactive(): boolean {\n return !this.disabled && !this.readOnly;\n }\n\n get innerPseudoFocused(): boolean | null {\n if (this.pseudoFocused === false) {\n return false;\n }\n\n if (this.open || this.computedFocused) {\n return true;\n }\n\n return null;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.options.icon;\n }\n\n get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n set nativeValue(value: string) {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n this.nativeFocusableElement.value = value;\n }\n\n @tuiPure\n getFiller$(mode: TuiTimeMode): Observable<string> {\n return this.timeTexts$.pipe(map(texts => texts[mode]));\n }\n\n @HostListener('click')\n onClick() {\n this.open = !this.open;\n }\n\n onValueChange(value: string) {\n this.open = !!this.items.length;\n\n if (this.control) {\n this.control.updateValueAndValidity({emitEvent: false});\n }\n\n const match = this.getMatch(value);\n\n if (match !== undefined) {\n this.updateValue(match);\n\n return;\n }\n\n if (value.length !== this.mode.length) {\n this.updateValue(null);\n\n return;\n }\n\n const time = TuiTime.fromString(value);\n\n this.updateValue(this.strict ? this.findNearestTimeFromItems(time) : time);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (\n focused ||\n this.value !== null ||\n this.nativeValue === '' ||\n this.mode === 'HH:MM'\n ) {\n return;\n }\n\n const parsedTime = TuiTime.fromString(this.nativeValue);\n\n this.updateValue(parsedTime);\n\n setTimeout(() => {\n if (this.nativeValue.endsWith('.') || this.nativeValue.endsWith(':')) {\n this.nativeValue = this.nativeValue.slice(0, -1);\n }\n });\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onArrowUp(event: KeyboardEvent) {\n if (this.items.length) {\n return;\n }\n\n this.processArrow(event, 1);\n }\n\n onArrowDown(event: KeyboardEvent) {\n if (this.items.length) {\n return;\n }\n\n this.processArrow(event, -1);\n }\n\n onMenuClick(item: TuiTime) {\n this.focusInput();\n this.updateValue(item);\n }\n\n onOpen(open: boolean) {\n this.open = open;\n }\n\n writeValue(value: TuiTime | null) {\n super.writeValue(value);\n this.nativeValue = value ? this.computedValue : '';\n }\n\n @tuiPure\n private calculateMask(mode: TuiTimeMode): TuiTextMaskOptions {\n return {\n mask: tuiCreateTimeMask(mode),\n pipe: tuiCreateAutoCorrectedTimePipe(mode),\n guide: false,\n };\n }\n\n @tuiPure\n private filter(\n items: ReadonlyArray<TuiTime>,\n mode: TuiTimeMode,\n search: string,\n ): ReadonlyArray<TuiTime> {\n return items.filter(item => item.toString(mode).includes(search));\n }\n\n private findNearestTimeFromItems(value: TuiTime): TuiTime | null {\n return this.items.reduce((previous, current) =>\n Math.abs(current.toAbsoluteMilliseconds() - value.toAbsoluteMilliseconds()) <\n Math.abs(previous.toAbsoluteMilliseconds() - value.toAbsoluteMilliseconds())\n ? current\n : previous,\n );\n }\n\n private getMatch(value: string): TuiTime | undefined {\n return this.items.find(item => TUI_STRICT_MATCHER(item, value));\n }\n\n private close() {\n this.open = false;\n }\n\n private processArrow(event: KeyboardEvent, shift: -1 | 1) {\n const {target} = event;\n\n // TODO: iframe warning\n if (this.readOnly || !(target instanceof HTMLInputElement)) {\n return;\n }\n\n const selectionStart = target.selectionStart || 0;\n\n this.shiftTime(this.calculateShift(selectionStart, shift));\n\n target.setSelectionRange(selectionStart, selectionStart);\n event.preventDefault();\n }\n\n private calculateShift(selectionStart: number, shift: number): TuiTimeLike {\n if (selectionStart <= 2) {\n return {hours: shift};\n }\n\n if (selectionStart <= 5) {\n return {minutes: shift};\n }\n\n if (selectionStart <= 8) {\n return {seconds: shift};\n }\n\n return {ms: shift};\n }\n\n private shiftTime(shift: TuiTimeLike) {\n if (this.value === null) {\n return;\n }\n\n const increasedTime = this.value.shift(shift);\n\n // Manual update so we can set caret position properly\n this.nativeValue = increasedTime.toString(this.mode);\n this.updateValue(increasedTime);\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n this.close();\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputTimeComponent} from './input-time.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TextMaskModule,\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiValueAccessorModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputTimeComponent],\n exports: [TuiInputTimeComponent],\n})\nexport class TuiInputTimeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA;MACa,eAAe,GAAG,CAAC,EAAC,SAAS,EAAM,KAC5C,SAAS,KAAK,GAAG,GAAG,aAAa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;;KACJ,CAAC;IA+BO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IAEtB,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GArC1B,qBAAqB,CAqRjC;;ICxTY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAb9B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,cAAc;YACd,iBAAiB;YACjB,uBAAuB;YACvB,2BAA2B;YAC3B,sBAAsB;YACtB,4BAA4B;SAC/B;QACD,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;AC1BlC;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { forwardRef, Optional, Self, Inject, ChangeDetectorRef, Input, ContentChild, TemplateRef, ViewChild, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import { forwardRef, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, ContentChild, TemplateRef, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiControl, isNativeFocused, setNativeFocused, tuiDefaultProp, TuiActiveZoneModule } from '@taiga-ui/cdk';
5
- import { TUI_DATA_LIST_HOST, TuiDataListDirective, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiHostedDropdownModule } from '@taiga-ui/core';
5
+ import { TUI_DATA_LIST_HOST, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, TuiDataListDirective, TuiPrimitiveTextfieldModule, TuiHostedDropdownModule } from '@taiga-ui/core';
6
6
  import { TUI_VALUE_ACCESSOR_PROVIDER, FIXED_DROPDOWN_CONTROLLER_PROVIDER } from '@taiga-ui/kit/providers';
7
7
  import { CommonModule } from '@angular/common';
8
8
 
@@ -24,8 +24,8 @@ let TuiInputComponent = class TuiInputComponent extends AbstractTuiControl {
24
24
  super(control, changeDetectorRef);
25
25
  this.icon = null;
26
26
  this.iconAlign = 'left';
27
- this.open = false;
28
27
  this.datalist = '';
28
+ this.open = false;
29
29
  }
30
30
  get nativeFocusableElement() {
31
31
  return this.computedDisabled || !this.textfield
@@ -73,6 +73,12 @@ TuiInputComponent.ctorParameters = () => [
73
73
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
74
74
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] }
75
75
  ];
76
+ __decorate([
77
+ ViewChild(TuiHostedDropdownComponent)
78
+ ], TuiInputComponent.prototype, "hostedDropdown", void 0);
79
+ __decorate([
80
+ ViewChild(TuiPrimitiveTextfieldComponent)
81
+ ], TuiInputComponent.prototype, "textfield", void 0);
76
82
  __decorate([
77
83
  Input(),
78
84
  tuiDefaultProp()
@@ -84,12 +90,6 @@ __decorate([
84
90
  __decorate([
85
91
  ContentChild(TuiDataListDirective, { read: TemplateRef })
86
92
  ], TuiInputComponent.prototype, "datalist", void 0);
87
- __decorate([
88
- ViewChild(TuiHostedDropdownComponent)
89
- ], TuiInputComponent.prototype, "hostedDropdown", void 0);
90
- __decorate([
91
- ViewChild(TuiPrimitiveTextfieldComponent)
92
- ], TuiInputComponent.prototype, "textfield", void 0);
93
93
  TuiInputComponent = __decorate([
94
94
  Component({
95
95
  selector: 'tui-input',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input.js","sources":["ng://@taiga-ui/kit/components/input/input.providers.ts","ng://@taiga-ui/kit/components/input/input.component.ts","ng://@taiga-ui/kit/components/input/input.module.ts","ng://@taiga-ui/kit/components/input/taiga-ui-kit-components-input.ts"],"sourcesContent":["import {forwardRef} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST} from '@taiga-ui/core';\nimport {\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n TUI_VALUE_ACCESSOR_PROVIDER,\n} from '@taiga-ui/kit/providers';\nimport {TuiInputComponent} from './input.component';\n\nexport const TUI_INPUT_PROVIDERS = [\n TUI_VALUE_ACCESSOR_PROVIDER,\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiInputComponent),\n },\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n Inject,\n Input,\n Optional,\n Self,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n TuiDataListDirective,\n TuiDataListHost,\n TuiHorizontalDirection,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {TUI_INPUT_PROVIDERS} from './input.providers';\n\n@Component({\n selector: 'tui-input',\n templateUrl: './input.template.html',\n styleUrls: ['./input.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_INPUT_PROVIDERS,\n})\nexport class TuiInputComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor, TuiDataListHost<string>\n{\n @Input()\n @tuiDefaultProp()\n icon: string | null = null;\n\n @Input()\n @tuiDefaultProp()\n iconAlign: TuiHorizontalDirection = 'left';\n\n open = false;\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent = '';\n\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly && !!this.datalist;\n }\n\n onValueChange(value: string) {\n this.updateValue(value);\n this.open = true;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n handleOption(item: unknown) {\n this.setNativeValue(String(item));\n this.focusInput();\n this.updateValue(String(item));\n this.open = false;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n\n private setNativeValue(value: string) {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {TuiHostedDropdownModule, TuiPrimitiveTextfieldModule} from '@taiga-ui/core';\nimport {TuiInputComponent} from './input.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n ],\n declarations: [TuiInputComponent],\n exports: [TuiInputComponent],\n})\nexport class TuiInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MASa,mBAAmB,GAAG;IAC/B,2BAA2B;IAC3B,kCAAkC;IAClC;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,MAAM,iBAAiB,CAAC;KACnD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,MAAM,iBAAiB,CAAC;KACnD;;;ICkBQ,iBAAiB,GAA9B,MAAa,iBACT,SAAQ,kBAA0B;IAsBlC,YAII,OAAyB,EACE,iBAAoC;QAE/D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAxBtC,SAAI,GAAkB,IAAI,CAAC;QAI3B,cAAS,GAA2B,MAAM,CAAC;QAE3C,SAAI,GAAG,KAAK,CAAC;QAGJ,aAAQ,GAAwB,EAAE,CAAC;KAgB3C;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,SAAS;cACzC,IAAI;cACJ,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC;KAC/C;IAED,IAAI,OAAO;QACP,QACI,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC;aAC3C,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EACxD;KACL;IAED,IAAI,OAAO;QACP,OAAO,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACtE;IAED,aAAa,CAAC,KAAa;QACvB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KACpB;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,C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Q,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GA5BrB,iBAAiB,CAqF7B;;IC1GY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAV1B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,mBAAmB;YACnB,2BAA2B;YAC3B,uBAAuB;SAC1B;QACD,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;AChB9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input.js","sources":["ng://@taiga-ui/kit/components/input/input.providers.ts","ng://@taiga-ui/kit/components/input/input.component.ts","ng://@taiga-ui/kit/components/input/input.module.ts","ng://@taiga-ui/kit/components/input/taiga-ui-kit-components-input.ts"],"sourcesContent":["import {forwardRef} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST} from '@taiga-ui/core';\nimport {\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n TUI_VALUE_ACCESSOR_PROVIDER,\n} from '@taiga-ui/kit/providers';\n\nimport {TuiInputComponent} from './input.component';\n\nexport const TUI_INPUT_PROVIDERS = [\n TUI_VALUE_ACCESSOR_PROVIDER,\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiInputComponent),\n },\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n Inject,\n Input,\n Optional,\n Self,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n TuiDataListDirective,\n TuiDataListHost,\n TuiHorizontalDirection,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_INPUT_PROVIDERS} from './input.providers';\n\n@Component({\n selector: 'tui-input',\n templateUrl: './input.template.html',\n styleUrls: ['./input.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_INPUT_PROVIDERS,\n})\nexport class TuiInputComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor, TuiDataListHost<string>\n{\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n icon: string | null = null;\n\n @Input()\n @tuiDefaultProp()\n iconAlign: TuiHorizontalDirection = 'left';\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent = '';\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly && !!this.datalist;\n }\n\n onValueChange(value: string) {\n this.updateValue(value);\n this.open = true;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n handleOption(item: unknown) {\n this.setNativeValue(String(item));\n this.focusInput();\n this.updateValue(String(item));\n this.open = false;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n\n private setNativeValue(value: string) {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {TuiHostedDropdownModule, TuiPrimitiveTextfieldModule} from '@taiga-ui/core';\n\nimport {TuiInputComponent} from './input.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n ],\n declarations: [TuiInputComponent],\n exports: [TuiInputComponent],\n})\nexport class TuiInputModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,mBAAmB,GAAG;IAC/B,2BAA2B;IAC3B,kCAAkC;IAClC;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,MAAM,iBAAiB,CAAC;KACnD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,MAAM,iBAAiB,CAAC;KACnD;;;ICkBQ,iBAAiB,GAA9B,MAAa,iBACT,SAAQ,kBAA0B;IAsBlC,YAII,OAAyB,EACE,iBAAoC;QAE/D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAlBtC,SAAI,GAAkB,IAAI,CAAC;QAI3B,cAAS,GAA2B,MAAM,CAAC;QAGlC,aAAQ,GAAwB,EAAE,CAAC;QAE5C,SAAI,GAAG,KAAK,CAAC;KAUZ;IAED,IAAI,sBAAsB;QACtB,OAAO,IAA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AAK,CAAC;SAC7C;KACJ;EACJ;;YA1DgB,SAAS,uBAHjB,QAAQ,YACR,IAAI,YACJ,MAAM,SAAC,SAAS;YAE6B,iBAAiB,uBAA9D,MAAM,SAAC,iBAAiB;;AAvB7B;IADC,SAAS,CAAC,0BAA0B,CAAC;yDACuB;AAG7D;IADC,SAAS,CAAC,8BAA8B,CAAC;oDACkB;AAI5D;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;+CACU;AAI3B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDAC0B;AAG3C;IADC,YAAY,CAAC,oBAAoB,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,CAAC;mDACZ;AAnBnC,iBAAiB;IAP7B,SAAS,CAAC;QACP,QAAQ,EAAE,WAAW;QACrB,q2BAAoC;QAEpC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,mBAAmB;;KACjC,CAAC;IAyBO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GA5BrB,iBAAiB,CAqF7B;;IC1GY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAV1B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,mBAAmB;YACnB,2BAA2B;YAC3B,uBAAuB;SAC1B;QACD,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACjB9B;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-island.js","sources":["ng://@taiga-ui/kit/components/island/island.component.ts","ng://@taiga-ui/kit/components/island/island.module.ts","ng://@taiga-ui/kit/components/island/taiga-ui-kit-components-island.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-island, a[tuiIsland]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './island.template.html',\n styleUrls: ['./island.style.less'],\n host: {\n class: 'tui-island',\n },\n})\nexport class TuiIslandComponent {\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL | TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n textAlign: 'left' | 'right' | 'center' = 'left';\n\n @Input()\n @HostBinding('class.tui-island_hoverable')\n @tuiDefaultProp()\n hoverable = false;\n\n @Input()\n @HostBinding('class.tui-island_transparent')\n @tuiDefaultProp()\n transparent = false;\n\n @HostBinding('class.tui-island_size_s')\n get sizeS(): boolean {\n return this.size === 's';\n }\n\n @HostBinding('class.tui-island_size_m')\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class.tui-island_size_l')\n get sizeL(): boolean {\n return this.size === 'l';\n }\n\n @HostBinding('class.tui-island_text-align_left')\n get textAlignLeft(): boolean {\n return this.textAlign === 'left';\n }\n\n @HostBinding('class.tui-island_text-align_center')\n get textAlignCenter(): boolean {\n return this.textAlign === 'center';\n }\n\n @HostBinding('class.tui-island_text-align_right')\n get textAlignRight(): boolean {\n return this.textAlign === 'right';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiIslandComponent} from './island.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TuiIslandComponent],\n exports: [TuiIslandComponent],\n})\nexport class TuiIslandModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAaa,kBAAkB,GAA/B,MAAa,kBAAkB;IAA/B;QAGI,SAAI,GAAwB,GAAG,CAAC;QAIhC,cAAS,GAAgC,MAAM,CAAC;QAKhD,cAAS,GAAG,KAAK,CAAC;QAKlB,gBAAW,GAAG,KAAK,CAA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AAe;IAL3B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;ACT/B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-island.js","sources":["ng://@taiga-ui/kit/components/island/island.component.ts","ng://@taiga-ui/kit/components/island/island.module.ts","ng://@taiga-ui/kit/components/island/taiga-ui-kit-components-island.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-island, a[tuiIsland]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './island.template.html',\n styleUrls: ['./island.style.less'],\n host: {\n class: 'tui-island',\n },\n})\nexport class TuiIslandComponent {\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL | TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n textAlign: 'left' | 'right' | 'center' = 'left';\n\n @Input()\n @HostBinding('class.tui-island_hoverable')\n @tuiDefaultProp()\n hoverable = false;\n\n @Input()\n @HostBinding('class.tui-island_transparent')\n @tuiDefaultProp()\n transparent = false;\n\n @HostBinding('class.tui-island_size_s')\n get sizeS(): boolean {\n return this.size === 's';\n }\n\n @HostBinding('class.tui-island_size_m')\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class.tui-island_size_l')\n get sizeL(): boolean {\n return this.size === 'l';\n }\n\n @HostBinding('class.tui-island_text-align_left')\n get textAlignLeft(): boolean {\n return this.textAlign === 'left';\n }\n\n @HostBinding('class.tui-island_text-align_center')\n get textAlignCenter(): boolean {\n return this.textAlign === 'center';\n }\n\n @HostBinding('class.tui-island_text-align_right')\n get textAlignRight(): boolean {\n return this.textAlign === 'right';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {TuiIslandComponent} from './island.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TuiIslandComponent],\n exports: [TuiIslandComponent],\n})\nexport class TuiIslandModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAaa,kBAAkB,GAA/B,MAAa,kBAAkB;IAA/B;QAGI,SAAI,GAAwB,GAAG,CAAC;QAIhC,cAAS,GAAgC,MAAM,CAAC;QAKhD,cAAS,GAAG,KAAK,CAAC;QAKlB,gBAAW,GAAG,KAAK,CAAC;KA+BvB;IA5BG,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;IAGD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;IAGD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC;KAC5B;IAGD,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,SAAS,KAAK,MAAM,CAAC;KACpC;IAGD,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,CAAC;KACtC;IAGD,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC;KACrC;EACJ;AA7CG;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;gDACe;AAIhC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;qDAC+B;AAKhD;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,4BAA4B,CAAC;IACzC,cAAc,EAAE;qDACC;AAKlB;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,8BAA8B,CAAC;IAC3C,cAAc,EAAE;uDACG;AAGpB;IADC,WAAW,CAAC,yBAAyB,CAAC;+CAGtC;AAGD;IADC,WAAW,CAAC,yBAAyB,CAAC;+CAGtC;AAGD;IADC,WAAW,CAAC,yBAAyB,CAAC;+CAGtC;AAGD;IADC,WAAW,CAAC,kCAAkC,CAAC;uDAG/C;AAGD;IADC,WAAW,CAAC,oCAAoC,CAAC;yDAGjD;AAGD;IADC,WAAW,CAAC,mCAAmC,CAAC;wDAGhD;AA/CQ,kBAAkB;IAT9B,SAAS,CAAC;QACP,QAAQ,EAAE,0BAA0B;QACpC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,uCAAqC;QAErC,IAAI,EAAE;YACF,KAAK,EAAE,YAAY;SACtB;;KACJ,CAAC;GACW,kBAAkB,CAgD9B;;ICnDY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAL3B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;ACV/B;;;;;;"}
@@ -1,21 +1,21 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { ElementRef, Inject, Renderer2, Input, ViewChild, HostBinding, HostListener, Component, ChangeDetectionStrategy, ViewContainerRef, NgZone, Directive, NgModule } from '@angular/core';
2
+ import { ElementRef, Inject, Renderer2, ViewChild, Input, HostBinding, HostListener, Component, ChangeDetectionStrategy, ViewContainerRef, NgZone, Directive, NgModule } from '@angular/core';
3
3
  import { typedFromEvent, isCurrentTarget, tuiDefaultProp, tuiPure, CHAR_ELLIPSIS, tuiZonefree, TuiDestroyService, TuiResizeModule } from '@taiga-ui/cdk';
4
4
  import { PolymorpheusOutletComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
5
5
  import { BehaviorSubject, of, Observable } from 'rxjs';
6
6
  import { startWith, pairwise, switchMap, filter, mapTo, map, takeUntil } from 'rxjs/operators';
7
7
  import { DOCUMENT, CommonModule } from '@angular/common';
8
- import { TuiHintModule } from '@taiga-ui/core';
9
8
  import { ANIMATION_FRAME, CSS } from '@ng-web-apis/common';
10
9
  import { setRangeOffset } from '@taiga-ui/kit/utils/dom';
10
+ import { TuiHintModule } from '@taiga-ui/core';
11
11
 
12
12
  let TuiLineClampComponent = class TuiLineClampComponent {
13
13
  constructor(elementRef, renderer) {
14
14
  this.elementRef = elementRef;
15
- this.lineHeight = 24;
16
- this.content = '';
17
15
  this.linesLimit$ = new BehaviorSubject(1);
18
16
  this.initialized = false;
17
+ this.lineHeight = 24;
18
+ this.content = '';
19
19
  // Skipping initial transition
20
20
  setTimeout(() => {
21
21
  renderer.addClass(this.elementRef.nativeElement, '_initialized');
@@ -50,16 +50,19 @@ let TuiLineClampComponent = class TuiLineClampComponent {
50
50
  get height() {
51
51
  return !this.outlet ? 0 : this.outlet.nativeElement.scrollHeight + 4 || null;
52
52
  }
53
+ // Change detection
54
+ markForCheck() { }
53
55
  ngAfterViewInit() {
54
56
  this.initialized = true;
55
57
  }
56
- // Change detection
57
- markForCheck() { }
58
58
  };
59
59
  TuiLineClampComponent.ctorParameters = () => [
60
60
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
61
61
  { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] }
62
62
  ];
63
+ __decorate([
64
+ ViewChild(PolymorpheusOutletComponent, { read: ElementRef })
65
+ ], TuiLineClampComponent.prototype, "outlet", void 0);
63
66
  __decorate([
64
67
  Input(),
65
68
  tuiDefaultProp()
@@ -72,9 +75,6 @@ __decorate([
72
75
  Input(),
73
76
  tuiDefaultProp()
74
77
  ], TuiLineClampComponent.prototype, "content", void 0);
75
- __decorate([
76
- ViewChild(PolymorpheusOutletComponent, { read: ElementRef })
77
- ], TuiLineClampComponent.prototype, "outlet", void 0);
78
78
  __decorate([
79
79
  tuiPure
80
80
  ], TuiLineClampComponent.prototype, "lineClamp$", null);
@@ -90,7 +90,7 @@ __decorate([
90
90
  TuiLineClampComponent = __decorate([
91
91
  Component({
92
92
  selector: 'tui-line-clamp',
93
- template: "<div\n polymorpheus-outlet\n class=\"wrapper\"\n lineClamp\n tuiHintId=\"unnecessary\"\n tuiHintMode=\"overflow\"\n [tuiHint]=\"computedContent\"\n [class.wrapper_ellipsis]=\"oneLine\"\n [style.-webkit-line-clamp]=\"lineClamp$ | async\"\n [content]=\"content\"\n (tuiResize)=\"markForCheck()\"\n></div>\n",
93
+ template: "<div\n polymorpheus-outlet\n lineClamp\n tuiHintId=\"unnecessary\"\n tuiHintMode=\"overflow\"\n class=\"wrapper\"\n [tuiHint]=\"computedContent\"\n [class.wrapper_ellipsis]=\"oneLine\"\n [style.-webkit-line-clamp]=\"lineClamp$ | async\"\n [content]=\"content\"\n (tuiResize)=\"markForCheck()\"\n></div>\n",
94
94
  changeDetection: ChangeDetectionStrategy.OnPush,
95
95
  styles: [":host{position:relative;display:block;overflow:hidden}:host._initialized{transition-property:max-height;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}.wrapper{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.wrapper_ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}"]
96
96
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-line-clamp.js","sources":["ng://@taiga-ui/kit/components/line-clamp/line-clamp.component.ts","ng://@taiga-ui/kit/components/line-clamp/line-clamp.directive.ts","ng://@taiga-ui/kit/components/line-clamp/line-clamp.module.ts","ng://@taiga-ui/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport {isCurrentTarget, tuiDefaultProp, tuiPure, typedFromEvent} from '@taiga-ui/cdk';\nimport {PolymorpheusContent, PolymorpheusOutletComponent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, of} from 'rxjs';\nimport {filter, mapTo, pairwise, startWith, switchMap} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-line-clamp',\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiLineClampComponent implements AfterViewInit {\n @Input()\n @tuiDefaultProp()\n set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n @Input()\n @tuiDefaultProp()\n lineHeight = 24;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n private readonly linesLimit$ = new BehaviorSubject(1);\n\n @ViewChild(PolymorpheusOutletComponent, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private initialized = false;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) renderer: Renderer2,\n ) {\n // Skipping initial transition\n setTimeout(() => {\n renderer.addClass(this.elementRef.nativeElement, '_initialized');\n });\n }\n\n @tuiPure\n get lineClamp$(): Observable<number> {\n return this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : typedFromEvent(this.elementRef.nativeElement, 'transitionend').pipe(\n filter(isCurrentTarget),\n mapTo(next),\n ),\n ),\n );\n }\n\n get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientHeight, clientWidth} = this.elementRef.nativeElement;\n\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n return scrollHeight - clientHeight > 4 || scrollWidth - clientWidth > 0;\n }\n\n get computedContent(): PolymorpheusContent {\n return this.overflown ? this.content : '';\n }\n\n get oneLine(): boolean {\n return this.linesLimit$.value === 1;\n }\n\n @HostBinding('style.maxHeight.px')\n get maxHeight(): number | null {\n return this.initialized ? this.lineHeight * this.linesLimit$.value : null;\n }\n\n @HostBinding('style.height.px')\n get height(): number | null {\n return !this.outlet ? 0 : this.outlet.nativeElement.scrollHeight + 4 || null;\n }\n\n ngAfterViewInit() {\n this.initialized = true;\n }\n\n // Change detection\n @HostListener('mouseenter')\n markForCheck() {}\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n Inject,\n NgZone,\n Renderer2,\n ViewContainerRef,\n} from '@angular/core';\nimport {ANIMATION_FRAME, CSS} from '@ng-web-apis/common';\nimport {CHAR_ELLIPSIS, TuiDestroyService, tuiZonefree} from '@taiga-ui/cdk';\nimport {setRangeOffset} from '@taiga-ui/kit/utils/dom';\nimport {Observable} from 'rxjs';\nimport {map, takeUntil} from 'rxjs/operators';\n\nimport {TuiLineClampComponent} from './line-clamp.component';\n\nconst HIDDEN_LEFT = -200;\n\n// @dynamic\n@Directive({\n selector: '[lineClamp]',\n providers: [TuiDestroyService],\n})\nexport class TuiLineClampDirective {\n constructor(\n @Inject(TuiLineClampComponent) component: TuiLineClampComponent,\n @Inject(ViewContainerRef) viewContainerRef: ViewContainerRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n /**\n * TODO: remove \"any\" in new TS version; https://github.com/ng-web-apis/common/pull/6\n */\n @Inject(CSS) cssRef: any,\n ) {\n if (\n cssRef.supports('-webkit-line-clamp', '1') ||\n !(nativeElement.parentElement instanceof HTMLElement)\n ) {\n return;\n }\n\n const range = documentRef.createRange();\n const ellipsis: HTMLElement = renderer.createElement('div');\n const {parentElement} = nativeElement;\n const {style} = ellipsis;\n\n style.position = 'absolute';\n style.bottom = '0';\n style.left = `${HIDDEN_LEFT}px`;\n ellipsis.textContent = CHAR_ELLIPSIS;\n\n viewContainerRef.element.nativeElement.appendChild(ellipsis);\n\n animationFrame$\n .pipe(\n map(() => {\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n if (\n component.oneLine ||\n nativeElement.scrollHeight - parentElement.clientHeight < 4\n ) {\n return HIDDEN_LEFT;\n }\n\n let result = 0;\n const length = nativeElement.textContent\n ? nativeElement.textContent.length\n : 0;\n\n for (let char = 0; char < length - 2; char++) {\n setRangeOffset(range, nativeElement, char, 'setStart');\n setRangeOffset(range, nativeElement, char + 1, 'setEnd');\n\n const rangeRect = range.getBoundingClientRect();\n const clientRect = parentElement.getBoundingClientRect();\n\n if (Math.round(rangeRect.top - clientRect.bottom) >= 0) {\n break;\n }\n\n result = rangeRect.right - clientRect.left;\n }\n\n return result;\n }),\n tuiZonefree(ngZone),\n takeUntil(destroy$),\n )\n .subscribe(left => {\n style.left = `${left}px`;\n });\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiResizeModule} from '@taiga-ui/cdk';\nimport {TuiHintModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TuiLineClampComponent} from './line-clamp.component';\nimport {TuiLineClampDirective} from './line-clamp.directive';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiHintModule, TuiResizeModule],\n declarations: [TuiLineClampComponent, TuiLineClampDirective],\n exports: [TuiLineClampComponent],\n})\nexport class TuiLineClampModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAuBa,qBAAqB,GAAlC,MAAa,qBAAqB;IAsB9B,YACyC,UAAmC,EACrD,QAAmB;QADD,eAAU,GAAV,UAAU,CAAyB;QAd5E,eAAU,GAAG,EAAE,CAAC;QAIhB,YAAO,GAAwB,EAAE,CAAC;QAEjB,gBAAW,GAAG,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;QAK9C,gBAAW,GAAG,KAAK,CAAC;;QAOxB,UAAU,CAAC;YACP,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;SACpE,CAAC,CAAC;KACN;IA3BD,IAAI,UAAU,CAAC,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,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,CAAC;QAC3E,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;QAC5D,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACblC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-line-clamp.js","sources":["ng://@taiga-ui/kit/components/line-clamp/line-clamp.component.ts","ng://@taiga-ui/kit/components/line-clamp/line-clamp.directive.ts","ng://@taiga-ui/kit/components/line-clamp/line-clamp.module.ts","ng://@taiga-ui/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Renderer2,\n ViewChild,\n} from '@angular/core';\nimport {isCurrentTarget, tuiDefaultProp, tuiPure, typedFromEvent} from '@taiga-ui/cdk';\nimport {PolymorpheusContent, PolymorpheusOutletComponent} from '@tinkoff/ng-polymorpheus';\nimport {BehaviorSubject, Observable, of} from 'rxjs';\nimport {filter, mapTo, pairwise, startWith, switchMap} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-line-clamp',\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiLineClampComponent implements AfterViewInit {\n @ViewChild(PolymorpheusOutletComponent, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly linesLimit$ = new BehaviorSubject(1);\n private initialized = false;\n\n @Input()\n @tuiDefaultProp()\n set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n @Input()\n @tuiDefaultProp()\n lineHeight = 24;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) renderer: Renderer2,\n ) {\n // Skipping initial transition\n setTimeout(() => {\n renderer.addClass(this.elementRef.nativeElement, '_initialized');\n });\n }\n\n @tuiPure\n get lineClamp$(): Observable<number> {\n return this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : typedFromEvent(this.elementRef.nativeElement, 'transitionend').pipe(\n filter(isCurrentTarget),\n mapTo(next),\n ),\n ),\n );\n }\n\n get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientHeight, clientWidth} = this.elementRef.nativeElement;\n\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n return scrollHeight - clientHeight > 4 || scrollWidth - clientWidth > 0;\n }\n\n get computedContent(): PolymorpheusContent {\n return this.overflown ? this.content : '';\n }\n\n get oneLine(): boolean {\n return this.linesLimit$.value === 1;\n }\n\n @HostBinding('style.maxHeight.px')\n get maxHeight(): number | null {\n return this.initialized ? this.lineHeight * this.linesLimit$.value : null;\n }\n\n @HostBinding('style.height.px')\n get height(): number | null {\n return !this.outlet ? 0 : this.outlet.nativeElement.scrollHeight + 4 || null;\n }\n\n // Change detection\n @HostListener('mouseenter')\n markForCheck() {}\n\n ngAfterViewInit() {\n this.initialized = true;\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n Inject,\n NgZone,\n Renderer2,\n ViewContainerRef,\n} from '@angular/core';\nimport {ANIMATION_FRAME, CSS} from '@ng-web-apis/common';\nimport {CHAR_ELLIPSIS, TuiDestroyService, tuiZonefree} from '@taiga-ui/cdk';\nimport {setRangeOffset} from '@taiga-ui/kit/utils/dom';\nimport {Observable} from 'rxjs';\nimport {map, takeUntil} from 'rxjs/operators';\n\nimport {TuiLineClampComponent} from './line-clamp.component';\n\nconst HIDDEN_LEFT = -200;\n\n// @dynamic\n@Directive({\n selector: '[lineClamp]',\n providers: [TuiDestroyService],\n})\nexport class TuiLineClampDirective {\n constructor(\n @Inject(TuiLineClampComponent) component: TuiLineClampComponent,\n @Inject(ViewContainerRef) viewContainerRef: ViewContainerRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(NgZone) ngZone: NgZone,\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n /**\n * TODO: remove \"any\" in new TS version; https://github.com/ng-web-apis/common/pull/6\n */\n @Inject(CSS) cssRef: any,\n ) {\n if (\n cssRef.supports('-webkit-line-clamp', '1') ||\n !(nativeElement.parentElement instanceof HTMLElement)\n ) {\n return;\n }\n\n const range = documentRef.createRange();\n const ellipsis: HTMLElement = renderer.createElement('div');\n const {parentElement} = nativeElement;\n const {style} = ellipsis;\n\n style.position = 'absolute';\n style.bottom = '0';\n style.left = `${HIDDEN_LEFT}px`;\n ellipsis.textContent = CHAR_ELLIPSIS;\n\n viewContainerRef.element.nativeElement.appendChild(ellipsis);\n\n animationFrame$\n .pipe(\n map(() => {\n // 4px buffer for IE/Edge incorrectly rounding scrollHeight\n if (\n component.oneLine ||\n nativeElement.scrollHeight - parentElement.clientHeight < 4\n ) {\n return HIDDEN_LEFT;\n }\n\n let result = 0;\n const length = nativeElement.textContent\n ? nativeElement.textContent.length\n : 0;\n\n for (let char = 0; char < length - 2; char++) {\n setRangeOffset(range, nativeElement, char, 'setStart');\n setRangeOffset(range, nativeElement, char + 1, 'setEnd');\n\n const rangeRect = range.getBoundingClientRect();\n const clientRect = parentElement.getBoundingClientRect();\n\n if (Math.round(rangeRect.top - clientRect.bottom) >= 0) {\n break;\n }\n\n result = rangeRect.right - clientRect.left;\n }\n\n return result;\n }),\n tuiZonefree(ngZone),\n takeUntil(destroy$),\n )\n .subscribe(left => {\n style.left = `${left}px`;\n });\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiResizeModule} from '@taiga-ui/cdk';\nimport {TuiHintModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiLineClampComponent} from './line-clamp.component';\nimport {TuiLineClampDirective} from './line-clamp.directive';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiHintModule, TuiResizeModule],\n declarations: [TuiLineClampComponent, TuiLineClampDirective],\n exports: [TuiLineClampComponent],\n})\nexport class TuiLineClampModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAuBa,qBAAqB,GAAlC,MAAa,qBAAqB;IAqB9B,YACyC,UAAmC,EACrD,QAAmB;QADD,eAAU,GAAV,UAAU,CAAyB;QAlB3D,gBAAW,GAAG,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;QAC9C,gBAAW,GAAG,KAAK,CAAC;QAU5B,eAAU,GAAG,EAAE,CAAC;QAIhB,YAAO,GAAwB,EAAE,CAAC;;QAO9B,UAAU,CAAC;YACP,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;SACpE,CAAC,CAAC;KACN;IApBD,IAAI,UAAU,CAAC,UAAkB;QAC7B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrC;IAqBD,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CACxB,SAAS,CAAC,CAAC,CAAC,EACZ,QAAQ,EAAE,EACV,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,KACnB,IAAI,IAAI,IAAI;cACN,EAAE,CAAC,IAAI,CAAC;cACR,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC,IAAI,CAC/D,MAAM,CAAC,eAAe,CAAC,EACvB,KAAK,CAAC,IAAI,CAAC,CACd,CACV,CACJ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YACO,MAAM,uBAA7B,MAAM,SAAC,MAAM;YACuB,UAAU,uBAA9C,MAAM,SAAC,UAAU;YACmB,iBAAiB,uBAArD,MAAM,SAAC,iBAAiB;YACiB,UAAU,uBAAnD,MAAM,SAAC,eAAe;4CAItB,MAAM,SAAC,GAAG;;AAbN,qBAAqB;IAJjC,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;QACvB,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IAGO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC7B,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IACjB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;IAIvB,WAAA,MAAM,CAAC,GAAG,CAAC,CAAA;GAbP,qBAAqB,CAyEjC;;ICnFY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,CAAC;QAC3E,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;QAC5D,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACdlC;;;;;;"}
@@ -8,10 +8,10 @@ import { CommonModule } from '@angular/common';
8
8
 
9
9
  let TuiMarkerIconComponent = class TuiMarkerIconComponent {
10
10
  constructor(destroy$, mode$) {
11
+ this.globalMode = null;
11
12
  this.mode = null;
12
13
  this.size = 'm';
13
14
  this.src = '';
14
- this.globalMode = null;
15
15
  mode$.pipe(takeUntil(destroy$)).subscribe(mode => {
16
16
  this.globalMode = mode;
17
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-marker-icon.js","sources":["ng://@taiga-ui/kit/components/marker-icon/marker-icon.component.ts","ng://@taiga-ui/kit/components/marker-icon/marker-icon.module.ts","ng://@taiga-ui/kit/components/marker-icon/taiga-ui-kit-components-marker-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiBrightness,\n TuiSizeXL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {TuiMarkerIconModeT} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-marker-icon',\n templateUrl: './marker-icon.template.html',\n styleUrls: ['./marker-icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n})\nexport class TuiMarkerIconComponent {\n @Input()\n @tuiDefaultProp()\n mode: TuiMarkerIconModeT | null = null;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeXS | TuiSizeXL = 'm';\n\n @Input()\n @tuiDefaultProp()\n src = '';\n\n private globalMode: TuiBrightness | null = null;\n\n constructor(\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_MODE) mode$: Observable<TuiBrightness | null>,\n ) {\n mode$.pipe(takeUntil(destroy$)).subscribe(mode => {\n this.globalMode = mode;\n });\n }\n\n // TODO: Simplify\n @HostBinding('attr.data-mode')\n get computedMode(): TuiMarkerIconModeT | 'onDark' | null {\n return this.globalMode === 'onDark' && !this.mode ? 'onDark' : this.mode;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\nimport {TuiMarkerIconComponent} from './marker-icon.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiMarkerIconComponent],\n exports: [TuiMarkerIconComponent],\n})\nexport class TuiMarkerIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA0Ba,sBAAsB,GAAnC,MAAa,sBAAsB;IAgB/B,YAC+B,QAA6B,EACtC,KAAuC;QAf7D,SAAI,GAA8B,IAAI,CAAC;QAKvC,SAAI,GAA0B,GAAG,CAAC;QAIlC,QAAG,GAAG,EAAE,CAAC;QAED,eAAU,GAAyB,IAAI,CAAC;QAM5C,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI;YAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SAC1B,CAAC,CAAC;KACN;;IAID,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;KAC5E;EACJ;;YAb4C,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;YACA,UAAU,uBAAlC,MAAM,SAAC,QAAQ;;AAfpB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDACsB;AAKvC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,yBAAyB,CAAC;IACtC,cAAc,EAAE;oDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACR;AAeT;IADC,WAAW,CAAC,gBAAgB,CAAC;0DAG7B;AA7BQ,sBAAsB;IAPlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,8DAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;;KAChD,CAAC;IAkBO,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAlBZ,sBAAsB,CA8BlC;;IC9CY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAL/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;QACrC,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACVnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-marker-icon.js","sources":["ng://@taiga-ui/kit/components/marker-icon/marker-icon.component.ts","ng://@taiga-ui/kit/components/marker-icon/marker-icon.module.ts","ng://@taiga-ui/kit/components/marker-icon/taiga-ui-kit-components-marker-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiBrightness,\n TuiSizeXL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {TuiMarkerIconModeT} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-marker-icon',\n templateUrl: './marker-icon.template.html',\n styleUrls: ['./marker-icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n})\nexport class TuiMarkerIconComponent {\n private globalMode: TuiBrightness | null = null;\n\n @Input()\n @tuiDefaultProp()\n mode: TuiMarkerIconModeT | null = null;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeXS | TuiSizeXL = 'm';\n\n @Input()\n @tuiDefaultProp()\n src = '';\n\n constructor(\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_MODE) mode$: Observable<TuiBrightness | null>,\n ) {\n mode$.pipe(takeUntil(destroy$)).subscribe(mode => {\n this.globalMode = mode;\n });\n }\n\n // TODO: Simplify\n @HostBinding('attr.data-mode')\n get computedMode(): TuiMarkerIconModeT | 'onDark' | null {\n return this.globalMode === 'onDark' && !this.mode ? 'onDark' : this.mode;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiMarkerIconComponent} from './marker-icon.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiMarkerIconComponent],\n exports: [TuiMarkerIconComponent],\n})\nexport class TuiMarkerIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA0Ba,sBAAsB,GAAnC,MAAa,sBAAsB;IAgB/B,YAC+B,QAA6B,EACtC,KAAuC;QAjBrD,eAAU,GAAyB,IAAI,CAAC;QAIhD,SAAI,GAA8B,IAAI,CAAC;QAKvC,SAAI,GAA0B,GAAG,CAAC;QAIlC,QAAG,GAAG,EAAE,CAAC;QAML,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI;YAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SAC1B,CAAC,CAAC;KACN;;IAID,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;KAC5E;EACJ;;YAb4C,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;YACA,UAAU,uBAAlC,MAAM,SAAC,QAAQ;;AAbpB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDACsB;AAKvC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,yBAAyB,CAAC;IACtC,cAAc,EAAE;oDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACR;AAaT;IADC,WAAW,CAAC,gBAAgB,CAAC;0DAG7B;AA7BQ,sBAAsB;IAPlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,8DAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;;KAChD,CAAC;IAkBO,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAlBZ,sBAAsB,CA8BlC;;IC7CY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAL/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;QACrC,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACXnC;;;;;;"}
@@ -1,28 +1,26 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
- import { tuiReplayedValueChangesFrom, isPresent } from '@taiga-ui/cdk';
3
+ import { isPresent } from '@taiga-ui/cdk';
4
4
  import { sizeBigger, TuiPrimitiveCheckboxModule } from '@taiga-ui/core';
5
5
  import { TuiSelectOptionComponent } from '@taiga-ui/kit/components/select-option';
6
- import { map } from 'rxjs/operators';
7
6
  import { CommonModule } from '@angular/common';
8
7
 
9
8
  let TuiMultiSelectOptionComponent = class TuiMultiSelectOptionComponent extends TuiSelectOptionComponent {
10
- constructor() {
11
- super(...arguments);
12
- this.selected$ = tuiReplayedValueChangesFrom(this.control).pipe(map(value => isPresent(this.option.value) &&
13
- !!value &&
14
- !!value.find(item => this.matcher(item, this.option.value))));
15
- }
16
9
  get size() {
17
10
  return sizeBigger(this.option.size) ? 'l' : 'm';
18
11
  }
12
+ get selected() {
13
+ return (isPresent(this.option.value) &&
14
+ isPresent(this.control.value) &&
15
+ !!this.control.value.find((item) => this.matcher(item, this.option.value)));
16
+ }
19
17
  };
20
18
  TuiMultiSelectOptionComponent = __decorate([
21
19
  Component({
22
20
  selector: 'tui-multi-select-option',
23
21
  template: "<tui-primitive-checkbox\n class=\"tui-space_right-3\"\n [size]=\"size\"\n [value]=\"selected$ | async\"\n></tui-primitive-checkbox>\n<ng-container *ngTemplateOutlet=\"context.$implicit\"></ng-container>\n",
24
22
  changeDetection: ChangeDetectionStrategy.OnPush,
25
- styles: [":host{display:flex;flex:1;align-items:center;overflow:hidden}"]
23
+ styles: ["@-webkit-keyframes retrigger{from{left:1px}to{left:2px}}@keyframes retrigger{from{left:1px}to{left:2px}}:host{display:flex;flex:1;align-items:center;overflow:hidden;-webkit-animation:1s retrigger;animation:1s retrigger}"]
26
24
  })
27
25
  ], TuiMultiSelectOptionComponent);
28
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-multi-select-option.js","sources":["ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.component.ts","ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.module.ts","ng://@taiga-ui/kit/components/multi-select-option/taiga-ui-kit-components-multi-select-option.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {isPresent, tuiReplayedValueChangesFrom} from '@taiga-ui/cdk';\nimport {sizeBigger, TuiSizeL} from '@taiga-ui/core';\nimport {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option';\nimport {map} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-multi-select-option',\n templateUrl: './multi-select-option.template.html',\n styleUrls: ['./multi-select-option.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOptionComponent<T> extends TuiSelectOptionComponent<T> {\n readonly selected$ = tuiReplayedValueChangesFrom<ReadonlyArray<T>>(this.control).pipe(\n map(\n value =>\n isPresent(this.option.value) &&\n !!value &&\n !!value.find(item => this.matcher(item, this.option.value!)),\n ),\n );\n\n get size(): TuiSizeL {\n return sizeBigger(this.option.size) ? 'l' : 'm';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\nimport {TuiMultiSelectOptionComponent} from './multi-select-option.component';\n\n@NgModule({\n imports: [CommonModule, TuiPrimitiveCheckboxModule],\n declarations: [TuiMultiSelectOptionComponent],\n exports: [TuiMultiSelectOptionComponent],\n entryComponents: [TuiMultiSelectOptionComponent],\n})\nexport class TuiMultiSelectOptionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAYa,6BAA6B,GAA1C,MAAa,6BAAiC,SAAQ,wBAA2B;IAAjF;;QACa,cAAS,GAAG,2BAA2B,CAAmB,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CACjF,GAAG,CACC,KAAK,IACD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YAC5B,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAM,CAAC,CAAC,CACnE,CACJ,CAAC;KAKL;IAHG,IAAI,IAAI;QACJ,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;KACnD;EACJ;AAbY,6BAA6B;IANzC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,iOAAkD;QAElD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,6BAA6B,CAazC;;ICdY,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IANtC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,CAAC;QACnD,YAAY,EAAE,CAAC,6BAA6B,CAAC;QAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;QACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;KACnD,CAAC;GACW,0BAA0B,CAAG;;ACX1C;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-multi-select-option.js","sources":["ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.component.ts","ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.module.ts","ng://@taiga-ui/kit/components/multi-select-option/taiga-ui-kit-components-multi-select-option.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {isPresent} from '@taiga-ui/cdk';\nimport {sizeBigger, TuiSizeL} from '@taiga-ui/core';\nimport {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option';\n\n@Component({\n selector: 'tui-multi-select-option',\n templateUrl: './multi-select-option.template.html',\n styleUrls: ['./multi-select-option.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOptionComponent<T> extends TuiSelectOptionComponent<T> {\n get size(): TuiSizeL {\n return sizeBigger(this.option.size) ? 'l' : 'm';\n }\n\n protected get selected(): boolean {\n return (\n isPresent(this.option.value) &&\n isPresent(this.control.value) &&\n !!this.control.value.find((item: T) => this.matcher(item, this.option.value!))\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\n\nimport {TuiMultiSelectOptionComponent} from './multi-select-option.component';\n\n@NgModule({\n imports: [CommonModule, TuiPrimitiveCheckboxModule],\n declarations: [TuiMultiSelectOptionComponent],\n exports: [TuiMultiSelectOptionComponent],\n entryComponents: [TuiMultiSelectOptionComponent],\n})\nexport class TuiMultiSelectOptionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAWa,6BAA6B,GAA1C,MAAa,6BAAiC,SAAQ,wBAA2B;IAC7E,IAAI,IAAI;QACJ,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;KACnD;IAED,IAAc,QAAQ;QAClB,QACI,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YAC5B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAO,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAM,CAAC,CAAC,EAChF;KACL;EACJ;AAZY,6BAA6B;IANzC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,iOAAkD;QAElD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,6BAA6B,CAYzC;;ICXY,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IANtC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,CAAC;QACnD,YAAY,EAAE,CAAC,6BAA6B,CAAC;QAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;QACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;KACnD,CAAC;GACW,0BAA0B,CAAG;;ACZ1C;;;;;;"}
@@ -1,9 +1,9 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, Output, ContentChild, TemplateRef, ViewChild, Component, ChangeDetectionStrategy, forwardRef, Pipe, ContentChildren, Directive, NgModule } from '@angular/core';
2
+ import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, ContentChild, ViewChild, Input, HostBinding, Output, TemplateRef, Component, ChangeDetectionStrategy, forwardRef, Pipe, ContentChildren, Directive, NgModule } from '@angular/core';
3
3
  import { AbstractTuiMultipleControl, TUI_DEFAULT_STRINGIFY, TUI_DEFAULT_IDENTITY_MATCHER, ALWAYS_FALSE_HANDLER, EMPTY_ARRAY, isNativeFocused, setNativeFocused, tuiDefaultProp, tuiPure, TUI_FOCUSABLE_ITEM_ACCESSOR, EMPTY_QUERY, itemsQueryListObservable, getOriginalArrayFromQueryList, isPresent, tuiReplayedValueChangesFrom, EMPTY_FUNCTION, TuiPreventDefaultModule, TuiActiveZoneModule, TuiLetModule, TuiMapperPipeModule, TuiHoveredModule } from '@taiga-ui/cdk';
4
4
  import { isFlat } from '@taiga-ui/kit/utils';
5
5
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
6
- import { TuiSvgService, TuiDataListDirective, TUI_DATA_LIST_ACCESSOR, TuiHostedDropdownComponent, TUI_DATA_LIST_HOST, sizeBigger, TuiOptionComponent, TUI_OPTION_CONTENT, TuiSvgModule, TuiHostedDropdownModule, TuiPrimitiveCheckboxModule, TuiDataListModule } from '@taiga-ui/core';
6
+ import { TuiSvgService, TUI_DATA_LIST_ACCESSOR, TuiHostedDropdownComponent, TuiDataListDirective, TUI_DATA_LIST_HOST, sizeBigger, TuiOptionComponent, TUI_OPTION_CONTENT, TuiSvgModule, TuiHostedDropdownModule, TuiPrimitiveCheckboxModule, TuiDataListModule } from '@taiga-ui/core';
7
7
  import { TuiStringifiableItem } from '@taiga-ui/kit/classes';
8
8
  import { TuiInputTagComponent, TuiInputTagModule } from '@taiga-ui/kit/components/input-tag';
9
9
  import { iconBlank } from '@taiga-ui/kit/constants';
@@ -26,12 +26,12 @@ let TuiMultiSelectComponent = TuiMultiSelectComponent_1 = class TuiMultiSelectCo
26
26
  this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
27
27
  this.valueContent = '';
28
28
  this.searchChange = new EventEmitter();
29
+ this.datalist = '';
29
30
  this.open = false;
30
31
  this.valueMapper = (value, stringify, group) => group
31
32
  ? EMPTY_ARRAY
32
33
  : value.map(item => new TuiStringifiableItem(item, stringify));
33
34
  this.disabledItemHandlerWrapper = handler => stringifiable => typeof stringifiable === 'string' || handler(stringifiable.item);
34
- this.datalist = '';
35
35
  svgService.define({ iconBlank });
36
36
  }
37
37
  get nativeFocusableElement() {
@@ -131,6 +131,9 @@ let TuiMultiSelectComponent = TuiMultiSelectComponent_1 = class TuiMultiSelectCo
131
131
  super.setDisabledState();
132
132
  this.open = false;
133
133
  }
134
+ getContext($implicit) {
135
+ return { $implicit };
136
+ }
134
137
  updateSearch(search) {
135
138
  if (this.search === search) {
136
139
  return;
@@ -143,15 +146,21 @@ let TuiMultiSelectComponent = TuiMultiSelectComponent_1 = class TuiMultiSelectCo
143
146
  setNativeFocused(this.nativeFocusableElement, true, preventScroll);
144
147
  }
145
148
  }
146
- getContext($implicit) {
147
- return { $implicit };
148
- }
149
149
  };
150
150
  TuiMultiSelectComponent.ctorParameters = () => [
151
151
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
152
152
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
153
153
  { type: TuiSvgService, decorators: [{ type: Inject, args: [TuiSvgService,] }] }
154
154
  ];
155
+ __decorate([
156
+ ContentChild(TUI_DATA_LIST_ACCESSOR)
157
+ ], TuiMultiSelectComponent.prototype, "accessor", void 0);
158
+ __decorate([
159
+ ViewChild(TuiHostedDropdownComponent)
160
+ ], TuiMultiSelectComponent.prototype, "hostedDropdown", void 0);
161
+ __decorate([
162
+ ViewChild(TuiInputTagComponent)
163
+ ], TuiMultiSelectComponent.prototype, "input", void 0);
155
164
  __decorate([
156
165
  Input(),
157
166
  tuiDefaultProp()
@@ -187,15 +196,6 @@ __decorate([
187
196
  __decorate([
188
197
  ContentChild(TuiDataListDirective, { read: TemplateRef })
189
198
  ], TuiMultiSelectComponent.prototype, "datalist", void 0);
190
- __decorate([
191
- ContentChild(TUI_DATA_LIST_ACCESSOR)
192
- ], TuiMultiSelectComponent.prototype, "accessor", void 0);
193
- __decorate([
194
- ViewChild(TuiHostedDropdownComponent)
195
- ], TuiMultiSelectComponent.prototype, "hostedDropdown", void 0);
196
- __decorate([
197
- ViewChild(TuiInputTagComponent)
198
- ], TuiMultiSelectComponent.prototype, "input", void 0);
199
199
  __decorate([
200
200
  tuiPure
201
201
  ], TuiMultiSelectComponent.prototype, "getStringifier", null);
@@ -205,7 +205,7 @@ __decorate([
205
205
  TuiMultiSelectComponent = TuiMultiSelectComponent_1 = __decorate([
206
206
  Component({
207
207
  selector: 'tui-multi-select',
208
- template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-tag\n #inputTag\n tuiHostedDropdownHost\n automation-id=\"tui-multi-select__input\"\n class=\"input\"\n [nativeId]=\"nativeId\"\n [icon]=\"tagIcon\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper : disabledItemHandlerWrapper\"\n [readOnly]=\"readOnly\"\n [inputHidden]=\"!editable\"\n [pseudoHovered]=\"hovered\"\n [pseudoFocused]=\"focused\"\n [pseudoInvalid]=\"computedInvalid\"\n [editable]=\"false\"\n [expandable]=\"expandable\"\n [search]=\"searchOrSpace\"\n [ngModel]=\"computedValue | tuiMapper: valueMapper: stringify\"\n (ngModelChange)=\"onInput($event)\"\n (searchChange)=\"onSearch($event)\"\n (keydown.space)=\"onSpace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (click.prevent)=\"onClick(inputTag)\"\n >\n <ng-content></ng-content>\n </tui-input-tag>\n <div class=\"t-wrapper\">\n <div\n *ngIf=\"computedGroup\"\n polymorpheus-outlet\n class=\"t-group\"\n [class.t-group_fullsize]=\"inputTag.labelOutside\"\n [context]=\"context\"\n [content]=\"valueContent\"\n ></div>\n <tui-svg\n *ngIf=\"interactive\"\n automation-id=\"tui-multi-select__arrow\"\n tuiPreventDefault=\"mousedown\"\n class=\"t-arrow\"\n [class.t-arrow_open]=\"open\"\n [src]=\"inputTag.size === 's' ? 'tuiIconChevronDown' : 'tuiIconChevronDownLarge'\"\n (click.prevent)=\"onArrowClick()\"\n ></tui-svg>\n </div>\n</tui-hosted-dropdown>\n",
208
+ template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-tag\n #inputTag\n tuiHostedDropdownHost\n automation-id=\"tui-multi-select__input\"\n class=\"input\"\n [nativeId]=\"nativeId\"\n [icon]=\"tagIcon\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [readOnly]=\"readOnly\"\n [inputHidden]=\"!editable\"\n [pseudoHovered]=\"hovered\"\n [pseudoFocused]=\"focused\"\n [pseudoInvalid]=\"computedInvalid\"\n [editable]=\"false\"\n [expandable]=\"expandable\"\n [search]=\"searchOrSpace\"\n [ngModel]=\"computedValue | tuiMapper: valueMapper:stringify\"\n (ngModelChange)=\"onInput($event)\"\n (searchChange)=\"onSearch($event)\"\n (keydown.space)=\"onSpace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (click.prevent)=\"onClick(inputTag)\"\n >\n <ng-content></ng-content>\n </tui-input-tag>\n <div class=\"t-wrapper\">\n <div\n *ngIf=\"computedGroup\"\n polymorpheus-outlet\n class=\"t-group\"\n [class.t-group_fullsize]=\"inputTag.labelOutside\"\n [context]=\"context\"\n [content]=\"valueContent\"\n ></div>\n <tui-svg\n *ngIf=\"interactive\"\n automation-id=\"tui-multi-select__arrow\"\n tuiPreventDefault=\"mousedown\"\n class=\"t-arrow\"\n [class.t-arrow_open]=\"open\"\n [src]=\"inputTag.size === 's' ? 'tuiIconChevronDown' : 'tuiIconChevronDownLarge'\"\n (click.prevent)=\"onArrowClick()\"\n ></tui-svg>\n </div>\n</tui-hosted-dropdown>\n",
209
209
  changeDetection: ChangeDetectionStrategy.OnPush,
210
210
  providers: [
211
211
  {
@@ -218,7 +218,7 @@ TuiMultiSelectComponent = TuiMultiSelectComponent_1 = __decorate([
218
218
  },
219
219
  FIXED_DROPDOWN_CONTROLLER_PROVIDER,
220
220
  ],
221
- styles: [":host{position:relative;display:block}:host._disabled{pointer-events:none}.t-hosted{display:block}:host:not(._editable):not(._readonly) .input{cursor:pointer}.t-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;pointer-events:none;justify-content:flex-end}.t-group{display:flex;align-items:center;padding:1.6875rem 1rem .5625rem}.t-group_fullsize{padding-top:.0625rem;padding-bottom:0}:host[data-tui-host-size='m'] .t-group_fullsize.t-group_fullsize{padding-top:0}:host[data-tui-host-size='m'] .t-group{padding:1.1875rem .75rem 0;font-size:.8125rem}.t-arrow{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;transition-property:color,transform;width:1.5rem;height:1.5rem;margin:1rem .75rem;pointer-events:auto;cursor:pointer}.t-arrow:hover{color:var(--tui-text-02)}:host._disabled .t-arrow,:host._readonly .t-arrow{pointer-events:none}:host[data-mode=onDark] .t-arrow{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-arrow:hover{color:var(--tui-text-01-night)}.t-arrow_open{transform:rotate(-180deg)}[data-tui-host-size='m']+.t-wrapper .t-arrow{margin:.625rem .75rem}[data-tui-host-size='s']+.t-wrapper .t-arrow{margin:.25rem .5rem}"]
221
+ styles: [":host{position:relative;display:block}:host._disabled{pointer-events:none}.t-hosted{display:block}:host:not(._editable):not(._readonly) .input{cursor:pointer}.t-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;pointer-events:none;justify-content:flex-end}.t-group{display:flex;flex:1;align-items:center;padding:1.6875rem 1rem .5625rem}.t-group_fullsize{padding-top:.0625rem;padding-bottom:0}:host[data-tui-host-size='m'] .t-group_fullsize.t-group_fullsize{padding-top:0}:host[data-tui-host-size='m'] .t-group{padding:1.1875rem .75rem 0;font-size:.8125rem}.t-arrow{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;transition-property:color,transform;width:1.5rem;height:1.5rem;margin:1rem .75rem;pointer-events:auto;cursor:pointer}.t-arrow:hover{color:var(--tui-text-02)}:host._disabled .t-arrow,:host._readonly .t-arrow{pointer-events:none}:host[data-mode=onDark] .t-arrow{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-arrow:hover{color:var(--tui-text-01-night)}.t-arrow_open{transform:rotate(-180deg)}[data-tui-host-size='m']+.t-wrapper .t-arrow{margin:.625rem .75rem}[data-tui-host-size='s']+.t-wrapper .t-arrow{margin:.25rem .5rem}"]
222
222
  }),
223
223
  __param(0, Optional()),
224
224
  __param(0, Self()),
@@ -267,8 +267,8 @@ let TuiMultiSelectGroupComponent = class TuiMultiSelectGroupComponent {
267
267
  constructor(host, control) {
268
268
  this.host = host;
269
269
  this.control = control;
270
- this.label = '';
271
270
  this.options = EMPTY_QUERY;
271
+ this.label = '';
272
272
  }
273
273
  get size() {
274
274
  return (this.options.first && this.options.first.size) || 'm';
@@ -324,13 +324,13 @@ TuiMultiSelectGroupComponent.ctorParameters = () => [
324
324
  { type: undefined, decorators: [{ type: Inject, args: [TUI_DATA_LIST_HOST,] }] },
325
325
  { type: NgControl, decorators: [{ type: Inject, args: [NgControl,] }] }
326
326
  ];
327
+ __decorate([
328
+ ContentChildren(TuiOptionComponent)
329
+ ], TuiMultiSelectGroupComponent.prototype, "options", void 0);
327
330
  __decorate([
328
331
  Input(),
329
332
  tuiDefaultProp()
330
333
  ], TuiMultiSelectGroupComponent.prototype, "label", void 0);
331
- __decorate([
332
- ContentChildren(TuiOptionComponent)
333
- ], TuiMultiSelectGroupComponent.prototype, "options", void 0);
334
334
  __decorate([
335
335
  tuiPure
336
336
  ], TuiMultiSelectGroupComponent.prototype, "empty$", null);
@@ -352,7 +352,7 @@ __decorate([
352
352
  TuiMultiSelectGroupComponent = __decorate([
353
353
  Component({
354
354
  selector: 'tui-opt-group[tuiMultiSelectGroup]',
355
- template: "<ng-container *tuiLet=\"value$ | async as value\">\n <button\n *ngIf=\"label && !(empty$ | async)\"\n tuiOption\n [size]=\"size\"\n [disabled]=\"disabled$ | async\"\n (click)=\"onClick(value)\"\n >\n <tui-primitive-checkbox\n class=\"tui-space_right-3\"\n [size]=\"checkboxSize\"\n [value]=\"value\"\n ></tui-primitive-checkbox>\n <span class=\"label\">{{label}}</span>\n </button>\n</ng-container>\n<ng-content></ng-content>\n",
355
+ template: "<ng-container *tuiLet=\"value$ | async as value\">\n <button\n *ngIf=\"label && !(empty$ | async)\"\n tuiOption\n [size]=\"size\"\n [disabled]=\"disabled$ | async\"\n (click)=\"onClick(value)\"\n >\n <tui-primitive-checkbox\n class=\"tui-space_right-3\"\n [size]=\"checkboxSize\"\n [value]=\"value\"\n ></tui-primitive-checkbox>\n <span class=\"label\">{{ label }}</span>\n </button>\n</ng-container>\n<ng-content></ng-content>\n",
356
356
  changeDetection: ChangeDetectionStrategy.OnPush,
357
357
  viewProviders: [
358
358
  {