@taiga-ui/kit 4.52.0-canary.974ca4b → 4.52.0-canary.a1004d6

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 (397) hide show
  1. package/components/avatar/avatar-labeled.component.d.ts +3 -3
  2. package/components/avatar/avatar-stack.component.d.ts +2 -2
  3. package/components/badge-notification/badge-notification.component.d.ts +2 -3
  4. package/components/badged-content/badged-content.directive.d.ts +2 -2
  5. package/components/breadcrumbs/breadcrumbs.component.d.ts +6 -7
  6. package/components/button-loading/button-loading.component.d.ts +5 -5
  7. package/components/calendar-range/calendar-range.component.d.ts +0 -1
  8. package/components/calendar-range/day-range-period.d.ts +2 -1
  9. package/components/carousel/carousel-autoscroll.directive.d.ts +1 -2
  10. package/components/carousel/carousel-scroll.directive.d.ts +1 -1
  11. package/components/carousel/carousel.component.d.ts +15 -18
  12. package/components/carousel/carousel.directive.d.ts +5 -4
  13. package/components/combo-box/combo-box.d.ts +5 -0
  14. package/components/combo-box/combo-box.directive.d.ts +7 -9
  15. package/components/combo-box/index.d.ts +1 -0
  16. package/components/compass/compass.component.d.ts +2 -2
  17. package/components/confirm/confirm.component.d.ts +3 -2
  18. package/components/confirm/confirm.service.d.ts +1 -1
  19. package/components/copy/copy.component.d.ts +3 -4
  20. package/components/copy/copy.directive.d.ts +2 -4
  21. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -2
  22. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  23. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  24. package/components/data-list-wrapper/index.d.ts +1 -1
  25. package/components/drawer/drawer.component.d.ts +3 -4
  26. package/components/files/file/file.component.d.ts +16 -29
  27. package/components/files/files/files.component.d.ts +5 -8
  28. package/components/files/input-files/input-files.component.d.ts +2 -2
  29. package/components/files/input-files/input-files.content.d.ts +7 -8
  30. package/components/files/input-files/input-files.directive.d.ts +2 -2
  31. package/components/filter/filter.component.d.ts +9 -12
  32. package/components/fullscreen/fullscreen.component.d.ts +5 -8
  33. package/components/index.d.ts +0 -3
  34. package/components/input-chip/input-chip.component.d.ts +9 -8
  35. package/components/input-chip/input-chip.d.ts +5 -1
  36. package/components/input-chip/input-chip.directive.d.ts +7 -12
  37. package/components/input-color/index.d.ts +1 -0
  38. package/components/input-color/input-color.component.d.ts +8 -12
  39. package/components/input-color/input-color.d.ts +5 -0
  40. package/components/input-date/input-date.component.d.ts +2 -2
  41. package/components/input-date/input-date.d.ts +4 -1
  42. package/components/input-date/input-date.directive.d.ts +21 -22
  43. package/components/input-date/input-date.options.d.ts +3 -3
  44. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  45. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  46. package/components/input-date-range/input-date-range.d.ts +4 -1
  47. package/components/input-date-range/input-date-range.directive.d.ts +9 -10
  48. package/components/input-date-range/input-date-range.options.d.ts +2 -2
  49. package/components/input-date-time/input-date-time.d.ts +4 -1
  50. package/components/input-date-time/input-date-time.directive.d.ts +14 -14
  51. package/components/input-date-time/input-date-time.options.d.ts +2 -2
  52. package/components/input-inline/input-inline.component.d.ts +3 -2
  53. package/components/input-month/input-month.component.d.ts +3 -5
  54. package/components/input-month/input-month.d.ts +4 -1
  55. package/components/input-month/input-month.directive.d.ts +6 -5
  56. package/components/input-month-range/input-month-range.d.ts +4 -1
  57. package/components/input-month-range/input-month-range.directive.d.ts +6 -5
  58. package/components/input-number/input-number.d.ts +4 -1
  59. package/components/input-number/input-number.directive.d.ts +6 -8
  60. package/components/input-number/input-number.options.d.ts +2 -3
  61. package/components/input-number/step/input-number-step.component.d.ts +3 -3
  62. package/components/input-phone/index.d.ts +1 -0
  63. package/components/input-phone/input-phone.d.ts +5 -0
  64. package/components/input-phone/input-phone.directive.d.ts +12 -14
  65. package/components/input-phone-international/index.d.ts +1 -0
  66. package/components/input-phone-international/input-phone-international.component.d.ts +14 -16
  67. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  68. package/components/input-phone-international/input-phone-international.options.d.ts +1 -0
  69. package/components/input-pin/index.d.ts +1 -0
  70. package/components/input-pin/input-pin.component.d.ts +5 -6
  71. package/components/input-pin/input-pin.d.ts +5 -0
  72. package/components/input-range/index.d.ts +0 -1
  73. package/components/input-range/input-range.component.d.ts +22 -52
  74. package/components/input-slider/input-slider.d.ts +4 -1
  75. package/components/input-slider/input-slider.directive.d.ts +1 -1
  76. package/components/input-time/input-time.component.d.ts +1 -3
  77. package/components/input-time/input-time.d.ts +4 -1
  78. package/components/input-time/input-time.directive.d.ts +5 -5
  79. package/components/input-year/input-year.d.ts +4 -1
  80. package/components/input-year/input-year.directive.d.ts +8 -10
  81. package/components/input-year/input-year.options.d.ts +2 -2
  82. package/components/items-with-more/items-with-more.component.d.ts +6 -6
  83. package/components/items-with-more/items-with-more.directive.d.ts +6 -6
  84. package/components/like/like.options.d.ts +1 -1
  85. package/components/line-clamp/line-clamp-box.component.d.ts +1 -1
  86. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +4 -6
  87. package/components/multi-select/multi-select-native/multi-select-native.component.d.ts +5 -4
  88. package/components/notification-middle/notification-middle.service.d.ts +1 -1
  89. package/components/pager/pager.component.d.ts +12 -12
  90. package/components/pagination/pagination.component.d.ts +22 -52
  91. package/components/pagination/pagination.options.d.ts +3 -6
  92. package/components/preview/dialog/preview-dialog.service.d.ts +1 -1
  93. package/components/preview/index.d.ts +1 -0
  94. package/components/preview/pagination/preview-pagination.component.d.ts +6 -10
  95. package/components/preview/preview.component.d.ts +6 -6
  96. package/components/preview/zoom/preview-zoom.component.d.ts +11 -17
  97. package/components/progress/progress-bar/progress-bar.component.d.ts +3 -4
  98. package/components/progress/progress-circle/progress-circle.component.d.ts +7 -11
  99. package/components/pulse/pulse.component.d.ts +2 -2
  100. package/components/push/push-alert.component.d.ts +2 -2
  101. package/components/push/push.component.d.ts +6 -7
  102. package/components/push/push.options.d.ts +4 -3
  103. package/components/push/push.service.d.ts +2 -2
  104. package/components/radio/radio.component.d.ts +1 -1
  105. package/components/radio-list/radio-list.component.d.ts +11 -9
  106. package/components/range/range.component.d.ts +3 -4
  107. package/components/rating/rating.component.d.ts +1 -1
  108. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  109. package/components/segmented/segmented.component.d.ts +4 -6
  110. package/components/segmented/segmented.directive.d.ts +6 -7
  111. package/components/select/native-select/native-select.component.d.ts +4 -4
  112. package/components/select/select.d.ts +4 -1
  113. package/components/select/select.directive.d.ts +4 -3
  114. package/components/slider/helpers/slider-key-steps.directive.d.ts +6 -5
  115. package/components/slider/helpers/slider-readonly.directive.d.ts +2 -4
  116. package/components/slider/helpers/slider-thumb-label.component.d.ts +2 -4
  117. package/components/slider/slider.component.d.ts +4 -7
  118. package/components/stepper/step.component.d.ts +14 -9
  119. package/components/stepper/stepper.component.d.ts +5 -12
  120. package/components/switch/switch.component.d.ts +1 -0
  121. package/components/tabs/tabs-horizontal.directive.d.ts +3 -4
  122. package/components/tabs/tabs-vertical.directive.d.ts +2 -2
  123. package/components/tabs/tabs-with-more.component.d.ts +12 -16
  124. package/components/tabs/tabs.directive.d.ts +5 -7
  125. package/components/textarea/index.d.ts +2 -1
  126. package/components/textarea/textarea.component.d.ts +10 -11
  127. package/components/textarea/textarea.d.ts +6 -0
  128. package/components/textarea/textarea.directive.d.ts +13 -0
  129. package/components/tiles/tile.component.d.ts +7 -10
  130. package/components/tiles/tile.service.d.ts +1 -1
  131. package/components/tiles/tiles.component.d.ts +4 -7
  132. package/components/toast/toast.component.d.ts +2 -2
  133. package/components/toast/toast.options.d.ts +4 -3
  134. package/components/toast/toast.service.d.ts +2 -2
  135. package/components/tree/components/tree/tree.component.d.ts +7 -7
  136. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  137. package/components/tree/directives/tree-children.directive.d.ts +2 -2
  138. package/components/tree/directives/tree-controller.directive.d.ts +4 -5
  139. package/components/tree/directives/tree-item-controller.directive.d.ts +2 -2
  140. package/components/tree/directives/tree-node.directive.d.ts +5 -4
  141. package/directives/appearance-proxy/appearance-proxy.directive.d.ts +10 -0
  142. package/directives/appearance-proxy/index.d.ts +1 -0
  143. package/directives/button-select/button-select.directive.d.ts +1 -1
  144. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  145. package/directives/fade/fade.directive.d.ts +5 -6
  146. package/directives/highlight/highlight.directive.d.ts +4 -4
  147. package/directives/index.d.ts +1 -1
  148. package/directives/password/password.directive.d.ts +1 -1
  149. package/directives/present/present.directive.d.ts +2 -4
  150. package/directives/tooltip/tooltip.directive.d.ts +1 -1
  151. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +2 -2
  152. package/directives/unmask-handler/unmask-handler.directive.d.ts +3 -3
  153. package/fesm2022/taiga-ui-kit-components-accordion.mjs +8 -8
  154. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
  156. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-avatar.mjs +33 -47
  158. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +8 -10
  160. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-badge.mjs +7 -7
  162. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +9 -11
  163. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  165. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +16 -30
  167. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +18 -26
  169. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -13
  171. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +23 -23
  173. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-carousel.mjs +69 -116
  175. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +4 -5
  177. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-chip.mjs +7 -7
  179. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +40 -44
  180. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-comment.mjs +7 -7
  182. package/fesm2022/taiga-ui-kit-components-compass.mjs +7 -9
  183. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-confirm.mjs +9 -10
  185. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-copy.mjs +19 -32
  187. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +24 -85
  189. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-drawer.mjs +15 -32
  191. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-files.mjs +110 -230
  193. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-filter.mjs +21 -34
  195. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +23 -42
  197. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +63 -75
  199. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-input-color.mjs +27 -28
  201. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +34 -46
  203. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +37 -36
  205. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +40 -55
  207. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-input-date.mjs +52 -58
  209. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +10 -12
  211. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +26 -22
  213. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-input-month.mjs +39 -45
  215. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-components-input-number.mjs +50 -50
  217. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +61 -67
  219. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +37 -41
  221. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +24 -22
  223. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-components-input-range.mjs +42 -69
  225. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +15 -10
  227. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-input-time.mjs +38 -39
  229. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-components-input-year.mjs +31 -36
  231. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +50 -70
  233. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-components-like.mjs +3 -3
  235. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +14 -14
  237. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-components-message.mjs +7 -7
  239. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +36 -52
  241. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +12 -12
  243. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-components-pager.mjs +30 -44
  245. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-components-pagination.mjs +65 -150
  247. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-pin.mjs +7 -7
  249. package/fesm2022/taiga-ui-kit-components-preview.mjs +77 -145
  250. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-progress.mjs +44 -63
  252. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-pulse.mjs +7 -11
  254. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-push.mjs +27 -40
  256. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +23 -35
  258. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-radio.mjs +6 -6
  260. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-range.mjs +19 -29
  262. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -4
  264. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +4 -4
  266. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-segmented.mjs +31 -57
  268. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-select.mjs +52 -28
  270. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-slider.mjs +49 -67
  272. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-status.mjs +6 -6
  274. package/fesm2022/taiga-ui-kit-components-stepper.mjs +61 -88
  275. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  277. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-components-tabs.mjs +73 -126
  279. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-components-textarea.mjs +60 -71
  281. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-components-tiles.mjs +36 -68
  283. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-components-toast.mjs +27 -28
  285. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-components-tree.mjs +62 -92
  287. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  288. package/fesm2022/taiga-ui-kit-components.mjs +0 -3
  289. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +27 -0
  291. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -0
  292. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  293. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  294. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +6 -6
  296. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +10 -9
  298. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-directives-connected.mjs +7 -7
  300. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -52
  302. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-directives-fade.mjs +25 -34
  304. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +3 -3
  306. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +16 -20
  307. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-directives-password.mjs +10 -8
  309. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  310. package/fesm2022/taiga-ui-kit-directives-present.mjs +10 -17
  311. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  312. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +6 -6
  313. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +6 -6
  314. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -6
  315. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  316. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -8
  317. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +8 -10
  319. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  320. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +10 -14
  321. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  322. package/fesm2022/taiga-ui-kit-directives.mjs +1 -1
  323. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  324. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  325. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  326. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -24
  327. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  328. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
  329. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  330. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -4
  331. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  332. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  333. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  334. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -8
  335. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  336. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  337. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  338. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  339. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -0
  340. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -108
  342. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  343. package/fesm2022/taiga-ui-kit-utils.mjs +3 -15
  344. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  345. package/package.json +33 -33
  346. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  347. package/pipes/auto-color/index.d.ts +1 -0
  348. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  349. package/pipes/flag/flag.pipe.d.ts +14 -0
  350. package/pipes/flag/index.d.ts +1 -0
  351. package/pipes/index.d.ts +3 -0
  352. package/pipes/initials/index.d.ts +1 -0
  353. package/pipes/initials/initials.pipe.d.ts +7 -0
  354. package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
  355. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  356. package/styles/components/avatar.less +14 -14
  357. package/styles/components/badge.less +3 -3
  358. package/styles/components/block.less +4 -4
  359. package/styles/components/chip.less +3 -3
  360. package/styles/components/comment.less +1 -1
  361. package/styles/components/message.less +1 -1
  362. package/styles/components/pin.less +3 -3
  363. package/styles/components/switch.less +3 -2
  364. package/styles/components/toast.less +1 -1
  365. package/tokens/i18n.d.ts +1 -0
  366. package/tokens/index.d.ts +0 -7
  367. package/utils/index.d.ts +0 -2
  368. package/utils/maskito.binding.d.ts +1 -1
  369. package/components/elastic-container/elastic-container.component.d.ts +0 -8
  370. package/components/elastic-container/elastic-container.directive.d.ts +0 -7
  371. package/components/elastic-container/index.d.ts +0 -2
  372. package/components/floating-container/floating-container.directive.d.ts +0 -7
  373. package/components/floating-container/index.d.ts +0 -1
  374. package/components/input-range/input-range.d.ts +0 -3
  375. package/components/slides/index.d.ts +0 -1
  376. package/components/slides/slides.directive.d.ts +0 -11
  377. package/components/textarea/textarea-limit.directive.d.ts +0 -26
  378. package/directives/lazy-loading/index.d.ts +0 -2
  379. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  380. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  381. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -77
  382. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
  383. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -37
  384. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
  385. package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -49
  386. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
  387. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -80
  388. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  389. package/tokens/calendar-date-stream.d.ts +0 -10
  390. package/tokens/date-inputs-value-transformers.d.ts +0 -19
  391. package/tokens/input-date-options.d.ts +0 -15
  392. package/tokens/items-handlers.d.ts +0 -20
  393. package/tokens/mobile-calendar.d.ts +0 -6
  394. package/tokens/month-formatter.d.ts +0 -5
  395. package/utils/phone.d.ts +0 -3
  396. package/utils/toggle-day.d.ts +0 -2
  397. /package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +0 -0
