@taiga-ui/kit 3.51.0 → 3.52.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 (847) hide show
  1. package/abstract/taiga-ui-kit-abstract.d.ts +3 -0
  2. package/bundles/taiga-ui-kit-abstract.umd.js +4 -0
  3. package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
  4. package/bundles/taiga-ui-kit-classes.umd.js +7 -0
  5. package/bundles/taiga-ui-kit-classes.umd.js.map +1 -1
  6. package/bundles/taiga-ui-kit-components-accordion.umd.js +4 -0
  7. package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
  8. package/bundles/taiga-ui-kit-components-action.umd.js +4 -0
  9. package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
  10. package/bundles/taiga-ui-kit-components-arrow.umd.js +11 -0
  11. package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
  12. package/bundles/taiga-ui-kit-components-avatar.umd.js +8 -0
  13. package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-kit-components-badge.umd.js +4 -0
  15. package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
  16. package/bundles/taiga-ui-kit-components-badged-content.umd.js +4 -0
  17. package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
  18. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +4 -0
  19. package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
  20. package/bundles/taiga-ui-kit-components-calendar-month.umd.js +4 -0
  21. package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
  22. package/bundles/taiga-ui-kit-components-calendar-range.umd.js +4 -0
  23. package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
  24. package/bundles/taiga-ui-kit-components-carousel.umd.js +5 -0
  25. package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
  26. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +5 -0
  27. package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
  28. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +5 -0
  29. package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
  30. package/bundles/taiga-ui-kit-components-checkbox.umd.js +5 -0
  31. package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
  32. package/bundles/taiga-ui-kit-components-combo-box.umd.js +5 -0
  33. package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
  34. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +10 -3
  35. package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
  36. package/bundles/taiga-ui-kit-components-elastic-container.umd.js +4 -0
  37. package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
  38. package/bundles/taiga-ui-kit-components-files.umd.js +8 -0
  39. package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
  40. package/bundles/taiga-ui-kit-components-filter.umd.js +5 -0
  41. package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
  42. package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -0
  43. package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
  44. package/bundles/taiga-ui-kit-components-input-count.umd.js +21 -0
  45. package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
  46. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +720 -0
  47. package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -0
  48. package/bundles/taiga-ui-kit-components-input-date-range.umd.js +4 -0
  49. package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
  50. package/bundles/taiga-ui-kit-components-input-date-time.umd.js +4 -0
  51. package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
  52. package/bundles/taiga-ui-kit-components-input-date.umd.js +9 -0
  53. package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
  54. package/bundles/taiga-ui-kit-components-input-files.umd.js +15 -1
  55. package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
  56. package/bundles/taiga-ui-kit-components-input-inline.umd.js +6 -0
  57. package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
  58. package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -0
  59. package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
  60. package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -0
  61. package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
  62. package/bundles/taiga-ui-kit-components-input-number.umd.js +11 -0
  63. package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
  64. package/bundles/taiga-ui-kit-components-input-password.umd.js +9 -0
  65. package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
  66. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +23 -0
  67. package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
  68. package/bundles/taiga-ui-kit-components-input-phone.umd.js +33 -2
  69. package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
  70. package/bundles/taiga-ui-kit-components-input-range.umd.js +4 -0
  71. package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
  72. package/bundles/taiga-ui-kit-components-input-slider.umd.js +6 -0
  73. package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
  74. package/bundles/taiga-ui-kit-components-input-tag.umd.js +17 -6
  75. package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
  76. package/bundles/taiga-ui-kit-components-input-time.umd.js +9 -0
  77. package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
  78. package/bundles/taiga-ui-kit-components-input-year.umd.js +4 -0
  79. package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
  80. package/bundles/taiga-ui-kit-components-input.umd.js +4 -0
  81. package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
  82. package/bundles/taiga-ui-kit-components-island.umd.js +4 -0
  83. package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
  84. package/bundles/taiga-ui-kit-components-items-with-more.umd.js +4 -0
  85. package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
  86. package/bundles/taiga-ui-kit-components-line-clamp.umd.js +8 -0
  87. package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
  88. package/bundles/taiga-ui-kit-components-marker-icon.umd.js +4 -0
  89. package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
  90. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +4 -0
  91. package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
  92. package/bundles/taiga-ui-kit-components-multi-select.umd.js +8 -0
  93. package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
  94. package/bundles/taiga-ui-kit-components-pagination.umd.js +38 -0
  95. package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
  96. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +7 -0
  97. package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
  98. package/bundles/taiga-ui-kit-components-progress.umd.js +6 -0
  99. package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
  100. package/bundles/taiga-ui-kit-components-prompt.umd.js +5 -0
  101. package/bundles/taiga-ui-kit-components-prompt.umd.js.map +1 -1
  102. package/bundles/taiga-ui-kit-components-push.umd.js +7 -0
  103. package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
  104. package/bundles/taiga-ui-kit-components-radio-block.umd.js +5 -0
  105. package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
  106. package/bundles/taiga-ui-kit-components-radio-group.umd.js +4 -0
  107. package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
  108. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +5 -0
  109. package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
  110. package/bundles/taiga-ui-kit-components-radio-list.umd.js +6 -0
  111. package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
  112. package/bundles/taiga-ui-kit-components-radio.umd.js +8 -0
  113. package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
  114. package/bundles/taiga-ui-kit-components-range.umd.js +9 -0
  115. package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
  116. package/bundles/taiga-ui-kit-components-rating.umd.js +7 -0
  117. package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
  118. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +4 -0
  119. package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
  120. package/bundles/taiga-ui-kit-components-select-option.umd.js +11 -0
  121. package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
  122. package/bundles/taiga-ui-kit-components-select.umd.js +7 -0
  123. package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
  124. package/bundles/taiga-ui-kit-components-slider.umd.js +39 -0
  125. package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
  126. package/bundles/taiga-ui-kit-components-stepper.umd.js +6 -0
  127. package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
  128. package/bundles/taiga-ui-kit-components-tabs.umd.js +25 -1
  129. package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
  130. package/bundles/taiga-ui-kit-components-tag.umd.js +9 -0
  131. package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
  132. package/bundles/taiga-ui-kit-components-textarea.umd.js +13 -0
  133. package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
  134. package/bundles/taiga-ui-kit-components-tiles.umd.js +4 -0
  135. package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
  136. package/bundles/taiga-ui-kit-components-toggle.umd.js +9 -0
  137. package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
  138. package/bundles/taiga-ui-kit-components-tree.umd.js +28 -0
  139. package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
  140. package/bundles/taiga-ui-kit-components.umd.js +14 -4
  141. package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
  142. package/bundles/taiga-ui-kit-constants.umd.js +19 -0
  143. package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
  144. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +5 -0
  145. package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
  146. package/bundles/taiga-ui-kit-directives-highlight.umd.js +4 -0
  147. package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
  148. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +4 -0
  149. package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
  150. package/bundles/taiga-ui-kit-directives-mask.umd.js +26 -0
  151. package/bundles/taiga-ui-kit-directives-mask.umd.js.map +1 -1
  152. package/bundles/taiga-ui-kit-directives-present.umd.js +15 -0
  153. package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
  154. package/bundles/taiga-ui-kit-directives-project-class.umd.js +7 -0
  155. package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
  156. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +7 -1
  157. package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
  158. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +4 -0
  159. package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
  160. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +4 -0
  161. package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
  162. package/bundles/taiga-ui-kit-directives.umd.js +4 -0
  163. package/bundles/taiga-ui-kit-directives.umd.js.map +1 -1
  164. package/bundles/taiga-ui-kit-interfaces.umd.js +3 -1
  165. package/bundles/taiga-ui-kit-interfaces.umd.js.map +1 -1
  166. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +10 -0
  167. package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
  168. package/bundles/taiga-ui-kit-internal.umd.js +4 -0
  169. package/bundles/taiga-ui-kit-internal.umd.js.map +1 -1
  170. package/bundles/taiga-ui-kit-pipes-field-error.umd.js +4 -0
  171. package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
  172. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +7 -0
  173. package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
  174. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +4 -0
  175. package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -1
  176. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +4 -0
  177. package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
  178. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +4 -0
  179. package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
  180. package/bundles/taiga-ui-kit-pipes-stringify.umd.js +4 -0
  181. package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
  182. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +4 -0
  183. package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
  184. package/bundles/taiga-ui-kit-pipes-to-year.umd.js +4 -0
  185. package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
  186. package/bundles/taiga-ui-kit-pipes.umd.js +4 -0
  187. package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
  188. package/bundles/taiga-ui-kit-providers.umd.js +4 -0
  189. package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
  190. package/bundles/taiga-ui-kit-services.umd.js +4 -0
  191. package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
  192. package/bundles/taiga-ui-kit-tokens.umd.js +35 -0
  193. package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
  194. package/bundles/taiga-ui-kit-types.umd.js +3 -1
  195. package/bundles/taiga-ui-kit-types.umd.js.map +1 -1
  196. package/bundles/taiga-ui-kit-utils-date.umd.js +22 -0
  197. package/bundles/taiga-ui-kit-utils-date.umd.js.map +1 -0
  198. package/bundles/taiga-ui-kit-utils-files.umd.js +4 -0
  199. package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
  200. package/bundles/taiga-ui-kit-utils-format.umd.js +10 -0
  201. package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
  202. package/bundles/taiga-ui-kit-utils-mask.umd.js +50 -0
  203. package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
  204. package/bundles/taiga-ui-kit-utils-math.umd.js +7 -0
  205. package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
  206. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +10 -0
  207. package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
  208. package/bundles/taiga-ui-kit-utils-phone.umd.js +4 -0
  209. package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
  210. package/bundles/taiga-ui-kit-utils.umd.js +14 -4
  211. package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
  212. package/bundles/taiga-ui-kit-validators.umd.js +4 -0
  213. package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
  214. package/bundles/taiga-ui-kit.umd.js +4 -0
  215. package/bundles/taiga-ui-kit.umd.js.map +1 -1
  216. package/classes/stringifiable-item.d.ts +3 -0
  217. package/classes/taiga-ui-kit-classes.d.ts +3 -0
  218. package/components/accordion/taiga-ui-kit-components-accordion.d.ts +3 -0
  219. package/components/action/taiga-ui-kit-components-action.d.ts +3 -0
  220. package/components/arrow/arrow.options.d.ts +4 -0
  221. package/components/arrow/arrow.providers.d.ts +3 -0
  222. package/components/arrow/taiga-ui-kit-components-arrow.d.ts +3 -0
  223. package/components/avatar/avatar.options.d.ts +4 -0
  224. package/components/avatar/taiga-ui-kit-components-avatar.d.ts +3 -0
  225. package/components/badge/taiga-ui-kit-components-badge.d.ts +3 -0
  226. package/components/badged-content/taiga-ui-kit-components-badged-content.d.ts +3 -0
  227. package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.d.ts +3 -0
  228. package/components/calendar-month/taiga-ui-kit-components-calendar-month.d.ts +3 -0
  229. package/components/calendar-range/taiga-ui-kit-components-calendar-range.d.ts +3 -0
  230. package/components/carousel/taiga-ui-kit-components-carousel.d.ts +3 -0
  231. package/components/checkbox/checkbox.component.d.ts +1 -0
  232. package/components/checkbox/taiga-ui-kit-components-checkbox.d.ts +3 -0
  233. package/components/checkbox-block/checkbox-block.component.d.ts +1 -0
  234. package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.d.ts +3 -0
  235. package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -0
  236. package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.d.ts +3 -0
  237. package/components/combo-box/combo-box.component.d.ts +1 -0
  238. package/components/combo-box/taiga-ui-kit-components-combo-box.d.ts +3 -0
  239. package/components/data-list-wrapper/data-list-wrapper.d.ts +3 -2
  240. package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.d.ts +3 -0
  241. package/components/elastic-container/taiga-ui-kit-components-elastic-container.d.ts +3 -0
  242. package/components/files/file/file-options.d.ts +3 -0
  243. package/components/files/taiga-ui-kit-components-files.d.ts +3 -0
  244. package/components/filter/taiga-ui-kit-components-filter.d.ts +3 -0
  245. package/components/index.d.ts +1 -0
  246. package/components/input/taiga-ui-kit-components-input.d.ts +3 -0
  247. package/components/input-copy/taiga-ui-kit-components-input-copy.d.ts +3 -0
  248. package/components/input-count/input-count.component.d.ts +10 -0
  249. package/components/input-count/input-count.module.d.ts +3 -0
  250. package/components/input-count/input-count.options.d.ts +4 -0
  251. package/components/input-count/taiga-ui-kit-components-input-count.d.ts +3 -0
  252. package/components/input-date/input-date.component.d.ts +4 -0
  253. package/components/input-date/taiga-ui-kit-components-input-date.d.ts +3 -0
  254. package/components/input-date-multi/index.d.ts +2 -0
  255. package/components/input-date-multi/input-date-multi.component.d.ts +64 -0
  256. package/components/input-date-multi/input-date-multi.module.d.ts +14 -0
  257. package/components/input-date-multi/package.json +10 -0
  258. package/components/input-date-multi/taiga-ui-kit-components-input-date-multi.d.ts +5 -0
  259. package/components/input-date-range/taiga-ui-kit-components-input-date-range.d.ts +3 -0
  260. package/components/input-date-time/taiga-ui-kit-components-input-date-time.d.ts +3 -0
  261. package/components/input-files/input-files.component.d.ts +6 -0
  262. package/components/input-files/input-files.options.d.ts +8 -0
  263. package/components/input-files/taiga-ui-kit-components-input-files.d.ts +3 -0
  264. package/components/input-inline/taiga-ui-kit-components-input-inline.d.ts +3 -0
  265. package/components/input-month/taiga-ui-kit-components-input-month.d.ts +3 -0
  266. package/components/input-month-range/taiga-ui-kit-components-input-month-range.d.ts +3 -0
  267. package/components/input-number/input-number.component.d.ts +2 -0
  268. package/components/input-number/input-number.options.d.ts +4 -0
  269. package/components/input-number/taiga-ui-kit-components-input-number.d.ts +3 -0
  270. package/components/input-password/input-password.options.d.ts +4 -0
  271. package/components/input-password/taiga-ui-kit-components-input-password.d.ts +3 -0
  272. package/components/input-phone/input-phone.options.d.ts +3 -0
  273. package/components/input-phone/taiga-ui-kit-components-input-phone.d.ts +3 -0
  274. package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +7 -0
  275. package/components/input-phone/utils/create-phone-mask-expression.d.ts +6 -0
  276. package/components/input-phone-international/input-phone-international.component.d.ts +13 -0
  277. package/components/input-phone-international/input-phone-international.options.d.ts +3 -0
  278. package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.d.ts +3 -0
  279. package/components/input-range/taiga-ui-kit-components-input-range.d.ts +3 -0
  280. package/components/input-slider/input-slider.component.d.ts +2 -0
  281. package/components/input-slider/taiga-ui-kit-components-input-slider.d.ts +3 -0
  282. package/components/input-tag/input-tag.component.d.ts +1 -1
  283. package/components/input-tag/input-tag.options.d.ts +3 -0
  284. package/components/input-tag/taiga-ui-kit-components-input-tag.d.ts +3 -0
  285. package/components/input-time/input-time.component.d.ts +1 -0
  286. package/components/input-time/input-time.options.d.ts +3 -0
  287. package/components/input-time/taiga-ui-kit-components-input-time.d.ts +3 -0
  288. package/components/input-year/taiga-ui-kit-components-input-year.d.ts +3 -0
  289. package/components/island/taiga-ui-kit-components-island.d.ts +3 -0
  290. package/components/items-with-more/taiga-ui-kit-components-items-with-more.d.ts +3 -0
  291. package/components/line-clamp/line-clamp.options.d.ts +3 -0
  292. package/components/line-clamp/taiga-ui-kit-components-line-clamp.d.ts +3 -0
  293. package/components/marker-icon/taiga-ui-kit-components-marker-icon.d.ts +3 -0
  294. package/components/multi-select/multi-select.options.d.ts +3 -0
  295. package/components/multi-select/taiga-ui-kit-components-multi-select.d.ts +3 -0
  296. package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.d.ts +3 -0
  297. package/components/pagination/pagination.component.d.ts +37 -0
  298. package/components/pagination/taiga-ui-kit-components-pagination.d.ts +3 -0
  299. package/components/pdf-viewer/pdf-viewer.options.d.ts +3 -0
  300. package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +3 -0
  301. package/components/progress/taiga-ui-kit-components-progress.d.ts +3 -0
  302. package/components/prompt/taiga-ui-kit-components-prompt.d.ts +3 -0
  303. package/components/push/push.options.d.ts +3 -0
  304. package/components/push/taiga-ui-kit-components-push.d.ts +3 -0
  305. package/components/radio/radio.options.d.ts +4 -0
  306. package/components/radio/taiga-ui-kit-components-radio.d.ts +3 -0
  307. package/components/radio-block/radio-block.component.d.ts +1 -0
  308. package/components/radio-block/taiga-ui-kit-components-radio-block.d.ts +3 -0
  309. package/components/radio-group/taiga-ui-kit-components-radio-group.d.ts +3 -0
  310. package/components/radio-labeled/radio-labeled.component.d.ts +1 -0
  311. package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.d.ts +3 -0
  312. package/components/radio-list/radio-list.component.d.ts +1 -0
  313. package/components/radio-list/taiga-ui-kit-components-radio-list.d.ts +3 -0
  314. package/components/range/range-change.directive.d.ts +4 -0
  315. package/components/range/taiga-ui-kit-components-range.d.ts +3 -0
  316. package/components/rating/rating.options.d.ts +3 -0
  317. package/components/rating/taiga-ui-kit-components-rating.d.ts +3 -0
  318. package/components/routable-dialog/taiga-ui-kit-components-routable-dialog.d.ts +3 -0
  319. package/components/select/select.options.d.ts +3 -0
  320. package/components/select/taiga-ui-kit-components-select.d.ts +3 -0
  321. package/components/select-option/taiga-ui-kit-components-select-option.d.ts +3 -0
  322. package/components/slider/helpers/slider-readonly.directive.d.ts +4 -0
  323. package/components/slider/slider.options.d.ts +3 -0
  324. package/components/slider/taiga-ui-kit-components-slider.d.ts +3 -0
  325. package/components/stepper/taiga-ui-kit-components-stepper.d.ts +3 -0
  326. package/components/tabs/tab/tab.providers.d.ts +3 -0
  327. package/components/tabs/tabs/tabs.component.d.ts +2 -0
  328. package/components/tabs/tabs.options.d.ts +3 -0
  329. package/components/tabs/taiga-ui-kit-components-tabs.d.ts +3 -0
  330. package/components/tag/tag.options.d.ts +4 -0
  331. package/components/tag/taiga-ui-kit-components-tag.d.ts +3 -0
  332. package/components/taiga-ui-kit-components.d.ts +3 -0
  333. package/components/textarea/deprecated.d.ts +9 -0
  334. package/components/textarea/taiga-ui-kit-components-textarea.d.ts +3 -0
  335. package/components/tiles/taiga-ui-kit-components-tiles.d.ts +3 -0
  336. package/components/toggle/taiga-ui-kit-components-toggle.d.ts +3 -0
  337. package/components/toggle/toggle.component.d.ts +1 -0
  338. package/components/toggle/toggle.options.d.ts +4 -0
  339. package/components/tree/misc/tree.tokens.d.ts +24 -0
  340. package/components/tree/taiga-ui-kit-components-tree.d.ts +3 -0
  341. package/constants/empty-mask.d.ts +4 -0
  342. package/constants/group-class-names.d.ts +4 -0
  343. package/constants/masks.d.ts +4 -0
  344. package/constants/math.d.ts +3 -0
  345. package/constants/taiga-ui-kit-constants.d.ts +3 -0
  346. package/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.d.ts +3 -0
  347. package/directives/highlight/taiga-ui-kit-directives-highlight.d.ts +3 -0
  348. package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +3 -0
  349. package/directives/mask/legacy-mask.d.ts +21 -0
  350. package/directives/mask/taiga-ui-kit-directives-mask.d.ts +3 -0
  351. package/directives/present/present.directive.d.ts +11 -0
  352. package/directives/present/taiga-ui-kit-directives-present.d.ts +3 -0
  353. package/directives/project-class/project-class.directive.d.ts +3 -0
  354. package/directives/project-class/taiga-ui-kit-directives-project-class.d.ts +3 -0
  355. package/directives/taiga-ui-kit-directives.d.ts +3 -0
  356. package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.d.ts +3 -0
  357. package/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.d.ts +3 -0
  358. package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.d.ts +3 -0
  359. package/esm2015/abstract/taiga-ui-kit-abstract.js +4 -1
  360. package/esm2015/classes/stringifiable-item.js +4 -1
  361. package/esm2015/classes/taiga-ui-kit-classes.js +4 -1
  362. package/esm2015/components/accordion/taiga-ui-kit-components-accordion.js +4 -1
  363. package/esm2015/components/action/taiga-ui-kit-components-action.js +4 -1
  364. package/esm2015/components/arrow/arrow.options.js +5 -1
  365. package/esm2015/components/arrow/arrow.providers.js +4 -1
  366. package/esm2015/components/arrow/taiga-ui-kit-components-arrow.js +4 -1
  367. package/esm2015/components/avatar/avatar.options.js +5 -1
  368. package/esm2015/components/avatar/taiga-ui-kit-components-avatar.js +4 -1
  369. package/esm2015/components/badge/taiga-ui-kit-components-badge.js +4 -1
  370. package/esm2015/components/badged-content/taiga-ui-kit-components-badged-content.js +4 -1
  371. package/esm2015/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.js +4 -1
  372. package/esm2015/components/calendar-month/taiga-ui-kit-components-calendar-month.js +4 -1
  373. package/esm2015/components/calendar-range/taiga-ui-kit-components-calendar-range.js +4 -1
  374. package/esm2015/components/carousel/carousel-scroll.directive.js +2 -1
  375. package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +4 -1
  376. package/esm2015/components/checkbox/checkbox.component.js +2 -1
  377. package/esm2015/components/checkbox/taiga-ui-kit-components-checkbox.js +4 -1
  378. package/esm2015/components/checkbox-block/checkbox-block.component.js +2 -1
  379. package/esm2015/components/checkbox-block/taiga-ui-kit-components-checkbox-block.js +4 -1
  380. package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +2 -1
  381. package/esm2015/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.js +4 -1
  382. package/esm2015/components/combo-box/combo-box.component.js +2 -1
  383. package/esm2015/components/combo-box/taiga-ui-kit-components-combo-box.js +4 -1
  384. package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
  385. package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
  386. package/esm2015/components/data-list-wrapper/data-list-wrapper.js +6 -3
  387. package/esm2015/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.js +4 -1
  388. package/esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js +4 -1
  389. package/esm2015/components/files/file/file-options.js +4 -1
  390. package/esm2015/components/files/file/file.component.js +2 -1
  391. package/esm2015/components/files/taiga-ui-kit-components-files.js +4 -1
  392. package/esm2015/components/filter/filter.component.js +2 -1
  393. package/esm2015/components/filter/taiga-ui-kit-components-filter.js +4 -1
  394. package/esm2015/components/index.js +2 -1
  395. package/esm2015/components/input/taiga-ui-kit-components-input.js +4 -1
  396. package/esm2015/components/input-copy/taiga-ui-kit-components-input-copy.js +4 -1
  397. package/esm2015/components/input-count/input-count.component.js +11 -1
  398. package/esm2015/components/input-count/input-count.module.js +4 -1
  399. package/esm2015/components/input-count/input-count.options.js +5 -1
  400. package/esm2015/components/input-count/taiga-ui-kit-components-input-count.js +4 -1
  401. package/esm2015/components/input-date/input-date.component.js +6 -1
  402. package/esm2015/components/input-date/taiga-ui-kit-components-input-date.js +4 -1
  403. package/esm2015/components/input-date-multi/index.js +3 -0
  404. package/esm2015/components/input-date-multi/input-date-multi.component.js +272 -0
  405. package/esm2015/components/input-date-multi/input-date-multi.module.js +64 -0
  406. package/esm2015/components/input-date-multi/taiga-ui-kit-components-input-date-multi.js +5 -0
  407. package/esm2015/components/input-date-range/taiga-ui-kit-components-input-date-range.js +4 -1
  408. package/esm2015/components/input-date-time/taiga-ui-kit-components-input-date-time.js +4 -1
  409. package/esm2015/components/input-files/input-files.component.js +9 -1
  410. package/esm2015/components/input-files/input-files.directive.js +2 -1
  411. package/esm2015/components/input-files/input-files.options.js +5 -2
  412. package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +4 -1
  413. package/esm2015/components/input-inline/input-inline.component.js +3 -1
  414. package/esm2015/components/input-inline/taiga-ui-kit-components-input-inline.js +4 -1
  415. package/esm2015/components/input-month/taiga-ui-kit-components-input-month.js +4 -1
  416. package/esm2015/components/input-month-range/taiga-ui-kit-components-input-month-range.js +4 -1
  417. package/esm2015/components/input-number/input-number.component.js +4 -1
  418. package/esm2015/components/input-number/input-number.options.js +5 -1
  419. package/esm2015/components/input-number/taiga-ui-kit-components-input-number.js +4 -1
  420. package/esm2015/components/input-password/input-password.options.js +6 -1
  421. package/esm2015/components/input-password/taiga-ui-kit-components-input-password.js +4 -1
  422. package/esm2015/components/input-phone/input-phone.options.js +4 -1
  423. package/esm2015/components/input-phone/taiga-ui-kit-components-input-phone.js +4 -1
  424. package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +21 -3
  425. package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +7 -1
  426. package/esm2015/components/input-phone-international/input-phone-international.component.js +17 -1
  427. package/esm2015/components/input-phone-international/input-phone-international.options.js +4 -1
  428. package/esm2015/components/input-phone-international/taiga-ui-kit-components-input-phone-international.js +4 -1
  429. package/esm2015/components/input-range/taiga-ui-kit-components-input-range.js +4 -1
  430. package/esm2015/components/input-slider/input-slider.component.js +3 -1
  431. package/esm2015/components/input-slider/taiga-ui-kit-components-input-slider.js +4 -1
  432. package/esm2015/components/input-tag/input-tag.component.js +6 -2
  433. package/esm2015/components/input-tag/input-tag.options.js +4 -1
  434. package/esm2015/components/input-tag/taiga-ui-kit-components-input-tag.js +4 -1
  435. package/esm2015/components/input-time/input-time.component.js +3 -1
  436. package/esm2015/components/input-time/input-time.options.js +4 -1
  437. package/esm2015/components/input-time/taiga-ui-kit-components-input-time.js +4 -1
  438. package/esm2015/components/input-year/taiga-ui-kit-components-input-year.js +4 -1
  439. package/esm2015/components/island/taiga-ui-kit-components-island.js +4 -1
  440. package/esm2015/components/items-with-more/taiga-ui-kit-components-items-with-more.js +4 -1
  441. package/esm2015/components/line-clamp/line-clamp.component.js +2 -1
  442. package/esm2015/components/line-clamp/line-clamp.options.js +4 -1
  443. package/esm2015/components/line-clamp/taiga-ui-kit-components-line-clamp.js +4 -1
  444. package/esm2015/components/marker-icon/taiga-ui-kit-components-marker-icon.js +4 -1
  445. package/esm2015/components/multi-select/multi-select.component.js +2 -1
  446. package/esm2015/components/multi-select/multi-select.options.js +4 -1
  447. package/esm2015/components/multi-select/taiga-ui-kit-components-multi-select.js +4 -1
  448. package/esm2015/components/multi-select-option/taiga-ui-kit-components-multi-select-option.js +4 -1
  449. package/esm2015/components/pagination/pagination.component.js +35 -1
  450. package/esm2015/components/pagination/taiga-ui-kit-components-pagination.js +4 -1
  451. package/esm2015/components/pdf-viewer/pdf-viewer.options.js +4 -1
  452. package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +4 -1
  453. package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +2 -1
  454. package/esm2015/components/progress/progress-circle/progress-circle.component.js +2 -1
  455. package/esm2015/components/progress/taiga-ui-kit-components-progress.js +4 -1
  456. package/esm2015/components/prompt/prompt.component.js +2 -1
  457. package/esm2015/components/prompt/taiga-ui-kit-components-prompt.js +4 -1
  458. package/esm2015/components/push/push.options.js +4 -1
  459. package/esm2015/components/push/taiga-ui-kit-components-push.js +4 -1
  460. package/esm2015/components/radio/radio.options.js +5 -1
  461. package/esm2015/components/radio/taiga-ui-kit-components-radio.js +4 -1
  462. package/esm2015/components/radio-block/radio-block.component.js +2 -1
  463. package/esm2015/components/radio-block/taiga-ui-kit-components-radio-block.js +4 -1
  464. package/esm2015/components/radio-group/taiga-ui-kit-components-radio-group.js +4 -1
  465. package/esm2015/components/radio-labeled/radio-labeled.component.js +2 -1
  466. package/esm2015/components/radio-labeled/taiga-ui-kit-components-radio-labeled.js +4 -1
  467. package/esm2015/components/radio-list/radio-list.component.js +3 -1
  468. package/esm2015/components/radio-list/taiga-ui-kit-components-radio-list.js +4 -1
  469. package/esm2015/components/range/range-change.directive.js +5 -1
  470. package/esm2015/components/range/range.component.js +2 -1
  471. package/esm2015/components/range/taiga-ui-kit-components-range.js +4 -1
  472. package/esm2015/components/rating/rating.options.js +4 -1
  473. package/esm2015/components/rating/taiga-ui-kit-components-rating.js +4 -1
  474. package/esm2015/components/routable-dialog/taiga-ui-kit-components-routable-dialog.js +4 -1
  475. package/esm2015/components/select/select.options.js +4 -1
  476. package/esm2015/components/select/taiga-ui-kit-components-select.js +4 -1
  477. package/esm2015/components/select-option/select-option.component.js +8 -1
  478. package/esm2015/components/select-option/taiga-ui-kit-components-select-option.js +4 -1
  479. package/esm2015/components/slider/helpers/slider-readonly.directive.js +9 -1
  480. package/esm2015/components/slider/slider.component.js +25 -1
  481. package/esm2015/components/slider/slider.options.js +4 -1
  482. package/esm2015/components/slider/taiga-ui-kit-components-slider.js +4 -1
  483. package/esm2015/components/stepper/stepper.component.js +3 -1
  484. package/esm2015/components/stepper/taiga-ui-kit-components-stepper.js +4 -1
  485. package/esm2015/components/tabs/tab/tab.component.js +9 -1
  486. package/esm2015/components/tabs/tab/tab.providers.js +4 -1
  487. package/esm2015/components/tabs/tabs/tabs.component.js +3 -1
  488. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -1
  489. package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +4 -2
  490. package/esm2015/components/tabs/tabs.options.js +4 -1
  491. package/esm2015/components/tabs/taiga-ui-kit-components-tabs.js +4 -1
  492. package/esm2015/components/tag/tag.component.js +2 -1
  493. package/esm2015/components/tag/tag.options.js +5 -1
  494. package/esm2015/components/tag/taiga-ui-kit-components-tag.js +4 -1
  495. package/esm2015/components/taiga-ui-kit-components.js +4 -1
  496. package/esm2015/components/textarea/deprecated.js +10 -1
  497. package/esm2015/components/textarea/taiga-ui-kit-components-textarea.js +4 -1
  498. package/esm2015/components/tiles/taiga-ui-kit-components-tiles.js +4 -1
  499. package/esm2015/components/toggle/taiga-ui-kit-components-toggle.js +4 -1
  500. package/esm2015/components/toggle/toggle.component.js +2 -1
  501. package/esm2015/components/toggle/toggle.options.js +5 -1
  502. package/esm2015/components/tree/components/tree-item/tree-item.component.js +2 -1
  503. package/esm2015/components/tree/components/tree-item/tree-item.providers.js +2 -1
  504. package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +2 -1
  505. package/esm2015/components/tree/misc/tree.tokens.js +25 -1
  506. package/esm2015/components/tree/taiga-ui-kit-components-tree.js +4 -1
  507. package/esm2015/constants/empty-mask.js +5 -1
  508. package/esm2015/constants/group-class-names.js +5 -1
  509. package/esm2015/constants/masks.js +5 -1
  510. package/esm2015/constants/math.js +4 -1
  511. package/esm2015/constants/taiga-ui-kit-constants.js +4 -1
  512. package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +2 -1
  513. package/esm2015/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.js +4 -1
  514. package/esm2015/directives/highlight/taiga-ui-kit-directives-highlight.js +4 -1
  515. package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +4 -1
  516. package/esm2015/directives/mask/legacy-mask.js +31 -1
  517. package/esm2015/directives/mask/taiga-ui-kit-directives-mask.js +4 -1
  518. package/esm2015/directives/present/present.directive.js +12 -1
  519. package/esm2015/directives/present/taiga-ui-kit-directives-present.js +4 -1
  520. package/esm2015/directives/project-class/project-class.directive.js +4 -1
  521. package/esm2015/directives/project-class/taiga-ui-kit-directives-project-class.js +4 -1
  522. package/esm2015/directives/taiga-ui-kit-directives.js +4 -1
  523. package/esm2015/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.js +4 -1
  524. package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +4 -2
  525. package/esm2015/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.js +4 -1
  526. package/esm2015/directives/value-accessor/taiga-ui-kit-directives-value-accessor.js +4 -1
  527. package/esm2015/interfaces/taiga-ui-kit-interfaces.js +4 -1
  528. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -1
  529. package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +4 -1
  530. package/esm2015/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.js +4 -1
  531. package/esm2015/internal/taiga-ui-kit-internal.js +4 -1
  532. package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +4 -1
  533. package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +4 -1
  534. package/esm2015/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.js +4 -1
  535. package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +4 -1
  536. package/esm2015/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.js +4 -1
  537. package/esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js +4 -1
  538. package/esm2015/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.js +4 -1
  539. package/esm2015/pipes/taiga-ui-kit-pipes.js +4 -1
  540. package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +4 -1
  541. package/esm2015/pipes/to-year/taiga-ui-kit-pipes-to-year.js +4 -1
  542. package/esm2015/providers/taiga-ui-kit-providers.js +4 -1
  543. package/esm2015/services/taiga-ui-kit-services.js +4 -1
  544. package/esm2015/taiga-ui-kit.js +4 -1
  545. package/esm2015/tokens/calendar-date-stream.js +4 -1
  546. package/esm2015/tokens/date-inputs-value-transformers.js +11 -1
  547. package/esm2015/tokens/input-date-options.js +4 -1
  548. package/esm2015/tokens/items-handlers.js +4 -1
  549. package/esm2015/tokens/mobile-calendar.js +4 -1
  550. package/esm2015/tokens/month-formatter.js +4 -1
  551. package/esm2015/tokens/tab-margin.js +4 -1
  552. package/esm2015/tokens/taiga-ui-kit-tokens.js +4 -1
  553. package/esm2015/tokens/validation-errors.js +4 -1
  554. package/esm2015/types/taiga-ui-kit-types.js +4 -1
  555. package/esm2015/utils/date/index.js +2 -0
  556. package/esm2015/utils/date/taiga-ui-kit-utils-date.js +5 -0
  557. package/esm2015/utils/date/update.js +6 -0
  558. package/esm2015/utils/files/taiga-ui-kit-utils-files.js +4 -1
  559. package/esm2015/utils/format/string-hash-to-hsl.js +7 -1
  560. package/esm2015/utils/format/taiga-ui-kit-utils-format.js +4 -1
  561. package/esm2015/utils/index.js +2 -1
  562. package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +9 -1
  563. package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +17 -1
  564. package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -1
  565. package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -1
  566. package/esm2015/utils/mask/create-date-mask.js +5 -1
  567. package/esm2015/utils/mask/create-date-range-mask.js +5 -1
  568. package/esm2015/utils/mask/create-time-mask.js +5 -1
  569. package/esm2015/utils/mask/taiga-ui-kit-utils-mask.js +4 -1
  570. package/esm2015/utils/math/horizontal-direction-to-number.js +4 -1
  571. package/esm2015/utils/math/taiga-ui-kit-utils-math.js +4 -1
  572. package/esm2015/utils/miscellaneous/get-precision.js +4 -1
  573. package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +4 -1
  574. package/esm2015/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.js +4 -1
  575. package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +4 -1
  576. package/esm2015/utils/taiga-ui-kit-utils.js +4 -1
  577. package/esm2015/validators/taiga-ui-kit-validators.js +4 -1
  578. package/fesm2015/taiga-ui-kit-abstract.js +4 -0
  579. package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
  580. package/fesm2015/taiga-ui-kit-classes.js +7 -0
  581. package/fesm2015/taiga-ui-kit-classes.js.map +1 -1
  582. package/fesm2015/taiga-ui-kit-components-accordion.js +4 -0
  583. package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
  584. package/fesm2015/taiga-ui-kit-components-action.js +4 -0
  585. package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
  586. package/fesm2015/taiga-ui-kit-components-arrow.js +11 -0
  587. package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
  588. package/fesm2015/taiga-ui-kit-components-avatar.js +8 -0
  589. package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
  590. package/fesm2015/taiga-ui-kit-components-badge.js +4 -0
  591. package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
  592. package/fesm2015/taiga-ui-kit-components-badged-content.js +4 -0
  593. package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
  594. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -0
  595. package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
  596. package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -0
  597. package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
  598. package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -0
  599. package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
  600. package/fesm2015/taiga-ui-kit-components-carousel.js +5 -0
  601. package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
  602. package/fesm2015/taiga-ui-kit-components-checkbox-block.js +5 -0
  603. package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
  604. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +5 -0
  605. package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
  606. package/fesm2015/taiga-ui-kit-components-checkbox.js +5 -0
  607. package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
  608. package/fesm2015/taiga-ui-kit-components-combo-box.js +5 -0
  609. package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
  610. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +11 -4
  611. package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
  612. package/fesm2015/taiga-ui-kit-components-elastic-container.js +4 -0
  613. package/fesm2015/taiga-ui-kit-components-elastic-container.js.map +1 -1
  614. package/fesm2015/taiga-ui-kit-components-files.js +8 -0
  615. package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
  616. package/fesm2015/taiga-ui-kit-components-filter.js +5 -0
  617. package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
  618. package/fesm2015/taiga-ui-kit-components-input-copy.js +4 -0
  619. package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
  620. package/fesm2015/taiga-ui-kit-components-input-count.js +21 -0
  621. package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
  622. package/fesm2015/taiga-ui-kit-components-input-date-multi.js +335 -0
  623. package/fesm2015/taiga-ui-kit-components-input-date-multi.js.map +1 -0
  624. package/fesm2015/taiga-ui-kit-components-input-date-range.js +4 -0
  625. package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
  626. package/fesm2015/taiga-ui-kit-components-input-date-time.js +4 -0
  627. package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
  628. package/fesm2015/taiga-ui-kit-components-input-date.js +9 -0
  629. package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
  630. package/fesm2015/taiga-ui-kit-components-input-files.js +15 -1
  631. package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
  632. package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -0
  633. package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
  634. package/fesm2015/taiga-ui-kit-components-input-month-range.js +4 -0
  635. package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
  636. package/fesm2015/taiga-ui-kit-components-input-month.js +4 -0
  637. package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
  638. package/fesm2015/taiga-ui-kit-components-input-number.js +11 -0
  639. package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
  640. package/fesm2015/taiga-ui-kit-components-input-password.js +9 -0
  641. package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
  642. package/fesm2015/taiga-ui-kit-components-input-phone-international.js +23 -0
  643. package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
  644. package/fesm2015/taiga-ui-kit-components-input-phone.js +33 -2
  645. package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
  646. package/fesm2015/taiga-ui-kit-components-input-range.js +4 -0
  647. package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
  648. package/fesm2015/taiga-ui-kit-components-input-slider.js +6 -0
  649. package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
  650. package/fesm2015/taiga-ui-kit-components-input-tag.js +12 -1
  651. package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
  652. package/fesm2015/taiga-ui-kit-components-input-time.js +9 -0
  653. package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
  654. package/fesm2015/taiga-ui-kit-components-input-year.js +4 -0
  655. package/fesm2015/taiga-ui-kit-components-input-year.js.map +1 -1
  656. package/fesm2015/taiga-ui-kit-components-input.js +4 -0
  657. package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
  658. package/fesm2015/taiga-ui-kit-components-island.js +4 -0
  659. package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
  660. package/fesm2015/taiga-ui-kit-components-items-with-more.js +4 -0
  661. package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
  662. package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -0
  663. package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
  664. package/fesm2015/taiga-ui-kit-components-marker-icon.js +4 -0
  665. package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
  666. package/fesm2015/taiga-ui-kit-components-multi-select-option.js +4 -0
  667. package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
  668. package/fesm2015/taiga-ui-kit-components-multi-select.js +8 -0
  669. package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
  670. package/fesm2015/taiga-ui-kit-components-pagination.js +38 -0
  671. package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
  672. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +7 -0
  673. package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
  674. package/fesm2015/taiga-ui-kit-components-progress.js +6 -0
  675. package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
  676. package/fesm2015/taiga-ui-kit-components-prompt.js +5 -0
  677. package/fesm2015/taiga-ui-kit-components-prompt.js.map +1 -1
  678. package/fesm2015/taiga-ui-kit-components-push.js +7 -0
  679. package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
  680. package/fesm2015/taiga-ui-kit-components-radio-block.js +5 -0
  681. package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
  682. package/fesm2015/taiga-ui-kit-components-radio-group.js +4 -0
  683. package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
  684. package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -0
  685. package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
  686. package/fesm2015/taiga-ui-kit-components-radio-list.js +6 -0
  687. package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
  688. package/fesm2015/taiga-ui-kit-components-radio.js +8 -0
  689. package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
  690. package/fesm2015/taiga-ui-kit-components-range.js +9 -0
  691. package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
  692. package/fesm2015/taiga-ui-kit-components-rating.js +7 -0
  693. package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
  694. package/fesm2015/taiga-ui-kit-components-routable-dialog.js +4 -0
  695. package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
  696. package/fesm2015/taiga-ui-kit-components-select-option.js +11 -0
  697. package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
  698. package/fesm2015/taiga-ui-kit-components-select.js +7 -0
  699. package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
  700. package/fesm2015/taiga-ui-kit-components-slider.js +39 -0
  701. package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
  702. package/fesm2015/taiga-ui-kit-components-stepper.js +6 -0
  703. package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
  704. package/fesm2015/taiga-ui-kit-components-tabs.js +25 -1
  705. package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
  706. package/fesm2015/taiga-ui-kit-components-tag.js +9 -0
  707. package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
  708. package/fesm2015/taiga-ui-kit-components-textarea.js +13 -0
  709. package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
  710. package/fesm2015/taiga-ui-kit-components-tiles.js +4 -0
  711. package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
  712. package/fesm2015/taiga-ui-kit-components-toggle.js +9 -0
  713. package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
  714. package/fesm2015/taiga-ui-kit-components-tree.js +28 -0
  715. package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
  716. package/fesm2015/taiga-ui-kit-components.js +5 -0
  717. package/fesm2015/taiga-ui-kit-components.js.map +1 -1
  718. package/fesm2015/taiga-ui-kit-constants.js +19 -0
  719. package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
  720. package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +5 -0
  721. package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js.map +1 -1
  722. package/fesm2015/taiga-ui-kit-directives-highlight.js +4 -0
  723. package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
  724. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +4 -0
  725. package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
  726. package/fesm2015/taiga-ui-kit-directives-mask.js +26 -0
  727. package/fesm2015/taiga-ui-kit-directives-mask.js.map +1 -1
  728. package/fesm2015/taiga-ui-kit-directives-present.js +15 -0
  729. package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
  730. package/fesm2015/taiga-ui-kit-directives-project-class.js +7 -0
  731. package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
  732. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +7 -1
  733. package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
  734. package/fesm2015/taiga-ui-kit-directives-unmask-handler.js +4 -0
  735. package/fesm2015/taiga-ui-kit-directives-unmask-handler.js.map +1 -1
  736. package/fesm2015/taiga-ui-kit-directives-value-accessor.js +4 -0
  737. package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
  738. package/fesm2015/taiga-ui-kit-directives.js +4 -0
  739. package/fesm2015/taiga-ui-kit-directives.js.map +1 -1
  740. package/fesm2015/taiga-ui-kit-interfaces.js +3 -1
  741. package/fesm2015/taiga-ui-kit-interfaces.js.map +1 -1
  742. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +10 -0
  743. package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
  744. package/fesm2015/taiga-ui-kit-internal.js +4 -0
  745. package/fesm2015/taiga-ui-kit-internal.js.map +1 -1
  746. package/fesm2015/taiga-ui-kit-pipes-field-error.js +4 -0
  747. package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
  748. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +7 -0
  749. package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
  750. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +4 -0
  751. package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
  752. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +4 -0
  753. package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
  754. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +4 -0
  755. package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
  756. package/fesm2015/taiga-ui-kit-pipes-stringify.js +4 -0
  757. package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
  758. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +4 -0
  759. package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
  760. package/fesm2015/taiga-ui-kit-pipes-to-year.js +4 -0
  761. package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
  762. package/fesm2015/taiga-ui-kit-pipes.js +4 -0
  763. package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
  764. package/fesm2015/taiga-ui-kit-providers.js +4 -0
  765. package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
  766. package/fesm2015/taiga-ui-kit-services.js +4 -0
  767. package/fesm2015/taiga-ui-kit-services.js.map +1 -1
  768. package/fesm2015/taiga-ui-kit-tokens.js +35 -0
  769. package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
  770. package/fesm2015/taiga-ui-kit-types.js +3 -1
  771. package/fesm2015/taiga-ui-kit-types.js.map +1 -1
  772. package/fesm2015/taiga-ui-kit-utils-date.js +12 -0
  773. package/fesm2015/taiga-ui-kit-utils-date.js.map +1 -0
  774. package/fesm2015/taiga-ui-kit-utils-files.js +4 -0
  775. package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
  776. package/fesm2015/taiga-ui-kit-utils-format.js +10 -0
  777. package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
  778. package/fesm2015/taiga-ui-kit-utils-mask.js +50 -0
  779. package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
  780. package/fesm2015/taiga-ui-kit-utils-math.js +7 -0
  781. package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
  782. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +10 -0
  783. package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
  784. package/fesm2015/taiga-ui-kit-utils-phone.js +4 -0
  785. package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
  786. package/fesm2015/taiga-ui-kit-utils.js +5 -0
  787. package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
  788. package/fesm2015/taiga-ui-kit-validators.js +4 -0
  789. package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
  790. package/fesm2015/taiga-ui-kit.js +4 -0
  791. package/fesm2015/taiga-ui-kit.js.map +1 -1
  792. package/interfaces/taiga-ui-kit-interfaces.d.ts +3 -0
  793. package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +3 -0
  794. package/internal/primitive-calendar-range/primitive-calendar-range.module.d.ts +3 -0
  795. package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.d.ts +3 -0
  796. package/internal/taiga-ui-kit-internal.d.ts +3 -0
  797. package/package.json +5 -5
  798. package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +3 -0
  799. package/pipes/filter-by-input/filter-by-input-with.pipe.d.ts +3 -0
  800. package/pipes/filter-by-input/filter-by-input.base.d.ts +4 -0
  801. package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.d.ts +3 -0
  802. package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +3 -0
  803. package/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.d.ts +3 -0
  804. package/pipes/stringify/taiga-ui-kit-pipes-stringify.d.ts +3 -0
  805. package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.d.ts +3 -0
  806. package/pipes/taiga-ui-kit-pipes.d.ts +3 -0
  807. package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +3 -0
  808. package/pipes/to-year/taiga-ui-kit-pipes-to-year.d.ts +3 -0
  809. package/providers/taiga-ui-kit-providers.d.ts +3 -0
  810. package/services/taiga-ui-kit-services.d.ts +3 -0
  811. package/taiga-ui-kit.d.ts +3 -0
  812. package/tokens/calendar-date-stream.d.ts +3 -0
  813. package/tokens/date-inputs-value-transformers.d.ts +9 -0
  814. package/tokens/input-date-options.d.ts +3 -0
  815. package/tokens/items-handlers.d.ts +3 -0
  816. package/tokens/mobile-calendar.d.ts +3 -0
  817. package/tokens/month-formatter.d.ts +3 -0
  818. package/tokens/tab-margin.d.ts +3 -0
  819. package/tokens/taiga-ui-kit-tokens.d.ts +3 -0
  820. package/tokens/validation-errors.d.ts +3 -0
  821. package/types/file-state.d.ts +3 -0
  822. package/types/key-steps.d.ts +18 -0
  823. package/types/taiga-ui-kit-types.d.ts +3 -0
  824. package/utils/date/index.d.ts +1 -0
  825. package/utils/date/package.json +10 -0
  826. package/utils/date/taiga-ui-kit-utils-date.d.ts +5 -0
  827. package/utils/date/update.d.ts +2 -0
  828. package/utils/files/taiga-ui-kit-utils-files.d.ts +3 -0
  829. package/utils/format/string-hash-to-hsl.d.ts +5 -0
  830. package/utils/format/taiga-ui-kit-utils-format.d.ts +3 -0
  831. package/utils/index.d.ts +1 -0
  832. package/utils/mask/create-auto-corrected-date-pipe.d.ts +12 -0
  833. package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +16 -0
  834. package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +4 -0
  835. package/utils/mask/create-auto-corrected-time-pipe.d.ts +6 -0
  836. package/utils/mask/create-date-mask.d.ts +4 -0
  837. package/utils/mask/create-date-range-mask.d.ts +4 -0
  838. package/utils/mask/create-time-mask.d.ts +4 -0
  839. package/utils/mask/taiga-ui-kit-utils-mask.d.ts +3 -0
  840. package/utils/math/horizontal-direction-to-number.d.ts +3 -0
  841. package/utils/math/taiga-ui-kit-utils-math.d.ts +3 -0
  842. package/utils/miscellaneous/get-precision.d.ts +3 -0
  843. package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +3 -0
  844. package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.d.ts +3 -0
  845. package/utils/phone/taiga-ui-kit-utils-phone.d.ts +3 -0
  846. package/utils/taiga-ui-kit-utils.d.ts +3 -0
  847. package/validators/taiga-ui-kit-validators.d.ts +3 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-copy.js","sources":["../../../projects/kit/components/input-copy/input-copy.options.ts","../../../projects/kit/components/input-copy/input-copy.component.ts","../../../projects/kit/components/input-copy/input-copy.template.html","../../../projects/kit/components/input-copy/input-copy.directive.ts","../../../projects/kit/components/input-copy/input-copy.module.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {TuiContextWithImplicit, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCopyOptions {\n readonly icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n readonly messageAppearance: string;\n readonly messageDirection: TuiHintDirection;\n readonly successMessage: PolymorpheusContent;\n}\n\nexport const TUI_INPUT_COPY_DEFAULT_OPTIONS: TuiInputCopyOptions = {\n successMessage: ``,\n messageDirection: `bottom-left`,\n messageAppearance: ``,\n icon: ({$implicit}) => ($implicit === `s` ? `tuiIconCopy` : `tuiIconCopyLarge`),\n};\n\nexport const TUI_INPUT_COPY_OPTIONS = tuiCreateToken(TUI_INPUT_COPY_DEFAULT_OPTIONS);\n\nexport function tuiInputCopyOptionsProvider(\n options: Partial<TuiInputCopyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COPY_OPTIONS,\n options,\n TUI_INPUT_COPY_DEFAULT_OPTIONS,\n );\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\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 tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Observable, of, Subject, timer} from 'rxjs';\nimport {map, startWith, switchMap} from 'rxjs/operators';\n\nimport {TUI_INPUT_COPY_OPTIONS, TuiInputCopyOptions} from './input-copy.options';\n\n@Component({\n selector: 'tui-input-copy',\n templateUrl: './input-copy.template.html',\n styleUrls: ['./input-copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n tuiAsFocusableItemAccessor(TuiInputCopyComponent),\n tuiAsControl(TuiInputCopyComponent),\n ],\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copy$ = new Subject<void>();\n\n @Input()\n successMessage = this.options.successMessage;\n\n @Input()\n messageDirection = this.options.messageDirection;\n\n @Input()\n messageAppearance = this.options.messageAppearance;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(DOCUMENT) private readonly doc: Document,\n @Inject(TUI_COPY_TEXTS) private readonly copyTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_COPY_OPTIONS) private readonly options: TuiInputCopyOptions,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n @tuiPure\n get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap(texts =>\n this.copy$.pipe(\n switchMap(() =>\n merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(map(() => texts[0])),\n ),\n ),\n startWith(texts[0]),\n ),\n ),\n );\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?.focused;\n }\n\n get icon(): TuiInputCopyOptions['icon'] {\n return this.options.icon;\n }\n\n onValueChange(value: string): void {\n this.value = value;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n copy(): void {\n if (!this.textfield?.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.doc.execCommand('copy');\n this.copy$.next();\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n automation-id=\"tui-copy__icon\"\n tuiWrapper\n class=\"t-icon\"\n [disabled]=\"!value\"\n [src]=\"src\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n ></tui-svg>\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\n@Directive({\n selector: 'tui-input-copy',\n providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],\n})\nexport class TuiInputCopyDirective extends AbstractTuiTextfieldHost<TuiInputCopyComponent> {\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiAlertModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [TuiInputCopyComponent, TuiInputCopyDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCopyModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAYa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,cAAc,EAAE,CAAE,CAAA;AAClB,IAAA,gBAAgB,EAAE,CAAa,WAAA,CAAA;AAC/B,IAAA,iBAAiB,EAAE,CAAE,CAAA;IACrB,IAAI,EAAE,CAAC,EAAC,SAAS,EAAC,MAAM,SAAS,KAAK,CAAG,CAAA,CAAA,GAAG,CAAA,WAAA,CAAa,GAAG,kBAAkB,CAAC;EACjF;MAEW,sBAAsB,GAAG,cAAc,CAAC,8BAA8B,EAAE;AAE/E,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC,CAAC;AACN;;ACkBM,MAAO,qBACT,SAAQ,kBAA0B,CAAA;IAiBlC,WAII,CAAA,OAAyB,EACE,GAAsB,EACd,GAAa,EACP,UAAwC,EAChC,OAA4B,EAE5D,aAAwC,EAAA;AAEzD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QANe,IAAG,CAAA,GAAA,GAAH,GAAG,CAAU;QACP,IAAU,CAAA,UAAA,GAAV,UAAU,CAA8B;QAChC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAqB;QAE5D,IAAa,CAAA,aAAA,GAAb,aAAa,CAA2B;AArB5C,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,OAAO,EAAQ,CAAC;AAG7C,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;AAG7C,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;AAGjD,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,CA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,EAAA,kBAAkB,EAHZ,YAAA,EAAA,CAAA,qBAAqB,EAAE,qBAAqB,aATvD,YAAY;QACZ,kBAAkB;QAClB,gBAAgB;QAChB,YAAY;QACZ,aAAa;QACb,2BAA2B;QAC3B,cAAc;AACd,QAAA,4BAA4B,CAGtB,EAAA,OAAA,EAAA,CAAA,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEpE,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAblB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,kBAAkB;YAClB,gBAAgB;YAChB,YAAY;YACZ,aAAa;YACb,2BAA2B;YAC3B,cAAc;YACd,4BAA4B;AAC/B,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAd9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,gBAAgB;wBAChB,YAAY;wBACZ,aAAa;wBACb,2BAA2B;wBAC3B,cAAc;wBACd,4BAA4B;AAC/B,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AACjF,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-copy.js","sources":["../../../projects/kit/components/input-copy/input-copy.options.ts","../../../projects/kit/components/input-copy/input-copy.component.ts","../../../projects/kit/components/input-copy/input-copy.template.html","../../../projects/kit/components/input-copy/input-copy.directive.ts","../../../projects/kit/components/input-copy/input-copy.module.ts","../../../projects/kit/components/input-copy/taiga-ui-kit-components-input-copy.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {TuiContextWithImplicit, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCopyOptions {\n readonly icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n readonly messageAppearance: string;\n readonly messageDirection: TuiHintDirection;\n readonly successMessage: PolymorpheusContent;\n}\n\nexport const TUI_INPUT_COPY_DEFAULT_OPTIONS: TuiInputCopyOptions = {\n successMessage: ``,\n messageDirection: `bottom-left`,\n messageAppearance: ``,\n icon: ({$implicit}) => ($implicit === `s` ? `tuiIconCopy` : `tuiIconCopyLarge`),\n};\n\nexport const TUI_INPUT_COPY_OPTIONS = tuiCreateToken(TUI_INPUT_COPY_DEFAULT_OPTIONS);\n\nexport function tuiInputCopyOptionsProvider(\n options: Partial<TuiInputCopyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COPY_OPTIONS,\n options,\n TUI_INPUT_COPY_DEFAULT_OPTIONS,\n );\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\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 tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Observable, of, Subject, timer} from 'rxjs';\nimport {map, startWith, switchMap} from 'rxjs/operators';\n\nimport {TUI_INPUT_COPY_OPTIONS, TuiInputCopyOptions} from './input-copy.options';\n\n@Component({\n selector: 'tui-input-copy',\n templateUrl: './input-copy.template.html',\n styleUrls: ['./input-copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n tuiAsFocusableItemAccessor(TuiInputCopyComponent),\n tuiAsControl(TuiInputCopyComponent),\n ],\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copy$ = new Subject<void>();\n\n @Input()\n successMessage = this.options.successMessage;\n\n @Input()\n messageDirection = this.options.messageDirection;\n\n @Input()\n messageAppearance = this.options.messageAppearance;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(DOCUMENT) private readonly doc: Document,\n @Inject(TUI_COPY_TEXTS) private readonly copyTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_COPY_OPTIONS) private readonly options: TuiInputCopyOptions,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n @tuiPure\n get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap(texts =>\n this.copy$.pipe(\n switchMap(() =>\n merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(map(() => texts[0])),\n ),\n ),\n startWith(texts[0]),\n ),\n ),\n );\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?.focused;\n }\n\n get icon(): TuiInputCopyOptions['icon'] {\n return this.options.icon;\n }\n\n onValueChange(value: string): void {\n this.value = value;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n copy(): void {\n if (!this.textfield?.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.doc.execCommand('copy');\n this.copy$.next();\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n automation-id=\"tui-copy__icon\"\n tuiWrapper\n class=\"t-icon\"\n [disabled]=\"!value\"\n [src]=\"src\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n ></tui-svg>\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\n@Directive({\n selector: 'tui-input-copy',\n providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],\n})\nexport class TuiInputCopyDirective extends AbstractTuiTextfieldHost<TuiInputCopyComponent> {\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiAlertModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [TuiInputCopyComponent, TuiInputCopyDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCopyModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAYa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,cAAc,EAAE,CAAE,CAAA;AAClB,IAAA,gBAAgB,EAAE,CAAa,WAAA,CAAA;AAC/B,IAAA,iBAAiB,EAAE,CAAE,CAAA;IACrB,IAAI,EAAE,CAAC,EAAC,SAAS,EAAC,MAAM,SAAS,KAAK,CAAG,CAAA,CAAA,GAAG,CAAA,WAAA,CAAa,GAAG,kBAAkB,CAAC;EACjF;MAEW,sBAAsB,GAAG,cAAc,CAAC,8BAA8B,EAAE;AAE/E,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC,CAAC;AACN;;ACkBM,MAAO,qBACT,SAAQ,kBAA0B,CAAA;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C,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,gBAAgB;wBAChB,YAAY;wBACZ,aAAa;wBACb,2BAA2B;wBAC3B,cAAc;wBACd,4BAA4B;AAC/B,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AACjF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
@@ -14,6 +14,7 @@ import { CommonModule } from '@angular/common';
14
14
  import * as i5 from 'rxjs';
15
15
  import { TuiValueAccessorModule } from '@taiga-ui/kit/directives';
16
16
 
17
+ /** Default values for the input count options. */
17
18
  const TUI_INPUT_COUNT_DEFAULT_OPTIONS = {
18
19
  icons: {
19
20
  up: `tuiIconPlus`,
@@ -26,11 +27,17 @@ const TUI_INPUT_COUNT_DEFAULT_OPTIONS = {
26
27
  step: 1,
27
28
  postfix: ``,
28
29
  };
30
+ /**
31
+ * Default parameters for input count component
32
+ */
29
33
  const TUI_INPUT_COUNT_OPTIONS = tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);
30
34
  function tuiInputCountOptionsProvider(options) {
31
35
  return tuiProvideOptions(TUI_INPUT_COUNT_OPTIONS, options, TUI_INPUT_COUNT_DEFAULT_OPTIONS);
32
36
  }
33
37
 
38
+ /**
39
+ * @deprecated use {@link TuiInputNumberComponent} with [step] instead
40
+ */
34
41
  class TuiInputCountComponent extends AbstractTuiNullableControl {
35
42
  constructor(control, cdr, textfieldController, minusTexts$, isMobile, options, numberFormat) {
36
43
  super(control, cdr);
@@ -43,7 +50,9 @@ class TuiInputCountComponent extends AbstractTuiNullableControl {
43
50
  this.min = this.options.min;
44
51
  this.max = this.options.max;
45
52
  this.hideButtons = this.options.hideButtons;
53
+ /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */
46
54
  this.prefix = '';
55
+ /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
47
56
  this.postfix = this.options.postfix;
48
57
  }
49
58
  get computedMin() {
@@ -92,9 +101,14 @@ class TuiInputCountComponent extends AbstractTuiNullableControl {
92
101
  onFocused(focused) {
93
102
  this.updateFocused(focused);
94
103
  }
104
+ /**
105
+ * @deprecated
106
+ * TODO: drop in v4.0 as unused method
107
+ */
95
108
  onInputNumberChange(value) {
96
109
  this.value = value;
97
110
  }
111
+ /** @deprecated */
98
112
  onValueChange(value) {
99
113
  this.value = maskitoParseNumber(value, this.numberFormat.decimalSeparator);
100
114
  }
@@ -225,6 +239,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
225
239
  }]
226
240
  }] });
227
241
 
242
+ /**
243
+ * @deprecated use {@link TuiInputNumberComponent} with [step] instead
244
+ */
228
245
  class TuiInputCountModule {
229
246
  }
230
247
  TuiInputCountModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCountModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -261,5 +278,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
261
278
  }]
