@taiga-ui/kit 3.17.0 → 3.18.0-dev.main-05a0bf8

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 (518) hide show
  1. package/bundles/taiga-ui-kit-components-accordion.umd.js +20 -29
  2. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  3. package/bundles/taiga-ui-kit-components-action.umd.js +11 -20
  4. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  5. package/bundles/taiga-ui-kit-components-arrow.umd.js +7 -7
  6. package/bundles/taiga-ui-kit-components-avatar.umd.js +11 -20
  7. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-badge.umd.js +11 -20
  9. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-badged-content.umd.js +11 -20
  11. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +11 -20
  13. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +11 -20
  15. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +11 -20
  17. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-carousel.umd.js +23 -32
  19. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +11 -20
  21. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +11 -20
  23. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-checkbox.umd.js +11 -20
  25. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-combo-box.umd.js +21 -27
  27. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +17 -26
  29. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-elastic-container.umd.js +10 -10
  31. package/bundles/taiga-ui-kit-components-files.umd.js +15 -24
  32. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  33. package/bundles/taiga-ui-kit-components-filter.umd.js +11 -20
  34. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  35. package/bundles/taiga-ui-kit-components-input-copy.umd.js +18 -24
  36. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  37. package/bundles/taiga-ui-kit-components-input-count.umd.js +14 -23
  38. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  39. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +18 -24
  40. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  41. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +18 -24
  42. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  43. package/bundles/taiga-ui-kit-components-input-date.umd.js +18 -24
  44. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  45. package/bundles/taiga-ui-kit-components-input-files.umd.js +17 -26
  46. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  47. package/bundles/taiga-ui-kit-components-input-inline.umd.js +11 -20
  48. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  49. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +14 -23
  50. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  51. package/bundles/taiga-ui-kit-components-input-month.umd.js +14 -23
  52. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  53. package/bundles/taiga-ui-kit-components-input-number.umd.js +14 -23
  54. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  55. package/bundles/taiga-ui-kit-components-input-password.umd.js +20 -26
  56. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  57. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +31 -32
  58. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  59. package/bundles/taiga-ui-kit-components-input-phone.umd.js +14 -23
  60. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  61. package/bundles/taiga-ui-kit-components-input-range.umd.js +14 -23
  62. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  63. package/bundles/taiga-ui-kit-components-input-slider.umd.js +11 -20
  64. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  65. package/bundles/taiga-ui-kit-components-input-tag.umd.js +12 -21
  66. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  67. package/bundles/taiga-ui-kit-components-input-time.umd.js +12 -21
  68. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  69. package/bundles/taiga-ui-kit-components-input-year.umd.js +14 -23
  70. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  71. package/bundles/taiga-ui-kit-components-input.umd.js +14 -23
  72. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  73. package/bundles/taiga-ui-kit-components-island.umd.js +11 -20
  74. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  75. package/bundles/taiga-ui-kit-components-items-with-more.umd.js +20 -29
  76. package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
  77. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +18 -27
  78. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  79. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +11 -20
  80. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  81. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +11 -20
  82. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  83. package/bundles/taiga-ui-kit-components-multi-select.umd.js +24 -30
  84. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  85. package/bundles/taiga-ui-kit-components-pagination.umd.js +11 -20
  86. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  87. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +17 -26
  88. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  89. package/bundles/taiga-ui-kit-components-progress.umd.js +23 -32
  90. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  91. package/bundles/taiga-ui-kit-components-prompt.umd.js +98 -0
  92. package/bundles/taiga-ui-kit-components-prompt.umd.js.map +1 -0
  93. package/bundles/taiga-ui-kit-components-push.umd.js +23 -32
  94. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  95. package/bundles/taiga-ui-kit-components-radio-block.umd.js +11 -20
  96. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  97. package/bundles/taiga-ui-kit-components-radio-group.umd.js +11 -20
  98. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  99. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +11 -20
  100. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  101. package/bundles/taiga-ui-kit-components-radio-list.umd.js +11 -20
  102. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  103. package/bundles/taiga-ui-kit-components-radio.umd.js +11 -20
  104. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  105. package/bundles/taiga-ui-kit-components-range.umd.js +14 -23
  106. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  107. package/bundles/taiga-ui-kit-components-rating.umd.js +13 -22
  108. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  109. package/bundles/taiga-ui-kit-components-select-option.umd.js +7 -7
  110. package/bundles/taiga-ui-kit-components-select.umd.js +27 -33
  111. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-slider.umd.js +20 -29
  113. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-stepper.umd.js +14 -23
  115. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-tabs.umd.js +26 -35
  117. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-tag.umd.js +11 -20
  119. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-text-area.umd.js +15 -24
  121. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-tiles.umd.js +17 -26
  123. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-toggle.umd.js +11 -20
  125. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-tree.umd.js +32 -41
  127. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components.umd.js +10 -4
  129. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-constants.umd.js +4 -13
  131. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +11 -20
  133. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
  134. package/bundles/taiga-ui-kit-directives-highlight.umd.js +11 -20
  135. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +14 -23
  137. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  138. package/bundles/taiga-ui-kit-directives-mask.umd.js +7 -7
  139. package/bundles/taiga-ui-kit-directives-present.umd.js +7 -7
  140. package/bundles/taiga-ui-kit-directives-project-class.umd.js +11 -20
  141. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  142. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +7 -7
  143. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +7 -7
  144. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +11 -20
  145. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  146. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +14 -23
  147. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +14 -23
  149. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  150. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +11 -20
  151. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +7 -7
  153. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +7 -7
  154. package/bundles/taiga-ui-kit-pipes-to-year.umd.js +7 -7
  155. package/bundles/taiga-ui-kit-tokens.umd.js +4 -0
  156. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  157. package/bundles/taiga-ui-kit-utils-mask.umd.js +4 -13
  158. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  159. package/bundles/taiga-ui-kit-utils-math.umd.js +4 -13
  160. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  161. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +4 -13
  162. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  163. package/components/combo-box/combo-box.module.d.ts +1 -1
  164. package/components/index.d.ts +1 -0
  165. package/components/input-copy/input-copy.module.d.ts +1 -1
  166. package/components/input-date/input-date.module.d.ts +3 -3
  167. package/components/input-date-range/input-date-range.module.d.ts +1 -1
  168. package/components/input-date-time/input-date-time.module.d.ts +3 -3
  169. package/components/input-password/input-password.module.d.ts +1 -1
  170. package/components/input-phone-international/input-phone-international.component.d.ts +3 -3
  171. package/components/input-phone-international/input-phone-international.module.d.ts +1 -1
  172. package/components/multi-select/multi-select.module.d.ts +4 -4
  173. package/components/prompt/index.d.ts +2 -0
  174. package/components/prompt/package.json +10 -0
  175. package/components/prompt/prompt.component.d.ts +25 -0
  176. package/components/prompt/prompt.module.d.ts +10 -0
  177. package/components/prompt/taiga-ui-kit-components-prompt.d.ts +5 -0
  178. package/components/select/select.module.d.ts +1 -1
  179. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +3 -3
  180. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +3 -3
  181. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +3 -3
  182. package/esm2015/components/accordion/accordion.component.js +3 -3
  183. package/esm2015/components/accordion/accordion.module.js +4 -4
  184. package/esm2015/components/action/action.component.js +3 -3
  185. package/esm2015/components/action/action.module.js +4 -4
  186. package/esm2015/components/arrow/arrow.component.js +3 -3
  187. package/esm2015/components/arrow/arrow.module.js +4 -4
  188. package/esm2015/components/avatar/avatar.component.js +3 -3
  189. package/esm2015/components/avatar/avatar.module.js +4 -4
  190. package/esm2015/components/badge/badge.component.js +3 -3
  191. package/esm2015/components/badge/badge.module.js +4 -4
  192. package/esm2015/components/badged-content/badged-content.component.js +3 -3
  193. package/esm2015/components/badged-content/badged-content.module.js +4 -4
  194. package/esm2015/components/breadcrumbs/breadcrumbs.component.js +3 -3
  195. package/esm2015/components/breadcrumbs/breadcrumbs.module.js +4 -4
  196. package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
  197. package/esm2015/components/calendar-month/calendar-month.module.js +4 -4
  198. package/esm2015/components/calendar-range/calendar-range.component.js +3 -3
  199. package/esm2015/components/calendar-range/calendar-range.module.js +4 -4
  200. package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
  201. package/esm2015/components/carousel/carousel-buttons.directive.js +3 -3
  202. package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
  203. package/esm2015/components/carousel/carousel.component.js +3 -3
  204. package/esm2015/components/carousel/carousel.directive.js +3 -3
  205. package/esm2015/components/carousel/carousel.module.js +4 -4
  206. package/esm2015/components/checkbox/checkbox.component.js +3 -3
  207. package/esm2015/components/checkbox/checkbox.module.js +4 -4
  208. package/esm2015/components/checkbox-block/checkbox-block.component.js +3 -3
  209. package/esm2015/components/checkbox-block/checkbox-block.module.js +4 -4
  210. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +3 -3
  211. package/esm2015/components/checkbox-labeled/checkbox-labeled.module.js +4 -4
  212. package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
  213. package/esm2015/components/combo-box/combo-box.component.js +5 -5
  214. package/esm2015/components/combo-box/combo-box.directive.js +3 -3
  215. package/esm2015/components/combo-box/combo-box.module.js +9 -6
  216. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +3 -3
  217. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +3 -3
  218. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +3 -3
  219. package/esm2015/components/data-list-wrapper/data-list-wrapper.module.js +4 -4
  220. package/esm2015/components/elastic-container/elastic-container.component.js +3 -3
  221. package/esm2015/components/elastic-container/elastic-container.directive.js +3 -3
  222. package/esm2015/components/elastic-container/elastic-container.module.js +4 -4
  223. package/esm2015/components/files/file/file.component.js +5 -5
  224. package/esm2015/components/files/files.component.js +3 -3
  225. package/esm2015/components/files/files.module.js +4 -4
  226. package/esm2015/components/filter/filter.component.js +3 -3
  227. package/esm2015/components/filter/filter.module.js +4 -4
  228. package/esm2015/components/index.js +2 -1
  229. package/esm2015/components/input/input.component.js +3 -3
  230. package/esm2015/components/input/input.directive.js +3 -3
  231. package/esm2015/components/input/input.module.js +4 -4
  232. package/esm2015/components/input-copy/input-copy.component.js +5 -5
  233. package/esm2015/components/input-copy/input-copy.directive.js +3 -3
  234. package/esm2015/components/input-copy/input-copy.module.js +9 -6
  235. package/esm2015/components/input-count/input-count.component.js +3 -3
  236. package/esm2015/components/input-count/input-count.directive.js +3 -3
  237. package/esm2015/components/input-count/input-count.module.js +4 -4
  238. package/esm2015/components/input-date/input-date.component.js +5 -5
  239. package/esm2015/components/input-date/input-date.directive.js +3 -3
  240. package/esm2015/components/input-date/input-date.module.js +9 -6
  241. package/esm2015/components/input-date-range/input-date-range.component.js +5 -5
  242. package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
  243. package/esm2015/components/input-date-range/input-date-range.module.js +9 -6
  244. package/esm2015/components/input-date-time/input-date-time.component.js +5 -5
  245. package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
  246. package/esm2015/components/input-date-time/input-date-time.module.js +9 -6
  247. package/esm2015/components/input-files/input-files.component.js +3 -3
  248. package/esm2015/components/input-files/input-files.directive.js +3 -3
  249. package/esm2015/components/input-files/input-files.module.js +4 -4
  250. package/esm2015/components/input-files/max-size-rejection-error.pipe.js +3 -3
  251. package/esm2015/components/input-inline/input-inline.component.js +3 -3
  252. package/esm2015/components/input-inline/input-inline.module.js +4 -4
  253. package/esm2015/components/input-month/input-month.component.js +3 -3
  254. package/esm2015/components/input-month/input-month.directive.js +3 -3
  255. package/esm2015/components/input-month/input-month.module.js +4 -4
  256. package/esm2015/components/input-month-range/input-month-range.component.js +3 -3
  257. package/esm2015/components/input-month-range/input-month-range.directive.js +3 -3
  258. package/esm2015/components/input-month-range/input-month-range.module.js +4 -4
  259. package/esm2015/components/input-number/input-number.component.js +3 -3
  260. package/esm2015/components/input-number/input-number.directive.js +3 -3
  261. package/esm2015/components/input-number/input-number.module.js +4 -4
  262. package/esm2015/components/input-password/input-password-options.js +3 -3
  263. package/esm2015/components/input-password/input-password.component.js +5 -5
  264. package/esm2015/components/input-password/input-password.directive.js +3 -3
  265. package/esm2015/components/input-password/input-password.module.js +9 -6
  266. package/esm2015/components/input-phone/input-phone.component.js +3 -3
  267. package/esm2015/components/input-phone/input-phone.directive.js +3 -3
  268. package/esm2015/components/input-phone/input-phone.module.js +4 -4
  269. package/esm2015/components/input-phone-international/input-phone-international.component.js +15 -11
  270. package/esm2015/components/input-phone-international/input-phone-international.module.js +9 -6
  271. package/esm2015/components/input-range/input-range.component.js +6 -6
  272. package/esm2015/components/input-range/input-range.module.js +4 -4
  273. package/esm2015/components/input-slider/input-slider.component.js +3 -3
  274. package/esm2015/components/input-slider/input-slider.module.js +4 -4
  275. package/esm2015/components/input-tag/input-tag.component.js +5 -5
  276. package/esm2015/components/input-tag/input-tag.module.js +4 -4
  277. package/esm2015/components/input-time/input-time-options.js +2 -2
  278. package/esm2015/components/input-time/input-time.component.js +3 -3
  279. package/esm2015/components/input-time/input-time.module.js +4 -4
  280. package/esm2015/components/input-year/input-year.component.js +3 -3
  281. package/esm2015/components/input-year/input-year.directive.js +3 -3
  282. package/esm2015/components/input-year/input-year.module.js +4 -4
  283. package/esm2015/components/island/island.component.js +3 -3
  284. package/esm2015/components/island/island.module.js +4 -4
  285. package/esm2015/components/items-with-more/items-with-more.component.js +3 -3
  286. package/esm2015/components/items-with-more/items-with-more.directive.js +3 -3
  287. package/esm2015/components/items-with-more/items-with-more.module.js +4 -4
  288. package/esm2015/components/items-with-more/items-with-more.service.js +3 -3
  289. package/esm2015/components/items-with-more/more.directive.js +3 -3
  290. package/esm2015/components/line-clamp/line-clamp-box.component.js +3 -3
  291. package/esm2015/components/line-clamp/line-clamp-position.directive.js +3 -3
  292. package/esm2015/components/line-clamp/line-clamp.component.js +4 -4
  293. package/esm2015/components/line-clamp/line-clamp.module.js +4 -4
  294. package/esm2015/components/marker-icon/marker-icon.component.js +3 -3
  295. package/esm2015/components/marker-icon/marker-icon.module.js +4 -4
  296. package/esm2015/components/multi-select/hide-selected.pipe.js +3 -3
  297. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +3 -3
  298. package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +3 -3
  299. package/esm2015/components/multi-select/multi-select.component.js +5 -5
  300. package/esm2015/components/multi-select/multi-select.module.js +9 -6
  301. package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
  302. package/esm2015/components/multi-select-option/multi-select-option.module.js +4 -4
  303. package/esm2015/components/pagination/pagination.component.js +3 -3
  304. package/esm2015/components/pagination/pagination.module.js +4 -4
  305. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +3 -3
  306. package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +3 -3
  307. package/esm2015/components/pdf-viewer/pdf-viewer.module.js +4 -4
  308. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +3 -3
  309. package/esm2015/components/progress/progress-bar/progress-bar.component.js +3 -3
  310. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +3 -3
  311. package/esm2015/components/progress/progress-circle/progress-circle.component.js +3 -3
  312. package/esm2015/components/progress/progress-label/progress-label.component.js +3 -3
  313. package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +3 -3
  314. package/esm2015/components/progress/progress.module.js +4 -4
  315. package/esm2015/components/prompt/index.js +3 -0
  316. package/esm2015/components/prompt/prompt.component.js +41 -0
  317. package/esm2015/components/prompt/prompt.module.js +20 -0
  318. package/esm2015/components/prompt/taiga-ui-kit-components-prompt.js +5 -0
  319. package/esm2015/components/push/push-alert.component.js +3 -3
  320. package/esm2015/components/push/push-alert.directive.js +3 -3
  321. package/esm2015/components/push/push.component.js +3 -3
  322. package/esm2015/components/push/push.directive.js +3 -3
  323. package/esm2015/components/push/push.module.js +4 -4
  324. package/esm2015/components/push/push.service.js +3 -3
  325. package/esm2015/components/radio/radio.component.js +3 -3
  326. package/esm2015/components/radio/radio.module.js +4 -4
  327. package/esm2015/components/radio-block/radio-block.component.js +3 -3
  328. package/esm2015/components/radio-block/radio-block.module.js +4 -4
  329. package/esm2015/components/radio-group/radio-group.component.js +3 -3
  330. package/esm2015/components/radio-group/radio-group.module.js +4 -4
  331. package/esm2015/components/radio-labeled/radio-labeled.component.js +3 -3
  332. package/esm2015/components/radio-labeled/radio-labeled.module.js +4 -4
  333. package/esm2015/components/radio-list/radio-list.component.js +3 -3
  334. package/esm2015/components/radio-list/radio-list.module.js +4 -4
  335. package/esm2015/components/range/range-change.directive.js +3 -3
  336. package/esm2015/components/range/range.component.js +3 -3
  337. package/esm2015/components/range/range.module.js +4 -4
  338. package/esm2015/components/rating/rating-options.js +2 -2
  339. package/esm2015/components/rating/rating.component.js +4 -4
  340. package/esm2015/components/rating/rating.module.js +4 -4
  341. package/esm2015/components/select/native-select/native-select-group.component.js +3 -3
  342. package/esm2015/components/select/native-select/native-select.component.js +3 -3
  343. package/esm2015/components/select/native-select/native-select.js +3 -3
  344. package/esm2015/components/select/select.component.js +5 -5
  345. package/esm2015/components/select/select.directive.js +3 -3
  346. package/esm2015/components/select/select.module.js +9 -6
  347. package/esm2015/components/select-option/select-option.component.js +3 -3
  348. package/esm2015/components/select-option/select-option.module.js +4 -4
  349. package/esm2015/components/slider/helpers/slider-key-steps.directive.js +3 -3
  350. package/esm2015/components/slider/helpers/slider-readonly.directive.js +3 -3
  351. package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +3 -3
  352. package/esm2015/components/slider/slider.component.js +3 -3
  353. package/esm2015/components/slider/slider.module.js +4 -4
  354. package/esm2015/components/stepper/step/step.component.js +3 -3
  355. package/esm2015/components/stepper/stepper.component.js +3 -3
  356. package/esm2015/components/stepper/stepper.module.js +4 -4
  357. package/esm2015/components/tabs/tab/tab.component.js +3 -3
  358. package/esm2015/components/tabs/tabs/tabs.component.js +3 -3
  359. package/esm2015/components/tabs/tabs-vertical/tabs-vertical.component.js +3 -3
  360. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -3
  361. package/esm2015/components/tabs/tabs.directive.js +3 -3
  362. package/esm2015/components/tabs/tabs.module.js +4 -4
  363. package/esm2015/components/tabs/underline/underline.component.js +3 -3
  364. package/esm2015/components/tag/tag.component.js +3 -3
  365. package/esm2015/components/tag/tag.module.js +4 -4
  366. package/esm2015/components/text-area/text-area.component.js +5 -5
  367. package/esm2015/components/text-area/text-area.directive.js +3 -3
  368. package/esm2015/components/text-area/text-area.module.js +4 -4
  369. package/esm2015/components/tiles/tile-handle.directive.js +3 -3
  370. package/esm2015/components/tiles/tile.component.js +3 -3
  371. package/esm2015/components/tiles/tiles.component.js +3 -3
  372. package/esm2015/components/tiles/tiles.module.js +4 -4
  373. package/esm2015/components/toggle/toggle.component.js +3 -3
  374. package/esm2015/components/toggle/toggle.module.js +4 -4
  375. package/esm2015/components/tree/components/tree/tree.component.js +3 -3
  376. package/esm2015/components/tree/components/tree-item/tree-item.component.js +3 -3
  377. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
  378. package/esm2015/components/tree/directives/tree-children.directive.js +3 -3
  379. package/esm2015/components/tree/directives/tree-controller.directive.js +3 -3
  380. package/esm2015/components/tree/directives/tree-item-controller.directive.js +3 -3
  381. package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
  382. package/esm2015/components/tree/misc/tree.service.js +3 -3
  383. package/esm2015/components/tree/tree.module.js +4 -4
  384. package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +3 -3
  385. package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.module.js +4 -4
  386. package/esm2015/directives/highlight/highlight.directive.js +3 -3
  387. package/esm2015/directives/highlight/highlight.module.js +4 -4
  388. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +3 -3
  389. package/esm2015/directives/lazy-loading/lazy-loading.module.js +4 -4
  390. package/esm2015/directives/lazy-loading/lazy-loading.service.js +3 -3
  391. package/esm2015/directives/mask/legacy-mask.js +7 -7
  392. package/esm2015/directives/present/present.directive.js +3 -3
  393. package/esm2015/directives/present/present.module.js +4 -4
  394. package/esm2015/directives/project-class/project-class.directive.js +3 -3
  395. package/esm2015/directives/project-class/project-class.module.js +4 -4
  396. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +3 -3
  397. package/esm2015/directives/unfinished-validator/unfinished-validator.module.js +4 -4
  398. package/esm2015/directives/value-accessor/value-accessor.directive.js +3 -3
  399. package/esm2015/directives/value-accessor/value-accessor.module.js +4 -4
  400. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
  401. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +4 -4
  402. package/esm2015/pipes/field-error/field-error-content-pipe.js +3 -3
  403. package/esm2015/pipes/field-error/field-error-pipe.js +3 -3
  404. package/esm2015/pipes/field-error/field-error.module.js +4 -4
  405. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +3 -3
  406. package/esm2015/pipes/filter-by-input/filter-by-input.module.js +4 -4
  407. package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +3 -3
  408. package/esm2015/pipes/sort-countries/sort-countries.module.js +4 -4
  409. package/esm2015/pipes/sort-countries/sort-countries.pipe.js +3 -3
  410. package/esm2015/pipes/stringify/stringify.module.js +4 -4
  411. package/esm2015/pipes/stringify/stringify.pipe.js +3 -3
  412. package/esm2015/pipes/stringify-content/stringify-content.module.js +4 -4
  413. package/esm2015/pipes/stringify-content/stringify-content.pipe.js +3 -3
  414. package/esm2015/pipes/to-year/to-year.module.js +4 -4
  415. package/esm2015/pipes/to-year/to-year.pipe.js +3 -3
  416. package/esm2015/tokens/i18n.js +4 -1
  417. package/fesm2015/taiga-ui-kit-components-accordion.js +16 -16
  418. package/fesm2015/taiga-ui-kit-components-action.js +7 -7
  419. package/fesm2015/taiga-ui-kit-components-arrow.js +7 -7
  420. package/fesm2015/taiga-ui-kit-components-avatar.js +7 -7
  421. package/fesm2015/taiga-ui-kit-components-badge.js +7 -7
  422. package/fesm2015/taiga-ui-kit-components-badged-content.js +7 -7
  423. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +7 -7
  424. package/fesm2015/taiga-ui-kit-components-calendar-month.js +7 -7
  425. package/fesm2015/taiga-ui-kit-components-calendar-range.js +7 -7
  426. package/fesm2015/taiga-ui-kit-components-carousel.js +19 -19
  427. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +7 -7
  428. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +7 -7
  429. package/fesm2015/taiga-ui-kit-components-checkbox.js +7 -7
  430. package/fesm2015/taiga-ui-kit-components-combo-box.js +18 -15
  431. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  432. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +13 -13
  433. package/fesm2015/taiga-ui-kit-components-elastic-container.js +10 -10
  434. package/fesm2015/taiga-ui-kit-components-files.js +11 -11
  435. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  436. package/fesm2015/taiga-ui-kit-components-filter.js +7 -7
  437. package/fesm2015/taiga-ui-kit-components-input-copy.js +15 -12
  438. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  439. package/fesm2015/taiga-ui-kit-components-input-count.js +10 -10
  440. package/fesm2015/taiga-ui-kit-components-input-date-range.js +15 -12
  441. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  442. package/fesm2015/taiga-ui-kit-components-input-date-time.js +15 -12
  443. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  444. package/fesm2015/taiga-ui-kit-components-input-date.js +15 -12
  445. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  446. package/fesm2015/taiga-ui-kit-components-input-files.js +13 -13
  447. package/fesm2015/taiga-ui-kit-components-input-inline.js +7 -7
  448. package/fesm2015/taiga-ui-kit-components-input-month-range.js +10 -10
  449. package/fesm2015/taiga-ui-kit-components-input-month.js +10 -10
  450. package/fesm2015/taiga-ui-kit-components-input-number.js +10 -10
  451. package/fesm2015/taiga-ui-kit-components-input-password.js +17 -14
  452. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  453. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +21 -14
  454. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  455. package/fesm2015/taiga-ui-kit-components-input-phone.js +10 -10
  456. package/fesm2015/taiga-ui-kit-components-input-range.js +10 -10
  457. package/fesm2015/taiga-ui-kit-components-input-slider.js +7 -7
  458. package/fesm2015/taiga-ui-kit-components-input-tag.js +8 -8
  459. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  460. package/fesm2015/taiga-ui-kit-components-input-time.js +8 -8
  461. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  462. package/fesm2015/taiga-ui-kit-components-input-year.js +10 -10
  463. package/fesm2015/taiga-ui-kit-components-input.js +10 -10
  464. package/fesm2015/taiga-ui-kit-components-island.js +7 -7
  465. package/fesm2015/taiga-ui-kit-components-items-with-more.js +16 -16
  466. package/fesm2015/taiga-ui-kit-components-line-clamp.js +14 -14
  467. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  468. package/fesm2015/taiga-ui-kit-components-marker-icon.js +7 -7
  469. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +7 -7
  470. package/fesm2015/taiga-ui-kit-components-multi-select.js +21 -18
  471. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  472. package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
  473. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +13 -13
  474. package/fesm2015/taiga-ui-kit-components-progress.js +19 -19
  475. package/fesm2015/taiga-ui-kit-components-prompt.js +64 -0
  476. package/fesm2015/taiga-ui-kit-components-prompt.js.map +1 -0
  477. package/fesm2015/taiga-ui-kit-components-push.js +19 -19
  478. package/fesm2015/taiga-ui-kit-components-radio-block.js +7 -7
  479. package/fesm2015/taiga-ui-kit-components-radio-group.js +7 -7
  480. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +7 -7
  481. package/fesm2015/taiga-ui-kit-components-radio-list.js +7 -7
  482. package/fesm2015/taiga-ui-kit-components-radio.js +7 -7
  483. package/fesm2015/taiga-ui-kit-components-range.js +10 -10
  484. package/fesm2015/taiga-ui-kit-components-rating.js +9 -9
  485. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  486. package/fesm2015/taiga-ui-kit-components-select-option.js +7 -7
  487. package/fesm2015/taiga-ui-kit-components-select.js +24 -21
  488. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  489. package/fesm2015/taiga-ui-kit-components-slider.js +16 -16
  490. package/fesm2015/taiga-ui-kit-components-stepper.js +10 -10
  491. package/fesm2015/taiga-ui-kit-components-tabs.js +22 -22
  492. package/fesm2015/taiga-ui-kit-components-tag.js +7 -7
  493. package/fesm2015/taiga-ui-kit-components-text-area.js +11 -11
  494. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  495. package/fesm2015/taiga-ui-kit-components-tiles.js +13 -13
  496. package/fesm2015/taiga-ui-kit-components-toggle.js +7 -7
  497. package/fesm2015/taiga-ui-kit-components-tree.js +28 -28
  498. package/fesm2015/taiga-ui-kit-components.js +1 -0
  499. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  500. package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +7 -7
  501. package/fesm2015/taiga-ui-kit-directives-highlight.js +7 -7
  502. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +10 -10
  503. package/fesm2015/taiga-ui-kit-directives-mask.js +7 -7
  504. package/fesm2015/taiga-ui-kit-directives-present.js +7 -7
  505. package/fesm2015/taiga-ui-kit-directives-project-class.js +7 -7
  506. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +7 -7
  507. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +7 -7
  508. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +7 -7
  509. package/fesm2015/taiga-ui-kit-pipes-field-error.js +10 -10
  510. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +10 -10
  511. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +7 -7
  512. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +7 -7
  513. package/fesm2015/taiga-ui-kit-pipes-stringify.js +7 -7
  514. package/fesm2015/taiga-ui-kit-pipes-to-year.js +7 -7
  515. package/fesm2015/taiga-ui-kit-tokens.js +4 -1
  516. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  517. package/package.json +4 -4
  518. package/tokens/i18n.d.ts +4 -0
