@taiga-ui/kit 4.52.0-canary.ece97e9 → 4.52.0-canary.efbd0d4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +1 -1
  2. package/components/avatar/avatar-labeled.component.d.ts +3 -3
  3. package/components/avatar/avatar-stack.component.d.ts +2 -2
  4. package/components/badge/badge.options.d.ts +1 -3
  5. package/components/badge-notification/badge-notification.component.d.ts +2 -3
  6. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  7. package/components/badged-content/badged-content.directive.d.ts +2 -2
  8. package/components/block/block.options.d.ts +1 -3
  9. package/components/breadcrumbs/breadcrumbs.component.d.ts +6 -7
  10. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  11. package/components/button-loading/button-loading.component.d.ts +5 -5
  12. package/components/calendar-range/calendar-range.component.d.ts +0 -1
  13. package/components/calendar-range/day-range-period.d.ts +2 -1
  14. package/components/carousel/carousel.component.d.ts +15 -18
  15. package/components/carousel/carousel.directive.d.ts +5 -4
  16. package/components/chip/chip.options.d.ts +1 -3
  17. package/components/combo-box/combo-box.d.ts +5 -0
  18. package/components/combo-box/combo-box.directive.d.ts +7 -9
  19. package/components/combo-box/index.d.ts +1 -0
  20. package/components/compass/compass.component.d.ts +2 -2
  21. package/components/confirm/confirm.component.d.ts +4 -3
  22. package/components/confirm/confirm.service.d.ts +1 -1
  23. package/components/copy/copy.component.d.ts +3 -4
  24. package/components/copy/copy.directive.d.ts +2 -4
  25. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -2
  26. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  27. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  28. package/components/data-list-wrapper/index.d.ts +1 -1
  29. package/components/drawer/drawer.component.d.ts +3 -4
  30. package/components/files/file/file.component.d.ts +16 -29
  31. package/components/files/file/file.options.d.ts +1 -1
  32. package/components/files/files/files.component.d.ts +5 -8
  33. package/components/files/input-files/input-files.component.d.ts +2 -2
  34. package/components/files/input-files/input-files.content.d.ts +7 -8
  35. package/components/files/input-files/input-files.directive.d.ts +2 -2
  36. package/components/files/input-files/input-files.options.d.ts +1 -3
  37. package/components/filter/filter.component.d.ts +9 -11
  38. package/components/fullscreen/fullscreen.component.d.ts +5 -8
  39. package/components/index.d.ts +0 -3
  40. package/components/input-chip/input-chip.component.d.ts +9 -8
  41. package/components/input-chip/input-chip.d.ts +5 -1
  42. package/components/input-chip/input-chip.directive.d.ts +7 -12
  43. package/components/input-color/index.d.ts +1 -0
  44. package/components/input-color/input-color.component.d.ts +4 -4
  45. package/components/input-color/input-color.d.ts +5 -0
  46. package/components/input-date/input-date.d.ts +4 -1
  47. package/components/input-date/input-date.directive.d.ts +12 -14
  48. package/components/input-date/input-date.options.d.ts +3 -3
  49. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  50. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  51. package/components/input-date-range/input-date-range.d.ts +4 -1
  52. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  53. package/components/input-date-range/input-date-range.options.d.ts +2 -2
  54. package/components/input-date-time/input-date-time.d.ts +4 -1
  55. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  56. package/components/input-date-time/input-date-time.options.d.ts +2 -2
  57. package/components/input-month/input-month.d.ts +4 -1
  58. package/components/input-month/input-month.directive.d.ts +6 -5
  59. package/components/input-month-range/input-month-range.d.ts +4 -1
  60. package/components/input-month-range/input-month-range.directive.d.ts +6 -5
  61. package/components/input-number/input-number.d.ts +4 -1
  62. package/components/input-number/input-number.directive.d.ts +5 -7
  63. package/components/input-number/input-number.options.d.ts +2 -3
  64. package/components/input-number/step/input-number-step.component.d.ts +2 -1
  65. package/components/input-phone/index.d.ts +1 -0
  66. package/components/input-phone/input-phone.d.ts +5 -0
  67. package/components/input-phone/input-phone.directive.d.ts +7 -7
  68. package/components/input-phone-international/index.d.ts +1 -0
  69. package/components/input-phone-international/input-phone-international.component.d.ts +9 -8
  70. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  71. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  72. package/components/input-pin/index.d.ts +1 -0
  73. package/components/input-pin/input-pin.component.d.ts +3 -3
  74. package/components/input-pin/input-pin.d.ts +5 -0
  75. package/components/input-range/index.d.ts +0 -1
  76. package/components/input-range/input-range.component.d.ts +5 -4
  77. package/components/input-slider/input-slider.d.ts +4 -1
  78. package/components/input-slider/input-slider.directive.d.ts +1 -1
  79. package/components/input-time/input-time.component.d.ts +1 -3
  80. package/components/input-time/input-time.d.ts +4 -1
  81. package/components/input-time/input-time.directive.d.ts +4 -4
  82. package/components/input-year/input-year.d.ts +4 -1
  83. package/components/input-year/input-year.directive.d.ts +5 -5
  84. package/components/input-year/input-year.options.d.ts +2 -2
  85. package/components/like/like.options.d.ts +1 -1
  86. package/components/line-clamp/line-clamp-box.component.d.ts +1 -1
  87. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  88. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +4 -6
  89. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  90. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  91. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  92. package/components/pagination/pagination.component.d.ts +22 -52
  93. package/components/pagination/pagination.options.d.ts +3 -6
  94. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  95. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  96. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  97. package/components/preview/index.d.ts +1 -0
  98. package/components/preview/pagination/preview-pagination.component.d.ts +2 -1
  99. package/components/preview/preview.component.d.ts +1 -1
  100. package/components/preview/preview.d.ts +2 -1
  101. package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +1 -3
  102. package/components/preview/zoom/preview-zoom.component.d.ts +3 -1
  103. package/components/progress/progress-bar/progress-bar.component.d.ts +3 -4
  104. package/components/progress/progress.options.d.ts +1 -3
  105. package/components/pulse/pulse.component.d.ts +2 -2
  106. package/components/push/push-alert.component.d.ts +2 -2
  107. package/components/push/push.options.d.ts +4 -3
  108. package/components/push/push.service.d.ts +2 -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/rating/rating.component.d.ts +1 -1
  112. package/components/rating/rating.options.d.ts +1 -3
  113. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  114. package/components/segmented/segmented.component.d.ts +4 -6
  115. package/components/segmented/segmented.directive.d.ts +6 -7
  116. package/components/select/native-select/native-select.component.d.ts +4 -4
  117. package/components/select/select.d.ts +4 -1
  118. package/components/select/select.directive.d.ts +4 -3
  119. package/components/slider/slider.options.d.ts +1 -6
  120. package/components/stepper/step.component.d.ts +6 -8
  121. package/components/stepper/stepper.component.d.ts +6 -11
  122. package/components/switch/switch.component.d.ts +1 -0
  123. package/components/tabs/tabs.options.d.ts +1 -6
  124. package/components/textarea/index.d.ts +2 -1
  125. package/components/textarea/textarea.component.d.ts +4 -4
  126. package/components/textarea/textarea.d.ts +6 -0
  127. package/components/textarea/textarea.directive.d.ts +13 -0
  128. package/components/toast/toast.component.d.ts +4 -4
  129. package/components/toast/toast.options.d.ts +4 -3
  130. package/components/toast/toast.service.d.ts +2 -2
  131. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +7 -0
  132. package/components/tree/misc/tree.constants.d.ts +0 -3
  133. package/components/tree/misc/tree.tokens.d.ts +1 -6
  134. package/directives/appearance-proxy/appearance-proxy.directive.d.ts +10 -0
  135. package/directives/appearance-proxy/index.d.ts +1 -0
  136. package/directives/button-select/button-select.directive.d.ts +3 -2
  137. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  138. package/directives/fade/fade.directive.d.ts +5 -6
  139. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  140. package/directives/highlight/highlight.directive.d.ts +4 -4
  141. package/directives/index.d.ts +1 -1
  142. package/directives/password/password.directive.d.ts +1 -1
  143. package/directives/present/present.directive.d.ts +2 -4
  144. package/directives/tooltip/tooltip.directive.d.ts +1 -1
  145. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +2 -2
  146. package/directives/unmask-handler/unmask-handler.directive.d.ts +3 -3
  147. package/fesm2022/taiga-ui-kit-components-accordion.mjs +8 -9
  148. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
  150. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-avatar.mjs +34 -48
  152. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +11 -18
  154. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-badge.mjs +11 -15
  156. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +9 -12
  158. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-block.mjs +11 -15
  160. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +18 -37
  162. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +18 -26
  164. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -13
  166. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +23 -23
  168. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-carousel.mjs +64 -114
  170. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -6
  172. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-chip.mjs +11 -15
  174. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +40 -45
  176. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-comment.mjs +7 -7
  178. package/fesm2022/taiga-ui-kit-components-compass.mjs +9 -11
  179. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-confirm.mjs +10 -12
  181. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-copy.mjs +19 -33
  183. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +24 -85
  185. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-drawer.mjs +15 -32
  187. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-files.mjs +111 -239
  189. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-filter.mjs +20 -34
  191. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +23 -42
  193. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +63 -77
  195. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-input-color.mjs +24 -13
  197. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +35 -51
  199. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +30 -36
  201. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +32 -29
  203. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-input-date.mjs +45 -48
  205. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +3 -3
  207. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +26 -23
  208. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-input-month.mjs +32 -23
  210. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-input-number.mjs +53 -50
  212. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +50 -42
  214. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +29 -19
  216. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +18 -9
  218. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-input-range.mjs +18 -16
  220. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +15 -10
  222. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-input-time.mjs +38 -40
  224. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-input-year.mjs +27 -19
  226. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +12 -14
  228. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-like.mjs +4 -4
  230. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +18 -23
  232. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-message.mjs +7 -8
  234. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +30 -40
  236. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +37 -26
  238. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -8
  240. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-pagination.mjs +59 -140
  242. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-pin.mjs +7 -7
  244. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-preview.mjs +68 -48
  246. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-progress.mjs +36 -45
  248. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-pulse.mjs +7 -11
  250. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-push.mjs +22 -23
  252. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  254. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -9
  256. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-range.mjs +8 -11
  258. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-rating.mjs +7 -12
  260. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  262. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  264. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-select.mjs +52 -29
  266. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-slider.mjs +23 -33
  268. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-status.mjs +6 -6
  270. package/fesm2022/taiga-ui-kit-components-stepper.mjs +45 -79
  271. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  272. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  273. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  274. package/fesm2022/taiga-ui-kit-components-tabs.mjs +28 -36
  275. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-components-textarea.mjs +51 -52
  277. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -15
  279. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-components-toast.mjs +27 -28
  281. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-components-tree.mjs +55 -58
  283. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-components.mjs +0 -3
  285. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +27 -0
  287. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -0
  288. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -4
  289. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  291. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  292. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +18 -10
  293. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  294. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +10 -9
  295. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  296. package/fesm2022/taiga-ui-kit-directives-connected.mjs +6 -7
  297. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  298. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  299. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  300. package/fesm2022/taiga-ui-kit-directives-fade.mjs +25 -34
  301. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  302. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +6 -12
  303. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  304. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +16 -21
  305. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  306. package/fesm2022/taiga-ui-kit-directives-password.mjs +10 -9
  307. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-directives-present.mjs +10 -18
  309. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  310. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +6 -6
  311. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +6 -6
  312. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -6
  313. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  314. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +9 -9
  315. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  316. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +8 -11
  317. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +10 -15
  319. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  320. package/fesm2022/taiga-ui-kit-directives.mjs +1 -1
  321. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  322. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  323. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  324. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  325. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  326. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  327. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
  328. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  329. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  330. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  331. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  332. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  333. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -9
  334. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  335. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  336. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  337. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  338. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  339. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -0
  340. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -123
  342. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  343. package/fesm2022/taiga-ui-kit-utils.mjs +3 -15
  344. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  345. package/package.json +66 -67
  346. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  347. package/pipes/auto-color/index.d.ts +1 -0
  348. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  349. package/pipes/flag/flag.pipe.d.ts +14 -0
  350. package/pipes/flag/index.d.ts +1 -0
  351. package/pipes/index.d.ts +3 -0
  352. package/pipes/initials/index.d.ts +1 -0
  353. package/pipes/initials/initials.pipe.d.ts +7 -0
  354. package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
  355. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  356. package/styles/components/avatar.less +14 -14
  357. package/styles/components/badge.less +3 -3
  358. package/styles/components/block.less +4 -4
  359. package/styles/components/chip.less +3 -3
  360. package/styles/components/comment.less +1 -1
  361. package/styles/components/message.less +1 -1
  362. package/styles/components/pin.less +3 -3
  363. package/styles/components/switch.less +2 -2
  364. package/styles/components/toast.less +1 -1
  365. package/tokens/i18n.d.ts +1 -0
  366. package/tokens/index.d.ts +0 -7
  367. package/utils/index.d.ts +0 -2
  368. package/components/elastic-container/elastic-container.component.d.ts +0 -8
  369. package/components/elastic-container/elastic-container.directive.d.ts +0 -7
  370. package/components/elastic-container/index.d.ts +0 -2
  371. package/components/floating-container/floating-container.directive.d.ts +0 -7
  372. package/components/floating-container/index.d.ts +0 -1
  373. package/components/input-range/input-range.d.ts +0 -3
  374. package/components/slides/index.d.ts +0 -1
  375. package/components/slides/slides.directive.d.ts +0 -11
  376. package/components/textarea/textarea-limit.directive.d.ts +0 -26
  377. package/directives/lazy-loading/index.d.ts +0 -2
  378. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  379. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  380. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -78
  381. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
  382. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -37
  383. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
  384. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  385. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  386. package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -49
  387. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
  388. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  389. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  390. package/tokens/calendar-date-stream.d.ts +0 -10
  391. package/tokens/date-inputs-value-transformers.d.ts +0 -19
  392. package/tokens/input-date-options.d.ts +0 -15
  393. package/tokens/items-handlers.d.ts +0 -26
  394. package/tokens/mobile-calendar.d.ts +0 -6
  395. package/tokens/month-formatter.d.ts +0 -5
  396. package/utils/phone.d.ts +0 -3
  397. package/utils/toggle-day.d.ts +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month-range.mjs","sources":["../../../projects/kit/components/input-month-range/input-month-range.options.ts","../../../projects/kit/components/input-month-range/input-month-range.directive.ts","../../../projects/kit/components/input-month-range/input-month-range.ts","../../../projects/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonthRange} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW} from '@taiga-ui/kit/components/input-date';\nimport {TUI_INPUT_MONTH_OPTIONS} from '@taiga-ui/kit/components/input-month';\n\nexport interface TuiInputMonthRangeOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonthRange | null, any>;\n}\n\nexport const TUI_INPUT_MONTH_RANGE_OPTIONS =\n new InjectionToken<TuiInputMonthRangeOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_MONTH_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n );\n\nexport const tuiInputMonthRangeOptionsProvider = (\n options: Partial<TuiInputMonthRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {Directive, effect, inject, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n RANGE_SEPARATOR_CHAR,\n type TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk/date-time';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n TuiTextfieldDirective,\n tuiTextfieldIcon,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\nimport {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens';\n\nimport {TUI_INPUT_MONTH_RANGE_OPTIONS} from './input-month-range.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputMonthRange]',\n providers: [\n tuiAsControl(TuiInputMonthRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthRangeDirective extends TuiControl<TuiMonthRange | null> {\n private readonly textfield = inject(TuiTextfieldDirective);\n private readonly formatter = toSignal(inject(TUI_MONTH_FORMATTER));\n private readonly open = tuiDropdownOpen();\n private readonly intermediateValue = signal<TuiMonth | null>(null);\n\n private readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const format = this.formatter() || (() => '');\n const string = value\n ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to)\n : '';\n\n this.textfield.value.set(string);\n });\n\n protected readonly calendarInit = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.options.rangeMode = true;\n }\n });\n\n protected readonly calendarSync = effect(() => {\n this.calendar()?.value.set(this.intermediateValue() ?? this.value());\n });\n\n // TODO: use linked signal (Angular 19+)\n protected readonly resetIntermediateValue = effect(() => {\n this.intermediateValue.set(this.value() && null);\n });\n\n protected onMonthClickEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n const intermediateValue = this.intermediateValue();\n\n if (!intermediateValue) {\n this.intermediateValue.set(month);\n } else {\n this.onChange(TuiMonthRange.sort(intermediateValue, month));\n this.open.set(false);\n }\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(true);\n }\n}\n","import {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeDirective} from './input-month-range.directive';\n\nexport const TuiInputMonthRange = [\n TuiInputMonthRangeDirective,\n TuiCalendarMonth,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiBa,MAAA,6BAA6B,GACtC,IAAI,cAAc,CACd,SAAS,GAAG,+BAA+B,GAAG,EAAE,EAChD;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAClC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGI,MAAA,iCAAiC,GAAG,CAC7C,OAA2C,KAE3C,iBAAiB,CACb,6BAA6B,EAC7B,OAAO,EACP,kCAAkC;;ACIpC,MAAO,2BAA4B,SAAQ,UAAgC,CAAA;AAbjF,IAAA,WAAA,GAAA;;AAcqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC;QACzC,IAAS,CAAA,SAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;QACjD,IAAI,CAAA,IAAA,GAAG,eAAe,EAAE;AACxB,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAkB,IAAI,CAAC;AAEjD,QAAA,IAAA,CAAA,QAAQ,GAAG,kBAAkB,CAC1C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AAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,aAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,eAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAOQ,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAbvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,SAAS,EAAE;AACP,wBAAA,YAAY,CAA6B,2BAAA,CAAA;wBACzC,uBAAuB,CAAC,6BAA6B,CAAC;AACzD,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,eAAe,CAAC;AAClE,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,iDAAiD;AAC/D,qBAAA;AACJ,iBAAA;;;ACjCY,MAAA,kBAAkB,GAAG;IAC9B,2BAA2B;IAC3B,gBAAgB;;;ACNpB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-month-range.mjs","sources":["../../../projects/kit/components/input-month-range/input-month-range.options.ts","../../../projects/kit/components/input-month-range/input-month-range.directive.ts","../../../projects/kit/components/input-month-range/input-month-range.ts","../../../projects/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonthRange} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_INPUT_DATE_DEFAULT_OPTIONS} from '@taiga-ui/kit/components/input-date';\nimport {TUI_INPUT_MONTH_OPTIONS} from '@taiga-ui/kit/components/input-month';\n\nexport interface TuiInputMonthRangeOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonthRange | null, any>;\n}\n\nexport const TUI_INPUT_MONTH_RANGE_OPTIONS =\n new InjectionToken<TuiInputMonthRangeOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_MONTH_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n );\n\nexport const tuiInputMonthRangeOptionsProvider = (\n options: Partial<TuiInputMonthRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n );\n","import {Directive, effect, inject, signal} from '@angular/core';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n RANGE_SEPARATOR_CHAR,\n type TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk/date-time';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n tuiTextfieldIcon,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TUI_INPUT_MONTH_RANGE_OPTIONS} from './input-month-range.options';\n\n@Directive({\n selector: 'input[tuiInputMonthRange]',\n providers: [\n tuiAsControl(TuiInputMonthRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthRangeDirective extends TuiControl<TuiMonthRange | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly months = inject(TUI_MONTHS);\n private readonly open = inject(TuiDropdownOpen).open;\n private readonly intermediateValue = signal<TuiMonth | null>(null);\n private readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const months = this.months();\n const format = ({month, formattedYear}: TuiMonth): string =>\n `${months[month] ?? ''} ${formattedYear}`;\n\n this.input.value.set(\n value ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to) : '',\n );\n });\n\n protected readonly calendarInit = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.options.rangeMode = true;\n }\n });\n\n protected readonly calendarSync = effect(() => {\n this.calendar()?.value.set(this.intermediateValue() ?? this.value());\n });\n\n // TODO: use linked signal (Angular 19+)\n protected readonly resetIntermediateValue = effect(() => {\n this.intermediateValue.set(this.value() && null);\n });\n\n protected onMonthClickEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n const intermediateValue = this.intermediateValue();\n\n if (!intermediateValue) {\n this.intermediateValue.set(month);\n } else {\n this.onChange(TuiMonthRange.sort(intermediateValue, month));\n this.open.set(false);\n }\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(true);\n }\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeDirective} from './input-month-range.directive';\n\nexport const TuiInputMonthRange = [\n TuiInputMonthRangeDirective,\n TuiCalendarMonth,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiBa,MAAA,6BAA6B,GACtC,IAAI,cAAc,CACd,SAAS,GAAG,+BAA+B,GAAG,EAAE,EAChD;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAClC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGI,MAAA,iCAAiC,GAAG,CAC7C,OAA2C,KAE3C,iBAAiB,CACb,6BAA6B,EAC7B,OAAO,EACP,8BAA8B;;ACChC,MAAO,2BAA4B,SAAQ,UAAgC,CAAA;AAZjF,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI;AACnC,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAkB,IAAI,CAAC;AACjD,QAAA,IAAA,CAAA,QAAQ,GAAG,kBAAkB,CAC1C,CAAC,CAAC,KAAK,CAAC,YAAY,gBAAgB,CACvC;AAEkB,QAAA,IAAA,CAAA,IAAI,GAAG,gBAAgB,CAAC,6BAA6B,CAAC;AACtD,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC;AACtD,QAAA,IAAA,CAAA,WAAW,G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AA,SAAA,EAAA,EAAA,CAAA,eAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAOQ,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAZvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,SAAS,EAAE;AACP,wBAAA,YAAY,CAA6B,2BAAA,CAAA;wBACzC,uBAAuB,CAAC,6BAA6B,CAAC;AACzD,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC;AAC9D,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,iDAAiD;AAC/D,qBAAA;AACJ,iBAAA;;;ACxBY,MAAA,kBAAkB,GAAG;IAC9B,2BAA2B;IAC3B,gBAAgB;IAChB,QAAQ;IACR,qBAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AChBtB;;AAEG;;;;"}
