@taiga-ui/kit 4.52.0-canary.e10b718 → 4.52.0-canary.e53e79e

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 (418) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  9. package/components/badge/badge.directive.d.ts +2 -2
  10. package/components/badge/badge.options.d.ts +1 -3
  11. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +2 -4
  14. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  15. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/chip/chip.directive.d.ts +2 -4
  18. package/components/chip/chip.options.d.ts +1 -3
  19. package/components/combo-box/combo-box.d.ts +5 -0
  20. package/components/combo-box/combo-box.directive.d.ts +5 -5
  21. package/components/combo-box/index.d.ts +1 -0
  22. package/components/comment/comment.directive.d.ts +2 -2
  23. package/components/confirm/confirm.component.d.ts +5 -3
  24. package/components/confirm/confirm.service.d.ts +3 -2
  25. package/{directives → components}/copy/copy.component.d.ts +2 -2
  26. package/{directives → components}/copy/copy.directive.d.ts +3 -4
  27. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  28. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  29. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  30. package/components/data-list-wrapper/index.d.ts +1 -1
  31. package/components/elastic-container/elastic-container.component.d.ts +1 -1
  32. package/components/files/file/file.options.d.ts +1 -1
  33. package/components/files/files/files.component.d.ts +2 -2
  34. package/components/files/input-files/input-files.options.d.ts +1 -3
  35. package/components/floating-container/floating-container.directive.d.ts +3 -2
  36. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  37. package/components/fullscreen/index.d.ts +1 -0
  38. package/components/index.d.ts +3 -1
  39. package/components/input-chip/input-chip.component.d.ts +9 -8
  40. package/components/input-chip/input-chip.d.ts +5 -1
  41. package/components/input-chip/input-chip.directive.d.ts +7 -12
  42. package/components/input-color/index.d.ts +1 -0
  43. package/components/input-color/input-color.component.d.ts +4 -4
  44. package/components/input-color/input-color.d.ts +5 -0
  45. package/components/input-date/input-date.d.ts +4 -1
  46. package/components/input-date/input-date.directive.d.ts +10 -12
  47. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  48. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  49. package/components/input-date-range/input-date-range.d.ts +4 -1
  50. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  51. package/components/input-date-time/input-date-time.d.ts +4 -1
  52. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  53. package/components/input-month/input-month.d.ts +4 -1
  54. package/components/input-month/input-month.directive.d.ts +5 -4
  55. package/components/input-month-range/input-month-range.d.ts +4 -1
  56. package/components/input-month-range/input-month-range.directive.d.ts +5 -4
  57. package/components/input-number/input-number.d.ts +4 -1
  58. package/components/input-number/input-number.directive.d.ts +7 -11
  59. package/components/input-number/quantum.directive.d.ts +1 -1
  60. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  61. package/components/input-phone/index.d.ts +1 -0
  62. package/components/input-phone/input-phone.d.ts +5 -0
  63. package/components/input-phone/input-phone.directive.d.ts +7 -7
  64. package/components/input-phone-international/index.d.ts +1 -0
  65. package/components/input-phone-international/input-phone-international.component.d.ts +26 -32
  66. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  67. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  68. package/components/input-pin/index.d.ts +1 -0
  69. package/components/input-pin/input-pin.component.d.ts +4 -4
  70. package/components/input-pin/input-pin.d.ts +5 -0
  71. package/components/input-range/input-range.component.d.ts +9 -12
  72. package/components/input-slider/input-slider.d.ts +4 -1
  73. package/components/input-slider/input-slider.directive.d.ts +3 -5
  74. package/components/input-time/input-time.component.d.ts +1 -3
  75. package/components/input-time/input-time.d.ts +4 -1
  76. package/components/input-time/input-time.directive.d.ts +8 -10
  77. package/components/input-year/input-year.d.ts +4 -1
  78. package/components/input-year/input-year.directive.d.ts +5 -5
  79. package/components/like/like.component.d.ts +2 -2
  80. package/components/like/like.options.d.ts +1 -1
  81. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  82. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  83. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  84. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  85. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  86. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  87. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  88. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  89. package/components/pagination/index.d.ts +1 -0
  90. package/components/pagination/pagination.component.d.ts +25 -54
  91. package/components/pagination/pagination.options.d.ts +7 -0
  92. package/components/pin/pin.directive.d.ts +2 -2
  93. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  94. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  95. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  96. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  97. package/components/preview/preview.component.d.ts +1 -1
  98. package/components/preview/preview.d.ts +2 -1
  99. package/components/preview/zoom/preview-zoom.component.d.ts +2 -1
  100. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  101. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  102. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  103. package/components/progress/progress.options.d.ts +1 -3
  104. package/components/push/push-alert.component.d.ts +4 -3
  105. package/components/push/push.component.d.ts +1 -1
  106. package/components/push/push.directive.d.ts +4 -6
  107. package/components/push/push.options.d.ts +5 -8
  108. package/components/push/push.service.d.ts +6 -2
  109. package/components/radio/radio.component.d.ts +1 -1
  110. package/components/radio-list/radio-list.component.d.ts +5 -3
  111. package/components/range/range-change.directive.d.ts +1 -2
  112. package/components/range/range.component.d.ts +16 -24
  113. package/components/rating/rating.component.d.ts +5 -5
  114. package/components/rating/rating.options.d.ts +6 -6
  115. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  116. package/components/segmented/segmented.component.d.ts +4 -6
  117. package/components/segmented/segmented.directive.d.ts +6 -7
  118. package/components/select/native-select/native-select.component.d.ts +7 -8
  119. package/components/select/select.d.ts +4 -1
  120. package/components/select/select.directive.d.ts +4 -3
  121. package/components/slider/helpers/key-steps.d.ts +1 -2
  122. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  123. package/components/slider/slider.options.d.ts +1 -6
  124. package/components/slides/slides.directive.d.ts +4 -4
  125. package/components/status/status.directive.d.ts +2 -2
  126. package/components/stepper/step.component.d.ts +6 -8
  127. package/components/stepper/stepper.component.d.ts +6 -11
  128. package/components/switch/switch.component.d.ts +1 -0
  129. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  130. package/components/tabs/tabs.options.d.ts +1 -6
  131. package/components/textarea/index.d.ts +2 -1
  132. package/components/textarea/textarea.component.d.ts +4 -4
  133. package/components/textarea/textarea.d.ts +6 -0
  134. package/components/textarea/textarea.directive.d.ts +13 -0
  135. package/components/toast/index.d.ts +5 -0
  136. package/components/toast/toast.component.d.ts +18 -0
  137. package/components/toast/toast.d.ts +3 -0
  138. package/components/toast/toast.directive.d.ts +7 -0
  139. package/components/toast/toast.options.d.ts +10 -0
  140. package/components/toast/toast.service.d.ts +17 -0
  141. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  142. package/components/tree/misc/tree.constants.d.ts +0 -3
  143. package/components/tree/misc/tree.tokens.d.ts +1 -6
  144. package/directives/button-close/button-close.directive.d.ts +2 -1
  145. package/directives/button-select/button-select.directive.d.ts +4 -4
  146. package/directives/chevron/chevron.directive.d.ts +2 -3
  147. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  148. package/directives/fade/fade.directive.d.ts +2 -2
  149. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  150. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  151. package/directives/index.d.ts +0 -2
  152. package/directives/password/password.directive.d.ts +1 -1
  153. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  154. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  155. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  156. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  157. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  158. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
  160. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-avatar.mjs +33 -44
  162. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  164. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-badge.mjs +16 -27
  166. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -7
  168. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  170. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +12 -18
  172. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +6 -6
  174. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -17
  176. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -8
  178. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -23
  180. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -6
  182. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-chip.mjs +18 -34
  184. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +42 -32
  186. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  188. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -5
  190. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -17
  192. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-copy.mjs +113 -0
  194. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  195. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -78
  196. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  198. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -12
  200. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-files.mjs +43 -50
  202. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -5
  204. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +16 -19
  206. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  208. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  209. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +69 -74
  210. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-input-color.mjs +24 -14
  212. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +34 -51
  214. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +27 -32
  216. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +32 -29
  218. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-input-date.mjs +44 -47
  220. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
  222. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +24 -18
  224. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-input-month.mjs +27 -21
  226. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-input-number.mjs +60 -77
  228. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +122 -138
  230. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +32 -23
  232. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +20 -11
  234. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-input-range.mjs +33 -29
  236. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +36 -45
  238. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-input-time.mjs +64 -70
  240. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-input-year.mjs +26 -18
  242. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -16
  244. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-like.mjs +6 -6
  246. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -82
  248. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -12
  250. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +37 -48
  252. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +37 -33
  254. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -8
  256. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-pagination.mjs +69 -140
  258. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  260. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-preview.mjs +59 -50
  262. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-progress.mjs +76 -81
  264. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  266. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-push.mjs +49 -57
  268. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  270. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -9
  272. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-range.mjs +41 -85
  274. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  276. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  278. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  280. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-components-select.mjs +82 -62
  282. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-components-slider.mjs +74 -82
  284. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-components-slides.mjs +16 -24
  286. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  288. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-components-stepper.mjs +45 -79
  290. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  292. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-components-tabs.mjs +36 -47
  294. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-components-textarea.mjs +54 -62
  296. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -15
  298. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-components-toast.mjs +164 -0
  300. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  301. package/fesm2022/taiga-ui-kit-components-tree.mjs +59 -63
  302. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-components.mjs +3 -1
  304. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  306. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  308. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  310. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
  312. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -15
  314. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  316. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-directives-fade.mjs +15 -17
  318. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  319. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  320. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  321. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -4
  322. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  323. package/fesm2022/taiga-ui-kit-directives-password.mjs +12 -14
  324. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  325. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -4
  326. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  327. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  328. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  329. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  330. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  331. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
  332. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  333. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +17 -22
  334. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  335. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +6 -8
  336. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  337. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -5
  338. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  339. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  340. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  342. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  343. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  344. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  345. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  346. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  347. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +31 -0
  348. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  349. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  350. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  351. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  352. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  353. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -5
  354. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  355. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  356. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  357. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  358. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  359. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
  360. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  361. package/fesm2022/taiga-ui-kit-tokens.mjs +7 -25
  362. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  363. package/fesm2022/taiga-ui-kit-utils.mjs +2 -8
  364. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  365. package/package.json +54 -46
  366. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  367. package/pipes/auto-color/index.d.ts +1 -0
  368. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  369. package/pipes/flag/flag.pipe.d.ts +14 -0
  370. package/pipes/flag/index.d.ts +1 -0
  371. package/pipes/index.d.ts +3 -1
  372. package/pipes/initials/index.d.ts +1 -0
  373. package/pipes/initials/initials.pipe.d.ts +7 -0
  374. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  375. package/styles/components/badge.less +1 -0
  376. package/styles/components/checkbox.less +1 -1
  377. package/styles/components/chip.less +12 -1
  378. package/styles/components/pin.less +0 -1
  379. package/styles/components/radio.less +1 -1
  380. package/styles/components/switch.less +1 -1
  381. package/styles/components/toast.less +44 -0
  382. package/tokens/i18n.d.ts +25 -26
  383. package/tokens/index.d.ts +0 -1
  384. package/tokens/items-handlers.d.ts +1 -7
  385. package/tokens/preview-icons.d.ts +1 -3
  386. package/utils/index.d.ts +0 -1
  387. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  388. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  389. package/components/accordion/accordion-item.component.d.ts +0 -25
  390. package/components/action-bar/action-bar.d.ts +0 -3
  391. package/components/action-bar/action-bar.directive.d.ts +0 -6
  392. package/components/pdf-viewer/index.d.ts +0 -4
  393. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  394. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  395. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  396. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  397. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  398. package/directives/lazy-loading/index.d.ts +0 -2
  399. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  400. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  401. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  402. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  403. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  404. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  405. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -119
  406. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  407. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  408. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  409. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  410. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  411. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  412. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  413. package/pipes/field-error/index.d.ts +0 -2
  414. package/tokens/validation-errors.d.ts +0 -5
  415. package/utils/phone.d.ts +0 -3
  416. /package/{directives → components}/copy/copy.d.ts +0 -0
  417. /package/{directives → components}/copy/copy.options.d.ts +0 -0
  418. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-date-time.mjs","sources":["../../../projects/kit/components/input-date-time/input-date-time.options.ts","../../../projects/kit/components/input-date-time/input-date-time.directive.ts","../../../projects/kit/components/input-date-time/input-date-time.component.ts","../../../projects/kit/components/input-date-time/input-date-time.template.html","../../../projects/kit/components/input-date-time/input-date-time.ts","../../../projects/kit/components/input-date-time/taiga-ui-kit-components-input-date-time.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {type MaskitoTimeMode} from '@maskito/kit';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiTime} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateTimeOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly timeMode: MaskitoTimeMode;\n readonly dateTimeSeparator: string;\n readonly valueTransformer: TuiValueTransformer<[TuiDay, TuiTime | null] | null, any>;\n}\n\nexport const TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS = {\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n timeMode: 'HH:MM',\n dateTimeSeparator: ', ',\n} as const;\n\nexport const TUI_INPUT_DATE_TIME_OPTIONS = new InjectionToken<TuiInputDateTimeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_TIME_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n }),\n },\n);\n\nexport const tuiInputDateTimeOptionsProvider = (\n options: Partial<TuiInputDateTimeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_DATE_TIME_OPTIONS, options, {\n ...TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n });\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {\n maskitoDateTimeOptionsGenerator,\n type MaskitoDateTimeParams,\n maskitoSelectionChangeHandler,\n type MaskitoTimeMode,\n} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_FILLER_LENGTH,\n MILLISECONDS_IN_DAY,\n TuiDay,\n TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiClamp, tuiSum} from '@taiga-ui/cdk/utils/math';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {TuiItemsHandlersValidator} from '@taiga-ui/core/directives/items-handlers';\nimport {\n TUI_DATE_ADAPTER,\n TuiInputDateBase,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\nimport {noop} from 'rxjs';\n\nimport {TUI_INPUT_DATE_TIME_OPTIONS} from './input-date-time.options';\n\nconst MIN_TIME = new TuiTime(0, 0);\nconst MAX_TIME = TuiTime.fromAbsoluteMilliseconds(MILLISECONDS_IN_DAY - 1);\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateTime]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateTimeDirective),\n tuiAsTextfieldAccessor(TuiInputDateTimeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_TIME_OPTIONS),\n ],\n hostDirectives: [\n MaskitoDirective,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n TuiWithTextfield,\n ],\n})\nexport class TuiInputDateTimeDirective\n extends TuiInputDateBase<readonly [TuiDay, TuiTime | null]>\n implements TuiTextfieldAccessor<readonly [TuiDay, TuiTime | null]>\n{\n private readonly timeFillers = toSignal(inject(TUI_TIME_TEXTS));\n\n protected override readonly options = inject(TUI_INPUT_DATE_TIME_OPTIONS);\n\n protected override readonly filler = tuiWithDateFiller((date) => {\n const time = this.timeFillers()?.[this.timeMode()] ?? '';\n\n return `${date}${this.options.dateTimeSeparator}${time}`;\n });\n\n protected override valueEffect = effect(noop);\n\n protected readonly identity = this.handlers.identityMatcher.set(\n (a, b) => tuiSum(...a.map(Number)) === tuiSum(...b.map(Number)),\n );\n\n protected readonly disabledItemHandler = tuiDirectiveBinding(\n TuiItemsHandlersValidator,\n 'disabledItemHandler',\n (value: readonly [TuiDay, TuiTime | null] | null) =>\n Boolean(value && this.handlers.disabledItemHandler()(value)),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n this.computeMask({\n dateMode: TUI_DATE_ADAPTER[this.format().mode],\n timeMode: this.timeMode(),\n min: this.toNativeDate([this.min(), this.minTime()]),\n max: this.toNativeDate([this.max(), this.maxTime()]),\n dateSeparator: this.format().separator,\n dateTimeSeparator: this.options.dateTimeSeparator,\n }),\n ),\n );\n\n public readonly timeMode = signal(this.options.timeMode);\n public readonly minTime = signal(MIN_TIME);\n public readonly maxTime = signal(MAX_TIME);\n\n // TODO(v5): use signal inputs\n @Input('timeMode')\n public set timeModeSetter(x: MaskitoTimeMode) {\n this.timeMode.set(x);\n }\n\n @Input('min')\n public override set minSetter(\n min: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(min) ? min : [min, null];\n\n this.min.set(date || this.options.min);\n this.minTime.set(time ?? MIN_TIME);\n }\n\n @Input('max')\n public override set maxSetter(\n max: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(max) ? max : [max, null];\n\n this.max.set(date || this.options.max);\n this.maxTime.set(time ?? MAX_TIME);\n }\n\n public setValue(value: readonly [TuiDay, TuiTime | null] | null): void {\n this.onChange(value);\n this.textfield.value.set(this.stringify(value));\n }\n\n public override setDate(newDate: TuiDay): void {\n const [date, time] = this.clampTime([newDate, this.value()?.[1] ?? null]);\n\n this.setValue([date, time]);\n this.open.set(false);\n setTimeout(\n (caretIndex = DATE_FILLER_LENGTH + this.options.dateTimeSeparator.length) =>\n this.el.setSelectionRange(caretIndex, caretIndex),\n );\n }\n\n public override writeValue(value: [TuiDay, TuiTime | null] | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n untracked(() => this.textfield.value.set(this.stringify(this.value())));\n }\n }\n\n protected override processCalendar(calendar: TuiCalendar): void {\n super.processCalendar(calendar);\n calendar.disabledItemHandler = (day: TuiDay) =>\n this.handlers.disabledItemHandler()([day, null]);\n }\n\n protected override onValueChange(value: string): void {\n this.textfield.value.set(value);\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n\n const [date = '', time = ''] = value.split(this.options.dateTimeSeparator);\n const parsedDate =\n date.length >= DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(date, this.format().mode)\n : null;\n const parsedTime =\n time.length === this.timeMode().length ? TuiTime.fromString(time) : null;\n\n if (!parsedDate || (time && !parsedTime)) {\n return this.onChange(null);\n }\n\n const [prevDate, prevTime = null] = this.value() ?? [];\n\n if (!prevDate?.daySame(parsedDate) || Number(parsedTime) !== Number(prevTime)) {\n this.onChange([parsedDate, parsedTime]);\n }\n }\n\n protected override stringify(\n value: readonly [TuiDay, TuiTime | null] | null,\n ): string {\n const [date, time] = value ?? [];\n\n const dateString =\n date?.toString(this.format().mode, this.format().separator) ?? '';\n const timeString = time?.toString(this.timeMode());\n\n return timeString\n ? `${dateString}${this.options.dateTimeSeparator}${timeString}`\n : dateString;\n }\n\n private clampTime([date, time]: [TuiDay, TuiTime | null]): [TuiDay, TuiTime | null] {\n const min = date.daySame(this.min())\n ? this.minTime().toAbsoluteMilliseconds()\n : -Infinity;\n const max = date.daySame(this.max())\n ? this.maxTime().toAbsoluteMilliseconds()\n : Infinity;\n\n return [\n date,\n time &&\n TuiTime.fromAbsoluteMilliseconds(\n tuiClamp(time.toAbsoluteMilliseconds(), min, max),\n ),\n ];\n }\n\n private computeMask(\n params: Omit<Required<MaskitoDateTimeParams>, 'timeStep'>,\n ): MaskitoOptions {\n const options = maskitoDateTimeOptionsGenerator(params);\n const {timeMode, dateMode, dateTimeSeparator} = params;\n const inputModeSwitchPlugin = maskitoSelectionChangeHandler((element) => {\n element.inputMode =\n element.selectionStart! >=\n dateMode.length + dateTimeSeparator.length + timeMode.indexOf(' AA')\n ? 'text'\n : 'numeric';\n });\n\n return {\n ...options,\n plugins: options.plugins.concat(\n timeMode.includes('AA') ? inputModeSwitchPlugin : [],\n ),\n };\n }\n\n private toNativeDate([{year, month, day}, {hours, minutes, seconds, ms}]: readonly [\n TuiDay,\n TuiTime,\n ]): Date {\n return new Date(year, month, day, hours, minutes, seconds, ms);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay, TuiTime} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiNativeTimePicker} from '@taiga-ui/kit/components/input-time';\n\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\n@Component({\n selector: 'input[tuiInputDateTime][type=\"datetime-local\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-date-time.template.html',\n styleUrls: ['./input-date-time.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {ngSkipHydration: 'true'},\n})\nexport class TuiInputDateTimeComponent extends TuiNativeTimePicker {\n protected readonly host = inject(TuiInputDateTimeDirective);\n protected readonly step = computed(() => this.getStep(this.host.timeMode()));\n protected readonly value = computed(() => this.toISOString(this.host.value()));\n\n protected min = computed(() =>\n this.toISOString([this.host.min(), this.host.minTime()]),\n );\n\n protected max = computed(() =>\n this.toISOString([this.host.max(), this.host.maxTime()]),\n );\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.setValue(null);\n }\n\n const date = new Date(value);\n const day = TuiDay.fromLocalNativeDate(date);\n const time = TuiTime.fromLocalNativeDate(date);\n\n this.host.setValue([day, time]);\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"datetime-local\"\n [attr.list]=\"list\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\n\nimport {TuiInputDateTimeComponent} from './input-date-time.component';\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\nexport const TuiInputDateTime = [\n TuiInputDateTimeDirective,\n TuiInputDateTimeComponent,\n TuiCalendar,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqBa,MAAA,mCAAmC,GAAG;AAC/C,IAAA,gBAAgB,EAAE,8BAA8B;AAChD,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,iBAAiB,EAAE,IAAI;;AAGd,MAAA,2BAA2B,GAAG,IAAI,cAAc,CACzD,SAAS,GAAG,6BAA6B,GAAG,EAAE,EAC9C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,GAAG,mCAAmC;KACzC,CAAC;AACL,CAAA;AAGE,MAAM,+BAA+B,GAAG,CAC3C,OAAyC,KAEzC,iBAAiB,CAAC,2BAA2B,EAAE,OAAO,EAAE;AACpD,IAAA,GAAG,kCAAkC;AACrC,IAAA,GAAG,mCAAmC;AACzC,CAAA;;ACKL,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;AAClC,MAAM,QAAQ,G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AAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1BtC,iYAcA,EAAA,MAAA,EAAA,CAAA,yVAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIc,mBAAmB,EAAA,QAAA,EAAA,kCAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAQpB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAVrC,SAAS;+BACI,gDAAgD,EAAA,OAAA,EACjD,CAAC,mBAAmB,CAAC,iBAGf,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,mBAAmB,CAAC,QAC/B,EAAC,eAAe,EAAE,MAAM,EAAC,EAAA,QAAA,EAAA,iYAAA,EAAA,MAAA,EAAA,CAAA,yVAAA,CAAA,EAAA;;;AEnBtB,MAAA,gBAAgB,GAAG;IAC5B,yBAAyB;IACzB,yBAAyB;IACzB,WAAW;;;ACRf;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-date-time.mjs","sources":["../../../projects/kit/components/input-date-time/input-date-time.options.ts","../../../projects/kit/components/input-date-time/input-date-time.directive.ts","../../../projects/kit/components/input-date-time/input-date-time.component.ts","../../../projects/kit/components/input-date-time/input-date-time.template.html","../../../projects/kit/components/input-date-time/input-date-time.ts","../../../projects/kit/components/input-date-time/taiga-ui-kit-components-input-date-time.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {type MaskitoTimeMode} from '@maskito/kit';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiTime} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateTimeOptions extends Omit<\n TuiInputDateOptionsNew,\n 'valueTransformer'\n> {\n readonly timeMode: MaskitoTimeMode;\n readonly dateTimeSeparator: string;\n readonly valueTransformer: TuiValueTransformer<[TuiDay, TuiTime | null] | null, any>;\n}\n\nexport const TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS = {\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n timeMode: 'HH:MM',\n dateTimeSeparator: ', ',\n} as const;\n\nexport const TUI_INPUT_DATE_TIME_OPTIONS = new InjectionToken<TuiInputDateTimeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_TIME_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n }),\n },\n);\n\nexport const tuiInputDateTimeOptionsProvider = (\n options: Partial<TuiInputDateTimeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_DATE_TIME_OPTIONS, options, {\n ...TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n });\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {\n maskitoDateTimeOptionsGenerator,\n type MaskitoDateTimeParams,\n maskitoSelectionChangeHandler,\n type MaskitoTimeMode,\n} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_FILLER_LENGTH,\n MILLISECONDS_IN_DAY,\n TuiDay,\n TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiClamp, tuiSum} from '@taiga-ui/cdk/utils/math';\nimport {type TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiItemsHandlersDirective,\n TuiItemsHandlersValidator,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiDropdownAuto} from '@taiga-ui/core/portals/dropdown';\nimport {TuiInputDateBase, tuiWithDateFiller} from '@taiga-ui/kit/components/input-date';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\nimport {noop} from 'rxjs';\n\nimport {TUI_INPUT_DATE_TIME_OPTIONS} from './input-date-time.options';\n\nconst MIN_TIME = new TuiTime(0, 0);\nconst MAX_TIME = TuiTime.fromAbsoluteMilliseconds(MILLISECONDS_IN_DAY - 1);\n\n@Directive({\n selector: 'input[tuiInputDateTime]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateTimeDirective),\n tuiAsTextfieldAccessor(TuiInputDateTimeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_TIME_OPTIONS),\n ],\n hostDirectives: [\n MaskitoDirective,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n TuiWithInput,\n ],\n})\nexport class TuiInputDateTimeDirective\n extends TuiInputDateBase<readonly [TuiDay, TuiTime | null]>\n implements TuiTextfieldAccessor<readonly [TuiDay, TuiTime | null]>\n{\n private readonly timeFillers = inject(TUI_TIME_TEXTS);\n\n protected override readonly options = inject(TUI_INPUT_DATE_TIME_OPTIONS);\n protected override readonly filler = tuiWithDateFiller(\n (date) =>\n `${date}${this.options.dateTimeSeparator}${this.timeFillers()?.[this.timeMode()] ?? ''}`,\n );\n\n protected override readonly valueEffect = effect(noop);\n protected override readonly identity = tuiDirectiveBinding(\n TuiItemsHandlersDirective,\n 'identityMatcher',\n (a, b) => tuiSum(...a.map(Number)) === tuiSum(...b.map(Number)),\n {},\n );\n\n protected readonly disabledItemHandler = tuiDirectiveBinding(\n TuiItemsHandlersValidator,\n 'disabledItemHandler',\n computed(\n () => (value: readonly [TuiDay, TuiTime | null] | null) =>\n Boolean(value && this.handlers.disabledItemHandler()(value)),\n ),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n this.computeMask({\n dateMode: this.format().mode,\n timeMode: this.timeMode(),\n min: this.toNativeDate([this.min(), this.minTime()]),\n max: this.toNativeDate([this.max(), this.maxTime()]),\n dateSeparator: this.format().separator,\n dateTimeSeparator: this.options.dateTimeSeparator,\n }),\n ),\n );\n\n public readonly timeMode = signal(this.options.timeMode);\n public readonly minTime = signal(MIN_TIME);\n public readonly maxTime = signal(MAX_TIME);\n\n // TODO(v5): use signal inputs\n @Input('timeMode')\n public set timeModeSetter(x: MaskitoTimeMode) {\n this.timeMode.set(x);\n }\n\n @Input('min')\n public override set minSetter(\n min: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(min) ? min : [min, null];\n\n this.min.set(date || this.options.min);\n this.minTime.set(time ?? MIN_TIME);\n }\n\n @Input('max')\n public override set maxSetter(\n max: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(max) ? max : [max, null];\n\n this.max.set(date || this.options.max);\n this.maxTime.set(time ?? MAX_TIME);\n }\n\n public setValue(value: readonly [TuiDay, TuiTime | null] | null): void {\n this.onChange(value);\n this.input.value.set(this.stringify(value));\n }\n\n public override setDate(newDate: TuiDay): void {\n const [date, time] = this.clampTime([newDate, this.value()?.[1] ?? null]);\n\n this.setValue([date, time]);\n this.open.set(false);\n setTimeout(\n (caretIndex = DATE_FILLER_LENGTH + this.options.dateTimeSeparator.length) =>\n this.el.setSelectionRange(caretIndex, caretIndex),\n );\n }\n\n public override writeValue(value: [TuiDay, TuiTime | null] | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n untracked(() => this.input.value.set(this.stringify(this.value())));\n }\n }\n\n protected override processCalendar(calendar: TuiCalendar): void {\n super.processCalendar(calendar);\n calendar.disabledItemHandler = (day: TuiDay) =>\n this.handlers.disabledItemHandler()([day, null]);\n }\n\n protected override onValueChange(value: string): void {\n this.input.value.set(value);\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n\n const [date = '', time = ''] = value.split(this.options.dateTimeSeparator);\n const parsedDate =\n date.length >= DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(date, this.format().mode)\n : null;\n const parsedTime =\n time.length === this.timeMode().length ? TuiTime.fromString(time) : null;\n\n if (!parsedDate || (time && !parsedTime)) {\n return this.onChange(null);\n }\n\n const [prevDate, prevTime = null] = this.value() ?? [];\n\n if (!prevDate?.daySame(parsedDate) || Number(parsedTime) !== Number(prevTime)) {\n this.onChange([parsedDate, parsedTime]);\n }\n }\n\n protected override stringify(\n value: readonly [TuiDay, TuiTime | null] | null,\n ): string {\n const [date, time] = value ?? [];\n\n const dateString =\n date?.toString(this.format().mode, this.format().separator) ?? '';\n const timeString = time?.toString(this.timeMode());\n\n return timeString\n ? `${dateString}${this.options.dateTimeSeparator}${timeString}`\n : dateString;\n }\n\n private clampTime([date, time]: [TuiDay, TuiTime | null]): [TuiDay, TuiTime | null] {\n const min = date.daySame(this.min())\n ? this.minTime().toAbsoluteMilliseconds()\n : -Infinity;\n const max = date.daySame(this.max())\n ? this.maxTime().toAbsoluteMilliseconds()\n : Infinity;\n\n return [\n date,\n time &&\n TuiTime.fromAbsoluteMilliseconds(\n tuiClamp(time.toAbsoluteMilliseconds(), min, max),\n ),\n ];\n }\n\n private computeMask(\n params: Omit<Required<MaskitoDateTimeParams>, 'timeStep'>,\n ): MaskitoOptions {\n const options = maskitoDateTimeOptionsGenerator(params);\n const {timeMode, dateMode, dateTimeSeparator} = params;\n const inputModeSwitchPlugin = maskitoSelectionChangeHandler((element) => {\n element.inputMode =\n element.selectionStart! >=\n dateMode.length + dateTimeSeparator.length + timeMode.indexOf(' AA')\n ? 'text'\n : 'numeric';\n });\n\n return {\n ...options,\n plugins: options.plugins.concat(\n timeMode.includes('AA') ? inputModeSwitchPlugin : [],\n ),\n };\n }\n\n private toNativeDate([{year, month, day}, {hours, minutes, seconds, ms}]: readonly [\n TuiDay,\n TuiTime,\n ]): Date {\n return new Date(year, month, day, hours, minutes, seconds, ms);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay, TuiTime} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiNativeTimePicker} from '@taiga-ui/kit/components/input-time';\n\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\n@Component({\n selector: 'input[tuiInputDateTime][type=\"datetime-local\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-date-time.template.html',\n styleUrl: './input-date-time.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {ngSkipHydration: 'true'},\n})\nexport class TuiInputDateTimeComponent extends TuiNativeTimePicker {\n protected readonly host = inject(TuiInputDateTimeDirective);\n protected readonly step = computed(() => this.getStep(this.host.timeMode()));\n protected readonly value = computed(() => this.toISOString(this.host.value()));\n\n protected min = computed(() =>\n this.toISOString([this.host.min(), this.host.minTime()]),\n );\n\n protected max = computed(() =>\n this.toISOString([this.host.max(), this.host.maxTime()]),\n );\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.setValue(null);\n }\n\n const date = new Date(value);\n const day = TuiDay.fromLocalNativeDate(date);\n const time = TuiTime.fromLocalNativeDate(date);\n\n this.host.setValue([day, time]);\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"datetime-local\"\n [attr.list]=\"list\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {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';\n\nimport {TuiInputDateTimeComponent} from './input-date-time.component';\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\nexport const TuiInputDateTime = [\n TuiInputDateTimeDirective,\n TuiInputDateTimeComponent,\n TuiCalendar,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBa,MAAA,mCAAmC,GAAG;AAC/C,IAAA,gBAAgB,EAAE,8BAA8B;AAChD,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,iBAAiB,EAAE,IAAI;;AAGd,MAAA,2BAA2B,GAAG,IAAI,cAAc,CACzD,SAAS,GAAG,6BAA6B,GAAG,EAAE,EAC9C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,GAAG,mCAAmC;KACzC,CAAC;AACL,CAAA;AAGE,MAAM,+BAA+B,GAAG,CAC3C,O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AA,EAAA,IAAA,EAAA,QAAA,EAAA,kDAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,IAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1BtC,iYAcA,EAAA,MAAA,EAAA,CAAA,yUAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDIc,mBAAmB,EAAA,QAAA,EAAA,kCAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAQpB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAVrC,SAAS;+BACI,gDAAgD,EAAA,OAAA,EACjD,CAAC,mBAAmB,CAAC,iBAGf,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,mBAAmB,CAAC,QAC/B,EAAC,eAAe,EAAE,MAAM,EAAC,EAAA,QAAA,EAAA,iYAAA,EAAA,MAAA,EAAA,CAAA,yUAAA,CAAA,EAAA;;;AEbtB,MAAA,gBAAgB,GAAG;IAC5B,yBAAyB;IACzB,yBAAyB;IACzB,WAAW;IACX,QAAQ;IACR,qBAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AClBtB;;AAEG;;;;"}