@@ -5,7 +5,7 @@ import * as i4 from '@angular/forms';
5
5
  import { NgControl, FormsModule } from '@angular/forms';
6
6
  import { AbstractTuiControl, tuiAsFocusableItemAccessor, tuiAsControl, tuiPure, tuiIsInput } from '@taiga-ui/cdk';
7
7
  import * as i1 from '@taiga-ui/core';
8
- import { TUI_TEXTFIELD_SIZE, TuiHintOptionsDirective, TUI_MODE, MODE_PROVIDER, TuiPrimitiveTextfieldComponent, AbstractTuiTextfieldHost, tuiAsTextfieldHost, TuiSvgModule, TuiHintModule, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiTextfieldComponent } from '@taiga-ui/core';
8
+ import { TUI_TEXTFIELD_SIZE, TuiHintOptionsDirective, TUI_MODE, MODE_PROVIDER, TuiPrimitiveTextfieldComponent, AbstractTuiTextfieldHost, tuiAsTextfieldHost, TuiWrapperModule, TuiSvgModule, TuiHintModule, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiTextfieldComponent } from '@taiga-ui/core';
9
9
  import { TUI_PASSWORD_TEXTS } from '@taiga-ui/kit/tokens';
10
10
  import * as i5 from 'rxjs';
11
11
  import { EMPTY, combineLatest } from 'rxjs';
