@taiga-ui/kit 2.26.0 → 2.29.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 (739) hide show
  1. package/README.md +4 -5
  2. package/abstract/input-slider.d.ts +5 -5
  3. package/abstract/slider/slider.d.ts +5 -5
  4. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.js +10 -10
  6. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
  8. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.js +23 -7
  10. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +2 -2
  12. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-action.umd.js +3 -3
  14. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  16. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +7 -7
  18. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +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 +189 -243
  24. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +2 -2
  26. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +3 -3
  28. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  30. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +3 -3
  32. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  34. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
  36. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  38. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-combo-box.umd.js +18 -19
  40. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  42. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +7 -7
  44. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
  46. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-field-error.umd.js +20 -8
  48. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +2 -2
  50. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-filter.umd.js +8 -8
  52. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  54. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -4
  56. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  58. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-count.umd.js +3 -3
  60. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  62. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +26 -18
  64. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
  66. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +40 -22
  68. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  70. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-date.umd.js +26 -18
  72. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
  74. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -1
  76. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  78. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input-inline.umd.js +7 -6
  80. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  82. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -3
  84. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  86. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -3
  88. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  90. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-input-number.umd.js +20 -34
  92. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  94. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-password.umd.js +3 -3
  96. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  98. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +30 -28
  100. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  102. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-phone.umd.js +6 -6
  104. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  106. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-input-slider.umd.js +3 -3
  108. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  110. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-input-tag.umd.js +31 -31
  112. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  114. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input-time.umd.js +16 -16
  116. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  118. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
  120. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  122. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  123. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +7 -7
  124. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  126. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +1 -1
  128. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  130. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-multi-select.umd.js +18 -18
  132. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  134. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  135. package/bundles/taiga-ui-kit-components-pagination.umd.js +4 -4
  136. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  137. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  138. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  139. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +13 -21
  140. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  141. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +2 -2
  142. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-kit-components-progress.umd.js +3 -3
  144. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-progress.umd.min.js +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  147. package/bundles/taiga-ui-kit-components-radio-block.umd.js +3 -3
  148. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +3 -3
  154. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-list.umd.js +7 -7
  158. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  160. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  161. package/bundles/taiga-ui-kit-components-radio.umd.js +3 -3
  162. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  163. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  164. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-select.umd.js +11 -14
  166. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  167. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  168. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-stepper.umd.js +18 -18
  170. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  172. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-tabs.umd.js +22 -22
  174. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  176. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-text-area.umd.js +4 -4
  178. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
  180. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-toggle.umd.js +3 -3
  182. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-tree.umd.js +5 -5
  186. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-constants.umd.js +8 -0
  190. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  192. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +2 -4
  193. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  194. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +1 -1
  195. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  196. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +1 -1
  197. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  198. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  199. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  200. package/bundles/taiga-ui-kit-directives-highlight.umd.js +2 -2
  201. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js +1 -1
  203. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +7 -1
  205. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  207. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  208. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  209. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  210. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +2 -2
  211. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  212. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
  213. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  214. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  215. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  216. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  217. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  218. package/bundles/taiga-ui-kit-utils-mask.umd.js +42 -11
  219. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +2 -2
  221. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  222. package/components/accordion/accordion-item/accordion-item-eager-content.directive.d.ts +2 -0
  223. package/components/accordion/accordion-item/accordion-item.component.d.ts +4 -2
  224. package/components/accordion/index.d.ts +1 -0
  225. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  226. package/components/action/action.component.d.ts +1 -1
  227. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  228. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  229. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  230. package/components/calendar-range/calendar-range.component.d.ts +1 -1
  231. package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
  232. package/components/carousel/carousel-autoscroll.directive.d.ts +5 -0
  233. package/components/carousel/carousel-scroll.directive.d.ts +6 -0
  234. package/components/carousel/carousel.component.d.ts +22 -11
  235. package/components/carousel/carousel.directive.d.ts +3 -10
  236. package/components/carousel/index.d.ts +2 -2
  237. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  238. package/components/checkbox/checkbox.component.d.ts +1 -1
  239. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  240. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  241. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  242. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -1
  243. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  244. package/components/combo-box/combo-box.component.d.ts +5 -5
  245. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  246. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
  247. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  248. package/components/field-error/field-error.component.d.ts +3 -2
  249. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  250. package/components/filter/filter.component.d.ts +2 -2
  251. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  252. package/components/input/input.component.d.ts +3 -3
  253. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  254. package/components/input-copy/input-copy.component.d.ts +2 -2
  255. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  256. package/components/input-count/input-count.component.d.ts +2 -2
  257. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  258. package/components/input-date/input-date.component.d.ts +6 -5
  259. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  260. package/components/input-date-range/input-date-range.component.d.ts +5 -4
  261. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  262. package/components/input-date-time/input-date-time.component.d.ts +6 -5
  263. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  264. package/components/input-file/input-file.component.d.ts +1 -1
  265. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  266. package/components/input-inline/input-inline.component.d.ts +1 -1
  267. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  268. package/components/input-month/input-month.component.d.ts +1 -1
  269. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  270. package/components/input-month-range/input-month-range.component.d.ts +1 -1
  271. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  272. package/components/input-number/input-number.component.d.ts +3 -4
  273. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  274. package/components/input-password/input-password.component.d.ts +2 -2
  275. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  276. package/components/input-phone/input-phone.component.d.ts +3 -3
  277. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  278. package/components/input-phone-international/country-iso-code.d.ts +1 -1
  279. package/components/input-phone-international/input-phone-international.component.d.ts +6 -6
  280. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  281. package/components/input-slider/input-slider.component.d.ts +1 -1
  282. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  283. package/components/input-tag/input-tag.component.d.ts +12 -12
  284. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  285. package/components/input-time/input-time.component.d.ts +4 -4
  286. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  287. package/components/line-clamp/line-clamp.component.d.ts +4 -4
  288. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  289. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  290. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  291. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  292. package/components/multi-select/multi-select.component.d.ts +7 -7
  293. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  294. package/components/pagination/pagination.component.d.ts +1 -1
  295. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  296. package/components/pdf-viewer/pdf-viewer.component.d.ts +1 -4
  297. package/components/pdf-viewer/pdf-viewer.service.d.ts +7 -2
  298. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -1
  299. package/components/progress/progress-circle/progress-circle.component.d.ts +1 -1
  300. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  301. package/components/radio/radio.component.d.ts +1 -1
  302. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  303. package/components/radio-block/radio-block.component.d.ts +1 -1
  304. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  305. package/components/radio-group/radio-group.component.d.ts +1 -1
  306. package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
  307. package/components/radio-labeled/radio-labeled.component.d.ts +1 -1
  308. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  309. package/components/radio-list/radio-list.component.d.ts +3 -3
  310. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  311. package/components/select/select.component.d.ts +3 -3
  312. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  313. package/components/stepper/stepper.component.d.ts +3 -3
  314. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  315. package/components/tabs/tabs/tabs.component.d.ts +2 -2
  316. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +2 -2
  317. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  318. package/components/tabs/underline/underline.component.d.ts +2 -2
  319. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  320. package/components/text-area/text-area.component.d.ts +1 -1
  321. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  322. package/components/toggle/toggle.component.d.ts +1 -1
  323. package/components/tree/components/tree/tree.component.d.ts +1 -1
  324. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  325. package/components/tree/directives/tree-item-controller.directive.d.ts +1 -1
  326. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  327. package/constants/masks.d.ts +8 -0
  328. package/constants/taiga-ui-kit-constants.metadata.json +1 -1
  329. package/directives/dropdown-context/dropdown-context.directive.d.ts +1 -1
  330. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  331. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +3 -3
  332. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  333. package/directives/highlight/highlight.directive.d.ts +2 -2
  334. package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
  335. package/directives/lazy-loading/lazy-loading.directive.d.ts +1 -1
  336. package/directives/lazy-loading/lazy-loading.service.d.ts +1 -1
  337. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  338. package/directives/present/present.directive.d.ts +1 -1
  339. package/directives/present/taiga-ui-kit-directives-present.metadata.json +1 -1
  340. package/esm2015/abstract/input-slider.js +3 -3
  341. package/esm2015/abstract/slider/slider.js +9 -9
  342. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  343. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +11 -0
  344. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +10 -6
  345. package/esm2015/components/accordion/accordion.module.js +4 -1
  346. package/esm2015/components/accordion/index.js +2 -1
  347. package/esm2015/components/action/action.component.js +4 -4
  348. package/esm2015/components/calendar-month/calendar-month.component.js +6 -6
  349. package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
  350. package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
  351. package/esm2015/components/carousel/carousel-scroll.directive.js +26 -0
  352. package/esm2015/components/carousel/carousel.component.js +90 -33
  353. package/esm2015/components/carousel/carousel.directive.js +10 -40
  354. package/esm2015/components/carousel/carousel.module.js +13 -9
  355. package/esm2015/components/carousel/index.js +3 -3
  356. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  357. package/esm2015/components/checkbox-block/checkbox-block.component.js +4 -4
  358. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  359. package/esm2015/components/combo-box/combo-box.component.js +19 -20
  360. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  361. package/esm2015/components/field-error/field-error.component.js +15 -6
  362. package/esm2015/components/filter/filter.component.js +9 -9
  363. package/esm2015/components/input/input.component.js +8 -8
  364. package/esm2015/components/input-copy/input-copy.component.js +5 -5
  365. package/esm2015/components/input-count/input-count.component.js +4 -4
  366. package/esm2015/components/input-date/input-date.component.js +30 -22
  367. package/esm2015/components/input-date-range/input-date-range.component.js +30 -22
  368. package/esm2015/components/input-date-time/input-date-time.component.js +45 -25
  369. package/esm2015/components/input-file/input-file.component.js +2 -2
  370. package/esm2015/components/input-inline/input-inline.component.js +8 -7
  371. package/esm2015/components/input-month/input-month.component.js +5 -4
  372. package/esm2015/components/input-month-range/input-month-range.component.js +5 -4
  373. package/esm2015/components/input-number/input-number.component.js +21 -31
  374. package/esm2015/components/input-password/input-password.component.js +4 -4
  375. package/esm2015/components/input-phone/input-phone.component.js +7 -7
  376. package/esm2015/components/input-phone-international/const/countries.js +8 -6
  377. package/esm2015/components/input-phone-international/country-iso-code.js +2 -2
  378. package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -20
  379. package/esm2015/components/input-slider/input-slider.component.js +4 -4
  380. package/esm2015/components/input-tag/input-tag.component.js +32 -32
  381. package/esm2015/components/input-time/input-time.component.js +17 -17
  382. package/esm2015/components/line-clamp/line-clamp.component.js +8 -8
  383. package/esm2015/components/marker-icon/marker-icon.component.js +2 -2
  384. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  385. package/esm2015/components/multi-select/multi-select.component.js +15 -15
  386. package/esm2015/components/pagination/pagination.component.js +5 -5
  387. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -20
  388. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +4 -1
  389. package/esm2015/components/progress/pipes/abstract-color-segments.js +1 -1
  390. package/esm2015/components/progress/progress-circle/progress-circle.component.js +4 -4
  391. package/esm2015/components/radio/radio.component.js +4 -4
  392. package/esm2015/components/radio-block/radio-block.component.js +4 -4
  393. package/esm2015/components/radio-group/radio-group.component.js +1 -1
  394. package/esm2015/components/radio-labeled/radio-labeled.component.js +4 -4
  395. package/esm2015/components/radio-list/radio-list.component.js +8 -8
  396. package/esm2015/components/select/select.component.js +12 -15
  397. package/esm2015/components/stepper/stepper.component.js +18 -18
  398. package/esm2015/components/tabs/tabs/tabs.component.js +16 -16
  399. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  400. package/esm2015/components/tabs/underline/underline.component.js +3 -3
  401. package/esm2015/components/text-area/text-area.component.js +5 -5
  402. package/esm2015/components/toggle/toggle.component.js +4 -4
  403. package/esm2015/components/tree/components/tree/tree.component.js +4 -4
  404. package/esm2015/components/tree/components/tree-item/tree-item.component.js +2 -2
  405. package/esm2015/components/tree/directives/tree-item-controller.directive.js +2 -2
  406. package/esm2015/constants/masks.js +9 -1
  407. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +3 -5
  408. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  409. package/esm2015/directives/highlight/highlight.directive.js +3 -3
  410. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +4 -2
  411. package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
  412. package/esm2015/directives/present/present.directive.js +1 -1
  413. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  414. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  415. package/esm2015/tokens/validation-errors.js +1 -1
  416. package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +6 -4
  417. package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +9 -6
  418. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -5
  419. package/esm2015/utils/mask/create-date-mask.js +16 -0
  420. package/esm2015/utils/mask/create-date-range-mask.js +14 -0
  421. package/esm2015/utils/mask/index.js +3 -1
  422. package/esm5/abstract/input-slider.js +3 -3
  423. package/esm5/abstract/slider/slider.js +9 -9
  424. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  425. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +14 -0
  426. package/esm5/components/accordion/accordion-item/accordion-item.component.js +10 -6
  427. package/esm5/components/accordion/accordion.module.js +4 -1
  428. package/esm5/components/accordion/index.js +2 -1
  429. package/esm5/components/action/action.component.js +4 -4
  430. package/esm5/components/calendar-month/calendar-month.component.js +8 -8
  431. package/esm5/components/calendar-range/calendar-range.component.js +1 -1
  432. package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
  433. package/esm5/components/carousel/carousel-scroll.directive.js +34 -0
  434. package/esm5/components/carousel/carousel.component.js +102 -34
  435. package/esm5/components/carousel/carousel.directive.js +13 -50
  436. package/esm5/components/carousel/carousel.module.js +13 -9
  437. package/esm5/components/carousel/index.js +3 -3
  438. package/esm5/components/checkbox/checkbox.component.js +4 -4
  439. package/esm5/components/checkbox-block/checkbox-block.component.js +4 -4
  440. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  441. package/esm5/components/combo-box/combo-box.component.js +19 -20
  442. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  443. package/esm5/components/field-error/field-error.component.js +19 -6
  444. package/esm5/components/filter/filter.component.js +9 -9
  445. package/esm5/components/input/input.component.js +8 -8
  446. package/esm5/components/input-copy/input-copy.component.js +5 -5
  447. package/esm5/components/input-count/input-count.component.js +4 -4
  448. package/esm5/components/input-date/input-date.component.js +30 -22
  449. package/esm5/components/input-date-range/input-date-range.component.js +30 -22
  450. package/esm5/components/input-date-time/input-date-time.component.js +44 -26
  451. package/esm5/components/input-file/input-file.component.js +2 -2
  452. package/esm5/components/input-inline/input-inline.component.js +8 -7
  453. package/esm5/components/input-month/input-month.component.js +5 -4
  454. package/esm5/components/input-month-range/input-month-range.component.js +5 -4
  455. package/esm5/components/input-number/input-number.component.js +21 -35
  456. package/esm5/components/input-password/input-password.component.js +4 -4
  457. package/esm5/components/input-phone/input-phone.component.js +7 -7
  458. package/esm5/components/input-phone-international/const/countries.js +8 -6
  459. package/esm5/components/input-phone-international/country-iso-code.js +2 -2
  460. package/esm5/components/input-phone-international/input-phone-international.component.js +23 -23
  461. package/esm5/components/input-slider/input-slider.component.js +4 -4
  462. package/esm5/components/input-tag/input-tag.component.js +32 -32
  463. package/esm5/components/input-time/input-time.component.js +17 -17
  464. package/esm5/components/line-clamp/line-clamp.component.js +8 -8
  465. package/esm5/components/marker-icon/marker-icon.component.js +2 -2
  466. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  467. package/esm5/components/multi-select/multi-select.component.js +15 -15
  468. package/esm5/components/pagination/pagination.component.js +5 -5
  469. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -20
  470. package/esm5/components/pdf-viewer/pdf-viewer.service.js +5 -1
  471. package/esm5/components/progress/pipes/abstract-color-segments.js +1 -1
  472. package/esm5/components/progress/progress-circle/progress-circle.component.js +4 -4
  473. package/esm5/components/radio/radio.component.js +4 -4
  474. package/esm5/components/radio-block/radio-block.component.js +4 -4
  475. package/esm5/components/radio-group/radio-group.component.js +1 -1
  476. package/esm5/components/radio-labeled/radio-labeled.component.js +4 -4
  477. package/esm5/components/radio-list/radio-list.component.js +8 -8
  478. package/esm5/components/select/select.component.js +12 -15
  479. package/esm5/components/stepper/stepper.component.js +19 -19
  480. package/esm5/components/tabs/tabs/tabs.component.js +17 -17
  481. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  482. package/esm5/components/tabs/underline/underline.component.js +3 -3
  483. package/esm5/components/text-area/text-area.component.js +5 -5
  484. package/esm5/components/toggle/toggle.component.js +4 -4
  485. package/esm5/components/tree/components/tree/tree.component.js +4 -4
  486. package/esm5/components/tree/components/tree-item/tree-item.component.js +2 -2
  487. package/esm5/components/tree/directives/tree-item-controller.directive.js +2 -2
  488. package/esm5/constants/masks.js +9 -1
  489. package/esm5/directives/dropdown-context/dropdown-context.directive.js +3 -5
  490. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  491. package/esm5/directives/highlight/highlight.directive.js +3 -3
  492. package/esm5/directives/lazy-loading/lazy-loading.directive.js +8 -2
  493. package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
  494. package/esm5/directives/present/present.directive.js +1 -1
  495. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
  496. package/esm5/pipes/stringify/stringify.pipe.js +1 -1
  497. package/esm5/tokens/validation-errors.js +1 -1
  498. package/esm5/utils/mask/create-auto-corrected-date-pipe.js +6 -4
  499. package/esm5/utils/mask/create-auto-corrected-date-range-pipe.js +9 -6
  500. package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +5 -5
  501. package/esm5/utils/mask/create-date-mask.js +17 -0
  502. package/esm5/utils/mask/create-date-range-mask.js +13 -0
  503. package/esm5/utils/mask/index.js +3 -1
  504. package/fesm2015/taiga-ui-kit-abstract.js +10 -10
  505. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  506. package/fesm2015/taiga-ui-kit-components-accordion.js +21 -9
  507. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  508. package/fesm2015/taiga-ui-kit-components-action.js +4 -4
  509. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  510. package/fesm2015/taiga-ui-kit-components-calendar-month.js +5 -5
  511. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  512. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  513. package/fesm2015/taiga-ui-kit-components-carousel.js +158 -214
  514. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  515. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +4 -4
  516. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  517. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  518. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  519. package/fesm2015/taiga-ui-kit-components-checkbox.js +4 -4
  520. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  521. package/fesm2015/taiga-ui-kit-components-combo-box.js +20 -21
  522. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  523. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  524. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  525. package/fesm2015/taiga-ui-kit-components-field-error.js +14 -5
  526. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  527. package/fesm2015/taiga-ui-kit-components-filter.js +9 -9
  528. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  529. package/fesm2015/taiga-ui-kit-components-input-copy.js +5 -5
  530. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  531. package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
  532. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  533. package/fesm2015/taiga-ui-kit-components-input-date-range.js +30 -22
  534. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  535. package/fesm2015/taiga-ui-kit-components-input-date-time.js +45 -25
  536. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  537. package/fesm2015/taiga-ui-kit-components-input-date.js +30 -22
  538. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  539. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -1
  540. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  541. package/fesm2015/taiga-ui-kit-components-input-inline.js +8 -7
  542. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  543. package/fesm2015/taiga-ui-kit-components-input-month-range.js +5 -4
  544. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  545. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -4
  546. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  547. package/fesm2015/taiga-ui-kit-components-input-number.js +21 -31
  548. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  549. package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
  550. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  551. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +28 -26
  552. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  553. package/fesm2015/taiga-ui-kit-components-input-phone.js +8 -8
  554. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  555. package/fesm2015/taiga-ui-kit-components-input-slider.js +4 -4
  556. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  557. package/fesm2015/taiga-ui-kit-components-input-tag.js +34 -34
  558. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  559. package/fesm2015/taiga-ui-kit-components-input-time.js +17 -17
  560. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  561. package/fesm2015/taiga-ui-kit-components-input.js +9 -9
  562. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  563. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
  564. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  565. package/fesm2015/taiga-ui-kit-components-marker-icon.js +1 -1
  566. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  567. package/fesm2015/taiga-ui-kit-components-multi-select.js +20 -20
  568. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  569. package/fesm2015/taiga-ui-kit-components-pagination.js +6 -6
  570. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  571. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +9 -19
  572. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  573. package/fesm2015/taiga-ui-kit-components-progress.js +3 -3
  574. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  575. package/fesm2015/taiga-ui-kit-components-radio-block.js +4 -4
  576. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  577. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  578. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +4 -4
  579. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  580. package/fesm2015/taiga-ui-kit-components-radio-list.js +9 -9
  581. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  582. package/fesm2015/taiga-ui-kit-components-radio.js +4 -4
  583. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  584. package/fesm2015/taiga-ui-kit-components-select.js +13 -16
  585. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  586. package/fesm2015/taiga-ui-kit-components-stepper.js +18 -18
  587. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  588. package/fesm2015/taiga-ui-kit-components-tabs.js +22 -22
  589. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  590. package/fesm2015/taiga-ui-kit-components-text-area.js +5 -5
  591. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  592. package/fesm2015/taiga-ui-kit-components-toggle.js +4 -4
  593. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-components-tree.js +5 -5
  595. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  596. package/fesm2015/taiga-ui-kit-constants.js +8 -0
  597. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  598. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +2 -4
  599. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  600. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  601. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  602. package/fesm2015/taiga-ui-kit-directives-highlight.js +2 -2
  603. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  604. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +3 -1
  605. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  606. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  607. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  608. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  609. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  610. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  611. package/fesm2015/taiga-ui-kit-utils-mask.js +44 -13
  612. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  613. package/fesm5/taiga-ui-kit-abstract.js +10 -10
  614. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  615. package/fesm5/taiga-ui-kit-components-accordion.js +24 -9
  616. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  617. package/fesm5/taiga-ui-kit-components-action.js +4 -4
  618. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  619. package/fesm5/taiga-ui-kit-components-calendar-month.js +7 -7
  620. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  621. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  622. package/fesm5/taiga-ui-kit-components-carousel.js +190 -245
  623. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  624. package/fesm5/taiga-ui-kit-components-checkbox-block.js +4 -4
  625. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  626. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  627. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  628. package/fesm5/taiga-ui-kit-components-checkbox.js +4 -4
  629. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  630. package/fesm5/taiga-ui-kit-components-combo-box.js +20 -21
  631. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  632. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  633. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  634. package/fesm5/taiga-ui-kit-components-field-error.js +18 -5
  635. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  636. package/fesm5/taiga-ui-kit-components-filter.js +9 -9
  637. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  638. package/fesm5/taiga-ui-kit-components-input-copy.js +5 -5
  639. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  640. package/fesm5/taiga-ui-kit-components-input-count.js +4 -4
  641. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  642. package/fesm5/taiga-ui-kit-components-input-date-range.js +30 -22
  643. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  644. package/fesm5/taiga-ui-kit-components-input-date-time.js +44 -26
  645. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  646. package/fesm5/taiga-ui-kit-components-input-date.js +30 -22
  647. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  648. package/fesm5/taiga-ui-kit-components-input-file.js +1 -1
  649. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  650. package/fesm5/taiga-ui-kit-components-input-inline.js +8 -7
  651. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  652. package/fesm5/taiga-ui-kit-components-input-month-range.js +5 -4
  653. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  654. package/fesm5/taiga-ui-kit-components-input-month.js +5 -4
  655. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  656. package/fesm5/taiga-ui-kit-components-input-number.js +21 -35
  657. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  658. package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
  659. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  660. package/fesm5/taiga-ui-kit-components-input-phone-international.js +31 -29
  661. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  662. package/fesm5/taiga-ui-kit-components-input-phone.js +8 -8
  663. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  664. package/fesm5/taiga-ui-kit-components-input-slider.js +4 -4
  665. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  666. package/fesm5/taiga-ui-kit-components-input-tag.js +34 -34
  667. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  668. package/fesm5/taiga-ui-kit-components-input-time.js +17 -17
  669. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  670. package/fesm5/taiga-ui-kit-components-input.js +9 -9
  671. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  672. package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
  673. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  674. package/fesm5/taiga-ui-kit-components-marker-icon.js +1 -1
  675. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  676. package/fesm5/taiga-ui-kit-components-multi-select.js +20 -20
  677. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  678. package/fesm5/taiga-ui-kit-components-pagination.js +6 -6
  679. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  680. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -19
  681. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  682. package/fesm5/taiga-ui-kit-components-progress.js +3 -3
  683. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  684. package/fesm5/taiga-ui-kit-components-radio-block.js +4 -4
  685. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  686. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  687. package/fesm5/taiga-ui-kit-components-radio-labeled.js +4 -4
  688. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  689. package/fesm5/taiga-ui-kit-components-radio-list.js +9 -9
  690. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  691. package/fesm5/taiga-ui-kit-components-radio.js +4 -4
  692. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  693. package/fesm5/taiga-ui-kit-components-select.js +13 -16
  694. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  695. package/fesm5/taiga-ui-kit-components-stepper.js +19 -19
  696. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  697. package/fesm5/taiga-ui-kit-components-tabs.js +23 -23
  698. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  699. package/fesm5/taiga-ui-kit-components-text-area.js +5 -5
  700. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  701. package/fesm5/taiga-ui-kit-components-toggle.js +4 -4
  702. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  703. package/fesm5/taiga-ui-kit-components-tree.js +5 -5
  704. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  705. package/fesm5/taiga-ui-kit-constants.js +8 -0
  706. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  707. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +2 -4
  708. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  709. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  710. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  711. package/fesm5/taiga-ui-kit-directives-highlight.js +2 -2
  712. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  713. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +7 -1
  714. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  715. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  716. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +2 -2
  717. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  718. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  719. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  720. package/fesm5/taiga-ui-kit-utils-mask.js +42 -13
  721. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  722. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
  723. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  724. package/package.json +6 -6
  725. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  726. package/tokens/validation-errors.d.ts +2 -1
  727. package/utils/mask/create-auto-corrected-date-pipe.d.ts +7 -3
  728. package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +7 -2
  729. package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +8 -3
  730. package/utils/mask/create-date-mask.d.ts +3 -0
  731. package/utils/mask/create-date-range-mask.d.ts +3 -0
  732. package/utils/mask/index.d.ts +2 -0
  733. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  734. package/components/carousel/carousel-draggable.directive.d.ts +0 -16
  735. package/components/carousel/carousel-scroller.directive.d.ts +0 -17
  736. package/esm2015/components/carousel/carousel-draggable.directive.js +0 -67
  737. package/esm2015/components/carousel/carousel-scroller.directive.js +0 -76
  738. package/esm5/components/carousel/carousel-draggable.directive.js +0 -73
  739. package/esm5/components/carousel/carousel-scroller.directive.js +0 -82
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-stepper.js","sources":["ng://@taiga-ui/kit/components/stepper/stepper.component.ts","ng://@taiga-ui/kit/components/stepper/step/step.component.ts","ng://@taiga-ui/kit/components/stepper/stepper.module.ts","ng://@taiga-ui/kit/components/stepper/taiga-ui-kit-components-stepper.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Input,\n Output,\n QueryList,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n getOriginalArrayFromQueryList,\n itemsQueryListObservable,\n moveFocus,\n tuiDefaultProp,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiOrientationT} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {delay} from 'rxjs/operators';\n\nimport {TuiStepComponent} from './step/step.component';\n\n@Component({\n selector: 'tui-stepper, nav[tuiStepper]',\n templateUrl: './stepper.template.html',\n styleUrls: ['./stepper.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiStepperComponent {\n @Input()\n @HostBinding('attr.data-orientation')\n @tuiDefaultProp()\n orientation: TuiOrientationT = 'horizontal';\n\n @Input()\n @tuiDefaultProp()\n activeItemIndex = 0;\n\n @Output()\n readonly activeItemIndexChange = new EventEmitter<number>();\n\n @ContentChildren(forwardRef(() => TuiStepComponent), {read: ElementRef})\n private readonly steps: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n @tuiPure\n get changes$(): Observable<unknown> {\n // Delay is required to trigger change detection after steps are rendered\n // so they can update their \"active\" status\n return itemsQueryListObservable(this.steps).pipe(delay(0));\n }\n\n indexOf(step: HTMLElement): number {\n return getOriginalArrayFromQueryList(this.steps).findIndex(\n ({nativeElement}) => nativeElement === step,\n );\n }\n\n isActive(index: number): boolean {\n return index === this.activeItemIndex;\n }\n\n activate(index: number) {\n if (this.activeItemIndex === index) {\n return;\n }\n\n this.activeItemIndex = index;\n this.activeItemIndexChange.emit(index);\n }\n\n @HostListener('keydown.arrowRight', ['$event', '1'])\n @HostListener('keydown.arrowLeft', ['$event', '-1'])\n onHorizontal(event: Event, step: number) {\n if (this.orientation !== 'horizontal' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n @HostListener('keydown.arrowDown', ['$event', '1'])\n @HostListener('keydown.arrowUp', ['$event', '-1'])\n onVertical(event: Event, step: number) {\n if (this.orientation !== 'vertical' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n private moveFocus(current: EventTarget, step: number) {\n const steps = getOriginalArrayFromQueryList(this.steps).map(\n ({nativeElement}) => nativeElement,\n );\n\n moveFocus(steps.indexOf(current as HTMLElement), steps, step);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {\n identity,\n tuiDefaultProp,\n TuiDestroyService,\n TuiFocusVisibleService,\n} from '@taiga-ui/cdk';\nimport {TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {filter} from 'rxjs/operators';\n\nimport {TuiStepperComponent} from '../stepper.component';\n\n@Component({\n selector:\n 'button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]',\n templateUrl: './step.template.html',\n styleUrls: ['./step.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, TuiRouterLinkActiveService, TuiFocusVisibleService],\n host: {\n type: 'button',\n },\n})\nexport class TuiStepComponent {\n @Input()\n @HostBinding('attr.data-state')\n @tuiDefaultProp()\n state: 'normal' | 'pass' | 'error' = 'normal';\n\n @Input()\n @tuiDefaultProp()\n icon = '';\n\n @HostBinding('class._focus-visible')\n focusVisible = false;\n\n constructor(\n @Inject(TuiFocusVisibleService) focusVisible$: TuiFocusVisibleService,\n @Inject(TuiRouterLinkActiveService) routerLinkActive$: Observable<boolean>,\n @Inject(TuiStepperComponent) private readonly stepper: TuiStepperComponent,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n routerLinkActive$.pipe(filter(identity)).subscribe(() => {\n this.activate();\n });\n\n focusVisible$.subscribe(visible => {\n this.focusVisible = visible;\n });\n }\n\n @HostBinding('class._active')\n get isActive(): boolean {\n return this.stepper.isActive(this.index);\n }\n\n @HostBinding('class._vertical')\n get isVertical(): boolean {\n return this.stepper.orientation === 'vertical';\n }\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.isActive ? 0 : -1;\n }\n\n get index(): number {\n return this.stepper.indexOf(this.elementRef.nativeElement);\n }\n\n @HostListener('click')\n activate() {\n this.stepper.activate(this.index);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiStepComponent} from './step/step.component';\nimport {TuiStepperComponent} from './stepper.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiStepperComponent, TuiStepComponent],\n exports: [TuiStepperComponent, TuiStepComponent],\n})\nexport class TuiStepperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAiCa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAII,gBAAW,GAAoB,YAAY,CAAC;QAI5C,oBAAe,GAAG,CAAC,CAAC;QAGX,0BAAqB,GAAG,IAAI,YAAY,EAAU,CAAC;QAG3C,UAAK,GAAuC,WAAW,CAAC;KAyD5E;IAtDG,IAAI,QAAQ;;;QAGR,OAAO,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC9D;IAED,OAAO,CAAC,IAAiB;QACrB,OAAO,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CACtD,CAAC,EAAC,aAAa,EAAC,KAAK,aAAa,KAAK,IAAI,CAC9C,CAAC;KACL;IAED,QAAQ,CAAC,KAAa;QAClB,OAAO,KAAK,KAAK,IAAI,CAAC,eAAe,CAAC;KACzC;IAED,QAAQ,CAAC,KAAa;QAClB,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,EAAE;YAChC,OAAO;SACV;QAED,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAC7B,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC1C;IAID,YAAY,CAAC,KAAY,EAAE,IAAY;QACnC,IAAI,IAAI,CAAC,WAAW,KAAK,YAAY,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YACpD,OAAO;SACV;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;KACtC;IAID,UAAU,CAAC,KAAY,EAAE,IAAY;QACjC,IAAI,IAAI,CAAC,WAAW,KAAK,UAAU,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YAClD,OAAO;SACV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AC;sDACf;AAkBrB;IADC,WAAW,CAAC,eAAe,CAAC;gDAG5B;AAGD;IADC,WAAW,CAAC,iBAAiB,CAAC;kDAG9B;AAGD;IADC,WAAW,CAAC,UAAU,CAAC;gDAGvB;AAOD;IADC,YAAY,CAAC,OAAO,CAAC;gDAGrB;AAlDQ,gBAAgB;IAX5B,SAAS,CAAC;QACP,QAAQ,EACJ,yFAAyF;QAC7F,+TAAmC;QAEnC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,sBAAsB,CAAC;QAClF,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;;KACJ,CAAC;IAeO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAC9B,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;IAClC,WAAA,MAAM,CAAC,mBAAmB,CAAC,CAAA;IAC3B,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAjBd,gBAAgB,CAmD5B;;ICvEY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAL5B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;QACrC,YAAY,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;QACrD,OAAO,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;KACnD,CAAC;GACW,gBAAgB,CAAG;;ACZhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-stepper.js","sources":["ng://@taiga-ui/kit/components/stepper/stepper.component.ts","ng://@taiga-ui/kit/components/stepper/step/step.component.ts","ng://@taiga-ui/kit/components/stepper/stepper.module.ts","ng://@taiga-ui/kit/components/stepper/taiga-ui-kit-components-stepper.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Input,\n Output,\n QueryList,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n getOriginalArrayFromQueryList,\n itemsQueryListObservable,\n moveFocus,\n tuiDefaultProp,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiOrientationT} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {delay} from 'rxjs/operators';\n\nimport {TuiStepComponent} from './step/step.component';\n\n@Component({\n selector: 'tui-stepper, nav[tuiStepper]',\n templateUrl: './stepper.template.html',\n styleUrls: ['./stepper.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiStepperComponent {\n @ContentChildren(forwardRef(() => TuiStepComponent), {read: ElementRef})\n private readonly steps: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n @Input()\n @HostBinding('attr.data-orientation')\n @tuiDefaultProp()\n orientation: TuiOrientationT = 'horizontal';\n\n @Input()\n @tuiDefaultProp()\n activeItemIndex = 0;\n\n @Output()\n readonly activeItemIndexChange = new EventEmitter<number>();\n\n @tuiPure\n get changes$(): Observable<unknown> {\n // Delay is required to trigger change detection after steps are rendered\n // so they can update their \"active\" status\n return itemsQueryListObservable(this.steps).pipe(delay(0));\n }\n\n @HostListener('keydown.arrowRight', ['$event', '1'])\n @HostListener('keydown.arrowLeft', ['$event', '-1'])\n onHorizontal(event: Event, step: number) {\n if (this.orientation !== 'horizontal' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n @HostListener('keydown.arrowDown', ['$event', '1'])\n @HostListener('keydown.arrowUp', ['$event', '-1'])\n onVertical(event: Event, step: number) {\n if (this.orientation !== 'vertical' || !event.target) {\n return;\n }\n\n event.preventDefault();\n this.moveFocus(event.target, step);\n }\n\n indexOf(step: HTMLElement): number {\n return getOriginalArrayFromQueryList(this.steps).findIndex(\n ({nativeElement}) => nativeElement === step,\n );\n }\n\n isActive(index: number): boolean {\n return index === this.activeItemIndex;\n }\n\n activate(index: number) {\n if (this.activeItemIndex === index) {\n return;\n }\n\n this.activeItemIndex = index;\n this.activeItemIndexChange.emit(index);\n }\n\n private moveFocus(current: EventTarget, step: number) {\n const steps = getOriginalArrayFromQueryList(this.steps).map(\n ({nativeElement}) => nativeElement,\n );\n\n moveFocus(steps.indexOf(current as HTMLElement), steps, step);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {\n identity,\n tuiDefaultProp,\n TuiDestroyService,\n TuiFocusVisibleService,\n} from '@taiga-ui/cdk';\nimport {TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {filter} from 'rxjs/operators';\n\nimport {TuiStepperComponent} from '../stepper.component';\n\n@Component({\n selector:\n 'button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]',\n templateUrl: './step.template.html',\n styleUrls: ['./step.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, TuiRouterLinkActiveService, TuiFocusVisibleService],\n host: {\n type: 'button',\n },\n})\nexport class TuiStepComponent {\n @Input()\n @HostBinding('attr.data-state')\n @tuiDefaultProp()\n state: 'normal' | 'pass' | 'error' = 'normal';\n\n @Input()\n @tuiDefaultProp()\n icon = '';\n\n @HostBinding('class._focus-visible')\n focusVisible = false;\n\n constructor(\n @Inject(TuiFocusVisibleService) focusVisible$: TuiFocusVisibleService,\n @Inject(TuiRouterLinkActiveService) routerLinkActive$: Observable<boolean>,\n @Inject(TuiStepperComponent) private readonly stepper: TuiStepperComponent,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n routerLinkActive$.pipe(filter(identity)).subscribe(() => {\n this.activate();\n });\n\n focusVisible$.subscribe(visible => {\n this.focusVisible = visible;\n });\n }\n\n @HostBinding('class._active')\n get isActive(): boolean {\n return this.stepper.isActive(this.index);\n }\n\n @HostBinding('class._vertical')\n get isVertical(): boolean {\n return this.stepper.orientation === 'vertical';\n }\n\n @HostBinding('tabIndex')\n get tabIndex(): number {\n return this.isActive ? 0 : -1;\n }\n\n get index(): number {\n return this.stepper.indexOf(this.elementRef.nativeElement);\n }\n\n @HostListener('click')\n activate() {\n this.stepper.activate(this.index);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiStepComponent} from './step/step.component';\nimport {TuiStepperComponent} from './stepper.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiStepperComponent, TuiStepComponent],\n exports: [TuiStepperComponent, TuiStepComponent],\n})\nexport class TuiStepperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAiCa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QAEqB,UAAK,GAAuC,WAAW,CAAC;QAKzE,gBAAW,GAAoB,YAAY,CAAC;QAI5C,oBAAe,GAAG,CAAC,CAAC;QAGX,0BAAqB,GAAG,IAAI,YAAY,EAAU,CAAC;KAyD/D;IAtDG,IAAI,QAAQ;;;QAGR,OAAO,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC9D;IAID,YAAY,CAAC,KAAY,EAAE,IAAY;QACnC,IAAI,IAAI,CAAC,WAAW,KAAK,YAAY,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YACpD,OAAO;SACV;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;KACtC;IAID,UAAU,CAAC,KAAY,EAAE,IAAY;QACjC,IAAI,IAAI,CAAC,WAAW,KAAK,UAAU,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YAClD,OAAO;SACV;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAA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BAAmB,EAAE,gBAAgB,CAAC;KACnD,CAAC;GACW,gBAAgB,CAAG;;ACZhC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { TemplateRef, Inject, Directive, InjectionToken, ElementRef, Optional, HostBinding, Component, ChangeDetectionStrategy, EventEmitter, Renderer2, ChangeDetectorRef, Input, Output, ContentChildren, forwardRef, HostListener, ViewChild, NgZone, NgModule } from '@angular/core';
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
4
  import { TuiDestroyService, TuiFocusVisibleService, identity, typedFromEvent, tuiCustomEvent, isNativeFocused, setNativeFocused, TUI_IS_IOS, TUI_IS_ANDROID, EMPTY_QUERY, itemsQueryListObservable, moveFocus, TuiResizeService, tuiDefaultProp, tuiPure, getClosestFocusable, toInt, tuiZonefree, px, TuiFocusableModule } from '@taiga-ui/cdk';
