@taiga-ui/kit 2.75.0 → 2.77.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 (961) hide show
  1. package/abstract/input-slider.d.ts +2 -2
  2. package/abstract/slider/slider.d.ts +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +46 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.js +59 -14
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-action.umd.js +54 -9
  10. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.js +47 -2
  13. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-avatar.umd.js +59 -14
  16. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badge.umd.js +62 -19
  19. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
  21. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-badged-content.umd.js +66 -21
  23. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +54 -9
  26. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +48 -3
  29. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +50 -5
  32. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js +1 -1
  34. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-carousel.umd.js +69 -33
  36. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +1 -1
  38. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +56 -10
  40. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +50 -5
  44. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-checkbox.umd.js +49 -4
  47. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-combo-box.umd.js +55 -10
  50. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +48 -3
  53. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-field-error.umd.js +51 -6
  56. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-files.umd.js +66 -21
  59. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-filter.umd.js +49 -4
  62. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-copy.umd.js +56 -10
  65. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  67. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-count.umd.js +62 -17
  69. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  71. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +60 -15
  73. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +62 -17
  76. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-date.umd.js +56 -11
  79. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-file.umd.js +80 -35
  82. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-files.umd.js +61 -16
  85. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-inline.umd.js +50 -5
  88. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +53 -8
  91. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-month.umd.js +51 -6
  94. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-number.umd.js +72 -27
  97. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  99. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-password.umd.js +52 -7
  101. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +59 -14
  104. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-phone.umd.js +77 -32
  107. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-range.umd.js +62 -17
  111. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input-slider.umd.js +62 -15
  114. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-tag.umd.js +68 -23
  117. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-input-time.umd.js +54 -9
  120. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-input.umd.js +51 -6
  123. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-island.umd.js +64 -19
  126. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +54 -9
  129. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +52 -7
  132. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +51 -4
  135. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-kit-components-multi-select.umd.js +60 -15
  138. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  139. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-pagination.umd.js +53 -8
  141. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +54 -9
  144. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.js +69 -24
  147. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-push.umd.js +60 -15
  150. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-push.umd.min.js +1 -1
  152. package/bundles/taiga-ui-kit-components-push.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-block.umd.js +57 -11
  154. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-group.umd.js +47 -2
  158. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +51 -6
  161. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  163. package/bundles/taiga-ui-kit-components-radio-list.umd.js +51 -6
  164. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-radio.umd.js +52 -7
  167. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  168. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-range.umd.js +79 -34
  170. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-rating.umd.js +50 -5
  173. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-select-option.umd.js +48 -3
  176. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  178. package/bundles/taiga-ui-kit-components-select.umd.js +50 -5
  179. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  180. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-slider.umd.js +82 -37
  182. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  184. package/bundles/taiga-ui-kit-components-stepper.umd.js +72 -27
  185. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tabs.umd.js +89 -42
  188. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  190. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-tag.umd.js +68 -23
  192. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  194. package/bundles/taiga-ui-kit-components-text-area.umd.js +63 -18
  195. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  196. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-kit-components-toggle.umd.js +53 -8
  198. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  200. package/bundles/taiga-ui-kit-components-tree.umd.js +63 -18
  201. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  203. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-constants.umd.js +47 -2
  205. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  206. package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
  207. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  208. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +56 -11
  209. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  210. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  211. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js +52 -7
  212. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  214. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +57 -12
  215. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  216. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  217. package/bundles/taiga-ui-kit-directives-highlight.umd.js +56 -11
  218. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  219. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  220. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +57 -12
  221. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  222. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  223. package/bundles/taiga-ui-kit-directives-present.umd.js +51 -6
  224. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  225. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  226. package/bundles/taiga-ui-kit-directives-project-class.umd.js +48 -3
  227. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  228. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  229. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +50 -5
  230. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  231. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
  232. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +47 -2
  233. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  234. package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
  235. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  236. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  237. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +47 -2
  238. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  239. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  240. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +46 -1
  241. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  242. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  243. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +46 -1
  244. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  245. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  246. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +46 -1
  247. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  248. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  249. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +46 -1
  250. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  251. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  252. package/bundles/taiga-ui-kit-tokens.umd.js +46 -1
  253. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  254. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  255. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  256. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  257. package/bundles/taiga-ui-kit-utils-format.umd.js +1 -1
  258. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  259. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  260. package/bundles/taiga-ui-kit-utils-mask.umd.js +46 -1
  261. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  262. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  263. package/bundles/taiga-ui-kit-utils-math.umd.js +46 -1
  264. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  265. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  266. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +46 -1
  267. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  268. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  269. package/components/arrow/arrow-options.d.ts +2 -2
  270. package/components/avatar/avatar.component.d.ts +3 -3
  271. package/components/badge/badge.component.d.ts +1 -1
  272. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  273. package/components/badged-content/badged-content.component.d.ts +1 -1
  274. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  275. package/components/calendar-range/calendar-range.component.d.ts +2 -2
  276. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  277. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  278. package/components/combo-box/combo-box.component.d.ts +1 -1
  279. package/components/data-list-wrapper/data-list-wrapper.d.ts +1 -1
  280. package/components/field-error/field-error.component.d.ts +1 -1
  281. package/components/filter/filter.component.d.ts +1 -1
  282. package/components/input-date/input-date.component.d.ts +1 -1
  283. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  284. package/components/input-date-range/input-date-range.component.d.ts +2 -2
  285. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  286. package/components/input-file/file/file.component.d.ts +1 -1
  287. package/components/input-file/input-file.component.d.ts +5 -5
  288. package/components/input-files/input-files.component.d.ts +2 -2
  289. package/components/input-inline/input-inline.component.d.ts +1 -1
  290. package/components/input-password/input-password-options.d.ts +4 -4
  291. package/components/input-password/input-password.component.d.ts +3 -3
  292. package/components/input-phone-international/input-phone-international.component.d.ts +1 -1
  293. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -1
  294. package/components/input-range/input-range.component.d.ts +1 -1
  295. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  296. package/components/input-tag/input-tag-options.d.ts +1 -1
  297. package/components/input-tag/input-tag.component.d.ts +2 -2
  298. package/components/input-time/input-time-options.d.ts +3 -3
  299. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  300. package/components/island/island.component.d.ts +1 -1
  301. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  302. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  303. package/components/multi-select/multi-select.component.d.ts +2 -2
  304. package/components/pdf-viewer/pdf-viewer.service.d.ts +1 -1
  305. package/components/push/taiga-ui-kit-components-push.metadata.json +1 -1
  306. package/components/radio-block/radio-block.component.d.ts +1 -1
  307. package/components/range/range-change.directive.d.ts +1 -1
  308. package/components/range/range.component.d.ts +1 -1
  309. package/components/select/select.component.d.ts +1 -1
  310. package/components/slider/helpers/slider-readonly.directive.d.ts +1 -1
  311. package/components/stepper/step/step.component.d.ts +1 -1
  312. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  313. package/components/tabs/tabs-options.d.ts +1 -0
  314. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  315. package/components/tag/tag-options.d.ts +1 -1
  316. package/components/tag/tag.component.d.ts +2 -2
  317. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  318. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +1 -1
  319. package/directives/lazy-loading/lazy-loading.directive.d.ts +2 -2
  320. package/directives/lazy-loading/lazy-loading.service.d.ts +2 -2
  321. package/enums/dropdown-position.d.ts +1 -1
  322. package/enums/file-state.d.ts +1 -1
  323. package/enums/step-state.d.ts +1 -1
  324. package/esm2015/abstract/input-slider.js +1 -1
  325. package/esm2015/abstract/slider/slider.js +1 -1
  326. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  327. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  328. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +11 -11
  329. package/esm2015/components/accordion/accordion.component.js +2 -2
  330. package/esm2015/components/action/action.component.js +9 -9
  331. package/esm2015/components/arrow/arrow-options.js +1 -1
  332. package/esm2015/components/arrow/arrow.component.js +2 -2
  333. package/esm2015/components/avatar/avatar.component.js +14 -14
  334. package/esm2015/components/badge/badge.component.js +17 -19
  335. package/esm2015/components/badged-content/badged-content.component.js +21 -21
  336. package/esm2015/components/breadcrumbs/breadcrumb.directive.js +2 -2
  337. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  338. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +4 -4
  339. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  340. package/esm2015/components/calendar-range/calendar-range.component.js +5 -5
  341. package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
  342. package/esm2015/components/carousel/carousel-buttons.directive.js +4 -4
  343. package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
  344. package/esm2015/components/carousel/carousel.component.js +11 -21
  345. package/esm2015/components/carousel/carousel.directive.js +3 -3
  346. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  347. package/esm2015/components/checkbox-block/checkbox-block.component.js +11 -10
  348. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  349. package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
  350. package/esm2015/components/combo-box/combo-box.component.js +7 -7
  351. package/esm2015/components/combo-box/combo-box.directive.js +2 -2
  352. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  353. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  354. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +1 -1
  355. package/esm2015/components/field-error/field-error.component.js +6 -6
  356. package/esm2015/components/files/file/file.component.js +20 -20
  357. package/esm2015/components/files/files.component.js +2 -2
  358. package/esm2015/components/filter/filter.component.js +4 -4
  359. package/esm2015/components/input/input.component.js +5 -5
  360. package/esm2015/components/input/input.directive.js +2 -2
  361. package/esm2015/components/input-copy/input-copy.component.js +10 -9
  362. package/esm2015/components/input-copy/input-copy.directive.js +2 -2
  363. package/esm2015/components/input-count/input-count.component.js +14 -14
  364. package/esm2015/components/input-count/input-count.directive.js +4 -4
  365. package/esm2015/components/input-date/input-date.component.js +9 -9
  366. package/esm2015/components/input-date/input-date.directive.js +3 -3
  367. package/esm2015/components/input-date-range/input-date-range.component.js +13 -13
  368. package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
  369. package/esm2015/components/input-date-time/input-date-time.component.js +15 -15
  370. package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
  371. package/esm2015/components/input-file/file/file.component.js +18 -18
  372. package/esm2015/components/input-file/input-file.component.js +18 -18
  373. package/esm2015/components/input-files/input-files.component.js +16 -16
  374. package/esm2015/components/input-inline/input-inline.component.js +5 -5
  375. package/esm2015/components/input-month/input-month.component.js +4 -4
  376. package/esm2015/components/input-month/input-month.directive.js +3 -3
  377. package/esm2015/components/input-month-range/input-month-range.component.js +5 -5
  378. package/esm2015/components/input-month-range/input-month-range.directive.js +4 -4
  379. package/esm2015/components/input-number/input-number.component.js +25 -25
  380. package/esm2015/components/input-number/input-number.directive.js +3 -3
  381. package/esm2015/components/input-password/input-password-options.js +1 -1
  382. package/esm2015/components/input-password/input-password.component.js +5 -5
  383. package/esm2015/components/input-password/input-password.directive.js +3 -3
  384. package/esm2015/components/input-phone/input-phone.component.js +30 -30
  385. package/esm2015/components/input-phone/input-phone.directive.js +3 -3
  386. package/esm2015/components/input-phone-international/input-phone-international.component.js +14 -14
  387. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +1 -1
  388. package/esm2015/components/input-range/input-range.component.js +17 -17
  389. package/esm2015/components/input-slider/input-slider.component.js +17 -15
  390. package/esm2015/components/input-tag/input-tag-options.js +1 -1
  391. package/esm2015/components/input-tag/input-tag.component.js +23 -23
  392. package/esm2015/components/input-time/input-time-options.js +1 -1
  393. package/esm2015/components/input-time/input-time.component.js +9 -9
  394. package/esm2015/components/island/island.component.js +19 -19
  395. package/esm2015/components/line-clamp/line-clamp.component.js +9 -9
  396. package/esm2015/components/marker-icon/marker-icon.component.js +7 -7
  397. package/esm2015/components/multi-select/hide-selected.pipe.js +1 -1
  398. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  399. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  400. package/esm2015/components/multi-select/multi-select.component.js +10 -10
  401. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  402. package/esm2015/components/pagination/pagination.component.js +8 -8
  403. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -6
  404. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  405. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +1 -1
  406. package/esm2015/components/progress/progress-bar/progress-bar.component.js +6 -6
  407. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  408. package/esm2015/components/progress/progress-circle/progress-circle.component.js +7 -7
  409. package/esm2015/components/progress/progress-label/progress-label.component.js +2 -2
  410. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  411. package/esm2015/components/push/push-alert.component.js +7 -7
  412. package/esm2015/components/push/push-alert.directive.js +2 -2
  413. package/esm2015/components/push/push.component.js +5 -5
  414. package/esm2015/components/push/push.directive.js +4 -4
  415. package/esm2015/components/radio/radio.component.js +7 -7
  416. package/esm2015/components/radio-block/radio-block.component.js +12 -11
  417. package/esm2015/components/radio-group/radio-group.component.js +2 -2
  418. package/esm2015/components/radio-labeled/radio-labeled.component.js +6 -6
  419. package/esm2015/components/radio-list/radio-list.component.js +6 -6
  420. package/esm2015/components/range/range-change.directive.js +10 -10
  421. package/esm2015/components/range/range.component.js +23 -23
  422. package/esm2015/components/rating/rating.component.js +5 -5
  423. package/esm2015/components/select/select.component.js +4 -4
  424. package/esm2015/components/select/select.directive.js +2 -2
  425. package/esm2015/components/select-option/select-option.component.js +3 -3
  426. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +10 -10
  427. package/esm2015/components/slider/helpers/slider-readonly.directive.js +15 -15
  428. package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +5 -5
  429. package/esm2015/components/slider/slider-old.component.js +2 -2
  430. package/esm2015/components/slider/slider.component.js +9 -9
  431. package/esm2015/components/stepper/step/step.component.js +12 -12
  432. package/esm2015/components/stepper/stepper.component.js +16 -16
  433. package/esm2015/components/tabs/tab/tab.component.js +10 -10
  434. package/esm2015/components/tabs/tab.directive.js +2 -2
  435. package/esm2015/components/tabs/tabs/tabs.component.js +13 -13
  436. package/esm2015/components/tabs/tabs-options.js +2 -1
  437. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +9 -8
  438. package/esm2015/components/tabs/underline/underline.component.js +13 -13
  439. package/esm2015/components/tag/tag-options.js +1 -1
  440. package/esm2015/components/tag/tag.component.js +23 -23
  441. package/esm2015/components/text-area/text-area.component.js +17 -17
  442. package/esm2015/components/text-area/text-area.directive.js +2 -2
  443. package/esm2015/components/toggle/toggle.component.js +8 -8
  444. package/esm2015/components/tree/components/tree/tree.component.js +3 -3
  445. package/esm2015/components/tree/components/tree-item/tree-item.component.js +5 -5
  446. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  447. package/esm2015/components/tree/directives/tree-children.directive.js +2 -2
  448. package/esm2015/components/tree/directives/tree-controller.directive.js +4 -4
  449. package/esm2015/components/tree/directives/tree-item-controller.directive.js +4 -4
  450. package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
  451. package/esm2015/constants/max-day-range-length-mapper.js +2 -2
  452. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +11 -11
  453. package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +5 -5
  454. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +12 -12
  455. package/esm2015/directives/highlight/highlight.directive.js +11 -11
  456. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +12 -12
  457. package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
  458. package/esm2015/directives/present/present.directive.js +6 -6
  459. package/esm2015/directives/project-class/project-class.directive.js +3 -3
  460. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  461. package/esm2015/directives/value-accessor/value-accessor.directive.js +2 -2
  462. package/esm2015/enums/dropdown-position.js +1 -1
  463. package/esm2015/enums/file-state.js +1 -1
  464. package/esm2015/enums/step-state.js +1 -1
  465. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  466. package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
  467. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  468. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +1 -1
  469. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  470. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  471. package/esm2015/tokens/validation-errors.js +1 -1
  472. package/esm2015/types/marker-icon-mode.js +1 -1
  473. package/esm2015/types/status.js +1 -1
  474. package/esm2015/types/time-format-parts.js +1 -1
  475. package/esm2015/utils/dom/set-range-offset.js +1 -1
  476. package/esm2015/utils/format/string-hash-to-hsl.js +2 -2
  477. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +1 -1
  478. package/esm2015/utils/mask/create-time-mask.js +1 -1
  479. package/esm2015/utils/miscellaneous/is-flat.js +1 -1
  480. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +1 -1
  481. package/esm5/abstract/input-slider.js +1 -1
  482. package/esm5/abstract/slider/slider.js +1 -1
  483. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  484. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  485. package/esm5/components/accordion/accordion-item/accordion-item.component.js +11 -11
  486. package/esm5/components/accordion/accordion.component.js +2 -2
  487. package/esm5/components/action/action.component.js +9 -9
  488. package/esm5/components/arrow/arrow-options.js +1 -1
  489. package/esm5/components/arrow/arrow.component.js +2 -2
  490. package/esm5/components/avatar/avatar.component.js +14 -14
  491. package/esm5/components/badge/badge.component.js +17 -19
  492. package/esm5/components/badged-content/badged-content.component.js +21 -21
  493. package/esm5/components/breadcrumbs/breadcrumb.directive.js +2 -2
  494. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  495. package/esm5/components/breadcrumbs/breadcrumbs.component.js +4 -4
  496. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  497. package/esm5/components/calendar-range/calendar-range.component.js +5 -5
  498. package/esm5/components/carousel/carousel-autoscroll.directive.js +3 -3
  499. package/esm5/components/carousel/carousel-buttons.directive.js +4 -4
  500. package/esm5/components/carousel/carousel-scroll.directive.js +3 -3
  501. package/esm5/components/carousel/carousel.component.js +11 -21
  502. package/esm5/components/carousel/carousel.directive.js +3 -3
  503. package/esm5/components/checkbox/checkbox.component.js +4 -4
  504. package/esm5/components/checkbox-block/checkbox-block.component.js +11 -10
  505. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  506. package/esm5/components/combo-box/combo-box-strict.directive.js +3 -3
  507. package/esm5/components/combo-box/combo-box.component.js +7 -7
  508. package/esm5/components/combo-box/combo-box.directive.js +2 -2
  509. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  510. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  511. package/esm5/components/data-list-wrapper/data-list-wrapper.js +1 -1
  512. package/esm5/components/field-error/field-error.component.js +6 -6
  513. package/esm5/components/files/file/file.component.js +20 -20
  514. package/esm5/components/files/files.component.js +2 -2
  515. package/esm5/components/filter/filter.component.js +4 -4
  516. package/esm5/components/input/input.component.js +5 -5
  517. package/esm5/components/input/input.directive.js +2 -2
  518. package/esm5/components/input-copy/input-copy.component.js +10 -9
  519. package/esm5/components/input-copy/input-copy.directive.js +2 -2
  520. package/esm5/components/input-count/input-count.component.js +14 -14
  521. package/esm5/components/input-count/input-count.directive.js +4 -4
  522. package/esm5/components/input-date/input-date.component.js +9 -9
  523. package/esm5/components/input-date/input-date.directive.js +3 -3
  524. package/esm5/components/input-date-range/input-date-range.component.js +13 -13
  525. package/esm5/components/input-date-range/input-date-range.directive.js +3 -3
  526. package/esm5/components/input-date-time/input-date-time.component.js +15 -15
  527. package/esm5/components/input-date-time/input-date-time.directive.js +3 -3
  528. package/esm5/components/input-file/file/file.component.js +18 -18
  529. package/esm5/components/input-file/input-file.component.js +18 -18
  530. package/esm5/components/input-files/input-files.component.js +16 -16
  531. package/esm5/components/input-inline/input-inline.component.js +5 -5
  532. package/esm5/components/input-month/input-month.component.js +4 -4
  533. package/esm5/components/input-month/input-month.directive.js +3 -3
  534. package/esm5/components/input-month-range/input-month-range.component.js +5 -5
  535. package/esm5/components/input-month-range/input-month-range.directive.js +4 -4
  536. package/esm5/components/input-number/input-number.component.js +25 -25
  537. package/esm5/components/input-number/input-number.directive.js +3 -3
  538. package/esm5/components/input-password/input-password-options.js +1 -1
  539. package/esm5/components/input-password/input-password.component.js +5 -5
  540. package/esm5/components/input-password/input-password.directive.js +3 -3
  541. package/esm5/components/input-phone/input-phone.component.js +30 -30
  542. package/esm5/components/input-phone/input-phone.directive.js +3 -3
  543. package/esm5/components/input-phone-international/input-phone-international.component.js +14 -14
  544. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +1 -1
  545. package/esm5/components/input-range/input-range.component.js +17 -17
  546. package/esm5/components/input-slider/input-slider.component.js +17 -15
  547. package/esm5/components/input-tag/input-tag-options.js +1 -1
  548. package/esm5/components/input-tag/input-tag.component.js +23 -23
  549. package/esm5/components/input-time/input-time-options.js +1 -1
  550. package/esm5/components/input-time/input-time.component.js +9 -9
  551. package/esm5/components/island/island.component.js +19 -19
  552. package/esm5/components/line-clamp/line-clamp.component.js +9 -9
  553. package/esm5/components/marker-icon/marker-icon.component.js +7 -7
  554. package/esm5/components/multi-select/hide-selected.pipe.js +1 -1
  555. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  556. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  557. package/esm5/components/multi-select/multi-select.component.js +10 -10
  558. package/esm5/components/multi-select-option/multi-select-option.component.js +6 -4
  559. package/esm5/components/pagination/pagination.component.js +8 -8
  560. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -6
  561. package/esm5/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  562. package/esm5/components/pdf-viewer/pdf-viewer.service.js +1 -1
  563. package/esm5/components/progress/progress-bar/progress-bar.component.js +6 -6
  564. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  565. package/esm5/components/progress/progress-circle/progress-circle.component.js +7 -7
  566. package/esm5/components/progress/progress-label/progress-label.component.js +2 -2
  567. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  568. package/esm5/components/push/push-alert.component.js +7 -7
  569. package/esm5/components/push/push-alert.directive.js +2 -2
  570. package/esm5/components/push/push.component.js +5 -5
  571. package/esm5/components/push/push.directive.js +4 -4
  572. package/esm5/components/radio/radio.component.js +7 -7
  573. package/esm5/components/radio-block/radio-block.component.js +12 -11
  574. package/esm5/components/radio-group/radio-group.component.js +2 -2
  575. package/esm5/components/radio-labeled/radio-labeled.component.js +6 -6
  576. package/esm5/components/radio-list/radio-list.component.js +6 -6
  577. package/esm5/components/range/range-change.directive.js +12 -12
  578. package/esm5/components/range/range.component.js +23 -23
  579. package/esm5/components/rating/rating.component.js +5 -5
  580. package/esm5/components/select/select.component.js +4 -4
  581. package/esm5/components/select/select.directive.js +2 -2
  582. package/esm5/components/select-option/select-option.component.js +3 -3
  583. package/esm5/components/slider/helpers/slider-key-steps.directive.js +10 -10
  584. package/esm5/components/slider/helpers/slider-readonly.directive.js +15 -15
  585. package/esm5/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +5 -5
  586. package/esm5/components/slider/slider-old.component.js +2 -2
  587. package/esm5/components/slider/slider.component.js +9 -9
  588. package/esm5/components/stepper/step/step.component.js +12 -12
  589. package/esm5/components/stepper/stepper.component.js +16 -16
  590. package/esm5/components/tabs/tab/tab.component.js +10 -10
  591. package/esm5/components/tabs/tab.directive.js +2 -2
  592. package/esm5/components/tabs/tabs/tabs.component.js +13 -13
  593. package/esm5/components/tabs/tabs-options.js +2 -1
  594. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +9 -8
  595. package/esm5/components/tabs/underline/underline.component.js +13 -13
  596. package/esm5/components/tag/tag-options.js +1 -1
  597. package/esm5/components/tag/tag.component.js +23 -23
  598. package/esm5/components/text-area/text-area.component.js +17 -17
  599. package/esm5/components/text-area/text-area.directive.js +2 -2
  600. package/esm5/components/toggle/toggle.component.js +8 -8
  601. package/esm5/components/tree/components/tree/tree.component.js +3 -3
  602. package/esm5/components/tree/components/tree-item/tree-item.component.js +5 -5
  603. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  604. package/esm5/components/tree/directives/tree-children.directive.js +2 -2
  605. package/esm5/components/tree/directives/tree-controller.directive.js +4 -4
  606. package/esm5/components/tree/directives/tree-item-controller.directive.js +4 -4
  607. package/esm5/components/tree/directives/tree-node.directive.js +3 -3
  608. package/esm5/constants/max-day-range-length-mapper.js +2 -2
  609. package/esm5/directives/dropdown-context/dropdown-context.directive.js +11 -11
  610. package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +7 -7
  611. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +12 -12
  612. package/esm5/directives/highlight/highlight.directive.js +11 -11
  613. package/esm5/directives/lazy-loading/lazy-loading.directive.js +12 -12
  614. package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
  615. package/esm5/directives/present/present.directive.js +6 -6
  616. package/esm5/directives/project-class/project-class.directive.js +3 -3
  617. package/esm5/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  618. package/esm5/directives/value-accessor/value-accessor.directive.js +2 -2
  619. package/esm5/enums/dropdown-position.js +1 -1
  620. package/esm5/enums/file-state.js +1 -1
  621. package/esm5/enums/step-state.js +1 -1
  622. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  623. package/esm5/pipes/field-error/field-error-pipe.js +1 -1
  624. package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  625. package/esm5/pipes/filter-by-input/filter-by-input.base.js +1 -1
  626. package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  627. package/esm5/pipes/stringify/stringify.pipe.js +1 -1
  628. package/esm5/tokens/validation-errors.js +1 -1
  629. package/esm5/types/marker-icon-mode.js +1 -1
  630. package/esm5/types/status.js +1 -1
  631. package/esm5/types/time-format-parts.js +1 -1
  632. package/esm5/utils/dom/set-range-offset.js +1 -1
  633. package/esm5/utils/format/string-hash-to-hsl.js +2 -2
  634. package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +1 -1
  635. package/esm5/utils/mask/create-time-mask.js +1 -1
  636. package/esm5/utils/miscellaneous/is-flat.js +1 -1
  637. package/esm5/utils/miscellaneous/replay-control-value-changes-factory.js +1 -1
  638. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  639. package/fesm2015/taiga-ui-kit-components-accordion.js +13 -13
  640. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  641. package/fesm2015/taiga-ui-kit-components-action.js +8 -8
  642. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  643. package/fesm2015/taiga-ui-kit-components-arrow.js +1 -1
  644. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  645. package/fesm2015/taiga-ui-kit-components-avatar.js +13 -13
  646. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  647. package/fesm2015/taiga-ui-kit-components-badge.js +16 -18
  648. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  649. package/fesm2015/taiga-ui-kit-components-badged-content.js +20 -20
  650. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  651. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +8 -8
  652. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  653. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  654. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  655. package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -4
  656. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  657. package/fesm2015/taiga-ui-kit-components-carousel.js +20 -29
  658. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  659. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +10 -9
  660. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  661. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  662. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  663. package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -3
  664. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  665. package/fesm2015/taiga-ui-kit-components-combo-box.js +9 -9
  666. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  667. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  668. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  669. package/fesm2015/taiga-ui-kit-components-field-error.js +5 -5
  670. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  671. package/fesm2015/taiga-ui-kit-components-files.js +20 -20
  672. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  673. package/fesm2015/taiga-ui-kit-components-filter.js +3 -3
  674. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  675. package/fesm2015/taiga-ui-kit-components-input-copy.js +10 -9
  676. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  677. package/fesm2015/taiga-ui-kit-components-input-count.js +16 -16
  678. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  679. package/fesm2015/taiga-ui-kit-components-input-date-range.js +14 -14
  680. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  681. package/fesm2015/taiga-ui-kit-components-input-date-time.js +16 -16
  682. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  683. package/fesm2015/taiga-ui-kit-components-input-date.js +10 -10
  684. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  685. package/fesm2015/taiga-ui-kit-components-input-file.js +34 -34
  686. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  687. package/fesm2015/taiga-ui-kit-components-input-files.js +15 -15
  688. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  689. package/fesm2015/taiga-ui-kit-components-input-inline.js +4 -4
  690. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  691. package/fesm2015/taiga-ui-kit-components-input-month-range.js +7 -7
  692. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  693. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -5
  694. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  695. package/fesm2015/taiga-ui-kit-components-input-number.js +26 -26
  696. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  697. package/fesm2015/taiga-ui-kit-components-input-password.js +6 -6
  698. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  699. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +13 -13
  700. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  701. package/fesm2015/taiga-ui-kit-components-input-phone.js +31 -31
  702. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  703. package/fesm2015/taiga-ui-kit-components-input-range.js +16 -16
  704. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  705. package/fesm2015/taiga-ui-kit-components-input-slider.js +16 -14
  706. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  707. package/fesm2015/taiga-ui-kit-components-input-tag.js +22 -22
  708. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  709. package/fesm2015/taiga-ui-kit-components-input-time.js +8 -8
  710. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  711. package/fesm2015/taiga-ui-kit-components-input.js +5 -5
  712. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  713. package/fesm2015/taiga-ui-kit-components-island.js +18 -18
  714. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  715. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
  716. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  717. package/fesm2015/taiga-ui-kit-components-marker-icon.js +6 -6
  718. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  719. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
  720. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  721. package/fesm2015/taiga-ui-kit-components-multi-select.js +14 -14
  722. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  723. package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
  724. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  725. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +8 -8
  726. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  727. package/fesm2015/taiga-ui-kit-components-progress.js +23 -23
  728. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  729. package/fesm2015/taiga-ui-kit-components-push.js +14 -14
  730. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  731. package/fesm2015/taiga-ui-kit-components-radio-block.js +11 -10
  732. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  733. package/fesm2015/taiga-ui-kit-components-radio-group.js +1 -1
  734. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  735. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -5
  736. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  737. package/fesm2015/taiga-ui-kit-components-radio-list.js +5 -5
  738. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  739. package/fesm2015/taiga-ui-kit-components-radio.js +6 -6
  740. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  741. package/fesm2015/taiga-ui-kit-components-range.js +31 -31
  742. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  743. package/fesm2015/taiga-ui-kit-components-rating.js +4 -4
  744. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-select-option.js +2 -2
  746. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-select.js +4 -4
  748. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-slider.js +36 -36
  750. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-stepper.js +26 -26
  752. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-tabs.js +43 -41
  754. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-tag.js +22 -22
  756. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components-text-area.js +17 -17
  758. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -7
  760. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-components-tree.js +17 -17
  762. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  763. package/fesm2015/taiga-ui-kit-constants.js +1 -1
  764. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  765. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +10 -10
  766. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js +4 -4
  768. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +11 -11
  770. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-directives-highlight.js +10 -10
  772. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  773. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +11 -11
  774. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  775. package/fesm2015/taiga-ui-kit-directives-present.js +5 -5
  776. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  777. package/fesm2015/taiga-ui-kit-directives-project-class.js +2 -2
  778. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  779. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  780. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  781. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +1 -1
  782. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  783. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  784. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  785. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  786. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  787. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  788. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  789. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  790. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  791. package/fesm2015/taiga-ui-kit-utils-format.js +1 -1
  792. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  793. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  794. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  795. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  796. package/fesm5/taiga-ui-kit-components-accordion.js +13 -13
  797. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  798. package/fesm5/taiga-ui-kit-components-action.js +8 -8
  799. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  800. package/fesm5/taiga-ui-kit-components-arrow.js +1 -1
  801. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  802. package/fesm5/taiga-ui-kit-components-avatar.js +13 -13
  803. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  804. package/fesm5/taiga-ui-kit-components-badge.js +16 -18
  805. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  806. package/fesm5/taiga-ui-kit-components-badged-content.js +20 -20
  807. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  808. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +8 -8
  809. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  810. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  811. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  812. package/fesm5/taiga-ui-kit-components-calendar-range.js +4 -4
  813. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  814. package/fesm5/taiga-ui-kit-components-carousel.js +20 -29
  815. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  816. package/fesm5/taiga-ui-kit-components-checkbox-block.js +10 -9
  817. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  818. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  819. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  820. package/fesm5/taiga-ui-kit-components-checkbox.js +3 -3
  821. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  822. package/fesm5/taiga-ui-kit-components-combo-box.js +9 -9
  823. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  824. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  825. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  826. package/fesm5/taiga-ui-kit-components-field-error.js +5 -5
  827. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  828. package/fesm5/taiga-ui-kit-components-files.js +20 -20
  829. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  830. package/fesm5/taiga-ui-kit-components-filter.js +3 -3
  831. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  832. package/fesm5/taiga-ui-kit-components-input-copy.js +10 -9
  833. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  834. package/fesm5/taiga-ui-kit-components-input-count.js +16 -16
  835. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  836. package/fesm5/taiga-ui-kit-components-input-date-range.js +14 -14
  837. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  838. package/fesm5/taiga-ui-kit-components-input-date-time.js +16 -16
  839. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  840. package/fesm5/taiga-ui-kit-components-input-date.js +10 -10
  841. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  842. package/fesm5/taiga-ui-kit-components-input-file.js +34 -34
  843. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  844. package/fesm5/taiga-ui-kit-components-input-files.js +15 -15
  845. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  846. package/fesm5/taiga-ui-kit-components-input-inline.js +4 -4
  847. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  848. package/fesm5/taiga-ui-kit-components-input-month-range.js +7 -7
  849. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  850. package/fesm5/taiga-ui-kit-components-input-month.js +5 -5
  851. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  852. package/fesm5/taiga-ui-kit-components-input-number.js +26 -26
  853. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  854. package/fesm5/taiga-ui-kit-components-input-password.js +6 -6
  855. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  856. package/fesm5/taiga-ui-kit-components-input-phone-international.js +13 -13
  857. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-input-phone.js +31 -31
  859. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-input-range.js +16 -16
  861. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-input-slider.js +16 -14
  863. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-input-tag.js +22 -22
  865. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-input-time.js +8 -8
  867. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-input.js +5 -5
  869. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  870. package/fesm5/taiga-ui-kit-components-island.js +18 -18
  871. package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
  872. package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
  873. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  874. package/fesm5/taiga-ui-kit-components-marker-icon.js +6 -6
  875. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  876. package/fesm5/taiga-ui-kit-components-multi-select-option.js +5 -3
  877. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  878. package/fesm5/taiga-ui-kit-components-multi-select.js +14 -14
  879. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  880. package/fesm5/taiga-ui-kit-components-pagination.js +7 -7
  881. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  882. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +8 -8
  883. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  884. package/fesm5/taiga-ui-kit-components-progress.js +23 -23
  885. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  886. package/fesm5/taiga-ui-kit-components-push.js +14 -14
  887. package/fesm5/taiga-ui-kit-components-push.js.map +1 -1
  888. package/fesm5/taiga-ui-kit-components-radio-block.js +11 -10
  889. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  890. package/fesm5/taiga-ui-kit-components-radio-group.js +1 -1
  891. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  892. package/fesm5/taiga-ui-kit-components-radio-labeled.js +5 -5
  893. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  894. package/fesm5/taiga-ui-kit-components-radio-list.js +5 -5
  895. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  896. package/fesm5/taiga-ui-kit-components-radio.js +6 -6
  897. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  898. package/fesm5/taiga-ui-kit-components-range.js +33 -33
  899. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  900. package/fesm5/taiga-ui-kit-components-rating.js +4 -4
  901. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  902. package/fesm5/taiga-ui-kit-components-select-option.js +2 -2
  903. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  904. package/fesm5/taiga-ui-kit-components-select.js +4 -4
  905. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  906. package/fesm5/taiga-ui-kit-components-slider.js +36 -36
  907. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  908. package/fesm5/taiga-ui-kit-components-stepper.js +26 -26
  909. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  910. package/fesm5/taiga-ui-kit-components-tabs.js +43 -41
  911. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  912. package/fesm5/taiga-ui-kit-components-tag.js +22 -22
  913. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  914. package/fesm5/taiga-ui-kit-components-text-area.js +17 -17
  915. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  916. package/fesm5/taiga-ui-kit-components-toggle.js +7 -7
  917. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  918. package/fesm5/taiga-ui-kit-components-tree.js +17 -17
  919. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  920. package/fesm5/taiga-ui-kit-constants.js +1 -1
  921. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  922. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +10 -10
  923. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  924. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js +6 -6
  925. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  926. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +11 -11
  927. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  928. package/fesm5/taiga-ui-kit-directives-highlight.js +10 -10
  929. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  930. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +11 -11
  931. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  932. package/fesm5/taiga-ui-kit-directives-present.js +5 -5
  933. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  934. package/fesm5/taiga-ui-kit-directives-project-class.js +2 -2
  935. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  936. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  937. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  938. package/fesm5/taiga-ui-kit-directives-value-accessor.js +1 -1
  939. package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  940. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  941. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  942. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  943. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  944. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  945. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  946. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  947. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  948. package/fesm5/taiga-ui-kit-utils-format.js +1 -1
  949. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  950. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  951. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  952. package/package.json +4 -4
  953. package/pipes/field-error/field-error-pipe.d.ts +1 -1
  954. package/pipes/filter-by-input/filter-by-input.base.d.ts +1 -1
  955. package/pipes/stringify/stringify.pipe.d.ts +1 -1
  956. package/types/marker-icon-mode.d.ts +1 -1
  957. package/types/status.d.ts +1 -1
  958. package/types/time-format-parts.d.ts +1 -1
  959. package/utils/dom/set-range-offset.d.ts +1 -1
  960. package/utils/miscellaneous/is-flat.d.ts +1 -1
  961. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +1 -1