262
279
  }] });
263
280
 
281
+ /**
282
+ * Generated bundle index. Do not edit.
283
+ */
284
+
264
285
  export { TUI_INPUT_COUNT_DEFAULT_OPTIONS, TUI_INPUT_COUNT_OPTIONS, TuiInputCountComponent, TuiInputCountDirective, TuiInputCountModule, tuiInputCountOptionsProvider };
265
286
  //# sourceMappingURL=taiga-ui-kit-components-input-count.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-count.js","sources":["../../../projects/kit/components/input-count/input-count.options.ts","../../../projects/kit/components/input-count/input-count.component.ts","../../../projects/kit/components/input-count/input-count.template.html","../../../projects/kit/components/input-count/input-count.directive.ts","../../../projects/kit/components/input-count/input-count.module.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCountOptions {\n readonly appearance: string;\n readonly hideButtons: boolean;\n readonly icons: Readonly<{\n down: PolymorpheusContent<Record<string, unknown>>;\n up: PolymorpheusContent<Record<string, unknown>>;\n }>;\n readonly max: number;\n readonly min: number;\n readonly postfix: string;\n readonly step: number;\n}\n\n/** Default values for the input count options. */\nexport const TUI_INPUT_COUNT_DEFAULT_OPTIONS: TuiInputCountOptions = {\n icons: {\n up: `tuiIconPlus`,\n down: `tuiIconMinus`,\n },\n appearance: `textfield`,\n hideButtons: false,\n min: 0,\n max: Number.MAX_SAFE_INTEGER,\n step: 1,\n postfix: ``,\n};\n\n/**\n * Default parameters for input count component\n */\nexport const TUI_INPUT_COUNT_OPTIONS = tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);\n\nexport function tuiInputCountOptionsProvider(\n options: Partial<TuiInputCountOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COUNT_OPTIONS,\n options,\n TUI_INPUT_COUNT_DEFAULT_OPTIONS,\n );\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {maskitoParseNumber} from '@maskito/kit';\nimport {\n AbstractTuiNullableControl,\n TUI_IS_MOBILE,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiClamp,\n TuiFocusableElementAccessor,\n tuiIsNativeFocused,\n tuiIsPresent,\n} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiNumberFormatSettings,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number';\nimport {TUI_PLUS_MINUS_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_INPUT_COUNT_OPTIONS, TuiInputCountOptions} from './input-count.options';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@Component({\n selector: 'tui-input-count',\n templateUrl: './input-count.template.html',\n styleUrls: ['./input-count.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCountComponent),\n tuiAsControl(TuiInputCountComponent),\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputCountComponent\n extends AbstractTuiNullableControl<number>\n implements TuiWithOptionalMinMax<number>, TuiFocusableElementAccessor\n{\n @ViewChild(TuiInputNumberComponent)\n private readonly inputNumber?: TuiInputNumberComponent;\n\n @Input()\n step = this.options.step;\n\n @Input()\n min: number | null = this.options.min;\n\n @Input()\n max: number | null = this.options.max;\n\n @Input()\n hideButtons = this.options.hideButtons;\n\n /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n prefix = '';\n\n /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n postfix = this.options.postfix;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n private readonly textfieldController: TuiTextfieldController,\n @Inject(TUI_PLUS_MINUS_TEXTS)\n readonly minusTexts$: Observable<[string, string]>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_INPUT_COUNT_OPTIONS)\n readonly options: TuiInputCountOptions,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: TuiNumberFormatSettings,\n ) {\n super(control, cdr);\n }\n\n get computedMin(): number {\n return this.min ?? this.options.min;\n }\n\n get computedMax(): number {\n return this.max ?? this.options.max;\n }\n\n @HostBinding('class._hide-buttons')\n get buttonsHidden(): boolean {\n return this.hideButtons || this.textfieldController.appearance === 'table';\n }\n\n get iconUp(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.up;\n }\n\n get iconDown(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.down;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.inputNumber || this.computedDisabled\n ? null\n : this.inputNumber.nativeFocusableElement;\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldController.size;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocused(this.nativeFocusableElement);\n }\n\n get minusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value <= this.computedMin)\n );\n }\n\n get plusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value >= this.computedMax)\n );\n }\n\n onButtonMouseDown(event: MouseEvent, disabled: boolean = false): void {\n if (disabled || !this.nativeFocusableElement || this.isMobile) {\n return;\n }\n\n event.preventDefault();\n this.nativeFocusableElement.focus();\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /**\n * @deprecated\n * TODO: drop in v4.0 as unused method\n */\n onInputNumberChange(value: number | null): void {\n this.value = value;\n }\n\n /** @deprecated */\n onValueChange(value: string): void {\n this.value = maskitoParseNumber(value, this.numberFormat.decimalSeparator);\n }\n\n decreaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) - this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n increaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) + this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n onKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowUp':\n case 'Up':\n this.increaseValue();\n event.preventDefault();\n break;\n case 'ArrowDown':\n case 'Down':\n this.decreaseValue();\n event.preventDefault();\n break;\n default:\n break;\n }\n }\n\n private safeUpdateValue(newValue: number): void {\n this.value = tuiClamp(newValue, this.computedMin, this.computedMax);\n }\n}\n","<tui-input-number\n decimal=\"never\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [prefix]=\"prefix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n (keydown)=\"onKeydown($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-input-number>\n<ng-container *ngIf=\"!buttonsHidden\">\n <ng-container *ngIf=\"minusTexts$ | async as texts\">\n <section class=\"t-buttons\">\n <button\n automation-id=\"tui-input-count__plus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_plus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"plusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconUp\"\n [title]=\"texts[0]\"\n (click)=\"increaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, plusButtonDisabled)\"\n ></button>\n <button\n automation-id=\"tui-input-count__minus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_minus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"minusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconDown\"\n [title]=\"texts[1]\"\n (click)=\"decreaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, minusButtonDisabled)\"\n ></button>\n </section>\n </ng-container>\n</ng-container>\n","import {AfterViewInit, Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCountComponent} from './input-count.component';\n\n@Directive({\n selector: 'tui-input-count',\n providers: [tuiAsTextfieldHost(TuiInputCountDirective)],\n})\nexport class TuiInputCountDirective\n extends AbstractTuiTextfieldHost<TuiInputCountComponent>\n implements AfterViewInit\n{\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n ngAfterViewInit(): void {\n if (this.host.nativeFocusableElement) {\n const {nativeFocusableElement} = this.host;\n\n nativeFocusableElement.autocomplete = 'off';\n nativeFocusableElement.inputMode = 'numeric';\n nativeFocusableElement.maxLength =\n nativeFocusableElement.maxLength > -1\n ? nativeFocusableElement.maxLength\n : 18;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiInputNumberModule} from '@taiga-ui/kit/components/input-number';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\n\nimport {TuiInputCountComponent} from './input-count.component';\nimport {TuiInputCountDirective} from './input-count.directive';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n TuiInputNumberModule,\n ],\n declarations: [TuiInputCountComponent, TuiInputCountDirective],\n exports: [TuiInputCountComponent, TuiInputCountDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCountModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAkBa,MAAA,+BAA+B,GAAyB;AACjE,IAAA,KAAK,EAA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4BAA4B;wBAC5B,sBAAsB;wBACtB,oBAAoB;AACvB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,CAAC;AACnF,iBAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-count.js","sources":["../../../projects/kit/components/input-count/input-count.options.ts","../../../projects/kit/components/input-count/input-count.component.ts","../../../projects/kit/components/input-count/input-count.template.html","../../../projects/kit/components/input-count/input-count.directive.ts","../../../projects/kit/components/input-count/input-count.module.ts","../../../projects/kit/components/input-count/taiga-ui-kit-components-input-count.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCountOptions {\n readonly appearance: string;\n readonly hideButtons: boolean;\n readonly icons: Readonly<{\n down: PolymorpheusContent<Record<string, unknown>>;\n up: PolymorpheusContent<Record<string, unknown>>;\n }>;\n readonly max: number;\n readonly min: number;\n readonly postfix: string;\n readonly step: number;\n}\n\n/** Default values for the input count options. */\nexport const TUI_INPUT_COUNT_DEFAULT_OPTIONS: TuiInputCountOptions = {\n icons: {\n up: `tuiIconPlus`,\n down: `tuiIconMinus`,\n },\n appearance: `textfield`,\n hideButtons: false,\n min: 0,\n max: Number.MAX_SAFE_INTEGER,\n step: 1,\n postfix: ``,\n};\n\n/**\n * Default parameters for input count component\n */\nexport const TUI_INPUT_COUNT_OPTIONS = tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);\n\nexport function tuiInputCountOptionsProvider(\n options: Partial<TuiInputCountOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COUNT_OPTIONS,\n options,\n TUI_INPUT_COUNT_DEFAULT_OPTIONS,\n );\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {maskitoParseNumber} from '@maskito/kit';\nimport {\n AbstractTuiNullableControl,\n TUI_IS_MOBILE,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiClamp,\n TuiFocusableElementAccessor,\n tuiIsNativeFocused,\n tuiIsPresent,\n} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiNumberFormatSettings,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number';\nimport {TUI_PLUS_MINUS_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_INPUT_COUNT_OPTIONS, TuiInputCountOptions} from './input-count.options';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@Component({\n selector: 'tui-input-count',\n templateUrl: './input-count.template.html',\n styleUrls: ['./input-count.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCountComponent),\n tuiAsControl(TuiInputCountComponent),\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputCountComponent\n extends AbstractTuiNullableControl<number>\n implements TuiWithOptionalMinMax<number>, TuiFocusableElementAccessor\n{\n @ViewChild(TuiInputNumberComponent)\n private readonly inputNumber?: TuiInputNumberComponent;\n\n @Input()\n step = this.options.step;\n\n @Input()\n min: number | null = this.options.min;\n\n @Input()\n max: number | null = this.options.max;\n\n @Input()\n hideButtons = this.options.hideButtons;\n\n /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n prefix = '';\n\n /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n postfix = this.options.postfix;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n private readonly textfieldController: TuiTextfieldController,\n @Inject(TUI_PLUS_MINUS_TEXTS)\n readonly minusTexts$: Observable<[string, string]>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_INPUT_COUNT_OPTIONS)\n readonly options: TuiInputCountOptions,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: TuiNumberFormatSettings,\n ) {\n super(control, cdr);\n }\n\n get computedMin(): number {\n return this.min ?? this.options.min;\n }\n\n get computedMax(): number {\n return this.max ?? this.options.max;\n }\n\n @HostBinding('class._hide-buttons')\n get buttonsHidden(): boolean {\n return this.hideButtons || this.textfieldController.appearance === 'table';\n }\n\n get iconUp(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.up;\n }\n\n get iconDown(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.down;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.inputNumber || this.computedDisabled\n ? null\n : this.inputNumber.nativeFocusableElement;\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldController.size;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocused(this.nativeFocusableElement);\n }\n\n get minusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value <= this.computedMin)\n );\n }\n\n get plusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value >= this.computedMax)\n );\n }\n\n onButtonMouseDown(event: MouseEvent, disabled: boolean = false): void {\n if (disabled || !this.nativeFocusableElement || this.isMobile) {\n return;\n }\n\n event.preventDefault();\n this.nativeFocusableElement.focus();\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /**\n * @deprecated\n * TODO: drop in v4.0 as unused method\n */\n onInputNumberChange(value: number | null): void {\n this.value = value;\n }\n\n /** @deprecated */\n onValueChange(value: string): void {\n this.value = maskitoParseNumber(value, this.numberFormat.decimalSeparator);\n }\n\n decreaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) - this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n increaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) + this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n onKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowUp':\n case 'Up':\n this.increaseValue();\n event.preventDefault();\n break;\n case 'ArrowDown':\n case 'Down':\n this.decreaseValue();\n event.preventDefault();\n break;\n default:\n break;\n }\n }\n\n private safeUpdateValue(newValue: number): void {\n this.value = tuiClamp(newValue, this.computedMin, this.computedMax);\n }\n}\n","<tui-input-number\n decimal=\"never\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [prefix]=\"prefix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n (keydown)=\"onKeydown($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-input-number>\n<ng-container *ngIf=\"!buttonsHidden\">\n <ng-container *ngIf=\"minusTexts$ | async as texts\">\n <section class=\"t-buttons\">\n <button\n automation-id=\"tui-input-count__plus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_plus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"plusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconUp\"\n [title]=\"texts[0]\"\n (click)=\"increaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, plusButtonDisabled)\"\n ></button>\n <button\n automation-id=\"tui-input-count__minus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_minus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"minusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconDown\"\n [title]=\"texts[1]\"\n (click)=\"decreaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, minusButtonDisabled)\"\n ></button>\n </section>\n </ng-container>\n</ng-container>\n","import {AfterViewInit, Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCountComponent} from './input-count.component';\n\n@Directive({\n selector: 'tui-input-count',\n providers: [tuiAsTextfieldHost(TuiInputCountDirective)],\n})\nexport class TuiInputCountDirective\n extends AbstractTuiTextfieldHost<TuiInputCountComponent>\n implements AfterViewInit\n{\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n ngAfterViewInit(): void {\n if (this.host.nativeFocusableElement) {\n const {nativeFocusableElement} = this.host;\n\n nativeFocusableElement.autocomplete = 'off';\n nativeFocusableElement.inputMode = 'numeric';\n nativeFocusableElement.maxLength =\n nativeFocusableElement.maxLength > -1\n ? nativeFocusableElement.maxLength\n : 18;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiInputNumberModule} from '@taiga-ui/kit/components/input-number';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\n\nimport {TuiInputCountComponent} from './input-count.component';\nimport {TuiInputCountDirective} from './input-count.directive';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n TuiInputNumberModule,\n ],\n declarations: [TuiInputCountComponent, TuiInputCountDirective],\n exports: [TuiInputCountComponent, TuiInputCountDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCountModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA;AACa,MAAA,+BAA+B,GAAyB;AACjE,IAAA,KAAK,EAAE;AACH,QAAA,EAAE,EAAE,CAAa,WAAA,CAAA;AACjB,QAAA,IAAI,EAAE,CAAc,YAAA,CAAA;AACvB,KAAA;AACD,IAAA,UAAU,EAAE,CAAW,SAAA,CAAA;AACvB,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,MAAM,CAAC,gBAAgB;AAC5B,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,OAAO,EAAE,CAAE,CAAA;EACb;AAEF;;AAEG;MACU,uBAAuB,GAAG,cAAc,CAAC,+BAA+B,EAAE;AAEjF,SAAU,4BAA4B,CACxC,OAAsC,EAAA;IAEtC,OAAO,iBAAiB,CACpB,uBAAuB,EACvB,OAAO,EACP,+BAA+B,CAClC,CAAC;AACN;;ACJA;;AAEG;AAYG,MAAO,sBACT,SAAQ,0BAAkC,CAAA;AA0B1C,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAEhC,mBAA2C,EAEnD,WAAyC,EACV,QAAiB,EAEhD,OAA6B,EAErB,YAAqC,EAAA;AAEtD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QATH,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAwB;Q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,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEtE,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAZnB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,WAAW;YACX,eAAe;YACf,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB;YACtB,oBAAoB;AACvB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,eAAe;wBACf,2BAA2B;wBAC3B,4BAA4B;wBAC5B,sBAAsB;wBACtB,oBAAoB;AACvB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,CAAC;AACnF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
