@taiga-ui/kit 2.25.0 → 2.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (707) hide show
  1. package/abstract/input-slider.d.ts +5 -5
  2. package/abstract/slider/slider.d.ts +5 -5
  3. package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
  4. package/bundles/taiga-ui-kit-abstract.umd.js +9 -9
  5. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  6. package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
  7. package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-accordion.umd.js +23 -7
  9. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-accordion.umd.min.js +2 -2
  11. package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-action.umd.js +3 -3
  13. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
  15. package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +7 -7
  17. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
  19. package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  21. package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-carousel.umd.js +527 -0
  23. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -0
  24. package/bundles/taiga-ui-kit-components-carousel.umd.min.js +16 -0
  25. package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -0
  26. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +3 -3
  27. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
  29. package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +3 -3
  31. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
  33. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
  35. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
  37. package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-combo-box.umd.js +18 -19
  39. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
  41. package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +7 -7
  43. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
  45. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-field-error.umd.js +20 -8
  47. package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
  48. package/bundles/taiga-ui-kit-components-field-error.umd.min.js +2 -2
  49. package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-filter.umd.js +8 -8
  51. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
  53. package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -4
  55. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
  57. package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-count.umd.js +3 -3
  59. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
  61. package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +16 -13
  63. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +1 -1
  65. package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +20 -17
  67. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
  69. package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-date.umd.js +17 -14
  71. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
  73. package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -1
  75. package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
  77. package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-inline.umd.js +5 -4
  79. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
  81. package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -3
  83. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
  85. package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -3
  87. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
  89. package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-input-number.umd.js +17 -31
  91. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
  93. package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-input-password.umd.js +3 -3
  95. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
  97. package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +22 -22
  99. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
  101. package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-input-phone.umd.js +6 -6
  103. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
  105. package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-input-slider.umd.js +3 -3
  107. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
  109. package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-input-tag.umd.js +31 -31
  111. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
  113. package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-input-time.umd.js +16 -16
  115. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
  117. package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
  119. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
  121. package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +7 -7
  123. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
  125. package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +1 -1
  127. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
  129. package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-multi-select.umd.js +18 -18
  131. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
  133. package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-pagination.umd.js +4 -4
  135. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
  137. package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +13 -21
  139. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +2 -2
  141. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-kit-components-progress.umd.js +3 -3
  143. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-components-progress.umd.min.js +1 -1
  145. package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-kit-components-radio-block.umd.js +3 -3
  147. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
  149. package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
  150. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  151. package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +3 -3
  153. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  154. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
  155. package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
  156. package/bundles/taiga-ui-kit-components-radio-list.umd.js +7 -7
  157. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  158. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js +1 -1
  159. package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-kit-components-radio.umd.js +3 -3
  161. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
  163. package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-kit-components-select.umd.js +9 -12
  165. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  166. package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
  167. package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
  168. package/bundles/taiga-ui-kit-components-stepper.umd.js +18 -18
  169. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  170. package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
  171. package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-kit-components-tabs.umd.js +22 -22
  173. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
  175. package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
  176. package/bundles/taiga-ui-kit-components-text-area.umd.js +4 -4
  177. package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
  178. package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
  179. package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
  180. package/bundles/taiga-ui-kit-components-toggle.umd.js +3 -3
  181. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  182. package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
  183. package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
  184. package/bundles/taiga-ui-kit-components-tree.umd.js +64 -53
  185. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-components-tree.umd.min.js +2 -2
  187. package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
  188. package/bundles/taiga-ui-kit-components.umd.js +12 -4
  189. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  190. package/bundles/taiga-ui-kit-components.umd.min.js +1 -1
  191. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +2 -4
  192. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
  193. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +1 -1
  194. package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
  195. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +1 -1
  196. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
  197. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
  198. package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
  199. package/bundles/taiga-ui-kit-directives-highlight.umd.js +7 -2
  200. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  201. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js +1 -1
  202. package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
  203. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +7 -1
  204. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  205. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
  206. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
  207. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  208. package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
  209. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +2 -2
  210. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  211. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
  212. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
  213. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  214. package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
  215. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  216. package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
  217. package/components/accordion/accordion-item/accordion-item-eager-content.directive.d.ts +2 -0
  218. package/components/accordion/accordion-item/accordion-item.component.d.ts +4 -2
  219. package/components/accordion/index.d.ts +1 -0
  220. package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
  221. package/components/action/action.component.d.ts +1 -1
  222. package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
  223. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  224. package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
  225. package/components/calendar-range/calendar-range.component.d.ts +1 -1
  226. package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
  227. package/components/carousel/carousel-autoscroll.directive.d.ts +5 -0
  228. package/components/carousel/carousel-buttons.directive.d.ts +4 -0
  229. package/components/carousel/carousel-scroll.directive.d.ts +6 -0
  230. package/components/carousel/carousel.component.d.ts +29 -0
  231. package/components/carousel/carousel.directive.d.ts +11 -0
  232. package/components/carousel/carousel.module.d.ts +2 -0
  233. package/components/carousel/index.d.ts +6 -0
  234. package/components/carousel/package.json +13 -0
  235. package/components/carousel/taiga-ui-kit-components-carousel.d.ts +4 -0
  236. package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -0
  237. package/components/checkbox/checkbox.component.d.ts +1 -1
  238. package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
  239. package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
  240. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
  241. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -1
  242. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
  243. package/components/combo-box/combo-box.component.d.ts +5 -5
  244. package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
  245. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
  246. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
  247. package/components/field-error/field-error.component.d.ts +3 -2
  248. package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
  249. package/components/filter/filter.component.d.ts +2 -2
  250. package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
  251. package/components/index.d.ts +1 -0
  252. package/components/input/input.component.d.ts +3 -3
  253. package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
  254. package/components/input-copy/input-copy.component.d.ts +2 -2
  255. package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
  256. package/components/input-count/input-count.component.d.ts +2 -2
  257. package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
  258. package/components/input-date/input-date.component.d.ts +4 -4
  259. package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
  260. package/components/input-date-range/input-date-range.component.d.ts +3 -3
  261. package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
  262. package/components/input-date-time/input-date-time.component.d.ts +4 -4
  263. package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
  264. package/components/input-file/input-file.component.d.ts +1 -1
  265. package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
  266. package/components/input-inline/input-inline.component.d.ts +1 -1
  267. package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
  268. package/components/input-month/input-month.component.d.ts +1 -1
  269. package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
  270. package/components/input-month-range/input-month-range.component.d.ts +1 -1
  271. package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
  272. package/components/input-number/input-number.component.d.ts +3 -4
  273. package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
  274. package/components/input-password/input-password.component.d.ts +2 -2
  275. package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
  276. package/components/input-phone/input-phone.component.d.ts +3 -3
  277. package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
  278. package/components/input-phone-international/input-phone-international.component.d.ts +6 -6
  279. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
  280. package/components/input-slider/input-slider.component.d.ts +1 -1
  281. package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
  282. package/components/input-tag/input-tag.component.d.ts +11 -11
  283. package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
  284. package/components/input-time/input-time.component.d.ts +4 -4
  285. package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
  286. package/components/line-clamp/line-clamp.component.d.ts +4 -4
  287. package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
  288. package/components/marker-icon/marker-icon.component.d.ts +1 -1
  289. package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
  290. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  291. package/components/multi-select/multi-select.component.d.ts +7 -7
  292. package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
  293. package/components/pagination/pagination.component.d.ts +1 -1
  294. package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
  295. package/components/pdf-viewer/pdf-viewer.component.d.ts +1 -4
  296. package/components/pdf-viewer/pdf-viewer.service.d.ts +7 -2
  297. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -1
  298. package/components/progress/progress-circle/progress-circle.component.d.ts +1 -1
  299. package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
  300. package/components/radio/radio.component.d.ts +1 -1
  301. package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
  302. package/components/radio-block/radio-block.component.d.ts +1 -1
  303. package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
  304. package/components/radio-group/radio-group.component.d.ts +1 -1
  305. package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
  306. package/components/radio-labeled/radio-labeled.component.d.ts +1 -1
  307. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
  308. package/components/radio-list/radio-list.component.d.ts +3 -3
  309. package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
  310. package/components/select/select.component.d.ts +3 -3
  311. package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
  312. package/components/stepper/stepper.component.d.ts +3 -3
  313. package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
  314. package/components/tabs/tabs/tabs.component.d.ts +2 -2
  315. package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +2 -2
  316. package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
  317. package/components/tabs/underline/underline.component.d.ts +2 -2
  318. package/components/taiga-ui-kit-components.metadata.json +1 -1
  319. package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
  320. package/components/text-area/text-area.component.d.ts +1 -1
  321. package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
  322. package/components/toggle/toggle.component.d.ts +1 -1
  323. package/components/tree/components/tree/tree.component.d.ts +7 -2
  324. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  325. package/components/tree/directives/tree-item-controller.directive.d.ts +1 -1
  326. package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
  327. package/directives/dropdown-context/dropdown-context.directive.d.ts +1 -1
  328. package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
  329. package/directives/dropdown-selection/dropdown-selection.directive.d.ts +3 -3
  330. package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
  331. package/directives/highlight/highlight.directive.d.ts +2 -1
  332. package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
  333. package/directives/lazy-loading/lazy-loading.directive.d.ts +1 -1
  334. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
  335. package/directives/present/present.directive.d.ts +1 -1
  336. package/directives/present/taiga-ui-kit-directives-present.metadata.json +1 -1
  337. package/esm2015/abstract/input-slider.js +2 -2
  338. package/esm2015/abstract/slider/slider.js +9 -9
  339. package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  340. package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +11 -0
  341. package/esm2015/components/accordion/accordion-item/accordion-item.component.js +10 -6
  342. package/esm2015/components/accordion/accordion.module.js +4 -1
  343. package/esm2015/components/accordion/index.js +2 -1
  344. package/esm2015/components/action/action.component.js +4 -4
  345. package/esm2015/components/calendar-month/calendar-month.component.js +6 -6
  346. package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
  347. package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
  348. package/esm2015/components/carousel/carousel-buttons.directive.js +24 -0
  349. package/esm2015/components/carousel/carousel-scroll.directive.js +26 -0
  350. package/esm2015/components/carousel/carousel.component.js +144 -0
  351. package/esm2015/components/carousel/carousel.directive.js +35 -0
  352. package/esm2015/components/carousel/carousel.module.js +38 -0
  353. package/esm2015/components/carousel/index.js +7 -0
  354. package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
  355. package/esm2015/components/checkbox/checkbox.component.js +4 -4
  356. package/esm2015/components/checkbox-block/checkbox-block.component.js +4 -4
  357. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  358. package/esm2015/components/combo-box/combo-box.component.js +19 -20
  359. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  360. package/esm2015/components/field-error/field-error.component.js +15 -6
  361. package/esm2015/components/filter/filter.component.js +9 -9
  362. package/esm2015/components/index.js +2 -1
  363. package/esm2015/components/input/input.component.js +8 -8
  364. package/esm2015/components/input-copy/input-copy.component.js +5 -5
  365. package/esm2015/components/input-count/input-count.component.js +4 -4
  366. package/esm2015/components/input-date/input-date.component.js +18 -15
  367. package/esm2015/components/input-date-range/input-date-range.component.js +17 -14
  368. package/esm2015/components/input-date-time/input-date-time.component.js +20 -17
  369. package/esm2015/components/input-file/input-file.component.js +2 -2
  370. package/esm2015/components/input-inline/input-inline.component.js +6 -5
  371. package/esm2015/components/input-month/input-month.component.js +5 -4
  372. package/esm2015/components/input-month-range/input-month-range.component.js +5 -4
  373. package/esm2015/components/input-number/input-number.component.js +17 -27
  374. package/esm2015/components/input-password/input-password.component.js +4 -4
  375. package/esm2015/components/input-phone/input-phone.component.js +7 -7
  376. package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -20
  377. package/esm2015/components/input-slider/input-slider.component.js +4 -4
  378. package/esm2015/components/input-tag/input-tag.component.js +32 -32
  379. package/esm2015/components/input-time/input-time.component.js +17 -17
  380. package/esm2015/components/line-clamp/line-clamp.component.js +8 -8
  381. package/esm2015/components/marker-icon/marker-icon.component.js +2 -2
  382. package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  383. package/esm2015/components/multi-select/multi-select.component.js +15 -15
  384. package/esm2015/components/pagination/pagination.component.js +5 -5
  385. package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -20
  386. package/esm2015/components/pdf-viewer/pdf-viewer.service.js +4 -1
  387. package/esm2015/components/progress/pipes/abstract-color-segments.js +1 -1
  388. package/esm2015/components/progress/progress-circle/progress-circle.component.js +4 -4
  389. package/esm2015/components/radio/radio.component.js +4 -4
  390. package/esm2015/components/radio-block/radio-block.component.js +4 -4
  391. package/esm2015/components/radio-group/radio-group.component.js +1 -1
  392. package/esm2015/components/radio-labeled/radio-labeled.component.js +4 -4
  393. package/esm2015/components/radio-list/radio-list.component.js +8 -8
  394. package/esm2015/components/select/select.component.js +10 -13
  395. package/esm2015/components/stepper/stepper.component.js +18 -18
  396. package/esm2015/components/tabs/tabs/tabs.component.js +16 -16
  397. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  398. package/esm2015/components/tabs/underline/underline.component.js +3 -3
  399. package/esm2015/components/text-area/text-area.component.js +5 -5
  400. package/esm2015/components/toggle/toggle.component.js +4 -4
  401. package/esm2015/components/tree/components/tree/tree.component.js +15 -2
  402. package/esm2015/components/tree/components/tree-item/tree-item.component.js +3 -3
  403. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +2 -3
  404. package/esm2015/components/tree/directives/tree-item-controller.directive.js +2 -2
  405. package/esm2015/directives/dropdown-context/dropdown-context.directive.js +3 -5
  406. package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  407. package/esm2015/directives/highlight/highlight.directive.js +8 -3
  408. package/esm2015/directives/lazy-loading/lazy-loading.directive.js +4 -2
  409. package/esm2015/directives/present/present.directive.js +1 -1
  410. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
  411. package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
  412. package/esm2015/tokens/validation-errors.js +1 -1
  413. package/esm5/abstract/input-slider.js +2 -2
  414. package/esm5/abstract/slider/slider.js +9 -9
  415. package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
  416. package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +14 -0
  417. package/esm5/components/accordion/accordion-item/accordion-item.component.js +10 -6
  418. package/esm5/components/accordion/accordion.module.js +4 -1
  419. package/esm5/components/accordion/index.js +2 -1
  420. package/esm5/components/action/action.component.js +4 -4
  421. package/esm5/components/calendar-month/calendar-month.component.js +8 -8
  422. package/esm5/components/calendar-range/calendar-range.component.js +1 -1
  423. package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
  424. package/esm5/components/carousel/carousel-buttons.directive.js +27 -0
  425. package/esm5/components/carousel/carousel-scroll.directive.js +34 -0
  426. package/esm5/components/carousel/carousel.component.js +158 -0
  427. package/esm5/components/carousel/carousel.directive.js +45 -0
  428. package/esm5/components/carousel/carousel.module.js +41 -0
  429. package/esm5/components/carousel/index.js +7 -0
  430. package/esm5/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
  431. package/esm5/components/checkbox/checkbox.component.js +4 -4
  432. package/esm5/components/checkbox-block/checkbox-block.component.js +4 -4
  433. package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
  434. package/esm5/components/combo-box/combo-box.component.js +19 -20
  435. package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
  436. package/esm5/components/field-error/field-error.component.js +19 -6
  437. package/esm5/components/filter/filter.component.js +9 -9
  438. package/esm5/components/index.js +2 -1
  439. package/esm5/components/input/input.component.js +8 -8
  440. package/esm5/components/input-copy/input-copy.component.js +5 -5
  441. package/esm5/components/input-count/input-count.component.js +4 -4
  442. package/esm5/components/input-date/input-date.component.js +18 -15
  443. package/esm5/components/input-date-range/input-date-range.component.js +17 -14
  444. package/esm5/components/input-date-time/input-date-time.component.js +21 -18
  445. package/esm5/components/input-file/input-file.component.js +2 -2
  446. package/esm5/components/input-inline/input-inline.component.js +6 -5
  447. package/esm5/components/input-month/input-month.component.js +5 -4
  448. package/esm5/components/input-month-range/input-month-range.component.js +5 -4
  449. package/esm5/components/input-number/input-number.component.js +18 -32
  450. package/esm5/components/input-password/input-password.component.js +4 -4
  451. package/esm5/components/input-phone/input-phone.component.js +7 -7
  452. package/esm5/components/input-phone-international/input-phone-international.component.js +23 -23
  453. package/esm5/components/input-slider/input-slider.component.js +4 -4
  454. package/esm5/components/input-tag/input-tag.component.js +32 -32
  455. package/esm5/components/input-time/input-time.component.js +17 -17
  456. package/esm5/components/line-clamp/line-clamp.component.js +8 -8
  457. package/esm5/components/marker-icon/marker-icon.component.js +2 -2
  458. package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
  459. package/esm5/components/multi-select/multi-select.component.js +15 -15
  460. package/esm5/components/pagination/pagination.component.js +5 -5
  461. package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -20
  462. package/esm5/components/pdf-viewer/pdf-viewer.service.js +5 -1
  463. package/esm5/components/progress/pipes/abstract-color-segments.js +1 -1
  464. package/esm5/components/progress/progress-circle/progress-circle.component.js +4 -4
  465. package/esm5/components/radio/radio.component.js +4 -4
  466. package/esm5/components/radio-block/radio-block.component.js +4 -4
  467. package/esm5/components/radio-group/radio-group.component.js +1 -1
  468. package/esm5/components/radio-labeled/radio-labeled.component.js +4 -4
  469. package/esm5/components/radio-list/radio-list.component.js +8 -8
  470. package/esm5/components/select/select.component.js +10 -13
  471. package/esm5/components/stepper/stepper.component.js +19 -19
  472. package/esm5/components/tabs/tabs/tabs.component.js +17 -17
  473. package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
  474. package/esm5/components/tabs/underline/underline.component.js +3 -3
  475. package/esm5/components/text-area/text-area.component.js +5 -5
  476. package/esm5/components/toggle/toggle.component.js +4 -4
  477. package/esm5/components/tree/components/tree/tree.component.js +15 -2
  478. package/esm5/components/tree/components/tree-item/tree-item.component.js +3 -3
  479. package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +2 -3
  480. package/esm5/components/tree/directives/tree-item-controller.directive.js +2 -2
  481. package/esm5/directives/dropdown-context/dropdown-context.directive.js +3 -5
  482. package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
  483. package/esm5/directives/highlight/highlight.directive.js +8 -3
  484. package/esm5/directives/lazy-loading/lazy-loading.directive.js +8 -2
  485. package/esm5/directives/present/present.directive.js +1 -1
  486. package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
  487. package/esm5/pipes/stringify/stringify.pipe.js +1 -1
  488. package/esm5/tokens/validation-errors.js +1 -1
  489. package/fesm2015/taiga-ui-kit-abstract.js +9 -9
  490. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  491. package/fesm2015/taiga-ui-kit-components-accordion.js +21 -9
  492. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  493. package/fesm2015/taiga-ui-kit-components-action.js +4 -4
  494. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  495. package/fesm2015/taiga-ui-kit-components-calendar-month.js +5 -5
  496. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  497. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  498. package/fesm2015/taiga-ui-kit-components-carousel.js +267 -0
  499. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -0
  500. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +4 -4
  501. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  502. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  503. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  504. package/fesm2015/taiga-ui-kit-components-checkbox.js +4 -4
  505. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  506. package/fesm2015/taiga-ui-kit-components-combo-box.js +20 -21
  507. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  508. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  509. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  510. package/fesm2015/taiga-ui-kit-components-field-error.js +14 -5
  511. package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
  512. package/fesm2015/taiga-ui-kit-components-filter.js +9 -9
  513. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  514. package/fesm2015/taiga-ui-kit-components-input-copy.js +5 -5
  515. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  516. package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
  517. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  518. package/fesm2015/taiga-ui-kit-components-input-date-range.js +18 -15
  519. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  520. package/fesm2015/taiga-ui-kit-components-input-date-time.js +20 -17
  521. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  522. package/fesm2015/taiga-ui-kit-components-input-date.js +18 -15
  523. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  524. package/fesm2015/taiga-ui-kit-components-input-file.js +1 -1
  525. package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
  526. package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -5
  527. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  528. package/fesm2015/taiga-ui-kit-components-input-month-range.js +5 -4
  529. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  530. package/fesm2015/taiga-ui-kit-components-input-month.js +5 -4
  531. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  532. package/fesm2015/taiga-ui-kit-components-input-number.js +17 -27
  533. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  534. package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
  535. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  536. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +20 -20
  537. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  538. package/fesm2015/taiga-ui-kit-components-input-phone.js +8 -8
  539. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  540. package/fesm2015/taiga-ui-kit-components-input-slider.js +4 -4
  541. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  542. package/fesm2015/taiga-ui-kit-components-input-tag.js +34 -34
  543. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  544. package/fesm2015/taiga-ui-kit-components-input-time.js +17 -17
  545. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  546. package/fesm2015/taiga-ui-kit-components-input.js +9 -9
  547. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  548. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
  549. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  550. package/fesm2015/taiga-ui-kit-components-marker-icon.js +1 -1
  551. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  552. package/fesm2015/taiga-ui-kit-components-multi-select.js +20 -20
  553. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  554. package/fesm2015/taiga-ui-kit-components-pagination.js +6 -6
  555. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  556. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +9 -19
  557. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  558. package/fesm2015/taiga-ui-kit-components-progress.js +3 -3
  559. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  560. package/fesm2015/taiga-ui-kit-components-radio-block.js +4 -4
  561. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  562. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  563. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +4 -4
  564. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  565. package/fesm2015/taiga-ui-kit-components-radio-list.js +9 -9
  566. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  567. package/fesm2015/taiga-ui-kit-components-radio.js +4 -4
  568. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  569. package/fesm2015/taiga-ui-kit-components-select.js +11 -14
  570. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  571. package/fesm2015/taiga-ui-kit-components-stepper.js +18 -18
  572. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  573. package/fesm2015/taiga-ui-kit-components-tabs.js +22 -22
  574. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  575. package/fesm2015/taiga-ui-kit-components-text-area.js +5 -5
  576. package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
  577. package/fesm2015/taiga-ui-kit-components-toggle.js +4 -4
  578. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  579. package/fesm2015/taiga-ui-kit-components-tree.js +56 -45
  580. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  581. package/fesm2015/taiga-ui-kit-components.js +1 -0
  582. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  583. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +2 -4
  584. package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  585. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  586. package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  587. package/fesm2015/taiga-ui-kit-directives-highlight.js +7 -2
  588. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  589. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +3 -1
  590. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  591. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  592. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
  593. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  595. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  596. package/fesm5/taiga-ui-kit-abstract.js +9 -9
  597. package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
  598. package/fesm5/taiga-ui-kit-components-accordion.js +24 -9
  599. package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
  600. package/fesm5/taiga-ui-kit-components-action.js +4 -4
  601. package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
  602. package/fesm5/taiga-ui-kit-components-calendar-month.js +7 -7
  603. package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
  604. package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
  605. package/fesm5/taiga-ui-kit-components-carousel.js +306 -0
  606. package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -0
  607. package/fesm5/taiga-ui-kit-components-checkbox-block.js +4 -4
  608. package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  609. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
  610. package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  611. package/fesm5/taiga-ui-kit-components-checkbox.js +4 -4
  612. package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
  613. package/fesm5/taiga-ui-kit-components-combo-box.js +20 -21
  614. package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
  615. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +9 -9
  616. package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  617. package/fesm5/taiga-ui-kit-components-field-error.js +18 -5
  618. package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
  619. package/fesm5/taiga-ui-kit-components-filter.js +9 -9
  620. package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
  621. package/fesm5/taiga-ui-kit-components-input-copy.js +5 -5
  622. package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
  623. package/fesm5/taiga-ui-kit-components-input-count.js +4 -4
  624. package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
  625. package/fesm5/taiga-ui-kit-components-input-date-range.js +18 -15
  626. package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
  627. package/fesm5/taiga-ui-kit-components-input-date-time.js +21 -18
  628. package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
  629. package/fesm5/taiga-ui-kit-components-input-date.js +18 -15
  630. package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
  631. package/fesm5/taiga-ui-kit-components-input-file.js +1 -1
  632. package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
  633. package/fesm5/taiga-ui-kit-components-input-inline.js +6 -5
  634. package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
  635. package/fesm5/taiga-ui-kit-components-input-month-range.js +5 -4
  636. package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
  637. package/fesm5/taiga-ui-kit-components-input-month.js +5 -4
  638. package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
  639. package/fesm5/taiga-ui-kit-components-input-number.js +18 -32
  640. package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
  641. package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
  642. package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
  643. package/fesm5/taiga-ui-kit-components-input-phone-international.js +23 -23
  644. package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  645. package/fesm5/taiga-ui-kit-components-input-phone.js +8 -8
  646. package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
  647. package/fesm5/taiga-ui-kit-components-input-slider.js +4 -4
  648. package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
  649. package/fesm5/taiga-ui-kit-components-input-tag.js +34 -34
  650. package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
  651. package/fesm5/taiga-ui-kit-components-input-time.js +17 -17
  652. package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
  653. package/fesm5/taiga-ui-kit-components-input.js +9 -9
  654. package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
  655. package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
  656. package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
  657. package/fesm5/taiga-ui-kit-components-marker-icon.js +1 -1
  658. package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
  659. package/fesm5/taiga-ui-kit-components-multi-select.js +20 -20
  660. package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
  661. package/fesm5/taiga-ui-kit-components-pagination.js +6 -6
  662. package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
  663. package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -19
  664. package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  665. package/fesm5/taiga-ui-kit-components-progress.js +3 -3
  666. package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
  667. package/fesm5/taiga-ui-kit-components-radio-block.js +4 -4
  668. package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
  669. package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
  670. package/fesm5/taiga-ui-kit-components-radio-labeled.js +4 -4
  671. package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  672. package/fesm5/taiga-ui-kit-components-radio-list.js +9 -9
  673. package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
  674. package/fesm5/taiga-ui-kit-components-radio.js +4 -4
  675. package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
  676. package/fesm5/taiga-ui-kit-components-select.js +11 -14
  677. package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
  678. package/fesm5/taiga-ui-kit-components-stepper.js +19 -19
  679. package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
  680. package/fesm5/taiga-ui-kit-components-tabs.js +23 -23
  681. package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
  682. package/fesm5/taiga-ui-kit-components-text-area.js +5 -5
  683. package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
  684. package/fesm5/taiga-ui-kit-components-toggle.js +4 -4
  685. package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
  686. package/fesm5/taiga-ui-kit-components-tree.js +65 -54
  687. package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
  688. package/fesm5/taiga-ui-kit-components.js +1 -0
  689. package/fesm5/taiga-ui-kit-components.js.map +1 -1
  690. package/fesm5/taiga-ui-kit-directives-dropdown-context.js +2 -4
  691. package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
  692. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +1 -1
  693. package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
  694. package/fesm5/taiga-ui-kit-directives-highlight.js +7 -2
  695. package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
  696. package/fesm5/taiga-ui-kit-directives-lazy-loading.js +7 -1
  697. package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  698. package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
  699. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +2 -2
  700. package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  701. package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
  702. package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
  703. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
  704. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
  705. package/package.json +6 -5
  706. package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
  707. package/tokens/validation-errors.d.ts +2 -1
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, ViewChild, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl, FormsModule } from '@angular/forms';
4
4
  import { AbstractTuiControl, isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiFocusableModule, TuiFocusedModule } from '@taiga-ui/cdk';
