@taiga-ui/kit 4.52.0-canary.6be767f → 4.52.0-canary.6de148b

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 (343) hide show
  1. package/README.md +1 -1
  2. package/components/badge/badge.options.d.ts +1 -3
  3. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  4. package/components/block/block.options.d.ts +1 -3
  5. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  6. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  7. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  8. package/components/chip/chip.options.d.ts +1 -3
  9. package/components/combo-box/combo-box.d.ts +2 -0
  10. package/components/combo-box/combo-box.directive.d.ts +5 -5
  11. package/components/combo-box/index.d.ts +1 -0
  12. package/components/confirm/confirm.component.d.ts +5 -4
  13. package/components/confirm/confirm.service.d.ts +1 -1
  14. package/components/copy/copy.component.d.ts +2 -2
  15. package/components/copy/copy.directive.d.ts +3 -4
  16. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  17. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  18. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  19. package/components/data-list-wrapper/index.d.ts +1 -1
  20. package/components/files/file/file.options.d.ts +1 -1
  21. package/components/files/files/files.component.d.ts +2 -2
  22. package/components/files/input-files/input-files.options.d.ts +1 -3
  23. package/components/input-chip/input-chip.component.d.ts +9 -8
  24. package/components/input-chip/input-chip.d.ts +1 -1
  25. package/components/input-chip/input-chip.directive.d.ts +7 -12
  26. package/components/input-color/index.d.ts +1 -0
  27. package/components/input-color/input-color.component.d.ts +4 -4
  28. package/components/input-color/input-color.d.ts +2 -0
  29. package/components/input-date/input-date.d.ts +1 -1
  30. package/components/input-date/input-date.directive.d.ts +9 -11
  31. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  32. package/components/input-date-multi/input-date-multi.directive.d.ts +9 -13
  33. package/components/input-date-range/input-date-range.d.ts +1 -1
  34. package/components/input-date-range/input-date-range.directive.d.ts +3 -3
  35. package/components/input-date-time/input-date-time.d.ts +1 -1
  36. package/components/input-date-time/input-date-time.directive.d.ts +3 -3
  37. package/components/input-month/input-month.d.ts +1 -1
  38. package/components/input-month/input-month.directive.d.ts +5 -4
  39. package/components/input-month-range/input-month-range.d.ts +1 -1
  40. package/components/input-month-range/input-month-range.directive.d.ts +5 -4
  41. package/components/input-number/input-number.d.ts +1 -1
  42. package/components/input-number/input-number.directive.d.ts +7 -11
  43. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  44. package/components/input-phone/index.d.ts +1 -0
  45. package/components/input-phone/input-phone.d.ts +2 -0
  46. package/components/input-phone/input-phone.directive.d.ts +7 -7
  47. package/components/input-phone-international/index.d.ts +1 -0
  48. package/components/input-phone-international/input-phone-international.component.d.ts +8 -13
  49. package/components/input-phone-international/input-phone-international.d.ts +2 -0
  50. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  51. package/components/input-pin/index.d.ts +1 -0
  52. package/components/input-pin/input-pin.component.d.ts +4 -4
  53. package/components/input-pin/input-pin.d.ts +2 -0
  54. package/components/input-range/input-range.component.d.ts +9 -41
  55. package/components/input-slider/input-slider.d.ts +1 -1
  56. package/components/input-slider/input-slider.directive.d.ts +1 -1
  57. package/components/input-time/input-time.component.d.ts +1 -3
  58. package/components/input-time/input-time.d.ts +1 -1
  59. package/components/input-time/input-time.directive.d.ts +8 -10
  60. package/components/input-year/input-year.d.ts +1 -1
  61. package/components/input-year/input-year.directive.d.ts +5 -5
  62. package/components/like/like.options.d.ts +1 -1
  63. package/components/line-clamp/line-clamp-box.component.d.ts +1 -1
  64. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  65. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  66. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +5 -7
  67. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  68. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  69. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  70. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  71. package/components/pagination/index.d.ts +1 -0
  72. package/components/pagination/pagination.component.d.ts +3 -2
  73. package/components/pagination/pagination.options.d.ts +10 -0
  74. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  75. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  76. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  77. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  78. package/components/preview/preview.component.d.ts +1 -1
  79. package/components/preview/preview.d.ts +2 -1
  80. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  81. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  82. package/components/progress/progress.options.d.ts +1 -3
  83. package/components/push/push-alert.component.d.ts +4 -3
  84. package/components/push/push.component.d.ts +1 -1
  85. package/components/push/push.directive.d.ts +4 -6
  86. package/components/push/push.options.d.ts +5 -8
  87. package/components/push/push.service.d.ts +6 -2
  88. package/components/radio-list/radio-list.component.d.ts +5 -3
  89. package/components/range/range-change.directive.d.ts +1 -2
  90. package/components/range/range.component.d.ts +16 -19
  91. package/components/rating/rating.component.d.ts +1 -1
  92. package/components/rating/rating.options.d.ts +1 -3
  93. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  94. package/components/segmented/segmented.component.d.ts +4 -6
  95. package/components/segmented/segmented.directive.d.ts +6 -7
  96. package/components/select/native-select/native-select.component.d.ts +7 -8
  97. package/components/select/select.d.ts +1 -1
  98. package/components/select/select.directive.d.ts +4 -3
  99. package/components/slider/slider.options.d.ts +1 -6
  100. package/components/stepper/step.component.d.ts +6 -8
  101. package/components/stepper/stepper.component.d.ts +6 -11
  102. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  103. package/components/tabs/tabs.options.d.ts +1 -6
  104. package/components/textarea/index.d.ts +2 -1
  105. package/components/textarea/textarea.component.d.ts +4 -4
  106. package/components/textarea/textarea.d.ts +3 -0
  107. package/components/textarea/textarea.directive.d.ts +13 -0
  108. package/components/toast/toast.component.d.ts +4 -3
  109. package/components/toast/toast.options.d.ts +9 -7
  110. package/components/toast/toast.service.d.ts +10 -9
  111. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  112. package/components/tree/misc/tree.constants.d.ts +0 -3
  113. package/components/tree/misc/tree.tokens.d.ts +1 -6
  114. package/directives/button-close/button-close.directive.d.ts +2 -1
  115. package/directives/button-select/button-select.directive.d.ts +3 -2
  116. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  117. package/directives/fade/fade.directive.d.ts +1 -2
  118. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  119. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  120. package/directives/index.d.ts +0 -1
  121. package/directives/password/password.directive.d.ts +1 -1
  122. package/directives/tooltip/tooltip.directive.d.ts +1 -1
  123. package/fesm2022/taiga-ui-kit-components-accordion.mjs +1 -2
  124. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-avatar.mjs +3 -3
  127. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -9
  129. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-badge.mjs +6 -10
  131. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +0 -1
  133. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-block.mjs +4 -8
  135. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +9 -15
  137. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  139. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +4 -15
  141. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +4 -5
  143. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-carousel.mjs +3 -9
  145. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +2 -3
  147. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-chip.mjs +6 -10
  149. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +34 -32
  151. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-compass.mjs +3 -3
  154. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-confirm.mjs +6 -9
  156. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-copy.mjs +15 -21
  158. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +21 -74
  160. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -1
  163. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-files.mjs +20 -27
  165. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-filter.mjs +1 -1
  167. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +2 -2
  169. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +58 -70
  172. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-input-color.mjs +16 -13
  174. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +30 -48
  176. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +15 -11
  178. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +18 -17
  180. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-input-date.mjs +29 -37
  182. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -3
  184. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +16 -15
  186. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-input-month.mjs +17 -16
  188. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-input-number.mjs +35 -58
  190. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +83 -82
  192. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +24 -23
  194. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +10 -9
  196. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-input-range.mjs +52 -49
  198. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +6 -7
  200. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-input-time.mjs +53 -64
  202. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-input-year.mjs +18 -15
  204. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +2 -4
  206. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-like.mjs +1 -1
  208. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +28 -70
  210. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-message.mjs +0 -1
  212. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +24 -37
  214. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +31 -20
  216. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-pager.mjs +4 -6
  218. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-pagination.mjs +20 -11
  220. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-pin.mjs +2 -2
  222. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-preview.mjs +39 -31
  224. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-progress.mjs +41 -33
  226. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-pulse.mjs +1 -1
  228. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-push.mjs +42 -50
  230. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +6 -6
  232. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-radio.mjs +3 -4
  234. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-range.mjs +35 -70
  236. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -9
  238. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +8 -4
  240. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-segmented.mjs +28 -55
  242. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-select.mjs +66 -55
  244. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-slider.mjs +10 -20
  246. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-stepper.mjs +41 -75
  250. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-switch.mjs +2 -3
  252. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-tabs.mjs +11 -19
  254. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-textarea.mjs +48 -60
  256. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-tiles.mjs +2 -3
  258. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-toast.mjs +44 -46
  260. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-tree.mjs +36 -40
  262. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +13 -5
  264. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  266. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +15 -7
  267. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  268. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +3 -2
  269. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  270. package/fesm2022/taiga-ui-kit-directives-connected.mjs +0 -1
  271. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  272. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +23 -51
  273. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  274. package/fesm2022/taiga-ui-kit-directives-fade.mjs +7 -6
  275. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +12 -25
  277. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +0 -1
  279. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-directives-password.mjs +9 -11
  281. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-directives-present.mjs +0 -1
  283. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +6 -6
  288. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +2 -3
  290. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +1 -2
  292. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-directives.mjs +0 -1
  294. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  296. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  297. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +0 -1
  298. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +9 -22
  300. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +31 -0
  302. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  303. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +1 -2
  304. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  306. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  307. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +2 -2
  308. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +0 -1
  310. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +0 -1
  312. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -0
  314. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-tokens.mjs +6 -19
  316. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-utils.mjs +2 -8
  318. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  319. package/package.json +30 -23
  320. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  321. package/pipes/auto-color/index.d.ts +1 -0
  322. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  323. package/pipes/flag/flag.pipe.d.ts +14 -0
  324. package/pipes/flag/index.d.ts +1 -0
  325. package/pipes/index.d.ts +3 -0
  326. package/pipes/initials/index.d.ts +1 -0
  327. package/pipes/initials/initials.pipe.d.ts +7 -0
  328. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  329. package/styles/components/badge.less +1 -0
  330. package/styles/components/chip.less +11 -1
  331. package/tokens/i18n.d.ts +25 -26
  332. package/tokens/items-handlers.d.ts +1 -7
  333. package/tokens/preview-icons.d.ts +1 -3
  334. package/utils/index.d.ts +0 -1
  335. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  336. package/directives/lazy-loading/index.d.ts +0 -2
  337. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  338. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  339. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  340. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  341. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  342. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  343. package/utils/phone.d.ts +0 -3
