@taiga-ui/kit 2.42.0 → 2.45.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 (751) hide show
  1. package/abstract/slider/slider.d.ts +3 -3
  2. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +1 -0
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
  6. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-action.umd.js +3 -2
  10. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  12. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-avatar.umd.js +3 -3
  14. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
  16. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-combo-box.umd.js +4 -11
  32. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  34. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +65 -45
  36. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  38. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-files.umd.js +49 -49
  42. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-files.umd.min.js +2 -2
  44. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-copy.umd.js +1 -1
  48. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  50. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +3 -1
  54. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +4 -2
  57. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  59. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-date.umd.js +3 -1
  61. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +1 -1
  70. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  72. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-month.umd.js +1 -1
  74. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  76. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-number.umd.js +3 -2
  78. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  80. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-password.umd.js +1 -1
  82. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-phone.umd.js +1 -3
  87. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-range.umd.js +5 -1
  91. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
  93. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-slider.umd.js +1 -1
  95. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-tag.umd.js +9 -8
  99. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-time.umd.js +1 -1
  103. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +7 -94
  109. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +2 -2
  111. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +12 -25
  113. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +2 -2
  115. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-multi-select.umd.js +2 -2
  117. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  119. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-radio-block.umd.js +1 -1
  123. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  125. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +1 -1
  127. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  129. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-radio.umd.js +4 -2
  133. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  135. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-range.umd.js +67 -13
  137. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-range.umd.min.js +2 -2
  139. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  141. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-select.umd.js +1 -7
  143. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  145. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-slider.umd.js +52 -49
  147. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  149. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -0
  151. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  153. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-tabs.umd.js +67 -24
  155. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +2 -2
  157. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-text-area.umd.js +2 -2
  161. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  163. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-tree.umd.js +1 -1
  167. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  168. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  169. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  170. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  173. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  174. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  176. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  177. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  178. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  180. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  181. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  182. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  184. package/bundles/taiga-ui-kit-enums.umd.js +2 -2
  185. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  187. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  188. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  190. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  191. package/bundles/taiga-ui-kit-utils-dom.umd.js +2 -2
  192. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  193. package/bundles/taiga-ui-kit-utils-dom.umd.min.js +1 -1
  194. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  195. package/bundles/taiga-ui-kit-utils-mask.umd.js +2 -2
  196. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  197. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +1 -1
  198. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  199. package/bundles/taiga-ui-kit-utils-math.umd.js +253 -4
  200. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  201. package/bundles/taiga-ui-kit-utils-math.umd.min.js +15 -1
  202. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  203. package/bundles/taiga-ui-kit-utils.umd.js +12 -4
  204. package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
  205. package/bundles/taiga-ui-kit-utils.umd.min.js +1 -1
  206. package/components/accordion/accordion-item/accordion-item-content.directive.d.ts +2 -2
  207. package/components/accordion/accordion-item/accordion-item.component.d.ts +2 -2
  208. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  209. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  210. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  211. package/components/breadcrumbs/breadcrumbs-wrapper.component.d.ts +1 -1
  212. package/components/combo-box/combo-box.component.d.ts +1 -2
  213. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  214. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +5 -4
  215. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +3 -13
  216. package/components/data-list-wrapper/data-list-wrapper.d.ts +15 -0
  217. package/components/data-list-wrapper/index.d.ts +1 -0
  218. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  219. package/components/files/files.component.d.ts +1 -1
  220. package/components/files/index.d.ts +1 -0
  221. package/components/files/taiga-ui-kit-components-files.d.ts +0 -1
  222. package/components/files/taiga-ui-kit-components-files.metadata.json +1 -1
  223. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  224. package/components/input-count/input-count-options.d.ts +2 -2
  225. package/components/input-count/input-count.component.d.ts +2 -2
  226. package/components/input-date/input-date.providers.d.ts +2 -1
  227. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  228. package/components/input-date-range/input-date-range.providers.d.ts +2 -1
  229. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  230. package/components/input-date-time/input-date-time.providers.d.ts +2 -1
  231. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  232. package/components/input-file/file/file.component.d.ts +2 -2
  233. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  234. package/components/input-number/input-number.component.d.ts +2 -2
  235. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  236. package/components/input-password/input-password-options.d.ts +2 -2
  237. package/components/input-password/input-password.directive.d.ts +2 -1
  238. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  239. package/components/input-phone/input-phone.component.d.ts +2 -2
  240. package/components/input-range/input-range.component.d.ts +3 -2
  241. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  242. package/components/input-tag/input-tag.component.d.ts +4 -7
  243. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  244. package/components/input-time/input-time-options.d.ts +1 -1
  245. package/components/input-time/input-time.component.d.ts +2 -2
  246. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  247. package/components/line-clamp/index.d.ts +0 -1
  248. package/components/line-clamp/line-clamp.component.d.ts +0 -1
  249. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  250. package/components/marker-icon/marker-icon.component.d.ts +2 -3
  251. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  252. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +3 -3
  253. package/components/multi-select/multi-select.component.d.ts +2 -2
  254. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  255. package/components/radio/radio.component.d.ts +2 -2
  256. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  257. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  258. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  259. package/components/range/range.component.d.ts +11 -2
  260. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  261. package/components/select/select.component.d.ts +0 -1
  262. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  263. package/components/select-option/select-option.component.d.ts +2 -2
  264. package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
  265. package/components/slider/slider-readonly.directive.d.ts +4 -1
  266. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  267. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  268. package/components/tabs/index.d.ts +1 -0
  269. package/components/tabs/tab.directive.d.ts +2 -2
  270. package/components/tabs/tabs/tabs.component.d.ts +3 -1
  271. package/components/tabs/tabs-options.d.ts +9 -0
  272. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +9 -4
  273. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  274. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  275. package/components/tree/misc/tree.interfaces.d.ts +1 -1
  276. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  277. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +1 -1
  278. package/enums/dropdown-position.d.ts +2 -1
  279. package/enums/step-state.d.ts +2 -1
  280. package/enums/taiga-ui-kit-enums.metadata.json +1 -1
  281. package/esm2015/abstract/input-slider.js +1 -1
  282. package/esm2015/abstract/slider/slider.js +3 -2
  283. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +1 -1
  284. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +1 -1
  285. package/esm2015/components/accordion/accordion.component.js +1 -1
  286. package/esm2015/components/action/action.component.js +4 -3
  287. package/esm2015/components/avatar/avatar.component.js +4 -4
  288. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +1 -1
  289. package/esm2015/components/calendar-month/calendar-month.component.js +1 -1
  290. package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
  291. package/esm2015/components/carousel/carousel.component.js +1 -1
  292. package/esm2015/components/checkbox/checkbox.component.js +1 -1
  293. package/esm2015/components/checkbox-block/checkbox-block.component.js +1 -1
  294. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +1 -1
  295. package/esm2015/components/combo-box/combo-box-strict.directive.js +4 -2
  296. package/esm2015/components/combo-box/combo-box.component.js +3 -12
  297. package/esm2015/components/combo-box/combo-box.directive.js +1 -1
  298. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +15 -10
  299. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +7 -40
  300. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +51 -0
  301. package/esm2015/components/data-list-wrapper/index.js +2 -1
  302. package/esm2015/components/field-error/field-error.component.js +1 -1
  303. package/esm2015/components/files/file/file.component.js +1 -1
  304. package/esm2015/components/files/files.component.js +1 -1
  305. package/esm2015/components/files/index.js +2 -1
  306. package/esm2015/components/files/taiga-ui-kit-components-files.js +1 -2
  307. package/esm2015/components/filter/filter.component.js +1 -1
  308. package/esm2015/components/input/input.component.js +1 -1
  309. package/esm2015/components/input/input.directive.js +1 -1
  310. package/esm2015/components/input-copy/input-copy.component.js +1 -1
  311. package/esm2015/components/input-copy/input-copy.directive.js +1 -1
  312. package/esm2015/components/input-copy/input-copy.module.js +3 -3
  313. package/esm2015/components/input-count/input-count-options.js +1 -1
  314. package/esm2015/components/input-count/input-count.component.js +1 -1
  315. package/esm2015/components/input-count/input-count.directive.js +1 -1
  316. package/esm2015/components/input-date/input-date.component.js +1 -1
  317. package/esm2015/components/input-date/input-date.directive.js +1 -1
  318. package/esm2015/components/input-date/input-date.providers.js +1 -1
  319. package/esm2015/components/input-date-range/input-date-range.component.js +1 -1
  320. package/esm2015/components/input-date-range/input-date-range.directive.js +1 -1
  321. package/esm2015/components/input-date-range/input-date-range.providers.js +1 -1
  322. package/esm2015/components/input-date-time/input-date-time.component.js +2 -2
  323. package/esm2015/components/input-date-time/input-date-time.directive.js +1 -1
  324. package/esm2015/components/input-date-time/input-date-time.providers.js +1 -1
  325. package/esm2015/components/input-file/file/file.component.js +1 -1
  326. package/esm2015/components/input-file/input-file.component.js +1 -1
  327. package/esm2015/components/input-files/input-files.component.js +1 -1
  328. package/esm2015/components/input-inline/input-inline.component.js +1 -1
  329. package/esm2015/components/input-month/input-month.component.js +2 -2
  330. package/esm2015/components/input-month/input-month.directive.js +1 -1
  331. package/esm2015/components/input-month-range/input-month-range.component.js +2 -2
  332. package/esm2015/components/input-month-range/input-month-range.directive.js +1 -1
  333. package/esm2015/components/input-number/input-number.component.js +6 -5
  334. package/esm2015/components/input-number/input-number.directive.js +1 -1
  335. package/esm2015/components/input-password/input-password-options.js +3 -3
  336. package/esm2015/components/input-password/input-password.component.js +1 -1
  337. package/esm2015/components/input-password/input-password.directive.js +1 -1
  338. package/esm2015/components/input-phone/input-phone.component.js +2 -4
  339. package/esm2015/components/input-phone/input-phone.directive.js +1 -1
  340. package/esm2015/components/input-phone-international/input-phone-international.component.js +1 -1
  341. package/esm2015/components/input-range/input-range.component.js +7 -3
  342. package/esm2015/components/input-slider/input-slider.component.js +3 -3
  343. package/esm2015/components/input-tag/input-tag.component.js +10 -9
  344. package/esm2015/components/input-time/input-time-options.js +1 -1
  345. package/esm2015/components/input-time/input-time.component.js +2 -2
  346. package/esm2015/components/line-clamp/index.js +1 -2
  347. package/esm2015/components/line-clamp/line-clamp.component.js +3 -6
  348. package/esm2015/components/line-clamp/line-clamp.module.js +2 -3
  349. package/esm2015/components/marker-icon/marker-icon.component.js +9 -18
  350. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +2 -2
  351. package/esm2015/components/multi-select/multi-select.component.js +2 -2
  352. package/esm2015/components/pagination/pagination.component.js +1 -1
  353. package/esm2015/components/radio/radio.component.js +5 -3
  354. package/esm2015/components/radio-block/radio-block.component.js +2 -2
  355. package/esm2015/components/radio-labeled/radio-labeled.component.js +2 -2
  356. package/esm2015/components/radio-list/radio-list.component.js +1 -1
  357. package/esm2015/components/range/range.component.js +70 -13
  358. package/esm2015/components/select/select.component.js +3 -9
  359. package/esm2015/components/select/select.directive.js +1 -1
  360. package/esm2015/components/select-option/select-option.component.js +1 -1
  361. package/esm2015/components/slider/slider-key-steps.directive.js +11 -28
  362. package/esm2015/components/slider/slider-old.component.js +1 -1
  363. package/esm2015/components/slider/slider-readonly.directive.js +38 -9
  364. package/esm2015/components/slider/slider.component.js +2 -2
  365. package/esm2015/components/stepper/step/step.component.js +1 -1
  366. package/esm2015/components/stepper/stepper.component.js +3 -2
  367. package/esm2015/components/tabs/index.js +2 -1
  368. package/esm2015/components/tabs/tab/tab.component.js +1 -1
  369. package/esm2015/components/tabs/tab.directive.js +1 -1
  370. package/esm2015/components/tabs/tabs/tabs.component.js +14 -10
  371. package/esm2015/components/tabs/tabs-options.js +14 -0
  372. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +38 -17
  373. package/esm2015/components/tag/tag.component.js +1 -1
  374. package/esm2015/components/text-area/text-area.component.js +3 -3
  375. package/esm2015/components/text-area/text-area.directive.js +1 -1
  376. package/esm2015/components/toggle/toggle.component.js +1 -1
  377. package/esm2015/components/tree/components/tree/tree.component.js +2 -2
  378. package/esm2015/components/tree/components/tree-item/tree-item.component.js +1 -1
  379. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +1 -1
  380. package/esm2015/components/tree/directives/tree-controller.directive.js +1 -1
  381. package/esm2015/components/tree/directives/tree-item-controller.directive.js +1 -1
  382. package/esm2015/components/tree/directives/tree-node.directive.js +1 -1
  383. package/esm2015/components/tree/misc/tree.interfaces.js +1 -1
  384. package/esm2015/components/tree/misc/tree.service.js +1 -1
  385. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +1 -1
  386. package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +1 -1
  387. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +1 -1
  388. package/esm2015/directives/highlight/highlight.directive.js +1 -1
  389. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +1 -1
  390. package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
  391. package/esm2015/directives/present/present.directive.js +1 -1
  392. package/esm2015/directives/project-class/project-class.directive.js +1 -1
  393. package/esm2015/enums/dropdown-position.js +2 -2
  394. package/esm2015/enums/step-state.js +2 -2
  395. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +1 -1
  396. package/esm2015/pipes/field-error/field-error-content-pipe.js +1 -1
  397. package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
  398. package/esm2015/types/handler-with-context.js +1 -1
  399. package/esm2015/types/key-steps.js +1 -1
  400. package/esm2015/utils/dom/get-word-range.js +3 -3
  401. package/esm2015/utils/dom/scroll-to-element.js +1 -1
  402. package/esm2015/utils/dom/set-range-offset.js +1 -1
  403. package/esm2015/utils/index.js +2 -1
  404. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +3 -3
  405. package/esm2015/utils/mask/create-time-mask.js +1 -1
  406. package/esm2015/utils/math/index.js +2 -1
  407. package/esm2015/utils/math/key-steps.js +23 -0
  408. package/esm5/abstract/input-slider.js +1 -1
  409. package/esm5/abstract/slider/slider.js +3 -2
  410. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +1 -1
  411. package/esm5/components/accordion/accordion-item/accordion-item.component.js +1 -1
  412. package/esm5/components/accordion/accordion.component.js +1 -1
  413. package/esm5/components/action/action.component.js +4 -3
  414. package/esm5/components/avatar/avatar.component.js +4 -4
  415. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +1 -1
  416. package/esm5/components/calendar-month/calendar-month.component.js +1 -1
  417. package/esm5/components/calendar-range/calendar-range.component.js +1 -1
  418. package/esm5/components/carousel/carousel.component.js +1 -1
  419. package/esm5/components/checkbox/checkbox.component.js +1 -1
  420. package/esm5/components/checkbox-block/checkbox-block.component.js +1 -1
  421. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +1 -1
  422. package/esm5/components/combo-box/combo-box-strict.directive.js +4 -2
  423. package/esm5/components/combo-box/combo-box.component.js +3 -12
  424. package/esm5/components/combo-box/combo-box.directive.js +1 -1
  425. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +15 -10
  426. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +12 -55
  427. package/esm5/components/data-list-wrapper/data-list-wrapper.js +64 -0
  428. package/esm5/components/data-list-wrapper/index.js +2 -1
  429. package/esm5/components/field-error/field-error.component.js +1 -1
  430. package/esm5/components/files/file/file.component.js +1 -1
  431. package/esm5/components/files/files.component.js +1 -1
  432. package/esm5/components/files/index.js +2 -1
  433. package/esm5/components/files/taiga-ui-kit-components-files.js +1 -2
  434. package/esm5/components/filter/filter.component.js +1 -1
  435. package/esm5/components/input/input.component.js +1 -1
  436. package/esm5/components/input/input.directive.js +1 -1
  437. package/esm5/components/input-copy/input-copy.component.js +1 -1
  438. package/esm5/components/input-copy/input-copy.directive.js +1 -1
  439. package/esm5/components/input-copy/input-copy.module.js +3 -3
  440. package/esm5/components/input-count/input-count-options.js +1 -1
  441. package/esm5/components/input-count/input-count.component.js +1 -1
  442. package/esm5/components/input-count/input-count.directive.js +1 -1
  443. package/esm5/components/input-date/input-date.component.js +1 -1
  444. package/esm5/components/input-date/input-date.directive.js +1 -1
  445. package/esm5/components/input-date/input-date.providers.js +4 -2
  446. package/esm5/components/input-date-range/input-date-range.component.js +1 -1
  447. package/esm5/components/input-date-range/input-date-range.directive.js +1 -1
  448. package/esm5/components/input-date-range/input-date-range.providers.js +4 -2
  449. package/esm5/components/input-date-time/input-date-time.component.js +2 -2
  450. package/esm5/components/input-date-time/input-date-time.directive.js +1 -1
  451. package/esm5/components/input-date-time/input-date-time.providers.js +4 -2
  452. package/esm5/components/input-file/file/file.component.js +1 -1
  453. package/esm5/components/input-file/input-file.component.js +1 -1
  454. package/esm5/components/input-files/input-files.component.js +1 -1
  455. package/esm5/components/input-inline/input-inline.component.js +1 -1
  456. package/esm5/components/input-month/input-month.component.js +2 -2
  457. package/esm5/components/input-month/input-month.directive.js +1 -1
  458. package/esm5/components/input-month-range/input-month-range.component.js +2 -2
  459. package/esm5/components/input-month-range/input-month-range.directive.js +1 -1
  460. package/esm5/components/input-number/input-number.component.js +6 -5
  461. package/esm5/components/input-number/input-number.directive.js +1 -1
  462. package/esm5/components/input-password/input-password-options.js +2 -2
  463. package/esm5/components/input-password/input-password.component.js +1 -1
  464. package/esm5/components/input-password/input-password.directive.js +1 -1
  465. package/esm5/components/input-phone/input-phone.component.js +2 -4
  466. package/esm5/components/input-phone/input-phone.directive.js +1 -1
  467. package/esm5/components/input-phone-international/input-phone-international.component.js +1 -1
  468. package/esm5/components/input-range/input-range.component.js +6 -2
  469. package/esm5/components/input-slider/input-slider.component.js +2 -2
  470. package/esm5/components/input-tag/input-tag.component.js +10 -9
  471. package/esm5/components/input-time/input-time-options.js +1 -1
  472. package/esm5/components/input-time/input-time.component.js +2 -2
  473. package/esm5/components/line-clamp/index.js +1 -2
  474. package/esm5/components/line-clamp/line-clamp.component.js +3 -10
  475. package/esm5/components/line-clamp/line-clamp.module.js +2 -3
  476. package/esm5/components/marker-icon/marker-icon.component.js +9 -23
  477. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +2 -2
  478. package/esm5/components/multi-select/multi-select.component.js +2 -2
  479. package/esm5/components/pagination/pagination.component.js +1 -1
  480. package/esm5/components/radio/radio.component.js +5 -3
  481. package/esm5/components/radio-block/radio-block.component.js +2 -2
  482. package/esm5/components/radio-labeled/radio-labeled.component.js +2 -2
  483. package/esm5/components/radio-list/radio-list.component.js +1 -1
  484. package/esm5/components/range/range.component.js +68 -12
  485. package/esm5/components/select/select.component.js +3 -9
  486. package/esm5/components/select/select.directive.js +1 -1
  487. package/esm5/components/select-option/select-option.component.js +1 -1
  488. package/esm5/components/slider/slider-key-steps.directive.js +13 -43
  489. package/esm5/components/slider/slider-old.component.js +1 -1
  490. package/esm5/components/slider/slider-readonly.directive.js +45 -9
  491. package/esm5/components/slider/slider.component.js +2 -2
  492. package/esm5/components/stepper/step/step.component.js +1 -1
  493. package/esm5/components/stepper/stepper.component.js +3 -2
  494. package/esm5/components/tabs/index.js +2 -1
  495. package/esm5/components/tabs/tab/tab.component.js +1 -1
  496. package/esm5/components/tabs/tab.directive.js +1 -1
  497. package/esm5/components/tabs/tabs/tabs.component.js +14 -10
  498. package/esm5/components/tabs/tabs-options.js +15 -0
  499. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +42 -17
  500. package/esm5/components/tag/tag.component.js +1 -1
  501. package/esm5/components/text-area/text-area.component.js +3 -3
  502. package/esm5/components/text-area/text-area.directive.js +1 -1
  503. package/esm5/components/toggle/toggle.component.js +1 -1
  504. package/esm5/components/tree/components/tree/tree.component.js +2 -2
  505. package/esm5/components/tree/components/tree-item/tree-item.component.js +1 -1
  506. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +1 -1
  507. package/esm5/components/tree/directives/tree-controller.directive.js +1 -1
  508. package/esm5/components/tree/directives/tree-item-controller.directive.js +1 -1
  509. package/esm5/components/tree/directives/tree-node.directive.js +1 -1
  510. package/esm5/components/tree/misc/tree.interfaces.js +1 -1
  511. package/esm5/components/tree/misc/tree.service.js +1 -1
  512. package/esm5/directives/dropdown-context/dropdown-context.directive.js +1 -1
  513. package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +1 -1
  514. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +1 -1
  515. package/esm5/directives/highlight/highlight.directive.js +1 -1
  516. package/esm5/directives/lazy-loading/lazy-loading.directive.js +1 -1
  517. package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
  518. package/esm5/directives/present/present.directive.js +1 -1
  519. package/esm5/directives/project-class/project-class.directive.js +1 -1
  520. package/esm5/enums/dropdown-position.js +2 -2
  521. package/esm5/enums/step-state.js +2 -2
  522. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +1 -1
  523. package/esm5/pipes/field-error/field-error-content-pipe.js +1 -1
  524. package/esm5/pipes/field-error/field-error-pipe.js +1 -1
  525. package/esm5/types/handler-with-context.js +1 -1
  526. package/esm5/types/key-steps.js +1 -1
  527. package/esm5/utils/dom/get-word-range.js +3 -3
  528. package/esm5/utils/dom/scroll-to-element.js +1 -1
  529. package/esm5/utils/dom/set-range-offset.js +1 -1
  530. package/esm5/utils/index.js +2 -1
  531. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +3 -3
  532. package/esm5/utils/mask/create-time-mask.js +1 -1
  533. package/esm5/utils/math/index.js +2 -1
  534. package/esm5/utils/math/key-steps.js +30 -0
  535. package/fesm2015/taiga-ui-kit-abstract.js +2 -1
  536. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  537. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  538. package/fesm2015/taiga-ui-kit-components-action.js +3 -2
  539. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  540. package/fesm2015/taiga-ui-kit-components-avatar.js +3 -3
  541. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  542. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  543. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  544. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  545. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  546. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  547. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  548. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  549. package/fesm2015/taiga-ui-kit-components-combo-box.js +5 -12
  550. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  551. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +56 -38
  552. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  553. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  554. package/fesm2015/taiga-ui-kit-components-files.js +47 -47
  555. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  556. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  557. package/fesm2015/taiga-ui-kit-components-input-copy.js +2 -2
  558. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  559. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  560. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  561. package/fesm2015/taiga-ui-kit-components-input-date-time.js +1 -1
  562. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  563. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  564. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  565. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  566. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  567. package/fesm2015/taiga-ui-kit-components-input-month-range.js +1 -1
  568. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  569. package/fesm2015/taiga-ui-kit-components-input-month.js +1 -1
  570. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  571. package/fesm2015/taiga-ui-kit-components-input-number.js +5 -4
  572. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  573. package/fesm2015/taiga-ui-kit-components-input-password.js +2 -2
  574. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  575. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  576. package/fesm2015/taiga-ui-kit-components-input-phone.js +1 -3
  577. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  578. package/fesm2015/taiga-ui-kit-components-input-range.js +6 -2
  579. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  580. package/fesm2015/taiga-ui-kit-components-input-slider.js +2 -2
  581. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  582. package/fesm2015/taiga-ui-kit-components-input-tag.js +9 -8
  583. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  584. package/fesm2015/taiga-ui-kit-components-input-time.js +1 -1
  585. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  586. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  587. package/fesm2015/taiga-ui-kit-components-line-clamp.js +9 -91
  588. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  589. package/fesm2015/taiga-ui-kit-components-marker-icon.js +9 -18
  590. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  591. package/fesm2015/taiga-ui-kit-components-multi-select.js +2 -2
  592. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  593. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-components-radio-block.js +1 -1
  595. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  596. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +1 -1
  597. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  598. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  599. package/fesm2015/taiga-ui-kit-components-radio.js +4 -2
  600. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  601. package/fesm2015/taiga-ui-kit-components-range.js +70 -14
  602. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  603. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  604. package/fesm2015/taiga-ui-kit-components-select.js +2 -8
  605. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  606. package/fesm2015/taiga-ui-kit-components-slider.js +44 -35
  607. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  608. package/fesm2015/taiga-ui-kit-components-stepper.js +2 -1
  609. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  610. package/fesm2015/taiga-ui-kit-components-tabs.js +62 -26
  611. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  612. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  613. package/fesm2015/taiga-ui-kit-components-text-area.js +2 -2
  614. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  615. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  616. package/fesm2015/taiga-ui-kit-components-tree.js +1 -1
  617. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  618. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  619. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  620. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  621. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  622. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  623. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  624. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  625. package/fesm2015/taiga-ui-kit-enums.js +2 -2
  626. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  627. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  628. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  629. package/fesm2015/taiga-ui-kit-utils-dom.js +2 -2
  630. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  631. package/fesm2015/taiga-ui-kit-utils-mask.js +2 -2
  632. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  633. package/fesm2015/taiga-ui-kit-utils-math.js +25 -1
  634. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  635. package/fesm2015/taiga-ui-kit-utils.js +1 -0
  636. package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
  637. package/fesm5/taiga-ui-kit-abstract.js +2 -1
  638. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  639. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  640. package/fesm5/taiga-ui-kit-components-action.js +3 -2
  641. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  642. package/fesm5/taiga-ui-kit-components-avatar.js +3 -3
  643. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  644. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  645. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  646. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  647. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  648. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  649. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  650. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  651. package/fesm5/taiga-ui-kit-components-combo-box.js +5 -12
  652. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  653. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +66 -45
  654. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  655. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  656. package/fesm5/taiga-ui-kit-components-files.js +52 -52
  657. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  658. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  659. package/fesm5/taiga-ui-kit-components-input-copy.js +2 -2
  660. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  661. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  662. package/fesm5/taiga-ui-kit-components-input-date-range.js +3 -1
  663. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  664. package/fesm5/taiga-ui-kit-components-input-date-time.js +4 -2
  665. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  666. package/fesm5/taiga-ui-kit-components-input-date.js +3 -1
  667. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  668. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  669. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  670. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  671. package/fesm5/taiga-ui-kit-components-input-month-range.js +1 -1
  672. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  673. package/fesm5/taiga-ui-kit-components-input-month.js +1 -1
  674. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  675. package/fesm5/taiga-ui-kit-components-input-number.js +5 -4
  676. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  677. package/fesm5/taiga-ui-kit-components-input-password.js +1 -1
  678. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  679. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  680. package/fesm5/taiga-ui-kit-components-input-phone.js +1 -3
  681. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  682. package/fesm5/taiga-ui-kit-components-input-range.js +5 -1
  683. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  684. package/fesm5/taiga-ui-kit-components-input-slider.js +1 -1
  685. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  686. package/fesm5/taiga-ui-kit-components-input-tag.js +9 -8
  687. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  688. package/fesm5/taiga-ui-kit-components-input-time.js +1 -1
  689. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  690. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  691. package/fesm5/taiga-ui-kit-components-line-clamp.js +9 -97
  692. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  693. package/fesm5/taiga-ui-kit-components-marker-icon.js +9 -23
  694. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  695. package/fesm5/taiga-ui-kit-components-multi-select.js +2 -2
  696. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  697. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  698. package/fesm5/taiga-ui-kit-components-radio-block.js +1 -1
  699. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  700. package/fesm5/taiga-ui-kit-components-radio-labeled.js +1 -1
  701. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  702. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  703. package/fesm5/taiga-ui-kit-components-radio.js +4 -2
  704. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  705. package/fesm5/taiga-ui-kit-components-range.js +68 -13
  706. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  707. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  708. package/fesm5/taiga-ui-kit-components-select.js +2 -8
  709. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  710. package/fesm5/taiga-ui-kit-components-slider.js +52 -49
  711. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  712. package/fesm5/taiga-ui-kit-components-stepper.js +2 -1
  713. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  714. package/fesm5/taiga-ui-kit-components-tabs.js +67 -27
  715. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  716. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  717. package/fesm5/taiga-ui-kit-components-text-area.js +2 -2
  718. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  719. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  720. package/fesm5/taiga-ui-kit-components-tree.js +1 -1
  721. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  722. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  723. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  724. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  725. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  726. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  727. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  728. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  729. package/fesm5/taiga-ui-kit-enums.js +2 -2
  730. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  731. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  732. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  733. package/fesm5/taiga-ui-kit-utils-dom.js +2 -2
  734. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  735. package/fesm5/taiga-ui-kit-utils-mask.js +2 -2
  736. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  737. package/fesm5/taiga-ui-kit-utils-math.js +32 -1
  738. package/fesm5/taiga-ui-kit-utils-math.js.map +1 -1
  739. package/fesm5/taiga-ui-kit-utils.js +1 -0
  740. package/fesm5/taiga-ui-kit-utils.js.map +1 -1
  741. package/package.json +4 -4
  742. package/types/handler-with-context.d.ts +2 -2
  743. package/types/key-steps.d.ts +1 -1
  744. package/utils/index.d.ts +1 -0
  745. package/utils/math/index.d.ts +1 -0
  746. package/utils/math/key-steps.d.ts +4 -0
  747. package/utils/math/taiga-ui-kit-utils-math.metadata.json +1 -1
  748. package/utils/taiga-ui-kit-utils.metadata.json +1 -1
  749. package/components/line-clamp/line-clamp.directive.d.ts +0 -11
  750. package/esm2015/components/line-clamp/line-clamp.directive.js +0 -87
  751. package/esm5/components/line-clamp/line-clamp.directive.js +0 -89