@@ -0,0 +1,335 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectorRef, Injector, Component, ChangeDetectionStrategy, Optional, Self, Inject, ViewChild, Input, HostBinding, HostListener, NgModule } from '@angular/core';
3
+ import * as i4 from '@angular/forms';
4
+ import { NgControl, FormsModule } from '@angular/forms';
5
+ import { maskitoDateOptionsGenerator } from '@maskito/kit';
6
+ import * as i6 from '@taiga-ui/cdk';
7
+ import { AbstractTuiMultipleControl, ALWAYS_FALSE_HANDLER, TuiMonth, changeDateSeparator, tuiIsString, TuiDay, tuiDateClamp, TUI_IS_MOBILE, TUI_DATE_FORMAT, TUI_DATE_SEPARATOR, tuiAsFocusableItemAccessor, tuiAsControl, TuiMapperPipeModule } from '@taiga-ui/cdk';
8
+ import * as i1 from '@taiga-ui/core';
9
+ import { TUI_DEFAULT_MARKER_HANDLER, TuiDialogService, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiWrapperModule, TuiCalendarModule, TuiSvgModule, TuiLinkModule, TuiHostedDropdownModule, TuiTextfieldControllerModule, TuiPrimitiveTextfieldModule } from '@taiga-ui/core';
10
+ import * as i2 from '@taiga-ui/kit/components/input-tag';
11
+ import { TuiInputTagComponent, TuiInputTagModule } from '@taiga-ui/kit/components/input-tag';
12
+ import { TUI_MOBILE_CALENDAR, TUI_DATE_TEXTS, TUI_DATE_VALUE_TRANSFORMER, TUI_INPUT_DATE_OPTIONS, TUI_DONE_WORD, tuiDateStreamWithTransformer } from '@taiga-ui/kit/tokens';
13
+ import { tuiImmutableUpdateInputDateMulti } from '@taiga-ui/kit/utils';
14
+ import * as i5 from '@tinkoff/ng-polymorpheus';
15
+ import { PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
16
+ import { map, takeUntil } from 'rxjs/operators';
17
+ import * as i3 from '@maskito/angular';
18
+ import { MaskitoModule } from '@maskito/angular';
19
+ import * as i7 from '@angular/common';
20
+ import { CommonModule } from '@angular/common';
21
+ import * as i8 from 'rxjs';
22
+
23
+ class TuiInputDateMultiComponent extends AbstractTuiMultipleControl {
24
+ constructor(control, cdr, injector, isMobile, dialogs, mobileCalendar, dateFormat, dateSeparator, dateTexts$, valueTransformer, options, textfieldSize, doneWord$) {
25
+ var _a, _b;
26
+ super(control, cdr, valueTransformer);
27
+ this.injector = injector;
28
+ this.isMobile = isMobile;
29
+ this.dialogs = dialogs;
30
+ this.mobileCalendar = mobileCalendar;
31
+ this.dateFormat = dateFormat;
32
+ this.dateSeparator = dateSeparator;
33
+ this.dateTexts$ = dateTexts$;
34
+ this.valueTransformer = valueTransformer;
35
+ this.options = options;
36
+ this.textfieldSize = textfieldSize;
37
+ this.doneWord$ = doneWord$;
38
+ this.month = null;
39
+ this.min = this.options.min;
40
+ this.max = this.options.max;
41
+ this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
42
+ this.markerHandler = TUI_DEFAULT_MARKER_HANDLER;
43
+ this.defaultActiveYearMonth = TuiMonth.currentLocal();
44
+ this.expandable = false;
45
+ this.inputHidden = false;
46
+ this.editable = true;
47
+ this.search = '';
48
+ this.placeholder = '';
49
+ this.rows = Infinity;
50
+ this.maskitoOptions = maskitoDateOptionsGenerator({
51
+ mode: 'dd/mm/yyyy',
52
+ separator: '.',
53
+ min: (_a = this.min) === null || _a === void 0 ? void 0 : _a.toLocalNativeDate(),
54
+ max: (_b = this.max) === null || _b === void 0 ? void 0 : _b.toLocalNativeDate(),
55
+ });
56
+ this.open = false;
57
+ this.filler$ = this.dateTexts$.pipe(map(dateTexts => changeDateSeparator(dateTexts[this.dateFormat], this.dateSeparator)));
58
+ this.tagValidator = (tag) => {
59
+ var _a, _b, _c;
60
+ const { year, month, day } = tuiIsString(tag)
61
+ ? TuiDay.parseRawDateString(tag)
62
+ : tag;
63
+ const date = new TuiDay(year, month, day);
64
+ return ((_c = (TuiDay.isValidDay(year, month, day) &&
65
+ ((_a = this.min) === null || _a === void 0 ? void 0 : _a.dayBefore(date)) &&
66
+ ((_b = this.max) === null || _b === void 0 ? void 0 : _b.dayAfter(date)))) !== null && _c !== void 0 ? _c : false);
67
+ };
68
+ this.disabledItemHandlerWrapper = handler => stringifiable => tuiIsString(stringifiable) || handler(stringifiable.item);
69
+ }
70
+ onClick() {
71
+ if (!this.isMobile) {
72
+ this.open = !this.open;
73
+ }
74
+ }
75
+ get size() {
76
+ return this.textfieldSize.size;
77
+ }
78
+ get nativeDropdownMode() {
79
+ return this.isMobile && !this.editable;
80
+ }
81
+ get computedMin() {
82
+ var _a;
83
+ return (_a = this.min) !== null && _a !== void 0 ? _a : this.options.min;
84
+ }
85
+ get computedMax() {
86
+ var _a;
87
+ return (_a = this.max) !== null && _a !== void 0 ? _a : this.options.max;
88
+ }
89
+ get nativeFocusableElement() {
90
+ var _a;
91
+ return ((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) || null;
92
+ }
93
+ get focused() {
94
+ var _a;
95
+ return !!((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.focused);
96
+ }
97
+ get computedMobile() {
98
+ return this.isMobile && !!this.mobileCalendar;
99
+ }
100
+ get calendarIcon() {
101
+ return this.options.icon;
102
+ }
103
+ get computedActiveYearMonth() {
104
+ return (this.month ||
105
+ this.value[this.value.length - 1] ||
106
+ tuiDateClamp(this.defaultActiveYearMonth, this.computedMin, this.computedMax));
107
+ }
108
+ get canOpen() {
109
+ return this.interactive && !this.computedMobile;
110
+ }
111
+ onIconClick() {
112
+ if (!this.computedMobile || !this.mobileCalendar) {
113
+ return;
114
+ }
115
+ this.dialogs
116
+ .open(new PolymorpheusComponent(this.mobileCalendar, this.injector), {
117
+ size: 'fullscreen',
118
+ closeable: false,
119
+ data: {
120
+ single: false,
121
+ min: this.min,
122
+ max: this.max,
123
+ disabledItemHandler: this.disabledItemHandler,
124
+ },
125
+ })
126
+ .pipe(takeUntil(this.destroy$))
127
+ .subscribe(value => {
128
+ this.value = value;
129
+ });
130
+ }
131
+ onEnter(search) {
132
+ if (!this.tagValidator(search)) {
133
+ return;
134
+ }
135
+ this.value = tuiImmutableUpdateInputDateMulti(this.value, TuiDay.normalizeParse(search));
136
+ if (this.inputTag) {
137
+ this.inputTag.search = '';
138
+ }
139
+ this.done();
140
+ }
141
+ onValueChange(value) {
142
+ var _a;
143
+ (_a = this.control) === null || _a === void 0 ? void 0 : _a.updateValueAndValidity({ emitEvent: false });
144
+ if (!value.length) {
145
+ this.onOpenChange(true);
146
+ }
147
+ this.value = value;
148
+ }
149
+ onDayClick(value) {
150
+ this.value = tuiImmutableUpdateInputDateMulti(this.value, value);
151
+ }
152
+ done() {
153
+ this.open = false;
154
+ }
155
+ onMonthChange(month) {
156
+ this.month = month;
157
+ }
158
+ onOpenChange(open) {
159
+ this.open = open;
160
+ }
161
+ onFocused(focused) {
162
+ this.updateFocused(focused);
163
+ }
164
+ setDisabledState() {
165
+ super.setDisabledState();
166
+ this.open = false;
167
+ }
168
+ }
169
+ TuiInputDateMultiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: Injector }, { token: TUI_IS_MOBILE }, { token: TuiDialogService }, { token: TUI_MOBILE_CALENDAR, optional: true }, { token: TUI_DATE_FORMAT }, { token: TUI_DATE_SEPARATOR }, { token: TUI_DATE_TEXTS }, { token: TUI_DATE_VALUE_TRANSFORMER, optional: true }, { token: TUI_INPUT_DATE_OPTIONS }, { token: TUI_TEXTFIELD_SIZE }, { token: TUI_DONE_WORD }], target: i0.ɵɵFactoryTarget.Component });
170
+ TuiInputDateMultiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputDateMultiComponent, selector: "tui-input-date[multiple]", inputs: { min: "min", max: "max", disabledItemHandler: "disabledItemHandler", markerHandler: "markerHandler", defaultActiveYearMonth: "defaultActiveYearMonth", expandable: "expandable", inputHidden: "inputHidden", editable: "editable", search: "search", placeholder: "placeholder", rows: "rows", tagValidator: "tagValidator" }, host: { listeners: { "click": "onClick()" }, properties: { "class._editable": "this.editable", "attr.data-size": "this.size" } }, providers: [
171
+ tuiAsFocusableItemAccessor(TuiInputDateMultiComponent),
172
+ tuiAsControl(TuiInputDateMultiComponent),
173
+ tuiDateStreamWithTransformer(TUI_DATE_VALUE_TRANSFORMER),
174
+ ], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }, { propertyName: "inputTag", first: true, predicate: TuiInputTagComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"dropdown\"\n [open]=\"open && canOpen\"\n (openChange)=\"onOpenChange($event)\"\n>\n <tui-input-tag\n #inputTag\n class=\"t-input\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [editable]=\"editable\"\n [expandable]=\"expandable\"\n [inputHidden]=\"inputHidden\"\n [maskito]=\"maskitoOptions\"\n [nativeId]=\"nativeId\"\n [ngModel]=\"value\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [removable]=\"!nativeDropdownMode\"\n [rows]=\"rows\"\n [tagValidator]=\"tagValidator\"\n [tuiTextfieldFiller]=\"(filler$ | async) || ''\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n (keydown.enter)=\"onEnter(inputTag.search || '')\"\n (ngModelChange)=\"onValueChange($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n </tui-input-tag>\n\n <ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [class.t-icon]=\"!computedDisabled\"\n [src]=\"src\"\n (click)=\"onIconClick()\"\n ></tui-svg>\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [month]=\"computedActiveYearMonth\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onMonthChange($event)\"\n (mousedown.silent.prevent)=\"(0)\"\n ></tui-calendar>\n <div\n class=\"t-button\"\n (mousedown.silent.prevent)=\"(0)\"\n >\n <button\n tuiLink\n type=\"button\"\n (click)=\"done()\"\n >\n {{ doneWord$ | async }}\n </button>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-icon{pointer-events:auto}.t-button{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-button button{flex:1;text-align:center}.t-native-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}\n"], components: [{ type: i1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i2.TuiInputTagComponent, selector: "tui-input-tag", inputs: ["separator", "search", "editable", "tagValidator", "expandable", "rows", "inputHidden", "uniqueTags", "maxLength", "placeholder", "removable", "disabledItemHandler", "pseudoFocused"], outputs: ["searchChange"] }, { type: i1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1.TuiCalendarComponent, selector: "tui-calendar", inputs: ["month", "disabledItemHandler", "min", "max", "minViewedMonth", "maxViewedMonth", "hoveredItem", "showAdjacent", "markerHandler", "value"], outputs: ["dayClick", "monthChange", "hoveredItemChange"] }, { type: i1.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }], directives: [{ type: i3.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i5.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], pipes: { "tuiMapper": i6.TuiMapperPipe, "async": i7.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiComponent, decorators: [{
176
+ type: Component,
177
+ args: [{
178
+ selector: 'tui-input-date[multiple]',
179
+ templateUrl: './input-date-multi.template.html',
180
+ styleUrls: ['../input-date/input-date.style.less'],
181
+ changeDetection: ChangeDetectionStrategy.OnPush,
182
+ providers: [
183
+ tuiAsFocusableItemAccessor(TuiInputDateMultiComponent),
184
+ tuiAsControl(TuiInputDateMultiComponent),
185
+ tuiDateStreamWithTransformer(TUI_DATE_VALUE_TRANSFORMER),
186
+ ],
187
+ }]
188
+ }], ctorParameters: function () { return [{ type: i4.NgControl, decorators: [{
189
+ type: Optional
190
+ }, {
191
+ type: Self
192
+ }, {
193
+ type: Inject,
194
+ args: [NgControl]
195
+ }] }, { type: i0.ChangeDetectorRef, decorators: [{
196
+ type: Inject,
197
+ args: [ChangeDetectorRef]
198
+ }] }, { type: i0.Injector, decorators: [{
199
+ type: Inject,
200
+ args: [Injector]
201
+ }] }, { type: undefined, decorators: [{
202
+ type: Inject,
203
+ args: [TUI_IS_MOBILE]
204
+ }] }, { type: i1.TuiDialogService, decorators: [{
205
+ type: Inject,
206
+ args: [TuiDialogService]
207
+ }] }, { type: i0.Type, decorators: [{
208
+ type: Optional
209
+ }, {
210
+ type: Inject,
211
+ args: [TUI_MOBILE_CALENDAR]
212
+ }] }, { type: undefined, decorators: [{
213
+ type: Inject,
214
+ args: [TUI_DATE_FORMAT]
215
+ }] }, { type: undefined, decorators: [{
216
+ type: Inject,
217
+ args: [TUI_DATE_SEPARATOR]
218
+ }] }, { type: i8.Observable, decorators: [{
219
+ type: Inject,
220
+ args: [TUI_DATE_TEXTS]
221
+ }] }, { type: i6.AbstractTuiValueTransformer, decorators: [{
222
+ type: Optional
223
+ }, {
224
+ type: Inject,
225
+ args: [TUI_DATE_VALUE_TRANSFORMER]
226
+ }] }, { type: undefined, decorators: [{
227
+ type: Inject,
228
+ args: [TUI_INPUT_DATE_OPTIONS]
229
+ }] }, { type: i1.TuiTextfieldSizeDirective, decorators: [{
230
+ type: Inject,
231
+ args: [TUI_TEXTFIELD_SIZE]
232
+ }] }, { type: i8.Observable, decorators: [{
233
+ type: Inject,
234
+ args: [TUI_DONE_WORD]
235
+ }] }]; }, propDecorators: { textfield: [{
236
+ type: ViewChild,
237
+ args: [TuiPrimitiveTextfieldComponent]
238
+ }], inputTag: [{
239
+ type: ViewChild,
240
+ args: [TuiInputTagComponent]
241
+ }], min: [{
242
+ type: Input
243
+ }], max: [{
244
+ type: Input
245
+ }], disabledItemHandler: [{
246
+ type: Input
247
+ }], markerHandler: [{
248
+ type: Input
249
+ }], defaultActiveYearMonth: [{
250
+ type: Input
251
+ }], expandable: [{
252
+ type: Input
253
+ }], inputHidden: [{
254
+ type: Input
255
+ }], editable: [{
256
+ type: Input
257
+ }, {
258
+ type: HostBinding,
259
+ args: ['class._editable']
260
+ }], search: [{
261
+ type: Input
262
+ }], placeholder: [{
263
+ type: Input
264
+ }], rows: [{
265
+ type: Input
266
+ }], tagValidator: [{
267
+ type: Input
268
+ }], onClick: [{
269
+ type: HostListener,
270
+ args: ['click']
271
+ }], size: [{
272
+ type: HostBinding,
273
+ args: ['attr.data-size']
274
+ }] } });
275
+
276
+ class TuiInputDateMultiModule {
277
+ }
278
+ TuiInputDateMultiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
279
+ TuiInputDateMultiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, declarations: [TuiInputDateMultiComponent], imports: [CommonModule,
280
+ MaskitoModule,
281
+ PolymorpheusModule,
282
+ TuiWrapperModule,
283
+ TuiCalendarModule,
284
+ TuiSvgModule,
285
+ TuiLinkModule,
286
+ TuiInputTagModule,
287
+ FormsModule,
288
+ TuiMapperPipeModule,
289
+ TuiHostedDropdownModule,
290
+ TuiTextfieldControllerModule,
291
+ TuiPrimitiveTextfieldModule], exports: [TuiInputDateMultiComponent] });
292
+ TuiInputDateMultiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, imports: [[
293
+ CommonModule,
294
+ MaskitoModule,
295
+ PolymorpheusModule,
296
+ TuiWrapperModule,
297
+ TuiCalendarModule,
298
+ TuiSvgModule,
299
+ TuiLinkModule,
300
+ TuiInputTagModule,
301
+ FormsModule,
302
+ TuiMapperPipeModule,
303
+ TuiHostedDropdownModule,
304
+ TuiTextfieldControllerModule,
305
+ TuiPrimitiveTextfieldModule,
306
+ ]] });
307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, decorators: [{
308
+ type: NgModule,
309
+ args: [{
310
+ imports: [
311
+ CommonModule,
312
+ MaskitoModule,
313
+ PolymorpheusModule,
314
+ TuiWrapperModule,
315
+ TuiCalendarModule,
316
+ TuiSvgModule,
317
+ TuiLinkModule,
318
+ TuiInputTagModule,
319
+ FormsModule,
320
+ TuiMapperPipeModule,
321
+ TuiHostedDropdownModule,
322
+ TuiTextfieldControllerModule,
323
+ TuiPrimitiveTextfieldModule,
324
+ ],
325
+ declarations: [TuiInputDateMultiComponent],
326
+ exports: [TuiInputDateMultiComponent],
327
+ }]
328
+ }] });
329
+
330
+ /**
331
+ * Generated bundle index. Do not edit.
332
+ */
333
+
334
+ export { TuiInputDateMultiComponent, TuiInputDateMultiModule };
335
+ //# sourceMappingURL=taiga-ui-kit-components-input-date-multi.js.map