@@ -18,8 +18,8 @@ import { CommonModule } from '@angular/common';
18
18
  /** Default values for the input password options. */
19
19
  const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS = {
20
20
  icons: {
21
- hide: ({ $implicit }) => $implicit === `s` ? `tuiIconEyeClosed` : `tuiIconHideLarge`,
22
- show: ({ $implicit }) => $implicit === `s` ? `tuiIconEyeOpen` : `tuiIconShowLarge`,
21
+ hide: ({ $implicit }) => $implicit === `s` ? `tuiIconEyeOff` : `tuiIconEyeOffLarge`,
22
+ show: ({ $implicit }) => ($implicit === `s` ? `tuiIconEye` : `tuiIconEyeLarge`),
23
23
  },
24
24
  };
25
25
  const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken(`[TUI_INPUT_PASSWORD_OPTIONS]: Default parameters for input password component`, {
@@ -79,16 +79,16 @@ class TuiInputPasswordComponent extends AbstractTuiControl {
79
79
  return { $implicit };
80
80
  }
81
81
  }
82
- TuiInputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }, { token: TUI_PASSWORD_TEXTS }, { token: TUI_INPUT_PASSWORD_OPTIONS }, { token: TuiHintOptionsDirective, optional: true }, { token: TUI_MODE }], target: i0.ɵɵFactoryTarget.Component });
83
- TuiInputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputPasswordComponent, selector: "tui-input-password", providers: [
82
+ TuiInputPasswordComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_TEXTFIELD_SIZE }, { token: TUI_PASSWORD_TEXTS }, { token: TUI_INPUT_PASSWORD_OPTIONS }, { token: TuiHintOptionsDirective, optional: true }, { token: TUI_MODE }], target: i0.ɵɵFactoryTarget.Component });
83
+ TuiInputPasswordComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputPasswordComponent, selector: "tui-input-password", providers: [
84
84
  tuiAsFocusableItemAccessor(TuiInputPasswordComponent),
85
85
  tuiAsControl(TuiInputPasswordComponent),
86
86
  MODE_PROVIDER,
87
- ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoActive]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n [focusable]=\"focusable\"\n [nativeId]=\"nativeId\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"interactive ? iconContent : ''\"\n [value]=\"value\"\n (valueChange)=\"onValueChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: context\"\n automation-id=\"tui-password__icon\"\n class=\"t-icon\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [src]=\"src\"\n (click)=\"togglePasswordVisibility()\"\n ></tui-svg>\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon{cursor:pointer;pointer-events:auto}.t-textfield{border-radius:inherit;text-align:inherit}\n"], components: [{ type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i2.PolymorpheusTemplate, selector: "ng-template[polymorpheus]", inputs: ["polymorpheus"], exportAs: ["polymorpheus"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1.TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"] }, { type: i1.TuiHintDriverDirective, selector: "[tuiHint]" }, { type: i1.TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i1.TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: ["tuiHintDirection"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
87
+ ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoActive]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n [focusable]=\"focusable\"\n [nativeId]=\"nativeId\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"interactive ? iconContent : ''\"\n [value]=\"value\"\n (valueChange)=\"onValueChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: context\"\n tuiWrapper\n appearance=\"icon\"\n automation-id=\"tui-password__icon\"\n class=\"t-icon\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [src]=\"src\"\n (click)=\"togglePasswordVisibility()\"\n ></tui-svg>\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon{cursor:pointer;pointer-events:auto}.t-textfield{border-radius:inherit;text-align:inherit}\n"], components: [{ type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i2.PolymorpheusTemplate, selector: "ng-template[polymorpheus]", inputs: ["polymorpheus"], exportAs: ["polymorpheus"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i1.TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"] }, { type: i1.TuiHintDriverDirective, selector: "[tuiHint]" }, { type: i1.TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: ["tuiHintShowDelay", "tuiHintHideDelay"], exportAs: ["tuiHintHover"] }, { type: i1.TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: ["tuiHintDirection"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
88
  __decorate([
89
89
  tuiPure
90
90
  ], TuiInputPasswordComponent.prototype, "getContext", null);
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordComponent, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordComponent, decorators: [{
92
92
  type: Component,
93
93
  args: [{
94
94
  selector: 'tui-input-password',
@@ -147,9 +147,9 @@ class TuiInputPasswordDirective extends AbstractTuiTextfieldHost {
147
147
  }
148
148
  }
149
149
  }
150
- TuiInputPasswordDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
151
- TuiInputPasswordDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputPasswordDirective, selector: "tui-input-password", providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)], usesInheritance: true, ngImport: i0 });
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordDirective, decorators: [{
150
+ TuiInputPasswordDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
151
+ TuiInputPasswordDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputPasswordDirective, selector: "tui-input-password", providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)], usesInheritance: true, ngImport: i0 });
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordDirective, decorators: [{
153
153
  type: Directive,
154
154
  args: [{
155
155
  selector: 'tui-input-password',
@@ -159,32 +159,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
159
159
 
160
160
  class TuiInputPasswordModule {
161
161
  }
162
- TuiInputPasswordModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
163
- TuiInputPasswordModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordModule, declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective], imports: [CommonModule,
162
+ TuiInputPasswordModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
163
+ TuiInputPasswordModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordModule, declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective], imports: [CommonModule,
164
164
  FormsModule,
165
165
  PolymorpheusModule,
166
+ TuiWrapperModule,
166
167
  TuiSvgModule,
167
168
  TuiHintModule,
168
169
  TuiPrimitiveTextfieldModule,
169
170
  TuiTextfieldControllerModule], exports: [TuiInputPasswordComponent,
170
171
  TuiInputPasswordDirective,
171
172
  TuiTextfieldComponent] });
172
- TuiInputPasswordModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordModule, imports: [[
173
+ TuiInputPasswordModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordModule, imports: [[
173
174
  CommonModule,
174
175
  FormsModule,
175
176
  PolymorpheusModule,
177
+ TuiWrapperModule,
176
178
  TuiSvgModule,
177
179
  TuiHintModule,
178
180
  TuiPrimitiveTextfieldModule,
179
181
  TuiTextfieldControllerModule,
180
182
  ]] });
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPasswordModule, decorators: [{
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPasswordModule, decorators: [{
182
184
  type: NgModule,
183
185
  args: [{
184
186
  imports: [
185
187
  CommonModule,
186
188
  FormsModule,
187
189
  PolymorpheusModule,
190
+ TuiWrapperModule,
188
191
  TuiSvgModule,
189
192
  TuiHintModule,
190
193
  TuiPrimitiveTextfieldModule,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-password.js","sources":["../../../projects/kit/components/input-password/input-password-options.ts","../../../projects/kit/components/input-password/input-password.component.ts","../../../projects/kit/components/input-password/input-password.template.html","../../../projects/kit/components/input-password/input-password.directive.ts","../../../projects/kit/components/input-password/input-password.module.ts","../../../projects/kit/components/input-password/taiga-ui-kit-components-input-password.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} 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 TuiInputPasswordOptions {\n readonly icons: Readonly<{\n hide: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n show: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n }>;\n}\n\n/** Default values for the input password options. */\nexport const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: TuiInputPasswordOptions = {\n icons: {\n hide: ({$implicit}) =>\n $implicit === `s` ? `tuiIconEyeClosed` : `tuiIconHideLarge`,\n show: ({$implicit}) =>\n $implicit === `s` ? `tuiIconEyeOpen` : `tuiIconShowLarge`,\n },\n};\n\nexport const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken<TuiInputPasswordOptions>(\n `[TUI_INPUT_PASSWORD_OPTIONS]: Default parameters for input password component`,\n {\n factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiInputPasswordOptionsProvider: (\n options: Partial<TuiInputPasswordOptions>,\n) => ValueProvider = (options: Partial<TuiInputPasswordOptions>) => ({\n provide: TUI_INPUT_PASSWORD_OPTIONS,\n useValue: {...TUI_INPUT_PASSWORD_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiContextWithImplicit,\n TuiFocusableElementAccessor,\n TuiInputType,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TUI_TEXTFIELD_SIZE,\n TuiBrightness,\n TuiHintOptionsDirective,\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, EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nimport {\n TUI_INPUT_PASSWORD_OPTIONS,\n TuiInputPasswordOptions,\n} from './input-password-options';\n\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 tuiAsFocusableItemAccessor(TuiInputPasswordComponent),\n tuiAsControl(TuiInputPasswordComponent),\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 private readonly directive$: Observable<any> = this.hintOptions?.change$ || EMPTY;\n\n isPasswordHidden = true;\n\n readonly computedAppearance$: Observable<string> = combineLatest([\n this.mode$.pipe(map(val => (val === 'onDark' ? 'onDark' : ''))),\n this.directive$.pipe(\n startWith(null),\n map(() => this.hintOptions?.appearance || ''),\n ),\n ]).pipe(\n map(([mode, controller]) => controller || mode),\n startWith(''),\n );\n\n readonly type!: TuiContextWithImplicit<TuiSizeL | TuiSizeS>;\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: TuiInputPasswordOptions,\n @Optional()\n @Inject(TuiHintOptionsDirective)\n readonly hintOptions: TuiHintOptionsDirective | null,\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<TuiSizeL | TuiSizeS>> {\n return this.isPasswordHidden ? this.options.icons.hide : this.options.icons.show;\n }\n\n get context(): TuiContextWithImplicit<TuiSizeL | TuiSizeS> {\n return this.getContext(this.textfieldSize.size);\n }\n\n get inputType(): TuiInputType {\n return this.isPasswordHidden || !this.interactive ? 'password' : 'text';\n }\n\n onValueChange(textValue: string): void {\n this.updateValue(textValue);\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n togglePasswordVisibility(): void {\n this.isPasswordHidden = !this.isPasswordHidden;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n @tuiPure\n private getContext(\n $implicit: TuiSizeL | TuiSizeS,\n ): TuiContextWithImplicit<TuiSizeL | TuiSizeS> {\n return {$implicit};\n }\n}\n","<tui-primitive-textfield\n class=\"t-textfield\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoActive]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n [focusable]=\"focusable\"\n [nativeId]=\"nativeId\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"interactive ? iconContent : ''\"\n [value]=\"value\"\n (valueChange)=\"onValueChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: context\"\n automation-id=\"tui-password__icon\"\n class=\"t-icon\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [src]=\"src\"\n (click)=\"togglePasswordVisibility()\"\n ></tui-svg>\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n","import {Directive, DoCheck} from '@angular/core';\nimport {tuiIsInput} from '@taiga-ui/cdk';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\n\n@Directive({\n selector: 'tui-input-password',\n providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)],\n})\nexport class TuiInputPasswordDirective\n extends AbstractTuiTextfieldHost<TuiInputPasswordComponent>\n implements DoCheck\n{\n input?: HTMLInputElement;\n\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n override process(input: HTMLInputElement): void {\n this.input = input;\n }\n\n ngDoCheck(): void {\n if (\n this.host.nativeFocusableElement &&\n tuiIsInput(this.host.nativeFocusableElement)\n ) {\n this.host.nativeFocusableElement.type = this.host.inputType;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\nimport {TuiInputPasswordDirective} from './input-password.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective],\n exports: [\n TuiInputPasswordComponent,\n TuiInputPasswordDirective,\n TuiTextfieldComponent,\n ],\n})\nexport class TuiInputPasswordModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAYA;AACa,MAAA,kCAAkC,GAA4B;AACvE,IAAA,KAAK,EAAE;AACH,QA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B,yBAAyB;wBACzB,qBAAqB;AACxB,qBAAA;AACJ,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-password.js","sources":["../../../projects/kit/components/input-password/input-password-options.ts","../../../projects/kit/components/input-password/input-password.component.ts","../../../projects/kit/components/input-password/input-password.template.html","../../../projects/kit/components/input-password/input-password.directive.ts","../../../projects/kit/components/input-password/input-password.module.ts","../../../projects/kit/components/input-password/taiga-ui-kit-components-input-password.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} 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 TuiInputPasswordOptions {\n readonly icons: Readonly<{\n hide: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n show: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n }>;\n}\n\n/** Default values for the input password options. */\nexport const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: TuiInputPasswordOptions = {\n icons: {\n hide: ({$implicit}) =>\n $implicit === `s` ? `tuiIconEyeOff` : `tuiIconEyeOffLarge`,\n show: ({$implicit}) => ($implicit === `s` ? `tuiIconEye` : `tuiIconEyeLarge`),\n },\n};\n\nexport const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken<TuiInputPasswordOptions>(\n `[TUI_INPUT_PASSWORD_OPTIONS]: Default parameters for input password component`,\n {\n factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiInputPasswordOptionsProvider: (\n options: Partial<TuiInputPasswordOptions>,\n) => ValueProvider = (options: Partial<TuiInputPasswordOptions>) => ({\n provide: TUI_INPUT_PASSWORD_OPTIONS,\n useValue: {...TUI_INPUT_PASSWORD_DEFAULT_OPTIONS, ...options},\n});\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiContextWithImplicit,\n TuiFocusableElementAccessor,\n TuiInputType,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n MODE_PROVIDER,\n TUI_MODE,\n TUI_TEXTFIELD_SIZE,\n TuiBrightness,\n TuiHintOptionsDirective,\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, EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nimport {\n TUI_INPUT_PASSWORD_OPTIONS,\n TuiInputPasswordOptions,\n} from './input-password-options';\n\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 tuiAsFocusableItemAccessor(TuiInputPasswordComponent),\n tuiAsControl(TuiInputPasswordComponent),\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 private readonly directive$: Observable<any> = this.hintOptions?.change$ || EMPTY;\n\n isPasswordHidden = true;\n\n readonly computedAppearance$: Observable<string> = combineLatest([\n this.mode$.pipe(map(val => (val === 'onDark' ? 'onDark' : ''))),\n this.directive$.pipe(\n startWith(null),\n map(() => this.hintOptions?.appearance || ''),\n ),\n ]).pipe(\n map(([mode, controller]) => controller || mode),\n startWith(''),\n );\n\n readonly type!: TuiContextWithImplicit<TuiSizeL | TuiSizeS>;\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: TuiInputPasswordOptions,\n @Optional()\n @Inject(TuiHintOptionsDirective)\n readonly hintOptions: TuiHintOptionsDirective | null,\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<TuiSizeL | TuiSizeS>> {\n return this.isPasswordHidden ? this.options.icons.hide : this.options.icons.show;\n }\n\n get context(): TuiContextWithImplicit<TuiSizeL | TuiSizeS> {\n return this.getContext(this.textfieldSize.size);\n }\n\n get inputType(): TuiInputType {\n return this.isPasswordHidden || !this.interactive ? 'password' : 'text';\n }\n\n onValueChange(textValue: string): void {\n this.updateValue(textValue);\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n togglePasswordVisibility(): void {\n this.isPasswordHidden = !this.isPasswordHidden;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n @tuiPure\n private getContext(\n $implicit: TuiSizeL | TuiSizeS,\n ): TuiContextWithImplicit<TuiSizeL | TuiSizeS> {\n return {$implicit};\n }\n}\n","<tui-primitive-textfield\n class=\"t-textfield\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoActive]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n [focusable]=\"focusable\"\n [nativeId]=\"nativeId\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"interactive ? iconContent : ''\"\n [value]=\"value\"\n (valueChange)=\"onValueChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n select=\"input\"\n ngProjectAs=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: context\"\n tuiWrapper\n appearance=\"icon\"\n automation-id=\"tui-password__icon\"\n class=\"t-icon\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [src]=\"src\"\n (click)=\"togglePasswordVisibility()\"\n ></tui-svg>\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n","import {Directive, DoCheck} from '@angular/core';\nimport {tuiIsInput} from '@taiga-ui/cdk';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\n\n@Directive({\n selector: 'tui-input-password',\n providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)],\n})\nexport class TuiInputPasswordDirective\n extends AbstractTuiTextfieldHost<TuiInputPasswordComponent>\n implements DoCheck\n{\n input?: HTMLInputElement;\n\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n override process(input: HTMLInputElement): void {\n this.input = input;\n }\n\n ngDoCheck(): void {\n if (\n this.host.nativeFocusableElement &&\n tuiIsInput(this.host.nativeFocusableElement)\n ) {\n this.host.nativeFocusableElement.type = this.host.inputType;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\nimport {TuiInputPasswordDirective} from './input-password.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective],\n exports: [\n TuiInputPasswordComponent,\n TuiInputPasswordDirective,\n TuiTextfieldComponent,\n ],\n})\nexport class TuiInputPasswordModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAYA;AACa,MAAA,kCAAkC,GAA4B;AACvE,IAAA,KAAK,EAAE;AACH,QAAA,IAAI,EAAE,CAAC,EAAC,SAAS,EAAC,KACd,SAAS,KAAK,CAAA,CAAA,CAAG,GAAG,eAAe,GAAG,CAAoB,kBAAA,CAAA;QAC9D,IAAI,EAAE,CAAC,EAAC,SAAS,EAAC,MAAM,SAAS,KAAK,CAAG,CAAA,CAAA,GAAG,CAAA,UAAA,CAAY,GAAG,iBAAiB,CAAC;AAChF,KAAA;EACH;MAEW,0BAA0B,GAAG,IAAI,cAAc,CACxD,+EAA+E,EAC/E;AACI,IAAA,OAAO,EAAE,MAAM,kCAAkC;AACpD,CAAA,EACH;MAEW,+BAA+B,GAEvB,CAAC,OAAyC,MAAM;AACjE,IAAA,OAAO,EAAE,0BAA0B;AACnC,IAAA,QAAQ,EAAM,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,kCAAkC,CA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,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,EAPhB,YAAA,EAAA,CAAA,yBAAyB,EAAE,yBAAyB,aAT/D,YAAY;QACZ,WAAW;QACX,kBAAkB;QAClB,gBAAgB;QAChB,YAAY;QACZ,aAAa;QACb,2BAA2B;AAC3B,QAAA,4BAA4B,aAI5B,yBAAyB;QACzB,yBAAyB;QACzB,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAGhB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,EAjBtB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,gBAAgB;YAChB,YAAY;YACZ,aAAa;YACb,2BAA2B;YAC3B,4BAA4B;AAC/B,SAAA,CAAA,EAAA,CAAA,CAAA;4FAQQ,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAlBlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,kBAAkB;wBAClB,gBAAgB;wBAChB,YAAY;wBACZ,aAAa;wBACb,2BAA2B;wBAC3B,4BAA4B;AAC/B,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;AACpE,oBAAA,OAAO,EAAE;wBACL,yBAAyB;wBACzB,yBAAyB;wBACzB,qBAAqB;AACxB,qBAAA;AACJ,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
@@ -6,7 +6,7 @@ import { NgControl, FormsModule } from '@angular/forms';
6
6
  import * as i4 from '@taiga-ui/cdk';
7
7
  import { tuiGetClipboardDataText, AbstractTuiControl, CHAR_PLUS, tuiAsFocusableItemAccessor, tuiAsControl, tuiDefaultProp, tuiPure, TuiLetModule, TuiMapperPipeModule, TuiActiveZoneModule } from '@taiga-ui/cdk';
8
8
  import * as i1 from '@taiga-ui/core';
9
- import { TUI_NON_DIGITS_REGEXP, TUI_MASK_SYMBOLS_REGEXP, TUI_ICONS_PATH, TuiPrimitiveTextfieldComponent, TuiSvgModule, TuiGroupModule, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiHintModule, TuiHostedDropdownModule, TuiDataListModule } from '@taiga-ui/core';
9
+ import { TUI_NON_DIGITS_REGEXP, TUI_MASK_SYMBOLS_REGEXP, TUI_SVG_OPTIONS, TuiPrimitiveTextfieldComponent, TuiSvgModule, TuiGroupModule, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiHintModule, TuiHostedDropdownModule, TuiDataListModule, TuiWrapperModule } from '@taiga-ui/core';
10
10
  import { TuiCountryIsoCode } from '@taiga-ui/i18n';
11
11
  import { TUI_ARROW, TuiArrowModule } from '@taiga-ui/kit/components/arrow';
12
12
  import * as i2 from '@taiga-ui/kit/components/input-phone';
@@ -15,8 +15,9 @@ import { FIXED_DROPDOWN_CONTROLLER_PROVIDER } from '@taiga-ui/kit/providers';
15
15
  import { TUI_COUNTRIES } from '@taiga-ui/kit/tokens';
16
16
  import * as i3 from '@angular/common';
17
17
  import { CommonModule } from '@angular/common';
18
- import * as i6 from 'rxjs';
18
+ import * as i6 from '@tinkoff/ng-polymorpheus';
19
19
  import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
20
+ import * as i7 from 'rxjs';
20
21
 
21
22
  const MASK_AFTER_CODE_REGEXP = /\([#]+\)|[#\- ]/g;
22
23
 
@@ -260,7 +261,7 @@ function tuiExtractValueFromEvent(event) {
260
261
  }
261
262
 
262
263
  class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
263
- constructor(control, changeDetectorRef, iconsPath, countriesNames$, countriesMasks, options) {
264
+ constructor(control, changeDetectorRef, { path }, countriesNames$, countriesMasks, options) {
264
265
  super(control, changeDetectorRef);
265
266
  this.countriesNames$ = countriesNames$;
266
267
  this.countriesMasks = countriesMasks;
@@ -272,10 +273,13 @@ class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
272
273
  this.open = false;
273
274
  this.arrow = TUI_ARROW;
274
275
  this.isoToCountryCodeMapper = item => this.isoToCountryCode(item);
275
- this.staticPath = iconsPath('tuiIcon').replace('tuiIcon.svg#tuiIcon', '');
276
+ this.staticPath = path('tuiIcon').replace('tuiIcon.svg#tuiIcon', '');
276
277
  }
277
278
  set isoCode(code) {
278
279
  var _a;
280
+ if (this.countryIsoCode === code) {
281
+ return;
282
+ }
279
283
  (_a = this.inputPhoneComponent) === null || _a === void 0 ? void 0 : _a.writeValue(this.value);
280
284
  this.countryIsoCode = code;
281
285
  }
@@ -386,18 +390,18 @@ class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
386
390
  });
387
391
  }
388
392
  }
389
- TuiInputPhoneInternationalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPhoneInternationalComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_ICONS_PATH }, { token: TUI_COUNTRIES }, { token: TUI_COUNTRIES_MASKS }, { token: TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
390
- TuiInputPhoneInternationalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputPhoneInternationalComponent, selector: "tui-input-phone-international", inputs: { isoCode: ["countryIsoCode", "isoCode"], countries: "countries" }, outputs: { countryIsoCodeChange: "countryIsoCodeChange" }, host: { listeners: { "paste.capture.prevent.stop": "onPaste($event)", "drop.capture.prevent.stop": "onPaste($event)" } }, providers: [
393
+ TuiInputPhoneInternationalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: TUI_SVG_OPTIONS }, { token: TUI_COUNTRIES }, { token: TUI_COUNTRIES_MASKS }, { token: TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
394
+ TuiInputPhoneInternationalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputPhoneInternationalComponent, selector: "tui-input-phone-international", inputs: { isoCode: ["countryIsoCode", "isoCode"], countries: "countries" }, outputs: { countryIsoCodeChange: "countryIsoCodeChange" }, host: { listeners: { "paste.capture.prevent.stop": "onPaste($event)", "drop.capture.prevent.stop": "onPaste($event)" } }, providers: [
391
395
  tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),
392
396
  tuiAsControl(TuiInputPhoneInternationalComponent),
393
- ], viewQueries: [{ propertyName: "inputPhoneComponent", first: true, predicate: TuiInputPhoneComponent, descendants: true }, { propertyName: "primitiveTextfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-hosted-dropdown\n *ngIf=\"countriesNames$ | async as countriesNames\"\n class=\"t-hosted-dropdown\"\n [content]=\"dropdown\"\n [canOpen]=\"!readOnly\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPrefix=\"\"\n tuiTextfieldPostfix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldIcon]=\"arrow\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [editable]=\"false\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n ></tui-primitive-textfield>\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [ngModel]=\"value\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [countryCode]=\"inputPhoneCountryCode\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [readOnly]=\"readOnly\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n (ngModelChange)=\"onModelChange($event)\"\n >\n <ng-content></ng-content>\n <input\n tuiTextfield\n autocomplete=\"new-password\"\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-country-item-flag\"\n [src]=\"getFlagPath(item)\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiMapper : isoToCountryCodeMapper }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <!-- eslint-disable @html-eslint/require-img-alt -->\n <img\n class=\"t-flag\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryFlagPath\"\n />\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block}:host._disabled{pointer-events:none}.t-hosted-dropdown{display:block}.t-country-select{width:5.625rem}.t-country-select:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}.t-country-select._readonly ::ng-deep input{cursor:default}.t-country-select[data-size=m]{width:5.5rem}.t-country-select[data-size=s]{width:2rem}.t-country-select[data-size=s] .t-flag{margin-left:-1rem}.t-arrow-icon{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-arrow-icon:hover{color:var(--tui-text-02)}:host._readonly .t-arrow-icon,:host._disabled .t-arrow-icon{pointer-events:none}:host[data-mode=onDark] .t-arrow-icon{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-arrow-icon:hover{color:var(--tui-text-01-night)}.t-arrow-icon_open{transform:rotate(180deg)}.t-input-phone{flex:1}.t-flag{width:1.75rem;height:1.25rem;margin-left:-.5rem}.t-country-item-flag{width:1.75rem;height:1.25rem}.t-country-item-name{margin-left:.75rem;margin-right:auto}.t-country-item-code{color:var(--tui-text-02);margin-right:.25rem}\n"], components: [{ type: i1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2.TuiInputPhoneComponent, selector: "tui-input-phone", inputs: ["countryCode", "phoneMaskAfterCountryCode", "allowText", "search"], outputs: ["searchChange"] }, { type: i1.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i1.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1.TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i1.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { type: i1.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { type: i1.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }, { type: i1.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i2.TuiInputPhoneDirective, selector: "tui-input-phone" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i3.AsyncPipe, "tuiMapper": i4.TuiMapperPipe }, viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0.ChangeDetectionStrategy.OnPush });
397
+ ], viewQueries: [{ propertyName: "inputPhoneComponent", first: true, predicate: TuiInputPhoneComponent, descendants: true }, { propertyName: "primitiveTextfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-hosted-dropdown\n *ngIf=\"countriesNames$ | async as countriesNames\"\n class=\"t-hosted-dropdown\"\n [content]=\"dropdown\"\n [canOpen]=\"!readOnly\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPrefix=\"\"\n tuiTextfieldPostfix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldLabelOutside]=\"true\"\n [tuiTextfieldIcon]=\"icon\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [editable]=\"false\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n ></tui-primitive-textfield>\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [ngModel]=\"value\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [countryCode]=\"inputPhoneCountryCode\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [readOnly]=\"readOnly\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n (ngModelChange)=\"onModelChange($event)\"\n >\n <ng-content></ng-content>\n <input\n tuiTextfield\n autocomplete=\"new-password\"\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-country-item-flag\"\n [src]=\"getFlagPath(item)\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiMapper : isoToCountryCodeMapper }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <!-- eslint-disable @html-eslint/require-img-alt -->\n <img\n class=\"t-flag\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryFlagPath\"\n />\n </ng-template>\n\n <ng-template #icon>\n <div\n tuiWrapper\n appearance=\"icon\"\n >\n <ng-container *polymorpheusOutlet=\"arrow\"></ng-container>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block}:host._disabled{pointer-events:none}.t-hosted-dropdown{display:block}.t-country-select{width:5.625rem}.t-country-select:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}.t-country-select._readonly ::ng-deep input{cursor:default}.t-country-select[data-size=m]{width:5.5rem}.t-country-select[data-size=s]{width:2rem}.t-country-select[data-size=s] .t-flag{margin-left:-1rem}.t-arrow-icon{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer}:host._readonly .t-arrow-icon,:host._disabled .t-arrow-icon{pointer-events:none}.t-arrow-icon_open{transform:rotate(180deg)}.t-input-phone{flex:1}.t-flag{width:1.75rem;height:1.25rem;margin-left:-.5rem}.t-country-item-flag{width:1.75rem;height:1.25rem}.t-country-item-name{margin-left:.75rem;margin-right:auto}.t-country-item-code{color:var(--tui-text-02);margin-right:.25rem}\n"], components: [{ type: i1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "filler", "iconCleaner", "readOnly", "invalid", "disabled", "prefix", "postfix", "value"], outputs: ["valueChange"] }, { type: i2.TuiInputPhoneComponent, selector: "tui-input-phone", inputs: ["countryCode", "phoneMaskAfterCountryCode", "allowText", "search"], outputs: ["searchChange"] }, { type: i1.TuiTextfieldComponent, selector: "input[tuiTextfield], textarea[tuiTextfield]" }, { type: i1.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }, { type: i1.TuiOptionComponent, selector: "button[tuiOption], a[tuiOption]", inputs: ["size", "role", "disabled", "value"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i1.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { type: i1.TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { type: i1.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { type: i1.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { type: i1.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }, { type: i1.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i2.TuiInputPhoneDirective, selector: "tui-input-phone" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { type: i6.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], pipes: { "async": i3.AsyncPipe, "tuiMapper": i4.TuiMapperPipe }, viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0.ChangeDetectionStrategy.OnPush });
394
398
  __decorate([
395
399
  tuiDefaultProp()
396
400
  ], TuiInputPhoneInternationalComponent.prototype, "isoCode", null);
397
401
  __decorate([
398
402
  tuiPure
399
403
  ], TuiInputPhoneInternationalComponent.prototype, "calculateMaskAfterCountryCode", null);
400
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPhoneInternationalComponent, decorators: [{
404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalComponent, decorators: [{
401
405
  type: Component,
402
406
  args: [{
403
407
  selector: 'tui-input-phone-international',
@@ -422,8 +426,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
422
426
  args: [ChangeDetectorRef]
423
427
  }] }, { type: undefined, decorators: [{
424
428
  type: Inject,
425
- args: [TUI_ICONS_PATH]
426
- }] }, { type: i6.Observable, decorators: [{
429
+ args: [TUI_SVG_OPTIONS]
430
+ }] }, { type: i7.Observable, decorators: [{
427
431
  type: Inject,
428
432
  args: [TUI_COUNTRIES]
429
433
  }] }, { type: undefined, decorators: [{
@@ -455,8 +459,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
455
459
 
456
460
  class TuiInputPhoneInternationalModule {
457
461
  }
458
- TuiInputPhoneInternationalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPhoneInternationalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
459
- TuiInputPhoneInternationalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPhoneInternationalModule, declarations: [TuiInputPhoneInternationalComponent], imports: [CommonModule,
462
+ TuiInputPhoneInternationalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
463
+ TuiInputPhoneInternationalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalModule, declarations: [TuiInputPhoneInternationalComponent], imports: [CommonModule,
460
464
  FormsModule,
461
465
  PolymorpheusModule,
462
466
  TuiSvgModule,
@@ -468,10 +472,11 @@ TuiInputPhoneInternationalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion:
468
472
  TuiHostedDropdownModule,
469
473
  TuiDataListModule,
470
474
  TuiArrowModule,
475
+ TuiWrapperModule,
471
476
  TuiLetModule,
472
477
  TuiMapperPipeModule,
473
478
  TuiActiveZoneModule], exports: [TuiInputPhoneInternationalComponent] });
474
- TuiInputPhoneInternationalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPhoneInternationalModule, imports: [[
479
+ TuiInputPhoneInternationalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalModule, imports: [[
475
480
  CommonModule,
476
481
  FormsModule,
477
482
  PolymorpheusModule,
@@ -484,11 +489,12 @@ TuiInputPhoneInternationalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion:
484
489
  TuiHostedDropdownModule,
485
490
  TuiDataListModule,
486
491
  TuiArrowModule,
492
+ TuiWrapperModule,
487
493
  TuiLetModule,
488
494
  TuiMapperPipeModule,
489
495
  TuiActiveZoneModule,
490
496
  ]] });
491
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputPhoneInternationalModule, decorators: [{
497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputPhoneInternationalModule, decorators: [{
492
498
  type: NgModule,
493
499
  args: [{
494
500
  imports: [
@@ -504,6 +510,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
504
510
  TuiHostedDropdownModule,
505
511
  TuiDataListModule,
506
512
  TuiArrowModule,
513
+ TuiWrapperModule,
507
514
  TuiLetModule,
508
515
  TuiMapperPipeModule,
509
516
  TuiActiveZoneModule,