@taiga-ui/kit 4.52.0-canary.05c3268 → 4.52.0-canary.1aa6034

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 (229) hide show
  1. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  2. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  3. package/components/confirm/confirm.component.d.ts +2 -2
  4. package/components/copy/copy.component.d.ts +1 -1
  5. package/components/copy/copy.directive.d.ts +1 -0
  6. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -0
  7. package/components/files/files/files.component.d.ts +2 -2
  8. package/components/input-number/input-number.directive.d.ts +5 -9
  9. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  10. package/components/input-phone-international/input-phone-international.component.d.ts +3 -3
  11. package/components/input-pin/input-pin.component.d.ts +1 -1
  12. package/components/input-range/input-range.component.d.ts +3 -3
  13. package/components/input-time/input-time.directive.d.ts +6 -8
  14. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  15. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  16. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  17. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  18. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  19. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  20. package/components/pagination/index.d.ts +1 -0
  21. package/components/pagination/pagination.component.d.ts +3 -2
  22. package/components/pagination/pagination.options.d.ts +10 -0
  23. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  24. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  25. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  26. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  27. package/components/preview/preview.component.d.ts +1 -1
  28. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  29. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  30. package/components/push/push-alert.component.d.ts +4 -3
  31. package/components/push/push.component.d.ts +1 -1
  32. package/components/push/push.directive.d.ts +4 -6
  33. package/components/push/push.options.d.ts +4 -8
  34. package/components/push/push.service.d.ts +6 -2
  35. package/components/range/range-change.directive.d.ts +1 -2
  36. package/components/range/range.component.d.ts +16 -19
  37. package/components/select/native-select/native-select.component.d.ts +4 -5
  38. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  39. package/components/textarea/textarea-limit.directive.d.ts +4 -5
  40. package/components/toast/toast.component.d.ts +4 -3
  41. package/components/toast/toast.options.d.ts +8 -7
  42. package/components/toast/toast.service.d.ts +10 -9
  43. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  44. package/components/tree/misc/tree.constants.d.ts +0 -3
  45. package/components/tree/misc/tree.tokens.d.ts +1 -6
  46. package/directives/button-close/button-close.directive.d.ts +2 -1
  47. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  48. package/fesm2022/taiga-ui-kit-components-accordion.mjs +1 -2
  49. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-kit-components-avatar.mjs +1 -1
  52. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +1 -1
  54. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-kit-components-badge.mjs +2 -2
  56. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +0 -1
  58. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +3 -4
  61. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  63. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +3 -6
  65. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +4 -5
  67. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-carousel.mjs +3 -9
  69. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +1 -1
  71. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-chip.mjs +2 -2
  73. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +5 -6
  75. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-compass.mjs +1 -1
  78. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-confirm.mjs +3 -5
  80. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-copy.mjs +6 -6
  82. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +11 -3
  84. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -1
  87. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-files.mjs +13 -15
  89. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +0 -2
  94. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +3 -8
  97. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +0 -1
  99. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +1 -3
  101. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-input-date.mjs +7 -15
  103. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -3
  105. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -5
  107. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-input-month.mjs +3 -5
  109. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-input-number.mjs +19 -44
  111. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +7 -7
  113. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +3 -5
  115. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-components-input-range.mjs +7 -5
  118. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +1 -2
  120. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-kit-components-input-time.mjs +29 -35
  122. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-input-year.mjs +2 -4
  124. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +2 -4
  126. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-like.mjs +1 -1
  128. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +22 -60
  130. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-message.mjs +0 -1
  132. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +11 -14
  134. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +31 -20
  136. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-pagination.mjs +20 -10
  139. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-pin.mjs +2 -2
  141. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +23 -15
  143. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-preview.mjs +36 -29
  145. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-progress.mjs +38 -26
  147. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-pulse.mjs +1 -1
  149. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-push.mjs +40 -47
  151. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +2 -2
  153. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-radio.mjs +1 -2
  155. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-range.mjs +35 -70
  157. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +7 -3
  160. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-segmented.mjs +1 -2
  162. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-select.mjs +35 -40
  164. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-slider.mjs +3 -6
  166. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-switch.mjs +1 -1
  171. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-tabs.mjs +3 -6
  173. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-textarea.mjs +5 -14
  175. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-tiles.mjs +2 -3
  177. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-toast.mjs +39 -40
  179. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-tree.mjs +34 -39
  181. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +13 -5
  183. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +0 -1
  186. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-directives-connected.mjs +0 -1
  189. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -1
  191. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +10 -18
  194. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +0 -1
  196. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -1
  198. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-directives-password.mjs +2 -6
  200. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-directives-present.mjs +0 -1
  202. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +2 -2
  207. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +1 -2
  209. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +0 -1
  211. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +0 -1
  213. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +0 -1
  215. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +0 -1
  217. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +2 -2
  219. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +0 -1
  221. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +0 -1
  223. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-tokens.mjs +3 -1
  225. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  226. package/package.json +26 -23
  227. package/styles/components/badge.less +1 -0
  228. package/styles/components/chip.less +11 -1
  229. package/tokens/i18n.d.ts +25 -26