5
5
  import { TUI_VALUE_ACCESSOR_PROVIDER } from '@taiga-ui/kit/providers';
@@ -22,7 +22,8 @@ let TuiInputInlineComponent = TuiInputInlineComponent_1 = class TuiInputInlineCo
22
22
  return this.value !== '';
23
23
  }
24
24
  get maskedValue() {
25
- return this.native && this.value
25
+ var _a;
26
+ return ((_a = this.native) === null || _a === void 0 ? void 0 : _a.nativeElement.value) && this.value
26
27
  ? this.native.nativeElement.value
27
28
  : String(this.value);
28
29
  }
@@ -40,13 +41,13 @@ TuiInputInlineComponent.ctorParameters = () => [
40
41
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
41
42
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] }
42
43
  ];
44
+ __decorate([
45
+ ViewChild('native')
46
+ ], TuiInputInlineComponent.prototype, "native", void 0);
43
47
  __decorate([
44
48
  Input(),
45
49
  tuiDefaultProp()
46
50
  ], TuiInputInlineComponent.prototype, "maxLength", void 0);
47
- __decorate([
48
- ViewChild('native')
49
- ], TuiInputInlineComponent.prototype, "native", void 0);
50
51
  __decorate([
51
52
  HostBinding('attr.data-value')
52
53
  ], TuiInputInlineComponent.prototype, "maskedValue", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-inline.js","sources":["ng://@taiga-ui/kit/components/input-inline/input-inline.component.ts","ng://@taiga-ui/kit/components/input-inline/input-inline.module.ts","ng://@taiga-ui/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Component({\n selector: 'tui-input-inline',\n templateUrl: './input-inline.template.html',\n styleUrls: ['./input-inline.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputInlineComponent),\n },\n ],\n})\nexport class TuiInputInlineComponent\n extends AbstractTuiControl<string | number>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n maxLength: number | null = null;\n\n @ViewChild('native')\n private readonly native?: ElementRef<HTMLInputElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.native ? null : this.native.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('attr.data-value')\n get maskedValue(): string {\n return this.native && this.value\n ? this.native.nativeElement.value\n : String(this.value);\n }\n\n onValueChange(value: string) {\n this.updateValue(value);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule} from '@taiga-ui/cdk';\nimport {TuiMaskAccessorModule} from '@taiga-ui/core';\n\nimport {TuiInputInlineComponent} from './input-inline.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiMaskAccessorModule,\n ],\n declarations: [TuiInputInlineComponent],\n exports: [TuiInputInlineComponent],\n})\nexport class TuiInputInlineModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAqCa,uBAAuB,+BAApC,MAAa,uBACT,SAAQ,kBAAmC;IAU3C,YAII,OAAyB,EACE,iBAAoC;QAE/D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAZtC,cAAS,GAAkB,IAAI,CAAC;KAa/B;IAED,IAAI,sBAAsB;QACtB,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;KAC1D;IAED,IAAI,O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Aa,oBAAoB;EAAG;AAAvB,oBAAoB;IAXhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,gBAAgB;YAChB,qBAAqB;SACxB;QACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACnBpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-inline.js","sources":["ng://@taiga-ui/kit/components/input-inline/input-inline.component.ts","ng://@taiga-ui/kit/components/input-inline/input-inline.module.ts","ng://@taiga-ui/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Component({\n selector: 'tui-input-inline',\n templateUrl: './input-inline.template.html',\n styleUrls: ['./input-inline.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputInlineComponent),\n },\n ],\n})\nexport class TuiInputInlineComponent\n extends AbstractTuiControl<string | number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('native')\n private readonly native?: ElementRef<HTMLInputElement>;\n\n @Input()\n @tuiDefaultProp()\n maxLength: number | null = null;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.native ? null : this.native.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('attr.data-value')\n get maskedValue(): string {\n return this.native?.nativeElement.value && this.value\n ? this.native.nativeElement.value\n : String(this.value);\n }\n\n onValueChange(value: string) {\n this.updateValue(value);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule} from '@taiga-ui/cdk';\nimport {TuiMaskAccessorModule} from '@taiga-ui/core';\n\nimport {TuiInputInlineComponent} from './input-inline.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiMaskAccessorModule,\n ],\n declarations: [TuiInputInlineComponent],\n exports: [TuiInputInlineComponent],\n})\nexport class TuiInputInlineModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAqCa,uBAAuB,+BAApC,MAAa,uBACT,SAAQ,kBAAmC;IAU3C,YAII,OAAyB,EACE,iBAAoC;QAE/D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QATtC,cAAS,GAAkB,IAAI,CAAC;KAU/B;IAED,IAAI,sBAAsB;QACtB,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;KAC1D;IAED,IAAI,OAAO;QACP,OAAO,eAAe,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KACvD;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,KAA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AY;YACZ,WAAW;YACX,kBAAkB;YAClB,gBAAgB;YAChB,qBAAqB;SACxB;QACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACnBpC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, ViewChild, Component, forwardRef, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, Component, forwardRef, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, TUI_FIRST_DAY, TUI_LAST_DAY, ALWAYS_FALSE_HANDLER, TuiMonthRange, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiPreventDefaultModule, TuiActiveZoneModule } from '@taiga-ui/cdk';
5
5
  import { sizeBigger, TUI_MONTHS, TuiTextfieldSizeDirective, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiHostedDropdownModule, TuiPrimitiveTextfieldModule, TuiSvgModule } from '@taiga-ui/core';
@@ -44,6 +44,7 @@ let TuiInputMonthRangeComponent = TuiInputMonthRangeComponent_1 = class TuiInput
44
44
  onValueChange(value) {
45
45
  if (value === '') {
46
46
  this.updateValue(null);
47
+ this.onOpenChange(true);
47
48
  }
48
49
  }
49
50
  onMonthClick(month) {
@@ -86,6 +87,9 @@ TuiInputMonthRangeComponent.ctorParameters = () => [
86
87
  { type: Observable, decorators: [{ type: Inject, args: [TUI_MONTHS,] }] },
87
88
  { type: TuiTextfieldSizeDirective, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_SIZE,] }] }