@@ -1,37 +1,39 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, computed, effect, signal, untracked, Input, Directive, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
4
- import { tuiDirectiveBinding, changeDateSeparator } from '@taiga-ui/cdk/utils/miscellaneous';
5
- import * as i1 from '@taiga-ui/core/components/textfield';
6
- import { TuiTextfieldComponent, tuiInjectAuxiliary, TuiTextfieldDirective, tuiTextfieldIcon, TuiWithNativePicker, TuiWithTextfield, TuiTextfieldContent } from '@taiga-ui/core/components/textfield';
7
- import { TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT } from '@taiga-ui/core/tokens';
3
+ import { tuiDirectiveBinding, tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
4
+ import * as i1$1 from '@taiga-ui/core/components/textfield';
5
+ import { TuiTextfieldComponent, tuiInjectAuxiliary, tuiTextfieldIcon, TuiWithNativePicker, TuiTextfieldContent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
6
+ import { TUI_DATE_FORMAT } from '@taiga-ui/core/tokens';
8
7
  import { TUI_DATE_TEXTS } from '@taiga-ui/kit/tokens';
9
8
  import { identity } from 'rxjs';
10
9
  import { TuiCalendar } from '@taiga-ui/core/components/calendar';
10
+ import { TuiLabel } from '@taiga-ui/core/components/label';
11
+ import { TuiDropdownContent } from '@taiga-ui/core/portals';
11
12
  import { TUI_LAST_DAY, TUI_FIRST_DAY, TuiDay, DATE_FILLER_LENGTH } from '@taiga-ui/cdk/date-time';
12
13
  import * as i4 from '@maskito/angular';
13
14
  import { MaskitoDirective } from '@maskito/angular';
14
15
  import { maskitoDateOptionsGenerator } from '@maskito/kit';
15
16
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
16
- import { TUI_ALLOW_SIGNAL_WRITES } from '@taiga-ui/cdk/constants';
17
17
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
18
18
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
19
19
  import { tuiAsOptionContent } from '@taiga-ui/core/components/data-list';
20
- import * as i2 from '@taiga-ui/core/directives/dropdown';
21
- import { tuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
20
+ import * as i1 from '@taiga-ui/core/components/input';
21
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
22
22
  import * as i3 from '@taiga-ui/core/directives/items-handlers';
23
- import { TuiItemsHandlersDirective, TUI_ITEMS_HANDLERS, TuiItemsHandlersValidator } from '@taiga-ui/core/directives/items-handlers';
23
+ import { TuiItemsHandlersDirective, TuiItemsHandlersValidator } from '@taiga-ui/core/directives/items-handlers';
24
+ import * as i2 from '@taiga-ui/core/portals/dropdown';
25
+ import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/portals/dropdown';
24
26
  import { TuiCalendarRange } from '@taiga-ui/kit/components/calendar-range';
25
27
  import { TuiSelectOption } from '@taiga-ui/kit/components/select';
26
28
  import { tuiMaskito } from '@taiga-ui/kit/utils';
27
- import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
28
29
 
30
+ function changeDateSeparator(dateString, newDateSeparator) {
31
+ return dateString.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);
32
+ }
29
33
  function tuiWithDateFiller(fn = identity) {
30
- const texts = toSignal(inject(TUI_DATE_TEXTS));
31
- const format = toSignal(inject(TUI_DATE_FORMAT), {
32
- initialValue: TUI_DEFAULT_DATE_FORMAT,
33
- });
34
- return tuiDirectiveBinding(TuiTextfieldComponent, 'fillerSetter', computed(() => {
34
+ const texts = inject(TUI_DATE_TEXTS);
35
+ const format = inject(TUI_DATE_FORMAT);
36
+ return tuiDirectiveBinding(TuiTextfieldComponent, 'filler', computed(() => {
35
37
  const { mode, separator } = format();
36
38
  const fillersMap = texts() ?? '';
37
39
  const filler = fillersMap && changeDateSeparator(fillersMap[mode], separator);
@@ -47,44 +49,38 @@ const TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW = {
47
49
  };
48
50
  const [TUI_INPUT_DATE_OPTIONS_NEW, tuiInputDateOptionsProviderNew] = tuiCreateOptions(TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);
49
51
 
50
- const TUI_DATE_ADAPTER = {
51
- DMY: 'dd/mm/yyyy',
52
- MDY: 'mm/dd/yyyy',
53
- YMD: 'yyyy/mm/dd',
54
- };
55
52
  class TuiInputDateBase extends TuiControl {
56
53
  constructor() {
57
54
  super(...arguments);
58
55
  this.calendar = tuiInjectAuxiliary((x) => x instanceof TuiCalendar || x instanceof TuiCalendarRange);
59
56
  this.el = tuiInjectElement();
60
- this.textfield = inject(TuiTextfieldDirective);
57
+ this.input = inject(TuiInputDirective);
61
58
  this.filler = tuiWithDateFiller();
62
59
  this.mobile = inject(TUI_IS_MOBILE);
63
- this.open = tuiDropdownOpen();
60
+ this.open = inject(TuiDropdownOpen).open;
64
61
  this.icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);
65
62
  this.handlers = inject(TuiItemsHandlersDirective);
63
+ this.format = inject(TUI_DATE_FORMAT);
66
64
  this.dropdownEnabled = tuiDropdownEnabled(computed(() => !this.native && this.interactive()));
65
+ this.identity = tuiDirectiveBinding(TuiItemsHandlersDirective, 'identityMatcher', (a, b) => a.daySame(b), {});
67
66
  this.options = inject(TUI_INPUT_DATE_OPTIONS_NEW);
68
- this.format = toSignal(inject(TUI_DATE_FORMAT), {
69
- initialValue: TUI_DEFAULT_DATE_FORMAT,
70
- });
71
67
  this.valueEffect = effect(() => {
72
68
  const value = this.stringify(this.value()) ||
73
69
  (this.filler().length === this.el.value.length ? '' : this.el.value);
74
- this.textfield.value.set(value);
75
- }, TUI_ALLOW_SIGNAL_WRITES);
70
+ this.input.value.set(value);
71
+ });
76
72
  this.calendarIn = effect(() => {
77
73
  if (this.calendar()) {
78
74
  this.processCalendar(this.calendar());
79
75
  }
80
- }, TUI_ALLOW_SIGNAL_WRITES);
76
+ });
81
77
  this.calendarOut = effect((onCleanup) => {
82
78
  const subscription = this.calendar()?.valueChange.subscribe((value) => this.setDate(value));
83
79
  onCleanup(() => subscription?.unsubscribe());
84
80
  });
85
- this.native = !!inject(TuiWithNativePicker, { optional: true }) && this.mobile;
86
81
  this.min = signal(this.options.min);
87
82
  this.max = signal(this.options.max);
83
+ this.native = !!inject(TuiWithNativePicker, { optional: true }) && this.mobile;
88
84
  }
89
85
  set minSetter(min) {
90
86
  this.min.set(min instanceof TuiDay ? min : this.options.min);
@@ -97,7 +93,7 @@ class TuiInputDateBase extends TuiControl {
97
93
  const changed = untracked(() => value !== this.value());
98
94
  if (changed || reset) {
99
95
  super.writeValue(value);
100
- this.textfield.value.set(this.stringify(this.value()));
96
+ this.input.value.set(this.stringify(this.value()));
101
97
  }
102
98
  }
103
99
  setDate(value) {
@@ -123,13 +119,12 @@ class TuiInputDateBase extends TuiControl {
123
119
  stringify(value) {
124
120
  return value?.toString(this.format().mode, this.format().separator) ?? '';
125
121
  }
126
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
127
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputDateBase, isStandalone: true, inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { listeners: { "input": "onValueChange($event.target.value)", "click.capture.stop": "onClick()" }, properties: { "attr.inputmode": "mobile && open() ? \"none\" : \"numeric\"", "disabled": "disabled()" } }, usesInheritance: true, ngImport: i0 }); }
122
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputDateBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
123
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiInputDateBase, isStandalone: true, inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { listeners: { "input": "onValueChange($event.target.value)", "click.capture.stop": "onClick()" }, properties: { "attr.inputmode": "mobile && open() ? \"none\" : \"numeric\"", "disabled": "disabled()" } }, usesInheritance: true, ngImport: i0 }); }
128
124
  }
129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateBase, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputDateBase, decorators: [{
130
126
  type: Directive,
131
127
  args: [{
132
- standalone: true,
133
128
  host: {
134
129
  '[attr.inputmode]': 'mobile && open() ? "none" : "numeric"',
135
130
  '[disabled]': 'disabled()',
@@ -147,10 +142,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
147
142
  class TuiInputDateDirective extends TuiInputDateBase {
148
143
  constructor() {
149
144
  super(...arguments);
150
- this.identity = inject(TUI_ITEMS_HANDLERS).identityMatcher.set((a, b) => a.daySame(b));
151
145
  this.mask = tuiMaskito(computed(() => maskitoDateOptionsGenerator({
152
146
  separator: this.format().separator,
153
- mode: TUI_DATE_ADAPTER[this.format().mode],
147
+ mode: this.format().mode,
154
148
  min: this.min().toLocalNativeDate(),
155
149
  max: this.max().toLocalNativeDate(),
156
150
  })));
@@ -161,17 +155,16 @@ class TuiInputDateDirective extends TuiInputDateBase {
161
155
  ? TuiDay.normalizeParse(value, this.format().mode)
162
156
  : null);
163
157
  }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
165
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputDateDirective, isStandalone: true, selector: "input[tuiInputDate]", providers: [
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputDateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
159
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiInputDateDirective, isStandalone: true, selector: "input[tuiInputDate]", providers: [
166
160
  tuiAsOptionContent(TuiSelectOption),
167
161
  tuiAsControl(TuiInputDateDirective),
168
162
  tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),
169
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i2.TuiDropdownAuto }, { directive: i3.TuiItemsHandlersValidator }, { directive: i4.MaskitoDirective }], ngImport: i0 }); }
163
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiDropdownAuto }, { directive: i3.TuiItemsHandlersValidator }, { directive: i4.MaskitoDirective }], ngImport: i0 }); }
170
164
  }
