@taiga-ui/kit 4.42.0 → 4.43.0-canary.0505af2

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 (273) hide show
  1. package/components/avatar/avatar.options.d.ts +2 -1
  2. package/components/badge/badge.options.d.ts +2 -1
  3. package/components/badge-notification/badge-notification.options.d.ts +2 -1
  4. package/components/block/block.options.d.ts +2 -1
  5. package/components/breadcrumbs/breadcrumbs.options.d.ts +2 -1
  6. package/components/checkbox/checkbox.options.d.ts +2 -1
  7. package/components/chip/chip.options.d.ts +2 -1
  8. package/components/combo-box/combo-box.directive.d.ts +0 -1
  9. package/components/files/input-files/input-files.options.d.ts +2 -1
  10. package/components/index.d.ts +2 -0
  11. package/components/input-chip/input-chip.component.d.ts +2 -2
  12. package/components/input-chip/input-chip.directive.d.ts +2 -0
  13. package/components/input-date/input-date.directive.d.ts +2 -1
  14. package/components/input-date-range/input-date-range.directive.d.ts +1 -0
  15. package/components/input-date-range/input-date-range.options.d.ts +2 -1
  16. package/components/input-month/input-month.options.d.ts +2 -1
  17. package/components/input-month-range/input-month-range.options.d.ts +2 -1
  18. package/components/input-password/input-password.options.d.ts +2 -1
  19. package/components/input-phone-international/input-phone-international.options.d.ts +2 -1
  20. package/components/input-time/index.d.ts +4 -0
  21. package/components/input-time/input-time.component.d.ts +14 -0
  22. package/components/input-time/input-time.d.ts +3 -0
  23. package/components/input-time/input-time.directive.d.ts +31 -0
  24. package/components/input-time/input-time.options.d.ts +11 -0
  25. package/components/line-clamp/line-clamp.options.d.ts +2 -1
  26. package/components/multi-select/index.d.ts +4 -0
  27. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +19 -0
  28. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +5 -0
  29. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +12 -0
  30. package/components/multi-select/multi-select.d.ts +3 -0
  31. package/components/pdf-viewer/pdf-viewer.options.d.ts +2 -1
  32. package/components/progress/progress-circle/progress-circle.component.d.ts +4 -1
  33. package/components/progress/progress.options.d.ts +2 -1
  34. package/components/push/push.options.d.ts +2 -1
  35. package/components/radio/radio.options.d.ts +2 -1
  36. package/components/rating/rating.options.d.ts +2 -1
  37. package/components/select/select-option/select-option.component.d.ts +4 -6
  38. package/components/slider/slider.options.d.ts +2 -1
  39. package/components/switch/switch.options.d.ts +2 -1
  40. package/components/tabs/tabs.options.d.ts +2 -1
  41. package/components/tabs/tabs.providers.d.ts +2 -1
  42. package/components/tiles/tiles.tokens.d.ts +2 -1
  43. package/components/tree/misc/tree.tokens.d.ts +9 -8
  44. package/directives/button-select/button-select.directive.d.ts +3 -2
  45. package/directives/chevron/chevron.directive.d.ts +2 -1
  46. package/directives/fluid-typography/fluid-typography.options.d.ts +2 -1
  47. package/esm2022/components/accordion/accordion-item.component.mjs +3 -3
  48. package/esm2022/components/avatar/avatar-labeled.component.mjs +3 -3
  49. package/esm2022/components/avatar/avatar-stack.component.mjs +2 -2
  50. package/esm2022/components/avatar/avatar.options.mjs +6 -3
  51. package/esm2022/components/badge/badge.directive.mjs +2 -2
  52. package/esm2022/components/badge/badge.options.mjs +6 -3
  53. package/esm2022/components/badge-notification/badge-notification.options.mjs +6 -3
  54. package/esm2022/components/block/block.options.mjs +6 -3
  55. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +6 -3
  56. package/esm2022/components/calendar-month/calendar-month.component.mjs +3 -3
  57. package/esm2022/components/checkbox/checkbox.options.mjs +6 -3
  58. package/esm2022/components/chip/chip.options.mjs +6 -3
  59. package/esm2022/components/combo-box/combo-box.directive.mjs +4 -10
  60. package/esm2022/components/confirm/confirm.component.mjs +3 -3
  61. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +3 -3
  62. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +3 -3
  63. package/esm2022/components/elastic-container/elastic-container.component.mjs +3 -3
  64. package/esm2022/components/files/file/file.component.mjs +3 -3
  65. package/esm2022/components/files/files/files.component.mjs +3 -3
  66. package/esm2022/components/files/input-files/input-files.directive.mjs +3 -2
  67. package/esm2022/components/files/input-files/input-files.options.mjs +6 -3
  68. package/esm2022/components/filter/filter.component.mjs +3 -3
  69. package/esm2022/components/floating-container/floating-container.directive.mjs +2 -2
  70. package/esm2022/components/index.mjs +3 -1
  71. package/esm2022/components/input-chip/input-chip.component.mjs +15 -13
  72. package/esm2022/components/input-chip/input-chip.directive.mjs +20 -9
  73. package/esm2022/components/input-date/input-date.directive.mjs +11 -3
  74. package/esm2022/components/input-date-range/input-date-range.directive.mjs +6 -2
  75. package/esm2022/components/input-date-range/input-date-range.options.mjs +9 -7
  76. package/esm2022/components/input-inline/input-inline.component.mjs +3 -3
  77. package/esm2022/components/input-month/input-month.options.mjs +9 -7
  78. package/esm2022/components/input-month-range/input-month-range.options.mjs +9 -7
  79. package/esm2022/components/input-password/input-password.options.mjs +6 -3
  80. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +1 -1
  81. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +6 -3
  82. package/esm2022/components/input-pin/input-pin.component.mjs +3 -3
  83. package/esm2022/components/input-time/index.mjs +5 -0
  84. package/esm2022/components/input-time/input-time.component.mjs +49 -0
  85. package/esm2022/components/input-time/input-time.directive.mjs +123 -0
  86. package/esm2022/components/input-time/input-time.mjs +4 -0
  87. package/esm2022/components/input-time/input-time.options.mjs +9 -0
  88. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +5 -0
  89. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +3 -3
  90. package/esm2022/components/line-clamp/line-clamp.component.mjs +3 -3
  91. package/esm2022/components/line-clamp/line-clamp.options.mjs +6 -3
  92. package/esm2022/components/multi-select/index.mjs +5 -0
  93. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +50 -0
  94. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +18 -0
  95. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +52 -0
  96. package/esm2022/components/multi-select/multi-select.mjs +7 -0
  97. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +5 -0
  98. package/esm2022/components/pagination/pagination.component.mjs +3 -3
  99. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +3 -3
  100. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +6 -3
  101. package/esm2022/components/pin/pin.directive.mjs +2 -2
  102. package/esm2022/components/preview/preview.component.mjs +3 -3
  103. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +3 -3
  104. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +2 -2
  105. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +2 -2
  106. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +9 -3
  107. package/esm2022/components/progress/progress.options.mjs +6 -3
  108. package/esm2022/components/push/push-alert.component.mjs +3 -3
  109. package/esm2022/components/push/push.component.mjs +3 -3
  110. package/esm2022/components/push/push.options.mjs +6 -3
  111. package/esm2022/components/radio/radio.options.mjs +6 -3
  112. package/esm2022/components/rating/rating.options.mjs +6 -3
  113. package/esm2022/components/select/select-option/select-option.component.mjs +29 -23
  114. package/esm2022/components/select/select.directive.mjs +1 -4
  115. package/esm2022/components/slider/slider.component.mjs +2 -2
  116. package/esm2022/components/slider/slider.options.mjs +6 -3
  117. package/esm2022/components/stepper/step.component.mjs +3 -3
  118. package/esm2022/components/switch/switch.options.mjs +6 -3
  119. package/esm2022/components/tabs/tabs-with-more.component.mjs +3 -3
  120. package/esm2022/components/tabs/tabs.directive.mjs +2 -2
  121. package/esm2022/components/tabs/tabs.options.mjs +6 -3
  122. package/esm2022/components/tabs/tabs.providers.mjs +3 -4
  123. package/esm2022/components/textarea/textarea-limit.directive.mjs +2 -2
  124. package/esm2022/components/textarea/textarea.component.mjs +3 -3
  125. package/esm2022/components/tiles/tiles.tokens.mjs +5 -3
  126. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +3 -3
  127. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +3 -3
  128. package/esm2022/components/tree/misc/tree.tokens.mjs +18 -10
  129. package/esm2022/directives/button-select/button-select.directive.mjs +15 -7
  130. package/esm2022/directives/chevron/chevron.directive.mjs +8 -6
  131. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +6 -3
  132. package/esm2022/pipes/emails/emails.options.mjs +13 -11
  133. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +2 -2
  134. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +46 -0
  135. package/esm2022/pipes/hide-selected/index.mjs +2 -0
  136. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +5 -0
  137. package/esm2022/pipes/index.mjs +2 -1
  138. package/esm2022/tokens/calendar-date-stream.mjs +3 -4
  139. package/esm2022/tokens/date-inputs-value-transformers.mjs +8 -6
  140. package/esm2022/tokens/i18n.mjs +74 -26
  141. package/esm2022/tokens/items-handlers.mjs +9 -6
  142. package/esm2022/tokens/mobile-calendar.mjs +3 -4
  143. package/esm2022/tokens/month-formatter.mjs +10 -9
  144. package/esm2022/tokens/preview-icons.mjs +6 -3
  145. package/esm2022/tokens/validation-errors.mjs +5 -3
  146. package/esm2022/utils/index.mjs +2 -1
  147. package/esm2022/utils/inject-value.mjs +11 -0
  148. package/fesm2022/taiga-ui-kit-components-accordion.mjs +2 -2
  149. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-avatar.mjs +9 -7
  151. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +5 -3
  153. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-badge.mjs +7 -5
  155. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-block.mjs +5 -3
  157. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -3
  159. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +2 -2
  161. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -3
  163. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-chip.mjs +5 -3
  165. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +3 -9
  167. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-confirm.mjs +2 -2
  169. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +4 -4
  171. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +2 -2
  173. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-files.mjs +11 -8
  175. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-filter.mjs +2 -2
  177. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +2 -2
  179. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +109 -95
  181. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +12 -6
  183. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-input-date.mjs +10 -2
  185. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -2
  187. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +8 -6
  189. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-input-month.mjs +8 -6
  191. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-input-password.mjs +5 -3
  193. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +6 -4
  195. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +2 -2
  197. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-input-time.mjs +180 -0
  199. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -0
  200. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +9 -7
  201. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +118 -0
  203. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -0
  204. package/fesm2022/taiga-ui-kit-components-pagination.mjs +2 -2
  205. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +7 -5
  207. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-pin.mjs +2 -2
  209. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-preview.mjs +4 -4
  211. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-progress.mjs +17 -9
  213. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-push.mjs +9 -7
  215. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-components-radio.mjs +5 -3
  217. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-rating.mjs +5 -3
  219. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-select.mjs +29 -24
  221. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-slider.mjs +7 -5
  223. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-components-stepper.mjs +2 -2
  225. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-switch.mjs +5 -3
  227. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-tabs.mjs +10 -8
  229. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-components-textarea.mjs +4 -4
  231. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-tiles.mjs +5 -3
  233. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-components-tree.mjs +22 -14
  235. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components.mjs +2 -0
  237. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +14 -6
  239. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +7 -5
  241. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +5 -3
  243. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +12 -11
  245. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +1 -1
  247. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +52 -0
  249. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -0
  250. package/fesm2022/taiga-ui-kit-pipes.mjs +1 -0
  251. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-tokens.mjs +102 -44
  253. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-utils.mjs +12 -1
  255. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  256. package/package.json +38 -20
  257. package/pipes/emails/emails.options.d.ts +2 -1
  258. package/pipes/hide-selected/hide-selected.pipe.d.ts +12 -0
  259. package/pipes/hide-selected/index.d.ts +1 -0
  260. package/pipes/index.d.ts +1 -0
  261. package/styles/components/badge.less +1 -13
  262. package/styles/components/pin.less +2 -2
  263. package/styles/components/progress-bar.less +1 -1
  264. package/tokens/calendar-date-stream.d.ts +2 -1
  265. package/tokens/date-inputs-value-transformers.d.ts +5 -4
  266. package/tokens/i18n.d.ts +25 -24
  267. package/tokens/items-handlers.d.ts +6 -5
  268. package/tokens/mobile-calendar.d.ts +2 -1
  269. package/tokens/month-formatter.d.ts +2 -1
  270. package/tokens/preview-icons.d.ts +2 -1
  271. package/tokens/validation-errors.d.ts +2 -1
  272. package/utils/index.d.ts +1 -0
  273. package/utils/inject-value.d.ts +2 -0