@@ -1,17 +1,19 @@
1
+ import { TuiLabel } from '@taiga-ui/core/components/label';
2
+ import * as i2 from '@taiga-ui/core/components/textfield';
3
+ import { tuiTextfieldIcon, tuiInjectAuxiliary, TuiWithNativePicker, TuiSelectLike, TuiTextfieldContent, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
4
+ import * as i3 from '@taiga-ui/core/portals/dropdown';
5
+ import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto, TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
1
6
  import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
2
7
  import * as i0 from '@angular/core';
3
8
  import { InjectionToken, inject, computed, effect, Directive, signal, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
9
  import { TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth } from '@taiga-ui/cdk/date-time';
5
- import * as i1 from '@taiga-ui/core/components/textfield';
6
- import { TuiTextfieldDirective, tuiTextfieldIcon, tuiInjectAuxiliary, TuiWithNativePicker, TuiWithTextfield, TuiSelectLike, TuiTextfieldContent } from '@taiga-ui/core/components/textfield';
7
- import { toSignal } from '@angular/core/rxjs-interop';
8
10
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
9
11
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
10
- import * as i2 from '@taiga-ui/core/directives/dropdown';
11
- import { tuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto } from '@taiga-ui/core/directives/dropdown';
12
- import { TUI_MONTH_FORMATTER } from '@taiga-ui/kit/tokens';
13
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
14
- import { TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW } from '@taiga-ui/kit/components/input-date';
12
+ import * as i1 from '@taiga-ui/core/components/input';
13
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
14
+ import { TUI_MONTHS } from '@taiga-ui/core/tokens';
15
+ import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
16
+ import { TUI_INPUT_DATE_OPTIONS, TUI_INPUT_DATE_DEFAULT_OPTIONS } from '@taiga-ui/kit/components/input-date';
15
17
 
16
18
  /**
17
19
  * @deprecated remove in v5
@@ -22,22 +24,26 @@ const TUI_INPUT_MONTH_DEFAULT_OPTIONS = {
22
24
  };
23
25
  const TUI_INPUT_MONTH_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '', {
24
26
  factory: () => ({
25
- ...inject(TUI_INPUT_DATE_OPTIONS_NEW),
27
+ ...inject(TUI_INPUT_DATE_OPTIONS),
26
28
  valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,
27
29
  }),
28
30
  });
29
- const tuiInputMonthOptionsProvider = (options) => tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW);
31
+ const tuiInputMonthOptionsProvider = (options) => tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS);
30
32
 
31
33
  class TuiInputMonthDirective extends TuiControl {
32
34
  constructor() {
33
35
  super(...arguments);
34
- this.textfield = inject(TuiTextfieldDirective);
35
- this.formatter = toSignal(inject(TUI_MONTH_FORMATTER));
36
- this.open = tuiDropdownOpen();
36
+ this.input = inject(TuiInputDirective);
37
+ this.months = inject(TUI_MONTHS);
38
+ this.open = inject(TuiDropdownOpen).open;
37
39
  this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);
38
40
  this.dropdownEnabled = tuiDropdownEnabled(computed(() => !this.native && this.interactive()));
39
41
  this.valueEffect = effect(() => {
40
- this.textfield.value.set(this.formatter()?.(this.value()) || '');
42
+ const value = this.value();
43
+ const formatted = value
44
+ ? `${this.months()[value.month] ?? ''} ${value.formattedYear}`
45
+ : '';
46
+ this.input.value.set(formatted);
41
47
  });
42
48
  this.calendarIn = effect(() => {
43
49
  this.calendar()?.value.set(this.value());
@@ -56,22 +62,21 @@ class TuiInputMonthDirective extends TuiControl {
56
62
  this.onChange(null);
57
63
  this.open.set(this.dropdownEnabled());
58
64
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
60
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiInputMonthDirective, isStandalone: true, selector: "input[tuiInputMonth]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
65
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
66
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiInputMonthDirective, isStandalone: true, selector: "input[tuiInputMonth]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
61
67
  tuiAsControl(TuiInputMonthDirective),
62
68
  tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),
63
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i1.TuiSelectLike }, { directive: i2.TuiDropdownAuto }], ngImport: i0 }); }
69
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
64
70
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
66
72
  type: Directive,
67
73
  args: [{
68
- standalone: true,
69
74
  selector: 'input[tuiInputMonth]',
70
75
  providers: [
71
76
  tuiAsControl(TuiInputMonthDirective),
72
77
  tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),
73
78
  ],
74
- hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],
79
+ hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],
75
80
  host: {
76
81
  '[disabled]': 'disabled()',
77
82
  '(input)': '$event.inputType?.includes("delete") && clear()',
@@ -107,10 +112,10 @@ class TuiInputMonthComponent {
107
112
  const [year = 0, month = 0] = value.split('-').map(Number);
108
113
  this.host.onChange(new TuiMonth(year, month - 1));
109
114
  }
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
111
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputMonthComponent, isStandalone: true, selector: "input[tuiInputMonth][type=\"month\"]", inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { attributes: { "ngSkipHydration": "true" } }, hostDirectives: [{ directive: i1.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]~.t-content input[type=month]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}tui-textfield input[tuiInputMonth]~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
115
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
116
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiInputMonthComponent, isStandalone: true, selector: "input[tuiInputMonth][type=\"month\"]", inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { attributes: { "ngSkipHydration": "true" } }, hostDirectives: [{ directive: i2.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]~.t-content input[type=month]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}tui-textfield input[tuiInputMonth]~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
112
117
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
114
119
  type: Component,
115
120
  args: [{ selector: 'input[tuiInputMonth][type="month"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: {
116
121
  ngSkipHydration: 'true',
@@ -127,6 +132,10 @@ const TuiInputMonth = [
127
132
  TuiInputMonthComponent,
128
133
  TuiInputMonthDirective,
129
134
  TuiCalendarMonth,
135
+ TuiLabel,
136
+ TuiTextfieldComponent,
137
+ TuiTextfieldOptionsDirective,
138
+ TuiDropdownContent,
130
139
  ];
131
140
 
132
141
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month.mjs","sources":["../../../projects/kit/components/input-month/input-month.options.ts","../../../projects/kit/components/input-month/input-month.directive.ts","../../../projects/kit/components/input-month/input-month.component.ts","../../../projects/kit/components/input-month/input-month.template.html","../../../projects/kit/components/input-month/input-month.ts","../../../projects/kit/components/input-month/taiga-ui-kit-components-input-month.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputMonthOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonth | null, any>;\n}\n\n/**\n * @deprecated remove in v5\n */\nexport const TUI_INPUT_MONTH_DEFAULT_OPTIONS: TuiInputMonthOptions = {\n icon: () => '@tui.calendar',\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n};\n\nexport const TUI_INPUT_MONTH_OPTIONS = new InjectionToken<TuiInputMonthOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputMonthOptionsProvider = (\n options: Partial<TuiInputMonthOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, effect, inject} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n TuiTextfieldDirective,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\nimport {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens';\n\nimport {TUI_INPUT_MONTH_OPTIONS} from './input-month.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputMonth]',\n providers: [\n tuiAsControl(TuiInputMonthDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthDirective extends TuiControl<TuiMonth | null> {\n private readonly textfield = inject(TuiTextfieldDirective);\n private readonly formatter = toSignal(inject(TUI_MONTH_FORMATTER));\n private readonly open = tuiDropdownOpen();\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly valueEffect = effect(() => {\n this.textfield.value.set(this.formatter()?.(this.value()) || '');\n });\n\n protected readonly calendarIn = effect(() => {\n this.calendar()?.value.set(this.value());\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n this.onChange(month);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && inject(TUI_IS_MOBILE);\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(this.dropdownEnabled());\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n Input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputMonthDirective} from './input-month.directive';\n\n@Component({\n selector: 'input[tuiInputMonth][type=\"month\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-month.template.html',\n styleUrl: './input-month.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {\n ngSkipHydration: 'true',\n },\n})\nexport class TuiInputMonthComponent {\n protected readonly host = inject(TuiInputMonthDirective);\n protected readonly min = signal<TuiMonth | null>(null);\n protected readonly max = signal<TuiMonth | null>(null);\n protected readonly calendarSync = effect(() => {\n const calendar = this.host.calendar();\n\n if (calendar) {\n calendar.min.set(this.min() ?? TUI_FIRST_DAY); // TODO(v5): remove TUI_FIRST_DAY fallback\n calendar.max.set(this.max() ?? TUI_LAST_DAY); // TODO(v5): remove TUI_LAST_DAY fallback\n }\n });\n\n // TODO(v5): use signal inputs\n @Input('min')\n public set minSetter(x: TuiMonth | null) {\n this.min.set(x);\n }\n\n // TODO(v5): use signal inputs\n @Input('max')\n public set maxSetter(x: TuiMonth | null) {\n this.max.set(x);\n }\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiMonth(year, month - 1));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\nimport {TuiInputMonthDirective} from './input-month.directive';\n\nexport const TuiInputMonth = [\n TuiInputMonthComponent,\n TuiInputMonthDirective,\n TuiCalendarMonth,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA;;AAEG;AACU,MAAA,+BAA+B,GAAyB;AACjE,IAAA,IAAI,EAAE,MAAM,eAAe;AAC3B,IAAA,gBAAgB,EAAE,8BAA8B;;AAGvC,MAAA,uBAAuB,GAAG,IAAI,cAAc,CACrD,SAAS,GAAG,yBAAyB,GAAG,EAAE,EAC1C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGQ,MAAA,4BAA4B,GAAG,CACxC,OAAsC,KAEtC,iBAAiB,CACb,uBAAuB,EACvB,OAAO,EACP,kCAAkC;;ACPpC,MAAO,sBAAuB,SAAQ,UAA2B,CAAA;AAbvE,IAAA,WAAA,GAAA;;AAcqB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC;QACzC,IAAS,CAAA,SAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;QACjD,IAAI,CAAA,IAAA,GAAG,eAAe,EAAE;AAEtB,QAAA,IAAA,CAAA,IAAI,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;AAChD,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CACnD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,CACrD;AAEkB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,MAAK;YAC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AAA,EAAA,SAAA,EAAA,CAAA,KAAA,EAAA,WAAA,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC7BnC,kWAYA,EAAA,MAAA,EAAA,CAAA,iTAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDOc,mBAAmB,EAAA,QAAA,EAAA,kCAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAUpB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAZlC,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oCAAoC,WACrC,CAAC,mBAAmB,CAAC,EAAA,aAAA,EAGf,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,mBAAmB,CAAC,EAC/B,IAAA,EAAA;AACF,wBAAA,eAAe,EAAE,MAAM;AAC1B,qBAAA,EAAA,QAAA,EAAA,kWAAA,EAAA,MAAA,EAAA,CAAA,iTAAA,CAAA,EAAA;8BAiBU,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;gBAOD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;AE5CH,MAAA,aAAa,GAAG;IACzB,sBAAsB;IACtB,sBAAsB;IACtB,gBAAgB;;;ACRpB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-month.mjs","sources":["../../../projects/kit/components/input-month/input-month.options.ts","../../../projects/kit/components/input-month/input-month.directive.ts","../../../projects/kit/components/input-month/input-month.component.ts","../../../projects/kit/components/input-month/input-month.template.html","../../../projects/kit/components/input-month/input-month.ts","../../../projects/kit/components/input-month/taiga-ui-kit-components-input-month.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n TUI_INPUT_DATE_OPTIONS,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputMonthOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonth | null, any>;\n}\n\n/**\n * @deprecated remove in v5\n */\nexport const TUI_INPUT_MONTH_DEFAULT_OPTIONS: TuiInputMonthOptions = {\n icon: () => '@tui.calendar',\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n};\n\nexport const TUI_INPUT_MONTH_OPTIONS = new InjectionToken<TuiInputMonthOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputMonthOptionsProvider = (\n options: Partial<TuiInputMonthOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS);\n","import {computed, Directive, effect, inject} from '@angular/core';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TUI_INPUT_MONTH_OPTIONS} from './input-month.options';\n\n@Directive({\n selector: 'input[tuiInputMonth]',\n providers: [\n tuiAsControl(TuiInputMonthDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthDirective extends TuiControl<TuiMonth | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly months = inject(TUI_MONTHS);\n private readonly open = inject(TuiDropdownOpen).open;\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const formatted = value\n ? `${this.months()[value.month] ?? ''} ${value.formattedYear}`\n : '';\n\n this.input.value.set(formatted);\n });\n\n protected readonly calendarIn = effect(() => {\n this.calendar()?.value.set(this.value());\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n this.onChange(month);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && inject(TUI_IS_MOBILE);\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(this.dropdownEnabled());\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n Input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputMonthDirective} from './input-month.directive';\n\n@Component({\n selector: 'input[tuiInputMonth][type=\"month\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-month.template.html',\n styleUrl: './input-month.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {\n ngSkipHydration: 'true',\n },\n})\nexport class TuiInputMonthComponent {\n protected readonly host = inject(TuiInputMonthDirective);\n protected readonly min = signal<TuiMonth | null>(null);\n protected readonly max = signal<TuiMonth | null>(null);\n protected readonly calendarSync = effect(() => {\n const calendar = this.host.calendar();\n\n if (calendar) {\n calendar.min.set(this.min() ?? TUI_FIRST_DAY); // TODO(v5): remove TUI_FIRST_DAY fallback\n calendar.max.set(this.max() ?? TUI_LAST_DAY); // TODO(v5): remove TUI_LAST_DAY fallback\n }\n });\n\n // TODO(v5): use signal inputs\n @Input('min')\n public set minSetter(x: TuiMonth | null) {\n this.min.set(x);\n }\n\n // TODO(v5): use signal inputs\n @Input('max')\n public set maxSetter(x: TuiMonth | null) {\n this.max.set(x);\n }\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiMonth(year, month - 1));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\nimport {TuiInputMonthDirective} from './input-month.directive';\n\nexport const TuiInputMonth = [\n TuiInputMonthComponent,\n TuiInputMonthDirective,\n TuiCalendarMonth,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAmBA;;AAEG;AACU,MAAA,+BAA+B,GAAyB;AACjE,IAAA,IAAI,EAAE,MAAM,eAAe;AAC3B,IAAA,gBAAgB,EAAE,8BAA8B;;AAGvC,MAAA,uBAAuB,GAAG,IAAI,cAAc,CACrD,SAAS,GAAG,yBAAyB,GAAG,EAAE,EAC1C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACjC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGQ,MAAA,4BAA4B,GAAG,CACxC,OAAsC,KAEtC,iBAAiB,CAAC,uBAAuB,EAAE,OAAO,EAAE,8BAA8B;;ACPhF,MAAO,sBAAuB,SAAQ,UAA2B,CAAA;AAZvE,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,eAAe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BAAA,EAAA,QAAA,EAAA,kWAAA,EAAA,MAAA,EAAA,CAAA,iTAAA,CAAA,EAAA;8BAiBU,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;gBAOD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;AEtCH,MAAA,aAAa,GAAG;IACzB,sBAAsB;IACtB,sBAAsB;IACtB,gBAAgB;IAChB,QAAQ;IACR,qBAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AClBtB;;AAEG;;;;"}
@@ -1,6 +1,8 @@
1
+ import { TuiLabel } from '@taiga-ui/core/components/label';
2
+ import { TUI_TEXTFIELD_OPTIONS, TuiTextfieldContent, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
3
+ import { TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
1
4
  import * as i0 from '@angular/core';
2
5
  import { inject, computed, effect, input, untracked, Directive, signal, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
- import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
6
  import * as i2 from '@maskito/angular';
5
7
  import { MaskitoDirective } from '@maskito/angular';
6
8
  import { maskitoTransform } from '@maskito/core';
@@ -10,16 +12,18 @@ import { CHAR_MINUS, CHAR_HYPHEN } from '@taiga-ui/cdk/constants';
10
12
  import { TUI_IS_IOS } from '@taiga-ui/cdk/tokens';
11
13
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
12
14
  import { tuiIsSafeToRound, tuiRound, tuiClamp } from '@taiga-ui/cdk/utils/math';
13
- import * as i1 from '@taiga-ui/core/components/textfield';
14
- import { TuiTextfieldDirective, TuiWithTextfield, TUI_TEXTFIELD_OPTIONS, TuiTextfieldContent } from '@taiga-ui/core/components/textfield';
15
- import { TUI_NUMBER_FORMAT, TUI_DEFAULT_NUMBER_FORMAT } from '@taiga-ui/core/tokens';
15
+ import * as i1 from '@taiga-ui/core/components/input';
16
+ import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
17
+ import { TUI_NUMBER_FORMAT } from '@taiga-ui/core/tokens';
16
18
  import { tuiFormatNumber, tuiGetFractionPartPadded } from '@taiga-ui/core/utils/format';
17
19
  import { tuiMaskito } from '@taiga-ui/kit/utils';
18
- import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
19
- import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
20
+ import { tuiCreateOptions, tuiProvide } from '@taiga-ui/cdk/utils/di';
20
21
  import { TUI_FLOATING_PRECISION } from '@taiga-ui/kit/components/slider';
21
22
  import { DOCUMENT } from '@angular/common';
23
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
22
24
  import { TuiButton } from '@taiga-ui/core/components/button';
25
+ import * as i1$1 from '@taiga-ui/kit/directives/appearance-proxy';
26
+ import { TuiAppearanceProxy } from '@taiga-ui/kit/directives/appearance-proxy';
23
27
  import { Subject, merge, fromEvent, switchMap, timer, expand, map, takeUntil } from 'rxjs';
24
28
 
25
29
  const TUI_INPUT_NUMBER_DEFAULT_OPTIONS = {
@@ -27,6 +31,7 @@ const TUI_INPUT_NUMBER_DEFAULT_OPTIONS = {
27
31
  max: Number.MAX_SAFE_INTEGER,
28
32
  prefix: '',
29
33
  postfix: '',
34
+ minusSign: CHAR_MINUS,
30
35
  step: 0,
31
36
  icons: {
32
37
  increase: '@tui.plus',
@@ -41,12 +46,10 @@ class TuiInputNumberDirective extends TuiControl {
41
46
  constructor() {
42
47
  super(...arguments);
43
48
  this.options = inject(TUI_INPUT_NUMBER_OPTIONS);
44
- this.textfield = inject(TuiTextfieldDirective);
49
+ this.input = inject(TuiInputDirective);
45
50
  this.isIOS = inject(TUI_IS_IOS);
46
- this.numberFormat = toSignal(inject(TUI_NUMBER_FORMAT), {
47
- initialValue: TUI_DEFAULT_NUMBER_FORMAT,
48
- });
49
- this.formatted = computed(() => maskitoParseNumber(this.textfield.value(), this.numberFormat()));
51
+ this.numberFormat = inject(TUI_NUMBER_FORMAT);
52
+ this.formatted = computed(() => maskitoParseNumber(this.input.value(), this.maskParams));
50
53
  this.precision = computed((precision = this.numberFormat().precision) => Number.isNaN(precision) ? 2 : precision);
51
54
  this.unfinished = computed((value = this.formatted()) => value < 0 ? value > this.max() : value < this.min());
52
55
  this.element = tuiInjectElement();
@@ -65,10 +68,11 @@ class TuiInputNumberDirective extends TuiControl {
65
68
  });
66
69
  this.defaultMaxLength = computed(() => {
67
70
  const { decimalSeparator, thousandSeparator } = this.numberFormat();
68
- const decimalPart = !!this.precision() && this.textfield.value().includes(decimalSeparator);
71
+ const decimalPart = !!this.precision() && this.input.value().includes(decimalSeparator);
69
72
  const precision = decimalPart ? Math.min(this.precision() + 1, 20) : 0;
70
73
  const takeThousand = thousandSeparator.repeat(5).length;
71
- return DEFAULT_MAX_LENGTH + precision + takeThousand;
74
+ const affixes = this.prefix().length + this.postfix().length;
75
+ return DEFAULT_MAX_LENGTH + precision + takeThousand + affixes;
72
76
  });
73
77
  this.onChangeEffect = effect(() => {
74
78
  const value = this.formatted();
@@ -90,20 +94,16 @@ class TuiInputNumberDirective extends TuiControl {
90
94
  min: Number.MIN_SAFE_INTEGER,
91
95
  max: Number.MAX_SAFE_INTEGER,
92
96
  });
93
- this.textfield.value.update((x) => maskitoTransform(x, options));
97
+ this.input.value.update((x) => maskitoTransform(x, options));
94
98
  });
95
- this.min = computed(() => Math.min(this.minRaw(), this.maxRaw()));
96
- this.max = computed(() => Math.max(this.minRaw(), this.maxRaw()));
97
- this.prefix = input(this.options.prefix);
98
- this.postfix = input(this.options.postfix);
99
- this.minRaw = input(this.options.min, {
100
- alias: 'min',
101
- transform: (x) => this.transformer.fromControlValue(x ?? this.options.min),
99
+ this.min = input(this.options.min, {
100
+ transform: (x) => x ?? this.options.min,
102
101
  });
103
- this.maxRaw = input(this.options.max, {
104
- alias: 'max',
105
- transform: (x) => this.transformer.fromControlValue(x ?? this.options.max),
102
+ this.max = input(this.options.max, {
103
+ transform: (x) => x ?? this.options.max,
106
104
  });
105
+ this.prefix = input(this.options.prefix);
106
+ this.postfix = input(this.options.postfix);
107
107
  }
108
108
  writeValue(value) {
109
109
  const reset = this.control.pristine && this.control.untouched && !value;
@@ -114,11 +114,11 @@ class TuiInputNumberDirective extends TuiControl {
114
114
  }
115
115
  }
116
116
  setValue(value) {
117
- this.textfield.value.set(this.formatNumber(value));
117
+ this.input.value.set(this.formatNumber(value));
118
118
  }
119
119
  onFocus() {
120
120
  if (Number.isNaN(this.formatted()) && !this.readOnly()) {
121
- this.textfield.value.set(this.prefix() + this.postfix());
121
+ this.input.value.set(this.prefix() + this.postfix());
122
122
  }
123
123
  }
124
124
  get maskParams() {
@@ -126,6 +126,7 @@ class TuiInputNumberDirective extends TuiControl {
126
126
  const maximumFractionDigits = this.precision();
127
127
  return {
128
128
  ...numberFormat,
129
+ ...this.options,
129
130
  maximumFractionDigits,
130
131
  min: this.min(),
131
132
  max: this.max(),
@@ -138,7 +139,8 @@ class TuiInputNumberDirective extends TuiControl {
138
139
  if (value === null || Number.isNaN(value)) {
139
140
  return '';
140
141
  }
141
- return ((this.prefix() !== CHAR_MINUS ? this.prefix() : '') +
142
+ const minus = this.options.minusSign;
143
+ return ((this.prefix() !== minus ? this.prefix() : '') +
142
144
  tuiFormatNumber(value, {
143
145
  ...this.numberFormat(),
144
146
  /**
@@ -150,7 +152,7 @@ class TuiInputNumberDirective extends TuiControl {
150
152
  precision: tuiIsSafeToRound(value, this.precision())
151
153
  ? this.precision()
152
154
  : Infinity,
153
- }).replace(CHAR_HYPHEN, CHAR_MINUS) +
155
+ }).replace(CHAR_HYPHEN, minus) +
154
156
  this.postfix());
155
157
  }
156
158
  computeMask(params) {
@@ -167,22 +169,21 @@ class TuiInputNumberDirective extends TuiControl {
167
169
  ],
168
170
  };
169
171
  }
170
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputNumberDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
171
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiInputNumberDirective, isStandalone: true, selector: "input[tuiInputNumber]", inputs: { prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, postfix: { classPropertyName: "postfix", publicName: "postfix", isSignal: true, isRequired: false, transformFunction: null }, minRaw: { classPropertyName: "minRaw", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, maxRaw: { classPropertyName: "maxRaw", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusout": "setValue(transformer.fromControlValue(control.value))", "focus": "onFocus()" }, properties: { "disabled": "disabled()", "attr.inputMode": "inputMode()", "attr.maxLength": "element.maxLength > 0 ? element.maxLength : defaultMaxLength()" } }, providers: [
172
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputNumberDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
173
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiInputNumberDirective, isStandalone: true, selector: "input[tuiInputNumber]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, postfix: { classPropertyName: "postfix", publicName: "postfix", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusout": "setValue(transformer.fromControlValue(control.value))", "focus": "onFocus()" }, properties: { "disabled": "disabled()", "attr.inputMode": "inputMode()", "attr.maxLength": "element.maxLength > 0 ? element.maxLength : defaultMaxLength()" } }, providers: [
172
174
  tuiAsControl(TuiInputNumberDirective),
173
175
  tuiValueTransformerFrom(TUI_INPUT_NUMBER_OPTIONS),
174
- ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i2.MaskitoDirective }], ngImport: i0 }); }
176
+ ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.MaskitoDirective }], ngImport: i0 }); }
175
177
  }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputNumberDirective, decorators: [{
178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputNumberDirective, decorators: [{
177
179
  type: Directive,
178
180
  args: [{
179
- standalone: true,
180
181
  selector: 'input[tuiInputNumber]',
181
182
  providers: [
182
183
  tuiAsControl(TuiInputNumberDirective),
183
184
  tuiValueTransformerFrom(TUI_INPUT_NUMBER_OPTIONS),
184
185
  ],
185
- hostDirectives: [TuiWithTextfield, MaskitoDirective],
186
+ hostDirectives: [TuiWithInput, MaskitoDirective],
186
187
  host: {
187
188
  '[disabled]': 'disabled()',
188
189
  '[attr.inputMode]': 'inputMode()',
@@ -194,7 +195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
194
195
  }] });
195
196
 
196
197
  class TuiQuantumValueTransformerBase extends TuiValueTransformer {
197
- // eslint-disable-next-line @typescript-eslint/parameter-properties
198
+ // eslint-disable-next-line @typescript-eslint/parameter-properties,@angular-eslint/prefer-inject
198
199
  constructor(quantum = 0) {
199
200
  super();
200
201
  this.quantum = quantum;
@@ -211,10 +212,10 @@ class TuiQuantumValueTransformerBase extends TuiValueTransformer {
211
212
  ? tuiRound(Math.round(value / this.quantum) * this.quantum, TUI_FLOATING_PRECISION)
212
213
  : value;
213
214
  }
214
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiQuantumValueTransformerBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
215
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiQuantumValueTransformerBase, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
215
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiQuantumValueTransformerBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
216
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiQuantumValueTransformerBase, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
216
217
  }
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiQuantumValueTransformerBase, decorators: [{
218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiQuantumValueTransformerBase, decorators: [{
218
219
  type: Directive
219
220
  }], ctorParameters: () => [{ type: undefined }] });
220
221
  class TuiQuantumValueTransformer extends TuiQuantumValueTransformerBase {
@@ -222,26 +223,24 @@ class TuiQuantumValueTransformer extends TuiQuantumValueTransformerBase {
222
223
  super(0);
223
224
  this.parent = inject(TUI_INPUT_NUMBER_OPTIONS).valueTransformer;
224
225
  }
225
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiQuantumValueTransformer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
226
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiQuantumValueTransformer, isStandalone: true, selector: "[tuiInputNumber][quantum]", inputs: { quantum: "quantum" }, providers: [tuiProvide(TuiValueTransformer, TuiQuantumValueTransformer)], usesInheritance: true, ngImport: i0 }); }
226
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiQuantumValueTransformer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
227
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiQuantumValueTransformer, isStandalone: true, selector: "[tuiInputNumber][quantum]", inputs: { quantum: "quantum" }, providers: [tuiProvide(TuiValueTransformer, TuiQuantumValueTransformer)], usesInheritance: true, ngImport: i0 }); }
227
228
  }
228
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiQuantumValueTransformer, decorators: [{
229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiQuantumValueTransformer, decorators: [{
229
230
  type: Directive,
230
231
  args: [{
231
- standalone: true,
232
232
  selector: '[tuiInputNumber][quantum]',
233
233
  inputs: ['quantum'],
234
234
  providers: [tuiProvide(TuiValueTransformer, TuiQuantumValueTransformer)],
235
235
  }]
236
236
  }], ctorParameters: () => [] });
237
237
  class TuiWithQuantumValueTransformer {
238
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWithQuantumValueTransformer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
239
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiWithQuantumValueTransformer, isStandalone: true, hostDirectives: [{ directive: TuiQuantumValueTransformer, inputs: ["quantum", "quantum"] }], ngImport: i0 }); }
238
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiWithQuantumValueTransformer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
239
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiWithQuantumValueTransformer, isStandalone: true, hostDirectives: [{ directive: TuiQuantumValueTransformer, inputs: ["quantum", "quantum"] }], ngImport: i0 }); }
240
240
  }
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWithQuantumValueTransformer, decorators: [{
241
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiWithQuantumValueTransformer, decorators: [{
242
242
  type: Directive,
243
243
  args: [{
244
- standalone: true,
245
244
  hostDirectives: [
246
245
  {
247
246
  directive: TuiQuantumValueTransformer,
@@ -278,12 +277,12 @@ class TuiInputNumberStep {
278
277
  this.input.setValue(tuiClamp(current + step, this.input.min(), this.input.max()));
279
278
  this.el.setSelectionRange(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER);
280
279
  }
281
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputNumberStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
282
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiInputNumberStep, isStandalone: true, selector: "input[tuiInputNumber][step]", inputs: { stepSetter: ["step", "stepSetter"] }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "keydown.arrowDown.prevent": "onStep(-step())", "keydown.arrowUp.prevent": "onStep(step())" }, properties: { "class._with-buttons": "step()" } }, ngImport: i0, template: "<ng-container *tuiTextfieldContent>\n @if (step()) {\n <section class=\"t-input-number-buttons\">\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"appearance()\"\n [disabled]=\"!input.interactive() || value() >= input.max()\"\n [iconStart]=\"options.icons.increase\"\n (click.prevent)=\"onStep(step())\"\n (pointerdown.prevent)=\"step$.next(step())\"\n >\n +\n </button>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"appearance()\"\n [disabled]=\"!input.interactive() || value() <= input.min()\"\n [iconStart]=\"options.icons.decrease\"\n (click.prevent)=\"onStep(-step())\"\n (pointerdown.prevent)=\"step$.next(-step())\"\n >\n -\n </button>\n </section>\n }\n</ng-container>\n", styles: [".t-input-number-buttons.t-input-number-buttons{position:absolute;right:0;display:flex;block-size:var(--t-height);flex-direction:column;gap:.125rem;border-radius:inherit}@supports (inset-inline-end: 0){.t-input-number-buttons.t-input-number-buttons{right:unset;inset-inline-end:0}}tui-textfield[data-size=s] .t-input-number-buttons.t-input-number-buttons{flex-direction:row-reverse}.t-input-number-buttons.t-input-number-buttons>*{flex:1 1 0;border-radius:0}.t-input-number-buttons.t-input-number-buttons>*:first-child{border-top-right-radius:inherit}.t-input-number-buttons.t-input-number-buttons>*:last-child{border-bottom-right-radius:inherit}[dir=rtl] .t-input-number-buttons.t-input-number-buttons>*:first-child{border-radius:0;border-top-left-radius:inherit}[dir=rtl] .t-input-number-buttons.t-input-number-buttons>*:last-child{border-radius:0;border-bottom-left-radius:inherit}tui-textfield[data-size=l] .t-input-number-buttons.t-input-number-buttons>*{inline-size:var(--tui-height-m)}tui-textfield[data-size=s] .t-input-number-buttons.t-input-number-buttons>*:first-child{border-top-right-radius:inherit;border-bottom-right-radius:inherit}tui-textfield[data-size=s] .t-input-number-buttons.t-input-number-buttons>*:last-child{border-radius:0}[tuiInputNumber]._with-buttons{border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] [tuiInputNumber]._with-buttons{border-radius:inherit;border-top-left-radius:0;border-bottom-left-radius:0}tui-textfield[data-size=l]{--t-input-number-offset-end: calc(var(--tui-height-m) + .125rem)}tui-textfield[data-size=m]{--t-input-number-offset-end: calc(var(--tui-height-s) + .125rem)}tui-textfield[data-size=s]{--t-input-number-offset-end: calc(2 * var(--tui-height-s) + .25rem)}[tuiInputNumber]._with-buttons,[tuiInputNumber]._with-buttons~.t-template{inline-size:calc(100% - var(--t-input-number-offset-end));margin-inline-end:var(--t-input-number-offset-end)}[tuiInputNumber]._with-buttons~.t-content{margin-inline-end:var(--t-input-number-offset-end)}\n"], dependencies: [{ kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
280
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputNumberStep, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
281
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiInputNumberStep, isStandalone: true, selector: "input[tuiInputNumber][step]", inputs: { stepSetter: ["step", "stepSetter"] }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "keydown.arrowDown.prevent": "onStep(-step())", "keydown.arrowUp.prevent": "onStep(step())" }, properties: { "class._with-buttons": "step()" } }, hostDirectives: [{ directive: i1$1.TuiAppearanceProxy }], ngImport: i0, template: "<ng-container *tuiTextfieldContent>\n @if (step()) {\n <section class=\"t-input-number-buttons\">\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"appearance()\"\n [disabled]=\"!input.interactive() || value() >= input.max()\"\n [iconStart]=\"options.icons.increase\"\n (click.prevent)=\"onStep(step())\"\n (pointerdown.prevent)=\"step$.next(step())\"\n >\n +\n </button>\n <button\n size=\"s\"\n tabindex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"appearance()\"\n [disabled]=\"!input.interactive() || value() <= input.min()\"\n [iconStart]=\"options.icons.decrease\"\n (click.prevent)=\"onStep(-step())\"\n (pointerdown.prevent)=\"step$.next(-step())\"\n >\n -\n </button>\n </section>\n }\n</ng-container>\n", styles: [".t-input-number-buttons.t-input-number-buttons{position:absolute;right:0;display:flex;block-size:var(--t-height);flex-direction:column;gap:.125rem;border-radius:inherit}@supports (inset-inline-end: 0){.t-input-number-buttons.t-input-number-buttons{right:unset;inset-inline-end:0}}tui-textfield[data-size=s] .t-input-number-buttons.t-input-number-buttons{flex-direction:row-reverse}.t-input-number-buttons.t-input-number-buttons>*{flex:1 1 0;border-radius:0}.t-input-number-buttons.t-input-number-buttons>*:first-child{border-top-right-radius:inherit}.t-input-number-buttons.t-input-number-buttons>*:last-child{border-bottom-right-radius:inherit}[dir=rtl] .t-input-number-buttons.t-input-number-buttons>*:first-child{border-radius:0;border-top-left-radius:inherit}[dir=rtl] .t-input-number-buttons.t-input-number-buttons>*:last-child{border-radius:0;border-bottom-left-radius:inherit}tui-textfield[data-size=l] .t-input-number-buttons.t-input-number-buttons>*{inline-size:var(--tui-height-m)}tui-textfield[data-size=s] .t-input-number-buttons.t-input-number-buttons>*:first-child{border-top-right-radius:inherit;border-bottom-right-radius:inherit}tui-textfield[data-size=s] .t-input-number-buttons.t-input-number-buttons>*:last-child{border-radius:0}[tuiInputNumber]._with-buttons{border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] [tuiInputNumber]._with-buttons{border-radius:inherit;border-top-left-radius:0;border-bottom-left-radius:0}tui-textfield[data-size=l]{--t-input-number-offset-end: calc(var(--tui-height-m) + .125rem)}tui-textfield[data-size=m]{--t-input-number-offset-end: calc(var(--tui-height-s) + .125rem)}tui-textfield[data-size=s]{--t-input-number-offset-end: calc(2 * var(--tui-height-s) + .25rem)}[tuiInputNumber]._with-buttons,[tuiInputNumber]._with-buttons~.t-template{inline-size:calc(100% - var(--t-input-number-offset-end));margin-inline-end:var(--t-input-number-offset-end)}[tuiInputNumber]._with-buttons~.t-content{margin-inline-end:var(--t-input-number-offset-end)}\n"], dependencies: [{ kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
283
282
  }
284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiInputNumberStep, decorators: [{
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputNumberStep, decorators: [{
285
284
  type: Component,
286
- args: [{ selector: 'input[tuiInputNumber][step]', imports: [TuiButton, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
285
+ args: [{ selector: 'input[tuiInputNumber][step]', imports: [TuiButton, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAppearanceProxy], host: {
287
286
  ngSkipHydration: 'true',
288
287
  '(keydown.arrowDown.prevent)': 'onStep(-step())',
289
288
  '(keydown.arrowUp.prevent)': 'onStep(step())',
@@ -301,6 +300,10 @@ const TuiInputNumber = [
301
300
  TuiInputNumberDirective,
302
301
  TuiInputNumberStep,
303
302
  TuiQuantumValueTransformer,
303
+ TuiLabel,
304
+ TuiTextfieldComponent,
305
+ TuiTextfieldOptionsDirective,
306
+ TuiDropdownContent,
304
307
  ];
305
308
 
306
309
  /**