@@ -1,7 +1,7 @@
1
- import { __decorate, __param } from 'tslib';
1
+ import { __decorate, __param, __assign } from 'tslib';
2
2
  import { TemplateRef, Inject, Directive, InjectionToken, ElementRef, Optional, HostBinding, Component, ChangeDetectionStrategy, EventEmitter, Renderer2, ChangeDetectorRef, ContentChildren, forwardRef, Input, Output, HostListener, ViewChild, NgZone, NgModule } from '@angular/core';
3
3
  import { RouterLinkActive } from '@angular/router';
4
- import { TuiDestroyService, TuiFocusVisibleService, typedFromEvent, tuiCustomEvent, isNativeFocused, setNativeFocused, TUI_IS_IOS, TUI_IS_ANDROID, EMPTY_QUERY, moveFocus, TuiResizeService, tuiDefaultProp, getClosestFocusable, toInt, tuiZonefree, px, TuiFocusableModule } from '@taiga-ui/cdk';
4
+ import { TuiDestroyService, TuiFocusVisibleService, typedFromEvent, tuiCustomEvent, isNativeFocused, setNativeFocused, TUI_IS_IOS, TUI_IS_ANDROID, EMPTY_QUERY, moveFocus, TuiResizeService, tuiDefaultProp, tuiAssertIsHTMLElement, getClosestFocusable, toInt, tuiZonefree, px, TuiFocusableModule } from '@taiga-ui/cdk';
5
5
  import { TuiRouterLinkActiveService, MODE_PROVIDER, TUI_MODE, TuiHostedDropdownModule, TuiSvgModule } from '@taiga-ui/core';