@@ -1,10 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, computed, effect, signal, untracked, Input, Directive, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
4
- import { tuiDirectiveBinding, changeDateSeparator } from '@taiga-ui/cdk/utils/miscellaneous';
5
- import * as i1 from '@taiga-ui/core/components/textfield';
6
- import { TuiTextfieldComponent, tuiInjectAuxiliary, TuiTextfieldDirective, tuiTextfieldIcon, TuiWithNativePicker, TuiWithTextfield, TuiTextfieldContent } from '@taiga-ui/core/components/textfield';
7
- import { TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT } from '@taiga-ui/core/tokens';
3
+ import { tuiDirectiveBinding, tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
4
+ import * as i1$1 from '@taiga-ui/core/components/textfield';
5
+ import { TuiTextfieldComponent, tuiInjectAuxiliary, tuiTextfieldIcon, TuiWithNativePicker, TuiTextfieldContent, TuiTextfield } from '@taiga-ui/core/components/textfield';
6
+ import { TUI_DATE_FORMAT } from '@taiga-ui/core/tokens';
8
7
  import { TUI_DATE_TEXTS } from '@taiga-ui/kit/tokens';
9
8
  import { identity } from 'rxjs';
10
9
  import { TuiCalendar } from '@taiga-ui/core/components/calendar';
@@ -13,25 +12,26 @@ import * as i4 from '@maskito/angular';
13
12
  import { MaskitoDirective } from '@maskito/angular';
14
13
  import { maskitoDateOptionsGenerator } from '@maskito/kit';
15
14
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
16
- import { TUI_ALLOW_SIGNAL_WRITES } from '@taiga-ui/cdk/constants';
17
15
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
18
16
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
19
17
  import { tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
20
- import * as i2 from '@taiga-ui/core/directives/dropdown';
21
- import { tuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
18
+ import * as i1 from '@taiga-ui/core/components/input';
19
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
22
20
  import * as i3 from '@taiga-ui/core/directives/items-handlers';
23
21
  import { TuiItemsHandlersDirective, TUI_ITEMS_HANDLERS, TuiItemsHandlersValidator } from '@taiga-ui/core/directives/items-handlers';
22
+ import * as i2 from '@taiga-ui/core/portals/dropdown';
23
+ import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/portals/dropdown';
24
24
  import { TuiCalendarRange } from '@taiga-ui/kit/components/calendar-range';
25
25
  import { TuiSelectOption } from '@taiga-ui/kit/components/select';
26
26
  import { tuiMaskito } from '@taiga-ui/kit/utils';
27
- import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
28
27
 
28
+ function changeDateSeparator(dateString, newDateSeparator) {
29
+ return dateString.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);
30
+ }
29
31
  function tuiWithDateFiller(fn = identity) {
30
- const texts = toSignal(inject(TUI_DATE_TEXTS));
31
- const format = toSignal(inject(TUI_DATE_FORMAT), {
32
- initialValue: TUI_DEFAULT_DATE_FORMAT,
33
- });
34
- return tuiDirectiveBinding(TuiTextfieldComponent, 'fillerSetter', computed(() => {
32
+ const texts = inject(TUI_DATE_TEXTS);
33
+ const format = inject(TUI_DATE_FORMAT);
34
+ return tuiDirectiveBinding(TuiTextfieldComponent, 'filler', computed(() => {
35
35
  const { mode, separator } = format();
36
36
  const fillersMap = texts() ?? '';
37
37
  const filler = fillersMap && changeDateSeparator(fillersMap[mode], separator);
@@ -47,44 +47,37 @@ const TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW = {
47
47
  };
48
48
  const [TUI_INPUT_DATE_OPTIONS_NEW, tuiInputDateOptionsProviderNew] = tuiCreateOptions(TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);
49
49
 
50
- const TUI_DATE_ADAPTER = {
51
- DMY: 'dd/mm/yyyy',
52
- MDY: 'mm/dd/yyyy',
53
- YMD: 'yyyy/mm/dd',
54
- };
55
50
  class TuiInputDateBase extends TuiControl {
56
51
  constructor() {
57
52
  super(...arguments);
58
53
  this.calendar = tuiInjectAuxiliary((x) => x instanceof TuiCalendar || x instanceof TuiCalendarRange);
59
54
  this.el = tuiInjectElement();
60
- this.textfield = inject(TuiTextfieldDirective);
55
+ this.input = inject(TuiInputDirective);
61
56
  this.filler = tuiWithDateFiller();
62
57
  this.mobile = inject(TUI_IS_MOBILE);
63
- this.open = tuiDropdownOpen();
58
+ this.open = inject(TuiDropdownOpen).open;
64
59
  this.icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);
65
60
  this.handlers = inject(TuiItemsHandlersDirective);
61
+ this.format = inject(TUI_DATE_FORMAT);
66
62
  this.dropdownEnabled = tuiDropdownEnabled(computed(() => !this.native && this.interactive()));
67
63
  this.options = inject(TUI_INPUT_DATE_OPTIONS_NEW);
68
- this.format = toSignal(inject(TUI_DATE_FORMAT), {
69
- initialValue: TUI_DEFAULT_DATE_FORMAT,
70
- });
71
64
  this.valueEffect = effect(() => {
72
65
  const value = this.stringify(this.value()) ||
73
66
  (this.filler().length === this.el.value.length ? '' : this.el.value);
74
- this.textfield.value.set(value);
75
- }, TUI_ALLOW_SIGNAL_WRITES);
67
+ this.input.value.set(value);
68
+ });
76
69
  this.calendarIn = effect(() => {
77
70
  if (this.calendar()) {
78
71
  this.processCalendar(this.calendar());
79
72
  }
80
- }, TUI_ALLOW_SIGNAL_WRITES);
73
+ });
81
74
  this.calendarOut = effect((onCleanup) => {
82
75
  const subscription = this.calendar()?.valueChange.subscribe((value) => this.setDate(value));
83
76
  onCleanup(() => subscription?.unsubscribe());
84
77
  });
85
- this.native = !!inject(TuiWithNativePicker, { optional: true }) && this.mobile;
86
78
  this.min = signal(this.options.min);
87
79
  this.max = signal(this.options.max);
80
+ this.native = !!inject(TuiWithNativePicker, { optional: true }) && this.mobile;
88
81
  }
89
82
  set minSetter(min) {
90
83
  this.min.set(min instanceof TuiDay ? min : this.options.min);
@@ -97,7 +90,7 @@ class TuiInputDateBase extends TuiControl {
97
90
  const changed = untracked(() => value !== this.value());
98
91
  if (changed || reset) {
99
92
  super.writeValue(value);
100
- this.textfield.value.set(this.stringify(this.value()));
93
+ this.input.value.set(this.stringify(this.value()));
101
94
  }
102
95
  }
103
96
  setDate(value) {
@@ -129,7 +122,6 @@ class TuiInputDateBase extends TuiControl {
129
122
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateBase, decorators: [{
130
123
  type: Directive,
131
124
  args: [{
132
- standalone: true,
133
125
  host: {
134
126
  '[attr.inputmode]': 'mobile && open() ? "none" : "numeric"',
135
127
  '[disabled]': 'disabled()',
@@ -150,7 +142,7 @@ class TuiInputDateDirective extends TuiInputDateBase {
150
142
  this.identity = inject(TUI_ITEMS_HANDLERS).identityMatcher.set((a, b) => a.daySame(b));
151
143
  this.mask = tuiMaskito(computed(() => maskitoDateOptionsGenerator({
152
144
  separator: this.format().separator,
153
- mode: TUI_DATE_ADAPTER[this.format().mode],
145
+ mode: this.format().mode,
154
146
  min: this.min().toLocalNativeDate(),
155
147
  max: this.max().toLocalNativeDate(),
156
148
  })));
@@ -166,12 +158,11 @@ class TuiInputDateDirective extends TuiInputDateBase {
166
158
  tuiAsOptionContent(TuiSelectOption),
167
159
  tuiAsControl(TuiInputDateDirective),
168
160
  tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),
169
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i2.TuiDropdownAuto }, { directive: i3.TuiItemsHandlersValidator }, { directive: i4.MaskitoDirective }], ngImport: i0 }); }
161
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiDropdownAuto }, { directive: i3.TuiItemsHandlersValidator }, { directive: i4.MaskitoDirective }], ngImport: i0 }); }
170
162
  }
171
163
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateDirective, decorators: [{
172
164
  type: Directive,
173
165
  args: [{
174
- standalone: true,
175
166
  selector: 'input[tuiInputDate]',
176
167
  providers: [
177
168
  tuiAsOptionContent(TuiSelectOption),
@@ -179,7 +170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
179
170
  tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),
180
171
  ],
181
172
  hostDirectives: [
182
- TuiWithTextfield,
173
+ TuiWithInput,
183
174
  TuiDropdownAuto,
184
175
  TuiItemsHandlersValidator,
185
176
  MaskitoDirective,
@@ -200,14 +191,14 @@ class TuiInputDateComponent {
200
191
  this.host.onChange(new TuiDay(year, month - 1, day));
201
192
  }
202
193
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
203
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputDateComponent, isStandalone: true, selector: "input[tuiInputDate][type=\"date\"]", inputs: { list: "list" }, host: { attributes: { "ngSkipHydration": "true" }, properties: { "attr.list": "null" } }, hostDirectives: [{ directive: i1.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;top:0;left:auto;right:0;bottom:0;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
194
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputDateComponent, isStandalone: true, selector: "input[tuiInputDate][type=\"date\"]", inputs: { list: "list" }, host: { attributes: { "ngSkipHydration": "true" }, properties: { "attr.list": "null" } }, hostDirectives: [{ directive: i1$1.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;inset:0 0 0 auto;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
204
195
  }
205
196
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateComponent, decorators: [{
206
197
  type: Component,
207
198
  args: [{ selector: 'input[tuiInputDate][type="date"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: {
208
199
  ngSkipHydration: 'true',
209
200
  '[attr.list]': 'null',
210
- }, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;top:0;left:auto;right:0;bottom:0;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
201
+ }, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;inset:0 0 0 auto;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
211
202
  }], propDecorators: { list: [{
212
203
  type: Input
213
204
  }] } });
@@ -216,11 +207,12 @@ const TuiInputDate = [
216
207
  TuiInputDateDirective,
217
208
  TuiInputDateComponent,
218
209
  TuiCalendar,
210
+ TuiTextfield,
219
211
  ];
220
212
 
221
213
  /**
222
214
  * Generated bundle index. Do not edit.
223
215
  */
224
216
 
225
- export { TUI_DATE_ADAPTER, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW, TUI_INPUT_DATE_OPTIONS_NEW, TuiInputDate, TuiInputDateBase, TuiInputDateComponent, TuiInputDateDirective, tuiInputDateOptionsProviderNew, tuiWithDateFiller };
217
+ export { TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW, TUI_INPUT_DATE_OPTIONS_NEW, TuiInputDate, TuiInputDateBase, TuiInputDateComponent, TuiInputDateDirective, tuiInputDateOptionsProviderNew, tuiWithDateFiller };
226
218
  //# sourceMappingURL=taiga-ui-kit-components-input-date.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-date.mjs","sources":["../../../projects/kit/components/input-date/date-filler.ts","../../../projects/kit/components/input-date/input-date.options.ts","../../../projects/kit/components/input-date/input-date.directive.ts","../../../projects/kit/components/input-date/input-date.component.ts","../../../projects/kit/components/input-date/input-date.template.html","../../../projects/kit/components/input-date/input-date.ts","../../../projects/kit/components/input-date/taiga-ui-kit-components-input-date.ts"],"sourcesContent":["import {computed, inject, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {\n changeDateSeparator,\n tuiDirectiveBinding,\n} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TUI_DATE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {identity} from 'rxjs';\n\nexport function tuiWithDateFiller(\n fn: (dateFiller: string) => string = identity,\n): Signal<string> {\n const texts = toSignal(inject(TUI_DATE_TEXTS));\n const format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n return tuiDirectiveBinding(\n TuiTextfieldComponent,\n 'fillerSetter',\n computed(() => {\n const {mode, separator} = format();\n const fillersMap = texts() ?? '';\n const filler = fillersMap && changeDateSeparator(fillersMap[mode], separator);\n\n return fn(filler);\n }),\n {},\n );\n}\n","import {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, type TuiDay} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiInputDateOptionsNew {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly max: TuiDay;\n readonly min: TuiDay;\n readonly valueTransformer: TuiValueTransformer<TuiDay | null, any>;\n}\n\nexport const TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW = {\n icon: () => '@tui.calendar',\n min: TUI_FIRST_DAY,\n max: TUI_LAST_DAY,\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n} as const;\n\nexport const [TUI_INPUT_DATE_OPTIONS_NEW, tuiInputDateOptionsProviderNew] =\n tuiCreateOptions<TuiInputDateOptionsNew>(TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoDateMode, maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {\n DATE_FILLER_LENGTH,\n type TuiDateMode,\n TuiDay,\n type TuiDayRange,\n type TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n tuiInjectAuxiliary,\n TuiTextfieldDirective,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n TuiItemsHandlersDirective,\n TuiItemsHandlersValidator,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {tuiWithDateFiller} from './date-filler';\nimport {\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from './input-date.options';\n\nexport const TUI_DATE_ADAPTER: Record<TuiDateMode, MaskitoDateMode> = {\n DMY: 'dd/mm/yyyy',\n MDY: 'mm/dd/yyyy',\n YMD: 'yyyy/mm/dd',\n};\n\n@Directive({\n standalone: true,\n host: {\n '[attr.inputmode]': 'mobile && open() ? \"none\" : \"numeric\"',\n '[disabled]': 'disabled()',\n '(input)': 'onValueChange($event.target.value)',\n '(click.capture.stop)': 'onClick()',\n },\n})\nexport abstract class TuiInputDateBase<\n T extends TuiDay | TuiDayRange | readonly [TuiDay, TuiTime | null],\n> extends TuiControl<T | null> {\n private readonly calendar = tuiInjectAuxiliary<TuiCalendar | TuiCalendarRange>(\n (x) => x instanceof TuiCalendar || x instanceof TuiCalendarRange,\n );\n\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly textfield = inject(TuiTextfieldDirective);\n protected readonly filler = tuiWithDateFiller();\n protected readonly mobile = inject(TUI_IS_MOBILE);\n protected readonly open = tuiDropdownOpen();\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TuiItemsHandlersDirective);\n\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly options: Omit<TuiInputDateOptionsNew, 'valueTransformer'> = inject(\n TUI_INPUT_DATE_OPTIONS_NEW,\n );\n\n protected readonly format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n protected readonly valueEffect = effect(() => {\n const value =\n this.stringify(this.value()) ||\n (this.filler().length === this.el.value.length ? '' : this.el.value);\n\n this.textfield.value.set(value);\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.valueChange.subscribe((value) =>\n this.setDate(value),\n );\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && this.mobile;\n\n public readonly min = signal(this.options.min);\n public readonly max = signal(this.options.max);\n\n protected abstract onValueChange(value: string): void;\n\n @Input('min')\n public set minSetter(min: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.min.set(min instanceof TuiDay ? min : this.options.min);\n }\n\n @Input('max')\n public set maxSetter(max: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.max.set(max instanceof TuiDay ? max : this.options.max);\n }\n\n public override writeValue(value: T | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n this.textfield.value.set(this.stringify(this.value()));\n }\n }\n\n public setDate(value: TuiDay | TuiDayRange | readonly TuiDay[]): void {\n this.onChange(value as T);\n this.open.set(false);\n\n if (!this.el.closest('tui-dropdown')) {\n this.el.blur();\n }\n }\n\n protected processCalendar(calendar: TuiCalendar | TuiCalendarRange): void {\n const value = this.value();\n\n calendar.value = Array.isArray(value) ? value[0] : value;\n calendar.disabledItemHandler =\n this.handlers.disabledItemHandler() as TuiBooleanHandler<\n TuiDay | TuiDayRange\n >;\n calendar.min = this.min();\n calendar.max = this.max();\n }\n\n protected onClick(): void {\n if (!this.mobile && this.dropdownEnabled()) {\n this.open.update((open) => !open);\n }\n }\n\n protected stringify(value: T | null): string {\n return value?.toString(this.format().mode, this.format().separator) ?? '';\n }\n}\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDate]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),\n ],\n hostDirectives: [\n TuiWithTextfield,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n MaskitoDirective,\n ],\n})\nexport class TuiInputDateDirective extends TuiInputDateBase<TuiDay> {\n protected readonly identity = inject<TuiItemsHandlers<TuiDay>>(\n TUI_ITEMS_HANDLERS,\n ).identityMatcher.set((a, b) => a.daySame(b));\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputDateDirective} from './input-date.directive';\n\n@Component({\n selector: 'input[tuiInputDate][type=\"date\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-date.template.html',\n styleUrls: ['./input-date.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {\n ngSkipHydration: 'true',\n '[attr.list]': 'null',\n },\n})\nexport class TuiInputDateComponent {\n protected readonly host = inject(TuiInputDateDirective);\n\n @Input()\n public list: string | null = null;\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0, day = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiDay(year, month - 1, day));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\n\nimport {TuiInputDateComponent} from './input-date.component';\nimport {TuiInputDateDirective} from './input-date.directive';\n\nexport const TuiInputDate = [\n TuiInputDateDirective,\n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AA,IAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC5BlC,uYAaA,EAAA,MAAA,EAAA,CAAA,6TAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIc,mBAAmB,EAAA,QAAA,EAAA,kCAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAWpB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAbjC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kCAAkC,WACnC,CAAC,mBAAmB,CAAC,EAAA,aAAA,EAGf,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,mBAAmB,CAAC,EAC/B,IAAA,EAAA;AACF,wBAAA,eAAe,EAAE,MAAM;AACvB,wBAAA,aAAa,EAAE,MAAM;AACxB,qBAAA,EAAA,QAAA,EAAA,uYAAA,EAAA,MAAA,EAAA,CAAA,6TAAA,CAAA,EAAA;8BAMM,IAAI,EAAA,CAAA;sBADV;;;AE1BQ,MAAA,YAAY,GAAG;IACxB,qBAAqB;IACrB,qBAAqB;IACrB,WAAW;;;ACRf;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-date.mjs","sources":["../../../projects/kit/components/input-date/date-filler.ts","../../../projects/kit/components/input-date/input-date.options.ts","../../../projects/kit/components/input-date/input-date.directive.ts","../../../projects/kit/components/input-date/input-date.component.ts","../../../projects/kit/components/input-date/input-date.template.html","../../../projects/kit/components/input-date/input-date.ts","../../../projects/kit/components/input-date/taiga-ui-kit-components-input-date.ts"],"sourcesContent":["import {computed, inject, type Signal} from '@angular/core';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {TUI_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TUI_DATE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {identity} from 'rxjs';\n\nfunction changeDateSeparator(dateString: string, newDateSeparator: string): string {\n return dateString.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);\n}\n\nexport function tuiWithDateFiller(\n fn: (dateFiller: string) => string = identity,\n): Signal<string> {\n const texts = inject(TUI_DATE_TEXTS);\n const format = inject(TUI_DATE_FORMAT);\n\n return tuiDirectiveBinding(\n TuiTextfieldComponent,\n 'filler',\n computed(() => {\n const {mode, separator} = format();\n const fillersMap = texts() ?? '';\n const filler = fillersMap && changeDateSeparator(fillersMap[mode], separator);\n\n return fn(filler);\n }),\n {},\n );\n}\n","import {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, type TuiDay} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiInputDateOptionsNew {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly max: TuiDay;\n readonly min: TuiDay;\n readonly valueTransformer: TuiValueTransformer<TuiDay | null, any>;\n}\n\nexport const TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW = {\n icon: () => '@tui.calendar',\n min: TUI_FIRST_DAY,\n max: TUI_LAST_DAY,\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n} as const;\n\nexport const [TUI_INPUT_DATE_OPTIONS_NEW, tuiInputDateOptionsProviderNew] =\n tuiCreateOptions<TuiInputDateOptionsNew>(TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_FILLER_LENGTH,\n TuiDay,\n type TuiDayRange,\n type TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n TuiItemsHandlersDirective,\n TuiItemsHandlersValidator,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {tuiWithDateFiller} from './date-filler';\nimport {\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from './input-date.options';\n\n@Directive({\n host: {\n '[attr.inputmode]': 'mobile && open() ? \"none\" : \"numeric\"',\n '[disabled]': 'disabled()',\n '(input)': 'onValueChange($event.target.value)',\n '(click.capture.stop)': 'onClick()',\n },\n})\nexport abstract class TuiInputDateBase<\n T extends TuiDay | TuiDayRange | readonly [TuiDay, TuiTime | null],\n> extends TuiControl<T | null> {\n private readonly calendar = tuiInjectAuxiliary<TuiCalendar | TuiCalendarRange>(\n (x) => x instanceof TuiCalendar || x instanceof TuiCalendarRange,\n );\n\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly input = inject(TuiInputDirective);\n protected readonly filler = tuiWithDateFiller();\n protected readonly mobile = inject(TUI_IS_MOBILE);\n protected readonly open = inject(TuiDropdownOpen).open;\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TuiItemsHandlersDirective);\n protected readonly format = inject(TUI_DATE_FORMAT);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly options: Omit<TuiInputDateOptionsNew, 'valueTransformer'> = inject(\n TUI_INPUT_DATE_OPTIONS_NEW,\n );\n\n protected readonly valueEffect = effect(() => {\n const value =\n this.stringify(this.value()) ||\n (this.filler().length === this.el.value.length ? '' : this.el.value);\n\n this.input.value.set(value);\n });\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.valueChange.subscribe((value) =>\n this.setDate(value),\n );\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly min = signal(this.options.min);\n public readonly max = signal(this.options.max);\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && this.mobile;\n\n protected abstract onValueChange(value: string): void;\n\n @Input('min')\n public set minSetter(min: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.min.set(min instanceof TuiDay ? min : this.options.min);\n }\n\n @Input('max')\n public set maxSetter(max: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.max.set(max instanceof TuiDay ? max : this.options.max);\n }\n\n public override writeValue(value: T | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n this.input.value.set(this.stringify(this.value()));\n }\n }\n\n public setDate(value: TuiDay | TuiDayRange | readonly TuiDay[]): void {\n this.onChange(value as T);\n this.open.set(false);\n\n if (!this.el.closest('tui-dropdown')) {\n this.el.blur();\n }\n }\n\n protected processCalendar(calendar: TuiCalendar | TuiCalendarRange): void {\n const value = this.value();\n\n calendar.value = Array.isArray(value) ? value[0] : value;\n calendar.disabledItemHandler =\n this.handlers.disabledItemHandler() as TuiBooleanHandler<\n TuiDay | TuiDayRange\n >;\n calendar.min = this.min();\n calendar.max = this.max();\n }\n\n protected onClick(): void {\n if (!this.mobile && this.dropdownEnabled()) {\n this.open.update((open) => !open);\n }\n }\n\n protected stringify(value: T | null): string {\n return value?.toString(this.format().mode, this.format().separator) ?? '';\n }\n}\n\n@Directive({\n selector: 'input[tuiInputDate]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),\n ],\n hostDirectives: [\n TuiWithInput,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n MaskitoDirective,\n ],\n})\nexport class TuiInputDateDirective extends TuiInputDateBase<TuiDay> {\n protected readonly identity = inject<TuiItemsHandlers<TuiDay>>(\n TUI_ITEMS_HANDLERS,\n ).identityMatcher.set((a, b) => a.daySame(b));\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: this.format().mode,\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputDateDirective} from './input-date.directive';\n\n@Component({\n selector: 'input[tuiInputDate][type=\"date\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-date.template.html',\n styleUrl: './input-date.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {\n ngSkipHydration: 'true',\n '[attr.list]': 'null',\n },\n})\nexport class TuiInputDateComponent {\n protected readonly host = inject(TuiInputDateDirective);\n\n @Input()\n public list: string | null = null;\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0, day = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiDay(year, month - 1, day));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiTextfield} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputDateComponent} from './input-date.component';\nimport {TuiInputDateDirective} from './input-date.directive';\n\nexport const TuiInputDate = [\n TuiInputDateDirective,\n TuiInputDateComponent,\n TuiCalendar,\n TuiTextfield,\n] as const;\n","/**\n * Generated bundle index.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AAA,EAAA,EAAA,WAAA,EAAA,MAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,IAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC5BlC,uYAaA,EAAA,MAAA,EAAA,CAAA,6SAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIc,mBAAmB,EAAA,QAAA,EAAA,kCAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAWpB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAbjC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kCAAkC,WACnC,CAAC,mBAAmB,CAAC,EAAA,aAAA,EAGf,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,mBAAmB,CAAC,EAAA,IAAA,EAC/B;AACF,wBAAA,eAAe,EAAE,MAAM;AACvB,wBAAA,aAAa,EAAE,MAAM;AACxB,qBAAA,EAAA,QAAA,EAAA,uYAAA,EAAA,MAAA,EAAA,CAAA,6SAAA,CAAA,EAAA;8BAMM,IAAI,EAAA,CAAA;sBADV;;;AEzBE,MAAM,YAAY,GAAG;IACxB,qBAAqB;IACrB,qBAAqB;IACrB,WAAW;IACX,YAAY;;;ACVhB;;AAEG;;;;"}
@@ -2,7 +2,6 @@ import { AsyncPipe } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { ContentChild, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
4
  import { NgControl } from '@angular/forms';
5
- import { TuiLet } from '@taiga-ui/cdk/directives/let';
6
5
  import { tuiControlValue } from '@taiga-ui/cdk/observables';
7
6
  import { defer } from 'rxjs';
8
7
 
@@ -11,11 +10,11 @@ class TuiInputInline {
11
10
  this.value$ = defer(() => tuiControlValue(this.control));
12
11
  }
13
12
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputInline, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputInline, isStandalone: true, selector: "tui-input-inline", queries: [{ propertyName: "control", first: true, predicate: NgControl, descendants: true }], ngImport: i0, template: "<ng-container *tuiLet=\"value$ | async as value\">\n <span\n class=\"t-before\"\n [textContent]=\"value\"\n ></span>\n\n @if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n }\n</ng-container>\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: TuiLet, selector: "[tuiLet]", inputs: ["tuiLet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputInline, isStandalone: true, selector: "tui-input-inline", queries: [{ propertyName: "control", first: true, predicate: NgControl, descendants: true }], ngImport: i0, template: "@let value = value$ | async;\n<span\n class=\"t-before\"\n [textContent]=\"value\"\n></span>\n\n@if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
15
14
  }
16
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputInline, decorators: [{
17
16
  type: Component,
18
- args: [{ selector: 'tui-input-inline', imports: [AsyncPipe, TuiLet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *tuiLet=\"value$ | async as value\">\n <span\n class=\"t-before\"\n [textContent]=\"value\"\n ></span>\n\n @if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n }\n</ng-container>\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"] }]
17
+ args: [{ selector: 'tui-input-inline', imports: [AsyncPipe], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@let value = value$ | async;\n<span\n class=\"t-before\"\n [textContent]=\"value\"\n></span>\n\n@if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"] }]
19
18
  }], propDecorators: { control: [{
20
19
  type: ContentChild,
21
20
  args: [NgControl]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-inline.mjs","sources":["../../../projects/kit/components/input-inline/input-inline.component.ts","../../../projects/kit/components/input-inline/input-inline.template.html","../../../projects/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TuiLet} from '@taiga-ui/cdk/directives/let';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {defer} from 'rxjs';\n\n@Component({\n selector: 'tui-input-inline',\n imports: [AsyncPipe, TuiLet],\n templateUrl: './input-inline.template.html',\n styleUrls: ['./input-inline.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputInline {\n @ContentChild(NgControl)\n private readonly control?: NgControl;\n\n protected readonly value$ = defer(() => tuiControlValue(this.control));\n}\n","<ng-container *tuiLet=\"value$ | async as value\">\n <span\n class=\"t-before\"\n [textContent]=\"value\"\n ></span>\n\n @if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n }\n</ng-container>\n<ng-content select=\"input\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAoBa,cAAc,CAAA;AAR3B,IAAA,WAAA,GAAA;AAYuB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACzE;+GALY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,iHACT,SAAS,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrB3B,oYAgBA,EDFc,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,SAAS,8CAAE,MAAM,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMlB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAR1B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EACnB,OAAA,EAAA,CAAC,SAAS,EAAE,MAAM,CAAC,EAGb,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oYAAA,EAAA,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA;8BAI9B,OAAO,EAAA,CAAA;sBADvB,YAAY;uBAAC,SAAS;;;AErB3B;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-inline.mjs","sources":["../../../projects/kit/components/input-inline/input-inline.component.ts","../../../projects/kit/components/input-inline/input-inline.template.html","../../../projects/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {defer} from 'rxjs';\n\n@Component({\n selector: 'tui-input-inline',\n imports: [AsyncPipe],\n templateUrl: './input-inline.template.html',\n styleUrl: './input-inline.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputInline {\n @ContentChild(NgControl)\n private readonly control?: NgControl;\n\n protected readonly value$ = defer(() => tuiControlValue(this.control));\n}\n","@let value = value$ | async;\n<span\n class=\"t-before\"\n [textContent]=\"value\"\n></span>\n\n@if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAmBa,cAAc,CAAA;AAR3B,IAAA,WAAA,GAAA;AAYuB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACzE,IAAA;+GALY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,SAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACT,SAAS,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECpB3B,6SAeA,8oBDFc,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,cAAc,EAAA,UAAA,EAAA,CAAA;kBAR1B,SAAS;+BACI,kBAAkB,EAAA,OAAA,EACnB,CAAC,SAAS,CAAC,EAAA,aAAA,EAGL,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6SAAA,EAAA,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA;8BAI9B,OAAO,EAAA,CAAA;sBADvB,YAAY;uBAAC,SAAS;;;AEpB3B;;AAEG;;;;"}
@@ -1,16 +1,17 @@
1
+ import * as i2 from '@taiga-ui/core/components/textfield';
2
+ import { tuiInjectAuxiliary, tuiTextfieldIcon, TuiSelectLike, TuiTextfield } from '@taiga-ui/core/components/textfield';
1
3
  import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
2
4
  import * as i0 from '@angular/core';
3
5
  import { InjectionToken, inject, signal, effect, Directive } from '@angular/core';
4
6
  import { toSignal } from '@angular/core/rxjs-interop';
5
7
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
6
- import { TUI_ALLOW_SIGNAL_WRITES } from '@taiga-ui/cdk/constants';
7
8
  import { RANGE_SEPARATOR_CHAR, TuiMonthRange } from '@taiga-ui/cdk/date-time';
8
- import * as i1 from '@taiga-ui/core/components/textfield';
9
- import { TuiTextfieldDirective, tuiInjectAuxiliary, tuiTextfieldIcon, TuiWithTextfield, TuiSelectLike } from '@taiga-ui/core/components/textfield';
10
- import * as i2 from '@taiga-ui/core/directives/dropdown';
11
- import { tuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
9
+ import * as i1 from '@taiga-ui/core/components/input';
10
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
11
+ import * as i3 from '@taiga-ui/core/portals/dropdown';
12
+ import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/portals/dropdown';
12
13
  import { TUI_MONTH_FORMATTER } from '@taiga-ui/kit/tokens';
13
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
14
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
14
15
  import { TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW } from '@taiga-ui/kit/components/input-date';
15
16
  import { TUI_INPUT_MONTH_OPTIONS } from '@taiga-ui/kit/components/input-month';
16
17
 
@@ -25,9 +26,9 @@ const tuiInputMonthRangeOptionsProvider = (options) => tuiProvideOptions(TUI_INP
25
26
  class TuiInputMonthRangeDirective extends TuiControl {
26
27
  constructor() {
27
28
  super(...arguments);
28
- this.textfield = inject(TuiTextfieldDirective);
29
+ this.input = inject(TuiInputDirective);
29
30
  this.formatter = toSignal(inject(TUI_MONTH_FORMATTER));
30
- this.open = tuiDropdownOpen();
31
+ this.open = inject(TuiDropdownOpen).open;
31
32
  this.intermediateValue = signal(null);
32
33
  this.calendar = tuiInjectAuxiliary((x) => x instanceof TuiCalendarMonth);
33
34
  this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);
@@ -38,8 +39,8 @@ class TuiInputMonthRangeDirective extends TuiControl {
38
39
  const string = value
39
40
  ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to)
40
41
  : '';
41
- this.textfield.value.set(string);
42
- }, TUI_ALLOW_SIGNAL_WRITES);
42
+ this.input.value.set(string);
43
+ });
43
44
  this.calendarInit = effect(() => {
44
45
  const calendar = this.calendar();
45
46
  if (calendar) {
@@ -48,11 +49,11 @@ class TuiInputMonthRangeDirective extends TuiControl {
48
49
  });
49
50
  this.calendarSync = effect(() => {
50
51
  this.calendar()?.value.set(this.intermediateValue() ?? this.value());
51
- }, TUI_ALLOW_SIGNAL_WRITES);
52
+ });
52
53
  // TODO: use linked signal (Angular 19+)
53
54
  this.resetIntermediateValue = effect(() => {
54
55
  this.intermediateValue.set(this.value() && null);
55
- }, TUI_ALLOW_SIGNAL_WRITES);
56
+ });
56
57
  this.onMonthClickEffect = effect((onCleanup) => {
57
58
  const subscription = this.calendar()?.monthClick.subscribe((month) => {
58
59
  const intermediateValue = this.intermediateValue();
@@ -75,18 +76,17 @@ class TuiInputMonthRangeDirective extends TuiControl {
75
76
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputMonthRangeDirective, isStandalone: true, selector: "input[tuiInputMonthRange]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
76
77
  tuiAsControl(TuiInputMonthRangeDirective),
77
78
  tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),
78
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i1.TuiSelectLike }, { directive: i2.TuiDropdownAuto }], ngImport: i0 }); }
79
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
79
80
  }
80
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthRangeDirective, decorators: [{
81
82
  type: Directive,
82
83
  args: [{
83
- standalone: true,
84
84
  selector: 'input[tuiInputMonthRange]',
85
85
  providers: [
86
86
  tuiAsControl(TuiInputMonthRangeDirective),
87
87
  tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),
88
88
  ],
89
- hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],
89
+ hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],
90
90
  host: {
91
91
  '[disabled]': 'disabled()',
92
92
  '(input)': '$event.inputType?.includes("delete") && clear()',
@@ -97,6 +97,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
97
97
  const TuiInputMonthRange = [
98
98
  TuiInputMonthRangeDirective,
99
99
  TuiCalendarMonth,
100
+ TuiTextfield,
100
101
  ];
101
102
 
102
103
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month-range.mjs","sources":["../../../projects/kit/components/input-month-range/input-month-range.options.ts","../../../projects/kit/components/input-month-range/input-month-range.directive.ts","../../../projects/kit/components/input-month-range/input-month-range.ts","../../../projects/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonthRange} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW} from '@taiga-ui/kit/components/input-date';\nimport {TUI_INPUT_MONTH_OPTIONS} from '@taiga-ui/kit/components/input-month';\n\nexport interface TuiInputMonthRangeOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonthRange | null, any>;\n}\n\nexport const TUI_INPUT_MONTH_RANGE_OPTIONS =\n new InjectionToken<TuiInputMonthRangeOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_MONTH_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n );\n\nexport const tuiInputMonthRangeOptionsProvider = (\n options: Partial<TuiInputMonthRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {Directive, effect, inject, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {\n RANGE_SEPARATOR_CHAR,\n type TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk/date-time';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n TuiTextfieldDirective,\n tuiTextfieldIcon,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\nimport {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens';\n\nimport {TUI_INPUT_MONTH_RANGE_OPTIONS} from './input-month-range.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputMonthRange]',\n providers: [\n tuiAsControl(TuiInputMonthRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthRangeDirective extends TuiControl<TuiMonthRange | null> {\n private readonly textfield = inject(TuiTextfieldDirective);\n private readonly formatter = toSignal(inject(TUI_MONTH_FORMATTER));\n private readonly open = tuiDropdownOpen();\n private readonly intermediateValue = signal<TuiMonth | null>(null);\n\n private readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const format = this.formatter() || (() => '');\n const string = value\n ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to)\n : '';\n\n this.textfield.value.set(string);\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarInit = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.options.rangeMode = true;\n }\n });\n\n protected readonly calendarSync = effect(() => {\n this.calendar()?.value.set(this.intermediateValue() ?? this.value());\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n // TODO: use linked signal (Angular 19+)\n protected readonly resetIntermediateValue = effect(() => {\n this.intermediateValue.set(this.value() && null);\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected onMonthClickEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n const intermediateValue = this.intermediateValue();\n\n if (!intermediateValue) {\n this.intermediateValue.set(month);\n } else {\n this.onChange(TuiMonthRange.sort(intermediateValue, month));\n this.open.set(false);\n }\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(true);\n }\n}\n","import {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeDirective} from './input-month-range.directive';\n\nexport const TuiInputMonthRange = [\n TuiInputMonthRangeDirective,\n TuiCalendarMonth,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBa,MAAA,6BAA6B,GACtC,IAAI,cAAc,CACd,SAAS,GAAG,+BAA+B,GAAG,EAAE,EAChD;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAClC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGI,MAAA,iCAAiC,GAAG,CAC7C,OAA2C,KAE3C,iBAAiB,CACb,6BAA6B,EAC7B,OAAO,EACP,kCAAkC;;ACKpC,MAAO,2BAA4B,SAAQ,UAAgC,CAAA;AAbjF,IAAA,WAAA,GAAA;;AAcqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC;QACzC,IAAS,CAAA,SAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;QACjD,IAAI,CAAA,IAAA,GAAG,eAAe,EAAE;AACxB,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAkB,IAAI,CAAC;AAEjD,QAAA,IAAA,CAAA,QAAQ,GAAG,kBAAkB,CAC1C,CAAC,CAAC,KAAK,CAAC,YAAY,gBAAgB,CACvC;AAEkB,QAAA,IAAA,CAAA,IAAI,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;AACtD,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;AAEtD,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,MAAK;AACzC,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE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EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,SAAS,EAAE;AACP,wBAAA,YAAY,CAA6B,2BAAA,CAAA;wBACzC,uBAAuB,CAAC,6BAA6B,CAAC;AACzD,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,eAAe,CAAC;AAClE,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,iDAAiD;AAC/D,qBAAA;AACJ,iBAAA;;;AClCY,MAAA,kBAAkB,GAAG;IAC9B,2BAA2B;IAC3B,gBAAgB;;;ACNpB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-month-range.mjs","sources":["../../../projects/kit/components/input-month-range/input-month-range.options.ts","../../../projects/kit/components/input-month-range/input-month-range.directive.ts","../../../projects/kit/components/input-month-range/input-month-range.ts","../../../projects/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonthRange} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW} from '@taiga-ui/kit/components/input-date';\nimport {TUI_INPUT_MONTH_OPTIONS} from '@taiga-ui/kit/components/input-month';\n\nexport interface TuiInputMonthRangeOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonthRange | null, any>;\n}\n\nexport const TUI_INPUT_MONTH_RANGE_OPTIONS =\n new InjectionToken<TuiInputMonthRangeOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_MONTH_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n );\n\nexport const tuiInputMonthRangeOptionsProvider = (\n options: Partial<TuiInputMonthRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {Directive, effect, inject, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n RANGE_SEPARATOR_CHAR,\n type TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk/date-time';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n tuiTextfieldIcon,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\nimport {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens';\n\nimport {TUI_INPUT_MONTH_RANGE_OPTIONS} from './input-month-range.options';\n\n@Directive({\n selector: 'input[tuiInputMonthRange]',\n providers: [\n tuiAsControl(TuiInputMonthRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthRangeDirective extends TuiControl<TuiMonthRange | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly formatter = toSignal(inject(TUI_MONTH_FORMATTER));\n private readonly open = inject(TuiDropdownOpen).open;\n private readonly intermediateValue = signal<TuiMonth | null>(null);\n private readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const format = this.formatter() || (() => '');\n const string = value\n ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to)\n : '';\n\n this.input.value.set(string);\n });\n\n protected readonly calendarInit = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.options.rangeMode = true;\n }\n });\n\n protected readonly calendarSync = effect(() => {\n this.calendar()?.value.set(this.intermediateValue() ?? this.value());\n });\n\n // TODO: use linked signal (Angular 19+)\n protected readonly resetIntermediateValue = effect(() => {\n this.intermediateValue.set(this.value() && null);\n });\n\n protected onMonthClickEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n const intermediateValue = this.intermediateValue();\n\n if (!intermediateValue) {\n this.intermediateValue.set(month);\n } else {\n this.onChange(TuiMonthRange.sort(intermediateValue, month));\n this.open.set(false);\n }\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(true);\n }\n}\n","import {TuiTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeDirective} from './input-month-range.directive';\n\nexport const TuiInputMonthRange = [\n TuiInputMonthRangeDirective,\n TuiCalendarMonth,\n TuiTextfield,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiBO,MAAM,6BAA6B,GACtC,IAAI,cAAc,CACd,SAAS,GAAG,+BAA+B,GAAG,EAAE,EAChD;A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C1B,wBAAA,SAAS,EAAE,iDAAiD;AAC/D,qBAAA;AACJ,iBAAA;;;AC9BM,MAAM,kBAAkB,GAAG;IAC9B,2BAA2B;IAC3B,gBAAgB;IAChB,YAAY;;;ACRhB;;AAEG;;;;"}
@@ -1,17 +1,18 @@
1
+ import * as i2 from '@taiga-ui/core/components/textfield';
2
+ import { tuiTextfieldIcon, tuiInjectAuxiliary, TuiWithNativePicker, TuiSelectLike, TuiTextfieldContent, TuiTextfield } from '@taiga-ui/core/components/textfield';
1
3
  import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
2
4
  import * as i0 from '@angular/core';
3
5
  import { InjectionToken, inject, computed, effect, Directive, signal, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
- import { TUI_ALLOW_SIGNAL_WRITES } from '@taiga-ui/cdk/constants';
5
6
  import { TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth } from '@taiga-ui/cdk/date-time';
6
- import * as i1 from '@taiga-ui/core/components/textfield';
7
- import { TuiTextfieldDirective, tuiTextfieldIcon, tuiInjectAuxiliary, TuiWithNativePicker, TuiWithTextfield, TuiSelectLike, TuiTextfieldContent } from '@taiga-ui/core/components/textfield';
8
7
  import { toSignal } from '@angular/core/rxjs-interop';
9
8
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
10
9
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
11
- import * as i2 from '@taiga-ui/core/directives/dropdown';
12
- import { tuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
10
+ import * as i1 from '@taiga-ui/core/components/input';
11
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
12
+ import * as i3 from '@taiga-ui/core/portals/dropdown';
13
+ import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/portals/dropdown';
13
14
  import { TUI_MONTH_FORMATTER } from '@taiga-ui/kit/tokens';
14
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
15
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
15
16
  import { TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW } from '@taiga-ui/kit/components/input-date';
16
17
 
17
18
  /**
@@ -32,17 +33,17 @@ const tuiInputMonthOptionsProvider = (options) => tuiProvideOptions(TUI_INPUT_MO
32
33
  class TuiInputMonthDirective extends TuiControl {
33
34
  constructor() {
34
35
  super(...arguments);
35
- this.textfield = inject(TuiTextfieldDirective);
36
+ this.input = inject(TuiInputDirective);
36
37
  this.formatter = toSignal(inject(TUI_MONTH_FORMATTER));
37
- this.open = tuiDropdownOpen();
38
+ this.open = inject(TuiDropdownOpen).open;
38
39
  this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);
39
40
  this.dropdownEnabled = tuiDropdownEnabled(computed(() => !this.native && this.interactive()));
40
41
  this.valueEffect = effect(() => {
41
- this.textfield.value.set(this.formatter()?.(this.value()) || '');
42
- }, TUI_ALLOW_SIGNAL_WRITES);
42
+ this.input.value.set(this.formatter()?.(this.value()) || '');
43
+ });
43
44
  this.calendarIn = effect(() => {
44
45
  this.calendar()?.value.set(this.value());
45
- }, TUI_ALLOW_SIGNAL_WRITES);
46
+ });
46
47
  this.calendarOut = effect((onCleanup) => {
47
48
  const subscription = this.calendar()?.monthClick.subscribe((month) => {
48
49
  this.onChange(month);
@@ -61,18 +62,17 @@ class TuiInputMonthDirective extends TuiControl {
61
62
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputMonthDirective, isStandalone: true, selector: "input[tuiInputMonth]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
62
63
  tuiAsControl(TuiInputMonthDirective),
63
64
  tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),
64
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i1.TuiSelectLike }, { directive: i2.TuiDropdownAuto }], ngImport: i0 }); }
65
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
65
66
  }
66
67
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
67
68
  type: Directive,
68
69
  args: [{
69
- standalone: true,
70
70
  selector: 'input[tuiInputMonth]',
71
71
  providers: [
72
72
  tuiAsControl(TuiInputMonthDirective),
73
73
  tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),
74
74
  ],
75
- hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],
75
+ hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],
76
76
  host: {
77
77
  '[disabled]': 'disabled()',
78
78
  '(input)': '$event.inputType?.includes("delete") && clear()',
@@ -91,7 +91,7 @@ class TuiInputMonthComponent {
91
91
  calendar.min.set(this.min() ?? TUI_FIRST_DAY); // TODO(v5): remove TUI_FIRST_DAY fallback
92
92
  calendar.max.set(this.max() ?? TUI_LAST_DAY); // TODO(v5): remove TUI_LAST_DAY fallback
93
93
  }
94
- }, TUI_ALLOW_SIGNAL_WRITES);
94
+ });
95
95
  }
96
96
  // TODO(v5): use signal inputs
97
97
  set minSetter(x) {
@@ -109,7 +109,7 @@ class TuiInputMonthComponent {
109
109
  this.host.onChange(new TuiMonth(year, month - 1));
110
110
  }
111
111
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
112
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputMonthComponent, isStandalone: true, selector: "input[tuiInputMonth][type=\"month\"]", inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { attributes: { "ngSkipHydration": "true" } }, hostDirectives: [{ directive: i1.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]~.t-content input[type=month]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}tui-textfield input[tuiInputMonth]~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
112
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputMonthComponent, isStandalone: true, selector: "input[tuiInputMonth][type=\"month\"]", inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { attributes: { "ngSkipHydration": "true" } }, hostDirectives: [{ directive: i2.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]~.t-content input[type=month]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}tui-textfield input[tuiInputMonth]~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
113
113
  }
114
114
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
115
115
  type: Component,
@@ -128,6 +128,7 @@ const TuiInputMonth = [
128
128
  TuiInputMonthComponent,
129
129
  TuiInputMonthDirective,
130
130
  TuiCalendarMonth,
131
+ TuiTextfield,
131
132
  ];
132
133
 
133
134
  /**