@taiga-ui/kit 2.30.0 → 2.34.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 (910) hide show
  1. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  2. package/bundles/taiga-ui-kit-abstract.umd.js +7 -6
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
  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 +4 -1
  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 +5 -4
  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 +3 -3
  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 +129 -56
  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 +45 -11
  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 +80 -28
  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 +80 -36
  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 +76 -28
  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-file.umd.js +1 -8
  87. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-inline.umd.js +2 -15
  91. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  93. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +52 -10
  95. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-month.umd.js +48 -10
  99. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-number.umd.js +52 -10
  103. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  105. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-password.umd.js +50 -11
  107. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +51 -23
  111. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  113. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-input-phone.umd.js +59 -23
  115. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  117. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input-range.umd.js +8 -5
  119. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
  121. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-input-slider.umd.js +8 -5
  123. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  125. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-input-tag.umd.js +44 -15
  127. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
  129. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-input-time.umd.js +19 -14
  131. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +2 -2
  133. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-input.umd.js +33 -4
  135. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  137. package/bundles/taiga-ui-kit-components-input.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 +50 -23
  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-radio-block.umd.js +2 -2
  147. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +2 -2
  151. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-radio-list.umd.js +2 -2
  155. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-radio.umd.js +7 -2
  159. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  161. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-range.umd.js +1 -1
  163. package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
  164. package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-rating.umd.js +373 -0
  166. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -0
  167. package/bundles/taiga-ui-kit-components-rating.umd.min.js +16 -0
  168. package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -0
  169. package/bundles/taiga-ui-kit-components-select.umd.js +107 -43
  170. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
  172. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-slider.umd.js +142 -27
  174. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  176. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -1
  178. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  180. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -1
  182. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-tag.umd.js +11 -5
  186. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-components-text-area.umd.js +8 -6
  190. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  192. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  193. package/bundles/taiga-ui-kit-components-toggle.umd.js +7 -2
  194. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  195. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  196. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  197. package/bundles/taiga-ui-kit-components.umd.js +12 -4
  198. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  199. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  200. package/bundles/taiga-ui-kit-constants.umd.js +8 -0
  201. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-constants.umd.min.js +1 -1
  203. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +389 -0
  205. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -0
  206. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js +16 -0
  207. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -0
  208. package/bundles/taiga-ui-kit-pipes.umd.js +12 -4
  209. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  210. package/bundles/taiga-ui-kit-pipes.umd.min.js +1 -1
  211. package/bundles/taiga-ui-kit-providers.umd.js +6 -5
  212. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  213. package/bundles/taiga-ui-kit-providers.umd.min.js +1 -1
  214. package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
  215. package/bundles/taiga-ui-kit-tokens.umd.js +246 -4
  216. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  217. package/bundles/taiga-ui-kit-tokens.umd.min.js +15 -1
  218. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  219. package/bundles/taiga-ui-kit-utils-mask.umd.js +17 -8
  220. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  221. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +1 -1
  222. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  223. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +241 -6
  224. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  225. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js +15 -1
  226. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  227. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  228. package/components/arrow/arrow-options.d.ts +18 -0
  229. package/components/arrow/arrow.component.d.ts +5 -3
  230. package/components/arrow/index.d.ts +1 -0
  231. package/components/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
  232. package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
  233. package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
  234. package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
  235. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.metadata.json +1 -1
  236. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  237. package/components/carousel/carousel-buttons.directive.d.ts +2 -2
  238. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  239. package/components/checkbox/checkbox.component.d.ts +2 -2
  240. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  241. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  242. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  243. package/components/combo-box/combo-box-strict.directive.d.ts +7 -0
  244. package/components/combo-box/combo-box.component.d.ts +11 -8
  245. package/components/combo-box/combo-box.directive.d.ts +6 -0
  246. package/components/combo-box/combo-box.providers.d.ts +2 -0
  247. package/components/combo-box/index.d.ts +3 -0
  248. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  249. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +5 -3
  250. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  251. package/components/field-error/field-error.component.d.ts +1 -2
  252. package/components/field-error/field-error.module.d.ts +3 -0
  253. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  254. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  255. package/components/index.d.ts +1 -0
  256. package/components/input/index.d.ts +1 -0
  257. package/components/input/input.directive.d.ts +5 -0
  258. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  259. package/components/input-copy/index.d.ts +2 -0
  260. package/components/input-copy/input-copy.directive.d.ts +5 -0
  261. package/components/input-copy/input-copy.providers.d.ts +2 -0
  262. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  263. package/components/input-count/index.d.ts +1 -0
  264. package/components/input-count/input-count-options.d.ts +10 -4
  265. package/components/input-count/input-count.component.d.ts +3 -3
  266. package/components/input-count/input-count.directive.d.ts +6 -0
  267. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  268. package/components/input-date/index.d.ts +2 -0
  269. package/components/input-date/input-date.component.d.ts +3 -4
  270. package/components/input-date/input-date.directive.d.ts +7 -0
  271. package/components/input-date/input-date.providers.d.ts +4 -0
  272. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  273. package/components/input-date-range/index.d.ts +2 -0
  274. package/components/input-date-range/input-date-range.component.d.ts +3 -4
  275. package/components/input-date-range/input-date-range.directive.d.ts +7 -0
  276. package/components/input-date-range/input-date-range.providers.d.ts +4 -0
  277. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  278. package/components/input-date-time/index.d.ts +2 -0
  279. package/components/input-date-time/input-date-time.component.d.ts +3 -5
  280. package/components/input-date-time/input-date-time.directive.d.ts +7 -0
  281. package/components/input-date-time/input-date-time.providers.d.ts +4 -0
  282. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  283. package/components/input-file/input-file.component.d.ts +0 -1
  284. package/components/input-file/taiga-ui-kit-components-input-file.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 +1 -0
  288. package/components/input-month/input-month.component.d.ts +2 -3
  289. package/components/input-month/input-month.directive.d.ts +7 -0
  290. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  291. package/components/input-month-range/index.d.ts +1 -0
  292. package/components/input-month-range/input-month-range.component.d.ts +2 -3
  293. package/components/input-month-range/input-month-range.directive.d.ts +7 -0
  294. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  295. package/components/input-number/index.d.ts +1 -0
  296. package/components/input-number/input-number.component.d.ts +1 -1
  297. package/components/input-number/input-number.directive.d.ts +7 -0
  298. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  299. package/components/input-password/index.d.ts +1 -0
  300. package/components/input-password/input-password-options.d.ts +10 -4
  301. package/components/input-password/input-password.component.d.ts +3 -4
  302. package/components/input-password/input-password.directive.d.ts +8 -0
  303. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  304. package/components/input-phone/index.d.ts +1 -0
  305. package/components/input-phone/input-phone.component.d.ts +1 -1
  306. package/components/input-phone/input-phone.directive.d.ts +7 -0
  307. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  308. package/components/input-phone-international/const/countries.d.ts +15 -7
  309. package/components/input-phone-international/index.d.ts +2 -0
  310. package/components/input-phone-international/input-phone-international.component.d.ts +4 -3
  311. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  312. package/components/input-phone-international/tokens/countries-masks.d.ts +3 -0
  313. package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
  314. package/components/input-range/input-range.component.d.ts +2 -1
  315. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  316. package/components/input-slider/input-slider.component.d.ts +2 -1
  317. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  318. package/components/input-tag/index.d.ts +1 -0
  319. package/components/input-tag/input-tag-options.d.ts +7 -0
  320. package/components/input-tag/input-tag.component.d.ts +6 -2
  321. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  322. package/components/input-time/input-time-options.d.ts +13 -4
  323. package/components/input-time/input-time.component.d.ts +9 -10
  324. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  325. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  326. package/components/multi-select/index.d.ts +1 -0
  327. package/components/multi-select/multi-select-options.d.ts +10 -0
  328. package/components/multi-select/multi-select.component.d.ts +14 -8
  329. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  330. package/components/radio/radio-options.d.ts +10 -4
  331. package/components/radio/radio.component.d.ts +2 -2
  332. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  333. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  334. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  335. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  336. package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
  337. package/components/rating/index.d.ts +3 -0
  338. package/components/rating/package.json +13 -0
  339. package/components/rating/rating-options.d.ts +10 -0
  340. package/components/rating/rating.component.d.ts +21 -0
  341. package/components/rating/rating.module.d.ts +2 -0
  342. package/components/rating/taiga-ui-kit-components-rating.d.ts +4 -0
  343. package/components/rating/taiga-ui-kit-components-rating.metadata.json +1 -0
  344. package/components/select/index.d.ts +3 -0
  345. package/components/select/select-options.d.ts +9 -0
  346. package/components/select/select.component.d.ts +11 -6
  347. package/components/select/select.directive.d.ts +7 -0
  348. package/components/select/select.providers.d.ts +2 -0
  349. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  350. package/components/slider/index.d.ts +1 -0
  351. package/components/slider/slider-old.component.d.ts +19 -0
  352. package/components/slider/slider.component.d.ts +16 -13
  353. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  354. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  355. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  356. package/components/tag/tag.component.d.ts +1 -0
  357. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  358. package/components/taiga-ui-kit-components.metadata.json +1 -1
  359. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  360. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  361. package/components/toggle/toggle-options.d.ts +10 -4
  362. package/components/toggle/toggle.component.d.ts +3 -3
  363. package/constants/index.d.ts +1 -0
  364. package/constants/max-time-values.d.ts +2 -0
  365. package/constants/taiga-ui-kit-constants.metadata.json +1 -1
  366. package/esm2015/abstract/input-slider.js +4 -2
  367. package/esm2015/abstract/slider/slider.js +2 -2
  368. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +3 -3
  369. package/esm2015/components/accordion/accordion.component.js +3 -3
  370. package/esm2015/components/arrow/arrow-options.js +28 -0
  371. package/esm2015/components/arrow/arrow.component.js +12 -8
  372. package/esm2015/components/arrow/arrow.module.js +3 -2
  373. package/esm2015/components/arrow/index.js +2 -1
  374. package/esm2015/components/avatar/avatar.component.js +3 -3
  375. package/esm2015/components/badge/badge.component.js +3 -3
  376. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  377. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +3 -3
  378. package/esm2015/components/calendar-month/calendar-month.component.js +5 -2
  379. package/esm2015/components/carousel/carousel-buttons.directive.js +1 -1
  380. package/esm2015/components/carousel/carousel-scroll.directive.js +5 -4
  381. package/esm2015/components/carousel/carousel.component.js +1 -1
  382. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  383. package/esm2015/components/checkbox-block/checkbox-block.component.js +3 -3
  384. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  385. package/esm2015/components/combo-box/combo-box-strict.directive.js +31 -0
  386. package/esm2015/components/combo-box/combo-box.component.js +41 -55
  387. package/esm2015/components/combo-box/combo-box.directive.js +25 -0
  388. package/esm2015/components/combo-box/combo-box.module.js +15 -4
  389. package/esm2015/components/combo-box/combo-box.providers.js +28 -0
  390. package/esm2015/components/combo-box/index.js +4 -1
  391. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +17 -11
  392. package/esm2015/components/field-error/field-error.component.js +8 -12
  393. package/esm2015/components/field-error/field-error.module.js +6 -2
  394. package/esm2015/components/filter/filter.component.js +3 -3
  395. package/esm2015/components/index.js +2 -1
  396. package/esm2015/components/input/index.js +2 -1
  397. package/esm2015/components/input/input.component.js +3 -3
  398. package/esm2015/components/input/input.directive.js +22 -0
  399. package/esm2015/components/input/input.module.js +5 -4
  400. package/esm2015/components/input/input.providers.js +6 -2
  401. package/esm2015/components/input-copy/index.js +3 -1
  402. package/esm2015/components/input-copy/input-copy.component.js +8 -15
  403. package/esm2015/components/input-copy/input-copy.directive.js +22 -0
  404. package/esm2015/components/input-copy/input-copy.module.js +5 -4
  405. package/esm2015/components/input-copy/input-copy.providers.js +16 -0
  406. package/esm2015/components/input-count/index.js +2 -1
  407. package/esm2015/components/input-count/input-count-options.js +5 -1
  408. package/esm2015/components/input-count/input-count.component.js +10 -10
  409. package/esm2015/components/input-count/input-count.directive.js +26 -0
  410. package/esm2015/components/input-count/input-count.module.js +5 -4
  411. package/esm2015/components/input-date/index.js +3 -1
  412. package/esm2015/components/input-date/input-date.component.js +19 -29
  413. package/esm2015/components/input-date/input-date.directive.js +28 -0
  414. package/esm2015/components/input-date/input-date.module.js +5 -4
  415. package/esm2015/components/input-date/input-date.providers.js +29 -0
  416. package/esm2015/components/input-date-range/index.js +3 -1
  417. package/esm2015/components/input-date-range/input-date-range.component.js +19 -29
  418. package/esm2015/components/input-date-range/input-date-range.directive.js +28 -0
  419. package/esm2015/components/input-date-range/input-date-range.module.js +9 -4
  420. package/esm2015/components/input-date-range/input-date-range.providers.js +29 -0
  421. package/esm2015/components/input-date-time/index.js +3 -1
  422. package/esm2015/components/input-date-time/input-date-time.component.js +19 -33
  423. package/esm2015/components/input-date-time/input-date-time.directive.js +28 -0
  424. package/esm2015/components/input-date-time/input-date-time.module.js +9 -4
  425. package/esm2015/components/input-date-time/input-date-time.providers.js +29 -0
  426. package/esm2015/components/input-file/input-file.component.js +2 -5
  427. package/esm2015/components/input-inline/input-inline.component.js +4 -13
  428. package/esm2015/components/input-month/index.js +2 -1
  429. package/esm2015/components/input-month/input-month.component.js +7 -6
  430. package/esm2015/components/input-month/input-month.directive.js +30 -0
  431. package/esm2015/components/input-month/input-month.module.js +5 -4
  432. package/esm2015/components/input-month-range/index.js +2 -1
  433. package/esm2015/components/input-month-range/input-month-range.component.js +7 -6
  434. package/esm2015/components/input-month-range/input-month-range.directive.js +30 -0
  435. package/esm2015/components/input-month-range/input-month-range.module.js +9 -4
  436. package/esm2015/components/input-number/index.js +2 -1
  437. package/esm2015/components/input-number/input-number.component.js +16 -10
  438. package/esm2015/components/input-number/input-number.directive.js +29 -0
  439. package/esm2015/components/input-number/input-number.module.js +5 -4
  440. package/esm2015/components/input-password/index.js +2 -1
  441. package/esm2015/components/input-password/input-password-options.js +5 -1
  442. package/esm2015/components/input-password/input-password.component.js +8 -7
  443. package/esm2015/components/input-password/input-password.directive.js +30 -0
  444. package/esm2015/components/input-password/input-password.module.js +9 -4
  445. package/esm2015/components/input-phone/index.js +2 -1
  446. package/esm2015/components/input-phone/input-phone.component.js +14 -25
  447. package/esm2015/components/input-phone/input-phone.directive.js +29 -0
  448. package/esm2015/components/input-phone/input-phone.module.js +5 -4
  449. package/esm2015/components/input-phone/input-phone.providers.js +17 -3
  450. package/esm2015/components/input-phone-international/const/countries.js +14 -5
  451. package/esm2015/components/input-phone-international/index.js +3 -1
  452. package/esm2015/components/input-phone-international/input-phone-international.component.js +24 -22
  453. package/esm2015/components/input-phone-international/tokens/countries-masks.js +6 -0
  454. package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +9 -0
  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 +31 -15
  460. package/esm2015/components/input-time/input-time-options.js +8 -1
  461. package/esm2015/components/input-time/input-time.component.js +10 -8
  462. package/esm2015/components/marker-icon/marker-icon.component.js +3 -3
  463. package/esm2015/components/multi-select/index.js +2 -1
  464. package/esm2015/components/multi-select/multi-select-options.js +13 -0
  465. package/esm2015/components/multi-select/multi-select.component.js +31 -17
  466. package/esm2015/components/multi-select/multi-select.module.js +3 -1
  467. package/esm2015/components/radio/radio-options.js +5 -1
  468. package/esm2015/components/radio/radio.component.js +3 -3
  469. package/esm2015/components/radio-block/radio-block.component.js +3 -3
  470. package/esm2015/components/radio-labeled/radio-labeled.component.js +3 -3
  471. package/esm2015/components/radio-list/radio-list.component.js +3 -3
  472. package/esm2015/components/range/range.component.js +1 -1
  473. package/esm2015/components/rating/index.js +4 -0
  474. package/esm2015/components/rating/rating-options.js +15 -0
  475. package/esm2015/components/rating/rating.component.js +91 -0
  476. package/esm2015/components/rating/rating.module.js +23 -0
  477. package/esm2015/components/rating/taiga-ui-kit-components-rating.js +5 -0
  478. package/esm2015/components/select/index.js +4 -1
  479. package/esm2015/components/select/select-options.js +12 -0
  480. package/esm2015/components/select/select.component.js +36 -42
  481. package/esm2015/components/select/select.directive.js +28 -0
  482. package/esm2015/components/select/select.module.js +5 -4
  483. package/esm2015/components/select/select.providers.js +28 -0
  484. package/esm2015/components/slider/index.js +2 -1
  485. package/esm2015/components/slider/slider-old.component.js +71 -0
  486. package/esm2015/components/slider/slider.component.js +66 -46
  487. package/esm2015/components/slider/slider.module.js +4 -3
  488. package/esm2015/components/stepper/step/step.component.js +3 -3
  489. package/esm2015/components/tabs/tab/tab.providers.js +3 -3
  490. package/esm2015/components/tag/tag.component.js +12 -6
  491. package/esm2015/components/text-area/text-area.component.js +9 -6
  492. package/esm2015/components/text-area/text-area.module.js +2 -3
  493. package/esm2015/components/toggle/toggle-options.js +5 -1
  494. package/esm2015/components/toggle/toggle.component.js +3 -3
  495. package/esm2015/constants/index.js +2 -1
  496. package/esm2015/constants/max-time-values.js +7 -0
  497. package/esm2015/pipes/field-error/field-error-pipe.js +120 -0
  498. package/esm2015/pipes/field-error/field-error.module.js +13 -0
  499. package/esm2015/pipes/field-error/index.js +3 -0
  500. package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  501. package/esm2015/pipes/index.js +2 -1
  502. package/esm2015/providers/value-accessor.provider.js +3 -2
  503. package/esm2015/tokens/date-inputs-value-transformers.js +5 -0
  504. package/esm2015/tokens/index.js +3 -1
  505. package/esm2015/tokens/items-handlers.js +15 -0
  506. package/esm2015/types/index.js +1 -1
  507. package/esm2015/types/time-format-parts.js +1 -0
  508. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -6
  509. package/esm2015/utils/mask/create-time-mask.js +16 -8
  510. package/esm2015/utils/miscellaneous/get-precision.js +8 -0
  511. package/esm2015/utils/miscellaneous/index.js +2 -1
  512. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +10 -4
  513. package/esm5/abstract/input-slider.js +4 -2
  514. package/esm5/abstract/slider/slider.js +2 -2
  515. package/esm5/components/accordion/accordion-item/accordion-item.component.js +3 -3
  516. package/esm5/components/accordion/accordion.component.js +3 -3
  517. package/esm5/components/arrow/arrow-options.js +29 -0
  518. package/esm5/components/arrow/arrow.component.js +12 -8
  519. package/esm5/components/arrow/arrow.module.js +3 -2
  520. package/esm5/components/arrow/index.js +2 -1
  521. package/esm5/components/avatar/avatar.component.js +3 -3
  522. package/esm5/components/badge/badge.component.js +3 -3
  523. package/esm5/components/badged-content/badged-content.component.js +3 -3
  524. package/esm5/components/breadcrumbs/breadcrumbs.component.js +3 -3
  525. package/esm5/components/calendar-month/calendar-month.component.js +5 -2
  526. package/esm5/components/carousel/carousel-buttons.directive.js +1 -1
  527. package/esm5/components/carousel/carousel-scroll.directive.js +5 -4
  528. package/esm5/components/carousel/carousel.component.js +1 -1
  529. package/esm5/components/checkbox/checkbox.component.js +4 -4
  530. package/esm5/components/checkbox-block/checkbox-block.component.js +3 -3
  531. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  532. package/esm5/components/combo-box/combo-box-strict.directive.js +32 -0
  533. package/esm5/components/combo-box/combo-box.component.js +40 -59
  534. package/esm5/components/combo-box/combo-box.directive.js +35 -0
  535. package/esm5/components/combo-box/combo-box.module.js +15 -4
  536. package/esm5/components/combo-box/combo-box.providers.js +28 -0
  537. package/esm5/components/combo-box/index.js +4 -1
  538. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +18 -11
  539. package/esm5/components/field-error/field-error.component.js +8 -16
  540. package/esm5/components/field-error/field-error.module.js +6 -2
  541. package/esm5/components/filter/filter.component.js +3 -3
  542. package/esm5/components/index.js +2 -1
  543. package/esm5/components/input/index.js +2 -1
  544. package/esm5/components/input/input.component.js +3 -3
  545. package/esm5/components/input/input.directive.js +28 -0
  546. package/esm5/components/input/input.module.js +5 -4
  547. package/esm5/components/input/input.providers.js +6 -2
  548. package/esm5/components/input-copy/index.js +3 -1
  549. package/esm5/components/input-copy/input-copy.component.js +7 -15
  550. package/esm5/components/input-copy/input-copy.directive.js +28 -0
  551. package/esm5/components/input-copy/input-copy.module.js +5 -4
  552. package/esm5/components/input-copy/input-copy.providers.js +16 -0
  553. package/esm5/components/input-count/index.js +2 -1
  554. package/esm5/components/input-count/input-count-options.js +6 -1
  555. package/esm5/components/input-count/input-count.component.js +10 -10
  556. package/esm5/components/input-count/input-count.directive.js +32 -0
  557. package/esm5/components/input-count/input-count.module.js +5 -4
  558. package/esm5/components/input-date/index.js +3 -1
  559. package/esm5/components/input-date/input-date.component.js +18 -29
  560. package/esm5/components/input-date/input-date.directive.js +38 -0
  561. package/esm5/components/input-date/input-date.module.js +5 -4
  562. package/esm5/components/input-date/input-date.providers.js +29 -0
  563. package/esm5/components/input-date-range/index.js +3 -1
  564. package/esm5/components/input-date-range/input-date-range.component.js +18 -29
  565. package/esm5/components/input-date-range/input-date-range.directive.js +38 -0
  566. package/esm5/components/input-date-range/input-date-range.module.js +9 -4
  567. package/esm5/components/input-date-range/input-date-range.providers.js +29 -0
  568. package/esm5/components/input-date-time/index.js +3 -1
  569. package/esm5/components/input-date-time/input-date-time.component.js +18 -37
  570. package/esm5/components/input-date-time/input-date-time.directive.js +38 -0
  571. package/esm5/components/input-date-time/input-date-time.module.js +9 -4
  572. package/esm5/components/input-date-time/input-date-time.providers.js +29 -0
  573. package/esm5/components/input-file/input-file.component.js +2 -9
  574. package/esm5/components/input-inline/input-inline.component.js +4 -17
  575. package/esm5/components/input-month/index.js +2 -1
  576. package/esm5/components/input-month/input-month.component.js +7 -10
  577. package/esm5/components/input-month/input-month.directive.js +44 -0
  578. package/esm5/components/input-month/input-month.module.js +5 -4
  579. package/esm5/components/input-month-range/index.js +2 -1
  580. package/esm5/components/input-month-range/input-month-range.component.js +7 -10
  581. package/esm5/components/input-month-range/input-month-range.directive.js +44 -0
  582. package/esm5/components/input-month-range/input-month-range.module.js +9 -4
  583. package/esm5/components/input-number/index.js +2 -1
  584. package/esm5/components/input-number/input-number.component.js +16 -10
  585. package/esm5/components/input-number/input-number.directive.js +39 -0
  586. package/esm5/components/input-number/input-number.module.js +5 -4
  587. package/esm5/components/input-password/index.js +2 -1
  588. package/esm5/components/input-password/input-password-options.js +6 -1
  589. package/esm5/components/input-password/input-password.component.js +8 -11
  590. package/esm5/components/input-password/input-password.directive.js +36 -0
  591. package/esm5/components/input-password/input-password.module.js +9 -4
  592. package/esm5/components/input-phone/index.js +2 -1
  593. package/esm5/components/input-phone/input-phone.component.js +13 -25
  594. package/esm5/components/input-phone/input-phone.directive.js +39 -0
  595. package/esm5/components/input-phone/input-phone.module.js +5 -4
  596. package/esm5/components/input-phone/input-phone.providers.js +17 -3
  597. package/esm5/components/input-phone-international/const/countries.js +14 -5
  598. package/esm5/components/input-phone-international/index.js +3 -1
  599. package/esm5/components/input-phone-international/input-phone-international.component.js +28 -22
  600. package/esm5/components/input-phone-international/tokens/countries-masks.js +6 -0
  601. package/esm5/components/input-phone-international/utils/extract-value-from-event.js +9 -0
  602. package/esm5/components/input-range/input-range.component.js +10 -7
  603. package/esm5/components/input-slider/input-slider.component.js +10 -7
  604. package/esm5/components/input-tag/index.js +2 -1
  605. package/esm5/components/input-tag/input-tag-options.js +9 -0
  606. package/esm5/components/input-tag/input-tag.component.js +36 -16
  607. package/esm5/components/input-time/input-time-options.js +9 -1
  608. package/esm5/components/input-time/input-time.component.js +10 -12
  609. package/esm5/components/marker-icon/marker-icon.component.js +3 -3
  610. package/esm5/components/multi-select/index.js +2 -1
  611. package/esm5/components/multi-select/multi-select-options.js +14 -0
  612. package/esm5/components/multi-select/multi-select.component.js +35 -21
  613. package/esm5/components/multi-select/multi-select.module.js +3 -1
  614. package/esm5/components/radio/radio-options.js +6 -1
  615. package/esm5/components/radio/radio.component.js +3 -3
  616. package/esm5/components/radio-block/radio-block.component.js +3 -3
  617. package/esm5/components/radio-labeled/radio-labeled.component.js +3 -3
  618. package/esm5/components/radio-list/radio-list.component.js +3 -3
  619. package/esm5/components/range/range.component.js +1 -1
  620. package/esm5/components/rating/index.js +4 -0
  621. package/esm5/components/rating/rating-options.js +16 -0
  622. package/esm5/components/rating/rating.component.js +111 -0
  623. package/esm5/components/rating/rating.module.js +26 -0
  624. package/esm5/components/rating/taiga-ui-kit-components-rating.js +5 -0
  625. package/esm5/components/select/index.js +4 -1
  626. package/esm5/components/select/select-options.js +13 -0
  627. package/esm5/components/select/select.component.js +35 -46
  628. package/esm5/components/select/select.directive.js +42 -0
  629. package/esm5/components/select/select.module.js +5 -4
  630. package/esm5/components/select/select.providers.js +28 -0
  631. package/esm5/components/slider/index.js +2 -1
  632. package/esm5/components/slider/slider-old.component.js +90 -0
  633. package/esm5/components/slider/slider.component.js +83 -53
  634. package/esm5/components/slider/slider.module.js +4 -3
  635. package/esm5/components/stepper/step/step.component.js +3 -3
  636. package/esm5/components/tabs/tab/tab.providers.js +3 -3
  637. package/esm5/components/tag/tag.component.js +12 -6
  638. package/esm5/components/text-area/text-area.component.js +9 -6
  639. package/esm5/components/text-area/text-area.module.js +2 -3
  640. package/esm5/components/toggle/toggle-options.js +6 -1
  641. package/esm5/components/toggle/toggle.component.js +3 -3
  642. package/esm5/constants/index.js +2 -1
  643. package/esm5/constants/max-time-values.js +7 -0
  644. package/esm5/pipes/field-error/field-error-pipe.js +153 -0
  645. package/esm5/pipes/field-error/field-error.module.js +16 -0
  646. package/esm5/pipes/field-error/index.js +3 -0
  647. package/esm5/pipes/field-error/taiga-ui-kit-pipes-field-error.js +5 -0
  648. package/esm5/pipes/index.js +2 -1
  649. package/esm5/providers/value-accessor.provider.js +3 -2
  650. package/esm5/tokens/date-inputs-value-transformers.js +5 -0
  651. package/esm5/tokens/index.js +3 -1
  652. package/esm5/tokens/items-handlers.js +16 -0
  653. package/esm5/types/index.js +1 -1
  654. package/esm5/types/time-format-parts.js +1 -0
  655. package/esm5/utils/mask/create-auto-corrected-time-pipe.js +8 -5
  656. package/esm5/utils/mask/create-time-mask.js +15 -7
  657. package/esm5/utils/miscellaneous/get-precision.js +9 -0
  658. package/esm5/utils/miscellaneous/index.js +2 -1
  659. package/esm5/utils/miscellaneous/replay-control-value-changes-factory.js +12 -4
  660. package/fesm2015/taiga-ui-kit-abstract.js +4 -2
  661. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  662. package/fesm2015/taiga-ui-kit-components-accordion.js +4 -4
  663. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  664. package/fesm2015/taiga-ui-kit-components-arrow.js +40 -11
  665. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  666. package/fesm2015/taiga-ui-kit-components-avatar.js +2 -2
  667. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  668. package/fesm2015/taiga-ui-kit-components-badge.js +2 -2
  669. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  670. package/fesm2015/taiga-ui-kit-components-badged-content.js +2 -2
  671. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  672. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +2 -2
  673. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  674. package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -1
  675. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  676. package/fesm2015/taiga-ui-kit-components-carousel.js +5 -4
  677. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  678. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +2 -2
  679. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  680. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  681. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  682. package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -3
  683. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  684. package/fesm2015/taiga-ui-kit-components-combo-box.js +118 -53
  685. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  686. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +16 -10
  687. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  688. package/fesm2015/taiga-ui-kit-components-field-error.js +12 -13
  689. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  690. package/fesm2015/taiga-ui-kit-components-filter.js +2 -2
  691. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  692. package/fesm2015/taiga-ui-kit-components-input-copy.js +41 -18
  693. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  694. package/fesm2015/taiga-ui-kit-components-input-count.js +40 -14
  695. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  696. package/fesm2015/taiga-ui-kit-components-input-date-range.js +72 -31
  697. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  698. package/fesm2015/taiga-ui-kit-components-input-date-time.js +72 -35
  699. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  700. package/fesm2015/taiga-ui-kit-components-input-date.js +68 -31
  701. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  702. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -4
  703. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  704. package/fesm2015/taiga-ui-kit-components-input-inline.js +3 -12
  705. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  706. package/fesm2015/taiga-ui-kit-components-input-month-range.js +41 -10
  707. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  708. package/fesm2015/taiga-ui-kit-components-input-month.js +37 -10
  709. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  710. package/fesm2015/taiga-ui-kit-components-input-number.js +45 -14
  711. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  712. package/fesm2015/taiga-ui-kit-components-input-password.js +45 -10
  713. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  714. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +47 -26
  715. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  716. package/fesm2015/taiga-ui-kit-components-input-phone.js +53 -27
  717. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  718. package/fesm2015/taiga-ui-kit-components-input-range.js +9 -6
  719. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  720. package/fesm2015/taiga-ui-kit-components-input-slider.js +9 -6
  721. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  722. package/fesm2015/taiga-ui-kit-components-input-tag.js +39 -16
  723. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  724. package/fesm2015/taiga-ui-kit-components-input-time.js +16 -7
  725. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  726. package/fesm2015/taiga-ui-kit-components-input.js +29 -7
  727. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  728. package/fesm2015/taiga-ui-kit-components-marker-icon.js +2 -2
  729. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  730. package/fesm2015/taiga-ui-kit-components-multi-select.js +44 -18
  731. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  732. package/fesm2015/taiga-ui-kit-components-radio-block.js +2 -2
  733. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  734. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +2 -2
  735. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  736. package/fesm2015/taiga-ui-kit-components-radio-list.js +2 -2
  737. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  738. package/fesm2015/taiga-ui-kit-components-radio.js +7 -3
  739. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  740. package/fesm2015/taiga-ui-kit-components-range.js +1 -1
  741. package/fesm2015/taiga-ui-kit-components-rating.js +127 -0
  742. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -0
  743. package/fesm2015/taiga-ui-kit-components-select.js +91 -40
  744. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  745. package/fesm2015/taiga-ui-kit-components-slider.js +100 -14
  746. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  747. package/fesm2015/taiga-ui-kit-components-stepper.js +2 -2
  748. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  749. package/fesm2015/taiga-ui-kit-components-tabs.js +2 -2
  750. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  751. package/fesm2015/taiga-ui-kit-components-tag.js +11 -5
  752. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  753. package/fesm2015/taiga-ui-kit-components-text-area.js +9 -7
  754. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  755. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -3
  756. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  757. package/fesm2015/taiga-ui-kit-components.js +1 -0
  758. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  759. package/fesm2015/taiga-ui-kit-constants.js +8 -1
  760. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  761. package/fesm2015/taiga-ui-kit-pipes-field-error.js +135 -0
  762. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -0
  763. package/fesm2015/taiga-ui-kit-pipes.js +1 -0
  764. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  765. package/fesm2015/taiga-ui-kit-providers.js +2 -1
  766. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  767. package/fesm2015/taiga-ui-kit-tokens.js +19 -1
  768. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  769. package/fesm2015/taiga-ui-kit-utils-mask.js +20 -12
  770. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  771. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +17 -3
  772. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  773. package/fesm5/taiga-ui-kit-abstract.js +4 -2
  774. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  775. package/fesm5/taiga-ui-kit-components-accordion.js +4 -4
  776. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  777. package/fesm5/taiga-ui-kit-components-arrow.js +41 -12
  778. package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
  779. package/fesm5/taiga-ui-kit-components-avatar.js +2 -2
  780. package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
  781. package/fesm5/taiga-ui-kit-components-badge.js +2 -2
  782. package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
  783. package/fesm5/taiga-ui-kit-components-badged-content.js +2 -2
  784. package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
  785. package/fesm5/taiga-ui-kit-components-breadcrumbs.js +2 -2
  786. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  787. package/fesm5/taiga-ui-kit-components-calendar-month.js +4 -1
  788. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  789. package/fesm5/taiga-ui-kit-components-carousel.js +5 -4
  790. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  791. package/fesm5/taiga-ui-kit-components-checkbox-block.js +2 -2
  792. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  793. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +2 -2
  794. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  795. package/fesm5/taiga-ui-kit-components-checkbox.js +3 -3
  796. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  797. package/fesm5/taiga-ui-kit-components-combo-box.js +128 -57
  798. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  799. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +17 -10
  800. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  801. package/fesm5/taiga-ui-kit-components-field-error.js +12 -17
  802. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  803. package/fesm5/taiga-ui-kit-components-filter.js +2 -2
  804. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  805. package/fesm5/taiga-ui-kit-components-input-copy.js +46 -18
  806. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  807. package/fesm5/taiga-ui-kit-components-input-count.js +47 -15
  808. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  809. package/fesm5/taiga-ui-kit-components-input-date-range.js +81 -31
  810. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  811. package/fesm5/taiga-ui-kit-components-input-date-time.js +81 -39
  812. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  813. package/fesm5/taiga-ui-kit-components-input-date.js +77 -31
  814. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  815. package/fesm5/taiga-ui-kit-components-input-file.js +1 -8
  816. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  817. package/fesm5/taiga-ui-kit-components-input-inline.js +3 -16
  818. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  819. package/fesm5/taiga-ui-kit-components-input-month-range.js +55 -14
  820. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  821. package/fesm5/taiga-ui-kit-components-input-month.js +51 -14
  822. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  823. package/fesm5/taiga-ui-kit-components-input-number.js +55 -14
  824. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  825. package/fesm5/taiga-ui-kit-components-input-password.js +52 -15
  826. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  827. package/fesm5/taiga-ui-kit-components-input-phone-international.js +51 -26
  828. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  829. package/fesm5/taiga-ui-kit-components-input-phone.js +62 -27
  830. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  831. package/fesm5/taiga-ui-kit-components-input-range.js +9 -6
  832. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  833. package/fesm5/taiga-ui-kit-components-input-slider.js +9 -6
  834. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  835. package/fesm5/taiga-ui-kit-components-input-tag.js +44 -17
  836. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  837. package/fesm5/taiga-ui-kit-components-input-time.js +17 -12
  838. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  839. package/fesm5/taiga-ui-kit-components-input.js +36 -8
  840. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  841. package/fesm5/taiga-ui-kit-components-marker-icon.js +2 -2
  842. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  843. package/fesm5/taiga-ui-kit-components-multi-select.js +49 -23
  844. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  845. package/fesm5/taiga-ui-kit-components-radio-block.js +2 -2
  846. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  847. package/fesm5/taiga-ui-kit-components-radio-labeled.js +2 -2
  848. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  849. package/fesm5/taiga-ui-kit-components-radio-list.js +2 -2
  850. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  851. package/fesm5/taiga-ui-kit-components-radio.js +8 -4
  852. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  853. package/fesm5/taiga-ui-kit-components-range.js +1 -1
  854. package/fesm5/taiga-ui-kit-components-rating.js +150 -0
  855. package/fesm5/taiga-ui-kit-components-rating.js.map +1 -0
  856. package/fesm5/taiga-ui-kit-components-select.js +105 -45
  857. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  858. package/fesm5/taiga-ui-kit-components-slider.js +141 -26
  859. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  860. package/fesm5/taiga-ui-kit-components-stepper.js +2 -2
  861. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  862. package/fesm5/taiga-ui-kit-components-tabs.js +2 -2
  863. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  864. package/fesm5/taiga-ui-kit-components-tag.js +11 -5
  865. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  866. package/fesm5/taiga-ui-kit-components-text-area.js +9 -7
  867. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  868. package/fesm5/taiga-ui-kit-components-toggle.js +8 -4
  869. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  870. package/fesm5/taiga-ui-kit-components.js +1 -0
  871. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  872. package/fesm5/taiga-ui-kit-constants.js +8 -1
  873. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  874. package/fesm5/taiga-ui-kit-pipes-field-error.js +171 -0
  875. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -0
  876. package/fesm5/taiga-ui-kit-pipes.js +1 -0
  877. package/fesm5/taiga-ui-kit-pipes.js.map +1 -1
  878. package/fesm5/taiga-ui-kit-providers.js +2 -1
  879. package/fesm5/taiga-ui-kit-providers.js.map +1 -1
  880. package/fesm5/taiga-ui-kit-tokens.js +20 -1
  881. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  882. package/fesm5/taiga-ui-kit-utils-mask.js +19 -10
  883. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  884. package/fesm5/taiga-ui-kit-utils-miscellaneous.js +20 -3
  885. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  886. package/package.json +12 -12
  887. package/pipes/field-error/field-error-pipe.d.ts +29 -0
  888. package/pipes/field-error/field-error.module.d.ts +2 -0
  889. package/pipes/field-error/index.d.ts +2 -0
  890. package/pipes/field-error/package.json +13 -0
  891. package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +4 -0
  892. package/pipes/field-error/taiga-ui-kit-pipes-field-error.metadata.json +1 -0
  893. package/pipes/index.d.ts +1 -0
  894. package/pipes/taiga-ui-kit-pipes.metadata.json +1 -1
  895. package/providers/taiga-ui-kit-providers.metadata.json +1 -1
  896. package/providers/value-accessor.provider.d.ts +1 -1
  897. package/tokens/date-inputs-value-transformers.d.ts +5 -0
  898. package/tokens/index.d.ts +2 -0
  899. package/tokens/items-handlers.d.ts +10 -0
  900. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  901. package/types/index.d.ts +1 -0
  902. package/types/taiga-ui-kit-types.metadata.json +1 -1
  903. package/types/time-format-parts.d.ts +1 -0
  904. package/utils/mask/create-auto-corrected-time-pipe.d.ts +2 -1
  905. package/utils/mask/create-time-mask.d.ts +2 -1
  906. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  907. package/utils/miscellaneous/get-precision.d.ts +4 -0
  908. package/utils/miscellaneous/index.d.ts +1 -0
  909. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +3 -2
  910. package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.metadata.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/range/range.component.ts","ng://@taiga-ui/kit/components/range/range.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiRangeComponent","control","changeDetectorRef","documentRef","elementRef","fromToTexts$","_this","_super","call","this","__","constructor","prototype","create","__extends","computedDisabled","dotLeft","dotRight","isLeftFocusable","nativeElement","isNativeFocusedIn","getFractionFromValue","value","getFallbackValue","processStep","increment","right","fraction","step","computedStep","getValueFromFraction","processValue","guardedValue","valueGuard","updateEnd","updateStart","getCalibratedFractionFromEvents","rect","clientX","isMouseDownRight","left","DOT_WIDTH","size","total","width","round","TUI_FLOATING_PRECISION","updateValue","Math","min","max","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","Document","DOCUMENT","ElementRef","Observable","TUI_FROM_TO_TEXTS","TuiRangeComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiSlider","TuiRangeModule","NgModule","imports","CommonModule","TuiRepeatTimesModule","TuiFocusableModule","TuiActiveZoneModule","TuiFocusVisibleModule","TuiFormatNumberPipeModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAWC,EAAYC,EAAQC,EAAKC,GAChD,IAA2HZ,EAAvHa,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOV,OAAOe,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAASpB,EAAIS,EAAWW,MAAIJ,GAAKH,EAAI,EAAIb,EAAEgB,GAAKH,EAAI,EAAIb,EAAEU,EAAQC,EAAKK,GAAKhB,EAAEU,EAAQC,KAASK,GAChJ,OAAOH,EAAI,GAAKG,GAAKd,OAAOmB,eAAeX,EAAQC,EAAKK,GAAIA,EAGzD,SAASM,EAAQC,EAAYC,GAChC,OAAO,SAAUd,EAAQC,GAAOa,EAAUd,EAAQC,EAAKY,sBCnBvD,SAAAE,EAIIC,EAC2BC,EACTC,EACmBC,EACVC,GAR/B,IAAAC,EAUIC,EAAAC,KAAAC,KAAMR,EAASC,EAAmBC,EAAaE,IAAaI,YAHvBH,EAAAF,WAAAA,UA0E7C,ODnGO,SAAmB7B,EAAGC,GAEzB,SAASkC,IAAOD,KAAKE,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AAOI,EAAAA,WACP9D,EAAA,EAAA0D,EAAAA,OAAOK,EAAAA,aACP/D,EAAA,EAAA0D,EAAAA,OAAOO,EAAAA,qBAZH9D,IACD2E,EAAAA,gCCdZ,SAAAC,KAA6B,OAAhBA,EAAc7F,EAAA,CAZ1B8F,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,qBACAC,EAAAA,mBACAC,EAAAA,oBACAC,EAAAA,sBACAC,EAAAA,2BAEJC,aAAc,CAACrF,GACfsF,QAAS,CAACtF,MAED4E","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocusedIn,\n round,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider, DOT_WIDTH} from '@taiga-ui/kit/abstract';\nimport {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Component({\n selector: 'tui-range',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: ['../../abstract/slider/slider.common.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRangeComponent),\n },\n ],\n})\nexport class TuiRangeComponent\n extends AbstractTuiSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n if (this.computedDisabled || !this.dotLeft || !this.dotRight) {\n return null;\n }\n\n return this.isLeftFocusable\n ? this.dotLeft.nativeElement\n : this.dotRight.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n get left(): number {\n return 100 * this.getFractionFromValue(this.value[0]);\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value[1]);\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n protected processStep(increment: boolean, right: boolean) {\n const fraction = this.getFractionFromValue(right ? this.value[1] : this.value[0]);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value, right);\n }\n\n protected processValue(value: number, right: boolean) {\n const guardedValue = this.valueGuard(value);\n\n if (right === true) {\n this.updateEnd(guardedValue);\n } else {\n this.updateStart(guardedValue);\n }\n }\n\n protected getCalibratedFractionFromEvents(\n rect: ClientRect,\n clientX: number,\n isMouseDownRight: boolean,\n ): number {\n const value =\n clientX -\n rect.left -\n DOT_WIDTH[this.size] / 2 -\n (isMouseDownRight ? DOT_WIDTH[this.size] : 0);\n const total = rect.width - 2 * DOT_WIDTH[this.size];\n\n return round(value / total, TUI_FLOATING_PRECISION);\n }\n\n private updateStart(value: number) {\n this.updateValue([Math.min(value, this.value[1]), this.value[1]]);\n }\n\n private updateEnd(value: number) {\n this.updateValue([this.value[0], Math.max(value, this.value[0])]);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\n\nimport {TuiRangeComponent} from './range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiActiveZoneModule,\n TuiFocusVisibleModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [TuiRangeComponent],\n exports: [TuiRangeComponent],\n})\nexport class TuiRangeModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/range/range.component.ts","ng://@taiga-ui/kit/components/range/range.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiRangeComponent","control","changeDetectorRef","documentRef","elementRef","fromToTexts$","_this","_super","call","this","__","constructor","prototype","create","__extends","computedDisabled","dotLeft","dotRight","isLeftFocusable","nativeElement","isNativeFocusedIn","getFractionFromValue","value","getFallbackValue","processStep","increment","right","fraction","step","computedStep","getValueFromFraction","processValue","guardedValue","valueGuard","updateEnd","updateStart","getCalibratedFractionFromEvents","rect","clientX","isMouseDownRight","left","DOT_WIDTH","size","total","width","round","TUI_FLOATING_PRECISION","updateValue","Math","min","max","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","Document","DOCUMENT","ElementRef","Observable","TUI_FROM_TO_TEXTS","TuiRangeComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiSlider","TuiRangeModule","NgModule","imports","CommonModule","TuiRepeatTimesModule","TuiFocusableModule","TuiActiveZoneModule","TuiFocusVisibleModule","TuiFormatNumberPipeModule","declarations","exports"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAgCrB,SAASO,EAAWC,E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,CAAAD,KACRE,EAAAA,MAAI,CAAAF,KACJG,EAAAA,OAAMC,KAAA,CAACL,EAAAA,oBAEsCM,EAAAA,kBAAiBzE,WAAA,CAAA,CAAAoE,KAA9DG,EAAAA,OAAMC,KAAA,CAACC,EAAAA,4BACuBC,SAAQ1E,WAAA,CAAA,CAAAoE,KAAtCG,EAAAA,OAAMC,KAAA,CAACG,EAAAA,mBACyCC,EAAAA,WAAU5E,WAAA,CAAA,CAAAoE,KAA1DG,EAAAA,OAAMC,KAAA,CAACI,EAAAA,qBACiCC,EAAAA,WAAU7E,WAAA,CAAA,CAAAoE,KAAlDG,EAAAA,OAAMC,KAAA,CAACM,EAAAA,wBAZH9D,EAAiB+D,EAAAhF,EAAA,CAZ7BiF,EAAAA,UAAU,CACPC,SAAU,YACVC,SAAA,8wEAEAC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,UAAW,CACP,CACIC,QAASC,EAAAA,4BACTC,YAAaC,EAAAA,YAAW,WAAM,OAAAX,u9DASjClE,EAAA,EAAAwD,EAAAA,YACAxD,EAAA,EAAAyD,EAAAA,QACAzD,EAAA,EAAA0D,EAAAA,OAAOJ,EAAAA,YAEPtD,EAAA,EAAA0D,EAAAA,OAAOE,EAAAA,oBACP5D,EAAA,EAAA0D,EAAAA,OAAOI,EAAAA,WACP9D,EAAA,EAAA0D,EAAAA,OAAOK,EAAAA,aACP/D,EAAA,EAAA0D,EAAAA,OAAOO,EAAAA,qBAZH9D,IACD2E,EAAAA,gCCdZ,SAAAC,KAA6B,OAAhBA,EAAc7F,EAAA,CAZ1B8F,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,qBACAC,EAAAA,mBACAC,EAAAA,oBACAC,EAAAA,sBACAC,EAAAA,2BAEJC,aAAc,CAACrF,GACfsF,QAAS,CAACtF,MAED4E","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocusedIn,\n round,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider, DOT_WIDTH} from '@taiga-ui/kit/abstract';\nimport {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Component({\n selector: 'tui-range',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: ['../../abstract/slider/slider.common.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRangeComponent),\n },\n ],\n})\nexport class TuiRangeComponent\n extends AbstractTuiSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n if (this.computedDisabled || !this.dotLeft || !this.dotRight) {\n return null;\n }\n\n return this.isLeftFocusable\n ? this.dotLeft.nativeElement\n : this.dotRight.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n get left(): number {\n return 100 * this.getFractionFromValue(this.value[0]);\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value[1]);\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n protected processStep(increment: boolean, right: boolean) {\n const fraction = this.getFractionFromValue(right ? this.value[1] : this.value[0]);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value, right);\n }\n\n protected processValue(value: number, right: boolean) {\n const guardedValue = this.valueGuard(value);\n\n if (right === true) {\n this.updateEnd(guardedValue);\n } else {\n this.updateStart(guardedValue);\n }\n }\n\n protected getCalibratedFractionFromEvents(\n rect: ClientRect,\n clientX: number,\n isMouseDownRight: boolean,\n ): number {\n const value =\n clientX -\n rect.left -\n DOT_WIDTH[this.size] / 2 -\n (isMouseDownRight ? DOT_WIDTH[this.size] : 0);\n const total = rect.width - 2 * DOT_WIDTH[this.size];\n\n return round(value / total, TUI_FLOATING_PRECISION);\n }\n\n private updateStart(value: number) {\n this.updateValue([Math.min(value, this.value[1]), this.value[1]]);\n }\n\n private updateEnd(value: number) {\n this.updateValue([this.value[0], Math.max(value, this.value[0])]);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\n\nimport {TuiRangeComponent} from './range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiActiveZoneModule,\n TuiFocusVisibleModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [TuiRangeComponent],\n exports: [TuiRangeComponent],\n})\nexport class TuiRangeModule {}\n"]}