@@ -1,16 +1,18 @@
1
+ import { TuiLabel } from '@taiga-ui/core/components/label';
2
+ import * as i2 from '@taiga-ui/core/components/textfield';
3
+ import { tuiInjectAuxiliary, tuiTextfieldIcon, TuiSelectLike, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
4
+ import * as i3 from '@taiga-ui/core/portals/dropdown';
5
+ import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto, TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
1
6
  import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
2
7
  import * as i0 from '@angular/core';
3
8
  import { InjectionToken, inject, signal, effect, Directive } from '@angular/core';
4
- import { toSignal } from '@angular/core/rxjs-interop';
5
9
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
6
10
  import { RANGE_SEPARATOR_CHAR, TuiMonthRange } from '@taiga-ui/cdk/date-time';
7
- import * as i1 from '@taiga-ui/core/components/textfield';
8
- import { TuiTextfieldDirective, tuiInjectAuxiliary, tuiTextfieldIcon, TuiWithTextfield, TuiSelectLike } from '@taiga-ui/core/components/textfield';
9
- import * as i2 from '@taiga-ui/core/directives/dropdown';
10
- import { tuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
11
- import { TUI_MONTH_FORMATTER } from '@taiga-ui/kit/tokens';
12
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
13
- import { TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW } from '@taiga-ui/kit/components/input-date';
11
+ import * as i1 from '@taiga-ui/core/components/input';
12
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
13
+ import { TUI_MONTHS } from '@taiga-ui/core/tokens';
14
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
15
+ import { TUI_INPUT_DATE_DEFAULT_OPTIONS } from '@taiga-ui/kit/components/input-date';
14
16
  import { TUI_INPUT_MONTH_OPTIONS } from '@taiga-ui/kit/components/input-month';
15
17
 
16
18
  const TUI_INPUT_MONTH_RANGE_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_MONTH_RANGE_OPTIONS' : '', {
@@ -19,25 +21,23 @@ const TUI_INPUT_MONTH_RANGE_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_
19
21
  valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,
20
22
  }),
