@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 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-number/input-number.component.ts","ng://@taiga-ui/kit/components/input-number/input-number.directive.ts","ng://@taiga-ui/kit/components/input-number/input-number.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiInputNumberComponent","control","changeDetectorRef","numberFormat","_this","_super","call","min","Infinity","max","decimal","precision","prefix","postfix","mask","allowNegative","decimalLimit","nativeFocusableElement","tuiCreateNumberMask","allowDecimal","requireDecimal","decimalSymbol","decimalSeparator","thousandSymbol","thousandSeparator","autoCorrectDecimalSymbol","tuiEnableAutoCorrectDecimalSymbol","pipe","tuiCreateAutoCorrectedNumberPipe","guide","primitiveTextfield","computedDisabled","focused","nativeValue","includes","repeat","value","hasFraction","Math","abs","limit","fraction","getFractionPartPadded","formatNumber","zeroPadding","formattedValue","onZero","event","split","selectionStart","preventDefault","onValueChange","maskedMoneyValueIsEmpty","updateValue","isNativeValueNotFinished","capped","absoluteCapInputValue","isNaN","maskedNumberStringToNumber","onKeyDown","TUI_DECIMAL_SYMBOLS","setCaretAfterComma","onFocused","updateFocused","nativeNumberValue","clear","clamped","onHovered","hovered","updateHovered","onPressed","pressed","updatePressed","inputValue","Number","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","afterCommaPosition","setSelectionRange","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","TUI_NUMBER_FORMAT","ViewChild","TuiPrimitiveTextfieldComponent","Input","tuiDefaultProp","HostListener","TuiInputNumberComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiControl","AbstractTuiNullableControl","TuiInputNumberDirective","host","computedValue","process","input","ngDoCheck","maxLength","calculatedMaxLength","inputMode","TuiInputNumberDirective_1","Directive","TUI_TEXTFIELD_HOST","TuiAbstractTextfieldHost","TuiInputNumberModule","NgModule","imports","TextMaskModule","TuiMapperP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****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n AbstractTuiNullableControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiInputModeT,\n TuiMapper,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n getFractionPartPadded,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_DECIMAL_SYMBOLS,\n TUI_NUMBER_FORMAT,\n tuiCreateAutoCorrectedNumberPipe,\n tuiCreateNumberMask,\n TuiDecimalT,\n tuiEnableAutoCorrectDecimalSymbol,\n TuiPrimitiveTextfieldComponent,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\nimport {TextMaskConfig} from 'angular2-text-mask';\n\nconst DEFAULT_MAX_LENGTH = 18;\n\n// @dynamic\n@Component({\n selector: 'tui-input-number',\n templateUrl: './input-number.template.html',\n styleUrls: ['./input-number.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputNumberComponent),\n },\n {\n provide: AbstractTuiControl,\n useExisting: forwardRef(() => TuiInputNumberComponent),\n },\n ],\n})\nexport class TuiInputNumberComponent\n extends AbstractTuiNullableControl<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly primitiveTextfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n min = -Infinity;\n\n @Input()\n @tuiDefaultProp()\n max = Infinity;\n\n @Input()\n @tuiDefaultProp()\n decimal: TuiDecimalT = 'not-zero';\n\n @Input()\n @tuiDefaultProp()\n precision = 2;\n\n @Input()\n @tuiDefaultProp()\n prefix = '';\n\n @Input()\n @tuiDefaultProp()\n postfix = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.primitiveTextfield || this.computedDisabled\n ? null\n : this.primitiveTextfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.primitiveTextfield && this.primitiveTextfield.focused;\n }\n\n get isNegativeAllowed(): boolean {\n return this.min < 0;\n }\n\n get inputMode(): TuiInputModeT {\n return this.decimal === 'never' ? 'numeric' : 'decimal';\n }\n\n get calculatedMaxLength(): number {\n const decimalPart =\n this.decimal !== 'never' &&\n this.nativeValue.includes(this.numberFormat.decimalSeparator);\n const precision = decimalPart ? this.precision + 1 : 0;\n const takeThousand = this.numberFormat.thousandSeparator.repeat(5).length;\n\n return DEFAULT_MAX_LENGTH + precision + takeThousand;\n }\n\n get formattedValue(): string {\n const value = this.value || 0;\n const absValue = Math.abs(value);\n const hasFraction = absValue % 1 > 0;\n let limit = this.decimal === 'always' || hasFraction ? this.precision : 0;\n\n const fraction = hasFraction ? getFractionPartPadded(value, this.precision) : '';\n\n if (this.focused && this.decimal !== 'always') {\n limit = fraction.length;\n }\n\n return formatNumber(\n value,\n limit,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n this.numberFormat.zeroPadding,\n );\n }\n\n get computedValue(): string {\n if (this.focused) {\n return this.nativeValue;\n }\n\n return this.value === null ? '' : this.formattedValue;\n }\n\n @HostListener('keydown.0', ['$event'])\n onZero(event: KeyboardEvent) {\n const decimal =\n this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';\n const {nativeFocusableElement} = this;\n\n if (\n decimal.length < this.precision ||\n !nativeFocusableElement ||\n !nativeFocusableElement.selectionStart ||\n this.nativeValue[nativeFocusableElement.selectionStart] !== '0'\n ) {\n return;\n }\n\n event.preventDefault();\n nativeFocusableElement.selectionStart++;\n }\n\n mask: TuiMapper<boolean, TextMaskConfig> = (\n allowNegative: boolean,\n decimal: TuiDecimalT,\n decimalLimit: number,\n nativeFocusableElement: HTMLInputElement | null,\n ) =>\n ({\n mask: tuiCreateNumberMask({\n allowNegative,\n decimalLimit,\n allowDecimal: decimal !== 'never',\n requireDecimal: decimal === 'always',\n decimalSymbol: this.numberFormat.decimalSeparator,\n thousandSymbol: this.numberFormat.thousandSeparator,\n autoCorrectDecimalSymbol: tuiEnableAutoCorrectDecimalSymbol(\n this.numberFormat,\n ),\n }),\n pipe: tuiCreateAutoCorrectedNumberPipe(\n decimal === 'always' ? decimalLimit : 0,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n nativeFocusableElement,\n allowNegative,\n ),\n guide: false,\n } as TuiTextMaskOptions as unknown as TextMaskConfig);\n\n onValueChange(value: string) {\n if (maskedMoneyValueIsEmpty(value)) {\n this.updateValue(null);\n\n return;\n }\n\n if (this.isNativeValueNotFinished) {\n return;\n }\n\n const capped = this.absoluteCapInputValue(value);\n\n if (capped === null || isNaN(capped)) {\n return;\n }\n\n this.updateValue(capped);\n\n if (\n capped !==\n maskedNumberStringToNumber(\n value,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n )\n ) {\n this.nativeValue = this.formattedValue;\n }\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (!TUI_DECIMAL_SYMBOLS.includes(event.key)) {\n return;\n }\n\n if (this.decimal === 'never') {\n event.preventDefault();\n\n return;\n }\n\n if (this.nativeValue.includes(this.numberFormat.decimalSeparator)) {\n event.preventDefault();\n this.setCaretAfterComma();\n }\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const nativeNumberValue = this.nativeNumberValue;\n\n if (isNaN(nativeNumberValue)) {\n this.clear();\n\n return;\n }\n\n const clamped = Math.min(this.max, Math.max(this.min, nativeNumberValue));\n\n this.updateValue(clamped);\n this.nativeValue = this.formattedValue;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n private get isNativeValueNotFinished(): boolean {\n const nativeNumberValue = this.nativeNumberValue;\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n private get nativeNumberValue(): number {\n return maskedNumberStringToNumber(\n this.nativeValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private set nativeValue(value: string) {\n if (!this.primitiveTextfield || !this.nativeFocusableElement) {\n return;\n }\n\n this.primitiveTextfield.value = value;\n this.nativeFocusableElement.value = value;\n }\n\n private clear() {\n this.nativeValue = '';\n this.updateValue(null);\n }\n\n private absoluteCapInputValue(inputValue: string): number | null {\n const value = maskedNumberStringToNumber(\n inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const capped =\n value < 0\n ? Math.max(Math.max(this.min, Number.MIN_SAFE_INTEGER), value)\n : Math.min(value, Math.min(this.max, Number.MAX_SAFE_INTEGER));\n const ineligibleValue = isNaN(capped) || capped < this.min || capped > this.max;\n\n return ineligibleValue ? null : capped;\n }\n\n private setCaretAfterComma() {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n const afterCommaPosition = this.nativeValue.length - this.precision;\n\n this.nativeFocusableElement.setSelectionRange(\n afterCommaPosition,\n afterCommaPosition,\n );\n }\n}\n","import {Directive, DoCheck, forwardRef} from '@angular/core';\nimport {TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputNumberComponent} from './input-number.component';\n\n@Directive({\n selector: 'tui-input-number',\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiInputNumberDirective),\n },\n ],\n})\nexport class TuiInputNumberDirective\n extends TuiAbstractTextfieldHost<TuiInputNumberComponent>\n implements DoCheck\n{\n input?: HTMLInputElement;\n\n get value(): string {\n return this.host.computedValue;\n }\n\n onValueChange(value: string) {\n this.host.onValueChange(value);\n }\n\n process(input: HTMLInputElement) {\n this.input = input;\n }\n\n ngDoCheck() {\n if (!this.input) {\n return;\n }\n\n this.input.maxLength = this.host.calculatedMaxLength;\n this.input.inputMode = 'decimal';\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputNumberComponent} from './input-number.component';\nimport {TuiInputNumberDirective} from './input-number.directive';\n\n@NgModule({\n imports: [\n TextMaskModule,\n TuiMapperPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputNumberComponent, TuiInputNumberDirective],\n exports: [TuiInputNumberComponent, TuiInputNumberDirective, TuiTextfieldComponent],\n})\nexport class TuiInputNumberModule {}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-number/input-number.component.ts","ng://@taiga-ui/kit/components/input-number/input-number.directive.ts","ng://@taiga-ui/kit/components/input-number/input-number.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","TuiInputNumberComponent","control","changeDetectorRef","numberFormat","isIOS","_this","_super","call","min","Infinity","max","decimal","precision","prefix","postfix","mask","allowNegative","decimalLimit","nativeFocusableElement","tuiCreateNumberMask","allowDecimal","requireDecimal","decimalSymbol","decimalSeparator","thousandSymbol","thousandSeparator","autoCorrectDecimalSymbol","tuiEnableAutoCorrectDecimalSymbol","pipe","tuiCreateAutoCorrectedNumberPipe","guide","primitiveTextfield","computedDisabled","focused","nativeValue","includes","repeat","getFormattedValue","value","formattedValue","onZero","event","split","selectionStart","preventDefault","onValueChange","maskedMoneyValueIsEmpty","updateValue","isNativeValueNotFinished","capped","absoluteCapInputValue","isNaN","maskedNumberStringToNumber","onKeyDown","TUI_DECIMAL_SYMBOLS","setCaretAfterComma","onFocused","updateFocused","nativeNumberValue","clear","clamped","Math","onHovered","hovered","updateHovered","onPressed","pressed","updatePressed","hasFraction","abs","limit","fraction","getFractionPartPadded","formatNumber","zeroPadding","inputValue","Number","MIN_SAFE_INTEGER","MAX_SAFE_INTEGER","afterCommaPosition","setSelectionRange","NgControl","type","Optional","Self","Inject","args","ChangeDetectorRef","TUI_NUMBER_FORMAT","TUI_IS_IOS","ViewChild","TuiPrimitiveTextfieldComponent","Input","tuiDefaultProp","ContentChild","PolymorpheusOutletComponent","HostListener","TuiInputNumberComponent_1","Component","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","providers","provide","TUI_FOCUSABLE_ITEM_ACCESSOR","useExisting","forwardRef","AbstractTuiControl","AbstractTuiNullableControl","TuiInputNumberDirective","host","computedValue","process","input","ngDoCheck","maxLength","calculatedMaxLength","inputMode","TuiInputNumberDirective_1","Directive","TUI_TEXTFIELD_HOST","TuiAbstractTextfieldHost","TuiInputNumberModule","NgModule","imports","CommonModule","TextMaskModule","TuiMapperPipeModule","TuiPrimitiveTextfieldModule","TuiTextfieldControllerModule","TuiValueAccessorModule","PolymorpheusModule","declarations","exports","TuiTextfieldComponent"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAGrB,SAAS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AAW,WAAM,OAAAX,+IAuCjCpG,EAAA,EAAAsF,EAAAA,YACAtF,EAAA,EAAAuF,EAAAA,QACAvF,EAAA,EAAAwF,EAAAA,OAAOJ,EAAAA,YAEPpF,EAAA,EAAAwF,EAAAA,OAAOE,EAAAA,oBAEP1F,EAAA,EAAAwF,EAAAA,OAAOG,EAAAA,oBAEP3F,EAAA,EAAAwF,EAAAA,OAAOI,EAAAA,cA3CHzF,IACD8G,EAAAA,0CChDZ,SAAAC,yDA0BA,OAzBYtI,EAAAsI,EAAAzG,KADCyG,EAMT5I,OAAAyB,eAAImH,EAAAlI,UAAA,QAAK,KAAT,WACI,OAAOF,KAAKqI,KAAKC,+CAGrBF,EAAAlI,UAAAgE,cAAA,SAAcP,GACV3D,KAAKqI,KAAKnE,cAAcP,IAG5ByE,EAAAlI,UAAAqI,QAAA,SAAQC,GACJxI,KAAKwI,MAAQA,GAGjBJ,EAAAlI,UAAAuI,UAAA,WACSzI,KAAKwI,QAIVxI,KAAKwI,MAAME,UAAY1I,KAAKqI,KAAKM,oBACjC3I,KAAKwI,MAAMI,UAAY,YAxBlBR,EAAuBS,EAAAzI,EAAA,CATnC0I,EAAAA,UAAU,CACPtB,SAAU,mBACVK,UAAW,CACP,CACIC,QAASiB,EAAAA,mBACTf,YAAaC,EAAAA,YAAW,WAAM,OAAAY,UAI7BT,IACDY,EAAAA,uCCaZ,SAAAC,KAAmC,OAAtBA,EAAoB7I,EAAA,CAbhC8I,EAAAA,SAAS,CACNC,QAAS,CACLC,EAAAA,aACAC,EAAAA,eACAC,EAAAA,oBACAC,EAAAA,4BACAC,EAAAA,6BACAC,EAAAA,uBACAC,EAAAA,oBAEJC,aAAc,CAACtI,EAAyB+G,GACxCwB,QAAS,CAACvI,EAAyB+G,EAAyByB,EAAAA,0BAEnDZ","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n AbstractTuiNullableControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiInputModeT,\n TuiMapper,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n getFractionPartPadded,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_DECIMAL_SYMBOLS,\n TUI_NUMBER_FORMAT,\n tuiCreateAutoCorrectedNumberPipe,\n tuiCreateNumberMask,\n TuiDecimalT,\n tuiEnableAutoCorrectDecimalSymbol,\n TuiPrimitiveTextfieldComponent,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\nimport {PolymorpheusOutletComponent} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskConfig} from 'angular2-text-mask';\n\nconst DEFAULT_MAX_LENGTH = 18;\n\n// @dynamic\n@Component({\n selector: 'tui-input-number',\n templateUrl: './input-number.template.html',\n styleUrls: ['./input-number.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputNumberComponent),\n },\n {\n provide: AbstractTuiControl,\n useExisting: forwardRef(() => TuiInputNumberComponent),\n },\n ],\n})\nexport class TuiInputNumberComponent\n extends AbstractTuiNullableControl<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly primitiveTextfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n min = -Infinity;\n\n @Input()\n @tuiDefaultProp()\n max = Infinity;\n\n @Input()\n @tuiDefaultProp()\n decimal: TuiDecimalT = 'not-zero';\n\n @Input()\n @tuiDefaultProp()\n precision = 2;\n\n @Input()\n @tuiDefaultProp()\n prefix = '';\n\n @Input()\n @tuiDefaultProp()\n postfix = '';\n\n @ContentChild(PolymorpheusOutletComponent)\n readonly polymorpheusValueContent?: unknown;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n @Inject(TUI_IS_IOS) private readonly isIOS: boolean,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.primitiveTextfield || this.computedDisabled\n ? null\n : this.primitiveTextfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.primitiveTextfield && this.primitiveTextfield.focused;\n }\n\n get isNegativeAllowed(): boolean {\n return this.min < 0;\n }\n\n get inputMode(): TuiInputModeT {\n return this.decimal === 'never' ? 'numeric' : 'decimal';\n }\n\n get calculatedMaxLength(): number {\n const decimalPart =\n this.decimal !== 'never' &&\n this.nativeValue.includes(this.numberFormat.decimalSeparator);\n const precision = decimalPart ? this.precision + 1 : 0;\n const takeThousand = this.numberFormat.thousandSeparator.repeat(5).length;\n\n return DEFAULT_MAX_LENGTH + precision + takeThousand;\n }\n\n get formattedValue(): string {\n return this.getFormattedValue(this.value || 0);\n }\n\n get computedValue(): string {\n if (this.focused) {\n return this.nativeValue;\n }\n\n return this.value === null ? '' : this.formattedValue;\n }\n\n @HostListener('keydown.0', ['$event'])\n onZero(event: KeyboardEvent) {\n const decimal =\n this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';\n const {nativeFocusableElement} = this;\n\n if (\n decimal.length < this.precision ||\n !nativeFocusableElement ||\n !nativeFocusableElement.selectionStart ||\n this.nativeValue[nativeFocusableElement.selectionStart] !== '0'\n ) {\n return;\n }\n\n event.preventDefault();\n nativeFocusableElement.selectionStart++;\n }\n\n mask: TuiMapper<boolean, TextMaskConfig> = (\n allowNegative: boolean,\n decimal: TuiDecimalT,\n decimalLimit: number,\n nativeFocusableElement: HTMLInputElement | null,\n ) =>\n ({\n mask: tuiCreateNumberMask({\n allowNegative,\n decimalLimit,\n allowDecimal: decimal !== 'never',\n requireDecimal: decimal === 'always',\n decimalSymbol: this.numberFormat.decimalSeparator,\n thousandSymbol: this.numberFormat.thousandSeparator,\n autoCorrectDecimalSymbol: tuiEnableAutoCorrectDecimalSymbol(\n this.numberFormat,\n ),\n }),\n pipe: tuiCreateAutoCorrectedNumberPipe(\n decimal === 'always' ? decimalLimit : 0,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n nativeFocusableElement,\n allowNegative,\n this.isIOS,\n ),\n guide: false,\n } as TuiTextMaskOptions as unknown as TextMaskConfig);\n\n onValueChange(value: string) {\n if (maskedMoneyValueIsEmpty(value)) {\n this.updateValue(null);\n\n return;\n }\n\n if (this.isNativeValueNotFinished) {\n return;\n }\n\n const capped = this.absoluteCapInputValue(value);\n\n if (capped === null || isNaN(capped)) {\n return;\n }\n\n this.updateValue(capped);\n\n if (\n capped !==\n maskedNumberStringToNumber(\n value,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n )\n ) {\n this.nativeValue = this.formattedValue;\n }\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (!TUI_DECIMAL_SYMBOLS.includes(event.key)) {\n return;\n }\n\n if (this.decimal === 'never') {\n event.preventDefault();\n\n return;\n }\n\n if (this.nativeValue.includes(this.numberFormat.decimalSeparator)) {\n event.preventDefault();\n this.setCaretAfterComma();\n }\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const nativeNumberValue = this.nativeNumberValue;\n\n if (isNaN(nativeNumberValue)) {\n this.clear();\n\n return;\n }\n\n const clamped = Math.min(this.max, Math.max(this.min, nativeNumberValue));\n\n this.updateValue(clamped);\n this.nativeValue = this.formattedValue;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n getFormattedValue(value: number): string {\n const absValue = Math.abs(value);\n const hasFraction = absValue % 1 > 0;\n let limit = this.decimal === 'always' || hasFraction ? this.precision : 0;\n\n const fraction = hasFraction ? getFractionPartPadded(value, this.precision) : '';\n\n if (this.focused && this.decimal !== 'always') {\n limit = fraction.length;\n }\n\n return formatNumber(\n value,\n limit,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n this.numberFormat.zeroPadding,\n );\n }\n\n private get isNativeValueNotFinished(): boolean {\n const nativeNumberValue = this.nativeNumberValue;\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n set nativeValue(value: string) {\n if (!this.primitiveTextfield || !this.nativeFocusableElement) {\n return;\n }\n\n this.primitiveTextfield.value = value;\n this.nativeFocusableElement.value = value;\n }\n\n private get nativeNumberValue(): number {\n return maskedNumberStringToNumber(\n this.nativeValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private clear() {\n this.nativeValue = '';\n this.updateValue(null);\n }\n\n private absoluteCapInputValue(inputValue: string): number | null {\n const value = maskedNumberStringToNumber(\n inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const capped =\n value < 0\n ? Math.max(Math.max(this.min, Number.MIN_SAFE_INTEGER), value)\n : Math.min(value, Math.min(this.max, Number.MAX_SAFE_INTEGER));\n const ineligibleValue = isNaN(capped) || capped < this.min || capped > this.max;\n\n return ineligibleValue ? null : capped;\n }\n\n private setCaretAfterComma() {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n const afterCommaPosition = this.nativeValue.length - this.precision;\n\n this.nativeFocusableElement.setSelectionRange(\n afterCommaPosition,\n afterCommaPosition,\n );\n }\n}\n","import {Directive, DoCheck, forwardRef} from '@angular/core';\nimport {TUI_TEXTFIELD_HOST, TuiAbstractTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputNumberComponent} from './input-number.component';\n\n@Directive({\n selector: 'tui-input-number',\n providers: [\n {\n provide: TUI_TEXTFIELD_HOST,\n useExisting: forwardRef(() => TuiInputNumberDirective),\n },\n ],\n})\nexport class TuiInputNumberDirective\n extends TuiAbstractTextfieldHost<TuiInputNumberComponent>\n implements DoCheck\n{\n input?: HTMLInputElement;\n\n get value(): string {\n return this.host.computedValue;\n }\n\n onValueChange(value: string) {\n this.host.onValueChange(value);\n }\n\n process(input: HTMLInputElement) {\n this.input = input;\n }\n\n ngDoCheck() {\n if (!this.input) {\n return;\n }\n\n this.input.maxLength = this.host.calculatedMaxLength;\n this.input.inputMode = 'decimal';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputNumberComponent} from './input-number.component';\nimport {TuiInputNumberDirective} from './input-number.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n TextMaskModule,\n TuiMapperPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n PolymorpheusModule,\n ],\n declarations: [TuiInputNumberComponent, TuiInputNumberDirective],\n exports: [TuiInputNumberComponent, TuiInputNumberDirective, TuiTextfieldComponent],\n})\nexport class TuiInputNumberModule {}\n"]}
@@ -772,6 +772,9 @@
772
772
  var value = extractValueFromEvent(event).replace(core$1.TUI_NON_DIGITS_REGEXP, '');
773
773
  var countryIsoCode = this.extractCountryCode(value);
774
774
  if (!countryIsoCode) {
775
+ this.updateValue(("" + this.inputPhoneCountryCode + value)
776
+ .replace(core$1.TUI_MASK_SYMBOLS_REGEXP, '')
777
+ .slice(0, this.getMaxAllowedLength(this.countryIsoCode)));
775
778
  return;
776
779
  }
777
780
  if (countryIsoCode === i18n.TuiCountryIsoCode.RU) {
@@ -833,7 +836,8 @@
833
836
  /^(?!880[1-9 ])/.test(value) &&
834
837
  value.length + 1 === _this.getMaxAllowedLength(i18n.TuiCountryIsoCode.RU);
835
838
  return (ruCodeTest ||
836
- value.startsWith(_this.isoToCountryCode(countryIsoCode).replace('+', '')));
839
+ (value.startsWith(_this.isoToCountryCode(countryIsoCode).replace('+', '')) &&
840
+ value.length + 1 === _this.getMaxAllowedLength(countryIsoCode)));
837
841
  });
838
842
  };
839
843
  var TuiInputPhoneInternationalComponent_1;