@taiga-ui/kit 2.25.0 → 2.28.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 (707) hide show
  1. package/abstract/input-slider.d.ts +5 -5
  2. package/abstract/slider/slider.d.ts +5 -5
  3. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.js +9 -9
  5. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  6. package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
  7. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.js +23 -7
  9. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +2 -2
  11. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-action.umd.js +3 -3
  13. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  15. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +7 -7
  17. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
  19. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-carousel.umd.js +527 -0
  23. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -0
  24. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +16 -0
  25. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -0
  26. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +3 -3
  27. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  29. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +3 -3
  31. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  33. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
  35. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  37. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-combo-box.umd.js +18 -19
  39. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  41. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +7 -7
  43. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
  45. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-field-error.umd.js +20 -8
  47. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +2 -2
  49. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-filter.umd.js +8 -8
  51. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  53. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -4
  55. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  57. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-count.umd.js +3 -3
  59. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +16 -13
  63. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +1 -1
  65. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +20 -17
  67. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  69. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-date.umd.js +17 -14
  71. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  73. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -1
  75. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  77. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-inline.umd.js +5 -4
  79. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  81. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -3
  83. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  85. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -3
  87. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-number.umd.js +17 -31
  91. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  93. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-password.umd.js +3 -3
  95. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +22 -22
  99. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-phone.umd.js +6 -6
  103. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-slider.umd.js +3 -3
  107. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-tag.umd.js +31 -31
  111. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  113. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-input-time.umd.js +16 -16
  115. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  117. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
  119. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  121. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +7 -7
  123. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  125. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +1 -1
  127. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  129. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-multi-select.umd.js +18 -18
  131. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  133. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-pagination.umd.js +4 -4
  135. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  137. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +13 -21
  139. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +2 -2
  141. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-progress.umd.js +3 -3
  143. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-progress.umd.min.js +1 -1
  145. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-radio-block.umd.js +3 -3
  147. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +3 -3
  153. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  155. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-list.umd.js +7 -7
  157. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  159. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio.umd.js +3 -3
  161. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  163. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-select.umd.js +9 -12
  165. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  167. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  168. package/bundles/taiga-ui-kit-components-stepper.umd.js +18 -18
  169. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  170. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  171. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-tabs.umd.js +22 -22
  173. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  175. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  176. package/bundles/taiga-ui-kit-components-text-area.umd.js +4 -4
  177. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  178. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
  179. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  180. package/bundles/taiga-ui-kit-components-toggle.umd.js +3 -3
  181. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  182. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  183. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  184. package/bundles/taiga-ui-kit-components-tree.umd.js +64 -53
  185. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-components-tree.umd.min.js +2 -2
  187. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  188. package/bundles/taiga-ui-kit-components.umd.js +12 -4
  189. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  190. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  191. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +2 -4
  192. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  193. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +1 -1
  194. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  195. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +1 -1
  196. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  197. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  198. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  199. package/bundles/taiga-ui-kit-directives-highlight.umd.js +7 -2
  200. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  201. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js +1 -1
  202. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  203. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +7 -1
  204. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  205. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  207. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  208. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  209. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +2 -2
  210. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  211. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
  212. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  213. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  214. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  215. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  216. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  217. package/components/accordion/accordion-item/accordion-item-eager-content.directive.d.ts +2 -0
  218. package/components/accordion/accordion-item/accordion-item.component.d.ts +4 -2
  219. package/components/accordion/index.d.ts +1 -0
  220. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  221. package/components/action/action.component.d.ts +1 -1
  222. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  223. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  224. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  225. package/components/calendar-range/calendar-range.component.d.ts +1 -1
  226. package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
  227. package/components/carousel/carousel-autoscroll.directive.d.ts +5 -0
  228. package/components/carousel/carousel-buttons.directive.d.ts +4 -0
  229. package/components/carousel/carousel-scroll.directive.d.ts +6 -0
  230. package/components/carousel/carousel.component.d.ts +29 -0
  231. package/components/carousel/carousel.directive.d.ts +11 -0
  232. package/components/carousel/carousel.module.d.ts +2 -0
  233. package/components/carousel/index.d.ts +6 -0
  234. package/components/carousel/package.json +13 -0
  235. package/components/carousel/taiga-ui-kit-components-carousel.d.ts +4 -0
  236. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -0
  237. package/components/checkbox/checkbox.component.d.ts +1 -1
  238. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  239. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  240. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  241. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -1
  242. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  243. package/components/combo-box/combo-box.component.d.ts +5 -5
  244. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  245. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
  246. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  247. package/components/field-error/field-error.component.d.ts +3 -2
  248. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  249. package/components/filter/filter.component.d.ts +2 -2
  250. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  251. package/components/index.d.ts +1 -0
  252. package/components/input/input.component.d.ts +3 -3
  253. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  254. package/components/input-copy/input-copy.component.d.ts +2 -2
  255. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  256. package/components/input-count/input-count.component.d.ts +2 -2
  257. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  258. package/components/input-date/input-date.component.d.ts +4 -4
  259. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  260. package/components/input-date-range/input-date-range.component.d.ts +3 -3
  261. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  262. package/components/input-date-time/input-date-time.component.d.ts +4 -4
  263. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  264. package/components/input-file/input-file.component.d.ts +1 -1
  265. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  266. package/components/input-inline/input-inline.component.d.ts +1 -1
  267. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  268. package/components/input-month/input-month.component.d.ts +1 -1
  269. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  270. package/components/input-month-range/input-month-range.component.d.ts +1 -1
  271. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  272. package/components/input-number/input-number.component.d.ts +3 -4
  273. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  274. package/components/input-password/input-password.component.d.ts +2 -2
  275. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  276. package/components/input-phone/input-phone.component.d.ts +3 -3
  277. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  278. package/components/input-phone-international/input-phone-international.component.d.ts +6 -6
  279. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  280. package/components/input-slider/input-slider.component.d.ts +1 -1
  281. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  282. package/components/input-tag/input-tag.component.d.ts +11 -11
  283. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  284. package/components/input-time/input-time.component.d.ts +4 -4
  285. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  286. package/components/line-clamp/line-clamp.component.d.ts +4 -4
  287. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  288. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  289. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  290. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  291. package/components/multi-select/multi-select.component.d.ts +7 -7
  292. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  293. package/components/pagination/pagination.component.d.ts +1 -1
  294. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  295. package/components/pdf-viewer/pdf-viewer.component.d.ts +1 -4
  296. package/components/pdf-viewer/pdf-viewer.service.d.ts +7 -2
  297. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -1
  298. package/components/progress/progress-circle/progress-circle.component.d.ts +1 -1
  299. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  300. package/components/radio/radio.component.d.ts +1 -1
  301. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  302. package/components/radio-block/radio-block.component.d.ts +1 -1
  303. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  304. package/components/radio-group/radio-group.component.d.ts +1 -1
  305. package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
  306. package/components/radio-labeled/radio-labeled.component.d.ts +1 -1
  307. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  308. package/components/radio-list/radio-list.component.d.ts +3 -3
  309. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  310. package/components/select/select.component.d.ts +3 -3
  311. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  312. package/components/stepper/stepper.component.d.ts +3 -3
  313. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  314. package/components/tabs/tabs/tabs.component.d.ts +2 -2
  315. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +2 -2
  316. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  317. package/components/tabs/underline/underline.component.d.ts +2 -2
  318. package/components/taiga-ui-kit-components.metadata.json +1 -1
  319. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  320. package/components/text-area/text-area.component.d.ts +1 -1
  321. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  322. package/components/toggle/toggle.component.d.ts +1 -1
  323. package/components/tree/components/tree/tree.component.d.ts +7 -2
  324. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  325. package/components/tree/directives/tree-item-controller.directive.d.ts +1 -1
  326. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  327. package/directives/dropdown-context/dropdown-context.directive.d.ts +1 -1
  328. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  329. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +3 -3
  330. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  331. package/directives/highlight/highlight.directive.d.ts +2 -1
  332. package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
  333. package/directives/lazy-loading/lazy-loading.directive.d.ts +1 -1
  334. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  335. package/directives/present/present.directive.d.ts +1 -1
  336. package/directives/present/taiga-ui-kit-directives-present.metadata.json +1 -1
  337. package/esm2015/abstract/input-slider.js +2 -2
  338. package/esm2015/abstract/slider/slider.js +9 -9
  339. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  340. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +11 -0
  341. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +10 -6
  342. package/esm2015/components/accordion/accordion.module.js +4 -1
  343. package/esm2015/components/accordion/index.js +2 -1
  344. package/esm2015/components/action/action.component.js +4 -4
  345. package/esm2015/components/calendar-month/calendar-month.component.js +6 -6
  346. package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
  347. package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
  348. package/esm2015/components/carousel/carousel-buttons.directive.js +24 -0
  349. package/esm2015/components/carousel/carousel-scroll.directive.js +26 -0
  350. package/esm2015/components/carousel/carousel.component.js +144 -0
  351. package/esm2015/components/carousel/carousel.directive.js +35 -0
  352. package/esm2015/components/carousel/carousel.module.js +38 -0
  353. package/esm2015/components/carousel/index.js +7 -0
  354. package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
  355. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  356. package/esm2015/components/checkbox-block/checkbox-block.component.js +4 -4
  357. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  358. package/esm2015/components/combo-box/combo-box.component.js +19 -20
  359. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  360. package/esm2015/components/field-error/field-error.component.js +15 -6
  361. package/esm2015/components/filter/filter.component.js +9 -9
  362. package/esm2015/components/index.js +2 -1
  363. package/esm2015/components/input/input.component.js +8 -8
  364. package/esm2015/components/input-copy/input-copy.component.js +5 -5
  365. package/esm2015/components/input-count/input-count.component.js +4 -4
  366. package/esm2015/components/input-date/input-date.component.js +18 -15
  367. package/esm2015/components/input-date-range/input-date-range.component.js +17 -14
  368. package/esm2015/components/input-date-time/input-date-time.component.js +20 -17
  369. package/esm2015/components/input-file/input-file.component.js +2 -2
  370. package/esm2015/components/input-inline/input-inline.component.js +6 -5
  371. package/esm2015/components/input-month/input-month.component.js +5 -4
  372. package/esm2015/components/input-month-range/input-month-range.component.js +5 -4
  373. package/esm2015/components/input-number/input-number.component.js +17 -27
  374. package/esm2015/components/input-password/input-password.component.js +4 -4
  375. package/esm2015/components/input-phone/input-phone.component.js +7 -7
  376. package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -20
  377. package/esm2015/components/input-slider/input-slider.component.js +4 -4
  378. package/esm2015/components/input-tag/input-tag.component.js +32 -32
  379. package/esm2015/components/input-time/input-time.component.js +17 -17
  380. package/esm2015/components/line-clamp/line-clamp.component.js +8 -8
  381. package/esm2015/components/marker-icon/marker-icon.component.js +2 -2
  382. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  383. package/esm2015/components/multi-select/multi-select.component.js +15 -15
  384. package/esm2015/components/pagination/pagination.component.js +5 -5
  385. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -20
  386. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +4 -1
  387. package/esm2015/components/progress/pipes/abstract-color-segments.js +1 -1
  388. package/esm2015/components/progress/progress-circle/progress-circle.component.js +4 -4
  389. package/esm2015/components/radio/radio.component.js +4 -4
  390. package/esm2015/components/radio-block/radio-block.component.js +4 -4
  391. package/esm2015/components/radio-group/radio-group.component.js +1 -1
  392. package/esm2015/components/radio-labeled/radio-labeled.component.js +4 -4
  393. package/esm2015/components/radio-list/radio-list.component.js +8 -8
  394. package/esm2015/components/select/select.component.js +10 -13
  395. package/esm2015/components/stepper/stepper.component.js +18 -18
  396. package/esm2015/components/tabs/tabs/tabs.component.js +16 -16
  397. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  398. package/esm2015/components/tabs/underline/underline.component.js +3 -3
  399. package/esm2015/components/text-area/text-area.component.js +5 -5
  400. package/esm2015/components/toggle/toggle.component.js +4 -4
  401. package/esm2015/components/tree/components/tree/tree.component.js +15 -2
  402. package/esm2015/components/tree/components/tree-item/tree-item.component.js +3 -3
  403. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +2 -3
  404. package/esm2015/components/tree/directives/tree-item-controller.directive.js +2 -2
  405. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +3 -5
  406. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  407. package/esm2015/directives/highlight/highlight.directive.js +8 -3
  408. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +4 -2
  409. package/esm2015/directives/present/present.directive.js +1 -1
  410. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  411. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  412. package/esm2015/tokens/validation-errors.js +1 -1
  413. package/esm5/abstract/input-slider.js +2 -2
  414. package/esm5/abstract/slider/slider.js +9 -9
  415. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  416. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +14 -0
  417. package/esm5/components/accordion/accordion-item/accordion-item.component.js +10 -6
  418. package/esm5/components/accordion/accordion.module.js +4 -1
  419. package/esm5/components/accordion/index.js +2 -1
  420. package/esm5/components/action/action.component.js +4 -4
  421. package/esm5/components/calendar-month/calendar-month.component.js +8 -8
  422. package/esm5/components/calendar-range/calendar-range.component.js +1 -1
  423. package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
  424. package/esm5/components/carousel/carousel-buttons.directive.js +27 -0
  425. package/esm5/components/carousel/carousel-scroll.directive.js +34 -0
  426. package/esm5/components/carousel/carousel.component.js +158 -0
  427. package/esm5/components/carousel/carousel.directive.js +45 -0
  428. package/esm5/components/carousel/carousel.module.js +41 -0
  429. package/esm5/components/carousel/index.js +7 -0
  430. package/esm5/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
  431. package/esm5/components/checkbox/checkbox.component.js +4 -4
  432. package/esm5/components/checkbox-block/checkbox-block.component.js +4 -4
  433. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  434. package/esm5/components/combo-box/combo-box.component.js +19 -20
  435. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  436. package/esm5/components/field-error/field-error.component.js +19 -6
  437. package/esm5/components/filter/filter.component.js +9 -9
  438. package/esm5/components/index.js +2 -1
  439. package/esm5/components/input/input.component.js +8 -8
  440. package/esm5/components/input-copy/input-copy.component.js +5 -5
  441. package/esm5/components/input-count/input-count.component.js +4 -4
  442. package/esm5/components/input-date/input-date.component.js +18 -15
  443. package/esm5/components/input-date-range/input-date-range.component.js +17 -14
  444. package/esm5/components/input-date-time/input-date-time.component.js +21 -18
  445. package/esm5/components/input-file/input-file.component.js +2 -2
  446. package/esm5/components/input-inline/input-inline.component.js +6 -5
  447. package/esm5/components/input-month/input-month.component.js +5 -4
  448. package/esm5/components/input-month-range/input-month-range.component.js +5 -4
  449. package/esm5/components/input-number/input-number.component.js +18 -32
  450. package/esm5/components/input-password/input-password.component.js +4 -4
  451. package/esm5/components/input-phone/input-phone.component.js +7 -7
  452. package/esm5/components/input-phone-international/input-phone-international.component.js +23 -23
  453. package/esm5/components/input-slider/input-slider.component.js +4 -4
  454. package/esm5/components/input-tag/input-tag.component.js +32 -32
  455. package/esm5/components/input-time/input-time.component.js +17 -17
  456. package/esm5/components/line-clamp/line-clamp.component.js +8 -8
  457. package/esm5/components/marker-icon/marker-icon.component.js +2 -2
  458. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  459. package/esm5/components/multi-select/multi-select.component.js +15 -15
  460. package/esm5/components/pagination/pagination.component.js +5 -5
  461. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -20
  462. package/esm5/components/pdf-viewer/pdf-viewer.service.js +5 -1
  463. package/esm5/components/progress/pipes/abstract-color-segments.js +1 -1
  464. package/esm5/components/progress/progress-circle/progress-circle.component.js +4 -4
  465. package/esm5/components/radio/radio.component.js +4 -4
  466. package/esm5/components/radio-block/radio-block.component.js +4 -4
  467. package/esm5/components/radio-group/radio-group.component.js +1 -1
  468. package/esm5/components/radio-labeled/radio-labeled.component.js +4 -4
  469. package/esm5/components/radio-list/radio-list.component.js +8 -8
  470. package/esm5/components/select/select.component.js +10 -13
  471. package/esm5/components/stepper/stepper.component.js +19 -19
  472. package/esm5/components/tabs/tabs/tabs.component.js +17 -17
  473. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  474. package/esm5/components/tabs/underline/underline.component.js +3 -3
  475. package/esm5/components/text-area/text-area.component.js +5 -5
  476. package/esm5/components/toggle/toggle.component.js +4 -4
  477. package/esm5/components/tree/components/tree/tree.component.js +15 -2
  478. package/esm5/components/tree/components/tree-item/tree-item.component.js +3 -3
  479. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +2 -3
  480. package/esm5/components/tree/directives/tree-item-controller.directive.js +2 -2
  481. package/esm5/directives/dropdown-context/dropdown-context.directive.js +3 -5
  482. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  483. package/esm5/directives/highlight/highlight.directive.js +8 -3
  484. package/esm5/directives/lazy-loading/lazy-loading.directive.js +8 -2
  485. package/esm5/directives/present/present.directive.js +1 -1
  486. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
  487. package/esm5/pipes/stringify/stringify.pipe.js +1 -1
  488. package/esm5/tokens/validation-errors.js +1 -1
  489. package/fesm2015/taiga-ui-kit-abstract.js +9 -9
  490. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  491. package/fesm2015/taiga-ui-kit-components-accordion.js +21 -9
  492. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  493. package/fesm2015/taiga-ui-kit-components-action.js +4 -4
  494. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  495. package/fesm2015/taiga-ui-kit-components-calendar-month.js +5 -5
  496. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  497. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  498. package/fesm2015/taiga-ui-kit-components-carousel.js +267 -0
  499. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -0
  500. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +4 -4
  501. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  502. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  503. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  504. package/fesm2015/taiga-ui-kit-components-checkbox.js +4 -4
  505. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  506. package/fesm2015/taiga-ui-kit-components-combo-box.js +20 -21
  507. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  508. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  509. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  510. package/fesm2015/taiga-ui-kit-components-field-error.js +14 -5
  511. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  512. package/fesm2015/taiga-ui-kit-components-filter.js +9 -9
  513. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  514. package/fesm2015/taiga-ui-kit-components-input-copy.js +5 -5
  515. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  516. package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
  517. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  518. package/fesm2015/taiga-ui-kit-components-input-date-range.js +18 -15
  519. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  520. package/fesm2015/taiga-ui-kit-components-input-date-time.js +20 -17
  521. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  522. package/fesm2015/taiga-ui-kit-components-input-date.js +18 -15
  523. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  524. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -1
  525. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  526. package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -5
  527. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  528. package/fesm2015/taiga-ui-kit-components-input-month-range.js +5 -4
  529. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  530. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -4
  531. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  532. package/fesm2015/taiga-ui-kit-components-input-number.js +17 -27
  533. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  534. package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
  535. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  536. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +20 -20
  537. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  538. package/fesm2015/taiga-ui-kit-components-input-phone.js +8 -8
  539. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  540. package/fesm2015/taiga-ui-kit-components-input-slider.js +4 -4
  541. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  542. package/fesm2015/taiga-ui-kit-components-input-tag.js +34 -34
  543. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  544. package/fesm2015/taiga-ui-kit-components-input-time.js +17 -17
  545. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  546. package/fesm2015/taiga-ui-kit-components-input.js +9 -9
  547. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  548. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
  549. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  550. package/fesm2015/taiga-ui-kit-components-marker-icon.js +1 -1
  551. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  552. package/fesm2015/taiga-ui-kit-components-multi-select.js +20 -20
  553. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  554. package/fesm2015/taiga-ui-kit-components-pagination.js +6 -6
  555. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  556. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +9 -19
  557. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  558. package/fesm2015/taiga-ui-kit-components-progress.js +3 -3
  559. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  560. package/fesm2015/taiga-ui-kit-components-radio-block.js +4 -4
  561. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  562. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  563. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +4 -4
  564. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  565. package/fesm2015/taiga-ui-kit-components-radio-list.js +9 -9
  566. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  567. package/fesm2015/taiga-ui-kit-components-radio.js +4 -4
  568. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  569. package/fesm2015/taiga-ui-kit-components-select.js +11 -14
  570. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  571. package/fesm2015/taiga-ui-kit-components-stepper.js +18 -18
  572. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  573. package/fesm2015/taiga-ui-kit-components-tabs.js +22 -22
  574. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  575. package/fesm2015/taiga-ui-kit-components-text-area.js +5 -5
  576. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  577. package/fesm2015/taiga-ui-kit-components-toggle.js +4 -4
  578. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  579. package/fesm2015/taiga-ui-kit-components-tree.js +56 -45
  580. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  581. package/fesm2015/taiga-ui-kit-components.js +1 -0
  582. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  583. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +2 -4
  584. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  585. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  586. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  587. package/fesm2015/taiga-ui-kit-directives-highlight.js +7 -2
  588. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  589. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +3 -1
  590. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  591. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  592. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  593. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  595. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  596. package/fesm5/taiga-ui-kit-abstract.js +9 -9
  597. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  598. package/fesm5/taiga-ui-kit-components-accordion.js +24 -9
  599. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  600. package/fesm5/taiga-ui-kit-components-action.js +4 -4
  601. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  602. package/fesm5/taiga-ui-kit-components-calendar-month.js +7 -7
  603. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  604. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  605. package/fesm5/taiga-ui-kit-components-carousel.js +306 -0
  606. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -0
  607. package/fesm5/taiga-ui-kit-components-checkbox-block.js +4 -4
  608. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  609. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  610. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  611. package/fesm5/taiga-ui-kit-components-checkbox.js +4 -4
  612. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  613. package/fesm5/taiga-ui-kit-components-combo-box.js +20 -21
  614. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  615. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  616. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  617. package/fesm5/taiga-ui-kit-components-field-error.js +18 -5
  618. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  619. package/fesm5/taiga-ui-kit-components-filter.js +9 -9
  620. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  621. package/fesm5/taiga-ui-kit-components-input-copy.js +5 -5
  622. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  623. package/fesm5/taiga-ui-kit-components-input-count.js +4 -4
  624. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  625. package/fesm5/taiga-ui-kit-components-input-date-range.js +18 -15
  626. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  627. package/fesm5/taiga-ui-kit-components-input-date-time.js +21 -18
  628. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  629. package/fesm5/taiga-ui-kit-components-input-date.js +18 -15
  630. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  631. package/fesm5/taiga-ui-kit-components-input-file.js +1 -1
  632. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  633. package/fesm5/taiga-ui-kit-components-input-inline.js +6 -5
  634. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  635. package/fesm5/taiga-ui-kit-components-input-month-range.js +5 -4
  636. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  637. package/fesm5/taiga-ui-kit-components-input-month.js +5 -4
  638. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  639. package/fesm5/taiga-ui-kit-components-input-number.js +18 -32
  640. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  641. package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
  642. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  643. package/fesm5/taiga-ui-kit-components-input-phone-international.js +23 -23
  644. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  645. package/fesm5/taiga-ui-kit-components-input-phone.js +8 -8
  646. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  647. package/fesm5/taiga-ui-kit-components-input-slider.js +4 -4
  648. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  649. package/fesm5/taiga-ui-kit-components-input-tag.js +34 -34
  650. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  651. package/fesm5/taiga-ui-kit-components-input-time.js +17 -17
  652. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  653. package/fesm5/taiga-ui-kit-components-input.js +9 -9
  654. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  655. package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
  656. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  657. package/fesm5/taiga-ui-kit-components-marker-icon.js +1 -1
  658. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  659. package/fesm5/taiga-ui-kit-components-multi-select.js +20 -20
  660. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  661. package/fesm5/taiga-ui-kit-components-pagination.js +6 -6
  662. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  663. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -19
  664. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  665. package/fesm5/taiga-ui-kit-components-progress.js +3 -3
  666. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  667. package/fesm5/taiga-ui-kit-components-radio-block.js +4 -4
  668. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  669. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  670. package/fesm5/taiga-ui-kit-components-radio-labeled.js +4 -4
  671. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  672. package/fesm5/taiga-ui-kit-components-radio-list.js +9 -9
  673. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  674. package/fesm5/taiga-ui-kit-components-radio.js +4 -4
  675. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  676. package/fesm5/taiga-ui-kit-components-select.js +11 -14
  677. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  678. package/fesm5/taiga-ui-kit-components-stepper.js +19 -19
  679. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  680. package/fesm5/taiga-ui-kit-components-tabs.js +23 -23
  681. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  682. package/fesm5/taiga-ui-kit-components-text-area.js +5 -5
  683. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  684. package/fesm5/taiga-ui-kit-components-toggle.js +4 -4
  685. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  686. package/fesm5/taiga-ui-kit-components-tree.js +65 -54
  687. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  688. package/fesm5/taiga-ui-kit-components.js +1 -0
  689. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  690. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +2 -4
  691. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  692. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  693. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  694. package/fesm5/taiga-ui-kit-directives-highlight.js +7 -2
  695. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  696. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +7 -1
  697. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  698. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  699. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +2 -2
  700. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  701. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  702. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  703. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
  704. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  705. package/package.json +6 -5
  706. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  707. package/tokens/validation-errors.d.ts +2 -1