21
23
  });
22
- const tuiInputMonthRangeOptionsProvider = (options) => tuiProvideOptions(TUI_INPUT_MONTH_RANGE_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);
24
+ const tuiInputMonthRangeOptionsProvider = (options) => tuiProvideOptions(TUI_INPUT_MONTH_RANGE_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS);
23
25
 
24
26
  class TuiInputMonthRangeDirective extends TuiControl {
25
27
  constructor() {
26
28
  super(...arguments);
27
- this.textfield = inject(TuiTextfieldDirective);
28
- this.formatter = toSignal(inject(TUI_MONTH_FORMATTER));
29
- this.open = tuiDropdownOpen();
29
+ this.input = inject(TuiInputDirective);
30
+ this.months = inject(TUI_MONTHS);
31
+ this.open = inject(TuiDropdownOpen).open;
30
32
  this.intermediateValue = signal(null);
31
33
  this.calendar = tuiInjectAuxiliary((x) => x instanceof TuiCalendarMonth);
32
34
  this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);
33
35
  this.dropdownEnabled = tuiDropdownEnabled(this.interactive);
34
36
  this.valueEffect = effect(() => {
35
37
  const value = this.value();
36
- const format = this.formatter() || (() => '');
37
- const string = value
38
- ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to)
39
- : '';
40
- this.textfield.value.set(string);
38
+ const months = this.months();
39
+ const format = ({ month, formattedYear }) => `${months[month] ?? ''} ${formattedYear}`;
40
+ this.input.value.set(value ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to) : '');
41
41
  });
