@taiga-ui/kit 2.37.1 → 2.40.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 (348) hide show
  1. package/abstract/input-slider.d.ts +9 -5
  2. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-kit-abstract.umd.js +8 -10
  4. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.min.js +2 -2
  6. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js +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-breadcrumbs.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-checkbox.umd.js +2 -2
  15. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +2 -2
  17. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-input-files.umd.js +8 -0
  29. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-input-files.umd.min.js +1 -1
  31. package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-input-number.umd.js +28 -18
  33. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  35. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +5 -1
  37. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +2 -2
  39. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-input-phone.umd.js +5 -8
  41. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  43. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-range.umd.js +12 -2
  45. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
  47. package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-input-slider.umd.js +153 -125
  49. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +2 -2
  51. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-tag.umd.js +18 -9
  53. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  55. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-radio.umd.js +1 -1
  65. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  67. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-select.umd.js +1 -1
  69. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  71. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-slider.umd.js +25 -4
  73. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
  75. package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-tag.umd.js +26 -6
  79. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
  81. package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-text-area.umd.js +2 -2
  83. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +1 -1
  85. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-toggle.umd.js +2 -2
  87. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +25 -1
  91. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +2 -2
  93. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
  96. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-tokens.umd.js +1 -0
  99. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  101. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
  105. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  106. package/components/breadcrumbs/breadcrumbs.component.d.ts +1 -1
  107. package/components/calendar-range/calendar-range.component.d.ts +2 -2
  108. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  109. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +1 -1
  110. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
  111. package/components/filter/filter.component.d.ts +1 -1
  112. package/components/input-date/input-date.component.d.ts +1 -1
  113. package/components/input-date-range/input-date-range.component.d.ts +1 -1
  114. package/components/input-file/input-file.component.d.ts +6 -6
  115. package/components/input-files/input-files.component.d.ts +3 -2
  116. package/components/input-files/taiga-ui-kit-components-input-files.metadata.json +1 -1
  117. package/components/input-number/input-number.component.d.ts +6 -3
  118. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  119. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  120. package/components/input-phone-international/input-phone-international.component.d.ts +1 -1
  121. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  122. package/components/input-range/input-range.component.d.ts +2 -1
  123. package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
  124. package/components/input-slider/input-slider.component.d.ts +39 -22
  125. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  126. package/components/input-tag/input-tag.component.d.ts +10 -3
  127. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  128. package/components/input-time/input-time.component.d.ts +2 -2
  129. package/components/multi-select/multi-select-options.d.ts +1 -1
  130. package/components/multi-select/multi-select.component.d.ts +3 -3
  131. package/components/progress/progress-segmented/progress-segmented.component.d.ts +1 -1
  132. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  133. package/components/radio-list/radio-list.component.d.ts +1 -1
  134. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  135. package/components/slider/slider-key-steps.directive.d.ts +3 -1
  136. package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
  137. package/components/tabs/tabs/tabs.component.d.ts +1 -1
  138. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +1 -1
  139. package/components/tag/index.d.ts +1 -0
  140. package/components/tag/tag-options.d.ts +12 -0
  141. package/components/tag/tag.component.d.ts +3 -1
  142. package/components/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
  143. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  144. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  145. package/esm2015/abstract/input-slider.js +9 -7
  146. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +1 -1
  147. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +1 -1
  148. package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
  149. package/esm2015/components/checkbox/checkbox.component.js +3 -3
  150. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +1 -1
  151. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +1 -1
  152. package/esm2015/components/filter/filter.component.js +1 -1
  153. package/esm2015/components/input-date/input-date.component.js +1 -1
  154. package/esm2015/components/input-date-range/input-date-range.component.js +1 -1
  155. package/esm2015/components/input-file/input-file.component.js +1 -1
  156. package/esm2015/components/input-files/input-files.component.js +5 -1
  157. package/esm2015/components/input-number/input-number.component.js +29 -20
  158. package/esm2015/components/input-number/input-number.module.js +5 -1
  159. package/esm2015/components/input-phone/input-phone.component.js +7 -10
  160. package/esm2015/components/input-phone-international/input-phone-international.component.js +7 -3
  161. package/esm2015/components/input-range/input-range.component.js +10 -4
  162. package/esm2015/components/input-slider/input-slider.component.js +155 -108
  163. package/esm2015/components/input-slider/input-slider.module.js +6 -12
  164. package/esm2015/components/input-tag/input-tag.component.js +21 -12
  165. package/esm2015/components/input-time/input-time.component.js +1 -1
  166. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +1 -1
  167. package/esm2015/components/multi-select/multi-select-options.js +1 -1
  168. package/esm2015/components/multi-select/multi-select.component.js +1 -1
  169. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +1 -1
  170. package/esm2015/components/radio/radio.component.js +2 -2
  171. package/esm2015/components/radio-list/radio-list.component.js +1 -1
  172. package/esm2015/components/select/select.component.js +2 -2
  173. package/esm2015/components/slider/slider-key-steps.directive.js +14 -1
  174. package/esm2015/components/slider/slider.component.js +5 -5
  175. package/esm2015/components/tabs/tabs/tabs.component.js +1 -1
  176. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +1 -1
  177. package/esm2015/components/tag/index.js +2 -1
  178. package/esm2015/components/tag/tag-options.js +15 -0
  179. package/esm2015/components/tag/tag.component.js +11 -7
  180. package/esm2015/components/text-area/text-area.component.js +3 -3
  181. package/esm2015/components/toggle/toggle.component.js +3 -3
  182. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +26 -2
  183. package/esm2015/pipes/field-error/field-error-content-pipe.js +1 -1
  184. package/esm2015/pipes/field-error/field-error-pipe.js +1 -1
  185. package/esm2015/pipes/filter-by-input/filter-by-input.base.js +1 -1
  186. package/esm2015/tokens/tag-status.js +2 -1
  187. package/esm2015/types/key-steps.js +1 -1
  188. package/esm2015/utils/mask/create-time-mask.js +1 -1
  189. package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +1 -1
  190. package/esm2015/utils/miscellaneous/create-time-periods.js +1 -1
  191. package/esm5/abstract/input-slider.js +9 -11
  192. package/esm5/components/accordion/accordion-item/accordion-item.component.js +1 -1
  193. package/esm5/components/breadcrumbs/breadcrumbs.component.js +1 -1
  194. package/esm5/components/calendar-range/calendar-range.component.js +1 -1
  195. package/esm5/components/checkbox/checkbox.component.js +3 -3
  196. package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +1 -1
  197. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +1 -1
  198. package/esm5/components/filter/filter.component.js +1 -1
  199. package/esm5/components/input-date/input-date.component.js +1 -1
  200. package/esm5/components/input-date-range/input-date-range.component.js +1 -1
  201. package/esm5/components/input-file/input-file.component.js +1 -1
  202. package/esm5/components/input-files/input-files.component.js +9 -1
  203. package/esm5/components/input-number/input-number.component.js +26 -17
  204. package/esm5/components/input-number/input-number.module.js +5 -1
  205. package/esm5/components/input-phone/input-phone.component.js +7 -10
  206. package/esm5/components/input-phone-international/input-phone-international.component.js +7 -3
  207. package/esm5/components/input-range/input-range.component.js +14 -4
  208. package/esm5/components/input-slider/input-slider.component.js +153 -117
  209. package/esm5/components/input-slider/input-slider.module.js +6 -12
  210. package/esm5/components/input-tag/input-tag.component.js +21 -12
  211. package/esm5/components/input-time/input-time.component.js +1 -1
  212. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +1 -1
  213. package/esm5/components/multi-select/multi-select-options.js +1 -1
  214. package/esm5/components/multi-select/multi-select.component.js +1 -1
  215. package/esm5/components/progress/progress-segmented/progress-segmented.component.js +1 -1
  216. package/esm5/components/radio/radio.component.js +2 -2
  217. package/esm5/components/radio-list/radio-list.component.js +1 -1
  218. package/esm5/components/select/select.component.js +2 -2
  219. package/esm5/components/slider/slider-key-steps.directive.js +22 -1
  220. package/esm5/components/slider/slider.component.js +5 -5
  221. package/esm5/components/tabs/tabs/tabs.component.js +1 -1
  222. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +1 -1
  223. package/esm5/components/tag/index.js +2 -1
  224. package/esm5/components/tag/tag-options.js +16 -0
  225. package/esm5/components/tag/tag.component.js +11 -7
  226. package/esm5/components/text-area/text-area.component.js +3 -3
  227. package/esm5/components/toggle/toggle.component.js +3 -3
  228. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +26 -2
  229. package/esm5/pipes/field-error/field-error-content-pipe.js +1 -1
  230. package/esm5/pipes/field-error/field-error-pipe.js +1 -1
  231. package/esm5/pipes/filter-by-input/filter-by-input.base.js +1 -1
  232. package/esm5/tokens/tag-status.js +2 -1
  233. package/esm5/types/key-steps.js +1 -1
  234. package/esm5/utils/mask/create-time-mask.js +1 -1
  235. package/esm5/utils/miscellaneous/create-default-day-range-periods.js +1 -1
  236. package/esm5/utils/miscellaneous/create-time-periods.js +1 -1
  237. package/fesm2015/taiga-ui-kit-abstract.js +8 -6
  238. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  239. package/fesm2015/taiga-ui-kit-components-accordion.js +1 -1
  240. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  241. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  242. package/fesm2015/taiga-ui-kit-components-checkbox.js +2 -2
  243. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  244. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  245. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  246. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  247. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  248. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  249. package/fesm2015/taiga-ui-kit-components-input-files.js +4 -0
  250. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  251. package/fesm2015/taiga-ui-kit-components-input-number.js +32 -20
  252. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  253. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +6 -2
  254. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  255. package/fesm2015/taiga-ui-kit-components-input-phone.js +6 -9
  256. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  257. package/fesm2015/taiga-ui-kit-components-input-range.js +8 -2
  258. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  259. package/fesm2015/taiga-ui-kit-components-input-slider.js +156 -116
  260. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  261. package/fesm2015/taiga-ui-kit-components-input-tag.js +21 -12
  262. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  263. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  264. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  265. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  266. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  267. package/fesm2015/taiga-ui-kit-components-radio.js +1 -1
  268. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  269. package/fesm2015/taiga-ui-kit-components-select.js +1 -1
  270. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  271. package/fesm2015/taiga-ui-kit-components-slider.js +17 -4
  272. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  273. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  274. package/fesm2015/taiga-ui-kit-components-tag.js +25 -8
  275. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  276. package/fesm2015/taiga-ui-kit-components-text-area.js +2 -2
  277. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  278. package/fesm2015/taiga-ui-kit-components-toggle.js +2 -2
  279. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  280. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +25 -1
  281. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  282. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  283. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  284. package/fesm2015/taiga-ui-kit-tokens.js +1 -0
  285. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  286. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  287. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  288. package/fesm5/taiga-ui-kit-abstract.js +8 -10
  289. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  290. package/fesm5/taiga-ui-kit-components-accordion.js +1 -1
  291. package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  292. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  293. package/fesm5/taiga-ui-kit-components-checkbox.js +2 -2
  294. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  295. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  296. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  297. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  298. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  299. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  300. package/fesm5/taiga-ui-kit-components-input-files.js +8 -0
  301. package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
  302. package/fesm5/taiga-ui-kit-components-input-number.js +29 -17
  303. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  304. package/fesm5/taiga-ui-kit-components-input-phone-international.js +6 -2
  305. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  306. package/fesm5/taiga-ui-kit-components-input-phone.js +6 -9
  307. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  308. package/fesm5/taiga-ui-kit-components-input-range.js +12 -2
  309. package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
  310. package/fesm5/taiga-ui-kit-components-input-slider.js +154 -125
  311. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  312. package/fesm5/taiga-ui-kit-components-input-tag.js +21 -12
  313. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  314. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  315. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  316. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  317. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  318. package/fesm5/taiga-ui-kit-components-radio.js +1 -1
  319. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  320. package/fesm5/taiga-ui-kit-components-select.js +1 -1
  321. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  322. package/fesm5/taiga-ui-kit-components-slider.js +25 -4
  323. package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
  324. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  325. package/fesm5/taiga-ui-kit-components-tag.js +26 -9
  326. package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
  327. package/fesm5/taiga-ui-kit-components-text-area.js +2 -2
  328. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  329. package/fesm5/taiga-ui-kit-components-toggle.js +2 -2
  330. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  331. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +25 -1
  332. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  333. package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
  334. package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  335. package/fesm5/taiga-ui-kit-tokens.js +1 -0
  336. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  337. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  338. package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  339. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +3 -0
  340. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  341. package/package.json +4 -4
  342. package/pipes/field-error/field-error-content-pipe.d.ts +1 -1
  343. package/pipes/field-error/field-error-pipe.d.ts +1 -1
  344. package/pipes/filter-by-input/filter-by-input.base.d.ts +1 -1
  345. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  346. package/types/key-steps.d.ts +1 -1
  347. package/utils/miscellaneous/create-default-day-range-periods.d.ts +1 -1
  348. package/utils/miscellaneous/create-time-periods.d.ts +1 -1
