@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,8 +1,8 @@
1
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'), require('@taiga-ui/kit/abstract'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/tokens'), require('rxjs'), require('@angular/common'), require('@tinkoff/ng-polymorpheus'), require('angular2-text-mask')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/abstract', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/tokens', 'rxjs', '@angular/common', '@tinkoff/ng-polymorpheus', 'angular2-text-mask'], 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['input-slider'] = {}), global.ng.core, global.ng.forms, global.cdk, global.core$1, global['taiga-ui'].kit.abstract, global['taiga-ui'].kit.components.slider, global['taiga-ui'].kit.tokens, global.rxjs, global.ng.common, global.ngPolymorpheus, global.angular2TextMask));
5
- }(this, (function (exports, core, forms, cdk, core$1, abstract, slider, tokens, rxjs, common, ngPolymorpheus, angular2TextMask) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit/abstract'), require('@taiga-ui/kit/components/input-number'), require('@taiga-ui/kit/components/slider'), require('@taiga-ui/kit/constants'), require('@taiga-ui/kit/tokens'), require('rxjs'), require('@angular/common'), require('@tinkoff/ng-polymorpheus')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/input-slider', ['exports', '@angular/core', '@angular/forms', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit/abstract', '@taiga-ui/kit/components/input-number', '@taiga-ui/kit/components/slider', '@taiga-ui/kit/constants', '@taiga-ui/kit/tokens', 'rxjs', '@angular/common', '@tinkoff/ng-polymorpheus'], 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['input-slider'] = {}), global.ng.core, global.ng.forms, global.cdk, global.core$1, global['taiga-ui'].kit.abstract, global['taiga-ui'].kit.components['input-number'], global['taiga-ui'].kit.components.slider, global['taiga-ui'].kit.constants, global['taiga-ui'].kit.tokens, global.rxjs, global.ng.common, global.ngPolymorpheus));
5
+ }(this, (function (exports, core, forms, cdk, core$1, abstract, inputNumber, slider, constants, tokens, rxjs, common, ngPolymorpheus) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -241,15 +241,26 @@
241
241
  // @dynamic
242
242
  var TuiInputSliderComponent = /** @class */ (function (_super) {
243
243
  __extends(TuiInputSliderComponent, _super);
244
- function TuiInputSliderComponent(control, changeDetectorRef, modeDirective, hintController, controller, numberFormat, appearance, fromToTexts$, isNew) {
244
+ function TuiInputSliderComponent(control, changeDetectorRef, controller, numberFormat, fromToTexts$, isNew) {
245
245
  var _this = _super.call(this, control, changeDetectorRef) || this;
246
- _this.modeDirective = modeDirective;
247
- _this.hintController = hintController;
248
246
  _this.controller = controller;
249
247
  _this.numberFormat = numberFormat;
250
- _this.appearance = appearance;
251
248
  _this.fromToTexts$ = fromToTexts$;
252
249
  _this.isNew = isNew;
250
+ _this.min = 0;
251
+ _this.max = Infinity;
252
+ _this.quantum = 1;
253
+ _this.steps = 0;
254
+ _this.segments = 0;
255
+ _this.keySteps = null;
256
+ _this.valueContent = '';
257
+ _this.prefix = '';
258
+ _this.postfix = '';
259
+ /**
260
+ * @deprecated use `tuiTextfieldSize` instead
261
+ * TODO delete in v3.0
262
+ */
263
+ _this.size = 'l';
253
264
  /**
254
265
  * @deprecated use `tuiTextfieldCustomContent` instead
255
266
  * TODO delete in v3.0
@@ -260,9 +271,10 @@
260
271
  TuiInputSliderComponent_1 = TuiInputSliderComponent;
261
272
  Object.defineProperty(TuiInputSliderComponent.prototype, "nativeFocusableElement", {
262
273
  get: function () {
263
- return !this.focusableElement || this.computedDisabled
274
+ var _a;
275
+ return !((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) || this.computedDisabled
264
276
  ? null
265
- : this.focusableElement.nativeElement;
277
+ : this.inputNumberRef.nativeFocusableElement;
266
278
  },
267
279
  enumerable: true,
268
280
  configurable: true
@@ -276,170 +288,170 @@
276
288
  enumerable: true,
277
289
  configurable: true
278
290
  });
279
- Object.defineProperty(TuiInputSliderComponent.prototype, "hasTooltip", {
291
+ Object.defineProperty(TuiInputSliderComponent.prototype, "computedSteps", {
280
292
  get: function () {
281
- return !!this.hintController.content && !this.disabled;
293
+ return this.steps || (this.max - this.min) / this.quantum;
282
294
  },
283
295
  enumerable: true,
284
296
  configurable: true
285
297
  });
286
- Object.defineProperty(TuiInputSliderComponent.prototype, "showMinLabel", {
298
+ Object.defineProperty(TuiInputSliderComponent.prototype, "precision", {
287
299
  get: function () {
288
- return !this.focused && this.value === this.min && !!this.minLabel;
300
+ return core$1.getFractionPartPadded(this.quantum).length;
289
301
  },
290
302
  enumerable: true,
291
303
  configurable: true
292
304
  });
293
- Object.defineProperty(TuiInputSliderComponent.prototype, "showMaxLabel", {
305
+ Object.defineProperty(TuiInputSliderComponent.prototype, "decimal", {
294
306
  get: function () {
295
- return !this.focused && this.value === this.max && !!this.maxLabel;
307
+ return this.precision ? 'not-zero' : 'never';
296
308
  },
297
309
  enumerable: true,
298
310
  configurable: true
299
311
  });
300
- Object.defineProperty(TuiInputSliderComponent.prototype, "computedValue", {
312
+ Object.defineProperty(TuiInputSliderComponent.prototype, "computedSize", {
313
+ /**
314
+ * TODO remove old property `size` in v3.0
315
+ */
301
316
  get: function () {
302
- if (this.focused && this.isInputValueNotFinished) {
303
- return this.inputValue;
317
+ if (this.isNew) {
318
+ cdk.tuiAssert.assert(this.controller.size !== 's', "Size 's' is not supported by this input.");
319
+ return this.controller.size === 'l' ? 'l' : 'm';
304
320
  }
305
- return this.formattedValue;
306
- },
307
- enumerable: true,
308
- configurable: true
309
- });
310
- Object.defineProperty(TuiInputSliderComponent.prototype, "showValue", {
311
- get: function () {
312
- return !this.showMinLabel && !this.showMaxLabel;
321
+ return this.size;
313
322
  },
314
323
  enumerable: true,
315
324
  configurable: true
316
325
  });
317
- Object.defineProperty(TuiInputSliderComponent.prototype, "inputValue", {
326
+ Object.defineProperty(TuiInputSliderComponent.prototype, "computedValueContent", {
327
+ /**
328
+ * @deprecated for backward compatibility
329
+ * TODO replace by just `this.valueContent` in v3.0
330
+ */
318
331
  get: function () {
319
- return this.focusableElement ? this.focusableElement.nativeElement.value : '';
320
- },
321
- set: function (value) {
322
- if (this.focusableElement) {
323
- this.focusableElement.nativeElement.value = value;
324
- }
332
+ return this.minLabel || this.maxLabel
333
+ ? legacyMinMaxLabel(this)
334
+ : this.valueContent;
325
335
  },
326
336
  enumerable: true,
327
337
  configurable: true
328
338
  });
329
339
  TuiInputSliderComponent.prototype.focusTextInput = function () {
330
- if (this.focusableElement) {
331
- cdk.setNativeFocused(this.focusableElement.nativeElement);
340
+ var _a;
341
+ var focusableElement = (_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement;
342
+ if (focusableElement) {
343
+ cdk.setNativeFocused(focusableElement);
332
344
  }
333
345
  };
334
- TuiInputSliderComponent.prototype.onKeyDownArrowUp = function (event) {
335
- if (this.readOnly) {
336
- return;
337
- }
338
- event.preventDefault();
339
- this.processStep(true);
340
- this.inputValue = this.formattedValue;
346
+ TuiInputSliderComponent.prototype.safelyUpdateValue = function (value) {
347
+ this.updateValue(this.valueGuard(value !== null && value !== void 0 ? value : this.safeCurrentValue));
341
348
  };
342
- TuiInputSliderComponent.prototype.onKeyDownArrowDown = function (event) {
349
+ TuiInputSliderComponent.prototype.onVerticalArrowKeyDown = function (coefficient) {
343
350
  if (this.readOnly) {
344
351
  return;
345
352
  }
346
- event.preventDefault();
347
- this.processStep(false);
348
- this.inputValue = this.formattedValue;
349
- };
350
- TuiInputSliderComponent.prototype.onFocused = function (focused) {
351
- this.updateFocused(focused);
352
- if (focused) {
353
- return;
353
+ var value = this.value + coefficient * this.step;
354
+ if (value !== this.value) {
355
+ this.safelyUpdateValue(value);
354
356
  }
355
- var inputValue = core$1.maskedNumberStringToNumber(this.computedValue, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator);
356
- var value = isNaN(inputValue) ? this.min : this.valueGuard(inputValue);
357
- this.updateValue(value);
358
- this.inputValue = this.formattedValue;
357
+ this.updateTextInputValue(this.valueGuard(value));
359
358
  };
360
- TuiInputSliderComponent.prototype.onValue = function (value) {
361
- var capped = this.capInputValue(value);
362
- var postfix = value.slice(-1)[0] === ',' ? ',' : '';
363
- if (core$1.maskedMoneyValueIsEmpty(value) || capped === null) {
364
- return;
365
- }
366
- var newValue = this.formatNumber(capped) + postfix;
367
- if (value !== newValue) {
368
- this.inputValue = newValue;
359
+ TuiInputSliderComponent.prototype.onFocused = function (focused) {
360
+ if (!focused && !this.textInputValue) {
361
+ this.updateTextInputValue(this.safeCurrentValue);
369
362
  }
370
- this.updateValue(capped);
363
+ this.updateFocused(focused);
371
364
  };
372
- TuiInputSliderComponent.prototype.onSliderValue = function (value) {
373
- this.updateValue(this.valueGuard(value));
374
- this.inputValue = this.formattedValue;
365
+ TuiInputSliderComponent.prototype.onPressed = function (pressed) {
366
+ this.updatePressed(pressed);
375
367
  };
376
- TuiInputSliderComponent.prototype.getFallbackValue = function () {
377
- return 0;
368
+ TuiInputSliderComponent.prototype.onHovered = function (hovered) {
369
+ this.updateHovered(hovered);
378
370
  };
379
- Object.defineProperty(TuiInputSliderComponent.prototype, "formattedValue", {
380
- get: function () {
381
- return this.formatNumber(this.value);
382
- },
383
- enumerable: true,
384
- configurable: true
385
- });
386
- Object.defineProperty(TuiInputSliderComponent.prototype, "isInputValueNotFinished", {
371
+ Object.defineProperty(TuiInputSliderComponent.prototype, "textInputValue", {
387
372
  get: function () {
388
- if (this.inputValue === '') {
389
- return true;
390
- }
391
- var nativeNumberValue = core$1.maskedNumberStringToNumber(this.inputValue, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator);
392
- return nativeNumberValue < 0
393
- ? nativeNumberValue > this.max
394
- : nativeNumberValue < this.min;
373
+ var _a;
374
+ return ((_a = this.inputNumberRef) === null || _a === void 0 ? void 0 : _a.nativeValue) || '';
395
375
  },
396
376
  enumerable: true,
397
377
  configurable: true
398
378
  });
399
- TuiInputSliderComponent.prototype.processStep = function (increment) {
400
- var value = this.valueGuard(increment ? this.value + this.step : this.value - this.step);
401
- if (value !== this.value) {
402
- this.updateValue(value);
403
- }
379
+ TuiInputSliderComponent.prototype.getFallbackValue = function () {
380
+ return 0;
404
381
  };
405
- TuiInputSliderComponent.prototype.formatNumber = function (value) {
406
- return core$1.formatNumber(value, null, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator);
382
+ TuiInputSliderComponent.prototype.valueGuard = function (value) {
383
+ var roundedValue = cdk.round(Math.round(value / this.quantum) * this.quantum, constants.TUI_FLOATING_PRECISION);
384
+ return cdk.clamp(roundedValue, this.min, this.max);
385
+ };
386
+ TuiInputSliderComponent.prototype.updateTextInputValue = function (value) {
387
+ if (this.inputNumberRef) {
388
+ this.inputNumberRef.nativeValue =
389
+ this.inputNumberRef.getFormattedValue(value);
390
+ }
407
391
  };
408
392
  var TuiInputSliderComponent_1;
409
393
  TuiInputSliderComponent.ctorParameters = function () { return [
410
394
  { type: forms.NgControl, decorators: [{ type: core.Optional }, { type: core.Self }, { type: core.Inject, args: [forms.NgControl,] }] },
411
395
  { type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
412
- { type: core$1.TuiModeDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.TuiModeDirective,] }] },
413
- { type: core$1.TuiHintControllerDirective, decorators: [{ type: core.Inject, args: [core$1.TUI_HINT_WATCHED_CONTROLLER,] }] },
414
396
  { type: core$1.TuiTextfieldController, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] },
415
397
  { type: undefined, decorators: [{ type: core.Inject, args: [core$1.TUI_NUMBER_FORMAT,] }] },
416
- { type: String, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_APPEARANCE,] }] },
417
398
  { type: rxjs.Observable, decorators: [{ type: core.Inject, args: [tokens.TUI_FROM_TO_TEXTS,] }] },
418
399
  { type: TuiNewInputSliderDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TuiNewInputSliderDirective,] }] }
419
400
  ]; };
420
401
  __decorate([
421
- core.ViewChild('focusableElement')
422
- ], TuiInputSliderComponent.prototype, "focusableElement", void 0);
402
+ core.ViewChild(inputNumber.TuiInputNumberComponent)
403
+ ], TuiInputSliderComponent.prototype, "inputNumberRef", void 0);
423
404
  __decorate([
424
405
  core.ViewChild(slider.TuiSliderComponent, { read: core.ElementRef })
425
406
  ], TuiInputSliderComponent.prototype, "sliderRef", void 0);
426
407
  __decorate([
427
408
  core.Input(),
428
409
  cdk.tuiDefaultProp()
429
- ], TuiInputSliderComponent.prototype, "secondary", void 0);
410
+ ], TuiInputSliderComponent.prototype, "min", void 0);
411
+ __decorate([
412
+ core.Input(),
413
+ cdk.tuiDefaultProp()
414
+ ], TuiInputSliderComponent.prototype, "max", void 0);
415
+ __decorate([
416
+ core.Input(),
417
+ cdk.tuiDefaultProp(quantumAssertion, 'Quantum must be positive')
418
+ ], TuiInputSliderComponent.prototype, "quantum", void 0);
419
+ __decorate([
420
+ core.Input(),
421
+ cdk.tuiDefaultProp()
422
+ ], TuiInputSliderComponent.prototype, "steps", void 0);
430
423
  __decorate([
431
- core.HostBinding('class._has-tooltip')
432
- ], TuiInputSliderComponent.prototype, "hasTooltip", null);
424
+ core.Input(),
425
+ cdk.tuiDefaultProp()
426
+ ], TuiInputSliderComponent.prototype, "segments", void 0);
427
+ __decorate([
428
+ core.Input(),
429
+ cdk.tuiDefaultProp()
430
+ ], TuiInputSliderComponent.prototype, "keySteps", void 0);
433
431
  __decorate([
434
- core.HostBinding('class._min-label')
435
- ], TuiInputSliderComponent.prototype, "showMinLabel", null);
432
+ core.Input(),
433
+ cdk.tuiDefaultProp()
434
+ ], TuiInputSliderComponent.prototype, "valueContent", void 0);
436
435
  __decorate([
437
- core.HostBinding('class._max-label')
438
- ], TuiInputSliderComponent.prototype, "showMaxLabel", null);
436
+ core.Input(),
437
+ cdk.tuiDefaultProp()
438
+ ], TuiInputSliderComponent.prototype, "prefix", void 0);
439
+ __decorate([
440
+ core.Input(),
441
+ cdk.tuiDefaultProp()
442
+ ], TuiInputSliderComponent.prototype, "postfix", void 0);
443
+ __decorate([
444
+ core.Input(),
445
+ cdk.tuiDefaultProp()
446
+ ], TuiInputSliderComponent.prototype, "size", void 0);
447
+ __decorate([
448
+ core.Input(),
449
+ cdk.tuiDefaultProp()
450
+ ], TuiInputSliderComponent.prototype, "secondary", void 0);
439
451
  TuiInputSliderComponent = TuiInputSliderComponent_1 = __decorate([
440
452
  core.Component({
441
453
  selector: 'tui-input-slider',
442
- 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",
454
+ 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",
443
455
  host: {
444
456
  /**
445
457
  * TODO delete it in v3.0
@@ -457,24 +469,46 @@
457
469
  core$1.HINT_CONTROLLER_PROVIDER,
458
470
  core$1.TEXTFIELD_CONTROLLER_PROVIDER,
459
471
  ],
460
- 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)}"]
461
- }),
472
+ 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)}"]
473
+ })
474
+ /**
475
+ * TODO replace `extends AbstractTuiInputSlider<number>` by `extends AbstractTuiControl<number> implements TuiWithOptionalMinMax<number>`
476
+ * in v3.0
477
+ */
478
+ ,
462
479
  __param(0, core.Optional()),
463
480
  __param(0, core.Self()),
464
481
  __param(0, core.Inject(forms.NgControl)),
465
482
  __param(1, core.Inject(core.ChangeDetectorRef)),
466
- __param(2, core.Optional()),
467
- __param(2, core.Inject(core$1.TuiModeDirective)),
468
- __param(3, core.Inject(core$1.TUI_HINT_WATCHED_CONTROLLER)),
469
- __param(4, core.Inject(core$1.TUI_TEXTFIELD_WATCHED_CONTROLLER)),
470
- __param(5, core.Inject(core$1.TUI_NUMBER_FORMAT)),
471
- __param(6, core.Inject(core$1.TUI_TEXTFIELD_APPEARANCE)),
472
- __param(7, core.Inject(tokens.TUI_FROM_TO_TEXTS)),
473
- __param(8, core.Optional()),
474
- __param(8, core.Inject(TuiNewInputSliderDirective))
483
+ __param(2, core.Inject(core$1.TUI_TEXTFIELD_WATCHED_CONTROLLER)),
484
+ __param(3, core.Inject(core$1.TUI_NUMBER_FORMAT)),
485
+ __param(4, core.Inject(tokens.TUI_FROM_TO_TEXTS)),
486
+ __param(5, core.Optional()),
487
+ __param(5, core.Inject(TuiNewInputSliderDirective))
475
488
  ], TuiInputSliderComponent);
476
489
  return TuiInputSliderComponent;
477
490
  }(abstract.AbstractTuiInputSlider));
491
+ function quantumAssertion(quantum) {
492
+ return quantum > 0;
493
+ }
494
+ /**
495
+ * @deprecated helper for backward compatibility.
496
+ * TODO remove in v3.0
497
+ */
498
+ function legacyMinMaxLabel(_a) {
499
+ var min = _a.min, max = _a.max, minLabel = _a.minLabel, maxLabel = _a.maxLabel;
500
+ return function (_a) {
501
+ var value = _a.$implicit;
502
+ switch (value) {
503
+ case min:
504
+ return minLabel || value;
505
+ case max:
506
+ return maxLabel || value;
507
+ default:
508
+ return value;
509
+ }
510
+ };
511
+ }
478
512
 
479
513
  var TuiInputSliderModule = /** @class */ (function () {
480
514
  function TuiInputSliderModule() {
@@ -485,19 +519,13 @@
485
519
  common.CommonModule,
486
520
  forms.FormsModule,
487
521
  forms.ReactiveFormsModule,
488
- angular2TextMask.TextMaskModule,
489
522
  cdk.TuiFocusableModule,
490
- cdk.TuiFocusedModule,
491
- cdk.TuiHoveredModule,
492
- cdk.TuiPressedModule,
493
- cdk.TuiMapperPipeModule,
494
- cdk.TuiInputModeModule,
495
- core$1.TuiTooltipModule,
496
523
  slider.TuiSliderModule,
497
- core$1.TuiWrapperModule,
498
524
  core$1.TuiFormatNumberPipeModule,
499
525
  cdk.TuiRepeatTimesModule,
500
526
  ngPolymorpheus.PolymorpheusModule,
527
+ inputNumber.TuiInputNumberModule,
528
+ core$1.TuiTextfieldControllerModule,
501
529
  ],
502
530
  declarations: [TuiInputSliderComponent, TuiNewInputSliderDirective],
503
531
  exports: [TuiInputSliderComponent, TuiNewInputSliderDirective],