@@ -0,0 +1,267 @@
1
+ import { __decorate, __param } from 'tslib';
2
+ import { EventEmitter, ChangeDetectorRef, Inject, ElementRef, Input, HostBinding, Output, ContentChildren, TemplateRef, HostListener, Component, ChangeDetectionStrategy, Directive, NgModule } from '@angular/core';
3
+ import { INTERSECTION_ROOT, IntersectionObserverModule } from '@ng-web-apis/intersection-observer';
4
+ import { EMPTY_QUERY, clamp, TUI_IS_MOBILE, tuiDefaultProp, TuiItemDirective, tuiPure, typedFromEvent, TuiPanModule, TuiSwipeModule, TuiItemModule } from '@taiga-ui/cdk';
5
+ import { PAGE_VISIBILITY } from '@ng-web-apis/common';
6
+ import { Observable, BehaviorSubject, merge, combineLatest, interval, EMPTY } from 'rxjs';
7
+ import { mapTo, switchMap, filter, throttleTime, map, tap } from 'rxjs/operators';
8
+ import { CommonModule } from '@angular/common';
9
+ import { TUI_BUTTON_OPTIONS } from '@taiga-ui/core';
10
+
11
+ // @dynamic
12
+ let TuiCarouselComponent = class TuiCarouselComponent {
13
+ constructor(changeDetectorRef, elementRef, isMobile) {
14
+ this.changeDetectorRef = changeDetectorRef;
15
+ this.elementRef = elementRef;
16
+ this.isMobile = isMobile;
17
+ this.translate = 0;
18
+ this.draggable = false;
19
+ this.itemsCount = 1;
20
+ this.index = 0;
21
+ this.indexChange = new EventEmitter();
22
+ this.items = EMPTY_QUERY;
23
+ this.transitioned = true;
24
+ }
25
+ get transform() {
26
+ const x = this.transitioned ? this.computedTranslate : this.translate;
27
+ return `translateX(${100 * x}%)`;
28
+ }
29
+ onTransitioned(transitioned) {
30
+ this.transitioned = transitioned;
31
+ if (!transitioned) {
32
+ this.translate = this.computedTranslate;
33
+ }
34
+ }
35
+ getStyle(itemsCount) {
36
+ const percent = `${100 / itemsCount}%`;
37
+ return {
38
+ flexBasis: percent,
39
+ minWidth: percent,
40
+ maxWidth: percent,
41
+ };
42
+ }
43
+ next() {
44
+ this.updateIndex(this.index + 1);
45
+ }
46
+ prev() {
47
+ this.updateIndex(this.index - 1);
48
+ }
49
+ isDisabled(index) {
50
+ return index < this.index || index > this.index + this.itemsCount;
51
+ }
52
+ onIntersection({ intersectionRatio }, index) {
53
+ if (intersectionRatio && intersectionRatio !== 1 && !this.transitioned) {
54
+ this.updateIndex(index - Math.floor(this.itemsCount / 2));
55
+ }
56
+ }
57
+ onScroll(delta) {
58
+ if (!this.isMobile) {
59
+ this.updateIndex(this.index + delta);
60
+ }
61
+ }
62
+ onPan(x) {
63
+ if (!this.computedDraggable) {
64
+ return;
65
+ }
66
+ const { clientWidth } = this.elementRef.nativeElement;
67
+ const min = 1 - this.items.length / this.itemsCount;
68
+ this.translate = clamp(x / clientWidth + this.translate, min, 0);
69
+ }
70
+ onSwipe(direction) {
71
+ if (Math.round(this.translate) !== -this.index || !this.computedDraggable) {
72
+ return;
73
+ }
74
+ else if (direction === 'left') {
75
+ this.next();
76
+ }
77
+ else if (direction === 'right') {
78
+ this.prev();
79
+ }
80
+ }
81
+ onAutoscroll() {
82
+ this.updateIndex(this.index === this.items.length - 1 ? 0 : this.index + 1);
83
+ }
84
+ get computedTranslate() {
85
+ return -this.index / this.itemsCount;
86
+ }
87
+ get computedDraggable() {
88
+ return this.isMobile || this.draggable;
89
+ }
90
+ updateIndex(index) {
91
+ this.index = clamp(index, 0, this.items.length - 1);
92
+ this.indexChange.emit(this.index);
93
+ this.changeDetectorRef.markForCheck();
94
+ }
95
+ };
96
+ TuiCarouselComponent.ctorParameters = () => [
97
+ { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
98
+ { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
99
+ { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] }
100
+ ];
101
+ __decorate([
102
+ Input(),
103
+ HostBinding('class._draggable'),
104
+ tuiDefaultProp()
105
+ ], TuiCarouselComponent.prototype, "draggable", void 0);
106
+ __decorate([
107
+ Input(),
108
+ tuiDefaultProp()
109
+ ], TuiCarouselComponent.prototype, "itemsCount", void 0);
110
+ __decorate([
111
+ Input(),
112
+ tuiDefaultProp()
113
+ ], TuiCarouselComponent.prototype, "index", void 0);
114
+ __decorate([
115
+ Output()
116
+ ], TuiCarouselComponent.prototype, "indexChange", void 0);
117
+ __decorate([
118
+ ContentChildren(TuiItemDirective, { read: TemplateRef })
119
+ ], TuiCarouselComponent.prototype, "items", void 0);
120
+ __decorate([
121
+ HostBinding('class._transitioned')
122
+ ], TuiCarouselComponent.prototype, "transitioned", void 0);
123
+ __decorate([
124
+ HostListener('touchstart', ['false']),
125
+ HostListener('touchend', ['true']),
126
+ HostListener('mousedown', ['false']),
127
+ HostListener('document:mouseup.silent', ['true'])
128
+ ], TuiCarouselComponent.prototype, "onTransitioned", null);
129
+ __decorate([
130
+ tuiPure
131
+ ], TuiCarouselComponent.prototype, "getStyle", null);
132
+ TuiCarouselComponent = __decorate([
133
+ Component({
134
+ selector: 'tui-carousel',
135
+ template: "<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<div class=\"t-scroller\" (tuiCarouselScroll)=\"onScroll($event)\">\n <div class=\"t-wrapper\">\n <div\n waIntersectionObserver\n waIntersectionThreshold=\"0,1\"\n waIntersectionRootMargin=\"100px 100000px 100px -51%\"\n class=\"t-items\"\n [style.transform]=\"transform\"\n (tuiPan)=\"onPan($event[0])\"\n (tuiSwipe)=\"onSwipe($event.direction)\"\n (tuiCarouselAutoscroll)=\"onAutoscroll()\"\n >\n <fieldset\n *ngFor=\"let item of items; let i = index\"\n class=\"t-item\"\n [disabled]=\"isDisabled(i)\"\n [ngStyle]=\"getStyle(itemsCount)\"\n (waIntersectionObservee)=\"onIntersection($event[0], i)\"\n >\n <ng-container [ngTemplateOutlet]=\"item\"></ng-container>\n </fieldset>\n </div>\n </div>\n</div>\n",
136
+ changeDetection: ChangeDetectionStrategy.OnPush,
137
+ providers: [
138
+ {
139
+ provide: INTERSECTION_ROOT,
140
+ useExisting: ElementRef,
141
+ },
142
+ ],
143
+ styles: [":host{position:relative;display:block;overflow:hidden}:host._draggable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._draggable:hover{cursor:-webkit-grab;cursor:grab}:host._draggable:active{cursor:-webkit-grabbing;cursor:grabbing}.t-items{display:flex;align-items:center}:host._transitioned .t-items{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}.t-item{padding:0 1.25rem;flex:1;min-width:100%;max-width:100%;box-sizing:border-box;border:none;margin:0}.t-wrapper{position:sticky;left:0;right:0;min-width:100%;overflow:hidden}.t-scroller{scrollbar-width:none;-ms-overflow-style:none;display:flex;overflow:auto;overscroll-behavior-x:none;padding-bottom:2rem;margin-bottom:-2rem}.t-scroller::-webkit-scrollbar,.t-scroller::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}.t-scroller:after,.t-scroller:before{content:'';display:block;min-width:1rem}"]
144
+ }),
145
+ __param(0, Inject(ChangeDetectorRef)),
146
+ __param(1, Inject(ElementRef)),
147
+ __param(2, Inject(TUI_IS_MOBILE))
148
+ ], TuiCarouselComponent);
149
+
150
+ let TuiCarouselDirective = class TuiCarouselDirective extends Observable {
151
+ constructor(elementRef, visible$) {
152
+ super(subscriber => this.output$.subscribe(subscriber));
153
+ this.elementRef = elementRef;
154
+ this.visible$ = visible$;
155
+ this.duration$ = new BehaviorSubject(0);
156
+ this.running$ = merge(typedFromEvent(this.elementRef.nativeElement, 'mouseenter').pipe(mapTo(false)), typedFromEvent(this.elementRef.nativeElement, 'touchstart').pipe(mapTo(false)), typedFromEvent(this.elementRef.nativeElement, 'touchend').pipe(mapTo(true)), typedFromEvent(this.elementRef.nativeElement, 'mouseleave').pipe(mapTo(true)), this.visible$);
157
+ this.output$ = combineLatest([this.duration$, this.running$]).pipe(switchMap(([duration, running]) => duration && running ? interval(duration) : EMPTY));
158
+ }
159
+ set duration(duration) {
160
+ this.duration$.next(duration);
161
+ }
162
+ };
163
+ TuiCarouselDirective.ctorParameters = () => [
164
+ { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
165
+ { type: Observable, decorators: [{ type: Inject, args: [PAGE_VISIBILITY,] }] }
166
+ ];
167
+ __decorate([
168
+ Input()
169
+ ], TuiCarouselDirective.prototype, "duration", null);
170
+ TuiCarouselDirective = __decorate([
171
+ Directive({
172
+ selector: 'tui-carousel',
173
+ }),
174
+ __param(0, Inject(ElementRef)),
175
+ __param(1, Inject(PAGE_VISIBILITY))
176
+ ], TuiCarouselDirective);
177
+
178
+ let TuiCarouselAutoscrollDirective = class TuiCarouselAutoscrollDirective {
179
+ constructor(tuiCarouselAutoscroll) {
180
+ this.tuiCarouselAutoscroll = tuiCarouselAutoscroll;
181
+ }
182
+ };
183
+ TuiCarouselAutoscrollDirective.ctorParameters = () => [
184
+ { type: Observable, decorators: [{ type: Inject, args: [TuiCarouselDirective,] }] }
185
+ ];
186
+ TuiCarouselAutoscrollDirective = __decorate([
187
+ Directive({
188
+ selector: '[tuiCarouselAutoscroll]',
189
+ outputs: ['tuiCarouselAutoscroll'],
190
+ }),
191
+ __param(0, Inject(TuiCarouselDirective))
192
+ ], TuiCarouselAutoscrollDirective);
193
+
194
+ // TODO: remove in ivy compilation
195
+ const CAROUSEL_BUTTON_OPTIONS = {
196
+ appearance: "secondary" /* Secondary */,
197
+ shape: 'rounded',
198
+ size: 'm',
199
+ };
200
+ let TuiCarouselButtonsDirective = class TuiCarouselButtonsDirective {
201
+ };
202
+ TuiCarouselButtonsDirective = __decorate([
203
+ Directive({
204
+ selector: '[tuiCarouselButtons]',
205
+ providers: [
206
+ {
207
+ provide: TUI_BUTTON_OPTIONS,
208
+ useValue: CAROUSEL_BUTTON_OPTIONS,
209
+ },
210
+ ],
211
+ })
212
+ ], TuiCarouselButtonsDirective);
213
+
214
+ let TuiCarouselScrollDirective = class TuiCarouselScrollDirective {
215
+ constructor(elementRef) {
216
+ this.elementRef = elementRef;
217
+ this.tuiCarouselScroll = typedFromEvent(this.elementRef.nativeElement, 'wheel').pipe(filter(({ deltaX }) => Math.abs(deltaX) > 20), throttleTime(500), map(({ deltaX }) => Math.sign(deltaX)),
218
+ // So we always have space to scroll and overflow-behavior saves us from back nav
219
+ tap(() => (this.elementRef.nativeElement.scrollLeft = 10)));
220
+ }
221
+ };
222
+ TuiCarouselScrollDirective.ctorParameters = () => [
223
+ { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
224
+ ];
225
+ __decorate([
226
+ Output()
227
+ ], TuiCarouselScrollDirective.prototype, "tuiCarouselScroll", void 0);
228
+ TuiCarouselScrollDirective = __decorate([
229
+ Directive({
230
+ selector: '[tuiCarouselScroll]',
231
+ }),
232
+ __param(0, Inject(ElementRef))
233
+ ], TuiCarouselScrollDirective);
234
+
235
+ let TuiCarouselModule = class TuiCarouselModule {
236
+ };
237
+ TuiCarouselModule = __decorate([
238
+ NgModule({
239
+ imports: [
240
+ CommonModule,
241
+ IntersectionObserverModule,
242
+ TuiPanModule,
243
+ TuiSwipeModule,
244
+ TuiItemModule,
245
+ ],
246
+ declarations: [
247
+ TuiCarouselComponent,
248
+ TuiCarouselDirective,
249
+ TuiCarouselButtonsDirective,
250
+ TuiCarouselAutoscrollDirective,
251
+ TuiCarouselScrollDirective,
252
+ ],
253
+ exports: [
254
+ TuiCarouselComponent,
255
+ TuiCarouselDirective,
256
+ TuiCarouselButtonsDirective,
257
+ TuiItemDirective,
258
+ ],
259
+ })
260
+ ], TuiCarouselModule);
261
+
262
+ /**
263
+ * Generated bundle index. Do not edit.
264
+ */
265
+
266
+ export { CAROUSEL_BUTTON_OPTIONS, TuiCarouselAutoscrollDirective, TuiCarouselButtonsDirective, TuiCarouselComponent, TuiCarouselDirective, TuiCarouselModule, TuiCarouselScrollDirective };
267
+ //# sourceMappingURL=taiga-ui-kit-components-carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-components-carousel.js","sources":["ng://@taiga-ui/kit/components/carousel/carousel.component.ts","ng://@taiga-ui/kit/components/carousel/carousel.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-autoscroll.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-buttons.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-scroll.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel.module.ts","ng://@taiga-ui/kit/components/carousel/taiga-ui-kit-components-carousel.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {INTERSECTION_ROOT} from '@ng-web-apis/intersection-observer';\nimport {\n clamp,\n EMPTY_QUERY,\n TUI_IS_MOBILE,\n tuiDefaultProp,\n TuiItemDirective,\n tuiPure,\n TuiSwipeDirection,\n} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-carousel',\n templateUrl: 'carousel.template.html',\n styleUrls: ['carousel.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: INTERSECTION_ROOT,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiCarouselComponent {\n private translate = 0;\n\n @Input()\n @HostBinding('class._draggable')\n @tuiDefaultProp()\n draggable = false;\n\n @Input()\n @tuiDefaultProp()\n itemsCount = 1;\n\n @Input()\n @tuiDefaultProp()\n index = 0;\n\n @Output()\n readonly indexChange = new EventEmitter<number>();\n\n @ContentChildren(TuiItemDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<any>> = EMPTY_QUERY;\n\n @HostBinding('class._transitioned')\n transitioned = true;\n\n constructor(\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n ) {}\n\n get transform(): string {\n const x = this.transitioned ? this.computedTranslate : this.translate;\n\n return `translateX(${100 * x}%)`;\n }\n\n @HostListener('touchstart', ['false'])\n @HostListener('touchend', ['true'])\n @HostListener('mousedown', ['false'])\n @HostListener('document:mouseup.silent', ['true'])\n onTransitioned(transitioned: boolean) {\n this.transitioned = transitioned;\n\n if (!transitioned) {\n this.translate = this.computedTranslate;\n }\n }\n\n @tuiPure\n getStyle(itemsCount: number): Partial<CSSStyleDeclaration> {\n const percent = `${100 / itemsCount}%`;\n\n return {\n flexBasis: percent,\n minWidth: percent,\n maxWidth: percent,\n };\n }\n\n next() {\n this.updateIndex(this.index + 1);\n }\n\n prev() {\n this.updateIndex(this.index - 1);\n }\n\n isDisabled(index: number): boolean {\n return index < this.index || index > this.index + this.itemsCount;\n }\n\n onIntersection({intersectionRatio}: IntersectionObserverEntry, index: number) {\n if (intersectionRatio && intersectionRatio !== 1 && !this.transitioned) {\n this.updateIndex(index - Math.floor(this.itemsCount / 2));\n }\n }\n\n onScroll(delta: number) {\n if (!this.isMobile) {\n this.updateIndex(this.index + delta);\n }\n }\n\n onPan(x: number) {\n if (!this.computedDraggable) {\n return;\n }\n\n const {clientWidth} = this.elementRef.nativeElement;\n const min = 1 - this.items.length / this.itemsCount;\n\n this.translate = clamp(x / clientWidth + this.translate, min, 0);\n }\n\n onSwipe(direction: TuiSwipeDirection) {\n if (Math.round(this.translate) !== -this.index || !this.computedDraggable) {\n return;\n } else if (direction === 'left') {\n this.next();\n } else if (direction === 'right') {\n this.prev();\n }\n }\n\n onAutoscroll() {\n this.updateIndex(this.index === this.items.length - 1 ? 0 : this.index + 1);\n }\n\n private get computedTranslate(): number {\n return -this.index / this.itemsCount;\n }\n\n private get computedDraggable(): boolean {\n return this.isMobile || this.draggable;\n }\n\n private updateIndex(index: number) {\n this.index = clamp(index, 0, this.items.length - 1);\n this.indexChange.emit(this.index);\n this.changeDetectorRef.markForCheck();\n }\n}\n","import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {PAGE_VISIBILITY} from '@ng-web-apis/common';\nimport {typedFromEvent} from '@taiga-ui/cdk';\nimport {BehaviorSubject, combineLatest, EMPTY, interval, merge, Observable} from 'rxjs';\nimport {mapTo, switchMap} from 'rxjs/operators';\n\n@Directive({\n selector: 'tui-carousel',\n})\nexport class TuiCarouselDirective extends Observable<unknown> {\n private readonly duration$ = new BehaviorSubject(0);\n\n private readonly running$ = merge(\n typedFromEvent(this.elementRef.nativeElement, 'mouseenter').pipe(mapTo(false)),\n typedFromEvent(this.elementRef.nativeElement, 'touchstart').pipe(mapTo(false)),\n typedFromEvent(this.elementRef.nativeElement, 'touchend').pipe(mapTo(true)),\n typedFromEvent(this.elementRef.nativeElement, 'mouseleave').pipe(mapTo(true)),\n this.visible$,\n );\n\n private readonly output$ = combineLatest([this.duration$, this.running$]).pipe(\n switchMap(([duration, running]) =>\n duration && running ? interval(duration) : EMPTY,\n ),\n );\n\n @Input()\n set duration(duration: number) {\n this.duration$.next(duration);\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(PAGE_VISIBILITY) private readonly visible$: Observable<boolean>,\n ) {\n super(subscriber => this.output$.subscribe(subscriber));\n }\n}\n","import {Directive, Inject} from '@angular/core';\nimport {Observable} from 'rxjs';\n\nimport {TuiCarouselDirective} from './carousel.directive';\n\n@Directive({\n selector: '[tuiCarouselAutoscroll]',\n outputs: ['tuiCarouselAutoscroll'],\n})\nexport class TuiCarouselAutoscrollDirective {\n constructor(\n @Inject(TuiCarouselDirective) readonly tuiCarouselAutoscroll: Observable<unknown>,\n ) {}\n}\n","import {Directive} from '@angular/core';\nimport {ButtonOptions, TUI_BUTTON_OPTIONS, TuiAppearance} from '@taiga-ui/core';\n\n// TODO: remove in ivy compilation\nexport const CAROUSEL_BUTTON_OPTIONS: ButtonOptions = {\n appearance: TuiAppearance.Secondary,\n shape: 'rounded',\n size: 'm',\n};\n\n@Directive({\n selector: '[tuiCarouselButtons]',\n providers: [\n {\n provide: TUI_BUTTON_OPTIONS,\n useValue: CAROUSEL_BUTTON_OPTIONS,\n },\n ],\n})\nexport class TuiCarouselButtonsDirective {}\n","import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {typedFromEvent} from '@taiga-ui/cdk';\nimport {filter, map, tap, throttleTime} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiCarouselScroll]',\n})\nexport class TuiCarouselScrollDirective {\n @Output()\n readonly tuiCarouselScroll = typedFromEvent(\n this.elementRef.nativeElement,\n 'wheel',\n ).pipe(\n filter(({deltaX}) => Math.abs(deltaX) > 20),\n throttleTime(500),\n map(({deltaX}) => Math.sign(deltaX)),\n // So we always have space to scroll and overflow-behavior saves us from back nav\n tap(() => (this.elementRef.nativeElement.scrollLeft = 10)),\n );\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {IntersectionObserverModule} from '@ng-web-apis/intersection-observer';\nimport {\n TuiItemDirective,\n TuiItemModule,\n TuiPanModule,\n TuiSwipeModule,\n} from '@taiga-ui/cdk';\n\nimport {TuiCarouselComponent} from './carousel.component';\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselAutoscrollDirective} from './carousel-autoscroll.directive';\nimport {TuiCarouselButtonsDirective} from './carousel-buttons.directive';\nimport {TuiCarouselScrollDirective} from './carousel-scroll.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n IntersectionObserverModule,\n TuiPanModule,\n TuiSwipeModule,\n TuiItemModule,\n ],\n declarations: [\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselButtonsDirective,\n TuiCarouselAutoscrollDirective,\n TuiCarouselScrollDirective,\n ],\n exports: [\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselButtonsDirective,\n TuiItemDirective,\n ],\n})\nexport class TuiCarouselModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA0BA;IAaa,oBAAoB,GAAjC,MAAa,oBAAoB;IAyB7B,YACgD,iBAAoC,EAC3C,UAAmC,EAChC,QAAiB;QAFb,sBAAiB,GAAjB,iBAAiB,CAAmB;QAC3C,eAAU,GAAV,UAAU,CAAyB;QAChC,aAAQ,GAAR,QAAQ,CAAS;QA3BrD,cAAS,GAAG,CAAC,CAAC;QAKtB,cAAS,GAAG,KAAK,CAAC;QAIlB,eAAU,GAAG,CAAC,CAAC;QAIf,UAAK,GAAG,CAAC,CAAC;QAGD,gBAAW,GAAG,IAAI,YAAY,EAAU,CAAC;QAGzC,UAAK,GAAgC,WAAW,CAAC;QAG1D,iBAAY,GAAG,IAAI,CAAC;KAMhB;IAEJ,IAAI,SAAS;QACT,MAAM,CAAC,GAAG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC;QAEtE,OAAO,cAAc,GAAG,GAAG,CAAC,IAAI,CAAC;KACpC;IAMD,cAAc,CAAC,YAAqB;QAChC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,IAAI,CAAC,YAAY,EAAE;YACf,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC3C;KACJ;IAGD,QAAQ,CAAC,UAAkB;QACvB,MAAM,O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gBtC;;ICeY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAtB7B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,0BAA0B;YAC1B,YAAY;YACZ,cAAc;YACd,aAAa;SAChB;QACD,YAAY,EAAE;YACV,oBAAoB;YACpB,oBAAoB;YACpB,2BAA2B;YAC3B,8BAA8B;YAC9B,0BAA0B;SAC7B;QACD,OAAO,EAAE;YACL,oBAAoB;YACpB,oBAAoB;YACpB,2BAA2B;YAC3B,gBAAgB;SACnB;KACJ,CAAC;GACW,iBAAiB,CAAG;;ACtCjC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, ViewChild, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl, FormsModule } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiHoveredModule, TuiPressedModule } from '@taiga-ui/cdk';
5
5
  import { TuiModeDirective, TuiWrapperModule } from '@taiga-ui/core';
@@ -55,6 +55,9 @@ TuiCheckboxBlockComponent.ctorParameters = () => [
55
55
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
56
56
  { type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] }
57
57
  ];
58
+ __decorate([
59
+ ViewChild(TuiCheckboxComponent)
60
+ ], TuiCheckboxBlockComponent.prototype, "checkbox", void 0);
58
61
  __decorate([
59
62
  Input(),
60
63
  HostBinding('attr.data-tui-host-align'),
@@ -70,9 +73,6 @@ __decorate([
70
73
  HostBinding('attr.data-tui-host-size'),
71
74
  tuiDefaultProp()
72
75
  ], TuiCheckboxBlockComponent.prototype, "size", void 0);
73
- __decorate([
74
- ViewChild(TuiCheckboxComponent)
75
- ], TuiCheckboxBlockComponent.prototype, "checkbox", void 0);
76
76
  __decorate([
77
77
  HostBinding('class._active')
78
78
  ], TuiCheckboxBlockComponent.prototype, "checked", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-checkbox-block.js","sources":["ng://@taiga-ui/kit/components/checkbox-block/checkbox-block.component.ts","ng://@taiga-ui/kit/components/checkbox-block/checkbox-block.module.ts","ng://@taiga-ui/kit/components/checkbox-block/taiga-ui-kit-components-checkbox-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiCheckboxComponent} from '@taiga-ui/kit/components/checkbox';\n\n@Component({\n selector: 'tui-checkbox-block',\n templateUrl: './checkbox-block.template.html',\n styleUrls: ['./checkbox-block.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiCheckboxBlockComponent),\n },\n ],\n})\nexport class TuiCheckboxBlockComponent\n extends AbstractTuiNullableControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @HostBinding('attr.data-tui-host-align')\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @HostBinding('class._hidden_checkbox')\n @tuiDefaultProp()\n hideCheckbox = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = 'l';\n\n @ViewChild(TuiCheckboxComponent)\n private checkbox?: TuiCheckboxComponent;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.checkbox ? this.checkbox.nativeFocusableElement : null;\n }\n\n @HostBinding('class._active')\n get checked(): boolean {\n return this.value !== false && this.hideCheckbox;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.size === 'l' ? 'l' : 'm';\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n if (!this.modeDirective || !this.modeDirective.mode) {\n return this.checked\n ? TuiAppearance.WhiteblockActive\n : TuiAppearance.Whiteblock;\n }\n\n return this.checked ? TuiAppearance.Primary : TuiAppearance.Secondary;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n onModelChange(value: boolean) {\n this.updateValue(value);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiHoveredModule, TuiPressedModule} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiCheckboxModule} from '@taiga-ui/kit/components/checkbox';\n\nimport {TuiCheckboxBlockComponent} from './checkbox-block.component';\n\n@NgModule({\n imports: [\n FormsModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiCheckboxModule,\n TuiWrapperModule,\n ],\n declarations: [TuiCheckboxBlockComponent],\n exports: [TuiCheckboxBlockComponent],\n})\nexport class TuiCheckboxBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA0Ca,yBAAyB,iCAAtC,MAAa,yBACT,SAAQ,0BAAmC;IAqB3C,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBAAa,GAAb,aAAa,CAAyB;QAvB3D,iBAAY,GAA2B,OAAO,CAAC;QAK/C,iBAAY,GAAG,KAAK,CAAC;QAKrB,SAAI,GAAwB,GAAG,CAAC;KAgB/B;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,sBAAsB,GAAG,IAAI,CAAC;KACtE;IAGD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC;KACpD;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;KACxC;IAED,IAAI,OAAO;QACP,OAAO,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KACvD;IAED,IAAI,UAAU;QACV,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE;YACjD,OAAO,IAAI,CAAC,OAAO;;gDAEY;SAClC;QAED,OAAO,IAAI,CAAC,OAAO,yDAAmD;KACzE;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAA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AAzB,sBAAsB;IAXlC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,iBAAiB;YACjB,gBAAgB;SACnB;QACD,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;ACnBtC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-checkbox-block.js","sources":["ng://@taiga-ui/kit/components/checkbox-block/checkbox-block.component.ts","ng://@taiga-ui/kit/components/checkbox-block/checkbox-block.module.ts","ng://@taiga-ui/kit/components/checkbox-block/taiga-ui-kit-components-checkbox-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiCheckboxComponent} from '@taiga-ui/kit/components/checkbox';\n\n@Component({\n selector: 'tui-checkbox-block',\n templateUrl: './checkbox-block.template.html',\n styleUrls: ['./checkbox-block.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiCheckboxBlockComponent),\n },\n ],\n})\nexport class TuiCheckboxBlockComponent\n extends AbstractTuiNullableControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiCheckboxComponent)\n private checkbox?: TuiCheckboxComponent;\n\n @Input()\n @HostBinding('attr.data-tui-host-align')\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @HostBinding('class._hidden_checkbox')\n @tuiDefaultProp()\n hideCheckbox = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = 'l';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.checkbox ? this.checkbox.nativeFocusableElement : null;\n }\n\n @HostBinding('class._active')\n get checked(): boolean {\n return this.value !== false && this.hideCheckbox;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.size === 'l' ? 'l' : 'm';\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n if (!this.modeDirective || !this.modeDirective.mode) {\n return this.checked\n ? TuiAppearance.WhiteblockActive\n : TuiAppearance.Whiteblock;\n }\n\n return this.checked ? TuiAppearance.Primary : TuiAppearance.Secondary;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n onModelChange(value: boolean) {\n this.updateValue(value);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiHoveredModule, TuiPressedModule} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiCheckboxModule} from '@taiga-ui/kit/components/checkbox';\n\nimport {TuiCheckboxBlockComponent} from './checkbox-block.component';\n\n@NgModule({\n imports: [\n FormsModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiCheckboxModule,\n TuiWrapperModule,\n ],\n declarations: [TuiCheckboxBlockComponent],\n exports: [TuiCheckboxBlockComponent],\n})\nexport class TuiCheckboxBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA0Ca,yBAAyB,iCAAtC,MAAa,yBACT,SAAQ,0BAAmC;IAqB3C,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBAAa,GAAb,aAAa,CAAyB;QApB3D,iBAAY,GAA2B,OAAO,CAAC;QAK/C,iBAAY,GAAG,KAAK,CAAC;QAKrB,SAAI,GAAwB,GAAG,CAAC;KAa/B;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,sBAAsB,GAAG,IAAI,CAAC;KACtE;IAGD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,IAAI,IAAI,CAAC,YAAY,CAAC;KACpD;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;KACxC;IAED,IAAI,OAAO;QACP,OAAO,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KACvD;IAED,IAAI,UAAU;QACV,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE;YACjD,OAAO,IAAI,CAAC,OAAO;;gDAEY;SAClC;QAED,OAAO,IAAI,CAAC,OAAO,yDAAmD;KACzE;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,SAAS,CAAC,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GY,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAXlC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,iBAAiB;YACjB,gBAAgB;SACnB;QACD,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;ACnBtC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, ViewChild, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl, FormsModule } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiHoveredModule, TuiPressedModule } from '@taiga-ui/cdk';
5
5
  import { TuiModeDirective } from '@taiga-ui/core';
@@ -40,14 +40,14 @@ TuiCheckboxLabeledComponent.ctorParameters = () => [
40
40
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
41
41
  { type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] }
42
42
  ];
43
+ __decorate([
44
+ ViewChild(TuiCheckboxComponent)
45
+ ], TuiCheckboxLabeledComponent.prototype, "checkbox", void 0);
43
46
  __decorate([
44
47
  Input(),
45
48
  HostBinding('attr.data-tui-host-size'),
46
49
  tuiDefaultProp()
47
50
  ], TuiCheckboxLabeledComponent.prototype, "size", void 0);
48
- __decorate([
49
- ViewChild(TuiCheckboxComponent)
50
- ], TuiCheckboxLabeledComponent.prototype, "checkbox", void 0);
51
51
  __decorate([
52
52
  HostBinding('attr.data-mode')
53
53
  ], TuiCheckboxLabeledComponent.prototype, "hostMode", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-checkbox-labeled.js","sources":["ng://@taiga-ui/kit/components/checkbox-labeled/checkbox-labeled.component.ts","ng://@taiga-ui/kit/components/checkbox-labeled/checkbox-labeled.module.ts","ng://@taiga-ui/kit/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiCheckboxComponent} from '@taiga-ui/kit/components/checkbox';\n\n@Component({\n selector: 'tui-checkbox-labeled',\n templateUrl: './checkbox-labeled.template.html',\n styleUrls: ['./checkbox-labeled.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiCheckboxLabeledComponent),\n },\n ],\n})\nexport class TuiCheckboxLabeledComponent\n extends AbstractTuiNullableControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @ViewChild(TuiCheckboxComponent)\n private checkbox?: TuiCheckboxComponent;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.checkbox ? this.checkbox.nativeFocusableElement : null;\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onModelChange(value: boolean) {\n this.updateValue(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiHoveredModule, TuiPressedModule} from '@taiga-ui/cdk';\nimport {TuiCheckboxModule} from '@taiga-ui/kit/components/checkbox';\n\nimport {TuiCheckboxLabeledComponent} from './checkbox-labeled.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiCheckboxModule,\n ],\n declarations: [TuiCheckboxLabeledComponent],\n exports: [TuiCheckboxLabeledComponent],\n})\nexport class TuiCheckboxLabeledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAoCa,2BAA2B,mCAAxC,MAAa,2BACT,SAAQ,0BAAmC;IAW3C,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBAAa,GAAb,aAAa,CAAyB;QAb3D,SAAI,GAAa,GAAG,CAAC;KAgBpB;IAED,IAAI,OAAO;QACP,OAAO,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KACvD;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,sBAAsB,GAAG,IAAI,CAAC;KACtE;IAGD,IAAI,Q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pB,2BAA2B,CAqDvC;;ICtEY,wBAAwB,GAArC,MAAa,wBAAwB;EAAG;AAA3B,wBAAwB;IAXpC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,iBAAiB;SACpB;QACD,YAAY,EAAE,CAAC,2BAA2B,CAAC;QAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;KACzC,CAAC;GACW,wBAAwB,CAAG;;ACnBxC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-checkbox-labeled.js","sources":["ng://@taiga-ui/kit/components/checkbox-labeled/checkbox-labeled.component.ts","ng://@taiga-ui/kit/components/checkbox-labeled/checkbox-labeled.module.ts","ng://@taiga-ui/kit/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiCheckboxComponent} from '@taiga-ui/kit/components/checkbox';\n\n@Component({\n selector: 'tui-checkbox-labeled',\n templateUrl: './checkbox-labeled.template.html',\n styleUrls: ['./checkbox-labeled.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiCheckboxLabeledComponent),\n },\n ],\n})\nexport class TuiCheckboxLabeledComponent\n extends AbstractTuiNullableControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiCheckboxComponent)\n private checkbox?: TuiCheckboxComponent;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.checkbox ? this.checkbox.nativeFocusableElement : null;\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onModelChange(value: boolean) {\n this.updateValue(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiHoveredModule, TuiPressedModule} from '@taiga-ui/cdk';\nimport {TuiCheckboxModule} from '@taiga-ui/kit/components/checkbox';\n\nimport {TuiCheckboxLabeledComponent} from './checkbox-labeled.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiCheckboxModule,\n ],\n declarations: [TuiCheckboxLabeledComponent],\n exports: [TuiCheckboxLabeledComponent],\n})\nexport class TuiCheckboxLabeledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAoCa,2BAA2B,mCAAxC,MAAa,2BACT,SAAQ,0BAAmC;IAW3C,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBA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AA2B,CAAC;aAC7D;SACJ;;KACJ,CAAC;IAcO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAnBpB,2BAA2B,CAqDvC;;ICtEY,wBAAwB,GAArC,MAAa,wBAAwB;EAAG;AAA3B,wBAAwB;IAXpC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,iBAAiB;SACpB;QACD,YAAY,EAAE,CAAC,2BAA2B,CAAC;QAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;KACzC,CAAC;GACW,wBAAwB,CAAG;;ACnBxC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, ViewChild, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiCheckedModule, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule, TuiPressedModule, TuiFocusVisibleModule } from '@taiga-ui/cdk';
5
5
  import { TUI_CHECKBOX_OPTIONS, TuiPrimitiveCheckboxModule } from '@taiga-ui/core';
@@ -44,14 +44,14 @@ TuiCheckboxComponent.ctorParameters = () => [
44
44
  { type: undefined, decorators: [{ type: Inject, args: [TUI_CHECKBOX_OPTIONS,] }] },
45
45
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] }
46
46
  ];
47
+ __decorate([
48
+ ViewChild('focusableElement')
49
+ ], TuiCheckboxComponent.prototype, "focusableElement", void 0);
47
50
  __decorate([
48
51
  Input(),
49
52
  HostBinding('attr.data-tui-host-size'),
50
53
  tuiDefaultProp()
51
54
  ], TuiCheckboxComponent.prototype, "size", void 0);
52
- __decorate([
53
- ViewChild('focusableElement')
54
- ], TuiCheckboxComponent.prototype, "focusableElement", void 0);
55
55
  TuiCheckboxComponent = TuiCheckboxComponent_1 = __decorate([
56
56
  Component({
57
57
  selector: 'tui-checkbox',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-checkbox.js","sources":["ng://@taiga-ui/kit/components/checkbox/checkbox.component.ts","ng://@taiga-ui/kit/components/checkbox/checkbox.module.ts","ng://@taiga-ui/kit/components/checkbox/taiga-ui-kit-components-checkbox.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {CheckboxOptions, TUI_CHECKBOX_OPTIONS, TuiSizeL} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-checkbox',\n templateUrl: './checkbox.template.html',\n styleUrls: ['./checkbox.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiCheckboxComponent),\n },\n ],\n})\nexport class TuiCheckboxComponent\n extends AbstractTuiNullableControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(TUI_CHECKBOX_OPTIONS)\n private readonly options: CheckboxOptions,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get computedFocusable(): boolean {\n return !this.computedDisabled && !this.readOnly && this.focusable;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\n\nimport {TuiCheckboxComponent} from './checkbox.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiPrimitiveCheckboxModule,\n ],\n declarations: [TuiCheckboxComponent],\n exports: [TuiCheckboxComponent],\n})\nexport class TuiCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAmCa,oBAAoB,4BAAjC,MAAa,oBACT,SAAQ,0BAAmC;IAW3C,YAII,OAAyB,EAER,OA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Q,EAAE,cAAc;QACxB,2vBAAuC;QAEvC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAoB,CAAC;aACtD;SACJ;;KACJ,CAAC;IAcO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;IAE5B,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAnBrB,oBAAoB,CAyDhC;;IChEY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAd7B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,0BAA0B;SAC7B;QACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;AC5BjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-checkbox.js","sources":["ng://@taiga-ui/kit/components/checkbox/checkbox.component.ts","ng://@taiga-ui/kit/components/checkbox/checkbox.module.ts","ng://@taiga-ui/kit/components/checkbox/taiga-ui-kit-components-checkbox.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {CheckboxOptions, TUI_CHECKBOX_OPTIONS, TuiSizeL} from '@taiga-ui/core';\n\n@Component({\n selector: 'tui-checkbox',\n templateUrl: './checkbox.template.html',\n styleUrls: ['./checkbox.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiCheckboxComponent),\n },\n ],\n})\nexport class TuiCheckboxComponent\n extends AbstractTuiNullableControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(TUI_CHECKBOX_OPTIONS)\n private readonly options: CheckboxOptions,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get computedFocusable(): boolean {\n return !this.computedDisabled && !this.readOnly && this.focusable;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\n\nimport {TuiCheckboxComponent} from './checkbox.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiPrimitiveCheckboxModule,\n ],\n declarations: [TuiCheckboxComponent],\n exports: [TuiCheckboxComponent],\n})\nexport class TuiCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAmCa,oBAAoB,4BAAjC,MAAa,oBACT,SAAQ,0BAAmC;IAW3C,YAII,OAAyB,EAER,OAAwB,EACd,iBAAoC;QAE/D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAHjB,YAAO,GAAP,OAAO,CAAiB;QAR7C,SAAI,GAAa,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;KAYlC;IAED,IAAI,sBAAsB;QACtB,OAAO,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB;cAChD,IAAI;cACJ,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC;KAC7C;IAED,IAAI,OAAO;QACP,OAAO,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KACvD;IAED,IAAI,iBAAiB;QACjB,OAAO,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC;KACrE;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KAC7B;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,SAAS,CAAC,OAAgB;QACtB,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,cAAc,CAAC,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, ContentChild, TemplateRef, ViewChild, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, ContentChild, ViewChild, Input, Output, TemplateRef, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, TUI_DEFAULT_STRINGIFY, TUI_STRICT_MATCHER, TUI_DEFAULT_IDENTITY_MATCHER, isNativeFocused, isPresent, setNativeFocused, tuiDefaultProp, tuiPure, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiActiveZoneModule } from '@taiga-ui/cdk';
5
- import { TuiDataListDirective, TUI_DATA_LIST_ACCESSOR, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, TuiPrimitiveTextfieldModule, TuiHostedDropdownModule } from '@taiga-ui/core';
5
+ import { TUI_DATA_LIST_ACCESSOR, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, TuiDataListDirective, TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, TuiPrimitiveTextfieldModule, TuiHostedDropdownModule } from '@taiga-ui/core';
6
6
  import { TUI_ARROW, TuiArrowModule } from '@taiga-ui/kit/components/arrow';
7
7
  import { TUI_SELECT_OPTION, TuiSelectOptionModule } from '@taiga-ui/kit/components/select-option';
8
8
  import { FIXED_DROPDOWN_CONTROLLER_PROVIDER } from '@taiga-ui/kit/providers';
@@ -22,8 +22,8 @@ let TuiComboBoxComponent = TuiComboBoxComponent_1 = class TuiComboBoxComponent e
22
22
  this.strict = true;
23
23
  this.search = '';
24
24
  this.searchChange = new EventEmitter();
25
- this.open = false;
26
25
  this.datalist = '';
26
+ this.open = false;
27
27
  }
28
28
  get arrow() {
29
29
  return this.disabled || this.readOnly ? '' : TUI_ARROW;
@@ -50,6 +50,12 @@ let TuiComboBoxComponent = TuiComboBoxComponent_1 = class TuiComboBoxComponent e
50
50
  get computedContent() {
51
51
  return this.valueContent || this.nativeValue;
52
52
  }
53
+ computeContext($implicit, active) {
54
+ return {
55
+ $implicit,
56
+ active,
57
+ };
58
+ }
53
59
  onActiveZone(active) {
54
60
  this.updateFocused(active);
55
61
  }
@@ -80,6 +86,7 @@ let TuiComboBoxComponent = TuiComboBoxComponent_1 = class TuiComboBoxComponent e
80
86
  this.close();
81
87
  }
82
88
  onInput(value) {
89
+ var _a;
83
90
  this.updateSearch(value);
84
91
  const match = this.accessor &&
85
92
  this.accessor.getOptions().find(item => this.isStrictMatch(item));
@@ -89,19 +96,11 @@ let TuiComboBoxComponent = TuiComboBoxComponent_1 = class TuiComboBoxComponent e
89
96
  return;
90
97
  }
91
98
  this.updateValue(this.strict || this.search === '' ? null : this.search);
92
- if (this.search && this.hostedDropdown) {
93
- this.hostedDropdown.updateOpen(true);
94
- }
99
+ (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(true);
95
100
  }
96
101
  onHovered(hovered) {
97
102
  this.updateHovered(hovered);
98
103
  }
99
- computeContext($implicit, active) {
100
- return {
101
- $implicit,
102
- active,
103
- };
104
- }
105
104
  toggle() {
106
105
  if (this.hostedDropdown) {
107
106
  this.hostedDropdown.updateOpen(!this.open);
@@ -137,6 +136,15 @@ TuiComboBoxComponent.ctorParameters = () => [
137
136
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
138
137
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] }
139
138
  ];
139
+ __decorate([
140
+ ContentChild(TUI_DATA_LIST_ACCESSOR)
141
+ ], TuiComboBoxComponent.prototype, "accessor", void 0);
142
+ __decorate([
143
+ ViewChild(TuiHostedDropdownComponent)
144
+ ], TuiComboBoxComponent.prototype, "hostedDropdown", void 0);
145
+ __decorate([
146
+ ViewChild(TuiPrimitiveTextfieldComponent)
147
+ ], TuiComboBoxComponent.prototype, "textfield", void 0);
140
148
  __decorate([
141
149
  Input(),
142
150
  tuiDefaultProp()
@@ -167,15 +175,6 @@ __decorate([
167
175
  __decorate([
168
176
  ContentChild(TuiDataListDirective, { read: TemplateRef })
169
177
  ], TuiComboBoxComponent.prototype, "datalist", void 0);
170
- __decorate([
171
- ContentChild(TUI_DATA_LIST_ACCESSOR)
172
- ], TuiComboBoxComponent.prototype, "accessor", void 0);
173
- __decorate([
174
- ViewChild(TuiHostedDropdownComponent)
175
- ], TuiComboBoxComponent.prototype, "hostedDropdown", void 0);
176
- __decorate([
177
- ViewChild(TuiPrimitiveTextfieldComponent)
178
- ], TuiComboBoxComponent.prototype, "textfield", void 0);
179
178
  __decorate([
180
179
  tuiPure
181
180
  ], TuiComboBoxComponent.prototype, "computeContext", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-combo-box.js","sources":["ng://@taiga-ui/kit/components/combo-box/combo-box.component.ts","ng://@taiga-ui/kit/components/combo-box/combo-box.module.ts","ng://@taiga-ui/kit/components/combo-box/taiga-ui-kit-components-combo-box.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n isPresent,\n setNativeFocused,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_STRICT_MATCHER,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n tuiPure,\n TuiStringHandler,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DATA_LIST_ACCESSOR,\n TUI_DATA_LIST_HOST,\n TUI_OPTION_CONTENT,\n TuiDataListAccessor,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TUI_ARROW} from '@taiga-ui/kit/components/arrow';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n// TODO: remove in ivy compilation\nexport const COMBOBOX_OPTION: any = TUI_SELECT_OPTION;\n\n@Component({\n selector: 'tui-combo-box',\n templateUrl: './combo-box.template.html',\n styleUrls: ['./combo-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiComboBoxComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiComboBoxComponent),\n },\n {\n provide: TUI_OPTION_CONTENT,\n useValue: COMBOBOX_OPTION,\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiComboBoxComponent<T>\n extends AbstractTuiNullableControl<T | string>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @Input()\n @tuiDefaultProp()\n stringify: TuiStringHandler<T> = TUI_DEFAULT_STRINGIFY;\n\n @Input()\n @tuiDefaultProp()\n strictMatcher: TuiStringMatcher<T> = TUI_STRICT_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n valueContent: PolymorpheusContent<TuiValueContentContext<T>> = '';\n\n @Input()\n @tuiDefaultProp()\n strict = true;\n\n @Input()\n @tuiDefaultProp()\n search: string | null = '';\n\n @Output()\n readonly searchChange = new EventEmitter<string | null>();\n\n open = false;\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent = '';\n\n @ContentChild(TUI_DATA_LIST_ACCESSOR as any)\n private readonly accessor?: TuiDataListAccessor<T>;\n\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get arrow(): PolymorpheusContent {\n return this.disabled || this.readOnly ? '' : TUI_ARROW;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get nativeValue(): string {\n if (this.value === null) {\n return this.search || '';\n }\n\n return typeof this.value === 'string' ? this.value : this.stringify(this.value);\n }\n\n get showValueTemplate(): boolean {\n return isPresent(this.value) && !this.focused;\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly;\n }\n\n get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.nativeValue;\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n checkOption(option: T) {\n if (!this.isStrictMatch(option)) {\n return;\n }\n\n this.updateValue(option);\n this.updateSearch(null);\n }\n\n handleOption(item: T) {\n this.setNativeValue(this.stringify(item));\n this.focusInput();\n this.close();\n this.updateSearch(null);\n this.updateValue(item);\n }\n\n onFieldKeyDownEnter(event: KeyboardEvent) {\n if (this.open) {\n event.preventDefault();\n }\n\n const options = this.accessor ? this.accessor.getOptions() : [];\n\n if (options.length !== 1) {\n return;\n }\n\n this.updateValue(options[0]);\n this.updateSearch(null);\n this.close();\n }\n\n onInput(value: string) {\n this.updateSearch(value);\n\n const match =\n this.accessor &&\n this.accessor.getOptions().find(item => this.isStrictMatch(item));\n\n if (match !== undefined) {\n this.updateValue(match);\n this.updateSearch(null);\n\n return;\n }\n\n this.updateValue(this.strict || this.search === '' ? null : this.search);\n\n if (this.search && this.hostedDropdown) {\n this.hostedDropdown.updateOpen(true);\n }\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n @tuiPure\n computeContext(\n $implicit: T | null,\n active: boolean,\n ): TuiValueContentContext<T | null> {\n return {\n $implicit,\n active,\n };\n }\n\n toggle() {\n if (this.hostedDropdown) {\n this.hostedDropdown.updateOpen(!this.open);\n }\n }\n\n private isStrictMatch(item: T): boolean {\n return this.strictMatcher(item, this.search || '', this.stringify);\n }\n\n private close() {\n if (this.hostedDropdown) {\n this.hostedDropdown.updateOpen(false);\n }\n }\n\n private updateSearch(search: string | null) {\n if (this.search === search) {\n return;\n }\n\n this.search = search;\n this.searchChange.emit(search);\n }\n\n private setNativeValue(value: string) {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {TuiHostedDropdownModule, TuiPrimitiveTextfieldModule} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiSelectOptionModule} from '@taiga-ui/kit/components/select-option';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n TuiSelectOptionModule,\n TuiArrowModule,\n ],\n declarations: [TuiComboBoxComponent],\n exports: [TuiComboBoxComponent],\n})\nexport class TuiComboBoxModule {}\n","/**\n * Generated bundle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C;QAExC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAoB,CAAC;aACtD;YACD;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAoB,CAAC;aACtD;YACD;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,eAAe;aAC5B;YACD,kCAAkC;SACrC;;KACJ,CAAC;IA+CO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAlDrB,oBAAoB,CAuMhC;;ICxPY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAb7B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,kBAAkB;YAClB,mBAAmB;YACnB,2BAA2B;YAC3B,uBAAuB;YACvB,qBAAqB;YACrB,cAAc;SACjB;QACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACvBjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-combo-box.js","sources":["ng://@taiga-ui/kit/components/combo-box/combo-box.component.ts","ng://@taiga-ui/kit/components/combo-box/combo-box.module.ts","ng://@taiga-ui/kit/components/combo-box/taiga-ui-kit-components-combo-box.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n isPresent,\n setNativeFocused,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_STRICT_MATCHER,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n tuiPure,\n TuiStringHandler,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DATA_LIST_ACCESSOR,\n TUI_DATA_LIST_HOST,\n TUI_OPTION_CONTENT,\n TuiDataListAccessor,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TUI_ARROW} from '@taiga-ui/kit/components/arrow';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n// TODO: remove in ivy compilation\nexport const COMBOBOX_OPTION: any = TUI_SELECT_OPTION;\n\n@Component({\n selector: 'tui-combo-box',\n templateUrl: './combo-box.template.html',\n styleUrls: ['./combo-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiComboBoxComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiComboBoxComponent),\n },\n {\n provide: TUI_OPTION_CONTENT,\n useValue: COMBOBOX_OPTION,\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiComboBoxComponent<T>\n extends AbstractTuiNullableControl<T | string>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @ContentChild(TUI_DATA_LIST_ACCESSOR as any)\n private readonly accessor?: TuiDataListAccessor<T>;\n\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n stringify: TuiStringHandler<T> = TUI_DEFAULT_STRINGIFY;\n\n @Input()\n @tuiDefaultProp()\n strictMatcher: TuiStringMatcher<T> = TUI_STRICT_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n valueContent: PolymorpheusContent<TuiValueContentContext<T>> = '';\n\n @Input()\n @tuiDefaultProp()\n strict = true;\n\n @Input()\n @tuiDefaultProp()\n search: string | null = '';\n\n @Output()\n readonly searchChange = new EventEmitter<string | null>();\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent = '';\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get arrow(): PolymorpheusContent {\n return this.disabled || this.readOnly ? '' : TUI_ARROW;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get nativeValue(): string {\n if (this.value === null) {\n return this.search || '';\n }\n\n return typeof this.value === 'string' ? this.value : this.stringify(this.value);\n }\n\n get showValueTemplate(): boolean {\n return isPresent(this.value) && !this.focused;\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly;\n }\n\n get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.nativeValue;\n }\n\n @tuiPure\n computeContext(\n $implicit: T | null,\n active: boolean,\n ): TuiValueContentContext<T | null> {\n return {\n $implicit,\n active,\n };\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n checkOption(option: T) {\n if (!this.isStrictMatch(option)) {\n return;\n }\n\n this.updateValue(option);\n this.updateSearch(null);\n }\n\n handleOption(item: T) {\n this.setNativeValue(this.stringify(item));\n this.focusInput();\n this.close();\n this.updateSearch(null);\n this.updateValue(item);\n }\n\n onFieldKeyDownEnter(event: KeyboardEvent) {\n if (this.open) {\n event.preventDefault();\n }\n\n const options = this.accessor ? this.accessor.getOptions() : [];\n\n if (options.length !== 1) {\n return;\n }\n\n this.updateValue(options[0]);\n this.updateSearch(null);\n this.close();\n }\n\n onInput(value: string) {\n this.updateSearch(value);\n\n const match =\n this.accessor &&\n this.accessor.getOptions().find(item => this.isStrictMatch(item));\n\n if (match !== undefined) {\n this.updateValue(match);\n this.updateSearch(null);\n\n return;\n }\n\n this.updateValue(this.strict || this.search === '' ? null : this.search);\n this.hostedDropdown?.updateOpen(true);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n toggle() {\n if (this.hostedDropdown) {\n this.hostedDropdown.updateOpen(!this.open);\n }\n }\n\n private isStrictMatch(item: T): boolean {\n return this.strictMatcher(item, this.search || '', this.stringify);\n }\n\n private close() {\n if (this.hostedDropdown) {\n this.hostedDropdown.updateOpen(false);\n }\n }\n\n private updateSearch(search: string | null) {\n if (this.search === search) {\n return;\n }\n\n this.search = search;\n this.searchChange.emit(search);\n }\n\n private setNativeValue(value: string) {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {TuiHostedDropdownModule, TuiPrimitiveTextfieldModule} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiSelectOptionModule} from '@taiga-ui/kit/components/select-option';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n TuiSelectOptionModule,\n TuiArrowModule,\n ],\n declarations: [TuiComboBoxComponent],\n exports: [TuiComboBoxComponent],\n})\nexport class TuiComboBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAgDA;MACa,eAAe,GAAQ,kBAAkB;IAuBzC,oBAAoB,4BAAjC,MAAa,oBACT,SAAQ,0BAAsC;IA4C9C,YAII,OAAyB,EACE,iBAAoC;QAE/D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QArCtC,cAAS,GAAwB,qBAAqB,CAAC;QAIvD,kBAAa,GAAwB,kBAAkB,CAAC;QAIxD,oBAAe,GAA0B,4BAA4B,CAAC;QAItE,iBAAY,GAAmD,EAAE,CAAC;QAIlE,WAAM,GAAG,IAAI,CAAC;QAId,WAAM,GAAkB,EAAE,CAAC;QAGlB,iBAAY,GAAG,IAAI,YAAY,EAAiB,CAAC;QAGjD,aAAQ,GAAwB,EAAE,CAAC;QAE5C,SAAI,GAAG,KAAK,CAAC;KAUZ;IAED,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,GAAG,EAAE,GAAG,SAAS,CAAC;KAC1D;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,IAAI,CAAC;KACxE;IAED,IAAI,OAAO;QACP,QACI,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC;aAC3C,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC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