@taiga-ui/kit 2.75.0 → 2.76.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
@@ -9,8 +9,8 @@ let TuiMarkerIconComponent = class TuiMarkerIconComponent {
9
9
  constructor(mode$) {
10
10
  this.mode$ = mode$;
11
11
  this.mode = null;
12
- this.size = `m`;
13
- this.src = ``;
12
+ this.size = 'm';
13
+ this.src = '';
14
14
  }
15
15
  };
16
16
  TuiMarkerIconComponent.ctorParameters = () => [
@@ -18,12 +18,12 @@ TuiMarkerIconComponent.ctorParameters = () => [
18
18
  ];
19
19
  __decorate([
20
20
  Input(),
21
- HostBinding(`attr.data-marker-mode`),
21
+ HostBinding('attr.data-marker-mode'),
22
22
  tuiDefaultProp()
23
23
  ], TuiMarkerIconComponent.prototype, "mode", void 0);
24
24
  __decorate([
25
25
  Input(),
26
- HostBinding(`attr.data-size`),
26
+ HostBinding('attr.data-size'),
27
27
  tuiDefaultProp()
28
28
  ], TuiMarkerIconComponent.prototype, "size", void 0);
29
29
  __decorate([
@@ -32,12 +32,12 @@ __decorate([
32
32
  ], TuiMarkerIconComponent.prototype, "src", void 0);
33
33
  TuiMarkerIconComponent = __decorate([
34
34
  Component({
35
- selector: `tui-marker-icon`,
35
+ selector: 'tui-marker-icon',
36
36
  template: "<tui-svg\n class=\"t-icon\"\n [src]=\"src\"\n></tui-svg>\n",
37
37
  changeDetection: ChangeDetectionStrategy.OnPush,
38
38
  providers: [TuiDestroyService, MODE_PROVIDER],
39
39
  host: {
40
- '($.data-mode.attr)': `mode$`,
40
+ '($.data-mode.attr)': 'mode$',
41
41
  },
42
42
  styles: [":host{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:100%;color:var(--tui-text-03);background-color:var(--tui-base-02);background-size:cover!important;transition-property:color,background-color}:host[data-size=xs]{width:2rem;height:2rem}:host[data-size='s']{width:3rem;height:3rem}:host[data-size='m']{width:4rem;height:4rem}:host[data-size='l']{width:6rem;height:6rem}:host[data-size=xl]{width:8rem;height:8rem}:host[data-mode=onDark]:not([data-marker-mode]){color:var(--tui-base-01);background-color:var(--tui-clear-inverse)}:host[data-marker-mode=primary]{color:var(--tui-primary-text);background-color:var(--tui-primary)}:host[data-marker-mode=white]{color:var(--tui-text-03);background-color:var(--tui-base-01)}:host[data-marker-mode=warning]{color:var(--tui-warning-fill);background-color:var(--tui-warning-bg)}:host[data-marker-mode=secondary]{color:var(--tui-base-01);background-color:var(--tui-info-fill)}:host[data-marker-mode=error]{color:var(--tui-error-fill);background-color:var(--tui-error-bg)}:host[data-marker-mode=success]{color:var(--tui-success-fill);background-color:var(--tui-success-bg)}:host[data-marker-mode=link]{transition-property:color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;cursor:pointer;color:var(--tui-link);background-color:var(--tui-secondary)}:host[data-marker-mode=link]:hover{color:var(--tui-link-hover);background-color:var(--tui-secondary-hover)}:host[data-marker-mode=link]:active{color:var(--tui-link-hover);background-color:var(--tui-secondary-active)}.t-icon{width:3rem;height:3rem}:host[data-size=xs] .t-icon{transform:scale(.667)}:host[data-size='m'] .t-icon{transform:scale(1.333)}:host[data-size='l'] .t-icon{transform:scale(2)}:host[data-size=xl] .t-icon{transform:scale(2.667)}"]
43
43
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-marker-icon.js","sources":["ng://@taiga-ui/kit/components/marker-icon/marker-icon.component.ts","ng://@taiga-ui/kit/components/marker-icon/marker-icon.module.ts","ng://@taiga-ui/kit/components/marker-icon/taiga-ui-kit-components-marker-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiBrightness,\n TuiSizeXL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {TuiMarkerIconModeT} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-marker-icon`,\n templateUrl: `./marker-icon.template.html`,\n styleUrls: [`./marker-icon.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': `mode$`,\n },\n})\nexport class TuiMarkerIconComponent {\n @Input()\n @HostBinding(`attr.data-marker-mode`)\n @tuiDefaultProp()\n mode: TuiMarkerIconModeT | null = null;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeXS | TuiSizeXL = `m`;\n\n @Input()\n @tuiDefaultProp()\n src = ``;\n\n constructor(@Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>) {}\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiMarkerIconComponent} from './marker-icon.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiMarkerIconComponent],\n exports: [TuiMarkerIconComponent],\n})\nexport class TuiMarkerIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IA4Ba,sBAAsB,GAAnC,MAAa,sBAAsB;IAe/B,YAAuC,KAAuC;QAAvC,UAAK,GAAL,KAAK,CAAkC;QAX9E,SAAI,GAA8B,IAAI,CAAC;QAKvC,SAAI,GAA0B,GAAG,CAAC;QAIlC,QAAG,GAAG,EAAE,CAAC;KAEyE;EACrF;;YADiD,UAAU,uBAA3C,MAAM,SAAC,QAAQ;;AAX5B;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,uBAAuB,CAAC;IACpC,cAAc,EAAE;oDACsB;AAKvC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,gBAAgB,CAAC;IAC7B,cAAc,EAAE;oDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACR;AAbA,sBAAsB;IAVlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,4EAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;QAC7C,IAAI,EAAE;YACF,oBAAoB,EAAE,OAAO;SAChC;;KACJ,CAAC;IAgBe,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAfpB,sBAAsB,CAgBlC;;ICjCY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAL/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;QACrC,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACXnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-marker-icon.js","sources":["ng://@taiga-ui/kit/components/marker-icon/marker-icon.component.ts","ng://@taiga-ui/kit/components/marker-icon/marker-icon.module.ts","ng://@taiga-ui/kit/components/marker-icon/taiga-ui-kit-components-marker-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TuiBrightness,\n TuiSizeXL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {TuiMarkerIconModeT} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-marker-icon',\n templateUrl: './marker-icon.template.html',\n styleUrls: ['./marker-icon.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiMarkerIconComponent {\n @Input()\n @HostBinding('attr.data-marker-mode')\n @tuiDefaultProp()\n mode: TuiMarkerIconModeT | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeXL | TuiSizeXS = 'm';\n\n @Input()\n @tuiDefaultProp()\n src = '';\n\n constructor(@Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>) {}\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiMarkerIconComponent} from './marker-icon.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule],\n declarations: [TuiMarkerIconComponent],\n exports: [TuiMarkerIconComponent],\n})\nexport class TuiMarkerIconModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IA4Ba,sBAAsB,GAAnC,MAAa,sBAAsB;IAe/B,YAAuC,KAAuC;QAAvC,UAAK,GAAL,KAAK,CAAkC;QAX9E,SAAI,GAA8B,IAAI,CAAC;QAKvC,SAAI,GAA0B,GAAG,CAAC;QAIlC,QAAG,GAAG,EAAE,CAAC;KAEyE;EACrF;;YADiD,UAAU,uBAA3C,MAAM,SAAC,QAAQ;;AAX5B;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,uBAAuB,CAAC;IACpC,cAAc,EAAE;oDACsB;AAKvC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,gBAAgB,CAAC;IAC7B,cAAc,EAAE;oDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACR;AAbA,sBAAsB;IAVlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,4EAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;QAC7C,IAAI,EAAE;YACF,oBAAoB,EAAE,OAAO;SAChC;;KACJ,CAAC;IAgBe,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAfpB,sBAAsB,CAgBlC;;ICjCY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAL/B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;QACrC,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACXnC;;;;;;"}
@@ -7,7 +7,7 @@ import { CommonModule } from '@angular/common';
7
7
 
8
8
  let TuiMultiSelectOptionComponent = class TuiMultiSelectOptionComponent extends TuiSelectOptionComponent {
9
9
  get size() {
10
- return sizeBigger(this.option.size) ? `l` : `m`;
10
+ return sizeBigger(this.option.size) ? 'l' : 'm';
11
11
  }
12
12
  get selected() {
13
13
  return (isPresent(this.option.value) &&
@@ -17,7 +17,7 @@ let TuiMultiSelectOptionComponent = class TuiMultiSelectOptionComponent extends
17
17
  };
18
18
  TuiMultiSelectOptionComponent = __decorate([
19
19
  Component({
20
- selector: `tui-multi-select-option`,
20
+ selector: 'tui-multi-select-option',
21
21
  template: "<tui-primitive-checkbox\n class=\"t-checkbox\"\n [size]=\"size\"\n [value]=\"selected$ | async\"\n></tui-primitive-checkbox>\n<ng-container [ngTemplateOutlet]=\"context.$implicit\"></ng-container>\n",
22
22
  changeDetection: ChangeDetectionStrategy.OnPush,
23
23
  styles: ["@keyframes retrigger{from{left:1px}to{left:2px}}:host{display:flex;flex:1;align-items:center;overflow:hidden;animation:1s retrigger}.t-checkbox{margin-right:.75rem}"]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-multi-select-option.js","sources":["ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.component.ts","ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.module.ts","ng://@taiga-ui/kit/components/multi-select-option/taiga-ui-kit-components-multi-select-option.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {isPresent} from '@taiga-ui/cdk';\nimport {sizeBigger, TuiSizeL} from '@taiga-ui/core';\nimport {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option';\n\n@Component({\n selector: `tui-multi-select-option`,\n templateUrl: `./multi-select-option.template.html`,\n styleUrls: [`./multi-select-option.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOptionComponent<T> extends TuiSelectOptionComponent<T> {\n get size(): TuiSizeL {\n return sizeBigger(this.option.size) ? `l` : `m`;\n }\n\n protected get selected(): boolean {\n return (\n isPresent(this.option.value) &&\n isPresent(this.control.value) &&\n !!this.control.value.find((item: T) => this.matcher(item, this.option.value!))\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\n\nimport {TuiMultiSelectOptionComponent} from './multi-select-option.component';\n\n@NgModule({\n imports: [CommonModule, TuiPrimitiveCheckboxModule],\n declarations: [TuiMultiSelectOptionComponent],\n exports: [TuiMultiSelectOptionComponent],\n entryComponents: [TuiMultiSelectOptionComponent],\n})\nexport class TuiMultiSelectOptionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAWa,6BAA6B,GAA1C,MAAa,6BAAiC,SAAQ,wBAA2B;IAC7E,IAAI,IAAI;QACJ,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;KACnD;IAED,IAAc,QAAQ;QAClB,QACI,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YAC5B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAO,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAM,CAAC,CAAC,EAChF;KACL;EACJ;AAZY,6BAA6B;IANzC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,2NAAkD;QAElD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,6BAA6B,CAYzC;;ICXY,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IANtC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,CAAC;QACnD,YAAY,EAAE,CAAC,6BAA6B,CAAC;QAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;QACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;KACnD,CAAC;GACW,0BAA0B,CAAG;;ACZ1C;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-multi-select-option.js","sources":["ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.component.ts","ng://@taiga-ui/kit/components/multi-select-option/multi-select-option.module.ts","ng://@taiga-ui/kit/components/multi-select-option/taiga-ui-kit-components-multi-select-option.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {isPresent} from '@taiga-ui/cdk';\nimport {sizeBigger, TuiSizeL} from '@taiga-ui/core';\nimport {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option';\n\n@Component({\n selector: 'tui-multi-select-option',\n templateUrl: './multi-select-option.template.html',\n styleUrls: ['./multi-select-option.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOptionComponent<T> extends TuiSelectOptionComponent<T> {\n get size(): TuiSizeL {\n return sizeBigger(this.option.size) ? 'l' : 'm';\n }\n\n protected get selected(): boolean {\n return (\n isPresent(this.option.value) &&\n isPresent(this.control.value) &&\n !!this.control.value.find((item: T) =>\n this.matcher(item, this.option.value as unknown as T),\n )\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPrimitiveCheckboxModule} from '@taiga-ui/core';\n\nimport {TuiMultiSelectOptionComponent} from './multi-select-option.component';\n\n@NgModule({\n imports: [CommonModule, TuiPrimitiveCheckboxModule],\n declarations: [TuiMultiSelectOptionComponent],\n exports: [TuiMultiSelectOptionComponent],\n entryComponents: [TuiMultiSelectOptionComponent],\n})\nexport class TuiMultiSelectOptionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAWa,6BAA6B,GAA1C,MAAa,6BAAiC,SAAQ,wBAA2B;IAC7E,IAAI,IAAI;QACJ,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;KACnD;IAED,IAAc,QAAQ;QAClB,QACI,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;YAC5B,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAO,KAC9B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,KAAqB,CAAC,CACxD,EACH;KACL;EACJ;AAdY,6BAA6B;IANzC,SAAS,CAAC;QACP,QAAQ,EAAE,yBAAyB;QACnC,2NAAkD;QAElD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,6BAA6B,CAczC;;ICbY,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IANtC,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,CAAC;QACnD,YAAY,EAAE,CAAC,6BAA6B,CAAC;QAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;QACxC,eAAe,EAAE,CAAC,6BAA6B,CAAC;KACnD,CAAC;GACW,0BAA0B,CAAG;;ACZ1C;;;;;;"}
@@ -39,17 +39,17 @@ let TuiMultiSelectComponent = TuiMultiSelectComponent_1 = class TuiMultiSelectCo
39
39
  this.stringify = this.itemsHandlers.stringify;
40
40
  this.identityMatcher = this.itemsHandlers.identityMatcher;
41
41
  this.expandable = this.options.expandable;
42
- this.search = ``;
42
+ this.search = '';
43
43
  this.editable = true;
44
44
  this.disabledItemHandler = this.itemsHandlers.disabledItemHandler;
45
45
  this.valueContent = this.options.valueContent;
46
46
  this.searchChange = new EventEmitter();
47
- this.datalist = ``;
47
+ this.datalist = '';
48
48
  this.open = false;
49
49
  this.valueMapper = (value, stringify, group) => group
50
50
  ? EMPTY_ARRAY
51
51
  : value.map(item => new TuiStringifiableItem(item, stringify));
52
- this.disabledItemHandlerWrapper = handler => stringifiable => typeof stringifiable === `string` || handler(stringifiable.item);
52
+ this.disabledItemHandlerWrapper = handler => stringifiable => typeof stringifiable === 'string' || handler(stringifiable.item);
53
53
  svgService.define({ iconBlank });
54
54
  }
55
55
  get size() {
@@ -70,17 +70,17 @@ let TuiMultiSelectComponent = TuiMultiSelectComponent_1 = class TuiMultiSelectCo
70
70
  }
71
71
  // @bad TODO: think of a better way
72
72
  get searchOrSpace() {
73
- return this.computedGroup ? ` ` : this.searchString;
73
+ return this.computedGroup ? ' ' : this.searchString;
74
74
  }
75
75
  get searchString() {
76
- return this.search === null ? `` : this.search;
76
+ return this.search === null ? '' : this.search;
77
77
  }
78
78
  /**
79
79
  * Pass empty icon to InputTag (inside this component)
80
80
  * to prevent overflow of arrow icon by many tags
81
81
  */
82
82
  get tagIcon() {
83
- return this.interactive ? `iconBlank` : ``;
83
+ return this.interactive ? 'iconBlank' : '';
84
84
  }
85
85
  get inputHidden() {
86
86
  return !this.editable && !this.computedGroup;
@@ -206,7 +206,7 @@ __decorate([
206
206
  ], TuiMultiSelectComponent.prototype, "search", void 0);
207
207
  __decorate([
208
208
  Input(),
209
- HostBinding(`class._editable`),
209
+ HostBinding('class._editable'),
210
210
  tuiDefaultProp()
211
211
  ], TuiMultiSelectComponent.prototype, "editable", void 0);
212
212
  __decorate([
@@ -224,7 +224,7 @@ __decorate([
224
224
  ContentChild(TuiDataListDirective, { read: TemplateRef })
225
225
  ], TuiMultiSelectComponent.prototype, "datalist", void 0);
226
226
  __decorate([
227
- HostBinding(`attr.data-size`)
227
+ HostBinding('attr.data-size')
228
228
  ], TuiMultiSelectComponent.prototype, "size", null);
229
229
  __decorate([
230
230
  tuiPure
@@ -234,7 +234,7 @@ __decorate([
234
234
  ], TuiMultiSelectComponent.prototype, "getContext", null);
235
235
  TuiMultiSelectComponent = TuiMultiSelectComponent_1 = __decorate([
236
236
  Component({
237
- selector: `tui-multi-select`,
237
+ selector: 'tui-multi-select',
238
238
  template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-tag\n #inputTag\n tuiHostedDropdownHost\n automation-id=\"tui-multi-select__input\"\n class=\"t-input\"\n [nativeId]=\"nativeId\"\n [icon]=\"tagIcon\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [readOnly]=\"readOnly\"\n [inputHidden]=\"!editable\"\n [pseudoHovered]=\"computedHovered\"\n [pseudoFocused]=\"computedFocused\"\n [pseudoInvalid]=\"computedInvalid\"\n [editable]=\"false\"\n [expandable]=\"expandable\"\n [search]=\"searchOrSpace\"\n [ngModel]=\"computedValue | tuiMapper: valueMapper:stringify\"\n (ngModelChange)=\"onInput($event)\"\n (searchChange)=\"onSearch($event)\"\n (keydown.space)=\"onSpace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (click.prevent)=\"onClick(inputTag)\"\n >\n <ng-content></ng-content>\n </tui-input-tag>\n <div\n class=\"t-wrapper\"\n [class.t-wrapper_disabled]=\"disabled\"\n >\n <div\n *ngIf=\"computedGroup\"\n polymorpheus-outlet\n class=\"t-group\"\n [class.t-group_fullsize]=\"inputTag.labelOutside\"\n [context]=\"context\"\n [content]=\"valueContent\"\n ></div>\n\n <div\n *ngIf=\"arrow\"\n polymorpheus-outlet\n automation-id=\"tui-multi-select__arrow\"\n tuiPreventDefault=\"mousedown\"\n class=\"t-arrow\"\n [content]=\"arrow\"\n (click.prevent)=\"onArrowClick()\"\n ></div>\n </div>\n</tui-hosted-dropdown>\n",
239
239
  changeDetection: ChangeDetectionStrategy.OnPush,
240
240
  providers: [
@@ -304,14 +304,14 @@ let TuiMultiSelectGroupComponent = class TuiMultiSelectGroupComponent {
304
304
  this.host = host;
305
305
  this.control = control;
306
306
  this.options = EMPTY_QUERY;
307
- this.label = ``;
307
+ this.label = '';
308
308
  }
309
309
  get size() {
310
310
  var _a;
311
- return ((_a = this.options.first) === null || _a === void 0 ? void 0 : _a.size) || `m`;
311
+ return ((_a = this.options.first) === null || _a === void 0 ? void 0 : _a.size) || 'm';
312
312
  }
313
313
  get checkboxSize() {
314
- return this.options.first && sizeBigger(this.options.first.size) ? `l` : `m`;
314
+ return this.options.first && sizeBigger(this.options.first.size) ? 'l' : 'm';
315
315
  }
316
316
  get empty$() {
317
317
  return itemsQueryListObservable(this.options).pipe(map(({ length }) => !length));
@@ -388,7 +388,7 @@ __decorate([
388
388
  ], TuiMultiSelectGroupComponent.prototype, "filter", null);
389
389
  TuiMultiSelectGroupComponent = __decorate([
390
390
  Component({
391
- selector: `tui-opt-group[tuiMultiSelectGroup]`,
391
+ selector: 'tui-opt-group[tuiMultiSelectGroup]',
392
392
  template: "<ng-container *tuiLet=\"value$ | async as value\">\n <button\n *ngIf=\"label && !(empty$ | async)\"\n tuiOption\n [size]=\"size\"\n [disabled]=\"!!(disabled$ | async)\"\n (click)=\"onClick(value)\"\n >\n <tui-primitive-checkbox\n class=\"t-checkbox\"\n [size]=\"checkboxSize\"\n [value]=\"value\"\n ></tui-primitive-checkbox>\n <span class=\"t-label\">{{ label }}</span>\n </button>\n</ng-container>\n<ng-content></ng-content>\n",
393
393
  changeDetection: ChangeDetectionStrategy.OnPush,
394
394
  viewProviders: [
@@ -429,7 +429,7 @@ let TuiMultiSelectGroupDirective = class TuiMultiSelectGroupDirective {
429
429
  };
430
430
  TuiMultiSelectGroupDirective = __decorate([
431
431
  Directive({
432
- selector: `[tuiMultiSelectGroup]`,
432
+ selector: '[tuiMultiSelectGroup]',
433
433
  providers: [
434
434
  {
435
435
  provide: TUI_OPTION_CONTENT,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-multi-select.js","sources":["ng://@taiga-ui/kit/components/multi-select/multi-select-options.ts","ng://@taiga-ui/kit/components/multi-select/multi-select.component.ts","ng://@taiga-ui/kit/components/multi-select/hide-selected.pipe.ts","ng://@taiga-ui/kit/components/multi-select/multi-select-group/multi-select-group.component.ts","ng://@taiga-ui/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts","ng://@taiga-ui/kit/components/multi-select/multi-select.module.ts","ng://@taiga-ui/kit/components/multi-select/taiga-ui-kit-components-multi-select.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiMultiSelectOptions<T> {\n readonly expandable: boolean;\n readonly valueContent: PolymorpheusContent<TuiContextWithImplicit<readonly T[]>>;\n}\n\nexport const TUI_MULTI_SELECT_DEFAULT_OPTIONS: TuiMultiSelectOptions<unknown> = {\n expandable: true,\n valueContent: ``,\n};\n\nexport const TUI_MULTI_SELECT_OPTIONS = new InjectionToken<\n TuiMultiSelectOptions<unknown>\n>(`Default parameters for multi select component`, {\n factory: () => TUI_MULTI_SELECT_DEFAULT_OPTIONS,\n});\n\nexport const tuiMultiSelectOptionsProvider: <T>(\n options: Partial<TuiMultiSelectOptions<T>>,\n) => ValueProvider = <T>(options: Partial<TuiMultiSelectOptions<T>>) => ({\n provide: TUI_MULTI_SELECT_OPTIONS,\n useValue: {...TUI_MULTI_SELECT_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\n forwardRef,\n HostBinding,\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 AbstractTuiMultipleControl,\n EMPTY_ARRAY,\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiActiveZoneDirective,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMapper,\n tuiPure,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_DATA_LIST_ACCESSOR,\n TUI_DATA_LIST_HOST,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiDataListAccessor,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiSizeL,\n TuiSizeM,\n TuiSizeS,\n TuiSvgService,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {TuiStringifiableItem} from '@taiga-ui/kit/classes';\nimport {TUI_ARROW_MODE, TuiArrowMode} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputTagComponent} from '@taiga-ui/kit/components/input-tag';\nimport {iconBlank} from '@taiga-ui/kit/constants';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_MULTI_SELECT_OPTIONS, TuiMultiSelectOptions} from './multi-select-options';\n\n@Component({\n selector: `tui-multi-select`,\n templateUrl: `./multi-select.template.html`,\n styleUrls: [`./multi-select.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiMultiSelectComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiMultiSelectComponent),\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiMultiSelectComponent<T>\n extends AbstractTuiMultipleControl<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(TuiInputTagComponent)\n private readonly input?: TuiInputTagComponent;\n\n @Input()\n @tuiDefaultProp()\n stringify: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\n\n @Input()\n @tuiDefaultProp()\n expandable: TuiMultiSelectOptions<T>['expandable'] = this.options.expandable;\n\n @Input()\n @tuiDefaultProp()\n search: string | null = ``;\n\n @Input()\n @HostBinding(`class._editable`)\n @tuiDefaultProp()\n editable = true;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiItemsHandlers<T>['disabledItemHandler'] =\n this.itemsHandlers.disabledItemHandler;\n\n @Input()\n @tuiDefaultProp()\n valueContent: TuiMultiSelectOptions<T>['valueContent'] = this.options.valueContent;\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(TuiSvgService) svgService: TuiSvgService,\n @Inject(TUI_ARROW_MODE)\n private readonly arrowMode: TuiArrowMode,\n @Inject(TUI_ITEMS_HANDLERS)\n private readonly itemsHandlers: TuiItemsHandlers<T>,\n @Inject(TUI_MULTI_SELECT_OPTIONS)\n private readonly options: TuiMultiSelectOptions<T>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n ) {\n super(control, changeDetectorRef);\n\n svgService.define({iconBlank});\n }\n\n @HostBinding(`attr.data-size`)\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\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.input ? this.input.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return (\n (!!this.input && this.input.focused) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get computedValue(): readonly T[] {\n return this.computedGroup ? EMPTY_ARRAY : this.value;\n }\n\n // @bad TODO: think of a better way\n get searchOrSpace(): string {\n return this.computedGroup ? ` ` : this.searchString;\n }\n\n get searchString(): string {\n return this.search === null ? `` : this.search;\n }\n\n /**\n * Pass empty icon to InputTag (inside this component)\n * to prevent overflow of arrow icon by many tags\n */\n get tagIcon(): string {\n return this.interactive ? `iconBlank` : ``;\n }\n\n get inputHidden(): boolean {\n return !this.editable && !this.computedGroup;\n }\n\n get computedGroup(): boolean {\n return (\n !!this.valueContent &&\n this.value.length > 0 &&\n (!this.focused || !this.editable)\n );\n }\n\n get context(): TuiContextWithImplicit<readonly T[]> {\n return this.getContext(this.value);\n }\n\n @tuiPure\n getStringifier(\n stringify: TuiStringHandler<T>,\n ): TuiStringHandler<TuiContextWithImplicit<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n\n readonly valueMapper: TuiMapper<\n readonly T[],\n ReadonlyArray<TuiStringifiableItem<T>>\n > = (value, stringify: TuiStringHandler<T>, group: boolean) =>\n group\n ? EMPTY_ARRAY\n : value.map(item => new TuiStringifiableItem(item, stringify));\n\n readonly disabledItemHandlerWrapper: TuiMapper<\n TuiBooleanHandler<T>,\n TuiBooleanHandler<string | TuiStringifiableItem<T>>\n > = handler => stringifiable =>\n typeof stringifiable === `string` || handler(stringifiable.item);\n\n onHoveredChange(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onSpace(event: Event): void {\n if (!this.editable) {\n event.preventDefault();\n }\n\n if (!this.readOnly) {\n this.open = true;\n }\n }\n\n handleOption(option: T): void {\n const {value, identityMatcher} = this;\n const index = value.findIndex(item => identityMatcher(item, option));\n\n this.updateValue(\n index === -1 ? [...value, option] : value.filter((_, i) => i !== index),\n );\n this.updateSearch(null);\n }\n\n onEnter(event: Event): void {\n const {value} = this;\n const options = this.accessor ? this.accessor.getOptions() : [];\n\n if (options.length !== 1) {\n return;\n }\n\n const index = value.indexOf(options[0]);\n\n event.preventDefault();\n this.updateValue(\n index === -1\n ? [...value, options[0]]\n : [...value.slice(0, index), ...value.slice(index + 1)],\n );\n this.updateSearch(null);\n }\n\n onClick({nativeFocusableElement}: TuiInputTagComponent): void {\n if (\n this.editable &&\n this.interactive &&\n nativeFocusableElement &&\n isNativeFocused(nativeFocusableElement)\n ) {\n this.hostedDropdown?.updateOpen(!this.open);\n }\n }\n\n onArrowClick(): void {\n this.hostedDropdown?.updateOpen(!this.open);\n this.focusInput();\n }\n\n onInput(value: ReadonlyArray<TuiStringifiableItem<T>>): void {\n this.updateValue(value.map(({item}) => item));\n }\n\n onSearch(search: string | null): void {\n this.open = true;\n this.updateSearch(search);\n }\n\n onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n setDisabledState(): void {\n super.setDisabledState();\n this.open = false;\n }\n\n @tuiPure\n private getContext($implicit: readonly T[]): TuiContextWithImplicit<readonly T[]> {\n return {$implicit};\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 focusInput(preventScroll: boolean = false): void {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiIdentityMatcher, tuiPure} from '@taiga-ui/cdk';\nimport {isFlat} from '@taiga-ui/kit/utils';\n\nimport {TuiMultiSelectComponent} from './multi-select.component';\n\n@Pipe({\n name: `tuiHideSelected`,\n pure: false,\n})\nexport class TuiHideSelectedPipe implements PipeTransform {\n constructor(\n @Inject(TuiMultiSelectComponent)\n private readonly component: TuiMultiSelectComponent<any>,\n ) {}\n\n transform<T>(\n items: readonly T[] | null,\n component?: TuiMultiSelectComponent<T>, // TODO: 3.0 @deprecated remove\n ): readonly T[] | null;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | null,\n component?: TuiMultiSelectComponent<T>, // TODO: 3.0 @deprecated remove\n ): ReadonlyArray<readonly T[]> | null;\n transform<T>(\n items: readonly T[] | ReadonlyArray<readonly T[]> | null,\n component?: TuiMultiSelectComponent<T>, // TODO: 3.0 @deprecated remove\n ): readonly T[] | ReadonlyArray<readonly T[]> | null {\n const {value, identityMatcher} = component ?? this.component;\n\n if (!items) {\n return null;\n }\n\n return isFlat(items)\n ? this.filter(items, value, identityMatcher)\n : this.filter2d(items, value, identityMatcher);\n }\n\n @tuiPure\n private filter2d<T>(\n items: ReadonlyArray<readonly T[]>,\n value: readonly T[],\n matcher: TuiIdentityMatcher<T>,\n ): ReadonlyArray<readonly T[]> {\n return items.map(subItems => this.filter(subItems, value, matcher));\n }\n\n @tuiPure\n private filter<T>(\n items: readonly T[],\n value: readonly T[],\n matcher: TuiIdentityMatcher<T>,\n ): readonly T[] {\n return items.filter(item => value.every(selected => !matcher(selected, item)));\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Inject,\n Input,\n QueryList,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n EMPTY_QUERY,\n getOriginalArrayFromQueryList,\n isPresent,\n itemsQueryListObservable,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiDefaultProp,\n TuiIdentityMatcher,\n tuiPure,\n tuiReplayedValueChangesFrom,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_DATA_LIST_HOST,\n TUI_OPTION_CONTENT,\n TuiDataListHost,\n TuiOptionComponent,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {combineLatest, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Component({\n selector: `tui-opt-group[tuiMultiSelectGroup]`,\n templateUrl: `./multi-select-group.template.html`,\n styleUrls: [`./multi-select-group.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [\n {\n provide: TUI_OPTION_CONTENT,\n useValue: null,\n },\n ],\n})\nexport class TuiMultiSelectGroupComponent<T> {\n @ContentChildren(TuiOptionComponent)\n private readonly options: QueryList<TuiOptionComponent<T>> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n label = ``;\n\n constructor(\n @Inject(TUI_DATA_LIST_HOST) private readonly host: TuiDataListHost<T>,\n @Inject(NgControl) private readonly control: NgControl,\n ) {}\n\n get size(): TuiSizeXS | TuiSizeL {\n return this.options.first?.size || `m`;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.options.first && sizeBigger(this.options.first.size) ? `l` : `m`;\n }\n\n @tuiPure\n get empty$(): Observable<boolean> {\n return itemsQueryListObservable(this.options).pipe(map(({length}) => !length));\n }\n\n @tuiPure\n get disabled$(): Observable<boolean> {\n return itemsQueryListObservable(this.options).pipe(\n map(items => items.every(({disabled}) => disabled)),\n );\n }\n\n @tuiPure\n get value$(): Observable<boolean | null> {\n return combineLatest(this.items$, this.valueChanges$).pipe(\n map(([items, current]) => {\n let result = false;\n\n for (let i = 0; i < items.length; i++) {\n const selected = current.some(selected =>\n this.matcher(selected, items[i]),\n );\n\n if ((!selected && result) || (selected && !result && i)) {\n return null;\n }\n\n result = selected;\n }\n\n return result;\n }),\n );\n }\n\n onClick(checked: boolean | null): void {\n if (!this.control.control) {\n return;\n }\n\n const controlValue: readonly T[] = this.control.value || [];\n const {values} = this;\n const filtered = controlValue.filter(current =>\n values.every(item => !this.matcher(current, item)),\n );\n\n this.control.control.setValue(checked ? filtered : [...filtered, ...values]);\n }\n\n private get values(): readonly T[] {\n return this.filter(getOriginalArrayFromQueryList(this.options));\n }\n\n private get matcher(): TuiIdentityMatcher<T> {\n return this.host.identityMatcher || TUI_DEFAULT_IDENTITY_MATCHER;\n }\n\n @tuiPure\n private get items$(): Observable<readonly T[]> {\n return itemsQueryListObservable(this.options).pipe(\n map(options => options.map(({value}) => value).filter(isPresent)),\n );\n }\n\n @tuiPure\n private get valueChanges$(): Observable<readonly T[]> {\n return tuiReplayedValueChangesFrom<readonly T[]>(this.control).pipe(\n map(value => value || []),\n );\n }\n\n @tuiPure\n private filter(items: ReadonlyArray<TuiOptionComponent<T>>): readonly T[] {\n return items.map(({value}) => value).filter(isPresent);\n }\n}\n","import {Directive, forwardRef, Optional} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, NgControl} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, TuiDataListHost} from '@taiga-ui/core';\nimport {TuiMultiSelectOptionComponent} from '@taiga-ui/kit/components/multi-select-option';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiMultiSelectComponent} from '../multi-select.component';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function hostFallbackFactory<T>(\n control: NgControl,\n host: TuiDataListHost<T> | null,\n): TuiDataListHost<T> {\n return (\n host || {\n handleOption: option => {\n if (!control.control) {\n return;\n }\n\n const value = control.value || [];\n const index = value.indexOf(option);\n\n control.control.setValue(\n index === -1\n ? [...value, option]\n : [...value.slice(0, index), ...value.slice(index + 1)],\n );\n },\n }\n );\n}\n\nexport const TUI_MULTI_SELECT_OPTION = new PolymorpheusComponent(\n TuiMultiSelectOptionComponent,\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport const MULTI_SELECT_ACCESSOR = {\n writeValue: EMPTY_FUNCTION,\n registerOnChange: EMPTY_FUNCTION,\n registerOnTouched: EMPTY_FUNCTION,\n};\n\n@Directive({\n selector: `[tuiMultiSelectGroup]`,\n providers: [\n {\n provide: TUI_OPTION_CONTENT,\n useValue: TUI_MULTI_SELECT_OPTION,\n },\n {\n provide: TUI_DATA_LIST_HOST,\n deps: [\n NgControl,\n [new Optional(), forwardRef(() => TuiMultiSelectComponent)],\n ],\n useFactory: hostFallbackFactory,\n },\n {\n provide: NG_VALUE_ACCESSOR,\n multi: true,\n useValue: MULTI_SELECT_ACCESSOR,\n },\n ],\n})\nexport class TuiMultiSelectGroupDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiHoveredModule,\n TuiLetModule,\n TuiMapperPipeModule,\n TuiPreventDefaultModule,\n} from '@taiga-ui/cdk';\nimport {\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiPrimitiveCheckboxModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputTagModule} from '@taiga-ui/kit/components/input-tag';\nimport {TuiMultiSelectOptionModule} from '@taiga-ui/kit/components/multi-select-option';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiHideSelectedPipe} from './hide-selected.pipe';\nimport {TuiMultiSelectComponent} from './multi-select.component';\nimport {TuiMultiSelectGroupComponent} from './multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectGroupDirective} from './multi-select-group/multi-select-group.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiPreventDefaultModule,\n TuiActiveZoneModule,\n TuiArrowModule,\n TuiLetModule,\n TuiMapperPipeModule,\n TuiHoveredModule,\n TuiSvgModule,\n TuiHostedDropdownModule,\n TuiInputTagModule,\n TuiMultiSelectOptionModule,\n TuiPrimitiveCheckboxModule,\n TuiDataListModule,\n ],\n declarations: [\n TuiMultiSelectComponent,\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiHideSelectedPipe,\n ],\n exports: [\n TuiMultiSelectComponent,\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiHideSelectedPipe,\n ],\n})\nexport class TuiMultiSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MASa,gCAAgC,GAAmC;IAC5E,UAAU,EAAE,IAAI;IAChB,YAAY,EAAE,EAAE;EAClB;MAEW,wBAAwB,GAAG,IAAI,cAAc,CAExD,+CAA+C,EAAE;IAC/C,OAAO,EAAE,MAAM,gCAAgC;CAClD,EAAE;MAEU,6BAA6B,GAErB,CAAI,OAA0C,MAAM;IACrE,OAAO,EAAE,wBAAwB;IACjC,QAAQ,kCAAM,gCAAgC,GAAK,OAAO,CAAC;CAC9D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AS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,uBAAuB;aACpC;YACD;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,IAAI,EAAE;oBACF,SAAS;oBACT,CAAC,IAAI,QAAQ,EAAE,EAAE,UAAU,CAAC,MAAM,uBAAuB,CAAC,CAAC;iBAC9D;gBACD,UAAU,EAAE,mBAAmB;aAClC;YACD;gBACI,OAAO,EAAE,iBAAiB;gBAC1B,KAAK,EAAE,IAAI;gBACX,QAAQ,EAAE,qBAAqB;aAClC;SACJ;KACJ,CAAC;GACW,4BAA4B,CAAG;;ICV/B,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IA/BhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,uBAAuB;YACvB,mBAAmB;YACnB,cAAc;YACd,YAAY;YACZ,mBAAmB;YACnB,gBAAgB;YAChB,YAAY;YACZ,uBAAuB;YACvB,iBAAiB;YACjB,0BAA0B;YAC1B,0BAA0B;YAC1B,iBAAiB;SACpB;QACD,YAAY,EAAE;YACV,uBAAuB;YACvB,4BAA4B;YAC5B,4BAA4B;YAC5B,mBAAmB;SACtB;QACD,OAAO,EAAE;YACL,uBAAuB;YACvB,4BAA4B;YAC5B,4BAA4B;YAC5B,mBAAmB;SACtB;KACJ,CAAC;GACW,oBAAoB,CAAG;;ACzDpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-multi-select.js","sources":["ng://@taiga-ui/kit/components/multi-select/multi-select-options.ts","ng://@taiga-ui/kit/components/multi-select/multi-select.component.ts","ng://@taiga-ui/kit/components/multi-select/hide-selected.pipe.ts","ng://@taiga-ui/kit/components/multi-select/multi-select-group/multi-select-group.component.ts","ng://@taiga-ui/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts","ng://@taiga-ui/kit/components/multi-select/multi-select.module.ts","ng://@taiga-ui/kit/components/multi-select/taiga-ui-kit-components-multi-select.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiMultiSelectOptions<T> {\n readonly expandable: boolean;\n readonly valueContent: PolymorpheusContent<TuiContextWithImplicit<readonly T[]>>;\n}\n\nexport const TUI_MULTI_SELECT_DEFAULT_OPTIONS: TuiMultiSelectOptions<unknown> = {\n expandable: true,\n valueContent: ``,\n};\n\nexport const TUI_MULTI_SELECT_OPTIONS = new InjectionToken<\n TuiMultiSelectOptions<unknown>\n>(`Default parameters for multi select component`, {\n factory: () => TUI_MULTI_SELECT_DEFAULT_OPTIONS,\n});\n\nexport const tuiMultiSelectOptionsProvider: <T>(\n options: Partial<TuiMultiSelectOptions<T>>,\n) => ValueProvider = <T>(options: Partial<TuiMultiSelectOptions<T>>) => ({\n provide: TUI_MULTI_SELECT_OPTIONS,\n useValue: {...TUI_MULTI_SELECT_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\n forwardRef,\n HostBinding,\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 AbstractTuiMultipleControl,\n EMPTY_ARRAY,\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiActiveZoneDirective,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMapper,\n tuiPure,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_DATA_LIST_ACCESSOR,\n TUI_DATA_LIST_HOST,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiDataListAccessor,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiSizeL,\n TuiSizeM,\n TuiSizeS,\n TuiSvgService,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {TuiStringifiableItem} from '@taiga-ui/kit/classes';\nimport {TUI_ARROW_MODE, TuiArrowMode} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputTagComponent} from '@taiga-ui/kit/components/input-tag';\nimport {iconBlank} from '@taiga-ui/kit/constants';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_MULTI_SELECT_OPTIONS, TuiMultiSelectOptions} from './multi-select-options';\n\n@Component({\n selector: 'tui-multi-select',\n templateUrl: './multi-select.template.html',\n styleUrls: ['./multi-select.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiMultiSelectComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiMultiSelectComponent),\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiMultiSelectComponent<T>\n extends AbstractTuiMultipleControl<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(TuiInputTagComponent)\n private readonly input?: TuiInputTagComponent;\n\n @Input()\n @tuiDefaultProp()\n stringify: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\n\n @Input()\n @tuiDefaultProp()\n expandable: TuiMultiSelectOptions<T>['expandable'] = this.options.expandable;\n\n @Input()\n @tuiDefaultProp()\n search: string | null = '';\n\n @Input()\n @HostBinding('class._editable')\n @tuiDefaultProp()\n editable = true;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiItemsHandlers<T>['disabledItemHandler'] =\n this.itemsHandlers.disabledItemHandler;\n\n @Input()\n @tuiDefaultProp()\n valueContent: TuiMultiSelectOptions<T>['valueContent'] = this.options.valueContent;\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(TuiSvgService) svgService: TuiSvgService,\n @Inject(TUI_ARROW_MODE)\n private readonly arrowMode: TuiArrowMode,\n @Inject(TUI_ITEMS_HANDLERS)\n private readonly itemsHandlers: TuiItemsHandlers<T>,\n @Inject(TUI_MULTI_SELECT_OPTIONS)\n private readonly options: TuiMultiSelectOptions<T>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n ) {\n super(control, changeDetectorRef);\n\n svgService.define({iconBlank});\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\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.input ? this.input.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return (\n (!!this.input && this.input.focused) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get computedValue(): readonly T[] {\n return this.computedGroup ? EMPTY_ARRAY : this.value;\n }\n\n // @bad TODO: think of a better way\n get searchOrSpace(): string {\n return this.computedGroup ? ' ' : this.searchString;\n }\n\n get searchString(): string {\n return this.search === null ? '' : this.search;\n }\n\n /**\n * Pass empty icon to InputTag (inside this component)\n * to prevent overflow of arrow icon by many tags\n */\n get tagIcon(): string {\n return this.interactive ? 'iconBlank' : '';\n }\n\n get inputHidden(): boolean {\n return !this.editable && !this.computedGroup;\n }\n\n get computedGroup(): boolean {\n return (\n !!this.valueContent &&\n this.value.length > 0 &&\n (!this.focused || !this.editable)\n );\n }\n\n get context(): TuiContextWithImplicit<readonly T[]> {\n return this.getContext(this.value);\n }\n\n @tuiPure\n getStringifier(\n stringify: TuiStringHandler<T>,\n ): TuiStringHandler<TuiContextWithImplicit<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n\n readonly valueMapper: TuiMapper<\n readonly T[],\n ReadonlyArray<TuiStringifiableItem<T>>\n > = (value, stringify: TuiStringHandler<T>, group: boolean) =>\n group\n ? EMPTY_ARRAY\n : value.map(item => new TuiStringifiableItem(item, stringify));\n\n readonly disabledItemHandlerWrapper: TuiMapper<\n TuiBooleanHandler<T>,\n TuiBooleanHandler<TuiStringifiableItem<T> | string>\n > = handler => stringifiable =>\n typeof stringifiable === 'string' || handler(stringifiable.item);\n\n onHoveredChange(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onSpace(event: Event): void {\n if (!this.editable) {\n event.preventDefault();\n }\n\n if (!this.readOnly) {\n this.open = true;\n }\n }\n\n handleOption(option: T): void {\n const {value, identityMatcher} = this;\n const index = value.findIndex(item => identityMatcher(item, option));\n\n this.updateValue(\n index === -1 ? [...value, option] : value.filter((_, i) => i !== index),\n );\n this.updateSearch(null);\n }\n\n onEnter(event: Event): void {\n const {value} = this;\n const options = this.accessor ? this.accessor.getOptions() : [];\n\n if (options.length !== 1) {\n return;\n }\n\n const index = value.indexOf(options[0]);\n\n event.preventDefault();\n this.updateValue(\n index === -1\n ? [...value, options[0]]\n : [...value.slice(0, index), ...value.slice(index + 1)],\n );\n this.updateSearch(null);\n }\n\n onClick({nativeFocusableElement}: TuiInputTagComponent): void {\n if (\n this.editable &&\n this.interactive &&\n nativeFocusableElement &&\n isNativeFocused(nativeFocusableElement)\n ) {\n this.hostedDropdown?.updateOpen(!this.open);\n }\n }\n\n onArrowClick(): void {\n this.hostedDropdown?.updateOpen(!this.open);\n this.focusInput();\n }\n\n onInput(value: ReadonlyArray<TuiStringifiableItem<T>>): void {\n this.updateValue(value.map(({item}) => item));\n }\n\n onSearch(search: string | null): void {\n this.open = true;\n this.updateSearch(search);\n }\n\n onActiveZone(active: boolean): void {\n this.updateFocused(active);\n }\n\n setDisabledState(): void {\n super.setDisabledState();\n this.open = false;\n }\n\n @tuiPure\n private getContext($implicit: readonly T[]): TuiContextWithImplicit<readonly T[]> {\n return {$implicit};\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 focusInput(preventScroll: boolean = false): void {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {TuiIdentityMatcher, tuiPure} from '@taiga-ui/cdk';\nimport {isFlat} from '@taiga-ui/kit/utils';\n\nimport {TuiMultiSelectComponent} from './multi-select.component';\n\n@Pipe({\n name: `tuiHideSelected`,\n pure: false,\n})\nexport class TuiHideSelectedPipe implements PipeTransform {\n constructor(\n @Inject(TuiMultiSelectComponent)\n private readonly component: TuiMultiSelectComponent<any>,\n ) {}\n\n transform<T>(\n items: readonly T[] | null,\n component?: TuiMultiSelectComponent<T>, // TODO: 3.0 @deprecated remove\n ): readonly T[] | null;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | null,\n component?: TuiMultiSelectComponent<T>, // TODO: 3.0 @deprecated remove\n ): ReadonlyArray<readonly T[]> | null;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n component?: TuiMultiSelectComponent<T>, // TODO: 3.0 @deprecated remove\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n const {value, identityMatcher} = component ?? this.component;\n\n if (!items) {\n return null;\n }\n\n return isFlat(items)\n ? this.filter(items, value, identityMatcher)\n : this.filter2d(items, value, identityMatcher);\n }\n\n @tuiPure\n private filter2d<T>(\n items: ReadonlyArray<readonly T[]>,\n value: readonly T[],\n matcher: TuiIdentityMatcher<T>,\n ): ReadonlyArray<readonly T[]> {\n return items.map(subItems => this.filter(subItems, value, matcher));\n }\n\n @tuiPure\n private filter<T>(\n items: readonly T[],\n value: readonly T[],\n matcher: TuiIdentityMatcher<T>,\n ): readonly T[] {\n return items.filter(item => value.every(selected => !matcher(selected, item)));\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Inject,\n Input,\n QueryList,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n EMPTY_QUERY,\n getOriginalArrayFromQueryList,\n isPresent,\n itemsQueryListObservable,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiDefaultProp,\n TuiIdentityMatcher,\n tuiPure,\n tuiReplayedValueChangesFrom,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_DATA_LIST_HOST,\n TUI_OPTION_CONTENT,\n TuiDataListHost,\n TuiOptionComponent,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {combineLatest, Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-opt-group[tuiMultiSelectGroup]',\n templateUrl: './multi-select-group.template.html',\n styleUrls: ['./multi-select-group.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [\n {\n provide: TUI_OPTION_CONTENT,\n useValue: null,\n },\n ],\n})\nexport class TuiMultiSelectGroupComponent<T> {\n @ContentChildren(TuiOptionComponent)\n private readonly options: QueryList<TuiOptionComponent<T>> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n label = '';\n\n constructor(\n @Inject(TUI_DATA_LIST_HOST) private readonly host: TuiDataListHost<T>,\n @Inject(NgControl) private readonly control: NgControl,\n ) {}\n\n get size(): TuiSizeL | TuiSizeXS {\n return this.options.first?.size || 'm';\n }\n\n get checkboxSize(): TuiSizeL {\n return this.options.first && sizeBigger(this.options.first.size) ? 'l' : 'm';\n }\n\n @tuiPure\n get empty$(): Observable<boolean> {\n return itemsQueryListObservable(this.options).pipe(map(({length}) => !length));\n }\n\n @tuiPure\n get disabled$(): Observable<boolean> {\n return itemsQueryListObservable(this.options).pipe(\n map(items => items.every(({disabled}) => disabled)),\n );\n }\n\n @tuiPure\n get value$(): Observable<boolean | null> {\n return combineLatest(this.items$, this.valueChanges$).pipe(\n map(([items, current]) => {\n let result = false;\n\n for (let i = 0; i < items.length; i++) {\n const selected = current.some(selected =>\n this.matcher(selected, items[i]),\n );\n\n if ((!selected && result) || (selected && !result && i)) {\n return null;\n }\n\n result = selected;\n }\n\n return result;\n }),\n );\n }\n\n onClick(checked: boolean | null): void {\n if (!this.control.control) {\n return;\n }\n\n const controlValue: readonly T[] = this.control.value || [];\n const {values} = this;\n const filtered = controlValue.filter(current =>\n values.every(item => !this.matcher(current, item)),\n );\n\n this.control.control.setValue(checked ? filtered : [...filtered, ...values]);\n }\n\n private get values(): readonly T[] {\n return this.filter(getOriginalArrayFromQueryList(this.options));\n }\n\n private get matcher(): TuiIdentityMatcher<T> {\n return this.host.identityMatcher || TUI_DEFAULT_IDENTITY_MATCHER;\n }\n\n @tuiPure\n private get items$(): Observable<readonly T[]> {\n return itemsQueryListObservable(this.options).pipe(\n map(options => options.map(({value}) => value).filter(isPresent)),\n );\n }\n\n @tuiPure\n private get valueChanges$(): Observable<readonly T[]> {\n return tuiReplayedValueChangesFrom<readonly T[]>(this.control).pipe(\n map(value => value || []),\n );\n }\n\n @tuiPure\n private filter(items: ReadonlyArray<TuiOptionComponent<T>>): readonly T[] {\n return items.map(({value}) => value).filter(isPresent);\n }\n}\n","import {Directive, forwardRef, Optional} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, NgControl} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, TuiDataListHost} from '@taiga-ui/core';\nimport {TuiMultiSelectOptionComponent} from '@taiga-ui/kit/components/multi-select-option';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiMultiSelectComponent} from '../multi-select.component';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function hostFallbackFactory<T>(\n control: NgControl,\n host: TuiDataListHost<T> | null,\n): TuiDataListHost<T> {\n return (\n host || {\n handleOption: option => {\n if (!control.control) {\n return;\n }\n\n const value = control.value || [];\n const index = value.indexOf(option);\n\n control.control.setValue(\n index === -1\n ? [...value, option]\n : [...value.slice(0, index), ...value.slice(index + 1)],\n );\n },\n }\n );\n}\n\nexport const TUI_MULTI_SELECT_OPTION = new PolymorpheusComponent(\n TuiMultiSelectOptionComponent,\n);\n\n// TODO: 3.0 remove in ivy compilation\nexport const MULTI_SELECT_ACCESSOR = {\n writeValue: EMPTY_FUNCTION,\n registerOnChange: EMPTY_FUNCTION,\n registerOnTouched: EMPTY_FUNCTION,\n};\n\n@Directive({\n selector: '[tuiMultiSelectGroup]',\n providers: [\n {\n provide: TUI_OPTION_CONTENT,\n useValue: TUI_MULTI_SELECT_OPTION,\n },\n {\n provide: TUI_DATA_LIST_HOST,\n deps: [\n NgControl,\n [new Optional(), forwardRef(() => TuiMultiSelectComponent)],\n ],\n useFactory: hostFallbackFactory,\n },\n {\n provide: NG_VALUE_ACCESSOR,\n multi: true,\n useValue: MULTI_SELECT_ACCESSOR,\n },\n ],\n})\nexport class TuiMultiSelectGroupDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiHoveredModule,\n TuiLetModule,\n TuiMapperPipeModule,\n TuiPreventDefaultModule,\n} from '@taiga-ui/cdk';\nimport {\n TuiDataListModule,\n TuiHostedDropdownModule,\n TuiPrimitiveCheckboxModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiInputTagModule} from '@taiga-ui/kit/components/input-tag';\nimport {TuiMultiSelectOptionModule} from '@taiga-ui/kit/components/multi-select-option';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiHideSelectedPipe} from './hide-selected.pipe';\nimport {TuiMultiSelectComponent} from './multi-select.component';\nimport {TuiMultiSelectGroupComponent} from './multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectGroupDirective} from './multi-select-group/multi-select-group.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiPreventDefaultModule,\n TuiActiveZoneModule,\n TuiArrowModule,\n TuiLetModule,\n TuiMapperPipeModule,\n TuiHoveredModule,\n TuiSvgModule,\n TuiHostedDropdownModule,\n TuiInputTagModule,\n TuiMultiSelectOptionModule,\n TuiPrimitiveCheckboxModule,\n TuiDataListModule,\n ],\n declarations: [\n TuiMultiSelectComponent,\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiHideSelectedPipe,\n ],\n exports: [\n TuiMultiSelectComponent,\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiHideSelectedPipe,\n ],\n})\nexport class TuiMultiSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MASa,gCAAgC,GAAmC;IAC5E,UAAU,EAAE,IAAI;IAChB,YAAY,EAAE,EAAE;EAClB;MAEW,wBAAwB,GAAG,IAAI,cAAc,CAExD,+CAA+C,EAAE;IAC/C,OAAO,E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Ac;IAChC,iBAAiB,EAAE,cAAc;EACnC;IAwBW,4BAA4B,GAAzC,MAAa,4BAA4B;EAAG;AAA/B,4BAA4B;IAtBxC,SAAS,CAAC;QACP,QAAQ,EAAE,uBAAuB;QACjC,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,uBAAuB;aACpC;YACD;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,IAAI,EAAE;oBACF,SAAS;oBACT,CAAC,IAAI,QAAQ,EAAE,EAAE,UAAU,CAAC,MAAM,uBAAuB,CAAC,CAAC;iBAC9D;gBACD,UAAU,EAAE,mBAAmB;aAClC;YACD;gBACI,OAAO,EAAE,iBAAiB;gBAC1B,KAAK,EAAE,IAAI;gBACX,QAAQ,EAAE,qBAAqB;aAClC;SACJ;KACJ,CAAC;GACW,4BAA4B,CAAG;;ICV/B,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IA/BhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,uBAAuB;YACvB,mBAAmB;YACnB,cAAc;YACd,YAAY;YACZ,mBAAmB;YACnB,gBAAgB;YAChB,YAAY;YACZ,uBAAuB;YACvB,iBAAiB;YACjB,0BAA0B;YAC1B,0BAA0B;YAC1B,iBAAiB;SACpB;QACD,YAAY,EAAE;YACV,uBAAuB;YACvB,4BAA4B;YAC5B,4BAA4B;YAC5B,mBAAmB;SACtB;QACD,OAAO,EAAE;YACL,uBAAuB;YACvB,4BAA4B;YAC5B,4BAA4B;YAC5B,mBAAmB;SACtB;KACJ,CAAC;GACW,oBAAoB,CAAG;;ACzDpC;;;;;;"}
@@ -24,7 +24,7 @@ let TuiPaginationComponent = TuiPaginationComponent_1 = class TuiPaginationCompo
24
24
  this.texts$ = texts$;
25
25
  this.elements = EMPTY_QUERY;
26
26
  this.length = 1;
27
- this.size = `m`;
27
+ this.size = 'm';
28
28
  this.disabled = false;
29
29
  /**
30
30
  * Amount of visible pages around active page
@@ -72,7 +72,7 @@ let TuiPaginationComponent = TuiPaginationComponent_1 = class TuiPaginationCompo
72
72
  return this.itemsFit ? this.length : this.maxElementsLength;
73
73
  }
74
74
  get sizeM() {
75
- return this.size === `m`;
75
+ return this.size === 'm';
76
76
  }
77
77
  get mode() {
78
78
  return this.modeDirective ? this.modeDirective.mode : null;
@@ -119,7 +119,7 @@ let TuiPaginationComponent = TuiPaginationComponent_1 = class TuiPaginationCompo
119
119
  return this.index === index ? "primary" /* Primary */ : "flat" /* Flat */;
120
120
  }
121
121
  getSmallElementMode(index, mode) {
122
- return this.index === index && mode !== `onLight`
122
+ return this.index === index && mode !== 'onLight'
123
123
  ? "primary" /* Primary */
124
124
  : "secondary" /* Secondary */;
125
125
  }
@@ -212,11 +212,11 @@ TuiPaginationComponent.ctorParameters = () => [
212
212
  { type: Observable, decorators: [{ type: Inject, args: [TUI_PAGINATION_TEXTS,] }] }
213
213
  ];
214
214
  __decorate([
215
- ViewChildren(`element`, { read: TUI_FOCUSABLE_ITEM_ACCESSOR })
215
+ ViewChildren('element', { read: TUI_FOCUSABLE_ITEM_ACCESSOR })
216
216
  ], TuiPaginationComponent.prototype, "elements", void 0);
217
217
  __decorate([
218
218
  Input(),
219
- tuiDefaultProp(nonNegativeInteger, `Must be non-negative integer`)
219
+ tuiDefaultProp(nonNegativeInteger, 'Must be non-negative integer')
220
220
  ], TuiPaginationComponent.prototype, "length", void 0);
221
221
  __decorate([
222
222
  Input(),
@@ -240,14 +240,14 @@ __decorate([
240
240
  ], TuiPaginationComponent.prototype, "content", void 0);
241
241
  __decorate([
242
242
  Input(),
243
- tuiDefaultProp(nonNegativeInteger, `Must be non-negative integer`)
243
+ tuiDefaultProp(nonNegativeInteger, 'Must be non-negative integer')
244
244
  ], TuiPaginationComponent.prototype, "index", void 0);
245
245
  __decorate([
246
246
  Output()
247
247
  ], TuiPaginationComponent.prototype, "indexChange", void 0);
248
248
  TuiPaginationComponent = TuiPaginationComponent_1 = __decorate([
249
249
  Component({
250
- selector: `tui-pagination`,
250
+ selector: 'tui-pagination',
251
251
  template: "<div\n class=\"t-content\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <ng-container *ngIf=\"sizeM; else smallButtons\">\n <ng-container *ngIf=\"texts$ | async as texts\">\n <button\n tuiIconButton\n type=\"button\"\n tuiPreventDefault=\"mousedown\"\n size=\"s\"\n appearance=\"flat\"\n icon=\"tuiIconChevronLeft\"\n class=\"t-button\"\n [title]=\"texts[0]\"\n [disabled]=\"arrowIsDisabledLeft\"\n [focusable]=\"false\"\n (click)=\"onArrowClick('left')\"\n ></button>\n <ng-container *tuiRepeatTimes=\"let elementIndex of elementsLength\">\n <ng-container *tuiLet=\"getItemIndexByElementIndex(elementIndex) as index\">\n <button\n *ngIf=\"index !== null; else dotsTemplate\"\n #element\n tuiButton\n type=\"button\"\n automation-id=\"tui-pagination__element\"\n shape=\"square\"\n size=\"s\"\n class=\"t-button\"\n [disabled]=\"disabled\"\n [focusable]=\"elementIsFocusable(index)\"\n [appearance]=\"getElementMode(index)\"\n (click)=\"onElementClick(index)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n >\n <div\n polymorpheus-outlet\n [content]=\"content || index + 1\"\n [context]=\"getItemContext(index)\"\n ></div>\n </button>\n </ng-container>\n </ng-container>\n <button\n tuiIconButton\n type=\"button\"\n tuiPreventDefault=\"mousedown\"\n size=\"s\"\n appearance=\"flat\"\n icon=\"tuiIconChevronRight\"\n class=\"t-button\"\n [title]=\"texts[1]\"\n [disabled]=\"arrowIsDisabledRight\"\n [focusable]=\"false\"\n (click)=\"onArrowClick('right')\"\n ></button>\n </ng-container>\n </ng-container>\n <ng-template #smallButtons>\n <button\n *tuiRepeatTimes=\"let indexItem of length\"\n #element\n tuiButton\n type=\"button\"\n shape=\"square\"\n class=\"t-button t-button_small\"\n [class.t-button_active]=\"indexItem === index\"\n [disabled]=\"disabled\"\n [focusable]=\"elementIsFocusable(indexItem)\"\n [appearance]=\"getSmallElementMode(indexItem, mode)\"\n (click)=\"onElementClick(indexItem)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n ></button>\n </ng-template>\n <ng-template #dotsTemplate>\n <div\n automation-id=\"tui-pagination__element\"\n class=\"t-dots\"\n ></div>\n </ng-template>\n</div>\n",
252
252
  changeDetection: ChangeDetectionStrategy.OnPush,
253
253
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pagination.js","sources":["ng://@taiga-ui/kit/components/pagination/pagination.component.ts","ng://@taiga-ui/kit/components/pagination/pagination.module.ts","ng://@taiga-ui/kit/components/pagination/taiga-ui-kit-components-pagination.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n Optional,\n Output,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {\n AbstractTuiInteractive,\n clamp,\n EMPTY_QUERY,\n isNativeFocusedIn,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiButtonComponent,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TUI_PAGINATION_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiHorizontalDirectionToNumber} from '@taiga-ui/kit/utils/math';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nconst DOTS_LENGTH = 1;\nconst ACTIVE_ITEM_LENGTH = 1;\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeInteger(length: number): boolean {\n return Number.isInteger(length) && length >= 0;\n}\n\n// @dynamic\n@Component({\n selector: `tui-pagination`,\n templateUrl: `./pagination.template.html`,\n styleUrls: [`./pagination.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiPaginationComponent),\n },\n ],\n})\nexport class TuiPaginationComponent\n extends AbstractTuiInteractive\n implements TuiFocusableElementAccessor\n{\n @ViewChildren(`element`, {read: TUI_FOCUSABLE_ITEM_ACCESSOR})\n private readonly elements: QueryList<TuiFocusableElementAccessor> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp(nonNegativeInteger, `Must be non-negative integer`)\n length = 1;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeS = `m`;\n\n @Input()\n @tuiDefaultProp()\n readonly disabled = false;\n\n /**\n * Amount of visible pages around active page\n */\n @Input()\n @tuiDefaultProp()\n activePadding = 1;\n\n /**\n * Amount of visible pages at the edges\n */\n @Input()\n @tuiDefaultProp()\n sidePadding = 1;\n\n /**\n * Customization for page number display.\n */\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent<TuiContextWithImplicit<number>> | null = null;\n\n /**\n * Active page index\n */\n @Input()\n @tuiDefaultProp(nonNegativeInteger, `Must be non-negative integer`)\n index = 0;\n\n @Output()\n readonly indexChange = new EventEmitter<number>();\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_PAGINATION_TEXTS) readonly texts$: Observable<[string, string]>,\n ) {\n super();\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n if (this.disabled) {\n return null;\n }\n\n let activeElementIndex = 0;\n const {elementsLength} = this;\n\n for (let i = 0; i < elementsLength; i++) {\n const itemIndex = this.getItemIndexByElementIndex(i);\n\n if (itemIndex) {\n activeElementIndex++;\n }\n\n if (itemIndex === this.index) {\n break;\n }\n }\n\n const activeElement = this.elements.find(\n (_, index) => index === activeElementIndex,\n );\n\n return activeElement ? activeElement.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n /**\n * Number of items in a container.\n */\n get elementsLength(): number {\n return this.itemsFit ? this.length : this.maxElementsLength;\n }\n\n get sizeM(): boolean {\n return this.size === `m`;\n }\n\n get mode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n get arrowIsDisabledLeft(): boolean {\n return this.index === 0;\n }\n\n get arrowIsDisabledRight(): boolean {\n return this.reverseIndex === 0;\n }\n\n elementIsFocusable(index: number): boolean {\n return this.index === index && !this.focused;\n }\n\n getItemContext(index: number): TuiContextWithImplicit<number> {\n return {$implicit: index};\n }\n\n /**\n * Get index by element index\n * @param elementIndex\n * @returns index or null (for '…')\n */\n getItemIndexByElementIndex(elementIndex: number): number | null {\n if (!this.sizeM) {\n return elementIndex;\n }\n\n if (elementIndex < this.sidePadding) {\n return elementIndex;\n }\n\n if (elementIndex === this.sidePadding && this.hasCollapsedItems(this.index)) {\n return null;\n }\n\n const reverseElementIndex = this.lastElementIndex - elementIndex;\n\n if (\n reverseElementIndex === this.sidePadding &&\n this.hasCollapsedItems(this.reverseIndex)\n ) {\n return null;\n }\n\n if (reverseElementIndex < this.sidePadding) {\n return this.lastIndex - reverseElementIndex;\n }\n\n const computedIndex = this.index - this.maxHalfLength + elementIndex;\n\n return clamp(computedIndex, elementIndex, this.lastIndex - reverseElementIndex);\n }\n\n getElementMode(index: number): TuiAppearance {\n return this.index === index ? TuiAppearance.Primary : TuiAppearance.Flat;\n }\n\n getSmallElementMode(index: number, mode: TuiBrightness | null): TuiAppearance {\n return this.index === index && mode !== `onLight`\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n onElementClick(index: number): void {\n this.updateIndex(index);\n }\n\n onElementKeyDownArrowLeft(element: TuiButtonComponent): void {\n if (element === this.elements.first) {\n return;\n }\n\n const previous = this.elements.find(\n (_, index, array) => array[index + 1] === element,\n );\n\n if (previous?.nativeFocusableElement) {\n setNativeFocused(previous.nativeFocusableElement);\n }\n }\n\n onElementKeyDownArrowRight(element: TuiButtonComponent): void {\n if (element === this.elements.last) {\n return;\n }\n\n const next = this.elements.find(\n (_, index, array) => array[index - 1] === element,\n );\n\n if (next?.nativeFocusableElement) {\n setNativeFocused(next.nativeFocusableElement);\n }\n }\n\n onArrowClick(direction: TuiHorizontalDirection): void {\n this.tryChangeTo(direction);\n this.focusActive();\n }\n\n onActiveZone(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /**\n * Active index from the end\n */\n private get reverseIndex(): number {\n return this.lastIndex - this.index;\n }\n\n /**\n * Max number of elements in half (not counting the middle one).\n */\n private get maxHalfLength(): number {\n return this.sidePadding + DOTS_LENGTH + this.activePadding;\n }\n\n /**\n * Is there '...' anywhere\n */\n private get itemsFit(): boolean {\n return this.length <= this.maxElementsLength;\n }\n\n /**\n * Max number of elements\n */\n private get maxElementsLength(): number {\n return this.maxHalfLength * 2 + ACTIVE_ITEM_LENGTH;\n }\n\n private get lastIndex(): number {\n return this.length - 1;\n }\n\n private get lastElementIndex(): number {\n return this.elementsLength - 1;\n }\n\n /**\n * Are there collapsed items at that index\n * @param index\n * @returns there are collapsed items\n */\n private hasCollapsedItems(index: number): boolean {\n return !this.itemsFit && index > this.maxHalfLength;\n }\n\n private tryChangeTo(direction: TuiHorizontalDirection): void {\n this.updateIndex(\n clamp(\n this.index + tuiHorizontalDirectionToNumber(direction),\n 0,\n this.lastIndex,\n ),\n );\n }\n\n private focusActive(): void {\n const {nativeFocusableElement} = this;\n\n if (nativeFocusableElement) {\n setNativeFocused(nativeFocusableElement);\n }\n }\n\n private updateIndex(index: number): void {\n if (this.index === index) {\n return;\n }\n\n this.index = index;\n this.indexChange.emit(index);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiLetModule,\n TuiPreventDefaultModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiButtonModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPaginationComponent} from './pagination.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiLetModule,\n PolymorpheusModule,\n TuiPreventDefaultModule,\n TuiActiveZoneModule,\n TuiButtonModule,\n ],\n declarations: [TuiPaginationComponent],\n exports: [TuiPaginationComponent],\n})\nexport class TuiPaginationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAsCA,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B;SACgB,kBAAkB,CAAC,MAAc;IAC7C,OAAO,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC;AACnD,CAAC;AAED;IAaa,sBAAsB,8BAAnC,MAAa,sBACT,SAAQ,sBAAsB;IAiD9B,YACyC,UAAmC,EAGvD,aAAsC,EAChB,MAAoC;QAE3E,KAAK,EAAE,CAAC;QAN6B,eAAU,GAAV,UAAU,CAAyB;QAGvD,kBAAa,GAAb,aAAa,CAAyB;QAChB,WAAM,GAAN,MAAM,CAA8B;QAlD9D,aAAQ,GAA2C,WAAW,CAAC;QAIhF,WAAM,GAAG,CAAC,CAAC;QAIX,SAAI,GAAa,GAAG,CAAC;QAIZ,aAAQ,GAAG,KAAK,CAAC;;;;QAO1B,kBAAa,GAAG,CAAC,CAAC;;;;QAOlB,gBAAW,GAAG,CAAC,CAAC;;;;QAOhB,YAAO,GAA+D,IAAI,CAAC;;;;QAO3E,UAAK,GAAG,CAAC,CAAC;QAGD,gBAAW,GAAG,IAAI,YAAY,EAAU,CAAC;KAUjD;IAED,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;IACP,cAAc,EAAE;oDACI;AAIrB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;wDACS;AAO1B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;6DACC;AAOlB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;2DACD;AAOhB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;uDAC0D;AAO3E;IAFC,KAAK,EAAE;IACP,cAAc,CAAC,kBAAkB,EAAE,8BAA8B,CAAC;qDACzD;AAGV;IADC,MAAM,EAAE;2DACyC;AAhDzC,sBAAsB;IAZlC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,s6GAAyC;QAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,wBAAsB,CAAC;aACxD;SACJ;;KACJ,CAAC;IAoDO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;GAvDxB,sBAAsB,CAwRlC;;ICzTY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAb/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,oBAAoB;YACpB,YAAY;YACZ,kBAAkB;YAClB,uBAAuB;YACvB,mBAAmB;YACnB,eAAe;SAClB;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;AC1BnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-pagination.js","sources":["ng://@taiga-ui/kit/components/pagination/pagination.component.ts","ng://@taiga-ui/kit/components/pagination/pagination.module.ts","ng://@taiga-ui/kit/components/pagination/taiga-ui-kit-components-pagination.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n Optional,\n Output,\n QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {\n AbstractTuiInteractive,\n clamp,\n EMPTY_QUERY,\n isNativeFocusedIn,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiButtonComponent,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TUI_PAGINATION_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiHorizontalDirectionToNumber} from '@taiga-ui/kit/utils/math';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nconst DOTS_LENGTH = 1;\nconst ACTIVE_ITEM_LENGTH = 1;\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeInteger(length: number): boolean {\n return Number.isInteger(length) && length >= 0;\n}\n\n// @dynamic\n@Component({\n selector: 'tui-pagination',\n templateUrl: './pagination.template.html',\n styleUrls: ['./pagination.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiPaginationComponent),\n },\n ],\n})\nexport class TuiPaginationComponent\n extends AbstractTuiInteractive\n implements TuiFocusableElementAccessor\n{\n @ViewChildren('element', {read: TUI_FOCUSABLE_ITEM_ACCESSOR})\n private readonly elements: QueryList<TuiFocusableElementAccessor> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp(nonNegativeInteger, 'Must be non-negative integer')\n length = 1;\n\n @Input()\n @tuiDefaultProp()\n size: TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n readonly disabled = false;\n\n /**\n * Amount of visible pages around active page\n */\n @Input()\n @tuiDefaultProp()\n activePadding = 1;\n\n /**\n * Amount of visible pages at the edges\n */\n @Input()\n @tuiDefaultProp()\n sidePadding = 1;\n\n /**\n * Customization for page number display.\n */\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent<TuiContextWithImplicit<number>> | null = null;\n\n /**\n * Active page index\n */\n @Input()\n @tuiDefaultProp(nonNegativeInteger, 'Must be non-negative integer')\n index = 0;\n\n @Output()\n readonly indexChange = new EventEmitter<number>();\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_PAGINATION_TEXTS) readonly texts$: Observable<[string, string]>,\n ) {\n super();\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n if (this.disabled) {\n return null;\n }\n\n let activeElementIndex = 0;\n const {elementsLength} = this;\n\n for (let i = 0; i < elementsLength; i++) {\n const itemIndex = this.getItemIndexByElementIndex(i);\n\n if (itemIndex) {\n activeElementIndex++;\n }\n\n if (itemIndex === this.index) {\n break;\n }\n }\n\n const activeElement = this.elements.find(\n (_, index) => index === activeElementIndex,\n );\n\n return activeElement ? activeElement.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n /**\n * Number of items in a container.\n */\n get elementsLength(): number {\n return this.itemsFit ? this.length : this.maxElementsLength;\n }\n\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n get mode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n get arrowIsDisabledLeft(): boolean {\n return this.index === 0;\n }\n\n get arrowIsDisabledRight(): boolean {\n return this.reverseIndex === 0;\n }\n\n elementIsFocusable(index: number): boolean {\n return this.index === index && !this.focused;\n }\n\n getItemContext(index: number): TuiContextWithImplicit<number> {\n return {$implicit: index};\n }\n\n /**\n * Get index by element index\n * @param elementIndex\n * @returns index or null (for '…')\n */\n getItemIndexByElementIndex(elementIndex: number): number | null {\n if (!this.sizeM) {\n return elementIndex;\n }\n\n if (elementIndex < this.sidePadding) {\n return elementIndex;\n }\n\n if (elementIndex === this.sidePadding && this.hasCollapsedItems(this.index)) {\n return null;\n }\n\n const reverseElementIndex = this.lastElementIndex - elementIndex;\n\n if (\n reverseElementIndex === this.sidePadding &&\n this.hasCollapsedItems(this.reverseIndex)\n ) {\n return null;\n }\n\n if (reverseElementIndex < this.sidePadding) {\n return this.lastIndex - reverseElementIndex;\n }\n\n const computedIndex = this.index - this.maxHalfLength + elementIndex;\n\n return clamp(computedIndex, elementIndex, this.lastIndex - reverseElementIndex);\n }\n\n getElementMode(index: number): TuiAppearance {\n return this.index === index ? TuiAppearance.Primary : TuiAppearance.Flat;\n }\n\n getSmallElementMode(index: number, mode: TuiBrightness | null): TuiAppearance {\n return this.index === index && mode !== 'onLight'\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n onElementClick(index: number): void {\n this.updateIndex(index);\n }\n\n onElementKeyDownArrowLeft(element: TuiButtonComponent): void {\n if (element === this.elements.first) {\n return;\n }\n\n const previous = this.elements.find(\n (_, index, array) => array[index + 1] === element,\n );\n\n if (previous?.nativeFocusableElement) {\n setNativeFocused(previous.nativeFocusableElement);\n }\n }\n\n onElementKeyDownArrowRight(element: TuiButtonComponent): void {\n if (element === this.elements.last) {\n return;\n }\n\n const next = this.elements.find(\n (_, index, array) => array[index - 1] === element,\n );\n\n if (next?.nativeFocusableElement) {\n setNativeFocused(next.nativeFocusableElement);\n }\n }\n\n onArrowClick(direction: TuiHorizontalDirection): void {\n this.tryChangeTo(direction);\n this.focusActive();\n }\n\n onActiveZone(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /**\n * Active index from the end\n */\n private get reverseIndex(): number {\n return this.lastIndex - this.index;\n }\n\n /**\n * Max number of elements in half (not counting the middle one).\n */\n private get maxHalfLength(): number {\n return this.sidePadding + DOTS_LENGTH + this.activePadding;\n }\n\n /**\n * Is there '...' anywhere\n */\n private get itemsFit(): boolean {\n return this.length <= this.maxElementsLength;\n }\n\n /**\n * Max number of elements\n */\n private get maxElementsLength(): number {\n return this.maxHalfLength * 2 + ACTIVE_ITEM_LENGTH;\n }\n\n private get lastIndex(): number {\n return this.length - 1;\n }\n\n private get lastElementIndex(): number {\n return this.elementsLength - 1;\n }\n\n /**\n * Are there collapsed items at that index\n * @param index\n * @returns there are collapsed items\n */\n private hasCollapsedItems(index: number): boolean {\n return !this.itemsFit && index > this.maxHalfLength;\n }\n\n private tryChangeTo(direction: TuiHorizontalDirection): void {\n this.updateIndex(\n clamp(\n this.index + tuiHorizontalDirectionToNumber(direction),\n 0,\n this.lastIndex,\n ),\n );\n }\n\n private focusActive(): void {\n const {nativeFocusableElement} = this;\n\n if (nativeFocusableElement) {\n setNativeFocused(nativeFocusableElement);\n }\n }\n\n private updateIndex(index: number): void {\n if (this.index === index) {\n return;\n }\n\n this.index = index;\n this.indexChange.emit(index);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiLetModule,\n TuiPreventDefaultModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiButtonModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPaginationComponent} from './pagination.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiLetModule,\n PolymorpheusModule,\n TuiPreventDefaultModule,\n TuiActiveZoneModule,\n TuiButtonModule,\n ],\n declarations: [TuiPaginationComponent],\n exports: [TuiPaginationComponent],\n})\nexport class TuiPaginationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAsCA,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,kBAAkB,GAAG,CAAC,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C;aACxD;SACJ;;KACJ,CAAC;IAoDO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;GAvDxB,sBAAsB,CAwRlC;;ICzTY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAb/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,oBAAoB;YACpB,YAAY;YACZ,kBAAkB;YAClB,uBAAuB;YACvB,mBAAmB;YACnB,eAAe;SAClB;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;AC1BnC;;;;;;"}
@@ -12,7 +12,7 @@ let TuiPdfViewerComponent = class TuiPdfViewerComponent {
12
12
  this.options = options;
13
13
  this.closeWord$ = closeWord$;
14
14
  this.context = context;
15
- this.animation = Object.assign({ value: `` }, this.options);
15
+ this.animation = Object.assign({ value: '' }, this.options);
16
16
  }
17
17
  onKeyDownEsc() {
18
18
  this.context.$implicit.complete();
@@ -24,15 +24,15 @@ TuiPdfViewerComponent.ctorParameters = () => [
24
24
  { type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] }
25
25
  ];
26
26
  __decorate([
27
- HostBinding(`@tuiSlideInTop`),
28
- HostBinding(`@tuiFadeIn`)
27
+ HostBinding('@tuiSlideInTop'),
28
+ HostBinding('@tuiFadeIn')
29
29
  ], TuiPdfViewerComponent.prototype, "animation", void 0);
30
30
  __decorate([
31
- HostListener(`document:keydown.esc`)
31
+ HostListener('document:keydown.esc')
32
32
  ], TuiPdfViewerComponent.prototype, "onKeyDownEsc", null);
33
33
  TuiPdfViewerComponent = __decorate([
34
34
  Component({
35
- selector: `tui-pdf-viewer`,
35
+ selector: 'tui-pdf-viewer',
36
36
  template: "<header class=\"t-header\">\n <h2 class=\"t-title\">{{ context.label }}</h2>\n <div\n polymorpheus-outlet\n class=\"t-actions\"\n [content]=\"context.actions\"\n [context]=\"context\"\n ></div>\n <button\n tuiIconButton\n shape=\"rounded\"\n appearance=\"\"\n size=\"s\"\n icon=\"tuiIconCloseLarge\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"context.$implicit.complete()\"\n ></button>\n</header>\n<section\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"context.content\"\n [context]=\"context\"\n>\n <ng-template let-content>\n <iframe\n class=\"t-iframe\"\n [src]=\"content\"\n ></iframe>\n </ng-template>\n</section>\n",
37
37
  changeDetection: ChangeDetectionStrategy.OnPush,
38
38
  animations: [tuiSlideInTop, tuiFadeIn],
@@ -66,15 +66,15 @@ let TuiPdfViewerDirective = class TuiPdfViewerDirective extends AbstractTuiDialo
66
66
  };
67
67
  TuiPdfViewerDirective = __decorate([
68
68
  Directive({
69
- selector: `ng-template[tuiPdfViewer]`,
69
+ selector: 'ng-template[tuiPdfViewer]',
70
70
  providers: [
71
71
  {
72
72
  provide: AbstractTuiDialogService,
73
73
  useExisting: TuiPdfViewerService,
74
74
  },
75
75
  ],
76
- inputs: [`options: tuiPdfViewerOptions`, `open: tuiPdfViewer`],
77
- outputs: [`openChange: tuiPdfViewerChange`],
76
+ inputs: ['options: tuiPdfViewerOptions', 'open: tuiPdfViewer'],
77
+ outputs: ['openChange: tuiPdfViewerChange'],
78
78
  })
79
79
  ], TuiPdfViewerDirective);
80
80
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pdf-viewer.js","sources":["ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.component.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.service.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.directive.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.module.ts","ng://@taiga-ui/kit/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n} from '@angular/core';\nimport {TuiDialog} from '@taiga-ui/cdk';\nimport {\n TUI_ANIMATION_OPTIONS,\n TUI_CLOSE_WORD,\n tuiFadeIn,\n tuiSlideInTop,\n} from '@taiga-ui/core';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\n@Component({\n selector: `tui-pdf-viewer`,\n templateUrl: `./pdf-viewer.template.html`,\n styleUrls: [`./pdf-viewer.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideInTop, tuiFadeIn],\n})\nexport class TuiPdfViewerComponent<I, O> {\n @HostBinding(`@tuiSlideInTop`)\n @HostBinding(`@tuiFadeIn`)\n readonly animation = {value: ``, ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiPdfViewerOptions<I>, O>,\n ) {}\n\n @HostListener(`document:keydown.esc`)\n onKeyDownEsc(): void {\n this.context.$implicit.complete();\n }\n}\n","import {Injectable} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {AbstractTuiDialogService, TuiBaseDialogContext} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\nconst DIALOG = new PolymorpheusComponent(TuiPdfViewerComponent);\nconst DEFAULT_OPTIONS = {label: ``, actions: ``} as const;\n\ntype Content<G> = PolymorpheusContent<\n TuiBaseDialogContext<G> & TuiPdfViewerOptions<unknown>\n>;\n\n@Injectable({\n providedIn: `root`,\n})\nexport class TuiPdfViewerService extends AbstractTuiDialogService<\n TuiPdfViewerOptions<unknown>\n> {\n protected readonly component = DIALOG;\n protected readonly defaultOptions: TuiPdfViewerOptions<unknown> =\n DEFAULT_OPTIONS as TuiPdfViewerOptions<unknown>;\n\n open<G>(\n content: SafeResourceUrl | Content<G>,\n options: Partial<TuiPdfViewerOptions<any>> = {},\n ): Observable<G> {\n return super.open(content as Content<G>, options);\n }\n}\n","import {Directive} from '@angular/core';\nimport {AbstractTuiDialogDirective, AbstractTuiDialogService} from '@taiga-ui/cdk';\n\nimport {TuiPdfViewerService} from './pdf-viewer.service';\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\n@Directive({\n selector: `ng-template[tuiPdfViewer]`,\n providers: [\n {\n provide: AbstractTuiDialogService,\n useExisting: TuiPdfViewerService,\n },\n ],\n inputs: [`options: tuiPdfViewerOptions`, `open: tuiPdfViewer`],\n outputs: [`openChange: tuiPdfViewerChange`],\n})\nexport class TuiPdfViewerDirective<T> extends AbstractTuiDialogDirective<\n TuiPdfViewerOptions<T>\n> {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk';\nimport {TuiButtonModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TuiPdfViewerDirective} from './pdf-viewer.directive';\nimport {TuiPdfViewerService} from './pdf-viewer.service';\n\n@NgModule({\n imports: [CommonModule, TuiButtonModule, PolymorpheusModule],\n declarations: [TuiPdfViewerComponent, TuiPdfViewerDirective],\n exports: [TuiPdfViewerComponent, TuiPdfViewerDirective],\n providers: [\n {\n provide: TUI_DIALOGS,\n useExisting: TuiPdfViewerService,\n multi: true,\n },\n ],\n entryComponents: [TuiPdfViewerComponent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AAG,MAAM,CAAC;QACnB,mBAAc,GAC7B,eAA+C,CAAC;KAQvD;IANG,IAAI,CACA,OAAqC,EACrC,UAA6C,EAAE;QAE/C,OAAO,KAAK,CAAC,IAAI,CAAC,OAAqB,EAAE,OAAO,CAAC,CAAC;KACrD;EACJ;;AAbY,mBAAmB;IAH/B,UAAU,CAAC;QACR,UAAU,EAAE,MAAM;KACrB,CAAC;GACW,mBAAmB,CAa/B;;ICfY,qBAAqB,GAAlC,MAAa,qBAAyB,SAAQ,0BAE7C;EAAG;AAFS,qBAAqB;IAXjC,SAAS,CAAC;QACP,QAAQ,EAAE,2BAA2B;QACrC,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,wBAAwB;gBACjC,WAAW,EAAE,mBAAmB;aACnC;SACJ;QACD,MAAM,EAAE,CAAC,8BAA8B,EAAE,oBAAoB,CAAC;QAC9D,OAAO,EAAE,CAAC,gCAAgC,CAAC;KAC9C,CAAC;GACW,qBAAqB,CAE9B;;ICIS,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAb9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,kBAAkB,CAAC;QAC5D,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;QAC5D,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;QACvD,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,mBAAmB;gBAChC,KAAK,EAAE,IAAI;aACd;SACJ;QACD,eAAe,EAAE,CAAC,qBAAqB,CAAC;KAC3C,CAAC;GACW,kBAAkB,CAAG;;ACvBlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-pdf-viewer.js","sources":["ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.component.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.service.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.directive.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.module.ts","ng://@taiga-ui/kit/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n} from '@angular/core';\nimport {TuiDialog} from '@taiga-ui/cdk';\nimport {\n TUI_ANIMATION_OPTIONS,\n TUI_CLOSE_WORD,\n tuiFadeIn,\n tuiSlideInTop,\n} from '@taiga-ui/core';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\n@Component({\n selector: 'tui-pdf-viewer',\n templateUrl: './pdf-viewer.template.html',\n styleUrls: ['./pdf-viewer.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideInTop, tuiFadeIn],\n})\nexport class TuiPdfViewerComponent<I, O> {\n @HostBinding('@tuiSlideInTop')\n @HostBinding('@tuiFadeIn')\n readonly animation = {value: '', ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiPdfViewerOptions<I>, O>,\n ) {}\n\n @HostListener('document:keydown.esc')\n onKeyDownEsc(): void {\n this.context.$implicit.complete();\n }\n}\n","import {Injectable} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {AbstractTuiDialogService, TuiBaseDialogContext} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\nconst DIALOG = new PolymorpheusComponent(TuiPdfViewerComponent);\nconst DEFAULT_OPTIONS = {label: ``, actions: ``} as const;\n\ntype Content<G> = PolymorpheusContent<\n TuiBaseDialogContext<G> & TuiPdfViewerOptions<unknown>\n>;\n\n@Injectable({\n providedIn: `root`,\n})\nexport class TuiPdfViewerService extends AbstractTuiDialogService<\n TuiPdfViewerOptions<unknown>\n> {\n protected readonly component = DIALOG;\n protected readonly defaultOptions: TuiPdfViewerOptions<unknown> =\n DEFAULT_OPTIONS as TuiPdfViewerOptions<unknown>;\n\n open<G>(\n content: Content<G> | SafeResourceUrl,\n options: Partial<TuiPdfViewerOptions<any>> = {},\n ): Observable<G> {\n return super.open(content as Content<G>, options);\n }\n}\n","import {Directive} from '@angular/core';\nimport {AbstractTuiDialogDirective, AbstractTuiDialogService} from '@taiga-ui/cdk';\n\nimport {TuiPdfViewerService} from './pdf-viewer.service';\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\n@Directive({\n selector: 'ng-template[tuiPdfViewer]',\n providers: [\n {\n provide: AbstractTuiDialogService,\n useExisting: TuiPdfViewerService,\n },\n ],\n inputs: ['options: tuiPdfViewerOptions', 'open: tuiPdfViewer'],\n outputs: ['openChange: tuiPdfViewerChange'],\n})\nexport class TuiPdfViewerDirective<T> extends AbstractTuiDialogDirective<\n TuiPdfViewerOptions<T>\n> {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk';\nimport {TuiButtonModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TuiPdfViewerDirective} from './pdf-viewer.directive';\nimport {TuiPdfViewerService} from './pdf-viewer.service';\n\n@NgModule({\n imports: [CommonModule, TuiButtonModule, PolymorpheusModule],\n declarations: [TuiPdfViewerComponent, TuiPdfViewerDirective],\n exports: [TuiPdfViewerComponent, TuiPdfViewerDirective],\n providers: [\n {\n provide: TUI_DIALOGS,\n useExisting: TuiPdfViewerService,\n multi: true,\n },\n ],\n entryComponents: [TuiPdfViewerComponent],\n})\nexport class TuiPdfViewerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IA2Ba,qBAAqB,GAAlC,MAAa,qBAAqB;IAK9B,YACoD,OAAyB,EACxC,UAA8B,EAEtD,OAA6C;QAHN,YAAO,GAAP,OAAO,CAAkB;QACxC,eAAU,GAAV,UAAU,CAAoB;QAEtD,YAAO,GAAP,OAAO,CAAsC;QANjD,cAAS,GAAG,gBAAC,KAAK,EAAE,EAAE,IAAK,IAAI,CAAC,OAAO,CAAU,CAAC;KAOvD;IAGJ,YAAY;QACR,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;KACrC;EACJ;;4CAVQ,MAAM,SAAC,qBAAqB;YACgB,UAAU,uBAAtD,MAAM,SAAC,cAAc;4CACrB,MAAM,SAAC,oBAAoB;;AALhC;IAFC,WAAW,CAAC,gBAAgB,CAAC;IAC7B,WAAW,CAAC,YAAY,CAAC;wDACiC;AAU3D;IADC,YAAY,CAAC,sBAAsB,CAAC;yDAGpC;AAfQ,qBAAqB;IAPjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,ozBAAyC;QAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC;;KACzC,CAAC;IAOO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC7B,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;GARxB,qBAAqB,CAgBjC;;AClCD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;AAChE,MAAM,eAAe,GAAG,EAAC,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAU,CAAC;IAS7C,mBAA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