@@ -0,0 +1,373 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/rating', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core'], factory) :
4
+ (global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].kit = global['taiga-ui'].kit || {}, global['taiga-ui'].kit.components = global['taiga-ui'].kit.components || {}, global['taiga-ui'].kit.components.rating = {}), global.ng.core, global.ng.forms, global.cdk, global.core$1));
5
+ }(this, (function (exports, core, forms, cdk, core$1) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+
23
+ var extendStatics = function(d, b) {
24
+ extendStatics = Object.setPrototypeOf ||
25
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
+ return extendStatics(d, b);
28
+ };
29
+
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+
36
+ var __assign = function() {
37
+ __assign = Object.assign || function __assign(t) {
38
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
39
+ s = arguments[i];
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
+ }
42
+ return t;
43
+ };
44
+ return __assign.apply(this, arguments);
45
+ };
46
+
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ }
58
+
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
64
+ }
65
+
66
+ function __param(paramIndex, decorator) {
67
+ return function (target, key) { decorator(target, key, paramIndex); }
68
+ }
69
+
70
+ function __metadata(metadataKey, metadataValue) {
71
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
+ }
73
+
74
+ function __awaiter(thisArg, _arguments, P, generator) {
75
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
+ return new (P || (P = Promise))(function (resolve, reject) {
77
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
81
+ });
82
+ }
83
+
84
+ function __generator(thisArg, body) {
85
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
+ function verb(n) { return function (v) { return step([n, v]); }; }
88
+ function step(op) {
89
+ if (f) throw new TypeError("Generator is already executing.");
90
+ while (_) try {
91
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
+ if (y = 0, t) op = [op[0] & 2, t.value];
93
+ switch (op[0]) {
94
+ case 0: case 1: t = op; break;
95
+ case 4: _.label++; return { value: op[1], done: false };
96
+ case 5: _.label++; y = op[1]; op = [0]; continue;
97
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
+ default:
99
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
+ if (t[2]) _.ops.pop();
104
+ _.trys.pop(); continue;
105
+ }
106
+ op = body.call(thisArg, _);
107
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
+ }
110
+ }
111
+
112
+ function __createBinding(o, m, k, k2) {
113
+ if (k2 === undefined) k2 = k;
114
+ o[k2] = m[k];
115
+ }
116
+
117
+ function __exportStar(m, exports) {
118
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
+ }
120
+
121
+ function __values(o) {
122
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
+ if (m) return m.call(o);
124
+ if (o && typeof o.length === "number") return {
125
+ next: function () {
126
+ if (o && i >= o.length) o = void 0;
127
+ return { value: o && o[i++], done: !o };
128
+ }
129
+ };
130
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
+ }
132
+
133
+ function __read(o, n) {
134
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
135
+ if (!m) return o;
136
+ var i = m.call(o), r, ar = [], e;
137
+ try {
138
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
+ }
140
+ catch (error) { e = { error: error }; }
141
+ finally {
142
+ try {
143
+ if (r && !r.done && (m = i["return"])) m.call(i);
144
+ }
145
+ finally { if (e) throw e.error; }
146
+ }
147
+ return ar;
148
+ }
149
+
150
+ function __spread() {
151
+ for (var ar = [], i = 0; i < arguments.length; i++)
152
+ ar = ar.concat(__read(arguments[i]));
153
+ return ar;
154
+ }
155
+
156
+ function __spreadArrays() {
157
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
+ r[k] = a[j];
161
+ return r;
162
+ };
163
+
164
+ function __await(v) {
165
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
166
+ }
167
+
168
+ function __asyncGenerator(thisArg, _arguments, generator) {
169
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
+ function fulfill(value) { resume("next", value); }
176
+ function reject(value) { resume("throw", value); }
177
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
+ }
179
+
180
+ function __asyncDelegator(o) {
181
+ var i, p;
182
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
184
+ }
185
+
186
+ function __asyncValues(o) {
187
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
+ var m = o[Symbol.asyncIterator], i;
189
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
190
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
191
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
+ }
193
+
194
+ function __makeTemplateObject(cooked, raw) {
195
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
+ return cooked;
197
+ };
198
+
199
+ function __importStar(mod) {
200
+ if (mod && mod.__esModule) return mod;
201
+ var result = {};
202
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
+ result.default = mod;
204
+ return result;
205
+ }
206
+
207
+ function __importDefault(mod) {
208
+ return (mod && mod.__esModule) ? mod : { default: mod };
209
+ }
210
+
211
+ function __classPrivateFieldGet(receiver, privateMap) {
212
+ if (!privateMap.has(receiver)) {
213
+ throw new TypeError("attempted to get private field on non-instance");
214
+ }
215
+ return privateMap.get(receiver);
216
+ }
217
+
218
+ function __classPrivateFieldSet(receiver, privateMap, value) {
219
+ if (!privateMap.has(receiver)) {
220
+ throw new TypeError("attempted to set private field on non-instance");
221
+ }
222
+ privateMap.set(receiver, value);
223
+ return value;
224
+ }
225
+
226
+ var TUI_RATING_DEFAULT_OPTIONS = {
227
+ min: 0,
228
+ max: 5,
229
+ iconNormal: 'tuiIconStarLarge',
230
+ iconFilled: 'tuiIconStarFilledLarge',
231
+ };
232
+ var TUI_RATING_OPTIONS = new core.InjectionToken('Default parameters for rating component', {
233
+ factory: function () { return TUI_RATING_DEFAULT_OPTIONS; },
234
+ });
235
+ var tuiRatingOptionsProvider = function (options) { return ({
236
+ provide: TUI_RATING_OPTIONS,
237
+ useValue: __assign(__assign({}, TUI_RATING_DEFAULT_OPTIONS), options),
238
+ }); };
239
+
240
+ var TuiRatingComponent = /** @class */ (function (_super) {
241
+ __extends(TuiRatingComponent, _super);
242
+ function TuiRatingComponent(ngControl, changeDetectorRef, options) {
243
+ var _this = _super.call(this, ngControl, changeDetectorRef) || this;
244
+ _this.options = options;
245
+ _this.min = _this.options.min;
246
+ _this.max = _this.options.max;
247
+ _this.iconNormal = _this.options.iconNormal;
248
+ _this.iconFilled = _this.options.iconFilled;
249
+ return _this;
250
+ }
251
+ TuiRatingComponent_1 = TuiRatingComponent;
252
+ Object.defineProperty(TuiRatingComponent.prototype, "nativeFocusableElement", {
253
+ get: function () {
254
+ return this.computedDisabled || !this.focusableElement
255
+ ? null
256
+ : this.focusableElement.nativeElement;
257
+ },
258
+ enumerable: true,
259
+ configurable: true
260
+ });
261
+ Object.defineProperty(TuiRatingComponent.prototype, "focused", {
262
+ get: function () {
263
+ return cdk.isNativeFocused(this.nativeFocusableElement);
264
+ },
265
+ enumerable: true,
266
+ configurable: true
267
+ });
268
+ Object.defineProperty(TuiRatingComponent.prototype, "isFocusable", {
269
+ get: function () {
270
+ return !(this.readOnly || this.disabled);
271
+ },
272
+ enumerable: true,
273
+ configurable: true
274
+ });
275
+ Object.defineProperty(TuiRatingComponent.prototype, "percent", {
276
+ get: function () {
277
+ return (100 * this.value) / this.max;
278
+ },
279
+ enumerable: true,
280
+ configurable: true
281
+ });
282
+ TuiRatingComponent.prototype.onFocused = function (focused) {
283
+ this.updateFocused(focused);
284
+ };
285
+ TuiRatingComponent.prototype.setRateByReverseIndex = function (index) {
286
+ this.updateValue(this.max - index);
287
+ };
288
+ TuiRatingComponent.prototype.setRate = function (value) {
289
+ this.updateValue(value);
290
+ };
291
+ TuiRatingComponent.prototype.getFallbackValue = function () {
292
+ return 0;
293
+ };
294
+ var TuiRatingComponent_1;
295
+ TuiRatingComponent.ctorParameters = function () { return [
296
+ { type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }, { type: core.Inject, args: [forms.NgControl,] }] },
297
+ { type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
298
+ { type: undefined, decorators: [{ type: core.Inject, args: [TUI_RATING_OPTIONS,] }] }
299
+ ]; };
300
+ __decorate([
301
+ core.ViewChild('focusableElement')
302
+ ], TuiRatingComponent.prototype, "focusableElement", void 0);
303
+ __decorate([
304
+ core.Input(),
305
+ cdk.tuiDefaultProp()
306
+ ], TuiRatingComponent.prototype, "min", void 0);
307
+ __decorate([
308
+ core.Input(),
309
+ cdk.tuiDefaultProp()
310
+ ], TuiRatingComponent.prototype, "max", void 0);
311
+ __decorate([
312
+ core.Input(),
313
+ cdk.tuiDefaultProp()
314
+ ], TuiRatingComponent.prototype, "iconNormal", void 0);
315
+ __decorate([
316
+ core.Input(),
317
+ cdk.tuiDefaultProp()
318
+ ], TuiRatingComponent.prototype, "iconFilled", void 0);
319
+ __decorate([
320
+ core.HostListener('focusin', ['true']),
321
+ core.HostListener('focusout', ['false'])
322
+ ], TuiRatingComponent.prototype, "onFocused", null);
323
+ TuiRatingComponent = TuiRatingComponent_1 = __decorate([
324
+ core.Component({
325
+ selector: 'tui-rating',
326
+ template: "<label>\n <ng-content></ng-content>\n\n <div class=\"t-host\">\n <div class=\"t-interactive\">\n <tui-svg\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-icon-filled\"\n [src]=\"iconFilled\"\n (click)=\"setRateByReverseIndex(index)\"\n ></tui-svg>\n </div>\n\n <div class=\"t-wrapper\" [style.width.%]=\"percent\">\n <tui-svg\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-icon-filled\"\n [src]=\"iconFilled\"\n ></tui-svg>\n </div>\n\n <tui-svg *tuiRepeatTimes=\"let item of max\" [src]=\"iconNormal\"></tui-svg>\n\n <input\n #focusableElement\n type=\"range\"\n step=\"1\"\n class=\"t-input\"\n [min]=\"min\"\n [max]=\"max\"\n [ngModel]=\"value\"\n [tuiFocusable]=\"isFocusable\"\n (ngModelChange)=\"setRate($event)\"\n />\n </div>\n</label>\n",
327
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
328
+ providers: [
329
+ {
330
+ provide: cdk.TUI_FOCUSABLE_ITEM_ACCESSOR,
331
+ useExisting: core.forwardRef(function () { return TuiRatingComponent_1; }),
332
+ },
333
+ ],
334
+ styles: [":host._disabled,:host._readonly{pointer-events:none}:host._disabled{opacity:var(--tui-disabled-opacity)}.t-host{position:relative;display:inline-flex}.t-input{pointer-events:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0}.t-input::-webkit-slider-thumb{display:none}.t-input::-moz-range-thumb{opacity:0}.t-input,.t-interactive,.t-wrapper{position:absolute;left:0;bottom:0;width:100%;height:100%}.t-interactive,.t-wrapper{display:inline-flex;overflow:hidden;flex-direction:row-reverse;justify-content:flex-end;white-space:nowrap}.t-wrapper{pointer-events:none}.t-interactive{opacity:0}@media (hover:hover) and (pointer:fine){.t-interactive:hover{opacity:1}.t-interactive:hover~.t-wrapper{visibility:hidden}.t-interactive:hover .t-icon-filled{opacity:0}.t-interactive:hover .t-icon-filled:hover,.t-interactive:hover .t-icon-filled:hover~.t-icon-filled{opacity:1}}.t-icon-filled{position:relative;cursor:pointer}"]
335
+ }),
336
+ __param(0, core.Optional()),
337
+ __param(0, core.Self()),
338
+ __param(0, core.Inject(forms.NgControl)),
339
+ __param(1, core.Inject(core.ChangeDetectorRef)),
340
+ __param(2, core.Inject(TUI_RATING_OPTIONS))
341
+ ], TuiRatingComponent);
342
+ return TuiRatingComponent;
343
+ }(cdk.AbstractTuiControl));
344
+
345
+ var TuiRatingModule = /** @class */ (function () {
346
+ function TuiRatingModule() {
347
+ }
348
+ TuiRatingModule = __decorate([
349
+ core.NgModule({
350
+ imports: [
351
+ core$1.TuiSvgModule,
352
+ cdk.TuiFocusableModule,
353
+ cdk.TuiRepeatTimesModule,
354
+ forms.FormsModule,
355
+ forms.ReactiveFormsModule,
356
+ ],
357
+ declarations: [TuiRatingComponent],
358
+ exports: [TuiRatingComponent],
359
+ })
360
+ ], TuiRatingModule);
361
+ return TuiRatingModule;
362
+ }());
363
+
364
+ exports.TUI_RATING_DEFAULT_OPTIONS = TUI_RATING_DEFAULT_OPTIONS;
365
+ exports.TUI_RATING_OPTIONS = TUI_RATING_OPTIONS;
366
+ exports.TuiRatingComponent = TuiRatingComponent;
367
+ exports.TuiRatingModule = TuiRatingModule;
368
+ exports.tuiRatingOptionsProvider = tuiRatingOptionsProvider;
369
+
370
+ Object.defineProperty(exports, '__esModule', { value: true });
371
+
372
+ })));
373
+ //# sourceMappingURL=taiga-ui-kit-components-rating.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-components-rating.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","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"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","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"],"names":["InjectionToken","isNativeFocused","NgControl","Optional","Self","Inject","ChangeDetectorRef","ViewChild","Input","tuiDefaultProp","HostListener","Component","ChangeDetectionStrategy","TUI_FOCUSABLE_ITEM_ACCESSOR","forwardRef","AbstractTuiControl","NgModule","TuiSvgModule","TuiFocusableModule","TuiRepeatTimesModule","FormsModule","ReactiveFormsModule"],"mappings":";;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,C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BAC/C,SAAS,EAAE;oBACP;wBACI,OAAO,EAAEC,+BAA2B;wBACpC,WAAW,EAAEC,eAAU,CAAC,cAAM,OAAA,oBAAkB,GAAA,CAAC;qBACpD;iBACJ;;aACJ,CAAC;YAyBO,WAAAX,aAAQ,EAAE,CAAA;YACV,WAAAC,SAAI,EAAE,CAAA;YACN,WAAAC,WAAM,CAACH,eAAS,CAAC,CAAA;YAEjB,WAAAG,WAAM,CAACC,sBAAiB,CAAC,CAAA;YAEzB,WAAAD,WAAM,CAAC,kBAAkB,CAAC,CAAA;WA9BtB,kBAAkB,CAuE9B;QAAD,yBAAC;KAAA,CAtEWU,sBAAkB;;;QCnB9B;SAA+B;QAAlB,eAAe;YAX3BC,aAAQ,CAAC;gBACN,OAAO,EAAE;oBACLC,mBAAY;oBACZC,sBAAkB;oBAClBC,wBAAoB;oBACpBC,iBAAW;oBACXC,yBAAmB;iBACtB;gBACD,YAAY,EAAE,CAAC,kBAAkB,CAAC;gBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;aAChC,CAAC;WACW,eAAe,CAAG;QAAD,sBAAC;KAA/B;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/forms"),require("@taiga-ui/cdk"),require("@taiga-ui/core")):"function"==typeof define&&define.amd?define("@taiga-ui/kit/components/rating",["exports","@angular/core","@angular/forms","@taiga-ui/cdk","@taiga-ui/core"],t):t(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"].kit=e["taiga-ui"].kit||{},e["taiga-ui"].kit.components=e["taiga-ui"].kit.components||{},e["taiga-ui"].kit.components.rating={}),e.ng.core,e.ng.forms,e.cdk,e.core$1)}(this,(function(e,t,n,o,i){"use strict";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var a=function(){return(a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function c(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,o){t(n,o,e)}}var l={min:0,max:5,iconNormal:"tuiIconStarLarge",iconFilled:"tuiIconStarFilledLarge"},s=new t.InjectionToken("Default parameters for rating component",{factory:function(){return l}}),p=function(e){function i(t,n,o){var i=e.call(this,t,n)||this;return i.options=o,i.min=i.options.min,i.max=i.options.max,i.iconNormal=i.options.iconNormal,i.iconFilled=i.options.iconFilled,i}var a;return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(i,e),a=i,Object.defineProperty(i.prototype,"nativeFocusableElement",{get:function(){return this.computedDisabled||!this.focusableElement?null:this.focusableElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focused",{get:function(){return o.isNativeFocused(this.nativeFocusableElement)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocusable",{get:function(){return!(this.readOnly||this.disabled)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"percent",{get:function(){return 100*this.value/this.max},enumerable:!0,configurable:!0}),i.prototype.onFocused=function(e){this.updateFocused(e)},i.prototype.setRateByReverseIndex=function(e){this.updateValue(this.max-e)},i.prototype.setRate=function(e){this.updateValue(e)},i.prototype.getFallbackValue=function(){return 0},i.ctorParameters=function(){return[{type:n.NgControl,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[n.NgControl]}]},{type:t.ChangeDetectorRef,decorators:[{type:t.Inject,args:[t.ChangeDetectorRef]}]},{type:void 0,decorators:[{type:t.Inject,args:[s]}]}]},c([t.ViewChild("focusableElement")],i.prototype,"focusableElement",void 0),c([t.Input(),o.tuiDefaultProp()],i.prototype,"min",void 0),c([t.Input(),o.tuiDefaultProp()],i.prototype,"max",void 0),c([t.Input(),o.tuiDefaultProp()],i.prototype,"iconNormal",void 0),c([t.Input(),o.tuiDefaultProp()],i.prototype,"iconFilled",void 0),c([t.HostListener("focusin",["true"]),t.HostListener("focusout",["false"])],i.prototype,"onFocused",null),i=a=c([t.Component({selector:"tui-rating",template:'<label>\n <ng-content></ng-content>\n\n <div class="t-host">\n <div class="t-interactive">\n <tui-svg\n *tuiRepeatTimes="let index of max"\n class="t-icon-filled"\n [src]="iconFilled"\n (click)="setRateByReverseIndex(index)"\n ></tui-svg>\n </div>\n\n <div class="t-wrapper" [style.width.%]="percent">\n <tui-svg\n *tuiRepeatTimes="let index of max"\n class="t-icon-filled"\n [src]="iconFilled"\n ></tui-svg>\n </div>\n\n <tui-svg *tuiRepeatTimes="let item of max" [src]="iconNormal"></tui-svg>\n\n <input\n #focusableElement\n type="range"\n step="1"\n class="t-input"\n [min]="min"\n [max]="max"\n [ngModel]="value"\n [tuiFocusable]="isFocusable"\n (ngModelChange)="setRate($event)"\n />\n </div>\n</label>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:o.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:t.forwardRef((function(){return a}))}],styles:[":host._disabled,:host._readonly{pointer-events:none}:host._disabled{opacity:var(--tui-disabled-opacity)}.t-host{position:relative;display:inline-flex}.t-input{pointer-events:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0}.t-input::-webkit-slider-thumb{display:none}.t-input::-moz-range-thumb{opacity:0}.t-input,.t-interactive,.t-wrapper{position:absolute;left:0;bottom:0;width:100%;height:100%}.t-interactive,.t-wrapper{display:inline-flex;overflow:hidden;flex-direction:row-reverse;justify-content:flex-end;white-space:nowrap}.t-wrapper{pointer-events:none}.t-interactive{opacity:0}@media (hover:hover) and (pointer:fine){.t-interactive:hover{opacity:1}.t-interactive:hover~.t-wrapper{visibility:hidden}.t-interactive:hover .t-icon-filled{opacity:0}.t-interactive:hover .t-icon-filled:hover,.t-interactive:hover .t-icon-filled:hover~.t-icon-filled{opacity:1}}.t-icon-filled{position:relative;cursor:pointer}"]}),u(0,t.Optional()),u(0,t.Self()),u(0,t.Inject(n.NgControl)),u(1,t.Inject(t.ChangeDetectorRef)),u(2,t.Inject(s))],i)}(o.AbstractTuiControl),d=function(){function e(){}return e=c([t.NgModule({imports:[i.TuiSvgModule,o.TuiFocusableModule,o.TuiRepeatTimesModule,n.FormsModule,n.ReactiveFormsModule],declarations:[p],exports:[p]})],e)}();e.TUI_RATING_DEFAULT_OPTIONS=l,e.TUI_RATING_OPTIONS=s,e.TuiRatingComponent=p,e.TuiRatingModule=d,e.tuiRatingOptionsProvider=function(e){return{provide:s,useValue:a(a({},l),e)}},Object.defineProperty(e,"__esModule",{value:!0})}));
16
+ //# sourceMappingURL=taiga-ui-kit-components-rating.umd.min.js.map