@@ -37,7 +37,7 @@ tui-badge,
37
37
  &[tuiStatus]::before {
38
38
  inline-size: 0.375rem;
39
39
  block-size: 0.375rem;
40
- margin-inline-end: -0.25rem;
40
+ margin: 0;
41
41
  }
42
42
 
43
43
  > tui-icon,
@@ -68,18 +68,6 @@ tui-badge,
68
68
  --t-status: var(--tui-status-neutral);
69
69
  }
70
70
 
71
- &[tuiStatus][data-appearance='error']::before, /* TODO @deprecated remove in v5 */
72
- &[tuiStatus][data-appearance='success']::before, /* TODO @deprecated remove in v5 */
73
- &[tuiStatus][data-appearance='negative']::before,
74
- &[tuiStatus][data-appearance='positive']::before,
75
- &[tuiStatus][data-appearance='warning']::before,
76
- &[tuiStatus][data-appearance='info']::before,
77
- &[tuiStatus][data-appearance='neutral']::before {
78
- content: '';
79
- display: block;
80
- margin: 0;
81
- }
82
-
83
71
  &[data-size='s'] {
84
72
  --t-padding: 0 0.3125rem;
85
73
  --t-size: 1rem;
@@ -79,7 +79,7 @@ tui-pin,
79
79
  font: var(--tui-font-text-m);
80
80
  font-weight: bold;
81
81
  border-width: 0;
82
- margin-top: -2.75rem;
82
+ margin-block-start: -2.75rem;
83
83
 
84
84
  > img {
85
85
  padding: 0.125rem;
@@ -109,7 +109,7 @@ tui-pin,
109
109
  font: var(--tui-font-text-m);
110
110
  font-weight: bold;
111
111
  border-width: 0;
112
- margin-top: -2.75rem;
112
+ margin-block-start: -2.75rem;
113
113
 
114
114
  > img {
115
115
  padding: 0.125rem;
@@ -38,7 +38,7 @@
38
38
  */
39
39
  .progressAnimation() {
40
40
  &::-webkit-progress-value {
41
- transition: width var(--tui-duration) linear;
41
+ transition: inline-size var(--tui-duration) linear;
42
42
  }
43
43
  }
44
44
 
@@ -1,4 +1,5 @@
1
- import type { InjectionToken, Provider } from '@angular/core';
1
+ import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiValueTransformer } from '@taiga-ui/cdk/classes';
3
4
  import type { TuiDay, TuiDayRange } from '@taiga-ui/cdk/date-time';
4
5
  import type { Observable } from 'rxjs';
@@ -1,18 +1,19 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import type { TuiValueTransformer } from '@taiga-ui/cdk/classes';
2
3
  import type { TuiDay, TuiDayRange, TuiTime } from '@taiga-ui/cdk/date-time';
3
4
  /**
4
5
  * Control value transformer of TuiDay to custom value format for InputDate* components
5
6
  */
6
- export declare const TUI_DATE_VALUE_TRANSFORMER: import("@angular/core").InjectionToken<TuiValueTransformer<TuiDay | null, unknown>>;
7
+ export declare const TUI_DATE_VALUE_TRANSFORMER: InjectionToken<TuiValueTransformer<TuiDay | null, unknown>>;
7
8
  /**
8
9
  * Control value transformer for InputDateRange component
9
10
  */
10
- export declare const TUI_DATE_RANGE_VALUE_TRANSFORMER: import("@angular/core").InjectionToken<TuiValueTransformer<TuiDayRange | null, unknown>>;
11
+ export declare const TUI_DATE_RANGE_VALUE_TRANSFORMER: InjectionToken<TuiValueTransformer<TuiDayRange | null, unknown>>;
11
12
  /**
12
13
  * Control value transformer for InputDateTime component
13
14
  */
14
- export declare const TUI_DATE_TIME_VALUE_TRANSFORMER: import("@angular/core").InjectionToken<TuiValueTransformer<[TuiDay, TuiTime | null], unknown>>;
15
+ export declare const TUI_DATE_TIME_VALUE_TRANSFORMER: InjectionToken<TuiValueTransformer<[TuiDay, TuiTime | null], unknown>>;
15
16
  /**
16
17
  * Control value transformer for InputTime component
17
18
  */
18
- export declare const TUI_TIME_VALUE_TRANSFORMER: import("@angular/core").InjectionToken<TuiValueTransformer<TuiTime | null, unknown>>;
19
+ export declare const TUI_TIME_VALUE_TRANSFORMER: InjectionToken<TuiValueTransformer<TuiTime | null, unknown>>;
package/tokens/i18n.d.ts CHANGED
@@ -1,20 +1,21 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import type { TuiDateMode } from '@taiga-ui/cdk/date-time';
2
3
  import type { TuiCountryIsoCode } from '@taiga-ui/i18n/types';
3
4
  import type { Observable } from 'rxjs';
4
- export declare const TUI_CONFIRM_WORDS: import("@angular/core").InjectionToken<Observable<{
5
+ export declare const TUI_CONFIRM_WORDS: InjectionToken<Observable<{
5
6
  no: string;
6
7
  yes: string;
7
8
  }>>;
8
- export declare const TUI_CANCEL_WORD: import("@angular/core").InjectionToken<Observable<string>>;
9
- export declare const TUI_DONE_WORD: import("@angular/core").InjectionToken<Observable<string>>;
10
- export declare const TUI_MORE_WORD: import("@angular/core").InjectionToken<Observable<string>>;
11
- export declare const TUI_HIDE_TEXT: import("@angular/core").InjectionToken<Observable<string>>;
12
- export declare const TUI_SHOW_ALL_TEXT: import("@angular/core").InjectionToken<Observable<string>>;
13
- export declare const TUI_OTHER_DATE_TEXT: import("@angular/core").InjectionToken<Observable<string>>;
14
- export declare const TUI_CHOOSE_DAY_OR_RANGE_TEXTS: import("@angular/core").InjectionToken<Observable<readonly [choose_day: string, choose_range: string, choose_days: string]>>;
15
- export declare const TUI_FROM_TO_TEXTS: import("@angular/core").InjectionToken<Observable<readonly [from: string, to: string]>>;
16
- export declare const TUI_PLUS_MINUS_TEXTS: import("@angular/core").InjectionToken<Observable<readonly [plus: string, minus: string]>>;
17
- export declare const TUI_TIME_TEXTS: import("@angular/core").InjectionToken<Observable<{
9
+ export declare const TUI_CANCEL_WORD: InjectionToken<Observable<string>>;
10
+ export declare const TUI_DONE_WORD: InjectionToken<Observable<string>>;
11
+ export declare const TUI_MORE_WORD: InjectionToken<Observable<string>>;
12
+ export declare const TUI_HIDE_TEXT: InjectionToken<Observable<string>>;
13
+ export declare const TUI_SHOW_ALL_TEXT: InjectionToken<Observable<string>>;
14
+ export declare const TUI_OTHER_DATE_TEXT: InjectionToken<Observable<string>>;
15
+ export declare const TUI_CHOOSE_DAY_OR_RANGE_TEXTS: InjectionToken<Observable<readonly [choose_day: string, choose_range: string, choose_days: string]>>;
16
+ export declare const TUI_FROM_TO_TEXTS: InjectionToken<Observable<readonly [from: string, to: string]>>;
17
+ export declare const TUI_PLUS_MINUS_TEXTS: InjectionToken<Observable<readonly [plus: string, minus: string]>>;
18
+ export declare const TUI_TIME_TEXTS: InjectionToken<Observable<{
18
19
  'MM:SS': string;
19
20
  'HH:MM': string;
20
21
  'HH:MM AA': string;
@@ -28,18 +29,18 @@ export declare const TUI_TIME_TEXTS: import("@angular/core").InjectionToken<Obse
28
29
  'MM.SS.MSS': string;
29
30
  'SS.MSS': string;
30
31
  }>>;
31
- export declare const TUI_DATE_TEXTS: import("@angular/core").InjectionToken<Observable<Record<TuiDateMode, string>>>;
32
- export declare const TUI_DIGITAL_INFORMATION_UNITS: import("@angular/core").InjectionToken<Observable<readonly [short_byte: string, short_kilobyte: string, short_megabyte: string]>>;
33
- export declare const TUI_COPY_TEXTS: import("@angular/core").InjectionToken<Observable<readonly [copy: string, copied: string]>>;
34
- export declare const TUI_PASSWORD_TEXTS: import("@angular/core").InjectionToken<Observable<readonly [show_password: string, hide_password: string]>>;
35
- export declare const TUI_CALENDAR_MONTHS: import("@angular/core").InjectionToken<Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
36
- export declare const TUI_FILE_TEXTS: import("@angular/core").InjectionToken<Observable<{
32
+ export declare const TUI_DATE_TEXTS: InjectionToken<Observable<Record<TuiDateMode, string>>>;
33
+ export declare const TUI_DIGITAL_INFORMATION_UNITS: InjectionToken<Observable<readonly [short_byte: string, short_kilobyte: string, short_megabyte: string]>>;
34
+ export declare const TUI_COPY_TEXTS: InjectionToken<Observable<readonly [copy: string, copied: string]>>;
35
+ export declare const TUI_PASSWORD_TEXTS: InjectionToken<Observable<readonly [show_password: string, hide_password: string]>>;
36
+ export declare const TUI_CALENDAR_MONTHS: InjectionToken<Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
37
+ export declare const TUI_FILE_TEXTS: InjectionToken<Observable<{
37
38
  loadingError: string;
38
39
  preview: string;
39
40
  remove: string;
40
41
  }>>;
41
- export declare const TUI_PAGINATION_TEXTS: import("@angular/core").InjectionToken<Observable<readonly [previous_page: string, next_page: string]>>;
42
- export declare const TUI_INPUT_FILE_TEXTS: import("@angular/core").InjectionToken<Observable<{
42
+ export declare const TUI_PAGINATION_TEXTS: InjectionToken<Observable<readonly [previous_page: string, next_page: string]>>;
43
+ export declare const TUI_INPUT_FILE_TEXTS: InjectionToken<Observable<{
43
44
  defaultLabelMultiple: string;
44
45
  defaultLabelSingle: string;
45
46
  defaultLinkMultiple: string;
@@ -49,17 +50,17 @@ export declare const TUI_INPUT_FILE_TEXTS: import("@angular/core").InjectionToke
49
50
  formatRejectionReason: string;
50
51
  maxSizeRejectionReason: string;
51
52
  }>>;
52
- export declare const TUI_MULTI_SELECT_TEXTS: import("@angular/core").InjectionToken<Observable<{
53
+ export declare const TUI_MULTI_SELECT_TEXTS: InjectionToken<Observable<{
53
54
  all: string;
54
55
  none: string;
55
56
  }>>;
56
- export declare const TUI_COUNTRIES: import("@angular/core").InjectionToken<Observable<Record<TuiCountryIsoCode, string>>>;
57
- export declare const TUI_PREVIEW_TEXTS: import("@angular/core").InjectionToken<Observable<{
57
+ export declare const TUI_COUNTRIES: InjectionToken<Observable<Record<TuiCountryIsoCode, string>>>;
58
+ export declare const TUI_PREVIEW_TEXTS: InjectionToken<Observable<{
58
59
  rotate: string;
59
60
  }>>;
60
- export declare const TUI_PREVIEW_ZOOM_TEXTS: import("@angular/core").InjectionToken<Observable<{
61
+ export declare const TUI_PREVIEW_ZOOM_TEXTS: InjectionToken<Observable<{
61
62
  zoomIn: string;
62
63
  zoomOut: string;
63
64
  reset: string;
64
65
  }>>;
65
- export declare const TUI_INTERNATIONAL_SEARCH: import("@angular/core").InjectionToken<Observable<string>>;
66
+ export declare const TUI_INTERNATIONAL_SEARCH: InjectionToken<Observable<string>>;
@@ -1,7 +1,8 @@
1
1
  import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiBooleanHandler, TuiIdentityMatcher, TuiStringHandler } from '@taiga-ui/cdk/types';
3
4
  /**
4
- * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/kit`.
5
+ * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
5
6
  * TODO(v5): delete
6
7
  */
7
8
  export interface TuiItemsHandlers<T> {
@@ -10,17 +11,17 @@ export interface TuiItemsHandlers<T> {
10
11
  readonly stringify: TuiStringHandler<T>;
11
12
  }
12
13
  /**
13
- * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/kit`.
14
+ * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
14
15
  * TODO(v5): delete
15
16
  */
16
17
  export declare const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown>;
17
18
  /**
18
- * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/kit`.
19
+ * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
19
20
  * TODO(v5): delete
20
21
  */
21
- export declare const TUI_ITEMS_HANDLERS: import("@angular/core").InjectionToken<TuiItemsHandlers<unknown>>;
22
+ export declare const TUI_ITEMS_HANDLERS: InjectionToken<TuiItemsHandlers<unknown>>;
22
23
  /**
23
- * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/kit`.
24
+ * @deprecated use it only for LEGACY controls. For new controls use the same entity from `@taiga-ui/core`.
24
25
  * TODO(v5): delete
25
26
  */
26
27
  export declare function tuiItemsHandlersProvider<T>(options: Partial<TuiItemsHandlers<T>>): Provider;
@@ -1,6 +1,7 @@
1
1
  import type { FactoryProvider, Type } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  /**
3
4
  * A component for mobile data picker
4
5
  */
5
- export declare const TUI_MOBILE_CALENDAR: import("@angular/core").InjectionToken<Type<unknown>>;
6
+ export declare const TUI_MOBILE_CALENDAR: InjectionToken<Type<unknown>>;
6
7
  export declare const TUI_MOBILE_CALENDAR_PROVIDER: FactoryProvider;
@@ -1,4 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import type { TuiMonth } from '@taiga-ui/cdk/date-time';
2
3
  import type { TuiHandler } from '@taiga-ui/cdk/types';
3
4
  import type { Observable } from 'rxjs';
4
- export declare const TUI_MONTH_FORMATTER: import("@angular/core").InjectionToken<Observable<TuiHandler<TuiMonth | null, string>>>;
5
+ export declare const TUI_MONTH_FORMATTER: InjectionToken<Observable<TuiHandler<TuiMonth | null, string>>>;
@@ -1,4 +1,5 @@
1
1
  import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  export interface TuiPreviewIcons {
3
4
  readonly next: string;
4
5
  readonly prev: string;
@@ -8,5 +9,5 @@ export interface TuiPreviewIcons {
8
9
  readonly zoomReset: string;
9
10
  }
10
11
  export declare const TUI_PREVIEW_ICONS_DEFAULT: TuiPreviewIcons;
11
- export declare const TUI_PREVIEW_ICONS: import("@angular/core").InjectionToken<TuiPreviewIcons>;
12
+ export declare const TUI_PREVIEW_ICONS: InjectionToken<TuiPreviewIcons>;
12
13
  export declare function tuiPreviewIconsProvider(icons: Partial<TuiPreviewIcons>): Provider;
@@ -1,5 +1,6 @@
1
1
  import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { PolymorpheusContent } from '@taiga-ui/polymorpheus';
3
4
  import type { Observable } from 'rxjs';
4
- export declare const TUI_VALIDATION_ERRORS: import("@angular/core").InjectionToken<Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>>;
5
+ export declare const TUI_VALIDATION_ERRORS: InjectionToken<Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>>;
5
6
  export declare const tuiValidationErrorsProvider: (useValue: Record<string, Observable<PolymorpheusContent> | PolymorpheusContent>) => Provider;
package/utils/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './create-time-periods';
2
+ export * from './inject-value';
2
3
  export * from './is-flat';
3
4
  export * from './maskito.binding';
4
5
  export * from './phone';
@@ -0,0 +1,2 @@
1
+ import type { Signal } from '@angular/core';
2
+ export declare function tuiInjectValue<T>(): Signal<T>;