@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
@@ -8,22 +8,22 @@ import { map } from 'rxjs/operators';
8
8
 
9
9
  let TuiProgressBarComponent = class TuiProgressBarComponent {
10
10
  constructor() {
11
- this.size = `m`;
11
+ this.size = 'm';
12
12
  }
13
13
  };
14
14
  __decorate([
15
15
  Input(),
16
- HostBinding(`style.--tui-progress-color`)
16
+ HostBinding('style.--tui-progress-color')
17
17
  ], TuiProgressBarComponent.prototype, "color", void 0);
18
18
  __decorate([
19
19
  Input(),
20
- HostBinding(`attr.data-size`),
20
+ HostBinding('attr.data-size'),
21
21
  tuiDefaultProp()
22
22
  ], TuiProgressBarComponent.prototype, "size", void 0);
23
23
  TuiProgressBarComponent = __decorate([
24
24
  Component({
25
- selector: `progress[tuiProgressBar]`,
26
- template: ``,
25
+ selector: 'progress[tuiProgressBar]',
26
+ template: '',
27
27
  changeDetection: ChangeDetectionStrategy.OnPush,
28
28
  styles: [":host{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;color:var(--tui-progress-color,currentColor);background-color:var(--tui-base-03);display:block;width:100%;color:var(--tui-primary);border-radius:var(--tui-radius-xs);overflow:hidden}:host::-webkit-progress-value{-webkit-transition:width var(--tui-duration) linear;transition:width var(--tui-duration) linear;background:var(--tui-progress-color,currentColor)}:host::-moz-progress-bar{background:var(--tui-progress-color,currentColor)}:host::-webkit-progress-bar{background-color:var(--tui-base-03)}:host[data-size='m']{height:1.5rem}:host[data-size='s']{border-radius:var(--tui-radius-xs);height:.5rem}:host[data-size='s']::-webkit-progress-value{border-radius:var(--tui-radius-xs)}:host[data-size='s']::-moz-progress-bar{border-radius:var(--tui-radius-xs)}:host-context(label[tuiProgressLabel]):not(:first-child){position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}:host-context(label[tuiProgressLabel]):not(:first-child)::-webkit-progress-bar{background-color:transparent}"]
29
29
  })
@@ -60,17 +60,17 @@ TuiProgressColorSegmentsDirective.ctorParameters = () => [
60
60
  { type: String, decorators: [{ type: Inject, args: [USER_AGENT,] }] }
61
61
  ];
62
62
  __decorate([
63
- Input(`tuiProgressColorSegments`)
63
+ Input('tuiProgressColorSegments')
64
64
  ], TuiProgressColorSegmentsDirective.prototype, "colors", void 0);
65
65
  __decorate([
66
66
  tuiPure
67
67
  ], TuiProgressColorSegmentsDirective.prototype, "calcSegments$", null);
68
68
  TuiProgressColorSegmentsDirective = __decorate([
69
69
  Directive({
70
- selector: `progress[tuiProgressBar][tuiProgressColorSegments]`,
70
+ selector: 'progress[tuiProgressBar][tuiProgressColorSegments]',
71
71
  host: {
72
- '[$.style.--tui-progress-color]': `calcSegments$`,
73
- '($.style.--tui-progress-color)': `0`,
72
+ '[$.style.--tui-progress-color]': 'calcSegments$',
73
+ '($.style.--tui-progress-color)': '0',
74
74
  },
75
75
  providers: [TuiDestroyService, TuiResizeService],
76
76
  }),
@@ -88,7 +88,7 @@ let TuiProgressCircleComponent = class TuiProgressCircleComponent {
88
88
  this.value = 0;
89
89
  this.max = 1;
90
90
  this.color = null;
91
- this.size = `m`;
91
+ this.size = 'm';
92
92
  }
93
93
  get progressPercentage() {
94
94
  return this.value / this.max;
@@ -108,7 +108,7 @@ TuiProgressCircleComponent.ctorParameters = () => [
108
108
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
109
109
  ];
110
110
  __decorate([
111
- ViewChild(`progressCircle`, { static: true })
111
+ ViewChild('progressCircle', { static: true })
112
112
  ], TuiProgressCircleComponent.prototype, "progressCircle", void 0);
113
113
  __decorate([
114
114
  Input(),
@@ -120,20 +120,20 @@ __decorate([
120
120
  ], TuiProgressCircleComponent.prototype, "max", void 0);
121
121
  __decorate([
122
122
  Input(),
123
- HostBinding(`style.--tui-progress-color`),
123
+ HostBinding('style.--tui-progress-color'),
124
124
  tuiDefaultProp()
125
125
  ], TuiProgressCircleComponent.prototype, "color", void 0);
126
126
  __decorate([
127
127
  Input(),
128
- HostBinding(`attr.data-size`),
128
+ HostBinding('attr.data-size'),
129
129
  tuiDefaultProp()
130
130
  ], TuiProgressCircleComponent.prototype, "size", void 0);
131
131
  __decorate([
132
- HostBinding(`style.--progress-percentage`)
132
+ HostBinding('style.--progress-percentage')
133
133
  ], TuiProgressCircleComponent.prototype, "progressPercentage", null);
134
134
  TuiProgressCircleComponent = __decorate([
135
135
  Component({
136
- selector: `tui-progress-circle`,
136
+ selector: 'tui-progress-circle',
137
137
  template: "<progress\n class=\"t-hidden-progress\"\n [value]=\"value\"\n [max]=\"max\"\n></progress>\n\n<svg\n height=\"100%\"\n width=\"100%\"\n aria-hidden=\"true\"\n class=\"t-svg\"\n>\n <circle\n cx=\"50%\"\n cy=\"50%\"\n class=\"t-track\"\n [attr.r]=\"oldEdgeRadiusFallback\"\n ></circle>\n\n <circle\n #progressCircle\n cx=\"50%\"\n cy=\"50%\"\n class=\"t-progress\"\n [attr.r]=\"oldEdgeRadiusFallback\"\n ></circle>\n</svg>\n",
138
138
  changeDetection: ChangeDetectionStrategy.OnPush,
139
139
  styles: [":host{position:relative;display:block;color:var(--tui-primary);transform:rotate(-90deg);transform-origin:center;font-size:1rem}:host[data-size='s']{width:2em;height:2em}:host[data-size='s'] .t-track{\n r: 0.75em;\n stroke-width:.5em}:host[data-size='s'] .t-progress{\n r: 0.75em;\n stroke-width:.5em;stroke-dasharray:4.71238898em;stroke-dashoffset:calc(4.71238898em - var(--progress-percentage) * 4.71238898em)}:host[data-size='m']{width:3em;height:3em}:host[data-size='m'] .t-track{\n r: 1.375em;\n stroke-width:.25em}:host[data-size='m'] .t-progress{\n r: 1.3125em;\n stroke-width:.375em;stroke-dasharray:8.24668072em;stroke-dashoffset:calc(8.24668072em - var(--progress-percentage) * 8.24668072em)}:host[data-size='l']{width:4em;height:4em}:host[data-size='l'] .t-track{\n r: 1.875em;\n stroke-width:.25em}:host[data-size='l'] .t-progress{\n r: 1.8125em;\n stroke-width:.375em;stroke-dasharray:11.38827337em;stroke-dashoffset:calc(11.38827337em - var(--progress-percentage) * 11.38827337em)}:host[data-size=xl]{width:7em;height:7em}:host[data-size=xl] .t-track{\n r: 3.375em;\n stroke-width:.25em}:host[data-size=xl] .t-progress{\n r: 3.3125em;\n stroke-width:.375em;stroke-dasharray:20.81305133em;stroke-dashoffset:calc(20.81305133em - var(--progress-percentage) * 20.81305133em)}.t-track{fill:transparent;stroke:var(--tui-base-03)}.t-progress{fill:transparent;stroke:var(--tui-progress-color,currentColor);transition:stroke-dashoffset var(--tui-duration) linear}.t-hidden-progress{position:absolute;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}.t-svg{overflow:unset}"]
@@ -147,7 +147,7 @@ let TuiProgressLabelComponent = class TuiProgressLabelComponent {
147
147
  };
148
148
  TuiProgressLabelComponent = __decorate([
149
149
  Component({
150
- selector: `label[tuiProgressLabel]`,
150
+ selector: 'label[tuiProgressLabel]',
151
151
  template: "<ng-content select=\"progress\"></ng-content>\n<ng-content select=\"tui-progress-circle\"></ng-content>\n<span class=\"t-label\">\n <ng-content></ng-content>\n</span>\n",
152
152
  changeDetection: ChangeDetectionStrategy.OnPush,
153
153
  styles: [":host{position:relative;display:inline-block}.t-label{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;font:var(--tui-font-text-s);color:var(--tui-text-01);flex-direction:column;justify-content:center;align-items:center}"]
@@ -166,26 +166,26 @@ let TuiProgressSegmentedComponent = class TuiProgressSegmentedComponent {
166
166
  constructor() {
167
167
  this.value = 0;
168
168
  this.max = 1;
169
- this.size = `m`;
170
- this.colors = `var(--tui-primary)`;
169
+ this.size = 'm';
170
+ this.colors = 'var(--tui-primary)';
171
171
  }
172
172
  getActiveColor(index = 0) {
173
- return typeof this.colors === `string`
173
+ return typeof this.colors === 'string'
174
174
  ? this.colors
175
175
  : this.colors[index] || this.colors[this.colors.length - 1];
176
176
  }
177
177
  };
178
178
  __decorate([
179
179
  Input(),
180
- tuiDefaultProp(nonNegativeInt, `Must be non-negative integer between 0 and max`)
180
+ tuiDefaultProp(nonNegativeInt, 'Must be non-negative integer between 0 and max')
181
181
  ], TuiProgressSegmentedComponent.prototype, "value", void 0);
182
182
  __decorate([
183
183
  Input(),
184
- tuiDefaultProp(positiveInt, `Must be positive integer`)
184
+ tuiDefaultProp(positiveInt, 'Must be positive integer')
185
185
  ], TuiProgressSegmentedComponent.prototype, "max", void 0);
186
186
  __decorate([
187
187
  Input(),
188
- HostBinding(`attr.data-size`)
188
+ HostBinding('attr.data-size')
189
189
  ], TuiProgressSegmentedComponent.prototype, "size", void 0);
190
190
  __decorate([
191
191
  Input(),
@@ -193,7 +193,7 @@ __decorate([
193
193
  ], TuiProgressSegmentedComponent.prototype, "colors", void 0);
194
194
  TuiProgressSegmentedComponent = __decorate([
195
195
  Component({
196
- selector: `tui-progress-segmented`,
196
+ selector: 'tui-progress-segmented',
197
197
  template: "<progress\n class=\"t-hidden-progress\"\n [value]=\"value\"\n [max]=\"max\"\n></progress>\n\n<span\n *tuiRepeatTimes=\"let index of max\"\n aria-hidden=\"true\"\n class=\"t-segment\"\n [style.background]=\"index < value ? getActiveColor(index) : null\"\n></span>\n",
198
198
  changeDetection: ChangeDetectionStrategy.OnPush,
199
199
  styles: [":host{display:flex}.t-segment{transition-property:background-color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;flex:1 1 100%;border-radius:var(--tui-radius-xs);background-color:var(--tui-base-03)}.t-segment:not(:last-child){margin-right:.25rem}:host[data-size='s'] .t-segment{height:.25rem}:host[data-size='m'] .t-segment{height:.5rem}.t-hidden-progress{position:absolute;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0}"]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-progress.js","sources":["ng://@taiga-ui/kit/components/progress/progress-bar/progress-bar.component.ts","ng://@taiga-ui/kit/components/progress/utils/calculate-color-segments.ts","ng://@taiga-ui/kit/components/progress/progress-bar/progress-color-segments.directive.ts","ng://@taiga-ui/kit/components/progress/progress-circle/progress-circle.component.ts","ng://@taiga-ui/kit/components/progress/progress-label/progress-label.component.ts","ng://@taiga-ui/kit/components/progress/progress-segmented/progress-segmented.component.ts","ng://@taiga-ui/kit/components/progress/utils/abstract-color-segments.ts","ng://@taiga-ui/kit/components/progress/utils/progress-color-segments.pipe.ts","ng://@taiga-ui/kit/components/progress/utils/progress-color-segments-async.pipe.ts","ng://@taiga-ui/kit/components/progress/progress.module.ts","ng://@taiga-ui/kit/components/progress/taiga-ui-kit-components-progress.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: `progress[tuiProgressBar]`,\n template: ``,\n styleUrls: [`./progress-bar.component.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressBarComponent {\n @Input()\n @HostBinding(`style.--tui-progress-color`)\n color?: string;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeS = `m`;\n}\n","/**\n * TODO: 3.0 move inside {@link TuiProgressColorSegmentsDirective} (as a private method)\n * (after deletion of {@link TuiProgressColorSegmentsPipe} and {@link TuiProgressColorSegmentsAsyncPipe})\n */\nimport {px} from '@taiga-ui/cdk';\n\nexport const calculateColorSegments = (\n colors: string[],\n progressWidth: number,\n): string => {\n const segmentWidth = Math.ceil(progressWidth / colors.length);\n const colorsString = colors.reduce(\n (acc, color, i) =>\n `${acc}, ${color} ${px(i * segmentWidth)} ${px((i + 1) * segmentWidth)}`,\n ``,\n );\n\n return `linear-gradient(to right ${colorsString})`;\n};\n","import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n isIE,\n TuiDestroyService,\n tuiPure,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {calculateColorSegments} from '../utils/calculate-color-segments';\n\n@Directive({\n selector: `progress[tuiProgressBar][tuiProgressColorSegments]`,\n host: {\n '[$.style.--tui-progress-color]': `calcSegments$`,\n '($.style.--tui-progress-color)': `0`,\n },\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiProgressColorSegmentsDirective {\n private readonly isOldBrowsers =\n isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||\n isIE(this.userAgent);\n\n @Input(`tuiProgressColorSegments`)\n colors: string[] = [];\n\n @tuiPure\n get calcSegments$(): Observable<string> {\n return this.resize$.pipe(\n map(() =>\n this.isOldBrowsers\n ? this.colors[0]\n : calculateColorSegments(\n this.colors,\n this.elementRef.nativeElement.offsetWidth,\n ),\n ),\n );\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLProgressElement>,\n @Inject(TuiResizeService) private readonly resize$: Observable<unknown>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n ) {}\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {USER_AGENT, WINDOW} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS, TuiSizeXL} from '@taiga-ui/core';\n\n// @dynamic\n@Component({\n selector: `tui-progress-circle`,\n templateUrl: `./progress-circle.template.html`,\n styleUrls: [`./progress-circle.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressCircleComponent {\n @ViewChild(`progressCircle`, {static: true})\n private readonly progressCircle!: ElementRef<SVGCircleElement>;\n\n @Input()\n @tuiDefaultProp()\n value = 0;\n\n @Input()\n @tuiDefaultProp()\n max = 1;\n\n @Input()\n @HostBinding(`style.--tui-progress-color`)\n @tuiDefaultProp()\n color: string | null = null;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeXL = `m`;\n\n @HostBinding(`style.--progress-percentage`)\n get progressPercentage(): number {\n return this.value / this.max;\n }\n\n get oldEdgeRadiusFallback(): number | null {\n if (!isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent)) {\n return null;\n }\n\n const strokeWidth = parseInt(\n this.windowRef.getComputedStyle(this.progressCircle.nativeElement)\n .strokeWidth,\n 10,\n );\n\n return (this.elementRef.nativeElement.offsetWidth - strokeWidth) / 2;\n }\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n selector: `label[tuiProgressLabel]`,\n templateUrl: `./progress-label.template.html`,\n styleUrls: [`./progress-label.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressLabelComponent {}\n","import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeInt(value: number): boolean {\n return Number.isInteger(value) && value >= 0;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function positiveInt(value: number): boolean {\n return Number.isInteger(value) && value > 0;\n}\n\n@Component({\n selector: `tui-progress-segmented`,\n templateUrl: `./progress-segmented.template.html`,\n styleUrls: [`./progress-segmented.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressSegmentedComponent {\n @Input()\n @tuiDefaultProp(nonNegativeInt, `Must be non-negative integer between 0 and max`)\n value = 0;\n\n @Input()\n @tuiDefaultProp(positiveInt, `Must be positive integer`)\n max = 1;\n\n @Input()\n @HostBinding(`attr.data-size`)\n size: TuiSizeS = `m`;\n\n @Input()\n @tuiDefaultProp()\n colors: string | readonly string[] = `var(--tui-primary)`;\n\n getActiveColor(index: number = 0): string | null {\n return typeof this.colors === `string`\n ? this.colors\n : this.colors[index] || this.colors[this.colors.length - 1];\n }\n}\n","import {ElementRef, Inject, Injectable, PipeTransform} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {CHROMIUM_EDGE_START_VERSION, isEdgeOlderThan, isIE} from '@taiga-ui/cdk';\n\nimport {calculateColorSegments} from './calculate-color-segments';\n\n// TODO: 3.0 delete\n@Injectable()\nexport abstract class AbstractTuiColorSegments<T> implements PipeTransform {\n private readonly isOldBrowsers =\n isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||\n isIE(this.userAgent);\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n abstract transform(colors: string[]): T;\n\n protected calculate(colors: string[]): string {\n if (this.isOldBrowsers) {\n return colors[0];\n }\n\n const elementWidth = this.elementRef.nativeElement.offsetWidth;\n\n return calculateColorSegments(colors, elementWidth);\n }\n}\n","import {Pipe} from '@angular/core';\n\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n// TODO: 3.0 delete\n@Pipe({name: `tuiProgressColorSegments`})\nexport class TuiProgressColorSegmentsPipe extends AbstractTuiColorSegments<string> {\n /**\n * @deprecated use tuiProgressColorSegments directive instead\n * {@link TuiProgressColorSegmentsDirective}\n * @example: `<progress tuiProgressBar [tuiProgressColorSegments]=\"colors\">`\n */\n transform(colors: string[]): string {\n return this.calculate(colors);\n }\n}\n","import {Pipe} from '@angular/core';\nimport {Observable, timer} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n// TODO: 3.0 delete\n@Pipe({name: `tuiProgressColorSegmentsAsync`})\nexport class TuiProgressColorSegmentsAsyncPipe extends AbstractTuiColorSegments<\n Observable<string>\n> {\n /**\n * @deprecated use tuiProgressColorSegments directive instead\n * {@link TuiProgressColorSegmentsDirective}\n * @example: `<progress tuiProgressBar [tuiProgressColorSegments]=\"colors\">`\n */\n transform(colors: string[]): Observable<string> {\n return timer(0).pipe(map(() => this.calculate(colors)));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiRepeatTimesModule} from '@taiga-ui/cdk';\n\nimport {TuiProgressBarComponent} from './progress-bar/progress-bar.component';\nimport {TuiProgressColorSegmentsDirective} from './progress-bar/progress-color-segments.directive';\nimport {TuiProgressCircleComponent} from './progress-circle/progress-circle.component';\nimport {TuiProgressLabelComponent} from './progress-label/progress-label.component';\nimport {TuiProgressSegmentedComponent} from './progress-segmented/progress-segmented.component';\nimport {TuiProgressColorSegmentsPipe} from './utils/progress-color-segments.pipe';\nimport {TuiProgressColorSegmentsAsyncPipe} from './utils/progress-color-segments-async.pipe';\n\n@NgModule({\n imports: [CommonModule, TuiRepeatTimesModule],\n declarations: [\n TuiProgressBarComponent,\n TuiProgressColorSegmentsDirective,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressCircleComponent,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n exports: [\n TuiProgressBarComponent,\n TuiProgressCircleComponent,\n TuiProgressColorSegmentsDirective,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n})\nexport class TuiProgressModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAUa,uBAAuB,GAApC,MAAa,uBAAuB;IAApC;QAQI,SAAI,GAAa,GAAG,CAAC;KACxB;EAAA;AANG;IAFC,KAAK,EAAE;IACP,WAAW,CAAC,4BAA4B,CAAC;sDAC3B;AAKf;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,gBAAgB,CAAC;IAC7B,cAAc,EAAE;qDACI;AARZ,uBAAuB;IANnC,SAAS,CAAC;QACP,QAAQ,EAAE,0BAA0B;QACpC,QAAQ,EAAE,EAAE;QAEZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,uBAAuB,CASnC;;ACnBD;;;;AAMO,MAAM,sBAAsB,GAAG,CAClC,MAAgB,EAChB,aAAqB;IAErB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAC9B,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,KACV,GAAG,GAAG,KAAK,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,EAAE,EAC5E,EAAE,CACL,CAAC;IAEF,OAAO,4BAA4B,YAAY,GAAG,CAAC;AACvD,CAAC;;ICKY,iCAAiC,GAA9C,MA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TD;IAEa,iCAAiC,GAA9C,MAAa,iCAAkC,SAAQ,wBAEtD;;;;;;IAMG,SAAS,CAAC,MAAgB;QACtB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC3D;EACJ;AAXY,iCAAiC;IAD7C,IAAI,CAAC,EAAC,IAAI,EAAE,+BAA+B,EAAC,CAAC;GACjC,iCAAiC,CAW7C;;ICcY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IArB7B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;QAC7C,YAAY,EAAE;YACV,uBAAuB;YACvB,iCAAiC;YACjC,4BAA4B;YAC5B,iCAAiC;YACjC,0BAA0B;YAC1B,yBAAyB;YACzB,6BAA6B;SAChC;QACD,OAAO,EAAE;YACL,uBAAuB;YACvB,0BAA0B;YAC1B,iCAAiC;YACjC,4BAA4B;YAC5B,iCAAiC;YACjC,yBAAyB;YACzB,6BAA6B;SAChC;KACJ,CAAC;GACW,iBAAiB,CAAG;;ACjCjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-progress.js","sources":["ng://@taiga-ui/kit/components/progress/progress-bar/progress-bar.component.ts","ng://@taiga-ui/kit/components/progress/utils/calculate-color-segments.ts","ng://@taiga-ui/kit/components/progress/progress-bar/progress-color-segments.directive.ts","ng://@taiga-ui/kit/components/progress/progress-circle/progress-circle.component.ts","ng://@taiga-ui/kit/components/progress/progress-label/progress-label.component.ts","ng://@taiga-ui/kit/components/progress/progress-segmented/progress-segmented.component.ts","ng://@taiga-ui/kit/components/progress/utils/abstract-color-segments.ts","ng://@taiga-ui/kit/components/progress/utils/progress-color-segments.pipe.ts","ng://@taiga-ui/kit/components/progress/utils/progress-color-segments-async.pipe.ts","ng://@taiga-ui/kit/components/progress/progress.module.ts","ng://@taiga-ui/kit/components/progress/taiga-ui-kit-components-progress.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'progress[tuiProgressBar]',\n template: '',\n styleUrls: ['./progress-bar.component.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressBarComponent {\n @Input()\n @HostBinding('style.--tui-progress-color')\n color?: string;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS = 'm';\n}\n","/**\n * TODO: 3.0 move inside {@link TuiProgressColorSegmentsDirective} (as a private method)\n * (after deletion of {@link TuiProgressColorSegmentsPipe} and {@link TuiProgressColorSegmentsAsyncPipe})\n */\nimport {px} from '@taiga-ui/cdk';\n\nexport const calculateColorSegments = (\n colors: string[],\n progressWidth: number,\n): string => {\n const segmentWidth = Math.ceil(progressWidth / colors.length);\n const colorsString = colors.reduce(\n (acc, color, i) =>\n `${acc}, ${color} ${px(i * segmentWidth)} ${px((i + 1) * segmentWidth)}`,\n ``,\n );\n\n return `linear-gradient(to right ${colorsString})`;\n};\n","import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n isIE,\n TuiDestroyService,\n tuiPure,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {calculateColorSegments} from '../utils/calculate-color-segments';\n\n@Directive({\n selector: 'progress[tuiProgressBar][tuiProgressColorSegments]',\n host: {\n '[$.style.--tui-progress-color]': 'calcSegments$',\n '($.style.--tui-progress-color)': '0',\n },\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiProgressColorSegmentsDirective {\n private readonly isOldBrowsers =\n isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||\n isIE(this.userAgent);\n\n @Input('tuiProgressColorSegments')\n colors: string[] = [];\n\n @tuiPure\n get calcSegments$(): Observable<string> {\n return this.resize$.pipe(\n map(() =>\n this.isOldBrowsers\n ? this.colors[0]\n : calculateColorSegments(\n this.colors,\n this.elementRef.nativeElement.offsetWidth,\n ),\n ),\n );\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLProgressElement>,\n @Inject(TuiResizeService) private readonly resize$: Observable<unknown>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n ) {}\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {USER_AGENT, WINDOW} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS, TuiSizeXL} from '@taiga-ui/core';\n\n// @dynamic\n@Component({\n selector: 'tui-progress-circle',\n templateUrl: './progress-circle.template.html',\n styleUrls: ['./progress-circle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressCircleComponent {\n @ViewChild('progressCircle', {static: true})\n private readonly progressCircle!: ElementRef<SVGCircleElement>;\n\n @Input()\n @tuiDefaultProp()\n value = 0;\n\n @Input()\n @tuiDefaultProp()\n max = 1;\n\n @Input()\n @HostBinding('style.--tui-progress-color')\n @tuiDefaultProp()\n color: string | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeXL = 'm';\n\n @HostBinding('style.--progress-percentage')\n get progressPercentage(): number {\n return this.value / this.max;\n }\n\n get oldEdgeRadiusFallback(): number | null {\n if (!isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent)) {\n return null;\n }\n\n const strokeWidth = parseInt(\n this.windowRef.getComputedStyle(this.progressCircle.nativeElement)\n .strokeWidth,\n 10,\n );\n\n return (this.elementRef.nativeElement.offsetWidth - strokeWidth) / 2;\n }\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n selector: 'label[tuiProgressLabel]',\n templateUrl: './progress-label.template.html',\n styleUrls: ['./progress-label.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressLabelComponent {}\n","import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function nonNegativeInt(value: number): boolean {\n return Number.isInteger(value) && value >= 0;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function positiveInt(value: number): boolean {\n return Number.isInteger(value) && value > 0;\n}\n\n@Component({\n selector: 'tui-progress-segmented',\n templateUrl: './progress-segmented.template.html',\n styleUrls: ['./progress-segmented.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressSegmentedComponent {\n @Input()\n @tuiDefaultProp(nonNegativeInt, 'Must be non-negative integer between 0 and max')\n value = 0;\n\n @Input()\n @tuiDefaultProp(positiveInt, 'Must be positive integer')\n max = 1;\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n colors: string | readonly string[] = 'var(--tui-primary)';\n\n getActiveColor(index: number = 0): string | null {\n return typeof this.colors === 'string'\n ? this.colors\n : this.colors[index] || this.colors[this.colors.length - 1];\n }\n}\n","import {ElementRef, Inject, Injectable, PipeTransform} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {CHROMIUM_EDGE_START_VERSION, isEdgeOlderThan, isIE} from '@taiga-ui/cdk';\n\nimport {calculateColorSegments} from './calculate-color-segments';\n\n// TODO: 3.0 delete\n@Injectable()\nexport abstract class AbstractTuiColorSegments<T> implements PipeTransform {\n private readonly isOldBrowsers =\n isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||\n isIE(this.userAgent);\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n abstract transform(colors: string[]): T;\n\n protected calculate(colors: string[]): string {\n if (this.isOldBrowsers) {\n return colors[0];\n }\n\n const elementWidth = this.elementRef.nativeElement.offsetWidth;\n\n return calculateColorSegments(colors, elementWidth);\n }\n}\n","import {Pipe} from '@angular/core';\n\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n// TODO: 3.0 delete\n@Pipe({name: `tuiProgressColorSegments`})\nexport class TuiProgressColorSegmentsPipe extends AbstractTuiColorSegments<string> {\n /**\n * @deprecated use tuiProgressColorSegments directive instead\n * {@link TuiProgressColorSegmentsDirective}\n * @example: `<progress tuiProgressBar [tuiProgressColorSegments]=\"colors\">`\n */\n transform(colors: string[]): string {\n return this.calculate(colors);\n }\n}\n","import {Pipe} from '@angular/core';\nimport {Observable, timer} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n// TODO: 3.0 delete\n@Pipe({name: `tuiProgressColorSegmentsAsync`})\nexport class TuiProgressColorSegmentsAsyncPipe extends AbstractTuiColorSegments<\n Observable<string>\n> {\n /**\n * @deprecated use tuiProgressColorSegments directive instead\n * {@link TuiProgressColorSegmentsDirective}\n * @example: `<progress tuiProgressBar [tuiProgressColorSegments]=\"colors\">`\n */\n transform(colors: string[]): Observable<string> {\n return timer(0).pipe(map(() => this.calculate(colors)));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiRepeatTimesModule} from '@taiga-ui/cdk';\n\nimport {TuiProgressBarComponent} from './progress-bar/progress-bar.component';\nimport {TuiProgressColorSegmentsDirective} from './progress-bar/progress-color-segments.directive';\nimport {TuiProgressCircleComponent} from './progress-circle/progress-circle.component';\nimport {TuiProgressLabelComponent} from './progress-label/progress-label.component';\nimport {TuiProgressSegmentedComponent} from './progress-segmented/progress-segmented.component';\nimport {TuiProgressColorSegmentsPipe} from './utils/progress-color-segments.pipe';\nimport {TuiProgressColorSegmentsAsyncPipe} from './utils/progress-color-segments-async.pipe';\n\n@NgModule({\n imports: [CommonModule, TuiRepeatTimesModule],\n declarations: [\n TuiProgressBarComponent,\n TuiProgressColorSegmentsDirective,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressCircleComponent,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n exports: [\n TuiProgressBarComponent,\n TuiProgressCircleComponent,\n TuiProgressColorSegmentsDirective,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n})\nexport class TuiProgressModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAUa,uBAAuB,GAApC,MAAa,uBAAuB;IAApC;QAQI,SAAI,GAAa,GAAG,CAAC;KACxB;EAAA;AANG;IAFC,KAAK,EAAE;IACP,WAAW,CAAC,4BAA4B,CAAC;sDAC3B;AAKf;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,gBAAgB,CAAC;IAC7B,cAAc,EAAE;qDACI;AARZ,uBAAuB;IANnC,SAAS,CAAC;QACP,QAAQ,EAAE,0BAA0B;QACpC,QAAQ,EAAE,EAAE;QAEZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;GACW,uBAAuB,CASnC;;ACnBD;;;;AAMO,MAAM,sBAAsB,GAAG,CAClC,MAAgB,EAChB,aAAqB;IAErB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,C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U,EAAE;IAOJ,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAPL,wBAAwB,CAqB7C;;ACzBD;IAEa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,wBAAgC;;;;;;IAM9E,SAAS,CAAC,MAAgB;QACtB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;KACjC;EACJ;AATY,4BAA4B;IADxC,IAAI,CAAC,EAAC,IAAI,EAAE,0BAA0B,EAAC,CAAC;GAC5B,4BAA4B,CASxC;;ACTD;IAEa,iCAAiC,GAA9C,MAAa,iCAAkC,SAAQ,wBAEtD;;;;;;IAMG,SAAS,CAAC,MAAgB;QACtB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC3D;EACJ;AAXY,iCAAiC;IAD7C,IAAI,CAAC,EAAC,IAAI,EAAE,+BAA+B,EAAC,CAAC;GACjC,iCAAiC,CAW7C;;ICcY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IArB7B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;QAC7C,YAAY,EAAE;YACV,uBAAuB;YACvB,iCAAiC;YACjC,4BAA4B;YAC5B,iCAAiC;YACjC,0BAA0B;YAC1B,yBAAyB;YACzB,6BAA6B;SAChC;QACD,OAAO,EAAE;YACL,uBAAuB;YACvB,0BAA0B;YAC1B,iCAAiC;YACjC,4BAA4B;YAC5B,iCAAiC;YACjC,yBAAyB;YACzB,6BAA6B;SAChC;KACJ,CAAC;GACW,iBAAiB,CAAG;;ACjCjC;;;;;;"}
@@ -11,8 +11,8 @@ import { TuiIdService } from '@taiga-ui/cdk/services';
11
11
  let TuiPushComponent = class TuiPushComponent {
12
12
  constructor(closeWord$) {
13
13
  this.closeWord$ = closeWord$;
14
- this.heading = ``;
15
- this.type = ``;
14
+ this.heading = '';
15
+ this.type = '';
16
16
  this.timestamp = 0;
17
17
  this.close = new EventEmitter();
18
18
  }
@@ -40,8 +40,8 @@ __decorate([
40
40
  ], TuiPushComponent.prototype, "close", void 0);
41
41
  TuiPushComponent = __decorate([
42
42
  Component({
43
- selector: `tui-push`,
44
- template: "<div class=\"t-image\"><ng-content select=\"img\"></ng-content></div>\n<button\n *ngIf=\"closeable\"\n tuiIconButton\n icon=\"tuiIconCloseLarge\"\n size=\"xs\"\n appearance=\"\"\n shape=\"rounded\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"close.emit()\"\n></button>\n<div class=\"t-top\">\n <span class=\"t-icon\"><ng-content select=\"tui-svg\"></ng-content></span>\n {{ type }}\n <span\n *ngIf=\"timestamp\"\n class=\"t-time\"\n [textContent]=\"timestamp | tuiFormatDate | async\"\n ></span>\n</div>\n<h3 class=\"t-heading\">{{ heading }}</h3>\n<div class=\"t-content\">\n <ng-content></ng-content>\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\"><ng-content select=\"[tuiButton]\"></ng-content></span>\n <span class=\"t-link\"><ng-content select=\"[tuiLink]\"></ng-content></span>\n</div>\n",
43
+ selector: 'tui-push',
44
+ template: "<div class=\"t-image\">\n <ng-content select=\"img\"></ng-content>\n</div>\n<button\n *ngIf=\"closeable\"\n tuiIconButton\n icon=\"tuiIconCloseLarge\"\n size=\"xs\"\n appearance=\"\"\n shape=\"rounded\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"close.emit()\"\n></button>\n<div class=\"t-top\">\n <span class=\"t-icon\">\n <ng-content select=\"tui-svg\"></ng-content>\n </span>\n {{ type }}\n <span\n *ngIf=\"timestamp\"\n class=\"t-time\"\n [textContent]=\"timestamp | tuiFormatDate | async\"\n ></span>\n</div>\n<h3 class=\"t-heading\">{{ heading }}</h3>\n<div class=\"t-content\">\n <ng-content></ng-content>\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\">\n <ng-content select=\"[tuiButton]\"></ng-content>\n </span>\n <span class=\"t-link\">\n <ng-content select=\"[tuiLink]\"></ng-content>\n </span>\n</div>\n",
45
45
  changeDetection: ChangeDetectionStrategy.OnPush,
46
46
  styles: [":host{box-shadow:0 .25rem 1.5rem rgba(0,0,0,.12);position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-l);background:var(--tui-elevation-02)}.t-image{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close{position:absolute;top:.75rem;right:.75rem;color:rgba(0,0,0,.54);background:rgba(242,242,242,.32);-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-icon{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-link)}.t-time:before{content:'\u2022';display:inline-block;width:1rem;text-align:center}.t-heading{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-content,.t-heading{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow:hidden}.t-actions{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button:not(:empty){margin:.75rem .75rem .75rem 0}.t-link{margin:.75rem 0}.t-link:empty{margin:.5rem}"]
47
47
  }),
@@ -54,13 +54,13 @@ let TuiPushDirective = TuiPushDirective_1 = class TuiPushDirective extends TuiMo
54
54
  var _a;
55
55
  super();
56
56
  this.modeDirective = modeDirective;
57
- this.size = `s`;
57
+ this.size = 's';
58
58
  this.shape = null;
59
59
  this.change$ = ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.change$) || new Subject();
60
60
  }
61
61
  get appearance() {
62
62
  var _a;
63
- return ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode) === `onDark` ? `accent` : `secondary`;
63
+ return ((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode) === 'onDark' ? 'accent' : 'secondary';
64
64
  }
65
65
  };
66
66
  TuiPushDirective.ctorParameters = () => [
@@ -68,7 +68,7 @@ TuiPushDirective.ctorParameters = () => [
68
68
  ];
69
69
  TuiPushDirective = TuiPushDirective_1 = __decorate([
70
70
  Directive({
71
- selector: `tui-push`,
71
+ selector: 'tui-push',
72
72
  providers: [
73
73
  {
74
74
  provide: TuiModeDirective,
@@ -118,7 +118,7 @@ __decorate([
118
118
  ], TuiPushAlertDirective.prototype, "tuiPush", null);
119
119
  TuiPushAlertDirective = __decorate([
120
120
  Directive({
121
- selector: `[tuiPush]`,
121
+ selector: '[tuiPush]',
122
122
  providers: [TuiDestroyService],
123
123
  }),
124
124
  __param(0, Inject(TemplateRef)),
@@ -131,7 +131,7 @@ let TuiPushAlertComponent = class TuiPushAlertComponent {
131
131
  constructor(options, context) {
132
132
  this.options = options;
133
133
  this.context = context;
134
- this.animation = Object.assign({ value: `` }, this.options);
134
+ this.animation = Object.assign({ value: '' }, this.options);
135
135
  }
136
136
  get isDirective() {
137
137
  return this.context.content instanceof TuiPushAlertDirective;
@@ -142,17 +142,17 @@ TuiPushAlertComponent.ctorParameters = () => [
142
142
  { type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] }
143
143
  ];
144
144
  __decorate([
145
- HostBinding(`@tuiFadeIn`),
146
- HostBinding(`@tuiSlideInRight`),
147
- HostBinding(`@tuiHeightCollapse`)
145
+ HostBinding('@tuiFadeIn'),
146
+ HostBinding('@tuiSlideInRight'),
147
+ HostBinding('@tuiHeightCollapse')
148
148
  ], TuiPushAlertComponent.prototype, "animation", void 0);
149
149
  TuiPushAlertComponent = __decorate([
150
150
  Component({
151
- selector: `tui-push-alert`,
151
+ selector: 'tui-push-alert',
152
152
  template: "<tui-push\n *ngIf=\"!isDirective; else content\"\n [heading]=\"context.heading\"\n [type]=\"context.type\"\n [timestamp]=\"context.timestamp\"\n (close)=\"context.$implicit.complete()\"\n>\n <img\n *ngIf=\"context.image\"\n alt=\"\"\n [src]=\"context.image\"\n />\n <tui-svg\n *ngIf=\"context.icon\"\n [style.color]=\"context.iconColor\"\n [src]=\"context.icon\"\n ></tui-svg>\n <div\n polymorpheus-outlet\n [content]=\"context.content\"\n ></div>\n <button\n *ngIf=\"context.buttons.length > 1\"\n tuiButton\n (click)=\"context.$implicit.next(context.buttons[0])\"\n >\n {{ context.buttons[0] }}\n </button>\n <button\n *ngIf=\"context.buttons.length\"\n tuiLink\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1])\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n</tui-push>\n<ng-template #content>\n <div\n polymorpheus-outlet\n [content]=\"context.content\"\n ></div>\n</ng-template>\n",
153
153
  changeDetection: ChangeDetectionStrategy.OnPush,
154
154
  animations: [tuiFadeIn, tuiSlideInRight, tuiHeightCollapse],
155
- host: { role: `alert` },
155
+ host: { role: 'alert' },
156
156
  styles: [":host{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}:host:first-child{margin-top:auto}"]
157
157
  }),
158
158
  __param(0, Inject(TUI_ANIMATION_OPTIONS)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-push.js","sources":["ng://@taiga-ui/kit/components/push/push.component.ts","ng://@taiga-ui/kit/components/push/push.directive.ts","ng://@taiga-ui/kit/components/push/push.options.ts","ng://@taiga-ui/kit/components/push/push-alert.directive.ts","ng://@taiga-ui/kit/components/push/push-alert.component.ts","ng://@taiga-ui/kit/components/push/push.service.ts","ng://@taiga-ui/kit/components/push/push.module.ts","ng://@taiga-ui/kit/components/push/taiga-ui-kit-components-push.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiIsObserved} from '@taiga-ui/cdk';\nimport {TUI_CLOSE_WORD} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: `tui-push`,\n templateUrl: `./push.template.html`,\n styleUrls: [`./push.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPushComponent {\n @Input()\n @tuiDefaultProp()\n heading = ``;\n\n @Input()\n @tuiDefaultProp()\n type = ``;\n\n @Input()\n @tuiDefaultProp()\n timestamp = 0;\n\n @Output()\n readonly close = new EventEmitter<void>();\n\n constructor(@Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>) {}\n\n get closeable(): boolean {\n return tuiIsObserved(this.close);\n }\n}\n","import {Directive, Inject, Optional, SkipSelf} from '@angular/core';\nimport {TUI_BUTTON_OPTIONS, TuiButtonOptions, TuiModeDirective} from '@taiga-ui/core';\nimport {Subject} from 'rxjs';\n\n@Directive({\n selector: `tui-push`,\n providers: [\n {\n provide: TuiModeDirective,\n useExisting: TuiPushDirective,\n },\n {\n provide: TUI_BUTTON_OPTIONS,\n useExisting: TuiPushDirective,\n },\n ],\n})\nexport class TuiPushDirective extends TuiModeDirective implements TuiButtonOptions {\n size: TuiButtonOptions['size'] = `s`;\n\n shape = null;\n\n readonly change$ = this.modeDirective?.change$ || new Subject();\n\n constructor(\n @Optional()\n @SkipSelf()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super();\n }\n\n get appearance(): string {\n return this.modeDirective?.mode === `onDark` ? `accent` : `secondary`;\n }\n}\n","export interface TuiPushOptions {\n readonly heading: string;\n readonly type: string;\n readonly timestamp: number;\n readonly image: string;\n readonly icon: string;\n readonly iconColor: string;\n readonly buttons: readonly string[];\n}\n\nexport const TUI_PUSH_DEFAULT_OPTIONS: TuiPushOptions = {\n heading: ``,\n type: ``,\n timestamp: 0,\n image: ``,\n icon: ``,\n iconColor: ``,\n buttons: [],\n};\n","import {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n Inject,\n Input,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {switchMap, takeUntil} from 'rxjs/operators';\n\nimport {TuiPushService} from './push.service';\n\n@Directive({\n selector: `[tuiPush]`,\n providers: [TuiDestroyService],\n})\nexport class TuiPushAlertDirective extends PolymorpheusTemplate<any> {\n private readonly show$ = new Subject<boolean>();\n\n @Input()\n set tuiPush(show: boolean) {\n this.show$.next(show);\n }\n\n constructor(\n @Inject(TemplateRef) template: TemplateRef<any>,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(forwardRef(() => TuiPushService)) push: TuiPushService,\n ) {\n super(template, changeDetectorRef);\n\n this.show$\n .pipe(\n switchMap(show => (show ? push.open(this) : EMPTY)),\n takeUntil(destroy$),\n )\n .subscribe();\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, HostBinding, Inject} from '@angular/core';\nimport {TuiDialog} from '@taiga-ui/cdk';\nimport {\n TUI_ANIMATION_OPTIONS,\n tuiFadeIn,\n tuiHeightCollapse,\n tuiSlideInRight,\n} from '@taiga-ui/core';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPushOptions} from './push.options';\nimport {TuiPushAlertDirective} from './push-alert.directive';\n\n@Component({\n selector: `tui-push-alert`,\n templateUrl: `./push-alert.template.html`,\n styleUrls: [`./push-alert.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiFadeIn, tuiSlideInRight, tuiHeightCollapse],\n host: {role: `alert`},\n})\nexport class TuiPushAlertComponent {\n @HostBinding(`@tuiFadeIn`)\n @HostBinding(`@tuiSlideInRight`)\n @HostBinding(`@tuiHeightCollapse`)\n readonly animation = {value: ``, ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiPushOptions, string>,\n ) {}\n\n get isDirective(): boolean {\n return this.context.content instanceof TuiPushAlertDirective;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {AbstractTuiDialogService, TuiBaseDialogContext} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_PUSH_DEFAULT_OPTIONS, TuiPushOptions} from './push.options';\nimport {TuiPushAlertComponent} from './push-alert.component';\n\n@Injectable({providedIn: `root`})\nexport class TuiPushService extends AbstractTuiDialogService<TuiPushOptions, string> {\n protected readonly component = new PolymorpheusComponent(TuiPushAlertComponent);\n protected readonly defaultOptions = TUI_PUSH_DEFAULT_OPTIONS;\n\n open(\n content: PolymorpheusContent<TuiBaseDialogContext<string> & TuiPushOptions>,\n options: Partial<TuiPushOptions> = {},\n ): Observable<string> {\n return super.open(content, options);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_ALERTS} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiFormatDatePipeModule,\n TuiLinkModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPushComponent} from './push.component';\nimport {TuiPushDirective} from './push.directive';\nimport {TuiPushService} from './push.service';\nimport {TuiPushAlertComponent} from './push-alert.component';\nimport {TuiPushAlertDirective} from './push-alert.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiButtonModule,\n TuiLinkModule,\n TuiSvgModule,\n TuiFormatDatePipeModule,\n ],\n declarations: [\n TuiPushComponent,\n TuiPushDirective,\n TuiPushAlertComponent,\n TuiPushAlertDirective,\n ],\n exports: [\n TuiPushComponent,\n TuiPushDirective,\n TuiPushAlertComponent,\n TuiPushAlertDirective,\n ],\n providers: [\n {\n provide: TUI_ALERTS,\n useExisting: TuiPushService,\n multi: true,\n },\n ],\n})\nexport class TuiPushModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAkBa,gBAAgB,GAA7B,MAAa,gBAAgB;IAgBzB,YAA6C,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;QAb3E,YAAO,GAAG,EAAE,CAAC;QAIb,SAAI,GAAG,EAAE,CAAC;QAIV,cAAS,GAAG,CAAC,CAAC;QAGL,UAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;KAEqC;IAE/E,IAAI,SAAS;QACT,OAAO,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpC;EACJ;;YAL4D,UAAU,uBAAtD,MAAM,SAAC,cAAc;;AAblC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iDACJ;AAIb;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;8CACP;AAIV;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACH;AAGd;IADC,MAAM,EAAE;+CACiC;AAdjC,gBAAgB;IAN5B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,+4BAAmC;QAEnC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAiBe,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;GAhB1B,gBAAgB,CAqB5B;;;ICtBY,gBAAgB,wBAA7B,MAAa,gBAAiB,SAAQ,gBAAgB;IAOlD,YAIqB,aAAsC;;QAEvD,KAAK,EAAE,CAAC;QAFS,kBAAa,GAAb,aAAa,CAAyB;QAV3D,SAAI,GAA6B,GAAG,CAAC;QAErC,UAAK,GAAG,IAAI,CAAC;QAEJ,YAAO,GAAG,OAAA,IAAI,CAAC,aAAa,0CAAE,OAAO,KAAI,IAAI,OAAO,EAAE,CAAC;KAS/D;IAED,IAAI,UAAU;;QACV,OAAO,OAAA,IAAI,CA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OAAO,EAAC;;KACxB,CAAC;IAQO,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAC7B,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;GARxB,qBAAqB,CAejC;;IC5BY,cAAc,GAA3B,MAAa,cAAe,SAAQ,wBAAgD;IAApF;;QACuB,cAAS,GAAG,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,CAAC;QAC7D,mBAAc,GAAG,wBAAwB,CAAC;KAQhE;IANG,IAAI,CACA,OAA2E,EAC3E,UAAmC,EAAE;QAErC,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;KACvC;EACJ;;AAVY,cAAc;IAD1B,UAAU,CAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,cAAc,CAU1B;;IC2BY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IA7BzB,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,kBAAkB;YAClB,eAAe;YACf,aAAa;YACb,YAAY;YACZ,uBAAuB;SAC1B;QACD,YAAY,EAAE;YACV,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,qBAAqB;SACxB;QACD,OAAO,EAAE;YACL,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,qBAAqB;SACxB;QACD,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,UAAU;gBACnB,WAAW,EAAE,cAAc;gBAC3B,KAAK,EAAE,IAAI;aACd;SACJ;KACJ,CAAC;GACW,aAAa,CAAG;;AC9C7B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-push.js","sources":["ng://@taiga-ui/kit/components/push/push.component.ts","ng://@taiga-ui/kit/components/push/push.directive.ts","ng://@taiga-ui/kit/components/push/push.options.ts","ng://@taiga-ui/kit/components/push/push-alert.directive.ts","ng://@taiga-ui/kit/components/push/push-alert.component.ts","ng://@taiga-ui/kit/components/push/push.service.ts","ng://@taiga-ui/kit/components/push/push.module.ts","ng://@taiga-ui/kit/components/push/taiga-ui-kit-components-push.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp, tuiIsObserved} from '@taiga-ui/cdk';\nimport {TUI_CLOSE_WORD} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-push',\n templateUrl: './push.template.html',\n styleUrls: ['./push.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPushComponent {\n @Input()\n @tuiDefaultProp()\n heading = '';\n\n @Input()\n @tuiDefaultProp()\n type = '';\n\n @Input()\n @tuiDefaultProp()\n timestamp = 0;\n\n @Output()\n readonly close = new EventEmitter<void>();\n\n constructor(@Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>) {}\n\n get closeable(): boolean {\n return tuiIsObserved(this.close);\n }\n}\n","import {Directive, Inject, Optional, SkipSelf} from '@angular/core';\nimport {TUI_BUTTON_OPTIONS, TuiButtonOptions, TuiModeDirective} from '@taiga-ui/core';\nimport {Subject} from 'rxjs';\n\n@Directive({\n selector: 'tui-push',\n providers: [\n {\n provide: TuiModeDirective,\n useExisting: TuiPushDirective,\n },\n {\n provide: TUI_BUTTON_OPTIONS,\n useExisting: TuiPushDirective,\n },\n ],\n})\nexport class TuiPushDirective extends TuiModeDirective implements TuiButtonOptions {\n size: TuiButtonOptions['size'] = 's';\n\n shape = null;\n\n readonly change$ = this.modeDirective?.change$ || new Subject();\n\n constructor(\n @Optional()\n @SkipSelf()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super();\n }\n\n get appearance(): string {\n return this.modeDirective?.mode === 'onDark' ? 'accent' : 'secondary';\n }\n}\n","export interface TuiPushOptions {\n readonly heading: string;\n readonly type: string;\n readonly timestamp: number;\n readonly image: string;\n readonly icon: string;\n readonly iconColor: string;\n readonly buttons: readonly string[];\n}\n\nexport const TUI_PUSH_DEFAULT_OPTIONS: TuiPushOptions = {\n heading: ``,\n type: ``,\n timestamp: 0,\n image: ``,\n icon: ``,\n iconColor: ``,\n buttons: [],\n};\n","import {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n Inject,\n Input,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {switchMap, takeUntil} from 'rxjs/operators';\n\nimport {TuiPushService} from './push.service';\n\n@Directive({\n selector: '[tuiPush]',\n providers: [TuiDestroyService],\n})\nexport class TuiPushAlertDirective extends PolymorpheusTemplate<any> {\n private readonly show$ = new Subject<boolean>();\n\n @Input()\n set tuiPush(show: boolean) {\n this.show$.next(show);\n }\n\n constructor(\n @Inject(TemplateRef) template: TemplateRef<any>,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(forwardRef(() => TuiPushService)) push: TuiPushService,\n ) {\n super(template, changeDetectorRef);\n\n this.show$\n .pipe(\n switchMap(show => (show ? push.open(this) : EMPTY)),\n takeUntil(destroy$),\n )\n .subscribe();\n }\n}\n","import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, HostBinding, Inject} from '@angular/core';\nimport {TuiDialog} from '@taiga-ui/cdk';\nimport {\n TUI_ANIMATION_OPTIONS,\n tuiFadeIn,\n tuiHeightCollapse,\n tuiSlideInRight,\n} from '@taiga-ui/core';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPushOptions} from './push.options';\nimport {TuiPushAlertDirective} from './push-alert.directive';\n\n@Component({\n selector: 'tui-push-alert',\n templateUrl: './push-alert.template.html',\n styleUrls: ['./push-alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiFadeIn, tuiSlideInRight, tuiHeightCollapse],\n host: {role: 'alert'},\n})\nexport class TuiPushAlertComponent {\n @HostBinding('@tuiFadeIn')\n @HostBinding('@tuiSlideInRight')\n @HostBinding('@tuiHeightCollapse')\n readonly animation = {value: '', ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiPushOptions, string>,\n ) {}\n\n get isDirective(): boolean {\n return this.context.content instanceof TuiPushAlertDirective;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {AbstractTuiDialogService, TuiBaseDialogContext} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_PUSH_DEFAULT_OPTIONS, TuiPushOptions} from './push.options';\nimport {TuiPushAlertComponent} from './push-alert.component';\n\n@Injectable({providedIn: `root`})\nexport class TuiPushService extends AbstractTuiDialogService<TuiPushOptions, string> {\n protected readonly component = new PolymorpheusComponent(TuiPushAlertComponent);\n protected readonly defaultOptions = TUI_PUSH_DEFAULT_OPTIONS;\n\n open(\n content: PolymorpheusContent<TuiBaseDialogContext<string> & TuiPushOptions>,\n options: Partial<TuiPushOptions> = {},\n ): Observable<string> {\n return super.open(content, options);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_ALERTS} from '@taiga-ui/cdk';\nimport {\n TuiButtonModule,\n TuiFormatDatePipeModule,\n TuiLinkModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPushComponent} from './push.component';\nimport {TuiPushDirective} from './push.directive';\nimport {TuiPushService} from './push.service';\nimport {TuiPushAlertComponent} from './push-alert.component';\nimport {TuiPushAlertDirective} from './push-alert.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiButtonModule,\n TuiLinkModule,\n TuiSvgModule,\n TuiFormatDatePipeModule,\n ],\n declarations: [\n TuiPushComponent,\n TuiPushDirective,\n TuiPushAlertComponent,\n TuiPushAlertDirective,\n ],\n exports: [\n TuiPushComponent,\n TuiPushDirective,\n TuiPushAlertComponent,\n TuiPushAlertDirective,\n ],\n providers: [\n {\n provide: TUI_ALERTS,\n useExisting: TuiPushService,\n multi: true,\n },\n ],\n})\nexport class TuiPushModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAkBa,gBAAgB,GAA7B,MAAa,gBAAgB;IAgBzB,YAA6C,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;QAb3E,YAAO,GAAG,EAAE,CAAC;QAIb,SAAI,GAAG,EAAE,CAAC;QAIV,cAAS,GAAG,CAAC,CAAC;QAGL,UAAK,GAAG,IAAI,YAAY,EAAQ,CAAC;KAEqC;IAE/E,IAAI,SAAS;QACT,OAAO,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpC;EACJ;;YAL4D,UAAU,uBAAtD,MAAM,SAAC,cAAc;;AAblC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iDACJ;AAIb;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;8CACP;AAIV;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACH;AAGd;IADC,MAAM,EAAE;+CACiC;AAdjC,gBAAgB;IAN5B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,u8BAAmC;QAEnC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAiBe,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;GAhB1B,gBAAgB,CAqB5B;;;ICtBY,gBAAgB,wBAA7B,MAAa,gBAAiB,SAAQ,gBAAgB;IAOlD,YAIqB,aAAsC;;QAEvD,KAAK,EAAE,CAAC;QAFS,kBAAa,GAAb,aAAa,CAAyB;QAV3D,SAAI,GA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uiRadioBlockCompo
11
11
  super(control, changeDetectorRef);
12
12
  this.modeDirective = modeDirective;
13
13
  this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
14
- this.contentAlign = `right`;
15
- this.size = `l`;
14
+ this.contentAlign = 'right';
15
+ this.size = 'l';
16
16
  this.hideRadio = false;
17
17
  this.pseudoDisabled = false;
18
18
  }
@@ -29,10 +29,11 @@ let TuiRadioBlockComponent = TuiRadioBlockComponent_1 = class TuiRadioBlockCompo
29
29
  return this.value === this.item && this.hideRadio;
30
30
  }
31
31
  get checkboxSize() {
32
- return this.size === `l` ? `l` : `m`;
32
+ return this.size === 'l' ? 'l' : 'm';
33
33
  }
34
34
  get appearance() {
35
- if (!this.modeDirective || !this.modeDirective.mode) {
35
+ var _a;
36
+ if (!((_a = this.modeDirective) === null || _a === void 0 ? void 0 : _a.mode)) {
36
37
  return this.checked
37
38
  ? "whiteblock-active" /* WhiteblockActive */
38
39
  : "whiteblock" /* Whiteblock */;
@@ -72,17 +73,17 @@ __decorate([
72
73
  ], TuiRadioBlockComponent.prototype, "identityMatcher", void 0);
73
74
  __decorate([
74
75
  Input(),
75
- HostBinding(`attr.data-tui-host-align`),
76
+ HostBinding('attr.data-tui-host-align'),
76
77
  tuiDefaultProp()
77
78
  ], TuiRadioBlockComponent.prototype, "contentAlign", void 0);
78
79
  __decorate([
79
80
  Input(),
80
- HostBinding(`attr.data-size`),
81
+ HostBinding('attr.data-size'),
81
82
  tuiDefaultProp()
82
83
  ], TuiRadioBlockComponent.prototype, "size", void 0);
83
84
  __decorate([
84
85
  Input(),
85
- HostBinding(`class._hidden_radio`),
86
+ HostBinding('class._hidden_radio'),
86
87
  tuiDefaultProp()
87
88
  ], TuiRadioBlockComponent.prototype, "hideRadio", void 0);
88
89
  __decorate([
@@ -90,14 +91,14 @@ __decorate([
90
91
  tuiDefaultProp()
91
92
  ], TuiRadioBlockComponent.prototype, "pseudoDisabled", void 0);
92
93
  __decorate([
93
- HostBinding(`class._disabled`)
94
+ HostBinding('class._disabled')
94
95
  ], TuiRadioBlockComponent.prototype, "computedDisabled", null);
95
96
  __decorate([
96
- HostBinding(`class._active`)
97
+ HostBinding('class._active')
97
98
  ], TuiRadioBlockComponent.prototype, "checked", null);
98
99
  TuiRadioBlockComponent = TuiRadioBlockComponent_1 = __decorate([
99
100
  Component({
100
- selector: `tui-radio-block`,
101
+ selector: 'tui-radio-block',
101
102
  template: "<label\n class=\"t-wrapper\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n>\n <tui-wrapper\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focused]=\"computedFocusVisible\"\n [hovered]=\"computedHovered\"\n [pressed]=\"computedPressed\"\n [invalid]=\"computedInvalid\"\n >\n <div class=\"t-content-wrapper\">\n <div class=\"t-content\">\n <tui-radio\n class=\"t-view\"\n [focusable]=\"focusable\"\n [identityMatcher]=\"identityMatcher\"\n [item]=\"item\"\n [name]=\"computedName || ''\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [pseudoDisabled]=\"computedDisabled\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocused]=\"false\"\n [pseudoHovered]=\"computedHovered\"\n [pseudoPressed]=\"computedPressed\"\n [size]=\"checkboxSize\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n (focusVisibleChange)=\"onFocusVisible($event)\"\n ></tui-radio>\n <div class=\"t-label\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </tui-wrapper>\n</label>\n",
102
103
  changeDetection: ChangeDetectionStrategy.OnPush,
103
104
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-radio-block.js","sources":["ng://@taiga-ui/kit/components/radio-block/radio-block.component.ts","ng://@taiga-ui/kit/components/radio-block/radio-block.module.ts","ng://@taiga-ui/kit/components/radio-block/taiga-ui-kit-components-radio-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: `tui-radio-block`,\n templateUrl: `./radio-block.template.html`,\n styleUrls: [`./radio-block.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioBlockComponent),\n },\n ],\n})\nexport class TuiRadioBlockComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding(`attr.data-tui-host-align`)\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = `right`;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = `l`;\n\n @Input()\n @HostBinding(`class._hidden_radio`)\n @tuiDefaultProp()\n hideRadio = false;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding(`class._disabled`)\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding(`class._active`)\n get checked(): boolean {\n return this.value === this.item && this.hideRadio;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.size === `l` ? `l` : `m`;\n }\n\n get appearance(): TuiAppearance {\n if (!this.modeDirective || !this.modeDirective.mode) {\n return this.checked\n ? TuiAppearance.WhiteblockActive\n : TuiAppearance.Whiteblock;\n }\n\n return this.checked ? TuiAppearance.Primary : TuiAppearance.Secondary;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.updateFocusVisible(focusVisible);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiHoveredModule, TuiPressedModule} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioBlockComponent} from './radio-block.component';\n\n@NgModule({\n imports: [\n FormsModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiRadioModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioBlockComponent],\n exports: [TuiRadioBlockComponent],\n})\nexport class TuiRadioBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA2Ca,sBAAsB,8BAAnC,MAAa,sBACT,SAAQ,0BA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,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAxCpB,sBAAsB,CAiGlC;;ICzHY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAX/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;YACd,gBAAgB;SACnB;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACnBnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-radio-block.js","sources":["ng://@taiga-ui/kit/components/radio-block/radio-block.component.ts","ng://@taiga-ui/kit/components/radio-block/radio-block.module.ts","ng://@taiga-ui/kit/components/radio-block/taiga-ui-kit-components-radio-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-block',\n templateUrl: './radio-block.template.html',\n styleUrls: ['./radio-block.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioBlockComponent),\n },\n ],\n})\nexport class TuiRadioBlockComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-align')\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL | TuiSizeS = 'l';\n\n @Input()\n @HostBinding('class._hidden_radio')\n @tuiDefaultProp()\n hideRadio = false;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding('class._disabled')\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding('class._active')\n get checked(): boolean {\n return this.value === this.item && this.hideRadio;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.size === 'l' ? 'l' : 'm';\n }\n\n get appearance(): TuiAppearance {\n if (!this.modeDirective?.mode) {\n return this.checked\n ? TuiAppearance.WhiteblockActive\n : TuiAppearance.Whiteblock;\n }\n\n return this.checked ? TuiAppearance.Primary : TuiAppearance.Secondary;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.updateFocusVisible(focusVisible);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiHoveredModule, TuiPressedModule} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioBlockComponent} from './radio-block.component';\n\n@NgModule({\n imports: [\n FormsModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiRadioModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioBlockComponent],\n exports: [TuiRadioBlockComponent],\n})\nexport class TuiRadioBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA2Ca,sBAAsB,8BAAnC,MAAa,sBACT,SAAQ,0BAA6B;IAgCrC,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBAAa,GAAb,aAAa,CAAyB;QA7B3D,oBAAe,GAA0B,4BAA4B,CAAC;QAKtE,iBAAY,GAA2B,OAAO,CAAC;QAK/C,SAAI,GAAwB,GAAG,CAAC;QAKhC,cAAS,GAAG,KAAK,CAAC;QAIlB,mBAAc,GAAG,KAAK,CAAC;KAatB;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC;KAChE;IAED,IAAI,OAAO;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;KAC7C;IAGD,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC;KAC/C;IAGD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,KA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AAqB,CAAC;IAClC,cAAc,EAAE;yDACC;AAIlB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;8DACM;AAwBvB;IADC,WAAW,CAAC,iBAAiB,CAAC;8DAG9B;AAGD;IADC,WAAW,CAAC,eAAe,CAAC;qDAG5B;AA9DQ,sBAAsB;IAZlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,+jDAA0C;QAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,wBAAsB,CAAC;aACxD;SACJ;;KACJ,CAAC;IAmCO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAxCpB,sBAAsB,CAiGlC;;ICzHY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAX/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;YACd,gBAAgB;SACnB;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACnBnC;;;;;;"}
@@ -15,7 +15,7 @@ __decorate([
15
15
  ], TuiRadioGroupComponent.prototype, "name", void 0);
16
16
  TuiRadioGroupComponent = TuiRadioGroupComponent_1 = __decorate([
17
17
  Component({
18
- selector: `tui-radio-group`,
18
+ selector: 'tui-radio-group',
19
19
  template: "<ng-content></ng-content>\n",
20
20
  changeDetection: ChangeDetectionStrategy.OnPush
21
21
  })
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-radio-group.js","sources":["ng://@taiga-ui/kit/components/radio-group/radio-group.component.ts","ng://@taiga-ui/kit/components/radio-group/radio-group.module.ts","ng://@taiga-ui/kit/components/radio-group/taiga-ui-kit-components-radio-group.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Component({\n selector: `tui-radio-group`,\n templateUrl: `./radio-group.template.html`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiRadioGroupComponent {\n private static index = 0;\n\n @Input()\n @tuiDefaultProp()\n name = `tui-radio-group-${TuiRadioGroupComponent.index++}`;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRadioGroupComponent} from './radio-group.component';\n\n@NgModule({\n declarations: [TuiRadioGroupComponent],\n exports: [TuiRadioGroupComponent],\n})\nexport class TuiRadioGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAQa,sBAAsB,8BAAnC,MAAa,sBAAsB;IAAnC;QAKI,SAAI,GAAG,mBAAmB,wBAAsB,CAAC,KAAK,EAAE,EAAE,CAAC;KAC9D;EAAA;AALkB,4BAAK,GAAG,CAAC,CAAC;AAIzB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDAC0C;AALlD,sBAAsB;IALlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,uCAA0C;QAC1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;KAClD,CAAC;GACW,sBAAsB,CAMlC;;ICNY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-radio-group.js","sources":["ng://@taiga-ui/kit/components/radio-group/radio-group.component.ts","ng://@taiga-ui/kit/components/radio-group/radio-group.module.ts","ng://@taiga-ui/kit/components/radio-group/taiga-ui-kit-components-radio-group.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Component({\n selector: 'tui-radio-group',\n templateUrl: './radio-group.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiRadioGroupComponent {\n private static index = 0;\n\n @Input()\n @tuiDefaultProp()\n name = `tui-radio-group-${TuiRadioGroupComponent.index++}`;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRadioGroupComponent} from './radio-group.component';\n\n@NgModule({\n declarations: [TuiRadioGroupComponent],\n exports: [TuiRadioGroupComponent],\n})\nexport class TuiRadioGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAQa,sBAAsB,8BAAnC,MAAa,sBAAsB;IAAnC;QAKI,SAAI,GAAG,mBAAmB,wBAAsB,CAAC,KAAK,EAAE,EAAE,CAAC;KAC9D;EAAA;AALkB,4BAAK,GAAG,CAAC,CAAC;AAIzB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDAC0C;AALlD,sBAAsB;IALlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,uCAA0C;QAC1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;KAClD,CAAC;GACW,sBAAsB,CAMlC;;ICNY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
@@ -11,7 +11,7 @@ let TuiRadioLabeledComponent = TuiRadioLabeledComponent_1 = class TuiRadioLabele
11
11
  constructor(control, changeDetectorRef, modeDirective) {
12
12
  super(control, changeDetectorRef);
13
13
  this.modeDirective = modeDirective;
14
- this.size = `m`;
14
+ this.size = 'm';
15
15
  this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
16
16
  this.pseudoDisabled = false;
17
17
  }
@@ -53,7 +53,7 @@ __decorate([
53
53
  ], TuiRadioLabeledComponent.prototype, "item", void 0);
54
54
  __decorate([
55
55
  Input(),
56
- HostBinding(`attr.data-size`),
56
+ HostBinding('attr.data-size'),
57
57
  tuiDefaultProp()
58
58
  ], TuiRadioLabeledComponent.prototype, "size", void 0);
59
59
  __decorate([
@@ -65,14 +65,14 @@ __decorate([
65
65
  tuiDefaultProp()
66
66
  ], TuiRadioLabeledComponent.prototype, "pseudoDisabled", void 0);
67
67
  __decorate([
68
- HostBinding(`class._disabled`)
68
+ HostBinding('class._disabled')
69
69
  ], TuiRadioLabeledComponent.prototype, "computedDisabled", null);
70
70
  __decorate([
71
- HostBinding(`attr.data-mode`)
71
+ HostBinding('attr.data-mode')
72
72
  ], TuiRadioLabeledComponent.prototype, "mode", null);
73
73
  TuiRadioLabeledComponent = TuiRadioLabeledComponent_1 = __decorate([
74
74
  Component({
75
- selector: `tui-radio-labeled`,
75
+ selector: 'tui-radio-labeled',
76
76
  template: "<label\n class=\"t-wrapper\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n>\n <tui-radio\n [focusable]=\"focusable\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"computedName || ''\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [pseudoDisabled]=\"computedDisabled\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocused]=\"pseudoFocused\"\n [pseudoHovered]=\"computedHovered\"\n [pseudoPressed]=\"computedPressed\"\n [size]=\"size\"\n [item]=\"item\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n ></tui-radio>\n <div class=\"t-content\">\n <ng-content></ng-content>\n </div>\n</label>\n",
77
77
  changeDetection: ChangeDetectionStrategy.OnPush,
78
78
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-radio-labeled.js","sources":["ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.component.ts","ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.module.ts","ng://@taiga-ui/kit/components/radio-labeled/taiga-ui-kit-components-radio-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: `tui-radio-labeled`,\n templateUrl: `./radio-labeled.template.html`,\n styleUrls: [`./radio-labeled.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioLabeledComponent),\n },\n ],\n})\nexport class TuiRadioLabeledComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding(`class._disabled`)\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding(`attr.data-mode`)\n get mode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioLabeledComponent} from './radio-labeled.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiRadioModule,\n ],\n declarations: [TuiRadioLabeledComponent],\n exports: [TuiRadioLabeledComponent],\n})\nexport class TuiRadioLabeledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAqCa,wBAAwB,gCAArC,MAAa,wBACT,SAAQ,0BAA6B;IAsBrC,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAA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E;sDACI;AAIrB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iEACqD;AAItE;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;gEACM;AAwBvB;IADC,WAAW,CAAC,iBAAiB,CAAC;gEAG9B;AAGD;IADC,WAAW,CAAC,gBAAgB,CAAC;oDAG7B;AApDQ,wBAAwB;IAZpC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,o1BAA4C;QAE5C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,0BAAwB,CAAC;aAC1D;SACJ;;KACJ,CAAC;IAyBO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GA9BpB,wBAAwB,CAqEpC;;IChFY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAbjC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;SACjB;QACD,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;AC1BrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-radio-labeled.js","sources":["ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.component.ts","ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.module.ts","ng://@taiga-ui/kit/components/radio-labeled/taiga-ui-kit-components-radio-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-labeled',\n templateUrl: './radio-labeled.template.html',\n styleUrls: ['./radio-labeled.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioLabeledComponent),\n },\n ],\n})\nexport class TuiRadioLabeledComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding('class._disabled')\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding('attr.data-mode')\n get mode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean): void {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean): void {\n this.updatePressed(pressed);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioLabeledComponent} from './radio-labeled.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiRadioModule,\n ],\n declarations: [TuiRadioLabeledComponent],\n exports: [TuiRadioLabeledComponent],\n})\nexport class TuiRadioLabeledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAqCa,wBAAwB,gCAArC,MAAa,wBACT,SAAQ,0BAA6B;IAsBrC,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBAAa,GAAb,aAAa,CAAyB;QAlB3D,SAAI,GAAa,GAAG,CAAC;QAIrB,oBAAe,GAA0B,4BAA4B,CAAC;QAItE,mBAAc,GAAG,KAAK,CAAC;KAatB;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC;KAChE;IAED,IAAI,OAAO;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,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