@taiga-ui/kit 2.31.0 → 2.35.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 (931) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js +2 -2
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.min.js +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 +3 -3
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-arrow.umd.js +44 -8
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-arrow.umd.min.js +2 -2
  13. package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-avatar.umd.js +2 -2
  15. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-avatar.umd.min.js +2 -2
  17. package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-badge.umd.js +2 -2
  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 +2 -2
  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 +2 -2
  25. package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +2 -2
  27. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +1 -1
  29. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
  31. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +2 -2
  33. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-carousel.umd.js +1 -1
  35. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +1 -1
  37. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +2 -2
  39. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +2 -2
  41. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +2 -2
  43. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +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 +2 -2
  47. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  49. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-combo-box.umd.js +128 -48
  51. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +2 -2
  53. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +17 -11
  55. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +2 -2
  57. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-field-error.umd.js +10 -15
  59. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-filter.umd.js +2 -2
  63. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  65. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-copy.umd.js +47 -17
  67. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +2 -2
  69. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-count.umd.js +43 -5
  71. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  73. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +69 -25
  75. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
  77. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +70 -26
  79. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +2 -2
  81. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-date.umd.js +65 -25
  83. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
  85. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-inline.umd.js +2 -15
  87. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +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 +106 -34
  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 +2 -2
  93. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-month.umd.js +94 -24
  95. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +2 -2
  97. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-number.umd.js +50 -4
  99. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  101. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-password.umd.js +49 -3
  103. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +14 -5
  107. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-phone.umd.js +64 -22
  111. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +2 -2
  113. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-input-range.umd.js +8 -5
  115. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  117. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input-slider.umd.js +8 -5
  119. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  121. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-input-tag.umd.js +53 -17
  123. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
  125. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-input-time.umd.js +19 -7
  127. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +2 -2
  129. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-input.umd.js +32 -3
  131. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  133. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +24 -14
  135. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  137. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +2 -2
  139. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  141. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-multi-select.umd.js +67 -19
  143. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
  145. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.js +140 -73
  147. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
  149. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-block.umd.js +2 -2
  151. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +2 -2
  155. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-radio-list.umd.js +2 -2
  159. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  161. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-radio.umd.js +7 -2
  163. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  165. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  167. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  168. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-rating.umd.js +5 -0
  170. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-rating.umd.min.js +1 -1
  172. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-select.umd.js +107 -36
  174. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  176. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-slider.umd.js +155 -27
  178. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  180. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -1
  182. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -1
  186. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-tag.umd.js +11 -5
  190. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  192. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-text-area.umd.js +6 -4
  194. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  195. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +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 +7 -2
  198. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  200. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  201. package/bundles/taiga-ui-kit-constants.umd.js +8 -0
  202. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  203. package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
  204. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  205. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  207. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +421 -0
  208. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -0
  209. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +16 -0
  210. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -0
  211. package/bundles/taiga-ui-kit-pipes.umd.js +12 -4
  212. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-pipes.umd.min.js +1 -1
  214. package/bundles/taiga-ui-kit-providers.umd.js +31 -13
  215. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  216. package/bundles/taiga-ui-kit-providers.umd.min.js +1 -1
  217. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  218. package/bundles/taiga-ui-kit-tokens.umd.js +242 -4
  219. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-tokens.umd.min.js +15 -1
  221. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  222. package/bundles/taiga-ui-kit-utils-mask.umd.js +17 -8
  223. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  224. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +1 -1
  225. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  226. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +1 -1
  227. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  228. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js +1 -1
  229. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  230. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  231. package/components/arrow/arrow-options.d.ts +18 -0
  232. package/components/arrow/arrow.component.d.ts +5 -3
  233. package/components/arrow/index.d.ts +1 -0
  234. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  235. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  236. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  237. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  238. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  239. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  240. package/components/carousel/carousel-buttons.directive.d.ts +2 -2
  241. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  242. package/components/checkbox/checkbox.component.d.ts +2 -2
  243. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  244. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  245. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  246. package/components/combo-box/combo-box-strict.directive.d.ts +7 -0
  247. package/components/combo-box/combo-box.component.d.ts +11 -7
  248. package/components/combo-box/combo-box.directive.d.ts +6 -0
  249. package/components/combo-box/combo-box.providers.d.ts +2 -0
  250. package/components/combo-box/index.d.ts +3 -0
  251. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  252. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +5 -3
  253. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  254. package/components/field-error/field-error.component.d.ts +1 -2
  255. package/components/field-error/field-error.module.d.ts +3 -0
  256. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  257. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  258. package/components/input/index.d.ts +1 -0
  259. package/components/input/input.directive.d.ts +5 -0
  260. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  261. package/components/input-copy/index.d.ts +2 -0
  262. package/components/input-copy/input-copy.directive.d.ts +5 -0
  263. package/components/input-copy/input-copy.providers.d.ts +2 -0
  264. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  265. package/components/input-count/index.d.ts +1 -0
  266. package/components/input-count/input-count-options.d.ts +10 -4
  267. package/components/input-count/input-count.component.d.ts +3 -3
  268. package/components/input-count/input-count.directive.d.ts +6 -0
  269. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  270. package/components/input-date/index.d.ts +2 -0
  271. package/components/input-date/input-date.component.d.ts +0 -1
  272. package/components/input-date/input-date.directive.d.ts +7 -0
  273. package/components/input-date/input-date.providers.d.ts +4 -0
  274. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  275. package/components/input-date-range/index.d.ts +2 -0
  276. package/components/input-date-range/input-date-range.component.d.ts +0 -1
  277. package/components/input-date-range/input-date-range.directive.d.ts +7 -0
  278. package/components/input-date-range/input-date-range.providers.d.ts +4 -0
  279. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  280. package/components/input-date-time/index.d.ts +2 -0
  281. package/components/input-date-time/input-date-time.component.d.ts +0 -1
  282. package/components/input-date-time/input-date-time.directive.d.ts +7 -0
  283. package/components/input-date-time/input-date-time.providers.d.ts +4 -0
  284. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  285. package/components/input-inline/input-inline.component.d.ts +0 -1
  286. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  287. package/components/input-month/index.d.ts +2 -0
  288. package/components/input-month/input-month.component.d.ts +4 -2
  289. package/components/input-month/input-month.directive.d.ts +14 -0
  290. package/components/input-month/input-month.providers.d.ts +2 -0
  291. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  292. package/components/input-month-range/index.d.ts +2 -0
  293. package/components/input-month-range/input-month-range.component.d.ts +4 -5
  294. package/components/input-month-range/input-month-range.directive.d.ts +14 -0
  295. package/components/input-month-range/input-month-range.providers.d.ts +2 -0
  296. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  297. package/components/input-number/index.d.ts +1 -0
  298. package/components/input-number/input-number.component.d.ts +1 -1
  299. package/components/input-number/input-number.directive.d.ts +10 -0
  300. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  301. package/components/input-password/index.d.ts +1 -0
  302. package/components/input-password/input-password-options.d.ts +10 -4
  303. package/components/input-password/input-password.component.d.ts +3 -3
  304. package/components/input-password/input-password.directive.d.ts +8 -0
  305. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  306. package/components/input-phone/index.d.ts +1 -0
  307. package/components/input-phone/input-phone.component.d.ts +1 -1
  308. package/components/input-phone/input-phone.directive.d.ts +10 -0
  309. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  310. package/components/input-phone-international/input-phone-international.component.d.ts +2 -1
  311. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  312. package/components/input-range/input-range.component.d.ts +2 -1
  313. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  314. package/components/input-slider/input-slider.component.d.ts +2 -1
  315. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  316. package/components/input-tag/index.d.ts +1 -0
  317. package/components/input-tag/input-tag-options.d.ts +7 -0
  318. package/components/input-tag/input-tag.component.d.ts +9 -4
  319. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  320. package/components/input-time/input-time-options.d.ts +13 -4
  321. package/components/input-time/input-time.component.d.ts +9 -9
  322. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  323. package/components/line-clamp/line-clamp.component.d.ts +7 -3
  324. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  325. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  326. package/components/multi-select/hide-selected.pipe.d.ts +1 -1
  327. package/components/multi-select/index.d.ts +1 -0
  328. package/components/multi-select/multi-select-options.d.ts +10 -0
  329. package/components/multi-select/multi-select.component.d.ts +17 -8
  330. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  331. package/components/progress/index.d.ts +4 -3
  332. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +11 -0
  333. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  334. package/components/progress/{pipes → utils}/abstract-color-segments.d.ts +0 -0
  335. package/components/progress/utils/calculate-color-segments.d.ts +5 -0
  336. package/components/progress/{pipes → utils}/progress-color-segments-async.pipe.d.ts +5 -0
  337. package/components/progress/utils/progress-color-segments.pipe.d.ts +9 -0
  338. package/components/radio/radio-options.d.ts +10 -4
  339. package/components/radio/radio.component.d.ts +2 -2
  340. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  341. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  342. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  343. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  344. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  345. package/components/rating/rating-options.d.ts +2 -1
  346. package/components/rating/taiga-ui-kit-components-rating.metadata.json +1 -1
  347. package/components/select/index.d.ts +3 -0
  348. package/components/select/select-options.d.ts +9 -0
  349. package/components/select/select.component.d.ts +11 -5
  350. package/components/select/select.directive.d.ts +7 -0
  351. package/components/select/select.providers.d.ts +2 -0
  352. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  353. package/components/slider/index.d.ts +1 -0
  354. package/components/slider/slider-old.component.d.ts +19 -0
  355. package/components/slider/slider.component.d.ts +15 -13
  356. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  357. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  358. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  359. package/components/tag/tag.component.d.ts +1 -0
  360. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  361. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  362. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  363. package/components/toggle/toggle-options.d.ts +10 -4
  364. package/components/toggle/toggle.component.d.ts +3 -3
  365. package/constants/index.d.ts +1 -0
  366. package/constants/max-time-values.d.ts +2 -0
  367. package/constants/taiga-ui-kit-constants.metadata.json +1 -1
  368. package/directives/lazy-loading/index.d.ts +1 -0
  369. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +0 -1
  370. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  371. package/esm2015/abstract/input-slider.js +2 -2
  372. package/esm2015/abstract/slider/slider.js +2 -2
  373. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +3 -3
  374. package/esm2015/components/accordion/accordion.component.js +3 -3
  375. package/esm2015/components/arrow/arrow-options.js +28 -0
  376. package/esm2015/components/arrow/arrow.component.js +12 -8
  377. package/esm2015/components/arrow/arrow.module.js +3 -2
  378. package/esm2015/components/arrow/index.js +2 -1
  379. package/esm2015/components/avatar/avatar.component.js +3 -3
  380. package/esm2015/components/badge/badge.component.js +3 -3
  381. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  382. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +3 -3
  383. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  384. package/esm2015/components/carousel/carousel-buttons.directive.js +1 -1
  385. package/esm2015/components/carousel/carousel.component.js +1 -1
  386. package/esm2015/components/checkbox/checkbox.component.js +3 -3
  387. package/esm2015/components/checkbox-block/checkbox-block.component.js +3 -3
  388. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  389. package/esm2015/components/combo-box/combo-box-strict.directive.js +31 -0
  390. package/esm2015/components/combo-box/combo-box.component.js +40 -51
  391. package/esm2015/components/combo-box/combo-box.directive.js +25 -0
  392. package/esm2015/components/combo-box/combo-box.module.js +15 -4
  393. package/esm2015/components/combo-box/combo-box.providers.js +28 -0
  394. package/esm2015/components/combo-box/index.js +4 -1
  395. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +17 -11
  396. package/esm2015/components/field-error/field-error.component.js +8 -12
  397. package/esm2015/components/field-error/field-error.module.js +6 -2
  398. package/esm2015/components/filter/filter.component.js +3 -3
  399. package/esm2015/components/input/index.js +2 -1
  400. package/esm2015/components/input/input.component.js +2 -2
  401. package/esm2015/components/input/input.directive.js +22 -0
  402. package/esm2015/components/input/input.module.js +5 -4
  403. package/esm2015/components/input/input.providers.js +6 -2
  404. package/esm2015/components/input-copy/index.js +3 -1
  405. package/esm2015/components/input-copy/input-copy.component.js +8 -15
  406. package/esm2015/components/input-copy/input-copy.directive.js +22 -0
  407. package/esm2015/components/input-copy/input-copy.module.js +5 -4
  408. package/esm2015/components/input-copy/input-copy.providers.js +16 -0
  409. package/esm2015/components/input-count/index.js +2 -1
  410. package/esm2015/components/input-count/input-count-options.js +5 -1
  411. package/esm2015/components/input-count/input-count.component.js +8 -4
  412. package/esm2015/components/input-count/input-count.directive.js +26 -0
  413. package/esm2015/components/input-count/input-count.module.js +5 -4
  414. package/esm2015/components/input-date/index.js +3 -1
  415. package/esm2015/components/input-date/input-date.component.js +9 -27
  416. package/esm2015/components/input-date/input-date.directive.js +28 -0
  417. package/esm2015/components/input-date/input-date.module.js +5 -4
  418. package/esm2015/components/input-date/input-date.providers.js +29 -0
  419. package/esm2015/components/input-date-range/index.js +3 -1
  420. package/esm2015/components/input-date-range/input-date-range.component.js +9 -27
  421. package/esm2015/components/input-date-range/input-date-range.directive.js +28 -0
  422. package/esm2015/components/input-date-range/input-date-range.module.js +9 -4
  423. package/esm2015/components/input-date-range/input-date-range.providers.js +29 -0
  424. package/esm2015/components/input-date-time/index.js +3 -1
  425. package/esm2015/components/input-date-time/input-date-time.component.js +10 -28
  426. package/esm2015/components/input-date-time/input-date-time.directive.js +28 -0
  427. package/esm2015/components/input-date-time/input-date-time.module.js +9 -4
  428. package/esm2015/components/input-date-time/input-date-time.providers.js +29 -0
  429. package/esm2015/components/input-inline/input-inline.component.js +4 -13
  430. package/esm2015/components/input-month/index.js +3 -1
  431. package/esm2015/components/input-month/input-month.component.js +19 -21
  432. package/esm2015/components/input-month/input-month.directive.js +55 -0
  433. package/esm2015/components/input-month/input-month.module.js +7 -6
  434. package/esm2015/components/input-month/input-month.providers.js +19 -0
  435. package/esm2015/components/input-month-range/index.js +3 -1
  436. package/esm2015/components/input-month-range/input-month-range.component.js +21 -33
  437. package/esm2015/components/input-month-range/input-month-range.directive.js +60 -0
  438. package/esm2015/components/input-month-range/input-month-range.module.js +11 -5
  439. package/esm2015/components/input-month-range/input-month-range.providers.js +19 -0
  440. package/esm2015/components/input-number/index.js +2 -1
  441. package/esm2015/components/input-number/input-number.component.js +8 -4
  442. package/esm2015/components/input-number/input-number.directive.js +35 -0
  443. package/esm2015/components/input-number/input-number.module.js +5 -4
  444. package/esm2015/components/input-password/index.js +2 -1
  445. package/esm2015/components/input-password/input-password-options.js +5 -1
  446. package/esm2015/components/input-password/input-password.component.js +7 -3
  447. package/esm2015/components/input-password/input-password.directive.js +30 -0
  448. package/esm2015/components/input-password/input-password.module.js +9 -4
  449. package/esm2015/components/input-phone/index.js +2 -1
  450. package/esm2015/components/input-phone/input-phone.component.js +13 -24
  451. package/esm2015/components/input-phone/input-phone.directive.js +35 -0
  452. package/esm2015/components/input-phone/input-phone.module.js +5 -4
  453. package/esm2015/components/input-phone/input-phone.providers.js +17 -3
  454. package/esm2015/components/input-phone-international/input-phone-international.component.js +11 -6
  455. package/esm2015/components/input-range/input-range.component.js +10 -7
  456. package/esm2015/components/input-slider/input-slider.component.js +10 -7
  457. package/esm2015/components/input-tag/index.js +2 -1
  458. package/esm2015/components/input-tag/input-tag-options.js +9 -0
  459. package/esm2015/components/input-tag/input-tag.component.js +40 -17
  460. package/esm2015/components/input-time/input-time-options.js +8 -1
  461. package/esm2015/components/input-time/input-time.component.js +10 -5
  462. package/esm2015/components/line-clamp/line-clamp.component.js +25 -15
  463. package/esm2015/components/marker-icon/marker-icon.component.js +3 -3
  464. package/esm2015/components/multi-select/hide-selected.pipe.js +4 -3
  465. package/esm2015/components/multi-select/index.js +2 -1
  466. package/esm2015/components/multi-select/multi-select-options.js +13 -0
  467. package/esm2015/components/multi-select/multi-select.component.js +42 -15
  468. package/esm2015/components/multi-select/multi-select.module.js +3 -1
  469. package/esm2015/components/progress/index.js +5 -4
  470. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +48 -0
  471. package/esm2015/components/progress/progress.module.js +6 -3
  472. package/esm2015/components/progress/utils/abstract-color-segments.js +32 -0
  473. package/esm2015/components/progress/utils/calculate-color-segments.js +10 -0
  474. package/esm2015/components/progress/utils/progress-color-segments-async.pipe.js +21 -0
  475. package/esm2015/components/progress/utils/progress-color-segments.pipe.js +19 -0
  476. package/esm2015/components/radio/radio-options.js +5 -1
  477. package/esm2015/components/radio/radio.component.js +3 -3
  478. package/esm2015/components/radio-block/radio-block.component.js +3 -3
  479. package/esm2015/components/radio-labeled/radio-labeled.component.js +3 -3
  480. package/esm2015/components/radio-list/radio-list.component.js +3 -3
  481. package/esm2015/components/range/range.component.js +1 -1
  482. package/esm2015/components/rating/rating-options.js +5 -1
  483. package/esm2015/components/select/index.js +4 -1
  484. package/esm2015/components/select/select-options.js +12 -0
  485. package/esm2015/components/select/select.component.js +36 -39
  486. package/esm2015/components/select/select.directive.js +28 -0
  487. package/esm2015/components/select/select.module.js +5 -4
  488. package/esm2015/components/select/select.providers.js +28 -0
  489. package/esm2015/components/slider/index.js +2 -1
  490. package/esm2015/components/slider/slider-old.component.js +71 -0
  491. package/esm2015/components/slider/slider.component.js +78 -44
  492. package/esm2015/components/slider/slider.module.js +4 -3
  493. package/esm2015/components/stepper/step/step.component.js +3 -3
  494. package/esm2015/components/tabs/tab/tab.providers.js +3 -3
  495. package/esm2015/components/tag/tag.component.js +12 -6
  496. package/esm2015/components/text-area/text-area.component.js +7 -4
  497. package/esm2015/components/text-area/text-area.module.js +2 -3
  498. package/esm2015/components/toggle/toggle-options.js +5 -1
  499. package/esm2015/components/toggle/toggle.component.js +3 -3
  500. package/esm2015/constants/index.js +2 -1
  501. package/esm2015/constants/max-time-values.js +7 -0
  502. package/esm2015/directives/lazy-loading/index.js +2 -1
  503. package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
  504. package/esm2015/pipes/field-error/field-error-content-pipe.js +35 -0
  505. package/esm2015/pipes/field-error/field-error-pipe.js +120 -0
  506. package/esm2015/pipes/field-error/field-error.module.js +14 -0
  507. package/esm2015/pipes/field-error/index.js +4 -0
  508. package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  509. package/esm2015/pipes/index.js +2 -1
  510. package/esm2015/providers/index.js +2 -1
  511. package/esm2015/providers/month-formatter.provider.js +17 -0
  512. package/esm2015/providers/value-accessor.provider.js +4 -3
  513. package/esm2015/tokens/index.js +3 -1
  514. package/esm2015/tokens/items-handlers.js +15 -0
  515. package/esm2015/tokens/month-formatter.js +3 -0
  516. package/esm2015/types/index.js +1 -1
  517. package/esm2015/types/time-format-parts.js +1 -0
  518. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -6
  519. package/esm2015/utils/mask/create-time-mask.js +16 -8
  520. package/esm2015/utils/miscellaneous/get-precision.js +2 -2
  521. package/esm5/abstract/input-slider.js +2 -2
  522. package/esm5/abstract/slider/slider.js +2 -2
  523. package/esm5/components/accordion/accordion-item/accordion-item.component.js +3 -3
  524. package/esm5/components/accordion/accordion.component.js +3 -3
  525. package/esm5/components/arrow/arrow-options.js +29 -0
  526. package/esm5/components/arrow/arrow.component.js +12 -8
  527. package/esm5/components/arrow/arrow.module.js +3 -2
  528. package/esm5/components/arrow/index.js +2 -1
  529. package/esm5/components/avatar/avatar.component.js +3 -3
  530. package/esm5/components/badge/badge.component.js +3 -3
  531. package/esm5/components/badged-content/badged-content.component.js +3 -3
  532. package/esm5/components/breadcrumbs/breadcrumbs.component.js +3 -3
  533. package/esm5/components/calendar-month/calendar-month.component.js +3 -3
  534. package/esm5/components/carousel/carousel-buttons.directive.js +1 -1
  535. package/esm5/components/carousel/carousel.component.js +1 -1
  536. package/esm5/components/checkbox/checkbox.component.js +3 -3
  537. package/esm5/components/checkbox-block/checkbox-block.component.js +3 -3
  538. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  539. package/esm5/components/combo-box/combo-box-strict.directive.js +32 -0
  540. package/esm5/components/combo-box/combo-box.component.js +39 -51
  541. package/esm5/components/combo-box/combo-box.directive.js +35 -0
  542. package/esm5/components/combo-box/combo-box.module.js +15 -4
  543. package/esm5/components/combo-box/combo-box.providers.js +28 -0
  544. package/esm5/components/combo-box/index.js +4 -1
  545. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +18 -11
  546. package/esm5/components/field-error/field-error.component.js +8 -16
  547. package/esm5/components/field-error/field-error.module.js +6 -2
  548. package/esm5/components/filter/filter.component.js +3 -3
  549. package/esm5/components/input/index.js +2 -1
  550. package/esm5/components/input/input.component.js +2 -2
  551. package/esm5/components/input/input.directive.js +28 -0
  552. package/esm5/components/input/input.module.js +5 -4
  553. package/esm5/components/input/input.providers.js +6 -2
  554. package/esm5/components/input-copy/index.js +3 -1
  555. package/esm5/components/input-copy/input-copy.component.js +7 -15
  556. package/esm5/components/input-copy/input-copy.directive.js +28 -0
  557. package/esm5/components/input-copy/input-copy.module.js +5 -4
  558. package/esm5/components/input-copy/input-copy.providers.js +16 -0
  559. package/esm5/components/input-count/index.js +2 -1
  560. package/esm5/components/input-count/input-count-options.js +6 -1
  561. package/esm5/components/input-count/input-count.component.js +8 -4
  562. package/esm5/components/input-count/input-count.directive.js +32 -0
  563. package/esm5/components/input-count/input-count.module.js +5 -4
  564. package/esm5/components/input-date/index.js +3 -1
  565. package/esm5/components/input-date/input-date.component.js +8 -27
  566. package/esm5/components/input-date/input-date.directive.js +38 -0
  567. package/esm5/components/input-date/input-date.module.js +5 -4
  568. package/esm5/components/input-date/input-date.providers.js +29 -0
  569. package/esm5/components/input-date-range/index.js +3 -1
  570. package/esm5/components/input-date-range/input-date-range.component.js +8 -27
  571. package/esm5/components/input-date-range/input-date-range.directive.js +38 -0
  572. package/esm5/components/input-date-range/input-date-range.module.js +9 -4
  573. package/esm5/components/input-date-range/input-date-range.providers.js +29 -0
  574. package/esm5/components/input-date-time/index.js +3 -1
  575. package/esm5/components/input-date-time/input-date-time.component.js +9 -28
  576. package/esm5/components/input-date-time/input-date-time.directive.js +38 -0
  577. package/esm5/components/input-date-time/input-date-time.module.js +9 -4
  578. package/esm5/components/input-date-time/input-date-time.providers.js +29 -0
  579. package/esm5/components/input-inline/input-inline.component.js +4 -17
  580. package/esm5/components/input-month/index.js +3 -1
  581. package/esm5/components/input-month/input-month.component.js +18 -21
  582. package/esm5/components/input-month/input-month.directive.js +67 -0
  583. package/esm5/components/input-month/input-month.module.js +7 -6
  584. package/esm5/components/input-month/input-month.providers.js +19 -0
  585. package/esm5/components/input-month-range/index.js +3 -1
  586. package/esm5/components/input-month-range/input-month-range.component.js +20 -34
  587. package/esm5/components/input-month-range/input-month-range.directive.js +74 -0
  588. package/esm5/components/input-month-range/input-month-range.module.js +11 -5
  589. package/esm5/components/input-month-range/input-month-range.providers.js +19 -0
  590. package/esm5/components/input-number/index.js +2 -1
  591. package/esm5/components/input-number/input-number.component.js +8 -4
  592. package/esm5/components/input-number/input-number.directive.js +45 -0
  593. package/esm5/components/input-number/input-number.module.js +5 -4
  594. package/esm5/components/input-password/index.js +2 -1
  595. package/esm5/components/input-password/input-password-options.js +6 -1
  596. package/esm5/components/input-password/input-password.component.js +7 -3
  597. package/esm5/components/input-password/input-password.directive.js +36 -0
  598. package/esm5/components/input-password/input-password.module.js +9 -4
  599. package/esm5/components/input-phone/index.js +2 -1
  600. package/esm5/components/input-phone/input-phone.component.js +12 -24
  601. package/esm5/components/input-phone/input-phone.directive.js +45 -0
  602. package/esm5/components/input-phone/input-phone.module.js +5 -4
  603. package/esm5/components/input-phone/input-phone.providers.js +17 -3
  604. package/esm5/components/input-phone-international/input-phone-international.component.js +15 -6
  605. package/esm5/components/input-range/input-range.component.js +10 -7
  606. package/esm5/components/input-slider/input-slider.component.js +10 -7
  607. package/esm5/components/input-tag/index.js +2 -1
  608. package/esm5/components/input-tag/input-tag-options.js +9 -0
  609. package/esm5/components/input-tag/input-tag.component.js +45 -18
  610. package/esm5/components/input-time/input-time-options.js +9 -1
  611. package/esm5/components/input-time/input-time.component.js +10 -5
  612. package/esm5/components/line-clamp/line-clamp.component.js +26 -16
  613. package/esm5/components/marker-icon/marker-icon.component.js +3 -3
  614. package/esm5/components/multi-select/hide-selected.pipe.js +4 -4
  615. package/esm5/components/multi-select/index.js +2 -1
  616. package/esm5/components/multi-select/multi-select-options.js +14 -0
  617. package/esm5/components/multi-select/multi-select.component.js +50 -15
  618. package/esm5/components/multi-select/multi-select.module.js +3 -1
  619. package/esm5/components/progress/index.js +5 -4
  620. package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +56 -0
  621. package/esm5/components/progress/progress.module.js +6 -3
  622. package/esm5/components/progress/utils/abstract-color-segments.js +33 -0
  623. package/esm5/components/progress/utils/calculate-color-segments.js +12 -0
  624. package/esm5/components/progress/utils/progress-color-segments-async.pipe.js +27 -0
  625. package/esm5/components/progress/utils/progress-color-segments.pipe.js +24 -0
  626. package/esm5/components/radio/radio-options.js +6 -1
  627. package/esm5/components/radio/radio.component.js +3 -3
  628. package/esm5/components/radio-block/radio-block.component.js +3 -3
  629. package/esm5/components/radio-labeled/radio-labeled.component.js +3 -3
  630. package/esm5/components/radio-list/radio-list.component.js +3 -3
  631. package/esm5/components/range/range.component.js +1 -1
  632. package/esm5/components/rating/rating-options.js +6 -1
  633. package/esm5/components/select/index.js +4 -1
  634. package/esm5/components/select/select-options.js +13 -0
  635. package/esm5/components/select/select.component.js +35 -39
  636. package/esm5/components/select/select.directive.js +42 -0
  637. package/esm5/components/select/select.module.js +5 -4
  638. package/esm5/components/select/select.providers.js +28 -0
  639. package/esm5/components/slider/index.js +2 -1
  640. package/esm5/components/slider/slider-old.component.js +90 -0
  641. package/esm5/components/slider/slider.component.js +95 -51
  642. package/esm5/components/slider/slider.module.js +4 -3
  643. package/esm5/components/stepper/step/step.component.js +3 -3
  644. package/esm5/components/tabs/tab/tab.providers.js +3 -3
  645. package/esm5/components/tag/tag.component.js +12 -6
  646. package/esm5/components/text-area/text-area.component.js +7 -4
  647. package/esm5/components/text-area/text-area.module.js +2 -3
  648. package/esm5/components/toggle/toggle-options.js +6 -1
  649. package/esm5/components/toggle/toggle.component.js +3 -3
  650. package/esm5/constants/index.js +2 -1
  651. package/esm5/constants/max-time-values.js +7 -0
  652. package/esm5/directives/lazy-loading/index.js +2 -1
  653. package/esm5/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -2
  654. package/esm5/pipes/field-error/field-error-content-pipe.js +36 -0
  655. package/esm5/pipes/field-error/field-error-pipe.js +153 -0
  656. package/esm5/pipes/field-error/field-error.module.js +17 -0
  657. package/esm5/pipes/field-error/index.js +4 -0
  658. package/esm5/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  659. package/esm5/pipes/index.js +2 -1
  660. package/esm5/providers/index.js +2 -1
  661. package/esm5/providers/month-formatter.provider.js +19 -0
  662. package/esm5/providers/value-accessor.provider.js +4 -3
  663. package/esm5/tokens/index.js +3 -1
  664. package/esm5/tokens/items-handlers.js +16 -0
  665. package/esm5/tokens/month-formatter.js +3 -0
  666. package/esm5/types/index.js +1 -1
  667. package/esm5/types/time-format-parts.js +1 -0
  668. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +8 -5
  669. package/esm5/utils/mask/create-time-mask.js +15 -7
  670. package/esm5/utils/miscellaneous/get-precision.js +2 -2
  671. package/fesm2015/taiga-ui-kit-abstract.js +2 -2
  672. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  673. package/fesm2015/taiga-ui-kit-components-accordion.js +4 -4
  674. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  675. package/fesm2015/taiga-ui-kit-components-arrow.js +40 -11
  676. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  677. package/fesm2015/taiga-ui-kit-components-avatar.js +2 -2
  678. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  679. package/fesm2015/taiga-ui-kit-components-badge.js +2 -2
  680. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  681. package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
  682. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  683. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +2 -2
  684. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  685. package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
  686. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  687. package/fesm2015/taiga-ui-kit-components-carousel.js +1 -1
  688. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  689. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +2 -2
  690. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  691. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  692. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  693. package/fesm2015/taiga-ui-kit-components-checkbox.js +2 -2
  694. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  695. package/fesm2015/taiga-ui-kit-components-combo-box.js +117 -49
  696. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  697. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +16 -10
  698. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  699. package/fesm2015/taiga-ui-kit-components-field-error.js +12 -13
  700. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  701. package/fesm2015/taiga-ui-kit-components-filter.js +2 -2
  702. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  703. package/fesm2015/taiga-ui-kit-components-input-copy.js +41 -18
  704. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  705. package/fesm2015/taiga-ui-kit-components-input-count.js +38 -8
  706. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  707. package/fesm2015/taiga-ui-kit-components-input-date-range.js +61 -28
  708. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  709. package/fesm2015/taiga-ui-kit-components-input-date-time.js +62 -29
  710. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  711. package/fesm2015/taiga-ui-kit-components-input-date.js +57 -28
  712. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  713. package/fesm2015/taiga-ui-kit-components-input-inline.js +3 -12
  714. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  715. package/fesm2015/taiga-ui-kit-components-input-month-range.js +95 -35
  716. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  717. package/fesm2015/taiga-ui-kit-components-input-month.js +85 -25
  718. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  719. package/fesm2015/taiga-ui-kit-components-input-number.js +43 -8
  720. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  721. package/fesm2015/taiga-ui-kit-components-input-password.js +44 -6
  722. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  723. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +10 -5
  724. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  725. package/fesm2015/taiga-ui-kit-components-input-phone.js +58 -26
  726. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  727. package/fesm2015/taiga-ui-kit-components-input-range.js +9 -6
  728. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  729. package/fesm2015/taiga-ui-kit-components-input-slider.js +9 -6
  730. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  731. package/fesm2015/taiga-ui-kit-components-input-tag.js +48 -18
  732. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  733. package/fesm2015/taiga-ui-kit-components-input-time.js +16 -4
  734. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  735. package/fesm2015/taiga-ui-kit-components-input.js +28 -6
  736. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  737. package/fesm2015/taiga-ui-kit-components-line-clamp.js +24 -14
  738. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  739. package/fesm2015/taiga-ui-kit-components-marker-icon.js +2 -2
  740. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  741. package/fesm2015/taiga-ui-kit-components-multi-select.js +58 -18
  742. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  743. package/fesm2015/taiga-ui-kit-components-progress.js +113 -55
  744. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-radio-block.js +2 -2
  746. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +2 -2
  748. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-radio-list.js +2 -2
  750. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-radio.js +7 -3
  752. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  754. package/fesm2015/taiga-ui-kit-components-rating.js +5 -1
  755. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  756. package/fesm2015/taiga-ui-kit-components-select.js +91 -37
  757. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  758. package/fesm2015/taiga-ui-kit-components-slider.js +114 -14
  759. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  760. package/fesm2015/taiga-ui-kit-components-stepper.js +2 -2
  761. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  762. package/fesm2015/taiga-ui-kit-components-tabs.js +2 -2
  763. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  764. package/fesm2015/taiga-ui-kit-components-tag.js +11 -5
  765. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  766. package/fesm2015/taiga-ui-kit-components-text-area.js +7 -5
  767. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  768. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -3
  769. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  770. package/fesm2015/taiga-ui-kit-constants.js +8 -1
  771. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  772. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +1 -1
  773. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  774. package/fesm2015/taiga-ui-kit-pipes-field-error.js +166 -0
  775. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -0
  776. package/fesm2015/taiga-ui-kit-pipes.js +1 -0
  777. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  778. package/fesm2015/taiga-ui-kit-providers.js +19 -4
  779. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  780. package/fesm2015/taiga-ui-kit-tokens.js +17 -1
  781. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  782. package/fesm2015/taiga-ui-kit-utils-mask.js +20 -12
  783. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  784. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +1 -1
  785. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  786. package/fesm5/taiga-ui-kit-abstract.js +2 -2
  787. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  788. package/fesm5/taiga-ui-kit-components-accordion.js +4 -4
  789. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  790. package/fesm5/taiga-ui-kit-components-arrow.js +41 -12
  791. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  792. package/fesm5/taiga-ui-kit-components-avatar.js +2 -2
  793. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  794. package/fesm5/taiga-ui-kit-components-badge.js +2 -2
  795. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  796. package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
  797. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  798. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +2 -2
  799. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  800. package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
  801. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  802. package/fesm5/taiga-ui-kit-components-carousel.js +1 -1
  803. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  804. package/fesm5/taiga-ui-kit-components-checkbox-block.js +2 -2
  805. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  806. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  807. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  808. package/fesm5/taiga-ui-kit-components-checkbox.js +2 -2
  809. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  810. package/fesm5/taiga-ui-kit-components-combo-box.js +127 -49
  811. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  812. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +17 -10
  813. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  814. package/fesm5/taiga-ui-kit-components-field-error.js +12 -17
  815. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  816. package/fesm5/taiga-ui-kit-components-filter.js +2 -2
  817. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  818. package/fesm5/taiga-ui-kit-components-input-copy.js +46 -18
  819. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  820. package/fesm5/taiga-ui-kit-components-input-count.js +45 -9
  821. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  822. package/fesm5/taiga-ui-kit-components-input-date-range.js +70 -28
  823. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  824. package/fesm5/taiga-ui-kit-components-input-date-time.js +71 -29
  825. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  826. package/fesm5/taiga-ui-kit-components-input-date.js +66 -28
  827. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  828. package/fesm5/taiga-ui-kit-components-input-inline.js +3 -16
  829. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  830. package/fesm5/taiga-ui-kit-components-input-month-range.js +109 -37
  831. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  832. package/fesm5/taiga-ui-kit-components-input-month.js +96 -25
  833. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  834. package/fesm5/taiga-ui-kit-components-input-number.js +53 -8
  835. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  836. package/fesm5/taiga-ui-kit-components-input-password.js +51 -7
  837. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  838. package/fesm5/taiga-ui-kit-components-input-phone-international.js +14 -5
  839. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  840. package/fesm5/taiga-ui-kit-components-input-phone.js +67 -26
  841. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  842. package/fesm5/taiga-ui-kit-components-input-range.js +9 -6
  843. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  844. package/fesm5/taiga-ui-kit-components-input-slider.js +9 -6
  845. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  846. package/fesm5/taiga-ui-kit-components-input-tag.js +53 -19
  847. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  848. package/fesm5/taiga-ui-kit-components-input-time.js +17 -5
  849. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  850. package/fesm5/taiga-ui-kit-components-input.js +35 -7
  851. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  852. package/fesm5/taiga-ui-kit-components-line-clamp.js +25 -15
  853. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  854. package/fesm5/taiga-ui-kit-components-marker-icon.js +2 -2
  855. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  856. package/fesm5/taiga-ui-kit-components-multi-select.js +67 -20
  857. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-progress.js +135 -69
  859. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-radio-block.js +2 -2
  861. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-radio-labeled.js +2 -2
  863. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-radio-list.js +2 -2
  865. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-radio.js +8 -4
  867. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-range.js +1 -1
  869. package/fesm5/taiga-ui-kit-components-rating.js +6 -2
  870. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
  871. package/fesm5/taiga-ui-kit-components-select.js +105 -38
  872. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  873. package/fesm5/taiga-ui-kit-components-slider.js +155 -26
  874. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  875. package/fesm5/taiga-ui-kit-components-stepper.js +2 -2
  876. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  877. package/fesm5/taiga-ui-kit-components-tabs.js +2 -2
  878. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  879. package/fesm5/taiga-ui-kit-components-tag.js +11 -5
  880. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  881. package/fesm5/taiga-ui-kit-components-text-area.js +7 -5
  882. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  883. package/fesm5/taiga-ui-kit-components-toggle.js +8 -4
  884. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  885. package/fesm5/taiga-ui-kit-constants.js +8 -1
  886. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  887. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +1 -1
  888. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  889. package/fesm5/taiga-ui-kit-pipes-field-error.js +203 -0
  890. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -0
  891. package/fesm5/taiga-ui-kit-pipes.js +1 -0
  892. package/fesm5/taiga-ui-kit-pipes.js.map +1 -1
  893. package/fesm5/taiga-ui-kit-providers.js +21 -4
  894. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  895. package/fesm5/taiga-ui-kit-tokens.js +18 -1
  896. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  897. package/fesm5/taiga-ui-kit-utils-mask.js +19 -10
  898. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  899. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +1 -1
  900. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  901. package/package.json +12 -12
  902. package/pipes/field-error/field-error-content-pipe.d.ts +11 -0
  903. package/pipes/field-error/field-error-pipe.d.ts +29 -0
  904. package/pipes/field-error/field-error.module.d.ts +2 -0
  905. package/pipes/field-error/index.d.ts +3 -0
  906. package/pipes/field-error/package.json +13 -0
  907. package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +4 -0
  908. package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -0
  909. package/pipes/index.d.ts +1 -0
  910. package/pipes/taiga-ui-kit-pipes.metadata.json +1 -1
  911. package/providers/index.d.ts +1 -0
  912. package/providers/month-formatter.provider.d.ts +6 -0
  913. package/providers/taiga-ui-kit-providers.metadata.json +1 -1
  914. package/providers/value-accessor.provider.d.ts +1 -1
  915. package/tokens/index.d.ts +2 -0
  916. package/tokens/items-handlers.d.ts +10 -0
  917. package/tokens/month-formatter.d.ts +4 -0
  918. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  919. package/types/index.d.ts +1 -0
  920. package/types/taiga-ui-kit-types.metadata.json +1 -1
  921. package/types/time-format-parts.d.ts +1 -0
  922. package/utils/mask/create-auto-corrected-time-pipe.d.ts +2 -1
  923. package/utils/mask/create-time-mask.d.ts +2 -1
  924. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  925. package/components/progress/pipes/progress-color-segments.pipe.d.ts +0 -9
  926. package/esm2015/components/progress/pipes/abstract-color-segments.js +0 -32
  927. package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +0 -15
  928. package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +0 -18
  929. package/esm5/components/progress/pipes/abstract-color-segments.js +0 -35
  930. package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +0 -21
  931. package/esm5/components/progress/pipes/progress-color-segments.pipe.js +0 -23
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-radio-list.js","sources":["ng://@taiga-ui/kit/components/radio-list/radio-list.component.ts","ng://@taiga-ui/kit/components/radio-list/radio-list.module.ts","ng://@taiga-ui/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n QueryList,\n Self,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n EMPTY_QUERY,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiOrientationT, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core';\nimport {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-radio-list',\n templateUrl: './radio-list.template.html',\n styleUrls: ['./radio-list.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioListComponent),\n },\n ],\n})\nexport class TuiRadioListComponent<T> extends AbstractTuiNullableControl<T> {\n @ViewChildren(TuiRadioLabeledComponent)\n private readonly radioButtons: QueryList<TuiRadioLabeledComponent<{}>> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<T> = [];\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-orientation')\n @tuiDefaultProp()\n orientation: TuiOrientationT = 'vertical';\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n // @bad TODO: Remove & { index: number }\n @Input()\n @tuiDefaultProp()\n itemContent: PolymorpheusContent<TuiValueContentContext<T> & {index: number}> = ({\n $implicit,\n }) => String($implicit);\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n const focusableRadioButton = this.radioButtons.find(\n radioButton => radioButton.nativeFocusableElement !== null,\n );\n\n return focusableRadioButton ? focusableRadioButton.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n computeId(index: number): string {\n return `${this.id}-${index}`;\n }\n\n itemIsDisabled(item: T): boolean {\n return this.disabledItemHandler(item);\n }\n\n getContentContext(\n item: T,\n index: number,\n active: boolean,\n ): TuiValueContentContext<T> & {index: number} {\n return {$implicit: item, index, active};\n }\n\n onModelChange(value: T) {\n this.updateValue(value);\n }\n\n itemIsActive(item: T): boolean {\n return this.value === null\n ? item === null\n : this.identityMatcher(this.value, item);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiRadioGroupModule} from '@taiga-ui/kit/components/radio-group';\nimport {TuiRadioLabeledModule} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiRadioListComponent} from './radio-list.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiRadioGroupModule,\n TuiRadioLabeledModule,\n ],\n declarations: [TuiRadioListComponent],\n exports: [TuiRadioListComponent],\n})\nexport class TuiRadioListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IA2C8C,yCAA6B;IA0BvE,+BAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC;QAN5E,YAQI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHwC,gBAAU,GAAV,UAAU,CAAyB;QA9B3D,kBAAY,GAA4C,WAAW,CAAC;QAIrF,WAAK,GAAqB,EAAE,CAAC;QAK7B,UAAI,GAAa,GAAG,CAAC;QAIrB,qBAAe,GAA0B,4BAA4B,CAAC;QAKtE,iBAAW,GAAoB,UAAU,CAAC;QAI1C,yBAAmB,GAAyB,oBAAoB,CAAC;;QAgBjE,iBAAW,GAAqE,UAAC,EAEhF;gBADG,wBAAS;YACP,OAAA,MAAM,CAAC,SAAS,CAAC;SAAA,CAAC;;KAPvB;8BAnCQ,qBAAqB;IA4C9B,sBAAI,yDAAsB;aAA1B;YACI,IAAM,oBAAoB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAC/C,UAAA,WAAW,IAAI,OAAA,WAAW,CAAC,sBAAsB,KAAK,IAAI,GAAA,CAC7D,CAAC;YAEF,OAAO,oBAAoB,GAAG,oBAAoB,CAAC,sBAAsB,GAAG,IAAI,CAAC;SACpF;;;OAAA;IA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cAAc,EAAE;8DAGO;IA1Cf,qBAAqB;QAZjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,4sBAAyC;YAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,2BAA2B;oBACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,uBAAqB,GAAA,CAAC;iBACvD;aACJ;;SACJ,CAAC;QA4BO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAhCd,qBAAqB,CAiFjC;IAAD,4BAAC;CAAA,CAjF6C,0BAA0B;;;ICvBxE;KAAkC;IAArB,kBAAkB;QAX9B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,mBAAmB;gBACnB,qBAAqB;aACxB;YACD,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACpBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-radio-list.js","sources":["ng://@taiga-ui/kit/components/radio-list/radio-list.component.ts","ng://@taiga-ui/kit/components/radio-list/radio-list.module.ts","ng://@taiga-ui/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n QueryList,\n Self,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n EMPTY_QUERY,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiOrientationT, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core';\nimport {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-radio-list',\n templateUrl: './radio-list.template.html',\n styleUrls: ['./radio-list.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioListComponent),\n },\n ],\n})\nexport class TuiRadioListComponent<T> extends AbstractTuiNullableControl<T> {\n @ViewChildren(TuiRadioLabeledComponent)\n private readonly radioButtons: QueryList<TuiRadioLabeledComponent<{}>> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<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 @HostBinding('attr.data-tui-host-orientation')\n @tuiDefaultProp()\n orientation: TuiOrientationT = 'vertical';\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n // @bad TODO: Remove & { index: number }\n @Input()\n @tuiDefaultProp()\n itemContent: PolymorpheusContent<TuiValueContentContext<T> & {index: number}> = ({\n $implicit,\n }) => String($implicit);\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n const focusableRadioButton = this.radioButtons.find(\n radioButton => radioButton.nativeFocusableElement !== null,\n );\n\n return focusableRadioButton ? focusableRadioButton.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n computeId(index: number): string {\n return `${this.id}-${index}`;\n }\n\n itemIsDisabled(item: T): boolean {\n return this.disabledItemHandler(item);\n }\n\n getContentContext(\n item: T,\n index: number,\n active: boolean,\n ): TuiValueContentContext<T> & {index: number} {\n return {$implicit: item, index, active};\n }\n\n onModelChange(value: T) {\n this.updateValue(value);\n }\n\n itemIsActive(item: T): boolean {\n return this.value === null\n ? item === null\n : this.identityMatcher(this.value, item);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiRadioGroupModule} from '@taiga-ui/kit/components/radio-group';\nimport {TuiRadioLabeledModule} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiRadioListComponent} from './radio-list.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiRadioGroupModule,\n TuiRadioLabeledModule,\n ],\n declarations: [TuiRadioListComponent],\n exports: [TuiRadioListComponent],\n})\nexport class TuiRadioListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IA2C8C,yCAA6B;IA0BvE,+BAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC;QAN5E,YAQI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHwC,gBAAU,GAAV,UAAU,CAAyB;QA9B3D,kBAAY,GAA4C,WAAW,CAAC;QAIrF,WAAK,GAAqB,EAAE,CAAC;QAK7B,UAAI,GAAa,GAAG,CAAC;QAIrB,qBAAe,GA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C;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACpBA;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { __extends, __assign, __decorate, __param } from 'tslib';
1
+ import { __assign, __extends, __decorate, __param } from 'tslib';
2
2
  import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { TUI_DEFAULT_IDENTITY_MATCHER, isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiNullableControl, TuiCheckedModule, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule, TuiPressedModule, TuiFocusVisibleModule } from '@taiga-ui/cdk';