5
5
  import { TuiRouterLinkActiveService, MODE_PROVIDER, TUI_MODE, TuiHostedDropdownModule, TuiSvgModule } from '@taiga-ui/core';
@@ -132,9 +132,9 @@ let TuiTabsComponent = class TuiTabsComponent {
132
132
  constructor(elementRef, renderer, changeDetectorRef, resize$, isIos, isAndroid, mobileAware) {
133
133
  this.elementRef = elementRef;
134
134
  this.renderer = renderer;
135
+ this.children = EMPTY_QUERY;
135
136
  this.underline = true;
136
137
  this.activeItemIndexChange = new EventEmitter();
137
- this.children = EMPTY_QUERY;
138
138
  this.activeItemIndex = 0;
139
139
  this.isIos = mobileAware && isIos;
140
140
  this.isAndroid = mobileAware && isAndroid;
@@ -155,17 +155,6 @@ let TuiTabsComponent = class TuiTabsComponent {
155
155
  get activeElement() {
156
156
  return this.tabs[this.activeItemIndex] || null;
157
157
  }
158
- ngAfterViewChecked() {
159
- const { tabs, activeElement } = this;
160
- tabs.forEach(nativeElement => {
161
- this.renderer.removeClass(nativeElement, TAB_ACTIVE_CLASS);
162
- this.renderer.setAttribute(nativeElement, 'tabIndex', '-1');
163
- });
164
- if (activeElement) {
165
- this.renderer.addClass(activeElement, TAB_ACTIVE_CLASS);
166
- this.renderer.setAttribute(activeElement, 'tabIndex', '0');
167
- }
168
- }
169
158
  onActivate(element) {
170
159
  const index = this.tabs.findIndex(tab => tab === element);
171
160
  if (index === this.activeItemIndex) {
@@ -178,6 +167,17 @@ let TuiTabsComponent = class TuiTabsComponent {
178
167
  const { tabs } = this;
179
168
  moveFocus(tabs.indexOf(current), tabs, step);
180
169
  }
170
+ ngAfterViewChecked() {
171
+ const { tabs, activeElement } = this;
172
+ tabs.forEach(nativeElement => {
173
+ this.renderer.removeClass(nativeElement, TAB_ACTIVE_CLASS);
174
+ this.renderer.setAttribute(nativeElement, 'tabIndex', '-1');
175
+ });
176
+ if (activeElement) {
177
+ this.renderer.addClass(activeElement, TAB_ACTIVE_CLASS);
178
+ this.renderer.setAttribute(activeElement, 'tabIndex', '0');
179
+ }
180
+ }
181
181
  scrollTo(element) {
182
182
  if (!element) {
183
183
  return;
@@ -203,6 +203,9 @@ TuiTabsComponent.ctorParameters = () => [
203
203
  { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_ANDROID,] }] },
204
204
  { type: Boolean, decorators: [{ type: Inject, args: [TUI_MOBILE_AWARE,] }] }
205
205
  ];
206
+ __decorate([
207
+ ContentChildren(forwardRef(() => TuiTabComponent))
208
+ ], TuiTabsComponent.prototype, "children", void 0);
206
209
  __decorate([
207
210
  Input(),
208
211
  HostBinding('class._underline'),
@@ -220,9 +223,6 @@ __decorate([
220
223
  __decorate([
221
224
  HostBinding('class._android')
222
225
  ], TuiTabsComponent.prototype, "isAndroid", void 0);
223
- __decorate([
224
- ContentChildren(forwardRef(() => TuiTabComponent))
225
- ], TuiTabsComponent.prototype, "children", void 0);
226
226
  __decorate([
227
227
  tuiPure
228
228
  ], TuiTabsComponent.prototype, "refresh$", null);
@@ -298,6 +298,7 @@ let TuiTabsWithMoreComponent = class TuiTabsWithMoreComponent {
298
298
  this.elementRef = elementRef;
299
299
  this.changeDetectorRef = changeDetectorRef;
300
300
  this.moreWord$ = moreWord$;
301
+ this.maxIndex = Infinity;
301
302
  this.moreContent = '';
302
303
  this.underline = true;
303
304
  this.activeItemIndex = 0;
@@ -305,7 +306,6 @@ let TuiTabsWithMoreComponent = class TuiTabsWithMoreComponent {
305
306
  this.activeItemIndexChange = new EventEmitter();
306
307
  this.items = EMPTY_QUERY;
307
308
  this.open = false;
308
- this.maxIndex = Infinity;
309
309
  }
310
310
  get tabs() {
311
311
  return Array.from(this.elementRef.nativeElement.querySelectorAll('[tuiTab]'));
@@ -413,6 +413,9 @@ TuiTabsWithMoreComponent.ctorParameters = () => [
413
413
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
414
414
  { type: Observable, decorators: [{ type: Inject, args: [TUI_MORE_WORD,] }] }
415
415
  ];
416
+ __decorate([
417
+ ViewChild(TuiTabComponent, { read: ElementRef })
418
+ ], TuiTabsWithMoreComponent.prototype, "moreButton", void 0);
416
419
  __decorate([
417
420
  Input(),
418
421
  tuiDefaultProp()
@@ -436,9 +439,6 @@ __decorate([
436
439
  __decorate([
437
440
  ContentChildren(TuiTabDirective, { read: TemplateRef })
438
441
  ], TuiTabsWithMoreComponent.prototype, "items", void 0);
439
- __decorate([
440
- ViewChild(TuiTabComponent, { read: ElementRef })
441
- ], TuiTabsWithMoreComponent.prototype, "moreButton", void 0);
442
442
  TuiTabsWithMoreComponent = __decorate([
443
443
  Component({
444
444
  selector: 'tui-tabs-with-more, nav[tuiTabsWithMore]',
@@ -461,12 +461,12 @@ let TuiUnderlineComponent = class TuiUnderlineComponent {
461
461
  this.ios = ios;
462
462
  this.android = android;
463
463
  this.mode$ = mode$;
464
- this.isIos = this.mobileAware && this.ios;
465
- this.isAndroid = this.mobileAware && this.android;
466
464
  this.element$ = new ReplaySubject(1);
467
465
  this.refresh$ = this.element$.pipe(switchMap(element => element
468
466
  ? this.animationFrame$.pipe(mapTo(element), tuiZonefree(this.ngZone))
469
467
  : of(null)), share());
468
+ this.isIos = this.mobileAware && this.ios;
469
+ this.isAndroid = this.mobileAware && this.android;
470
470
  this.transition$ = asCallable(this.element$.pipe(map(element => element && 'all'), debounceTime(50)));
471
471
  this.transform$ = asCallable(this.refresh$.pipe(map(element => element ? `translate3d(${px(element.offsetLeft)}, 0, 0)` : null)));
472
472
  this.width$ = asCallable(this.refresh$.pipe(map(element => (element ? element.clientWidth : 0))));
@@ -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.const.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 identity,\n tuiCustomEvent,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {EMPTY, 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} 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 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_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","export const TAB_ACTIVE_CLASS = '_active';\nexport const TAB_MARGIN = 24;\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 itemsQueryListObservable,\n moveFocus,\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiDestroyService,\n tuiPure,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {TUI_MOBILE_AWARE} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {filter, mapTo} from 'rxjs/operators';\n\nimport {TuiTabComponent} from '../tab/tab.component';\nimport {TUI_TAB_ACTIVATE} from '../tab/tab.providers';\nimport {TAB_ACTIVE_CLASS} from '../tabs.const';\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 @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 @ContentChildren(forwardRef(() => TuiTabComponent))\n private readonly children: QueryList<unknown> = EMPTY_QUERY;\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 @tuiPure\n get refresh$(): Observable<boolean> {\n return itemsQueryListObservable(this.children).pipe(mapTo(true));\n }\n\n get tabs(): ReadonlyArray<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 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 @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 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 tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TUI_MORE_WORD} 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 {TAB_MARGIN} from '../tabs.const';\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 @Input()\n @tuiDefaultProp()\n moreContent: PolymorpheusContent = '';\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 private maxIndex = Infinity;\n\n @ViewChild(TuiTabComponent, {read: ElementRef})\n private readonly moreButton?: ElementRef<HTMLButtonElement>;\n\n constructor(\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 get tabs(): ReadonlyArray<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} = 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, tab) => acc + tab.scrollWidth, 0) +\n maxIndex * TAB_MARGIN -\n moreWidth;\n\n if (total <= clientWidth) {\n return Infinity;\n }\n\n while (maxIndex) {\n total -= tabs[maxIndex].scrollWidth + TAB_MARGIN;\n maxIndex--;\n\n const activeDisplaced = activeItemIndex > maxIndex;\n const activeOffset = activeDisplaced ? activeWidth + TAB_MARGIN : 0;\n const currentWidth = total + activeOffset + moreWidth + TAB_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 @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 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 @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 ? 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":";;;;;;;;;;;;;;IAKa,eAAe,GAA5B,MAAa,eAAe;IACxB,YAA0C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;EAC1E;;YADuD,WAAW,uBAAlD,MAAM,SAAC,WAAW;;AADtB,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;KAClC,CAAC;IAEe,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GADvB,eAAe,CAE3B;;MCQY,gBAAgB,GAAG,mBAAmB;MACtC,aAAa,GAAG,IAAI,cAAc,CAC3C,iCAAiC,EACnC;MACW,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,EAAC,aAAa,EAA0B,EACxC,WAAqB,EACrB,uBAA4C,EAC5C,uBAAuD,EACvD,gBAAyC;IAEzC,MAAM,gBAAgB,GAClB,gBAAgB,IAAI,uBAAuB;UACrC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,gBAAgB,CAAC,QAAQ,CAAC,CAAC;UACrE,KAAK,CAAC;IAEhB,OAAO,KAAK,CACR,gBAAgB,EAChB,u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WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;IACvB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GArDZ,qBAAqB,CA2DjC;;ICrDY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAtBzB,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,uBAAuB;YACvB,YAAY;YACZ,kBAAkB;YAClB,kBAAkB;SACrB;QACD,YAAY,EAAE;YACV,wBAAwB;YACxB,gBAAgB;YAChB,eAAe;YACf,qBAAqB;YACrB,eAAe;SAClB;QACD,OAAO,EAAE;YACL,wBAAwB;YACxB,gBAAgB;YAChB,eAAe;YACf,eAAe;SAClB;KACJ,CAAC;GACW,aAAa,CAAG;;AClC7B;;;;;;"}
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.const.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 identity,\n tuiCustomEvent,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {EMPTY, 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} 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 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_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","export const TAB_ACTIVE_CLASS = '_active';\nexport const TAB_MARGIN = 24;\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 itemsQueryListObservable,\n moveFocus,\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiDestroyService,\n tuiPure,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {TUI_MOBILE_AWARE} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {filter, mapTo} from 'rxjs/operators';\n\nimport {TuiTabComponent} from '../tab/tab.component';\nimport {TUI_TAB_ACTIVATE} from '../tab/tab.providers';\nimport {TAB_ACTIVE_CLASS} from '../tabs.const';\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 private 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 @tuiPure\n get refresh$(): Observable<boolean> {\n return itemsQueryListObservable(this.children).pipe(mapTo(true));\n }\n\n get tabs(): ReadonlyArray<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 tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TUI_MORE_WORD} 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 {TAB_MARGIN} from '../tabs.const';\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 @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(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 get tabs(): ReadonlyArray<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} = 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, tab) => acc + tab.scrollWidth, 0) +\n maxIndex * TAB_MARGIN -\n moreWidth;\n\n if (total <= clientWidth) {\n return Infinity;\n }\n\n while (maxIndex) {\n total -= tabs[maxIndex].scrollWidth + TAB_MARGIN;\n maxIndex--;\n\n const activeDisplaced = activeItemIndex > maxIndex;\n const activeOffset = activeDisplaced ? activeWidth + TAB_MARGIN : 0;\n const currentWidth = total + activeOffset + moreWidth + TAB_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 ? 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":";;;;;;;;;;;;;;IAKa,eAAe,GAA5B,MAAa,eAAe;IACxB,YAA0C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;EAC1E;;YADuD,WAAW,uBAAlD,MAAM,SAAC,WAAW;;AADtB,eAAe;IAH3B,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;KAClC,CAAC;IAEe,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;GADvB,eAAe,CAE3B;;MCQY,gBAAgB,GAAG,mBAAmB;MACtC,aAAa,GAAG,IAAI,cAAc,CAC3C,iCAAiC,EACnC;MACW,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,EAAC,aAAa,EAA0B,EACxC,WAAqB,EACrB,uBAA4C,EAC5C,uBAAuD,EACvD,gBAAyC;IAEzC,M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,SAAS,EAAE,CAAC,aAAa,CAAC;QAC1B,IAAI,EAAE;YACF,oBAAoB,EAAE,OAAO;SAChC;;KACJ,CAAC;IAgDO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;IACvB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IACxB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GArDZ,qBAAqB,CA2DjC;;ICrDY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAtBzB,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,uBAAuB;YACvB,YAAY;YACZ,kBAAkB;YAClB,kBAAkB;SACrB;QACD,YAAY,EAAE;YACV,wBAAwB;YACxB,gBAAgB;YAChB,eAAe;YACf,qBAAqB;YACrB,eAAe;SAClB;QACD,OAAO,EAAE;YACL,wBAAwB;YACxB,gBAAgB;YAChB,eAAe;YACf,eAAe;SAClB;KACJ,CAAC;GACW,aAAa,CAAG;;AClC7B;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { forwardRef, Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, ViewChild, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import { forwardRef, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { NgControl, FormsModule } from '@angular/forms';
4
4
  import { TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiControl, isNativeFocused, setNativeFocused, TUI_IS_IOS, tuiDefaultProp, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule } from '@taiga-ui/cdk';
5
5
  import { TEXTFIELD_CONTROLLER_PROVIDER, HINT_CONTROLLER_PROVIDER, MODE_PROVIDER, getBorder, TUI_TEXTFIELD_APPEARANCE, TUI_MODE, TuiTextfieldController, TUI_TEXTFIELD_WATCHED_CONTROLLER, TuiHintControllerDirective, TUI_HINT_WATCHED_CONTROLLER, TuiScrollbarModule, TuiTooltipModule, TuiWrapperModule, TuiDescribedByModule, TuiBorderModule, TuiSvgModule } from '@taiga-ui/core';
@@ -118,6 +118,9 @@ TuiTextAreaComponent.ctorParameters = () => [
118
118
  { type: TuiTextfieldController, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] },
119
119
  { type: TuiHintControllerDirective, decorators: [{ type: Inject, args: [TUI_HINT_WATCHED_CONTROLLER,] }] }
120
120
  ];
121
+ __decorate([
122
+ ViewChild('focusableElement')
123
+ ], TuiTextAreaComponent.prototype, "focusableElement", void 0);
121
124
  __decorate([
122
125
  Input(),
123
126
  tuiDefaultProp()
@@ -127,9 +130,6 @@ __decorate([
127
130
  HostBinding('class._expandable'),
128
131
  tuiDefaultProp()
129
132
  ], TuiTextAreaComponent.prototype, "expandable", void 0);
130
- __decorate([
131
- ViewChild('focusableElement')
132
- ], TuiTextAreaComponent.prototype, "focusableElement", void 0);
133
133
  __decorate([
134
134
  HostBinding('class._label-outside')
135
135
  ], TuiTextAreaComponent.prototype, "labelOutside", null);
@@ -155,7 +155,7 @@ TuiTextAreaComponent = __decorate([
155
155
  '($.data-mode.attr)': 'mode$',
156
156
  '[class._ios]': 'isIOS',
157
157
  },
158
- 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-tui-host-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-tui-host-size='m']._has-counter{min-height:6.625rem}:host[data-tui-host-size='l']._has-counter{min-height:7.875rem}.outline{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.content{margin-top:0;margin-bottom:0;min-height:inherit;width:100%;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .content{bottom:1.6875rem}.wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-tui-host-size='m']._label-outside .wrapper{padding-top:.75rem}:host[data-tui-host-size='l']._label-outside .wrapper{padding-top:1rem}:host[data-tui-host-size='m']:not(._label-outside) .wrapper{padding-top:1.375rem}:host[data-tui-host-size='l']:not(._label-outside) .wrapper{padding-top:1.625rem}.input-wrapper{min-height:inherit;width:100%;flex:1}.relative{position:relative;min-height:inherit}.box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .box{height:100%}:host._has-counter._expandable .box{margin-bottom:1.25rem}.pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:0 solid transparent}:host[data-tui-host-size='m'] .pseudo-content{padding:0 .75rem}:host[data-tui-host-size='l'] .pseudo-content{padding:0 1rem}.pseudo-content__extra{background-color:var(--tui-error-bg-night)}.input{padding:0;border:0 solid transparent;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}.input:-webkit-autofill,.input:-webkit-autofill:focus,.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}.input::-moz-placeholder{color:var(--tui-text-03);visibility:hidden}.input:-ms-input-placeholder{color:var(--tui-text-03);visibility:hidden}.input::placeholder{color:var(--tui-text-03);visibility:hidden}:host[data-mode=onDark] .input::-moz-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .input:-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .input::placeholder{color:var(--tui-text-03-night)}:host._focused .input:not(:read-only)::-moz-placeholder{visibility:visible}:host._focused .input:not(:read-only):-ms-input-placeholder{visibility:visible}:host._focused .input:not(:-moz-read-only)::placeholder{visibility:visible}:host._focused .input:not(:read-only)::placeholder{visibility:visible}:host[data-tui-host-size='m'] .input{padding:0 .75rem}:host[data-tui-host-size='l'] .input{padding:0 1rem}:host._ios .input{padding-left:.8125rem}:host[data-mode=onDark]._disabled .input{color:var(--tui-text-03-night)}.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%;font-size:.8125rem;-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:0 solid transparent;box-sizing:border-box}.placeholder_raised{transform:translateY(-.625rem)}:host[data-tui-host-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-tui-host-size='l']._focused._label-outside .placeholder,:host[data-tui-host-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-tui-host-size='l'] .placeholder{font-size:.9375rem}:host[data-tui-host-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-tui-host-size='l']._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-tui-host-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='m'] .placeholder{top:.75rem;padding:0 .75rem}:host[data-tui-host-size='l'] .placeholder{top:1rem}:host._label-outside .placeholder{overflow:initial;height:auto;white-space:initial}.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-tui-host-size='m'] .icons{padding:.75rem}.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}.cleaner:hover{color:var(--tui-text-02)}:host._disabled .cleaner,:host._readonly .cleaner{pointer-events:none}:host[data-mode=onDark] .cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .cleaner:hover{color:var(--tui-text-01-night)}.tooltip{pointer-events:auto}.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] .counter{color:var(--tui-text-03-night)}"]
158
+ 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-tui-host-size='m']{font:var(--tui-font-text-s);min-height:5.5rem}:host[data-tui-host-size='m']._has-counter{min-height:6.625rem}:host[data-tui-host-size='l']._has-counter{min-height:7.875rem}.outline{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1}.content{margin-top:0;margin-bottom:0;min-height:inherit;width:100%;box-sizing:border-box;overflow:hidden;cursor:text}:host._disabled .content{cursor:auto;opacity:var(--tui-disabled-opacity)}:host:not(._expandable) .content{position:absolute;top:0;left:0;bottom:1px;right:0;min-height:auto}:host._has-counter:not(._expandable) .content{bottom:1.6875rem}.wrapper{position:relative;width:100%;height:100%;min-height:inherit;padding-bottom:.4375rem;box-sizing:border-box}:host[data-tui-host-size='m']._label-outside .wrapper{padding-top:.75rem}:host[data-tui-host-size='l']._label-outside .wrapper{padding-top:1rem}:host[data-tui-host-size='m']:not(._label-outside) .wrapper{padding-top:1.375rem}:host[data-tui-host-size='l']:not(._label-outside) .wrapper{padding-top:1.625rem}.input-wrapper{min-height:inherit;width:100%;flex:1}.relative{position:relative;min-height:inherit}.box{display:flex;min-height:100%;width:100%}:host:not(._expandable) .box{height:100%}:host._has-counter._expandable .box{margin-bottom:1.25rem}.pseudo-content{white-space:pre-wrap;word-wrap:break-word;pointer-events:none;color:transparent;overflow:hidden;border:0 solid transparent}:host[data-tui-host-size='m'] .pseudo-content{padding:0 .75rem}:host[data-tui-host-size='l'] .pseudo-content{padding:0 1rem}.pseudo-content__extra{background-color:var(--tui-error-bg-night)}.input{padding:0;border:0 solid transparent;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}.input:-webkit-autofill,.input:-webkit-autofill:focus,.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}.input::-moz-placeholder{color:var(--tui-text-03);opacity:0}.input:-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.input::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .input::-moz-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .input:-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .input::placeholder{color:var(--tui-text-03-night)}:host._focused .input:not(:read-only)::-moz-placeholder{opacity:1}:host._focused .input:not(:read-only):-ms-input-placeholder{opacity:1}:host._focused .input:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .input:not(:read-only)::placeholder{opacity:1}:host[data-tui-host-size='m'] .input{padding:0 .75rem}:host[data-tui-host-size='l'] .input{padding:0 1rem}:host._ios .input{padding-left:.8125rem}:host[data-mode=onDark]._disabled .input{color:var(--tui-text-03-night)}.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%;font-size:.8125rem;-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:0 solid transparent;box-sizing:border-box}.placeholder_raised{transform:translateY(-.625rem)}:host[data-tui-host-size='m'] .placeholder_raised{font-size:.69rem;transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .placeholder_raised,:host._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .placeholder,:host[data-tui-host-size='l']._focused._label-outside .placeholder,:host[data-tui-host-size='m']._focused._label-outside .placeholder{color:var(--tui-text-03)}:host[data-tui-host-size='l'] .placeholder{font-size:.9375rem}:host[data-tui-host-size='l'] .placeholder_raised{font-size:.8156rem}:host[data-tui-host-size='l']._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m']._focused:not(._label-outside) .placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='l'][data-mode=onDark]._focused:not(._label-outside) .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused:not(._label-outside) .placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .placeholder,:host[data-tui-host-size='l'][data-mode=onDark]._focused._label-outside .placeholder,:host[data-tui-host-size='m'][data-mode=onDark]._focused._label-outside .placeholder{color:var(--tui-text-02-night)}:host[data-tui-host-size='m'] .placeholder{top:.75rem;padding:0 .75rem}:host[data-tui-host-size='l'] .placeholder{top:1rem}:host._label-outside .placeholder{overflow:initial;height:auto;white-space:initial}.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-tui-host-size='m'] .icons{padding:.75rem}.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}.cleaner:hover{color:var(--tui-text-02)}:host._disabled .cleaner,:host._readonly .cleaner{pointer-events:none}:host[data-mode=onDark] .cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .cleaner:hover{color:var(--tui-text-01-night)}.tooltip{pointer-events:auto}.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] .counter{color:var(--tui-text-03-night)}"]
159
159
  }),
160
160
  __param(0, Optional()),
161
161
  __param(0, Self()),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-text-area.js","sources":["ng://@taiga-ui/kit/components/text-area/text-area.providers.ts","ng://@taiga-ui/kit/components/text-area/text-area.component.ts","ng://@taiga-ui/kit/components/text-area/text-area.module.ts","ng://@taiga-ui/kit/components/text-area/taiga-ui-kit-components-text-area.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\nexport const TUI_TEXT_AREA_PROVIDERS: Provider[] = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiTextAreaComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n getBorder,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TEXT_AREA_PROVIDERS} from './text-area.providers';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n@Component({\n selector: 'tui-text-area',\n templateUrl: './text-area.template.html',\n styleUrls: ['./text-area.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TEXT_AREA_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiTextAreaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n rows = DEFAULT_ROWS;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = false;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n return this.controller.labelOutside;\n }\n\n get nativeFocusableElement(): HTMLTextAreaElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('attr.data-tui-host-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n get border(): number {\n return getBorder(false, this.hasCleaner, this.hasTooltip);\n }\n\n get hasCleaner(): boolean {\n return (\n this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly\n );\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._has-value')\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('class._has-counter')\n get hasCounter(): boolean {\n return !!this.controller.maxLength && !this.disabled && !this.readOnly;\n }\n\n get hasPlaceholder(): boolean {\n return !this.controller.labelOutside || (!this.hasValue && !this.hasExampleText);\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.controller.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get fittedContent(): string {\n return this.value.slice(0, this.controller.maxLength || Infinity);\n }\n\n get extraContent(): string {\n return this.value.slice(this.controller.maxLength || Infinity);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onValue(value: string) {\n this.updateValue(value);\n }\n\n onMouseDown(event: MouseEvent) {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement);\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule, TuiHoveredModule} from '@taiga-ui/cdk';\nimport {\n TuiBorderModule,\n TuiDescribedByModule,\n TuiScrollbarModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiWrapperModule,\n TuiDescribedByModule,\n TuiBorderModule,\n TuiSvgModule,\n ],\n declarations: [TuiTextAreaComponent],\n exports: [TuiTextAreaComponent],\n})\nexport class TuiTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,uBAAuB,GAAe;IAC/C;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAoB,CAAC;KACtD;IACD,6BAA6B;IAC7B,wBAAwB;IACxB,aAAa;;;MCoBJ,YAAY,GAAG,GAAG;MAClB,aAAa,GAAG,GAAG;MACnB,aAAa,GAAG,GAAG;IAanB,oBAAoB,GAAjC,MAAa,oBACT,SAAQ,kBAA0B;IAelC,YAII,OAAyB,EACE,iBAAoC,EACpB,UAAkB,EAChC,KAAc,EAChB,KAAuC,EAEzD,UAAkC,EAElC,cAA0C;QAEnD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QARS,eAAU,GAAV,UAAU,CAAQ;QAChC,UAAK,GAAL,KAAK,CAAS;QAChB,UAAK,GAAL,KAAK,CAAkC;QAEzD,eAAU,GAAV,UAAU,CAAwB;QAElC,mBAAc,GAAd,cAAc,CAA4B;QAtBvD,SAAI,GAAG,YAAY,CAAC;QAKpB,eAAU,GAAG,KAAK,CAAC;KAoBlB;IAGD,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;KACvC;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,gBAAgB;cAChD,IAAI;cACJ,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC;KAC7C;IAED,IAAI,OAAO;QACP,OAAO,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KACvD;IAGD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;KAC/B;IAED,IAAI,MAAM;QACN,OAAO,SAAS,CA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pB,eAAe;YACf,YAAY;SACf;QACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;AChCjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-text-area.js","sources":["ng://@taiga-ui/kit/components/text-area/text-area.providers.ts","ng://@taiga-ui/kit/components/text-area/text-area.component.ts","ng://@taiga-ui/kit/components/text-area/text-area.module.ts","ng://@taiga-ui/kit/components/text-area/taiga-ui-kit-components-text-area.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\nexport const TUI_TEXT_AREA_PROVIDERS: Provider[] = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiTextAreaComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n getBorder,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TEXT_AREA_PROVIDERS} from './text-area.providers';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n@Component({\n selector: 'tui-text-area',\n templateUrl: './text-area.template.html',\n styleUrls: ['./text-area.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TEXT_AREA_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiTextAreaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n @Input()\n @tuiDefaultProp()\n rows = DEFAULT_ROWS;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n return this.controller.labelOutside;\n }\n\n get nativeFocusableElement(): HTMLTextAreaElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('attr.data-tui-host-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n get border(): number {\n return getBorder(false, this.hasCleaner, this.hasTooltip);\n }\n\n get hasCleaner(): boolean {\n return (\n this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly\n );\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._has-value')\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('class._has-counter')\n get hasCounter(): boolean {\n return !!this.controller.maxLength && !this.disabled && !this.readOnly;\n }\n\n get hasPlaceholder(): boolean {\n return !this.controller.labelOutside || (!this.hasValue && !this.hasExampleText);\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.controller.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get fittedContent(): string {\n return this.value.slice(0, this.controller.maxLength || Infinity);\n }\n\n get extraContent(): string {\n return this.value.slice(this.controller.maxLength || Infinity);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onValue(value: string) {\n this.updateValue(value);\n }\n\n onMouseDown(event: MouseEvent) {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement);\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule, TuiHoveredModule} from '@taiga-ui/cdk';\nimport {\n TuiBorderModule,\n TuiDescribedByModule,\n TuiScrollbarModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiWrapperModule,\n TuiDescribedByModule,\n TuiBorderModule,\n TuiSvgModule,\n ],\n declarations: [TuiTextAreaComponent],\n exports: [TuiTextAreaComponent],\n})\nexport class TuiTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,uBAAuB,GAAe;IAC/C;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAoB,CAAC;KACtD;IACD,6BAA6B;IAC7B,wBAAwB;IACxB,aAAa;;;MCoBJ,YAAY,GAAG,GAAG;MAClB,aAAa,GAAG,GAAG;MACnB,aAAa,GAAG,GAAG;IAanB,oBAAoB,GAAjC,MAAa,oBACT,SAAQ,kBAA0B;IAelC,YAII,OAAyB,EACE,iBAAoC,EACpB,UAAkB,EAChC,KAAc,EAChB,KAAuC,EAEzD,UAAkC,EAElC,cAA0C;QAEnD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QARS,eAAU,GAAV,UAAU,CAAQ;QAChC,UAAK,GAAL,KAAK,CAAS;QAChB,UAAK,GAAL,KAAK,CAAkC;QAEzD,eAAU,GAAV,UAAU,CAAwB;QAElC,mBAAc,GAAd,cAAc,CAA4B;QAnBvD,SAAI,GAAG,YAAY,CAAC;QAKpB,eAAU,GAAG,KAAK,CAAC;KAiBlB;IAGD,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;KACvC;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,gBAAgB;cAChD,IAAI;cACJ,I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B,CAiJhC;;ICrKY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAjB7B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,oBAAoB;YACpB,eAAe;YACf,YAAY;SACf;QACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;AChCjC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, ViewChild, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { AbstractTuiControl, isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiFocusedModule, TuiFocusableModule, TuiHoveredModule, TuiPressedModule, TuiFocusVisibleModule, TuiCheckedModule } from '@taiga-ui/cdk';
5
5
  import { TuiModeDirective, TuiWrapperModule, TuiSvgModule, TuiLoaderModule } from '@taiga-ui/core';
@@ -89,6 +89,9 @@ TuiToggleComponent.ctorParameters = () => [
89
89
  { type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] },
90
90
  { type: undefined, decorators: [{ type: Inject, args: [TUI_TOGGLE_OPTIONS,] }] }
91
91
  ];
92
+ __decorate([
93
+ ViewChild('focusableElement')
94
+ ], TuiToggleComponent.prototype, "focusableElement", void 0);
92
95
  __decorate([
93
96
  Input(),
94
97
  tuiDefaultProp()
@@ -106,9 +109,6 @@ __decorate([
106
109
  HostBinding('attr.data-tui-host-size'),
107
110
  tuiDefaultProp()
108
111
  ], TuiToggleComponent.prototype, "size", void 0);
109
- __decorate([
110
- ViewChild('focusableElement')
111
- ], TuiToggleComponent.prototype, "focusableElement", void 0);
112
112
  __decorate([
113
113
  HostBinding('class._checked')
114
114
  ], TuiToggleComponent.prototype, "checked", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-toggle.js","sources":["ng://@taiga-ui/kit/components/toggle/toggle-options.ts","ng://@taiga-ui/kit/components/toggle/toggle.component.ts","ng://@taiga-ui/kit/components/toggle/toggle.module.ts","ng://@taiga-ui/kit/components/toggle/taiga-ui-kit-components-toggle.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface ToggleOptions {\n readonly icons: Readonly<{\n toggleOff: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n toggleOn: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n }>;\n readonly singleColor: boolean;\n readonly showIcons: boolean;\n readonly size: TuiSizeL;\n}\n\n/** Default values for the toggle options. */\nexport const TUI_TOGGLE_DEFAULT_OPTIONS: ToggleOptions = {\n icons: {\n toggleOff({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOff' : 'tuiIconToggleOffLarge';\n },\n toggleOn({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOn' : 'tuiIconToggleOnLarge';\n },\n },\n singleColor: false,\n showIcons: false,\n size: 'm',\n};\n\nexport const TUI_TOGGLE_OPTIONS = new InjectionToken<ToggleOptions>(\n 'Default parameters for toggle component',\n {\n factory: () => TUI_TOGGLE_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {ToggleOptions, TUI_TOGGLE_OPTIONS} from './toggle-options';\n\n@Component({\n selector: 'tui-toggle',\n templateUrl: './toggle.template.html',\n styleUrls: ['./toggle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiToggleComponent),\n },\n ],\n})\nexport class TuiToggleComponent\n extends AbstractTuiControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n singleColor = this.options.singleColor;\n\n @Input()\n @tuiDefaultProp()\n showIcons = this.options.showIcons;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_TOGGLE_OPTIONS)\n public readonly options: ToggleOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get iconOn(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOn;\n }\n\n get iconOff(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOff;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.focusableElement ? this.focusableElement.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n return this.singleColor || this.checked\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class._checked')\n get checked(): boolean {\n return this.value;\n }\n\n get loaderSize(): TuiSizeXS {\n return this.sizeM ? 'xs' : 's';\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n protected getFallbackValue(): boolean {\n return false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiLoaderModule, TuiSvgModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiToggleComponent} from './toggle.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusedModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiCheckedModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiToggleComponent],\n exports: [TuiToggleComponent],\n})\nexport class TuiToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;MACa,0BAA0B,GAAkB;IACrD,KAAK,EAAE;QACH,SAAS,CAAC,EAAC,SAAS,EAAmC;YACnD,OAAO,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,uBAAuB,CAAC;SAC3E;QACD,QAAQ,CAAC,EAAC,SAAS,EAAmC;YAClD,OAAO,SAAS,KAAK,GAAG,GAAG,iBAAiB,GAAG,sBAAsB,CAAC;SACzE;KACJ;IACD,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,GAAG;EACX;MAEW,kBAAkB,GAAG,IAAI,cAAc,CAChD,yCAAyC,EACzC;IACI,OAAO,EAAE,MAAM,0BAA0B;CAC5C;;;ICYQ,kBAAkB,0BAA/B,MAAa,kBACT,SAAQ,kBAA2B;IAuBnC,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC,EAEvC,OAAsB;QAEtC,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAJjB,kBAAa,GAAb,aAAa,CAAyB;QAEvC,YAAO,GAAP,OAAO,CAAe;QA5B1C,gBAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;QAIvC,cAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAInC,eAAU,GAAG,KAAK,CAAC;QAKnB,SAAI,GAAa,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;KAkBlC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;KACtC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC;KACvC;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gB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-ui-kit-components-toggle.js","sources":["ng://@taiga-ui/kit/components/toggle/toggle-options.ts","ng://@taiga-ui/kit/components/toggle/toggle.component.ts","ng://@taiga-ui/kit/components/toggle/toggle.module.ts","ng://@taiga-ui/kit/components/toggle/taiga-ui-kit-components-toggle.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface ToggleOptions {\n readonly icons: Readonly<{\n toggleOff: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n toggleOn: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n }>;\n readonly singleColor: boolean;\n readonly showIcons: boolean;\n readonly size: TuiSizeL;\n}\n\n/** Default values for the toggle options. */\nexport const TUI_TOGGLE_DEFAULT_OPTIONS: ToggleOptions = {\n icons: {\n toggleOff({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOff' : 'tuiIconToggleOffLarge';\n },\n toggleOn({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOn' : 'tuiIconToggleOnLarge';\n },\n },\n singleColor: false,\n showIcons: false,\n size: 'm',\n};\n\nexport const TUI_TOGGLE_OPTIONS = new InjectionToken<ToggleOptions>(\n 'Default parameters for toggle component',\n {\n factory: () => TUI_TOGGLE_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {ToggleOptions, TUI_TOGGLE_OPTIONS} from './toggle-options';\n\n@Component({\n selector: 'tui-toggle',\n templateUrl: './toggle.template.html',\n styleUrls: ['./toggle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiToggleComponent),\n },\n ],\n})\nexport class TuiToggleComponent\n extends AbstractTuiControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n @tuiDefaultProp()\n singleColor = this.options.singleColor;\n\n @Input()\n @tuiDefaultProp()\n showIcons = this.options.showIcons;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_TOGGLE_OPTIONS)\n readonly options: ToggleOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get iconOn(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOn;\n }\n\n get iconOff(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOff;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.focusableElement ? this.focusableElement.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n return this.singleColor || this.checked\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class._checked')\n get checked(): boolean {\n return this.value;\n }\n\n get loaderSize(): TuiSizeXS {\n return this.sizeM ? 'xs' : 's';\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n protected getFallbackValue(): boolean {\n return false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiLoaderModule, TuiSvgModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiToggleComponent} from './toggle.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusedModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiCheckedModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiToggleComponent],\n exports: [TuiToggleComponent],\n})\nexport class TuiToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;MACa,0BAA0B,GAAkB;IACrD,KAAK,EAAE;QACH,SAAS,CAAC,EAAC,SAAS,EAAmC;YACnD,OAAO,SAAS,KAAK,GAAG,GAAG,kBAAkB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CAAC;iDAG7B;AAOD;IADC,WAAW,CAAC,gBAAgB,CAAC;kDAG7B;AA7EQ,kBAAkB;IAZ9B,SAAS,CAAC;QACP,QAAQ,EAAE,YAAY;QACtB,wwEAAqC;QAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAkB,CAAC;aACpD;SACJ;;KACJ,CAAC;IA0BO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GAjCtB,kBAAkB,CAsG9B;;ICpHY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAjB3B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,eAAe;YACf,kBAAkB;SACrB;QACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;AChC/B;;;;;;"}
@@ -102,8 +102,8 @@ let TuiTreeItemComponent = class TuiTreeItemComponent {
102
102
  this.controller = controller;
103
103
  this.level = level;
104
104
  this.content = content;
105
- this.change$ = new Subject();
106
105
  this.nested = EMPTY_QUERY;
106
+ this.change$ = new Subject();
107
107
  this.expanded$ = this.change$.pipe(startWith(null), map(() => this.isExpanded), distinctUntilChanged());
108
108
  this.attached$ = this.change$.pipe(map(() => this.elementRef.nativeElement.isConnected), distinctUntilChanged());
109
109
  }
@@ -168,15 +168,15 @@ TuiTreeComponent.ctorParameters = () => [
168
168
  __decorate([
169
169
  Input()
170
170
  ], TuiTreeComponent.prototype, "value", void 0);
171
- __decorate([
172
- Input()
173
- ], TuiTreeComponent.prototype, "content", void 0);
174
171
  __decorate([
175
172
  ViewChild(TuiTreeItemComponent)
176
173
  ], TuiTreeComponent.prototype, "item", void 0);
177
174
  __decorate([
178
175
  ViewChild(TuiTreeComponent_1)
179
176
  ], TuiTreeComponent.prototype, "child", void 0);
177
+ __decorate([
178
+ Input()
179
+ ], TuiTreeComponent.prototype, "content", void 0);
180
180
  TuiTreeComponent = TuiTreeComponent_1 = __decorate([
181
181
  Component({
182
182
  selector: 'tui-tree[value]',
@@ -257,8 +257,8 @@ TuiTreeControllerDirective = TuiTreeControllerDirective_1 = __decorate([
257
257
  var TuiTreeItemControllerDirective_1;
258
258
  let TuiTreeItemControllerDirective = TuiTreeItemControllerDirective_1 = class TuiTreeItemControllerDirective {
259
259
  constructor() {
260
- this.fallback = true;
261
260
  this.map = new WeakMap();
261
+ this.fallback = true;
262
262
  }
263
263
  isExpanded(item) {
264
264
  var _a;