@taiga-ui/kit 4.52.0-canary.6043e8f → 4.52.0-canary.61fea47

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 (368) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  9. package/components/badge/badge.directive.d.ts +2 -2
  10. package/components/badge/badge.options.d.ts +1 -3
  11. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +2 -4
  14. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  15. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/chip/chip.directive.d.ts +2 -4
  18. package/components/chip/chip.options.d.ts +1 -3
  19. package/components/comment/comment.directive.d.ts +2 -2
  20. package/components/confirm/confirm.component.d.ts +5 -4
  21. package/components/confirm/confirm.service.d.ts +1 -1
  22. package/{directives → components}/copy/copy.component.d.ts +2 -2
  23. package/{directives → components}/copy/copy.directive.d.ts +3 -3
  24. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  25. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  26. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  27. package/components/data-list-wrapper/index.d.ts +1 -1
  28. package/components/files/file/file.options.d.ts +1 -1
  29. package/components/files/files/files.component.d.ts +2 -2
  30. package/components/files/input-files/input-files.options.d.ts +1 -3
  31. package/components/floating-container/floating-container.directive.d.ts +2 -2
  32. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  33. package/components/fullscreen/index.d.ts +1 -0
  34. package/components/index.d.ts +3 -1
  35. package/components/input-chip/input-chip.component.d.ts +9 -8
  36. package/components/input-chip/input-chip.directive.d.ts +7 -12
  37. package/components/input-date/input-date.directive.d.ts +5 -7
  38. package/components/input-date-multi/input-date-multi.directive.d.ts +9 -13
  39. package/components/input-date-range/input-date-range.directive.d.ts +1 -1
  40. package/components/input-date-time/input-date-time.directive.d.ts +1 -1
  41. package/components/input-month/input-month.directive.d.ts +1 -1
  42. package/components/input-month-range/input-month-range.directive.d.ts +1 -1
  43. package/components/input-number/input-number.directive.d.ts +5 -9
  44. package/components/input-number/quantum.directive.d.ts +1 -1
  45. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  46. package/components/input-phone-international/input-phone-international.component.d.ts +24 -30
  47. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  48. package/components/input-pin/input-pin.component.d.ts +1 -1
  49. package/components/input-range/input-range.component.d.ts +9 -12
  50. package/components/input-slider/input-slider.directive.d.ts +3 -5
  51. package/components/input-time/input-time.directive.d.ts +6 -8
  52. package/components/input-year/input-year.directive.d.ts +2 -2
  53. package/components/like/like.component.d.ts +2 -2
  54. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  55. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  56. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  57. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  58. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  59. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  60. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  61. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  62. package/components/pagination/index.d.ts +1 -0
  63. package/components/pagination/pagination.component.d.ts +3 -2
  64. package/components/pagination/pagination.options.d.ts +10 -0
  65. package/components/pin/pin.directive.d.ts +2 -2
  66. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  67. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  68. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  69. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  70. package/components/preview/preview.component.d.ts +1 -1
  71. package/components/preview/preview.d.ts +2 -1
  72. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  73. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  74. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  75. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  76. package/components/progress/progress.options.d.ts +1 -3
  77. package/components/push/push-alert.component.d.ts +4 -3
  78. package/components/push/push.component.d.ts +1 -1
  79. package/components/push/push.directive.d.ts +4 -6
  80. package/components/push/push.options.d.ts +5 -8
  81. package/components/push/push.service.d.ts +6 -2
  82. package/components/radio-list/radio-list.component.d.ts +5 -3
  83. package/components/range/range-change.directive.d.ts +1 -2
  84. package/components/range/range.component.d.ts +16 -24
  85. package/components/rating/rating.component.d.ts +1 -1
  86. package/components/rating/rating.options.d.ts +1 -3
  87. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  88. package/components/segmented/segmented.component.d.ts +4 -6
  89. package/components/segmented/segmented.directive.d.ts +6 -7
  90. package/components/select/native-select/native-select.component.d.ts +5 -6
  91. package/components/slider/helpers/key-steps.d.ts +1 -2
  92. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  93. package/components/slider/slider.options.d.ts +1 -6
  94. package/components/slides/slides.directive.d.ts +4 -4
  95. package/components/status/status.directive.d.ts +2 -2
  96. package/components/stepper/step.component.d.ts +6 -8
  97. package/components/stepper/stepper.component.d.ts +6 -11
  98. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  99. package/components/tabs/tabs.options.d.ts +1 -6
  100. package/components/textarea/textarea-limit.directive.d.ts +4 -5
  101. package/components/toast/index.d.ts +5 -0
  102. package/components/toast/toast.component.d.ts +18 -0
  103. package/components/toast/toast.d.ts +3 -0
  104. package/components/toast/toast.directive.d.ts +7 -0
  105. package/components/toast/toast.options.d.ts +10 -0
  106. package/components/toast/toast.service.d.ts +17 -0
  107. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  108. package/components/tree/misc/tree.constants.d.ts +0 -3
  109. package/components/tree/misc/tree.tokens.d.ts +1 -6
  110. package/directives/button-close/button-close.directive.d.ts +2 -1
  111. package/directives/button-select/button-select.directive.d.ts +4 -4
  112. package/directives/chevron/chevron.directive.d.ts +2 -3
  113. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  114. package/directives/fade/fade.directive.d.ts +2 -2
  115. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  116. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  117. package/directives/index.d.ts +0 -1
  118. package/directives/password/password.directive.d.ts +1 -1
  119. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  120. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  121. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  122. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  123. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  124. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  126. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-avatar.mjs +22 -33
  128. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -9
  130. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-badge.mjs +14 -25
  132. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +0 -1
  134. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-block.mjs +18 -29
  136. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +9 -15
  138. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  140. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +4 -15
  142. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +4 -5
  144. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-carousel.mjs +3 -9
  146. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +3 -4
  148. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-chip.mjs +16 -32
  150. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +8 -9
  152. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-comment.mjs +11 -18
  154. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-compass.mjs +3 -3
  156. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-confirm.mjs +6 -9
  158. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  159. package/fesm2022/{taiga-ui-kit-directives-copy.mjs → taiga-ui-kit-components-copy.mjs} +15 -18
  160. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  161. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +19 -74
  162. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-drawer.mjs +2 -2
  164. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -1
  166. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-files.mjs +22 -29
  168. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-filter.mjs +2 -2
  170. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +11 -17
  172. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  174. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  175. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +52 -69
  176. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +28 -47
  179. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +5 -6
  181. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +8 -10
  183. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-input-date.mjs +19 -30
  185. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -3
  187. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +7 -9
  189. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-input-month.mjs +7 -9
  191. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-input-number.mjs +30 -54
  193. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +101 -131
  195. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +3 -5
  197. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +3 -4
  199. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-input-range.mjs +29 -25
  201. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +26 -41
  203. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-input-time.mjs +33 -40
  205. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-input-year.mjs +8 -10
  207. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +2 -4
  209. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-like.mjs +4 -4
  211. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +30 -74
  213. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-message.mjs +6 -9
  215. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +27 -38
  217. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +32 -28
  219. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-pager.mjs +4 -6
  221. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-pagination.mjs +20 -11
  223. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-components-pin.mjs +13 -17
  225. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-preview.mjs +39 -31
  227. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-progress.mjs +61 -66
  229. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-components-pulse.mjs +1 -1
  231. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-push.mjs +42 -50
  233. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +6 -6
  235. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components-radio.mjs +3 -4
  237. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-components-range.mjs +36 -80
  239. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -9
  241. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +8 -4
  243. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-components-segmented.mjs +28 -55
  245. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-components-select.mjs +55 -46
  247. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-slider.mjs +63 -71
  249. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-components-slides.mjs +12 -20
  251. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-components-status.mjs +10 -14
  253. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-components-stepper.mjs +41 -75
  255. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  256. package/fesm2022/taiga-ui-kit-components-switch.mjs +3 -4
  257. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  258. package/fesm2022/taiga-ui-kit-components-tabs.mjs +17 -28
  259. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  260. package/fesm2022/taiga-ui-kit-components-textarea.mjs +8 -18
  261. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  262. package/fesm2022/taiga-ui-kit-components-tiles.mjs +2 -3
  263. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  264. package/fesm2022/taiga-ui-kit-components-toast.mjs +165 -0
  265. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  266. package/fesm2022/taiga-ui-kit-components-tree.mjs +39 -43
  267. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  268. package/fesm2022/taiga-ui-kit-components.mjs +3 -1
  269. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  270. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +13 -5
  271. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  272. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +6 -9
  273. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  274. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +17 -16
  275. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +14 -20
  277. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-directives-connected.mjs +7 -13
  279. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +23 -51
  281. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-directives-fade.mjs +13 -15
  283. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +12 -25
  285. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +0 -1
  287. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  288. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -1
  289. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-directives-password.mjs +9 -11
  291. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  292. package/fesm2022/taiga-ui-kit-directives-present.mjs +0 -1
  293. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  294. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +11 -16
  295. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  296. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +22 -32
  297. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  298. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +25 -36
  299. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  300. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +15 -20
  301. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  302. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +2 -3
  303. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  304. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +1 -2
  305. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  306. package/fesm2022/taiga-ui-kit-directives.mjs +0 -1
  307. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  309. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  310. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +0 -1
  311. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  312. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +0 -1
  313. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  314. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +31 -0
  315. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  316. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +1 -2
  317. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  319. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  320. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +2 -2
  321. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  322. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +0 -1
  323. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  324. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +0 -1
  325. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  326. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -0
  327. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  328. package/fesm2022/taiga-ui-kit-tokens.mjs +6 -19
  329. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  330. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  331. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  332. package/package.json +74 -58
  333. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  334. package/pipes/auto-color/index.d.ts +1 -0
  335. package/pipes/flag/flag.pipe.d.ts +14 -0
  336. package/pipes/flag/index.d.ts +1 -0
  337. package/pipes/index.d.ts +3 -0
  338. package/pipes/initials/index.d.ts +1 -0
  339. package/pipes/initials/initials.pipe.d.ts +7 -0
  340. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  341. package/styles/components/badge.less +1 -0
  342. package/styles/components/checkbox.less +1 -1
  343. package/styles/components/chip.less +12 -1
  344. package/styles/components/pin.less +0 -1
  345. package/styles/components/radio.less +1 -1
  346. package/styles/components/switch.less +1 -1
  347. package/styles/components/toast.less +44 -0
  348. package/tokens/i18n.d.ts +25 -26
  349. package/tokens/items-handlers.d.ts +1 -7
  350. package/tokens/preview-icons.d.ts +1 -3
  351. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  352. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  353. package/components/accordion/accordion-item.component.d.ts +0 -25
  354. package/components/action-bar/action-bar.d.ts +0 -3
  355. package/components/action-bar/action-bar.directive.d.ts +0 -6
  356. package/components/pdf-viewer/index.d.ts +0 -4
  357. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  358. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  359. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  360. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  361. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  362. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  363. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  364. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  365. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  366. /package/{directives → components}/copy/copy.d.ts +0 -0
  367. /package/{directives → components}/copy/copy.options.d.ts +0 -0
  368. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-pipes-initials.mjs","sources":["../../../projects/kit/pipes/initials/initials.pipe.ts","../../../projects/kit/pipes/initials/taiga-ui-kit-pipes-initials.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n name: 'tuiInitials',\n})\nexport class TuiInitialsPipe implements PipeTransform {\n public transform(text: string): string {\n return text\n .toUpperCase()\n .split(' ')\n .map(([char]) => char)\n .join('')\n .slice(0, 2);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,eAAe,CAAA;AACjB,IAAA,SAAS,CAAC,IAAY,EAAA;AACzB,QAAA,OAAO;AACF,aAAA,WAAW;aACX,KAAK,CAAC,GAAG;aACT,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI;aACpB,IAAI,CAAC,EAAE;AACP,aAAA,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;+GAPX,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,aAAa;AACtB,iBAAA;;;ACJD;;AAEG;;;;"}
@@ -1,11 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, Pipe } from '@angular/core';
3
+ import { toObservable } from '@angular/core/rxjs-interop';
3
4
  import { TUI_COUNTRIES } from '@taiga-ui/kit/tokens';
4
5
  import { map } from 'rxjs';
5
6
 
6
7
  class TuiSortCountriesPipe {
7
8
  constructor() {
8
- this.countriesNames$ = inject(TUI_COUNTRIES);
9
+ this.countriesNames$ = toObservable(inject(TUI_COUNTRIES));
9
10
  }
10
11
  transform(countries) {
11
12
  return this.countriesNames$.pipe(map((names) => [...countries].sort((a, b) => names[a].localeCompare(names[b]))));
@@ -16,7 +17,6 @@ class TuiSortCountriesPipe {
16
17
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSortCountriesPipe, decorators: [{
17
18
  type: Pipe,
18
19
  args: [{
19
- standalone: true,
20
20
  name: 'tuiSortCountries',
21
21
  }]
22
22
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-sort-countries.mjs","sources":["../../../projects/kit/pipes/sort-countries/sort-countries.pipe.ts","../../../projects/kit/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {TUI_COUNTRIES} from '@taiga-ui/kit/tokens';\nimport {map, type Observable} from 'rxjs';\n\n@Pipe({\n standalone: true,\n name: 'tuiSortCountries',\n})\nexport class TuiSortCountriesPipe implements PipeTransform {\n private readonly countriesNames$ = inject(TUI_COUNTRIES);\n\n public transform(\n countries: readonly TuiCountryIsoCode[],\n ): Observable<TuiCountryIsoCode[]> {\n return this.countriesNames$.pipe(\n map((names) =>\n [...countries].sort((a, b) => names[a].localeCompare(names[b])),\n ),\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,oBAAoB,CAAA;AAJjC,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,aAAa,CAAC;AAW3D;AATU,IAAA,SAAS,CACZ,SAAuC,EAAA;AAEvC,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAC5B,GAAG,CAAC,CAAC,KAAK,KACN,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAClE,CACJ;;+GAVI,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,kBAAkB;AAC3B,iBAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-sort-countries.mjs","sources":["../../../projects/kit/pipes/sort-countries/sort-countries.pipe.ts","../../../projects/kit/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {toObservable} from '@angular/core/rxjs-interop';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {TUI_COUNTRIES} from '@taiga-ui/kit/tokens';\nimport {map, type Observable} from 'rxjs';\n\n@Pipe({\n name: 'tuiSortCountries',\n})\nexport class TuiSortCountriesPipe implements PipeTransform {\n private readonly countriesNames$ = toObservable(inject(TUI_COUNTRIES));\n\n public transform(\n countries: readonly TuiCountryIsoCode[],\n ): Observable<TuiCountryIsoCode[]> {\n return this.countriesNames$.pipe(\n map((names) =>\n [...countries].sort((a, b) => names[a].localeCompare(names[b])),\n ),\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MASa,oBAAoB,CAAA;AAHjC,IAAA,WAAA,GAAA;QAIqB,IAAe,CAAA,eAAA,GAAG,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAWzE;AATU,IAAA,SAAS,CACZ,SAAuC,EAAA;AAEvC,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAC5B,GAAG,CAAC,CAAC,KAAK,KACN,CAAC,GAAG,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAClE,CACJ;;+GAVI,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,kBAAkB;AAC3B,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -11,7 +11,6 @@ class TuiStringifyContentPipe {
11
11
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStringifyContentPipe, decorators: [{
12
12
  type: Pipe,
13
13
  args: [{
14
- standalone: true,
15
14
  name: 'tuiStringifyContent',
16
15
  }]
17
16
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-stringify-content.mjs","sources":["../../../projects/kit/pipes/stringify-content/stringify-content.pipe.ts","../../../projects/kit/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {type TuiValueContentContext} from '@taiga-ui/core/types';\n\n@Pipe({\n standalone: true,\n name: 'tuiStringifyContent',\n})\nexport class TuiStringifyContentPipe implements PipeTransform {\n public transform<T>(\n stringify: TuiStringHandler<T>,\n ): TuiStringHandler<TuiValueContentContext<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,uBAAuB,CAAA;AACzB,IAAA,SAAS,CACZ,SAA8B,EAAA;QAE9B,OAAO,CAAC,EAAC,SAAS,EAAC,KAAK,SAAS,CAAC,SAAS,CAAC;;+GAJvC,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,qBAAqB;AAC9B,iBAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-stringify-content.mjs","sources":["../../../projects/kit/pipes/stringify-content/stringify-content.pipe.ts","../../../projects/kit/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiContext, type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n@Pipe({\n name: 'tuiStringifyContent',\n})\nexport class TuiStringifyContentPipe implements PipeTransform {\n public transform<T>(stringify: TuiStringHandler<T>): TuiStringHandler<TuiContext<T>> {\n return ({$implicit}) => stringify($implicit);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,uBAAuB,CAAA;AACzB,IAAA,SAAS,CAAI,SAA8B,EAAA;QAC9C,OAAO,CAAC,EAAC,SAAS,EAAC,KAAK,SAAS,CAAC,SAAS,CAAC;;+GAFvC,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,qBAAqB;AAC9B,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -11,7 +11,6 @@ class TuiStringifyPipe {
11
11
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiStringifyPipe, decorators: [{
12
12
  type: Pipe,
13
13
  args: [{
14
- standalone: true,
15
14
  name: 'tuiStringify',
16
15
  }]
17
16
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes-stringify.mjs","sources":["../../../projects/kit/pipes/stringify/stringify.pipe.ts","../../../projects/kit/pipes/stringify/taiga-ui-kit-pipes-stringify.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n@Pipe({\n standalone: true,\n name: 'tuiStringify',\n})\nexport class TuiStringifyPipe implements PipeTransform {\n public transform<K extends string>(\n key: K,\n ): TuiStringHandler<Readonly<Record<any, any> & Record<K, unknown>>> {\n return (value) => String(value[key] ?? '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAOa,gBAAgB,CAAA;AAClB,IAAA,SAAS,CACZ,GAAM,EAAA;AAEN,QAAA,OAAO,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;;+GAJrC,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes-stringify.mjs","sources":["../../../projects/kit/pipes/stringify/stringify.pipe.ts","../../../projects/kit/pipes/stringify/taiga-ui-kit-pipes-stringify.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n@Pipe({\n name: 'tuiStringify',\n})\nexport class TuiStringifyPipe implements PipeTransform {\n public transform<K extends string>(\n key: K,\n ): TuiStringHandler<Readonly<Record<any, any> & Record<K, unknown>>> {\n return (value) => String(value[key] ?? '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,gBAAgB,CAAA;AAClB,IAAA,SAAS,CACZ,GAAM,EAAA;AAEN,QAAA,OAAO,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;;+GAJrC,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,6 +1,9 @@
1
+ export * from '@taiga-ui/kit/pipes/auto-color';
1
2
  export * from '@taiga-ui/kit/pipes/emails';
2
3
  export * from '@taiga-ui/kit/pipes/filter-by-input';
4
+ export * from '@taiga-ui/kit/pipes/flag';
3
5
  export * from '@taiga-ui/kit/pipes/hide-selected';
6
+ export * from '@taiga-ui/kit/pipes/initials';
4
7
  export * from '@taiga-ui/kit/pipes/sort-countries';
5
8
  export * from '@taiga-ui/kit/pipes/stringify';
6
9
  export * from '@taiga-ui/kit/pipes/stringify-content';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-pipes.mjs","sources":["../../../projects/kit/pipes/taiga-ui-kit-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;;AAEG"}
1
+ {"version":3,"file":"taiga-ui-kit-pipes.mjs","sources":["../../../projects/kit/pipes/taiga-ui-kit-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;AAEG"}
@@ -7,9 +7,9 @@ import { tuiExtractI18n } from '@taiga-ui/i18n/utils';
7
7
  import { TUI_LAST_DAY, TUI_FIRST_DAY } from '@taiga-ui/cdk/date-time';
8
8
  import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
9
9
  import { TUI_FALSE_HANDLER, TUI_DEFAULT_IDENTITY_MATCHER } from '@taiga-ui/cdk/constants';
10
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
11
10
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
12
- import { TUI_DROPDOWN_COMPONENT } from '@taiga-ui/core/directives/dropdown';
11
+ import { TUI_DROPDOWN_COMPONENT } from '@taiga-ui/core/portals/dropdown';
12
+ import { toObservable } from '@angular/core/rxjs-interop';
13
13
  import { TUI_MONTHS } from '@taiga-ui/core/tokens';
14
14
 
15
15
  /**
@@ -149,16 +149,7 @@ const TUI_DEFAULT_ITEMS_HANDLERS = {
149
149
  * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
150
150
  * TODO(v5): delete
151
151
  */
152
- const TUI_ITEMS_HANDLERS = new InjectionToken(ngDevMode ? 'TUI_ITEMS_HANDLERS' : '', {
153
- factory: () => TUI_DEFAULT_ITEMS_HANDLERS,
154
- });
155
- /**
156
- * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
157
- * TODO(v5): delete
158
- */
159
- function tuiItemsHandlersProvider(options) {
160
- return tuiProvideOptions(TUI_ITEMS_HANDLERS, options, TUI_DEFAULT_ITEMS_HANDLERS);
161
- }
152
+ const [TUI_ITEMS_HANDLERS, tuiItemsHandlersProvider] = tuiCreateOptions(TUI_DEFAULT_ITEMS_HANDLERS);
162
153
 
163
154
  /**
164
155
  * A component for mobile data picker
@@ -170,8 +161,9 @@ const TUI_MOBILE_CALENDAR_PROVIDER = {
170
161
  inject(TUI_DROPDOWN_COMPONENT, { skipSelf: true }),
171
162
  };
172
163
 
164
+ // TODO: replace with signal
173
165
  const TUI_MONTH_FORMATTER = new InjectionToken(ngDevMode ? 'TUI_MONTH_FORMATTER' : '', {
174
- factory: () => inject(TUI_MONTHS).pipe(map((months) => (date) => {
166
+ factory: () => toObservable(inject(TUI_MONTHS)).pipe(map((months) => (date) => {
175
167
  if (!date) {
176
168
  return '';
177
169
  }
@@ -187,12 +179,7 @@ const TUI_PREVIEW_ICONS_DEFAULT = {
187
179
  zoomOut: '@tui.minus',
188
180
  zoomReset: '@tui.minimize',
189
181
  };
190
- const TUI_PREVIEW_ICONS = new InjectionToken(ngDevMode ? 'TUI_PREVIEW_ICONS' : '', {
191
- factory: () => TUI_PREVIEW_ICONS_DEFAULT,
192
- });
193
- function tuiPreviewIconsProvider(icons) {
194
- return tuiProvideOptions(TUI_PREVIEW_ICONS, icons, TUI_PREVIEW_ICONS_DEFAULT);
195
- }
182
+ const [TUI_PREVIEW_ICONS, tuiPreviewIconsProvider] = tuiCreateOptions(TUI_PREVIEW_ICONS_DEFAULT);
196
183
 
197
184
  /**
198
185
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-tokens.mjs","sources":["../../../projects/kit/tokens/calendar-date-stream.ts","../../../projects/kit/tokens/date-inputs-value-transformers.ts","../../../projects/kit/tokens/i18n.ts","../../../projects/kit/tokens/input-date-options.ts","../../../projects/kit/tokens/items-handlers.ts","../../../projects/kit/tokens/mobile-calendar.ts","../../../projects/kit/tokens/month-formatter.ts","../../../projects/kit/tokens/preview-icons.ts","../../../projects/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken, Optional, type Provider, Self} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {type TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiDayRange, type TuiTime} from '@taiga-ui/cdk/date-time';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {map, type Observable, of} from 'rxjs';\n\n/**\n * Stream that emits calendar data change\n * @deprecated this should be rewritten in v5\n */\nexport const TUI_CALENDAR_DATE_STREAM = new InjectionToken<\n Observable<TuiDay | TuiDayRange | null>\n>(ngDevMode ? 'TUI_CALENDAR_DATE_STREAM' : '');\n\nexport function tuiDateStreamWithTransformer(\n transformer: InjectionToken<TuiValueTransformer<any>>,\n): Provider {\n return {\n provide: TUI_CALENDAR_DATE_STREAM,\n deps: [\n [new Optional(), new Self(), NgControl],\n [new Optional(), transformer],\n ],\n useFactory: tuiControlValueFactory,\n };\n}\n\nfunction tuiControlValueFactory<\n T extends TuiDay | TuiDayRange | [TuiDay, TuiTime | null],\n>(\n control: NgControl | null,\n transformer?: TuiValueTransformer<T> | null,\n): Observable<T | null> | null {\n return control\n ? tuiControlValue(control).pipe(\n map((value) =>\n transformer ? transformer?.fromControlValue(value) : (value as T),\n ),\n )\n : of(null);\n}\n","import {InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiDayRange, type TuiTime} from '@taiga-ui/cdk/date-time';\n\n/**\n * Control value transformer of TuiDay to custom value format for InputDate* components\n */\nexport const TUI_DATE_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<TuiDay | null>\n>(ngDevMode ? 'TUI_DATE_VALUE_TRANSFORMER' : '', {\n factory: () => TUI_IDENTITY_VALUE_TRANSFORMER,\n});\n\n/**\n * Control value transformer for InputDateRange component\n */\nexport const TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<TuiDayRange | null>\n>(ngDevMode ? 'TUI_DATE_RANGE_VALUE_TRANSFORMER' : '');\n\n/**\n * Control value transformer for InputDateTime component\n */\nexport const TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<[TuiDay, TuiTime | null]>\n>(ngDevMode ? 'TUI_DATE_TIME_VALUE_TRANSFORMER' : '');\n\n/**\n * Control value transformer for InputTime component\n */\nexport const TUI_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<TuiTime | null>\n>(ngDevMode ? 'TUI_TIME_VALUE_TRANSFORMER' : '');\n","import {InjectionToken} from '@angular/core';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\nimport {type Observable} from 'rxjs';\n\nexport const TUI_CONFIRM_WORDS = new InjectionToken(\n ngDevMode ? 'TUI_CONFIRM_WORDS' : '',\n {\n factory: tuiExtractI18n('confirm'),\n },\n);\n\nexport const TUI_CANCEL_WORD = new InjectionToken(ngDevMode ? 'TUI_CANCEL_WORD' : '', {\n factory: tuiExtractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(ngDevMode ? 'TUI_DONE_WORD' : '', {\n factory: tuiExtractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(ngDevMode ? 'TUI_MORE_WORD' : '', {\n factory: tuiExtractI18n('more'),\n});\n\nexport const TUI_HIDE_TEXT = new InjectionToken(ngDevMode ? 'TUI_HIDE_TEXT' : '', {\n factory: tuiExtractI18n('hide'),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_SHOW_ALL_TEXT' : '',\n {\n factory: tuiExtractI18n('showAll'),\n },\n);\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_OTHER_DATE_TEXT' : '',\n {\n factory: tuiExtractI18n('otherDate'),\n },\n);\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_CHOOSE_DAY_OR_RANGE_TEXTS' : '',\n {\n factory: tuiExtractI18n('mobileCalendarTexts'),\n },\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_FROM_TO_TEXTS' : '',\n {\n factory: tuiExtractI18n('range'),\n },\n);\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PLUS_MINUS_TEXTS' : '',\n {\n factory: tuiExtractI18n('countTexts'),\n },\n);\n\nexport const TUI_TIME_TEXTS = new InjectionToken(ngDevMode ? 'TUI_TIME_TEXTS' : '', {\n factory: tuiExtractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Observable<Record<TuiDateMode, string>>>(\n ngDevMode ? 'TUI_DATE_TEXTS' : '',\n {\n factory: tuiExtractI18n('dateTexts'),\n },\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n ngDevMode ? 'TUI_DIGITAL_INFORMATION_UNITS' : '',\n {\n factory: tuiExtractI18n('digitalInformationUnits'),\n },\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken(ngDevMode ? 'TUI_COPY_TEXTS' : '', {\n factory: tuiExtractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PASSWORD_TEXTS' : '',\n {\n factory: tuiExtractI18n('passwordTexts'),\n },\n);\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken(\n ngDevMode ? 'TUI_CALENDAR_MONTHS' : '',\n {\n factory: tuiExtractI18n('shortCalendarMonths'),\n },\n);\n\nexport const TUI_FILE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FILE_TEXTS' : '', {\n factory: tuiExtractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PAGINATION_TEXTS' : '',\n {\n factory: tuiExtractI18n('pagination'),\n },\n);\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_FILE_TEXTS' : '',\n {\n factory: tuiExtractI18n('inputFileTexts'),\n },\n);\n\nexport const TUI_MULTI_SELECT_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_MULTI_SELECT_TEXTS' : '',\n {\n factory: tuiExtractI18n('multiSelectTexts'),\n },\n);\n\nexport const TUI_COUNTRIES = new InjectionToken<\n Observable<Record<TuiCountryIsoCode, string>>\n>(ngDevMode ? 'TUI_COUNTRIES' : '', {\n factory: tuiExtractI18n('countries'),\n});\n\nexport const TUI_PREVIEW_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_TEXTS' : '',\n {\n factory: tuiExtractI18n('previewTexts'),\n },\n);\n\nexport const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_ZOOM_TEXTS' : '',\n {\n factory: tuiExtractI18n('zoomTexts'),\n },\n);\n\nexport const TUI_INTERNATIONAL_SEARCH = new InjectionToken(\n ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '',\n {\n factory: tuiExtractI18n('phoneSearch'),\n },\n);\n","import {TUI_FIRST_DAY, TUI_LAST_DAY, type TuiDay} from '@taiga-ui/cdk/date-time';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport interface TuiInputDateOptions {\n readonly icon: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n readonly max: TuiDay;\n readonly min: TuiDay;\n readonly nativePicker: boolean;\n}\n\nexport const TUI_INPUT_DATE_DEFAULT_OPTIONS: TuiInputDateOptions = {\n icon: () => '@tui.calendar',\n min: TUI_FIRST_DAY,\n max: TUI_LAST_DAY,\n nativePicker: false,\n};\n\n/**\n * Default parameters for InputDate component\n */\nexport const [TUI_INPUT_DATE_OPTIONS, tuiInputDateOptionsProvider] = tuiCreateOptions(\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n);\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {TUI_DEFAULT_IDENTITY_MATCHER, TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {\n type TuiBooleanHandler,\n type TuiIdentityMatcher,\n type TuiStringHandler,\n} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.\n * TODO(v5): delete\n */\nexport interface TuiItemsHandlers<T> {\n readonly disabledItemHandler: TuiBooleanHandler<T>;\n readonly identityMatcher: TuiIdentityMatcher<T>;\n readonly stringify: TuiStringHandler<T>;\n}\n\n/**\n * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.\n * TODO(v5): delete\n */\nexport const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown> = {\n stringify: String,\n identityMatcher: TUI_DEFAULT_IDENTITY_MATCHER,\n disabledItemHandler: TUI_FALSE_HANDLER,\n};\n\n/**\n * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.\n * TODO(v5): delete\n */\nexport const TUI_ITEMS_HANDLERS = new InjectionToken(\n ngDevMode ? 'TUI_ITEMS_HANDLERS' : '',\n {\n factory: () => TUI_DEFAULT_ITEMS_HANDLERS,\n },\n);\n\n/**\n * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.\n * TODO(v5): delete\n */\nexport function tuiItemsHandlersProvider<T>(\n options: Partial<TuiItemsHandlers<T>>,\n): Provider {\n return tuiProvideOptions(TUI_ITEMS_HANDLERS, options, TUI_DEFAULT_ITEMS_HANDLERS);\n}\n","import {type FactoryProvider, inject, InjectionToken, type Type} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TUI_DROPDOWN_COMPONENT} from '@taiga-ui/core/directives/dropdown';\n\n/**\n * A component for mobile data picker\n */\nexport const TUI_MOBILE_CALENDAR = new InjectionToken<Type<unknown>>(\n ngDevMode ? 'TUI_MOBILE_CALENDAR' : '',\n);\n\nexport const TUI_MOBILE_CALENDAR_PROVIDER: FactoryProvider = {\n provide: TUI_DROPDOWN_COMPONENT,\n useFactory: () =>\n (inject(TUI_IS_MOBILE) && inject(TUI_MOBILE_CALENDAR, {optional: true})) ||\n inject(TUI_DROPDOWN_COMPONENT, {skipSelf: true}),\n};\n","import {inject, InjectionToken} from '@angular/core';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {map, type Observable} from 'rxjs';\n\nexport const TUI_MONTH_FORMATTER = new InjectionToken<\n Observable<TuiHandler<TuiMonth | null, string>>\n>(ngDevMode ? 'TUI_MONTH_FORMATTER' : '', {\n factory: () =>\n inject(TUI_MONTHS).pipe(\n map((months) => (date) => {\n if (!date) {\n return '';\n }\n\n return `${months[date.month] ?? ''} ${date.formattedYear}`;\n }),\n ),\n});\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiPreviewIcons {\n readonly next: string;\n readonly prev: string;\n readonly rotate: string;\n readonly zoomIn: string;\n readonly zoomOut: string;\n readonly zoomReset: string;\n}\n\nexport const TUI_PREVIEW_ICONS_DEFAULT: TuiPreviewIcons = {\n rotate: '@tui.rotate-ccw-square',\n prev: '@tui.arrow-left',\n next: '@tui.arrow-right',\n zoomIn: '@tui.plus',\n zoomOut: '@tui.minus',\n zoomReset: '@tui.minimize',\n};\n\nexport const TUI_PREVIEW_ICONS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_ICONS' : '',\n {\n factory: () => TUI_PREVIEW_ICONS_DEFAULT,\n },\n);\n\nexport function tuiPreviewIconsProvider(icons: Partial<TuiPreviewIcons>): Provider {\n return tuiProvideOptions(TUI_PREVIEW_ICONS, icons, TUI_PREVIEW_ICONS_DEFAULT);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA;;;AAGG;AACU,MAAA,wBAAwB,GAAG,IAAI,cAAc,CAExD,SAAS,GAAG,0BAA0B,GAAG,EAAE;AAEvC,SAAU,4BAA4B,CACxC,WAAqD,EAAA;IAErD,OAAO;AACH,QAAA,OAAO,EAAE,wBAAwB;AACjC,QAAA,IAAI,EAAE;Y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AAE,KAAK,EAAE,yBAAyB,CAAC;AACjF;;AC9BA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-tokens.mjs","sources":["../../../projects/kit/tokens/calendar-date-stream.ts","../../../projects/kit/tokens/date-inputs-value-transformers.ts","../../../projects/kit/tokens/i18n.ts","../../../projects/kit/tokens/input-date-options.ts","../../../projects/kit/tokens/items-handlers.ts","../../../projects/kit/tokens/mobile-calendar.ts","../../../projects/kit/tokens/month-formatter.ts","../../../projects/kit/tokens/preview-icons.ts","../../../projects/kit/tokens/taiga-ui-kit-tokens.ts"],"sourcesContent":["import {InjectionToken, Optional, type Provider, Self} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {type TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiDayRange, type TuiTime} from '@taiga-ui/cdk/date-time';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {map, type Observable, of} from 'rxjs';\n\n/**\n * Stream that emits calendar data change\n * @deprecated this should be rewritten in v5\n */\nexport const TUI_CALENDAR_DATE_STREAM = new InjectionToken<\n Observable<TuiDay | TuiDayRange | null>\n>(ngDevMode ? 'TUI_CALENDAR_DATE_STREAM' : '');\n\nexport function tuiDateStreamWithTransformer(\n transformer: InjectionToken<TuiValueTransformer<any>>,\n): Provider {\n return {\n provide: TUI_CALENDAR_DATE_STREAM,\n deps: [\n [new Optional(), new Self(), NgControl],\n [new Optional(), transformer],\n ],\n useFactory: tuiControlValueFactory,\n };\n}\n\nfunction tuiControlValueFactory<\n T extends TuiDay | TuiDayRange | [TuiDay, TuiTime | null],\n>(\n control: NgControl | null,\n transformer?: TuiValueTransformer<T> | null,\n): Observable<T | null> | null {\n return control\n ? tuiControlValue(control).pipe(\n map((value) =>\n transformer ? transformer?.fromControlValue(value) : (value as T),\n ),\n )\n : of(null);\n}\n","import {InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiDayRange, type TuiTime} from '@taiga-ui/cdk/date-time';\n\n/**\n * Control value transformer of TuiDay to custom value format for InputDate* components\n */\nexport const TUI_DATE_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<TuiDay | null>\n>(ngDevMode ? 'TUI_DATE_VALUE_TRANSFORMER' : '', {\n factory: () => TUI_IDENTITY_VALUE_TRANSFORMER,\n});\n\n/**\n * Control value transformer for InputDateRange component\n */\nexport const TUI_DATE_RANGE_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<TuiDayRange | null>\n>(ngDevMode ? 'TUI_DATE_RANGE_VALUE_TRANSFORMER' : '');\n\n/**\n * Control value transformer for InputDateTime component\n */\nexport const TUI_DATE_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<[TuiDay, TuiTime | null]>\n>(ngDevMode ? 'TUI_DATE_TIME_VALUE_TRANSFORMER' : '');\n\n/**\n * Control value transformer for InputTime component\n */\nexport const TUI_TIME_VALUE_TRANSFORMER = new InjectionToken<\n TuiValueTransformer<TuiTime | null>\n>(ngDevMode ? 'TUI_TIME_VALUE_TRANSFORMER' : '');\n","import {InjectionToken, type Signal} from '@angular/core';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {tuiExtractI18n} from '@taiga-ui/i18n/utils';\n\nexport const TUI_CONFIRM_WORDS = new InjectionToken(\n ngDevMode ? 'TUI_CONFIRM_WORDS' : '',\n {\n factory: tuiExtractI18n('confirm'),\n },\n);\n\nexport const TUI_CANCEL_WORD = new InjectionToken(ngDevMode ? 'TUI_CANCEL_WORD' : '', {\n factory: tuiExtractI18n('cancel'),\n});\n\nexport const TUI_DONE_WORD = new InjectionToken(ngDevMode ? 'TUI_DONE_WORD' : '', {\n factory: tuiExtractI18n('done'),\n});\n\nexport const TUI_MORE_WORD = new InjectionToken(ngDevMode ? 'TUI_MORE_WORD' : '', {\n factory: tuiExtractI18n('more'),\n});\n\nexport const TUI_HIDE_TEXT = new InjectionToken(ngDevMode ? 'TUI_HIDE_TEXT' : '', {\n factory: tuiExtractI18n('hide'),\n});\n\nexport const TUI_SHOW_ALL_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_SHOW_ALL_TEXT' : '',\n {\n factory: tuiExtractI18n('showAll'),\n },\n);\n\nexport const TUI_OTHER_DATE_TEXT = new InjectionToken(\n ngDevMode ? 'TUI_OTHER_DATE_TEXT' : '',\n {\n factory: tuiExtractI18n('otherDate'),\n },\n);\n\nexport const TUI_CHOOSE_DAY_OR_RANGE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_CHOOSE_DAY_OR_RANGE_TEXTS' : '',\n {\n factory: tuiExtractI18n('mobileCalendarTexts'),\n },\n);\n\nexport const TUI_FROM_TO_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_FROM_TO_TEXTS' : '',\n {\n factory: tuiExtractI18n('range'),\n },\n);\n\nexport const TUI_PLUS_MINUS_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PLUS_MINUS_TEXTS' : '',\n {\n factory: tuiExtractI18n('countTexts'),\n },\n);\n\nexport const TUI_TIME_TEXTS = new InjectionToken(ngDevMode ? 'TUI_TIME_TEXTS' : '', {\n factory: tuiExtractI18n('time'),\n});\n\nexport const TUI_DATE_TEXTS = new InjectionToken<Signal<Record<TuiDateMode, string>>>(\n ngDevMode ? 'TUI_DATE_TEXTS' : '',\n {\n factory: tuiExtractI18n('dateTexts'),\n },\n);\n\nexport const TUI_DIGITAL_INFORMATION_UNITS = new InjectionToken(\n ngDevMode ? 'TUI_DIGITAL_INFORMATION_UNITS' : '',\n {\n factory: tuiExtractI18n('digitalInformationUnits'),\n },\n);\n\nexport const TUI_COPY_TEXTS = new InjectionToken(ngDevMode ? 'TUI_COPY_TEXTS' : '', {\n factory: tuiExtractI18n('copyTexts'),\n});\n\nexport const TUI_PASSWORD_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PASSWORD_TEXTS' : '',\n {\n factory: tuiExtractI18n('passwordTexts'),\n },\n);\n\nexport const TUI_CALENDAR_MONTHS = new InjectionToken(\n ngDevMode ? 'TUI_CALENDAR_MONTHS' : '',\n {\n factory: tuiExtractI18n('shortCalendarMonths'),\n },\n);\n\nexport const TUI_FILE_TEXTS = new InjectionToken(ngDevMode ? 'TUI_FILE_TEXTS' : '', {\n factory: tuiExtractI18n('fileTexts'),\n});\n\nexport const TUI_PAGINATION_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PAGINATION_TEXTS' : '',\n {\n factory: tuiExtractI18n('pagination'),\n },\n);\n\nexport const TUI_INPUT_FILE_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_FILE_TEXTS' : '',\n {\n factory: tuiExtractI18n('inputFileTexts'),\n },\n);\n\nexport const TUI_MULTI_SELECT_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_MULTI_SELECT_TEXTS' : '',\n {\n factory: tuiExtractI18n('multiSelectTexts'),\n },\n);\n\nexport const TUI_COUNTRIES = new InjectionToken<\n Signal<Record<TuiCountryIsoCode, string>>\n>(ngDevMode ? 'TUI_COUNTRIES' : '', {\n factory: tuiExtractI18n('countries'),\n});\n\nexport const TUI_PREVIEW_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_TEXTS' : '',\n {\n factory: tuiExtractI18n('previewTexts'),\n },\n);\n\nexport const TUI_PREVIEW_ZOOM_TEXTS = new InjectionToken(\n ngDevMode ? 'TUI_PREVIEW_ZOOM_TEXTS' : '',\n {\n factory: tuiExtractI18n('zoomTexts'),\n },\n);\n\nexport const TUI_INTERNATIONAL_SEARCH = new InjectionToken(\n ngDevMode ? 'TUI_INTERNATIONAL_SEARCH' : '',\n {\n factory: tuiExtractI18n('phoneSearch'),\n },\n);\n","import {TUI_FIRST_DAY, TUI_LAST_DAY, type TuiDay} from '@taiga-ui/cdk/date-time';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport interface TuiInputDateOptions {\n readonly icon: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n readonly max: TuiDay;\n readonly min: TuiDay;\n readonly nativePicker: boolean;\n}\n\nexport const TUI_INPUT_DATE_DEFAULT_OPTIONS: TuiInputDateOptions = {\n icon: () => '@tui.calendar',\n min: TUI_FIRST_DAY,\n max: TUI_LAST_DAY,\n nativePicker: false,\n};\n\n/**\n * Default parameters for InputDate component\n */\nexport const [TUI_INPUT_DATE_OPTIONS, tuiInputDateOptionsProvider] = tuiCreateOptions(\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n);\n","import {TUI_DEFAULT_IDENTITY_MATCHER, TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {\n type TuiBooleanHandler,\n type TuiIdentityMatcher,\n type TuiStringHandler,\n} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\n/**\n * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.\n * TODO(v5): delete\n */\nexport interface TuiItemsHandlers<T> {\n readonly disabledItemHandler: TuiBooleanHandler<T>;\n readonly identityMatcher: TuiIdentityMatcher<T>;\n readonly stringify: TuiStringHandler<T>;\n}\n\n/**\n * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.\n * TODO(v5): delete\n */\nexport const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown> = {\n stringify: String,\n identityMatcher: TUI_DEFAULT_IDENTITY_MATCHER,\n disabledItemHandler: TUI_FALSE_HANDLER,\n};\n\n/**\n * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.\n * TODO(v5): delete\n */\nexport const [TUI_ITEMS_HANDLERS, tuiItemsHandlersProvider] = tuiCreateOptions(\n TUI_DEFAULT_ITEMS_HANDLERS,\n);\n","import {type FactoryProvider, inject, InjectionToken, type Type} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TUI_DROPDOWN_COMPONENT} from '@taiga-ui/core/portals/dropdown';\n\n/**\n * A component for mobile data picker\n */\nexport const TUI_MOBILE_CALENDAR = new InjectionToken<Type<unknown>>(\n ngDevMode ? 'TUI_MOBILE_CALENDAR' : '',\n);\n\nexport const TUI_MOBILE_CALENDAR_PROVIDER: FactoryProvider = {\n provide: TUI_DROPDOWN_COMPONENT,\n useFactory: () =>\n (inject(TUI_IS_MOBILE) && inject(TUI_MOBILE_CALENDAR, {optional: true})) ||\n inject(TUI_DROPDOWN_COMPONENT, {skipSelf: true}),\n};\n","import {inject, InjectionToken} from '@angular/core';\nimport {toObservable} from '@angular/core/rxjs-interop';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {map, type Observable} from 'rxjs';\n\n// TODO: replace with signal\nexport const TUI_MONTH_FORMATTER = new InjectionToken<\n Observable<TuiHandler<TuiMonth | null, string>>\n>(ngDevMode ? 'TUI_MONTH_FORMATTER' : '', {\n factory: () =>\n toObservable(inject(TUI_MONTHS)).pipe(\n map((months) => (date) => {\n if (!date) {\n return '';\n }\n\n return `${months[date.month] ?? ''} ${date.formattedYear}`;\n }),\n ),\n});\n","import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiPreviewIcons {\n readonly next: string;\n readonly prev: string;\n readonly rotate: string;\n readonly zoomIn: string;\n readonly zoomOut: string;\n readonly zoomReset: string;\n}\n\nexport const TUI_PREVIEW_ICONS_DEFAULT: TuiPreviewIcons = {\n rotate: '@tui.rotate-ccw-square',\n prev: '@tui.arrow-left',\n next: '@tui.arrow-right',\n zoomIn: '@tui.plus',\n zoomOut: '@tui.minus',\n zoomReset: '@tui.minimize',\n};\n\nexport const [TUI_PREVIEW_ICONS, tuiPreviewIconsProvider] = tuiCreateOptions(\n TUI_PREVIEW_ICONS_DEFAULT,\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA;;;AAGG;AACU,MAAA,wBAAwB,GAAG,IAAI,cAAc,CAExD,SAAS,GAAG,0BAA0B,GAAG,EAAE;AAEvC,SAAU,4BAA4B,CACxC,WAAqD,EAAA;IAErD,OAAO;AACH,QAAA,OAAO,EAAE,wBAAwB;AACjC,QAAA,IAAI,EAAE;YACF,CAAC,IAAI,QAAQ,EAAE,EAAE,IAAI,IAAI,EAAE,EAAE,SAAS,CAAC;AACvC,YAAA,CAAC,IAAI,QAAQ,EAAE,EAAE,WAAW,CAAC;AAChC,SAAA;AACD,QAAA,UAAU,EAAE,sBAAsB;KACrC;AACL;AAEA,SAAS,sBAAsB,CAG3B,OAAyB,EACzB,WAA2C,EAAA;AAE3C,IAAA,OAAO;AACH,UAAE,eAAe,CAAC,OAAO,CAAC,CAAC,IAAI,CACzB,GAAG,CAAC,CAAC,KAAK,KACN,WAAW,GAAG,WAAW,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAI,KAAW,CACpE;AAEP,UAAE,EAAE,CAAC,IAAI,CAAC;AAClB;;AClCA;;AAEG;AACU,MAAA,0BAA0B,GAAG,IAAI,cAAc,CAE1D,SAAS,GAAG,4BAA4B,GAAG,EAAE,EAAE;AAC7C,IAAA,OAAO,EAAE,MAAM,8BAA8B;AAChD,CAAA;AAED;;AAEG;AACU,MAAA,gCAAgC,GAAG,IAAI,cAAc,CAEhE,SAAS,GAAG,kCAAkC,GAAG,EAAE;AAErD;;AAEG;AACU,MAAA,+BAA+B,GAAG,IAAI,cAAc,CAE/D,SAAS,GAAG,iCAAiC,GAAG,EAAE;AAEpD;;AAEG;AACU,MAAA,0BAA0B,GAAG,IAAI,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AE,YAAY;AACrB,IAAA,SAAS,EAAE,eAAe;;AAGvB,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAAC,GAAG,gBAAgB,CACxE,yBAAyB;;ACrB7B;;AAEG;;;;"}
@@ -21,7 +21,7 @@ function tuiCreateTimePeriods(minHour = 0, maxHour = HOURS_IN_DAY, minutes = [0,
21
21
  }
22
22
 
23
23
  function tuiInjectValue() {
24
- const control = inject(TuiTextfieldComponent, { optional: true })?.control ||
24
+ const control = inject(TuiTextfieldComponent, { optional: true })?.control() ||
25
25
  inject(NgControl, { optional: true });
26
26
  return toSignal(tuiControlValue(control), { requireSync: true });
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-utils.mjs","sources":["../../../projects/kit/utils/create-time-periods.ts","../../../projects/kit/utils/inject-value.ts","../../../projects/kit/utils/is-flat.ts","../../../projects/kit/utils/maskito.binding.ts","../../../projects/kit/utils/phone.ts","../../../projects/kit/utils/toggle-day.ts","../../../projects/kit/utils/taiga-ui-kit-utils.ts"],"sourcesContent":["import {HOURS_IN_DAY, TuiTime} from '@taiga-ui/cdk/date-time';\n\nexport function tuiCreateTimePeriods(\n minHour = 0,\n maxHour: number = HOURS_IN_DAY,\n minutes: readonly number[] = [0, 30],\n): readonly TuiTime[] {\n const timeArray: TuiTime[] = [];\n\n for (let i = minHour; i < maxHour; i++) {\n minutes.forEach((minute) => {\n const time = new TuiTime(i, minute);\n\n timeArray.push(time);\n });\n }\n\n return timeArray;\n}\n","import {inject, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\n\nexport function tuiInjectValue<T>(): Signal<T> {\n const control =\n inject(TuiTextfieldComponent, {optional: true})?.control ||\n inject(NgControl, {optional: true});\n\n return toSignal(tuiControlValue(control), {requireSync: true});\n}\n","export function tuiIsFlat<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[],\n): items is readonly T[] {\n return !Array.isArray(items[0]);\n}\n","import {type Signal, type WritableSignal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils';\n\ntype M = MaskitoOptions | null;\n\nexport function tuiMaskito(options: M | WritableSignal<M>): WritableSignal<M>;\nexport function tuiMaskito(options: Signal<M>): Signal<M>;\nexport function tuiMaskito(options: M | Signal<M>): Signal<M> {\n return tuiDirectiveBinding(MaskitoDirective, 'options', options);\n}\n","import {CHAR_PLUS} from '@taiga-ui/cdk/constants';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {getCountryCallingCode, type MetadataJson} from 'libphonenumber-js/core';\n\nexport function tuiGetCallingCode(\n iso: TuiCountryIsoCode,\n metadata?: MetadataJson | null,\n): string {\n return metadata ? CHAR_PLUS + getCountryCallingCode(iso, metadata) : '';\n}\n","import {type TuiDay} from '@taiga-ui/cdk/date-time';\n\nexport function tuiToggleDay(\n days: readonly TuiDay[] | null,\n day: TuiDay,\n): readonly TuiDay[] {\n return (\n (days?.find((item) => item.daySame(day))\n ? days.filter((item) => !item.daySame(day))\n : days?.concat(day)) || []\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAEgB,SAAA,oBAAoB,CAChC,OAAO,GAAG,CAAC,EACX,OAAkB,GAAA,YAAY,EAC9B,OAA6B,GAAA,CAAC,CAAC,EAAE,EAAE,CAAC,EAAA;IAEpC,MAAM,SAAS,GAAc,EAAE;AAE/B,IAAA,KAAK,IAAI,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;AACpC,QAAA,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,KAAI;YACvB,MAAM,IAAI,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC;AAEnC,YAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;AACxB,SAAC,CAAC;;AAGN,IAAA,OAAO,SAAS;AACpB;;SCZgB,cAAc,GAAA;AAC1B,IAAA,MAAM,OAAO,GACT,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,OAAO;QACxD,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAEvC,IAAA,OAAO,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;AAClE;;ACZM,SAAU,SAAS,CACrB,KAAiD,EAAA;IAEjD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC;;ACKM,SAAU,UAAU,CAAC,OAAsB,EAAA;IAC7C,OAAO,mBAAmB,CAAC,gBAAgB,EAAE,SAAS,EAAE,OAAO,CAAC;AACpE;;ACPgB,SAAA,iBAAiB,CAC7B,GAAsB,EACtB,QAA8B,EAAA;AAE9B,IAAA,OAAO,QAAQ,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE;AAC3E;;ACPgB,SAAA,YAAY,CACxB,IAA8B,EAC9B,GAAW,EAAA;AAEX,IAAA,QACI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;AACnC,UAAE,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;UACxC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE;AAEtC;;ACXA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-utils.mjs","sources":["../../../projects/kit/utils/create-time-periods.ts","../../../projects/kit/utils/inject-value.ts","../../../projects/kit/utils/is-flat.ts","../../../projects/kit/utils/maskito.binding.ts","../../../projects/kit/utils/phone.ts","../../../projects/kit/utils/toggle-day.ts","../../../projects/kit/utils/taiga-ui-kit-utils.ts"],"sourcesContent":["import {HOURS_IN_DAY, TuiTime} from '@taiga-ui/cdk/date-time';\n\nexport function tuiCreateTimePeriods(\n minHour = 0,\n maxHour: number = HOURS_IN_DAY,\n minutes: readonly number[] = [0, 30],\n): readonly TuiTime[] {\n const timeArray: TuiTime[] = [];\n\n for (let i = minHour; i < maxHour; i++) {\n minutes.forEach((minute) => {\n const time = new TuiTime(i, minute);\n\n timeArray.push(time);\n });\n }\n\n return timeArray;\n}\n","import {inject, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\n\nexport function tuiInjectValue<T>(): Signal<T> {\n const control =\n inject(TuiTextfieldComponent, {optional: true})?.control() ||\n inject(NgControl, {optional: true});\n\n return toSignal(tuiControlValue(control), {requireSync: true});\n}\n","export function tuiIsFlat<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[],\n): items is readonly T[] {\n return !Array.isArray(items[0]);\n}\n","import {type Signal, type WritableSignal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils';\n\ntype M = MaskitoOptions | null;\n\nexport function tuiMaskito(options: M | WritableSignal<M>): WritableSignal<M>;\nexport function tuiMaskito(options: Signal<M>): Signal<M>;\nexport function tuiMaskito(options: M | Signal<M>): Signal<M> {\n return tuiDirectiveBinding(MaskitoDirective, 'options', options);\n}\n","import {CHAR_PLUS} from '@taiga-ui/cdk/constants';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {getCountryCallingCode, type MetadataJson} from 'libphonenumber-js/core';\n\nexport function tuiGetCallingCode(\n iso: TuiCountryIsoCode,\n metadata?: MetadataJson | null,\n): string {\n return metadata ? CHAR_PLUS + getCountryCallingCode(iso, metadata) : '';\n}\n","import {type TuiDay} from '@taiga-ui/cdk/date-time';\n\nexport function tuiToggleDay(\n days: readonly TuiDay[] | null,\n day: TuiDay,\n): readonly TuiDay[] {\n return (\n (days?.find((item) => item.daySame(day))\n ? days.filter((item) => !item.daySame(day))\n : days?.concat(day)) || []\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAEgB,SAAA,oBAAoB,CAChC,OAAO,GAAG,CAAC,EACX,OAAkB,GAAA,YAAY,EAC9B,OAA6B,GAAA,CAAC,CAAC,EAAE,EAAE,CAAC,EAAA;IAEpC,MAAM,SAAS,GAAc,EAAE;AAE/B,IAAA,KAAK,IAAI,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;AACpC,QAAA,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,KAAI;YACvB,MAAM,IAAI,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC;AAEnC,YAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;AACxB,SAAC,CAAC;;AAGN,IAAA,OAAO,SAAS;AACpB;;SCZgB,cAAc,GAAA;AAC1B,IAAA,MAAM,OAAO,GACT,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,OAAO,EAAE;QAC1D,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAEvC,IAAA,OAAO,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC;AAClE;;ACZM,SAAU,SAAS,CACrB,KAAiD,EAAA;IAEjD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC;;ACKM,SAAU,UAAU,CAAC,OAAsB,EAAA;IAC7C,OAAO,mBAAmB,CAAC,gBAAgB,EAAE,SAAS,EAAE,OAAO,CAAC;AACpE;;ACPgB,SAAA,iBAAiB,CAC7B,GAAsB,EACtB,QAA8B,EAAA;AAE9B,IAAA,OAAO,QAAQ,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE;AAC3E;;ACPgB,SAAA,YAAY,CACxB,IAA8B,EAC9B,GAAW,EAAA;AAEX,IAAA,QACI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;AACnC,UAAE,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;UACxC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE;AAEtC;;ACXA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "4.52.0-canary.6043e8f",
3
+ "version": "4.52.0-canary.61fea47",
4
4
  "description": "Taiga UI Angular main components kit",
5
5
  "keywords": [
6
6
  "angular",
@@ -10,7 +10,10 @@
10
10
  "directive"
11
11
  ],
12
12
  "homepage": "https://github.com/taiga-family/taiga-ui",
13
- "repository": "https://github.com/taiga-family/taiga-ui",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/taiga-family/taiga-ui"
16
+ },
14
17
  "license": "Apache-2.0",
15
18
  "exports": {
16
19
  "./styles/*": "./styles/*",
@@ -25,22 +28,18 @@
25
28
  "types": "./components/index.d.ts",
26
29
  "default": "./fesm2022/taiga-ui-kit-components.mjs"
27
30
  },
28
- "./directives": {
29
- "types": "./directives/index.d.ts",
30
- "default": "./fesm2022/taiga-ui-kit-directives.mjs"
31
- },
32
31
  "./pipes": {
33
32
  "types": "./pipes/index.d.ts",
34
33
  "default": "./fesm2022/taiga-ui-kit-pipes.mjs"
35
34
  },
35
+ "./directives": {
36
+ "types": "./directives/index.d.ts",
37
+ "default": "./fesm2022/taiga-ui-kit-directives.mjs"
38
+ },
36
39
  "./tokens": {
37
40
  "types": "./tokens/index.d.ts",
38
41
  "default": "./fesm2022/taiga-ui-kit-tokens.mjs"
39
42
  },
40
- "./utils": {
41
- "types": "./utils/index.d.ts",
42
- "default": "./fesm2022/taiga-ui-kit-utils.mjs"
43
- },
44
43
  "./components/accordion": {
45
44
  "types": "./components/accordion/index.d.ts",
46
45
  "default": "./fesm2022/taiga-ui-kit-components-accordion.mjs"
@@ -53,6 +52,10 @@
53
52
  "types": "./components/avatar/index.d.ts",
54
53
  "default": "./fesm2022/taiga-ui-kit-components-avatar.mjs"
55
54
  },
55
+ "./utils": {
56
+ "types": "./utils/index.d.ts",
57
+ "default": "./fesm2022/taiga-ui-kit-utils.mjs"
58
+ },
56
59
  "./components/badge": {
57
60
  "types": "./components/badge/index.d.ts",
58
61
  "default": "./fesm2022/taiga-ui-kit-components-badge.mjs"
@@ -113,6 +116,10 @@
113
116
  "types": "./components/confirm/index.d.ts",
114
117
  "default": "./fesm2022/taiga-ui-kit-components-confirm.mjs"
115
118
  },
119
+ "./components/copy": {
120
+ "types": "./components/copy/index.d.ts",
121
+ "default": "./fesm2022/taiga-ui-kit-components-copy.mjs"
122
+ },
116
123
  "./components/data-list-wrapper": {
117
124
  "types": "./components/data-list-wrapper/index.d.ts",
118
125
  "default": "./fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs"
@@ -137,6 +144,10 @@
137
144
  "types": "./components/floating-container/index.d.ts",
138
145
  "default": "./fesm2022/taiga-ui-kit-components-floating-container.mjs"
139
146
  },
147
+ "./components/fullscreen": {
148
+ "types": "./components/fullscreen/index.d.ts",
149
+ "default": "./fesm2022/taiga-ui-kit-components-fullscreen.mjs"
150
+ },
140
151
  "./components/input-chip": {
141
152
  "types": "./components/input-chip/index.d.ts",
142
153
  "default": "./fesm2022/taiga-ui-kit-components-input-chip.mjs"
@@ -237,10 +248,6 @@
237
248
  "types": "./components/pagination/index.d.ts",
238
249
  "default": "./fesm2022/taiga-ui-kit-components-pagination.mjs"
239
250
  },
240
- "./components/pdf-viewer": {
241
- "types": "./components/pdf-viewer/index.d.ts",
242
- "default": "./fesm2022/taiga-ui-kit-components-pdf-viewer.mjs"
243
- },
244
251
  "./components/pin": {
245
252
  "types": "./components/pin/index.d.ts",
246
253
  "default": "./fesm2022/taiga-ui-kit-components-pin.mjs"
@@ -273,14 +280,14 @@
273
280
  "types": "./components/range/index.d.ts",
274
281
  "default": "./fesm2022/taiga-ui-kit-components-range.mjs"
275
282
  },
276
- "./components/rating": {
277
- "types": "./components/rating/index.d.ts",
278
- "default": "./fesm2022/taiga-ui-kit-components-rating.mjs"
279
- },
280
283
  "./components/routable-dialog": {
281
284
  "types": "./components/routable-dialog/index.d.ts",
282
285
  "default": "./fesm2022/taiga-ui-kit-components-routable-dialog.mjs"
283
286
  },
287
+ "./components/rating": {
288
+ "types": "./components/rating/index.d.ts",
289
+ "default": "./fesm2022/taiga-ui-kit-components-rating.mjs"
290
+ },
284
291
  "./components/segmented": {
285
292
  "types": "./components/segmented/index.d.ts",
286
293
  "default": "./fesm2022/taiga-ui-kit-components-segmented.mjs"
@@ -321,10 +328,50 @@
321
328
  "types": "./components/tiles/index.d.ts",
322
329
  "default": "./fesm2022/taiga-ui-kit-components-tiles.mjs"
323
330
  },
331
+ "./components/toast": {
332
+ "types": "./components/toast/index.d.ts",
333
+ "default": "./fesm2022/taiga-ui-kit-components-toast.mjs"
334
+ },
324
335
  "./components/tree": {
325
336
  "types": "./components/tree/index.d.ts",
326
337
  "default": "./fesm2022/taiga-ui-kit-components-tree.mjs"
327
338
  },
339
+ "./pipes/auto-color": {
340
+ "types": "./pipes/auto-color/index.d.ts",
341
+ "default": "./fesm2022/taiga-ui-kit-pipes-auto-color.mjs"
342
+ },
343
+ "./pipes/emails": {
344
+ "types": "./pipes/emails/index.d.ts",
345
+ "default": "./fesm2022/taiga-ui-kit-pipes-emails.mjs"
346
+ },
347
+ "./pipes/filter-by-input": {
348
+ "types": "./pipes/filter-by-input/index.d.ts",
349
+ "default": "./fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs"
350
+ },
351
+ "./pipes/flag": {
352
+ "types": "./pipes/flag/index.d.ts",
353
+ "default": "./fesm2022/taiga-ui-kit-pipes-flag.mjs"
354
+ },
355
+ "./pipes/hide-selected": {
356
+ "types": "./pipes/hide-selected/index.d.ts",
357
+ "default": "./fesm2022/taiga-ui-kit-pipes-hide-selected.mjs"
358
+ },
359
+ "./pipes/sort-countries": {
360
+ "types": "./pipes/sort-countries/index.d.ts",
361
+ "default": "./fesm2022/taiga-ui-kit-pipes-sort-countries.mjs"
362
+ },
363
+ "./pipes/stringify": {
364
+ "types": "./pipes/stringify/index.d.ts",
365
+ "default": "./fesm2022/taiga-ui-kit-pipes-stringify.mjs"
366
+ },
367
+ "./pipes/stringify-content": {
368
+ "types": "./pipes/stringify-content/index.d.ts",
369
+ "default": "./fesm2022/taiga-ui-kit-pipes-stringify-content.mjs"
370
+ },
371
+ "./pipes/initials": {
372
+ "types": "./pipes/initials/index.d.ts",
373
+ "default": "./fesm2022/taiga-ui-kit-pipes-initials.mjs"
374
+ },
328
375
  "./directives/button-close": {
329
376
  "types": "./directives/button-close/index.d.ts",
330
377
  "default": "./fesm2022/taiga-ui-kit-directives-button-close.mjs"
@@ -345,10 +392,6 @@
345
392
  "types": "./directives/connected/index.d.ts",
346
393
  "default": "./fesm2022/taiga-ui-kit-directives-connected.mjs"
347
394
  },
348
- "./directives/copy": {
349
- "types": "./directives/copy/index.d.ts",
350
- "default": "./fesm2022/taiga-ui-kit-directives-copy.mjs"
351
- },
352
395
  "./directives/data-list-dropdown-manager": {
353
396
  "types": "./directives/data-list-dropdown-manager/index.d.ts",
354
397
  "default": "./fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs"
@@ -400,34 +443,6 @@
400
443
  "./directives/unmask-handler": {
401
444
  "types": "./directives/unmask-handler/index.d.ts",
402
445
  "default": "./fesm2022/taiga-ui-kit-directives-unmask-handler.mjs"
403
- },
404
- "./pipes/emails": {
405
- "types": "./pipes/emails/index.d.ts",
406
- "default": "./fesm2022/taiga-ui-kit-pipes-emails.mjs"
407
- },
408
- "./pipes/filter-by-input": {
409
- "types": "./pipes/filter-by-input/index.d.ts",
410
- "default": "./fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs"
411
- },
412
- "./pipes/hide-selected": {
413
- "types": "./pipes/hide-selected/index.d.ts",
414
- "default": "./fesm2022/taiga-ui-kit-pipes-hide-selected.mjs"
415
- },
416
- "./pipes/sort-countries": {
417
- "types": "./pipes/sort-countries/index.d.ts",
418
- "default": "./fesm2022/taiga-ui-kit-pipes-sort-countries.mjs"
419
- },
420
- "./pipes/stringify": {
421
- "types": "./pipes/stringify/index.d.ts",
422
- "default": "./fesm2022/taiga-ui-kit-pipes-stringify.mjs"
423
- },
424
- "./pipes/stringify-content": {
425
- "types": "./pipes/stringify-content/index.d.ts",
426
- "default": "./fesm2022/taiga-ui-kit-pipes-stringify-content.mjs"
427
- },
428
- "./components/preview/dialog": {
429
- "types": "./components/preview/dialog/index.d.ts",
430
- "default": "./fesm2022/taiga-ui-kit-components-preview-dialog.mjs"
431
446
  }
432
447
  },
433
448
  "peerDependencies": {
@@ -435,16 +450,17 @@
435
450
  "@angular/core": ">=19.0.0",
436
451
  "@angular/forms": ">=19.0.0",
437
452
  "@angular/router": ">=19.0.0",
438
- "@maskito/angular": "^3.11.0",
439
- "@maskito/core": "^3.11.0",
440
- "@maskito/kit": "^3.11.0",
441
- "@maskito/phone": "^3.11.0",
442
- "@ng-web-apis/common": "^4.12.0",
443
- "@ng-web-apis/intersection-observer": "^4.12.0",
444
- "@ng-web-apis/mutation-observer": "^4.12.0",
445
- "@ng-web-apis/resize-observer": "^4.12.0",
453
+ "@maskito/angular": "^4.0.1",
454
+ "@maskito/core": "^4.0.1",
455
+ "@maskito/kit": "^4.0.1",
456
+ "@maskito/phone": "^4.0.1",
457
+ "@ng-web-apis/common": "^4.12.2",
458
+ "@ng-web-apis/intersection-observer": "^4.12.2",
459
+ "@ng-web-apis/mutation-observer": "^4.12.2",
460
+ "@ng-web-apis/resize-observer": "^4.12.2",
446
461
  "@taiga-ui/cdk": "^4.52.0",
447
462
  "@taiga-ui/core": "^4.52.0",
463
+ "@taiga-ui/design-tokens": "~0.269.0",
448
464
  "@taiga-ui/i18n": "^4.52.0",
449
465
  "@taiga-ui/polymorpheus": "^4.9.0",
450
466
  "rxjs": ">=7.0.0"
@@ -0,0 +1,13 @@
1
+ import { type PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TuiAutoColorPipe implements PipeTransform {
4
+ transform(text: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiAutoColorPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TuiAutoColorPipe, "tuiAutoColor", true>;
7
+ }
8
+ /**
9
+ * Converts a string to an HSL color
10
+ * @param value string to convert
11
+ * @return HSL color string
12
+ */
13
+ export declare function tuiAutoColor(value: string): string;
@@ -0,0 +1 @@
1
+ export * from './auto-color.pipe';
@@ -0,0 +1,14 @@
1
+ import { type PipeTransform } from '@angular/core';
2
+ import { type TuiLooseUnion } from '@taiga-ui/cdk/types';
3
+ import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
4
+ import * as i0 from "@angular/core";
5
+ type IsoCode = TuiLooseUnion<TuiCountryIsoCode>;
6
+ export declare class TuiFlagPipe implements PipeTransform {
7
+ private readonly staticPath;
8
+ transform(countryIsoCode: IsoCode): string;
9
+ transform(countryIsoCode: IsoCode | undefined): string | null;
10
+ transform(countryIsoCode?: IsoCode | null): string | null;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiFlagPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<TuiFlagPipe, "tuiFlag", true>;
13
+ }
14
+ export {};
@@ -0,0 +1 @@
1
+ export * from './flag.pipe';
package/pipes/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
+ export * from '@taiga-ui/kit/pipes/auto-color';
1
2
  export * from '@taiga-ui/kit/pipes/emails';
2
3
  export * from '@taiga-ui/kit/pipes/filter-by-input';
4
+ export * from '@taiga-ui/kit/pipes/flag';
3
5
  export * from '@taiga-ui/kit/pipes/hide-selected';
6
+ export * from '@taiga-ui/kit/pipes/initials';
4
7
  export * from '@taiga-ui/kit/pipes/sort-countries';
5
8
  export * from '@taiga-ui/kit/pipes/stringify';
6
9
  export * from '@taiga-ui/kit/pipes/stringify-content';
@@ -0,0 +1 @@
1
+ export * from './initials.pipe';
@@ -0,0 +1,7 @@
1
+ import { type PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TuiInitialsPipe implements PipeTransform {
4
+ transform(text: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiInitialsPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TuiInitialsPipe, "tuiInitials", true>;
7
+ }
@@ -1,9 +1,8 @@
1
1
  import { type PipeTransform } from '@angular/core';
2
- import { type TuiStringHandler } from '@taiga-ui/cdk/types';
3
- import { type TuiValueContentContext } from '@taiga-ui/core/types';
2
+ import { type TuiContext, type TuiStringHandler } from '@taiga-ui/cdk/types';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class TuiStringifyContentPipe implements PipeTransform {
6
- transform<T>(stringify: TuiStringHandler<T>): TuiStringHandler<TuiValueContentContext<T>>;
5
+ transform<T>(stringify: TuiStringHandler<T>): TuiStringHandler<TuiContext<T>>;
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiStringifyContentPipe, never>;
8
7
  static ɵpipe: i0.ɵɵPipeDeclaration<TuiStringifyContentPipe, "tuiStringifyContent", true>;
9
8
  }
@@ -26,6 +26,7 @@ tui-badge,
26
26
  .button-base();
27
27
 
28
28
  border-radius: 6rem;
29
+ justify-content: center;
29
30
  background: #959595;
30
31
  color: var(--tui-background-base);
31
32
  padding: var(--t-padding);
@@ -47,7 +47,7 @@
47
47
  display: none;
48
48
  }
49
49
 
50
- &:disabled._readonly {
50
+ &:disabled._readonly._readonly {
51
51
  opacity: 1;
52
52
  pointer-events: none;
53
53
  }