6
6
  import { TUI_TAB_MARGIN, TUI_MOBILE_AWARE, TUI_MORE_WORD } from '@taiga-ui/kit/tokens';
7
7
  import { EMPTY, merge, identity, Observable, ReplaySubject, of } from 'rxjs';
@@ -134,6 +134,19 @@ var TuiTabComponent = /** @class */ (function () {
134
134
  return TuiTabComponent;
135
135
  }());
136
136
 
137
+ var TUI_TABS_DEFAULT_OPTIONS = {
138
+ underline: true,
139
+ exposeActive: true,
140
+ itemsLimit: Infinity,
141
+ };
142
+ var TUI_TABS_OPTIONS = new InjectionToken('Default parameters for tabs component', {
143
+ factory: function () { return TUI_TABS_DEFAULT_OPTIONS; },
144
+ });
145
+ var tuiTabsOptionsProvider = function (options) { return ({
146
+ provide: TUI_TABS_OPTIONS,
147
+ useValue: __assign(__assign({}, TUI_TABS_DEFAULT_OPTIONS), options),
148
+ }); };
149
+
137
150
  var TAB_ACTIVE_CLASS = '_active';
138
151
  // TODO: remove in ivy compilation
139
152
  var OBSERVER_INIT = {
@@ -141,12 +154,13 @@ var OBSERVER_INIT = {
141
154
  };
142
155
  // @dynamic
143
156
  var TuiTabsComponent = /** @class */ (function () {
144
- function TuiTabsComponent(elementRef, renderer, changeDetectorRef, resize$, isIos, isAndroid, mobileAware) {
157
+ function TuiTabsComponent(options, elementRef, renderer, changeDetectorRef, resize$, isIos, isAndroid, mobileAware) {
145
158
  var _this = this;
159
+ this.options = options;
146
160
  this.elementRef = elementRef;
147
161
  this.renderer = renderer;
148
162
  this.children = EMPTY_QUERY;
149
- this.underline = true;
163
+ this.underline = this.options.underline;
150
164
  this.activeItemIndexChange = new EventEmitter();
151
165
  this.activeItemIndex = 0;
152
166
  this.isIos = mobileAware && isIos;
@@ -217,6 +231,7 @@ var TuiTabsComponent = /** @class */ (function () {
217
231
  }
218
232
  };
219
233
  TuiTabsComponent.ctorParameters = function () { return [
234
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_TABS_OPTIONS,] }] },
220
235
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
221
236
  { type: Renderer2, decorators: [{ type: Inject, args: [Renderer2,] }] },
222
237
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
@@ -268,13 +283,14 @@ var TuiTabsComponent = /** @class */ (function () {
268
283
  ],
269
284
  styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:relative;display:flex;font:var(--tui-font-text-m);height:var(--tui-height-l);color:var(--tui-text-02);box-shadow:inset 0 -1px var(--tui-base-03);overflow:auto}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._android{height:auto}:host._ios{height:auto;border:2px solid transparent;border-radius:.5625rem;background:var(--tui-link);box-shadow:none}"]
270
285
  }),
271
- __param(0, Inject(ElementRef)),
272
- __param(1, Inject(Renderer2)),
273
- __param(2, Inject(ChangeDetectorRef)),
274
- __param(3, Inject(TuiResizeService)),
275
- __param(4, Inject(TUI_IS_IOS)),
276
- __param(5, Inject(TUI_IS_ANDROID)),
277
- __param(6, Inject(TUI_MOBILE_AWARE))
286
+ __param(0, Inject(TUI_TABS_OPTIONS)),
287
+ __param(1, Inject(ElementRef)),
288
+ __param(2, Inject(Renderer2)),
289
+ __param(3, Inject(ChangeDetectorRef)),
290
+ __param(4, Inject(TuiResizeService)),
291
+ __param(5, Inject(TUI_IS_IOS)),
292
+ __param(6, Inject(TUI_IS_ANDROID)),
293
+ __param(7, Inject(TUI_MOBILE_AWARE))
278
294
  ], TuiTabsComponent);
279
295
  return TuiTabsComponent;
280
296
  }());