42
42
  this.calendarInit = effect(() => {
43
43
  const calendar = this.calendar();
@@ -70,13 +70,13 @@ class TuiInputMonthRangeDirective extends TuiControl {
70
70
  this.onChange(null);
71
71
  this.open.set(true);
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
74
- 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: [
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
74
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiInputMonthRangeDirective, isStandalone: true, selector: "input[tuiInputMonthRange]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
75
75
  tuiAsControl(TuiInputMonthRangeDirective),
76
76
  tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),
77
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i1.TuiSelectLike }, { directive: i2.TuiDropdownAuto }], ngImport: i0 }); }
77
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
78
78
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthRangeDirective, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthRangeDirective, decorators: [{
80
80
  type: Directive,
81
81
  args: [{
82
82
  selector: 'input[tuiInputMonthRange]',
@@ -84,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
84
84
  tuiAsControl(TuiInputMonthRangeDirective),
85
85
  tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),
86
86
  ],
87
- hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],
87
+ hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],
88
88
  host: {
89
89
  '[disabled]': 'disabled()',
90
90
  '(input)': '$event.inputType?.includes("delete") && clear()',
@@ -95,6 +95,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
95
95
  const TuiInputMonthRange = [
96
96
  TuiInputMonthRangeDirective,
97
97
  TuiCalendarMonth,
98
+ TuiLabel,
99
+ TuiTextfieldComponent,
100
+ TuiTextfieldOptionsDirective,
101
+ TuiDropdownContent,
98
102
  ];
99
103
 
100
104
  /**
@@ -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 {\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 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 });\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 {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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AAA,SAAS,EAAE,iDAAiD;AAC/D,qBAAA;AACJ,iBAAA;;;AChCY,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} 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,\n );\n","import {Directive, effect, inject, signal} from '@angular/core';\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 {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\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 months = inject(TUI_MONTHS);\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 months = this.months();\n const format = ({month, formattedYear}: TuiMonth): string =>\n `${months[month] ?? ''} ${formattedYear}`;\n\n this.input.value.set(\n value ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to) : '',\n );\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 {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\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 TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\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,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B,4BAA4B;IAC5B,kBAAkB;;;AChBtB;;AAEG;;;;"}
@@ -1,17 +1,19 @@
1
+ import { TuiLabel } from '@taiga-ui/core/components/label';
2
+ import * as i2 from '@taiga-ui/core/components/textfield';
3
+ import { tuiTextfieldIcon, tuiInjectAuxiliary, TuiWithNativePicker, TuiSelectLike, TuiTextfieldContent, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
4
+ import * as i3 from '@taiga-ui/core/portals/dropdown';
5
+ import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto, TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
1
6
  import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
2
7
  import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, computed, effect, Directive, signal, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
8
+ import { InjectionToken, inject, computed, effect, Directive, input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
9
  import { TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth } from '@taiga-ui/cdk/date-time';
5
- import * as i1 from '@taiga-ui/core/components/textfield';
6
- import { TuiTextfieldDirective, tuiTextfieldIcon, tuiInjectAuxiliary, TuiWithNativePicker, TuiWithTextfield, TuiSelectLike, TuiTextfieldContent } from '@taiga-ui/core/components/textfield';
7
- import { toSignal } from '@angular/core/rxjs-interop';
8
10
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
9
11
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
10
- import * as i2 from '@taiga-ui/core/directives/dropdown';
11
- import { tuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
12
- import { TUI_MONTH_FORMATTER } from '@taiga-ui/kit/tokens';
13
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
14
- import { TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW } from '@taiga-ui/kit/components/input-date';
12
+ import * as i1 from '@taiga-ui/core/components/input';
13
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
14
+ import { TUI_MONTHS } from '@taiga-ui/core/tokens';
15
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
16
+ import { TUI_INPUT_DATE_OPTIONS, TUI_INPUT_DATE_DEFAULT_OPTIONS } from '@taiga-ui/kit/components/input-date';
15
17
 
16
18
  /**
17
19
  * @deprecated remove in v5
@@ -22,22 +24,26 @@ const TUI_INPUT_MONTH_DEFAULT_OPTIONS = {
22
24
  };
23
25
  const TUI_INPUT_MONTH_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '', {
24
26
  factory: () => ({
25
- ...inject(TUI_INPUT_DATE_OPTIONS_NEW),
27
+ ...inject(TUI_INPUT_DATE_OPTIONS),
26
28
  valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,
27
29
  }),
28
30
  });
29
- const tuiInputMonthOptionsProvider = (options) => tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);
31
+ const tuiInputMonthOptionsProvider = (options) => tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS);
30
32
 
31
33
  class TuiInputMonthDirective extends TuiControl {
32
34
  constructor() {
33
35
  super(...arguments);
34
- this.textfield = inject(TuiTextfieldDirective);
35
- this.formatter = toSignal(inject(TUI_MONTH_FORMATTER));
36
- this.open = tuiDropdownOpen();
36
+ this.input = inject(TuiInputDirective);
37
+ this.months = inject(TUI_MONTHS);
38
+ this.open = inject(TuiDropdownOpen).open;
37
39
  this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);
38
40
  this.dropdownEnabled = tuiDropdownEnabled(computed(() => !this.native && this.interactive()));
39
41
  this.valueEffect = effect(() => {
40
- this.textfield.value.set(this.formatter()?.(this.value()) || '');
42
+ const value = this.value();
43
+ const formatted = value
44
+ ? `${this.months()[value.month] ?? ''} ${value.formattedYear}`
45
+ : '';
46
+ this.input.value.set(formatted);
41
47
  });
42
48
  this.calendarIn = effect(() => {
43
49
  this.calendar()?.value.set(this.value());
@@ -56,13 +62,13 @@ class TuiInputMonthDirective extends TuiControl {
56
62
  this.onChange(null);
57
63
  this.open.set(this.dropdownEnabled());
58
64
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
60
- 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: [
65
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
66
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiInputMonthDirective, isStandalone: true, selector: "input[tuiInputMonth]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
61
67
  tuiAsControl(TuiInputMonthDirective),
62
68
  tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),
63
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i1.TuiSelectLike }, { directive: i2.TuiDropdownAuto }], ngImport: i0 }); }
69
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
64
70
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
66
72
  type: Directive,
67
73
  args: [{
68
74
  selector: 'input[tuiInputMonth]',
@@ -70,7 +76,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
70
76
  tuiAsControl(TuiInputMonthDirective),
71
77
  tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),
72
78
  ],
73
- hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],
79
+ hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],
74
80
  host: {
75
81
  '[disabled]': 'disabled()',
76
82
  '(input)': '$event.inputType?.includes("delete") && clear()',
@@ -81,23 +87,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
81
87
  class TuiInputMonthComponent {
82
88
  constructor() {
83
89
  this.host = inject(TuiInputMonthDirective);
84
- this.min = signal(null);
85
- this.max = signal(null);
86
90
  this.calendarSync = effect(() => {
87
91
  const calendar = this.host.calendar();
88
92
  if (calendar) {
89
- calendar.min.set(this.min() ?? TUI_FIRST_DAY); // TODO(v5): remove TUI_FIRST_DAY fallback
90
- calendar.max.set(this.max() ?? TUI_LAST_DAY); // TODO(v5): remove TUI_LAST_DAY fallback
93
+ calendar.min.set(this.min() ?? TUI_FIRST_DAY);
94
+ calendar.max.set(this.max() ?? TUI_LAST_DAY);
91
95
  }
92
96
  });
93
- }
94
- // TODO(v5): use signal inputs
95
- set minSetter(x) {
96
- this.min.set(x);
97
- }
98
- // TODO(v5): use signal inputs
99
- set maxSetter(x) {
100
- this.max.set(x);
97
+ this.min = input(null);
98
+ this.max = input(null);
101
99
  }
102
100
  onInput(value) {
103
101
  if (!value) {
@@ -106,26 +104,22 @@ class TuiInputMonthComponent {
106
104
  const [year = 0, month = 0] = value.split('-').map(Number);
107
105
  this.host.onChange(new TuiMonth(year, month - 1));
108
106
  }
109
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
110
- 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 }); }
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
108
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiInputMonthComponent, isStandalone: true, selector: "input[tuiInputMonth][type=\"month\"]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, 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 }); }
111
109
  }
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
113
111
  type: Component,
114
- args: [{ selector: 'input[tuiInputMonth][type="month"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: {
115
- ngSkipHydration: 'true',
116
- }, 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"] }]
117
- }], propDecorators: { minSetter: [{
118
- type: Input,
119
- args: ['min']
120
- }], maxSetter: [{
121
- type: Input,
122
- args: ['max']
123
- }] } });
112
+ args: [{ selector: 'input[tuiInputMonth][type="month"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: { ngSkipHydration: 'true' }, 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"] }]
113
+ }] });
124
114
 
125
115
  const TuiInputMonth = [
126
116
  TuiInputMonthComponent,
127
117
  TuiInputMonthDirective,
128
118
  TuiCalendarMonth,
119
+ TuiLabel,
120
+ TuiTextfieldComponent,
121
+ TuiTextfieldOptionsDirective,
122
+ TuiDropdownContent,
129
123
  ];
130
124
 
131
125
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month.mjs","sources":["../../../projects/kit/components/input-month/input-month.options.ts","../../../projects/kit/components/input-month/input-month.directive.ts","../../../projects/kit/components/input-month/input-month.component.ts","../../../projects/kit/components/input-month/input-month.template.html","../../../projects/kit/components/input-month/input-month.ts","../../../projects/kit/components/input-month/taiga-ui-kit-components-input-month.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 TuiMonth} 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 {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputMonthOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonth | null, any>;\n}\n\n/**\n * @deprecated remove in v5\n */\nexport const TUI_INPUT_MONTH_DEFAULT_OPTIONS: TuiInputMonthOptions = {\n icon: () => '@tui.calendar',\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n};\n\nexport const TUI_INPUT_MONTH_OPTIONS = new InjectionToken<TuiInputMonthOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputMonthOptionsProvider = (\n options: Partial<TuiInputMonthOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, effect, inject} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\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 {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\nimport {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens';\n\nimport {TUI_INPUT_MONTH_OPTIONS} from './input-month.options';\n\n@Directive({\n selector: 'input[tuiInputMonth]',\n providers: [\n tuiAsControl(TuiInputMonthDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthDirective extends TuiControl<TuiMonth | null> {\n private readonly textfield = inject(TuiTextfieldDirective);\n private readonly formatter = toSignal(inject(TUI_MONTH_FORMATTER));\n private readonly open = tuiDropdownOpen();\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly valueEffect = effect(() => {\n this.textfield.value.set(this.formatter()?.(this.value()) || '');\n });\n\n protected readonly calendarIn = effect(() => {\n this.calendar()?.value.set(this.value());\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n this.onChange(month);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && inject(TUI_IS_MOBILE);\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(this.dropdownEnabled());\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n Input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputMonthDirective} from './input-month.directive';\n\n@Component({\n selector: 'input[tuiInputMonth][type=\"month\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-month.template.html',\n styleUrl: './input-month.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {\n ngSkipHydration: 'true',\n },\n})\nexport class TuiInputMonthComponent {\n protected readonly host = inject(TuiInputMonthDirective);\n protected readonly min = signal<TuiMonth | null>(null);\n protected readonly max = signal<TuiMonth | null>(null);\n protected readonly calendarSync = effect(() => {\n const calendar = this.host.calendar();\n\n if (calendar) {\n calendar.min.set(this.min() ?? TUI_FIRST_DAY); // TODO(v5): remove TUI_FIRST_DAY fallback\n calendar.max.set(this.max() ?? TUI_LAST_DAY); // TODO(v5): remove TUI_LAST_DAY fallback\n }\n });\n\n // TODO(v5): use signal inputs\n @Input('min')\n public set minSetter(x: TuiMonth | null) {\n this.min.set(x);\n }\n\n // TODO(v5): use signal inputs\n @Input('max')\n public set maxSetter(x: TuiMonth | null) {\n this.max.set(x);\n }\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiMonth(year, month - 1));\n }\n}\n","@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","import {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\nimport {TuiInputMonthDirective} from './input-month.directive';\n\nexport const TuiInputMonth = [\n TuiInputMonthComponent,\n TuiInputMonthDirective,\n TuiCalendarMonth,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA;;AAEG;AACU,MAAA,+BAA+B,GAAyB;AACjE,IAAA,IAAI,EAAE,MAAM,eAAe;AAC3B,IAAA,gBAAgB,EAAE,8BAA8B;;AAGvC,MAAA,uBAAuB,GAAG,IAAI,cAAc,CACrD,SAAS,GAAG,yBAAyB,GAAG,EAAE,EAC1C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGQ,MAAA,4BAA4B,GAAG,CACxC,OAAsC,KAEtC,iBAAiB,CACb,uBAAuB,EACvB,OAAO,EACP,kCAAkC;;ACRpC,MAAO,sBAAuB,SAAQ,UAA2B,CAAA;AAZvE,IAAA,WAAA,GAAA;;AAaqB,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;AAEtB,QAAA,IAAA,CAAA,IAAI,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;AAChD,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CACnD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,CACrD;AAEkB,QAAA,IAAA,CAAA,WA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AAA,EAAA,SAAA,EAAA,CAAA,KAAA,EAAA,WAAA,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC7BnC,kWAYA,EAAA,MAAA,EAAA,CAAA,iTAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDOc,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;;4FAUpB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAZlC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oCAAoC,WACrC,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;AAC1B,qBAAA,EAAA,QAAA,EAAA,kWAAA,EAAA,MAAA,EAAA,CAAA,iTAAA,CAAA,EAAA;8BAiBU,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;gBAOD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;AE5CH,MAAA,aAAa,GAAG;IACzB,sBAAsB;IACtB,sBAAsB;IACtB,gBAAgB;;;ACRpB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-month.mjs","sources":["../../../projects/kit/components/input-month/input-month.options.ts","../../../projects/kit/components/input-month/input-month.directive.ts","../../../projects/kit/components/input-month/input-month.component.ts","../../../projects/kit/components/input-month/input-month.template.html","../../../projects/kit/components/input-month/input-month.ts","../../../projects/kit/components/input-month/taiga-ui-kit-components-input-month.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 TuiMonth} 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 {\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n TUI_INPUT_DATE_OPTIONS,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputMonthOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonth | null, any>;\n}\n\n/**\n * @deprecated remove in v5\n */\nexport const TUI_INPUT_MONTH_DEFAULT_OPTIONS: TuiInputMonthOptions = {\n icon: () => '@tui.calendar',\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n};\n\nexport const TUI_INPUT_MONTH_OPTIONS = new InjectionToken<TuiInputMonthOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputMonthOptionsProvider = (\n options: Partial<TuiInputMonthOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS);\n","import {computed, Directive, effect, inject} from '@angular/core';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TUI_INPUT_MONTH_OPTIONS} from './input-month.options';\n\n@Directive({\n selector: 'input[tuiInputMonth]',\n providers: [\n tuiAsControl(TuiInputMonthDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthDirective extends TuiControl<TuiMonth | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly months = inject(TUI_MONTHS);\n private readonly open = inject(TuiDropdownOpen).open;\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const formatted = value\n ? `${this.months()[value.month] ?? ''} ${value.formattedYear}`\n : '';\n\n this.input.value.set(formatted);\n });\n\n protected readonly calendarIn = effect(() => {\n this.calendar()?.value.set(this.value());\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n this.onChange(month);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && inject(TUI_IS_MOBILE);\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(this.dropdownEnabled());\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputMonthDirective} from './input-month.directive';\n\n@Component({\n selector: 'input[tuiInputMonth][type=\"month\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-month.template.html',\n styleUrl: './input-month.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {ngSkipHydration: 'true'},\n})\nexport class TuiInputMonthComponent {\n protected readonly host = inject(TuiInputMonthDirective);\n protected readonly calendarSync = effect(() => {\n const calendar = this.host.calendar();\n\n if (calendar) {\n calendar.min.set(this.min() ?? TUI_FIRST_DAY);\n calendar.max.set(this.max() ?? TUI_LAST_DAY);\n }\n });\n\n protected readonly min = input<TuiMonth | null>(null);\n protected readonly max = input<TuiMonth | 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] = value.split('-').map(Number);\n\n this.host.onChange(new TuiMonth(year, month - 1));\n }\n}\n","@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","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\nimport {TuiInputMonthDirective} from './input-month.directive';\n\nexport const TuiInputMonth = [\n TuiInputMonthComponent,\n TuiInputMonthDirective,\n TuiCalendarMonth,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAmBA;;AAEG;AACU,MAAA,+BAA+B,GAAyB;AACjE,IAAA,IAAI,EAAE,MAAM,eAAe;AAC3B,IAAA,gBAAgB,EAAE,8BAA8B;;AAGvC,MAAA,uBAAuB,GAAG,IAAI,cAAc,CACrD,SAAS,GAAG,yBAAyB,GAAG,EAAE,EAC1C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACjC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGQ,MAAA,4BAA4B,GAAG,CACxC,OAAsC,KAEtC,iBAAiB,CAAC,uBAAuB,EAAE,OAAO,EAAE,8BAA8B;;ACPhF,MAAO,sBAAuB,SAAQ,UAA2B,CAAA;AAZvE,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI;AAEjC,QAAA,IAAA,CAAA,IAAI,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;AAChD,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CACnD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,C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