@taiga-ui/kit 2.31.0 → 2.35.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 (931) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js +2 -2
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.js +3 -3
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-arrow.umd.js +44 -8
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.min.js +2 -2
  13. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-avatar.umd.js +2 -2
  15. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +2 -2
  17. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badge.umd.js +2 -2
  19. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
  21. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-badged-content.umd.js +2 -2
  23. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +2 -2
  25. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +2 -2
  27. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +1 -1
  29. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
  31. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +2 -2
  33. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-carousel.umd.js +1 -1
  35. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +1 -1
  37. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +2 -2
  39. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +2 -2
  41. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +2 -2
  43. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  45. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-checkbox.umd.js +2 -2
  47. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  49. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-combo-box.umd.js +128 -48
  51. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +2 -2
  53. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +17 -11
  55. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  57. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-field-error.umd.js +10 -15
  59. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-filter.umd.js +2 -2
  63. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  65. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-copy.umd.js +47 -17
  67. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +2 -2
  69. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-count.umd.js +43 -5
  71. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  73. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +69 -25
  75. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
  77. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +70 -26
  79. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +2 -2
  81. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-date.umd.js +65 -25
  83. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
  85. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-inline.umd.js +2 -15
  87. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +106 -34
  91. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +2 -2
  93. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-month.umd.js +94 -24
  95. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +2 -2
  97. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-number.umd.js +50 -4
  99. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  101. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-password.umd.js +49 -3
  103. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +14 -5
  107. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-phone.umd.js +64 -22
  111. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +2 -2
  113. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-input-range.umd.js +8 -5
  115. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  117. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input-slider.umd.js +8 -5
  119. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  121. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-input-tag.umd.js +53 -17
  123. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
  125. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-input-time.umd.js +19 -7
  127. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +2 -2
  129. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-input.umd.js +32 -3
  131. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  133. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +24 -14
  135. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  137. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +2 -2
  139. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  141. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-multi-select.umd.js +67 -19
  143. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
  145. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.js +140 -73
  147. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
  149. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-block.umd.js +2 -2
  151. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +2 -2
  155. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-radio-list.umd.js +2 -2
  159. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  161. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-radio.umd.js +7 -2
  163. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  165. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  167. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  168. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-rating.umd.js +5 -0
  170. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-rating.umd.min.js +1 -1
  172. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-select.umd.js +107 -36
  174. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  176. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-slider.umd.js +155 -27
  178. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  180. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -1
  182. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -1
  186. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-tag.umd.js +11 -5
  190. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  192. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-text-area.umd.js +6 -4
  194. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  195. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  196. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-kit-components-toggle.umd.js +7 -2
  198. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  200. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  201. package/bundles/taiga-ui-kit-constants.umd.js +8 -0
  202. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  203. package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
  204. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  205. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  207. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +421 -0
  208. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -0
  209. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +16 -0
  210. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -0
  211. package/bundles/taiga-ui-kit-pipes.umd.js +12 -4
  212. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-pipes.umd.min.js +1 -1
  214. package/bundles/taiga-ui-kit-providers.umd.js +31 -13
  215. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  216. package/bundles/taiga-ui-kit-providers.umd.min.js +1 -1
  217. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  218. package/bundles/taiga-ui-kit-tokens.umd.js +242 -4
  219. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-tokens.umd.min.js +15 -1
  221. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  222. package/bundles/taiga-ui-kit-utils-mask.umd.js +17 -8
  223. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  224. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +1 -1
  225. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  226. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +1 -1
  227. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  228. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js +1 -1
  229. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  230. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  231. package/components/arrow/arrow-options.d.ts +18 -0
  232. package/components/arrow/arrow.component.d.ts +5 -3
  233. package/components/arrow/index.d.ts +1 -0
  234. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  235. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  236. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  237. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  238. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  239. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  240. package/components/carousel/carousel-buttons.directive.d.ts +2 -2
  241. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  242. package/components/checkbox/checkbox.component.d.ts +2 -2
  243. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  244. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  245. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  246. package/components/combo-box/combo-box-strict.directive.d.ts +7 -0
  247. package/components/combo-box/combo-box.component.d.ts +11 -7
  248. package/components/combo-box/combo-box.directive.d.ts +6 -0
  249. package/components/combo-box/combo-box.providers.d.ts +2 -0
  250. package/components/combo-box/index.d.ts +3 -0
  251. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  252. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +5 -3
  253. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  254. package/components/field-error/field-error.component.d.ts +1 -2
  255. package/components/field-error/field-error.module.d.ts +3 -0
  256. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  257. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  258. package/components/input/index.d.ts +1 -0
  259. package/components/input/input.directive.d.ts +5 -0
  260. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  261. package/components/input-copy/index.d.ts +2 -0
  262. package/components/input-copy/input-copy.directive.d.ts +5 -0
  263. package/components/input-copy/input-copy.providers.d.ts +2 -0
  264. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  265. package/components/input-count/index.d.ts +1 -0
  266. package/components/input-count/input-count-options.d.ts +10 -4
  267. package/components/input-count/input-count.component.d.ts +3 -3
  268. package/components/input-count/input-count.directive.d.ts +6 -0
  269. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  270. package/components/input-date/index.d.ts +2 -0
  271. package/components/input-date/input-date.component.d.ts +0 -1
  272. package/components/input-date/input-date.directive.d.ts +7 -0
  273. package/components/input-date/input-date.providers.d.ts +4 -0
  274. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  275. package/components/input-date-range/index.d.ts +2 -0
  276. package/components/input-date-range/input-date-range.component.d.ts +0 -1
  277. package/components/input-date-range/input-date-range.directive.d.ts +7 -0
  278. package/components/input-date-range/input-date-range.providers.d.ts +4 -0
  279. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  280. package/components/input-date-time/index.d.ts +2 -0
  281. package/components/input-date-time/input-date-time.component.d.ts +0 -1
  282. package/components/input-date-time/input-date-time.directive.d.ts +7 -0
  283. package/components/input-date-time/input-date-time.providers.d.ts +4 -0
  284. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  285. package/components/input-inline/input-inline.component.d.ts +0 -1
  286. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  287. package/components/input-month/index.d.ts +2 -0
  288. package/components/input-month/input-month.component.d.ts +4 -2
  289. package/components/input-month/input-month.directive.d.ts +14 -0
  290. package/components/input-month/input-month.providers.d.ts +2 -0
  291. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  292. package/components/input-month-range/index.d.ts +2 -0
  293. package/components/input-month-range/input-month-range.component.d.ts +4 -5
  294. package/components/input-month-range/input-month-range.directive.d.ts +14 -0
  295. package/components/input-month-range/input-month-range.providers.d.ts +2 -0
  296. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  297. package/components/input-number/index.d.ts +1 -0
  298. package/components/input-number/input-number.component.d.ts +1 -1
  299. package/components/input-number/input-number.directive.d.ts +10 -0
  300. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  301. package/components/input-password/index.d.ts +1 -0
  302. package/components/input-password/input-password-options.d.ts +10 -4
  303. package/components/input-password/input-password.component.d.ts +3 -3
  304. package/components/input-password/input-password.directive.d.ts +8 -0
  305. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  306. package/components/input-phone/index.d.ts +1 -0
  307. package/components/input-phone/input-phone.component.d.ts +1 -1
  308. package/components/input-phone/input-phone.directive.d.ts +10 -0
  309. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  310. package/components/input-phone-international/input-phone-international.component.d.ts +2 -1
  311. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  312. package/components/input-range/input-range.component.d.ts +2 -1
  313. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  314. package/components/input-slider/input-slider.component.d.ts +2 -1
  315. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  316. package/components/input-tag/index.d.ts +1 -0
  317. package/components/input-tag/input-tag-options.d.ts +7 -0
  318. package/components/input-tag/input-tag.component.d.ts +9 -4
  319. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  320. package/components/input-time/input-time-options.d.ts +13 -4
  321. package/components/input-time/input-time.component.d.ts +9 -9
  322. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  323. package/components/line-clamp/line-clamp.component.d.ts +7 -3
  324. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  325. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  326. package/components/multi-select/hide-selected.pipe.d.ts +1 -1
  327. package/components/multi-select/index.d.ts +1 -0
  328. package/components/multi-select/multi-select-options.d.ts +10 -0
  329. package/components/multi-select/multi-select.component.d.ts +17 -8
  330. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  331. package/components/progress/index.d.ts +4 -3
  332. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +11 -0
  333. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  334. package/components/progress/{pipes → utils}/abstract-color-segments.d.ts +0 -0
  335. package/components/progress/utils/calculate-color-segments.d.ts +5 -0
  336. package/components/progress/{pipes → utils}/progress-color-segments-async.pipe.d.ts +5 -0
  337. package/components/progress/utils/progress-color-segments.pipe.d.ts +9 -0
  338. package/components/radio/radio-options.d.ts +10 -4
  339. package/components/radio/radio.component.d.ts +2 -2
  340. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  341. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  342. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  343. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  344. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  345. package/components/rating/rating-options.d.ts +2 -1
  346. package/components/rating/taiga-ui-kit-components-rating.metadata.json +1 -1
  347. package/components/select/index.d.ts +3 -0
  348. package/components/select/select-options.d.ts +9 -0
  349. package/components/select/select.component.d.ts +11 -5
  350. package/components/select/select.directive.d.ts +7 -0
  351. package/components/select/select.providers.d.ts +2 -0
  352. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  353. package/components/slider/index.d.ts +1 -0
  354. package/components/slider/slider-old.component.d.ts +19 -0
  355. package/components/slider/slider.component.d.ts +15 -13
  356. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  357. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  358. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  359. package/components/tag/tag.component.d.ts +1 -0
  360. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  361. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  362. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  363. package/components/toggle/toggle-options.d.ts +10 -4
  364. package/components/toggle/toggle.component.d.ts +3 -3
  365. package/constants/index.d.ts +1 -0
  366. package/constants/max-time-values.d.ts +2 -0
  367. package/constants/taiga-ui-kit-constants.metadata.json +1 -1
  368. package/directives/lazy-loading/index.d.ts +1 -0
  369. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +0 -1
  370. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  371. package/esm2015/abstract/input-slider.js +2 -2
  372. package/esm2015/abstract/slider/slider.js +2 -2
  373. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +3 -3
  374. package/esm2015/components/accordion/accordion.component.js +3 -3
  375. package/esm2015/components/arrow/arrow-options.js +28 -0
  376. package/esm2015/components/arrow/arrow.component.js +12 -8
  377. package/esm2015/components/arrow/arrow.module.js +3 -2
  378. package/esm2015/components/arrow/index.js +2 -1
  379. package/esm2015/components/avatar/avatar.component.js +3 -3
  380. package/esm2015/components/badge/badge.component.js +3 -3
  381. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  382. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +3 -3
  383. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  384. package/esm2015/components/carousel/carousel-buttons.directive.js +1 -1
  385. package/esm2015/components/carousel/carousel.component.js +1 -1
  386. package/esm2015/components/checkbox/checkbox.component.js +3 -3
  387. package/esm2015/components/checkbox-block/checkbox-block.component.js +3 -3
  388. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  389. package/esm2015/components/combo-box/combo-box-strict.directive.js +31 -0
  390. package/esm2015/components/combo-box/combo-box.component.js +40 -51
  391. package/esm2015/components/combo-box/combo-box.directive.js +25 -0
  392. package/esm2015/components/combo-box/combo-box.module.js +15 -4
  393. package/esm2015/components/combo-box/combo-box.providers.js +28 -0
  394. package/esm2015/components/combo-box/index.js +4 -1
  395. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +17 -11
  396. package/esm2015/components/field-error/field-error.component.js +8 -12
  397. package/esm2015/components/field-error/field-error.module.js +6 -2
  398. package/esm2015/components/filter/filter.component.js +3 -3
  399. package/esm2015/components/input/index.js +2 -1
  400. package/esm2015/components/input/input.component.js +2 -2
  401. package/esm2015/components/input/input.directive.js +22 -0
  402. package/esm2015/components/input/input.module.js +5 -4
  403. package/esm2015/components/input/input.providers.js +6 -2
  404. package/esm2015/components/input-copy/index.js +3 -1
  405. package/esm2015/components/input-copy/input-copy.component.js +8 -15
  406. package/esm2015/components/input-copy/input-copy.directive.js +22 -0
  407. package/esm2015/components/input-copy/input-copy.module.js +5 -4
  408. package/esm2015/components/input-copy/input-copy.providers.js +16 -0
  409. package/esm2015/components/input-count/index.js +2 -1
  410. package/esm2015/components/input-count/input-count-options.js +5 -1
  411. package/esm2015/components/input-count/input-count.component.js +8 -4
  412. package/esm2015/components/input-count/input-count.directive.js +26 -0
  413. package/esm2015/components/input-count/input-count.module.js +5 -4
  414. package/esm2015/components/input-date/index.js +3 -1
  415. package/esm2015/components/input-date/input-date.component.js +9 -27
  416. package/esm2015/components/input-date/input-date.directive.js +28 -0
  417. package/esm2015/components/input-date/input-date.module.js +5 -4
  418. package/esm2015/components/input-date/input-date.providers.js +29 -0
  419. package/esm2015/components/input-date-range/index.js +3 -1
  420. package/esm2015/components/input-date-range/input-date-range.component.js +9 -27
  421. package/esm2015/components/input-date-range/input-date-range.directive.js +28 -0
  422. package/esm2015/components/input-date-range/input-date-range.module.js +9 -4
  423. package/esm2015/components/input-date-range/input-date-range.providers.js +29 -0
  424. package/esm2015/components/input-date-time/index.js +3 -1
  425. package/esm2015/components/input-date-time/input-date-time.component.js +10 -28
  426. package/esm2015/components/input-date-time/input-date-time.directive.js +28 -0
  427. package/esm2015/components/input-date-time/input-date-time.module.js +9 -4
  428. package/esm2015/components/input-date-time/input-date-time.providers.js +29 -0
  429. package/esm2015/components/input-inline/input-inline.component.js +4 -13
  430. package/esm2015/components/input-month/index.js +3 -1
  431. package/esm2015/components/input-month/input-month.component.js +19 -21
  432. package/esm2015/components/input-month/input-month.directive.js +55 -0
  433. package/esm2015/components/input-month/input-month.module.js +7 -6
  434. package/esm2015/components/input-month/input-month.providers.js +19 -0
  435. package/esm2015/components/input-month-range/index.js +3 -1
  436. package/esm2015/components/input-month-range/input-month-range.component.js +21 -33
  437. package/esm2015/components/input-month-range/input-month-range.directive.js +60 -0
  438. package/esm2015/components/input-month-range/input-month-range.module.js +11 -5
  439. package/esm2015/components/input-month-range/input-month-range.providers.js +19 -0
  440. package/esm2015/components/input-number/index.js +2 -1
  441. package/esm2015/components/input-number/input-number.component.js +8 -4
  442. package/esm2015/components/input-number/input-number.directive.js +35 -0
  443. package/esm2015/components/input-number/input-number.module.js +5 -4
  444. package/esm2015/components/input-password/index.js +2 -1
  445. package/esm2015/components/input-password/input-password-options.js +5 -1
  446. package/esm2015/components/input-password/input-password.component.js +7 -3
  447. package/esm2015/components/input-password/input-password.directive.js +30 -0
  448. package/esm2015/components/input-password/input-password.module.js +9 -4
  449. package/esm2015/components/input-phone/index.js +2 -1
  450. package/esm2015/components/input-phone/input-phone.component.js +13 -24
  451. package/esm2015/components/input-phone/input-phone.directive.js +35 -0
  452. package/esm2015/components/input-phone/input-phone.module.js +5 -4
  453. package/esm2015/components/input-phone/input-phone.providers.js +17 -3
  454. package/esm2015/components/input-phone-international/input-phone-international.component.js +11 -6
  455. package/esm2015/components/input-range/input-range.component.js +10 -7
  456. package/esm2015/components/input-slider/input-slider.component.js +10 -7
  457. package/esm2015/components/input-tag/index.js +2 -1
  458. package/esm2015/components/input-tag/input-tag-options.js +9 -0
  459. package/esm2015/components/input-tag/input-tag.component.js +40 -17
  460. package/esm2015/components/input-time/input-time-options.js +8 -1
  461. package/esm2015/components/input-time/input-time.component.js +10 -5
  462. package/esm2015/components/line-clamp/line-clamp.component.js +25 -15
  463. package/esm2015/components/marker-icon/marker-icon.component.js +3 -3
  464. package/esm2015/components/multi-select/hide-selected.pipe.js +4 -3
  465. package/esm2015/components/multi-select/index.js +2 -1
  466. package/esm2015/components/multi-select/multi-select-options.js +13 -0
  467. package/esm2015/components/multi-select/multi-select.component.js +42 -15
  468. package/esm2015/components/multi-select/multi-select.module.js +3 -1
  469. package/esm2015/components/progress/index.js +5 -4
  470. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +48 -0
  471. package/esm2015/components/progress/progress.module.js +6 -3
  472. package/esm2015/components/progress/utils/abstract-color-segments.js +32 -0
  473. package/esm2015/components/progress/utils/calculate-color-segments.js +10 -0
  474. package/esm2015/components/progress/utils/progress-color-segments-async.pipe.js +21 -0
  475. package/esm2015/components/progress/utils/progress-color-segments.pipe.js +19 -0
  476. package/esm2015/components/radio/radio-options.js +5 -1
  477. package/esm2015/components/radio/radio.component.js +3 -3
  478. package/esm2015/components/radio-block/radio-block.component.js +3 -3
  479. package/esm2015/components/radio-labeled/radio-labeled.component.js +3 -3
  480. package/esm2015/components/radio-list/radio-list.component.js +3 -3
  481. package/esm2015/components/range/range.component.js +1 -1
  482. package/esm2015/components/rating/rating-options.js +5 -1
  483. package/esm2015/components/select/index.js +4 -1
  484. package/esm2015/components/select/select-options.js +12 -0
  485. package/esm2015/components/select/select.component.js +36 -39
  486. package/esm2015/components/select/select.directive.js +28 -0
  487. package/esm2015/components/select/select.module.js +5 -4
  488. package/esm2015/components/select/select.providers.js +28 -0
  489. package/esm2015/components/slider/index.js +2 -1
  490. package/esm2015/components/slider/slider-old.component.js +71 -0
  491. package/esm2015/components/slider/slider.component.js +78 -44
  492. package/esm2015/components/slider/slider.module.js +4 -3
  493. package/esm2015/components/stepper/step/step.component.js +3 -3
  494. package/esm2015/components/tabs/tab/tab.providers.js +3 -3
  495. package/esm2015/components/tag/tag.component.js +12 -6
  496. package/esm2015/components/text-area/text-area.component.js +7 -4
  497. package/esm2015/components/text-area/text-area.module.js +2 -3
  498. package/esm2015/components/toggle/toggle-options.js +5 -1
  499. package/esm2015/components/toggle/toggle.component.js +3 -3
  500. package/esm2015/constants/index.js +2 -1
  501. package/esm2015/constants/max-time-values.js +7 -0
  502. package/esm2015/directives/lazy-loading/index.js +2 -1
  503. package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
  504. package/esm2015/pipes/field-error/field-error-content-pipe.js +35 -0
  505. package/esm2015/pipes/field-error/field-error-pipe.js +120 -0
  506. package/esm2015/pipes/field-error/field-error.module.js +14 -0
  507. package/esm2015/pipes/field-error/index.js +4 -0
  508. package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  509. package/esm2015/pipes/index.js +2 -1
  510. package/esm2015/providers/index.js +2 -1
  511. package/esm2015/providers/month-formatter.provider.js +17 -0
  512. package/esm2015/providers/value-accessor.provider.js +4 -3
  513. package/esm2015/tokens/index.js +3 -1
  514. package/esm2015/tokens/items-handlers.js +15 -0
  515. package/esm2015/tokens/month-formatter.js +3 -0
  516. package/esm2015/types/index.js +1 -1
  517. package/esm2015/types/time-format-parts.js +1 -0
  518. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -6
  519. package/esm2015/utils/mask/create-time-mask.js +16 -8
  520. package/esm2015/utils/miscellaneous/get-precision.js +2 -2
  521. package/esm5/abstract/input-slider.js +2 -2
  522. package/esm5/abstract/slider/slider.js +2 -2
  523. package/esm5/components/accordion/accordion-item/accordion-item.component.js +3 -3
  524. package/esm5/components/accordion/accordion.component.js +3 -3
  525. package/esm5/components/arrow/arrow-options.js +29 -0
  526. package/esm5/components/arrow/arrow.component.js +12 -8
  527. package/esm5/components/arrow/arrow.module.js +3 -2
  528. package/esm5/components/arrow/index.js +2 -1
  529. package/esm5/components/avatar/avatar.component.js +3 -3
  530. package/esm5/components/badge/badge.component.js +3 -3
  531. package/esm5/components/badged-content/badged-content.component.js +3 -3
  532. package/esm5/components/breadcrumbs/breadcrumbs.component.js +3 -3
  533. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  534. package/esm5/components/carousel/carousel-buttons.directive.js +1 -1
  535. package/esm5/components/carousel/carousel.component.js +1 -1
  536. package/esm5/components/checkbox/checkbox.component.js +3 -3
  537. package/esm5/components/checkbox-block/checkbox-block.component.js +3 -3
  538. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  539. package/esm5/components/combo-box/combo-box-strict.directive.js +32 -0
  540. package/esm5/components/combo-box/combo-box.component.js +39 -51
  541. package/esm5/components/combo-box/combo-box.directive.js +35 -0
  542. package/esm5/components/combo-box/combo-box.module.js +15 -4
  543. package/esm5/components/combo-box/combo-box.providers.js +28 -0
  544. package/esm5/components/combo-box/index.js +4 -1
  545. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +18 -11
  546. package/esm5/components/field-error/field-error.component.js +8 -16
  547. package/esm5/components/field-error/field-error.module.js +6 -2
  548. package/esm5/components/filter/filter.component.js +3 -3
  549. package/esm5/components/input/index.js +2 -1
  550. package/esm5/components/input/input.component.js +2 -2
  551. package/esm5/components/input/input.directive.js +28 -0
  552. package/esm5/components/input/input.module.js +5 -4
  553. package/esm5/components/input/input.providers.js +6 -2
  554. package/esm5/components/input-copy/index.js +3 -1
  555. package/esm5/components/input-copy/input-copy.component.js +7 -15
  556. package/esm5/components/input-copy/input-copy.directive.js +28 -0
  557. package/esm5/components/input-copy/input-copy.module.js +5 -4
  558. package/esm5/components/input-copy/input-copy.providers.js +16 -0
  559. package/esm5/components/input-count/index.js +2 -1
  560. package/esm5/components/input-count/input-count-options.js +6 -1
  561. package/esm5/components/input-count/input-count.component.js +8 -4
  562. package/esm5/components/input-count/input-count.directive.js +32 -0
  563. package/esm5/components/input-count/input-count.module.js +5 -4
  564. package/esm5/components/input-date/index.js +3 -1
  565. package/esm5/components/input-date/input-date.component.js +8 -27
  566. package/esm5/components/input-date/input-date.directive.js +38 -0
  567. package/esm5/components/input-date/input-date.module.js +5 -4
  568. package/esm5/components/input-date/input-date.providers.js +29 -0
  569. package/esm5/components/input-date-range/index.js +3 -1
  570. package/esm5/components/input-date-range/input-date-range.component.js +8 -27
  571. package/esm5/components/input-date-range/input-date-range.directive.js +38 -0
  572. package/esm5/components/input-date-range/input-date-range.module.js +9 -4
  573. package/esm5/components/input-date-range/input-date-range.providers.js +29 -0
  574. package/esm5/components/input-date-time/index.js +3 -1
  575. package/esm5/components/input-date-time/input-date-time.component.js +9 -28
  576. package/esm5/components/input-date-time/input-date-time.directive.js +38 -0
  577. package/esm5/components/input-date-time/input-date-time.module.js +9 -4
  578. package/esm5/components/input-date-time/input-date-time.providers.js +29 -0
  579. package/esm5/components/input-inline/input-inline.component.js +4 -17
  580. package/esm5/components/input-month/index.js +3 -1
  581. package/esm5/components/input-month/input-month.component.js +18 -21
  582. package/esm5/components/input-month/input-month.directive.js +67 -0
  583. package/esm5/components/input-month/input-month.module.js +7 -6
  584. package/esm5/components/input-month/input-month.providers.js +19 -0
  585. package/esm5/components/input-month-range/index.js +3 -1
  586. package/esm5/components/input-month-range/input-month-range.component.js +20 -34
  587. package/esm5/components/input-month-range/input-month-range.directive.js +74 -0
  588. package/esm5/components/input-month-range/input-month-range.module.js +11 -5
  589. package/esm5/components/input-month-range/input-month-range.providers.js +19 -0
  590. package/esm5/components/input-number/index.js +2 -1
  591. package/esm5/components/input-number/input-number.component.js +8 -4
  592. package/esm5/components/input-number/input-number.directive.js +45 -0
  593. package/esm5/components/input-number/input-number.module.js +5 -4
  594. package/esm5/components/input-password/index.js +2 -1
  595. package/esm5/components/input-password/input-password-options.js +6 -1
  596. package/esm5/components/input-password/input-password.component.js +7 -3
  597. package/esm5/components/input-password/input-password.directive.js +36 -0
  598. package/esm5/components/input-password/input-password.module.js +9 -4
  599. package/esm5/components/input-phone/index.js +2 -1
  600. package/esm5/components/input-phone/input-phone.component.js +12 -24
  601. package/esm5/components/input-phone/input-phone.directive.js +45 -0
  602. package/esm5/components/input-phone/input-phone.module.js +5 -4
  603. package/esm5/components/input-phone/input-phone.providers.js +17 -3
  604. package/esm5/components/input-phone-international/input-phone-international.component.js +15 -6
  605. package/esm5/components/input-range/input-range.component.js +10 -7
  606. package/esm5/components/input-slider/input-slider.component.js +10 -7
  607. package/esm5/components/input-tag/index.js +2 -1
  608. package/esm5/components/input-tag/input-tag-options.js +9 -0
  609. package/esm5/components/input-tag/input-tag.component.js +45 -18
  610. package/esm5/components/input-time/input-time-options.js +9 -1
  611. package/esm5/components/input-time/input-time.component.js +10 -5
  612. package/esm5/components/line-clamp/line-clamp.component.js +26 -16
  613. package/esm5/components/marker-icon/marker-icon.component.js +3 -3
  614. package/esm5/components/multi-select/hide-selected.pipe.js +4 -4
  615. package/esm5/components/multi-select/index.js +2 -1
  616. package/esm5/components/multi-select/multi-select-options.js +14 -0
  617. package/esm5/components/multi-select/multi-select.component.js +50 -15
  618. package/esm5/components/multi-select/multi-select.module.js +3 -1
  619. package/esm5/components/progress/index.js +5 -4
  620. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +56 -0
  621. package/esm5/components/progress/progress.module.js +6 -3
  622. package/esm5/components/progress/utils/abstract-color-segments.js +33 -0
  623. package/esm5/components/progress/utils/calculate-color-segments.js +12 -0
  624. package/esm5/components/progress/utils/progress-color-segments-async.pipe.js +27 -0
  625. package/esm5/components/progress/utils/progress-color-segments.pipe.js +24 -0
  626. package/esm5/components/radio/radio-options.js +6 -1
  627. package/esm5/components/radio/radio.component.js +3 -3
  628. package/esm5/components/radio-block/radio-block.component.js +3 -3
  629. package/esm5/components/radio-labeled/radio-labeled.component.js +3 -3
  630. package/esm5/components/radio-list/radio-list.component.js +3 -3
  631. package/esm5/components/range/range.component.js +1 -1
  632. package/esm5/components/rating/rating-options.js +6 -1
  633. package/esm5/components/select/index.js +4 -1
  634. package/esm5/components/select/select-options.js +13 -0
  635. package/esm5/components/select/select.component.js +35 -39
  636. package/esm5/components/select/select.directive.js +42 -0
  637. package/esm5/components/select/select.module.js +5 -4
  638. package/esm5/components/select/select.providers.js +28 -0
  639. package/esm5/components/slider/index.js +2 -1
  640. package/esm5/components/slider/slider-old.component.js +90 -0
  641. package/esm5/components/slider/slider.component.js +95 -51
  642. package/esm5/components/slider/slider.module.js +4 -3
  643. package/esm5/components/stepper/step/step.component.js +3 -3
  644. package/esm5/components/tabs/tab/tab.providers.js +3 -3
  645. package/esm5/components/tag/tag.component.js +12 -6
  646. package/esm5/components/text-area/text-area.component.js +7 -4
  647. package/esm5/components/text-area/text-area.module.js +2 -3
  648. package/esm5/components/toggle/toggle-options.js +6 -1
  649. package/esm5/components/toggle/toggle.component.js +3 -3
  650. package/esm5/constants/index.js +2 -1
  651. package/esm5/constants/max-time-values.js +7 -0
  652. package/esm5/directives/lazy-loading/index.js +2 -1
  653. package/esm5/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
  654. package/esm5/pipes/field-error/field-error-content-pipe.js +36 -0
  655. package/esm5/pipes/field-error/field-error-pipe.js +153 -0
  656. package/esm5/pipes/field-error/field-error.module.js +17 -0
  657. package/esm5/pipes/field-error/index.js +4 -0
  658. package/esm5/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  659. package/esm5/pipes/index.js +2 -1
  660. package/esm5/providers/index.js +2 -1
  661. package/esm5/providers/month-formatter.provider.js +19 -0
  662. package/esm5/providers/value-accessor.provider.js +4 -3
  663. package/esm5/tokens/index.js +3 -1
  664. package/esm5/tokens/items-handlers.js +16 -0
  665. package/esm5/tokens/month-formatter.js +3 -0
  666. package/esm5/types/index.js +1 -1
  667. package/esm5/types/time-format-parts.js +1 -0
  668. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +8 -5
  669. package/esm5/utils/mask/create-time-mask.js +15 -7
  670. package/esm5/utils/miscellaneous/get-precision.js +2 -2
  671. package/fesm2015/taiga-ui-kit-abstract.js +2 -2
  672. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  673. package/fesm2015/taiga-ui-kit-components-accordion.js +4 -4
  674. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  675. package/fesm2015/taiga-ui-kit-components-arrow.js +40 -11
  676. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  677. package/fesm2015/taiga-ui-kit-components-avatar.js +2 -2
  678. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  679. package/fesm2015/taiga-ui-kit-components-badge.js +2 -2
  680. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  681. package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
  682. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  683. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +2 -2
  684. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  685. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  686. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  687. package/fesm2015/taiga-ui-kit-components-carousel.js +1 -1
  688. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  689. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +2 -2
  690. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  691. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  692. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  693. package/fesm2015/taiga-ui-kit-components-checkbox.js +2 -2
  694. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  695. package/fesm2015/taiga-ui-kit-components-combo-box.js +117 -49
  696. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  697. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +16 -10
  698. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  699. package/fesm2015/taiga-ui-kit-components-field-error.js +12 -13
  700. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  701. package/fesm2015/taiga-ui-kit-components-filter.js +2 -2
  702. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  703. package/fesm2015/taiga-ui-kit-components-input-copy.js +41 -18
  704. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  705. package/fesm2015/taiga-ui-kit-components-input-count.js +38 -8
  706. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  707. package/fesm2015/taiga-ui-kit-components-input-date-range.js +61 -28
  708. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  709. package/fesm2015/taiga-ui-kit-components-input-date-time.js +62 -29
  710. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  711. package/fesm2015/taiga-ui-kit-components-input-date.js +57 -28
  712. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  713. package/fesm2015/taiga-ui-kit-components-input-inline.js +3 -12
  714. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  715. package/fesm2015/taiga-ui-kit-components-input-month-range.js +95 -35
  716. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  717. package/fesm2015/taiga-ui-kit-components-input-month.js +85 -25
  718. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  719. package/fesm2015/taiga-ui-kit-components-input-number.js +43 -8
  720. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  721. package/fesm2015/taiga-ui-kit-components-input-password.js +44 -6
  722. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  723. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +10 -5
  724. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  725. package/fesm2015/taiga-ui-kit-components-input-phone.js +58 -26
  726. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  727. package/fesm2015/taiga-ui-kit-components-input-range.js +9 -6
  728. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  729. package/fesm2015/taiga-ui-kit-components-input-slider.js +9 -6
  730. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  731. package/fesm2015/taiga-ui-kit-components-input-tag.js +48 -18
  732. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  733. package/fesm2015/taiga-ui-kit-components-input-time.js +16 -4
  734. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  735. package/fesm2015/taiga-ui-kit-components-input.js +28 -6
  736. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  737. package/fesm2015/taiga-ui-kit-components-line-clamp.js +24 -14
  738. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  739. package/fesm2015/taiga-ui-kit-components-marker-icon.js +2 -2
  740. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  741. package/fesm2015/taiga-ui-kit-components-multi-select.js +58 -18
  742. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  743. package/fesm2015/taiga-ui-kit-components-progress.js +113 -55
  744. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-radio-block.js +2 -2
  746. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +2 -2
  748. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-radio-list.js +2 -2
  750. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-radio.js +7 -3
  752. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  754. package/fesm2015/taiga-ui-kit-components-rating.js +5 -1
  755. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  756. package/fesm2015/taiga-ui-kit-components-select.js +91 -37
  757. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  758. package/fesm2015/taiga-ui-kit-components-slider.js +114 -14
  759. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  760. package/fesm2015/taiga-ui-kit-components-stepper.js +2 -2
  761. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  762. package/fesm2015/taiga-ui-kit-components-tabs.js +2 -2
  763. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  764. package/fesm2015/taiga-ui-kit-components-tag.js +11 -5
  765. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  766. package/fesm2015/taiga-ui-kit-components-text-area.js +7 -5
  767. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  768. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -3
  769. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  770. package/fesm2015/taiga-ui-kit-constants.js +8 -1
  771. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  772. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +1 -1
  773. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  774. package/fesm2015/taiga-ui-kit-pipes-field-error.js +166 -0
  775. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -0
  776. package/fesm2015/taiga-ui-kit-pipes.js +1 -0
  777. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  778. package/fesm2015/taiga-ui-kit-providers.js +19 -4
  779. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  780. package/fesm2015/taiga-ui-kit-tokens.js +17 -1
  781. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  782. package/fesm2015/taiga-ui-kit-utils-mask.js +20 -12
  783. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  784. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +1 -1
  785. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  786. package/fesm5/taiga-ui-kit-abstract.js +2 -2
  787. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  788. package/fesm5/taiga-ui-kit-components-accordion.js +4 -4
  789. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  790. package/fesm5/taiga-ui-kit-components-arrow.js +41 -12
  791. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  792. package/fesm5/taiga-ui-kit-components-avatar.js +2 -2
  793. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  794. package/fesm5/taiga-ui-kit-components-badge.js +2 -2
  795. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  796. package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
  797. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  798. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +2 -2
  799. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  800. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  801. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  802. package/fesm5/taiga-ui-kit-components-carousel.js +1 -1
  803. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  804. package/fesm5/taiga-ui-kit-components-checkbox-block.js +2 -2
  805. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  806. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  807. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  808. package/fesm5/taiga-ui-kit-components-checkbox.js +2 -2
  809. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  810. package/fesm5/taiga-ui-kit-components-combo-box.js +127 -49
  811. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  812. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +17 -10
  813. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  814. package/fesm5/taiga-ui-kit-components-field-error.js +12 -17
  815. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  816. package/fesm5/taiga-ui-kit-components-filter.js +2 -2
  817. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  818. package/fesm5/taiga-ui-kit-components-input-copy.js +46 -18
  819. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  820. package/fesm5/taiga-ui-kit-components-input-count.js +45 -9
  821. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  822. package/fesm5/taiga-ui-kit-components-input-date-range.js +70 -28
  823. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  824. package/fesm5/taiga-ui-kit-components-input-date-time.js +71 -29
  825. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  826. package/fesm5/taiga-ui-kit-components-input-date.js +66 -28
  827. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  828. package/fesm5/taiga-ui-kit-components-input-inline.js +3 -16
  829. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  830. package/fesm5/taiga-ui-kit-components-input-month-range.js +109 -37
  831. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  832. package/fesm5/taiga-ui-kit-components-input-month.js +96 -25
  833. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  834. package/fesm5/taiga-ui-kit-components-input-number.js +53 -8
  835. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  836. package/fesm5/taiga-ui-kit-components-input-password.js +51 -7
  837. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  838. package/fesm5/taiga-ui-kit-components-input-phone-international.js +14 -5
  839. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  840. package/fesm5/taiga-ui-kit-components-input-phone.js +67 -26
  841. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  842. package/fesm5/taiga-ui-kit-components-input-range.js +9 -6
  843. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  844. package/fesm5/taiga-ui-kit-components-input-slider.js +9 -6
  845. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  846. package/fesm5/taiga-ui-kit-components-input-tag.js +53 -19
  847. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  848. package/fesm5/taiga-ui-kit-components-input-time.js +17 -5
  849. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  850. package/fesm5/taiga-ui-kit-components-input.js +35 -7
  851. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  852. package/fesm5/taiga-ui-kit-components-line-clamp.js +25 -15
  853. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  854. package/fesm5/taiga-ui-kit-components-marker-icon.js +2 -2
  855. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  856. package/fesm5/taiga-ui-kit-components-multi-select.js +67 -20
  857. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-progress.js +135 -69
  859. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-radio-block.js +2 -2
  861. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-radio-labeled.js +2 -2
  863. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-radio-list.js +2 -2
  865. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-radio.js +8 -4
  867. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-range.js +1 -1
  869. package/fesm5/taiga-ui-kit-components-rating.js +6 -2
  870. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  871. package/fesm5/taiga-ui-kit-components-select.js +105 -38
  872. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  873. package/fesm5/taiga-ui-kit-components-slider.js +155 -26
  874. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  875. package/fesm5/taiga-ui-kit-components-stepper.js +2 -2
  876. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  877. package/fesm5/taiga-ui-kit-components-tabs.js +2 -2
  878. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  879. package/fesm5/taiga-ui-kit-components-tag.js +11 -5
  880. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  881. package/fesm5/taiga-ui-kit-components-text-area.js +7 -5
  882. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  883. package/fesm5/taiga-ui-kit-components-toggle.js +8 -4
  884. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  885. package/fesm5/taiga-ui-kit-constants.js +8 -1
  886. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  887. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +1 -1
  888. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  889. package/fesm5/taiga-ui-kit-pipes-field-error.js +203 -0
  890. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -0
  891. package/fesm5/taiga-ui-kit-pipes.js +1 -0
  892. package/fesm5/taiga-ui-kit-pipes.js.map +1 -1
  893. package/fesm5/taiga-ui-kit-providers.js +21 -4
  894. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  895. package/fesm5/taiga-ui-kit-tokens.js +18 -1
  896. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  897. package/fesm5/taiga-ui-kit-utils-mask.js +19 -10
  898. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  899. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +1 -1
  900. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  901. package/package.json +12 -12
  902. package/pipes/field-error/field-error-content-pipe.d.ts +11 -0
  903. package/pipes/field-error/field-error-pipe.d.ts +29 -0
  904. package/pipes/field-error/field-error.module.d.ts +2 -0
  905. package/pipes/field-error/index.d.ts +3 -0
  906. package/pipes/field-error/package.json +13 -0
  907. package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +4 -0
  908. package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -0
  909. package/pipes/index.d.ts +1 -0
  910. package/pipes/taiga-ui-kit-pipes.metadata.json +1 -1
  911. package/providers/index.d.ts +1 -0
  912. package/providers/month-formatter.provider.d.ts +6 -0
  913. package/providers/taiga-ui-kit-providers.metadata.json +1 -1
  914. package/providers/value-accessor.provider.d.ts +1 -1
  915. package/tokens/index.d.ts +2 -0
  916. package/tokens/items-handlers.d.ts +10 -0
  917. package/tokens/month-formatter.d.ts +4 -0
  918. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  919. package/types/index.d.ts +1 -0
  920. package/types/taiga-ui-kit-types.metadata.json +1 -1
  921. package/types/time-format-parts.d.ts +1 -0
  922. package/utils/mask/create-auto-corrected-time-pipe.d.ts +2 -1
  923. package/utils/mask/create-time-mask.d.ts +2 -1
  924. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  925. package/components/progress/pipes/progress-color-segments.pipe.d.ts +0 -9
  926. package/esm2015/components/progress/pipes/abstract-color-segments.js +0 -32
  927. package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +0 -15
  928. package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +0 -18
  929. package/esm5/components/progress/pipes/abstract-color-segments.js +0 -35
  930. package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +0 -21
  931. package/esm5/components/progress/pipes/progress-color-segments.pipe.js +0 -23