88
89
  ];
90
+ __decorate([
91
+ ViewChild(TuiPrimitiveTextfieldComponent)
92
+ ], TuiInputMonthRangeComponent.prototype, "textfield", void 0);
89
93
  __decorate([
90
94
  Input(),
91
95
  tuiDefaultProp()
@@ -98,9 +102,6 @@ __decorate([
98
102
  Input(),
99
103
  tuiDefaultProp()
100
104
  ], TuiInputMonthRangeComponent.prototype, "disabledItemHandler", void 0);
101
- __decorate([
102
- ViewChild(TuiPrimitiveTextfieldComponent)
103
- ], TuiInputMonthRangeComponent.prototype, "textfield", void 0);
104
105
  TuiInputMonthRangeComponent = TuiInputMonthRangeComponent_1 = __decorate([
105
106
  Component({
106
107
  selector: 'tui-input-month-range',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month-range.js","sources":["ng://@taiga-ui/kit/components/input-month-range/input-month-range.component.ts","ng://@taiga-ui/kit/components/input-month-range/input-month-range.module.ts","ng://@taiga-ui/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_LAST_DAY,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_MONTHS,\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiMonthContext} from '@taiga-ui/kit/interfaces';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Component({\n selector: 'tui-input-month-range',\n templateUrl: './input-month-range.template.html',\n styleUrls: ['./input-month-range.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputMonthRangeComponent),\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputMonthRangeComponent\n extends AbstractTuiNullableControl<TuiMonthRange>\n implements TuiWithOptionalMinMax<TuiMonth>, TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n min: TuiMonth = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max: TuiMonth = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandlerWithContext<TuiMonth, TuiMonthContext> =\n ALWAYS_FALSE_HANDLER;\n\n open = false;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_MONTHS) readonly months$: Observable<readonly string[]>,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n computeValue(\n value: TuiMonthRange | null,\n focused: boolean,\n months: readonly string[],\n ): string {\n if (value === null) {\n return '';\n }\n\n const formattedValueTo =\n !value.isSingleMonth || !focused ? this.formatMonth(value.to, months) : '';\n\n return `${this.formatMonth(value.from, months)} — ${formattedValueTo}`;\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly;\n }\n\n onValueChange(value: string) {\n if (value === '') {\n this.updateValue(null);\n }\n }\n\n onMonthClick(month: TuiMonth) {\n if (this.value === null || !this.value.isSingleMonth) {\n this.writeValue(new TuiMonthRange(month, month));\n\n return;\n }\n\n this.updateValue(TuiMonthRange.sort(this.value.from, month));\n this.close();\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n onActiveZone(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n if (this.value && this.value.isSingleMonth) {\n this.updateValue(new TuiMonthRange(this.value.from, this.value.from));\n }\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.close();\n }\n\n private formatMonth(\n {month, formattedYear}: TuiMonth,\n months: readonly string[],\n ): string {\n return `${months[month]} ${formattedYear}`;\n }\n\n private close() {\n this.open = false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule, TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {TuiCalendarMonthModule} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeComponent} from './input-month-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCalendarMonthModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiPreventDefaultModule,\n TuiActiveZoneModule,\n ],\n declarations: [TuiInputMonthRangeComponent],\n exports: [TuiInputMonthRangeComponent],\n})\nexport class TuiInputMonthRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAoCA;IAca,2BAA2B,mCAAxC,MAAa,2BACT,SAAQ,0BAAyC;IAqBjD,YAII,OAAyB,EACE,iBAAoC,EAClC,OAAsC,EAElD,aAAwC;QAEzD,KAAK,CAAC,OAAO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BAAyB,uBADxD,MAAM,SAAC,kBAAkB;;AAvB9B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;wDACa;AAI9B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;wDACY;AAI7B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;wEAEQ;AAKzB;IADC,SAAS,CAAC,8BAA8B,CAAC;8DACkB;AApBnD,2BAA2B;IAbvC,SAAS,CAAC;QACP,QAAQ,EAAE,uBAAuB;QACjC,2tCAAgD;QAEhD,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,6BAA2B,CAAC;aAC7D;YACD,yCAAyC;SAC5C;QACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAwBO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GA7BtB,2BAA2B,CAwHvC;;ICjJY,wBAAwB,GAArC,MAAa,wBAAwB;EAAG;AAA3B,wBAAwB;IAbpC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,sBAAsB;YACtB,uBAAuB;YACvB,2BAA2B;YAC3B,YAAY;YACZ,uBAAuB;YACvB,mBAAmB;SACtB;QACD,YAAY,EAAE,CAAC,2BAA2B,CAAC;QAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;KACzC,CAAC;GACW,wBAAwB,CAAG;;ACzBxC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-month-range.js","sources":["ng://@taiga-ui/kit/components/input-month-range/input-month-range.component.ts","ng://@taiga-ui/kit/components/input-month-range/input-month-range.module.ts","ng://@taiga-ui/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_LAST_DAY,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_MONTHS,\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiMonthContext} from '@taiga-ui/kit/interfaces';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Component({\n selector: 'tui-input-month-range',\n templateUrl: './input-month-range.template.html',\n styleUrls: ['./input-month-range.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputMonthRangeComponent),\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputMonthRangeComponent\n extends AbstractTuiNullableControl<TuiMonthRange>\n implements TuiWithOptionalMinMax<TuiMonth>, TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n min: TuiMonth = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max: TuiMonth = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandlerWithContext<TuiMonth, TuiMonthContext> =\n ALWAYS_FALSE_HANDLER;\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_MONTHS) readonly months$: Observable<readonly string[]>,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n computeValue(\n value: TuiMonthRange | null,\n focused: boolean,\n months: readonly string[],\n ): string {\n if (value === null) {\n return '';\n }\n\n const formattedValueTo =\n !value.isSingleMonth || !focused ? this.formatMonth(value.to, months) : '';\n\n return `${this.formatMonth(value.from, months)} — ${formattedValueTo}`;\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly;\n }\n\n onValueChange(value: string) {\n if (value === '') {\n this.updateValue(null);\n this.onOpenChange(true);\n }\n }\n\n onMonthClick(month: TuiMonth) {\n if (this.value === null || !this.value.isSingleMonth) {\n this.writeValue(new TuiMonthRange(month, month));\n\n return;\n }\n\n this.updateValue(TuiMonthRange.sort(this.value.from, month));\n this.close();\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n onActiveZone(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n if (this.value && this.value.isSingleMonth) {\n this.updateValue(new TuiMonthRange(this.value.from, this.value.from));\n }\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.close();\n }\n\n private formatMonth(\n {month, formattedYear}: TuiMonth,\n months: readonly string[],\n ): string {\n return `${months[month]} ${formattedYear}`;\n }\n\n private close() {\n this.open = false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiActiveZoneModule, TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {TuiCalendarMonthModule} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeComponent} from './input-month-range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCalendarMonthModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiPreventDefaultModule,\n TuiActiveZoneModule,\n ],\n declarations: [TuiInputMonthRangeComponent],\n exports: [TuiInputMonthRangeComponent],\n})\nexport class TuiInputMonthRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAoCA;IAca,2BAA2B,mCAAxC,MAAa,2BACT,SAAQ,0BAAyC;IAqBjD,YAII,OAAyB,EACE,iBAAoC,EAClC,OAAsC,EAElD,aAAwC;QAEzD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAJL,YAAO,GAAP,OAAO,CAA+B;QAElD,kBAAa,GAAb,aAAa,CAA2B;QArB7D,QAAG,GAAa,aAAa,CAAC;QAI9B,QAAG,GAAa,YAAY,CAAC;QAI7B,wBAAmB,GACf,oBAAoB,CAAC;QAEzB,SAAI,GAAG,KAAK,CAAC;KAaZ;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,IAAI,CAAC;KACxE;IAED,IAAI,OAAO;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KACrD;IAED,IAAI,YAAY;QACZ,O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CAAyC;SAC5C;QACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAwBO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GA7BtB,2BAA2B,CAyHvC;;IClJY,wBAAwB,GAArC,MAAa,wBAAwB;EAAG;AAA3B,wBAAwB;IAbpC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,sBAAsB;YACtB,uBAAuB;YACvB,2BAA2B;YAC3B,YAAY;YACZ,uBAAuB;YACvB,mBAAmB;SACtB;QACD,YAAY,EAAE,CAAC,2BAA2B,CAAC;QAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;KACzC,CAAC;GACW,wBAAwB,CAAG;;ACzBxC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, ViewChild, Component, forwardRef, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, Component, forwardRef, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, TUI_FIRST_DAY, TUI_LAST_DAY, ALWAYS_FALSE_HANDLER, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiPreventDefaultModule } from '@taiga-ui/cdk';
5
5
  import { sizeBigger, TuiTextfieldSizeDirective, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiHostedDropdownModule, TuiPrimitiveTextfieldModule, TuiSvgModule, TuiMonthPipeModule } from '@taiga-ui/core';
@@ -35,6 +35,7 @@ let TuiInputMonthComponent = TuiInputMonthComponent_1 = class TuiInputMonthCompo
35
35
  onValueChange(value) {
36
36
  if (value === '') {
37
37
  this.updateValue(null);
38
+ this.onOpenChange(true);
38
39
  }
39
40
  }
40
41
  onMonthClick(month) {
@@ -66,6 +67,9 @@ TuiInputMonthComponent.ctorParameters = () => [
66
67
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
67
68
  { type: TuiTextfieldSizeDirective, decorators: [{ type: Inject, args: [TUI_TEXTFIELD_SIZE,] }] }
68
69
  ];
70
+ __decorate([
71
+ ViewChild(TuiPrimitiveTextfieldComponent)
72
+ ], TuiInputMonthComponent.prototype, "textfield", void 0);
69
73
  __decorate([
70
74
  Input(),
71
75
  tuiDefaultProp()
@@ -78,9 +82,6 @@ __decorate([
78
82
  Input(),
79
83
  tuiDefaultProp()
80
84
  ], TuiInputMonthComponent.prototype, "disabledItemHandler", void 0);
81
- __decorate([
82
- ViewChild(TuiPrimitiveTextfieldComponent)
83
- ], TuiInputMonthComponent.prototype, "textfield", void 0);
84
85
  TuiInputMonthComponent = TuiInputMonthComponent_1 = __decorate([
85
86
  Component({
86
87
  selector: 'tui-input-month',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month.js","sources":["ng://@taiga-ui/kit/components/input-month/input-month.component.ts","ng://@taiga-ui/kit/components/input-month/input-month.module.ts","ng://@taiga-ui/kit/components/input-month/taiga-ui-kit-components-input-month.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMonth,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\n\n// @dynamic\n@Component({\n selector: 'tui-input-month',\n templateUrl: './input-month.template.html',\n styleUrls: ['./input-month.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputMonthComponent),\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputMonthComponent\n extends AbstractTuiNullableControl<TuiMonth>\n implements TuiWithOptionalMinMax<TuiMonth>, TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n min: TuiMonth = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max: TuiMonth = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiMonth> = ALWAYS_FALSE_HANDLER;\n\n open = false;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\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 ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly;\n }\n\n onValueChange(value: string) {\n if (value === '') {\n this.updateValue(null);\n }\n }\n\n onMonthClick(month: TuiMonth) {\n this.updateValue(month);\n this.close();\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n toggle() {\n this.open = !this.open;\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.close();\n }\n\n private close() {\n this.open = false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiMonthPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {TuiCalendarMonthModule} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCalendarMonthModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiPreventDefaultModule,\n TuiMonthPipeModule,\n ],\n declarations: [TuiInputMonthComponent],\n exports: [TuiInputMonthComponent],\n})\nexport class TuiInputMonthModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAgCA;IAca,sBAAsB,8BAAnC,MAAa,sBACT,SAAQ,0BAAoC;IAoB5C,YAII,OAAyB,EACE,iBAAoC,EAE9C,aAAwC;QAEzD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBAAa,GAAb,aAAa,CAA2B;QAtB7D,QAAG,GAAa,aAAa,CAAC;QAI9B,QAAG,GAAa,YAAY,CAAC;QAI7B,wBAAmB,GAAgC,oBAAoB,CAAC;QAExE,SAAI,GAAG,KAAK,CAAC;KAeZ;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI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M,SAAC,kBAAkB;;AArB9B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACa;AAI9B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mDACY;AAI7B;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;mEACuD;AAKxE;IADC,SAAS,CAAC,8BAA8B,CAAC;yDACkB;AAnBnD,sBAAsB;IAblC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,itCAA0C;QAE1C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,wBAAsB,CAAC;aACxD;YACD,yCAAyC;SAC5C;QACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAuBO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;GA3BtB,sBAAsB,CAsFlC;;IC1GY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAb/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,sBAAsB;YACtB,uBAAuB;YACvB,2BAA2B;YAC3B,YAAY;YACZ,uBAAuB;YACvB,kBAAkB;SACrB;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;AC1BnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-month.js","sources":["ng://@taiga-ui/kit/components/input-month/input-month.component.ts","ng://@taiga-ui/kit/components/input-month/input-month.module.ts","ng://@taiga-ui/kit/components/input-month/taiga-ui-kit-components-input-month.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMonth,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\n\n// @dynamic\n@Component({\n selector: 'tui-input-month',\n templateUrl: './input-month.template.html',\n styleUrls: ['./input-month.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputMonthComponent),\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputMonthComponent\n extends AbstractTuiNullableControl<TuiMonth>\n implements TuiWithOptionalMinMax<TuiMonth>, TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n min: TuiMonth = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max: TuiMonth = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiMonth> = ALWAYS_FALSE_HANDLER;\n\n open = false;\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 ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly;\n }\n\n onValueChange(value: string) {\n if (value === '') {\n this.updateValue(null);\n this.onOpenChange(true);\n }\n }\n\n onMonthClick(month: TuiMonth) {\n this.updateValue(month);\n this.close();\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n toggle() {\n this.open = !this.open;\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.close();\n }\n\n private close() {\n this.open = false;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiMonthPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n} from '@taiga-ui/core';\nimport {TuiCalendarMonthModule} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCalendarMonthModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiPreventDefaultModule,\n TuiMonthPipeModule,\n ],\n declarations: [TuiInputMonthComponent],\n exports: [TuiInputMonthComponent],\n})\nexport class TuiInputMonthModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAgCA;IAca,sBAAsB,8BAAnC,MAAa,sBACT,SAAQ,0BAAoC;IAoB5C,YAII,OAAyB,EACE,iBAAo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sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;AC1BnC;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Optional, Self, Inject, ChangeDetectorRef, Input, ViewChild, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
2
+ import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { AbstractTuiNullableControl, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiMapperPipeModule } from '@taiga-ui/cdk';
5
5
  import { tuiCreateNumberMask, tuiCreateAutoCorrectedNumberPipe, formatNumber, maskedMoneyValueIsEmpty, maskedNumberStringToNumber, TUI_DECIMAL_SYMBOLS, TUI_NUMBER_FORMAT, TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule } from '@taiga-ui/core';
@@ -68,13 +68,22 @@ let TuiInputNumberComponent = TuiInputNumberComponent_1 = class TuiInputNumberCo
68
68
  return formatNumber(value, limit, this.numberFormat.decimalSeparator, this.numberFormat.thousandSeparator, this.numberFormat.zeroPadding);
69
69
  }
70
70
  get computedValue() {
71
- if (this.focused || !this.isNativeValueInLimit) {
71
+ if (this.focused) {
72
72
  return this.nativeValue;
73
73
  }
74
- if (this.value === null) {
75
- return maskedMoneyValueIsEmpty(this.nativeValue) ? this.nativeValue : '';
74
+ return this.value === null ? '' : this.formattedValue;
75
+ }
76
+ onZero(event) {
77
+ const decimal = this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';
78
+ const { nativeFocusableElement } = this;
79
+ if (decimal.length < this.precision ||
80
+ !nativeFocusableElement ||
81
+ !nativeFocusableElement.selectionStart ||
82
+ this.nativeValue[nativeFocusableElement.selectionStart] !== '0') {
83
+ return;
76
84
  }
77
- return this.formattedValue;
85
+ event.preventDefault();
86
+ nativeFocusableElement.selectionStart++;
78
87
  }
79
88
  onValue(value) {
80
89
  if (maskedMoneyValueIsEmpty(value)) {
@@ -127,25 +136,6 @@ let TuiInputNumberComponent = TuiInputNumberComponent_1 = class TuiInputNumberCo
127
136
  onPressed(pressed) {
128
137
  this.updatePressed(pressed);
129
138
  }
130
- onZero(event) {
131
- const decimal = this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';
132
- const { nativeFocusableElement } = this;
133
- if (decimal.length < this.precision ||
134
- !nativeFocusableElement ||
135
- !nativeFocusableElement.selectionStart ||
136
- this.nativeValue[nativeFocusableElement.selectionStart] !== '0') {
137
- return;
138
- }
139
- event.preventDefault();
140
- nativeFocusableElement.selectionStart++;
141
- }
142
- get isNativeValueInLimit() {
143
- if (this.nativeValue === '') {
144
- return true;
145
- }
146
- const nativeNumberValue = this.nativeNumberValue;
147
- return nativeNumberValue >= this.min && nativeNumberValue <= this.max;
148
- }
149
139
  get isNativeValueNotFinished() {
150
140
  const nativeNumberValue = this.nativeNumberValue;
151
141
  return nativeNumberValue < 0
@@ -188,6 +178,9 @@ TuiInputNumberComponent.ctorParameters = () => [
188
178
  { type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
189
179
  { type: undefined, decorators: [{ type: Inject, args: [TUI_NUMBER_FORMAT,] }] }
190
180
  ];
181
+ __decorate([
182
+ ViewChild(TuiPrimitiveTextfieldComponent)
183
+ ], TuiInputNumberComponent.prototype, "primitiveTextfield", void 0);
191
184
  __decorate([
192
185
  Input(),
193
186
  tuiDefaultProp()
@@ -212,9 +205,6 @@ __decorate([
212
205
  Input(),
213
206
  tuiDefaultProp()
214
207
  ], TuiInputNumberComponent.prototype, "postfix", void 0);
215
- __decorate([
216
- ViewChild(TuiPrimitiveTextfieldComponent)
217
- ], TuiInputNumberComponent.prototype, "primitiveTextfield", void 0);
218
208
  __decorate([
219
209
  HostListener('keydown.0', ['$event'])
220
210
  ], TuiInputNumberComponent.prototype, "onZero", null);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-number.js","sources":["ng://@taiga-ui/kit/components/input-number/input-number.component.ts","ng://@taiga-ui/kit/components/input-number/input-number.module.ts","ng://@taiga-ui/kit/components/input-number/taiga-ui-kit-components-input-number.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiInputModeT,\n TuiMapper,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_DECIMAL_SYMBOLS,\n TUI_NUMBER_FORMAT,\n tuiCreateAutoCorrectedNumberPipe,\n tuiCreateNumberMask,\n TuiDecimalT,\n TuiPrimitiveTextfieldComponent,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\n\nconst DEFAULT_MAX_LENGTH = 18;\n\n// @dynamic\n@Component({\n selector: 'tui-input-number',\n templateUrl: './input-number.template.html',\n styleUrls: ['./input-number.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputNumberComponent),\n },\n ],\n})\nexport class TuiInputNumberComponent\n extends AbstractTuiNullableControl<number>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n min = -Infinity;\n\n @Input()\n @tuiDefaultProp()\n max = Infinity;\n\n @Input()\n @tuiDefaultProp()\n decimal: TuiDecimalT = 'not-zero';\n\n @Input()\n @tuiDefaultProp()\n precision = 2;\n\n @Input()\n @tuiDefaultProp()\n prefix = '';\n\n @Input()\n @tuiDefaultProp()\n postfix = '';\n\n mask: TuiMapper<boolean, TuiTextMaskOptions> = (\n allowNegative: boolean,\n decimal: TuiDecimalT,\n precision: number,\n nativeFocusableElement: HTMLInputElement | null,\n ) => ({\n mask: tuiCreateNumberMask({\n allowNegative: allowNegative,\n allowDecimal: decimal !== 'never',\n decimalLimit: precision,\n requireDecimal: decimal === 'always',\n autoCorrectDecimalSymbol: false,\n decimalSymbol: this.numberFormat.decimalSeparator,\n thousandSymbol: this.numberFormat.thousandSeparator,\n }),\n pipe: tuiCreateAutoCorrectedNumberPipe(\n decimal === 'always' ? precision : 0,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n nativeFocusableElement || undefined,\n ),\n guide: false,\n });\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly primitiveTextfield?: TuiPrimitiveTextfieldComponent;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.primitiveTextfield || this.computedDisabled\n ? null\n : this.primitiveTextfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.primitiveTextfield && this.primitiveTextfield.focused;\n }\n\n get isNegativeAllowed(): boolean {\n return this.min < 0;\n }\n\n get inputMode(): TuiInputModeT {\n return this.decimal === 'never' ? 'numeric' : 'decimal';\n }\n\n get calculatedMaxLength(): number {\n return (\n DEFAULT_MAX_LENGTH +\n (this.decimal !== 'never' &&\n this.nativeValue.includes(this.numberFormat.decimalSeparator)\n ? this.precision + 1\n : 0)\n );\n }\n\n get formattedValue(): string {\n const value = this.value || 0;\n const absValue = Math.abs(value);\n const hasFraction = absValue % 1 > 0;\n let limit = this.decimal === 'always' || hasFraction ? this.precision : 0;\n\n const fraction = hasFraction\n ? value.toString().split('.')[1].substr(0, this.precision)\n : '';\n\n if (this.focused && this.decimal !== 'always') {\n limit = fraction.length;\n }\n\n return formatNumber(\n value,\n limit,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n this.numberFormat.zeroPadding,\n );\n }\n\n get computedValue(): string {\n if (this.focused || !this.isNativeValueInLimit) {\n return this.nativeValue;\n }\n\n if (this.value === null) {\n return maskedMoneyValueIsEmpty(this.nativeValue) ? this.nativeValue : '';\n }\n\n return this.formattedValue;\n }\n\n onValue(value: string) {\n if (maskedMoneyValueIsEmpty(value)) {\n this.updateValue(null);\n\n return;\n }\n\n if (this.isNativeValueNotFinished) {\n return;\n }\n\n const capped = this.absoluteCapInputValue(value);\n\n if (capped === null || isNaN(capped)) {\n return;\n }\n\n this.updateValue(capped);\n\n if (\n capped !==\n maskedNumberStringToNumber(\n value,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n )\n ) {\n this.nativeValue = this.formattedValue;\n }\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (TUI_DECIMAL_SYMBOLS.indexOf(event.key) === -1) {\n return;\n }\n\n if (this.decimal === 'never') {\n event.preventDefault();\n\n return;\n }\n\n if (this.nativeValue.includes(this.numberFormat.decimalSeparator)) {\n event.preventDefault();\n this.setCaretAfterComma();\n }\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const nativeNumberValue = this.nativeNumberValue;\n\n if (isNaN(nativeNumberValue)) {\n this.clear();\n\n return;\n }\n\n const clamped = Math.min(this.max, Math.max(this.min, nativeNumberValue));\n\n this.updateValue(clamped);\n this.nativeValue = this.formattedValue;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n @HostListener('keydown.0', ['$event'])\n onZero(event: KeyboardEvent) {\n const decimal =\n this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';\n const {nativeFocusableElement} = this;\n\n if (\n decimal.length < this.precision ||\n !nativeFocusableElement ||\n !nativeFocusableElement.selectionStart ||\n this.nativeValue[nativeFocusableElement.selectionStart] !== '0'\n ) {\n return;\n }\n\n event.preventDefault();\n nativeFocusableElement.selectionStart++;\n }\n\n private get isNativeValueInLimit(): boolean {\n if (this.nativeValue === '') {\n return true;\n }\n\n const nativeNumberValue = this.nativeNumberValue;\n\n return nativeNumberValue >= this.min && nativeNumberValue <= this.max;\n }\n\n private get isNativeValueNotFinished(): boolean {\n const nativeNumberValue = this.nativeNumberValue;\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n private get nativeNumberValue(): number {\n return maskedNumberStringToNumber(\n this.nativeValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private set nativeValue(value: string) {\n if (!this.primitiveTextfield || !this.nativeFocusableElement) {\n return;\n }\n\n this.primitiveTextfield.value = value;\n this.nativeFocusableElement.value = value;\n }\n\n private clear() {\n this.nativeValue = '';\n this.updateValue(null);\n }\n\n private absoluteCapInputValue(inputValue: string): number | null {\n const value = maskedNumberStringToNumber(\n inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const capped = value < 0 ? Math.max(this.min, value) : Math.min(value, this.max);\n const ineligibleValue = isNaN(capped) || capped < this.min || capped > this.max;\n\n return ineligibleValue ? null : capped;\n }\n\n private setCaretAfterComma() {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n const afterCommaPosition = this.nativeValue.length - this.precision;\n\n this.nativeFocusableElement.setSelectionRange(\n afterCommaPosition,\n afterCommaPosition,\n );\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputNumberComponent} from './input-number.component';\n\n@NgModule({\n imports: [\n TextMaskModule,\n TuiMapperPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputNumberComponent],\n exports: [TuiInputNumberComponent],\n})\nexport class TuiInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAmCA,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B;IAaa,uBAAuB,+BAApC,MAAa,uBACT,SAAQ,0BAAkC;IAsD1C,YAII,OAAyB,EAEzB,iBAAoC,EAEnB,YAAkC;QAEnD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,iBAAY,GAAZ,YAAY,CAAsB;QAzDvD,QAAG,GAAG,CAAC,QAAQ,CAAC;QAIhB,QAAG,GAAG,QAAQ,CAAC;QAIf,YAAO,GAAgB,UAAU,CAAC;QAIlC,cAAS,GAAG,CAAC,CAAC;QAId,WAAM,GAAG,EAAE,CAAC;QAIZ,YAAO,GAAG,EAAE,CAAC;QAEb,SAAI,GAA2C,CAC3C,aAAsB,EACtB,OAAoB,EACpB,SAAiB,EACjB,sBAA+C,MAC7C;YACF,IAAI,EAAE,mBAAmB,CAAC;gBACtB,aAAa,EAAE,aAAa;gBAC5B,YAAY,EAAE,OAAO,KAAK,OAAO;gBACjC,YAAY,EAAE,SAAS;gBACvB,cAAc,EAAE,OAAO,KAAK,QAAQ;gBACpC,wBAAwB,EAAE,KAAK;gBAC/B,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC,gBAAgB;gBACjD,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,iBAAiB;aACtD,CAAC;YACF,IAAI,EAAE,gCAAgC,CAClC,OAAO,KAAK,QAAQ,GAAG,SAAS,GAAG,CAAC,E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;AAIf;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;wDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;0DACH;AAId;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;uDACL;AAIZ;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;wDACJ;AA2Bb;IADC,SAAS,CAAC,8BAA8B,CAAC;mEAC2B;AA4JrE;IADC,YAAY,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC;qDAiBrC;AAjOQ,uBAAuB;IAZnC,SAAS,CAAC;QACP,QAAQ,EAAE,kBAAkB;QAC5B,o0BAA2C;QAE3C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,yBAAuB,CAAC;aACzD;SACJ;;KACJ,CAAC;IAyDO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GA9DrB,uBAAuB,CAuSnC;;ICtUY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAXhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,cAAc;YACd,mBAAmB;YACnB,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB;SACzB;QACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACnBpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-number.js","sources":["ng://@taiga-ui/kit/components/input-number/input-number.component.ts","ng://@taiga-ui/kit/components/input-number/input-number.module.ts","ng://@taiga-ui/kit/components/input-number/taiga-ui-kit-components-input-number.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiInputModeT,\n TuiMapper,\n} from '@taiga-ui/cdk';\nimport {\n formatNumber,\n maskedMoneyValueIsEmpty,\n maskedNumberStringToNumber,\n NumberFormatSettings,\n TUI_DECIMAL_SYMBOLS,\n TUI_NUMBER_FORMAT,\n tuiCreateAutoCorrectedNumberPipe,\n tuiCreateNumberMask,\n TuiDecimalT,\n TuiPrimitiveTextfieldComponent,\n TuiTextMaskOptions,\n} from '@taiga-ui/core';\n\nconst DEFAULT_MAX_LENGTH = 18;\n\n// @dynamic\n@Component({\n selector: 'tui-input-number',\n templateUrl: './input-number.template.html',\n styleUrls: ['./input-number.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputNumberComponent),\n },\n ],\n})\nexport class TuiInputNumberComponent\n extends AbstractTuiNullableControl<number>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly primitiveTextfield?: TuiPrimitiveTextfieldComponent;\n\n @Input()\n @tuiDefaultProp()\n min = -Infinity;\n\n @Input()\n @tuiDefaultProp()\n max = Infinity;\n\n @Input()\n @tuiDefaultProp()\n decimal: TuiDecimalT = 'not-zero';\n\n @Input()\n @tuiDefaultProp()\n precision = 2;\n\n @Input()\n @tuiDefaultProp()\n prefix = '';\n\n @Input()\n @tuiDefaultProp()\n postfix = '';\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef)\n changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: NumberFormatSettings,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.primitiveTextfield || this.computedDisabled\n ? null\n : this.primitiveTextfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.primitiveTextfield && this.primitiveTextfield.focused;\n }\n\n get isNegativeAllowed(): boolean {\n return this.min < 0;\n }\n\n get inputMode(): TuiInputModeT {\n return this.decimal === 'never' ? 'numeric' : 'decimal';\n }\n\n get calculatedMaxLength(): number {\n return (\n DEFAULT_MAX_LENGTH +\n (this.decimal !== 'never' &&\n this.nativeValue.includes(this.numberFormat.decimalSeparator)\n ? this.precision + 1\n : 0)\n );\n }\n\n get formattedValue(): string {\n const value = this.value || 0;\n const absValue = Math.abs(value);\n const hasFraction = absValue % 1 > 0;\n let limit = this.decimal === 'always' || hasFraction ? this.precision : 0;\n\n const fraction = hasFraction\n ? value.toString().split('.')[1].substr(0, this.precision)\n : '';\n\n if (this.focused && this.decimal !== 'always') {\n limit = fraction.length;\n }\n\n return formatNumber(\n value,\n limit,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n this.numberFormat.zeroPadding,\n );\n }\n\n get computedValue(): string {\n if (this.focused) {\n return this.nativeValue;\n }\n\n return this.value === null ? '' : this.formattedValue;\n }\n\n @HostListener('keydown.0', ['$event'])\n onZero(event: KeyboardEvent) {\n const decimal =\n this.nativeValue.split(this.numberFormat.decimalSeparator)[1] || '';\n const {nativeFocusableElement} = this;\n\n if (\n decimal.length < this.precision ||\n !nativeFocusableElement ||\n !nativeFocusableElement.selectionStart ||\n this.nativeValue[nativeFocusableElement.selectionStart] !== '0'\n ) {\n return;\n }\n\n event.preventDefault();\n nativeFocusableElement.selectionStart++;\n }\n\n mask: TuiMapper<boolean, TuiTextMaskOptions> = (\n allowNegative: boolean,\n decimal: TuiDecimalT,\n precision: number,\n nativeFocusableElement: HTMLInputElement | null,\n ) => ({\n mask: tuiCreateNumberMask({\n allowNegative: allowNegative,\n allowDecimal: decimal !== 'never',\n decimalLimit: precision,\n requireDecimal: decimal === 'always',\n autoCorrectDecimalSymbol: false,\n decimalSymbol: this.numberFormat.decimalSeparator,\n thousandSymbol: this.numberFormat.thousandSeparator,\n }),\n pipe: tuiCreateAutoCorrectedNumberPipe(\n decimal === 'always' ? precision : 0,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n nativeFocusableElement || undefined,\n ),\n guide: false,\n });\n\n onValue(value: string) {\n if (maskedMoneyValueIsEmpty(value)) {\n this.updateValue(null);\n\n return;\n }\n\n if (this.isNativeValueNotFinished) {\n return;\n }\n\n const capped = this.absoluteCapInputValue(value);\n\n if (capped === null || isNaN(capped)) {\n return;\n }\n\n this.updateValue(capped);\n\n if (\n capped !==\n maskedNumberStringToNumber(\n value,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n )\n ) {\n this.nativeValue = this.formattedValue;\n }\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (TUI_DECIMAL_SYMBOLS.indexOf(event.key) === -1) {\n return;\n }\n\n if (this.decimal === 'never') {\n event.preventDefault();\n\n return;\n }\n\n if (this.nativeValue.includes(this.numberFormat.decimalSeparator)) {\n event.preventDefault();\n this.setCaretAfterComma();\n }\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n\n if (focused) {\n return;\n }\n\n const nativeNumberValue = this.nativeNumberValue;\n\n if (isNaN(nativeNumberValue)) {\n this.clear();\n\n return;\n }\n\n const clamped = Math.min(this.max, Math.max(this.min, nativeNumberValue));\n\n this.updateValue(clamped);\n this.nativeValue = this.formattedValue;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n private get isNativeValueNotFinished(): boolean {\n const nativeNumberValue = this.nativeNumberValue;\n\n return nativeNumberValue < 0\n ? nativeNumberValue > this.max\n : nativeNumberValue < this.min;\n }\n\n private get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n private get nativeNumberValue(): number {\n return maskedNumberStringToNumber(\n this.nativeValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n }\n\n private set nativeValue(value: string) {\n if (!this.primitiveTextfield || !this.nativeFocusableElement) {\n return;\n }\n\n this.primitiveTextfield.value = value;\n this.nativeFocusableElement.value = value;\n }\n\n private clear() {\n this.nativeValue = '';\n this.updateValue(null);\n }\n\n private absoluteCapInputValue(inputValue: string): number | null {\n const value = maskedNumberStringToNumber(\n inputValue,\n this.numberFormat.decimalSeparator,\n this.numberFormat.thousandSeparator,\n );\n const capped = value < 0 ? Math.max(this.min, value) : Math.min(value, this.max);\n const ineligibleValue = isNaN(capped) || capped < this.min || capped > this.max;\n\n return ineligibleValue ? null : capped;\n }\n\n private setCaretAfterComma() {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n const afterCommaPosition = this.nativeValue.length - this.precision;\n\n this.nativeFocusableElement.setSelectionRange(\n afterCommaPosition,\n afterCommaPosition,\n );\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputNumberComponent} from './input-number.component';\n\n@NgModule({\n imports: [\n TextMaskModule,\n TuiMapperPipeModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n ],\n declarations: [TuiInputNumberComponent],\n exports: [TuiInputNumberComponent],\n})\nexport class TuiInputNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAmCA,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAE9B;IAaa,uBAAuB,+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xTY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAXhC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,cAAc;YACd,mBAAmB;YACnB,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB;SACzB;QACD,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACnBpC;;;;;;"}
@@ -53,9 +53,6 @@ let TuiInputPasswordComponent = TuiInputPasswordComponent_1 = class TuiInputPass
53
53
  get context() {
54
54
  return this.getContext(this.textfieldSize.size);
55
55
  }
56
- getContext($implicit) {
57
- return { $implicit };
58
- }
59
56
  get inputType() {
60
57
  return this.isPasswordHidden || !this.hasEyeIcon ? 'password' : 'text';
61
58
  }
@@ -80,6 +77,9 @@ let TuiInputPasswordComponent = TuiInputPasswordComponent_1 = class TuiInputPass
80
77
  getFallbackValue() {
81
78
  return '';
82
79
  }
80
+ getContext($implicit) {
81
+ return { $implicit };
82
+ }
83
83
  };
84
84
  TuiInputPasswordComponent.ctorParameters = () => [
85
85
  { type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-password.js","sources":["ng://@taiga-ui/kit/components/input-password/input-password-options.ts","ng://@taiga-ui/kit/components/input-password/input-password.component.ts","ng://@taiga-ui/kit/components/input-password/input-password.module.ts","ng://@taiga-ui/kit/components/input-password/taiga-ui-kit-components-input-password.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface InputPasswordOptions {\n readonly icons: Readonly<{\n hide: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n show: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n }>;\n}\n\n// TODO: remove in ivy compilation\nexport const PASSWORD_ICON_HIDE = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeClosed' : 'tuiIconHideLarge';\nexport const PASSWORD_ICON_SHOW = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeOpen' : 'tuiIconShowLarge';\n\n/** Default values for the input password options. */\nexport const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: InputPasswordOptions = {\n icons: {\n hide: PASSWORD_ICON_HIDE,\n show: PASSWORD_ICON_SHOW,\n },\n};\n\nexport const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken<InputPasswordOptions>(\n 'Default parameters for input password component',\n {\n factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_SIZE,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiHintModeT,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nimport {InputPasswordOptions, TUI_INPUT_PASSWORD_OPTIONS} from './input-password-options';\n\n// @dynamic\n@Component({\n selector: 'tui-input-password',\n templateUrl: './input-password.template.html',\n styleUrls: ['./input-password.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputPasswordComponent),\n },\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n ],\n})\nexport class TuiInputPasswordComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n isPasswordHidden = true;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n readonly computedMode$: Observable<TuiBrightness | TuiHintModeT | null> =\n combineLatest([\n this.mode$,\n this.hintController.change$.pipe(\n startWith(null),\n map(() => this.hintController.mode),\n ),\n ]).pipe(\n map(([mode, controller]) => controller || mode),\n startWith(null),\n );\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_PASSWORD_TEXTS)\n readonly passwordTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_PASSWORD_OPTIONS)\n public readonly options: InputPasswordOptions,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_MODE)\n private readonly mode$: Observable<TuiBrightness | null>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.isPasswordHidden ? this.options.icons.hide : this.options.icons.show;\n }\n\n get context(): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return this.getContext(this.textfieldSize.size);\n }\n\n @tuiPure\n private getContext(\n $implicit: TuiSizeS | TuiSizeL,\n ): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return {$implicit};\n }\n\n get inputType(): string {\n return this.isPasswordHidden || !this.hasEyeIcon ? 'password' : 'text';\n }\n\n get hasEyeIcon(): boolean {\n return !(this.disabled || this.readOnly);\n }\n\n onValueChange(textValue: string) {\n this.updateValue(textValue);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n togglePasswordVisibility() {\n this.isPasswordHidden = !this.isPasswordHidden;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiLetModule} from '@taiga-ui/cdk';\nimport {\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputPasswordComponent],\n exports: [TuiInputPasswordComponent],\n})\nexport class TuiInputPasswordModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAYA;MACa,kBAAkB,GAAG,CAAC,EAAC,SAAS,EAAM,KAC/C,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,mBAAmB;MACnD,kBAAkB,GAAG,CAAC,EAAC,SAAS,EAAM,KAC/C,SAAS,KAAK,GAAG,GAAG,gBAAgB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MAAM,SAAC,2BAA2B;YAGX,UAAU,uBADjC,MAAM,SAAC,QAAQ;;AA5BpB;IADC,SAAS,CAAC,8BAA8B,CAAC;4DACkB;AAqD5D;IADC,OAAO;2DAKP;AAhEQ,yBAAyB;IAdrC,SAAS,CAAC;QACP,QAAQ,EAAE,oBAAoB;QAC9B,yjDAA6C;QAE7C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,2BAA2B;gBACpC,WAAW,EAAE,UAAU,CAAC,MAAM,2BAAyB,CAAC;aAC3D;YACD,wBAAwB;YACxB,aAAa;SAChB;;KACJ,CAAC;IAuBO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAE1B,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAE1B,WAAA,MAAM,CAAC,0BAA0B,CAAC,CAAA;IAElC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;IAEnC,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GAnCZ,yBAAyB,CAiGrC;;IC5HY,sBAAsB,GAAnC,MAAa,sBAAsB;EAAG;AAAzB,sBAAsB;IAdlC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,YAAY;YACZ,YAAY;YACZ,aAAa;YACb,2BAA2B;YAC3B,4BAA4B;SAC/B;QACD,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;AC5BtC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-password.js","sources":["ng://@taiga-ui/kit/components/input-password/input-password-options.ts","ng://@taiga-ui/kit/components/input-password/input-password.component.ts","ng://@taiga-ui/kit/components/input-password/input-password.module.ts","ng://@taiga-ui/kit/components/input-password/taiga-ui-kit-components-input-password.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface InputPasswordOptions {\n readonly icons: Readonly<{\n hide: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n show: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>>;\n }>;\n}\n\n// TODO: remove in ivy compilation\nexport const PASSWORD_ICON_HIDE = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeClosed' : 'tuiIconHideLarge';\nexport const PASSWORD_ICON_SHOW = ({$implicit}: any) =>\n $implicit === 's' ? 'tuiIconEyeOpen' : 'tuiIconShowLarge';\n\n/** Default values for the input password options. */\nexport const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: InputPasswordOptions = {\n icons: {\n hide: PASSWORD_ICON_HIDE,\n show: PASSWORD_ICON_SHOW,\n },\n};\n\nexport const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken<InputPasswordOptions>(\n 'Default parameters for input password component',\n {\n factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n Inject,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_SIZE,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiHintModeT,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nimport {InputPasswordOptions, TUI_INPUT_PASSWORD_OPTIONS} from './input-password-options';\n\n// @dynamic\n@Component({\n selector: 'tui-input-password',\n templateUrl: './input-password.template.html',\n styleUrls: ['./input-password.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputPasswordComponent),\n },\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n ],\n})\nexport class TuiInputPasswordComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n isPasswordHidden = true;\n\n readonly computedMode$: Observable<TuiBrightness | TuiHintModeT | null> =\n combineLatest([\n this.mode$,\n this.hintController.change$.pipe(\n startWith(null),\n map(() => this.hintController.mode),\n ),\n ]).pipe(\n map(([mode, controller]) => controller || mode),\n startWith(null),\n );\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_PASSWORD_TEXTS)\n readonly passwordTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_PASSWORD_OPTIONS)\n readonly options: InputPasswordOptions,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_MODE)\n private readonly mode$: Observable<TuiBrightness | null>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.isPasswordHidden ? this.options.icons.hide : this.options.icons.show;\n }\n\n get context(): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return this.getContext(this.textfieldSize.size);\n }\n\n get inputType(): string {\n return this.isPasswordHidden || !this.hasEyeIcon ? 'password' : 'text';\n }\n\n get hasEyeIcon(): boolean {\n return !(this.disabled || this.readOnly);\n }\n\n onValueChange(textValue: string) {\n this.updateValue(textValue);\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n togglePasswordVisibility() {\n this.isPasswordHidden = !this.isPasswordHidden;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n @tuiPure\n private getContext(\n $implicit: TuiSizeS | TuiSizeL,\n ): TuiContextWithImplicit<TuiSizeS | TuiSizeL> {\n return {$implicit};\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiLetModule} from '@taiga-ui/cdk';\nimport {\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiLetModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputPasswordComponent],\n exports: [TuiInputPasswordComponent],\n})\nexport class TuiInputPasswordModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAYA;MACa,kBAAkB,GAAG,CAAC,EAAC,SAAS,EAAM,KAC/C,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,mBAAmB;MACnD,kBAAkB,GAAG,CAAC,EAAC,SAAS,EAAM,KAC/C,SAAS,KAAK,GAAG,GAAG,gBAAgB,GAAG,mBAAmB;AAE9D;MACa,kCAAkC,GAAyB;IACpE,KAAK,EAAE;QACH,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,kBAAkB;KAC3B;EACH;MAEW,0BAA0B,GAAG,IAAI,cAAc,CACxD,iDAAiD,EACjD;IACI,OAAO,EAAE,MAAM,kCAAkC;CACpD;;;ACUL;IAea,yBAAyB,iCAAtC,MAAa,yBACT,SAAQ,kBAA0B;IAoBlC,YAII,OAAyB,EACE,iBAAoC,EAE9C,aAAwC,EAEhD,cAA4C,EAE5C,OAA6B,EAE7B,cAA0C,EAElC,KAAuC;QAExD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAVjB,kBAAa,GAAb,aAAa,CAA2B;QAEhD,mBAAc,GAAd,cAAc,CAA8B;QAE5C,YAAO,GAAP,OAAO,CAAsB;QAE7B,mBAAc,GAAd,cAAc,CAA4B;QAElC,UAAK,GAAL,KAAK,CAAkC;QA7B5D,qBAAgB,GAAG,IAAI,CAAC;QAEf,kBAAa,GAClB,aAAa,CAAC;YACV,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAC5B,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CACtC;SACJ,CAAC,CAAC,IAAI,CACH,GAAG,CAAC,CAAC,CAAC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AQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,YAAY;YACZ,YAAY;YACZ,aAAa;YACb,2BAA2B;YAC3B,4BAA4B;SAC/B;QACD,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;KACvC,CAAC;GACW,sBAAsB,CAAG;;AC5BtC;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { TuiCountryIsoCode as TuiCountryIsoCode$1 } from '@taiga-ui/i18n';
2
2
  import { __decorate, __param } from 'tslib';
3
- import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, Input, Output, ViewChild, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
3
+ import { EventEmitter, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, Output, HostListener, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
4
4
  import { NgControl, FormsModule } from '@angular/forms';
5
5
  import { AbstractTuiControl, setNativeFocused, getClipboardDataText, tuiDefaultProp, tuiPure, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiLetModule, TuiMapperPipeModule, TuiActiveZoneModule } from '@taiga-ui/cdk';
6
6
  import { TUI_NON_DIGITS_REGEXP, TUI_ICONS_PATH, TuiPrimitiveTextfieldComponent, TuiSvgModule, TuiGroupModule, TuiPrimitiveTextfieldModule, TuiTextfieldControllerModule, TuiHintControllerModule, TuiHostedDropdownModule, TuiDataListModule } from '@taiga-ui/core';
@@ -471,23 +471,15 @@ let TuiInputPhoneInternationalComponent = TuiInputPhoneInternationalComponent_1
471
471
  constructor(control, changeDetectorRef, iconsPath, countriesNames$) {
472
472
  super(control, changeDetectorRef);
473
473
  this.countriesNames$ = countriesNames$;
474
+ this.staticPath = null;
474
475
  this.countryIsoCode = TuiCountryIsoCode$1.RU;
475
476
  this.countries = [];
476
477
  this.countryIsoCodeChange = new EventEmitter();
477
478
  this.open = false;
478
- this.isoToCountryCodeMapper = item => this.isoToCountryCode(item);
479
479
  this.arrow = TUI_ARROW;
480
- this.staticPath = null;
480
+ this.isoToCountryCodeMapper = item => this.isoToCountryCode(item);
481
481
  this.staticPath = iconsPath('tuiIcon').replace('tuiIcon.svg#tuiIcon', '');
482
482
  }
483
- onPaste(event) {
484
- const value = this.extractValue(event);
485
- const countryIsoCode = this.countries.find(countryIsoCode => value.startsWith(this.isoToCountryCode(countryIsoCode)));
486
- if (countryIsoCode) {
487
- this.updateCountryIsoCode(countryIsoCode);
488
- this.updateValue('+' + value.replace(TUI_NON_DIGITS_REGEXP, ''));
489
- }
490
- }
491
483
  get nativeFocusableElement() {
492
484
  return this.inputPhoneComponent && !this.computedDisabled
493
485
  ? this.inputPhoneComponent.nativeFocusableElement
@@ -507,6 +499,14 @@ let TuiInputPhoneInternationalComponent = TuiInputPhoneInternationalComponent_1
507
499
  get countryFlagPath() {
508
500
  return this.getFlagPath(this.countryIsoCode);
509
501
  }
502
+ onPaste(event) {
503
+ const value = this.extractValue(event);
504
+ const countryIsoCode = this.countries.find(countryIsoCode => value.startsWith(this.isoToCountryCode(countryIsoCode)));
505
+ if (countryIsoCode) {
506
+ this.updateCountryIsoCode(countryIsoCode);
507
+ this.updateValue('+' + value.replace(TUI_NON_DIGITS_REGEXP, ''));
508
+ }
509
+ }
510
510
  getFlagPath(code) {
511
511
  return `${this.staticPath}${code}.png`;
512
512
  }
@@ -539,12 +539,12 @@ let TuiInputPhoneInternationalComponent = TuiInputPhoneInternationalComponent_1
539
539
  getFallbackValue() {
540
540
  return '';
541
541
  }
542
- close() {
543
- this.open = false;
544
- }
545
542
  calculateMaskAfterCountryCode(mask, countryCode) {
546
543
  return mask.replace(countryCode, '').trim();
547
544
  }
545
+ close() {
546
+ this.open = false;
547
+ }
548
548
  getMaxAllowedLength(isoCode) {
549
549
  return COUNTRIES_MASKS[isoCode].replace(/[()\- ]/g, '').length;
550
550
  }
@@ -566,6 +566,12 @@ TuiInputPhoneInternationalComponent.ctorParameters = () => [
566
566
  { type: undefined, decorators: [{ type: Inject, args: [TUI_ICONS_PATH,] }] },
567
567
  { type: Observable, decorators: [{ type: Inject, args: [TUI_COUNTRIES,] }] }
568
568
  ];
569
+ __decorate([
570
+ ViewChild(TuiInputPhoneComponent)
571
+ ], TuiInputPhoneInternationalComponent.prototype, "inputPhoneComponent", void 0);
572
+ __decorate([
573
+ ViewChild(TuiPrimitiveTextfieldComponent)
574
+ ], TuiInputPhoneInternationalComponent.prototype, "primitiveTextfield", void 0);
569
575
  __decorate([
570
576
  Input(),
571
577
  tuiDefaultProp()
@@ -576,12 +582,6 @@ __decorate([
576
582
  __decorate([
577
583
  Output()
578
584
  ], TuiInputPhoneInternationalComponent.prototype, "countryIsoCodeChange", void 0);
579
- __decorate([
580
- ViewChild(TuiInputPhoneComponent)
581
- ], TuiInputPhoneInternationalComponent.prototype, "inputPhoneComponent", void 0);
582
- __decorate([
583
- ViewChild(TuiPrimitiveTextfieldComponent)
584
- ], TuiInputPhoneInternationalComponent.prototype, "primitiveTextfield", void 0);
585
585
  __decorate([
586
586
  HostListener('paste.capture.prevent.stop', ['$event']),
587
587
  HostListener('drop.capture.prevent.stop', ['$event'])