@taiga-ui/kit 2.75.0 → 2.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (961) hide show
  1. package/abstract/input-slider.d.ts +2 -2
  2. package/abstract/slider/slider.d.ts +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +46 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.js +59 -14
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-action.umd.js +54 -9
  10. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.js +47 -2
  13. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-avatar.umd.js +59 -14
  16. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badge.umd.js +62 -19
  19. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
  21. package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-badged-content.umd.js +66 -21
  23. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +54 -9
  26. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +48 -3
  29. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +50 -5
  32. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js +1 -1
  34. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-carousel.umd.js +69 -33
  36. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +1 -1
  38. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +56 -10
  40. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +50 -5
  44. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-checkbox.umd.js +49 -4
  47. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-combo-box.umd.js +55 -10
  50. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +48 -3
  53. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-field-error.umd.js +51 -6
  56. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-files.umd.js +66 -21
  59. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-filter.umd.js +49 -4
  62. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-copy.umd.js +56 -10
  65. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  67. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-count.umd.js +62 -17
  69. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  71. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +60 -15
  73. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +62 -17
  76. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-date.umd.js +56 -11
  79. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-file.umd.js +80 -35
  82. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-files.umd.js +61 -16
  85. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-inline.umd.js +50 -5
  88. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +53 -8
  91. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-month.umd.js +51 -6
  94. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-number.umd.js +72 -27
  97. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
  99. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-password.umd.js +52 -7
  101. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +59 -14
  104. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-phone.umd.js +77 -32
  107. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-range.umd.js +62 -17
  111. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input-slider.umd.js +62 -15
  114. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-tag.umd.js +68 -23
  117. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-input-time.umd.js +54 -9
  120. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-input.umd.js +51 -6
  123. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-island.umd.js +64 -19
  126. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +54 -9
  129. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +52 -7
  132. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +51 -4
  135. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-kit-components-multi-select.umd.js +60 -15
  138. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  139. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-pagination.umd.js +53 -8
  141. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +54 -9
  144. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.js +69 -24
  147. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-push.umd.js +60 -15
  150. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-push.umd.min.js +1 -1
  152. package/bundles/taiga-ui-kit-components-push.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-block.umd.js +57 -11
  154. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-group.umd.js +47 -2
  158. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +51 -6
  161. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  163. package/bundles/taiga-ui-kit-components-radio-list.umd.js +51 -6
  164. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-radio.umd.js +52 -7
  167. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  168. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-range.umd.js +79 -34
  170. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-rating.umd.js +50 -5
  173. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-select-option.umd.js +48 -3
  176. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
  178. package/bundles/taiga-ui-kit-components-select.umd.js +50 -5
  179. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  180. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-slider.umd.js +82 -37
  182. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  184. package/bundles/taiga-ui-kit-components-stepper.umd.js +72 -27
  185. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tabs.umd.js +89 -42
  188. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  190. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-tag.umd.js +68 -23
  192. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  194. package/bundles/taiga-ui-kit-components-text-area.umd.js +63 -18
  195. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  196. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-kit-components-toggle.umd.js +53 -8
  198. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  200. package/bundles/taiga-ui-kit-components-tree.umd.js +63 -18
  201. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  203. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-constants.umd.js +47 -2
  205. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  206. package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
  207. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  208. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +56 -11
  209. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  210. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  211. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js +52 -7
  212. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
  214. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +57 -12
  215. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  216. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  217. package/bundles/taiga-ui-kit-directives-highlight.umd.js +56 -11
  218. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  219. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  220. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +57 -12
  221. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  222. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  223. package/bundles/taiga-ui-kit-directives-present.umd.js +51 -6
  224. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  225. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  226. package/bundles/taiga-ui-kit-directives-project-class.umd.js +48 -3
  227. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  228. package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
  229. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +50 -5
  230. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  231. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
  232. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +47 -2
  233. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  234. package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
  235. package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
  236. package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
  237. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +47 -2
  238. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  239. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  240. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +46 -1
  241. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  242. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  243. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +46 -1
  244. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  245. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  246. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +46 -1
  247. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  248. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
  249. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +46 -1
  250. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  251. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  252. package/bundles/taiga-ui-kit-tokens.umd.js +46 -1
  253. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  254. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  255. package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
  256. package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
  257. package/bundles/taiga-ui-kit-utils-format.umd.js +1 -1
  258. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  259. package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
  260. package/bundles/taiga-ui-kit-utils-mask.umd.js +46 -1
  261. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  262. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  263. package/bundles/taiga-ui-kit-utils-math.umd.js +46 -1
  264. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  265. package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
  266. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +46 -1
  267. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  268. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  269. package/components/arrow/arrow-options.d.ts +2 -2
  270. package/components/avatar/avatar.component.d.ts +3 -3
  271. package/components/badge/badge.component.d.ts +1 -1
  272. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  273. package/components/badged-content/badged-content.component.d.ts +1 -1
  274. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  275. package/components/calendar-range/calendar-range.component.d.ts +2 -2
  276. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  277. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  278. package/components/combo-box/combo-box.component.d.ts +1 -1
  279. package/components/data-list-wrapper/data-list-wrapper.d.ts +1 -1
  280. package/components/field-error/field-error.component.d.ts +1 -1
  281. package/components/filter/filter.component.d.ts +1 -1
  282. package/components/input-date/input-date.component.d.ts +1 -1
  283. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  284. package/components/input-date-range/input-date-range.component.d.ts +2 -2
  285. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  286. package/components/input-file/file/file.component.d.ts +1 -1
  287. package/components/input-file/input-file.component.d.ts +5 -5
  288. package/components/input-files/input-files.component.d.ts +2 -2
  289. package/components/input-inline/input-inline.component.d.ts +1 -1
  290. package/components/input-password/input-password-options.d.ts +4 -4
  291. package/components/input-password/input-password.component.d.ts +3 -3
  292. package/components/input-phone-international/input-phone-international.component.d.ts +1 -1
  293. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -1
  294. package/components/input-range/input-range.component.d.ts +1 -1
  295. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  296. package/components/input-tag/input-tag-options.d.ts +1 -1
  297. package/components/input-tag/input-tag.component.d.ts +2 -2
  298. package/components/input-time/input-time-options.d.ts +3 -3
  299. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  300. package/components/island/island.component.d.ts +1 -1
  301. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  302. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  303. package/components/multi-select/multi-select.component.d.ts +2 -2
  304. package/components/pdf-viewer/pdf-viewer.service.d.ts +1 -1
  305. package/components/push/taiga-ui-kit-components-push.metadata.json +1 -1
  306. package/components/radio-block/radio-block.component.d.ts +1 -1
  307. package/components/range/range-change.directive.d.ts +1 -1
  308. package/components/range/range.component.d.ts +1 -1
  309. package/components/select/select.component.d.ts +1 -1
  310. package/components/slider/helpers/slider-readonly.directive.d.ts +1 -1
  311. package/components/stepper/step/step.component.d.ts +1 -1
  312. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  313. package/components/tabs/tabs-options.d.ts +1 -0
  314. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  315. package/components/tag/tag-options.d.ts +1 -1
  316. package/components/tag/tag.component.d.ts +2 -2
  317. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  318. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +1 -1
  319. package/directives/lazy-loading/lazy-loading.directive.d.ts +2 -2
  320. package/directives/lazy-loading/lazy-loading.service.d.ts +2 -2
  321. package/enums/dropdown-position.d.ts +1 -1
  322. package/enums/file-state.d.ts +1 -1
  323. package/enums/step-state.d.ts +1 -1
  324. package/esm2015/abstract/input-slider.js +1 -1
  325. package/esm2015/abstract/slider/slider.js +1 -1
  326. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  327. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  328. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +11 -11
  329. package/esm2015/components/accordion/accordion.component.js +2 -2
  330. package/esm2015/components/action/action.component.js +9 -9
  331. package/esm2015/components/arrow/arrow-options.js +1 -1
  332. package/esm2015/components/arrow/arrow.component.js +2 -2
  333. package/esm2015/components/avatar/avatar.component.js +14 -14
  334. package/esm2015/components/badge/badge.component.js +17 -19
  335. package/esm2015/components/badged-content/badged-content.component.js +21 -21
  336. package/esm2015/components/breadcrumbs/breadcrumb.directive.js +2 -2
  337. package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  338. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +4 -4
  339. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  340. package/esm2015/components/calendar-range/calendar-range.component.js +5 -5
  341. package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
  342. package/esm2015/components/carousel/carousel-buttons.directive.js +4 -4
  343. package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
  344. package/esm2015/components/carousel/carousel.component.js +11 -21
  345. package/esm2015/components/carousel/carousel.directive.js +3 -3
  346. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  347. package/esm2015/components/checkbox-block/checkbox-block.component.js +11 -10
  348. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  349. package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
  350. package/esm2015/components/combo-box/combo-box.component.js +7 -7
  351. package/esm2015/components/combo-box/combo-box.directive.js +2 -2
  352. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  353. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  354. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +1 -1
  355. package/esm2015/components/field-error/field-error.component.js +6 -6
  356. package/esm2015/components/files/file/file.component.js +20 -20
  357. package/esm2015/components/files/files.component.js +2 -2
  358. package/esm2015/components/filter/filter.component.js +4 -4
  359. package/esm2015/components/input/input.component.js +5 -5
  360. package/esm2015/components/input/input.directive.js +2 -2
  361. package/esm2015/components/input-copy/input-copy.component.js +10 -9
  362. package/esm2015/components/input-copy/input-copy.directive.js +2 -2
  363. package/esm2015/components/input-count/input-count.component.js +14 -14
  364. package/esm2015/components/input-count/input-count.directive.js +4 -4
  365. package/esm2015/components/input-date/input-date.component.js +9 -9
  366. package/esm2015/components/input-date/input-date.directive.js +3 -3
  367. package/esm2015/components/input-date-range/input-date-range.component.js +13 -13
  368. package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
  369. package/esm2015/components/input-date-time/input-date-time.component.js +15 -15
  370. package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
  371. package/esm2015/components/input-file/file/file.component.js +18 -18
  372. package/esm2015/components/input-file/input-file.component.js +18 -18
  373. package/esm2015/components/input-files/input-files.component.js +16 -16
  374. package/esm2015/components/input-inline/input-inline.component.js +5 -5
  375. package/esm2015/components/input-month/input-month.component.js +4 -4
  376. package/esm2015/components/input-month/input-month.directive.js +3 -3
  377. package/esm2015/components/input-month-range/input-month-range.component.js +5 -5
  378. package/esm2015/components/input-month-range/input-month-range.directive.js +4 -4
  379. package/esm2015/components/input-number/input-number.component.js +25 -25
  380. package/esm2015/components/input-number/input-number.directive.js +3 -3
  381. package/esm2015/components/input-password/input-password-options.js +1 -1
  382. package/esm2015/components/input-password/input-password.component.js +5 -5
  383. package/esm2015/components/input-password/input-password.directive.js +3 -3
  384. package/esm2015/components/input-phone/input-phone.component.js +30 -30
  385. package/esm2015/components/input-phone/input-phone.directive.js +3 -3
  386. package/esm2015/components/input-phone-international/input-phone-international.component.js +14 -14
  387. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +1 -1
  388. package/esm2015/components/input-range/input-range.component.js +17 -17
  389. package/esm2015/components/input-slider/input-slider.component.js +17 -15
  390. package/esm2015/components/input-tag/input-tag-options.js +1 -1
  391. package/esm2015/components/input-tag/input-tag.component.js +23 -23
  392. package/esm2015/components/input-time/input-time-options.js +1 -1
  393. package/esm2015/components/input-time/input-time.component.js +9 -9
  394. package/esm2015/components/island/island.component.js +19 -19
  395. package/esm2015/components/line-clamp/line-clamp.component.js +9 -9
  396. package/esm2015/components/marker-icon/marker-icon.component.js +7 -7
  397. package/esm2015/components/multi-select/hide-selected.pipe.js +1 -1
  398. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  399. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  400. package/esm2015/components/multi-select/multi-select.component.js +10 -10
  401. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  402. package/esm2015/components/pagination/pagination.component.js +8 -8
  403. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -6
  404. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  405. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +1 -1
  406. package/esm2015/components/progress/progress-bar/progress-bar.component.js +6 -6
  407. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  408. package/esm2015/components/progress/progress-circle/progress-circle.component.js +7 -7
  409. package/esm2015/components/progress/progress-label/progress-label.component.js +2 -2
  410. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  411. package/esm2015/components/push/push-alert.component.js +7 -7
  412. package/esm2015/components/push/push-alert.directive.js +2 -2
  413. package/esm2015/components/push/push.component.js +5 -5
  414. package/esm2015/components/push/push.directive.js +4 -4
  415. package/esm2015/components/radio/radio.component.js +7 -7
  416. package/esm2015/components/radio-block/radio-block.component.js +12 -11
  417. package/esm2015/components/radio-group/radio-group.component.js +2 -2
  418. package/esm2015/components/radio-labeled/radio-labeled.component.js +6 -6
  419. package/esm2015/components/radio-list/radio-list.component.js +6 -6
  420. package/esm2015/components/range/range-change.directive.js +10 -10
  421. package/esm2015/components/range/range.component.js +23 -23
  422. package/esm2015/components/rating/rating.component.js +5 -5
  423. package/esm2015/components/select/select.component.js +4 -4
  424. package/esm2015/components/select/select.directive.js +2 -2
  425. package/esm2015/components/select-option/select-option.component.js +3 -3
  426. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +10 -10
  427. package/esm2015/components/slider/helpers/slider-readonly.directive.js +15 -15
  428. package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +5 -5
  429. package/esm2015/components/slider/slider-old.component.js +2 -2
  430. package/esm2015/components/slider/slider.component.js +9 -9
  431. package/esm2015/components/stepper/step/step.component.js +12 -12
  432. package/esm2015/components/stepper/stepper.component.js +16 -16
  433. package/esm2015/components/tabs/tab/tab.component.js +10 -10
  434. package/esm2015/components/tabs/tab.directive.js +2 -2
  435. package/esm2015/components/tabs/tabs/tabs.component.js +13 -13
  436. package/esm2015/components/tabs/tabs-options.js +2 -1
  437. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +9 -8
  438. package/esm2015/components/tabs/underline/underline.component.js +13 -13
  439. package/esm2015/components/tag/tag-options.js +1 -1
  440. package/esm2015/components/tag/tag.component.js +23 -23
  441. package/esm2015/components/text-area/text-area.component.js +17 -17
  442. package/esm2015/components/text-area/text-area.directive.js +2 -2
  443. package/esm2015/components/toggle/toggle.component.js +8 -8
  444. package/esm2015/components/tree/components/tree/tree.component.js +3 -3
  445. package/esm2015/components/tree/components/tree-item/tree-item.component.js +5 -5
  446. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  447. package/esm2015/components/tree/directives/tree-children.directive.js +2 -2
  448. package/esm2015/components/tree/directives/tree-controller.directive.js +4 -4
  449. package/esm2015/components/tree/directives/tree-item-controller.directive.js +4 -4
  450. package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
  451. package/esm2015/constants/max-day-range-length-mapper.js +2 -2
  452. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +11 -11
  453. package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +5 -5
  454. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +12 -12
  455. package/esm2015/directives/highlight/highlight.directive.js +11 -11
  456. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +12 -12
  457. package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
  458. package/esm2015/directives/present/present.directive.js +6 -6
  459. package/esm2015/directives/project-class/project-class.directive.js +3 -3
  460. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  461. package/esm2015/directives/value-accessor/value-accessor.directive.js +2 -2
  462. package/esm2015/enums/dropdown-position.js +1 -1
  463. package/esm2015/enums/file-state.js +1 -1
  464. package/esm2015/enums/step-state.js +1 -1
  465. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  466. package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
  467. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  468. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +1 -1
  469. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  470. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  471. package/esm2015/tokens/validation-errors.js +1 -1
  472. package/esm2015/types/marker-icon-mode.js +1 -1
  473. package/esm2015/types/status.js +1 -1
  474. package/esm2015/types/time-format-parts.js +1 -1
  475. package/esm2015/utils/dom/set-range-offset.js +1 -1
  476. package/esm2015/utils/format/string-hash-to-hsl.js +2 -2
  477. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +1 -1
  478. package/esm2015/utils/mask/create-time-mask.js +1 -1
  479. package/esm2015/utils/miscellaneous/is-flat.js +1 -1
  480. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +1 -1
  481. package/esm5/abstract/input-slider.js +1 -1
  482. package/esm5/abstract/slider/slider.js +1 -1
  483. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
  484. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
  485. package/esm5/components/accordion/accordion-item/accordion-item.component.js +11 -11
  486. package/esm5/components/accordion/accordion.component.js +2 -2
  487. package/esm5/components/action/action.component.js +9 -9
  488. package/esm5/components/arrow/arrow-options.js +1 -1
  489. package/esm5/components/arrow/arrow.component.js +2 -2
  490. package/esm5/components/avatar/avatar.component.js +14 -14
  491. package/esm5/components/badge/badge.component.js +17 -19
  492. package/esm5/components/badged-content/badged-content.component.js +21 -21
  493. package/esm5/components/breadcrumbs/breadcrumb.directive.js +2 -2
  494. package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
  495. package/esm5/components/breadcrumbs/breadcrumbs.component.js +4 -4
  496. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  497. package/esm5/components/calendar-range/calendar-range.component.js +5 -5
  498. package/esm5/components/carousel/carousel-autoscroll.directive.js +3 -3
  499. package/esm5/components/carousel/carousel-buttons.directive.js +4 -4
  500. package/esm5/components/carousel/carousel-scroll.directive.js +3 -3
  501. package/esm5/components/carousel/carousel.component.js +11 -21
  502. package/esm5/components/carousel/carousel.directive.js +3 -3
  503. package/esm5/components/checkbox/checkbox.component.js +4 -4
  504. package/esm5/components/checkbox-block/checkbox-block.component.js +11 -10
  505. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
  506. package/esm5/components/combo-box/combo-box-strict.directive.js +3 -3
  507. package/esm5/components/combo-box/combo-box.component.js +7 -7
  508. package/esm5/components/combo-box/combo-box.directive.js +2 -2
  509. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  510. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  511. package/esm5/components/data-list-wrapper/data-list-wrapper.js +1 -1
  512. package/esm5/components/field-error/field-error.component.js +6 -6
  513. package/esm5/components/files/file/file.component.js +20 -20
  514. package/esm5/components/files/files.component.js +2 -2
  515. package/esm5/components/filter/filter.component.js +4 -4
  516. package/esm5/components/input/input.component.js +5 -5
  517. package/esm5/components/input/input.directive.js +2 -2
  518. package/esm5/components/input-copy/input-copy.component.js +10 -9
  519. package/esm5/components/input-copy/input-copy.directive.js +2 -2
  520. package/esm5/components/input-count/input-count.component.js +14 -14
  521. package/esm5/components/input-count/input-count.directive.js +4 -4
  522. package/esm5/components/input-date/input-date.component.js +9 -9
  523. package/esm5/components/input-date/input-date.directive.js +3 -3
  524. package/esm5/components/input-date-range/input-date-range.component.js +13 -13
  525. package/esm5/components/input-date-range/input-date-range.directive.js +3 -3
  526. package/esm5/components/input-date-time/input-date-time.component.js +15 -15
  527. package/esm5/components/input-date-time/input-date-time.directive.js +3 -3
  528. package/esm5/components/input-file/file/file.component.js +18 -18
  529. package/esm5/components/input-file/input-file.component.js +18 -18
  530. package/esm5/components/input-files/input-files.component.js +16 -16
  531. package/esm5/components/input-inline/input-inline.component.js +5 -5
  532. package/esm5/components/input-month/input-month.component.js +4 -4
  533. package/esm5/components/input-month/input-month.directive.js +3 -3
  534. package/esm5/components/input-month-range/input-month-range.component.js +5 -5
  535. package/esm5/components/input-month-range/input-month-range.directive.js +4 -4
  536. package/esm5/components/input-number/input-number.component.js +25 -25
  537. package/esm5/components/input-number/input-number.directive.js +3 -3
  538. package/esm5/components/input-password/input-password-options.js +1 -1
  539. package/esm5/components/input-password/input-password.component.js +5 -5
  540. package/esm5/components/input-password/input-password.directive.js +3 -3
  541. package/esm5/components/input-phone/input-phone.component.js +30 -30
  542. package/esm5/components/input-phone/input-phone.directive.js +3 -3
  543. package/esm5/components/input-phone-international/input-phone-international.component.js +14 -14
  544. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +1 -1
  545. package/esm5/components/input-range/input-range.component.js +17 -17
  546. package/esm5/components/input-slider/input-slider.component.js +17 -15
  547. package/esm5/components/input-tag/input-tag-options.js +1 -1
  548. package/esm5/components/input-tag/input-tag.component.js +23 -23
  549. package/esm5/components/input-time/input-time-options.js +1 -1
  550. package/esm5/components/input-time/input-time.component.js +9 -9
  551. package/esm5/components/island/island.component.js +19 -19
  552. package/esm5/components/line-clamp/line-clamp.component.js +9 -9
  553. package/esm5/components/marker-icon/marker-icon.component.js +7 -7
  554. package/esm5/components/multi-select/hide-selected.pipe.js +1 -1
  555. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  556. package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
  557. package/esm5/components/multi-select/multi-select.component.js +10 -10
  558. package/esm5/components/multi-select-option/multi-select-option.component.js +6 -4
  559. package/esm5/components/pagination/pagination.component.js +8 -8
  560. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -6
  561. package/esm5/components/pdf-viewer/pdf-viewer.directive.js +4 -4
  562. package/esm5/components/pdf-viewer/pdf-viewer.service.js +1 -1
  563. package/esm5/components/progress/progress-bar/progress-bar.component.js +6 -6
  564. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
  565. package/esm5/components/progress/progress-circle/progress-circle.component.js +7 -7
  566. package/esm5/components/progress/progress-label/progress-label.component.js +2 -2
  567. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +8 -8
  568. package/esm5/components/push/push-alert.component.js +7 -7
  569. package/esm5/components/push/push-alert.directive.js +2 -2
  570. package/esm5/components/push/push.component.js +5 -5
  571. package/esm5/components/push/push.directive.js +4 -4
  572. package/esm5/components/radio/radio.component.js +7 -7
  573. package/esm5/components/radio-block/radio-block.component.js +12 -11
  574. package/esm5/components/radio-group/radio-group.component.js +2 -2
  575. package/esm5/components/radio-labeled/radio-labeled.component.js +6 -6
  576. package/esm5/components/radio-list/radio-list.component.js +6 -6
  577. package/esm5/components/range/range-change.directive.js +12 -12
  578. package/esm5/components/range/range.component.js +23 -23
  579. package/esm5/components/rating/rating.component.js +5 -5
  580. package/esm5/components/select/select.component.js +4 -4
  581. package/esm5/components/select/select.directive.js +2 -2
  582. package/esm5/components/select-option/select-option.component.js +3 -3
  583. package/esm5/components/slider/helpers/slider-key-steps.directive.js +10 -10
  584. package/esm5/components/slider/helpers/slider-readonly.directive.js +15 -15
  585. package/esm5/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +5 -5
  586. package/esm5/components/slider/slider-old.component.js +2 -2
  587. package/esm5/components/slider/slider.component.js +9 -9
  588. package/esm5/components/stepper/step/step.component.js +12 -12
  589. package/esm5/components/stepper/stepper.component.js +16 -16
  590. package/esm5/components/tabs/tab/tab.component.js +10 -10
  591. package/esm5/components/tabs/tab.directive.js +2 -2
  592. package/esm5/components/tabs/tabs/tabs.component.js +13 -13
  593. package/esm5/components/tabs/tabs-options.js +2 -1
  594. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +9 -8
  595. package/esm5/components/tabs/underline/underline.component.js +13 -13
  596. package/esm5/components/tag/tag-options.js +1 -1
  597. package/esm5/components/tag/tag.component.js +23 -23
  598. package/esm5/components/text-area/text-area.component.js +17 -17
  599. package/esm5/components/text-area/text-area.directive.js +2 -2
  600. package/esm5/components/toggle/toggle.component.js +8 -8
  601. package/esm5/components/tree/components/tree/tree.component.js +3 -3
  602. package/esm5/components/tree/components/tree-item/tree-item.component.js +5 -5
  603. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  604. package/esm5/components/tree/directives/tree-children.directive.js +2 -2
  605. package/esm5/components/tree/directives/tree-controller.directive.js +4 -4
  606. package/esm5/components/tree/directives/tree-item-controller.directive.js +4 -4
  607. package/esm5/components/tree/directives/tree-node.directive.js +3 -3
  608. package/esm5/constants/max-day-range-length-mapper.js +2 -2
  609. package/esm5/directives/dropdown-context/dropdown-context.directive.js +11 -11
  610. package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +7 -7
  611. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +12 -12
  612. package/esm5/directives/highlight/highlight.directive.js +11 -11
  613. package/esm5/directives/lazy-loading/lazy-loading.directive.js +12 -12
  614. package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
  615. package/esm5/directives/present/present.directive.js +6 -6
  616. package/esm5/directives/project-class/project-class.directive.js +3 -3
  617. package/esm5/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
  618. package/esm5/directives/value-accessor/value-accessor.directive.js +2 -2
  619. package/esm5/enums/dropdown-position.js +1 -1
  620. package/esm5/enums/file-state.js +1 -1
  621. package/esm5/enums/step-state.js +1 -1
  622. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  623. package/esm5/pipes/field-error/field-error-pipe.js +1 -1
  624. package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
  625. package/esm5/pipes/filter-by-input/filter-by-input.base.js +1 -1
  626. package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
  627. package/esm5/pipes/stringify/stringify.pipe.js +1 -1
  628. package/esm5/tokens/validation-errors.js +1 -1
  629. package/esm5/types/marker-icon-mode.js +1 -1
  630. package/esm5/types/status.js +1 -1
  631. package/esm5/types/time-format-parts.js +1 -1
  632. package/esm5/utils/dom/set-range-offset.js +1 -1
  633. package/esm5/utils/format/string-hash-to-hsl.js +2 -2
  634. package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +1 -1
  635. package/esm5/utils/mask/create-time-mask.js +1 -1
  636. package/esm5/utils/miscellaneous/is-flat.js +1 -1
  637. package/esm5/utils/miscellaneous/replay-control-value-changes-factory.js +1 -1
  638. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  639. package/fesm2015/taiga-ui-kit-components-accordion.js +13 -13
  640. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  641. package/fesm2015/taiga-ui-kit-components-action.js +8 -8
  642. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  643. package/fesm2015/taiga-ui-kit-components-arrow.js +1 -1
  644. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  645. package/fesm2015/taiga-ui-kit-components-avatar.js +13 -13
  646. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  647. package/fesm2015/taiga-ui-kit-components-badge.js +16 -18
  648. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  649. package/fesm2015/taiga-ui-kit-components-badged-content.js +20 -20
  650. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  651. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +8 -8
  652. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  653. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  654. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  655. package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -4
  656. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  657. package/fesm2015/taiga-ui-kit-components-carousel.js +20 -29
  658. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  659. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +10 -9
  660. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  661. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  662. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  663. package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -3
  664. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  665. package/fesm2015/taiga-ui-kit-components-combo-box.js +9 -9
  666. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  667. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  668. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  669. package/fesm2015/taiga-ui-kit-components-field-error.js +5 -5
  670. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  671. package/fesm2015/taiga-ui-kit-components-files.js +20 -20
  672. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  673. package/fesm2015/taiga-ui-kit-components-filter.js +3 -3
  674. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  675. package/fesm2015/taiga-ui-kit-components-input-copy.js +10 -9
  676. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  677. package/fesm2015/taiga-ui-kit-components-input-count.js +16 -16
  678. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  679. package/fesm2015/taiga-ui-kit-components-input-date-range.js +14 -14
  680. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  681. package/fesm2015/taiga-ui-kit-components-input-date-time.js +16 -16
  682. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  683. package/fesm2015/taiga-ui-kit-components-input-date.js +10 -10
  684. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  685. package/fesm2015/taiga-ui-kit-components-input-file.js +34 -34
  686. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  687. package/fesm2015/taiga-ui-kit-components-input-files.js +15 -15
  688. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  689. package/fesm2015/taiga-ui-kit-components-input-inline.js +4 -4
  690. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  691. package/fesm2015/taiga-ui-kit-components-input-month-range.js +7 -7
  692. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  693. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -5
  694. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  695. package/fesm2015/taiga-ui-kit-components-input-number.js +26 -26
  696. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  697. package/fesm2015/taiga-ui-kit-components-input-password.js +6 -6
  698. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  699. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +13 -13
  700. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  701. package/fesm2015/taiga-ui-kit-components-input-phone.js +31 -31
  702. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  703. package/fesm2015/taiga-ui-kit-components-input-range.js +16 -16
  704. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  705. package/fesm2015/taiga-ui-kit-components-input-slider.js +16 -14
  706. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  707. package/fesm2015/taiga-ui-kit-components-input-tag.js +22 -22
  708. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  709. package/fesm2015/taiga-ui-kit-components-input-time.js +8 -8
  710. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  711. package/fesm2015/taiga-ui-kit-components-input.js +5 -5
  712. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  713. package/fesm2015/taiga-ui-kit-components-island.js +18 -18
  714. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  715. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
  716. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  717. package/fesm2015/taiga-ui-kit-components-marker-icon.js +6 -6
  718. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  719. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
  720. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  721. package/fesm2015/taiga-ui-kit-components-multi-select.js +14 -14
  722. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  723. package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
  724. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  725. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +8 -8
  726. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  727. package/fesm2015/taiga-ui-kit-components-progress.js +23 -23
  728. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  729. package/fesm2015/taiga-ui-kit-components-push.js +14 -14
  730. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  731. package/fesm2015/taiga-ui-kit-components-radio-block.js +11 -10
  732. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  733. package/fesm2015/taiga-ui-kit-components-radio-group.js +1 -1
  734. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  735. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -5
  736. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  737. package/fesm2015/taiga-ui-kit-components-radio-list.js +5 -5
  738. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  739. package/fesm2015/taiga-ui-kit-components-radio.js +6 -6
  740. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  741. package/fesm2015/taiga-ui-kit-components-range.js +31 -31
  742. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  743. package/fesm2015/taiga-ui-kit-components-rating.js +4 -4
  744. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-select-option.js +2 -2
  746. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-select.js +4 -4
  748. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-slider.js +36 -36
  750. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-stepper.js +26 -26
  752. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-tabs.js +43 -41
  754. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-tag.js +22 -22
  756. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components-text-area.js +17 -17
  758. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -7
  760. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-components-tree.js +17 -17
  762. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  763. package/fesm2015/taiga-ui-kit-constants.js +1 -1
  764. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  765. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +10 -10
  766. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js +4 -4
  768. package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +11 -11
  770. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-directives-highlight.js +10 -10
  772. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  773. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +11 -11
  774. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  775. package/fesm2015/taiga-ui-kit-directives-present.js +5 -5
  776. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  777. package/fesm2015/taiga-ui-kit-directives-project-class.js +2 -2
  778. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  779. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  780. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  781. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +1 -1
  782. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  783. package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
  784. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  785. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  786. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  787. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  788. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  789. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  790. package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
  791. package/fesm2015/taiga-ui-kit-utils-format.js +1 -1
  792. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  793. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  794. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  795. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  796. package/fesm5/taiga-ui-kit-components-accordion.js +13 -13
  797. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  798. package/fesm5/taiga-ui-kit-components-action.js +8 -8
  799. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  800. package/fesm5/taiga-ui-kit-components-arrow.js +1 -1
  801. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  802. package/fesm5/taiga-ui-kit-components-avatar.js +13 -13
  803. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  804. package/fesm5/taiga-ui-kit-components-badge.js +16 -18
  805. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  806. package/fesm5/taiga-ui-kit-components-badged-content.js +20 -20
  807. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  808. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +8 -8
  809. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  810. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  811. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  812. package/fesm5/taiga-ui-kit-components-calendar-range.js +4 -4
  813. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  814. package/fesm5/taiga-ui-kit-components-carousel.js +20 -29
  815. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  816. package/fesm5/taiga-ui-kit-components-checkbox-block.js +10 -9
  817. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  818. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  819. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  820. package/fesm5/taiga-ui-kit-components-checkbox.js +3 -3
  821. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  822. package/fesm5/taiga-ui-kit-components-combo-box.js +9 -9
  823. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  824. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +2 -2
  825. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  826. package/fesm5/taiga-ui-kit-components-field-error.js +5 -5
  827. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  828. package/fesm5/taiga-ui-kit-components-files.js +20 -20
  829. package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
  830. package/fesm5/taiga-ui-kit-components-filter.js +3 -3
  831. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  832. package/fesm5/taiga-ui-kit-components-input-copy.js +10 -9
  833. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  834. package/fesm5/taiga-ui-kit-components-input-count.js +16 -16
  835. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  836. package/fesm5/taiga-ui-kit-components-input-date-range.js +14 -14
  837. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  838. package/fesm5/taiga-ui-kit-components-input-date-time.js +16 -16
  839. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  840. package/fesm5/taiga-ui-kit-components-input-date.js +10 -10
  841. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  842. package/fesm5/taiga-ui-kit-components-input-file.js +34 -34
  843. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  844. package/fesm5/taiga-ui-kit-components-input-files.js +15 -15
  845. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  846. package/fesm5/taiga-ui-kit-components-input-inline.js +4 -4
  847. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  848. package/fesm5/taiga-ui-kit-components-input-month-range.js +7 -7
  849. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  850. package/fesm5/taiga-ui-kit-components-input-month.js +5 -5
  851. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  852. package/fesm5/taiga-ui-kit-components-input-number.js +26 -26
  853. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  854. package/fesm5/taiga-ui-kit-components-input-password.js +6 -6
  855. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  856. package/fesm5/taiga-ui-kit-components-input-phone-international.js +13 -13
  857. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-input-phone.js +31 -31
  859. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-input-range.js +16 -16
  861. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-input-slider.js +16 -14
  863. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-input-tag.js +22 -22
  865. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-input-time.js +8 -8
  867. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-input.js +5 -5
  869. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  870. package/fesm5/taiga-ui-kit-components-island.js +18 -18
  871. package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
  872. package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
  873. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  874. package/fesm5/taiga-ui-kit-components-marker-icon.js +6 -6
  875. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  876. package/fesm5/taiga-ui-kit-components-multi-select-option.js +5 -3
  877. package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  878. package/fesm5/taiga-ui-kit-components-multi-select.js +14 -14
  879. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  880. package/fesm5/taiga-ui-kit-components-pagination.js +7 -7
  881. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  882. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +8 -8
  883. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  884. package/fesm5/taiga-ui-kit-components-progress.js +23 -23
  885. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  886. package/fesm5/taiga-ui-kit-components-push.js +14 -14
  887. package/fesm5/taiga-ui-kit-components-push.js.map +1 -1
  888. package/fesm5/taiga-ui-kit-components-radio-block.js +11 -10
  889. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  890. package/fesm5/taiga-ui-kit-components-radio-group.js +1 -1
  891. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  892. package/fesm5/taiga-ui-kit-components-radio-labeled.js +5 -5
  893. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  894. package/fesm5/taiga-ui-kit-components-radio-list.js +5 -5
  895. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  896. package/fesm5/taiga-ui-kit-components-radio.js +6 -6
  897. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  898. package/fesm5/taiga-ui-kit-components-range.js +33 -33
  899. package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
  900. package/fesm5/taiga-ui-kit-components-rating.js +4 -4
  901. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  902. package/fesm5/taiga-ui-kit-components-select-option.js +2 -2
  903. package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
  904. package/fesm5/taiga-ui-kit-components-select.js +4 -4
  905. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  906. package/fesm5/taiga-ui-kit-components-slider.js +36 -36
  907. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  908. package/fesm5/taiga-ui-kit-components-stepper.js +26 -26
  909. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  910. package/fesm5/taiga-ui-kit-components-tabs.js +43 -41
  911. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  912. package/fesm5/taiga-ui-kit-components-tag.js +22 -22
  913. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  914. package/fesm5/taiga-ui-kit-components-text-area.js +17 -17
  915. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  916. package/fesm5/taiga-ui-kit-components-toggle.js +7 -7
  917. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  918. package/fesm5/taiga-ui-kit-components-tree.js +17 -17
  919. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  920. package/fesm5/taiga-ui-kit-constants.js +1 -1
  921. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  922. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +10 -10
  923. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  924. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js +6 -6
  925. package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
  926. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +11 -11
  927. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  928. package/fesm5/taiga-ui-kit-directives-highlight.js +10 -10
  929. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  930. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +11 -11
  931. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  932. package/fesm5/taiga-ui-kit-directives-present.js +5 -5
  933. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  934. package/fesm5/taiga-ui-kit-directives-project-class.js +2 -2
  935. package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
  936. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js +4 -4
  937. package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  938. package/fesm5/taiga-ui-kit-directives-value-accessor.js +1 -1
  939. package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  940. package/fesm5/taiga-ui-kit-enums.js.map +1 -1
  941. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  942. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  943. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  944. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  945. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  946. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  947. package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
  948. package/fesm5/taiga-ui-kit-utils-format.js +1 -1
  949. package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
  950. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  951. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  952. package/package.json +4 -4
  953. package/pipes/field-error/field-error-pipe.d.ts +1 -1
  954. package/pipes/filter-by-input/filter-by-input.base.d.ts +1 -1
  955. package/pipes/stringify/stringify.pipe.d.ts +1 -1
  956. package/types/marker-icon-mode.d.ts +1 -1
  957. package/types/status.d.ts +1 -1
  958. package/types/time-format-parts.d.ts +1 -1
  959. package/utils/dom/set-range-offset.d.ts +1 -1
  960. package/utils/miscellaneous/is-flat.d.ts +1 -1
  961. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +1 -1