@@ -316,7 +332,8 @@ var TABS_PROVIDERS = [
316
332
 
317
333
  // @dynamic
318
334
  var TuiTabsWithMoreComponent = /** @class */ (function () {
319
- function TuiTabsWithMoreComponent(margin, refresh$, elementRef, changeDetectorRef, moreWord$) {
335
+ function TuiTabsWithMoreComponent(options, margin, refresh$, elementRef, changeDetectorRef, moreWord$) {
336
+ this.options = options;
320
337
  this.margin = margin;
321
338
  this.refresh$ = refresh$;
322
339
  this.elementRef = elementRef;
@@ -325,9 +342,9 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
325
342
  this.maxIndex = Infinity;
326
343
  this.moreContent = '';
327
344
  this.dropdownContent = '';
328
- this.underline = true;
345
+ this.underline = this.options.underline;
329
346
  this.activeItemIndex = 0;
330
- this.itemsLimit = Infinity;
347
+ this.itemsLimit = this.options.itemsLimit;
331
348
  this.activeItemIndexChange = new EventEmitter();
332
349
  this.items = EMPTY_QUERY;
333
350
  this.open = false;
@@ -342,7 +359,10 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
342
359
  });
343
360
  Object.defineProperty(TuiTabsWithMoreComponent.prototype, "activeElement", {
344
361
  get: function () {
345
- return this.tabs[this.activeItemIndex] || null;
362
+ var _a;
363
+ return this.options.exposeActive || this.lastVisibleIndex >= this.activeItemIndex
364
+ ? this.tabs[this.activeItemIndex] || null
365
+ : ((_a = this.moreButton) === null || _a === void 0 ? void 0 : _a.nativeElement) || null;
346
366
  },
347
367
  enumerable: true,
348
368
  configurable: true
@@ -361,12 +381,22 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
361
381
  enumerable: true,
362
382
  configurable: true
363
383
  });
384
+ Object.defineProperty(TuiTabsWithMoreComponent.prototype, "isMoreActive", {
385
+ get: function () {
386
+ return (this.open ||
387
+ (!this.options.exposeActive && this.lastVisibleIndex < this.activeItemIndex));
388
+ },
389
+ enumerable: true,
390
+ configurable: true
391
+ });
364
392
  Object.defineProperty(TuiTabsWithMoreComponent.prototype, "lastVisibleIndex", {
365
393
  get: function () {
366
394
  if (this.itemsLimit + 1 >= this.items.length) {
367
395
  return this.maxIndex;
368
396
  }
369
- var offset = this.itemsLimit - 1 > this.activeItemIndex ? 1 : 2;
397
+ var offset = this.itemsLimit - 1 > this.activeItemIndex || !this.options.exposeActive
398
+ ? 1
399
+ : 2;
370
400
  return Math.min(this.itemsLimit - offset, this.maxIndex);
371
401
  },
372
402
  enumerable: true,
@@ -389,8 +419,9 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
389
419
  this.focusMore();
390
420
  this.updateActiveItemIndex(index);
391
421
  };
392
- TuiTabsWithMoreComponent.prototype.onArrowRight = function (element) {
393
- if (isNativeFocused(element)) {
422
+ TuiTabsWithMoreComponent.prototype.onArrowRight = function (event) {
423
+ tuiAssertIsHTMLElement(event.target);
424
+ if (isNativeFocused(event.target)) {
394
425
  this.focusMore();
395
426
  }
396
427
  };
@@ -405,12 +436,19 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
405
436
  index--;
406
437
  }
407
438
  };
408
- TuiTabsWithMoreComponent.prototype.onWrapperArrow = function (button, wrapper, prev) {
439
+ TuiTabsWithMoreComponent.prototype.onWrapperArrow = function (event, wrapper, prev) {
440
+ var button = event.target;
409
441
  var target = getClosestFocusable(button, prev, wrapper);
410
442
  if (target) {
411
443
  setNativeFocused(target);
412
444
  }
413
445
  };
446
+ TuiTabsWithMoreComponent.prototype.isOverflown = function (index) {
447
+ return index !== this.activeItemIndex || !this.options.exposeActive;
448
+ };
449
+ TuiTabsWithMoreComponent.prototype.shouldShow = function (index) {
450
+ return index > this.lastVisibleIndex && this.isOverflown(index);
451
+ };
414
452
  TuiTabsWithMoreComponent.prototype.focusMore = function () {
415
453
  if (this.moreButton) {
416
454
  setNativeFocused(this.moreButton.nativeElement);
@@ -437,7 +475,7 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
437
475
  while (maxIndex) {
438
476
  total -= tabs[maxIndex].scrollWidth + margin;
439
477
  maxIndex--;
440
- var activeDisplaced = activeItemIndex > maxIndex;
478
+ var activeDisplaced = this.options.exposeActive && activeItemIndex > maxIndex;
441
479
  var activeOffset = activeDisplaced ? activeWidth + margin : 0;
442
480
  var currentWidth = total + activeOffset + moreWidth + margin;
443
481
  // Needed for different rounding of visible and hidden elements scrollWidth
@@ -457,6 +495,7 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
457
495
  this.maxIndex = this.getMaxIndex();
458
496
  };
459
497
  TuiTabsWithMoreComponent.ctorParameters = function () { return [
498
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_TABS_OPTIONS,] }] },
460
499
  { type: Number, decorators: [{ type: Inject, args: [TUI_TAB_MARGIN,] }] },
461
500
  { type: Observable, decorators: [{ type: Inject, args: [TABS_REFRESH,] }] },
462
501
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
@@ -496,16 +535,17 @@ var TuiTabsWithMoreComponent = /** @class */ (function () {
496
535
  TuiTabsWithMoreComponent = __decorate([
497
536
  Component({
498
537
  selector: 'tui-tabs-with-more, nav[tuiTabsWithMore]',
499
- template: "<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<div class=\"t-wrapper\">\n <tui-tabs\n class=\"t-tabs\"\n [underline]=\"false\"\n [activeItemIndex]=\"activeItemIndex\"\n (activeItemIndexChange)=\"onActiveItemIndexChange($event)\"\n (keydown.arrowRight)=\"onArrowRight($event.target)\"\n >\n <ng-container *ngFor=\"let item of items; let index = index\">\n <ng-container\n *ngIf=\"index <= lastVisibleIndex; else hidden\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n <ng-template #hidden>\n <div [class.t-overflown]=\"index !== activeItemIndex\">\n <ng-container *ngTemplateOutlet=\"item\"></ng-container>\n </div>\n </ng-template>\n </ng-container>\n </tui-tabs>\n <tui-hosted-dropdown\n class=\"t-more_wrapper\"\n [class.t-overflown]=\"!isMoreVisible\"\n [content]=\"dropdownContent || dropdown\"\n [(open)]=\"open\"\n >\n <button\n tuiTab\n class=\"t-more\"\n [class._active]=\"open\"\n [tuiFocusable]=\"isMoreFocusable\"\n (keydown.arrowLeft.prevent)=\"onArrowLeft()\"\n >\n <span\n polymorpheus-outlet\n [content]=\"moreContent || more\"\n ></span>\n </button>\n <ng-template #more>\n {{ moreWord$ | async }}\n <tui-svg\n src=\"tuiIconChevronDown\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\n ></tui-svg>\n </ng-template>\n </tui-hosted-dropdown>\n <ng-template #dropdown>\n <div\n #element\n class=\"t-dropdown\"\n (keydown.arrowUp.prevent)=\"onWrapperArrow($event.target, element, true)\"\n (keydown.arrowDown.prevent)=\"onWrapperArrow($event.target, element, false)\"\n >\n <div\n *ngFor=\"let item of items; let index = index\"\n (tui-tab-activate)=\"onClick(index)\"\n >\n <ng-container\n *ngIf=\"index > lastVisibleIndex && index !== activeItemIndex\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n </div>\n </div>\n </ng-template>\n <tui-underline\n *ngIf=\"underline\"\n [element]=\"activeElement\"\n ></tui-underline>\n</div>\n",
538
+ template: "<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<div class=\"t-wrapper\">\n <tui-tabs\n class=\"t-tabs\"\n [underline]=\"false\"\n [activeItemIndex]=\"activeItemIndex\"\n (activeItemIndexChange)=\"onActiveItemIndexChange($event)\"\n (keydown.arrowRight)=\"onArrowRight($event)\"\n >\n <ng-container *ngFor=\"let item of items; let index = index\">\n <ng-container\n *ngIf=\"index <= lastVisibleIndex; else hidden\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n <ng-template #hidden>\n <div [class.t-overflown]=\"isOverflown(index)\">\n <ng-container *ngTemplateOutlet=\"item\"></ng-container>\n </div>\n </ng-template>\n </ng-container>\n </tui-tabs>\n <tui-hosted-dropdown\n class=\"t-more_wrapper\"\n [class.t-overflown]=\"!isMoreVisible\"\n [content]=\"dropdownContent || dropdown\"\n [(open)]=\"open\"\n >\n <button\n tuiTab\n class=\"t-more\"\n [class._active]=\"isMoreActive\"\n [tuiFocusable]=\"isMoreFocusable\"\n (keydown.arrowLeft.prevent)=\"onArrowLeft()\"\n >\n <span\n polymorpheus-outlet\n [content]=\"moreContent || more\"\n ></span>\n </button>\n <ng-template #more>\n {{ moreWord$ | async }}\n <tui-svg\n src=\"tuiIconChevronDown\"\n class=\"t-icon\"\n [class.t-icon_rotated]=\"open\"\n ></tui-svg>\n </ng-template>\n </tui-hosted-dropdown>\n <ng-template #dropdown>\n <div\n #element\n class=\"t-dropdown\"\n (keydown.arrowUp.prevent)=\"onWrapperArrow($event, element, true)\"\n (keydown.arrowDown.prevent)=\"onWrapperArrow($event, element, false)\"\n >\n <div\n *ngFor=\"let item of items; let index = index\"\n (tui-tab-activate)=\"onClick(index)\"\n >\n <ng-container\n *ngIf=\"shouldShow(index)\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n </div>\n </div>\n </ng-template>\n <tui-underline\n *ngIf=\"underline\"\n [element]=\"activeElement\"\n ></tui-underline>\n</div>\n",
500
539
  changeDetection: ChangeDetectionStrategy.OnPush,
501
540
  providers: TABS_PROVIDERS,
502
541
  styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);height:var(--tui-height-l);box-sizing:border-box;color:var(--tui-text-02);box-shadow:inset 0 -1px var(--tui-base-03);overflow:hidden}.t-wrapper{position:relative;display:flex}.t-tabs{height:inherit;font-size:inherit;font-weight:inherit;overflow:visible;box-shadow:none;color:inherit}.t-overflown{display:flex;margin:0;width:0;max-width:0;overflow:hidden;visibility:hidden}.t-more_wrapper{height:100%}.t-more{margin:0}.t-icon{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;margin-right:-.25rem;vertical-align:bottom}.t-icon_rotated{transform:rotate(180deg)}.t-dropdown{padding:.5rem 0}.t-dropdown ::ng-deep [tuiTab]{width:100%;height:2.75rem;justify-content:flex-start;margin:0;padding:0 1rem;color:var(--tui-text-02)}.t-dropdown ::ng-deep [tuiTab]:before{display:none}.t-dropdown ::ng-deep [tuiTab]._active,.t-dropdown ::ng-deep [tuiTab]:focus,.t-dropdown ::ng-deep [tuiTab]:hover{box-shadow:none;color:var(--tui-base-08);background:var(--tui-base-02)}"]
503
542
  }),
504
- __param(0, Inject(TUI_TAB_MARGIN)),
505
- __param(1, Inject(TABS_REFRESH)),
506
- __param(2, Inject(ElementRef)),
507
- __param(3, Inject(ChangeDetectorRef)),
508
- __param(4, Inject(TUI_MORE_WORD))
543
+ __param(0, Inject(TUI_TABS_OPTIONS)),
544
+ __param(1, Inject(TUI_TAB_MARGIN)),
545
+ __param(2, Inject(TABS_REFRESH)),
546
+ __param(3, Inject(ElementRef)),
547
+ __param(4, Inject(ChangeDetectorRef)),
548
+ __param(5, Inject(TUI_MORE_WORD))
509
549
  ], TuiTabsWithMoreComponent);
510
550
  return TuiTabsWithMoreComponent;
511
551
  }());
@@ -628,5 +668,5 @@ var TuiTabsModule = /** @class */ (function () {
628
668
  * Generated bundle index. Do not edit.
629
669
  */
630
670
 
631
- export { MUTATION_CONFIG, OBSERVER_INIT, TABS_PROVIDERS, TABS_REFRESH, TUI_TAB_ACTIVATE, TUI_TAB_EVENT, TUI_TAB_PROVIDERS, TuiTabComponent, TuiTabDirective, TuiTabsComponent, TuiTabsModule, TuiTabsWithMoreComponent, TuiUnderlineComponent, tabActiveFactory, tabsRefreshFactory };
671
+ export { MUTATION_CONFIG, OBSERVER_INIT, TABS_PROVIDERS, TABS_REFRESH, TUI_TABS_DEFAULT_OPTIONS, TUI_TABS_OPTIONS, TUI_TAB_ACTIVATE, TUI_TAB_EVENT, TUI_TAB_PROVIDERS, TuiTabComponent, TuiTabDirective, TuiTabsComponent, TuiTabsModule, TuiTabsWithMoreComponent, TuiUnderlineComponent, tabActiveFactory, tabsRefreshFactory, tuiTabsOptionsProvider };
632
672
  //# sourceMappingURL=taiga-ui-kit-components-tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-tabs.js","sources":["ng://@taiga-ui/kit/components/tabs/tab.directive.ts","ng://@taiga-ui/kit/components/tabs/tab/tab.providers.ts","ng://@taiga-ui/kit/components/tabs/tab/tab.component.ts","ng://@taiga-ui/kit/components/tabs/tabs/tabs.component.ts","ng://@taiga-ui/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts","ng://@taiga-ui/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts","ng://@taiga-ui/kit/components/tabs/underline/underline.component.ts","ng://@taiga-ui/kit/components/tabs/tabs.module.ts","ng://@taiga-ui/kit/components/tabs/taiga-ui-kit-components-tabs.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef} from '@angular/core';\n\n@Directive({\n selector: `ng-template[tuiTab]`,\n})\nexport class TuiTabDirective {\n constructor(@Inject(TemplateRef) readonly template: TemplateRef<{}>) {}\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ElementRef, InjectionToken, Optional, Provider} from '@angular/core';\nimport {RouterLinkActive} from '@angular/router';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {\n tuiCustomEvent,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {EMPTY, identity, merge, Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\nexport const TUI_TAB_ACTIVATE = 'tui-tab-activate';\nexport const TUI_TAB_EVENT = new InjectionToken<Observable<Event>>(\n 'Stream of tab activation events',\n);\nexport const TUI_TAB_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n TuiRouterLinkActiveService,\n {\n provide: TUI_TAB_EVENT,\n deps: [\n ElementRef,\n DOCUMENT,\n TuiRouterLinkActiveService,\n [new Optional(), MutationObserverService],\n [new Optional(), RouterLinkActive],\n ],\n useFactory: tabActiveFactory,\n },\n MODE_PROVIDER,\n];\n\nexport function tabActiveFactory(\n {nativeElement}: ElementRef<HTMLElement>,\n documentRef: Document,\n routerLinkActiveService: Observable<boolean>,\n mutationObserverService: MutationObserverService | null,\n routerLinkActive: RouterLinkActive | null,\n): Observable<unknown> {\n const mutationObserver =\n routerLinkActive && mutationObserverService\n ? mutationObserverService.pipe(filter(() => routerLinkActive.isActive))\n : EMPTY;\n\n return merge(\n mutationObserver,\n routerLinkActiveService.pipe(filter(identity)),\n nativeElement.matches('button') ? typedFromEvent(nativeElement, 'click') : EMPTY,\n ).pipe(\n map(() =>\n nativeElement.dispatchEvent(\n tuiCustomEvent(TUI_TAB_ACTIVATE, {bubbles: true}, documentRef),\n ),\n ),\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n OnDestroy,\n Optional,\n} from '@angular/core';\nimport {RouterLinkActive} from '@angular/router';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n TuiFocusVisibleService,\n} from '@taiga-ui/cdk';\nimport {TUI_MODE, TuiBrightness} from '@taiga-ui/core';\nimport {TUI_MOBILE_AWARE, TUI_TAB_MARGIN} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TAB_EVENT, TUI_TAB_PROVIDERS} from './tab.providers';\n\n@Component({\n selector: `a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]`,\n templateUrl: './tab.template.html',\n styleUrls: ['./tab.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TAB_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[style.--tui-tab-margin.px]': 'margin',\n type: 'button',\n },\n})\nexport class TuiTabComponent implements OnDestroy {\n @HostBinding('class._ios')\n readonly isIos: boolean;\n\n @HostBinding('class._android')\n readonly isAndroid: boolean;\n\n @HostBinding('class._focus-visible')\n focusVisible = false;\n\n constructor(\n @Optional()\n @Inject(RouterLinkActive)\n private readonly routerLinkActive: RouterLinkActive | null,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TAB_EVENT) readonly event$: Observable<Event>,\n @Inject(TUI_TAB_MARGIN) readonly margin: number,\n @Inject(TUI_MOBILE_AWARE) mobileAware: boolean,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(TUI_IS_ANDROID) isAndroid: boolean,\n @Inject(TuiFocusVisibleService) focusVisible$: TuiFocusVisibleService,\n ) {\n this.isIos = mobileAware && isIos;\n this.isAndroid = mobileAware && isAndroid;\n\n focusVisible$.subscribe(visible => {\n this.focusVisible = visible;\n });\n }\n\n @HostBinding('class._active')\n get isActive(): boolean {\n return !!this.routerLinkActive && this.routerLinkActive.isActive;\n }\n\n ngOnDestroy() {\n if (isNativeFocused(this.elementRef.nativeElement)) {\n setNativeFocused(this.elementRef.nativeElement, false);\n }\n }\n}\n","import {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n QueryList,\n Renderer2,\n} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {\n EMPTY_QUERY,\n moveFocus,\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiDestroyService,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {TUI_MOBILE_AWARE} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {filter} from 'rxjs/operators';\n\nimport {TuiTabComponent} from '../tab/tab.component';\nimport {TUI_TAB_ACTIVATE} from '../tab/tab.providers';\n\nconst TAB_ACTIVE_CLASS = '_active';\n\n// TODO: remove in ivy compilation\nexport const OBSERVER_INIT = {\n childList: true,\n};\n\n// @dynamic\n@Component({\n selector: 'tui-tabs, nav[tuiTabs]',\n templateUrl: './tabs.template.html',\n styleUrls: ['./tabs.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TuiDestroyService,\n TuiResizeService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: OBSERVER_INIT,\n },\n ],\n})\nexport class TuiTabsComponent implements AfterViewChecked {\n @ContentChildren(forwardRef(() => TuiTabComponent))\n readonly children: QueryList<unknown> = EMPTY_QUERY;\n\n @Input()\n @HostBinding('class._underline')\n @tuiDefaultProp()\n underline = true;\n\n @Input('activeItemIndex')\n set activeItemIndexSetter(index: number) {\n this.activeItemIndex = index;\n this.scrollTo(this.tabs[index]);\n }\n\n @Output()\n readonly activeItemIndexChange = new EventEmitter<number>();\n\n @HostBinding('class._ios')\n readonly isIos: boolean;\n\n @HostBinding('class._android')\n readonly isAndroid: boolean;\n\n activeItemIndex = 0;\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiResizeService) resize$: Observable<void>,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(TUI_IS_ANDROID) isAndroid: boolean,\n @Inject(TUI_MOBILE_AWARE) mobileAware: boolean,\n ) {\n this.isIos = mobileAware && isIos;\n this.isAndroid = mobileAware && isAndroid;\n\n resize$.pipe(filter(() => this.underline)).subscribe(() => {\n changeDetectorRef.detectChanges();\n });\n }\n\n get tabs(): readonly HTMLElement[] {\n return Array.from(\n this.elementRef.nativeElement.querySelectorAll<HTMLElement>('[tuiTab]'),\n );\n }\n\n get activeElement(): HTMLElement | null {\n return this.tabs[this.activeItemIndex] || null;\n }\n\n @HostListener(`${TUI_TAB_ACTIVATE}.stop`, ['$event.target'])\n onActivate(element: HTMLElement) {\n const index = this.tabs.findIndex(tab => tab === element);\n\n if (index === this.activeItemIndex) {\n return;\n }\n\n this.activeItemIndexSetter = index;\n this.activeItemIndexChange.emit(index);\n }\n\n @HostListener('keydown.arrowRight.prevent', ['$event.target', '1'])\n @HostListener('keydown.arrowLeft.prevent', ['$event.target', '-1'])\n onKeyDownArrow(current: HTMLElement, step: number) {\n const {tabs} = this;\n\n moveFocus(tabs.indexOf(current), tabs, step);\n }\n\n ngAfterViewChecked() {\n const {tabs, activeElement} = this;\n\n tabs.forEach(nativeElement => {\n this.renderer.removeClass(nativeElement, TAB_ACTIVE_CLASS);\n this.renderer.setAttribute(nativeElement, 'tabIndex', '-1');\n });\n\n if (activeElement) {\n this.renderer.addClass(activeElement, TAB_ACTIVE_CLASS);\n this.renderer.setAttribute(activeElement, 'tabIndex', '0');\n }\n }\n\n private scrollTo(element?: HTMLElement) {\n if (!element) {\n return;\n }\n\n const {offsetLeft, offsetWidth} = element;\n const {nativeElement} = this.elementRef;\n\n if (offsetLeft < nativeElement.scrollLeft) {\n nativeElement.scrollLeft = offsetLeft;\n }\n\n if (\n offsetLeft + offsetWidth >\n nativeElement.scrollLeft + nativeElement.offsetWidth\n ) {\n nativeElement.scrollLeft =\n offsetLeft + offsetWidth - nativeElement.offsetWidth;\n }\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ChangeDetectorRef, ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {debounceTime, filter, startWith, takeUntil, tap} from 'rxjs/operators';\n\nexport function tabsRefreshFactory(\n resize$: Observable<unknown>,\n mutations$: Observable<unknown>,\n destroy$: Observable<unknown>,\n {body}: Document,\n {nativeElement}: ElementRef<Node>,\n changeDetectorRef: ChangeDetectorRef,\n): Observable<unknown> {\n return merge(\n resize$,\n mutations$.pipe(tap(() => changeDetectorRef.detectChanges())),\n ).pipe(\n // Ignoring cases when host is detached from DOM\n filter(() => body.contains(nativeElement)),\n debounceTime(0),\n startWith(null),\n takeUntil(destroy$),\n );\n}\n\n// TODO: remove in ivy compilation\nexport const MUTATION_CONFIG = {\n childList: true,\n subtree: true,\n};\nexport const TABS_REFRESH = new InjectionToken<Observable<unknown>>('Refresh stream');\nexport const TABS_PROVIDERS: Provider[] = [\n TuiResizeService,\n TuiDestroyService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: MUTATION_CONFIG,\n },\n {\n provide: TABS_REFRESH,\n deps: [\n TuiResizeService,\n MutationObserverService,\n TuiDestroyService,\n DOCUMENT,\n ElementRef,\n ChangeDetectorRef,\n ],\n useFactory: tabsRefreshFactory,\n },\n];\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n getClosestFocusable,\n isNativeFocused,\n setNativeFocused,\n toInt,\n TuiActiveZoneDirective,\n TuiContextWithImplicit,\n tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TUI_MORE_WORD, TUI_TAB_MARGIN} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\nimport {TuiTabDirective} from '../tab.directive';\nimport {TuiTabComponent} from '../tab/tab.component';\nimport {TABS_PROVIDERS, TABS_REFRESH} from './tabs-with-more.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-tabs-with-more, nav[tuiTabsWithMore]',\n templateUrl: './tabs-with-more.template.html',\n styleUrls: ['./tabs-with-more.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TABS_PROVIDERS,\n})\nexport class TuiTabsWithMoreComponent implements AfterViewInit {\n @ViewChild(TuiTabComponent, {read: ElementRef})\n private readonly moreButton?: ElementRef<HTMLButtonElement>;\n\n private maxIndex = Infinity;\n\n @Input()\n @tuiDefaultProp()\n moreContent: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n dropdownContent: PolymorpheusContent<TuiContextWithImplicit<TuiActiveZoneDirective>> =\n '';\n\n @Input()\n @HostBinding('class._underline')\n @tuiDefaultProp()\n underline = true;\n\n @Input()\n @tuiDefaultProp()\n activeItemIndex = 0;\n\n @Input()\n @tuiDefaultProp()\n itemsLimit = Infinity;\n\n @Output()\n readonly activeItemIndexChange = new EventEmitter<number>();\n\n @ContentChildren(TuiTabDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<{}>> = EMPTY_QUERY;\n\n open = false;\n\n constructor(\n @Inject(TUI_TAB_MARGIN) private readonly margin: number,\n @Inject(TABS_REFRESH) private readonly refresh$: Observable<unknown>,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_MORE_WORD) readonly moreWord$: Observable<string>,\n ) {}\n\n // TODO: Improve performance\n get tabs(): readonly HTMLElement[] {\n return Array.from<HTMLElement>(\n this.elementRef.nativeElement.querySelectorAll('[tuiTab]'),\n );\n }\n\n get activeElement(): HTMLElement | null {\n return this.tabs[this.activeItemIndex] || null;\n }\n\n get isMoreVisible(): boolean {\n return this.lastVisibleIndex < this.items.length - 1;\n }\n\n get isMoreFocusable(): boolean {\n return !!this.moreButton && isNativeFocused(this.moreButton.nativeElement);\n }\n\n get lastVisibleIndex(): number {\n if (this.itemsLimit + 1 >= this.items.length) {\n return this.maxIndex;\n }\n\n const offset = this.itemsLimit - 1 > this.activeItemIndex ? 1 : 2;\n\n return Math.min(this.itemsLimit - offset, this.maxIndex);\n }\n\n ngAfterViewInit() {\n this.refresh$\n .pipe(\n map(() => this.getMaxIndex()),\n filter(maxIndex => this.maxIndex !== maxIndex),\n )\n .subscribe(maxIndex => {\n this.maxIndex = maxIndex;\n this.changeDetectorRef.detectChanges();\n });\n }\n\n onActiveItemIndexChange(activeItemIndex: number) {\n this.updateActiveItemIndex(activeItemIndex);\n }\n\n onClick(index: number) {\n this.open = false;\n this.focusMore();\n this.updateActiveItemIndex(index);\n }\n\n onArrowRight(element: HTMLElement) {\n if (isNativeFocused(element)) {\n this.focusMore();\n }\n }\n\n onArrowLeft() {\n const {tabs} = this;\n let index = tabs.length - 2;\n\n while (index >= 0) {\n setNativeFocused(tabs[index]);\n\n if (isNativeFocused(tabs[index])) {\n return;\n }\n\n index--;\n }\n }\n\n onWrapperArrow(button: HTMLButtonElement, wrapper: HTMLElement, prev: boolean) {\n const target = getClosestFocusable(button, prev, wrapper);\n\n if (target) {\n setNativeFocused(target);\n }\n }\n\n private focusMore() {\n if (this.moreButton) {\n setNativeFocused(this.moreButton.nativeElement);\n }\n }\n\n private getMaxIndex(): number {\n const {tabs, activeItemIndex, margin} = this;\n\n if (tabs.length < 2) {\n return 0;\n }\n\n const {clientWidth} = this.elementRef.nativeElement;\n const activeWidth = tabs[activeItemIndex] ? tabs[activeItemIndex].scrollWidth : 0;\n const moreWidth = tabs[tabs.length - 1].scrollWidth;\n let maxIndex = tabs.length - 2;\n let total =\n tabs.reduce((acc, {scrollWidth}) => acc + scrollWidth, 0) +\n maxIndex * margin -\n moreWidth;\n\n if (total <= clientWidth) {\n return Infinity;\n }\n\n while (maxIndex) {\n total -= tabs[maxIndex].scrollWidth + margin;\n maxIndex--;\n\n const activeDisplaced = activeItemIndex > maxIndex;\n const activeOffset = activeDisplaced ? activeWidth + margin : 0;\n const currentWidth = total + activeOffset + moreWidth + margin;\n // Needed for different rounding of visible and hidden elements scrollWidth\n const safetyOffset = toInt(this.maxIndex === maxIndex - 1);\n\n if (currentWidth + safetyOffset < clientWidth) {\n return maxIndex;\n }\n }\n\n return 0;\n }\n\n private updateActiveItemIndex(activeItemIndex: number) {\n if (this.activeItemIndex === activeItemIndex) {\n return;\n }\n\n this.activeItemIndex = activeItemIndex;\n this.activeItemIndexChange.emit(activeItemIndex);\n this.maxIndex = this.getMaxIndex();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n NgZone,\n} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {px, TUI_IS_ANDROID, TUI_IS_IOS, tuiDefaultProp, tuiZonefree} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TUI_MODE, TuiBrightness} from '@taiga-ui/core';\nimport {TUI_MOBILE_AWARE} from '@taiga-ui/kit/tokens';\nimport {asCallable} from '@tinkoff/ng-event-plugins';\nimport {Observable, of, ReplaySubject} from 'rxjs';\nimport {debounceTime, map, mapTo, share, switchMap} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-underline',\n template: '',\n styleUrls: ['./underline.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiUnderlineComponent {\n private readonly element$ = new ReplaySubject<HTMLElement | null>(1);\n\n private readonly refresh$ = this.element$.pipe(\n switchMap(element =>\n element\n ? this.animationFrame$.pipe(mapTo(element), tuiZonefree(this.ngZone))\n : of(null),\n ),\n share(),\n );\n\n @Input()\n @tuiDefaultProp()\n set element(element: HTMLElement | null) {\n this.element$.next(element);\n }\n\n @HostBinding('class._ios')\n readonly isIos = this.mobileAware && this.ios;\n\n @HostBinding('class._android')\n readonly isAndroid = this.mobileAware && this.android;\n\n @HostListener('$.style.transitionProperty')\n readonly transition$ = asCallable(\n this.element$.pipe(\n map(element => element && 'all'),\n debounceTime(50),\n ),\n );\n\n @HostListener('$.style.transform')\n readonly transform$ = asCallable(\n this.refresh$.pipe(\n map(element =>\n element ? `translate3d(${px(element.offsetLeft)}, 0, 0)` : null,\n ),\n ),\n );\n\n @HostListener('$.style.width.px')\n readonly width$ = asCallable(\n this.refresh$.pipe(map(element => element?.clientWidth || 0)),\n );\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n @Inject(TUI_MOBILE_AWARE) private readonly mobileAware: boolean,\n @Inject(TUI_IS_IOS) private readonly ios: boolean,\n @Inject(TUI_IS_ANDROID) private readonly android: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n ) {\n nativeElement['$.style.transitionProperty'] = this.transition$;\n nativeElement['$.style.transform'] = this.transform$;\n nativeElement['$.style.width.px'] = this.width$;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusableModule} from '@taiga-ui/cdk';\nimport {TuiHostedDropdownModule, TuiSvgModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTabDirective} from './tab.directive';\nimport {TuiTabComponent} from './tab/tab.component';\nimport {TuiTabsComponent} from './tabs/tabs.component';\nimport {TuiTabsWithMoreComponent} from './tabs-with-more/tabs-with-more.component';\nimport {TuiUnderlineComponent} from './underline/underline.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiHostedDropdownModule,\n TuiSvgModule,\n TuiFocusableModule,\n PolymorpheusModule,\n ],\n declarations: [\n TuiTabsWithMoreComponent,\n TuiTabsComponent,\n TuiTabComponent,\n TuiUnderlineComponent,\n TuiTabDirective,\n ],\n exports: [\n TuiTabsWithMoreComponent,\n TuiTabsComponent,\n TuiTabComponent,\n TuiTabDirective,\n ],\n})\nexport class TuiTabsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;IAMI,yBAA0C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;;gBAAnB,WAAW,uBAAlD,MAAM,SAAC,WAAW;;IADtB,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAEe,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OADvB,eAAe,CAE3B;IAAD,sBAAC;CAFD;;ICSa,gBAAgB,GAAG,mBAAmB;IACtC,aAAa,GAAG,IAAI,cAAc,CAC3C,iCAAiC,EACnC;IACW,iBAAiB,GAAe;IACzC,iBAAiB;IACjB,sBAAsB;IACtB,0BAA0B;IAC1B;QACI,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE;YACF,UAAU;YACV,QAAQ;YACR,0BAA0B;YAC1B,CAAC,IAAI,QAAQ,EAAE,EAAE,uBAAuB,CAAC;YACzC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC;SACrC;QACD,UAAU,EAAE,gBAAgB;KAC/B;IACD,aAAa;EACf;SAEc,gBAAgB,CAC5B,EAAwC,EACxC,WAAqB,EACrB,uBAA4C,EAC5C,uBAAuD,EACvD,gBAAyC;QAJxC,gCAAa;IAMd,IAAM,gBAAgB,GAClB,gBAAgB,IAAI,uBAAuB;UACrC,uBAAuB,CAAC,IAAI,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AC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;AClCA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-tabs.js","sources":["ng://@taiga-ui/kit/components/tabs/tab.directive.ts","ng://@taiga-ui/kit/components/tabs/tab/tab.providers.ts","ng://@taiga-ui/kit/components/tabs/tab/tab.component.ts","ng://@taiga-ui/kit/components/tabs/tabs-options.ts","ng://@taiga-ui/kit/components/tabs/tabs/tabs.component.ts","ng://@taiga-ui/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts","ng://@taiga-ui/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts","ng://@taiga-ui/kit/components/tabs/underline/underline.component.ts","ng://@taiga-ui/kit/components/tabs/tabs.module.ts","ng://@taiga-ui/kit/components/tabs/taiga-ui-kit-components-tabs.ts"],"sourcesContent":["import {Directive, Inject, TemplateRef} from '@angular/core';\n\n@Directive({\n selector: `ng-template[tuiTab]`,\n})\nexport class TuiTabDirective {\n constructor(\n @Inject(TemplateRef) readonly template: TemplateRef<Record<string, unknown>>,\n ) {}\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ElementRef, InjectionToken, Optional, Provider} from '@angular/core';\nimport {RouterLinkActive} from '@angular/router';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {\n tuiCustomEvent,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {EMPTY, identity, merge, Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\nexport const TUI_TAB_ACTIVATE = 'tui-tab-activate';\nexport const TUI_TAB_EVENT = new InjectionToken<Observable<Event>>(\n 'Stream of tab activation events',\n);\nexport const TUI_TAB_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n TuiRouterLinkActiveService,\n {\n provide: TUI_TAB_EVENT,\n deps: [\n ElementRef,\n DOCUMENT,\n TuiRouterLinkActiveService,\n [new Optional(), MutationObserverService],\n [new Optional(), RouterLinkActive],\n ],\n useFactory: tabActiveFactory,\n },\n MODE_PROVIDER,\n];\n\nexport function tabActiveFactory(\n {nativeElement}: ElementRef<HTMLElement>,\n documentRef: Document,\n routerLinkActiveService: Observable<boolean>,\n mutationObserverService: MutationObserverService | null,\n routerLinkActive: RouterLinkActive | null,\n): Observable<unknown> {\n const mutationObserver =\n routerLinkActive && mutationObserverService\n ? mutationObserverService.pipe(filter(() => routerLinkActive.isActive))\n : EMPTY;\n\n return merge(\n mutationObserver,\n routerLinkActiveService.pipe(filter(identity)),\n nativeElement.matches('button') ? typedFromEvent(nativeElement, 'click') : EMPTY,\n ).pipe(\n map(() =>\n nativeElement.dispatchEvent(\n tuiCustomEvent(TUI_TAB_ACTIVATE, {bubbles: true}, documentRef),\n ),\n ),\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n OnDestroy,\n Optional,\n} from '@angular/core';\nimport {RouterLinkActive} from '@angular/router';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n TuiFocusVisibleService,\n} from '@taiga-ui/cdk';\nimport {TUI_MODE, TuiBrightness} from '@taiga-ui/core';\nimport {TUI_MOBILE_AWARE, TUI_TAB_MARGIN} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TAB_EVENT, TUI_TAB_PROVIDERS} from './tab.providers';\n\n@Component({\n selector: `a[tuiTab]:not([routerLink]), a[tuiTab][routerLink][routerLinkActive], button[tuiTab]`,\n templateUrl: './tab.template.html',\n styleUrls: ['./tab.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TAB_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[style.--tui-tab-margin.px]': 'margin',\n type: 'button',\n },\n})\nexport class TuiTabComponent implements OnDestroy {\n @HostBinding('class._ios')\n readonly isIos: boolean;\n\n @HostBinding('class._android')\n readonly isAndroid: boolean;\n\n @HostBinding('class._focus-visible')\n focusVisible = false;\n\n constructor(\n @Optional()\n @Inject(RouterLinkActive)\n private readonly routerLinkActive: RouterLinkActive | null,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TAB_EVENT) readonly event$: Observable<Event>,\n @Inject(TUI_TAB_MARGIN) readonly margin: number,\n @Inject(TUI_MOBILE_AWARE) mobileAware: boolean,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(TUI_IS_ANDROID) isAndroid: boolean,\n @Inject(TuiFocusVisibleService) focusVisible$: TuiFocusVisibleService,\n ) {\n this.isIos = mobileAware && isIos;\n this.isAndroid = mobileAware && isAndroid;\n\n focusVisible$.subscribe(visible => {\n this.focusVisible = visible;\n });\n }\n\n @HostBinding('class._active')\n get isActive(): boolean {\n return !!this.routerLinkActive && this.routerLinkActive.isActive;\n }\n\n ngOnDestroy(): void {\n if (isNativeFocused(this.elementRef.nativeElement)) {\n setNativeFocused(this.elementRef.nativeElement, false);\n }\n }\n}\n","import {InjectionToken, ValueProvider} from '@angular/core';\n\nexport interface TuiTabsOptions {\n readonly underline: boolean;\n readonly exposeActive: boolean;\n readonly itemsLimit: number;\n}\n\nexport const TUI_TABS_DEFAULT_OPTIONS: TuiTabsOptions = {\n underline: true,\n exposeActive: true,\n itemsLimit: Infinity,\n};\n\nexport const TUI_TABS_OPTIONS = new InjectionToken<TuiTabsOptions>(\n 'Default parameters for tabs component',\n {\n factory: () => TUI_TABS_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiTabsOptionsProvider: (\n options: Partial<TuiTabsOptions>,\n) => ValueProvider = (options: Partial<TuiTabsOptions>) => ({\n provide: TUI_TABS_OPTIONS,\n useValue: {...TUI_TABS_DEFAULT_OPTIONS, ...options},\n});\n","import {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n QueryList,\n Renderer2,\n} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {\n EMPTY_QUERY,\n moveFocus,\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiDestroyService,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {TUI_MOBILE_AWARE} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {filter} from 'rxjs/operators';\n\nimport {TuiTabComponent} from '../tab/tab.component';\nimport {TUI_TAB_ACTIVATE} from '../tab/tab.providers';\nimport {TUI_TABS_OPTIONS, TuiTabsOptions} from '../tabs-options';\n\nconst TAB_ACTIVE_CLASS = '_active';\n\n// TODO: remove in ivy compilation\nexport const OBSERVER_INIT = {\n childList: true,\n};\n\n// @dynamic\n@Component({\n selector: 'tui-tabs, nav[tuiTabs]',\n templateUrl: './tabs.template.html',\n styleUrls: ['./tabs.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TuiDestroyService,\n TuiResizeService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: OBSERVER_INIT,\n },\n ],\n})\nexport class TuiTabsComponent implements AfterViewChecked {\n @ContentChildren(forwardRef(() => TuiTabComponent))\n readonly children: QueryList<unknown> = EMPTY_QUERY;\n\n @Input()\n @HostBinding('class._underline')\n @tuiDefaultProp()\n underline = this.options.underline;\n\n @Input('activeItemIndex')\n set activeItemIndexSetter(index: number) {\n this.activeItemIndex = index;\n this.scrollTo(this.tabs[index]);\n }\n\n @Output()\n readonly activeItemIndexChange = new EventEmitter<number>();\n\n @HostBinding('class._ios')\n readonly isIos: boolean;\n\n @HostBinding('class._android')\n readonly isAndroid: boolean;\n\n activeItemIndex = 0;\n\n constructor(\n @Inject(TUI_TABS_OPTIONS) private readonly options: TuiTabsOptions,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiResizeService) resize$: Observable<void>,\n @Inject(TUI_IS_IOS) isIos: boolean,\n @Inject(TUI_IS_ANDROID) isAndroid: boolean,\n @Inject(TUI_MOBILE_AWARE) mobileAware: boolean,\n ) {\n this.isIos = mobileAware && isIos;\n this.isAndroid = mobileAware && isAndroid;\n\n resize$.pipe(filter(() => this.underline)).subscribe(() => {\n changeDetectorRef.detectChanges();\n });\n }\n\n get tabs(): readonly HTMLElement[] {\n return Array.from(\n this.elementRef.nativeElement.querySelectorAll<HTMLElement>('[tuiTab]'),\n );\n }\n\n get activeElement(): HTMLElement | null {\n return this.tabs[this.activeItemIndex] || null;\n }\n\n @HostListener(`${TUI_TAB_ACTIVATE}.stop`, ['$event.target'])\n onActivate(element: HTMLElement): void {\n const index = this.tabs.findIndex(tab => tab === element);\n\n if (index === this.activeItemIndex) {\n return;\n }\n\n this.activeItemIndexSetter = index;\n this.activeItemIndexChange.emit(index);\n }\n\n @HostListener('keydown.arrowRight.prevent', ['$event.target', '1'])\n @HostListener('keydown.arrowLeft.prevent', ['$event.target', '-1'])\n onKeyDownArrow(current: HTMLElement, step: number): void {\n const {tabs} = this;\n\n moveFocus(tabs.indexOf(current), tabs, step);\n }\n\n ngAfterViewChecked(): void {\n const {tabs, activeElement} = this;\n\n tabs.forEach(nativeElement => {\n this.renderer.removeClass(nativeElement, TAB_ACTIVE_CLASS);\n this.renderer.setAttribute(nativeElement, 'tabIndex', '-1');\n });\n\n if (activeElement) {\n this.renderer.addClass(activeElement, TAB_ACTIVE_CLASS);\n this.renderer.setAttribute(activeElement, 'tabIndex', '0');\n }\n }\n\n private scrollTo(element?: HTMLElement): void {\n if (!element) {\n return;\n }\n\n const {offsetLeft, offsetWidth} = element;\n const {nativeElement} = this.elementRef;\n\n if (offsetLeft < nativeElement.scrollLeft) {\n nativeElement.scrollLeft = offsetLeft;\n }\n\n if (\n offsetLeft + offsetWidth >\n nativeElement.scrollLeft + nativeElement.offsetWidth\n ) {\n nativeElement.scrollLeft =\n offsetLeft + offsetWidth - nativeElement.offsetWidth;\n }\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {ChangeDetectorRef, ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {\n MUTATION_OBSERVER_INIT,\n MutationObserverService,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {debounceTime, filter, startWith, takeUntil, tap} from 'rxjs/operators';\n\nexport function tabsRefreshFactory(\n resize$: Observable<unknown>,\n mutations$: Observable<unknown>,\n destroy$: Observable<unknown>,\n {body}: Document,\n {nativeElement}: ElementRef<Node>,\n changeDetectorRef: ChangeDetectorRef,\n): Observable<unknown> {\n return merge(\n resize$,\n mutations$.pipe(tap(() => changeDetectorRef.detectChanges())),\n ).pipe(\n // Ignoring cases when host is detached from DOM\n filter(() => body.contains(nativeElement)),\n debounceTime(0),\n startWith(null),\n takeUntil(destroy$),\n );\n}\n\n// TODO: remove in ivy compilation\nexport const MUTATION_CONFIG = {\n childList: true,\n subtree: true,\n};\nexport const TABS_REFRESH = new InjectionToken<Observable<unknown>>('Refresh stream');\nexport const TABS_PROVIDERS: Provider[] = [\n TuiResizeService,\n TuiDestroyService,\n MutationObserverService,\n {\n provide: MUTATION_OBSERVER_INIT,\n useValue: MUTATION_CONFIG,\n },\n {\n provide: TABS_REFRESH,\n deps: [\n TuiResizeService,\n MutationObserverService,\n TuiDestroyService,\n DOCUMENT,\n ElementRef,\n ChangeDetectorRef,\n ],\n useFactory: tabsRefreshFactory,\n },\n];\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n getClosestFocusable,\n isNativeFocused,\n setNativeFocused,\n toInt,\n TuiActiveZoneDirective,\n tuiAssertIsHTMLElement,\n TuiContextWithImplicit,\n tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TUI_MORE_WORD, TUI_TAB_MARGIN} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\nimport {TuiTabDirective} from '../tab.directive';\nimport {TuiTabComponent} from '../tab/tab.component';\nimport {TUI_TABS_OPTIONS, TuiTabsOptions} from '../tabs-options';\nimport {TABS_PROVIDERS, TABS_REFRESH} from './tabs-with-more.providers';\n\n// @dynamic\n@Component({\n selector: 'tui-tabs-with-more, nav[tuiTabsWithMore]',\n templateUrl: './tabs-with-more.template.html',\n styleUrls: ['./tabs-with-more.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TABS_PROVIDERS,\n})\nexport class TuiTabsWithMoreComponent implements AfterViewInit {\n @ViewChild(TuiTabComponent, {read: ElementRef})\n private readonly moreButton?: ElementRef<HTMLButtonElement>;\n\n private maxIndex = Infinity;\n\n @Input()\n @tuiDefaultProp()\n moreContent: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n dropdownContent: PolymorpheusContent<TuiContextWithImplicit<TuiActiveZoneDirective>> =\n '';\n\n @Input()\n @HostBinding('class._underline')\n @tuiDefaultProp()\n underline = this.options.underline;\n\n @Input()\n @tuiDefaultProp()\n activeItemIndex = 0;\n\n @Input()\n @tuiDefaultProp()\n itemsLimit = this.options.itemsLimit;\n\n @Output()\n readonly activeItemIndexChange = new EventEmitter<number>();\n\n @ContentChildren(TuiTabDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<Record<string, unknown>>> = EMPTY_QUERY;\n\n open = false;\n\n constructor(\n @Inject(TUI_TABS_OPTIONS) private readonly options: TuiTabsOptions,\n @Inject(TUI_TAB_MARGIN) private readonly margin: number,\n @Inject(TABS_REFRESH) private readonly refresh$: Observable<unknown>,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_MORE_WORD) readonly moreWord$: Observable<string>,\n ) {}\n\n // TODO: Improve performance\n get tabs(): readonly HTMLElement[] {\n return Array.from<HTMLElement>(\n this.elementRef.nativeElement.querySelectorAll('[tuiTab]'),\n );\n }\n\n get activeElement(): HTMLElement | null {\n return this.options.exposeActive || this.lastVisibleIndex >= this.activeItemIndex\n ? this.tabs[this.activeItemIndex] || null\n : this.moreButton?.nativeElement || null;\n }\n\n get isMoreVisible(): boolean {\n return this.lastVisibleIndex < this.items.length - 1;\n }\n\n get isMoreFocusable(): boolean {\n return !!this.moreButton && isNativeFocused(this.moreButton.nativeElement);\n }\n\n get isMoreActive(): boolean {\n return (\n this.open ||\n (!this.options.exposeActive && this.lastVisibleIndex < this.activeItemIndex)\n );\n }\n\n get lastVisibleIndex(): number {\n if (this.itemsLimit + 1 >= this.items.length) {\n return this.maxIndex;\n }\n\n const offset =\n this.itemsLimit - 1 > this.activeItemIndex || !this.options.exposeActive\n ? 1\n : 2;\n\n return Math.min(this.itemsLimit - offset, this.maxIndex);\n }\n\n ngAfterViewInit(): void {\n this.refresh$\n .pipe(\n map(() => this.getMaxIndex()),\n filter(maxIndex => this.maxIndex !== maxIndex),\n )\n .subscribe(maxIndex => {\n this.maxIndex = maxIndex;\n this.changeDetectorRef.detectChanges();\n });\n }\n\n onActiveItemIndexChange(activeItemIndex: number): void {\n this.updateActiveItemIndex(activeItemIndex);\n }\n\n onClick(index: number): void {\n this.open = false;\n this.focusMore();\n this.updateActiveItemIndex(index);\n }\n\n onArrowRight(event: Event): void {\n tuiAssertIsHTMLElement(event.target);\n\n if (isNativeFocused(event.target)) {\n this.focusMore();\n }\n }\n\n onArrowLeft(): void {\n const {tabs} = this;\n let index = tabs.length - 2;\n\n while (index >= 0) {\n setNativeFocused(tabs[index]);\n\n if (isNativeFocused(tabs[index])) {\n return;\n }\n\n index--;\n }\n }\n\n onWrapperArrow(event: Event, wrapper: HTMLElement, prev: boolean): void {\n const button: HTMLButtonElement = event.target as HTMLButtonElement;\n const target = getClosestFocusable(button, prev, wrapper);\n\n if (target) {\n setNativeFocused(target);\n }\n }\n\n isOverflown(index: number): boolean {\n return index !== this.activeItemIndex || !this.options.exposeActive;\n }\n\n shouldShow(index: number): boolean {\n return index > this.lastVisibleIndex && this.isOverflown(index);\n }\n\n private focusMore(): void {\n if (this.moreButton) {\n setNativeFocused(this.moreButton.nativeElement);\n }\n }\n\n private getMaxIndex(): number {\n const {tabs, activeItemIndex, margin} = this;\n\n if (tabs.length < 2) {\n return 0;\n }\n\n const {clientWidth} = this.elementRef.nativeElement;\n const activeWidth = tabs[activeItemIndex] ? tabs[activeItemIndex].scrollWidth : 0;\n const moreWidth = tabs[tabs.length - 1].scrollWidth;\n let maxIndex = tabs.length - 2;\n let total =\n tabs.reduce((acc, {scrollWidth}) => acc + scrollWidth, 0) +\n maxIndex * margin -\n moreWidth;\n\n if (total <= clientWidth) {\n return Infinity;\n }\n\n while (maxIndex) {\n total -= tabs[maxIndex].scrollWidth + margin;\n maxIndex--;\n\n const activeDisplaced =\n this.options.exposeActive && activeItemIndex > maxIndex;\n const activeOffset = activeDisplaced ? activeWidth + margin : 0;\n const currentWidth = total + activeOffset + moreWidth + margin;\n // Needed for different rounding of visible and hidden elements scrollWidth\n const safetyOffset = toInt(this.maxIndex === maxIndex - 1);\n\n if (currentWidth + safetyOffset < clientWidth) {\n return maxIndex;\n }\n }\n\n return 0;\n }\n\n private updateActiveItemIndex(activeItemIndex: number): void {\n if (this.activeItemIndex === activeItemIndex) {\n return;\n }\n\n this.activeItemIndex = activeItemIndex;\n this.activeItemIndexChange.emit(activeItemIndex);\n this.maxIndex = this.getMaxIndex();\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n NgZone,\n} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {px, TUI_IS_ANDROID, TUI_IS_IOS, tuiDefaultProp, tuiZonefree} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TUI_MODE, TuiBrightness} from '@taiga-ui/core';\nimport {TUI_MOBILE_AWARE} from '@taiga-ui/kit/tokens';\nimport {asCallable} from '@tinkoff/ng-event-plugins';\nimport {Observable, of, ReplaySubject} from 'rxjs';\nimport {debounceTime, map, mapTo, share, switchMap} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-underline',\n template: '',\n styleUrls: ['./underline.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiUnderlineComponent {\n private readonly element$ = new ReplaySubject<HTMLElement | null>(1);\n\n private readonly refresh$ = this.element$.pipe(\n switchMap(element =>\n element\n ? this.animationFrame$.pipe(mapTo(element), tuiZonefree(this.ngZone))\n : of(null),\n ),\n share(),\n );\n\n @Input()\n @tuiDefaultProp()\n set element(element: HTMLElement | null) {\n this.element$.next(element);\n }\n\n @HostBinding('class._ios')\n readonly isIos = this.mobileAware && this.ios;\n\n @HostBinding('class._android')\n readonly isAndroid = this.mobileAware && this.android;\n\n @HostListener('$.style.transitionProperty')\n readonly transition$ = asCallable(\n this.element$.pipe(\n map(element => element && 'all'),\n debounceTime(50),\n ),\n );\n\n @HostListener('$.style.transform')\n readonly transform$ = asCallable(\n this.refresh$.pipe(\n map(element =>\n element ? `translate3d(${px(element.offsetLeft)}, 0, 0)` : null,\n ),\n ),\n );\n\n @HostListener('$.style.width.px')\n readonly width$ = asCallable(\n this.refresh$.pipe(map(element => element?.clientWidth || 0)),\n );\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n @Inject(TUI_MOBILE_AWARE) private readonly mobileAware: boolean,\n @Inject(TUI_IS_IOS) private readonly ios: boolean,\n @Inject(TUI_IS_ANDROID) private readonly android: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n ) {\n nativeElement['$.style.transitionProperty'] = this.transition$;\n nativeElement['$.style.transform'] = this.transform$;\n nativeElement['$.style.width.px'] = this.width$;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusableModule} from '@taiga-ui/cdk';\nimport {TuiHostedDropdownModule, TuiSvgModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTabDirective} from './tab.directive';\nimport {TuiTabComponent} from './tab/tab.component';\nimport {TuiTabsComponent} from './tabs/tabs.component';\nimport {TuiTabsWithMoreComponent} from './tabs-with-more/tabs-with-more.component';\nimport {TuiUnderlineComponent} from './underline/underline.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiHostedDropdownModule,\n TuiSvgModule,\n TuiFocusableModule,\n PolymorpheusModule,\n ],\n declarations: [\n TuiTabsWithMoreComponent,\n TuiTabsComponent,\n TuiTabComponent,\n TuiUnderlineComponent,\n TuiTabDirective,\n ],\n exports: [\n TuiTabsWithMoreComponent,\n TuiTabsComponent,\n TuiTabComponent,\n TuiTabDirective,\n ],\n})\nexport class TuiTabsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;IAMI,yBACkC,QAA8C;QAA9C,aAAQ,GAAR,QAAQ,CAAsC;KAC5E;;gBADwC,WAAW,uBAAlD,MAAM,SAAC,WAAW;;IAFd,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAGO,WAAA,MAAM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;YAEZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE,CAAC,aAAa,CAAC;YAC1B,IAAI,EAAE;gBACF,oBAAoB,EAAE,OAAO;aAChC;;SACJ,CAAC;QAgDO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;QACd,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;QACvB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;OArDZ,qBAAqB,CA2DjC;IAAD,4BAAC;CA3DD;;;ICMA;KAA6B;IAAhB,aAAa;QAtBzB,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,uBAAuB;gBACvB,YAAY;gBACZ,kBAAkB;gBAClB,kBAAkB;aACrB;YACD,YAAY,EAAE;gBACV,wBAAwB;gBACxB,gBAAgB;gBAChB,eAAe;gBACf,qBAAqB;gBACrB,eAAe;aAClB;YACD,OAAO,EAAE;gBACL,wBAAwB;gBACxB,gBAAgB;gBAChB,eAAe;gBACf,eAAe;aAClB;SACJ,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;AClCA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-tag.js","sources":["ng://@taiga-ui/kit/components/tag/tag-options.ts","ng://@taiga-ui/kit/components/tag/tag.component.ts","ng://@taiga-ui/kit/components/tag/tag.module.ts","ng://@taiga-ui/kit/components/tag/taiga-ui-kit-components-tag.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {TuiStatusT} from '@taiga-ui/kit/types';\n\nexport interface TuiTagOptions {\n readonly size: TuiSizeS | TuiSizeL;\n readonly status: TuiStatusT;\n readonly autoColor: boolean;\n}\n\n/** Default values for the tag options. */\nexport const TUI_TAG_DEFAULT_OPTIONS: TuiTagOptions = {\n size: 'm',\n status: 'default',\n autoColor: false,\n};\n\nexport const TUI_TAG_OPTIONS = new InjectionToken<TuiTagOptions>(\n 'Default parameters for tag component',\n {\n factory: () => TUI_TAG_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiTagOptionsProvider: (options: Partial<TuiTagOptions>) => ValueProvider = (\n options: Partial<TuiTagOptions>,\n) => ({\n provide: TUI_TAG_OPTIONS,\n useValue: {...TUI_TAG_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n ViewChild,\n} from '@angular/core';\nimport {setNativeFocused, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n sizeBigger,\n TUI_MODE,\n TuiBrightness,\n TuiSizeL,\n TuiSizeS,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {TuiStatusT} from '@taiga-ui/kit/types';\nimport {stringHashToHsl} from '@taiga-ui/kit/utils/format';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TAG_OPTIONS, TuiTagOptions} from './tag-options';\n\nexport const ALLOWED_SPACE_REGEXP = new RegExp(`,|[\\\\s]`);\n\n@Component({\n selector: 'tui-tag, a[tuiTag]',\n templateUrl: './tag.template.html',\n styleUrls: ['./tag.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiTagComponent {\n // TODO: Possibly implement standard focus mechanisms and outline\n @Input()\n @tuiDefaultProp()\n value = '';\n\n @Input()\n @tuiDefaultProp()\n editable = false;\n\n // TODO: Remove in 3.0\n @Input()\n @tuiDefaultProp()\n allowSpaces = true;\n\n @Input()\n @tuiDefaultProp()\n separator: string | RegExp = ',';\n\n @Input()\n @tuiDefaultProp()\n maxLength: number | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-status')\n @tuiDefaultProp()\n status: TuiStatusT = this.options.status;\n\n @Input()\n @HostBinding('class._hoverable')\n @tuiDefaultProp()\n hoverable = false;\n\n @Input()\n @tuiDefaultProp()\n removable = false;\n\n @Input()\n @HostBinding('class._disabled')\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n @HostBinding('class._autocolor')\n @tuiDefaultProp()\n autoColor: boolean = this.options.autoColor;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiDefaultProp()\n leftContent: PolymorpheusContent | null = null;\n\n @Output()\n readonly edited = new EventEmitter<string>();\n\n @HostBinding('class._editing')\n editing = false;\n\n editedText: string | null = null;\n\n @ViewChild('input', {read: ElementRef})\n set input(input: ElementRef<HTMLInputElement>) {\n if (input) {\n setNativeFocused(input.nativeElement);\n }\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TAG_OPTIONS) private readonly options: TuiTagOptions,\n ) {}\n\n get backgroundColor(): string | null {\n return this.autoColor ? stringHashToHsl(this.value) : null;\n }\n\n get canRemove(): boolean {\n return this.removable && !this.disabled && !this.showLoader;\n }\n\n get displayText(): string {\n return this.editedText === null ? this.value : this.editedText;\n }\n\n get loaderSize(): TuiSizeXS {\n return sizeBigger(this.size) ? 's' : 'xs';\n }\n\n @HostBinding('class._has-icon')\n get hasIcon(): boolean {\n return this.showLoader || this.removable;\n }\n\n @HostListener('keydown.enter', ['$event'])\n edit(event: Event) {\n if (!this.canEdit) {\n return;\n }\n\n event.preventDefault();\n this.editing = true;\n this.editedText = this.value;\n }\n\n @HostListener('keydown.delete', ['$event'])\n @HostListener('keydown.backspace', ['$event'])\n remove(event: Event) {\n if (!this.canRemove) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n this.edited.emit('');\n }\n\n onInput(value: string) {\n const newTags = this.allowSpaces\n ? value.split(this.separator)\n : value.split(ALLOWED_SPACE_REGEXP);\n\n if (newTags.length > 1) {\n this.save(String(newTags));\n\n return;\n }\n\n this.editedText = value;\n }\n\n onKeyDown(event: KeyboardEvent) {\n event.stopPropagation();\n\n switch (event.key.toLowerCase()) {\n case 'enter':\n event.preventDefault();\n this.save(this.editedText || '');\n break;\n case 'escape':\n case 'esc':\n event.preventDefault();\n this.stopEditing();\n setNativeFocused(this.elementRef.nativeElement);\n break;\n default:\n break;\n }\n }\n\n onBlur() {\n if (this.editedText !== null) {\n this.save(this.editedText);\n }\n }\n\n private get canEdit(): boolean {\n return this.editable && !this.disabled && !this.showLoader;\n }\n\n private stopEditing() {\n this.editing = false;\n this.editedText = null;\n }\n\n private save(value: string) {\n this.stopEditing();\n this.edited.emit(value.trim());\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {TuiLoaderModule, TuiSvgModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTagComponent} from './tag.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiPreventDefaultModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiTagComponent],\n exports: [TuiTagComponent],\n})\nexport class TuiTagModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAUA;IACa,uBAAuB,GAAkB;IAClD,IAAI,EAAE,GAAG;IACT,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,KA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AC,CAAC;iDAS7C;IA5HQ,eAAe;QAV3B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;YAC9B,6kCAAkC;YAElC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE,CAAC,aAAa,CAAC;YAC1B,IAAI,EAAE;gBACF,oBAAoB,EAAE,OAAO;aAChC;;SACJ,CAAC;QA8EO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OA/EnB,eAAe,CAkL3B;IAAD,sBAAC;CAlLD;;;ICpBA;KAA4B;IAAf,YAAY;QAZxB,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,uBAAuB;gBACvB,YAAY;gBACZ,eAAe;gBACf,kBAAkB;aACrB;YACD,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACrBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-tag.js","sources":["ng://@taiga-ui/kit/components/tag/tag-options.ts","ng://@taiga-ui/kit/components/tag/tag.component.ts","ng://@taiga-ui/kit/components/tag/tag.module.ts","ng://@taiga-ui/kit/components/tag/taiga-ui-kit-components-tag.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {TuiStatusT} from '@taiga-ui/kit/types';\n\nexport interface TuiTagOptions {\n readonly size: TuiSizeS | TuiSizeL;\n readonly status: TuiStatusT;\n readonly autoColor: boolean;\n}\n\n/** Default values for the tag options. */\nexport const TUI_TAG_DEFAULT_OPTIONS: TuiTagOptions = {\n size: 'm',\n status: 'default',\n autoColor: false,\n};\n\nexport const TUI_TAG_OPTIONS = new InjectionToken<TuiTagOptions>(\n 'Default parameters for tag component',\n {\n factory: () => TUI_TAG_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiTagOptionsProvider: (options: Partial<TuiTagOptions>) => ValueProvider = (\n options: Partial<TuiTagOptions>,\n) => ({\n provide: TUI_TAG_OPTIONS,\n useValue: {...TUI_TAG_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n ViewChild,\n} from '@angular/core';\nimport {setNativeFocused, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n sizeBigger,\n TUI_MODE,\n TuiBrightness,\n TuiSizeL,\n TuiSizeS,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {TuiStatusT} from '@taiga-ui/kit/types';\nimport {stringHashToHsl} from '@taiga-ui/kit/utils/format';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TAG_OPTIONS, TuiTagOptions} from './tag-options';\n\nexport const ALLOWED_SPACE_REGEXP = new RegExp(`,|[\\\\s]`);\n\n@Component({\n selector: 'tui-tag, a[tuiTag]',\n templateUrl: './tag.template.html',\n styleUrls: ['./tag.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiTagComponent {\n // TODO: Possibly implement standard focus mechanisms and outline\n @Input()\n @tuiDefaultProp()\n value = '';\n\n @Input()\n @tuiDefaultProp()\n editable = false;\n\n // TODO: Remove in 3.0\n @Input()\n @tuiDefaultProp()\n allowSpaces = true;\n\n @Input()\n @tuiDefaultProp()\n separator: string | RegExp = ',';\n\n @Input()\n @tuiDefaultProp()\n maxLength: number | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-status')\n @tuiDefaultProp()\n status: TuiStatusT = this.options.status;\n\n @Input()\n @HostBinding('class._hoverable')\n @tuiDefaultProp()\n hoverable = false;\n\n @Input()\n @tuiDefaultProp()\n removable = false;\n\n @Input()\n @HostBinding('class._disabled')\n @tuiDefaultProp()\n disabled = false;\n\n @Input()\n @HostBinding('class._autocolor')\n @tuiDefaultProp()\n autoColor: boolean = this.options.autoColor;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiDefaultProp()\n leftContent: PolymorpheusContent | null = null;\n\n @Output()\n readonly edited = new EventEmitter<string>();\n\n @HostBinding('class._editing')\n editing = false;\n\n editedText: string | null = null;\n\n @ViewChild('input', {read: ElementRef})\n set input(input: ElementRef<HTMLInputElement>) {\n if (input) {\n setNativeFocused(input.nativeElement);\n }\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TAG_OPTIONS) private readonly options: TuiTagOptions,\n ) {}\n\n get backgroundColor(): string | null {\n return this.autoColor ? stringHashToHsl(this.value) : null;\n }\n\n get canRemove(): boolean {\n return this.removable && !this.disabled && !this.showLoader;\n }\n\n get displayText(): string {\n return this.editedText === null ? this.value : this.editedText;\n }\n\n get loaderSize(): TuiSizeXS {\n return sizeBigger(this.size) ? 's' : 'xs';\n }\n\n @HostBinding('class._has-icon')\n get hasIcon(): boolean {\n return this.showLoader || this.removable;\n }\n\n @HostListener('keydown.enter', ['$event'])\n edit(event: Event): void {\n if (!this.canEdit) {\n return;\n }\n\n event.preventDefault();\n this.editing = true;\n this.editedText = this.value;\n }\n\n @HostListener('keydown.delete', ['$event'])\n @HostListener('keydown.backspace', ['$event'])\n remove(event: Event): void {\n if (!this.canRemove) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n this.edited.emit('');\n }\n\n onInput(value: string): void {\n const newTags = this.allowSpaces\n ? value.split(this.separator)\n : value.split(ALLOWED_SPACE_REGEXP);\n\n if (newTags.length > 1) {\n this.save(String(newTags));\n\n return;\n }\n\n this.editedText = value;\n }\n\n onKeyDown(event: KeyboardEvent): void {\n event.stopPropagation();\n\n switch (event.key.toLowerCase()) {\n case 'enter':\n event.preventDefault();\n this.save(this.editedText || '');\n break;\n case 'escape':\n case 'esc':\n event.preventDefault();\n this.stopEditing();\n setNativeFocused(this.elementRef.nativeElement);\n break;\n default:\n break;\n }\n }\n\n onBlur(): void {\n if (this.editedText !== null) {\n this.save(this.editedText);\n }\n }\n\n private get canEdit(): boolean {\n return this.editable && !this.disabled && !this.showLoader;\n }\n\n private stopEditing(): void {\n this.editing = false;\n this.editedText = null;\n }\n\n private save(value: string): void {\n this.stopEditing();\n this.edited.emit(value.trim());\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {TuiLoaderModule, TuiSvgModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTagComponent} from './tag.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiPreventDefaultModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiTagComponent],\n exports: [TuiTagComponent],\n})\nexport class TuiTagModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAUA;IACa,uBAAuB,GAAkB;IAClD,IAAI,EAAE,GAAG;IACT,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,KAAK;EAClB;IAEW,eAAe,GAAG,IAAI,cAAc,CAC7C,sCAAsC,EACtC;IACI,OAAO,EAAE,cAAM,OAAA,uBAAuB,GAAA;CACzC,EACH;IAEW,qBAAqB,GAAuD,UACrF,OAA+B,IAC9B,QAAC;IACF,OA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YAC1B,IAAI,EAAE;gBACF,oBAAoB,EAAE,OAAO;aAChC;;SACJ,CAAC;QA8EO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;OA/EnB,eAAe,CAkL3B;IAAD,sBAAC;CAlLD;;;ICpBA;KAA4B;IAAf,YAAY;QAZxB,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,uBAAuB;gBACvB,YAAY;gBACZ,eAAe;gBACf,kBAAkB;aACrB;YACD,YAAY,EAAE,CAAC,eAAe,CAAC;YAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;SAC7B,CAAC;OACW,YAAY,CAAG;IAAD,mBAAC;CAA5B;;ACrBA;;;;;;"}
@@ -228,14 +228,14 @@ var TuiTextAreaComponent = /** @class */ (function (_super) {
228
228
  TuiTextAreaComponent = __decorate([
229
229
  Component({
230
230
  selector: 'tui-text-area',
231
- template: "<tui-wrapper\n automation-id=\"tui-text-area__wrapper\"\n class=\"t-outline\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [readOnly]=\"readOnly\"\n [invalid]=\"computedInvalid\"\n>\n <div\n *ngIf=\"hasCounter\"\n automation-id=\"tui-text-area__counter\"\n class=\"t-counter\"\n >\n {{ value.length }}/{{ controller.maxLength }}\n </div>\n\n <label\n class=\"t-content\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-text-area__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n <tui-scrollbar\n automation-id=\"tui-text-area__scrollbar\"\n class=\"t-box\"\n [style.maxHeight.px]=\"computeMaxHeight\"\n >\n <div class=\"t-input-wrapper\">\n <div class=\"t-relative\">\n <div\n aria-hidden=\"true\"\n class=\"t-pseudo-content\"\n >\n <span\n [textContent]=\"fittedContent || controller.exampleText\"\n ></span>\n <span\n class=\"t-pseudo-content__extra\"\n [textContent]=\"extraContent\"\n ></span>\n &nbsp;\n </div>\n <textarea\n #focusableElement\n automation-id=\"tui-text-area__native\"\n class=\"t-input\"\n [placeholder]=\"controller.exampleText\"\n [id]=\"id\"\n [tuiDescribedBy]=\"id\"\n [tuiFocusable]=\"computedFocusable\"\n [disabled]=\"computedDisabled\"\n [ngModel]=\"value\"\n [readOnly]=\"readOnly\"\n (ngModelChange)=\"onValueChange($event)\"\n ></textarea>\n <ng-content select=\"textarea\"></ng-content>\n </div>\n </div>\n </tui-scrollbar>\n </div>\n <div class=\"t-icons\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"t-cleaner\"\n (click.stop)=\"onValueChange('')\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n class=\"t-tooltip\"\n [describeId]=\"id\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n </div>\n </label>\n</tui-wrapper>\n",
231
+ template: "<tui-wrapper\n automation-id=\"tui-text-area__wrapper\"\n class=\"t-outline\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [readOnly]=\"readOnly\"\n [invalid]=\"computedInvalid\"\n>\n <div\n *ngIf=\"hasCounter\"\n automation-id=\"tui-text-area__counter\"\n class=\"t-counter\"\n >\n {{ value.length }}/{{ controller.maxLength }}\n </div>\n\n <label\n class=\"t-content\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-text-area__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n <tui-scrollbar\n automation-id=\"tui-text-area__scrollbar\"\n class=\"t-box\"\n [style.maxHeight.px]=\"computeMaxHeight\"\n >\n <div class=\"t-input-wrapper\">\n <div class=\"t-relative\">\n <div\n aria-hidden=\"true\"\n class=\"t-pseudo-content\"\n >\n <span\n [textContent]=\"fittedContent || controller.exampleText\"\n ></span>\n <span\n class=\"t-pseudo-content__extra\"\n [textContent]=\"extraContent\"\n ></span>\n &nbsp;\n </div>\n <textarea\n #focusableElement\n automation-id=\"tui-text-area__native\"\n class=\"t-input\"\n [placeholder]=\"controller.exampleText\"\n [id]=\"id\"\n [tuiDescribedBy]=\"id\"\n [tuiFocusable]=\"computedFocusable\"\n [disabled]=\"computedDisabled\"\n [ngModel]=\"value\"\n [readOnly]=\"readOnly\"\n (ngModelChange)=\"onValueChange($event)\"\n ></textarea>\n <ng-content select=\"textarea\"></ng-content>\n </div>\n </div>\n </tui-scrollbar>\n </div>\n <div class=\"t-icons\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"t-cleaner\"\n (click.stop)=\"onValueChange('')\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-text-area__tooltip\"\n class=\"t-tooltip\"\n [describeId]=\"id\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content || ''\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n </div>\n </label>\n</tui-wrapper>\n",
232
232
  changeDetection: ChangeDetectionStrategy.OnPush,
233
233
  providers: TUI_TEXT_AREA_PROVIDERS,
234
234
  host: {
235
235
  '($.data-mode.attr)': 'mode$',
236
236
  '[class._ios]': 'isIOS',
237
237
  },
238
- styles: [":host{position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);flex-direction:column;min-height:6.75rem;border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-size='m']._has-counter{min-height:6.625rem}:host[data-size='l']._has-counter{min-height:7.875rem}.t-outline{min-height:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-height:inherit;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .t-content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .t-content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}.t-wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-size='m']._label-outside .t-wrapper{padding-top:.75rem}:host[data-size='l']._label-outside .t-wrapper{padding-top:1rem}:host[data-size='m']:not(._label-outside) .t-wrapper{padding-top:1.375rem}:host[data-size='l']:not(._label-outside) .t-wrapper{padding-top:1.625rem}.t-input-wrapper{min-height:inherit;width:100%;flex:1}.t-relative{position:relative;min-height:inherit}.t-box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .t-box{height:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}:host[data-size='m'] .t-pseudo-content{padding:0 .75rem}:host[data-size='l'] .t-pseudo-content{padding:0 1rem}.t-pseudo-content__extra{background-color:var(--tui-error-bg-night)}.t-input{padding:0;margin:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:0;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input:not(:last-child){display:none}.t-input::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}:host._focused .t-input:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-input:not(:read-only)::placeholder{opacity:1}:host[data-size='m'] .t-input{padding:0 .75rem}:host[data-size='l'] .t-input{padding:0 1rem}:host._ios .t-input{padding-left:.8125rem}:host[data-mode=onDark]._disabled .t-input{color:var(--tui-text-03-night)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;position:absolute;left:0;max-width:100%;padding:0 1rem;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);box-sizing:border-box}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='m'] .t-placeholder{top:.75rem;padding:0 .75rem}:host[data-size='l'] .t-placeholder{top:1rem}:host._label-outside .t-placeholder{overflow:initial;height:auto;white-space:initial}.t-icons{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:flex-end;pointer-events:none;padding:1rem .75rem}:host[data-size='m'] .t-icons{padding:.75rem}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform;pointer-events:auto}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-tooltip{pointer-events:auto}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:right;color:var(--tui-text-03)}:host[data-mode=onDark] .t-counter{color:var(--tui-text-03-night)}"]
238
+ styles: [":host{position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);flex-direction:column;min-height:6.75rem;border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-size='m']._has-counter{min-height:6.625rem}:host[data-size='l']._has-counter{min-height:7.875rem}.t-outline{min-height:inherit}.t-content{display:block;margin-top:0;margin-bottom:0;min-height:inherit;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .t-content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .t-content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .t-content{bottom:1.6875rem}.t-wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-size='m']._label-outside .t-wrapper{padding-top:.75rem}:host[data-size='l']._label-outside .t-wrapper{padding-top:1rem}:host[data-size='m']:not(._label-outside) .t-wrapper{padding-top:1.375rem}:host[data-size='l']:not(._label-outside) .t-wrapper{padding-top:1.625rem}:host-context(table)[data-size='m']._label-outside .t-wrapper{padding-bottom:.75rem}:host-context(table)[data-size='l']._label-outside .t-wrapper{padding-bottom:1rem}.t-input-wrapper{min-height:inherit;width:100%;flex:1}.t-relative{position:relative;min-height:inherit}.t-box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .t-box{height:100%}:host._has-counter._expandable .t-box{margin-bottom:1.25rem}.t-pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}:host[data-size='m'] .t-pseudo-content{padding:0 .75rem}:host[data-size='l'] .t-pseudo-content{padding:0 1rem}.t-pseudo-content__extra{background-color:var(--tui-error-bg-night)}.t-input{padding:0;margin:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;resize:none;overflow:hidden;outline:0;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0)}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input:not(:last-of-type){display:none}.t-input::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-input::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-input::placeholder{color:var(--tui-text-03-night)}:host._focused .t-input:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-input:not(:read-only)::placeholder{opacity:1}:host[data-size='m'] .t-input{padding:0 .75rem}:host[data-size='l'] .t-input{padding:0 1rem}:host._ios .t-input{padding-left:.8125rem}:host[data-mode=onDark]._disabled .t-input{color:var(--tui-text-03-night)}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0);position:absolute;left:0;max-width:100%;padding:0 1rem;border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);box-sizing:border-box}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{will-change:unset;transition-property:transform,color,letter-spacing}}:host[data-size='m'] .t-placeholder{top:.75rem;padding:0 .75rem}:host[data-size='l'] .t-placeholder{top:1rem}:host._label-outside .t-placeholder{overflow:initial;height:auto;white-space:initial}.t-icons{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:flex-end;pointer-events:none;padding:1rem .75rem}:host[data-size='m'] .t-icons{padding:.75rem}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform;pointer-events:auto}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-tooltip{pointer-events:auto}.t-counter{position:absolute;right:.75rem;bottom:.5rem;font:var(--tui-font-text-s);pointer-events:none;margin-top:auto;text-align:right;color:var(--tui-text-03)}:host[data-mode=onDark] .t-counter{color:var(--tui-text-03-night)}"]
239
239
  }),
240
240
  __param(0, Optional()),
241
241
  __param(0, Self()),