@@ -41,11 +41,11 @@ var TuiComboBoxComponent = /** @class */ (function (_super) {
41
41
  _this.stringify = _this.itemsHandlers.stringify;
42
42
  _this.strictMatcher = TUI_STRICT_MATCHER;
43
43
  _this.identityMatcher = _this.itemsHandlers.identityMatcher;
44
- _this.valueContent = "";
44
+ _this.valueContent = '';
45
45
  _this.strict = true;
46
46
  _this.search = null;
47
47
  _this.searchChange = new EventEmitter();
48
- _this.datalist = "";
48
+ _this.datalist = '';
49
49
  _this.open = false;
50
50
  return _this;
51
51
  }
@@ -73,7 +73,7 @@ var TuiComboBoxComponent = /** @class */ (function (_super) {
73
73
  });
74
74
  Object.defineProperty(TuiComboBoxComponent.prototype, "nativeValue", {
75
75
  get: function () {
76
- return this.value === null ? this.search || "" : this.stringify(this.value);
76
+ return this.value === null ? this.search || '' : this.stringify(this.value);
77
77
  },
78
78
  enumerable: true,
79
79
  configurable: true
@@ -132,7 +132,7 @@ var TuiComboBoxComponent = /** @class */ (function (_super) {
132
132
  this.updateSearch(null);
133
133
  return;
134
134
  }
135
- if (this.strict || this.search === "") {
135
+ if (this.strict || this.search === '') {
136
136
  this.updateValue(null);
137
137
  }
138
138
  (_b = this.hostedDropdown) === null || _b === void 0 ? void 0 : _b.updateOpen(true);
@@ -148,7 +148,7 @@ var TuiComboBoxComponent = /** @class */ (function (_super) {
148
148
  (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(!this.open);
149
149
  };
150
150
  TuiComboBoxComponent.prototype.isStrictMatch = function (item) {
151
- return this.strictMatcher(item, this.search || "", this.stringify);
151
+ return this.strictMatcher(item, this.search || '', this.stringify);
152
152
  };
153
153
  TuiComboBoxComponent.prototype.close = function () {
154
154
  var _a;
@@ -219,7 +219,7 @@ var TuiComboBoxComponent = /** @class */ (function (_super) {
219
219
  ], TuiComboBoxComponent.prototype, "datalist", void 0);
220
220
  TuiComboBoxComponent = __decorate([
221
221
  Component({
222
- selector: "tui-combo-box",
222
+ selector: 'tui-combo-box',
223
223
  template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-combo-box__textfield\"\n class=\"t-textfield\"\n [pseudoFocused]=\"computedFocused\"\n [pseudoHovered]=\"computedHovered\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [iconContent]=\"arrow ? icon : ''\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [value]=\"nativeValue\"\n (valueChange)=\"onValueChange($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onFieldKeyDownEnter($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n <div\n *ngIf=\"showValueTemplate\"\n polymorpheus-outlet\n automation-id=\"tui-combo-box__template\"\n class=\"t-value\"\n [content]=\"computedContent\"\n [context]=\"{$implicit: value!, active: computedFocused}\"\n ></div>\n </tui-primitive-textfield>\n\n <ng-template #icon>\n <div\n polymorpheus-outlet\n class=\"t-icon\"\n [content]=\"arrow\"\n ></div>\n </ng-template>\n</tui-hosted-dropdown>\n",
224
224
  changeDetection: ChangeDetectionStrategy.OnPush,
225
225
  providers: TUI_COMBO_BOX_PROVIDERS,
@@ -254,7 +254,7 @@ var TuiComboBoxDirective = /** @class */ (function (_super) {
254
254
  var TuiComboBoxDirective_1;
255
255
  TuiComboBoxDirective = TuiComboBoxDirective_1 = __decorate([
256
256
  Directive({
257
- selector: "tui-combo-box",
257
+ selector: 'tui-combo-box',
258
258
  providers: [
259
259
  {
260
260
  provide: TUI_TEXTFIELD_HOST,
@@ -284,11 +284,11 @@ var TuiComboBoxStrictDirective = /** @class */ (function () {
284
284
  tuiDefaultProp()
285
285
  ], TuiComboBoxStrictDirective.prototype, "strict", void 0);
286
286
  __decorate([
287
- HostListener("input")
287
+ HostListener('input')
288
288
  ], TuiComboBoxStrictDirective.prototype, "onInput", null);
289
289
  TuiComboBoxStrictDirective = __decorate([
290
290
  Directive({
291
- selector: "tui-combo-box[strict]",
291
+ selector: 'tui-combo-box[strict]',
292
292
  }),
293
293
  __param(0, Inject(TuiComboBoxComponent))
294
294
  ], TuiComboBoxStrictDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-combo-box.js","sources":["ng://@taiga-ui/kit/components/combo-box/combo-box.providers.ts","ng://@taiga-ui/kit/components/combo-box/combo-box.component.ts","ng://@taiga-ui/kit/components/combo-box/combo-box.directive.ts","ng://@taiga-ui/kit/components/combo-box/combo-box-strict.directive.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 {forwardRef} from '@angular/core';\nimport {AbstractTuiControl, TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT} from '@taiga-ui/core';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n// TODO: 3.0 remove in ivy compilation\nexport const COMBOBOX_OPTION: unknown = TUI_SELECT_OPTION;\n\nexport const TUI_COMBO_BOX_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: AbstractTuiControl,\n useExisting: forwardRef(() => TuiComboBoxComponent),\n },\n {\n provide: TUI_OPTION_CONTENT,\n useValue: COMBOBOX_OPTION,\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\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_STRICT_MATCHER,\n TuiActiveZoneDirective,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DATA_LIST_ACCESSOR,\n TuiDataListAccessor,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeM,\n TuiSizeS,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TUI_ARROW_MODE, TuiArrowMode} from '@taiga-ui/kit/components/arrow';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_COMBO_BOX_PROVIDERS} from './combo-box.providers';\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: TUI_COMBO_BOX_PROVIDERS,\n})\nexport class TuiComboBoxComponent<T>\n extends AbstractTuiNullableControl<T>\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: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n @tuiDefaultProp()\n strictMatcher: TuiStringMatcher<T> = TUI_STRICT_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\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 = null;\n\n @Output()\n readonly searchChange = new EventEmitter<string | null>();\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent<\n TuiContextWithImplicit<TuiActiveZoneDirective>\n > = ``;\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_ARROW_MODE)\n private readonly arrowMode: TuiArrowMode,\n @Inject(TUI_ITEMS_HANDLERS)\n private readonly itemsHandlers: TuiItemsHandlers<T>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get arrow(): PolymorpheusContent<\n TuiContextWithImplicit<TuiSizeS | TuiSizeM | TuiSizeL>\n > {\n return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;\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 return this.value === null ? this.search || `` : this.stringify(this.value);\n }\n\n get showValueTemplate(): boolean {\n return isPresent(this.value) && !this.focused;\n }\n\n get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.nativeValue;\n }\n\n onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n checkOption(option: T): void {\n if (!this.isStrictMatch(option)) {\n return;\n }\n\n this.updateValue(option);\n this.updateSearch(null);\n }\n\n handleOption(item: T): void {\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: Event): void {\n if (this.open) {\n event.preventDefault();\n }\n\n const options = 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 onValueChange(value: string): void {\n this.updateSearch(value);\n\n const match = 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 if (this.strict || this.search === ``) {\n this.updateValue(null);\n }\n\n this.hostedDropdown?.updateOpen(true);\n }\n\n updateValue(value: T | null): void {\n super.updateValue(value);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n toggle(): void {\n this.hostedDropdown?.updateOpen(!this.open);\n }\n\n private isStrictMatch(item: T): boolean {\n return this.strictMatcher(item, this.search || ``, this.stringify);\n }\n\n private close(): void {\n this.hostedDropdown?.updateOpen(false);\n }\n\n private updateSearch(search: string | null): void {\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): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n\n private focusInput(preventScroll: boolean = false): void {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {Directive, forwardRef} from '@angular/core';\nimport {TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n@Directive({\n selector: `tui-combo-box`,\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiComboBoxDirective),\n },\n ],\n})\nexport class TuiComboBoxDirective extends TuiAbstractTextfieldHost<\n TuiComboBoxComponent<unknown>\n> {\n get value(): string {\n return this.host.nativeValue;\n }\n\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {Directive, HostListener, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n@Directive({\n selector: `tui-combo-box[strict]`,\n})\nexport class TuiComboBoxStrictDirective<T> {\n @Input()\n @tuiDefaultProp()\n strict = true;\n\n constructor(\n @Inject(TuiComboBoxComponent)\n private readonly comboBox: TuiComboBoxComponent<T | string>,\n ) {}\n\n @HostListener(`input`)\n onInput(): void {\n if (!this.strict && this.comboBox.search) {\n this.comboBox.updateValue(this.comboBox.search);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} 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';\nimport {TuiComboBoxDirective} from './combo-box.directive';\nimport {TuiComboBoxStrictDirective} from './combo-box-strict.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n TuiSelectOptionModule,\n TuiArrowModule,\n ],\n declarations: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n ],\n exports: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n TuiTextfieldComponent,\n ],\n})\nexport class TuiComboBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAQA;IACa,eAAe,GAAY,kBAAkB;IAE7C,uBAAuB,GAAG;IACnC;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,oBAAoB,GAAA,CAAC;KACtD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,oBAAoB,GAAA,CAAC;KACtD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,oBAAoB,GAAA,CAAC;KACtD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,QAAQ,EAAE,eAAe;KAC5B;IACD,kCAAkC;;;;ICyB1B,wCAA6B;IA+CrC,8BAII,OAAyB,EACE,iBAAoC,EAE9C,SAAuB,EAEvB,aAAkC;QATvD,YAWI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QALoB,eAAS,GAAT,SAAS,CAAc;QAEvB,mBAAa,GAAb,aAAa,CAAqB;QA1CvD,eAAS,GAAqC,KAAI,CAAC,aAAa,CAAC,SAAS,CAAC;QAI3E,mBAAa,GAAwB,kB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3B,uBAAuB;gBACvB,qBAAqB;gBACrB,cAAc;aACjB;YACD,YAAY,EAAE;gBACV,oBAAoB;gBACpB,0BAA0B;gBAC1B,oBAAoB;aACvB;YACD,OAAO,EAAE;gBACL,oBAAoB;gBACpB,0BAA0B;gBAC1B,oBAAoB;gBACpB,qBAAqB;aACxB;SACJ,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;ACtCA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-combo-box.js","sources":["ng://@taiga-ui/kit/components/combo-box/combo-box.providers.ts","ng://@taiga-ui/kit/components/combo-box/combo-box.component.ts","ng://@taiga-ui/kit/components/combo-box/combo-box.directive.ts","ng://@taiga-ui/kit/components/combo-box/combo-box-strict.directive.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 {forwardRef} from '@angular/core';\nimport {AbstractTuiControl, TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT} from '@taiga-ui/core';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n// TODO: 3.0 remove in ivy compilation\nexport const COMBOBOX_OPTION: unknown = TUI_SELECT_OPTION;\n\nexport const TUI_COMBO_BOX_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: AbstractTuiControl,\n useExisting: forwardRef(() => TuiComboBoxComponent),\n },\n {\n provide: TUI_OPTION_CONTENT,\n useValue: COMBOBOX_OPTION,\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\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_STRICT_MATCHER,\n TuiActiveZoneDirective,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DATA_LIST_ACCESSOR,\n TuiDataListAccessor,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeM,\n TuiSizeS,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TUI_ARROW_MODE, TuiArrowMode} from '@taiga-ui/kit/components/arrow';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_COMBO_BOX_PROVIDERS} from './combo-box.providers';\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: TUI_COMBO_BOX_PROVIDERS,\n})\nexport class TuiComboBoxComponent<T>\n extends AbstractTuiNullableControl<T>\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: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n @tuiDefaultProp()\n strictMatcher: TuiStringMatcher<T> = TUI_STRICT_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\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 = null;\n\n @Output()\n readonly searchChange = new EventEmitter<string | null>();\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent<\n TuiContextWithImplicit<TuiActiveZoneDirective>\n > = '';\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_ARROW_MODE)\n private readonly arrowMode: TuiArrowMode,\n @Inject(TUI_ITEMS_HANDLERS)\n private readonly itemsHandlers: TuiItemsHandlers<T>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get arrow(): PolymorpheusContent<\n TuiContextWithImplicit<TuiSizeL | TuiSizeM | TuiSizeS>\n > {\n return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;\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 return this.value === null ? this.search || '' : this.stringify(this.value);\n }\n\n get showValueTemplate(): boolean {\n return isPresent(this.value) && !this.focused;\n }\n\n get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.nativeValue;\n }\n\n onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n checkOption(option: T): void {\n if (!this.isStrictMatch(option)) {\n return;\n }\n\n this.updateValue(option);\n this.updateSearch(null);\n }\n\n handleOption(item: T): void {\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: Event): void {\n if (this.open) {\n event.preventDefault();\n }\n\n const options = 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 onValueChange(value: string): void {\n this.updateSearch(value);\n\n const match = 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 if (this.strict || this.search === '') {\n this.updateValue(null);\n }\n\n this.hostedDropdown?.updateOpen(true);\n }\n\n updateValue(value: T | null): void {\n super.updateValue(value);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n toggle(): void {\n this.hostedDropdown?.updateOpen(!this.open);\n }\n\n private isStrictMatch(item: T): boolean {\n return this.strictMatcher(item, this.search || '', this.stringify);\n }\n\n private close(): void {\n this.hostedDropdown?.updateOpen(false);\n }\n\n private updateSearch(search: string | null): void {\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): void {\n if (this.nativeFocusableElement) {\n this.nativeFocusableElement.value = value;\n }\n }\n\n private focusInput(preventScroll: boolean = false): void {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {Directive, forwardRef} from '@angular/core';\nimport {TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n@Directive({\n selector: 'tui-combo-box',\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiComboBoxDirective),\n },\n ],\n})\nexport class TuiComboBoxDirective extends TuiAbstractTextfieldHost<\n TuiComboBoxComponent<unknown>\n> {\n get value(): string {\n return this.host.nativeValue;\n }\n\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {Directive, HostListener, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\nimport {TuiComboBoxComponent} from './combo-box.component';\n\n@Directive({\n selector: 'tui-combo-box[strict]',\n})\nexport class TuiComboBoxStrictDirective<T> {\n @Input()\n @tuiDefaultProp()\n strict = true;\n\n constructor(\n @Inject(TuiComboBoxComponent)\n private readonly comboBox: TuiComboBoxComponent<T | string>,\n ) {}\n\n @HostListener('input')\n onInput(): void {\n if (!this.strict && this.comboBox.search) {\n this.comboBox.updateValue(this.comboBox.search);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} 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';\nimport {TuiComboBoxDirective} from './combo-box.directive';\nimport {TuiComboBoxStrictDirective} from './combo-box-strict.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n TuiSelectOptionModule,\n TuiArrowModule,\n ],\n declarations: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n ],\n exports: [\n TuiComboBoxComponent,\n TuiComboBoxStrictDirective,\n TuiComboBoxDirective,\n TuiTextfieldComponent,\n ],\n})\nexport class TuiComboBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAQA;I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AA1C,aAAQ,GAAR,QAAQ,CAAkC;QAJ/D,WAAM,GAAG,IAAI,CAAC;KAKV;IAGJ,4CAAO,GAAP;QACI,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;YACtC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACnD;KACJ;;gBAR8B,oBAAoB,uBAD9C,MAAM,SAAC,oBAAoB;;IAHhC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;8DACH;IAQd;QADC,YAAY,CAAC,OAAO,CAAC;6DAKrB;IAfQ,0BAA0B;QAHtC,SAAS,CAAC;YACP,QAAQ,EAAE,uBAAuB;SACpC,CAAC;QAOO,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;OANxB,0BAA0B,CAgBtC;IAAD,iCAAC;CAhBD;;;IC8BA;KAAiC;IAApB,iBAAiB;QAtB7B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,mBAAmB;gBACnB,2BAA2B;gBAC3B,uBAAuB;gBACvB,qBAAqB;gBACrB,cAAc;aACjB;YACD,YAAY,EAAE;gBACV,oBAAoB;gBACpB,0BAA0B;gBAC1B,oBAAoB;aACvB;YACD,OAAO,EAAE;gBACL,oBAAoB;gBACpB,0BAA0B;gBAC1B,oBAAoB;gBACpB,qBAAqB;aACxB;SACJ,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;ACtCA;;;;;;"}
@@ -90,7 +90,7 @@ var TuiDataListGroupWrapperComponent = /** @class */ (function (_super) {
90
90
  ], TuiDataListGroupWrapperComponent.prototype, "labels", void 0);
91
91
  TuiDataListGroupWrapperComponent = TuiDataListGroupWrapperComponent_1 = __decorate([
92
92
  Component({
93
- selector: "tui-data-list-wrapper[labels]",
93
+ selector: 'tui-data-list-wrapper[labels]',
94
94
  template: "<tui-data-list\n *ngIf=\"items; else loading\"\n [emptyContent]=\"emptyContent\"\n>\n <tui-opt-group\n *ngFor=\"let group of items; let index = index\"\n [label]=\"labels[index]\"\n >\n <button\n *ngFor=\"let item of group\"\n #elementRef=\"elementRef\"\n tuiElement\n tuiOption\n automation-id=\"tui-data-list-wrapper__option\"\n [size]=\"size\"\n [value]=\"item\"\n [disabled]=\"disabledItemHandler(item)\"\n >\n <span\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"itemContent\"\n [context]=\"getContext(item, elementRef)\"\n ></span>\n </button>\n </tui-opt-group>\n</tui-data-list>\n<ng-template #loading>\n <tui-loader class=\"t-loader\"></tui-loader>\n</ng-template>\n",
95
95
  changeDetection: ChangeDetectionStrategy.OnPush,
96
96
  providers: [
@@ -124,7 +124,7 @@ var TuiDataListWrapperComponent = /** @class */ (function (_super) {
124
124
  ], TuiDataListWrapperComponent.prototype, "items", void 0);
125
125
  TuiDataListWrapperComponent = TuiDataListWrapperComponent_1 = __decorate([
126
126
  Component({
127
- selector: "tui-data-list-wrapper:not([labels])",
127
+ selector: 'tui-data-list-wrapper:not([labels])',
128
128
  template: "<tui-data-list\n *ngIf=\"items; else loading\"\n [emptyContent]=\"emptyContent\"\n>\n <button\n *ngFor=\"let item of items\"\n #elementRef=\"elementRef\"\n tuiElement\n tuiOption\n automation-id=\"tui-data-list-wrapper__option\"\n [size]=\"size\"\n [value]=\"item\"\n [disabled]=\"disabledItemHandler(item)\"\n >\n <span\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"itemContent\"\n [context]=\"getContext(item, elementRef)\"\n ></span>\n </button>\n</tui-data-list>\n<ng-template #loading>\n <tui-loader\n automation-id=\"tui-data-list-wrapper__loader\"\n class=\"t-loader\"\n ></tui-loader>\n</ng-template>\n",
129
129
  changeDetection: ChangeDetectionStrategy.OnPush,
130
130
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-data-list-wrapper.js","sources":["ng://@taiga-ui/kit/components/data-list-wrapper/data-list-wrapper.ts","ng://@taiga-ui/kit/components/data-list-wrapper/data-list-group-wrapper.component.ts","ng://@taiga-ui/kit/components/data-list-wrapper/data-list-wrapper.component.ts","ng://@taiga-ui/kit/components/data-list-wrapper/data-list-wrapper.module.ts","ng://@taiga-ui/kit/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n forwardRef,\n Input,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {EMPTY_QUERY, isNativeFocused, isPresent, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {\n TuiOptionComponent,\n TuiSizeL,\n TuiSizeXS,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Directive()\nexport abstract class AbstractTuiDataListWrapper<T> {\n @ViewChildren(forwardRef(() => TuiOptionComponent))\n protected readonly optionsQuery: QueryList<TuiOptionComponent<T>> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiItemsHandlers<T>['disabledItemHandler'] =\n this.itemsHandlers.disabledItemHandler;\n\n @Input()\n @tuiDefaultProp()\n emptyContent: PolymorpheusContent = ``;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeXS | TuiSizeL = `m`;\n\n protected constructor(protected readonly itemsHandlers: TuiItemsHandlers<T>) {}\n\n @Input()\n @tuiDefaultProp()\n itemContent: PolymorpheusContent<TuiValueContentContext<T>> = ({$implicit}) =>\n this.itemsHandlers.stringify($implicit);\n\n getContext(\n $implicit: T,\n {nativeElement}: ElementRef<HTMLElement>,\n ): TuiValueContentContext<T> {\n return {$implicit, active: isNativeFocused(nativeElement)};\n }\n\n getOptions(includeDisabled: boolean = false): readonly T[] {\n return this.optionsQuery\n .toArray()\n .filter(({disabled}) => includeDisabled || !disabled)\n .map(({value}) => value)\n .filter(isPresent);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\nimport {TUI_DATA_LIST_ACCESSOR} from '@taiga-ui/core/tokens';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\n\nimport {AbstractTuiDataListWrapper} from './data-list-wrapper';\n\n@Component({\n selector: `tui-data-list-wrapper[labels]`,\n templateUrl: `./data-list-group-wrapper.template.html`,\n styleUrls: [`./data-list-wrapper.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting: forwardRef(() => TuiDataListGroupWrapperComponent),\n },\n ],\n})\nexport class TuiDataListGroupWrapperComponent<T> extends AbstractTuiDataListWrapper<T> {\n @Input()\n @tuiDefaultProp()\n items: readonly T[][] | null = [];\n\n @Input()\n @tuiDefaultProp()\n labels: readonly string[] = [];\n\n constructor(@Inject(TUI_ITEMS_HANDLERS) itemsHandlers: TuiItemsHandlers<T>) {\n super(itemsHandlers);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_ACCESSOR} from '@taiga-ui/core';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\n\nimport {AbstractTuiDataListWrapper} from './data-list-wrapper';\n\n@Component({\n selector: `tui-data-list-wrapper:not([labels])`,\n templateUrl: `./data-list-wrapper.template.html`,\n styleUrls: [`./data-list-wrapper.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting: forwardRef(() => TuiDataListWrapperComponent),\n },\n ],\n})\nexport class TuiDataListWrapperComponent<T> extends AbstractTuiDataListWrapper<T> {\n @Input()\n @tuiDefaultProp()\n items: readonly T[] | null = [];\n\n constructor(@Inject(TUI_ITEMS_HANDLERS) itemsHandlers: TuiItemsHandlers<T>) {\n super(itemsHandlers);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiElementModule} from '@taiga-ui/cdk';\nimport {TuiDataListDirective, TuiDataListModule, TuiLoaderModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDataListGroupWrapperComponent} from './data-list-group-wrapper.component';\nimport {TuiDataListWrapperComponent} from './data-list-wrapper.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiElementModule,\n TuiDataListModule,\n TuiLoaderModule,\n ],\n declarations: [TuiDataListWrapperComponent, TuiDataListGroupWrapperComponent],\n exports: [\n TuiDataListWrapperComponent,\n TuiDataListGroupWrapperComponent,\n TuiDataListDirective,\n ],\n})\nexport class TuiDataListWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiDefaultProp","TUI_DATA_LIST_ACCESSOR"],"mappings":";;;;;;;;;;;IAoCI,oCAAyC,aAAkC;QAA3E,iBAA+E;QAAtC,kBAAa,GAAb,aAAa,CAAqB;QAfxD,iBAAY,GAAqC,WAAW,CAAC;QAIhF,wBAAmB,GACf,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC;QAI3C,iBAAY,GAAwB,EAAE,CAAC;QAIvC,SAAI,GAAyB,GAAG,CAAC;QAMjC,gBAAW,GAAmD,UAAC,EAAW;gBAAV,wBAAS;YACrE,OAAA,KAAI,CAAC,aAAa,CAAC,SAAS,CAAC,SAAS,CAAC;SAAA,CAAC;KALmC;IAO/E,+CAAU,GAAV,UACI,SAAY,EACZ,EAAwC;YAAvC,gCAAa;QAEd,OAAO,EAAC,SAAS,WAAA,EAAE,MAAM,EAAE,eAAe,CAAC,aAAa,CAAC,EAAC,CAAC;KAC9D;IAED,+CAAU,GAAV,UAAW,eAAgC;QAAh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kBAAkB,CAAC,CAAA;OAT9B,gCAAgC,CAY5C;IAAD,uCAAC;CAAA,CAZwD,0BAA0B;;;ICA/B,+CAA6B;IAK7E,qCAAwC,aAAkC;QAA1E,YACI,kBAAM,aAAa,CAAC,SACvB;QAJD,WAAK,GAAwB,EAAE,CAAC;;KAI/B;oCAPQ,2BAA2B;;;gDAKvB,MAAM,SAAC,kBAAkB;;IAFtC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;8DACe;IAHvB,2BAA2B;QAZvC,SAAS,CAAC;YACP,QAAQ,EAAE,qCAAqC;YAC/C,+wBAAgD;YAEhD,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAEC,wBAAsB;oBAC/B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,6BAA2B,GAAA,CAAC;iBAC7D;aACJ;;SACJ,CAAC;QAMe,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OAL9B,2BAA2B,CAQvC;IAAD,kCAAC;CAAA,CARmD,0BAA0B;;;ICD9E;KAAwC;IAA3B,wBAAwB;QAfpC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,gBAAgB;gBAChB,iBAAiB;gBACjB,eAAe;aAClB;YACD,YAAY,EAAE,CAAC,2BAA2B,EAAE,gCAAgC,CAAC;YAC7E,OAAO,EAAE;gBACL,2BAA2B;gBAC3B,gCAAgC;gBAChC,oBAAoB;aACvB;SACJ,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACxBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-data-list-wrapper.js","sources":["ng://@taiga-ui/kit/components/data-list-wrapper/data-list-wrapper.ts","ng://@taiga-ui/kit/components/data-list-wrapper/data-list-group-wrapper.component.ts","ng://@taiga-ui/kit/components/data-list-wrapper/data-list-wrapper.component.ts","ng://@taiga-ui/kit/components/data-list-wrapper/data-list-wrapper.module.ts","ng://@taiga-ui/kit/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n forwardRef,\n Input,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {EMPTY_QUERY, isNativeFocused, isPresent, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {\n TuiOptionComponent,\n TuiSizeL,\n TuiSizeXS,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Directive()\nexport abstract class AbstractTuiDataListWrapper<T> {\n @ViewChildren(forwardRef(() => TuiOptionComponent))\n protected readonly optionsQuery: QueryList<TuiOptionComponent<T>> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiItemsHandlers<T>['disabledItemHandler'] =\n this.itemsHandlers.disabledItemHandler;\n\n @Input()\n @tuiDefaultProp()\n emptyContent: PolymorpheusContent = ``;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL | TuiSizeXS = `m`;\n\n protected constructor(protected readonly itemsHandlers: TuiItemsHandlers<T>) {}\n\n @Input()\n @tuiDefaultProp()\n itemContent: PolymorpheusContent<TuiValueContentContext<T>> = ({$implicit}) =>\n this.itemsHandlers.stringify($implicit);\n\n getContext(\n $implicit: T,\n {nativeElement}: ElementRef<HTMLElement>,\n ): TuiValueContentContext<T> {\n return {$implicit, active: isNativeFocused(nativeElement)};\n }\n\n getOptions(includeDisabled: boolean = false): readonly T[] {\n return this.optionsQuery\n .toArray()\n .filter(({disabled}) => includeDisabled || !disabled)\n .map(({value}) => value)\n .filter(isPresent);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\nimport {TUI_DATA_LIST_ACCESSOR} from '@taiga-ui/core/tokens';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\n\nimport {AbstractTuiDataListWrapper} from './data-list-wrapper';\n\n@Component({\n selector: 'tui-data-list-wrapper[labels]',\n templateUrl: './data-list-group-wrapper.template.html',\n styleUrls: ['./data-list-wrapper.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting: forwardRef(() => TuiDataListGroupWrapperComponent),\n },\n ],\n})\nexport class TuiDataListGroupWrapperComponent<T> extends AbstractTuiDataListWrapper<T> {\n @Input()\n @tuiDefaultProp()\n items: readonly T[][] | null = [];\n\n @Input()\n @tuiDefaultProp()\n labels: readonly string[] = [];\n\n constructor(@Inject(TUI_ITEMS_HANDLERS) itemsHandlers: TuiItemsHandlers<T>) {\n super(itemsHandlers);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_ACCESSOR} from '@taiga-ui/core';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\n\nimport {AbstractTuiDataListWrapper} from './data-list-wrapper';\n\n@Component({\n selector: 'tui-data-list-wrapper:not([labels])',\n templateUrl: './data-list-wrapper.template.html',\n styleUrls: ['./data-list-wrapper.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting: forwardRef(() => TuiDataListWrapperComponent),\n },\n ],\n})\nexport class TuiDataListWrapperComponent<T> extends AbstractTuiDataListWrapper<T> {\n @Input()\n @tuiDefaultProp()\n items: readonly T[] | null = [];\n\n constructor(@Inject(TUI_ITEMS_HANDLERS) itemsHandlers: TuiItemsHandlers<T>) {\n super(itemsHandlers);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiElementModule} from '@taiga-ui/cdk';\nimport {TuiDataListDirective, TuiDataListModule, TuiLoaderModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiDataListGroupWrapperComponent} from './data-list-group-wrapper.component';\nimport {TuiDataListWrapperComponent} from './data-list-wrapper.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiElementModule,\n TuiDataListModule,\n TuiLoaderModule,\n ],\n declarations: [TuiDataListWrapperComponent, TuiDataListGroupWrapperComponent],\n exports: [\n TuiDataListWrapperComponent,\n TuiDataListGroupWrapperComponent,\n TuiDataListDirective,\n ],\n})\nexport class TuiDataListWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiDefaultProp","TUI_DATA_LIST_ACCESSOR"],"mappings":";;;;;;;;;;;IAoCI,oCAAyC,aAAkC;QAA3E,iBAA+E;QAAtC,kBAAa,GAAb,aAAa,CAAqB;QAfxD,iBAAY,GAAqC,WAAW,CAAC;QAIhF,wBAAmB,GACf,IAAI,CAAC,aAAa,CAAC,mBAAmB,CAAC;QAI3C,iBAAY,GAAwB,EAAE,CAAC;QAIvC,SAAI,GAAyB,GAAG,CAAC;QAMjC,gBAAW,GAAmD,UAAC,EAAW;gBAAV,wBAAS;YACrE,OAAA,KAAI,CAAC,aAAa,CAAC,SAAS,CAAC,SAAS,CAAC;SAAA,CAAC;KALmC;IAO/E,+CAAU,GAAV,UACI,SAAY,EACZ,EAAwC;YAAvC,gCAAa;QAEd,OAAO,EAAC,SAAS,WAAA,EAAE,MAAM,EAAE,eAAe,CAAC,aAAa,CAAC,EAAC,CAAC;KAC9D;IAED,+CAAU,GAAV,UAAW,eAAgC;QAAhC,gCAAA,EAAA,uBAAgC;QACvC,OAAO,IAAI,CAAC,YAAY;aACnB,OAAO,EAAE;aACT,MAAM,CAAC,UAAC,EAAU;gBAAT,sBAAQ;YAAM,OAAA,eAAe,IAAI,CAAC,QAAQ;SA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QAJD,WAAK,GAAwB,EAAE,CAAC;;KAI/B;oCAPQ,2BAA2B;;;gDAKvB,MAAM,SAAC,kBAAkB;;IAFtC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;8DACe;IAHvB,2BAA2B;QAZvC,SAAS,CAAC;YACP,QAAQ,EAAE,qCAAqC;YAC/C,+wBAAgD;YAEhD,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAEC,wBAAsB;oBAC/B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,6BAA2B,GAAA,CAAC;iBAC7D;aACJ;;SACJ,CAAC;QAMe,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OAL9B,2BAA2B,CAQvC;IAAD,kCAAC;CAAA,CARmD,0BAA0B;;;ICD9E;KAAwC;IAA3B,wBAAwB;QAfpC,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,gBAAgB;gBAChB,iBAAiB;gBACjB,eAAe;aAClB;YACD,YAAY,EAAE,CAAC,2BAA2B,EAAE,gCAAgC,CAAC;YAC7E,OAAO,EAAE;gBACL,2BAA2B;gBAC3B,gCAAgC;gBAChC,oBAAoB;aACvB;SACJ,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACxBA;;;;;;"}
@@ -105,19 +105,19 @@ var TuiFieldErrorComponent = /** @class */ (function () {
105
105
  TuiFieldErrorComponent.prototype.getErrorId = function (order, controlErrors) {
106
106
  var id = order === null || order === void 0 ? void 0 : order.find(function (errorId) { return controlErrors[errorId]; });
107
107
  var fallback = Object.keys(controlErrors)[0];
108
- return id || fallback || "";
108
+ return id || fallback || '';
109
109
  };
110
110
  TuiFieldErrorComponent.prototype.getError = function (firstError, errorContent) {
111
111
  if (firstError instanceof TuiValidationError) {
112
112
  return of(firstError);
113
113
  }
114
- if (errorContent === undefined && typeof firstError === "string") {
114
+ if (errorContent === undefined && typeof firstError === 'string') {
115
115
  return of(new TuiValidationError(firstError));
116
116
  }
117
117
  if (isObservable(errorContent)) {
118
- return errorContent.pipe(map(function (error) { return new TuiValidationError(error || "", firstError); }));
118
+ return errorContent.pipe(map(function (error) { return new TuiValidationError(error || '', firstError); }));
119
119
  }
120
- return of(new TuiValidationError(errorContent || "", firstError));
120
+ return of(new TuiValidationError(errorContent || '', firstError));
121
121
  };
122
122
  TuiFieldErrorComponent.ctorParameters = function () { return [
123
123
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
@@ -141,7 +141,7 @@ var TuiFieldErrorComponent = /** @class */ (function () {
141
141
  ], TuiFieldErrorComponent.prototype, "getError", null);
142
142
  TuiFieldErrorComponent = __decorate([
143
143
  Component({
144
- selector: "tui-field-error",
144
+ selector: 'tui-field-error',
145
145
  // @bad TODO: find a way to get 'touched' state change
146
146
  // https://github.com/angular/angular/issues/10887
147
147
  changeDetection: ChangeDetectionStrategy.Default,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-field-error.js","sources":["ng://@taiga-ui/kit/components/field-error/field-error.component.ts","ng://@taiga-ui/kit/components/field-error/field-error.module.ts","ng://@taiga-ui/kit/components/field-error/taiga-ui-kit-components-field-error.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional,\n Self,\n} from '@angular/core';\nimport {\n AbstractControl,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiDefaultProp, tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, isObservable, merge, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n// @dynamic\n@Component({\n selector: `tui-field-error`,\n // @bad TODO: find a way to get 'touched' state change\n // https://github.com/angular/angular/issues/10887\n changeDetection: ChangeDetectionStrategy.Default,\n templateUrl: `./field-error.template.html`,\n styleUrls: [`./field-error.style.less`],\n})\nexport class TuiFieldErrorComponent {\n @Input()\n @tuiDefaultProp()\n order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n PolymorpheusContent | Observable<PolymorpheusContent>\n >,\n ) {\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n @tuiPure\n get change$(): Observable<unknown> {\n return merge(\n this.control?.valueChanges || EMPTY,\n this.control?.statusChanges || EMPTY,\n );\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError | null> {\n const {errorId} = this;\n\n if (!errorId) {\n return of(null);\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control && this.control.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control && this.control.touched;\n }\n\n private get control(): AbstractControl | null {\n if (this.ngControl) {\n return this.ngControl.control;\n }\n\n if (this.formArrayName) {\n return this.formArrayName.control;\n }\n\n if (this.formGroupName) {\n return this.formGroupName.control;\n }\n\n if (this.formGroup) {\n return this.formGroup.control;\n }\n\n return null;\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || ``;\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: PolymorpheusContent | Observable<PolymorpheusContent>,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === `string`) {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || ``, firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || ``, firstError));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {ReactiveFormsModule} from '@angular/forms';\nimport {TuiErrorModule} from '@taiga-ui/core';\n\nimport {TuiFieldErrorComponent} from './field-error.component';\n\n/**\n * @deprecated use {@link TuiFieldErrorPipeModule} (from '@taiga-ui/kit') instead\n */\n@NgModule({\n imports: [CommonModule, TuiErrorModule, ReactiveFormsModule],\n declarations: [TuiFieldErrorComponent],\n exports: [TuiFieldErrorComponent],\n})\nexport class TuiFieldErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAqBA,IAAM,YAAY,GAAG,EAAE,CAAC;AACxB;;IAcI,gCAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3B,kBAAa,GAAb,aAAa,CAAsB;QAInC,kBAAa,GAAb,aAAa,CAAsB;QAInC,cAAS,GAAT,SAAS,CAA2B;QAEpC,qBAAgB,GAAhB,gBAAgB,CAGhC;QAvBL,UAAK,GAAsB,EAAE,CAAC;QAyB1B,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,IAA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AsIlC;IAAD,6BAAC;CAtID;;ACxBA;;;;IAQA;KAAmC;IAAtB,mBAAmB;QAL/B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,mBAAmB,CAAC;YAC5D,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACfA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-field-error.js","sources":["ng://@taiga-ui/kit/components/field-error/field-error.component.ts","ng://@taiga-ui/kit/components/field-error/field-error.module.ts","ng://@taiga-ui/kit/components/field-error/taiga-ui-kit-components-field-error.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n Input,\n Optional,\n Self,\n} from '@angular/core';\nimport {\n AbstractControl,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiDefaultProp, tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, isObservable, merge, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n// @dynamic\n@Component({\n selector: 'tui-field-error',\n // @bad TODO: find a way to get 'touched' state change\n // https://github.com/angular/angular/issues/10887\n changeDetection: ChangeDetectionStrategy.Default,\n templateUrl: './field-error.template.html',\n styleUrls: ['./field-error.style.less'],\n})\nexport class TuiFieldErrorComponent {\n @Input()\n @tuiDefaultProp()\n order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n Observable<PolymorpheusContent> | PolymorpheusContent\n >,\n ) {\n if (this.ngControl) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n @tuiPure\n get change$(): Observable<unknown> {\n return merge(\n this.control?.valueChanges || EMPTY,\n this.control?.statusChanges || EMPTY,\n );\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError | null> {\n const {errorId} = this;\n\n if (!errorId) {\n return of(null);\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control && this.control.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control && this.control.touched;\n }\n\n private get control(): AbstractControl | null {\n if (this.ngControl) {\n return this.ngControl.control;\n }\n\n if (this.formArrayName) {\n return this.formArrayName.control;\n }\n\n if (this.formGroupName) {\n return this.formGroupName.control;\n }\n\n if (this.formGroup) {\n return this.formGroup.control;\n }\n\n return null;\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || '';\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: Observable<PolymorpheusContent> | PolymorpheusContent,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === 'string') {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || '', firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || '', firstError));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {ReactiveFormsModule} from '@angular/forms';\nimport {TuiErrorModule} from '@taiga-ui/core';\n\nimport {TuiFieldErrorComponent} from './field-error.component';\n\n/**\n * @deprecated use {@link TuiFieldErrorPipeModule} (from '@taiga-ui/kit') instead\n */\n@NgModule({\n imports: [CommonModule, TuiErrorModule, ReactiveFormsModule],\n declarations: [TuiFieldErrorComponent],\n exports: [TuiFieldErrorComponent],\n})\nexport class TuiFieldErrorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAqBA,IAAM,YAAY,GAAG,EAAE,CAAC;AACxB;;IAcI,gCAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3B,kBAAa,GAAb,aAAa,CAAsB;QAInC,kBAAa,GAAb,aAAa,CAAsB;QAInC,cAAS,GAAT,SAAS,CAA2B;QAEpC,qBAAgB,GAAhB,gBAAgB,CAGhC;QAvBL,UAAK,GAAsB,EAAE,CAAC;QAyB1B,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;SACvC;KACJ;IAGD,sBAAI,2CAAO;aAAX;;YACI,OAAO,KAAK,CACR,OAAA,IAAI,CAAC,OAAO,0CAAE,YAAY,KAAI,KAAK,EACnC,OAAA,IAAI,CAAC,OAAO,0CAAE,aAAa,KAAI,KAAK,CACvC,CAAC;SACL;;;OAAA;IAED,sBAAI,iDAAa;aAAjB;YACI,OAAO,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,IAAI,IAA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class */ (function () {
17
17
  this.sanitizer = sanitizer;
18
18
  this.fileTexts$ = fileTexts$;
19
19
  this.units$ = units$;
20
- this.file = { name: "" };
21
- this.state = "normal";
22
- this.size = "m";
20
+ this.file = { name: '' };
21
+ this.state = 'normal';
22
+ this.size = 'm';
23
23
  this.showSize = true;
24
- this.leftContent = "";
24
+ this.leftContent = '';
25
25
  this.removed = new EventEmitter();
26
26
  this.focused = false;
27
27
  }
28
28
  Object.defineProperty(TuiFileComponent.prototype, "preview", {
29
29
  get: function () {
30
- return this.isBig ? this.createPreview(this.file, this.sanitizer) : "";
30
+ return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';
31
31
  },
32
32
  enumerable: true,
33
33
  configurable: true
34
34
  });
35
35
  Object.defineProperty(TuiFileComponent.prototype, "isBig", {
36
36
  get: function () {
37
- return this.size === "l";
37
+ return this.size === 'l';
38
38
  },
39
39
  enumerable: true,
40
40
  configurable: true
@@ -70,15 +70,15 @@ var TuiFileComponent = /** @class */ (function () {
70
70
  Object.defineProperty(TuiFileComponent.prototype, "icon", {
71
71
  get: function () {
72
72
  if (this.state === "normal" /* Normal */ && this.isBig) {
73
- return "tuiIconDefaultDocLarge";
73
+ return 'tuiIconDefaultDocLarge';
74
74
  }
75
75
  switch (this.state) {
76
76
  case "deleted" /* Deleted */:
77
- return "tuiIconTrashLarge";
77
+ return 'tuiIconTrashLarge';
78
78
  case "error" /* Error */:
79
- return "tuiIconAlertCircleLarge";
79
+ return 'tuiIconAlertCircleLarge';
80
80
  default:
81
- return "tuiIconCheckCircleLarge";
81
+ return 'tuiIconCheckCircleLarge';
82
82
  }
83
83
  },
84
84
  enumerable: true,
@@ -86,7 +86,7 @@ var TuiFileComponent = /** @class */ (function () {
86
86
  });
87
87
  Object.defineProperty(TuiFileComponent.prototype, "src", {
88
88
  get: function () {
89
- return this.file.src || "";
89
+ return this.file.src || '';
90
90
  },
91
91
  enumerable: true,
92
92
  configurable: true
@@ -128,7 +128,7 @@ var TuiFileComponent = /** @class */ (function () {
128
128
  TuiFileComponent.prototype.calculateContent$ = function (state, file, fileTexts$) {
129
129
  return state === "error" /* Error */ && !file.content
130
130
  ? fileTexts$.pipe(map(function (texts) { return texts.loadingError; }))
131
- : of(this.file.content || "");
131
+ : of(this.file.content || '');
132
132
  };
133
133
  TuiFileComponent.prototype.calculateFileSize$ = function (file, units$) {
134
134
  return units$.pipe(map(function (units) { return formatSize(units, file.size); }));
@@ -138,16 +138,16 @@ var TuiFileComponent = /** @class */ (function () {
138
138
  return file.src;
139
139
  }
140
140
  // TODO: iframe warning
141
- if (file instanceof File && file.type && file.type.startsWith("image/")) {
141
+ if (file instanceof File && file.type && file.type.startsWith('image/')) {
142
142
  return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));
143
143
  }
144
- return "";
144
+ return '';
145
145
  };
146
146
  TuiFileComponent.prototype.getName = function (file) {
147
- return file.name.split(".").slice(0, -1).join(".");
147
+ return file.name.split('.').slice(0, -1).join('.');
148
148
  };
149
149
  TuiFileComponent.prototype.getType = function (file) {
150
- return "." + file.name.split(".").pop() || "";
150
+ return "." + file.name.split('.').pop() || '';
151
151
  };
152
152
  TuiFileComponent.ctorParameters = function () { return [
153
153
  { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
@@ -179,10 +179,10 @@ var TuiFileComponent = /** @class */ (function () {
179
179
  Output()
180
180
  ], TuiFileComponent.prototype, "removed", void 0);
181
181
  __decorate([
182
- HostBinding("class._focused")
182
+ HostBinding('class._focused')
183
183
  ], TuiFileComponent.prototype, "focused", void 0);
184
184
  __decorate([
185
- HostBinding("class._link")
185
+ HostBinding('class._link')
186
186
  ], TuiFileComponent.prototype, "src", null);
187
187
  __decorate([
188
188
  tuiPure
@@ -201,7 +201,7 @@ var TuiFileComponent = /** @class */ (function () {
201
201
  ], TuiFileComponent.prototype, "getType", null);
202
202
  TuiFileComponent = __decorate([
203
203
  Component({
204
- selector: "tui-file",
204
+ selector: 'tui-file',
205
205
  changeDetection: ChangeDetectionStrategy.OnPush,
206
206
  template: "<ng-container\n *ngIf=\"!src; else withLink\"\n [ngTemplateOutlet]=\"fileInfoTemplate\"\n></ng-container>\n\n<ng-template #withLink>\n <a\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"t-link\"\n [href]=\"src\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"fileInfoTemplate\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div\n polymorpheus-outlet\n class=\"t-preview\"\n [class.t-preview_big]=\"isBig\"\n [content]=\"leftContent || defaultLeftContent\"\n ></div>\n <div class=\"t-wrapper\">\n <div class=\"t-text\">\n <div\n automation-id=\"tui-file__name\"\n class=\"t-name\"\n >\n {{ name }}\n </div>\n <div\n automation-id=\"tui-file__type\"\n class=\"t-type\"\n >\n {{ type }}\n </div>\n <div\n *ngIf=\"showSize && (fileSize$ | async) as fileSize\"\n automation-id=\"tui-file__size\"\n class=\"t-size\"\n >\n {{ fileSize }}\n </div>\n </div>\n <div\n *ngIf=\"content$ | async as content\"\n polymorpheus-outlet\n automation-id=\"tui-file__content\"\n class=\"t-content\"\n [content]=\"content\"\n ></div>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"allowDelete\">\n <button\n *ngIf=\"fileTexts$ | async as texts\"\n automation-id=\"tui-file__remove\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconCloseLarge\"\n appearance=\"icon\"\n class=\"t-remove\"\n [title]=\"texts.remove\"\n [class.t-remove_mobile]=\"isMobile\"\n (click.prevent)=\"onRemoveClick()\"\n ></button>\n </ng-container>\n</ng-template>\n\n<ng-template #defaultLeftContent>\n <img\n *ngIf=\"preview; else loader\"\n automation-id=\"tui-file__preview\"\n class=\"t-image\"\n [src]=\"preview\"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf=\"isLoading; else svg\"\n automation-id=\"tui-file__loader\"\n class=\"t-loader\"\n [inheritColor]=\"isBig\"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n automation-id=\"tui-file__icon\"\n class=\"t-icon\"\n [class.t-icon_deleted]=\"isDeleted\"\n [class.t-icon_error]=\"isError\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n</ng-template>\n",
207
207
  styles: [":host{position:relative;display:flex;align-items:center;font:var(--tui-font-text-m);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .t-remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.t-link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.t-link:hover{background-color:var(--tui-base-02)}.t-preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:var(--tui-base-06)}.t-preview_big{width:4rem;height:4rem;margin-right:1rem}.t-preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:var(--tui-base-08);opacity:.08}.t-image{max-width:100%;max-height:100%}.t-loader{position:absolute;top:0;left:0;width:100%;height:100%}.t-icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.t-icon_error{color:var(--tui-error-fill)}.t-icon_deleted{color:var(--tui-base-06)}.t-remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.t-remove:focus,.t-remove_mobile{opacity:1}.t-wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.t-text{display:flex}.t-size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.t-type{flex-shrink:0}.t-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]
@@ -246,7 +246,7 @@ var TuiFilesComponent = /** @class */ (function () {
246
246
  ], TuiFilesComponent.prototype, "max", void 0);
247
247
  TuiFilesComponent = __decorate([
248
248
  Component({
249
- selector: "tui-files",
249
+ selector: 'tui-files',
250
250
  template: "<ng-container *ngIf=\"items?.changes | async\"></ng-container>\n\n<section\n tuiGroup\n orientation=\"vertical\"\n class=\"t-files\"\n [collapsed]=\"true\"\n>\n <ng-content></ng-content>\n <ng-container *ngFor=\"let item of items; let index = index\">\n <ng-container\n *ngIf=\"!max || index < max\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n </ng-container>\n <tui-expand\n *ngIf=\"hasExtraItems\"\n [expanded]=\"!hidden\"\n >\n <div class=\"t-extra-items\">\n <ng-container *ngFor=\"let item of items; let index = index\">\n <ng-container\n *ngIf=\"max && index >= max\"\n [ngTemplateOutlet]=\"item\"\n ></ng-container>\n </ng-container>\n </div>\n </tui-expand>\n <button\n *ngIf=\"hasExtraItems\"\n tuiButton\n appearance=\"outline\"\n size=\"m\"\n class=\"t-button\"\n [class.t-button_collapsed]=\"hidden\"\n (click)=\"toggle()\"\n >\n {{ (hidden ? showAllText$ : hideText$) | async }}\n </button>\n</section>\n",
251
251
  changeDetection: ChangeDetectionStrategy.OnPush,
252
252
  encapsulation: ViewEncapsulation.None,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-files.js","sources":["ng://@taiga-ui/kit/components/files/file/file.component.ts","ng://@taiga-ui/kit/components/files/files.component.ts","ng://@taiga-ui/kit/components/files/files.module.ts","ng://@taiga-ui/kit/components/files/taiga-ui-kit-components-files.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {DomSanitizer, SafeValue} from '@angular/platform-browser';\nimport {TUI_IS_MOBILE, tuiDefaultProp, tuiIsObserved, tuiPure} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {TuiFileState, TuiFileStateT} from '@taiga-ui/kit/enums';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\ntype FileTexts = 'loadingError' | 'preview' | 'remove';\n\n// @dynamic\n@Component({\n selector: `tui-file`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: `./file.template.html`,\n styleUrls: [`./file.style.less`],\n})\nexport class TuiFileComponent {\n @Input()\n @tuiDefaultProp()\n file: TuiFileLike = {name: ``};\n\n @Input()\n @tuiDefaultProp()\n state: TuiFileStateT = `normal`;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Input()\n @tuiDefaultProp()\n leftContent: PolymorpheusContent = ``;\n\n @Output()\n readonly removed = new EventEmitter<void>();\n\n @HostBinding(`class._focused`)\n focused = false;\n\n constructor(\n @Inject(TUI_IS_MOBILE) readonly isMobile: boolean,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(TUI_FILE_TEXTS)\n readonly fileTexts$: Observable<Record<FileTexts, string>>,\n @Inject(TUI_DIGITAL_INFORMATION_UNITS)\n private readonly units$: Observable<[string, string, string]>,\n ) {}\n\n get preview(): SafeValue {\n return this.isBig ? this.createPreview(this.file, this.sanitizer) : ``;\n }\n\n get isBig(): boolean {\n return this.size === `l`;\n }\n\n get isLoading(): boolean {\n return this.state === TuiFileState.Loading;\n }\n\n get isError(): boolean {\n return this.state === TuiFileState.Error;\n }\n\n get isDeleted(): boolean {\n return this.state === TuiFileState.Deleted;\n }\n\n get allowDelete(): boolean {\n return tuiIsObserved(this.removed);\n }\n\n get icon(): string {\n if (this.state === TuiFileState.Normal && this.isBig) {\n return `tuiIconDefaultDocLarge`;\n }\n\n switch (this.state) {\n case TuiFileState.Deleted:\n return `tuiIconTrashLarge`;\n case TuiFileState.Error:\n return `tuiIconAlertCircleLarge`;\n default:\n return `tuiIconCheckCircleLarge`;\n }\n }\n\n @HostBinding(`class._link`)\n get src(): string {\n return this.file.src || ``;\n }\n\n get name(): string {\n return this.getName(this.file);\n }\n\n get type(): string {\n return this.getType(this.file);\n }\n\n get content$(): Observable<PolymorpheusContent> {\n return this.calculateContent$(this.state, this.file, this.fileTexts$);\n }\n\n get fileSize$(): Observable<string | null> {\n return this.calculateFileSize$(this.file, this.units$);\n }\n\n onRemoveClick(): void {\n this.removed.emit();\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: TuiFileStateT,\n file: TuiFileLike,\n fileTexts$: Observable<Record<'loadingError' | 'preview' | 'remove', string>>,\n ): Observable<PolymorpheusContent> {\n return state === TuiFileState.Error && !file.content\n ? fileTexts$.pipe(map(texts => texts.loadingError))\n : of(this.file.content || ``);\n }\n\n @tuiPure\n private calculateFileSize$(\n file: TuiFileLike,\n units$: Observable<[string, string, string]>,\n ): Observable<string | null> {\n return units$.pipe(map(units => formatSize(units, file.size)));\n }\n\n @tuiPure\n private createPreview(file: TuiFileLike, sanitizer: DomSanitizer): SafeValue {\n if (file.src) {\n return file.src;\n }\n\n // TODO: iframe warning\n if (file instanceof File && file.type && file.type.startsWith(`image/`)) {\n return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));\n }\n\n return ``;\n }\n\n @tuiPure\n private getName(file: TuiFileLike): string {\n return file.name.split(`.`).slice(0, -1).join(`.`);\n }\n\n @tuiPure\n private getType(file: TuiFileLike): string {\n return `.${file.name.split(`.`).pop()}` || ``;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Inject,\n Input,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiItemDirective} from '@taiga-ui/cdk';\nimport {TUI_HIDE_TEXT, TUI_SHOW_ALL_TEXT} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-files`,\n templateUrl: `./files.component.html`,\n styleUrls: [`./files.component.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiFilesComponent {\n @ContentChildren(TuiItemDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<Record<string, unknown>>> | null = null;\n\n @Input()\n @tuiDefaultProp()\n max = 0;\n\n hidden = true;\n\n constructor(\n @Inject(TUI_HIDE_TEXT) readonly hideText$: Observable<string>,\n @Inject(TUI_SHOW_ALL_TEXT) readonly showAllText$: Observable<string>,\n ) {}\n\n get hasExtraItems(): boolean {\n return !!this.max && (this.items?.length ?? 0) > this.max;\n }\n\n toggle(): void {\n this.hidden = !this.hidden;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusVisibleModule, TuiItemDirective, TuiItemModule} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiExpandModule,\n TuiGroupModule,\n TuiLoaderModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFileComponent} from './file/file.component';\nimport {TuiFilesComponent} from './files.component';\n\n@NgModule({\n declarations: [TuiFilesComponent, TuiFileComponent],\n imports: [\n CommonModule,\n TuiGroupModule,\n TuiLoaderModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiFocusVisibleModule,\n TuiButtonModule,\n TuiItemModule,\n TuiExpandModule,\n ],\n exports: [TuiFilesComponent, TuiFileComponent, TuiItemDirective],\n})\nexport class TuiFilesModule {}\n","/**\n * Generated bundle index. Do not edit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KAAK,EAAE;QACP,cAAc,EAAE;kDACT;IANC,iBAAiB;QAP7B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;YACrB,iqCAAqC;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;SACxC,CAAC;QAYO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAZrB,iBAAiB,CAsB7B;IAAD,wBAAC;CAtBD;;;ICSA;KAA8B;IAAjB,cAAc;QAf1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACnD,OAAO,EAAE;gBACL,YAAY;gBACZ,cAAc;gBACd,eAAe;gBACf,kBAAkB;gBAClB,YAAY;gBACZ,qBAAqB;gBACrB,eAAe;gBACf,aAAa;gBACb,eAAe;aAClB;YACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;SACnE,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;AC9BA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-files.js","sources":["ng://@taiga-ui/kit/components/files/file/file.component.ts","ng://@taiga-ui/kit/components/files/files.component.ts","ng://@taiga-ui/kit/components/files/files.module.ts","ng://@taiga-ui/kit/components/files/taiga-ui-kit-components-files.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {DomSanitizer, SafeValue} from '@angular/platform-browser';\nimport {TUI_IS_MOBILE, tuiDefaultProp, tuiIsObserved, tuiPure} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {TuiFileState, TuiFileStateT} from '@taiga-ui/kit/enums';\nimport {TuiFileLike} from '@taiga-ui/kit/interfaces';\nimport {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {formatSize} from '@taiga-ui/kit/utils/files';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\ntype FileTexts = 'loadingError' | 'preview' | 'remove';\n\n// @dynamic\n@Component({\n selector: 'tui-file',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './file.template.html',\n styleUrls: ['./file.style.less'],\n})\nexport class TuiFileComponent {\n @Input()\n @tuiDefaultProp()\n file: TuiFileLike = {name: ''};\n\n @Input()\n @tuiDefaultProp()\n state: TuiFileStateT = 'normal';\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n showSize = true;\n\n @Input()\n @tuiDefaultProp()\n leftContent: PolymorpheusContent = '';\n\n @Output()\n readonly removed = new EventEmitter<void>();\n\n @HostBinding('class._focused')\n focused = false;\n\n constructor(\n @Inject(TUI_IS_MOBILE) readonly isMobile: boolean,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(TUI_FILE_TEXTS)\n readonly fileTexts$: Observable<Record<FileTexts, string>>,\n @Inject(TUI_DIGITAL_INFORMATION_UNITS)\n private readonly units$: Observable<[string, string, string]>,\n ) {}\n\n get preview(): SafeValue {\n return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';\n }\n\n get isBig(): boolean {\n return this.size === 'l';\n }\n\n get isLoading(): boolean {\n return this.state === TuiFileState.Loading;\n }\n\n get isError(): boolean {\n return this.state === TuiFileState.Error;\n }\n\n get isDeleted(): boolean {\n return this.state === TuiFileState.Deleted;\n }\n\n get allowDelete(): boolean {\n return tuiIsObserved(this.removed);\n }\n\n get icon(): string {\n if (this.state === TuiFileState.Normal && this.isBig) {\n return 'tuiIconDefaultDocLarge';\n }\n\n switch (this.state) {\n case TuiFileState.Deleted:\n return 'tuiIconTrashLarge';\n case TuiFileState.Error:\n return 'tuiIconAlertCircleLarge';\n default:\n return 'tuiIconCheckCircleLarge';\n }\n }\n\n @HostBinding('class._link')\n get src(): string {\n return this.file.src || '';\n }\n\n get name(): string {\n return this.getName(this.file);\n }\n\n get type(): string {\n return this.getType(this.file);\n }\n\n get content$(): Observable<PolymorpheusContent> {\n return this.calculateContent$(this.state, this.file, this.fileTexts$);\n }\n\n get fileSize$(): Observable<string | null> {\n return this.calculateFileSize$(this.file, this.units$);\n }\n\n onRemoveClick(): void {\n this.removed.emit();\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.focused = focusVisible;\n }\n\n @tuiPure\n private calculateContent$(\n state: TuiFileStateT,\n file: TuiFileLike,\n fileTexts$: Observable<Record<'loadingError' | 'preview' | 'remove', string>>,\n ): Observable<PolymorpheusContent> {\n return state === TuiFileState.Error && !file.content\n ? fileTexts$.pipe(map(texts => texts.loadingError))\n : of(this.file.content || '');\n }\n\n @tuiPure\n private calculateFileSize$(\n file: TuiFileLike,\n units$: Observable<[string, string, string]>,\n ): Observable<string | null> {\n return units$.pipe(map(units => formatSize(units, file.size)));\n }\n\n @tuiPure\n private createPreview(file: TuiFileLike, sanitizer: DomSanitizer): SafeValue {\n if (file.src) {\n return file.src;\n }\n\n // TODO: iframe warning\n if (file instanceof File && file.type && file.type.startsWith('image/')) {\n return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));\n }\n\n return '';\n }\n\n @tuiPure\n private getName(file: TuiFileLike): string {\n return file.name.split('.').slice(0, -1).join('.');\n }\n\n @tuiPure\n private getType(file: TuiFileLike): string {\n return `.${file.name.split('.').pop()}` || '';\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Inject,\n Input,\n QueryList,\n TemplateRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiItemDirective} from '@taiga-ui/cdk';\nimport {TUI_HIDE_TEXT, TUI_SHOW_ALL_TEXT} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-files',\n templateUrl: './files.component.html',\n styleUrls: ['./files.component.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiFilesComponent {\n @ContentChildren(TuiItemDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<Record<string, unknown>>> | null = null;\n\n @Input()\n @tuiDefaultProp()\n max = 0;\n\n hidden = true;\n\n constructor(\n @Inject(TUI_HIDE_TEXT) readonly hideText$: Observable<string>,\n @Inject(TUI_SHOW_ALL_TEXT) readonly showAllText$: Observable<string>,\n ) {}\n\n get hasExtraItems(): boolean {\n return !!this.max && (this.items?.length ?? 0) > this.max;\n }\n\n toggle(): void {\n this.hidden = !this.hidden;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiFocusVisibleModule, TuiItemDirective, TuiItemModule} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiExpandModule,\n TuiGroupModule,\n TuiLoaderModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFileComponent} from './file/file.component';\nimport {TuiFilesComponent} from './files.component';\n\n@NgModule({\n declarations: [TuiFilesComponent, TuiFileComponent],\n imports: [\n CommonModule,\n TuiGroupModule,\n TuiLoaderModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiFocusVisibleModule,\n TuiButtonModule,\n TuiItemModule,\n TuiExpandModule,\n ],\n exports: [TuiFilesComponent, TuiFileComponent, TuiItemDirective],\n})\nexport class TuiFilesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAsBA;;IAkCI,0BACoC,QAAiB,EACV,SAAuB,EAErD,UAAiD,EAEzC,MAA4C;QAL7B,aAAQ,GAAR,QAAQ,CAAS;QACV,cAAS,GAAT,SAAS,CAAc;QAErD,eAAU,GAAV,UAAU,CAAuC;QAEzC,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C,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAZrB,iBAAiB,CAsB7B;IAAD,wBAAC;CAtBD;;;ICSA;KAA8B;IAAjB,cAAc;QAf1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACnD,OAAO,EAAE;gBACL,YAAY;gBACZ,cAAc;gBACd,eAAe;gBACf,kBAAkB;gBAClB,YAAY;gBACZ,qBAAqB;gBACrB,eAAe;gBACf,aAAa;gBACb,eAAe;aAClB;YACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;SACnE,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;AC9BA;;;;;;"}
@@ -16,7 +16,7 @@ var TuiFilterComponent = /** @class */ (function (_super) {
16
16
  _this.elementRef = elementRef;
17
17
  _this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
18
18
  _this.items = [];
19
- _this.size = "m";
19
+ _this.size = 'm';
20
20
  _this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
21
21
  _this.toggledItem = new EventEmitter();
22
22
  _this.content = function (_a) {
@@ -63,7 +63,7 @@ var TuiFilterComponent = /** @class */ (function (_super) {
63
63
  ], TuiFilterComponent.prototype, "items", void 0);
64
64
  __decorate([
65
65
  Input(),
66
- HostBinding("attr.data-size"),
66
+ HostBinding('attr.data-size'),
67
67
  tuiDefaultProp()
68
68
  ], TuiFilterComponent.prototype, "size", void 0);
69
69
  __decorate([
@@ -86,7 +86,7 @@ var TuiFilterComponent = /** @class */ (function (_super) {
86
86
  ], TuiFilterComponent.prototype, "getItemContentContext", null);
87
87
  TuiFilterComponent = __decorate([
88
88
  Component({
89
- selector: "tui-filter",
89
+ selector: 'tui-filter',
90
90
  template: "<ng-container *ngFor=\"let item of items\">\n <tui-checkbox-block\n automation-id=\"tui-filter__checkbox\"\n class=\"t-item\"\n [disabled]=\"disabledItemHandler(item)\"\n [hideCheckbox]=\"true\"\n [ngModel]=\"isCheckboxEnabled(item)\"\n [size]=\"size\"\n (ngModelChange)=\"onCheckbox($event, item)\"\n >\n <div\n automation-id=\"tui-filter__content\"\n class=\"t-content\"\n >\n <div\n polymorpheus-outlet\n [content]=\"content\"\n [context]=\"getItemContentContext(item)\"\n ></div>\n <tui-badge\n *ngIf=\"badgeHandler(item) as badgeValue\"\n automation-id=\"tui-filter__badge\"\n tuiMode=\"onLight\"\n class=\"t-badge\"\n [class.t-badge_disabled]=\"disabledItemHandler(item)\"\n [size]=\"size\"\n [value]=\"badgeValue\"\n ></tui-badge>\n </div>\n </tui-checkbox-block>\n</ng-container>\n",
91
91
  changeDetection: ChangeDetectionStrategy.OnPush,
92
92
  styles: [":host{display:block;margin-bottom:-.25rem}.t-content{display:flex;align-items:center}.t-item{margin-right:.25rem;margin-bottom:.25rem}.t-item:last-child,:host[data-size='l'] .t-item:last-child{margin-right:0}:host[data-size='l'] .t-item{margin-right:.5rem;margin-bottom:.5rem}.t-badge{margin-left:.25rem}.t-badge_disabled{opacity:var(--tui-disabled-opacity)}"]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-filter.js","sources":["ng://@taiga-ui/kit/components/filter/filter.component.ts","ng://@taiga-ui/kit/components/filter/filter.module.ts","ng://@taiga-ui/kit/components/filter/taiga-ui-kit-components-filter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiMultipleControl,\n ALWAYS_FALSE_HANDLER,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiHandler,\n TuiIdentityMatcher,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n// @bad TODO: Add active zone to track focus\n@Component({\n selector: `tui-filter`,\n templateUrl: `./filter.template.html`,\n styleUrls: [`./filter.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiFilterComponent<T> extends AbstractTuiMultipleControl<T> {\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n @Output()\n readonly toggledItem = new EventEmitter<T>();\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent<any> = ({$implicit}: TuiContextWithImplicit<unknown>) =>\n TUI_DEFAULT_STRINGIFY($implicit);\n\n @Input()\n @tuiDefaultProp()\n badgeHandler: TuiHandler<T, number> = item => Number(item);\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n @tuiPure\n getItemContentContext($implicit: T): TuiContextWithImplicit<T> {\n return {\n $implicit,\n };\n }\n\n onCheckbox(value: boolean, item: T): void {\n this.toggledItem.emit(item);\n this.updateValue(\n value\n ? [...this.value, item]\n : this.value.filter(arrItem => !this.identityMatcher(arrItem, item)),\n );\n }\n\n isCheckboxEnabled(item: T): boolean {\n return this.value.some(arrItem => this.identityMatcher(arrItem, item));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiModeModule} from '@taiga-ui/core';\nimport {TuiBadgeModule} from '@taiga-ui/kit/components/badge';\nimport {TuiCheckboxBlockModule} from '@taiga-ui/kit/components/checkbox-block';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFilterComponent} from './filter.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiCheckboxBlockModule,\n TuiBadgeModule,\n TuiModeModule,\n ],\n declarations: [TuiFilterComponent],\n exports: [TuiFilterComponent],\n})\nexport class TuiFilterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA8BA;;IAO2C,sCAA6B;IAqBpE,4BAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC;QAN5E,YAQI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHwC,gBAAU,GAAV,UAAU,CAAyB;QAxB5E,qBAAe,GAA0B,4BAA4B,CAAC;QAItE,WAAK,GAAiB,EAAE,CAAC;QAKzB,UAAI,GAAwB,GAAG,CAAC;QAIhC,yBAAmB,GAAyB,oBAAoB,CAAC;QAGxD,iBAAW,GAAG,IAAI,YAAY,EAAK,CAAC;QAe7C,aAAO,GAA6B,UAAC,EAA4C;gBAA3C,wBAAS;YAC3C,OAAA,qBAAqB,CAAC,SAAS,CAAC;SAAA,CAAC;QAIrC,kBAAY,GAA0B,UAAA,IAAI,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAA,CAAC;;KAT1D;IAWD,sBAAI,uCAAO;aAAX;YACI,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SAC3D;;;OAAA;IAGD,kDAAqB,GAArB,UAAsB,SAAY;QAC9B,OAAO;YACH,SAAS,WAAA;SACZ,CAAC;KACL;IAED,uCAAU,GAAV,UAAW,K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AA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OA3Bd,kBAAkB,CAgE9B;IAAD,yBAAC;CAAA,CAhE0C,0BAA0B;;;ICfrE;KAA+B;IAAlB,eAAe;QAZ3B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,sBAAsB;gBACtB,cAAc;gBACd,aAAa;aAChB;YACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACtBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-filter.js","sources":["ng://@taiga-ui/kit/components/filter/filter.component.ts","ng://@taiga-ui/kit/components/filter/filter.module.ts","ng://@taiga-ui/kit/components/filter/taiga-ui-kit-components-filter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n HostBinding,\n Inject,\n Input,\n Optional,\n Output,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiMultipleControl,\n ALWAYS_FALSE_HANDLER,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiHandler,\n TuiIdentityMatcher,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n// @bad TODO: Add active zone to track focus\n@Component({\n selector: 'tui-filter',\n templateUrl: './filter.template.html',\n styleUrls: ['./filter.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiFilterComponent<T> extends AbstractTuiMultipleControl<T> {\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL | TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n @Output()\n readonly toggledItem = new EventEmitter<T>();\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent<any> = ({$implicit}: TuiContextWithImplicit<unknown>) =>\n TUI_DEFAULT_STRINGIFY($implicit);\n\n @Input()\n @tuiDefaultProp()\n badgeHandler: TuiHandler<T, number> = item => Number(item);\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n @tuiPure\n getItemContentContext($implicit: T): TuiContextWithImplicit<T> {\n return {\n $implicit,\n };\n }\n\n onCheckbox(value: boolean, item: T): void {\n this.toggledItem.emit(item);\n this.updateValue(\n value\n ? [...this.value, item]\n : this.value.filter(arrItem => !this.identityMatcher(arrItem, item)),\n );\n }\n\n isCheckboxEnabled(item: T): boolean {\n return this.value.some(arrItem => this.identityMatcher(arrItem, item));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiModeModule} from '@taiga-ui/core';\nimport {TuiBadgeModule} from '@taiga-ui/kit/components/badge';\nimport {TuiCheckboxBlockModule} from '@taiga-ui/kit/components/checkbox-block';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFilterComponent} from './filter.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiCheckboxBlockModule,\n TuiBadgeModule,\n TuiModeModule,\n ],\n declarations: [TuiFilterComponent],\n exports: [TuiFilterComponent],\n})\nexport class TuiFilterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA8BA;;IAO2C,sCAA6B;IAqBpE,4BAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC;QAN5E,YAQI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHwC,gBAAU,GAAV,UAAU,CAAyB;QAxB5E,qBAAe,GAA0B,4BAA4B,CAAC;QAItE,WAAK,GAAiB,EAAE,CAAC;QAKzB,UAAI,GAAwB,GAAG,CAAC;QAIhC,yBAAmB,GAAyB,oBAAoB,CAAC;QAGxD,iBAAW,GAAG,IAAI,YAAY,EAAK,CAAC;QAe7C,aAAO,GAA6B,UAAC,EAA4C;gBAA3C,wBAAS;YAC3C,OAAA,qBAAqB,CAAC,SAAS,CAAC;SAAA,CAAC;QAIrC,kBAAY,GAA0B,UAAA,IAAI,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,GAAA,CAAC;;KAT1D;IAWD,sBAAI,uCAAO;aAAX;YACI,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;SAC3D;;;OAAA;IAGD,kDAAqB,GAArB,UAAsB,SAAY;QAC9B,OAAO;YACH,SAAS,WAAA;SACZ,CAAC;KACL;IAED,uCAAU,GAAV,UAAW,KAAc,EAAE,IAAO;QAAlC,iBAOC;QANG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,WAAW,CACZ,KAAK;uBACK,IAAI,CAAC,KAAK,GAAE,IAAI,KACpB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAA,OAAO,IAA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