@@ -32,8 +32,8 @@ let TuiLazyLoadingDirective = class TuiLazyLoadingDirective {
32
32
  constructor(src$, elementRef) {
33
33
  this.src$ = src$;
34
34
  this.elementRef = elementRef;
35
- this.animation = `tuiSkeletonVibe ease-in-out 1s infinite alternate`;
36
- this.background = `var(--tui-clear-hover)`;
35
+ this.animation = 'tuiSkeletonVibe ease-in-out 1s infinite alternate';
36
+ this.background = 'var(--tui-clear-hover)';
37
37
  this.src = null;
38
38
  if (!this.supported) {
39
39
  this.src$.subscribe(src => {
@@ -46,11 +46,11 @@ let TuiLazyLoadingDirective = class TuiLazyLoadingDirective {
46
46
  this.src$.next(src);
47
47
  }
48
48
  get supported() {
49
- return `loading` in this.elementRef.nativeElement;
49
+ return 'loading' in this.elementRef.nativeElement;
50
50
  }
51
51
  onLoad() {
52
- this.background = ``;
53
- this.animation = ``;
52
+ this.background = '';
53
+ this.animation = '';
54
54
  }
55
55
  };
56
56
  TuiLazyLoadingDirective.ctorParameters = () => [
@@ -58,23 +58,23 @@ TuiLazyLoadingDirective.ctorParameters = () => [
58
58
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
59
59
  ];
60
60
  __decorate([
61
- Input(`src`)
61
+ Input('src')
62
62
  ], TuiLazyLoadingDirective.prototype, "srcSetter", null);
63
63
  __decorate([
64
- HostBinding(`style.animation`)
64
+ HostBinding('style.animation')
65
65
  ], TuiLazyLoadingDirective.prototype, "animation", void 0);
66
66
  __decorate([
67
- HostBinding(`style.background`)
67
+ HostBinding('style.background')
68
68
  ], TuiLazyLoadingDirective.prototype, "background", void 0);
69
69
  __decorate([
70
- HostBinding(`attr.src`)
70
+ HostBinding('attr.src')
71
71
  ], TuiLazyLoadingDirective.prototype, "src", void 0);
72
72
  __decorate([
73
- HostListener(`load`)
73
+ HostListener('load')
74
74
  ], TuiLazyLoadingDirective.prototype, "onLoad", null);
75
75
  TuiLazyLoadingDirective = __decorate([
76
76
  Directive({
77
- selector: `img[loading="lazy"]`,
77
+ selector: 'img[loading="lazy"]',
78
78
  providers: [TuiLazyLoadingService, IntersectionObserverService, TuiDestroyService],
79
79
  }),
80
80
  __param(0, Inject(TuiLazyLoadingService)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-lazy-loading.js","sources":["ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.service.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.directive.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.module.ts","ng://@taiga-ui/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {ChangeDetectorRef, Inject, Injectable} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {Observable, of, Subject} from 'rxjs';\nimport {catchError, filter, mapTo, switchMap, take, takeUntil} from 'rxjs/operators';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<string | SafeResourceUrl> {\n private readonly src$ = new Subject<string | SafeResourceUrl>();\n\n constructor(\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Inject(IntersectionObserverService)\n intersections$: Observable<IntersectionObserverEntry[]>,\n ) {\n super(subscriber =>\n this.src$\n .pipe(\n switchMap(src =>\n intersections$.pipe(\n filter(([{isIntersecting}]) => isIntersecting),\n mapTo(src),\n catchError(() => of(src)),\n watch(changeDetectorRef),\n take(1),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe(subscriber),\n );\n }\n\n next(src: string | SafeResourceUrl): void {\n this.src$.next(src);\n }\n}\n","import {\n Directive,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n@Directive({\n selector: `img[loading=\"lazy\"]`,\n providers: [TuiLazyLoadingService, IntersectionObserverService, TuiDestroyService],\n})\nexport class TuiLazyLoadingDirective {\n @Input(`src`)\n set srcSetter(src: string | SafeResourceUrl) {\n this.src = this.supported ? src : null;\n this.src$.next(src);\n }\n\n @HostBinding(`style.animation`)\n animation = `tuiSkeletonVibe ease-in-out 1s infinite alternate`;\n\n @HostBinding(`style.background`)\n background = `var(--tui-clear-hover)`;\n\n @HostBinding(`attr.src`)\n src: string | null | SafeResourceUrl = null;\n\n constructor(\n @Inject(TuiLazyLoadingService)\n private readonly src$: TuiLazyLoadingService,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLImageElement>,\n ) {\n if (!this.supported) {\n this.src$.subscribe(src => {\n this.src = src;\n });\n }\n }\n\n private get supported(): boolean {\n return `loading` in this.elementRef.nativeElement;\n }\n\n @HostListener(`load`)\n onLoad(): void {\n this.background = ``;\n this.animation = ``;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiLazyLoadingDirective} from './lazy-loading.directive';\n\n@NgModule({\n declarations: [TuiLazyLoadingDirective],\n exports: [TuiLazyLoadingDirective],\n})\nexport class TuiLazyLoadingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAQa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,UAAoC;IAG3E,YAC+B,iBAAoC,EACpC,QAA0B,EAErD,cAAuD;QAEvD,KAAK,CAAC,UAAU,IACZ,IAAI,CAAC,IAAI;aACJ,IAAI,CACD,SAAS,CAAC,GAAG,IACT,cAAc,CAAC,IAAI,CACf,MAAM,CAAC,CAAC,CAAC,EAAC,cAAc,EAAC,CAAC,KAAK,cAAc,CAAC,EAC9C,KAAK,CAAC,GAAG,CAAC,EACV,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EACzB,KAAK,CAAC,iBAAiB,CAAC,EACxB,IAAI,CAAC,CAAC,CAAC,CACV,CACJ,EACD,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC,UAAU,CAAC,CAC7B,CAAC;QAvBW,SAAI,GAAG,IAAI,OAAO,EAA4B,CAAC;KAwB/D;IAED,IAAI,CAAC,GAA6B;QAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACvB;EACJ;;YA1BqD,iBAAiB,uBAA9D,MAAM,SAAC,iBAAiB;YACY,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;YAET,UAAU,uBADzB,MAAM,SAAC,2BAA2B;;AAN9B,qBAAqB;IADjC,UAAU,EAAE;IAKJ,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAN/B,qBAAqB,CA8BjC;;ICpBY,uBAAuB,GAApC,MAAa,uBAAuB;IAgBhC,YAEqB,IAA2B,EAE3B,UAAwC;QAFxC,SAAI,G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uBAAuB,CAsCnC;;IChDY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACRpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-lazy-loading.js","sources":["ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.service.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.directive.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.module.ts","ng://@taiga-ui/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {ChangeDetectorRef, Inject, Injectable} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {Observable, of, Subject} from 'rxjs';\nimport {catchError, filter, mapTo, switchMap, take, takeUntil} from 'rxjs/operators';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n\n constructor(\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Inject(IntersectionObserverService)\n intersections$: Observable<IntersectionObserverEntry[]>,\n ) {\n super(subscriber =>\n this.src$\n .pipe(\n switchMap(src =>\n intersections$.pipe(\n filter(([{isIntersecting}]) => isIntersecting),\n mapTo(src),\n catchError(() => of(src)),\n watch(changeDetectorRef),\n take(1),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe(subscriber),\n );\n }\n\n next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {\n Directive,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n@Directive({\n selector: 'img[loading=\"lazy\"]',\n providers: [TuiLazyLoadingService, IntersectionObserverService, TuiDestroyService],\n})\nexport class TuiLazyLoadingDirective {\n @Input('src')\n set srcSetter(src: SafeResourceUrl | string) {\n this.src = this.supported ? src : null;\n this.src$.next(src);\n }\n\n @HostBinding('style.animation')\n animation = 'tuiSkeletonVibe ease-in-out 1s infinite alternate';\n\n @HostBinding('style.background')\n background = 'var(--tui-clear-hover)';\n\n @HostBinding('attr.src')\n src: SafeResourceUrl | string | null = null;\n\n constructor(\n @Inject(TuiLazyLoadingService)\n private readonly src$: TuiLazyLoadingService,\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLImageElement>,\n ) {\n if (!this.supported) {\n this.src$.subscribe(src => {\n this.src = src;\n });\n }\n }\n\n private get supported(): boolean {\n return 'loading' in this.elementRef.nativeElement;\n }\n\n @HostListener('load')\n onLoad(): void {\n this.background = '';\n this.animation = '';\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiLazyLoadingDirective} from './lazy-loading.directive';\n\n@NgModule({\n declarations: [TuiLazyLoadingDirective],\n exports: [TuiLazyLoadingDirective],\n})\nexport class TuiLazyLoadingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAQa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,UAAoC;IAG3E,YAC+B,iBAAoC,EACpC,QAA0B,EAErD,cAAuD;QAEvD,KAAK,CAAC,UAAU,IACZ,IAAI,CAAC,IAAI;aACJ,IAAI,CACD,SAAS,CAAC,GAAG,IACT,cAAc,CAAC,IAAI,CACf,MAAM,CAAC,CAAC,CAAC,EAAC,cAAc,EAAC,CAAC,KAAK,cAAc,CAAC,EAC9C,KAA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I,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACvB;IAwBD,IAAY,SAAS;QACjB,OAAO,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;KACrD;IAGD,MAAM;QACF,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACvB;EACJ;;YApB8B,qBAAqB,uBAD3C,MAAM,SAAC,qBAAqB;YAGA,UAAU,uBADtC,MAAM,SAAC,UAAU;;AAjBtB;IADC,KAAK,CAAC,KAAK,CAAC;wDAIZ;AAGD;IADC,WAAW,CAAC,iBAAiB,CAAC;0DACiC;AAGhE;IADC,WAAW,CAAC,kBAAkB,CAAC;2DACM;AAGtC;IADC,WAAW,CAAC,UAAU,CAAC;oDACoB;AAoB5C;IADC,YAAY,CAAC,MAAM,CAAC;qDAIpB;AArCQ,uBAAuB;IAJnC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,SAAS,EAAE,CAAC,qBAAqB,EAAE,2BAA2B,EAAE,iBAAiB,CAAC;KACrF,CAAC;IAkBO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAE7B,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAnBd,uBAAuB,CAsCnC;;IChDY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACRpC;;;;;;"}
@@ -21,7 +21,7 @@ let TuiPresentDirective = class TuiPresentDirective {
21
21
  });
22
22
  observer.observe(nativeElement, {
23
23
  attributes: true,
24
- attributeFilter: [`style`, `class`],
24
+ attributeFilter: ['style', 'class'],
25
25
  });
26
26
  }
27
27
  /**
@@ -52,14 +52,14 @@ __decorate([
52
52
  Output()
53
53
  ], TuiPresentDirective.prototype, "tuiPresentChange", void 0);
54
54
  __decorate([
55
- HostListener(`animationcancel`, [`$event`, `false`]),
56
- HostListener(`animationstart`, [`$event`, `true`])
55
+ HostListener('animationcancel', ['$event', 'false']),
56
+ HostListener('animationstart', ['$event', 'true'])
57
57
  ], TuiPresentDirective.prototype, "onAnimation", null);
58
58
  TuiPresentDirective = __decorate([
59
59
  Directive({
60
- selector: `[tuiPresentChange]`,
60
+ selector: '[tuiPresentChange]',
61
61
  host: {
62
- '[style.animation]': `"tuiPresent 1s infinite"`,
62
+ '[style.animation]': '"tuiPresent 1s infinite"',
63
63
  },
64
64
  }),
65
65
  __param(0, Inject(ElementRef)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["ng://@taiga-ui/kit/directives/present/present.directive.ts","ng://@taiga-ui/kit/directives/present/present.module.ts","ng://@taiga-ui/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {isCurrentTarget, isFirefox} from '@taiga-ui/cdk';\nimport {BehaviorSubject} from 'rxjs';\nimport {distinctUntilChanged, skip} from 'rxjs/operators';\n\n@Directive({\n selector: `[tuiPresentChange]`,\n host: {\n '[style.animation]': `\"tuiPresent 1s infinite\"`,\n },\n})\nexport class TuiPresentDirective implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n readonly tuiPresentChange = this.visibility$.pipe(distinctUntilChanged(), skip(1));\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) userAgent: string,\n ) {\n if (isFirefox(userAgent)) {\n return;\n }\n\n const observer = new MutationObserver(() => {\n if (\n !nativeElement.offsetParent &&\n nativeElement.offsetWidth === 0 &&\n nativeElement.offsetHeight === 0\n ) {\n this.visibility$.next(false);\n }\n });\n\n observer.observe(nativeElement, {\n attributes: true,\n attributeFilter: [`style`, `class`],\n });\n }\n\n /**\n * Someday animationcancel would work and mutation observer would not be needed:\n * https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel\n * It would also trigger on CSS like display: none on parent nodes which is awesome\n * but currently only works in Firefox\n * ___\n * TODO: remove MutationObserver when we bump versions of supported browsers:\n *** Safari 12+\n *** Chrome 83+\n * See: {@link https://caniuse.com/mdn-api_window_animationcancel_event}\n */\n @HostListener(`animationcancel`, [`$event`, `false`])\n @HostListener(`animationstart`, [`$event`, `true`])\n onAnimation(event: Event, visibility: boolean): void {\n if (isCurrentTarget(event)) {\n this.visibility$.next(visibility);\n }\n }\n\n ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPresentDirective} from './present.directive';\n\n@NgModule({\n declarations: [TuiPresentDirective],\n exports: [TuiPresentDirective],\n})\nexport class TuiPresentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAmBa,mBAAmB,GAAhC,MAAa,mBAAmB;IAM5B,YACwB,EAAC,aAAa,EAA0B,EACxC,SAAiB;QAPxB,gBAAW,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;QAGjD,qBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAM/E,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE;YACtB,OAAO;SACV;QAED,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC;YAClC,IACI,CAAC,aAAa,CAAC,YAAY;gBAC3B,aAAa,CAAC,WAAW,KAAK,CAAC;gBAC/B,aAAa,CAAC,YAAY,KAAK,CAAC,EAClC;gBACE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aAChC;SACJ,CAAC,CAAC;QAEH,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE;YAC5B,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;SACtC,CAAC,CAAC;KACN;;;;;;;;;;;;IAeD,WAAW,CAAC,KAAY,EAAE,UAAmB;QACzC,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;YACxB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACrC;KACJ;IAED,WAAW;QACP,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAChC;EACJ;;YA7C4C,UAAU,uBAA9C,MAAM,SAAC,UAAU;yCACjB,MAAM,SAAC,UAAU;;AAJtB;IADC,MAAM,EAAE;6DAC0E;AAuCnF;IAFC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpD,YAAY,CAAC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;sDAKlD;AA/CQ,mBAAmB;IAN/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;QAC9B,IAAI,EAAE;YACF,mBAAmB,EAAE,0BAA0B;SAClD;KACJ,CAAC;IAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GARd,mBAAmB,CAoD/B;;IC/DY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["ng://@taiga-ui/kit/directives/present/present.directive.ts","ng://@taiga-ui/kit/directives/present/present.module.ts","ng://@taiga-ui/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {isCurrentTarget, isFirefox} from '@taiga-ui/cdk';\nimport {BehaviorSubject} from 'rxjs';\nimport {distinctUntilChanged, skip} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n },\n})\nexport class TuiPresentDirective implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n readonly tuiPresentChange = this.visibility$.pipe(distinctUntilChanged(), skip(1));\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) userAgent: string,\n ) {\n if (isFirefox(userAgent)) {\n return;\n }\n\n const observer = new MutationObserver(() => {\n if (\n !nativeElement.offsetParent &&\n nativeElement.offsetWidth === 0 &&\n nativeElement.offsetHeight === 0\n ) {\n this.visibility$.next(false);\n }\n });\n\n observer.observe(nativeElement, {\n attributes: true,\n attributeFilter: ['style', 'class'],\n });\n }\n\n /**\n * Someday animationcancel would work and mutation observer would not be needed:\n * https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel\n * It would also trigger on CSS like display: none on parent nodes which is awesome\n * but currently only works in Firefox\n * ___\n * TODO: remove MutationObserver when we bump versions of supported browsers:\n *** Safari 12+\n *** Chrome 83+\n * See: {@link https://caniuse.com/mdn-api_window_animationcancel_event}\n */\n @HostListener('animationcancel', ['$event', 'false'])\n @HostListener('animationstart', ['$event', 'true'])\n onAnimation(event: Event, visibility: boolean): void {\n if (isCurrentTarget(event)) {\n this.visibility$.next(visibility);\n }\n }\n\n ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPresentDirective} from './present.directive';\n\n@NgModule({\n declarations: [TuiPresentDirective],\n exports: [TuiPresentDirective],\n})\nexport class TuiPresentModule {}\n","/**\n * Generated bundle index. Do not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AC,CAAC;sDAKlD;AA/CQ,mBAAmB;IAN/B,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;QAC9B,IAAI,EAAE;YACF,mBAAmB,EAAE,0BAA0B;SAClD;KACJ,CAAC;IAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GARd,mBAAmB,CAoD/B;;IC/DY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAJ5B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACRhC;;;;;;"}
@@ -29,12 +29,12 @@ TuiProjectClassDirective.ctorParameters = () => [
29
29
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
30
30
  ];
31
31
  __decorate([
32
- Input(`tuiProjectClass`),
32
+ Input('tuiProjectClass'),
33
33
  tuiDefaultProp()
34
34
  ], TuiProjectClassDirective.prototype, "classNames", void 0);
35
35
  TuiProjectClassDirective = __decorate([
36
36
  Directive({
37
- selector: `[tuiProjectClass]`,
37
+ selector: '[tuiProjectClass]',
38
38
  }),
39
39
  __param(0, Inject(ElementRef))
40
40
  ], TuiProjectClassDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["ng://@taiga-ui/kit/directives/project-class/project-class.directive.ts","ng://@taiga-ui/kit/directives/project-class/project-class.module.ts","ng://@taiga-ui/kit/directives/project-class/taiga-ui-kit-directives-project-class.ts"],"sourcesContent":["import {AfterViewChecked, Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n/**\n * A directive for projecting classes from nested children to host\n */\n@Directive({\n selector: `[tuiProjectClass]`,\n})\nexport class TuiProjectClassDirective implements AfterViewChecked {\n @Input(`tuiProjectClass`)\n @tuiDefaultProp()\n classNames: readonly string[] = [];\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngAfterViewChecked(): void {\n if (!this.classNames.length) {\n return;\n }\n\n this.classNames.forEach(className => {\n const hostElement = this.elementRef.nativeElement;\n\n if (hostElement.querySelector(`.${className}`)) {\n hostElement.classList.add(className);\n } else {\n hostElement.classList.remove(className);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiProjectClassDirective} from './project-class.directive';\n\n@NgModule({\n declarations: [TuiProjectClassDirective],\n exports: [TuiProjectClassDirective],\n})\nexport class TuiProjectClassModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;IAMa,wBAAwB,GAArC,MAAa,wBAAwB;IAKjC,YACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;QAH5E,eAAU,GAAsB,EAAE,CAAC;KAI/B;IAEJ,kBAAkB;QACd,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACzB,OAAO;SACV;QAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS;YAC7B,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;YAElD,IAAI,WAAW,CAAC,aAAa,CAAC,IAAI,SAAS,EAAE,CAAC,EAAE;gBAC5C,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACxC;iBAAM;gBACH,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC3C;SACJ,CAAC,CAAC;KACN;EACJ;;YAlBwD,UAAU,uBAA1D,MAAM,SAAC,UAAU;;AAHtB;IAFC,KAAK,CAAC,iBAAiB,CAAC;IACxB,cAAc,EAAE;4DACkB;AAH1B,wBAAwB;IAHpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;KAChC,CAAC;IAOO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GANd,wBAAwB,CAwBpC;;ICzBY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["ng://@taiga-ui/kit/directives/project-class/project-class.directive.ts","ng://@taiga-ui/kit/directives/project-class/project-class.module.ts","ng://@taiga-ui/kit/directives/project-class/taiga-ui-kit-directives-project-class.ts"],"sourcesContent":["import {AfterViewChecked, Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n/**\n * A directive for projecting classes from nested children to host\n */\n@Directive({\n selector: '[tuiProjectClass]',\n})\nexport class TuiProjectClassDirective implements AfterViewChecked {\n @Input('tuiProjectClass')\n @tuiDefaultProp()\n classNames: readonly string[] = [];\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngAfterViewChecked(): void {\n if (!this.classNames.length) {\n return;\n }\n\n this.classNames.forEach(className => {\n const hostElement = this.elementRef.nativeElement;\n\n if (hostElement.querySelector(`.${className}`)) {\n hostElement.classList.add(className);\n } else {\n hostElement.classList.remove(className);\n }\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiProjectClassDirective} from './project-class.directive';\n\n@NgModule({\n declarations: [TuiProjectClassDirective],\n exports: [TuiProjectClassDirective],\n})\nexport class TuiProjectClassModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;IAMa,wBAAwB,GAArC,MAAa,wBAAwB;IAKjC,YACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;QAH5E,eAAU,GAAsB,EAAE,CAAC;KAI/B;IAEJ,kBAAkB;QACd,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACzB,OAAO;SACV;QAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS;YAC7B,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;YAElD,IAAI,WAAW,CAAC,aAAa,CAAC,IAAI,SAAS,EAAE,CAAC,EAAE;gBAC5C,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACxC;iBAAM;gBACH,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC3C;SACJ,CAAC,CAAC;KACN;EACJ;;YAlBwD,UAAU,uBAA1D,MAAM,SAAC,UAAU;;AAHtB;IAFC,KAAK,CAAC,iBAAiB,CAAC;IACxB,cAAc,EAAE;4DACkB;AAH1B,wBAAwB;IAHpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;KAChC,CAAC;IAOO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GANd,wBAAwB,CAwBpC;;ICzBY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAJjC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;ACRrC;;;;;;"}
@@ -9,16 +9,16 @@ let TuiUnfinishedValidatorDirective = TuiUnfinishedValidatorDirective_1 = class
9
9
  constructor(injector, message) {
10
10
  this.injector = injector;
11
11
  this.message = message;
12
- this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), this.message || ``);
12
+ this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), this.message || '');
13
13
  }
14
14
  };
15
15
  TuiUnfinishedValidatorDirective.ctorParameters = () => [
16
16
  { type: Injector, decorators: [{ type: Inject, args: [Injector,] }] },
17
- { type: String, decorators: [{ type: Attribute, args: [`tuiUnfinishedValidator`,] }] }
17
+ { type: String, decorators: [{ type: Attribute, args: ['tuiUnfinishedValidator',] }] }
18
18
  ];
19
19
  TuiUnfinishedValidatorDirective = TuiUnfinishedValidatorDirective_1 = __decorate([
20
20
  Directive({
21
- selector: `[tuiUnfinishedValidator]`,
21
+ selector: '[tuiUnfinishedValidator]',
22
22
  providers: [
23
23
  {
24
24
  provide: NG_VALIDATORS,
@@ -28,7 +28,7 @@ TuiUnfinishedValidatorDirective = TuiUnfinishedValidatorDirective_1 = __decorate
28
28
  ],
29
29
  }),
30
30
  __param(0, Inject(Injector)),
31
- __param(1, Attribute(`tuiUnfinishedValidator`))
31
+ __param(1, Attribute('tuiUnfinishedValidator'))
32
32
  ], TuiUnfinishedValidatorDirective);
33
33
 
34
34
  let TuiUnfinishedValidatorModule = class TuiUnfinishedValidatorModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.directive.ts","ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.module.ts","ng://@taiga-ui/kit/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.ts"],"sourcesContent":["import {Attribute, Directive, Inject, Injector} from '@angular/core';\nimport {NG_VALIDATORS, Validator} from '@angular/forms';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {tuiCreateUnfinishedValidator} from '@taiga-ui/kit/validators';\n\n@Directive({\n selector: `[tuiUnfinishedValidator]`,\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: TuiUnfinishedValidatorDirective,\n multi: true,\n },\n ],\n})\nexport class TuiUnfinishedValidatorDirective implements Validator {\n readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n this.message || ``,\n );\n\n constructor(\n @Inject(Injector)\n private readonly injector: Injector,\n @Attribute(`tuiUnfinishedValidator`)\n private readonly message: string | null,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnfinishedValidatorDirective} from './unfinished-validator.directive';\n\n@NgModule({\n declarations: [TuiUnfinishedValidatorDirective],\n exports: [TuiUnfinishedValidatorDirective],\n})\nexport class TuiUnfinishedValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAea,+BAA+B,uCAA5C,MAAa,+BAA+B;IAMxC,YAEqB,QAAkB,EAElB,OAAsB;QAFtB,aAAQ,GAAR,QAAQ,CAAU;QAElB,YAAO,GAAP,OAAO,CAAe;QATlC,aAAQ,GAAG,4BAA4B,CAC5C,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,EACpD,IAAI,CAAC,OAAO,IAAI,EAAE,CACrB,CAAC;KAOE;EACP;;YAJkC,QAAQ,uBADlC,MAAM,SAAC,QAAQ;yCAEf,SAAS,SAAC,wBAAwB;;AAT9B,+BAA+B;IAV3C,SAAS,CAAC;QACP,QAAQ,EAAE,0BAA0B;QACpC,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,iCAA+B;gBAC5C,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;IAQO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAEhB,WAAA,SAAS,CAAC,wBAAwB,CAAC,CAAA;GAT/B,+BAA+B,CAY3C;;ICnBY,4BAA4B,GAAzC,MAAa,4BAA4B;EAAG;AAA/B,4BAA4B;IAJxC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,+BAA+B,CAAC;QAC/C,OAAO,EAAE,CAAC,+BAA+B,CAAC;KAC7C,CAAC;GACW,4BAA4B,CAAG;;ACR5C;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.directive.ts","ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.module.ts","ng://@taiga-ui/kit/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.ts"],"sourcesContent":["import {Attribute, Directive, Inject, Injector} from '@angular/core';\nimport {NG_VALIDATORS, Validator} from '@angular/forms';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {tuiCreateUnfinishedValidator} from '@taiga-ui/kit/validators';\n\n@Directive({\n selector: '[tuiUnfinishedValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: TuiUnfinishedValidatorDirective,\n multi: true,\n },\n ],\n})\nexport class TuiUnfinishedValidatorDirective implements Validator {\n readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n this.message || '',\n );\n\n constructor(\n @Inject(Injector)\n private readonly injector: Injector,\n @Attribute('tuiUnfinishedValidator')\n private readonly message: string | null,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnfinishedValidatorDirective} from './unfinished-validator.directive';\n\n@NgModule({\n declarations: [TuiUnfinishedValidatorDirective],\n exports: [TuiUnfinishedValidatorDirective],\n})\nexport class TuiUnfinishedValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAea,+BAA+B,uCAA5C,MAAa,+BAA+B;IAMxC,YAEqB,QAAkB,EAElB,OAAsB;QAFtB,aAAQ,GAAR,QAAQ,CAAU;QAElB,YAAO,GAAP,OAAO,CAAe;QATlC,aAAQ,GAAG,4BAA4B,CAC5C,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,EACpD,IAAI,CAAC,OAAO,IAAI,EAAE,CACrB,CAAC;KAOE;EACP;;YAJkC,QAAQ,uBADlC,MAAM,SAAC,QAAQ;yCAEf,SAAS,SAAC,wBAAwB;;AAT9B,+BAA+B;IAV3C,SAAS,CAAC;QACP,QAAQ,EAAE,0BAA0B;QACpC,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,iCAA+B;gBAC5C,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;IAQO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAEhB,WAAA,SAAS,CAAC,wBAAwB,CAAC,CAAA;GAT/B,+BAA+B,CAY3C;;ICnBY,4BAA4B,GAAzC,MAAa,4BAA4B;EAAG;AAA/B,4BAA4B;IAJxC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,+BAA+B,CAAC;QAC/C,OAAO,EAAE,CAAC,+BAA+B,CAAC;KAC7C,CAAC;GACW,4BAA4B,CAAG;;ACR5C;;;;;;"}
@@ -6,7 +6,7 @@ let TuiValueAccessorDirective = class TuiValueAccessorDirective {
6
6
  };
7
7
  TuiValueAccessorDirective = __decorate([
8
8
  Directive({
9
- selector: `[tuiValueAccessor]`,
9
+ selector: '[tuiValueAccessor]',
10
10
  providers: [TUI_VALUE_ACCESSOR_PROVIDER],
11
11
  })
12
12
  ], TuiValueAccessorDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["ng://@taiga-ui/kit/directives/value-accessor/value-accessor.directive.ts","ng://@taiga-ui/kit/directives/value-accessor/value-accessor.module.ts","ng://@taiga-ui/kit/directives/value-accessor/taiga-ui-kit-directives-value-accessor.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Directive({\n selector: `[tuiValueAccessor]`,\n providers: [TUI_VALUE_ACCESSOR_PROVIDER],\n})\nexport class TuiValueAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValueAccessorDirective} from './value-accessor.directive';\n\n@NgModule({\n declarations: [TuiValueAccessorDirective],\n exports: [TuiValueAccessorDirective],\n})\nexport class TuiValueAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAOa,yBAAyB,GAAtC,MAAa,yBAAyB;EAAG;AAA5B,yBAAyB;IAJrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;QAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;KAC3C,CAAC;GACW,yBAAyB,CAAG;;ICC5B,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;ACRtC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["ng://@taiga-ui/kit/directives/value-accessor/value-accessor.directive.ts","ng://@taiga-ui/kit/directives/value-accessor/value-accessor.module.ts","ng://@taiga-ui/kit/directives/value-accessor/taiga-ui-kit-directives-value-accessor.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Directive({\n selector: '[tuiValueAccessor]',\n providers: [TUI_VALUE_ACCESSOR_PROVIDER],\n})\nexport class TuiValueAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValueAccessorDirective} from './value-accessor.directive';\n\n@NgModule({\n declarations: [TuiValueAccessorDirective],\n exports: [TuiValueAccessorDirective],\n})\nexport class TuiValueAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAOa,yBAAyB,GAAtC,MAAa,yBAAyB;EAAG;AAA5B,yBAAyB;IAJrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;QAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;KAC3C,CAAC;GACW,yBAAyB,CAAG;;ICC5B,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;ACRtC;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-enums.js","sources":["ng://@taiga-ui/kit/enums/borders.ts","ng://@taiga-ui/kit/enums/dropdown-position.ts","ng://@taiga-ui/kit/enums/file-state.ts","ng://@taiga-ui/kit/enums/marker-icon-mode.ts","ng://@taiga-ui/kit/enums/status.ts","ng://@taiga-ui/kit/enums/step-state.ts","ng://@taiga-ui/kit/enums/text-align.ts","ng://@taiga-ui/kit/enums/taiga-ui-kit-enums.ts"],"sourcesContent":["/**\n * @deprecated use string values\n */\nexport const enum TuiBorders {\n All = `all`,\n TopBottom = `top-bottom`,\n}\n","/**\n * @deprecated use {@link TuiDropdownPositionT}\n */\nexport const enum TuiDropdownPosition {\n Selection = `selection`,\n Word = `word`,\n Tag = `tag`,\n}\n\nexport type TuiDropdownPositionT = 'selection' | 'word' | 'tag';\n","/**\n * @internal\n */\nexport const enum TuiFileState {\n Error = `error`,\n Deleted = `deleted`,\n Loading = `loading`,\n Normal = `normal`,\n}\n\nexport type TuiFileStateT = 'error' | 'deleted' | 'loading' | 'normal';\n","/**\n * @deprecated use join type {@link TuiMarkerIconModeT}\n */\nexport const enum TuiMarkerIconMode {\n Link = `link`,\n Primary = `primary`,\n Warning = `warning`,\n White = `white`,\n Secondary = `secondary`,\n Success = `success`,\n Error = `error`,\n OnDark = `onDark`,\n}\n","/**\n * @deprecated use join type {@link TuiStatusT}\n */\nexport const enum TuiStatus {\n Default = `default`,\n Primary = `primary`,\n Custom = `custom`,\n Success = `success`,\n Error = `error`,\n Warning = `warning`,\n}\n","/**\n * @deprecated use {@link TuiStepStateT}\n */\nexport const enum TuiStepState {\n Normal = `normal`,\n Error = `error`,\n Pass = `pass`,\n}\n\nexport type TuiStepStateT = 'normal' | 'error' | 'pass';\n","/**\n * @deprecated use string values\n */\nexport const enum TuiTextAlign {\n Left = `left`,\n Center = `center`,\n Right = `right`,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;IAGkB;AAAlB,WAAkB,UAAU;IACxB,yBAAW,CAAA;IACX,sCAAwB,CAAA;AAC5B,CAAC,EAHiB,UAAU,KAAV,UAAU;;ACH5B;;;IAGkB;AAAlB,WAAkB,mBAAmB;IACjC,8CAAuB,CAAA;IACvB,oCAAa,CAAA;IACb,kCAAW,CAAA;AACf,CAAC,EAJiB,mBAAmB,KAAnB,mBAAmB;;ACHrC;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AACrB,CAAC,EALiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,iBAAiB;IAC/B,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,sCAAiB,CAAA;AACrB,CAAC,EATiB,iBAAiB,KAAjB,iBAAiB;;ACHnC;;;IAGkB;AAAlB,WAAkB,SAAS;IACvB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,gCAAmB,CAAA;AACvB,CAAC,EAPiB,SAAS,KAAT,SAAS;;ACH3B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACjB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AACnB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-enums.js","sources":["ng://@taiga-ui/kit/enums/borders.ts","ng://@taiga-ui/kit/enums/dropdown-position.ts","ng://@taiga-ui/kit/enums/file-state.ts","ng://@taiga-ui/kit/enums/marker-icon-mode.ts","ng://@taiga-ui/kit/enums/status.ts","ng://@taiga-ui/kit/enums/step-state.ts","ng://@taiga-ui/kit/enums/text-align.ts","ng://@taiga-ui/kit/enums/taiga-ui-kit-enums.ts"],"sourcesContent":["/**\n * @deprecated use string values\n */\nexport const enum TuiBorders {\n All = `all`,\n TopBottom = `top-bottom`,\n}\n","/**\n * @deprecated use {@link TuiDropdownPositionT}\n */\nexport const enum TuiDropdownPosition {\n Selection = `selection`,\n Word = `word`,\n Tag = `tag`,\n}\n\nexport type TuiDropdownPositionT = 'selection' | 'tag' | 'word';\n","/**\n * @internal\n */\nexport const enum TuiFileState {\n Error = `error`,\n Deleted = `deleted`,\n Loading = `loading`,\n Normal = `normal`,\n}\n\nexport type TuiFileStateT = 'deleted' | 'error' | 'loading' | 'normal';\n","/**\n * @deprecated use join type {@link TuiMarkerIconModeT}\n */\nexport const enum TuiMarkerIconMode {\n Link = `link`,\n Primary = `primary`,\n Warning = `warning`,\n White = `white`,\n Secondary = `secondary`,\n Success = `success`,\n Error = `error`,\n OnDark = `onDark`,\n}\n","/**\n * @deprecated use join type {@link TuiStatusT}\n */\nexport const enum TuiStatus {\n Default = `default`,\n Primary = `primary`,\n Custom = `custom`,\n Success = `success`,\n Error = `error`,\n Warning = `warning`,\n}\n","/**\n * @deprecated use {@link TuiStepStateT}\n */\nexport const enum TuiStepState {\n Normal = `normal`,\n Error = `error`,\n Pass = `pass`,\n}\n\nexport type TuiStepStateT = 'error' | 'normal' | 'pass';\n","/**\n * @deprecated use string values\n */\nexport const enum TuiTextAlign {\n Left = `left`,\n Center = `center`,\n Right = `right`,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;IAGkB;AAAlB,WAAkB,UAAU;IACxB,yBAAW,CAAA;IACX,sCAAwB,CAAA;AAC5B,CAAC,EAHiB,UAAU,KAAV,UAAU;;ACH5B;;;IAGkB;AAAlB,WAAkB,mBAAmB;IACjC,8CAAuB,CAAA;IACvB,oCAAa,CAAA;IACb,kCAAW,CAAA;AACf,CAAC,EAJiB,mBAAmB,KAAnB,mBAAmB;;ACHrC;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AACrB,CAAC,EALiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,iBAAiB;IAC/B,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,sCAAiB,CAAA;AACrB,CAAC,EATiB,iBAAiB,KAAjB,iBAAiB;;ACHnC;;;IAGkB;AAAlB,WAAkB,SAAS;IACvB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,gCAAmB,CAAA;AACvB,CAAC,EAPiB,SAAS,KAAT,SAAS;;ACH3B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACjB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AACnB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;;;;"}
@@ -137,7 +137,7 @@ __decorate([
137
137
  ], TuiPrimitiveCalendarRangeComponent.prototype, "dayClick", void 0);
138
138
  TuiPrimitiveCalendarRangeComponent = __decorate([
139
139
  Component({
140
- selector: `tui-primitive-calendar-range`,
140
+ selector: 'tui-primitive-calendar-range',
141
141
  template: "<tui-calendar\n [min]=\"min\"\n [max]=\"max\"\n [month]=\"userViewedMonthFirst\"\n [markerHandler]=\"markerHandler\"\n [maxViewedMonth]=\"cappedUserViewedMonthSecond | tuiMapper: monthOffset:-1\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [showAdjacent]=\"false\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionFirstViewedMonth($event)\"\n></tui-calendar>\n<tui-calendar\n class=\"t-border\"\n [min]=\"min\"\n [max]=\"max\"\n [month]=\"userViewedMonthSecond\"\n [markerHandler]=\"markerHandler\"\n [minViewedMonth]=\"cappedUserViewedMonthFirst | tuiMapper: monthOffset:1\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [showAdjacent]=\"false\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionSecondViewedMonth($event)\"\n></tui-calendar>\n",
142
142
  changeDetection: ChangeDetectionStrategy.OnPush,
143
143
  providers: [TuiDestroyService],
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-internal-primitive-calendar-range.js","sources":["ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.module.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n tuiDefaultProp,\n TuiDestroyService,\n TuiMapper,\n TuiMonth,\n watch,\n} from '@taiga-ui/cdk';\nimport {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core';\nimport {TUI_CALENDAR_DATA_STREAM} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @internal\n */\n@Component({\n selector: `tui-primitive-calendar-range`,\n templateUrl: `./primitive-calendar-range.template.html`,\n styleUrls: [`./primitive-calendar-range.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiPrimitiveCalendarRangeComponent implements OnInit {\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthFirst = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthSecond = TuiMonth.currentLocal().append({month: 1});\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n value: TuiDayRange | null = null;\n\n @Output()\n readonly dayClick = new EventEmitter<TuiDay>();\n\n hoveredItem: TuiDay | null = null;\n\n userViewedMonthFirst: TuiMonth = this.defaultViewedMonthFirst;\n userViewedMonthSecond: TuiMonth = this.defaultViewedMonthSecond;\n\n constructor(\n @Inject(TUI_CALENDAR_DATA_STREAM)\n @Optional()\n valueChanges: Observable<TuiDayRange | null> | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!valueChanges) {\n return;\n }\n\n valueChanges\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(value => {\n this.value = value;\n this.updateViewedMonths();\n });\n }\n\n get cappedUserViewedMonthSecond(): TuiMonth {\n return this.userViewedMonthSecond.monthBefore(this.max)\n ? this.userViewedMonthSecond\n : this.max;\n }\n\n get cappedUserViewedMonthFirst(): TuiMonth {\n return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)\n ? this.userViewedMonthFirst\n : this.userViewedMonthSecond;\n }\n\n monthOffset: TuiMapper<TuiMonth, TuiMonth> = (value, offset: number) =>\n value.append({month: offset});\n\n ngOnInit(): void {\n this.setInitialMonths();\n }\n\n onSectionFirstViewedMonth(month: TuiMonth): void {\n this.userViewedMonthFirst = month;\n\n if (this.userViewedMonthSecond.year < this.userViewedMonthFirst.year) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({\n year: month.year - this.userViewedMonthSecond.year,\n });\n }\n }\n\n onSectionSecondViewedMonth(month: TuiMonth): void {\n this.userViewedMonthSecond = month;\n\n if (this.userViewedMonthFirst.year > this.userViewedMonthSecond.year) {\n this.userViewedMonthFirst = this.userViewedMonthFirst.append({\n year: month.year - this.userViewedMonthFirst.year,\n });\n }\n }\n\n onDayClick(day: TuiDay): void {\n this.dayClick.emit(day);\n }\n\n private setInitialMonths(): void {\n if (!this.value) {\n this.userViewedMonthSecond = this.updatedViewedMonthSecond(\n this.defaultViewedMonthSecond,\n );\n\n this.userViewedMonthFirst = this.updatedViewedMonthFirst(\n this.defaultViewedMonthFirst,\n );\n }\n }\n\n private updatedViewedMonthSecond(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.max)) {\n return this.max;\n }\n\n if (month.monthBefore(this.min)) {\n return this.min.append({month: 1});\n }\n\n return month;\n }\n\n private updatedViewedMonthFirst(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.userViewedMonthSecond)) {\n return this.userViewedMonthSecond.append({month: -1});\n }\n\n if (month.monthSameOrBefore(this.min)) {\n return this.min;\n }\n\n return month;\n }\n\n private updateViewedMonths(): void {\n this.userViewedMonthFirst =\n this.value === null ? this.defaultViewedMonthFirst : this.value.from;\n this.userViewedMonthSecond =\n this.value === null ? this.defaultViewedMonthSecond : this.value.to;\n\n if (this.userViewedMonthFirst.monthSame(this.userViewedMonthSecond)) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({month: 1});\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiCalendarModule, TuiScrollbarModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarRangeComponent} from './primitive-calendar-range.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [TuiMapperPipeModule, TuiScrollbarModule, TuiCalendarModule],\n declarations: [TuiPrimitiveCalendarRangeComponent],\n exports: [TuiPrimitiveCalendarRangeComponent],\n})\nexport class TuiPrimitiveCalendarRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BA;;;IAUa,kCAAkC,GAA/C,MAAa,kCAAkC;IAqC3C,YAGI,YAAmD,EACxB,iBAAoC,EACpC,QAA2B;QAvC1D,wBAAmB,GAA8B,oBAAoB,CAAC;QAItE,kBAAa,GAAqB,0BAA0B,CAAC;QAI7D,4BAAuB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAIlD,6BAAwB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;QAItE,QAAG,GAAG,aAAa,CAAC;QAIpB,QAAG,GAAG,YAAY,CAAC;QAInB,UAAK,GAAuB,IAAI,CAAC;QAGxB,aAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;QAE/C,gBAAW,GAAkB,IAAI,CAAC;QAElC,yBAAoB,GAAa,IAAI,CAAC,uBAAuB,CAAC;QAC9D,0BAA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wBAAwB,CAAC,CAAA;IAChC,WAAA,QAAQ,EAAE,CAAA;IAEV,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GA1CrB,kCAAkC,CAiJ9C;;AClLD;;;IAQa,+BAA+B,GAA5C,MAAa,+BAA+B;EAAG;AAAlC,+BAA+B;IAL3C,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;QACrE,YAAY,EAAE,CAAC,kCAAkC,CAAC;QAClD,OAAO,EAAE,CAAC,kCAAkC,CAAC;KAChD,CAAC;GACW,+BAA+B,CAAG;;ACd/C;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-internal-primitive-calendar-range.js","sources":["ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.module.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n tuiDefaultProp,\n TuiDestroyService,\n TuiMapper,\n TuiMonth,\n watch,\n} from '@taiga-ui/cdk';\nimport {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core';\nimport {TUI_CALENDAR_DATA_STREAM} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @internal\n */\n@Component({\n selector: 'tui-primitive-calendar-range',\n templateUrl: './primitive-calendar-range.template.html',\n styleUrls: ['./primitive-calendar-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiPrimitiveCalendarRangeComponent implements OnInit {\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthFirst = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthSecond = TuiMonth.currentLocal().append({month: 1});\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n value: TuiDayRange | null = null;\n\n @Output()\n readonly dayClick = new EventEmitter<TuiDay>();\n\n hoveredItem: TuiDay | null = null;\n\n userViewedMonthFirst: TuiMonth = this.defaultViewedMonthFirst;\n userViewedMonthSecond: TuiMonth = this.defaultViewedMonthSecond;\n\n constructor(\n @Inject(TUI_CALENDAR_DATA_STREAM)\n @Optional()\n valueChanges: Observable<TuiDayRange | null> | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!valueChanges) {\n return;\n }\n\n valueChanges\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(value => {\n this.value = value;\n this.updateViewedMonths();\n });\n }\n\n get cappedUserViewedMonthSecond(): TuiMonth {\n return this.userViewedMonthSecond.monthBefore(this.max)\n ? this.userViewedMonthSecond\n : this.max;\n }\n\n get cappedUserViewedMonthFirst(): TuiMonth {\n return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)\n ? this.userViewedMonthFirst\n : this.userViewedMonthSecond;\n }\n\n monthOffset: TuiMapper<TuiMonth, TuiMonth> = (value, offset: number) =>\n value.append({month: offset});\n\n ngOnInit(): void {\n this.setInitialMonths();\n }\n\n onSectionFirstViewedMonth(month: TuiMonth): void {\n this.userViewedMonthFirst = month;\n\n if (this.userViewedMonthSecond.year < this.userViewedMonthFirst.year) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({\n year: month.year - this.userViewedMonthSecond.year,\n });\n }\n }\n\n onSectionSecondViewedMonth(month: TuiMonth): void {\n this.userViewedMonthSecond = month;\n\n if (this.userViewedMonthFirst.year > this.userViewedMonthSecond.year) {\n this.userViewedMonthFirst = this.userViewedMonthFirst.append({\n year: month.year - this.userViewedMonthFirst.year,\n });\n }\n }\n\n onDayClick(day: TuiDay): void {\n this.dayClick.emit(day);\n }\n\n private setInitialMonths(): void {\n if (!this.value) {\n this.userViewedMonthSecond = this.updatedViewedMonthSecond(\n this.defaultViewedMonthSecond,\n );\n\n this.userViewedMonthFirst = this.updatedViewedMonthFirst(\n this.defaultViewedMonthFirst,\n );\n }\n }\n\n private updatedViewedMonthSecond(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.max)) {\n return this.max;\n }\n\n if (month.monthBefore(this.min)) {\n return this.min.append({month: 1});\n }\n\n return month;\n }\n\n private updatedViewedMonthFirst(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.userViewedMonthSecond)) {\n return this.userViewedMonthSecond.append({month: -1});\n }\n\n if (month.monthSameOrBefore(this.min)) {\n return this.min;\n }\n\n return month;\n }\n\n private updateViewedMonths(): void {\n this.userViewedMonthFirst =\n this.value === null ? this.defaultViewedMonthFirst : this.value.from;\n this.userViewedMonthSecond =\n this.value === null ? this.defaultViewedMonthSecond : this.value.to;\n\n if (this.userViewedMonthFirst.monthSame(this.userViewedMonthSecond)) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({month: 1});\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiCalendarModule, TuiScrollbarModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarRangeComponent} from './primitive-calendar-range.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [TuiMapperPipeModule, TuiScrollbarModule, TuiCalendarModule],\n declarations: [TuiPrimitiveCalendarRangeComponent],\n exports: [TuiPrimitiveCalendarRangeComponent],\n})\nexport class TuiPrimitiveCalendarRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BA;;;IAUa,kCAAkC,GAA/C,MAAa,kCAAkC;IAqC3C,YAGI,YAAmD,EACxB,iBAAoC,EACpC,QAA2B;QAvC1D,wBAAmB,GAA8B,oBAAoB,CAAC;QAItE,kBAAa,GAAqB,0BAA0B,CAAC;QAI7D,4BAAuB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAIlD,6BAAwB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;QAItE,QAAG,GAAG,aAAa,CAAC;QAIpB,QAAG,GAAG,YAAY,CAAC;QAInB,UAAK,GAAuB,IAAI,CAAC;QAGxB,aAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;QAE/C,gBAAW,GAAkB,IAAI,CAAC;QAElC,yBAAoB,GAAa,IAAI,CAAC,uBAAuB,CAAC;QAC9D,0BAAqB,GAAa,IAAI,CAAC,wBAAwB,CAAC;QAiChE,gBAAW,GAAkC,CAAC,KAAK,EAAE,MAAc,KAC/D,KAAK,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAC;QAzB9B,IAAI,CAAC,YAAY,EAAE;YACf,OAAO;SACV;QAED,YAAY;aACP,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aACnD,SAAS,CAAC,KAAK;YACZ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,kBAAkB,EAAE,CAAC;SAC7B,CAAC,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W,+BAA+B,CAAG;;ACd/C;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-field-error.js","sources":["ng://@taiga-ui/kit/pipes/field-error/field-error-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error-content-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error.module.ts","ng://@taiga-ui/kit/pipes/field-error/taiga-ui-kit-pipes-field-error.ts"],"sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Self} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {isObservable, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n\n// @dynamic\n@Pipe({\n name: `tuiFieldError`,\n pure: false,\n})\nexport class TuiFieldErrorPipe implements PipeTransform, ControlValueAccessor {\n private order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n PolymorpheusContent | Observable<PolymorpheusContent>\n >,\n ) {\n if (this.ngControl && !this.ngControl.valueAccessor) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n transform(order: readonly string[]): Observable<TuiValidationError | null> {\n this.order = order;\n\n return this.computedError;\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError> | null {\n const {errorId} = this;\n\n if (!errorId) {\n return null;\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control?.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control?.touched;\n }\n\n private get control(): AbstractControl | null {\n return (\n this.ngControl?.control ||\n this.formArrayName?.control ||\n this.formGroupName?.control ||\n this.formGroup?.control ||\n null\n );\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || ``;\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: PolymorpheusContent | Observable<PolymorpheusContent>,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === `string`) {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || ``, firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || ``, firstError));\n }\n}\n","import {AsyncPipe} from '@angular/common';\nimport {Inject, Injector, OnDestroy, Pipe, PipeTransform} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n// @dynamic\n@Pipe({\n name: `tuiFieldErrorContent`,\n pure: false,\n})\nexport class TuiFieldErrorContentPipe implements PipeTransform, OnDestroy {\n private readonly localInjector = Injector.create({\n providers: [{provide: AsyncPipe}, {provide: TuiFieldErrorPipe}],\n parent: this.injector,\n });\n\n private readonly asyncPipe = this.localInjector.get(AsyncPipe);\n private readonly fieldErrorPipe = this.localInjector.get(TuiFieldErrorPipe);\n\n constructor(@Inject(Injector) private readonly injector: Injector) {}\n\n transform(order: readonly string[]): PolymorpheusContent {\n return this.getErrorContent(order);\n }\n\n ngOnDestroy(): void {\n this.asyncPipe.ngOnDestroy();\n }\n\n private getErrorContent(order: readonly string[]): PolymorpheusContent {\n const error = this.asyncPipe.transform(this.fieldErrorPipe.transform(order));\n\n if (!error) {\n return ``;\n }\n\n return typeof error.message === `function`\n ? error.message(error.context)\n : error.message;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFieldErrorContentPipe} from './field-error-content-pipe';\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n@NgModule({\n declarations: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n exports: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n})\nexport class TuiFieldErrorPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAeA,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB;IAKa,iBAAiB,GAA9B,MAAa,iBAAiB;IAG1B,YAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3B,kBAAa,GAAb,aAAa,CAAsB;QAInC,kBAAa,GAAb,aAAa,CAAsB;QAInC,cAAS,GAAT,SAAS,CAA2B;QAEpC,qBAAgB,GAAhB,gBAAgB,CAGhC;QAvBG,UAAK,GAAsB,EAAE,CAAC;QAyBlC,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE;YACjD,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;SACvC;KACJ;IAED,SAAS,CAAC,KAAwB;QAC9B,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CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAE7E,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,EAAE,CAAC;SACb;QAED,OAAO,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU;cACpC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;cAC5B,KAAK,CAAC,OAAO,CAAC;KACvB;EACJ;;YArB4D,QAAQ,uBAApD,MAAM,SAAC,QAAQ;;AATnB,wBAAwB;IAJpC,IAAI,CAAC;QACF,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,KAAK;KACd,CAAC;IAUe,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GATpB,wBAAwB,CA8BpC;;IChCY,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IAJnC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;QAC3D,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;KACzD,CAAC;GACW,uBAAuB,CAAG;;ACTvC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-field-error.js","sources":["ng://@taiga-ui/kit/pipes/field-error/field-error-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error-content-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error.module.ts","ng://@taiga-ui/kit/pipes/field-error/taiga-ui-kit-pipes-field-error.ts"],"sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Self} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {isObservable, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n\n// @dynamic\n@Pipe({\n name: `tuiFieldError`,\n pure: false,\n})\nexport class TuiFieldErrorPipe implements PipeTransform, ControlValueAccessor {\n private order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n Observable<PolymorpheusContent> | PolymorpheusContent\n >,\n ) {\n if (this.ngControl && !this.ngControl.valueAccessor) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n transform(order: readonly string[]): Observable<TuiValidationError | null> {\n this.order = order;\n\n return this.computedError;\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError> | null {\n const {errorId} = this;\n\n if (!errorId) {\n return null;\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control?.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control?.touched;\n }\n\n private get control(): AbstractControl | null {\n return (\n this.ngControl?.control ||\n this.formArrayName?.control ||\n this.formGroupName?.control ||\n this.formGroup?.control ||\n null\n );\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || ``;\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: Observable<PolymorpheusContent> | PolymorpheusContent,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === `string`) {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || ``, firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || ``, firstError));\n }\n}\n","import {AsyncPipe} from '@angular/common';\nimport {Inject, Injector, OnDestroy, Pipe, PipeTransform} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n// @dynamic\n@Pipe({\n name: `tuiFieldErrorContent`,\n pure: false,\n})\nexport class TuiFieldErrorContentPipe implements PipeTransform, OnDestroy {\n private readonly localInjector = Injector.create({\n providers: [{provide: AsyncPipe}, {provide: TuiFieldErrorPipe}],\n parent: this.injector,\n });\n\n private readonly asyncPipe = this.localInjector.get(AsyncPipe);\n private readonly fieldErrorPipe = this.localInjector.get(TuiFieldErrorPipe);\n\n constructor(@Inject(Injector) private readonly injector: Injector) {}\n\n transform(order: readonly string[]): PolymorpheusContent {\n return this.getErrorContent(order);\n }\n\n ngOnDestroy(): void {\n this.asyncPipe.ngOnDestroy();\n }\n\n private getErrorContent(order: readonly string[]): PolymorpheusContent {\n const error = this.asyncPipe.transform(this.fieldErrorPipe.transform(order));\n\n if (!error) {\n return ``;\n }\n\n return typeof error.message === `function`\n ? error.message(error.context)\n : error.message;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFieldErrorContentPipe} from './field-error-content-pipe';\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n@NgModule({\n declarations: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n exports: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n})\nexport class TuiFieldErrorPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAeA,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB;IAKa,iBAAiB,GAA9B,MAAa,iBAAiB;IAG1B,YAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3B,kBAAa,GAAb,aAAa,CAAsB;QAInC,kBAAa,GAAb,aAAa,CAAsB;QAInC,cAAS,GAAT,SAAS,CAA2B;QAEpC,qBAAgB,GAAhB,gBAAgB,CAGhC;QAvBG,UAAK,GAAsB,EAAE,CAAC;QAyBlC,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE;YACjD,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;SACvC;KACJ;IAED,SAAS,CAAC,KAAwB;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,OAAO,IAAI,CAAC,aAAa,CAAC;KAC7B;IAED,IAAI,aAAa;QACb,OAAO,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC;KACnE;IAED,gBAAgB,MAAW;IAE3B,iBAAiB,MAAW;IAE5B,gBAAgB,MAAW;IAE3B,UAAU,MAAW;IAErB,IAAY,KAAK;QACb,MAAM,EAAC,OAAO,EAAC,GAAG,IAAI,CAAC;QAEvB,IAAI,CAAC,OAAO,EAAE;YACV,OAAO,IAAI,CAAC;SACf;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAEpD,OA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C,iBAAiB,EAAE,wBAAwB,CAAC;QAC3D,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;KACzD,CAAC;GACW,uBAAuB,CAAG;;ACTvC;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-filter-by-input.js","sources":["ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input.base.ts","ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input.pipe.ts","ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts","ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input.module.ts","ng://@taiga-ui/kit/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport {\n isPresent,\n TuiFocusableElementAccessor,\n tuiPure,\n TuiStringHandler,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {isFlat} from '@taiga-ui/kit/utils';\n\nexport type ArrayElement<A> = A extends ReadonlyArray<infer T>\n ? A extends ReadonlyArray<ReadonlyArray<infer G>>\n ? G\n : T\n : never;\n\n/**\n * @deprecated\n * TODO: 3.0 replace with {@link AbstractTuiFilterByInput}\n */\nexport abstract class TuiFilterByInputBase {\n protected abstract readonly accessor: TuiFocusableElementAccessor;\n\n protected get query(): string {\n return this.accessor.nativeFocusableElement\n ? (this.accessor.nativeFocusableElement as HTMLInputElement).value || ``\n : ``;\n }\n\n @tuiPure\n protected filter<T>(\n items: readonly T[] | ReadonlyArray<readonly T[]> | null,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): readonly T[] | ReadonlyArray<readonly T[]> | null {\n if (!items) {\n return null;\n }\n\n return isFlat(items)\n ? this.filterFlat(items, matcher, stringify, query)\n : this.filter2d(items, matcher, stringify, query);\n }\n\n private filterFlat<T>(\n items: readonly T[],\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): readonly T[] {\n const match = this.getMatch(items, stringify, query);\n\n return isPresent(match)\n ? items\n : items.filter(item => matcher(item, query, stringify));\n }\n\n private filter2d<T>(\n items: ReadonlyArray<readonly T[]>,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): ReadonlyArray<readonly T[]> {\n const match = items.find(item =>\n isPresent(this.getMatch(item, stringify, query)),\n );\n\n return isPresent(match)\n ? items\n : items.map(inner => this.filterFlat(inner, matcher, stringify, query));\n }\n\n private getMatch<T>(\n items: readonly T[],\n stringify: TuiStringHandler<T>,\n query: string,\n ): T | undefined {\n return items.find(\n item => stringify(item).toLocaleLowerCase() === query.toLocaleLowerCase(),\n );\n }\n}\n\nexport abstract class AbstractTuiFilterByInput extends TuiFilterByInputBase {}\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\n\nimport {AbstractTuiFilterByInput, ArrayElement} from './filter-by-input.base';\n\n@Pipe({\n name: `tuiFilterByInput`,\n pure: false,\n})\nexport class TuiFilterByInputPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringMatcher<ArrayElement<T>>): T;\n transform<T>(\n items: readonly T[] | ReadonlyArray<readonly T[]> | null,\n matcher: TuiStringMatcher<T> = TUI_DEFAULT_MATCHER,\n ): readonly T[] | ReadonlyArray<readonly T[]> | null {\n return this.filter(items, matcher, TUI_DEFAULT_STRINGIFY, this.query);\n }\n}\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\n\nimport {AbstractTuiFilterByInput, ArrayElement} from './filter-by-input.base';\n\n@Pipe({\n name: `tuiFilterByInputWith`,\n pure: false,\n})\nexport class TuiFilterByInputWithPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringHandler<ArrayElement<T>>): T;\n transform<T>(\n items: readonly T[] | ReadonlyArray<readonly T[]> | null,\n stringify: TuiStringHandler<T>,\n ): readonly T[] | ReadonlyArray<readonly T[]> | null {\n return this.filter(items, TUI_DEFAULT_MATCHER, stringify, this.query);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFilterByInputPipe} from './filter-by-input.pipe';\nimport {TuiFilterByInputWithPipe} from './filter-by-input-with.pipe';\n\n@NgModule({\n declarations: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n exports: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n})\nexport class TuiFilterByInputPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAgBA;;;;MAIsB,oBAAoB;IAGtC,IAAc,KAAK;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,sBAAsB;cACpC,IAAI,CAAC,QAAQ,CAAC,sBAA2C,CAAC,KAAK,IAAI,EAAE;cACtE,EAAE,CAAC;KACZ;IAGS,MAAM,CACZ,KAAwD,EACxD,OAA4B,EAC5B,SAA8B,EAC9B,KAAa;QAEb,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,IAAI,CAAC;SACf;QAED,OAAO,MAAM,CAAC,KAAK,CAAC;cACd,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC;cACjD,IAAI,CAAC,QAAQ,CAAC,KAAK,E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,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KACzE;EACJ;;4CAbQ,MAAM,SAAC,2BAA2B;;AAL9B,oBAAoB;IAJhC,IAAI,CAAC;QACF,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,KAAK;KACd,CAAC;IAMO,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAL/B,oBAAoB,CAkBhC;;ICnBY,wBAAwB,GAArC,MAAa,wBACT,SAAQ,wBAAwB;IAGhC,YAEuB,QAAqC;QAExD,KAAK,EAAE,CAAC;QAFW,aAAQ,GAAR,QAAQ,CAA6B;KAG3D;IAGD,SAAS,CACL,KAAwD,EACxD,SAA8B;QAE9B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KACzE;EACJ;;4CAbQ,MAAM,SAAC,2BAA2B;;AAL9B,wBAAwB;IAJpC,IAAI,CAAC;QACF,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,KAAK;KACd,CAAC;IAMO,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAL/B,wBAAwB,CAkBpC;;ICvBY,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IAJtC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;QAC9D,OAAO,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;KAC5D,CAAC;GACW,0BAA0B,CAAG;;ACT1C;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-filter-by-input.js","sources":["ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input.base.ts","ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input.pipe.ts","ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts","ng://@taiga-ui/kit/pipes/filter-by-input/filter-by-input.module.ts","ng://@taiga-ui/kit/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport {\n isPresent,\n TuiFocusableElementAccessor,\n tuiPure,\n TuiStringHandler,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\nimport {isFlat} from '@taiga-ui/kit/utils';\n\nexport type ArrayElement<A> = A extends ReadonlyArray<infer T>\n ? A extends ReadonlyArray<ReadonlyArray<infer G>>\n ? G\n : T\n : never;\n\n/**\n * @deprecated\n * TODO: 3.0 replace with {@link AbstractTuiFilterByInput}\n */\nexport abstract class TuiFilterByInputBase {\n protected abstract readonly accessor: TuiFocusableElementAccessor;\n\n protected get query(): string {\n return this.accessor.nativeFocusableElement\n ? (this.accessor.nativeFocusableElement as HTMLInputElement).value || ``\n : ``;\n }\n\n @tuiPure\n protected filter<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n if (!items) {\n return null;\n }\n\n return isFlat(items)\n ? this.filterFlat(items, matcher, stringify, query)\n : this.filter2d(items, matcher, stringify, query);\n }\n\n private filterFlat<T>(\n items: readonly T[],\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): readonly T[] {\n const match = this.getMatch(items, stringify, query);\n\n return isPresent(match)\n ? items\n : items.filter(item => matcher(item, query, stringify));\n }\n\n private filter2d<T>(\n items: ReadonlyArray<readonly T[]>,\n matcher: TuiStringMatcher<T>,\n stringify: TuiStringHandler<T>,\n query: string,\n ): ReadonlyArray<readonly T[]> {\n const match = items.find(item =>\n isPresent(this.getMatch(item, stringify, query)),\n );\n\n return isPresent(match)\n ? items\n : items.map(inner => this.filterFlat(inner, matcher, stringify, query));\n }\n\n private getMatch<T>(\n items: readonly T[],\n stringify: TuiStringHandler<T>,\n query: string,\n ): T | undefined {\n return items.find(\n item => stringify(item).toLocaleLowerCase() === query.toLocaleLowerCase(),\n );\n }\n}\n\nexport abstract class AbstractTuiFilterByInput extends TuiFilterByInputBase {}\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringMatcher,\n} from '@taiga-ui/cdk';\n\nimport {AbstractTuiFilterByInput, ArrayElement} from './filter-by-input.base';\n\n@Pipe({\n name: `tuiFilterByInput`,\n pure: false,\n})\nexport class TuiFilterByInputPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringMatcher<ArrayElement<T>>): T;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n matcher: TuiStringMatcher<T> = TUI_DEFAULT_MATCHER,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n return this.filter(items, matcher, TUI_DEFAULT_STRINGIFY, this.query);\n }\n}\n","import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {\n TUI_DEFAULT_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\n\nimport {AbstractTuiFilterByInput, ArrayElement} from './filter-by-input.base';\n\n@Pipe({\n name: `tuiFilterByInputWith`,\n pure: false,\n})\nexport class TuiFilterByInputWithPipe\n extends AbstractTuiFilterByInput\n implements PipeTransform\n{\n constructor(\n @Inject(TUI_FOCUSABLE_ITEM_ACCESSOR)\n protected readonly accessor: TuiFocusableElementAccessor,\n ) {\n super();\n }\n\n transform<T>(items: T, matcher?: TuiStringHandler<ArrayElement<T>>): T;\n transform<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[] | null,\n stringify: TuiStringHandler<T>,\n ): ReadonlyArray<readonly T[]> | readonly T[] | null {\n return this.filter(items, TUI_DEFAULT_MATCHER, stringify, this.query);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFilterByInputPipe} from './filter-by-input.pipe';\nimport {TuiFilterByInputWithPipe} from './filter-by-input-with.pipe';\n\n@NgModule({\n declarations: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n exports: [TuiFilterByInputPipe, TuiFilterByInputWithPipe],\n})\nexport class TuiFilterByInputPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAgBA;;;;MAIsB,oBAAoB;IAGtC,IAAc,KAAK;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,sBAAsB;cACpC,IAAI,CAAC,QAAQ,CAAC,sBAA2C,CAAC,KAAK,IAAI,EAAE;cACtE,EAAE,CAAC;KACZ;IAGS,MAAM,CACZ,KAAwD,EACxD,OAA4B,EAC5B,SAA8B,EAC9B,KAAa;QAEb,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,IAAI,CAAC;SACf;QAED,OAAO,MAAM,CAAC,KAAK,CAAC;cACd,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC;cACjD,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;KACzD;IAEO,UAAU,CACd,KAAmB,EACnB,OAA4B,EAC5B,SAA8B,EAC9B,KAAa;QAEb,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAErD,OAAO,SAAS,CAAC,KAAK,CAAC;cACjB,KAAK;cACL,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;KAC/D;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,KAAK,EAAE,CAAC;QAFW,aAAQ,GAAR,QAAQ,CAA6B;KAG3D;IAGD,SAAS,CACL,KAAwD,EACxD,SAA8B;QAE9B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;KACzE;EACJ;;4CAbQ,MAAM,SAAC,2BAA2B;;AAL9B,wBAAwB;IAJpC,IAAI,CAAC;QACF,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,KAAK;KACd,CAAC;IAMO,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAL/B,wBAAwB,CAkBpC;;ICvBY,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IAJtC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;QAC9D,OAAO,EAAE,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;KAC5D,CAAC;GACW,0BAA0B,CAAG;;ACT1C;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-stringify.js","sources":["ng://@taiga-ui/kit/pipes/stringify/stringify.pipe.ts","ng://@taiga-ui/kit/pipes/stringify/stringify.module.ts","ng://@taiga-ui/kit/pipes/stringify/taiga-ui-kit-pipes-stringify.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\n\n@Pipe({\n name: `tuiStringify`,\n})\nexport class TuiStringifyPipe implements PipeTransform {\n transform<K extends string>(\n key: K,\n ): TuiStringHandler<Readonly<Record<K, unknown> & Record<any, any>>> {\n return value => String(value[key] ?? ``);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiStringifyPipe} from './stringify.pipe';\n\n@NgModule({\n declarations: [TuiStringifyPipe],\n exports: [TuiStringifyPipe],\n})\nexport class TuiStringifyPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAMa,gBAAgB,GAA7B,MAAa,gBAAgB;IACzB,SAAS,CACL,GAAM;QAEN,OAAO,KAAK,cAAI,OAAA,MAAM,OAAC,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAA,EAAA,CAAC;KAC5C;EACJ;AANY,gBAAgB;IAH5B,IAAI,CAAC;QACF,IAAI,EAAE,cAAc;KACvB,CAAC;GACW,gBAAgB,CAM5B;;ICJY,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,sBAAsB,CAAG;;ACRtC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-stringify.js","sources":["ng://@taiga-ui/kit/pipes/stringify/stringify.pipe.ts","ng://@taiga-ui/kit/pipes/stringify/stringify.module.ts","ng://@taiga-ui/kit/pipes/stringify/taiga-ui-kit-pipes-stringify.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\n\n@Pipe({\n name: `tuiStringify`,\n})\nexport class TuiStringifyPipe implements PipeTransform {\n transform<K extends string>(\n key: K,\n ): TuiStringHandler<Readonly<Record<any, any> & Record<K, unknown>>> {\n return value => String(value[key] ?? ``);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiStringifyPipe} from './stringify.pipe';\n\n@NgModule({\n declarations: [TuiStringifyPipe],\n exports: [TuiStringifyPipe],\n})\nexport class TuiStringifyPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAMa,gBAAgB,GAA7B,MAAa,gBAAgB;IACzB,SAAS,CACL,GAAM;QAEN,OAAO,KAAK,cAAI,OAAA,MAAM,OAAC,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAA,EAAA,CAAC;KAC5C;EACJ;AANY,gBAAgB;IAH5B,IAAI,CAAC;QACF,IAAI,EAAE,cAAc;KACvB,CAAC;GACW,gBAAgB,CAM5B;;ICJY,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAJlC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,sBAAsB,CAAG;;ACRtC;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-tokens.js","sources":["ng://@taiga-ui/kit/tokens/calendar-data-stream.ts","ng://@taiga-ui/kit/tokens/date-inputs-value-transformers.ts","ng://@taiga-ui/kit/tokens/i18n.ts","ng://@taiga-ui/kit/tokens/items-handlers.ts","ng://@taiga-ui/kit/tokens/mobile-aware.ts","ng://@taiga-ui/kit/tokens/mobile-calendar.ts","ng://@taiga-ui/kit/tokens/month-formatter.ts","ng://@taiga-ui/kit/tokens/tab-margin.ts","ng://@taiga-ui/kit/tokens/tag-status.ts","ng://@taiga-ui/kit/tokens/validation-errors.ts","ng://@taiga-ui/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CALENDAR_DATA_STREAM = new InjectionToken<\n Observable<TuiDay | TuiDayRange | null>\n>(`Stream that emits calendar data change`);\n","import {InjectionToken} from '@angular/core';\nimport {TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime} from '@taiga-ui/cdk';\n\nexport const TUI_DATE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDay | null>\n>(`Control value transformer of TuiDay to custom value format for InputDate* components`);\n\nexport const TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDayRange | null>\n>(`Control value transformer for InputDateRange component`);\n\nexport const TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<[TuiDay | null, TuiTime | null]>\n>(`Control value transformer for InputDateTime component`);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDateMode} from '@taiga-ui/cdk';\nimport {extractI18n, TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CANCEL_WORD = new InjectionToken(`i18n 'cancel' word`, {\n factory: extractI18n(`cancel`),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(`i18n 'done' word`, {\n factory: extractI18n(`done`),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(`i18n 'more' word`, {\n factory: extractI18n(`more`),\n});\n\nexport const TUI_HIDE_TEXT = new InjectionToken(`i18n 'hide' word`, {\n factory: extractI18n(`hide`),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(`i18n 'show all' word`, {\n factory: extractI18n(`showAll`),\n});\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(`i18n 'Other date' text`, {\n factory: extractI18n(`otherDate`),\n});\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n `choose day or range i18n texts`,\n {\n factory: extractI18n(`mobileCalendarTexts`),\n },\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(`from and to i18n texts`, {\n factory: extractI18n(`range`),\n});\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(`plus and minus i18n texts`, {\n factory: extractI18n(`countTexts`),\n});\n\nexport const TUI_TIME_TEXTS = new InjectionToken(`time i18n texts`, {\n factory: extractI18n(`time`),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Observable<Record<TuiDateMode, string>>>(\n `date format i18n texts`,\n {\n factory: extractI18n(`dateTexts`),\n },\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n `short bytes, kilobytes and megabytes i18n texts`,\n {\n factory: extractI18n(`digitalInformationUnits`),\n },\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken(`copy i18n texts`, {\n factory: extractI18n(`copyTexts`),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken(`password i18n texts`, {\n factory: extractI18n(`passwordTexts`),\n});\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken(`short calendar months i18n`, {\n factory: extractI18n(`shortCalendarMonths`),\n});\n\nexport const TUI_FILE_TEXTS = new InjectionToken(`file i18n texts`, {\n factory: extractI18n(`fileTexts`),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken(`pagination i18n texts`, {\n factory: extractI18n(`pagination`),\n});\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken(`tui-input-file i18n texts`, {\n factory: extractI18n(`inputFileTexts`),\n});\n\nexport const TUI_COUNTRIES: InjectionToken<\n Observable<Record<TuiCountryIsoCode, string>>\n> = new InjectionToken(`Localized countries names`, {\n factory: extractI18n(`countries`),\n});\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TuiBooleanHandler,\n TuiIdentityMatcher,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\n\nexport interface TuiItemsHandlers<T> {\n readonly stringify: TuiStringHandler<T>;\n readonly identityMatcher: TuiIdentityMatcher<T>;\n readonly disabledItemHandler: TuiBooleanHandler<T>;\n}\n\nexport const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown> = {\n stringify: TUI_DEFAULT_STRINGIFY,\n identityMatcher: TUI_DEFAULT_IDENTITY_MATCHER,\n disabledItemHandler: ALWAYS_FALSE_HANDLER,\n};\n\nexport const TUI_ITEMS_HANDLERS = new InjectionToken<TuiItemsHandlers<unknown>>(\n `Default items handlers for components`,\n {\n factory: () => TUI_DEFAULT_ITEMS_HANDLERS,\n },\n);\n\nexport const tuiItemsHandlersProvider: <T>(\n options: Partial<TuiItemsHandlers<T>>,\n) => ValueProvider = <T>(options: Partial<TuiItemsHandlers<T>>) => ({\n provide: TUI_ITEMS_HANDLERS,\n useValue: {...TUI_DEFAULT_ITEMS_HANDLERS, ...options},\n});\n","import {InjectionToken} from '@angular/core';\n\n/** @deprecated use {@link TuiMobileTabsDirective} from @taiga-ui/addon-mobile */\nexport const TUI_MOBILE_AWARE = new InjectionToken<boolean>(\n `A flag enabling mobile-specific behavior for supporting components`,\n {\n factory: () => false,\n },\n);\n","import {InjectionToken, Type} from '@angular/core';\n\nexport const TUI_MOBILE_CALENDAR = new InjectionToken<Type<unknown>>(\n `A component for mobile data picker`,\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiHandler, TuiMonth} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MONTH_FORMATTER = new InjectionToken<\n TuiHandler<TuiMonth | null, Observable<string>>\n>(`A function to get localized formatted month`);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_TAB_MARGIN = new InjectionToken<number>(`Margin between tabs`, {\n factory: () => 24,\n});\n","import {InjectionToken} from '@angular/core';\nimport {TuiStatus} from '@taiga-ui/kit/enums';\n\n// TODO: 3.0 use TUI_TAG_OPTIONS instead of it\nexport const TUI_TAG_STATUS = new InjectionToken<TuiStatus>(\n `Status for tags inside InputTag component`,\n {\n factory: () => TuiStatus.Primary,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nexport const TUI_VALIDATION_ERRORS = new InjectionToken<\n Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>\n>(`Validation errors`, {\n factory: () => ({}),\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAIa,wBAAwB,GAAG,IAAI,cAAc,CAExD,wCAAwC;;MCH7B,0BAA0B,GAAG,IAAI,cAAc,CAE1D,sFAAsF,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;CACxD;;AChCD;MACa,gBAAgB,GAAG,IAAI,cAAc,CAC9C,oEAAoE,EACpE;IACI,OAAO,EAAE,MAAM,KAAK;CACvB;;MCLQ,mBAAmB,GAAG,IAAI,cAAc,CACjD,oCAAoC;;MCC3B,mBAAmB,GAAG,IAAI,cAAc,CAEnD,6CAA6C;;MCJlC,cAAc,GAAG,IAAI,cAAc,CAAS,qBAAqB,EAAE;IAC5E,OAAO,EAAE,MAAM,EAAE;CACpB;;ACDD;MACa,cAAc,GAAG,IAAI,cAAc,CAC5C,2CAA2C,EAC3C;IACI,OAAO,EAAE;CACZ;;MCJQ,qBAAqB,GAAG,IAAI,cAAc,CAErD,mBAAmB,EAAE;IACnB,OAAO,EAAE,OAAO,EAAE,CAAC;CACtB;;ACRD;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-tokens.js","sources":["ng://@taiga-ui/kit/tokens/calendar-data-stream.ts","ng://@taiga-ui/kit/tokens/date-inputs-value-transformers.ts","ng://@taiga-ui/kit/tokens/i18n.ts","ng://@taiga-ui/kit/tokens/items-handlers.ts","ng://@taiga-ui/kit/tokens/mobile-aware.ts","ng://@taiga-ui/kit/tokens/mobile-calendar.ts","ng://@taiga-ui/kit/tokens/month-formatter.ts","ng://@taiga-ui/kit/tokens/tab-margin.ts","ng://@taiga-ui/kit/tokens/tag-status.ts","ng://@taiga-ui/kit/tokens/validation-errors.ts","ng://@taiga-ui/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CALENDAR_DATA_STREAM = new InjectionToken<\n Observable<TuiDay | TuiDayRange | null>\n>(`Stream that emits calendar data change`);\n","import {InjectionToken} from '@angular/core';\nimport {TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime} from '@taiga-ui/cdk';\n\nexport const TUI_DATE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDay | null>\n>(`Control value transformer of TuiDay to custom value format for InputDate* components`);\n\nexport const TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<TuiDayRange | null>\n>(`Control value transformer for InputDateRange component`);\n\nexport const TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiControlValueTransformer<[TuiDay | null, TuiTime | null]>\n>(`Control value transformer for InputDateTime component`);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDateMode} from '@taiga-ui/cdk';\nimport {extractI18n, TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {Observable} from 'rxjs';\n\nexport const TUI_CANCEL_WORD = new InjectionToken(`i18n 'cancel' word`, {\n factory: extractI18n(`cancel`),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(`i18n 'done' word`, {\n factory: extractI18n(`done`),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(`i18n 'more' word`, {\n factory: extractI18n(`more`),\n});\n\nexport const TUI_HIDE_TEXT = new InjectionToken(`i18n 'hide' word`, {\n factory: extractI18n(`hide`),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(`i18n 'show all' word`, {\n factory: extractI18n(`showAll`),\n});\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(`i18n 'Other date' text`, {\n factory: extractI18n(`otherDate`),\n});\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n `choose day or range i18n texts`,\n {\n factory: extractI18n(`mobileCalendarTexts`),\n },\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(`from and to i18n texts`, {\n factory: extractI18n(`range`),\n});\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(`plus and minus i18n texts`, {\n factory: extractI18n(`countTexts`),\n});\n\nexport const TUI_TIME_TEXTS = new InjectionToken(`time i18n texts`, {\n factory: extractI18n(`time`),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Observable<Record<TuiDateMode, string>>>(\n `date format i18n texts`,\n {\n factory: extractI18n(`dateTexts`),\n },\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n `short bytes, kilobytes and megabytes i18n texts`,\n {\n factory: extractI18n(`digitalInformationUnits`),\n },\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken(`copy i18n texts`, {\n factory: extractI18n(`copyTexts`),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken(`password i18n texts`, {\n factory: extractI18n(`passwordTexts`),\n});\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken(`short calendar months i18n`, {\n factory: extractI18n(`shortCalendarMonths`),\n});\n\nexport const TUI_FILE_TEXTS = new InjectionToken(`file i18n texts`, {\n factory: extractI18n(`fileTexts`),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken(`pagination i18n texts`, {\n factory: extractI18n(`pagination`),\n});\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken(`tui-input-file i18n texts`, {\n factory: extractI18n(`inputFileTexts`),\n});\n\nexport const TUI_COUNTRIES: InjectionToken<\n Observable<Record<TuiCountryIsoCode, string>>\n> = new InjectionToken(`Localized countries names`, {\n factory: extractI18n(`countries`),\n});\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_DEFAULT_STRINGIFY,\n TuiBooleanHandler,\n TuiIdentityMatcher,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\n\nexport interface TuiItemsHandlers<T> {\n readonly stringify: TuiStringHandler<T>;\n readonly identityMatcher: TuiIdentityMatcher<T>;\n readonly disabledItemHandler: TuiBooleanHandler<T>;\n}\n\nexport const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown> = {\n stringify: TUI_DEFAULT_STRINGIFY,\n identityMatcher: TUI_DEFAULT_IDENTITY_MATCHER,\n disabledItemHandler: ALWAYS_FALSE_HANDLER,\n};\n\nexport const TUI_ITEMS_HANDLERS = new InjectionToken<TuiItemsHandlers<unknown>>(\n `Default items handlers for components`,\n {\n factory: () => TUI_DEFAULT_ITEMS_HANDLERS,\n },\n);\n\nexport const tuiItemsHandlersProvider: <T>(\n options: Partial<TuiItemsHandlers<T>>,\n) => ValueProvider = <T>(options: Partial<TuiItemsHandlers<T>>) => ({\n provide: TUI_ITEMS_HANDLERS,\n useValue: {...TUI_DEFAULT_ITEMS_HANDLERS, ...options},\n});\n","import {InjectionToken} from '@angular/core';\n\n/** @deprecated use {@link TuiMobileTabsDirective} from @taiga-ui/addon-mobile */\nexport const TUI_MOBILE_AWARE = new InjectionToken<boolean>(\n `A flag enabling mobile-specific behavior for supporting components`,\n {\n factory: () => false,\n },\n);\n","import {InjectionToken, Type} from '@angular/core';\n\nexport const TUI_MOBILE_CALENDAR = new InjectionToken<Type<unknown>>(\n `A component for mobile data picker`,\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiHandler, TuiMonth} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MONTH_FORMATTER = new InjectionToken<\n TuiHandler<TuiMonth | null, Observable<string>>\n>(`A function to get localized formatted month`);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_TAB_MARGIN = new InjectionToken<number>(`Margin between tabs`, {\n factory: () => 24,\n});\n","import {InjectionToken} from '@angular/core';\nimport {TuiStatus} from '@taiga-ui/kit/enums';\n\n// TODO: 3.0 use TUI_TAG_OPTIONS instead of it\nexport const TUI_TAG_STATUS = new InjectionToken<TuiStatus>(\n `Status for tags inside InputTag component`,\n {\n factory: () => TuiStatus.Primary,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nexport const TUI_VALIDATION_ERRORS = new InjectionToken<\n Record<string, Observable<PolymorpheusContent> | PolymorpheusContent>\n>(`Validation errors`, {\n factory: () => ({}),\n});\n","/**\n * Generated bundle index. Do not ed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AM,0BAA0B;CAC5C,EACH;MAEW,wBAAwB,GAEhB,CAAI,OAAqC,MAAM;IAChE,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,kCAAM,0BAA0B,GAAK,OAAO,CAAC;CACxD;;AChCD;MACa,gBAAgB,GAAG,IAAI,cAAc,CAC9C,oEAAoE,EACpE;IACI,OAAO,EAAE,MAAM,KAAK;CACvB;;MCLQ,mBAAmB,GAAG,IAAI,cAAc,CACjD,oCAAoC;;MCC3B,mBAAmB,GAAG,IAAI,cAAc,CAEnD,6CAA6C;;MCJlC,cAAc,GAAG,IAAI,cAAc,CAAS,qBAAqB,EAAE;IAC5E,OAAO,EAAE,MAAM,EAAE;CACpB;;ACDD;MACa,cAAc,GAAG,IAAI,cAAc,CAC5C,2CAA2C,EAC3C;IACI,OAAO,EAAE;CACZ;;MCJQ,qBAAqB,GAAG,IAAI,cAAc,CAErD,mBAAmB,EAAE;IACnB,OAAO,EAAE,OAAO,EAAE,CAAC;CACtB;;ACRD;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-utils-dom.js","sources":["ng://@taiga-ui/kit/utils/dom/get-word-range.ts","ng://@taiga-ui/kit/utils/dom/scroll-to-element.ts","ng://@taiga-ui/kit/utils/dom/set-range-offset.ts","ng://@taiga-ui/kit/utils/dom/taiga-ui-kit-utils-dom.ts"],"sourcesContent":["import {CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_SPACE, svgNodeFilter} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiGetWordRange} instead\n * Creates a cloned range with its boundaries set at word boundaries\n *\n * @param currentRange a range to clone\n * @return modified range\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getWordRange(currentRange: Range): Range {\n const range = currentRange.cloneRange();\n const {startContainer, startOffset, endContainer, endOffset} = range;\n const {ownerDocument} = startContainer;\n\n if (!ownerDocument) {\n return range;\n }\n\n const treeWalker = ownerDocument.createTreeWalker(\n ownerDocument.body,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n false,\n );\n\n treeWalker.currentNode = startContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === startContainer\n ? textContent.slice(0, Math.max(0, startOffset + 1))\n : textContent;\n const offset =\n Math.max(\n content.lastIndexOf(` `),\n content.lastIndexOf(CHAR_NO_BREAK_SPACE),\n content.lastIndexOf(CHAR_ZERO_WIDTH_SPACE),\n ) + 1;\n\n range.setStart(container, 0);\n\n if (offset) {\n range.setStart(container, offset);\n break;\n }\n } while (treeWalker.previousNode());\n\n treeWalker.currentNode = endContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === endContainer ? textContent.slice(endOffset + 1) : textContent;\n const offset = [\n content.indexOf(` `),\n content.indexOf(CHAR_NO_BREAK_SPACE),\n content.indexOf(CHAR_ZERO_WIDTH_SPACE),\n ].reduce(\n (result, item) =>\n result === -1 || item === -1\n ? Math.max(result, item)\n : Math.min(result, item),\n -1,\n );\n\n range.setEnd(container, textContent.length);\n\n if (offset !== -1) {\n range.setEnd(container, offset + textContent.length - content.length);\n break;\n }\n } while (treeWalker.nextNode());\n\n return range;\n}\n\nexport const tuiGetWordRange = getWordRange;\n","/**\n * @deprecated: use {@link tuiScrollToElement} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function scrollToElement(element: HTMLElement, container: HTMLElement): void {\n const scrolledWidth = container.offsetWidth + container.scrollLeft;\n const elementWidth = element.offsetWidth;\n const elementX =\n container.scrollLeft +\n element.getBoundingClientRect().left -\n container.getBoundingClientRect().left;\n const elementDidNotFitRight = elementX + elementWidth > scrolledWidth;\n const elementDidNotFitLeft = container.scrollLeft > elementX;\n const deltaXRight = elementX + elementWidth - scrolledWidth;\n const deltaXLeft = elementX - container.scrollLeft;\n\n if (elementDidNotFitRight) {\n container.scrollLeft += deltaXRight;\n }\n\n if (elementDidNotFitLeft) {\n container.scrollLeft += deltaXLeft;\n }\n}\n\nexport const tuiScrollToElement = scrollToElement;\n","import {svgNodeFilter} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiSetRangeOffset} instead\n * Range.setStart/set-end, except it uses offset in characters only\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function setRangeOffset(\n range: Range,\n node: HTMLElement,\n offset: number,\n method: 'setStart' | 'setEnd',\n): void {\n const {ownerDocument} = node;\n\n if (!ownerDocument) {\n return;\n }\n\n const treeWalker = ownerDocument.createTreeWalker(\n node,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n false,\n );\n\n treeWalker.currentNode = node;\n\n while (treeWalker.nextNode()) {\n if (treeWalker.currentNode.nodeType === Node.TEXT_NODE) {\n const length = treeWalker.currentNode.nodeValue\n ? treeWalker.currentNode.nodeValue.length\n : 0;\n\n if (offset > length) {\n offset -= length;\n } else {\n range[method](treeWalker.currentNode, offset);\n }\n }\n }\n}\n\nexport const tuiSetRangeOffset = setRangeOffset;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;;;;;AAOA;SACgB,YAAY,CAAC,YAAmB;IAC5C,MAAM,KAAK,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IACxC,MAAM,EAAC,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAC,GAAG,KAAK,CAAC;IACrE,MAAM,EAAC,aAAa,EAAC,GAAG,cAAc,CAAC;IAEvC,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO,KAAK,CAAC;KAChB;IAED,MAAM,UAAU,GAAG,aAAa,CAAC,gBAAgB,CAC7C,aAAa,CAAC,IAAI,EAClB,UAAU,CAAC,SAAS,EACpB,aAAa,EACb,KAAK,CACR,CAAC;IAEF,UAAU,CAAC,WAAW,GAAG,cAAc,CAAC;IAExC,GAAG;QACC,MAAM,SAAS,GAAG,UAAU,CAAC,WAAW,CAAC;QACzC,MAAM,WAAW,GAAG,SAAS,CAA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a,EAAC,GAAG,IAAI,CAAC;IAE7B,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO;KACV;IAED,MAAM,UAAU,GAAG,aAAa,CAAC,gBAAgB,CAC7C,IAAI,EACJ,UAAU,CAAC,SAAS,EACpB,aAAa,EACb,KAAK,CACR,CAAC;IAEF,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC;IAE9B,OAAO,UAAU,CAAC,QAAQ,EAAE,EAAE;QAC1B,IAAI,UAAU,CAAC,WAAW,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE;YACpD,MAAM,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,SAAS;kBACzC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM;kBACvC,CAAC,CAAC;YAER,IAAI,MAAM,GAAG,MAAM,EAAE;gBACjB,MAAM,IAAI,MAAM,CAAC;aACpB;iBAAM;gBACH,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;aACjD;SACJ;KACJ;AACL,CAAC;MAEY,iBAAiB,GAAG;;AC3CjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-utils-dom.js","sources":["ng://@taiga-ui/kit/utils/dom/get-word-range.ts","ng://@taiga-ui/kit/utils/dom/scroll-to-element.ts","ng://@taiga-ui/kit/utils/dom/set-range-offset.ts","ng://@taiga-ui/kit/utils/dom/taiga-ui-kit-utils-dom.ts"],"sourcesContent":["import {CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_SPACE, svgNodeFilter} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiGetWordRange} instead\n * Creates a cloned range with its boundaries set at word boundaries\n *\n * @param currentRange a range to clone\n * @return modified range\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getWordRange(currentRange: Range): Range {\n const range = currentRange.cloneRange();\n const {startContainer, startOffset, endContainer, endOffset} = range;\n const {ownerDocument} = startContainer;\n\n if (!ownerDocument) {\n return range;\n }\n\n const treeWalker = ownerDocument.createTreeWalker(\n ownerDocument.body,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n false,\n );\n\n treeWalker.currentNode = startContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === startContainer\n ? textContent.slice(0, Math.max(0, startOffset + 1))\n : textContent;\n const offset =\n Math.max(\n content.lastIndexOf(` `),\n content.lastIndexOf(CHAR_NO_BREAK_SPACE),\n content.lastIndexOf(CHAR_ZERO_WIDTH_SPACE),\n ) + 1;\n\n range.setStart(container, 0);\n\n if (offset) {\n range.setStart(container, offset);\n break;\n }\n } while (treeWalker.previousNode());\n\n treeWalker.currentNode = endContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === endContainer ? textContent.slice(endOffset + 1) : textContent;\n const offset = [\n content.indexOf(` `),\n content.indexOf(CHAR_NO_BREAK_SPACE),\n content.indexOf(CHAR_ZERO_WIDTH_SPACE),\n ].reduce(\n (result, item) =>\n result === -1 || item === -1\n ? Math.max(result, item)\n : Math.min(result, item),\n -1,\n );\n\n range.setEnd(container, textContent.length);\n\n if (offset !== -1) {\n range.setEnd(container, offset + textContent.length - content.length);\n break;\n }\n } while (treeWalker.nextNode());\n\n return range;\n}\n\nexport const tuiGetWordRange = getWordRange;\n","/**\n * @deprecated: use {@link tuiScrollToElement} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function scrollToElement(element: HTMLElement, container: HTMLElement): void {\n const scrolledWidth = container.offsetWidth + container.scrollLeft;\n const elementWidth = element.offsetWidth;\n const elementX =\n container.scrollLeft +\n element.getBoundingClientRect().left -\n container.getBoundingClientRect().left;\n const elementDidNotFitRight = elementX + elementWidth > scrolledWidth;\n const elementDidNotFitLeft = container.scrollLeft > elementX;\n const deltaXRight = elementX + elementWidth - scrolledWidth;\n const deltaXLeft = elementX - container.scrollLeft;\n\n if (elementDidNotFitRight) {\n container.scrollLeft += deltaXRight;\n }\n\n if (elementDidNotFitLeft) {\n container.scrollLeft += deltaXLeft;\n }\n}\n\nexport const tuiScrollToElement = scrollToElement;\n","import {svgNodeFilter} from '@taiga-ui/cdk';\n\n/**\n * @deprecated: use {@link tuiSetRangeOffset} instead\n * Range.setStart/set-end, except it uses offset in characters only\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function setRangeOffset(\n range: Range,\n node: HTMLElement,\n offset: number,\n method: 'setEnd' | 'setStart',\n): void {\n const {ownerDocument} = node;\n\n if (!ownerDocument) {\n return;\n }\n\n const treeWalker = ownerDocument.createTreeWalker(\n node,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n false,\n );\n\n treeWalker.currentNode = node;\n\n while (treeWalker.nextNode()) {\n if (treeWalker.currentNode.nodeType === Node.TEXT_NODE) {\n const length = treeWalker.currentNode.nodeValue\n ? treeWalker.currentNode.nodeValue.length\n : 0;\n\n if (offset > length) {\n offset -= length;\n } else {\n range[method](treeWalker.currentNode, offset);\n }\n }\n }\n}\n\nexport const tuiSetRangeOffset = setRangeOffset;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA;;;;;;;AAOA;SACgB,YAAY,CAAC,YAAmB;IAC5C,MAAM,KAAK,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IACxC,MAAM,EAAC,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAC,GAAG,KAAK,CAAC;IACrE,MAAM,EAAC,aAAa,EAAC,GAAG,cAAc,CAAC;IAEvC,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO,KAAK,CAAC;KAChB;IAED,MAAM,UAAU,GAAG,aAAa,CAAC,gBAAgB,CAC7C,aAAa,CAAC,IAAI,EAClB,UAAU,CAAC,SAAS,EACpB,aAAa,EACb,KAAK,CACR,CAAC;IAEF,UAAU,CAAC,WAAW,GAAG,cAAc,CAAC;IAExC,GAAG;QACC,MAAM,SAAS,GAAG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ACZ,IAAiB,EACjB,MAAc,EACd,MAA6B;IAE7B,MAAM,EAAC,aAAa,EAAC,GAAG,IAAI,CAAC;IAE7B,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO;KACV;IAED,MAAM,UAAU,GAAG,aAAa,CAAC,gBAAgB,CAC7C,IAAI,EACJ,UAAU,CAAC,SAAS,EACpB,aAAa,EACb,KAAK,CACR,CAAC;IAEF,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC;IAE9B,OAAO,UAAU,CAAC,QAAQ,EAAE,EAAE;QAC1B,IAAI,UAAU,CAAC,WAAW,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE;YACpD,MAAM,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,SAAS;kBACzC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM;kBACvC,CAAC,CAAC;YAER,IAAI,MAAM,GAAG,MAAM,EAAE;gBACjB,MAAM,IAAI,MAAM,CAAC;aACpB;iBAAM;gBACH,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;aACjD;SACJ;KACJ;AACL,CAAC;MAEY,iBAAiB,GAAG;;AC3CjC;;;;;;"}
@@ -13,7 +13,7 @@ function stringHashToHsl(value) {
13
13
  let hash = 0;
14
14
  for (let i = 0; i < value.length; i++) {
15
15
  hash = value.charCodeAt(i) + ((hash << 5) - hash);
16
- hash = hash & hash;
16
+ hash &= hash;
17
17
  }
18
18
  const hue = hash % 360;
19
19
  const saturation = 60 + (hash % 5);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-utils-format.js","sources":["ng://@taiga-ui/kit/utils/format/string-hash-to-hsl.ts","ng://@taiga-ui/kit/utils/format/taiga-ui-kit-utils-format.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiStringHashToHsl} instead\n * Converts a string to an HSL color\n * @param value string to convert\n * @return HSL color string\n */\n// @bad TODO: convert stringHashToHsl to stringHashToRgb\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function stringHashToHsl(value: string): string {\n if (value === ``) {\n return ``;\n }\n\n let hash = 0;\n\n for (let i = 0; i < value.length; i++) {\n hash = value.charCodeAt(i) + ((hash << 5) - hash);\n hash = hash & hash;\n }\n\n const hue = hash % 360;\n const saturation = 60 + (hash % 5);\n const lightness = 80 + (hash % 5);\n\n return `hsl(${hue},${saturation}%,${lightness}%)`;\n}\n\nexport const tuiStringHashToHsl = stringHashToHsl;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;AAMA;AACA;SACgB,eAAe,CAAC,KAAa;IACzC,IAAI,KAAK,KAAK,EAAE,EAAE;QACd,OAAO,EAAE,CAAC;KACb;IAED,IAAI,IAAI,GAAG,CAAC,CAAC;IAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;QAClD,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;KACtB;IAED,MAAM,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;IACvB,MAAM,UAAU,GAAG,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;IAElC,OAAO,OAAO,GAAG,IAAI,UAAU,KAAK,SAAS,IAAI,CAAC;AACtD,CAAC;MAEY,kBAAkB,GAAG;;AC3BlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-utils-format.js","sources":["ng://@taiga-ui/kit/utils/format/string-hash-to-hsl.ts","ng://@taiga-ui/kit/utils/format/taiga-ui-kit-utils-format.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiStringHashToHsl} instead\n * Converts a string to an HSL color\n * @param value string to convert\n * @return HSL color string\n */\n// @bad TODO: convert stringHashToHsl to stringHashToRgb\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function stringHashToHsl(value: string): string {\n if (value === ``) {\n return ``;\n }\n\n let hash = 0;\n\n for (let i = 0; i < value.length; i++) {\n hash = value.charCodeAt(i) + ((hash << 5) - hash);\n hash &= hash;\n }\n\n const hue = hash % 360;\n const saturation = 60 + (hash % 5);\n const lightness = 80 + (hash % 5);\n\n return `hsl(${hue},${saturation}%,${lightness}%)`;\n}\n\nexport const tuiStringHashToHsl = stringHashToHsl;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;AAMA;AACA;SACgB,eAAe,CAAC,KAAa;IACzC,IAAI,KAAK,KAAK,EAAE,EAAE;QACd,OAAO,EAAE,CAAC;KACb;IAED,IAAI,IAAI,GAAG,CAAC,CAAC;IAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;QAClD,IAAI,IAAI,IAAI,CAAC;KAChB;IAED,MAAM,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;IACvB,MAAM,UAAU,GAAG,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;IAElC,OAAO,OAAO,GAAG,IAAI,UAAU,KAAK,SAAS,IAAI,CAAC;AACtD,CAAC;MAEY,kBAAkB,GAAG;;AC3BlC;;;;;;"}