@@ -1,68 +1,197 @@
1
- import { __extends, __decorate, __param } from 'tslib';
1
+ import { __decorate, __param, __extends } from 'tslib';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ElementRef, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
+ import { NgModel, NgControl } from '@angular/forms';
4
+ import { USER_AGENT } from '@ng-web-apis/common';
5
+ import { watch, isEdgeOlderThan, CHROMIUM_EDGE_START_VERSION, tuiDefaultProp, isNativeFocused, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiRepeatTimesModule, TuiFocusableModule, TuiFocusVisibleModule, TuiActiveZoneModule } from '@taiga-ui/cdk';
6
+ import { take } from 'rxjs/operators';
2
7
  import { DOCUMENT, CommonModule } from '@angular/common';
3
- import { Optional, Self, Inject, ChangeDetectorRef, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
4
- import { NgControl } from '@angular/forms';
5
- import { isNativeFocused, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiRepeatTimesModule, TuiFocusableModule, TuiFocusVisibleModule, TuiActiveZoneModule } from '@taiga-ui/cdk';
8
+ import { TuiFormatNumberPipeModule } from '@taiga-ui/core';
6
9
  import { AbstractTuiSlider } from '@taiga-ui/kit/abstract';
7
10
  import { TUI_FROM_TO_TEXTS } from '@taiga-ui/kit/tokens';
8
11
  import { Observable } from 'rxjs';
9
- import { TuiFormatNumberPipeModule } from '@taiga-ui/core';
10
12
 
13
+ var TuiSliderComponent = /** @class */ (function () {
14
+ function TuiSliderComponent(control, changeDetectorRef, elementRef, userAgent) {
15
+ var _a;
16
+ this.elementRef = elementRef;
17
+ this.userAgent = userAgent;
18
+ this.size = 'm';
19
+ this.segments = 1;
20
+ if (control instanceof NgModel) {
21
+ /**
22
+ * The ValueAccessor.writeValue method is called twice on any value accessor during component initialization,
23
+ * when a control is bound using [(ngModel)], first time with a phantom null value.
24
+ * With `changeDetection: ChangeDetectionStrategy.OnPush` the second call of writeValue with real value don't re-render the view.
25
+ * ___
26
+ * See this {@link https://github.com/angular/angular/issues/14988 issue}
27
+ */
28
+ (_a = control.valueChanges) === null || _a === void 0 ? void 0 : _a.pipe(watch(changeDetectorRef), take(1)).subscribe();
29
+ }
30
+ }
31
+ Object.defineProperty(TuiSliderComponent.prototype, "min", {
32
+ get: function () {
33
+ return Number(this.elementRef.nativeElement.min);
34
+ },
35
+ enumerable: true,
36
+ configurable: true
37
+ });
38
+ Object.defineProperty(TuiSliderComponent.prototype, "max", {
39
+ get: function () {
40
+ return Number(this.elementRef.nativeElement.max) || 100;
41
+ },
42
+ enumerable: true,
43
+ configurable: true
44
+ });
45
+ Object.defineProperty(TuiSliderComponent.prototype, "step", {
46
+ get: function () {
47
+ return Number(this.elementRef.nativeElement.step) || 1;
48
+ },
49
+ enumerable: true,
50
+ configurable: true
51
+ });
52
+ Object.defineProperty(TuiSliderComponent.prototype, "value", {
53
+ get: function () {
54
+ return Number(this.elementRef.nativeElement.value) || 0;
55
+ },
56
+ enumerable: true,
57
+ configurable: true
58
+ });
59
+ Object.defineProperty(TuiSliderComponent.prototype, "fillPercentage", {
60
+ get: function () {
61
+ return (100 * this.value) / (this.max - this.min);
62
+ },
63
+ enumerable: true,
64
+ configurable: true
65
+ });
66
+ Object.defineProperty(TuiSliderComponent.prototype, "stepPercentage", {
67
+ get: function () {
68
+ return 100 / this.segments - 0.1;
69
+ },
70
+ enumerable: true,
71
+ configurable: true
72
+ });
73
+ Object.defineProperty(TuiSliderComponent.prototype, "isOldEdge", {
74
+ get: function () {
75
+ return isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent);
76
+ },
77
+ enumerable: true,
78
+ configurable: true
79
+ });
80
+ TuiSliderComponent.ctorParameters = function () { return [
81
+ { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
82
+ { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
83
+ { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
84
+ { type: String, decorators: [{ type: Inject, args: [USER_AGENT,] }] }
85
+ ]; };
86
+ __decorate([
87
+ Input(),
88
+ HostBinding('attr.data-size'),
89
+ tuiDefaultProp()
90
+ ], TuiSliderComponent.prototype, "size", void 0);
91
+ __decorate([
92
+ Input(),
93
+ tuiDefaultProp()
94
+ ], TuiSliderComponent.prototype, "segments", void 0);
95
+ __decorate([
96
+ HostBinding('style.--tui-slider-fill-percentage.%')
97
+ ], TuiSliderComponent.prototype, "fillPercentage", null);
98
+ __decorate([
99
+ HostBinding('style.--tui-slider-segment-width.%')
100
+ ], TuiSliderComponent.prototype, "stepPercentage", null);
101
+ __decorate([
102
+ HostBinding('class._old-edge')
103
+ ], TuiSliderComponent.prototype, "isOldEdge", null);
104
+ TuiSliderComponent = __decorate([
105
+ Component({
106
+ /**
107
+ * We have to call our component as `<input tuiSlider type="range" ... />`
108
+ * because otherwise built-in angular
109
+ * {@link https://github.com/angular/angular/blob/master/packages/forms/src/directives/range_value_accessor.ts#L45 RangeValueAccessor}
110
+ * cannot be matched by its CSS selector.
111
+ */
112
+ selector: 'input[type=range][tuiSlider]',
113
+ template: "",
114
+ host: {
115
+ /**
116
+ * For change detection.
117
+ * Webkit does not have built-in method for customization of filling progress (as Firefox).
118
+ * We draw filling of progress by `background: linear-gradient(...)` of the track.
119
+ * This function triggers change detection (for `fillPercentage` function) when we drag thumb of the input.
120
+ */
121
+ '(input)': '0',
122
+ },
123
+ changeDetection: ChangeDetectionStrategy.OnPush,
124
+ styles: [":host{display:block;width:100%;color:var(--tui-primary);cursor:pointer}:host:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}:host:not(._old-edge){-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.125rem;padding:.4375rem 0;background:var(--tui-base-03);background-clip:content-box;outline:0}:host:not(._old-edge)::-webkit-slider-runnable-track{height:.125rem;border-radius:var(--tui-radius-m);background:linear-gradient(to right,currentColor 0 .25rem,transparent .25rem),linear-gradient(to left,var(--tui-base-03) 0 .25rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent .25rem var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage))}:host:not(._old-edge)::-moz-range-track{height:.125rem;border-radius:var(--tui-radius-m);background:linear-gradient(to right,currentColor 0 .25rem,transparent .25rem),linear-gradient(to left,var(--tui-base-03) 0 .25rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-07) 0 .25rem,transparent .25rem var(--tui-slider-segment-width))}:host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem;margin-top:-.4375rem}:not(:disabled):host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='m']::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem;margin-top:-.1875rem}:not(:disabled):host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='s']::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='m']::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem}:not(:disabled):host:not(._old-edge)[data-size='m']::-moz-range-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='m']::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)[data-size='s']::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem}:not(:disabled):host:not(._old-edge)[data-size='s']::-moz-range-thumb{cursor:ew-resize}:focus-visible:host:not(._old-edge)[data-size='s']::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}:host:not(._old-edge)::-moz-range-progress{background:currentColor}:host._old-edge::-ms-thumb{background:currentColor}:host._old-edge::-ms-fill-lower{background:currentColor}:host._old-edge::-ms-track{background:var(--tui-base-03)}"]
125
+ }),
126
+ __param(0, Optional()),
127
+ __param(0, Self()),
128
+ __param(0, Inject(NgControl)),
129
+ __param(1, Inject(ChangeDetectorRef)),
130
+ __param(2, Inject(ElementRef)),
131
+ __param(3, Inject(USER_AGENT))
132
+ ], TuiSliderComponent);
133
+ return TuiSliderComponent;
134
+ }());
135
+
136
+ /**
137
+ * @deprecated use {@link TuiSliderComponent} instead
138
+ * TODO remove in 3.0
139
+ */
11
140
  // @dynamic
12
- var TuiSliderComponent = /** @class */ (function (_super) {
13
- __extends(TuiSliderComponent, _super);
14
- function TuiSliderComponent(control, changeDetectorRef, documentRef, fromToTexts$) {
141
+ var TuiSliderOldComponent = /** @class */ (function (_super) {
142
+ __extends(TuiSliderOldComponent, _super);
143
+ function TuiSliderOldComponent(control, changeDetectorRef, documentRef, fromToTexts$) {
15
144
  return _super.call(this, control, changeDetectorRef, documentRef, fromToTexts$) || this;
16
145
  }
17
- TuiSliderComponent_1 = TuiSliderComponent;
18
- Object.defineProperty(TuiSliderComponent.prototype, "nativeFocusableElement", {
146
+ TuiSliderOldComponent_1 = TuiSliderOldComponent;
147
+ Object.defineProperty(TuiSliderOldComponent.prototype, "nativeFocusableElement", {
19
148
  get: function () {
20
149
  return this.dotRight ? this.dotRight.nativeElement : null;
21
150
  },
22
151
  enumerable: true,
23
152
  configurable: true
24
153
  });
25
- Object.defineProperty(TuiSliderComponent.prototype, "focused", {
154
+ Object.defineProperty(TuiSliderOldComponent.prototype, "focused", {
26
155
  get: function () {
27
156
  return isNativeFocused(this.nativeFocusableElement);
28
157
  },
29
158
  enumerable: true,
30
159
  configurable: true
31
160
  });
32
- Object.defineProperty(TuiSliderComponent.prototype, "left", {
161
+ Object.defineProperty(TuiSliderOldComponent.prototype, "left", {
33
162
  get: function () {
34
163
  return 0;
35
164
  },
36
165
  enumerable: true,
37
166
  configurable: true
38
167
  });
39
- Object.defineProperty(TuiSliderComponent.prototype, "right", {
168
+ Object.defineProperty(TuiSliderOldComponent.prototype, "right", {
40
169
  get: function () {
41
170
  return 100 - 100 * this.getFractionFromValue(this.value);
42
171
  },
43
172
  enumerable: true,
44
173
  configurable: true
45
174
  });
46
- TuiSliderComponent.prototype.getFallbackValue = function () {
175
+ TuiSliderOldComponent.prototype.getFallbackValue = function () {
47
176
  return 0;
48
177
  };
49
- TuiSliderComponent.prototype.processStep = function (increment) {
178
+ TuiSliderOldComponent.prototype.processStep = function (increment) {
50
179
  var fraction = this.getFractionFromValue(this.value);
51
180
  var step = this.computedStep;
52
181
  var value = this.getValueFromFraction(increment ? fraction + step : fraction - step);
53
182
  this.processValue(value);
54
183
  };
55
- TuiSliderComponent.prototype.processValue = function (value) {
184
+ TuiSliderOldComponent.prototype.processValue = function (value) {
56
185
  this.updateValue(this.valueGuard(value));
57
186
  };
58
- var TuiSliderComponent_1;
59
- TuiSliderComponent.ctorParameters = function () { return [
187
+ var TuiSliderOldComponent_1;
188
+ TuiSliderOldComponent.ctorParameters = function () { return [
60
189
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
61
190
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
62
191
  { type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
63
192
  { type: Observable, decorators: [{ type: Inject, args: [TUI_FROM_TO_TEXTS,] }] }
64
193
  ]; };
65
- TuiSliderComponent = TuiSliderComponent_1 = __decorate([
194
+ TuiSliderOldComponent = TuiSliderOldComponent_1 = __decorate([
66
195
  Component({
67
196
  selector: 'tui-slider',
68
197
  template: "<div\n class=\"event-catcher\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n (mousedown)=\"onMouseDown($event)\"\n (touchstart)=\"onTouchStart($event)\"\n>\n <div class=\"wrapper\">\n <div *ngIf=\"segmented\" class=\"segments\">\n <span\n *tuiRepeatTimes=\"let segmentIndex of segments + 1\"\n automation-id=\"tui-slider__segment\"\n class=\"segment\"\n >\n <span *ngIf=\"fromToTexts$ | async as fromToText\" class=\"number\">\n {{ getSegmentPrefix(segmentIndex, fromToText) }} {{\n getSegmentLabel(segmentIndex) | tuiFormatNumber }}\n <span *ngIf=\"pluralizeMap\">\n {{ getSegmentLabel(segmentIndex) | i18nPlural:\n pluralizeMap }}\n </span>\n </span>\n </span>\n </div>\n <div\n automation-id=\"tui-slider__bar\"\n class=\"bar\"\n [style.left.%]=\"left\"\n [style.right.%]=\"right\"\n >\n <div\n #dotLeft\n automation-id=\"tui-slider__left\"\n class=\"dot\"\n [class.dot_focus-visible]=\"focusVisibleLeft && computedFocused\"\n [tuiFocusable]=\"isLeftFocusable\"\n (tuiFocusVisibleChange)=\"onLeftFocusVisible($event)\"\n (keydown.arrowLeft.prevent)=\"decrement(false)\"\n (keydown.arrowDown.prevent)=\"decrement(false)\"\n (keydown.arrowRight.prevent)=\"increment(false)\"\n (keydown.arrowUp.prevent)=\"increment(false)\"\n ></div>\n <div\n #dotRight\n automation-id=\"tui-slider__right\"\n class=\"dot\"\n [class.dot_focus-visible]=\"focusVisibleRight && computedFocused\"\n [tuiFocusable]=\"isRightFocusable\"\n (tuiFocusVisibleChange)=\"onRightFocusVisible($event)\"\n (keydown.arrowLeft.prevent)=\"decrement(true)\"\n (keydown.arrowDown.prevent)=\"decrement(true)\"\n (keydown.arrowRight.prevent)=\"increment(true)\"\n (keydown.arrowUp.prevent)=\"increment(true)\"\n ></div>\n </div>\n </div>\n</div>\n",
@@ -70,10 +199,10 @@ var TuiSliderComponent = /** @class */ (function (_super) {
70
199
  providers: [
71
200
  {
72
201
  provide: TUI_FOCUSABLE_ITEM_ACCESSOR,
73
- useExisting: forwardRef(function () { return TuiSliderComponent_1; }),
202
+ useExisting: forwardRef(function () { return TuiSliderOldComponent_1; }),
74
203
  },
75
204
  ],
76
- styles: [":host{display:block;border-radius:var(--tui-radius-m);color:var(--tui-base-03);min-height:.125rem;font-size:1rem}:host[data-tui-host-size='s']{min-height:.125rem;font-size:.5rem}:host._segmented{padding-bottom:1.25rem}:host._disabled{cursor:default;pointer-events:none;opacity:var(--tui-disabled-opacity)}.event-catcher{min-height:inherit;border-radius:inherit;padding:.4375rem 0;cursor:pointer}.wrapper{position:relative;min-height:inherit;border-radius:inherit;background-color:currentColor;border:solid transparent;border-width:0 1em}.bar{position:absolute;top:0;bottom:0;margin:0 -1em;border-radius:inherit;background-color:var(--tui-primary)}:host-context(tui-input-slider) .bar{margin-left:calc(var(--tui-radius-m)/ 2);border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.dot{transition-property:background-color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:50%;z-index:1;width:1em;height:1em;transform:translate(0,-50%);border-radius:100%;background-color:var(--tui-primary);outline:0;cursor:ew-resize}.dot:last-child{right:0;transform:translate(0,-50%)}.dot:hover{background-color:var(--tui-primary-hover)}.dot:active{background-color:var(--tui-primary-active)}.dot_focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}.segments{position:relative;z-index:1;display:flex;justify-content:space-between;min-height:inherit;margin:0 -1em}.segments-spacer{height:1.625rem}.segment{position:relative;height:inherit;width:.25rem;background-color:rgba(0,0,0,.36);pointer-events:none}.segment:first-of-type,.segment:last-of-type{background-color:transparent}.number{position:absolute;left:50%;transform:translate(-50%,0);top:100%;font:var(--tui-font-text-s);margin-top:.5rem;color:var(--tui-text-02);white-space:nowrap}.segment:first-of-type .number{left:-.05em;transform:none}.segment:last-of-type .number{left:auto;right:-.05em;transform:none}:host._disabled .number{color:var(--tui-text-01)}", ".dot:first-child{display:none}.wrapper{border-left:none}.bar,.segments{margin-left:0}"]
205
+ styles: [":host{display:block;border-radius:var(--tui-radius-m);color:var(--tui-base-03);min-height:.125rem;font-size:1rem}:host[data-size='s']{min-height:.125rem;font-size:.5rem}:host._segmented{padding-bottom:1.25rem}:host._disabled{cursor:default;pointer-events:none;opacity:var(--tui-disabled-opacity)}.event-catcher{min-height:inherit;border-radius:inherit;padding:.4375rem 0;cursor:pointer}.wrapper{position:relative;min-height:inherit;border-radius:inherit;background-color:currentColor;border:solid transparent;border-width:0 1em}.bar{position:absolute;top:0;bottom:0;margin:0 -1em;border-radius:inherit;background-color:var(--tui-primary)}:host-context(tui-input-slider) .bar{margin-left:calc(var(--tui-radius-m)/ 2);border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.dot{transition-property:background-color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:50%;z-index:1;width:1em;height:1em;transform:translate(0,-50%);border-radius:100%;background-color:var(--tui-primary);outline:0;cursor:ew-resize}.dot:last-child{right:0;transform:translate(0,-50%)}.dot:hover{background-color:var(--tui-primary-hover)}.dot:active{background-color:var(--tui-primary-active)}.dot_focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}.segments{position:relative;z-index:1;display:flex;justify-content:space-between;min-height:inherit;margin:0 -1em}.segments-spacer{height:1.625rem}.segment{position:relative;height:inherit;width:.25rem;background-color:rgba(0,0,0,.36);pointer-events:none}.segment:first-of-type,.segment:last-of-type{background-color:transparent}.number{position:absolute;left:50%;transform:translate(-50%,0);top:100%;font:var(--tui-font-text-s);margin-top:.5rem;color:var(--tui-text-02);white-space:nowrap}.segment:first-of-type .number{left:-.05em;transform:none}.segment:last-of-type .number{left:auto;right:-.05em;transform:none}:host._disabled .number{color:var(--tui-text-01)}", ".dot:first-child{display:none}.wrapper{border-left:none}.bar,.segments{margin-left:0}"]
77
206
  }),
78
207
  __param(0, Optional()),
79
208
  __param(0, Self()),
@@ -81,8 +210,8 @@ var TuiSliderComponent = /** @class */ (function (_super) {
81
210
  __param(1, Inject(ChangeDetectorRef)),
82
211
  __param(2, Inject(DOCUMENT)),
83
212
  __param(3, Inject(TUI_FROM_TO_TEXTS))
84
- ], TuiSliderComponent);
85
- return TuiSliderComponent;
213
+ ], TuiSliderOldComponent);
214
+ return TuiSliderOldComponent;
86
215
  }(AbstractTuiSlider));
87
216
 
88
217
  var TuiSliderModule = /** @class */ (function () {
@@ -98,8 +227,8 @@ var TuiSliderModule = /** @class */ (function () {
98
227
  TuiActiveZoneModule,
99
228
  TuiFormatNumberPipeModule,
100
229
  ],
101
- declarations: [TuiSliderComponent],
102
- exports: [TuiSliderComponent],
230
+ declarations: [TuiSliderComponent, TuiSliderOldComponent],
231
+ exports: [TuiSliderComponent, TuiSliderOldComponent],
103
232
  })
104
233
  ], TuiSliderModule);
105
234
  return TuiSliderModule;
@@ -109,5 +238,5 @@ var TuiSliderModule = /** @class */ (function () {
109
238
  * Generated bundle index. Do not edit.
110
239
  */
111
240
 
112
- export { TuiSliderComponent, TuiSliderModule };
241
+ export { TuiSliderComponent, TuiSliderModule, TuiSliderOldComponent };
113
242
  //# sourceMappingURL=taiga-ui-kit-components-slider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-slider.js","sources":["ng://@taiga-ui/kit/components/slider/slider.component.ts","ng://@taiga-ui/kit/components/slider/slider.module.ts","ng://@taiga-ui/kit/components/slider/taiga-ui-kit-components-slider.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider} from '@taiga-ui/kit/abstract';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Component({\n selector: 'tui-slider',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: ['../../abstract/slider/slider.common.style.less', './slider.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiSliderComponent),\n },\n ],\n})\nexport class TuiSliderComponent\n extends AbstractTuiSlider<number>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.dotRight ? this.dotRight.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get left(): number {\n return 0;\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value);\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n protected processStep(increment: boolean) {\n const fraction = this.getFractionFromValue(this.value);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value);\n }\n\n protected processValue(value: number) {\n this.updateValue(this.valueGuard(value));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\n\nimport {TuiSliderComponent} from './slider.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiActiveZoneModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [TuiSliderComponent],\n exports: [TuiSliderComponent],\n})\nexport class TuiSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAqBA;;IAcY,sCAAyB;IAGjC,4BAII,OAAyB,EACE,iBAAoC,EAC7C,WAAqB,EACZ,YAA0C;eAErE,kBAAM,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,CAAC;KAC/D;2BAdQ,kBAAkB;IAgB3B,sBAAI,sDAAsB;aAA1B;YACI,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;SAC7D;;;OAAA;IAED,sBAAI,uCAAO;aAAX;YACI,OAAO,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;SACvD;;;OAAA;IAED,sBAAI,oCAAI;aAAR;YACI,OAAO,CAAC,CAAC;SACZ;;;OAAA;IAED,sBAAI,qCAAK;aAAT;YACI,OAAO,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC5D;;;OAAA;IAES,6CAAgB,GAA1B;QACI,OAAO,CAAC,CAAC;KACZ;IAES,wCAAW,GAArB,UAAsB,SAAkB;QACpC,IAAM,QAAQ,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvD,IAAM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AyB;aAC5B;YACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACxBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-slider.js","sources":["ng://@taiga-ui/kit/components/slider/slider.component.ts","ng://@taiga-ui/kit/components/slider/slider-old.component.ts","ng://@taiga-ui/kit/components/slider/slider.module.ts","ng://@taiga-ui/kit/components/slider/taiga-ui-kit-components-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl, NgModel} from '@angular/forms';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n tuiDefaultProp,\n watch,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\nimport {take} from 'rxjs/operators';\n\n@Component({\n /**\n * We have to call our component as `<input tuiSlider type=\"range\" ... />`\n * because otherwise built-in angular\n * {@link https://github.com/angular/angular/blob/master/packages/forms/src/directives/range_value_accessor.ts#L45 RangeValueAccessor}\n * cannot be matched by its CSS selector.\n */\n selector: 'input[type=range][tuiSlider]',\n template: ``,\n styleUrls: ['./slider.style.less'],\n host: {\n /**\n * For change detection.\n * Webkit does not have built-in method for customization of filling progress (as Firefox).\n * We draw filling of progress by `background: linear-gradient(...)` of the track.\n * This function triggers change detection (for `fillPercentage` function) when we drag thumb of the input.\n */\n '(input)': '0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSliderComponent {\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n segments = 1;\n\n get min(): number {\n return Number(this.elementRef.nativeElement.min);\n }\n\n get max(): number {\n return Number(this.elementRef.nativeElement.max) || 100;\n }\n\n get step(): number {\n return Number(this.elementRef.nativeElement.step) || 1;\n }\n\n get value(): number {\n return Number(this.elementRef.nativeElement.value) || 0;\n }\n\n @HostBinding('style.--tui-slider-fill-percentage.%')\n get fillPercentage(): number {\n return (100 * this.value) / (this.max - this.min);\n }\n\n @HostBinding('style.--tui-slider-segment-width.%')\n get stepPercentage(): number {\n return 100 / this.segments - 0.1;\n }\n\n @HostBinding('class._old-edge')\n get isOldEdge(): boolean {\n return isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent);\n }\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLInputElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n ) {\n if (control instanceof NgModel) {\n /**\n * The ValueAccessor.writeValue method is called twice on any value accessor during component initialization,\n * when a control is bound using [(ngModel)], first time with a phantom null value.\n * With `changeDetection: ChangeDetectionStrategy.OnPush` the second call of writeValue with real value don't re-render the view.\n * ___\n * See this {@link https://github.com/angular/angular/issues/14988 issue}\n */\n control.valueChanges?.pipe(watch(changeDetectorRef), take(1)).subscribe();\n }\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider} from '@taiga-ui/kit/abstract';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n/**\n * @deprecated use {@link TuiSliderComponent} instead\n * TODO remove in 3.0\n */\n// @dynamic\n@Component({\n selector: 'tui-slider',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: [\n '../../abstract/slider/slider.common.style.less',\n './slider-old.style.less',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiSliderOldComponent),\n },\n ],\n})\nexport class TuiSliderOldComponent\n extends AbstractTuiSlider<number>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.dotRight ? this.dotRight.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get left(): number {\n return 0;\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value);\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n protected processStep(increment: boolean) {\n const fraction = this.getFractionFromValue(this.value);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value);\n }\n\n protected processValue(value: number) {\n this.updateValue(this.valueGuard(value));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\n\nimport {TuiSliderComponent} from './slider.component';\nimport {TuiSliderOldComponent} from './slider-old.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiActiveZoneModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [TuiSliderComponent, TuiSliderOldComponent],\n exports: [TuiSliderComponent, TuiSliderOldComponent],\n})\nexport class TuiSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;IAoFI,4BAII,OAAyB,EACE,iBAAoC,EAC1B,UAAwC,EACxC,SAAiB;;QADjB,eAAU,GAAV,UAAU,CAA8B;QACxC,cAAS,GAAT,SAAS,CAAQ;QA5C1D,SAAI,GAAa,GAAG,CAAC;QAIrB,aAAQ,GAAG,CAAC,CAAC;QA0CT,IAAI,OAAO,YAAY,OAAO,EAAE;;;;;;;;YAQ5B,MAAA,OAAO,CAAC,YAAY,0CAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG;SAC7E;KACJ;IAlDD,sBAAI,mCAAG;aAAP;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;SACpD;;;OAAA;IAED,sBAAI,mCAAG;aAAP;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;SAC3D;;;OAAA;IAED,sBAAI,oCAAI;aAAR;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC1D;;;OAAA;IAED,sBAAI,qCAAK;aAAT;YACI,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SAC3D;;;OAAA;IAGD,sBAAI,8CAAc;aAAlB;YACI,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;SACrD;;;OAAA;IAGD,sBAA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S,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,61EAAgE;YAKhE,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,2BAA2B;oBACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;iBACvD;aACJ;;SACJ,CAAC;QAMO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAXrB,qBAAqB,CAiDjC;IAAD,4BAAC;CAAA,CAhDW,iBAAiB;;;ICjB7B;KAA+B;IAAlB,eAAe;QAZ3B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,oBAAoB;gBACpB,kBAAkB;gBAClB,qBAAqB;gBACrB,mBAAmB;gBACnB,yBAAyB;aAC5B;YACD,YAAY,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;YACzD,OAAO,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;SACvD,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACzBA;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __param } from 'tslib';
2
2
  import { EventEmitter, ContentChildren, forwardRef, ElementRef, Input, HostBinding, Output, HostListener, Component, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';
3
- import { EMPTY_QUERY, itemsQueryListObservable, getOriginalArrayFromQueryList, moveFocus, tuiDefaultProp, tuiPure, identity, TuiFocusVisibleService, TuiDestroyService } from '@taiga-ui/cdk';
3
+ import { EMPTY_QUERY, itemsQueryListObservable, getOriginalArrayFromQueryList, moveFocus, tuiDefaultProp, tuiPure, TuiFocusVisibleService, TuiDestroyService } from '@taiga-ui/cdk';
4
4
  import { TuiRouterLinkActiveService, TuiSvgModule } from '@taiga-ui/core';
5
- import { Observable } from 'rxjs';
5
+ import { identity, Observable } from 'rxjs';
6
6
  import { delay, filter } from 'rxjs/operators';
7
7
  import { CommonModule } from '@angular/common';
8
8
 
@@ -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 @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;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,sBAAI,yCAAQ;aAAZ;;;YAGI,OAAO,wBAAwB,CAAC,IAAI,CAAC,KAAK,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AlDQ,gBAAgB;QAX5B,SAAS,CAAC;YACP,QAAQ,EACJ,yFAAyF;YAC7F,+TAAmC;YAEnC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,sBAAsB,CAAC;YAClF,IAAI,EAAE;gBACF,IAAI,EAAE,QAAQ;aACjB;;SACJ,CAAC;QAeO,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;QAC9B,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;QAClC,WAAA,MAAM,CAAC,mBAAmB,CAAC,CAAA;QAC3B,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAjBd,gBAAgB,CAmD5B;IAAD,uBAAC;CAnDD;;;ICpBA;KAAgC;IAAnB,gBAAgB;QAL5B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;YACrC,YAAY,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;YACrD,OAAO,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;SACnD,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACZA;;;;;;"}
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 {tuiDefaultProp, TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk';\nimport {TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {identity, 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;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,sBAAI,yCAAQ;aAAZ;;;YAGI,OAAO,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9D;;;OAAA;IAID,0CAAY,GAAZ,UAAa,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,wCAAU,GAAV,UAAW,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,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;KACtC;IAED,qCAAO,GAAP,UAAQ,IAAiB;QACrB,OAAO,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CACtD,UAAC,EAAe;gBAAd,gC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CAAG;IAAD,uBAAC;CAAhC;;ACZA;;;;;;"}
@@ -1,10 +1,10 @@
1
1
  import { __decorate, __param } from 'tslib';
2
2
  import { TemplateRef, Inject, Directive, InjectionToken, ElementRef, Optional, HostBinding, Component, ChangeDetectionStrategy, EventEmitter, Renderer2, ChangeDetectorRef, ContentChildren, forwardRef, Input, Output, HostListener, ViewChild, NgZone, NgModule } from '@angular/core';
3
3
  import { RouterLinkActive } from '@angular/router';
4
- import { TuiDestroyService, TuiFocusVisibleService, 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';
4
+ import { TuiDestroyService, TuiFocusVisibleService, 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';
6
6
  import { TUI_MOBILE_AWARE, TUI_MORE_WORD } from '@taiga-ui/kit/tokens';
7
- import { EMPTY, merge, Observable, ReplaySubject, of } from 'rxjs';
7
+ import { EMPTY, merge, identity, Observable, ReplaySubject, of } from 'rxjs';
8
8
  import { DOCUMENT, CommonModule } from '@angular/common';
9
9
  import { MutationObserverService, MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
10
10
  import { filter, map, mapTo, tap, debounceTime, startWith, takeUntil, switchMap, share } from 'rxjs/operators';
@@ -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 @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":";;;;;;;;;;;;;;;IAMI,yBAA0C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;;gBAAnB,WAAW,uBAAlD,MAAM,SAAC,WAAW;;IADtB,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAEe,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA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,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;OArDZ,qBAAqB,CA2DjC;IAAD,4BAAC;CA3DD;;;ICMA;KAA6B;IAAhB,aAAa;QAtBzB,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,uBAAuB;gBACvB,YAAY;gBACZ,kBAAkB;gBAClB,kBAAkB;aACrB;YACD,YAAY,EAAE;gBACV,wBAAwB;gBACxB,gBAAgB;gBAChB,eAAe;gBACf,qBAAqB;gBACrB,eAAe;aAClB;YACD,OAAO,EAAE;gBACL,wBAAwB;gBACxB,gBAAgB;gBAChB,eAAe;gBACf,eAAe;aAClB;SACJ,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;AClCA;;;;;;"}
1
+ {"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 tuiCustomEvent,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER, TuiRouterLinkActiveService} from '@taiga-ui/core';\nimport {EMPTY, identity, merge, Observable} from 'rxjs';\nimport {filter, map} from 'rxjs/operators';\n\nexport const TUI_TAB_ACTIVATE = 'tui-tab-activate';\nexport const TUI_TAB_EVENT = new InjectionToken<Observable<Event>>(\n 'Stream of tab activation events',\n);\nexport const TUI_TAB_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n TuiRouterLinkActiveService,\n {\n provide: TUI_TAB_EVENT,\n deps: [\n ElementRef,\n DOCUMENT,\n TuiRouterLinkActiveService,\n [new Optional(), MutationObserverService],\n [new Optional(), RouterLinkActive],\n ],\n useFactory: tabActiveFactory,\n },\n MODE_PROVIDER,\n];\n\nexport function tabActiveFactory(\n {nativeElement}: ElementRef<HTMLElement>,\n documentRef: Document,\n routerLinkActiveService: Observable<boolean>,\n mutationObserverService: MutationObserverService | null,\n routerLinkActive: RouterLinkActive | null,\n): Observable<unknown> {\n const mutationObserver =\n routerLinkActive && mutationObserverService\n ? mutationObserverService.pipe(filter(() => routerLinkActive.isActive))\n : EMPTY;\n\n return merge(\n mutationObserver,\n routerLinkActiveService.pipe(filter(identity)),\n nativeElement.matches('button') ? typedFromEvent(nativeElement, 'click') : EMPTY,\n ).pipe(\n map(() =>\n nativeElement.dispatchEvent(\n tuiCustomEvent(TUI_TAB_ACTIVATE, {bubbles: true}, documentRef),\n ),\n ),\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n OnDestroy,\n Optional,\n} from '@angular/core';\nimport {RouterLinkActive} from '@angular/router';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_IS_ANDROID,\n TUI_IS_IOS,\n TuiFocusVisibleService,\n} from '@taiga-ui/cdk';\nimport {TUI_MODE, TuiBrightness} from '@taiga-ui/core';\nimport {TUI_MOBILE_AWARE} 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":";;;;;;;;;;;;;;;IAMI,yBAA0C,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;KAAI;;gBAAnB,WAAW,uBAAlD,MAAM,SAAC,WAAW;;IADtB,eAAe;QAH3B,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAEe,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;OADvB,eAAe,CAE3B;IAAD,sBAAC;CAFD;;ICSa,gBAAgB,GAAG,mBAAmB;IACtC,aAAa,GAAG,IAAI,cAAc,CAC3C,iCAAiC,EACnC;IACW,iBAAiB,GAAe;IACzC,iBAAiB;IACjB,sBAAsB;IACtB,0BAA0B;IAC1B;QACI,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE;YACF,UAAU;YACV,QAAQ;YACR,0BAA0B;YAC1B,CAAC,IAAI,QAAQ,EAAE,EAAE,uBAAuB,CAAC;YACzC,CAAC,IAAI,QAAQ,EAAE,EAAE,gBAAgB,CAAC;SACrC;QACD,UAAU,EAAE,gBAAgB;KAC/B;IACD,aAAa;EACf;SAEc,gBAAgB,CAC5B,EAAwC,EACxC,WAAqB,EACrB,uBAA4C,EAC5C,uBAAuD,EACvD,gBAAyC;QAJxC,gCAAa;IAMd,IAAM,gBAAgB,GAClB,gBAAgB,IAAI,uBAAuB;UACrC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,cAAM,OAAA,gBAAgB,CAAC,QAAQ,GAAA,CAAC,CA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