@taiga-ui/kit 4.52.0-canary.24b31eb → 4.52.0-canary.2d877cf

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