@@ -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;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,e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AAC,mBAAmB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QACvE,MAAM,CAAC,sBAAsB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;;;ACT3C,MAAA,mBAAmB,GAAG,IAAI,cAAc,CAEnD,SAAS,GAAG,qBAAqB,GAAG,EAAE,EAAE;IACtC,OAAO,EAAE,MACL,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CACnB,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,KAAI;QACrB,IAAI,CAAC,IAAI,EAAE;AACP,YAAA,OAAO,EAAE;;AAGb,QAAA,OAAO,CAAG,EAAA,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAI,CAAA,EAAA,IAAI,CAAC,aAAa,EAAE;AAC9D,KAAC,CAAC,CACL;AACR,CAAA;;ACPY,MAAA,yBAAyB,GAAoB;AACtD,IAAA,MAAM,EAAE,wBAAwB;AAChC,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,MAAM,EAAE,WAAW;AACnB,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,SAAS,EAAE,eAAe;;AAGjB,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,MAAM,yBAAyB;AAC3C,CAAA;AAGC,SAAU,uBAAuB,CAAC,KAA+B,EAAA;IACnE,OAAO,iBAAiB,CAAC,iBAAiB,EAAE,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 {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 {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 {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;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,gCA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IAAI,CAAC,IAAI,EAAE;AACP,YAAA,OAAO,EAAE;;AAGb,QAAA,OAAO,CAAG,EAAA,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAI,CAAA,EAAA,IAAI,CAAC,aAAa,EAAE;AAC9D,KAAC,CAAC,CACL;AACR,CAAA;;ACTY,MAAA,yBAAyB,GAAoB;AACtD,IAAA,MAAM,EAAE,wBAAwB;AAChC,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,IAAI,EAAE,kBAAkB;AACxB,IAAA,MAAM,EAAE,WAAW;AACnB,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,SAAS,EAAE,eAAe;;AAGjB,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,MAAM,yBAAyB;AAC3C,CAAA;AAGC,SAAU,uBAAuB,CAAC,KAA+B,EAAA;IACnE,OAAO,iBAAiB,CAAC,iBAAiB,EAAE,KAAK,EAAE,yBAAyB,CAAC;AACjF;;AC9BA;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/kit",
3
- "version": "4.52.0-canary.05c3268",
3
+ "version": "4.52.0-canary.1aa6034",
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/*",
@@ -77,14 +80,14 @@
77
80
  "types": "./components/button-loading/index.d.ts",
78
81
  "default": "./fesm2022/taiga-ui-kit-components-button-loading.mjs"
79
82
  },
80
- "./components/calendar-range": {
81
- "types": "./components/calendar-range/index.d.ts",
82
- "default": "./fesm2022/taiga-ui-kit-components-calendar-range.mjs"
83
- },
84
83
  "./components/calendar-month": {
85
84
  "types": "./components/calendar-month/index.d.ts",
86
85
  "default": "./fesm2022/taiga-ui-kit-components-calendar-month.mjs"
87
86
  },
87
+ "./components/calendar-range": {
88
+ "types": "./components/calendar-range/index.d.ts",
89
+ "default": "./fesm2022/taiga-ui-kit-components-calendar-range.mjs"
90
+ },
88
91
  "./components/carousel": {
89
92
  "types": "./components/carousel/index.d.ts",
90
93
  "default": "./fesm2022/taiga-ui-kit-components-carousel.mjs"
@@ -169,14 +172,14 @@
169
172
  "types": "./components/input-date-time/index.d.ts",
170
173
  "default": "./fesm2022/taiga-ui-kit-components-input-date-time.mjs"
171
174
  },
172
- "./components/input-inline": {
173
- "types": "./components/input-inline/index.d.ts",
174
- "default": "./fesm2022/taiga-ui-kit-components-input-inline.mjs"
175
- },
176
175
  "./components/input-month": {
177
176
  "types": "./components/input-month/index.d.ts",
178
177
  "default": "./fesm2022/taiga-ui-kit-components-input-month.mjs"
179
178
  },
179
+ "./components/input-inline": {
180
+ "types": "./components/input-inline/index.d.ts",
181
+ "default": "./fesm2022/taiga-ui-kit-components-input-inline.mjs"
182
+ },
180
183
  "./components/input-month-range": {
181
184
  "types": "./components/input-month-range/index.d.ts",
182
185
  "default": "./fesm2022/taiga-ui-kit-components-input-month-range.mjs"
@@ -333,14 +336,14 @@
333
336
  "types": "./components/tree/index.d.ts",
334
337
  "default": "./fesm2022/taiga-ui-kit-components-tree.mjs"
335
338
  },
336
- "./directives/button-group": {
337
- "types": "./directives/button-group/index.d.ts",
338
- "default": "./fesm2022/taiga-ui-kit-directives-button-group.mjs"
339
- },
340
339
  "./directives/button-close": {
341
340
  "types": "./directives/button-close/index.d.ts",
342
341
  "default": "./fesm2022/taiga-ui-kit-directives-button-close.mjs"
343
342
  },
343
+ "./directives/button-group": {
344
+ "types": "./directives/button-group/index.d.ts",
345
+ "default": "./fesm2022/taiga-ui-kit-directives-button-group.mjs"
346
+ },
344
347
  "./directives/button-select": {
345
348
  "types": "./directives/button-select/index.d.ts",
346
349
  "default": "./fesm2022/taiga-ui-kit-directives-button-select.mjs"
@@ -405,14 +408,14 @@
405
408
  "types": "./directives/unmask-handler/index.d.ts",
406
409
  "default": "./fesm2022/taiga-ui-kit-directives-unmask-handler.mjs"
407
410
  },
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
411
  "./pipes/emails": {
413
412
  "types": "./pipes/emails/index.d.ts",
414
413
  "default": "./fesm2022/taiga-ui-kit-pipes-emails.mjs"
415
414
  },
415
+ "./pipes/filter-by-input": {
416
+ "types": "./pipes/filter-by-input/index.d.ts",
417
+ "default": "./fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs"
418
+ },
416
419
  "./pipes/hide-selected": {
417
420
  "types": "./pipes/hide-selected/index.d.ts",
418
421
  "default": "./fesm2022/taiga-ui-kit-pipes-hide-selected.mjs"
@@ -439,17 +442,17 @@
439
442
  "@angular/core": ">=19.0.0",
440
443
  "@angular/forms": ">=19.0.0",
441
444
  "@angular/router": ">=19.0.0",
442
- "@maskito/angular": "^3.11.1",
443
- "@maskito/core": "^3.11.1",
444
- "@maskito/kit": "^3.11.1",
445
- "@maskito/phone": "^3.11.1",
445
+ "@maskito/angular": "^4.0.0",
446
+ "@maskito/core": "^4.0.0",
447
+ "@maskito/kit": "^4.0.0",
448
+ "@maskito/phone": "^4.0.0",
446
449
  "@ng-web-apis/common": "^4.12.2",
447
450
  "@ng-web-apis/intersection-observer": "^4.12.2",
448
451
  "@ng-web-apis/mutation-observer": "^4.12.2",
449
452
  "@ng-web-apis/resize-observer": "^4.12.2",
450
453
  "@taiga-ui/cdk": "^4.52.0",
451
454
  "@taiga-ui/core": "^4.52.0",
452
- "@taiga-ui/design-tokens": "~0.257.0",
455
+ "@taiga-ui/design-tokens": "~0.261.0",
453
456
  "@taiga-ui/i18n": "^4.52.0",
454
457
  "@taiga-ui/polymorpheus": "^4.9.0",
455
458
  "rxjs": ">=7.0.0"
@@ -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);
@@ -11,7 +11,7 @@
11
11
  * data-size — size (default: 's') ('xxs' | 'xs' | 's' | 'm')
12
12
  *
13
13
  * @example
14
- * <tui-chip>Sale</tui-badge>
14
+ * <tui-chip>Sale</tui-chip>
15
15
  *
16
16
  * @see-also
17
17
  * Icons, Appearance, Badge, Block
@@ -48,6 +48,11 @@ tui-chip,
48
48
  margin: -0.375rem;
49
49
  }
50
50
 
51
+ > tui-badge,
52
+ > [tuiBadge] {
53
+ margin-inline-end: 0;
54
+ }
55
+
51
56
  &[data-size='xxs'] {
52
57
  // StackBlitz changes "0rem" to "0" breaking calc
53
58
  --t-gap: ~'0rem';
@@ -86,6 +91,11 @@ tui-chip,
86
91
  & > [tuiIconButton] {
87
92
  margin: -0.75rem;
88
93
  }
94
+
95
+ & > tui-badge,
96
+ & > [tuiBadge] {
97
+ margin-inline-start: -0.375rem;
98
+ }
89
99
  }
90
100
 
91
101
  & > img,
package/tokens/i18n.d.ts CHANGED
@@ -1,21 +1,20 @@
1
- import { InjectionToken } from '@angular/core';
1
+ import { InjectionToken, type Signal } from '@angular/core';
2
2
  import { type TuiDateMode } from '@taiga-ui/cdk/date-time';
3
3
  import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
4
- import { type Observable } from 'rxjs';
5
- export declare const TUI_CONFIRM_WORDS: InjectionToken<Observable<{
4
+ export declare const TUI_CONFIRM_WORDS: InjectionToken<Signal<{
6
5
  no: string;
7
6
  yes: string;
8
7
  }>>;
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<{
8
+ export declare const TUI_CANCEL_WORD: InjectionToken<Signal<string>>;
9
+ export declare const TUI_DONE_WORD: InjectionToken<Signal<string>>;
10
+ export declare const TUI_MORE_WORD: InjectionToken<Signal<string>>;
11
+ export declare const TUI_HIDE_TEXT: InjectionToken<Signal<string>>;
12
+ export declare const TUI_SHOW_ALL_TEXT: InjectionToken<Signal<string>>;
13
+ export declare const TUI_OTHER_DATE_TEXT: InjectionToken<Signal<string>>;
14
+ export declare const TUI_CHOOSE_DAY_OR_RANGE_TEXTS: InjectionToken<Signal<readonly [choose_day: string, choose_range: string, choose_days: string]>>;
15
+ export declare const TUI_FROM_TO_TEXTS: InjectionToken<Signal<readonly [from: string, to: string]>>;
16
+ export declare const TUI_PLUS_MINUS_TEXTS: InjectionToken<Signal<readonly [plus: string, minus: string]>>;
17
+ export declare const TUI_TIME_TEXTS: InjectionToken<Signal<{
19
18
  'MM:SS': string;
20
19
  'HH:MM': string;
21
20
  'HH:MM AA': string;
@@ -29,18 +28,18 @@ export declare const TUI_TIME_TEXTS: InjectionToken<Observable<{
29
28
  'MM.SS.MSS': string;
30
29
  'SS.MSS': string;
31
30
  }>>;
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<{
31
+ export declare const TUI_DATE_TEXTS: InjectionToken<Signal<Record<TuiDateMode, string>>>;
32
+ export declare const TUI_DIGITAL_INFORMATION_UNITS: InjectionToken<Signal<readonly [short_byte: string, short_kilobyte: string, short_megabyte: string]>>;
33
+ export declare const TUI_COPY_TEXTS: InjectionToken<Signal<readonly [copy: string, copied: string]>>;
34
+ export declare const TUI_PASSWORD_TEXTS: InjectionToken<Signal<readonly [show_password: string, hide_password: string]>>;
35
+ export declare const TUI_CALENDAR_MONTHS: InjectionToken<Signal<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: InjectionToken<Signal<{
38
37
  loadingError: string;
39
38
  preview: string;
40
39
  remove: string;
41
40
  }>>;
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<{
41
+ export declare const TUI_PAGINATION_TEXTS: InjectionToken<Signal<readonly [previous_page: string, next_page: string]>>;
42
+ export declare const TUI_INPUT_FILE_TEXTS: InjectionToken<Signal<{
44
43
  defaultLabelMultiple: string;
45
44
  defaultLabelSingle: string;
46
45
  defaultLinkMultiple: string;
@@ -50,17 +49,17 @@ export declare const TUI_INPUT_FILE_TEXTS: InjectionToken<Observable<{
50
49
  formatRejectionReason: string;
51
50
  maxSizeRejectionReason: string;
52
51
  }>>;
53
- export declare const TUI_MULTI_SELECT_TEXTS: InjectionToken<Observable<{
52
+ export declare const TUI_MULTI_SELECT_TEXTS: InjectionToken<Signal<{
54
53
  all: string;
55
54
  none: string;
56
55
  }>>;
57
- export declare const TUI_COUNTRIES: InjectionToken<Observable<Record<TuiCountryIsoCode, string>>>;
58
- export declare const TUI_PREVIEW_TEXTS: InjectionToken<Observable<{
56
+ export declare const TUI_COUNTRIES: InjectionToken<Signal<Record<TuiCountryIsoCode, string>>>;
57
+ export declare const TUI_PREVIEW_TEXTS: InjectionToken<Signal<{
59
58
  rotate: string;
60
59
  }>>;
61
- export declare const TUI_PREVIEW_ZOOM_TEXTS: InjectionToken<Observable<{
60
+ export declare const TUI_PREVIEW_ZOOM_TEXTS: InjectionToken<Signal<{
62
61
  zoomIn: string;
63
62
  zoomOut: string;
64
63
  reset: string;
65
64
  }>>;
66
- export declare const TUI_INTERNATIONAL_SEARCH: InjectionToken<Observable<string>>;
65
+ export declare const TUI_INTERNATIONAL_SEARCH: InjectionToken<Signal<string>>;