171
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateDirective, decorators: [{
165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputDateDirective, decorators: [{
172
166
  type: Directive,
173
167
  args: [{
174
- standalone: true,
175
168
  selector: 'input[tuiInputDate]',
176
169
  providers: [
177
170
  tuiAsOptionContent(TuiSelectOption),
@@ -179,7 +172,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
179
172
  tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),
180
173
  ],
181
174
  hostDirectives: [
182
- TuiWithTextfield,
175
+ TuiWithInput,
183
176
  TuiDropdownAuto,
184
177
  TuiItemsHandlersValidator,
185
178
  MaskitoDirective,
@@ -199,15 +192,15 @@ class TuiInputDateComponent {
199
192
  const [year = 0, month = 0, day = 0] = value.split('-').map(Number);
200
193
  this.host.onChange(new TuiDay(year, month - 1, day));
201
194
  }
202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
203
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputDateComponent, isStandalone: true, selector: "input[tuiInputDate][type=\"date\"]", inputs: { list: "list" }, host: { attributes: { "ngSkipHydration": "true" }, properties: { "attr.list": "null" } }, hostDirectives: [{ directive: i1.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;top:0;left:auto;right:0;bottom:0;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
195
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
196
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiInputDateComponent, isStandalone: true, selector: "input[tuiInputDate][type=\"date\"]", inputs: { list: "list" }, host: { attributes: { "ngSkipHydration": "true" }, properties: { "attr.list": "null" } }, hostDirectives: [{ directive: i1$1.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;inset:0 0 0 auto;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
204
197
  }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputDateComponent, decorators: [{
198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputDateComponent, decorators: [{
206
199
  type: Component,
207
200
  args: [{ selector: 'input[tuiInputDate][type="date"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: {
208
201
  ngSkipHydration: 'true',
209
202
  '[attr.list]': 'null',
210
- }, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;top:0;left:auto;right:0;bottom:0;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
203
+ }, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;inset:0 0 0 auto;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
211
204
  }], propDecorators: { list: [{
212
205
  type: Input
213
206
  }] } });
@@ -216,11 +209,15 @@ const TuiInputDate = [
216
209
  TuiInputDateDirective,
217
210
  TuiInputDateComponent,
218
211
  TuiCalendar,
212
+ TuiLabel,
213
+ TuiTextfieldComponent,
214
+ TuiTextfieldOptionsDirective,
215
+ TuiDropdownContent,
219
216
  ];
220
217
 
221
218
  /**
222
219
  * Generated bundle index. Do not edit.
223
220
  */
224
221
 
225
- export { TUI_DATE_ADAPTER, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW, TUI_INPUT_DATE_OPTIONS_NEW, TuiInputDate, TuiInputDateBase, TuiInputDateComponent, TuiInputDateDirective, tuiInputDateOptionsProviderNew, tuiWithDateFiller };
222
+ export { TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW, TUI_INPUT_DATE_OPTIONS_NEW, TuiInputDate, TuiInputDateBase, TuiInputDateComponent, TuiInputDateDirective, tuiInputDateOptionsProviderNew, tuiWithDateFiller };
226
223
  //# sourceMappingURL=taiga-ui-kit-components-input-date.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-date.mjs","sources":["../../../projects/kit/components/input-date/date-filler.ts","../../../projects/kit/components/input-date/input-date.options.ts","../../../projects/kit/components/input-date/input-date.directive.ts","../../../projects/kit/components/input-date/input-date.component.ts","../../../projects/kit/components/input-date/input-date.template.html","../../../projects/kit/components/input-date/input-date.ts","../../../projects/kit/components/input-date/taiga-ui-kit-components-input-date.ts"],"sourcesContent":["import {computed, inject, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {\n changeDateSeparator,\n tuiDirectiveBinding,\n} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TUI_DATE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {identity} from 'rxjs';\n\nexport function tuiWithDateFiller(\n fn: (dateFiller: string) => string = identity,\n): Signal<string> {\n const texts = toSignal(inject(TUI_DATE_TEXTS));\n const format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n return tuiDirectiveBinding(\n TuiTextfieldComponent,\n 'fillerSetter',\n computed(() => {\n const {mode, separator} = format();\n const fillersMap = texts() ?? '';\n const filler = fillersMap && changeDateSeparator(fillersMap[mode], separator);\n\n return fn(filler);\n }),\n {},\n );\n}\n","import {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, type TuiDay} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiInputDateOptionsNew {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly max: TuiDay;\n readonly min: TuiDay;\n readonly valueTransformer: TuiValueTransformer<TuiDay | null, any>;\n}\n\nexport const TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW = {\n icon: () => '@tui.calendar',\n min: TUI_FIRST_DAY,\n max: TUI_LAST_DAY,\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n} as const;\n\nexport const [TUI_INPUT_DATE_OPTIONS_NEW, tuiInputDateOptionsProviderNew] =\n tuiCreateOptions<TuiInputDateOptionsNew>(TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoDateMode, maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {\n DATE_FILLER_LENGTH,\n type TuiDateMode,\n TuiDay,\n type TuiDayRange,\n type TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n tuiInjectAuxiliary,\n TuiTextfieldDirective,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n TuiItemsHandlersDirective,\n TuiItemsHandlersValidator,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {tuiWithDateFiller} from './date-filler';\nimport {\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from './input-date.options';\n\nexport const TUI_DATE_ADAPTER: Record<TuiDateMode, MaskitoDateMode> = {\n DMY: 'dd/mm/yyyy',\n MDY: 'mm/dd/yyyy',\n YMD: 'yyyy/mm/dd',\n};\n\n@Directive({\n standalone: true,\n host: {\n '[attr.inputmode]': 'mobile && open() ? \"none\" : \"numeric\"',\n '[disabled]': 'disabled()',\n '(input)': 'onValueChange($event.target.value)',\n '(click.capture.stop)': 'onClick()',\n },\n})\nexport abstract class TuiInputDateBase<\n T extends TuiDay | TuiDayRange | readonly [TuiDay, TuiTime | null],\n> extends TuiControl<T | null> {\n private readonly calendar = tuiInjectAuxiliary<TuiCalendar | TuiCalendarRange>(\n (x) => x instanceof TuiCalendar || x instanceof TuiCalendarRange,\n );\n\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly textfield = inject(TuiTextfieldDirective);\n protected readonly filler = tuiWithDateFiller();\n protected readonly mobile = inject(TUI_IS_MOBILE);\n protected readonly open = tuiDropdownOpen();\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TuiItemsHandlersDirective);\n\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly options: Omit<TuiInputDateOptionsNew, 'valueTransformer'> = inject(\n TUI_INPUT_DATE_OPTIONS_NEW,\n );\n\n protected readonly format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n protected readonly valueEffect = effect(() => {\n const value =\n this.stringify(this.value()) ||\n (this.filler().length === this.el.value.length ? '' : this.el.value);\n\n this.textfield.value.set(value);\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.valueChange.subscribe((value) =>\n this.setDate(value),\n );\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && this.mobile;\n\n public readonly min = signal(this.options.min);\n public readonly max = signal(this.options.max);\n\n protected abstract onValueChange(value: string): void;\n\n @Input('min')\n public set minSetter(min: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.min.set(min instanceof TuiDay ? min : this.options.min);\n }\n\n @Input('max')\n public set maxSetter(max: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.max.set(max instanceof TuiDay ? max : this.options.max);\n }\n\n public override writeValue(value: T | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n this.textfield.value.set(this.stringify(this.value()));\n }\n }\n\n public setDate(value: TuiDay | TuiDayRange | readonly TuiDay[]): void {\n this.onChange(value as T);\n this.open.set(false);\n\n if (!this.el.closest('tui-dropdown')) {\n this.el.blur();\n }\n }\n\n protected processCalendar(calendar: TuiCalendar | TuiCalendarRange): void {\n const value = this.value();\n\n calendar.value = Array.isArray(value) ? value[0] : value;\n calendar.disabledItemHandler =\n this.handlers.disabledItemHandler() as TuiBooleanHandler<\n TuiDay | TuiDayRange\n >;\n calendar.min = this.min();\n calendar.max = this.max();\n }\n\n protected onClick(): void {\n if (!this.mobile && this.dropdownEnabled()) {\n this.open.update((open) => !open);\n }\n }\n\n protected stringify(value: T | null): string {\n return value?.toString(this.format().mode, this.format().separator) ?? '';\n }\n}\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDate]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),\n ],\n hostDirectives: [\n TuiWithTextfield,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n MaskitoDirective,\n ],\n})\nexport class TuiInputDateDirective extends TuiInputDateBase<TuiDay> {\n protected readonly identity = inject<TuiItemsHandlers<TuiDay>>(\n TUI_ITEMS_HANDLERS,\n ).identityMatcher.set((a, b) => a.daySame(b));\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputDateDirective} from './input-date.directive';\n\n@Component({\n selector: 'input[tuiInputDate][type=\"date\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-date.template.html',\n styleUrls: ['./input-date.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {\n ngSkipHydration: 'true',\n '[attr.list]': 'null',\n },\n})\nexport class TuiInputDateComponent {\n protected readonly host = inject(TuiInputDateDirective);\n\n @Input()\n public list: string | null = null;\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0, day = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiDay(year, month - 1, day));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\n\nimport {TuiInputDateComponent} from './input-date.component';\nimport {TuiInputDateDirective} from './input-date.directive';\n\nexport const TuiInputDate = [\n TuiInputDateDirective,\n TuiInputDateComponent,\n TuiCalendar,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWgB,SAAA,iBAAiB,CAC7B,EAAA,GAAqC,QAAQ,EAAA;IAE7C,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE;AAC7C,QAAA,YAAY,EAAE,uBAAuB;AACxC,KAAA,CAAC;IAEF,OAAO,mBAAmB,CACtB,qBAAqB,EACrB,cAAc,EACd,QAAQ,CAAC,MAAK;QACV,MAAM,EAAC,IAAI,EAAE,SAAS,EAAC,GAAG,MAAM,EAAE;AAClC,QAAA,MAAM,UAAU,GAAG,KAAK,EAAE,IAAI,EAAE;AAChC,QAAA,MAAM,MAAM,GAAG,UAAU,IAAI,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;AAE7E,QAAA,OAAO,EAAE,CAAC,MAAM,CAAC;AACrB,KAAC,CAAC,EACF,EAAE,CACL;AACL;;ACfa,MAAA,kCAAkC,GAAG;AAC9C,IAAA,IAAI,EAAE,MAAM,eAAe;AAC3B,IAAA,GAAG,EAAE,aAAa;AAClB,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,gBAAgB,EAAE,8BAA8B;;AAG7C,MAAM,CAAC,0BAA0B,EAAE,8BAA8B,CAAC,GACrE,gB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A,EAAA,uYAAA,EAAA,MAAA,EAAA,CAAA,6TAAA,CAAA,EAAA;8BAMM,IAAI,EAAA,CAAA;sBADV;;;AE1BQ,MAAA,YAAY,GAAG;IACxB,qBAAqB;IACrB,qBAAqB;IACrB,WAAW;;;ACRf;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-date.mjs","sources":["../../../projects/kit/components/input-date/date-filler.ts","../../../projects/kit/components/input-date/input-date.options.ts","../../../projects/kit/components/input-date/input-date.directive.ts","../../../projects/kit/components/input-date/input-date.component.ts","../../../projects/kit/components/input-date/input-date.template.html","../../../projects/kit/components/input-date/input-date.ts","../../../projects/kit/components/input-date/taiga-ui-kit-components-input-date.ts"],"sourcesContent":["import {computed, inject, type Signal} from '@angular/core';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {TUI_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TUI_DATE_TEXTS} from '@taiga-ui/kit/tokens';\nimport {identity} from 'rxjs';\n\nfunction changeDateSeparator(dateString: string, newDateSeparator: string): string {\n return dateString.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);\n}\n\nexport function tuiWithDateFiller(\n fn: (dateFiller: string) => string = identity,\n): Signal<string> {\n const texts = inject(TUI_DATE_TEXTS);\n const format = inject(TUI_DATE_FORMAT);\n\n return tuiDirectiveBinding(\n TuiTextfieldComponent,\n 'filler',\n computed(() => {\n const {mode, separator} = format();\n const fillersMap = texts() ?? '';\n const filler = fillersMap && changeDateSeparator(fillersMap[mode], separator);\n\n return fn(filler);\n }),\n {},\n );\n}\n","import {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, type TuiDay} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiInputDateOptionsNew {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly max: TuiDay;\n readonly min: TuiDay;\n readonly valueTransformer: TuiValueTransformer<TuiDay | null, any>;\n}\n\nexport const TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW = {\n icon: () => '@tui.calendar',\n min: TUI_FIRST_DAY,\n max: TUI_LAST_DAY,\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n} as const;\n\nexport const [TUI_INPUT_DATE_OPTIONS_NEW, tuiInputDateOptionsProviderNew] =\n tuiCreateOptions<TuiInputDateOptionsNew>(TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_FILLER_LENGTH,\n TuiDay,\n type TuiDayRange,\n type TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {\n type TuiItemsHandlers,\n TuiItemsHandlersDirective,\n TuiItemsHandlersValidator,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {tuiWithDateFiller} from './date-filler';\nimport {\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from './input-date.options';\n\n@Directive({\n host: {\n '[attr.inputmode]': 'mobile && open() ? \"none\" : \"numeric\"',\n '[disabled]': 'disabled()',\n '(input)': 'onValueChange($event.target.value)',\n '(click.capture.stop)': 'onClick()',\n },\n})\nexport abstract class TuiInputDateBase<\n T extends TuiDay | TuiDayRange | readonly [TuiDay, TuiTime | null],\n> extends TuiControl<T | null> {\n private readonly calendar = tuiInjectAuxiliary<TuiCalendar | TuiCalendarRange>(\n (x) => x instanceof TuiCalendar || x instanceof TuiCalendarRange,\n );\n\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly input = inject(TuiInputDirective);\n protected readonly filler = tuiWithDateFiller();\n protected readonly mobile = inject(TUI_IS_MOBILE);\n protected readonly open = inject(TuiDropdownOpen).open;\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TuiItemsHandlersDirective);\n protected readonly format = inject(TUI_DATE_FORMAT);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly identity = tuiDirectiveBinding(\n TuiItemsHandlersDirective,\n 'identityMatcher',\n (a: TuiDay, b: TuiDay) => a.daySame(b),\n {},\n );\n\n protected readonly options: Omit<TuiInputDateOptionsNew, 'valueTransformer'> = inject(\n TUI_INPUT_DATE_OPTIONS_NEW,\n );\n\n protected readonly valueEffect = effect(() => {\n const value =\n this.stringify(this.value()) ||\n (this.filler().length === this.el.value.length ? '' : this.el.value);\n\n this.input.value.set(value);\n });\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.valueChange.subscribe((value) =>\n this.setDate(value),\n );\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly min = signal(this.options.min);\n public readonly max = signal(this.options.max);\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && this.mobile;\n\n protected abstract onValueChange(value: string): void;\n\n @Input('min')\n public set minSetter(min: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.min.set(min instanceof TuiDay ? min : this.options.min);\n }\n\n @Input('max')\n public set maxSetter(max: Exclude<T, TuiDayRange> | TuiDay | null) {\n this.max.set(max instanceof TuiDay ? max : this.options.max);\n }\n\n public override writeValue(value: T | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n this.input.value.set(this.stringify(this.value()));\n }\n }\n\n public setDate(value: TuiDay | TuiDayRange | readonly TuiDay[]): void {\n this.onChange(value as T);\n this.open.set(false);\n\n if (!this.el.closest('tui-dropdown')) {\n this.el.blur();\n }\n }\n\n protected processCalendar(calendar: TuiCalendar | TuiCalendarRange): void {\n const value = this.value();\n\n calendar.value = Array.isArray(value) ? value[0] : value;\n calendar.disabledItemHandler =\n this.handlers.disabledItemHandler() as TuiBooleanHandler<\n TuiDay | TuiDayRange\n >;\n calendar.min = this.min();\n calendar.max = this.max();\n }\n\n protected onClick(): void {\n if (!this.mobile && this.dropdownEnabled()) {\n this.open.update((open) => !open);\n }\n }\n\n protected stringify(value: T | null): string {\n return value?.toString(this.format().mode, this.format().separator) ?? '';\n }\n}\n\n@Directive({\n selector: 'input[tuiInputDate]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),\n ],\n hostDirectives: [\n TuiWithInput,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n MaskitoDirective,\n ],\n})\nexport class TuiInputDateDirective extends TuiInputDateBase<TuiDay> {\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: this.format().mode,\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputDateDirective} from './input-date.directive';\n\n@Component({\n selector: 'input[tuiInputDate][type=\"date\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-date.template.html',\n styleUrl: './input-date.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {\n ngSkipHydration: 'true',\n '[attr.list]': 'null',\n },\n})\nexport class TuiInputDateComponent {\n protected readonly host = inject(TuiInputDateDirective);\n\n @Input()\n public list: string | null = null;\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0, day = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiDay(year, month - 1, day));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {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';\n\nimport {TuiInputDateComponent} from './input-date.component';\nimport {TuiInputDateDirective} from './input-date.directive';\n\nexport const TuiInputDate = [\n TuiInputDateDirective,\n TuiInputDateComponent,\n TuiCalendar,\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,SAAS,mBAAmB,CAAC,UAAkB,EAAE,gBAAwB,EAAA;IACrE,OAAO,UAAU,CAAC,UAAU,CAAC,sBAAsB,EAAE,gBAAgB,CAAC;AAC1E;AAEgB,SAAA,iBAAiB,CAC7B,EAAA,GAAqC,QAAQ,EAAA;AAE7C,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AACpC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,eAAe,CAAC;IAEtC,OAAO,mBAAmB,CACtB,qBAAqB,EACrB,QAAQ,EACR,QAAQ,CAAC,MAAK;QACV,MAAM,EAAC,IAAI,EAAE,SAAS,EAAC,GAAG,MAAM,EAAE;AAClC,QAAA,MAAM,UAAU,GAAG,KAAK,EAAE,IAAI,EAAE;AAChC,QAAA,MAAM,MAAM,GAAG,UAAU,IAAI,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;AAE7E,QAAA,OAAO,EAAE,CAAC,MAAM,CAAC;AACrB,KAAC,CAAC,EACF,EAAE,CACL;AACL;;ACba,MAAA,kCAAkC,GAAG;AAC9C,I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AAA,CAAA;sBADV;;;AEpBQ,MAAA,YAAY,GAAG;IACxB,qBAAqB;IACrB,qBAAqB;IACrB,WAAW;IACX,QAAQ;IACR,qBAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AClBtB;;AAEG;;;;"}
@@ -2,7 +2,6 @@ import { AsyncPipe } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { ContentChild, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
4
  import { NgControl } from '@angular/forms';
5
- import { TuiLet } from '@taiga-ui/cdk/directives/let';
6
5
  import { tuiControlValue } from '@taiga-ui/cdk/observables';
7
6
  import { defer } from 'rxjs';
8
7
 
@@ -10,12 +9,12 @@ class TuiInputInline {
10
9
  constructor() {
11
10
  this.value$ = defer(() => tuiControlValue(this.control));
12
11
  }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputInline, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputInline, isStandalone: true, selector: "tui-input-inline", queries: [{ propertyName: "control", first: true, predicate: NgControl, descendants: true }], ngImport: i0, template: "<ng-container *tuiLet=\"value$ | async as value\">\n <span\n class=\"t-before\"\n [textContent]=\"value\"\n ></span>\n\n @if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n }\n</ng-container>\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: TuiLet, selector: "[tuiLet]", inputs: ["tuiLet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputInline, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiInputInline, isStandalone: true, selector: "tui-input-inline", queries: [{ propertyName: "control", first: true, predicate: NgControl, descendants: true }], ngImport: i0, template: "@let value = value$ | async;\n<span\n class=\"t-before\"\n [textContent]=\"value\"\n></span>\n\n@if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
15
14
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputInline, decorators: [{
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputInline, decorators: [{
17
16
  type: Component,
18
- args: [{ selector: 'tui-input-inline', imports: [AsyncPipe, TuiLet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *tuiLet=\"value$ | async as value\">\n <span\n class=\"t-before\"\n [textContent]=\"value\"\n ></span>\n\n @if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n }\n</ng-container>\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"] }]
17
+ args: [{ selector: 'tui-input-inline', imports: [AsyncPipe], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "@let value = value$ | async;\n<span\n class=\"t-before\"\n [textContent]=\"value\"\n></span>\n\n@if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"] }]
19
18
  }], propDecorators: { control: [{
20
19
  type: ContentChild,
21
20
  args: [NgControl]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-inline.mjs","sources":["../../../projects/kit/components/input-inline/input-inline.component.ts","../../../projects/kit/components/input-inline/input-inline.template.html","../../../projects/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {TuiLet} from '@taiga-ui/cdk/directives/let';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {defer} from 'rxjs';\n\n@Component({\n selector: 'tui-input-inline',\n imports: [AsyncPipe, TuiLet],\n templateUrl: './input-inline.template.html',\n styleUrls: ['./input-inline.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputInline {\n @ContentChild(NgControl)\n private readonly control?: NgControl;\n\n protected readonly value$ = defer(() => tuiControlValue(this.control));\n}\n","<ng-container *tuiLet=\"value$ | async as value\">\n <span\n class=\"t-before\"\n [textContent]=\"value\"\n ></span>\n\n @if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n }\n</ng-container>\n<ng-content select=\"input\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAoBa,cAAc,CAAA;AAR3B,IAAA,WAAA,GAAA;AAYuB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACzE;+GALY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,iHACT,SAAS,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrB3B,oYAgBA,EDFc,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,SAAS,8CAAE,MAAM,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMlB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAR1B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EACnB,OAAA,EAAA,CAAC,SAAS,EAAE,MAAM,CAAC,EAGb,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oYAAA,EAAA,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA;8BAI9B,OAAO,EAAA,CAAA;sBADvB,YAAY;uBAAC,SAAS;;;AErB3B;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-inline.mjs","sources":["../../../projects/kit/components/input-inline/input-inline.component.ts","../../../projects/kit/components/input-inline/input-inline.template.html","../../../projects/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {defer} from 'rxjs';\n\n@Component({\n selector: 'tui-input-inline',\n imports: [AsyncPipe],\n templateUrl: './input-inline.template.html',\n styleUrl: './input-inline.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputInline {\n @ContentChild(NgControl)\n private readonly control?: NgControl;\n\n protected readonly value$ = defer(() => tuiControlValue(this.control));\n}\n","@let value = value$ | async;\n<span\n class=\"t-before\"\n [textContent]=\"value\"\n></span>\n\n@if (!value) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAmBa,cAAc,CAAA;AAR3B,IAAA,WAAA,GAAA;AAYuB,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACzE;+GALY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,EACT,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,SAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,SAAS,ECpB3B,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,6SAeA,8oBDFc,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,cAAc,EAAA,UAAA,EAAA,CAAA;kBAR1B,SAAS;+BACI,kBAAkB,EAAA,OAAA,EACnB,CAAC,SAAS,CAAC,EAAA,aAAA,EAGL,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6SAAA,EAAA,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA;8BAI9B,OAAO,EAAA,CAAA;sBADvB,YAAY;uBAAC,SAAS;;;AEpB3B;;AAEG;;;;"}
@@ -1,16 +1,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
8
  import { toSignal } from '@angular/core/rxjs-interop';
5
9
  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
10
  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';
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';
12
15
  import { TUI_MONTH_FORMATTER } from '@taiga-ui/kit/tokens';
13
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
16
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
14
17
  import { TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW } from '@taiga-ui/kit/components/input-date';
15
18
  import { TUI_INPUT_MONTH_OPTIONS } from '@taiga-ui/kit/components/input-month';
16
19
 
@@ -25,9 +28,9 @@ const tuiInputMonthRangeOptionsProvider = (options) => tuiProvideOptions(TUI_INP
25
28
  class TuiInputMonthRangeDirective extends TuiControl {
26
29
  constructor() {
27
30
  super(...arguments);
28
- this.textfield = inject(TuiTextfieldDirective);
31
+ this.input = inject(TuiInputDirective);
29
32
  this.formatter = toSignal(inject(TUI_MONTH_FORMATTER));
30
- this.open = tuiDropdownOpen();
33
+ this.open = inject(TuiDropdownOpen).open;
31
34
  this.intermediateValue = signal(null);
32
35
  this.calendar = tuiInjectAuxiliary((x) => x instanceof TuiCalendarMonth);
33
36
  this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);
@@ -38,8 +41,8 @@ class TuiInputMonthRangeDirective extends TuiControl {
38
41
  const string = value
39
42
  ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to)
40
43
  : '';
41
- this.textfield.value.set(string);
42
- }, TUI_ALLOW_SIGNAL_WRITES);
44
+ this.input.value.set(string);
45
+ });
43
46
  this.calendarInit = effect(() => {
44
47
  const calendar = this.calendar();
45
48
  if (calendar) {
@@ -48,11 +51,11 @@ class TuiInputMonthRangeDirective extends TuiControl {
48
51
  });
49
52
  this.calendarSync = effect(() => {
50
53
  this.calendar()?.value.set(this.intermediateValue() ?? this.value());
51
- }, TUI_ALLOW_SIGNAL_WRITES);
54
+ });
52
55
  // TODO: use linked signal (Angular 19+)
53
56
  this.resetIntermediateValue = effect(() => {
54
57
  this.intermediateValue.set(this.value() && null);
55
- }, TUI_ALLOW_SIGNAL_WRITES);
58
+ });
56
59
  this.onMonthClickEffect = effect((onCleanup) => {
57
60
  const subscription = this.calendar()?.monthClick.subscribe((month) => {
58
61
  const intermediateValue = this.intermediateValue();
@@ -71,22 +74,21 @@ class TuiInputMonthRangeDirective extends TuiControl {
71
74
  this.onChange(null);
72
75
  this.open.set(true);
73
76
  }
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: [
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputMonthRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
78
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiInputMonthRangeDirective, isStandalone: true, selector: "input[tuiInputMonthRange]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
76
79
  tuiAsControl(TuiInputMonthRangeDirective),
77
80
  tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),
78
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i1.TuiSelectLike }, { directive: i2.TuiDropdownAuto }], ngImport: i0 }); }
81
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
79
82
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthRangeDirective, decorators: [{
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiInputMonthRangeDirective, decorators: [{
81
84
  type: Directive,
82
85
  args: [{
83
- standalone: true,
84
86
  selector: 'input[tuiInputMonthRange]',
85
87
  providers: [
86
88
  tuiAsControl(TuiInputMonthRangeDirective),
87
89
  tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),
88
90
  ],
89
- hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],
91
+ hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],
90
92
  host: {
91
93
  '[disabled]': 'disabled()',
92
94
  '(input)': '$event.inputType?.includes("delete") && clear()',
@@ -97,6 +99,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
97
99
  const TuiInputMonthRange = [
98
100
  TuiInputMonthRangeDirective,
99
101
  TuiCalendarMonth,
102
+ TuiLabel,
103
+ TuiTextfieldComponent,
104
+ TuiTextfieldOptionsDirective,
105
+ TuiDropdownContent,
100
106
  ];
101
107
 
102
108
  /**