@taiga-ui/kit 2.26.0 → 2.29.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 (739) hide show
  1. package/README.md +4 -5
  2. package/abstract/input-slider.d.ts +5 -5
  3. package/abstract/slider/slider.d.ts +5 -5
  4. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  5. package/bundles/taiga-ui-kit-abstract.umd.js +10 -10
  6. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  7. package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
  8. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-kit-components-accordion.umd.js +23 -7
  10. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  11. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +2 -2
  12. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  13. package/bundles/taiga-ui-kit-components-action.umd.js +3 -3
  14. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  15. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  16. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +7 -7
  18. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  19. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
  20. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-kit-components-carousel.umd.js +189 -243
  24. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  25. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +2 -2
  26. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +3 -3
  28. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  29. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  30. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +3 -3
  32. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  34. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
  36. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  38. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-combo-box.umd.js +18 -19
  40. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  42. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +7 -7
  44. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
  46. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-field-error.umd.js +20 -8
  48. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +2 -2
  50. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-filter.umd.js +8 -8
  52. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  54. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -4
  56. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  58. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-count.umd.js +3 -3
  60. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  62. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +26 -18
  64. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
  66. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +40 -22
  68. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  70. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input-date.umd.js +26 -18
  72. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
  74. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -1
  76. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  78. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-input-inline.umd.js +7 -6
  80. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  82. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -3
  84. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  86. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -3
  88. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  90. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-input-number.umd.js +20 -34
  92. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  93. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  94. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-input-password.umd.js +3 -3
  96. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  98. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +30 -28
  100. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  102. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-input-phone.umd.js +6 -6
  104. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  106. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-input-slider.umd.js +3 -3
  108. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  110. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  111. package/bundles/taiga-ui-kit-components-input-tag.umd.js +31 -31
  112. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  113. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  114. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  115. package/bundles/taiga-ui-kit-components-input-time.umd.js +16 -16
  116. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  117. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  118. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
  120. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  121. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  122. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  123. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +7 -7
  124. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  125. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  126. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  127. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +1 -1
  128. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  129. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  130. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-kit-components-multi-select.umd.js +18 -18
  132. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  133. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  134. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  135. package/bundles/taiga-ui-kit-components-pagination.umd.js +4 -4
  136. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  137. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  138. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  139. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +13 -21
  140. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  141. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +2 -2
  142. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-kit-components-progress.umd.js +3 -3
  144. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  145. package/bundles/taiga-ui-kit-components-progress.umd.min.js +1 -1
  146. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  147. package/bundles/taiga-ui-kit-components-radio-block.umd.js +3 -3
  148. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +3 -3
  154. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  155. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-kit-components-radio-list.umd.js +7 -7
  158. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  160. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  161. package/bundles/taiga-ui-kit-components-radio.umd.js +3 -3
  162. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  163. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  164. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  165. package/bundles/taiga-ui-kit-components-select.umd.js +11 -14
  166. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  167. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  168. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-kit-components-stepper.umd.js +18 -18
  170. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  171. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  172. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  173. package/bundles/taiga-ui-kit-components-tabs.umd.js +22 -22
  174. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  175. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  176. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  177. package/bundles/taiga-ui-kit-components-text-area.umd.js +4 -4
  178. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  179. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
  180. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-kit-components-toggle.umd.js +3 -3
  182. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  183. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  184. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  185. package/bundles/taiga-ui-kit-components-tree.umd.js +5 -5
  186. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  187. package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
  188. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  189. package/bundles/taiga-ui-kit-constants.umd.js +8 -0
  190. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  191. package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
  192. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +2 -4
  193. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  194. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +1 -1
  195. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  196. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +1 -1
  197. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  198. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  199. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  200. package/bundles/taiga-ui-kit-directives-highlight.umd.js +2 -2
  201. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js +1 -1
  203. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  204. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +7 -1
  205. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  207. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  208. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  209. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  210. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +2 -2
  211. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  212. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
  213. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  214. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  215. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  216. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  217. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  218. package/bundles/taiga-ui-kit-utils-mask.umd.js +42 -11
  219. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  220. package/bundles/taiga-ui-kit-utils-mask.umd.min.js +2 -2
  221. package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
  222. package/components/accordion/accordion-item/accordion-item-eager-content.directive.d.ts +2 -0
  223. package/components/accordion/accordion-item/accordion-item.component.d.ts +4 -2
  224. package/components/accordion/index.d.ts +1 -0
  225. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  226. package/components/action/action.component.d.ts +1 -1
  227. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  228. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  229. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  230. package/components/calendar-range/calendar-range.component.d.ts +1 -1
  231. package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
  232. package/components/carousel/carousel-autoscroll.directive.d.ts +5 -0
  233. package/components/carousel/carousel-scroll.directive.d.ts +6 -0
  234. package/components/carousel/carousel.component.d.ts +22 -11
  235. package/components/carousel/carousel.directive.d.ts +3 -10
  236. package/components/carousel/index.d.ts +2 -2
  237. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
  238. package/components/checkbox/checkbox.component.d.ts +1 -1
  239. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  240. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  241. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  242. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -1
  243. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  244. package/components/combo-box/combo-box.component.d.ts +5 -5
  245. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  246. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
  247. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  248. package/components/field-error/field-error.component.d.ts +3 -2
  249. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  250. package/components/filter/filter.component.d.ts +2 -2
  251. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  252. package/components/input/input.component.d.ts +3 -3
  253. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  254. package/components/input-copy/input-copy.component.d.ts +2 -2
  255. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  256. package/components/input-count/input-count.component.d.ts +2 -2
  257. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  258. package/components/input-date/input-date.component.d.ts +6 -5
  259. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  260. package/components/input-date-range/input-date-range.component.d.ts +5 -4
  261. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  262. package/components/input-date-time/input-date-time.component.d.ts +6 -5
  263. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  264. package/components/input-file/input-file.component.d.ts +1 -1
  265. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  266. package/components/input-inline/input-inline.component.d.ts +1 -1
  267. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  268. package/components/input-month/input-month.component.d.ts +1 -1
  269. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  270. package/components/input-month-range/input-month-range.component.d.ts +1 -1
  271. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  272. package/components/input-number/input-number.component.d.ts +3 -4
  273. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  274. package/components/input-password/input-password.component.d.ts +2 -2
  275. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  276. package/components/input-phone/input-phone.component.d.ts +3 -3
  277. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  278. package/components/input-phone-international/country-iso-code.d.ts +1 -1
  279. package/components/input-phone-international/input-phone-international.component.d.ts +6 -6
  280. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  281. package/components/input-slider/input-slider.component.d.ts +1 -1
  282. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  283. package/components/input-tag/input-tag.component.d.ts +12 -12
  284. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  285. package/components/input-time/input-time.component.d.ts +4 -4
  286. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  287. package/components/line-clamp/line-clamp.component.d.ts +4 -4
  288. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  289. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  290. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  291. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  292. package/components/multi-select/multi-select.component.d.ts +7 -7
  293. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  294. package/components/pagination/pagination.component.d.ts +1 -1
  295. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  296. package/components/pdf-viewer/pdf-viewer.component.d.ts +1 -4
  297. package/components/pdf-viewer/pdf-viewer.service.d.ts +7 -2
  298. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -1
  299. package/components/progress/progress-circle/progress-circle.component.d.ts +1 -1
  300. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  301. package/components/radio/radio.component.d.ts +1 -1
  302. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  303. package/components/radio-block/radio-block.component.d.ts +1 -1
  304. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  305. package/components/radio-group/radio-group.component.d.ts +1 -1
  306. package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
  307. package/components/radio-labeled/radio-labeled.component.d.ts +1 -1
  308. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  309. package/components/radio-list/radio-list.component.d.ts +3 -3
  310. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  311. package/components/select/select.component.d.ts +3 -3
  312. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  313. package/components/stepper/stepper.component.d.ts +3 -3
  314. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  315. package/components/tabs/tabs/tabs.component.d.ts +2 -2
  316. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +2 -2
  317. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  318. package/components/tabs/underline/underline.component.d.ts +2 -2
  319. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  320. package/components/text-area/text-area.component.d.ts +1 -1
  321. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  322. package/components/toggle/toggle.component.d.ts +1 -1
  323. package/components/tree/components/tree/tree.component.d.ts +1 -1
  324. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  325. package/components/tree/directives/tree-item-controller.directive.d.ts +1 -1
  326. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  327. package/constants/masks.d.ts +8 -0
  328. package/constants/taiga-ui-kit-constants.metadata.json +1 -1
  329. package/directives/dropdown-context/dropdown-context.directive.d.ts +1 -1
  330. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  331. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +3 -3
  332. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  333. package/directives/highlight/highlight.directive.d.ts +2 -2
  334. package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
  335. package/directives/lazy-loading/lazy-loading.directive.d.ts +1 -1
  336. package/directives/lazy-loading/lazy-loading.service.d.ts +1 -1
  337. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  338. package/directives/present/present.directive.d.ts +1 -1
  339. package/directives/present/taiga-ui-kit-directives-present.metadata.json +1 -1
  340. package/esm2015/abstract/input-slider.js +3 -3
  341. package/esm2015/abstract/slider/slider.js +9 -9
  342. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  343. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +11 -0
  344. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +10 -6
  345. package/esm2015/components/accordion/accordion.module.js +4 -1
  346. package/esm2015/components/accordion/index.js +2 -1
  347. package/esm2015/components/action/action.component.js +4 -4
  348. package/esm2015/components/calendar-month/calendar-month.component.js +6 -6
  349. package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
  350. package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
  351. package/esm2015/components/carousel/carousel-scroll.directive.js +26 -0
  352. package/esm2015/components/carousel/carousel.component.js +90 -33
  353. package/esm2015/components/carousel/carousel.directive.js +10 -40
  354. package/esm2015/components/carousel/carousel.module.js +13 -9
  355. package/esm2015/components/carousel/index.js +3 -3
  356. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  357. package/esm2015/components/checkbox-block/checkbox-block.component.js +4 -4
  358. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  359. package/esm2015/components/combo-box/combo-box.component.js +19 -20
  360. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  361. package/esm2015/components/field-error/field-error.component.js +15 -6
  362. package/esm2015/components/filter/filter.component.js +9 -9
  363. package/esm2015/components/input/input.component.js +8 -8
  364. package/esm2015/components/input-copy/input-copy.component.js +5 -5
  365. package/esm2015/components/input-count/input-count.component.js +4 -4
  366. package/esm2015/components/input-date/input-date.component.js +30 -22
  367. package/esm2015/components/input-date-range/input-date-range.component.js +30 -22
  368. package/esm2015/components/input-date-time/input-date-time.component.js +45 -25
  369. package/esm2015/components/input-file/input-file.component.js +2 -2
  370. package/esm2015/components/input-inline/input-inline.component.js +8 -7
  371. package/esm2015/components/input-month/input-month.component.js +5 -4
  372. package/esm2015/components/input-month-range/input-month-range.component.js +5 -4
  373. package/esm2015/components/input-number/input-number.component.js +21 -31
  374. package/esm2015/components/input-password/input-password.component.js +4 -4
  375. package/esm2015/components/input-phone/input-phone.component.js +7 -7
  376. package/esm2015/components/input-phone-international/const/countries.js +8 -6
  377. package/esm2015/components/input-phone-international/country-iso-code.js +2 -2
  378. package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -20
  379. package/esm2015/components/input-slider/input-slider.component.js +4 -4
  380. package/esm2015/components/input-tag/input-tag.component.js +32 -32
  381. package/esm2015/components/input-time/input-time.component.js +17 -17
  382. package/esm2015/components/line-clamp/line-clamp.component.js +8 -8
  383. package/esm2015/components/marker-icon/marker-icon.component.js +2 -2
  384. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  385. package/esm2015/components/multi-select/multi-select.component.js +15 -15
  386. package/esm2015/components/pagination/pagination.component.js +5 -5
  387. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -20
  388. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +4 -1
  389. package/esm2015/components/progress/pipes/abstract-color-segments.js +1 -1
  390. package/esm2015/components/progress/progress-circle/progress-circle.component.js +4 -4
  391. package/esm2015/components/radio/radio.component.js +4 -4
  392. package/esm2015/components/radio-block/radio-block.component.js +4 -4
  393. package/esm2015/components/radio-group/radio-group.component.js +1 -1
  394. package/esm2015/components/radio-labeled/radio-labeled.component.js +4 -4
  395. package/esm2015/components/radio-list/radio-list.component.js +8 -8
  396. package/esm2015/components/select/select.component.js +12 -15
  397. package/esm2015/components/stepper/stepper.component.js +18 -18
  398. package/esm2015/components/tabs/tabs/tabs.component.js +16 -16
  399. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  400. package/esm2015/components/tabs/underline/underline.component.js +3 -3
  401. package/esm2015/components/text-area/text-area.component.js +5 -5
  402. package/esm2015/components/toggle/toggle.component.js +4 -4
  403. package/esm2015/components/tree/components/tree/tree.component.js +4 -4
  404. package/esm2015/components/tree/components/tree-item/tree-item.component.js +2 -2
  405. package/esm2015/components/tree/directives/tree-item-controller.directive.js +2 -2
  406. package/esm2015/constants/masks.js +9 -1
  407. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +3 -5
  408. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  409. package/esm2015/directives/highlight/highlight.directive.js +3 -3
  410. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +4 -2
  411. package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
  412. package/esm2015/directives/present/present.directive.js +1 -1
  413. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  414. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  415. package/esm2015/tokens/validation-errors.js +1 -1
  416. package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +6 -4
  417. package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +9 -6
  418. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -5
  419. package/esm2015/utils/mask/create-date-mask.js +16 -0
  420. package/esm2015/utils/mask/create-date-range-mask.js +14 -0
  421. package/esm2015/utils/mask/index.js +3 -1
  422. package/esm5/abstract/input-slider.js +3 -3
  423. package/esm5/abstract/slider/slider.js +9 -9
  424. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  425. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +14 -0
  426. package/esm5/components/accordion/accordion-item/accordion-item.component.js +10 -6
  427. package/esm5/components/accordion/accordion.module.js +4 -1
  428. package/esm5/components/accordion/index.js +2 -1
  429. package/esm5/components/action/action.component.js +4 -4
  430. package/esm5/components/calendar-month/calendar-month.component.js +8 -8
  431. package/esm5/components/calendar-range/calendar-range.component.js +1 -1
  432. package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
  433. package/esm5/components/carousel/carousel-scroll.directive.js +34 -0
  434. package/esm5/components/carousel/carousel.component.js +102 -34
  435. package/esm5/components/carousel/carousel.directive.js +13 -50
  436. package/esm5/components/carousel/carousel.module.js +13 -9
  437. package/esm5/components/carousel/index.js +3 -3
  438. package/esm5/components/checkbox/checkbox.component.js +4 -4
  439. package/esm5/components/checkbox-block/checkbox-block.component.js +4 -4
  440. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  441. package/esm5/components/combo-box/combo-box.component.js +19 -20
  442. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  443. package/esm5/components/field-error/field-error.component.js +19 -6
  444. package/esm5/components/filter/filter.component.js +9 -9
  445. package/esm5/components/input/input.component.js +8 -8
  446. package/esm5/components/input-copy/input-copy.component.js +5 -5
  447. package/esm5/components/input-count/input-count.component.js +4 -4
  448. package/esm5/components/input-date/input-date.component.js +30 -22
  449. package/esm5/components/input-date-range/input-date-range.component.js +30 -22
  450. package/esm5/components/input-date-time/input-date-time.component.js +44 -26
  451. package/esm5/components/input-file/input-file.component.js +2 -2
  452. package/esm5/components/input-inline/input-inline.component.js +8 -7
  453. package/esm5/components/input-month/input-month.component.js +5 -4
  454. package/esm5/components/input-month-range/input-month-range.component.js +5 -4
  455. package/esm5/components/input-number/input-number.component.js +21 -35
  456. package/esm5/components/input-password/input-password.component.js +4 -4
  457. package/esm5/components/input-phone/input-phone.component.js +7 -7
  458. package/esm5/components/input-phone-international/const/countries.js +8 -6
  459. package/esm5/components/input-phone-international/country-iso-code.js +2 -2
  460. package/esm5/components/input-phone-international/input-phone-international.component.js +23 -23
  461. package/esm5/components/input-slider/input-slider.component.js +4 -4
  462. package/esm5/components/input-tag/input-tag.component.js +32 -32
  463. package/esm5/components/input-time/input-time.component.js +17 -17
  464. package/esm5/components/line-clamp/line-clamp.component.js +8 -8
  465. package/esm5/components/marker-icon/marker-icon.component.js +2 -2
  466. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  467. package/esm5/components/multi-select/multi-select.component.js +15 -15
  468. package/esm5/components/pagination/pagination.component.js +5 -5
  469. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -20
  470. package/esm5/components/pdf-viewer/pdf-viewer.service.js +5 -1
  471. package/esm5/components/progress/pipes/abstract-color-segments.js +1 -1
  472. package/esm5/components/progress/progress-circle/progress-circle.component.js +4 -4
  473. package/esm5/components/radio/radio.component.js +4 -4
  474. package/esm5/components/radio-block/radio-block.component.js +4 -4
  475. package/esm5/components/radio-group/radio-group.component.js +1 -1
  476. package/esm5/components/radio-labeled/radio-labeled.component.js +4 -4
  477. package/esm5/components/radio-list/radio-list.component.js +8 -8
  478. package/esm5/components/select/select.component.js +12 -15
  479. package/esm5/components/stepper/stepper.component.js +19 -19
  480. package/esm5/components/tabs/tabs/tabs.component.js +17 -17
  481. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  482. package/esm5/components/tabs/underline/underline.component.js +3 -3
  483. package/esm5/components/text-area/text-area.component.js +5 -5
  484. package/esm5/components/toggle/toggle.component.js +4 -4
  485. package/esm5/components/tree/components/tree/tree.component.js +4 -4
  486. package/esm5/components/tree/components/tree-item/tree-item.component.js +2 -2
  487. package/esm5/components/tree/directives/tree-item-controller.directive.js +2 -2
  488. package/esm5/constants/masks.js +9 -1
  489. package/esm5/directives/dropdown-context/dropdown-context.directive.js +3 -5
  490. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  491. package/esm5/directives/highlight/highlight.directive.js +3 -3
  492. package/esm5/directives/lazy-loading/lazy-loading.directive.js +8 -2
  493. package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
  494. package/esm5/directives/present/present.directive.js +1 -1
  495. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
  496. package/esm5/pipes/stringify/stringify.pipe.js +1 -1
  497. package/esm5/tokens/validation-errors.js +1 -1
  498. package/esm5/utils/mask/create-auto-corrected-date-pipe.js +6 -4
  499. package/esm5/utils/mask/create-auto-corrected-date-range-pipe.js +9 -6
  500. package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +5 -5
  501. package/esm5/utils/mask/create-date-mask.js +17 -0
  502. package/esm5/utils/mask/create-date-range-mask.js +13 -0
  503. package/esm5/utils/mask/index.js +3 -1
  504. package/fesm2015/taiga-ui-kit-abstract.js +10 -10
  505. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  506. package/fesm2015/taiga-ui-kit-components-accordion.js +21 -9
  507. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  508. package/fesm2015/taiga-ui-kit-components-action.js +4 -4
  509. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  510. package/fesm2015/taiga-ui-kit-components-calendar-month.js +5 -5
  511. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  512. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  513. package/fesm2015/taiga-ui-kit-components-carousel.js +158 -214
  514. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  515. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +4 -4
  516. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  517. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  518. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  519. package/fesm2015/taiga-ui-kit-components-checkbox.js +4 -4
  520. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  521. package/fesm2015/taiga-ui-kit-components-combo-box.js +20 -21
  522. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  523. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  524. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  525. package/fesm2015/taiga-ui-kit-components-field-error.js +14 -5
  526. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  527. package/fesm2015/taiga-ui-kit-components-filter.js +9 -9
  528. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  529. package/fesm2015/taiga-ui-kit-components-input-copy.js +5 -5
  530. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  531. package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
  532. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  533. package/fesm2015/taiga-ui-kit-components-input-date-range.js +30 -22
  534. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  535. package/fesm2015/taiga-ui-kit-components-input-date-time.js +45 -25
  536. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  537. package/fesm2015/taiga-ui-kit-components-input-date.js +30 -22
  538. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  539. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -1
  540. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  541. package/fesm2015/taiga-ui-kit-components-input-inline.js +8 -7
  542. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  543. package/fesm2015/taiga-ui-kit-components-input-month-range.js +5 -4
  544. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  545. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -4
  546. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  547. package/fesm2015/taiga-ui-kit-components-input-number.js +21 -31
  548. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  549. package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
  550. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  551. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +28 -26
  552. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  553. package/fesm2015/taiga-ui-kit-components-input-phone.js +8 -8
  554. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  555. package/fesm2015/taiga-ui-kit-components-input-slider.js +4 -4
  556. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  557. package/fesm2015/taiga-ui-kit-components-input-tag.js +34 -34
  558. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  559. package/fesm2015/taiga-ui-kit-components-input-time.js +17 -17
  560. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  561. package/fesm2015/taiga-ui-kit-components-input.js +9 -9
  562. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  563. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
  564. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  565. package/fesm2015/taiga-ui-kit-components-marker-icon.js +1 -1
  566. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  567. package/fesm2015/taiga-ui-kit-components-multi-select.js +20 -20
  568. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  569. package/fesm2015/taiga-ui-kit-components-pagination.js +6 -6
  570. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  571. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +9 -19
  572. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  573. package/fesm2015/taiga-ui-kit-components-progress.js +3 -3
  574. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  575. package/fesm2015/taiga-ui-kit-components-radio-block.js +4 -4
  576. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  577. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  578. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +4 -4
  579. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  580. package/fesm2015/taiga-ui-kit-components-radio-list.js +9 -9
  581. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  582. package/fesm2015/taiga-ui-kit-components-radio.js +4 -4
  583. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  584. package/fesm2015/taiga-ui-kit-components-select.js +13 -16
  585. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  586. package/fesm2015/taiga-ui-kit-components-stepper.js +18 -18
  587. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  588. package/fesm2015/taiga-ui-kit-components-tabs.js +22 -22
  589. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  590. package/fesm2015/taiga-ui-kit-components-text-area.js +5 -5
  591. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  592. package/fesm2015/taiga-ui-kit-components-toggle.js +4 -4
  593. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-components-tree.js +5 -5
  595. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  596. package/fesm2015/taiga-ui-kit-constants.js +8 -0
  597. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  598. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +2 -4
  599. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  600. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  601. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  602. package/fesm2015/taiga-ui-kit-directives-highlight.js +2 -2
  603. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  604. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +3 -1
  605. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  606. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  607. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  608. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  609. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  610. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  611. package/fesm2015/taiga-ui-kit-utils-mask.js +44 -13
  612. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  613. package/fesm5/taiga-ui-kit-abstract.js +10 -10
  614. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  615. package/fesm5/taiga-ui-kit-components-accordion.js +24 -9
  616. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  617. package/fesm5/taiga-ui-kit-components-action.js +4 -4
  618. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  619. package/fesm5/taiga-ui-kit-components-calendar-month.js +7 -7
  620. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  621. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  622. package/fesm5/taiga-ui-kit-components-carousel.js +190 -245
  623. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
  624. package/fesm5/taiga-ui-kit-components-checkbox-block.js +4 -4
  625. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  626. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  627. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  628. package/fesm5/taiga-ui-kit-components-checkbox.js +4 -4
  629. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  630. package/fesm5/taiga-ui-kit-components-combo-box.js +20 -21
  631. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  632. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  633. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  634. package/fesm5/taiga-ui-kit-components-field-error.js +18 -5
  635. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  636. package/fesm5/taiga-ui-kit-components-filter.js +9 -9
  637. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  638. package/fesm5/taiga-ui-kit-components-input-copy.js +5 -5
  639. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  640. package/fesm5/taiga-ui-kit-components-input-count.js +4 -4
  641. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  642. package/fesm5/taiga-ui-kit-components-input-date-range.js +30 -22
  643. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  644. package/fesm5/taiga-ui-kit-components-input-date-time.js +44 -26
  645. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  646. package/fesm5/taiga-ui-kit-components-input-date.js +30 -22
  647. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  648. package/fesm5/taiga-ui-kit-components-input-file.js +1 -1
  649. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  650. package/fesm5/taiga-ui-kit-components-input-inline.js +8 -7
  651. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  652. package/fesm5/taiga-ui-kit-components-input-month-range.js +5 -4
  653. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  654. package/fesm5/taiga-ui-kit-components-input-month.js +5 -4
  655. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  656. package/fesm5/taiga-ui-kit-components-input-number.js +21 -35
  657. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  658. package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
  659. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  660. package/fesm5/taiga-ui-kit-components-input-phone-international.js +31 -29
  661. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  662. package/fesm5/taiga-ui-kit-components-input-phone.js +8 -8
  663. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  664. package/fesm5/taiga-ui-kit-components-input-slider.js +4 -4
  665. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  666. package/fesm5/taiga-ui-kit-components-input-tag.js +34 -34
  667. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  668. package/fesm5/taiga-ui-kit-components-input-time.js +17 -17
  669. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  670. package/fesm5/taiga-ui-kit-components-input.js +9 -9
  671. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  672. package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
  673. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  674. package/fesm5/taiga-ui-kit-components-marker-icon.js +1 -1
  675. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  676. package/fesm5/taiga-ui-kit-components-multi-select.js +20 -20
  677. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  678. package/fesm5/taiga-ui-kit-components-pagination.js +6 -6
  679. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  680. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -19
  681. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  682. package/fesm5/taiga-ui-kit-components-progress.js +3 -3
  683. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  684. package/fesm5/taiga-ui-kit-components-radio-block.js +4 -4
  685. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  686. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  687. package/fesm5/taiga-ui-kit-components-radio-labeled.js +4 -4
  688. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  689. package/fesm5/taiga-ui-kit-components-radio-list.js +9 -9
  690. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  691. package/fesm5/taiga-ui-kit-components-radio.js +4 -4
  692. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  693. package/fesm5/taiga-ui-kit-components-select.js +13 -16
  694. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  695. package/fesm5/taiga-ui-kit-components-stepper.js +19 -19
  696. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  697. package/fesm5/taiga-ui-kit-components-tabs.js +23 -23
  698. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  699. package/fesm5/taiga-ui-kit-components-text-area.js +5 -5
  700. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  701. package/fesm5/taiga-ui-kit-components-toggle.js +4 -4
  702. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  703. package/fesm5/taiga-ui-kit-components-tree.js +5 -5
  704. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  705. package/fesm5/taiga-ui-kit-constants.js +8 -0
  706. package/fesm5/taiga-ui-kit-constants.js.map +1 -1
  707. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +2 -4
  708. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  709. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  710. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  711. package/fesm5/taiga-ui-kit-directives-highlight.js +2 -2
  712. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  713. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +7 -1
  714. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  715. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  716. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +2 -2
  717. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  718. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  719. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  720. package/fesm5/taiga-ui-kit-utils-mask.js +42 -13
  721. package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
  722. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
  723. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  724. package/package.json +6 -6
  725. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  726. package/tokens/validation-errors.d.ts +2 -1
  727. package/utils/mask/create-auto-corrected-date-pipe.d.ts +7 -3
  728. package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +7 -2
  729. package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +8 -3
  730. package/utils/mask/create-date-mask.d.ts +3 -0
  731. package/utils/mask/create-date-range-mask.d.ts +3 -0
  732. package/utils/mask/index.d.ts +2 -0
  733. package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
  734. package/components/carousel/carousel-draggable.directive.d.ts +0 -16
  735. package/components/carousel/carousel-scroller.directive.d.ts +0 -17
  736. package/esm2015/components/carousel/carousel-draggable.directive.js +0 -67
  737. package/esm2015/components/carousel/carousel-scroller.directive.js +0 -76
  738. package/esm5/components/carousel/carousel-draggable.directive.js +0 -73
  739. package/esm5/components/carousel/carousel-scroller.directive.js +0 -82
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, ViewChild, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiMapperPipeModule } from '@taiga-ui/cdk';
5
5
  import { tuiCreateNumberMask, tuiCreateAutoCorrectedNumberPipe, formatNumber, maskedMoneyValueIsEmpty, maskedNumberStringToNumber, TUI_DECIMAL_SYMBOLS, TUI_NUMBER_FORMAT, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
@@ -19,17 +19,17 @@ let TuiInputNumberComponent = TuiInputNumberComponent_1 = class TuiInputNumberCo
19
19
  this.precision = 2;
20
20
  this.prefix = '';
21
21
  this.postfix = '';
22
- this.mask = (allowNegative, decimal, precision, nativeFocusableElement) => ({
22
+ this.mask = (allowNegative, decimal, decimalLimit, nativeFocusableElement) => ({
23
23
  mask: tuiCreateNumberMask({
24
- allowNegative: allowNegative,
24
+ allowNegative,
25
+ decimalLimit,
25
26
  allowDecimal: decimal !== 'never',
26
- decimalLimit: precision,
27
27
  requireDecimal: decimal === 'always',
28
28
  autoCorrectDecimalSymbol: false,
29
29
  decimalSymbol: this.numberFormat.decimalSeparator,
30
30
  thousandSymbol: this.numberFormat.thousandSeparator,
31
31
  }),
32
- pipe: tuiCreateAutoCorrectedNumberPipe(decimal === 'always' ? precision : 0, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator, nativeFocusableElement || undefined),
32
+ pipe: tuiCreateAutoCorrectedNumberPipe(decimal === 'always' ? decimalLimit : 0, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator, nativeFocusableElement || undefined, allowNegative),
33
33
  guide: false,
34
34
  });
35
35
  }
@@ -68,13 +68,22 @@ let TuiInputNumberComponent = TuiInputNumberComponent_1 = class TuiInputNumberCo
68
68
  return formatNumber(value, limit, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator, this.numberFormat.zeroPadding);
69
69
  }
70
70
  get computedValue() {
71
- if (this.focused || !this.isNativeValueInLimit) {
71
+ if (this.focused) {
72
72
  return this.nativeValue;
73
73
  }
74
- if (this.value === null) {
75
- return maskedMoneyValueIsEmpty(this.nativeValue) ? this.nativeValue : '';
74
+ return this.value === null ? '' : this.formattedValue;
75
+ }
76
+ onZero(event) {
77
+ const decimal = this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';
78
+ const { nativeFocusableElement } = this;
79
+ if (decimal.length < this.precision ||
80
+ !nativeFocusableElement ||
81
+ !nativeFocusableElement.selectionStart ||
82
+ this.nativeValue[nativeFocusableElement.selectionStart] !== '0') {
83
+ return;
76
84
  }
77
- return this.formattedValue;
85
+ event.preventDefault();
86
+ nativeFocusableElement.selectionStart++;
78
87
  }
79
88
  onValue(value) {
80
89
  if (maskedMoneyValueIsEmpty(value)) {
@@ -127,25 +136,6 @@ let TuiInputNumberComponent = TuiInputNumberComponent_1 = class TuiInputNumberCo
127
136
  onPressed(pressed) {
128
137
  this.updatePressed(pressed);
129
138
  }
130
- onZero(event) {
131
- const decimal = this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';
132
- const { nativeFocusableElement } = this;
133
- if (decimal.length < this.precision ||
134
- !nativeFocusableElement ||
135
- !nativeFocusableElement.selectionStart ||
136
- this.nativeValue[nativeFocusableElement.selectionStart] !== '0') {
137
- return;
138
- }
139
- event.preventDefault();
140
- nativeFocusableElement.selectionStart++;
141
- }
142
- get isNativeValueInLimit() {
143
- if (this.nativeValue === '') {
144
- return true;
145
- }
146
- const nativeNumberValue = this.nativeNumberValue;
147
- return nativeNumberValue >= this.min && nativeNumberValue <= this.max;
148
- }
149
139
  get isNativeValueNotFinished() {
150
140
  const nativeNumberValue = this.nativeNumberValue;
151
141
  return nativeNumberValue < 0
@@ -188,6 +178,9 @@ TuiInputNumberComponent.ctorParameters = () => [
188
178
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
189
179
  { type: undefined, decorators: [{ type: Inject, args: [TUI_NUMBER_FORMAT,] }] }
190
180
  ];
181
+ __decorate([
182
+ ViewChild(TuiPrimitiveTextfieldComponent)
183
+ ], TuiInputNumberComponent.prototype, "primitiveTextfield", void 0);
191
184
  __decorate([
192
185
  Input(),
193
186
  tuiDefaultProp()
@@ -212,9 +205,6 @@ __decorate([
212
205
  Input(),
213
206
  tuiDefaultProp()
214
207
  ], TuiInputNumberComponent.prototype, "postfix", void 0);
215
- __decorate([
216
- ViewChild(TuiPrimitiveTextfieldComponent)
217
- ], TuiInputNumberComponent.prototype, "primitiveTextfield", void 0);
218
208
  __decorate([
219
209
  HostListener('keydown.0', ['$event'])
220
210
  ], TuiInputNumberComponent.prototype, "onZero", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-number.js","sources":["ng://@taiga-ui/kit/components/input-number/input-number.component.ts","ng://@taiga-ui/kit/components/input-number/input-number.module.ts","ng://@taiga-ui/kit/components/input-number/taiga-ui-kit-components-input-number.ts"],"sourcesContent":["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 AbstractTuiNullableControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiInputModeT,\n TuiMapper,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_DECIMAL_SYMBOLS,\n TUI_NUMBER_FORMAT,\n tuiCreateAutoCorrectedNumberPipe,\n tuiCreateNumberMask,\n TuiDecimalT,\n TuiPrimitiveTextfieldComponent,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\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})\nexport class TuiInputNumberComponent\n extends AbstractTuiNullableControl<number>\n implements TuiFocusableElementAccessor\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 mask: TuiMapper<boolean, TuiTextMaskOptions> = (\n allowNegative: boolean,\n decimal: TuiDecimalT,\n precision: number,\n nativeFocusableElement: HTMLInputElement | null,\n ) => ({\n mask: tuiCreateNumberMask({\n allowNegative: allowNegative,\n allowDecimal: decimal !== 'never',\n decimalLimit: precision,\n requireDecimal: decimal === 'always',\n autoCorrectDecimalSymbol: false,\n decimalSymbol: this.numberFormat.decimalSeparator,\n thousandSymbol: this.numberFormat.thousandSeparator,\n }),\n pipe: tuiCreateAutoCorrectedNumberPipe(\n decimal === 'always' ? precision : 0,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n nativeFocusableElement || undefined,\n ),\n guide: false,\n });\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly primitiveTextfield?: TuiPrimitiveTextfieldComponent;\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 return (\n DEFAULT_MAX_LENGTH +\n (this.decimal !== 'never' &&\n this.nativeValue.includes(this.numberFormat.decimalSeparator)\n ? this.precision + 1\n : 0)\n );\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\n ? value.toString().split('.')[1].substr(0, this.precision)\n : '';\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 || !this.isNativeValueInLimit) {\n return this.nativeValue;\n }\n\n if (this.value === null) {\n return maskedMoneyValueIsEmpty(this.nativeValue) ? this.nativeValue : '';\n }\n\n return this.formattedValue;\n }\n\n onValue(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.indexOf(event.key) === -1) {\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 @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 private get isNativeValueInLimit(): boolean {\n if (this.nativeValue === '') {\n return true;\n }\n\n const nativeNumberValue = this.nativeNumberValue;\n\n return nativeNumberValue >= this.min && nativeNumberValue <= this.max;\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 = value < 0 ? Math.max(this.min, value) : Math.min(value, this.max);\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 {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputNumberComponent} from './input-number.component';\n\n@NgModule({\n imports: [\n TextMaskModule,\n TuiMapperPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputNumberComponent],\n exports: [TuiInputNumberComponent],\n})\nexport class TuiInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAmCA,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B;IAaa,uBAAuB,+BAApC,MAAa,uBACT,SAAQ,0BAAkC;IAsD1C,YAII,OAAyB,EAEzB,iBAAoC,EAEnB,YAAkC;QAEnD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,iBAAY,GAAZ,YAAY,CAAsB;QAzDvD,QAAG,GAAG,CAAC,QAAQ,CAAC;QAIhB,QAAG,GAAG,QAAQ,CAAC;QAIf,YAAO,GAAgB,UAAU,CAAC;QAIlC,cAAS,GAAG,CAAC,CAAC;QAId,WAAM,GAAG,EAAE,CAAC;QAIZ,YAAO,GAAG,EAAE,CAAC;QAEb,SAAI,GAA2C,CAC3C,aAAsB,EACtB,OAAoB,EACpB,SAAiB,EACjB,sBAA+C,MAC7C;YACF,IAAI,EAAE,mBAAmB,CAAC;gBACtB,aAAa,EAAE,aAAa;gBAC5B,YAAY,EAAE,OAAO,KAAK,OAAO;gBACjC,YAAY,EAAE,SAAS;gBACvB,cAAc,EAAE,OAAO,KAAK,QAAQ;gBACpC,wBAAwB,EAAE,KAAK;gBAC/B,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC,gBAAgB;gBACjD,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,iBAAiB;aACtD,CAAC;YACF,IAAI,EAAE,gCAAgC,CAClC,OAAO,KAAK,QAAQ,GAAG,SAAS,GAAG,CAAC,EACpC,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAClC,IAAI,CAAC,YAAY,CAAC,iBAAiB,EACnC,sBAAsB,IAAI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H;AAId;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;uDACL;AAIZ;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;wDACJ;AA2Bb;IADC,SAAS,CAAC,8BAA8B,CAAC;mEAC2B;AA4JrE;IADC,YAAY,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC;qDAiBrC;AAjOQ,uBAAuB;IAZnC,SAAS,CAAC;QACP,QAAQ,EAAE,kBAAkB;QAC5B,o0BAA2C;QAE3C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,yBAAuB,CAAC;aACzD;SACJ;;KACJ,CAAC;IAyDO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GA9DrB,uBAAuB,CAuSnC;;ICtUY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAXhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,cAAc;YACd,mBAAmB;YACnB,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB;SACzB;QACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACnBpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-number.js","sources":["ng://@taiga-ui/kit/components/input-number/input-number.component.ts","ng://@taiga-ui/kit/components/input-number/input-number.module.ts","ng://@taiga-ui/kit/components/input-number/taiga-ui-kit-components-input-number.ts"],"sourcesContent":["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 AbstractTuiNullableControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiInputModeT,\n TuiMapper,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_DECIMAL_SYMBOLS,\n TUI_NUMBER_FORMAT,\n tuiCreateAutoCorrectedNumberPipe,\n tuiCreateNumberMask,\n TuiDecimalT,\n TuiPrimitiveTextfieldComponent,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\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})\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 return (\n DEFAULT_MAX_LENGTH +\n (this.decimal !== 'never' &&\n this.nativeValue.includes(this.numberFormat.decimalSeparator)\n ? this.precision + 1\n : 0)\n );\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\n ? value.toString().split('.')[1].substr(0, this.precision)\n : '';\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, TuiTextMaskOptions> = (\n allowNegative: boolean,\n decimal: TuiDecimalT,\n decimalLimit: number,\n nativeFocusableElement: HTMLInputElement | null,\n ) => ({\n mask: tuiCreateNumberMask({\n allowNegative,\n decimalLimit,\n allowDecimal: decimal !== 'never',\n requireDecimal: decimal === 'always',\n autoCorrectDecimalSymbol: false,\n decimalSymbol: this.numberFormat.decimalSeparator,\n thousandSymbol: this.numberFormat.thousandSeparator,\n }),\n pipe: tuiCreateAutoCorrectedNumberPipe(\n decimal === 'always' ? decimalLimit : 0,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n nativeFocusableElement || undefined,\n allowNegative,\n ),\n guide: false,\n });\n\n onValue(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.indexOf(event.key) === -1) {\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 = value < 0 ? Math.max(this.min, value) : Math.min(value, this.max);\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 {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputNumberComponent} from './input-number.component';\n\n@NgModule({\n imports: [\n TextMaskModule,\n TuiMapperPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputNumberComponent],\n exports: [TuiInputNumberComponent],\n})\nexport class TuiInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAmCA,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B;IAaa,uBAAuB,+BAApC,MAAa,uBACT,SAAQ,0BAAkC;IA8B1C,YAII,OAAyB,EAEzB,iBAAoC,EAEnB,YAAkC;QA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Ac;YACd,mBAAmB;YACnB,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB;SACzB;QACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACnBpC;;;;;;"}
@@ -53,9 +53,6 @@ let TuiInputPasswordComponent = TuiInputPasswordComponent_1 = class TuiInputPass
53
53
  get context() {
54
54
  return this.getContext(this.textfieldSize.size);
55
55
  }
56
- getContext($implicit) {
57
- return { $implicit };
58
- }
59
56
  get inputType() {
60
57
  return this.isPasswordHidden || !this.hasEyeIcon ? 'password' : 'text';
61
58
  }
@@ -80,6 +77,9 @@ let TuiInputPasswordComponent = TuiInputPasswordComponent_1 = class TuiInputPass
80
77
  getFallbackValue() {
81
78
  return '';
82
79
  }
80
+ getContext($implicit) {
81
+ return { $implicit };
82
+ }
83
83
  };
84
84
  TuiInputPasswordComponent.ctorParameters = () => [
85
85
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-password.js","sources":["ng://@taiga-ui/kit/components/input-password/input-password-options.ts","ng://@taiga-ui/kit/components/input-password/input-password.component.ts","ng://@taiga-ui/kit/components/input-password/input-password.module.ts","ng://@taiga-ui/kit/components/input-password/taiga-ui-kit-components-input-password.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface InputPasswordOptions {\n readonly icons: Readonly<{\n hide: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n show: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n }>;\n}\n\n// TODO: remove in ivy compilation\nexport const PASSWORD_ICON_HIDE = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeClosed' : 'tuiIconHideLarge';\nexport const PASSWORD_ICON_SHOW = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeOpen' : 'tuiIconShowLarge';\n\n/** Default values for the input password options. */\nexport const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: InputPasswordOptions = {\n icons: {\n hide: PASSWORD_ICON_HIDE,\n show: PASSWORD_ICON_SHOW,\n },\n};\n\nexport const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken<InputPasswordOptions>(\n 'Default parameters for input password component',\n {\n factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_SIZE,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiHintModeT,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nimport {InputPasswordOptions, TUI_INPUT_PASSWORD_OPTIONS} from './input-password-options';\n\n// @dynamic\n@Component({\n selector: 'tui-input-password',\n templateUrl: './input-password.template.html',\n styleUrls: ['./input-password.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputPasswordComponent),\n },\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n ],\n})\nexport class TuiInputPasswordComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n isPasswordHidden = true;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n readonly computedMode$: Observable<TuiBrightness | TuiHintModeT | null> =\n combineLatest([\n this.mode$,\n this.hintController.change$.pipe(\n startWith(null),\n map(() => this.hintController.mode),\n ),\n ]).pipe(\n map(([mode, controller]) => controller || mode),\n startWith(null),\n );\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_PASSWORD_TEXTS)\n readonly passwordTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_PASSWORD_OPTIONS)\n public readonly options: InputPasswordOptions,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_MODE)\n private readonly mode$: Observable<TuiBrightness | null>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.isPasswordHidden ? this.options.icons.hide : this.options.icons.show;\n }\n\n get context(): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return this.getContext(this.textfieldSize.size);\n }\n\n @tuiPure\n private getContext(\n $implicit: TuiSizeS | TuiSizeL,\n ): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return {$implicit};\n }\n\n get inputType(): string {\n return this.isPasswordHidden || !this.hasEyeIcon ? 'password' : 'text';\n }\n\n get hasEyeIcon(): boolean {\n return !(this.disabled || this.readOnly);\n }\n\n onValueChange(textValue: string) {\n this.updateValue(textValue);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n togglePasswordVisibility() {\n this.isPasswordHidden = !this.isPasswordHidden;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiLetModule} from '@taiga-ui/cdk';\nimport {\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputPasswordComponent],\n exports: [TuiInputPasswordComponent],\n})\nexport class TuiInputPasswordModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAYA;MACa,kBAAkB,GAAG,CAAC,EAAC,SAAS,EAAM,KAC/C,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,mBAAmB;MACnD,kBAAkB,GAAG,CAAC,EAAC,SAAS,EAAM,KAC/C,SAAS,KAAK,GAAG,GAAG,gBAAgB,GAAG,mBAAmB;AAE9D;MACa,kCAAkC,GAAyB;IACpE,KAAK,EAAE;QACH,IAAI,EAAE,kBAAkB;QACxB,IAAI,EA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DACkB;AAqD5D;IADC,OAAO;2DAKP;AAhEQ,yBAAyB;IAdrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;QAC9B,yjDAA6C;QAE7C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,2BAAyB,CAAC;aAC3D;YACD,wBAAwB;YACxB,aAAa;SAChB;;KACJ,CAAC;IAuBO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAE1B,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAE1B,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;IAElC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;IAEnC,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAnCZ,yBAAyB,CAiGrC;;IC5HY,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAdlC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,YAAY;YACZ,YAAY;YACZ,aAAa;YACb,2BAA2B;YAC3B,4BAA4B;SAC/B;QACD,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;AC5BtC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-password.js","sources":["ng://@taiga-ui/kit/components/input-password/input-password-options.ts","ng://@taiga-ui/kit/components/input-password/input-password.component.ts","ng://@taiga-ui/kit/components/input-password/input-password.module.ts","ng://@taiga-ui/kit/components/input-password/taiga-ui-kit-components-input-password.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface InputPasswordOptions {\n readonly icons: Readonly<{\n hide: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n show: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n }>;\n}\n\n// TODO: remove in ivy compilation\nexport const PASSWORD_ICON_HIDE = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeClosed' : 'tuiIconHideLarge';\nexport const PASSWORD_ICON_SHOW = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeOpen' : 'tuiIconShowLarge';\n\n/** Default values for the input password options. */\nexport const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: InputPasswordOptions = {\n icons: {\n hide: PASSWORD_ICON_HIDE,\n show: PASSWORD_ICON_SHOW,\n },\n};\n\nexport const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken<InputPasswordOptions>(\n 'Default parameters for input password component',\n {\n factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_SIZE,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiHintModeT,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nimport {InputPasswordOptions, TUI_INPUT_PASSWORD_OPTIONS} from './input-password-options';\n\n// @dynamic\n@Component({\n selector: 'tui-input-password',\n templateUrl: './input-password.template.html',\n styleUrls: ['./input-password.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputPasswordComponent),\n },\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n ],\n})\nexport class TuiInputPasswordComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n isPasswordHidden = true;\n\n readonly computedMode$: Observable<TuiBrightness | TuiHintModeT | null> =\n combineLatest([\n this.mode$,\n this.hintController.change$.pipe(\n startWith(null),\n map(() => this.hintController.mode),\n ),\n ]).pipe(\n map(([mode, controller]) => controller || mode),\n startWith(null),\n );\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_PASSWORD_TEXTS)\n readonly passwordTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_PASSWORD_OPTIONS)\n readonly options: InputPasswordOptions,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_MODE)\n private readonly mode$: Observable<TuiBrightness | null>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.isPasswordHidden ? this.options.icons.hide : this.options.icons.show;\n }\n\n get context(): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return this.getContext(this.textfieldSize.size);\n }\n\n get inputType(): string {\n return this.isPasswordHidden || !this.hasEyeIcon ? 'password' : 'text';\n }\n\n get hasEyeIcon(): boolean {\n return !(this.disabled || this.readOnly);\n }\n\n onValueChange(textValue: string) {\n this.updateValue(textValue);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n togglePasswordVisibility() {\n this.isPasswordHidden = !this.isPasswordHidden;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n @tuiPure\n private getContext(\n $implicit: TuiSizeS | TuiSizeL,\n ): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return {$implicit};\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiLetModule} from '@taiga-ui/cdk';\nimport {\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputPasswordComponent],\n exports: [TuiInputPasswordComponent],\n})\nexport class TuiInputPasswordModule {}\n","/**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ACb,2BAA2B;YAC3B,4BAA4B;SAC/B;QACD,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;AC5BtC;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { TuiCountryIsoCode as TuiCountryIsoCode$1 } from '@taiga-ui/i18n';
2
2
  import { __decorate, __param } from 'tslib';
3
- import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, Input, Output, ViewChild, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
+ import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, Output, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
4
4
  import { NgControl, FormsModule } from '@angular/forms';
5
5
  import { AbstractTuiControl, setNativeFocused, getClipboardDataText, tuiDefaultProp, tuiPure, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiLetModule, TuiMapperPipeModule, TuiActiveZoneModule } from '@taiga-ui/cdk';
6
6
  import { TUI_NON_DIGITS_REGEXP, TUI_ICONS_PATH, TuiPrimitiveTextfieldComponent, TuiSvgModule, TuiGroupModule, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiHintControllerModule, TuiHostedDropdownModule, TuiDataListModule } from '@taiga-ui/core';
@@ -32,10 +32,6 @@ const COUNTRIES = {
32
32
  [TuiCountryIsoCode$1.AI]: { mask: '+1(264) ###-####', name: 'Ангилья' },
33
33
  [TuiCountryIsoCode$1.AL]: { mask: '+355(###) ###-###', name: 'Албания' },
34
34
  [TuiCountryIsoCode$1.AM]: { mask: '+374##-###-###', name: 'Армения' },
35
- [TuiCountryIsoCode$1.AN]: {
36
- mask: '+599-###-####',
37
- name: 'Нидерландские Антильские острова',
38
- },
39
35
  [TuiCountryIsoCode$1.AO]: { mask: '+244(###) ###-###', name: 'Ангола' },
40
36
  [TuiCountryIsoCode$1.AR]: { mask: '+54(###) ###-####', name: 'Аргентина' },
41
37
  [TuiCountryIsoCode$1.AT]: { mask: '+43(###) ###-####', name: 'Австрия' },
@@ -54,6 +50,10 @@ const COUNTRIES = {
54
50
  [TuiCountryIsoCode$1.BM]: { mask: '+1(441) ###-####', name: 'Бермудские острова' },
55
51
  [TuiCountryIsoCode$1.BN]: { mask: '+673###-####', name: 'Бруней-Даруссалам' },
56
52
  [TuiCountryIsoCode$1.BO]: { mask: '+591#-###-####', name: 'Боливия' },
53
+ [TuiCountryIsoCode$1.BQ]: {
54
+ mask: '+599-###-####',
55
+ name: 'Бонайре, Синт-Эстатиус и Саба',
56
+ },
57
57
  [TuiCountryIsoCode$1.BR]: { mask: '+55(##) ####-####', name: 'Бразилия' },
58
58
  [TuiCountryIsoCode$1.BS]: { mask: '+1(242) ###-####', name: 'Багамские Острова' },
59
59
  [TuiCountryIsoCode$1.BT]: { mask: '+975#-###-###', name: 'Бутан' },
@@ -79,6 +79,7 @@ const COUNTRIES = {
79
79
  [TuiCountryIsoCode$1.CR]: { mask: '+506####-####', name: 'Коста-Рика' },
80
80
  [TuiCountryIsoCode$1.CU]: { mask: '+53#-###-####', name: 'Куба' },
81
81
  [TuiCountryIsoCode$1.CV]: { mask: '+238(###) ##-##', name: 'Кабо-Верде' },
82
+ [TuiCountryIsoCode$1.CW]: { mask: '+5999-###-####', name: 'Кюрасао' },
82
83
  [TuiCountryIsoCode$1.CY]: { mask: '+357##-###-###', name: 'Кипр' },
83
84
  [TuiCountryIsoCode$1.CZ]: { mask: '+420(###) ###-###', name: 'Чехия' },
84
85
  [TuiCountryIsoCode$1.DE]: { mask: '+49(###) ###-###-##', name: 'Германия' },
@@ -99,6 +100,7 @@ const COUNTRIES = {
99
100
  [TuiCountryIsoCode$1.FM]: { mask: '+691###-####', name: 'Ф.Ш. Микронезии' },
100
101
  [TuiCountryIsoCode$1.FR]: { mask: '+33 ## ## ## ## ##', name: 'Франция' },
101
102
  [TuiCountryIsoCode$1.GA]: { mask: '+241#-##-##-##', name: 'Габон' },
103
+ [TuiCountryIsoCode$1.GB]: { mask: '+44##-####-####', name: 'Великобритания' },
102
104
  [TuiCountryIsoCode$1.GD]: { mask: '+1(473) ###-####', name: 'Гренада' },
103
105
  [TuiCountryIsoCode$1.GE]: { mask: '+995(###) ###-###', name: 'Грузия' },
104
106
  [TuiCountryIsoCode$1.GH]: { mask: '+233(###) ###-###', name: 'Гана' },
@@ -210,6 +212,7 @@ const COUNTRIES = {
210
212
  [TuiCountryIsoCode$1.SR]: { mask: '+597###-####', name: 'Суринам ' },
211
213
  [TuiCountryIsoCode$1.ST]: { mask: '+239##-#####', name: 'Сан-Томе и Принсипи' },
212
214
  [TuiCountryIsoCode$1.SV]: { mask: '+503##-##-####', name: 'Сальвадор' },
215
+ [TuiCountryIsoCode$1.SX]: { mask: '+1(721) ###-####', name: 'Синт-Мартен' },
213
216
  [TuiCountryIsoCode$1.SY]: {
214
217
  mask: '+963##-####-###',
215
218
  name: 'Сирийская арабская республика',
@@ -230,7 +233,6 @@ const COUNTRIES = {
230
233
  [TuiCountryIsoCode$1.TZ]: { mask: '+255##-###-####', name: 'Танзания' },
231
234
  [TuiCountryIsoCode$1.UA]: { mask: '+380(##) ###-##-##', name: 'Украина' },
232
235
  [TuiCountryIsoCode$1.UG]: { mask: '+256(###) ###-###', name: 'Уганда' },
233
- [TuiCountryIsoCode$1.UK]: { mask: '+44##-####-####', name: 'Великобритания' },
234
236
  [TuiCountryIsoCode$1.US]: { mask: '+1(###) ###-####', name: 'США' },
235
237
  [TuiCountryIsoCode$1.UY]: { mask: '+598#-###-##-##', name: 'Уругвай' },
236
238
  [TuiCountryIsoCode$1.UZ]: { mask: '+998##-###-####', name: 'Узбекистан' },
@@ -322,6 +324,7 @@ var TuiCountryIsoCode;
322
324
  TuiCountryIsoCode["FM"] = "FM";
323
325
  TuiCountryIsoCode["FR"] = "FR";
324
326
  TuiCountryIsoCode["GA"] = "GA";
327
+ TuiCountryIsoCode["GB"] = "GB";
325
328
  TuiCountryIsoCode["GD"] = "GD";
326
329
  TuiCountryIsoCode["GE"] = "GE";
327
330
  TuiCountryIsoCode["GH"] = "GH";
@@ -447,7 +450,6 @@ var TuiCountryIsoCode;
447
450
  TuiCountryIsoCode["TZ"] = "TZ";
448
451
  TuiCountryIsoCode["UA"] = "UA";
449
452
  TuiCountryIsoCode["UG"] = "UG";
450
- TuiCountryIsoCode["UK"] = "UK";
451
453
  TuiCountryIsoCode["UY"] = "UY";
452
454
  TuiCountryIsoCode["UZ"] = "UZ";
453
455
  TuiCountryIsoCode["VC"] = "VC";
@@ -471,23 +473,15 @@ let TuiInputPhoneInternationalComponent = TuiInputPhoneInternationalComponent_1
471
473
  constructor(control, changeDetectorRef, iconsPath, countriesNames$) {
472
474
  super(control, changeDetectorRef);
473
475
  this.countriesNames$ = countriesNames$;
476
+ this.staticPath = null;
474
477
  this.countryIsoCode = TuiCountryIsoCode$1.RU;
475
478
  this.countries = [];
476
479
  this.countryIsoCodeChange = new EventEmitter();
477
480
  this.open = false;
478
- this.isoToCountryCodeMapper = item => this.isoToCountryCode(item);
479
481
  this.arrow = TUI_ARROW;
480
- this.staticPath = null;
482
+ this.isoToCountryCodeMapper = item => this.isoToCountryCode(item);
481
483
  this.staticPath = iconsPath('tuiIcon').replace('tuiIcon.svg#tuiIcon', '');
482
484
  }
483
- onPaste(event) {
484
- const value = this.extractValue(event);
485
- const countryIsoCode = this.countries.find(countryIsoCode => value.startsWith(this.isoToCountryCode(countryIsoCode)));
486
- if (countryIsoCode) {
487
- this.updateCountryIsoCode(countryIsoCode);
488
- this.updateValue('+' + value.replace(TUI_NON_DIGITS_REGEXP, ''));
489
- }
490
- }
491
485
  get nativeFocusableElement() {
492
486
  return this.inputPhoneComponent && !this.computedDisabled
493
487
  ? this.inputPhoneComponent.nativeFocusableElement
@@ -507,6 +501,14 @@ let TuiInputPhoneInternationalComponent = TuiInputPhoneInternationalComponent_1
507
501
  get countryFlagPath() {
508
502
  return this.getFlagPath(this.countryIsoCode);
509
503
  }
504
+ onPaste(event) {
505
+ const value = this.extractValue(event);
506
+ const countryIsoCode = this.countries.find(countryIsoCode => value.startsWith(this.isoToCountryCode(countryIsoCode)));
507
+ if (countryIsoCode) {
508
+ this.updateCountryIsoCode(countryIsoCode);
509
+ this.updateValue('+' + value.replace(TUI_NON_DIGITS_REGEXP, ''));
510
+ }
511
+ }
510
512
  getFlagPath(code) {
511
513
  return `${this.staticPath}${code}.png`;
512
514
  }
@@ -539,12 +541,12 @@ let TuiInputPhoneInternationalComponent = TuiInputPhoneInternationalComponent_1
539
541
  getFallbackValue() {
540
542
  return '';
541
543
  }
542
- close() {
543
- this.open = false;
544
- }
545
544
  calculateMaskAfterCountryCode(mask, countryCode) {
546
545
  return mask.replace(countryCode, '').trim();
547
546
  }
547
+ close() {
548
+ this.open = false;
549
+ }
548
550
  getMaxAllowedLength(isoCode) {
549
551
  return COUNTRIES_MASKS[isoCode].replace(/[()\- ]/g, '').length;
550
552
  }
@@ -566,6 +568,12 @@ TuiInputPhoneInternationalComponent.ctorParameters = () => [
566
568
  { type: undefined, decorators: [{ type: Inject, args: [TUI_ICONS_PATH,] }] },
567
569
  { type: Observable, decorators: [{ type: Inject, args: [TUI_COUNTRIES,] }] }
568
570
  ];
571
+ __decorate([
572
+ ViewChild(TuiInputPhoneComponent)
573
+ ], TuiInputPhoneInternationalComponent.prototype, "inputPhoneComponent", void 0);
574
+ __decorate([
575
+ ViewChild(TuiPrimitiveTextfieldComponent)
576
+ ], TuiInputPhoneInternationalComponent.prototype, "primitiveTextfield", void 0);
569
577
  __decorate([
570
578
  Input(),
571
579
  tuiDefaultProp()
@@ -576,12 +584,6 @@ __decorate([
576
584
  __decorate([
577
585
  Output()
578
586
  ], TuiInputPhoneInternationalComponent.prototype, "countryIsoCodeChange", void 0);
579
- __decorate([
580
- ViewChild(TuiInputPhoneComponent)
581
- ], TuiInputPhoneInternationalComponent.prototype, "inputPhoneComponent", void 0);
582
- __decorate([
583
- ViewChild(TuiPrimitiveTextfieldComponent)
584
- ], TuiInputPhoneInternationalComponent.prototype, "primitiveTextfield", void 0);
585
587
  __decorate([
586
588
  HostListener('paste.capture.prevent.stop', ['$event']),
587
589
  HostListener('drop.capture.prevent.stop', ['$event'])