@@ -17,6 +17,10 @@ var TUI_RADIO_DEFAULT_OPTIONS = {
17
17
  var TUI_RADIO_OPTIONS = new InjectionToken('Default parameters for radio component', {
18
18
  factory: function () { return TUI_RADIO_DEFAULT_OPTIONS; },
19
19
  });
20
+ var tuiRadioOptionsProvider = function (options) { return ({
21
+ provide: TUI_RADIO_OPTIONS,
22
+ useValue: __assign(__assign({}, TUI_RADIO_DEFAULT_OPTIONS), options),
23
+ }); };
20
24
 
21
25
  // @dynamic
22
26
  var TuiRadioComponent = /** @class */ (function (_super) {
@@ -137,7 +141,7 @@ var TuiRadioComponent = /** @class */ (function (_super) {
137
141
  ], TuiRadioComponent.prototype, "name", void 0);
138
142
  __decorate([
139
143
  Input(),
140
- HostBinding('attr.data-tui-host-size'),
144
+ HostBinding('attr.data-size'),
141
145
  tuiDefaultProp()
142
146
  ], TuiRadioComponent.prototype, "size", void 0);
143
147
  __decorate([
@@ -159,7 +163,7 @@ var TuiRadioComponent = /** @class */ (function (_super) {
159
163
  },
160
164
  ],
161
165
  animations: [tuiScaleIn],
162
- styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0;border-radius:100%}:host[data-tui-host-size='m']{width:1rem;height:1rem}:host[data-tui-host-size='l']{width:1.5rem;height:1.5rem}:host._readonly{pointer-events:none}.mark{position:absolute;background-color:currentColor;border-radius:100%}:host[data-tui-host-size='m'] .mark{margin:.25rem;width:.5rem;height:.5rem}:host[data-tui-host-size='l'] .mark{margin:.4375rem;width:.625rem;height:.625rem}.native{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .native{cursor:default}"]
166
+ styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0;border-radius:100%}:host[data-size='m']{width:1rem;height:1rem}:host[data-size='l']{width:1.5rem;height:1.5rem}:host._readonly{pointer-events:none}.mark{position:absolute;background-color:currentColor;border-radius:100%}:host[data-size='m'] .mark{margin:.25rem;width:.5rem;height:.5rem}:host[data-size='l'] .mark{margin:.4375rem;width:.625rem;height:.625rem}.native{padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.native:-webkit-autofill,.native:-webkit-autofill:focus,.native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .native{cursor:default}"]
163
167
  }),
164
168
  __param(0, Optional()),
165
169
  __param(0, Self()),
@@ -199,5 +203,5 @@ var TuiRadioModule = /** @class */ (function () {
199
203
  * Generated bundle index. Do not edit.
200
204
  */
201
205
 
202
- export { TUI_RADIO_DEFAULT_OPTIONS, TUI_RADIO_OPTIONS, TuiRadioComponent, TuiRadioModule };
206
+ export { TUI_RADIO_DEFAULT_OPTIONS, TUI_RADIO_OPTIONS, TuiRadioComponent, TuiRadioModule, tuiRadioOptionsProvider };
203
207
  //# sourceMappingURL=taiga-ui-kit-components-radio.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-radio.js","sources":["ng://@taiga-ui/kit/components/radio/radio-options.ts","ng://@taiga-ui/kit/components/radio/radio.component.ts","ng://@taiga-ui/kit/components/radio/radio.module.ts","ng://@taiga-ui/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {TuiSizeL} from '@taiga-ui/core/types';\n\nexport interface RadioOptions {\n readonly size: TuiSizeL;\n readonly appearances: Readonly<{\n unchecked: string;\n checked: string;\n }>;\n}\n\n/** Default values for the checkbox options. */\nexport const TUI_RADIO_DEFAULT_OPTIONS: RadioOptions = {\n size: 'm',\n appearances: {\n unchecked: TuiAppearance.Outline,\n checked: TuiAppearance.Primary,\n },\n};\n\nexport const TUI_RADIO_OPTIONS = new InjectionToken<RadioOptions>(\n 'Default parameters for radio component',\n {\n factory: () => TUI_RADIO_DEFAULT_OPTIONS,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiScaleIn, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group';\n\nimport {RadioOptions, TUI_RADIO_OPTIONS} from './radio-options';\n\n// @dynamic\n@Component({\n selector: 'tui-radio',\n templateUrl: './radio.template.html',\n styleUrls: ['./radio.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioComponent),\n },\n ],\n animations: [tuiScaleIn],\n})\nexport class TuiRadioComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n name: string | null = null;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n readonly animation = {value: '', ...this.animationOptions} as const;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_ANIMATION_OPTIONS)\n private readonly animationOptions: AnimationOptions,\n @Inject(TUI_RADIO_OPTIONS)\n private readonly options: RadioOptions,\n @Optional()\n @Inject(TuiRadioGroupComponent)\n private readonly radioGroup: TuiRadioGroupComponent | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get appearance(): string {\n return this.checked\n ? this.options.appearances.checked\n : this.options.appearances.unchecked;\n }\n\n @HostBinding('class._disabled')\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get checked(): boolean {\n return this.value === null\n ? this.item === null\n : this.item !== undefined && this.identityMatcher(this.value, this.item);\n }\n\n get computedName(): string | number | null {\n return this.name || this.radioGroupName || this.controlName || null;\n }\n\n get isFocusable(): boolean {\n return !this.readOnly && this.computedFocusable;\n }\n\n onChecked(checked: boolean) {\n if (checked) {\n this.updateValue(this.item !== undefined ? this.item : this.fallbackValue);\n }\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n private get radioGroupName(): string | null {\n return this.radioGroup === null ? null : this.radioGroup.name;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\n\nimport {TuiRadioComponent} from './radio.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioComponent],\n exports: [TuiRadioComponent],\n})\nexport class TuiRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAYA;IACa,yBAAyB,GAAiB;IAC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EAAE;gBACL,YAAY;gBACZ,gBAAgB;gBAChB,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,gBAAgB;gBAChB,qBAAqB;gBACrB,gBAAgB;aACnB;YACD,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;AC5BA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-radio.js","sources":["ng://@taiga-ui/kit/components/radio/radio-options.ts","ng://@taiga-ui/kit/components/radio/radio.component.ts","ng://@taiga-ui/kit/components/radio/radio.module.ts","ng://@taiga-ui/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {TuiSizeL} from '@taiga-ui/core/types';\n\nexport interface TuiRadioOptions {\n readonly size: TuiSizeL;\n readonly appearances: Readonly<{\n unchecked: string;\n checked: string;\n }>;\n}\n\n/**\n * @deprecated: use TuiRadioOptions instead\n * todo: remove in 3.0\n */\nexport type RadioOptions = TuiRadioOptions;\n\n/** Default values for the checkbox options. */\nexport const TUI_RADIO_DEFAULT_OPTIONS: TuiRadioOptions = {\n size: 'm',\n appearances: {\n unchecked: TuiAppearance.Outline,\n checked: TuiAppearance.Primary,\n },\n};\n\nexport const TUI_RADIO_OPTIONS = new InjectionToken<TuiRadioOptions>(\n 'Default parameters for radio component',\n {\n factory: () => TUI_RADIO_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiRadioOptionsProvider: (\n options: Partial<TuiRadioOptions>,\n) => ValueProvider = (options: Partial<TuiRadioOptions>) => ({\n provide: TUI_RADIO_OPTIONS,\n useValue: {...TUI_RADIO_DEFAULT_OPTIONS, ...options},\n});\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiScaleIn, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group';\n\nimport {TUI_RADIO_OPTIONS, TuiRadioOptions} from './radio-options';\n\n// @dynamic\n@Component({\n selector: 'tui-radio',\n templateUrl: './radio.template.html',\n styleUrls: ['./radio.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioComponent),\n },\n ],\n animations: [tuiScaleIn],\n})\nexport class TuiRadioComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n name: string | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n readonly animation = {value: '', ...this.animationOptions} as const;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_ANIMATION_OPTIONS)\n private readonly animationOptions: AnimationOptions,\n @Inject(TUI_RADIO_OPTIONS)\n private readonly options: TuiRadioOptions,\n @Optional()\n @Inject(TuiRadioGroupComponent)\n private readonly radioGroup: TuiRadioGroupComponent | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get appearance(): string {\n return this.checked\n ? this.options.appearances.checked\n : this.options.appearances.unchecked;\n }\n\n @HostBinding('class._disabled')\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get checked(): boolean {\n return this.value === null\n ? this.item === null\n : this.item !== undefined && this.identityMatcher(this.value, this.item);\n }\n\n get computedName(): string | number | null {\n return this.name || this.radioGroupName || this.controlName || null;\n }\n\n get isFocusable(): boolean {\n return !this.readOnly && this.computedFocusable;\n }\n\n onChecked(checked: boolean) {\n if (checked) {\n this.updateValue(this.item !== undefined ? this.item : this.fallbackValue);\n }\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n private get radioGroupName(): string | null {\n return this.radioGroup === null ? null : this.radioGroup.name;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\n\nimport {TuiRadioComponent} from './radio.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioComponent],\n exports: [TuiRadioComponent],\n})\nexport class TuiRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAkBA;IACa,yBAAyB,GAAoB;IACtD,IAAI,EAAE,GAAG;IACT,WAAW,EAAE;QACT,SAAS;QACT,OAAO;KACV;EACH;IAEW,iBAAiB,GAAG,IAAI,cAAc,CAC/C,wCAAwC,EACxC;IACI,OAAO,EAAE,cAAM,OAAA,yBAAyB,GAAA;CAC3C,EACH;IAEW,uBAAuB,GAEf,UAAC,OAAiC,IAAK,QAAC;IACzD,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,wBAAM,yBAAyB,GAAK,OAAO,CAAC;CACvD;;ACTD;;IAeY,qCAA6B;IA4BrC,2BAII,OAAyB,EACE,iBAAoC,EAE9C,gBAAkC,EAElC,OAAwB,EAGxB,UAAyC;QAZ9D,YAcI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QARoB,sBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,aAAO,GAAP,OAAO,CAAiB;QAGxB,gBAAU,GAAV,UAAU,CAA+B;QA7B9D,qBAAe,GAA0B,4BAA4B,CAAC;QAItE,UAAI,GAAkB,IAAI,CAAC;QAK3B,UAAI,GAAa,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAInC,oBAAc,GAAG,KAAK,CAAC;QAEd,eAAS,GAAG,WAAC,KAAK,EAAE,EAAE,IAAK,KAAI,CAAC,gBAAgB,CAAU,CAAC;;KAiBnE;0BA5CQ,iBAAiB;IA8C1B,sBAAI,yCAAU;aAAd;YACI,OAAO,IAAI,CAAC,OAAO;kBACb,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO;kBAChC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC;SAC5C;;;OAAA;IAGD,sBAAI,+CAAgB;aAApB;YACI,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,C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A;QACzB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;QAE7B,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;OAxC1B,iBAAiB,CA0G7B;IAAD,wBAAC;CAAA,CAzGW,0BAA0B;;;ICjBtC;KAA8B;IAAjB,cAAc;QAd1B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,gBAAgB;gBAChB,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,gBAAgB;gBAChB,qBAAqB;gBACrB,gBAAgB;aACnB;YACD,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;AC5BA;;;;;;"}
@@ -102,7 +102,7 @@ var TuiRangeComponent = /** @class */ (function (_super) {
102
102
  useExisting: forwardRef(function () { return TuiRangeComponent_1; }),
103
103
  },
104
104
  ],
105
- styles: [":host{display:block;border-radius:var(--tui-radius-m);color:var(--tui-base-03);min-height:.125rem;font-size:1rem}:host[data-tui-host-size='s']{min-height:.125rem;font-size:.5rem}:host._segmented{padding-bottom:1.25rem}:host._disabled{cursor:default;pointer-events:none;opacity:var(--tui-disabled-opacity)}.event-catcher{min-height:inherit;border-radius:inherit;padding:.4375rem 0;cursor:pointer}.wrapper{position:relative;min-height:inherit;border-radius:inherit;background-color:currentColor;border:solid transparent;border-width:0 1em}.bar{position:absolute;top:0;bottom:0;margin:0 -1em;border-radius:inherit;background-color:var(--tui-primary)}:host-context(tui-input-slider) .bar{margin-left:calc(var(--tui-radius-m)/ 2);border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.dot{transition-property:background-color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:50%;z-index:1;width:1em;height:1em;transform:translate(0,-50%);border-radius:100%;background-color:var(--tui-primary);outline:0;cursor:ew-resize}.dot:last-child{right:0;transform:translate(0,-50%)}.dot:hover{background-color:var(--tui-primary-hover)}.dot:active{background-color:var(--tui-primary-active)}.dot_focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}.segments{position:relative;z-index:1;display:flex;justify-content:space-between;min-height:inherit;margin:0 -1em}.segments-spacer{height:1.625rem}.segment{position:relative;height:inherit;width:.25rem;background-color:rgba(0,0,0,.36);pointer-events:none}.segment:first-of-type,.segment:last-of-type{background-color:transparent}.number{position:absolute;left:50%;transform:translate(-50%,0);top:100%;font:var(--tui-font-text-s);margin-top:.5rem;color:var(--tui-text-02);white-space:nowrap}.segment:first-of-type .number{left:-.05em;transform:none}.segment:last-of-type .number{left:auto;right:-.05em;transform:none}:host._disabled .number{color:var(--tui-text-01)}"]
105
+ styles: [":host{display:block;border-radius:var(--tui-radius-m);color:var(--tui-base-03);min-height:.125rem;font-size:1rem}:host[data-size='s']{min-height:.125rem;font-size:.5rem}:host._segmented{padding-bottom:1.25rem}:host._disabled{cursor:default;pointer-events:none;opacity:var(--tui-disabled-opacity)}.event-catcher{min-height:inherit;border-radius:inherit;padding:.4375rem 0;cursor:pointer}.wrapper{position:relative;min-height:inherit;border-radius:inherit;background-color:currentColor;border:solid transparent;border-width:0 1em}.bar{position:absolute;top:0;bottom:0;margin:0 -1em;border-radius:inherit;background-color:var(--tui-primary)}:host-context(tui-input-slider) .bar{margin-left:calc(var(--tui-radius-m)/ 2);border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.dot{transition-property:background-color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:50%;z-index:1;width:1em;height:1em;transform:translate(0,-50%);border-radius:100%;background-color:var(--tui-primary);outline:0;cursor:ew-resize}.dot:last-child{right:0;transform:translate(0,-50%)}.dot:hover{background-color:var(--tui-primary-hover)}.dot:active{background-color:var(--tui-primary-active)}.dot_focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}.segments{position:relative;z-index:1;display:flex;justify-content:space-between;min-height:inherit;margin:0 -1em}.segments-spacer{height:1.625rem}.segment{position:relative;height:inherit;width:.25rem;background-color:rgba(0,0,0,.36);pointer-events:none}.segment:first-of-type,.segment:last-of-type{background-color:transparent}.number{position:absolute;left:50%;transform:translate(-50%,0);top:100%;font:var(--tui-font-text-s);margin-top:.5rem;color:var(--tui-text-02);white-space:nowrap}.segment:first-of-type .number{left:-.05em;transform:none}.segment:last-of-type .number{left:auto;right:-.05em;transform:none}:host._disabled .number{color:var(--tui-text-01)}"]
106
106
  }),
107
107
  __param(0, Optional()),
108
108
  __param(0, Self()),
@@ -1,4 +1,4 @@
1
- import { __extends, __decorate, __param } from 'tslib';
1
+ import { __assign, __extends, __decorate, __param } from 'tslib';
2
2
  import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
4
4
  import { isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiControl, TuiFocusableModule, TuiRepeatTimesModule } from '@taiga-ui/cdk';
@@ -13,6 +13,10 @@ var TUI_RATING_DEFAULT_OPTIONS = {
13
13
  var TUI_RATING_OPTIONS = new InjectionToken('Default parameters for rating component', {
14
14
  factory: function () { return TUI_RATING_DEFAULT_OPTIONS; },
15
15
  });
16
+ var tuiRatingOptionsProvider = function (options) { return ({
17
+ provide: TUI_RATING_OPTIONS,
18
+ useValue: __assign(__assign({}, TUI_RATING_DEFAULT_OPTIONS), options),
19
+ }); };
16
20
 
17
21
  var TuiRatingComponent = /** @class */ (function (_super) {
18
22
  __extends(TuiRatingComponent, _super);
@@ -142,5 +146,5 @@ var TuiRatingModule = /** @class */ (function () {
142
146
  * Generated bundle index. Do not edit.
143
147
  */
144
148
 
145
- export { TUI_RATING_DEFAULT_OPTIONS, TUI_RATING_OPTIONS, TuiRatingComponent, TuiRatingModule };
149
+ export { TUI_RATING_DEFAULT_OPTIONS, TUI_RATING_OPTIONS, TuiRatingComponent, TuiRatingModule, tuiRatingOptionsProvider };
146
150
  //# sourceMappingURL=taiga-ui-kit-components-rating.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-rating.js","sources":["ng://@taiga-ui/kit/components/rating/rating-options.ts","ng://@taiga-ui/kit/components/rating/rating.component.ts","ng://@taiga-ui/kit/components/rating/rating.module.ts","ng://@taiga-ui/kit/components/rating/taiga-ui-kit-components-rating.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport interface TuiRatingOptions {\n readonly min: number;\n readonly max: number;\n readonly iconNormal: string;\n readonly iconFilled: string;\n}\n\nexport const TUI_RATING_DEFAULT_OPTIONS: TuiRatingOptions = {\n min: 0,\n max: 5,\n iconNormal: 'tuiIconStarLarge',\n iconFilled: 'tuiIconStarFilledLarge',\n};\n\nexport const TUI_RATING_OPTIONS: InjectionToken<TuiRatingOptions> =\n new InjectionToken<TuiRatingOptions>('Default parameters for rating component', {\n factory: () => TUI_RATING_DEFAULT_OPTIONS,\n });\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\n\nimport {TUI_RATING_OPTIONS, TuiRatingOptions} from './rating-options';\n\n@Component({\n selector: 'tui-rating',\n templateUrl: './rating.template.html',\n styleUrls: ['./rating.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRatingComponent),\n },\n ],\n})\nexport class TuiRatingComponent\n extends AbstractTuiControl<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n min = this.options.min;\n\n @Input()\n @tuiDefaultProp()\n max = this.options.max;\n\n @Input()\n @tuiDefaultProp()\n iconNormal = this.options.iconNormal;\n\n @Input()\n @tuiDefaultProp()\n iconFilled = this.options.iconFilled;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n ngControl: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_RATING_OPTIONS)\n private readonly options: TuiRatingOptions,\n ) {\n super(ngControl, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get isFocusable(): boolean {\n return !(this.readOnly || this.disabled);\n }\n\n get percent(): number {\n return (100 * this.value) / this.max;\n }\n\n @HostListener('focusin', ['true'])\n @HostListener('focusout', ['false'])\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n setRateByReverseIndex(index: number): void {\n this.updateValue(this.max - index);\n }\n\n setRate(value: number): void {\n this.updateValue(value);\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiRatingComponent} from './rating.component';\n\n@NgModule({\n imports: [\n TuiSvgModule,\n TuiFocusableModule,\n TuiRepeatTimesModule,\n FormsModule,\n ReactiveFormsModule,\n ],\n declarations: [TuiRatingComponent],\n exports: [TuiRatingComponent],\n})\nexport class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AEzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OA9BtB,kBAAkB,CAuE9B;IAAD,yBAAC;CAAA,CAtEW,kBAAkB;;;ICnB9B;KAA+B;IAAlB,eAAe;QAX3B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,oBAAoB;gBACpB,WAAW;gBACX,mBAAmB;aACtB;YACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;AClBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-rating.js","sources":["ng://@taiga-ui/kit/components/rating/rating-options.ts","ng://@taiga-ui/kit/components/rating/rating.component.ts","ng://@taiga-ui/kit/components/rating/rating.module.ts","ng://@taiga-ui/kit/components/rating/taiga-ui-kit-components-rating.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\n\nexport interface TuiRatingOptions {\n readonly min: number;\n readonly max: number;\n readonly iconNormal: string;\n readonly iconFilled: string;\n}\n\nexport const TUI_RATING_DEFAULT_OPTIONS: TuiRatingOptions = {\n min: 0,\n max: 5,\n iconNormal: 'tuiIconStarLarge',\n iconFilled: 'tuiIconStarFilledLarge',\n};\n\nexport const TUI_RATING_OPTIONS = new InjectionToken<TuiRatingOptions>(\n 'Default parameters for rating component',\n {\n factory: () => TUI_RATING_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiRatingOptionsProvider: (\n options: Partial<TuiRatingOptions>,\n) => ValueProvider = (options: Partial<TuiRatingOptions>) => ({\n provide: TUI_RATING_OPTIONS,\n useValue: {...TUI_RATING_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\n\nimport {TUI_RATING_OPTIONS, TuiRatingOptions} from './rating-options';\n\n@Component({\n selector: 'tui-rating',\n templateUrl: './rating.template.html',\n styleUrls: ['./rating.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRatingComponent),\n },\n ],\n})\nexport class TuiRatingComponent\n extends AbstractTuiControl<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n min = this.options.min;\n\n @Input()\n @tuiDefaultProp()\n max = this.options.max;\n\n @Input()\n @tuiDefaultProp()\n iconNormal = this.options.iconNormal;\n\n @Input()\n @tuiDefaultProp()\n iconFilled = this.options.iconFilled;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n ngControl: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_RATING_OPTIONS)\n private readonly options: TuiRatingOptions,\n ) {\n super(ngControl, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get isFocusable(): boolean {\n return !(this.readOnly || this.disabled);\n }\n\n get percent(): number {\n return (100 * this.value) / this.max;\n }\n\n @HostListener('focusin', ['true'])\n @HostListener('focusout', ['false'])\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n setRateByReverseIndex(index: number): void {\n this.updateValue(this.max - index);\n }\n\n setRate(value: number): void {\n this.updateValue(value);\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiSvgModule} from '@taiga-ui/core';\n\nimport {TuiRatingComponent} from './rating.component';\n\n@NgModule({\n imports: [\n TuiSvgModule,\n TuiFocusableModule,\n TuiRepeatTimesModule,\n FormsModule,\n ReactiveFormsModule,\n ],\n declarations: [TuiRatingComponent],\n exports: [TuiRatingComponent],\n})\nexport class TuiRatingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IASa,0BAA0B,GAAqB;IACxD,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,UAAU,EAAE,kBAAkB;IAC9B,UAAU,EAAE,wBAAwB;EACtC;IAEW,kBAAkB,GAAG,IAAI,cAAc,CAChD,yCAAyC,EACzC;IACI,OAAO,EAAE,cAAM,OAAA,0BAA0B,GAAA;CAC5C,EACH;IAEW,wBAAwB,GAEhB,UAAC,OAAkC,IAAK,QAAC;IAC1D,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,wBAAM,0BAA0B,GAAK,OAAO,CAAC;CACxD;;;ICSW,sCAA0B;IAsBlC,4BAII,SAA2B,EAE3B,iBAAoC,EAEnB,OAAyB;QAR9C,YAUI,kBAAM,SAAS,EAAE,iBAAiB,CAAC,SACtC;QAHoB,aAAO,GAAP,OAAO,CAAkB;QAtB9C,SAAG,GAAG,KAAI,CAAC,OAAO,CAAC,GAAG,CAAC;QAIvB,SAAG,GAAG,KAAI,CAAC,OAAO,CAAC,GAAG,CAAC;QAIvB,gBAAU,GAAG,KAAI,CAAC,OAAO,CAAC,UAAU,CAAC;QAIrC,gBAAU,GAAG,KAAI,CAAC,OAAO,CAAC,UAAU,CAAC;;KAapC;2BAlCQ,kBAAkB;IAoC3B,sBAAI,sDAAsB;aAA1B;YACI,OAAO,IAAI,CAAC,gBAAgB,IAAI,C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AE,CAAC,OAAO,CAAC,CAAC;uDAGnC;IA1DQ,kBAAkB;QAZ9B,SAAS,CAAC;YACP,QAAQ,EAAE,YAAY;YACtB,8iCAAqC;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,2BAA2B;oBACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,oBAAkB,GAAA,CAAC;iBACpD;aACJ;;SACJ,CAAC;QAyBO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;OA9BtB,kBAAkB,CAuE9B;IAAD,yBAAC;CAAA,CAtEW,kBAAkB;;;ICnB9B;KAA+B;IAAlB,eAAe;QAX3B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,kBAAkB;gBAClB,oBAAoB;gBACpB,WAAW;gBACX,mBAAmB;aACtB;YACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;AClBA;;;;;;"}
@@ -1,9 +1,10 @@
1
- import { __extends, __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, ContentChild, TemplateRef, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
1
+ import { __assign, __extends, __decorate, __param } from 'tslib';
2
+ import { forwardRef, InjectionToken, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, ContentChild, TemplateRef, Component, ChangeDetectionStrategy, Directive, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
- import { TUI_DEFAULT_IDENTITY_MATCHER, isNativeFocused, setNativeFocused, tuiDefaultProp, tuiPure, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiNullableControl, TuiActiveZoneModule } from '@taiga-ui/cdk';
5
- import { TuiTextfieldCleanerDirective, TUI_TEXTFIELD_CLEANER, TuiPrimitiveTextfieldComponent, TuiHostedDropdownComponent, TuiDataListDirective, TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, TuiPrimitiveTextfieldModule, TuiHostedDropdownModule } from '@taiga-ui/core';
6
- import { TUI_ARROW, TuiArrowModule } from '@taiga-ui/kit/components/arrow';
4
+ import { AbstractTuiControl, TUI_FOCUSABLE_ITEM_ACCESSOR, isNativeFocused, setNativeFocused, tuiDefaultProp, tuiPure, AbstractTuiNullableControl, TuiActiveZoneModule } from '@taiga-ui/cdk';
5
+ import { TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, TuiTextfieldCleanerDirective, TUI_TEXTFIELD_CLEANER, TuiPrimitiveTextfieldComponent, TuiHostedDropdownComponent, TuiDataListDirective, TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost, TuiPrimitiveTextfieldModule, TuiHostedDropdownModule, TuiTextfieldComponent } from '@taiga-ui/core';
6
+ import { TUI_ARROW_MODE, TuiArrowModule } from '@taiga-ui/kit/components/arrow';
7
+ import { TUI_ITEMS_HANDLERS } from '@taiga-ui/kit/tokens';
7
8
  import { TUI_SELECT_OPTION, TuiSelectOptionModule } from '@taiga-ui/kit/components/select-option';
8
9
  import { FIXED_DROPDOWN_CONTROLLER_PROVIDER } from '@taiga-ui/kit/providers';
9
10
  import { CommonModule } from '@angular/common';
@@ -11,20 +12,54 @@ import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
11
12
 
12
13
  // TODO: remove in ivy compilation
13
14
  var SELECT_OPTION = TUI_SELECT_OPTION;
15
+ var TUI_SELECT_PROVIDERS = [
16
+ {
17
+ provide: AbstractTuiControl,
18
+ useExisting: forwardRef(function () { return TuiSelectComponent; }),
19
+ },
20
+ {
21
+ provide: TUI_FOCUSABLE_ITEM_ACCESSOR,
22
+ useExisting: forwardRef(function () { return TuiSelectComponent; }),
23
+ },
24
+ {
25
+ provide: TUI_DATA_LIST_HOST,
26
+ useExisting: forwardRef(function () { return TuiSelectComponent; }),
27
+ },
28
+ {
29
+ provide: TUI_OPTION_CONTENT,
30
+ useValue: SELECT_OPTION,
31
+ },
32
+ FIXED_DROPDOWN_CONTROLLER_PROVIDER,
33
+ ];
34
+
35
+ var TUI_SELECT_DEFAULT_OPTIONS = {
36
+ valueContent: '',
37
+ };
38
+ var TUI_SELECT_OPTIONS = new InjectionToken('Default parameters for select component', {
39
+ factory: function () { return TUI_SELECT_DEFAULT_OPTIONS; },
40
+ });
41
+ var tuiSelectOptionsProvider = function (options) { return ({
42
+ provide: TUI_SELECT_OPTIONS,
43
+ useValue: __assign(__assign({}, TUI_SELECT_DEFAULT_OPTIONS), options),
44
+ }); };
45
+
14
46
  var TuiSelectComponent = /** @class */ (function (_super) {
15
47
  __extends(TuiSelectComponent, _super);
16
- function TuiSelectComponent(control, changeDetectorRef, textfieldCleaner) {
48
+ function TuiSelectComponent(control, changeDetectorRef, textfieldCleaner, arrowMode, itemsHandlers, options) {
17
49
  var _this = _super.call(this, control, changeDetectorRef) || this;
18
50
  _this.textfieldCleaner = textfieldCleaner;
19
- _this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
20
- _this.valueContent = '';
51
+ _this.arrowMode = arrowMode;
52
+ _this.itemsHandlers = itemsHandlers;
53
+ _this.options = options;
54
+ _this.stringify = _this.itemsHandlers.stringify;
55
+ _this.identityMatcher = _this.itemsHandlers.identityMatcher;
56
+ _this.valueContent = _this.options.valueContent;
21
57
  _this.datalist = '';
22
58
  return _this;
23
59
  }
24
- TuiSelectComponent_1 = TuiSelectComponent;
25
60
  Object.defineProperty(TuiSelectComponent.prototype, "arrow", {
26
61
  get: function () {
27
- return !this.interactive ? '' : TUI_ARROW;
62
+ return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;
28
63
  },
29
64
  enumerable: true,
30
65
  configurable: true
@@ -46,7 +81,7 @@ var TuiSelectComponent = /** @class */ (function (_super) {
46
81
  });
47
82
  Object.defineProperty(TuiSelectComponent.prototype, "computedValue", {
48
83
  get: function () {
49
- return this.value === null ? '' : String(this.value) || ' ';
84
+ return this.value === null ? '' : this.stringify(this.value) || ' ';
50
85
  },
51
86
  enumerable: true,
52
87
  configurable: true
@@ -78,11 +113,10 @@ var TuiSelectComponent = /** @class */ (function (_super) {
78
113
  }
79
114
  };
80
115
  TuiSelectComponent.prototype.handleOption = function (option) {
116
+ var _a;
81
117
  this.focusInput();
82
118
  this.updateValue(option);
83
- if (this.hostedDropdown) {
84
- this.hostedDropdown.updateOpen(false);
85
- }
119
+ (_a = this.hostedDropdown) === null || _a === void 0 ? void 0 : _a.updateOpen(false);
86
120
  };
87
121
  TuiSelectComponent.prototype.focusInput = function (preventScroll) {
88
122
  if (preventScroll === void 0) { preventScroll = false; }
@@ -90,11 +124,13 @@ var TuiSelectComponent = /** @class */ (function (_super) {
90
124
  setNativeFocused(this.nativeFocusableElement, true, preventScroll);
91
125
  }
92
126
  };
93
- var TuiSelectComponent_1;
94
127
  TuiSelectComponent.ctorParameters = function () { return [
95
128
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
96
129
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
97
- { type: TuiTextfieldCleanerDirective, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_CLEANER,] }] }
130
+ { type: TuiTextfieldCleanerDirective, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_CLEANER,] }] },
131
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_ARROW_MODE,] }] },
132
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_ITEMS_HANDLERS,] }] },
133
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_SELECT_OPTIONS,] }] }
98
134
  ]; };