@@ -1,15 +1,16 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Directive, Optional, Self, Inject, ChangeDetectorRef, ViewChild, ElementRef, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { Directive, Optional, Self, Inject, ChangeDetectorRef, ViewChild, ElementRef, Input, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { isNativeFocused, setNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule, TuiPressedModule, TuiMapperPipeModule, TuiInputModeModule, TuiRepeatTimesModule } from '@taiga-ui/cdk';
5
- import { maskedNumberStringToNumber, maskedMoneyValueIsEmpty, formatNumber, TuiModeDirective, TuiHintControllerDirective, TUI_HINT_WATCHED_CONTROLLER, TuiTextfieldController, TUI_TEXTFIELD_WATCHED_CONTROLLER, TUI_NUMBER_FORMAT, TUI_TEXTFIELD_APPEARANCE, HINT_CONTROLLER_PROVIDER, TEXTFIELD_CONTROLLER_PROVIDER, TuiTooltipModule, TuiWrapperModule, TuiFormatNumberPipeModule } from '@taiga-ui/core';
4
+ import { isNativeFocused, tuiAssert, setNativeFocused, round, clamp, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiFocusableModule, TuiRepeatTimesModule } from '@taiga-ui/cdk';
5
+ import { getFractionPartPadded, TuiTextfieldController, TUI_TEXTFIELD_WATCHED_CONTROLLER, TUI_NUMBER_FORMAT, HINT_CONTROLLER_PROVIDER, TEXTFIELD_CONTROLLER_PROVIDER, TuiFormatNumberPipeModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
6
6
  import { AbstractTuiInputSlider } from '@taiga-ui/kit/abstract';
7
+ import { TuiInputNumberComponent, TuiInputNumberModule } from '@taiga-ui/kit/components/input-number';
7
8
  import { TuiSliderComponent, tuiSliderOptionsProvider, TuiSliderModule } from '@taiga-ui/kit/components/slider';
9
+ import { TUI_FLOATING_PRECISION } from '@taiga-ui/kit/constants';
8
10
  import { TUI_FROM_TO_TEXTS } from '@taiga-ui/kit/tokens';
9
11
  import { Observable } from 'rxjs';
10
12
  import { CommonModule } from '@angular/common';
11
13
  import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
12
- import { TextMaskModule } from 'angular2-text-mask';
13
14
 
14
15
  var TuiInputSliderComponent_1;
15
16
  /**
@@ -25,16 +26,32 @@ TuiNewInputSliderDirective = __decorate([
25
26
  })
26
27
  ], TuiNewInputSliderDirective);
27
28
  // @dynamic
28
- let TuiInputSliderComponent = TuiInputSliderComponent_1 = class TuiInputSliderComponent extends AbstractTuiInputSlider {
29
- constructor(control, changeDetectorRef, modeDirective, hintController, controller, numberFormat, appearance, fromToTexts$, isNew) {
29
+ let TuiInputSliderComponent = TuiInputSliderComponent_1 =
30
+ /**
31
+ * TODO replace `extends AbstractTuiInputSlider<number>` by `extends AbstractTuiControl<number> implements TuiWithOptionalMinMax<number>`
32
+ * in v3.0
33
+ */
34
+ class TuiInputSliderComponent extends AbstractTuiInputSlider {
35
+ constructor(control, changeDetectorRef, controller, numberFormat, fromToTexts$, isNew) {
30
36
  super(control, changeDetectorRef);
31
- this.modeDirective = modeDirective;
32
- this.hintController = hintController;
33
37
  this.controller = controller;
34
38
  this.numberFormat = numberFormat;
35
- this.appearance = appearance;
36
39
  this.fromToTexts$ = fromToTexts$;
37
40
  this.isNew = isNew;
41
+ this.min = 0;
42
+ this.max = Infinity;
43
+ this.quantum = 1;
44
+ this.steps = 0;
45
+ this.segments = 0;
46
+ this.keySteps = null;
47
+ this.valueContent = '';
48
+ this.prefix = '';
49
+ this.postfix = '';
50
+ /**
51
+ * @deprecated use `tuiTextfieldSize` instead
52
+ * TODO delete in v3.0
53
+ */
54
+ this.size = 'l';
38
55
  /**
39
56
  * @deprecated use `tuiTextfieldCustomContent` instead
40
57
  * TODO delete in v3.0
@@ -42,147 +59,156 @@ let TuiInputSliderComponent = TuiInputSliderComponent_1 = class TuiInputSliderCo
42
59
  this.secondary = '';
43
60
  }
44
61
  get nativeFocusableElement() {
45
- return !this.focusableElement || this.computedDisabled
62
+ var _a;
63
+ return !((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) || this.computedDisabled
46
64
  ? null
47
- : this.focusableElement.nativeElement;
65
+ : this.inputNumberRef.nativeFocusableElement;
48
66
  }
49
67
  get focused() {
50
68
  var _a;
51
69
  return (isNativeFocused(this.nativeFocusableElement) ||
52
70
  isNativeFocused(((_a = this.sliderRef) === null || _a === void 0 ? void 0 : _a.nativeElement) || null));
53
71
  }
54
- get hasTooltip() {
55
- return !!this.hintController.content && !this.disabled;
72
+ get computedSteps() {
73
+ return this.steps || (this.max - this.min) / this.quantum;
56
74
  }
57
- get showMinLabel() {
58
- return !this.focused && this.value === this.min && !!this.minLabel;
75
+ get precision() {
76
+ return getFractionPartPadded(this.quantum).length;
59
77
  }
60
- get showMaxLabel() {
61
- return !this.focused && this.value === this.max && !!this.maxLabel;
78
+ get decimal() {
79
+ return this.precision ? 'not-zero' : 'never';
62
80
  }
63
- get computedValue() {
64
- if (this.focused && this.isInputValueNotFinished) {
65
- return this.inputValue;
81
+ /**
82
+ * TODO remove old property `size` in v3.0
83
+ */
84
+ get computedSize() {
85
+ if (this.isNew) {
86
+ tuiAssert.assert(this.controller.size !== 's', "Size 's' is not supported by this input.");
87
+ return this.controller.size === 'l' ? 'l' : 'm';
66
88
  }
67
- return this.formattedValue;
89
+ return this.size;
68
90
  }
69
- get showValue() {
70
- return !this.showMinLabel && !this.showMaxLabel;
71
- }
72
- get inputValue() {
73
- return this.focusableElement ? this.focusableElement.nativeElement.value : '';
74
- }
75
- set inputValue(value) {
76
- if (this.focusableElement) {
77
- this.focusableElement.nativeElement.value = value;
78
- }
91
+ /**
92
+ * @deprecated for backward compatibility
93
+ * TODO replace by just `this.valueContent` in v3.0
94
+ */
95
+ get computedValueContent() {
96
+ return this.minLabel || this.maxLabel
97
+ ? legacyMinMaxLabel(this)
98
+ : this.valueContent;
79
99
  }
80
100
  focusTextInput() {
81
- if (this.focusableElement) {
82
- setNativeFocused(this.focusableElement.nativeElement);
101
+ var _a;
102
+ const focusableElement = (_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement;
103
+ if (focusableElement) {
104
+ setNativeFocused(focusableElement);
83
105
  }
84
106
  }
85
- onKeyDownArrowUp(event) {
86
- if (this.readOnly) {
87
- return;
88
- }
89
- event.preventDefault();
90
- this.processStep(true);
91
- this.inputValue = this.formattedValue;
107
+ safelyUpdateValue(value) {
108
+ this.updateValue(this.valueGuard(value !== null && value !== void 0 ? value : this.safeCurrentValue));
92
109
  }
93
- onKeyDownArrowDown(event) {
110
+ onVerticalArrowKeyDown(coefficient) {
94
111
  if (this.readOnly) {
95
112
  return;
96
113
  }
97
- event.preventDefault();
98
- this.processStep(false);
99
- this.inputValue = this.formattedValue;
114
+ const value = this.value + coefficient * this.step;
115
+ if (value !== this.value) {
116
+ this.safelyUpdateValue(value);
117
+ }
118
+ this.updateTextInputValue(this.valueGuard(value));
100
119
  }
101
120
  onFocused(focused) {
102
- this.updateFocused(focused);
103
- if (focused) {
104
- return;
105
- }
106
- const inputValue = maskedNumberStringToNumber(this.computedValue, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator);
107
- const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);
108
- this.updateValue(value);
109
- this.inputValue = this.formattedValue;
110
- }
111
- onValue(value) {
112
- const capped = this.capInputValue(value);
113
- const postfix = value.slice(-1)[0] === ',' ? ',' : '';
114
- if (maskedMoneyValueIsEmpty(value) || capped === null) {
115
- return;
121
+ if (!focused && !this.textInputValue) {
122
+ this.updateTextInputValue(this.safeCurrentValue);
116
123
  }
117
- const newValue = this.formatNumber(capped) + postfix;
118
- if (value !== newValue) {
119
- this.inputValue = newValue;
120
- }
121
- this.updateValue(capped);
124
+ this.updateFocused(focused);
122
125
  }
123
- onSliderValue(value) {
124
- this.updateValue(this.valueGuard(value));
125
- this.inputValue = this.formattedValue;
126
+ onPressed(pressed) {
127
+ this.updatePressed(pressed);
128
+ }
129
+ onHovered(hovered) {
130
+ this.updateHovered(hovered);
131
+ }
132
+ get textInputValue() {
133
+ var _a;
134
+ return ((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeValue) || '';
126
135
  }
127
136
  getFallbackValue() {
128
137
  return 0;
129
138
  }
130
- get formattedValue() {
131
- return this.formatNumber(this.value);
132
- }
133
- get isInputValueNotFinished() {
134
- if (this.inputValue === '') {
135
- return true;
136
- }
137
- const nativeNumberValue = maskedNumberStringToNumber(this.inputValue, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator);
138
- return nativeNumberValue < 0
139
- ? nativeNumberValue > this.max
140
- : nativeNumberValue < this.min;
139
+ valueGuard(value) {
140
+ const roundedValue = round(Math.round(value / this.quantum) * this.quantum, TUI_FLOATING_PRECISION);
141
+ return clamp(roundedValue, this.min, this.max);
141
142
  }
142
- processStep(increment) {
143
- const value = this.valueGuard(increment ? this.value + this.step : this.value - this.step);
144
- if (value !== this.value) {
145
- this.updateValue(value);
143
+ updateTextInputValue(value) {
144
+ if (this.inputNumberRef) {
145
+ this.inputNumberRef.nativeValue =
146
+ this.inputNumberRef.getFormattedValue(value);
146
147
  }
147
148
  }
148
- formatNumber(value) {
149
- return formatNumber(value, null, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator);
150
- }
151
149
  };
152
150
  TuiInputSliderComponent.ctorParameters = () => [
153
151
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
154
152
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
155
- { type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] },
156
- { type: TuiHintControllerDirective, decorators: [{ type: Inject, args: [TUI_HINT_WATCHED_CONTROLLER,] }] },
157
153
  { type: TuiTextfieldController, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] },
158
154
  { type: undefined, decorators: [{ type: Inject, args: [TUI_NUMBER_FORMAT,] }] },
159
- { type: String, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_APPEARANCE,] }] },
160
155
  { type: Observable, decorators: [{ type: Inject, args: [TUI_FROM_TO_TEXTS,] }] },
161
156
  { type: TuiNewInputSliderDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiNewInputSliderDirective,] }] }
162
157
  ];
163
158
  __decorate([
164
- ViewChild('focusableElement')
165
- ], TuiInputSliderComponent.prototype, "focusableElement", void 0);
159
+ ViewChild(TuiInputNumberComponent)
160
+ ], TuiInputSliderComponent.prototype, "inputNumberRef", void 0);
166
161
  __decorate([
167
162
  ViewChild(TuiSliderComponent, { read: ElementRef })
168
163
  ], TuiInputSliderComponent.prototype, "sliderRef", void 0);
169
164
  __decorate([
170
165
  Input(),
171
166
  tuiDefaultProp()
172
- ], TuiInputSliderComponent.prototype, "secondary", void 0);
167
+ ], TuiInputSliderComponent.prototype, "min", void 0);
168
+ __decorate([
169
+ Input(),
170
+ tuiDefaultProp()
171
+ ], TuiInputSliderComponent.prototype, "max", void 0);
172
+ __decorate([
173
+ Input(),
174
+ tuiDefaultProp(quantumAssertion, 'Quantum must be positive')
175
+ ], TuiInputSliderComponent.prototype, "quantum", void 0);
176
+ __decorate([
177
+ Input(),
178
+ tuiDefaultProp()
179
+ ], TuiInputSliderComponent.prototype, "steps", void 0);
180
+ __decorate([
181
+ Input(),
182
+ tuiDefaultProp()
183
+ ], TuiInputSliderComponent.prototype, "segments", void 0);
184
+ __decorate([
185
+ Input(),
186
+ tuiDefaultProp()
187
+ ], TuiInputSliderComponent.prototype, "keySteps", void 0);
188
+ __decorate([
189
+ Input(),
190
+ tuiDefaultProp()
191
+ ], TuiInputSliderComponent.prototype, "valueContent", void 0);
192
+ __decorate([
193
+ Input(),
194
+ tuiDefaultProp()
195
+ ], TuiInputSliderComponent.prototype, "prefix", void 0);
173
196
  __decorate([
174
- HostBinding('class._has-tooltip')
175
- ], TuiInputSliderComponent.prototype, "hasTooltip", null);
197
+ Input(),
198
+ tuiDefaultProp()
199
+ ], TuiInputSliderComponent.prototype, "postfix", void 0);
176
200
  __decorate([
177
- HostBinding('class._min-label')
178
- ], TuiInputSliderComponent.prototype, "showMinLabel", null);
201
+ Input(),
202
+ tuiDefaultProp()
203
+ ], TuiInputSliderComponent.prototype, "size", void 0);
179
204
  __decorate([
180
- HostBinding('class._max-label')
181
- ], TuiInputSliderComponent.prototype, "showMaxLabel", null);
205
+ Input(),
206
+ tuiDefaultProp()
207
+ ], TuiInputSliderComponent.prototype, "secondary", void 0);
182
208
  TuiInputSliderComponent = TuiInputSliderComponent_1 = __decorate([
183
209
  Component({
184
210
  selector: 'tui-input-slider',
185
- template: "<tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [invalid]=\"computedInvalid\"\n>\n <span\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-slider__placeholder\"\n class=\"t-placeholder t-placeholder_raised\"\n >\n <ng-content></ng-content>\n </span>\n <input\n #focusableElement\n automation-id=\"tui-input-slider__native\"\n class=\"t-native\"\n [disabled]=\"disabled\"\n [readOnly]=\"readOnly\"\n [tuiInputMode]=\"inputMode\"\n [tuiFocusable]=\"focusable\"\n [textMask]=\"quantum | tuiMapper: mask:min\"\n [ngModel]=\"computedValue\"\n (ngModelChange)=\"onValue($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (keydown.arrowUp)=\"onKeyDownArrowUp($event)\"\n (keydown.arrowDown)=\"onKeyDownArrowDown($event)\"\n />\n <div class=\"t-content\">\n <span *ngIf=\"showValue\" class=\"t-label\">\n <span class=\"t-value\">{{ computedValue }}</span>\n <span\n *ngIf=\"pluralizeMap\"\n automation-id=\"tui-input-slider__pluralize\"\n >\n {{ value | i18nPlural: pluralizeMap }}\n </span>\n </span>\n <span\n *ngIf=\"showMinLabel\"\n automation-id=\"tui-input-slider__min-label\"\n class=\"t-label\"\n >\n {{ minLabel }}\n </span>\n <span\n *ngIf=\"showMaxLabel\"\n automation-id=\"tui-input-slider__max-label\"\n class=\"t-label\"\n >\n {{ maxLabel }}\n </span>\n <span automation-id=\"tui-input-slider__secondary\" class=\"t-secondary\">\n <span\n polymorpheus-outlet\n [content]=\"controller.customContent || secondary\"\n ></span>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-slider__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"t-tooltip\"\n [content]=\"hintController.content\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n (mousedown.prevent)=\"focusTextInput()\"\n ></tui-tooltip>\n </span>\n </div>\n</tui-wrapper>\n\n<!--TODO: remove wrapper + ticks labels (leave only slider) in v3.0-->\n<div class=\"t-slider-wrapper\">\n <input\n tuiSlider\n type=\"range\"\n [tuiFocusable]=\"false\"\n [max]=\"computedSteps\"\n [segments]=\"segments\"\n [keySteps]=\"computedKeySteps\"\n [attr.disabled]=\"readOnly || disabled || null\"\n [ngModel]=\"value\"\n (keyStepsInput)=\"onSliderValue($event)\"\n (click)=\"focusTextInput()\"\n />\n\n <!--TODO delete ticks labels in v3.0-->\n <div *ngIf=\"segmented && !isNew\" class=\"t-ticks-labels\">\n <span\n *tuiRepeatTimes=\"let tickIndex of segments + 1\"\n automation-id=\"tui-slider__segment\"\n >\n <span *ngIf=\"fromToTexts$ | async as fromToText\">\n {{ getTickPrefix(tickIndex, segments, fromToText) }} {{\n tickIndex | tuiSliderTickLabel:segments:computedKeySteps |\n tuiFormatNumber}}\n <span *ngIf=\"segmentsPluralizeMap\">\n {{ tickIndex | tuiSliderTickLabel:segments:computedKeySteps\n | i18nPlural: segmentsPluralizeMap }}\n </span>\n </span>\n </span>\n </div>\n</div>\n",
211
+ template: "<tui-input-number\n [min]=\"min\"\n [max]=\"max\"\n [precision]=\"precision\"\n [decimal]=\"decimal\"\n [prefix]=\"prefix\"\n [postfix]=\"postfix || (value | i18nPlural: pluralizeMap || pluralizeMapFallback)\"\n [tuiTextfieldCustomContent]=\"controller.customContent || deprecatedSecondary\"\n [tuiTextfieldSize]=\"computedSize\"\n [tuiTextfieldLabelOutside]=\"computedSize !== 'l'\"\n [readOnly]=\"readOnly\"\n [pseudoFocused]=\"computedFocused\"\n [pseudoHovered]=\"computedHovered\"\n [pseudoPressed]=\"computedPressed\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [ngModel]=\"value\"\n (ngModelChange)=\"safelyUpdateValue($event)\"\n (focusedChange)=\"onFocused($event)\"\n (hoveredChange)=\"onHovered($event)\"\n (pressedChange)=\"onPressed($event)\"\n (keydown.arrowUp.prevent)=\"onVerticalArrowKeyDown(1)\"\n (keydown.arrowDown.prevent)=\"onVerticalArrowKeyDown(-1)\"\n>\n <ng-content></ng-content>\n <div\n *ngIf=\"computedValueContent && !focused\"\n polymorpheus-outlet\n automation-id=\"tui-input-slider__value-content\"\n [content]=\"computedValueContent\"\n [context]=\"{$implicit: value}\"\n ></div>\n</tui-input-number>\n\n<!--TODO: remove in v3.0-->\n<ng-template #deprecatedSecondary>{{secondary}}</ng-template>\n\n<!--TODO: remove wrapper + ticks labels (leave only slider) in v3.0-->\n<div class=\"t-slider-wrapper\">\n <input\n tuiSlider\n type=\"range\"\n [tuiFocusable]=\"false\"\n [max]=\"computedSteps\"\n [segments]=\"segments\"\n [keySteps]=\"computedKeySteps\"\n [attr.disabled]=\"readOnly || disabled || null\"\n [ngModel]=\"value\"\n (keyStepsInput)=\"safelyUpdateValue($event)\"\n (click)=\"focusTextInput()\"\n />\n\n <!--TODO delete ticks labels in v3.0-->\n <div *ngIf=\"segments && !isNew\" class=\"t-ticks-labels\">\n <span\n *tuiRepeatTimes=\"let tickIndex of segments + 1\"\n automation-id=\"tui-slider__segment\"\n >\n <span *ngIf=\"fromToTexts$ | async as fromToText\">\n {{ getTickPrefix(tickIndex, segments, fromToText) }} {{\n tickIndex | tuiSliderTickLabel:segments:computedKeySteps |\n tuiFormatNumber}}\n <span *ngIf=\"segmentsPluralizeMap\">\n {{ tickIndex | tuiSliderTickLabel:segments:computedKeySteps\n | i18nPlural: segmentsPluralizeMap }}\n </span>\n </span>\n </span>\n </div>\n</div>\n",
186
212
  host: {
187
213
  /**
188
214
  * TODO delete it in v3.0
@@ -200,22 +226,42 @@ TuiInputSliderComponent = TuiInputSliderComponent_1 = __decorate([
200
226
  HINT_CONTROLLER_PROVIDER,
201
227
  TEXTFIELD_CONTROLLER_PROVIDER,
202
228
  ],
203
- styles: [":host{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);color:var(--tui-text-01)}:host._segmented._show-ticks-labels{border-bottom:26px solid transparent}.t-native{position:absolute;top:0;left:0;height:100%;padding:0 1rem;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;width:100%;color:var(--tui-text-01);box-sizing:border-box;outline:0}.t-native:-webkit-autofill,.t-native:-webkit-autofill:focus,.t-native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}:host._disabled .t-native{color:var(--tui-text-03);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._max-label .t-native,:host._min-label .t-native{opacity:0}:host[data-size='l'] .t-native{padding:1.25rem 1rem 0}:host[data-mode=onDark] .t-native{color:var(--tui-text-01-night)}:host[data-mode=onDark]._disabled .t-native{color:var(--tui-text-03-night)}.t-content{display:flex;align-items:center;height:var(--tui-height-m);padding:0 1rem;justify-content:space-between}:host[data-size='l'] .t-content{height:var(--tui-height-l);padding:0 1rem}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-l);line-height:var(--tui-height-l);box-sizing:border-box;pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused)._hovered .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused)._hovered .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}:host._has-tooltip .t-placeholder{max-width:calc(100% - 1.75rem)}.t-value{visibility:hidden}.t-label{overflow:hidden;text-overflow:ellipsis}:host[data-size='l'] .t-label{padding-top:1.25rem}.t-secondary{color:var(--tui-text-01)}:host._disabled .t-secondary{color:var(--tui-text-03)}:host[data-mode=onDark]._disabled .t-secondary{color:var(--tui-text-03-night)}.t-tooltip{margin-left:.75rem}.t-slider-wrapper{position:absolute;top:100%;left:calc(var(--tui-radius-m)/ 2);right:0;margin:-.5625rem 0 0}input[type=range]{border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.t-ticks-labels{display:flex;margin:0 .5rem;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-ticks-labels>*{position:relative;flex:2;text-align:center}.t-ticks-labels>:first-child{left:-.5rem;flex:1;text-align:left}.t-ticks-labels>:last-child{right:-.5rem;flex:1;text-align:right}tui-input-slider+.t-ticks-labels{margin-left:calc(var(--tui-radius-m)/ 2 + .5rem)}"]
204
- }),
229
+ styles: [":host{position:relative;z-index:0;display:block}:host._segmented._show-ticks-labels{border-bottom:26px solid transparent}.t-slider-wrapper{position:absolute;top:100%;left:calc(var(--tui-radius-m)/ 2);right:0;margin:-.5625rem 0 0}input[type=range]{border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}.t-ticks-labels{display:flex;margin:0 .5rem;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-ticks-labels>*{position:relative;flex:2;text-align:center}.t-ticks-labels>:first-child{left:-.5rem;flex:1;text-align:left}.t-ticks-labels>:last-child{right:-.5rem;flex:1;text-align:right}tui-input-slider+.t-ticks-labels{margin-left:calc(var(--tui-radius-m)/ 2 + .5rem)}"]
230
+ })
231
+ /**
232
+ * TODO replace `extends AbstractTuiInputSlider<number>` by `extends AbstractTuiControl<number> implements TuiWithOptionalMinMax<number>`
233
+ * in v3.0
234
+ */
235
+ ,
205
236
  __param(0, Optional()),
206
237
  __param(0, Self()),
207
238
  __param(0, Inject(NgControl)),
208
239
  __param(1, Inject(ChangeDetectorRef)),
209
- __param(2, Optional()),
210
- __param(2, Inject(TuiModeDirective)),
211
- __param(3, Inject(TUI_HINT_WATCHED_CONTROLLER)),
212
- __param(4, Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)),
213
- __param(5, Inject(TUI_NUMBER_FORMAT)),
214
- __param(6, Inject(TUI_TEXTFIELD_APPEARANCE)),
215
- __param(7, Inject(TUI_FROM_TO_TEXTS)),
216
- __param(8, Optional()),
217
- __param(8, Inject(TuiNewInputSliderDirective))
240
+ __param(2, Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)),
241
+ __param(3, Inject(TUI_NUMBER_FORMAT)),
242
+ __param(4, Inject(TUI_FROM_TO_TEXTS)),
243
+ __param(5, Optional()),
244
+ __param(5, Inject(TuiNewInputSliderDirective))
218
245
  ], TuiInputSliderComponent);
246
+ function quantumAssertion(quantum) {
247
+ return quantum > 0;
248
+ }
249
+ /**
250
+ * @deprecated helper for backward compatibility.
251
+ * TODO remove in v3.0
252
+ */
253
+ function legacyMinMaxLabel({ min, max, minLabel, maxLabel }) {
254
+ return ({ $implicit: value }) => {
255
+ switch (value) {
256
+ case min:
257
+ return minLabel || value;
258
+ case max:
259
+ return maxLabel || value;
260
+ default:
261
+ return value;
262
+ }
263
+ };
264
+ }
219
265
 
220
266
  let TuiInputSliderModule = class TuiInputSliderModule {
221
267
  };
@@ -225,19 +271,13 @@ TuiInputSliderModule = __decorate([
225
271
  CommonModule,
226
272
  FormsModule,
227
273
  ReactiveFormsModule,
228
- TextMaskModule,
229
274
  TuiFocusableModule,
230
- TuiFocusedModule,
231
- TuiHoveredModule,
232
- TuiPressedModule,
233
- TuiMapperPipeModule,
234
- TuiInputModeModule,
235
- TuiTooltipModule,
236
275
  TuiSliderModule,
237
- TuiWrapperModule,
238
276
  TuiFormatNumberPipeModule,
239
277
  TuiRepeatTimesModule,
240
278
  PolymorpheusModule,
279
+ TuiInputNumberModule,
280
+ TuiTextfieldControllerModule,
241
281
  ],
242
282
  declarations: [TuiInputSliderComponent, TuiNewInputSliderDirective],
243
283
  exports: [TuiInputSliderComponent, TuiNewInputSliderDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-slider.js","sources":["ng://@taiga-ui/kit/components/input-slider/input-slider.component.ts","ng://@taiga-ui/kit/components/input-slider/input-slider.module.ts","ng://@taiga-ui/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocused,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n HINT_CONTROLLER_PROVIDER,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiHintControllerDirective,\n TuiModeDirective,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\nimport {\n TuiSliderComponent,\n tuiSliderOptionsProvider,\n} from '@taiga-ui/kit/components/slider';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n/**\n * Turn on new `InputSlider`'s version.\n * The new version will behave almost the same as `InputSlider` from the next major release.\n * @deprecated TODO remove me in v3.0 and make `InputSlider` always \"new\".\n */\n@Directive({\n selector: 'tui-input-slider[new]',\n})\nexport class TuiNewInputSliderDirective {}\n\n// @dynamic\n@Component({\n selector: 'tui-input-slider',\n templateUrl: './input-slider.template.html',\n styleUrls: ['./input-slider.style.less'],\n host: {\n /**\n * TODO delete it in v3.0\n * Dont forget to clear html-tags\n */\n '[class._show-ticks-labels]': '!isNew',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputSliderComponent),\n },\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n HINT_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputSliderComponent\n extends AbstractTuiInputSlider<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @ViewChild(TuiSliderComponent, {read: ElementRef})\n private readonly sliderRef?: ElementRef<HTMLInputElement>;\n\n /**\n * @deprecated use `tuiTextfieldCustomContent` instead\n * TODO delete in v3.0\n */\n @Input()\n @tuiDefaultProp()\n secondary = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n protected readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_TEXTFIELD_APPEARANCE)\n readonly appearance: string,\n @Inject(TUI_FROM_TO_TEXTS) readonly fromToTexts$: Observable<[string, string]>,\n @Optional()\n @Inject(TuiNewInputSliderDirective)\n readonly isNew: TuiNewInputSliderDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n isNativeFocused(this.sliderRef?.nativeElement || null)\n );\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._min-label')\n get showMinLabel(): boolean {\n return !this.focused && this.value === this.min && !!this.minLabel;\n }\n\n @HostBinding('class._max-label')\n get showMaxLabel(): boolean {\n return !this.focused && this.value === this.max && !!this.maxLabel;\n }\n\n get computedValue(): string {\n if (this.focused && this.isInputValueNotFinished) {\n return this.inputValue;\n }\n\n return this.formattedValue;\n }\n\n get showValue(): boolean {\n return !this.showMinLabel && !this.showMaxLabel;\n }\n\n get inputValue(): string {\n return this.focusableElement ? this.focusableElement.nativeElement.value : '';\n }\n\n set inputValue(value: string) {\n if (this.focusableElement) {\n this.focusableElement.nativeElement.value = value;\n }\n }\n\n focusTextInput() {\n if (this.focusableElement) {\n setNativeFocused(this.focusableElement.nativeElement);\n }\n }\n\n onKeyDownArrowUp(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(true);\n this.inputValue = this.formattedValue;\n }\n\n onKeyDownArrowDown(event: KeyboardEvent) {\n if (this.readOnly) {\n return;\n }\n\n event.preventDefault();\n this.processStep(false);\n this.inputValue = this.formattedValue;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const inputValue = maskedNumberStringToNumber(\n this.computedValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);\n\n this.updateValue(value);\n this.inputValue = this.formattedValue;\n }\n\n onValue(value: string) {\n const capped = this.capInputValue(value);\n const postfix = value.slice(-1)[0] === ',' ? ',' : '';\n\n if (maskedMoneyValueIsEmpty(value) || capped === null) {\n return;\n }\n\n const newValue = this.formatNumber(capped) + postfix;\n\n if (value !== newValue) {\n this.inputValue = newValue;\n }\n\n this.updateValue(capped);\n }\n\n onSliderValue(value: number) {\n this.updateValue(this.valueGuard(value));\n this.inputValue = this.formattedValue;\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n private get formattedValue(): string {\n return this.formatNumber(this.value);\n }\n\n private get isInputValueNotFinished(): boolean {\n if (this.inputValue === '') {\n return true;\n }\n\n const nativeNumberValue = maskedNumberStringToNumber(\n this.inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private processStep(increment: boolean) {\n const value = this.valueGuard(\n increment ? this.value + this.step : this.value - this.step,\n );\n\n if (value !== this.value) {\n this.updateValue(value);\n }\n }\n\n private formatNumber(value: number): string {\n return formatNumber(\n value,\n null,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiInputModeModule,\n TuiMapperPipeModule,\n TuiPressedModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {\n TuiFormatNumberPipeModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {TuiSliderModule} from '@taiga-ui/kit/components/slider';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {\n TuiInputSliderComponent,\n TuiNewInputSliderDirective,\n} from './input-slider.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TextMaskModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiMapperPipeModule,\n TuiInputModeModule,\n TuiTooltipModule,\n TuiSliderModule,\n TuiWrapperModule,\n TuiFormatNumberPipeModule,\n TuiRepeatTimesModule,\n PolymorpheusModule,\n ],\n declarations: [TuiInputSliderComponent, TuiNewInputSliderDirective],\n exports: [TuiInputSliderComponent, TuiNewInputSliderDirective],\n})\nexport class TuiInputSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA8CA;;;;;IAQa,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IAHtC,SAAS,CAAC;QACP,QAAQ,EAAE,uBAAuB;KACpC,CAAC;GACW,0BAA0B,CAAG;AAE1C;IAuBa,uBAAuB,+BAApC,MAAa,uBACT,SAAQ,sBAA8B;IAiBtC,YAII,OAAyB,EACE,iBAAoC,EAG5C,aAAsC,EAEhD,cAA0C,EAE1C,UAAkC,EAExB,YAAkC,EAE5C,UAAkB,EACS,YAA0C,EAGrE,KAAwC;QAEjD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAdf,kBAAa,GAAb,aAAa,CAAyB;QAEhD,mBAAc,GAAd,cAAc,CAA4B;QAE1C,eAAU,GAAV,UAAU,CAAwB;QAExB,iBAAY,GAAZ,YAAY,CAAsB;QAE5C,eAAU,GAAV,UAAU,CAAQ;QACS,iBAAY,GAAZ,YAAY,CAA8B;QAGrE,UAAK,GAAL,KAAK,CAAmC;;;;;QAtBrD,cAAS,GAAG,EAAE,CAAC;KAyBd;IAED,IAAI,sBAAsB;QACtB,OAAO,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB;cAChD,IAAI;cACJ,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC;KAC7C;IAED,IAAI,OAAO;;QACP,QACI,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC;YAC5C,eAAe,CAAC,OAAA,IAAI,CAAC,SAAS,0CAAE,aAAa,KAAI,IAAI,CAAC,EACxD;KACL;IAGD,IAAI,UAAU;QACV,OAAO,CAAC,CAAC,IAAI,CAAC,c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AExB,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;IAEnC,WAAA,MAAM,CAAC,gCAAgC,CAAC,CAAA;IAExC,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;IAEhC,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;GArC9B,uBAAuB,CAyMnC;;ICxOY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAtBhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,mBAAmB;YACnB,cAAc;YACd,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,mBAAmB;YACnB,kBAAkB;YAClB,gBAAgB;YAChB,eAAe;YACf,gBAAgB;YAChB,yBAAyB;YACzB,oBAAoB;YACpB,kBAAkB;SACrB;QACD,YAAY,EAAE,CAAC,uBAAuB,EAAE,0BAA0B,CAAC;QACnE,OAAO,EAAE,CAAC,uBAAuB,EAAE,0BAA0B,CAAC;KACjE,CAAC;GACW,oBAAoB,CAAG;;AChDpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-slider.js","sources":["ng://@taiga-ui/kit/components/input-slider/input-slider.component.ts","ng://@taiga-ui/kit/components/input-slider/input-slider.module.ts","ng://@taiga-ui/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n clamp,\n isNativeFocused,\n round,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiAssert,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n getFractionPartPadded,\n HINT_CONTROLLER_PROVIDER,\n NumberFormatSettings,\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiDecimalT,\n TuiSizeL,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {AbstractTuiInputSlider} from '@taiga-ui/kit/abstract';\nimport {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number';\nimport {\n TuiSliderComponent,\n tuiSliderOptionsProvider,\n} from '@taiga-ui/kit/components/slider';\nimport {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {TuiKeySteps} from '@taiga-ui/kit/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\n/**\n * Turn on new `InputSlider`'s version.\n * The new version will behave almost the same as `InputSlider` from the next major release.\n * @deprecated TODO remove me in v3.0 and make `InputSlider` always \"new\".\n */\n@Directive({\n selector: 'tui-input-slider[new]',\n})\nexport class TuiNewInputSliderDirective {}\n\n// @dynamic\n@Component({\n selector: 'tui-input-slider',\n templateUrl: './input-slider.template.html',\n styleUrls: ['./input-slider.style.less'],\n host: {\n /**\n * TODO delete it in v3.0\n * Dont forget to clear html-tags\n */\n '[class._show-ticks-labels]': '!isNew',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputSliderComponent),\n },\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n HINT_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\n/**\n * TODO replace `extends AbstractTuiInputSlider<number>` by `extends AbstractTuiControl<number> implements TuiWithOptionalMinMax<number>`\n * in v3.0\n */\nexport class TuiInputSliderComponent\n extends AbstractTuiInputSlider<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiInputNumberComponent)\n private readonly inputNumberRef?: TuiInputNumberComponent;\n\n @ViewChild(TuiSliderComponent, {read: ElementRef})\n private readonly sliderRef?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n min = 0;\n\n @Input()\n @tuiDefaultProp()\n max = Infinity;\n\n @Input()\n @tuiDefaultProp(quantumAssertion, 'Quantum must be positive')\n quantum = 1;\n\n @Input()\n @tuiDefaultProp()\n steps = 0;\n\n @Input()\n @tuiDefaultProp()\n segments = 0;\n\n @Input()\n @tuiDefaultProp()\n keySteps: TuiKeySteps | null = null;\n\n @Input()\n @tuiDefaultProp()\n valueContent: PolymorpheusContent<TuiContextWithImplicit<number>> = '';\n\n @Input()\n @tuiDefaultProp()\n prefix = '';\n\n @Input()\n @tuiDefaultProp()\n postfix = '';\n\n /**\n * @deprecated use `tuiTextfieldSize` instead\n * TODO delete in v3.0\n */\n @Input()\n @tuiDefaultProp()\n size: TuiSizeL = 'l';\n\n /**\n * @deprecated use `tuiTextfieldCustomContent` instead\n * TODO delete in v3.0\n */\n @Input()\n @tuiDefaultProp()\n secondary = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_NUMBER_FORMAT)\n protected readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_FROM_TO_TEXTS) readonly fromToTexts$: Observable<[string, string]>,\n @Optional()\n @Inject(TuiNewInputSliderDirective)\n readonly isNew: TuiNewInputSliderDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.inputNumberRef?.nativeFocusableElement || this.computedDisabled\n ? null\n : this.inputNumberRef.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return (\n isNativeFocused(this.nativeFocusableElement) ||\n isNativeFocused(this.sliderRef?.nativeElement || null)\n );\n }\n\n get computedSteps(): number {\n return this.steps || (this.max - this.min) / this.quantum;\n }\n\n get precision(): number {\n return getFractionPartPadded(this.quantum).length;\n }\n\n get decimal(): TuiDecimalT {\n return this.precision ? 'not-zero' : 'never';\n }\n\n /**\n * TODO remove old property `size` in v3.0\n */\n get computedSize(): TuiSizeL {\n if (this.isNew) {\n tuiAssert.assert(\n this.controller.size !== 's',\n \"Size 's' is not supported by this input.\",\n );\n\n return this.controller.size === 'l' ? 'l' : 'm';\n }\n\n return this.size;\n }\n\n /**\n * @deprecated for backward compatibility\n * TODO replace by just `this.valueContent` in v3.0\n */\n get computedValueContent(): PolymorpheusContent<TuiContextWithImplicit<number>> {\n return this.minLabel || this.maxLabel\n ? legacyMinMaxLabel(this)\n : this.valueContent;\n }\n\n focusTextInput() {\n const focusableElement = this.inputNumberRef?.nativeFocusableElement;\n\n if (focusableElement) {\n setNativeFocused(focusableElement);\n }\n }\n\n safelyUpdateValue(value: number | null) {\n this.updateValue(this.valueGuard(value ?? this.safeCurrentValue));\n }\n\n onVerticalArrowKeyDown(coefficient: number) {\n if (this.readOnly) {\n return;\n }\n\n const value = this.value + coefficient * this.step;\n\n if (value !== this.value) {\n this.safelyUpdateValue(value);\n }\n\n this.updateTextInputValue(this.valueGuard(value));\n }\n\n onFocused(focused: boolean) {\n if (!focused && !this.textInputValue) {\n this.updateTextInputValue(this.safeCurrentValue);\n }\n\n this.updateFocused(focused);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n private get textInputValue(): string {\n return this.inputNumberRef?.nativeValue || '';\n }\n\n protected getFallbackValue(): number {\n return 0;\n }\n\n protected valueGuard(value: number): number {\n const roundedValue = round(\n Math.round(value / this.quantum) * this.quantum,\n TUI_FLOATING_PRECISION,\n );\n\n return clamp(roundedValue, this.min, this.max);\n }\n\n private updateTextInputValue(value: number) {\n if (this.inputNumberRef) {\n this.inputNumberRef.nativeValue =\n this.inputNumberRef.getFormattedValue(value);\n }\n }\n}\n\nfunction quantumAssertion(quantum: number): boolean {\n return quantum > 0;\n}\n\n/**\n * @deprecated helper for backward compatibility.\n * TODO remove in v3.0\n */\nfunction legacyMinMaxLabel({min, max, minLabel, maxLabel}: TuiInputSliderComponent) {\n return ({$implicit: value}: TuiContextWithImplicit<number>) => {\n switch (value) {\n case min:\n return minLabel || value;\n case max:\n return maxLabel || value;\n default:\n return value;\n }\n };\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiInputNumberModule} from '@taiga-ui/kit/components/input-number';\nimport {TuiSliderModule} from '@taiga-ui/kit/components/slider';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {\n TuiInputSliderComponent,\n TuiNewInputSliderDirective,\n} from './input-slider.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n TuiFocusableModule,\n TuiSliderModule,\n TuiFormatNumberPipeModule,\n TuiRepeatTimesModule,\n PolymorpheusModule,\n TuiInputNumberModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputSliderComponent, TuiNewInputSliderDirective],\n exports: [TuiInputSliderComponent, TuiNewInputSliderDirective],\n})\nexport class TuiInputSliderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiDA;;;;;IAQa,0BAA0B,GAAvC,MAAa,0BAA0B;EAAG;AAA7B,0BAA0B;IAHtC,SAAS,CAAC;QACP,QAAQ,EAAE,u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