99
135
  __decorate([
100
136
  ViewChild(TuiPrimitiveTextfieldComponent)
@@ -102,6 +138,10 @@ var TuiSelectComponent = /** @class */ (function (_super) {
102
138
  __decorate([
103
139
  ViewChild(TuiHostedDropdownComponent)
104
140
  ], TuiSelectComponent.prototype, "hostedDropdown", void 0);
141
+ __decorate([
142
+ Input(),
143
+ tuiDefaultProp()
144
+ ], TuiSelectComponent.prototype, "stringify", void 0);
105
145
  __decorate([
106
146
  Input(),
107
147
  tuiDefaultProp()
@@ -116,37 +156,64 @@ var TuiSelectComponent = /** @class */ (function (_super) {
116
156
  __decorate([
117
157
  tuiPure
118
158
  ], TuiSelectComponent.prototype, "computeContext", null);
119
- TuiSelectComponent = TuiSelectComponent_1 = __decorate([
159
+ TuiSelectComponent = __decorate([
120
160
  Component({
121
161
  selector: 'tui-select',
122
- template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive\"\n [content]=\"datalist || ''\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-select__textfield\"\n class=\"t-textfield\"\n [editable]=\"false\"\n [pseudoFocused]=\"computedFocused\"\n [pseudoHovered]=\"computedHovered\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [iconContent]=\"arrow\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (keydown.delete.prevent)=\"onKeyDownDelete()\"\n (keydown.backspace.prevent)=\"onKeyDownDelete()\"\n >\n <ng-content></ng-content>\n <div\n *ngIf=\"value !== null\"\n polymorpheus-outlet\n automation-id=\"tui-select__value\"\n class=\"t-value\"\n [content]=\"computedContent\"\n [context]=\"computeContext(value, computedFocused)\"\n >\n <ng-template let-primitiveValue>\n <div class=\"t-primitive-value\">{{ primitiveValue }}</div>\n </ng-template>\n </div>\n </tui-primitive-textfield>\n</tui-hosted-dropdown>\n",
162
+ template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"interactive\"\n [content]=\"datalist || ''\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-primitive-textfield\n automation-id=\"tui-select__textfield\"\n class=\"t-textfield\"\n [editable]=\"false\"\n [pseudoFocused]=\"computedFocused\"\n [pseudoHovered]=\"computedHovered\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [iconContent]=\"arrow\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"computedFocusable\"\n [value]=\"computedValue\"\n (valueChange)=\"onValueChange($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (keydown.delete.prevent)=\"onKeyDownDelete()\"\n (keydown.backspace.prevent)=\"onKeyDownDelete()\"\n >\n <ng-content></ng-content>\n <ng-content select=\"input\" ngProjectAs=\"input\"></ng-content>\n <div\n *ngIf=\"value !== null\"\n polymorpheus-outlet\n automation-id=\"tui-select__value\"\n class=\"t-value\"\n [content]=\"computedContent\"\n [context]=\"computeContext(value, computedFocused)\"\n >\n <ng-template let-primitiveValue>\n <div class=\"t-primitive-value\">{{ primitiveValue }}</div>\n </ng-template>\n </div>\n </tui-primitive-textfield>\n</tui-hosted-dropdown>\n",
123
163
  changeDetection: ChangeDetectionStrategy.OnPush,
124
- providers: [
125
- {
126
- provide: TUI_FOCUSABLE_ITEM_ACCESSOR,
127
- useExisting: forwardRef(function () { return TuiSelectComponent_1; }),
128
- },
129
- {
130
- provide: TUI_DATA_LIST_HOST,
131
- useExisting: forwardRef(function () { return TuiSelectComponent_1; }),
132
- },
133
- {
134
- provide: TUI_OPTION_CONTENT,
135
- useValue: SELECT_OPTION,
136
- },
137
- FIXED_DROPDOWN_CONTROLLER_PROVIDER,
138
- ],
139
- styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}:host._readonly ::ng-deep input{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;width:100%;align-items:center;overflow:hidden}.t-primitive-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]
164
+ providers: TUI_SELECT_PROVIDERS,
165
+ styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}:host:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}:host._readonly ::ng-deep input{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-value{display:flex;width:100%;align-items:center}.t-primitive-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]
140
166
  }),
141
167
  __param(0, Optional()),
142
168
  __param(0, Self()),
143
169
  __param(0, Inject(NgControl)),
144
170
  __param(1, Inject(ChangeDetectorRef)),
145
- __param(2, Inject(TUI_TEXTFIELD_CLEANER))
171
+ __param(2, Inject(TUI_TEXTFIELD_CLEANER)),
172
+ __param(3, Inject(TUI_ARROW_MODE)),
173
+ __param(4, Inject(TUI_ITEMS_HANDLERS)),
174
+ __param(5, Inject(TUI_SELECT_OPTIONS))
146
175
  ], TuiSelectComponent);
147
176
  return TuiSelectComponent;
148
177
  }(AbstractTuiNullableControl));
149
178
 
179
+ var TuiSelectDirective = /** @class */ (function (_super) {
180
+ __extends(TuiSelectDirective, _super);
181
+ function TuiSelectDirective() {
182
+ return _super !== null && _super.apply(this, arguments) || this;
183
+ }
184
+ TuiSelectDirective_1 = TuiSelectDirective;
185
+ Object.defineProperty(TuiSelectDirective.prototype, "readOnly", {
186
+ get: function () {
187
+ return true;
188
+ },
189
+ enumerable: true,
190
+ configurable: true
191
+ });
192
+ Object.defineProperty(TuiSelectDirective.prototype, "value", {
193
+ get: function () {
194
+ return this.host.computedValue;
195
+ },
196
+ enumerable: true,
197
+ configurable: true
198
+ });
199
+ TuiSelectDirective.prototype.onValueChange = function (value) {
200
+ this.host.onValueChange(value);
201
+ };
202
+ var TuiSelectDirective_1;
203
+ TuiSelectDirective = TuiSelectDirective_1 = __decorate([
204
+ Directive({
205
+ selector: 'tui-select',
206
+ providers: [
207
+ {
208
+ provide: TUI_TEXTFIELD_HOST,
209
+ useExisting: forwardRef(function () { return TuiSelectDirective_1; }),
210
+ },
211
+ ],
212
+ })
213
+ ], TuiSelectDirective);
214
+ return TuiSelectDirective;
215
+ }(TuiAbstractTextfieldHost));
216
+
150
217
  var TuiSelectModule = /** @class */ (function () {
151
218
  function TuiSelectModule() {
152
219
  }
@@ -161,8 +228,8 @@ var TuiSelectModule = /** @class */ (function () {
161
228
  TuiSelectOptionModule,
162
229
  TuiArrowModule,
163
230
  ],
164
- declarations: [TuiSelectComponent],
165
- exports: [TuiSelectComponent],
231
+ declarations: [TuiSelectComponent, TuiSelectDirective],
232
+ exports: [TuiSelectComponent, TuiSelectDirective, TuiTextfieldComponent],
166
233
  })
167
234
  ], TuiSelectModule);
168
235
  return TuiSelectModule;
@@ -172,5 +239,5 @@ var TuiSelectModule = /** @class */ (function () {
172
239
  * Generated bundle index. Do not edit.
173
240
  */
174
241
 
175
- export { SELECT_OPTION, TuiSelectComponent, TuiSelectModule };
242
+ export { SELECT_OPTION, TUI_SELECT_DEFAULT_OPTIONS, TUI_SELECT_OPTIONS, TUI_SELECT_PROVIDERS, TuiSelectComponent, TuiSelectDirective, TuiSelectModule, tuiSelectOptionsProvider };
176
243
  //# sourceMappingURL=taiga-ui-kit-components-select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-select.js","sources":["ng://@taiga-ui/kit/components/select/select.component.ts","ng://@taiga-ui/kit/components/select/select.module.ts","ng://@taiga-ui/kit/components/select/taiga-ui-kit-components-select.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n setNativeFocused,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_DATA_LIST_HOST,\n TUI_OPTION_CONTENT,\n TUI_TEXTFIELD_CLEANER,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldCleanerDirective,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TUI_ARROW} from '@taiga-ui/kit/components/arrow';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n// TODO: remove in ivy compilation\nexport const SELECT_OPTION: unknown = TUI_SELECT_OPTION;\n\n@Component({\n selector: 'tui-select',\n templateUrl: './select.template.html',\n styleUrls: ['./select.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiSelectComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiSelectComponent),\n },\n {\n provide: TUI_OPTION_CONTENT,\n useValue: SELECT_OPTION,\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiSelectComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T | string> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n valueContent: PolymorpheusContent<TuiValueContentContext<T>> = '';\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_CLEANER)\n private readonly textfieldCleaner: TuiTextfieldCleanerDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n get arrow(): PolymorpheusContent {\n return !this.interactive ? '' : TUI_ARROW;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get computedValue(): string {\n return this.value === null ? '' : String(this.value) || ' ';\n }\n\n get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.computedValue;\n }\n\n @tuiPure\n computeContext(\n $implicit: T | null,\n active: boolean,\n ): TuiValueContentContext<T | null> {\n return {$implicit, active};\n }\n\n onValueChange(value: string) {\n if (!value) {\n this.updateValue(null);\n }\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onKeyDownDelete() {\n if (this.textfieldCleaner.cleaner) {\n this.updateValue(null);\n }\n }\n\n handleOption(option: T) {\n this.focusInput();\n this.updateValue(option);\n\n if (this.hostedDropdown) {\n this.hostedDropdown.updateOpen(false);\n }\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {TuiHostedDropdownModule, TuiPrimitiveTextfieldModule} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiSelectOptionModule} from '@taiga-ui/kit/components/select-option';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSelectComponent} from './select.component';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n TuiSelectOptionModule,\n TuiArrowModule,\n ],\n declarations: [TuiSelectComponent],\n exports: [TuiSelectComponent],\n})\nexport class TuiSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAyCA;IACa,aAAa,GAAY,kBAAkB;;IAwB5C,sCAA6B;IAoBrC,4BAII,OAAyB,EACE,iBAAoC,EAE9C,gBAA8C;QAPnE,YASI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAHoB,sBAAgB,GAAhB,gBAAgB,CAA8B;QAhBnE,qBAAe,GAAmC,4BAA4B,CAAC;QAI/E,kBAAY,GAAmD,EAAE,CAAC;QAGzD,cAAQ,GAAwB,EAAE,CAAC;;KAY3C;2BA/BQ,kBAAkB;IAiC3B,sBAAI,qCAAK;aAAT;YACI,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,EAAE,GAAG,SAAS,CAAC;SAC7C;;;OAAA;IAED,sBAAI,sDAAsB;aAA1B;YACI,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,IAAI,CAAC;SACxE;;;OAAA;IAED,sBAAI,uCAAO;aAAX;YACI,QACI,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC;iBAC3C,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EACxD;SACL;;;OAAA;IAED,sBAAI,6CAAa;aAAjB;YACI,OAAO,IAAI,CAAC,KAAK,KA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B;gBACrB,cAAc;aACjB;YACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACvBA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-select.js","sources":["ng://@taiga-ui/kit/components/select/select.providers.ts","ng://@taiga-ui/kit/components/select/select-options.ts","ng://@taiga-ui/kit/components/select/select.component.ts","ng://@taiga-ui/kit/components/select/select.directive.ts","ng://@taiga-ui/kit/components/select/select.module.ts","ng://@taiga-ui/kit/components/select/taiga-ui-kit-components-select.ts"],"sourcesContent":["import {forwardRef} from '@angular/core';\nimport {AbstractTuiControl, TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT} from '@taiga-ui/core';\nimport {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\n\nimport {TuiSelectComponent} from './select.component';\n\n// TODO: remove in ivy compilation\nexport const SELECT_OPTION: unknown = TUI_SELECT_OPTION;\n\nexport const TUI_SELECT_PROVIDERS = [\n {\n provide: AbstractTuiControl,\n useExisting: forwardRef(() => TuiSelectComponent),\n },\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiSelectComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiSelectComponent),\n },\n {\n provide: TUI_OPTION_CONTENT,\n useValue: SELECT_OPTION,\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n];\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiValueContentContext} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiSelectOptions<T> {\n readonly valueContent: PolymorpheusContent<TuiValueContentContext<T>>;\n}\n\nexport const TUI_SELECT_DEFAULT_OPTIONS: TuiSelectOptions<unknown> = {\n valueContent: '',\n};\n\nexport const TUI_SELECT_OPTIONS = new InjectionToken<TuiSelectOptions<unknown>>(\n 'Default parameters for select component',\n {\n factory: () => TUI_SELECT_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiSelectOptionsProvider: <T>(\n options: Partial<TuiSelectOptions<T>>,\n) => ValueProvider = <T>(options: Partial<TuiSelectOptions<T>>) => ({\n provide: TUI_SELECT_OPTIONS,\n useValue: {...TUI_SELECT_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n Inject,\n Input,\n Optional,\n Self,\n TemplateRef,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n setNativeFocused,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_CLEANER,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHostedDropdownComponent,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldCleanerDirective,\n TuiValueContentContext,\n} from '@taiga-ui/core';\nimport {TUI_ARROW_MODE, TuiArrowMode} from '@taiga-ui/kit/components/arrow';\nimport {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_SELECT_PROVIDERS} from './select.providers';\nimport {TUI_SELECT_OPTIONS, TuiSelectOptions} from './select-options';\n\n@Component({\n selector: 'tui-select',\n templateUrl: './select.template.html',\n styleUrls: ['./select.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_SELECT_PROVIDERS,\n})\nexport class TuiSelectComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor, TuiDataListHost<T>\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @Input()\n @tuiDefaultProp()\n stringify: TuiItemsHandlers<T>['stringify'] = this.itemsHandlers.stringify;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiItemsHandlers<T>['identityMatcher'] =\n this.itemsHandlers.identityMatcher;\n\n @Input()\n @tuiDefaultProp()\n valueContent: TuiSelectOptions<T>['valueContent'] = this.options.valueContent;\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist: PolymorpheusContent = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_CLEANER)\n private readonly textfieldCleaner: TuiTextfieldCleanerDirective,\n @Inject(TUI_ARROW_MODE)\n private readonly arrowMode: TuiArrowMode,\n @Inject(TUI_ITEMS_HANDLERS)\n private readonly itemsHandlers: TuiItemsHandlers<T>,\n @Inject(TUI_SELECT_OPTIONS)\n private readonly options: TuiSelectOptions<T>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get arrow(): PolymorpheusContent {\n return !this.interactive ? this.arrowMode.disabled : this.arrowMode.interactive;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n (!!this.hostedDropdown && this.hostedDropdown.focused)\n );\n }\n\n get computedValue(): string {\n return this.value === null ? '' : this.stringify(this.value) || ' ';\n }\n\n get computedContent(): PolymorpheusContent<TuiValueContentContext<T>> {\n return this.valueContent || this.computedValue;\n }\n\n @tuiPure\n computeContext(\n $implicit: T | null,\n active: boolean,\n ): TuiValueContentContext<T | null> {\n return {$implicit, active};\n }\n\n onValueChange(value: string) {\n if (!value) {\n this.updateValue(null);\n }\n }\n\n onActiveZone(active: boolean) {\n this.updateFocused(active);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onKeyDownDelete() {\n if (this.textfieldCleaner.cleaner) {\n this.updateValue(null);\n }\n }\n\n handleOption(option: T) {\n this.focusInput();\n this.updateValue(option);\n this.hostedDropdown?.updateOpen(false);\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {Directive, forwardRef} from '@angular/core';\nimport {TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiSelectComponent} from './select.component';\n\n@Directive({\n selector: 'tui-select',\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiSelectDirective),\n },\n ],\n})\nexport class TuiSelectDirective extends TuiAbstractTextfieldHost<\n TuiSelectComponent<unknown>\n> {\n get readOnly(): boolean {\n return true;\n }\n\n get value(): string {\n return this.host.computedValue;\n }\n\n onValueChange(value: string) {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/core';\nimport {TuiArrowModule} from '@taiga-ui/kit/components/arrow';\nimport {TuiSelectOptionModule} from '@taiga-ui/kit/components/select-option';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiSelectComponent} from './select.component';\nimport {TuiSelectDirective} from './select.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiActiveZoneModule,\n TuiPrimitiveTextfieldModule,\n TuiHostedDropdownModule,\n TuiSelectOptionModule,\n TuiArrowModule,\n ],\n declarations: [TuiSelectComponent, TuiSelectDirective],\n exports: [TuiSelectComponent, TuiSelectDirective, TuiTextfieldComponent],\n})\nexport class TuiSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAQA;IACa,aAAa,GAAY,kBAAkB;IAE3C,oBAAoB,GAAG;IAChC;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,kBAAkB,GAAA,CAAC;KACpD;IACD;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,kBAAkB,GAAA,CAAC;KACpD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,kBAAkB,GAAA,CAAC;KACpD;IACD;QACI,OAAO,EAAE,kBAAkB;QAC3B,QAAQ,EAAE,aAAa;KAC1B;IACD,kCAAkC;;;ICpBzB,0BAA0B,GAA8B;IACjE,YAAY,EAAE,EAAE;EAClB;IAEW,kBAAkB,GAAG,IAAI,cAAc,CAChD,yCAAyC,EACzC;IACI,OAAO,EAAE,cAAM,OAAA,0BAA0B,GAAA;CAC5C,EACH;IAEW,wBAAwB,GAEhB,UAAI,OAAqC,IAAK,QAAC;IAChE,OAAO,EAAE,kBAAkB;IAC3B,QAAQ,wBAAM,0BAA0B,GAAK,OAAO,CAAC;CACxD;;;ICqBW,sCAA6B;IAyBrC,4BAII,OAAyB,EACE,iBAAoC,EAE9C,gBAA8C,EAE9C,SAAuB,EAEvB,aAAkC,EAElC,OAA4B;QAbjD,YAeI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAToB,sBAAgB,GAAhB,gBAAgB,CAA8B;QAE9C,eAAS,GAAT,SAAS,CAAc;QAEvB,mBAAa,GAAb,aAAa,CAAqB;QAElC,aAAO,GAAP,OAAO,CAAqB;QA3BjD,eAAS,GAAqC,KAAI,CAAC,aAAa,CAAC,SAAS,CAAC;QAI3E,qBAAe,GACX,KAAI,CA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