@taiga-ui/kit 5.0.0-canary.cf66fed → 5.0.0-canary.d205016

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 (312) hide show
  1. package/components/accordion/accordion.component.d.ts +4 -1
  2. package/components/accordion/accordion.directive.d.ts +1 -0
  3. package/components/calendar-month/calendar-month.component.d.ts +11 -18
  4. package/components/calendar-range/calendar-range.component.d.ts +17 -22
  5. package/components/combo-box/combo-box.directive.d.ts +1 -0
  6. package/components/copy/button-copy.component.d.ts +17 -0
  7. package/components/copy/copy.component.d.ts +3 -1
  8. package/components/copy/copy.d.ts +2 -1
  9. package/components/copy/copy.directive.d.ts +5 -2
  10. package/components/copy/copy.options.d.ts +8 -4
  11. package/components/copy/index.d.ts +1 -0
  12. package/components/counter/counter.component.d.ts +17 -0
  13. package/components/counter/counter.options.d.ts +14 -0
  14. package/components/counter/index.d.ts +2 -0
  15. package/components/files/input-files/input-files.component.d.ts +4 -1
  16. package/components/filter/filter.component.d.ts +1 -1
  17. package/components/index.d.ts +3 -4
  18. package/components/input-chip/input-chip.component.d.ts +5 -0
  19. package/components/input-chip/input-chip.directive.d.ts +1 -1
  20. package/components/input-date/input-date.directive.d.ts +3 -2
  21. package/components/input-date/input-date.options.d.ts +2 -4
  22. package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
  23. package/components/input-date-time/input-date-time.component.d.ts +2 -2
  24. package/components/input-month/input-month.directive.d.ts +1 -1
  25. package/components/input-month/input-month.options.d.ts +1 -7
  26. package/components/input-month-range/input-month-range.directive.d.ts +1 -1
  27. package/components/input-month-range/input-month-range.options.d.ts +1 -3
  28. package/components/input-number/index.d.ts +1 -0
  29. package/components/input-number/input-number.directive.d.ts +1 -0
  30. package/components/input-number/number-mask.directive.d.ts +1 -1
  31. package/components/input-number/step/input-number-step.component.d.ts +3 -5
  32. package/components/input-number/step/input-number-step.service.d.ts +12 -0
  33. package/components/input-phone/input-phone.directive.d.ts +1 -1
  34. package/components/input-range/input-range.component.d.ts +1 -1
  35. package/components/input-slider/input-slider.d.ts +1 -1
  36. package/components/input-time/input-time.directive.d.ts +1 -1
  37. package/components/input-time/input-time.options.d.ts +1 -3
  38. package/components/input-year/input-year.directive.d.ts +1 -1
  39. package/components/line-clamp/line-clamp-box.component.d.ts +2 -0
  40. package/components/line-clamp/line-clamp.component.d.ts +5 -3
  41. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +1 -0
  42. package/components/multi-select/multi-select-native/multi-select-native.component.d.ts +1 -1
  43. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +2 -2
  44. package/components/radio-list/radio-list.component.d.ts +1 -5
  45. package/components/range/range.component.d.ts +2 -2
  46. package/components/select/native-select/native-select.component.d.ts +1 -1
  47. package/components/select/select-option/select-option.component.d.ts +1 -1
  48. package/components/shrink-wrap/index.d.ts +3 -0
  49. package/components/shrink-wrap/shrink-wrap.component.d.ts +5 -0
  50. package/components/shrink-wrap/shrink-wrap.d.ts +3 -0
  51. package/components/shrink-wrap/shrink-wrap.directive.d.ts +6 -0
  52. package/components/stepper/step.component.d.ts +1 -1
  53. package/components/switch/switch.component.d.ts +1 -1
  54. package/components/switch/switch.options.d.ts +1 -1
  55. package/components/tabs/tabs-with-more.component.d.ts +3 -3
  56. package/components/textarea/textarea.directive.d.ts +1 -1
  57. package/components/timeline/index.d.ts +3 -0
  58. package/components/timeline/timeline-item.component.d.ts +14 -0
  59. package/components/timeline/timeline.component.d.ts +16 -0
  60. package/components/timeline/timeline.d.ts +3 -0
  61. package/components/toast/toast.directive.d.ts +4 -1
  62. package/components/tree/components/tree/tree.component.d.ts +1 -3
  63. package/directives/password/password.options.d.ts +18 -5
  64. package/fesm2022/taiga-ui-kit-components-accordion.mjs +20 -10
  65. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +5 -5
  67. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-avatar.mjs +24 -23
  69. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  71. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-badge.mjs +8 -7
  73. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +7 -7
  75. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-block.mjs +8 -7
  77. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -5
  79. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  81. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +36 -48
  83. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +68 -100
  85. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-chip.mjs +9 -8
  87. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +9 -5
  89. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-comment.mjs +12 -8
  91. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-compass.mjs +8 -4
  93. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-confirm.mjs +7 -7
  95. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-copy.mjs +93 -28
  97. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-counter.mjs +66 -0
  99. package/fesm2022/taiga-ui-kit-components-counter.mjs.map +1 -0
  100. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +7 -7
  101. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-drawer.mjs +4 -4
  103. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-files.mjs +37 -30
  105. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -4
  107. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +3 -3
  109. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +21 -15
  111. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-input-color.mjs +8 -7
  113. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +11 -11
  115. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +6 -5
  117. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +10 -8
  119. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-input-date.mjs +35 -24
  121. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +5 -4
  123. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +10 -6
  125. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-input-month.mjs +17 -20
  127. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-input-number.mjs +83 -56
  129. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +5 -5
  131. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +6 -6
  133. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +4 -4
  135. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-input-range.mjs +4 -4
  137. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +9 -8
  139. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-input-time.mjs +15 -13
  141. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-input-year.mjs +11 -9
  143. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -14
  145. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-like.mjs +6 -5
  147. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +24 -13
  149. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-message.mjs +8 -7
  151. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +27 -20
  153. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +11 -11
  155. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-pager.mjs +3 -3
  157. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-pagination.mjs +4 -4
  159. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-pin.mjs +9 -7
  161. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-preview.mjs +37 -34
  163. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-progress.mjs +38 -49
  165. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-pulse.mjs +3 -3
  167. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-push.mjs +15 -14
  169. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +9 -7
  171. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-range.mjs +24 -23
  173. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -4
  175. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +3 -3
  177. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-segmented.mjs +10 -9
  179. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-select.mjs +21 -23
  181. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs +40 -0
  183. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs.map +1 -0
  184. package/fesm2022/taiga-ui-kit-components-status.mjs +9 -7
  185. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-stepper.mjs +8 -8
  187. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-switch.mjs +6 -5
  189. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-tabs.mjs +40 -35
  191. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-textarea.mjs +17 -16
  193. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-tiles.mjs +16 -14
  195. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-timeline.mjs +68 -0
  197. package/fesm2022/taiga-ui-kit-components-timeline.mjs.map +1 -0
  198. package/fesm2022/taiga-ui-kit-components-toast.mjs +29 -24
  199. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-tree.mjs +24 -24
  201. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components.mjs +3 -4
  203. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +3 -3
  205. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +12 -8
  207. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  209. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +8 -7
  211. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-directives-connected.mjs +12 -8
  213. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +3 -3
  215. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -7
  217. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  219. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -3
  221. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-directives-password.mjs +4 -10
  223. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -3
  225. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +9 -7
  227. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -7
  229. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +8 -8
  231. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -7
  233. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +3 -3
  235. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +3 -3
  237. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +3 -3
  239. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  241. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +3 -3
  243. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -4
  245. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +3 -3
  247. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  249. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  251. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  253. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  255. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  256. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-utils.mjs +1 -5
  258. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  259. package/package.json +64 -59
  260. package/pipes/index.d.ts +0 -1
  261. package/tokens/i18n.d.ts +0 -1
  262. package/utils/index.d.ts +0 -1
  263. package/components/carousel/carousel-autoscroll.directive.d.ts +0 -6
  264. package/components/carousel/carousel-buttons.directive.d.ts +0 -5
  265. package/components/carousel/carousel-scroll.directive.d.ts +0 -7
  266. package/components/carousel/carousel.component.d.ts +0 -34
  267. package/components/carousel/carousel.d.ts +0 -7
  268. package/components/carousel/carousel.directive.d.ts +0 -16
  269. package/components/carousel/index.d.ts +0 -6
  270. package/components/checkbox/checkbox.component.d.ts +0 -10
  271. package/components/checkbox/checkbox.options.d.ts +0 -10
  272. package/components/checkbox/index.d.ts +0 -2
  273. package/components/radio/index.d.ts +0 -4
  274. package/components/radio/radio.component.d.ts +0 -18
  275. package/components/radio/radio.d.ts +0 -3
  276. package/components/radio/radio.directive.d.ts +0 -8
  277. package/components/radio/radio.options.d.ts +0 -7
  278. package/components/slider/helpers/key-steps.d.ts +0 -27
  279. package/components/slider/helpers/slider-key-steps.directive.d.ts +0 -32
  280. package/components/slider/helpers/slider-readonly.directive.d.ts +0 -15
  281. package/components/slider/helpers/slider-thumb-label.component.d.ts +0 -13
  282. package/components/slider/index.d.ts +0 -6
  283. package/components/slider/slider.component.d.ts +0 -22
  284. package/components/slider/slider.d.ts +0 -5
  285. package/fesm2022/taiga-ui-kit-components-carousel.mjs +0 -211
  286. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +0 -1
  287. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +0 -36
  288. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +0 -1
  289. package/fesm2022/taiga-ui-kit-components-radio.mjs +0 -91
  290. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +0 -1
  291. package/fesm2022/taiga-ui-kit-components-slider.mjs +0 -337
  292. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +0 -1
  293. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +0 -60
  294. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +0 -1
  295. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +0 -21
  296. package/pipes/filter-by-input/index.d.ts +0 -1
  297. package/styles/components/avatar.less +0 -188
  298. package/styles/components/badge.less +0 -127
  299. package/styles/components/block.less +0 -118
  300. package/styles/components/checkbox.less +0 -84
  301. package/styles/components/chip.less +0 -139
  302. package/styles/components/comment.less +0 -64
  303. package/styles/components/compass.less +0 -49
  304. package/styles/components/like.less +0 -67
  305. package/styles/components/message.less +0 -33
  306. package/styles/components/pin.less +0 -164
  307. package/styles/components/progress-bar.less +0 -117
  308. package/styles/components/radio.less +0 -59
  309. package/styles/components/status.less +0 -40
  310. package/styles/components/switch.less +0 -103
  311. package/styles/components/toast.less +0 -44
  312. package/utils/is-flat.d.ts +0 -1
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { contentChild, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
3
  import { toSignal, toObservable } from '@angular/core/rxjs-interop';
4
4
  import { NgControl } from '@angular/forms';
5
+ import { TUI_VERSION } from '@taiga-ui/cdk/constants';
5
6
  import { tuiControlValue } from '@taiga-ui/cdk/observables';
6
7
  import { switchMap } from 'rxjs';
7
8
 
@@ -10,12 +11,12 @@ class TuiInputInline {
10
11
  this.control = contentChild(NgControl);
11
12
  this.value = toSignal(toObservable(this.control).pipe(switchMap(tuiControlValue)));
12
13
  }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputInline, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: TuiInputInline, isStandalone: true, selector: "tui-input-inline", queries: [{ propertyName: "control", first: true, predicate: NgControl, descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"t-before\"\n [textContent]=\"value()\"\n></span>\n\n@if (!value()) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputInline, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: TuiInputInline, isStandalone: true, selector: "tui-input-inline", host: { attributes: { "data-tui-version": "5.0.0-canary.d205016" } }, queries: [{ propertyName: "control", first: true, predicate: NgControl, descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"t-before\"\n [textContent]=\"value()\"\n></span>\n\n@if (!value()) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>input{position:absolute;inset-block-start:0;inset-inline-start:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
15
16
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputInline, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputInline, decorators: [{
17
18
  type: Component,
18
- args: [{ selector: 'tui-input-inline', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span\n class=\"t-before\"\n [textContent]=\"value()\"\n></span>\n\n@if (!value()) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline{position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline>input{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"] }]
19
+ args: [{ selector: 'tui-input-inline', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { 'data-tui-version': TUI_VERSION }, template: "<span\n class=\"t-before\"\n [textContent]=\"value()\"\n></span>\n\n@if (!value()) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n", styles: ["tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"]){position:relative;display:inline-block;white-space:nowrap;box-sizing:border-box}tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>.t-before{padding-inline-end:.02em;margin-inline-start:1px;white-space:pre;visibility:hidden}tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>.t-placeholder{display:inline-block;min-inline-size:1px;margin-inline-start:-1px}tui-input-inline:where(*[data-tui-version=\"5.0.0-canary.d205016\"])>input{position:absolute;inset-block-start:0;inset-inline-start:0;background-color:transparent;padding:inherit;font:inherit;color:inherit;box-sizing:border-box;inline-size:100%;block-size:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}\n"] }]
19
20
  }] });
20
21
 
21
22
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-inline.mjs","sources":["../../../projects/kit/components/input-inline/input-inline.component.ts","../../../projects/kit/components/input-inline/input-inline.template.html","../../../projects/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toObservable, toSignal} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {switchMap} from 'rxjs';\n\n@Component({\n selector: 'tui-input-inline',\n templateUrl: './input-inline.template.html',\n styleUrl: './input-inline.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiInputInline {\n protected readonly control = contentChild(NgControl);\n protected readonly value = toSignal(\n toObservable(this.control).pipe(switchMap(tuiControlValue)),\n );\n}\n","<span\n class=\"t-before\"\n [textContent]=\"value()\"\n></span>\n\n@if (!value()) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAkBa,cAAc,CAAA;AAP3B,IAAA,WAAA,GAAA;AAQuB,QAAA,IAAA,CAAA,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC;AACjC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAC/B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAC9D;AACJ;+GALY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,SAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACmB,SAAS,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnBvD,mRAcA,EAAA,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FDIa,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,iBAGb,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mRAAA,EAAA,MAAA,EAAA,CAAA,2lBAAA,CAAA,EAAA;;;AEhBnD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-inline.mjs","sources":["../../../projects/kit/components/input-inline/input-inline.component.ts","../../../projects/kit/components/input-inline/input-inline.template.html","../../../projects/kit/components/input-inline/taiga-ui-kit-components-input-inline.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toObservable, toSignal} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {switchMap} from 'rxjs';\n\n@Component({\n selector: 'tui-input-inline',\n templateUrl: './input-inline.template.html',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './input-inline.style.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {'data-tui-version': TUI_VERSION},\n})\nexport class TuiInputInline {\n protected readonly control = contentChild(NgControl);\n protected readonly value = toSignal(\n toObservable(this.control).pipe(switchMap(tuiControlValue)),\n );\n}\n","<span\n class=\"t-before\"\n [textContent]=\"value()\"\n></span>\n\n@if (!value()) {\n <span\n automation-id=\"tui-input-inline__placeholder\"\n class=\"t-placeholder\"\n >\n <ng-content />\n </span>\n}\n<ng-content select=\"input\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAwBa,cAAc,CAAA;AAZ3B,IAAA,WAAA,GAAA;AAauB,QAAA,IAAA,CAAA,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC;AACjC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAC/B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAC9D;AACJ,IAAA;+GALY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,sBAAA,EAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,YAAA,EAAA,SAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACmB,SAAS,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECzBvD,mRAcA,EAAA,MAAA,EAAA,CAAA,u0BAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FDUa,cAAc,EAAA,UAAA,EAAA,CAAA;kBAZ1B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,aAAA,EAOb,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAC,kBAAkB,EAAE,WAAW,EAAC,EAAA,QAAA,EAAA,mRAAA,EAAA,MAAA,EAAA,CAAA,u0BAAA,CAAA,EAAA;;;AEtB3C;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { TuiLabel } from '@taiga-ui/core/components/label';
2
2
  import * as i2 from '@taiga-ui/core/components/textfield';
3
- import { tuiInjectAuxiliary, tuiTextfieldIcon, TuiSelectLike, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
3
+ import { tuiInjectAuxiliary, TuiSelectLike, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
4
4
  import * as i3 from '@taiga-ui/core/portals/dropdown';
5
5
  import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto, TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
6
6
  import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
@@ -8,8 +8,10 @@ import * as i0 from '@angular/core';
8
8
  import { InjectionToken, inject, signal, effect, Directive } from '@angular/core';
9
9
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
10
10
  import { RANGE_SEPARATOR_CHAR, TuiMonthRange } from '@taiga-ui/cdk/date-time';
11
+ import { tuiSetSignal } from '@taiga-ui/cdk/utils/miscellaneous';
11
12
  import * as i1 from '@taiga-ui/core/components/input';
12
13
  import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
14
+ import { tuiIconEnd } from '@taiga-ui/core/directives/icons';
13
15
  import { TUI_MONTHS } from '@taiga-ui/core/tokens';
14
16
  import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
15
17
  import { TUI_INPUT_DATE_DEFAULT_OPTIONS } from '@taiga-ui/kit/components/input-date';
@@ -31,7 +33,7 @@ class TuiInputMonthRangeDirective extends TuiControl {
31
33
  this.open = inject(TuiDropdownOpen).open;
32
34
  this.intermediateValue = signal(null);
33
35
  this.calendar = tuiInjectAuxiliary((x) => x instanceof TuiCalendarMonth);
34
- this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);
36
+ this.icon = tuiIconEnd(inject(TUI_INPUT_MONTH_RANGE_OPTIONS).icon);
35
37
  this.dropdownEnabled = tuiDropdownEnabled(this.interactive);
36
38
  this.valueEffect = effect(() => {
37
39
  const value = this.value();
@@ -46,7 +48,9 @@ class TuiInputMonthRangeDirective extends TuiControl {
46
48
  }
47
49
  });
48
50
  this.calendarSync = effect(() => {
49
- this.calendar()?.value.set(this.intermediateValue() ?? this.value());
51
+ const calendar = this.calendar();
52
+ calendar &&
53
+ tuiSetSignal(calendar.value, this.intermediateValue() ?? this.value());
50
54
  });
51
55
  // TODO: use linked signal (Angular 19+)
52
56
  this.resetIntermediateValue = effect(() => {
@@ -70,13 +74,13 @@ class TuiInputMonthRangeDirective extends TuiControl {
70
74
  this.onChange(null);
71
75
  this.open.set(true);
72
76
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputMonthRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TuiInputMonthRangeDirective, isStandalone: true, selector: "input[tuiInputMonthRange]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputMonthRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
78
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.19", type: TuiInputMonthRangeDirective, isStandalone: true, selector: "input[tuiInputMonthRange]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
75
79
  tuiAsControl(TuiInputMonthRangeDirective),
76
80
  tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),
77
81
  ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
78
82
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputMonthRangeDirective, decorators: [{
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputMonthRangeDirective, decorators: [{
80
84
  type: Directive,
81
85
  args: [{
82
86
  selector: 'input[tuiInputMonthRange]',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month-range.mjs","sources":["../../../projects/kit/components/input-month-range/input-month-range.options.ts","../../../projects/kit/components/input-month-range/input-month-range.directive.ts","../../../projects/kit/components/input-month-range/input-month-range.ts","../../../projects/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonthRange} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_INPUT_DATE_DEFAULT_OPTIONS} from '@taiga-ui/kit/components/input-date';\nimport {TUI_INPUT_MONTH_OPTIONS} from '@taiga-ui/kit/components/input-month';\n\nexport interface TuiInputMonthRangeOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonthRange | null, any>;\n}\n\nexport const TUI_INPUT_MONTH_RANGE_OPTIONS =\n new InjectionToken<TuiInputMonthRangeOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_MONTH_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n );\n\nexport const tuiInputMonthRangeOptionsProvider = (\n options: Partial<TuiInputMonthRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n );\n","import {Directive, effect, inject, signal} from '@angular/core';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n RANGE_SEPARATOR_CHAR,\n type TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk/date-time';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n tuiTextfieldIcon,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TUI_INPUT_MONTH_RANGE_OPTIONS} from './input-month-range.options';\n\n@Directive({\n selector: 'input[tuiInputMonthRange]',\n providers: [\n tuiAsControl(TuiInputMonthRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthRangeDirective extends TuiControl<TuiMonthRange | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly months = inject(TUI_MONTHS);\n private readonly open = inject(TuiDropdownOpen).open;\n private readonly intermediateValue = signal<TuiMonth | null>(null);\n private readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_RANGE_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const months = this.months();\n const format = ({month, formattedYear}: TuiMonth): string =>\n `${months[month] ?? ''} ${formattedYear}`;\n\n this.input.value.set(\n value ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to) : '',\n );\n });\n\n protected readonly calendarInit = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.options.rangeMode = true;\n }\n });\n\n protected readonly calendarSync = effect(() => {\n this.calendar()?.value.set(this.intermediateValue() ?? this.value());\n });\n\n // TODO: use linked signal (Angular 19+)\n protected readonly resetIntermediateValue = effect(() => {\n this.intermediateValue.set(this.value() && null);\n });\n\n protected onMonthClickEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n const intermediateValue = this.intermediateValue();\n\n if (!intermediateValue) {\n this.intermediateValue.set(month);\n } else {\n this.onChange(TuiMonthRange.sort(intermediateValue, month));\n this.open.set(false);\n }\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(true);\n }\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeDirective} from './input-month-range.directive';\n\nexport const TuiInputMonthRange = [\n TuiInputMonthRangeDirective,\n TuiCalendarMonth,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAiBa,MAAA,6BAA6B,GACtC,IAAI,cAAc,CACd,SAAS,GAAG,+BAA+B,GAAG,EAAE,EAChD;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAClC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGI,MAAA,iCAAiC,GAAG,CAC7C,OAA2C,KAE3C,iBAAiB,CACb,6BAA6B,EAC7B,OAAO,EACP,8BAA8B;;ACChC,MAAO,2BAA4B,SAAQ,UAAgC,CAAA;AAZjF,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CA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AAA,EAAA,IAAA,EAAA,2BAA2B,EAVzB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,mDAAA,EAAA,EAAA,UAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,EAAA,SAAA,EAAA;YACP,YAAY,CAAC,2BAA2B,CAAC;YACzC,uBAAuB,CAAC,6BAA6B,CAAC;AACzD,SAAA,EAAA,eAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,YAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,aAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,eAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAOQ,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAZvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,SAAS,EAAE;AACP,wBAAA,YAAY,CAA6B,2BAAA,CAAA;wBACzC,uBAAuB,CAAC,6BAA6B,CAAC;AACzD,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC;AAC9D,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,iDAAiD;AAC/D,qBAAA;AACJ,iBAAA;;;ACxBY,MAAA,kBAAkB,GAAG;IAC9B,2BAA2B;IAC3B,gBAAgB;IAChB,QAAQ;IACR,qBAAqB;IACrB,4BAA4B;IAC5B,kBAAkB;;;AChBtB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-month-range.mjs","sources":["../../../projects/kit/components/input-month-range/input-month-range.options.ts","../../../projects/kit/components/input-month-range/input-month-range.directive.ts","../../../projects/kit/components/input-month-range/input-month-range.ts","../../../projects/kit/components/input-month-range/taiga-ui-kit-components-input-month-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonthRange} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {TUI_INPUT_DATE_DEFAULT_OPTIONS} from '@taiga-ui/kit/components/input-date';\nimport {TUI_INPUT_MONTH_OPTIONS} from '@taiga-ui/kit/components/input-month';\n\nexport interface TuiInputMonthRangeOptions {\n readonly icon: string;\n readonly valueTransformer: TuiValueTransformer<TuiMonthRange | null, any>;\n}\n\nexport const TUI_INPUT_MONTH_RANGE_OPTIONS =\n new InjectionToken<TuiInputMonthRangeOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_MONTH_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n );\n\nexport const tuiInputMonthRangeOptionsProvider = (\n options: Partial<TuiInputMonthRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_MONTH_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n );\n","import {Directive, effect, inject, signal} from '@angular/core';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n RANGE_SEPARATOR_CHAR,\n type TuiMonth,\n TuiMonthRange,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiSetSignal} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {tuiInjectAuxiliary, TuiSelectLike} from '@taiga-ui/core/components/textfield';\nimport {tuiIconEnd} from '@taiga-ui/core/directives/icons';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TUI_INPUT_MONTH_RANGE_OPTIONS} from './input-month-range.options';\n\n@Directive({\n selector: 'input[tuiInputMonthRange]',\n providers: [\n tuiAsControl(TuiInputMonthRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthRangeDirective extends TuiControl<TuiMonthRange | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly months = inject(TUI_MONTHS);\n private readonly open = inject(TuiDropdownOpen).open;\n private readonly intermediateValue = signal<TuiMonth | null>(null);\n private readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n protected readonly icon = tuiIconEnd(inject(TUI_INPUT_MONTH_RANGE_OPTIONS).icon);\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const months = this.months();\n const format = ({month, formattedYear}: TuiMonth): string =>\n `${months[month] ?? ''} ${formattedYear}`;\n\n this.input.value.set(\n value ? format(value.from) + RANGE_SEPARATOR_CHAR + format(value.to) : '',\n );\n });\n\n protected readonly calendarInit = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.options.rangeMode = true;\n }\n });\n\n protected readonly calendarSync = effect(() => {\n const calendar = this.calendar();\n\n calendar &&\n tuiSetSignal(calendar.value, this.intermediateValue() ?? this.value());\n });\n\n // TODO: use linked signal (Angular 19+)\n protected readonly resetIntermediateValue = effect(() => {\n this.intermediateValue.set(this.value() && null);\n });\n\n protected onMonthClickEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n const intermediateValue = this.intermediateValue();\n\n if (!intermediateValue) {\n this.intermediateValue.set(month);\n } else {\n this.onChange(TuiMonthRange.sort(intermediateValue, month));\n this.open.set(false);\n }\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(true);\n }\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthRangeDirective} from './input-month-range.directive';\n\nexport const TuiInputMonthRange = [\n TuiInputMonthRangeDirective,\n TuiCalendarMonth,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAeO,MAAM,6BAA6B,GACtC,IAAI,cAAc,CACd,SAAS,GAAG,+BAA+B,GAAG,EAAE,EAChD;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,uBAAuB,CAAC;AAClC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGF,MAAM,iCAAiC,GAAG,CAC7C,OAA2C,KAE3C,iBAAiB,CACb,6BAA6B,EAC7B,OAAO,EACP,8BAA8B;;ACChC,MAAO,2BAA4B,SAAQ,UAAgC,CAAA;AAZjF,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,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uiTextfieldIcon, tuiInjectAuxiliary, TuiWithNativePicker, TuiSelectLike, TuiTextfieldContent, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
3
+ import { tuiInjectAuxiliary, TuiWithNativePicker, TuiSelectLike, TuiTextfieldContent, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
4
4
  import * as i3 from '@taiga-ui/core/portals/dropdown';
5
5
  import { TuiDropdownOpen, tuiDropdownEnabled, TuiDropdownAuto, TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
6
6
  import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
7
7
  import * as i0 from '@angular/core';
8
8
  import { InjectionToken, inject, computed, effect, Directive, input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
9
+ import { TUI_VERSION } from '@taiga-ui/cdk/constants';
9
10
  import { TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth } from '@taiga-ui/cdk/date-time';
11
+ import { tuiSetSignal } from '@taiga-ui/cdk/utils/miscellaneous';
10
12
  import { WA_IS_MOBILE } from '@ng-web-apis/platform';
11
13
  import { TUI_IDENTITY_VALUE_TRANSFORMER, TuiControl, tuiAsControl, tuiValueTransformerFrom } from '@taiga-ui/cdk/classes';
12
14
  import * as i1 from '@taiga-ui/core/components/input';
13
15
  import { TuiInputDirective, TuiWithInput } from '@taiga-ui/core/components/input';
16
+ import { tuiIconEnd } from '@taiga-ui/core/directives/icons';
14
17
  import { TUI_MONTHS } from '@taiga-ui/core/tokens';
15
18
  import { tuiProvideOptions } from '@taiga-ui/cdk/utils/di';
16
19
  import { TUI_INPUT_DATE_OPTIONS, TUI_INPUT_DATE_DEFAULT_OPTIONS } from '@taiga-ui/kit/components/input-date';
17
20
 
18
- /**
19
- * @deprecated remove in v5
20
- */
21
- const TUI_INPUT_MONTH_DEFAULT_OPTIONS = {
22
- icon: () => '@tui.calendar',
23
- valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,
24
- };
25
21
  const TUI_INPUT_MONTH_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '', {
26
22
  factory: () => ({
27
23
  ...inject(TUI_INPUT_DATE_OPTIONS),
@@ -36,7 +32,7 @@ class TuiInputMonthDirective extends TuiControl {
36
32
  this.input = inject(TuiInputDirective);
37
33
  this.months = inject(TUI_MONTHS);
38
34
  this.open = inject(TuiDropdownOpen).open;
39
- this.icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);
35
+ this.icon = tuiIconEnd(inject(TUI_INPUT_MONTH_OPTIONS).icon);
40
36
  this.dropdownEnabled = tuiDropdownEnabled(computed(() => !this.native && this.interactive()));
41
37
  this.valueEffect = effect(() => {
42
38
  const value = this.value();
@@ -46,7 +42,8 @@ class TuiInputMonthDirective extends TuiControl {
46
42
  this.input.value.set(formatted);
47
43
  });
48
44
  this.calendarIn = effect(() => {
49
- this.calendar()?.value.set(this.value());
45
+ const calendar = this.calendar();
46
+ calendar && tuiSetSignal(calendar.value, this.value());
50
47
  });
51
48
  this.calendarOut = effect((onCleanup) => {
52
49
  const subscription = this.calendar()?.monthClick.subscribe((month) => {
@@ -62,13 +59,13 @@ class TuiInputMonthDirective extends TuiControl {
62
59
  this.onChange(null);
63
60
  this.open.set(this.dropdownEnabled());
64
61
  }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputMonthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
66
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: TuiInputMonthDirective, isStandalone: true, selector: "input[tuiInputMonth]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputMonthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
63
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.19", type: TuiInputMonthDirective, isStandalone: true, selector: "input[tuiInputMonth]", host: { listeners: { "input": "$event.inputType?.includes(\"delete\") && clear()" }, properties: { "disabled": "disabled()" } }, providers: [
67
64
  tuiAsControl(TuiInputMonthDirective),
68
65
  tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),
69
66
  ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithInput }, { directive: i2.TuiSelectLike }, { directive: i3.TuiDropdownAuto }], ngImport: i0 }); }
70
67
  }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
72
69
  type: Directive,
73
70
  args: [{
74
71
  selector: 'input[tuiInputMonth]',
@@ -90,8 +87,8 @@ class TuiInputMonthComponent {
90
87
  this.calendarSync = effect(() => {
91
88
  const calendar = this.host.calendar();
92
89
  if (calendar) {
93
- calendar.min.set(this.min() ?? TUI_FIRST_DAY);
94
- calendar.max.set(this.max() ?? TUI_LAST_DAY);
90
+ tuiSetSignal(calendar.min, this.min() ?? TUI_FIRST_DAY);
91
+ tuiSetSignal(calendar.max, this.max() ?? TUI_LAST_DAY);
95
92
  }
96
93
  });
97
94
  this.min = input(null);
@@ -104,12 +101,12 @@ class TuiInputMonthComponent {
104
101
  const [year = 0, month = 0] = value.split('-').map(Number);
105
102
  this.host.onChange(new TuiMonth(year, month - 1));
106
103
  }
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
108
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: TuiInputMonthComponent, isStandalone: true, selector: "input[tuiInputMonth][type=\"month\"]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "ngSkipHydration": "true" } }, hostDirectives: [{ directive: i2.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]~.t-content input[type=month]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}tui-textfield input[tuiInputMonth]~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
104
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
105
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: TuiInputMonthComponent, isStandalone: true, selector: "input[tuiInputMonth][type=\"month\"]", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-tui-version": "5.0.0-canary.d205016", "ngSkipHydration": "true" } }, hostDirectives: [{ directive: i2.TuiWithNativePicker }], ngImport: i0, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])~.t-content input[type=month]{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;opacity:0;pointer-events:auto}tui-textfield input[tuiInputMonth]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
109
106
  }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
111
108
  type: Component,
112
- args: [{ selector: 'input[tuiInputMonth][type="month"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: { ngSkipHydration: 'true' }, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]~.t-content input[type=month]{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0}tui-textfield input[tuiInputMonth]~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
109
+ args: [{ selector: 'input[tuiInputMonth][type="month"]', imports: [TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: { 'data-tui-version': TUI_VERSION, ngSkipHydration: 'true' }, template: "@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n", styles: ["tui-textfield input[tuiInputMonth]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])~.t-content input[type=month]{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;opacity:0;pointer-events:auto}tui-textfield input[tuiInputMonth]:where(*[data-tui-version=\"5.0.0-canary.d205016\"])~.t-content input[type=month]::-webkit-calendar-picker-indicator{position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%}\n"] }]
113
110
  }] });
114
111
 
115
112
  const TuiInputMonth = [
@@ -126,5 +123,5 @@ const TuiInputMonth = [
126
123
  * Generated bundle index. Do not edit.
127
124
  */
128
125
 
129
- export { TUI_INPUT_MONTH_DEFAULT_OPTIONS, TUI_INPUT_MONTH_OPTIONS, TuiInputMonth, TuiInputMonthComponent, TuiInputMonthDirective, tuiInputMonthOptionsProvider };
126
+ export { TUI_INPUT_MONTH_OPTIONS, TuiInputMonth, TuiInputMonthComponent, TuiInputMonthDirective, tuiInputMonthOptionsProvider };
130
127
  //# sourceMappingURL=taiga-ui-kit-components-input-month.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-month.mjs","sources":["../../../projects/kit/components/input-month/input-month.options.ts","../../../projects/kit/components/input-month/input-month.directive.ts","../../../projects/kit/components/input-month/input-month.component.ts","../../../projects/kit/components/input-month/input-month.template.html","../../../projects/kit/components/input-month/input-month.ts","../../../projects/kit/components/input-month/taiga-ui-kit-components-input-month.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {type TuiHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n TUI_INPUT_DATE_OPTIONS,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputMonthOptions {\n readonly icon: TuiHandler<TuiSizeL | TuiSizeS, string>;\n readonly valueTransformer: TuiValueTransformer<TuiMonth | null, any>;\n}\n\n/**\n * @deprecated remove in v5\n */\nexport const TUI_INPUT_MONTH_DEFAULT_OPTIONS: TuiInputMonthOptions = {\n icon: () => '@tui.calendar',\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n};\n\nexport const TUI_INPUT_MONTH_OPTIONS = new InjectionToken<TuiInputMonthOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputMonthOptionsProvider = (\n options: Partial<TuiInputMonthOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS);\n","import {computed, Directive, effect, inject} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n tuiTextfieldIcon,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TUI_INPUT_MONTH_OPTIONS} from './input-month.options';\n\n@Directive({\n selector: 'input[tuiInputMonth]',\n providers: [\n tuiAsControl(TuiInputMonthDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthDirective extends TuiControl<TuiMonth | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly months = inject(TUI_MONTHS);\n private readonly open = inject(TuiDropdownOpen).open;\n\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_MONTH_OPTIONS);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const formatted = value\n ? `${this.months()[value.month] ?? ''} ${value.formattedYear}`\n : '';\n\n this.input.value.set(formatted);\n });\n\n protected readonly calendarIn = effect(() => {\n this.calendar()?.value.set(this.value());\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n this.onChange(month);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && inject(WA_IS_MOBILE);\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(this.dropdownEnabled());\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputMonthDirective} from './input-month.directive';\n\n@Component({\n selector: 'input[tuiInputMonth][type=\"month\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-month.template.html',\n styleUrl: './input-month.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {ngSkipHydration: 'true'},\n})\nexport class TuiInputMonthComponent {\n protected readonly host = inject(TuiInputMonthDirective);\n protected readonly calendarSync = effect(() => {\n const calendar = this.host.calendar();\n\n if (calendar) {\n calendar.min.set(this.min() ?? TUI_FIRST_DAY);\n calendar.max.set(this.max() ?? TUI_LAST_DAY);\n }\n });\n\n protected readonly min = input<TuiMonth | null>(null);\n protected readonly max = input<TuiMonth | null>(null);\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiMonth(year, month - 1));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\nimport {TuiInputMonthDirective} from './input-month.directive';\n\nexport const TuiInputMonth = [\n TuiInputMonthComponent,\n TuiInputMonthDirective,\n TuiCalendarMonth,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;AAmBA;;AAEG;AACU,MAAA,+BAA+B,GAAyB;AACjE,IAAA,IAAI,EAAE,MAAM,eAAe;AAC3B,IAAA,gBAAgB,EAAE,8BAA8B;;AAGvC,MAAA,uBAAuB,GAAG,IAAI,cAAc,CACrD,SAAS,GAAG,yBAAyB,GAAG,EAAE,EAC1C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACjC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGQ,MAAA,4BAA4B,GAAG,CACxC,OAAsC,KAEtC,iBAAiB,CAAC,uBAAuB,EAAE,OAAO,EAAE,8BAA8B;;ACPhF,MAAO,sBAAuB,SAAQ,UAA2B,CAAA;AAZvE,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI;AAEjC,QAAA,IAAA,CAAA,IAAI,GAAG,gBAAgB,CAAC,uBAAuB,CAAC;AAChD,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CACnD,QAAQ,CAAC,MAAM,CAAC,I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file":"taiga-ui-kit-components-input-month.mjs","sources":["../../../projects/kit/components/input-month/input-month.options.ts","../../../projects/kit/components/input-month/input-month.directive.ts","../../../projects/kit/components/input-month/input-month.component.ts","../../../projects/kit/components/input-month/input-month.template.html","../../../projects/kit/components/input-month/input-month.ts","../../../projects/kit/components/input-month/taiga-ui-kit-components-input-month.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/di';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS,\n TUI_INPUT_DATE_OPTIONS,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputMonthOptions {\n readonly icon: string;\n readonly valueTransformer: TuiValueTransformer<TuiMonth | null, any>;\n}\n\nexport const TUI_INPUT_MONTH_OPTIONS = new InjectionToken<TuiInputMonthOptions>(\n ngDevMode ? 'TUI_INPUT_MONTH_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputMonthOptionsProvider = (\n options: Partial<TuiInputMonthOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_MONTH_OPTIONS, options, TUI_INPUT_DATE_DEFAULT_OPTIONS);\n","import {computed, Directive, effect, inject} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {tuiSetSignal} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiInputDirective, TuiWithInput} from '@taiga-ui/core/components/input';\nimport {\n tuiInjectAuxiliary,\n TuiSelectLike,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {tuiIconEnd} from '@taiga-ui/core/directives/icons';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n TuiDropdownOpen,\n} from '@taiga-ui/core/portals/dropdown';\nimport {TUI_MONTHS} from '@taiga-ui/core/tokens';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TUI_INPUT_MONTH_OPTIONS} from './input-month.options';\n\n@Directive({\n selector: 'input[tuiInputMonth]',\n providers: [\n tuiAsControl(TuiInputMonthDirective),\n tuiValueTransformerFrom(TUI_INPUT_MONTH_OPTIONS),\n ],\n hostDirectives: [TuiWithInput, TuiSelectLike, TuiDropdownAuto],\n host: {\n '[disabled]': 'disabled()',\n '(input)': '$event.inputType?.includes(\"delete\") && clear()',\n },\n})\nexport class TuiInputMonthDirective extends TuiControl<TuiMonth | null> {\n private readonly input = inject(TuiInputDirective);\n private readonly months = inject(TUI_MONTHS);\n private readonly open = inject(TuiDropdownOpen).open;\n\n protected readonly icon = tuiIconEnd(inject(TUI_INPUT_MONTH_OPTIONS).icon);\n protected readonly dropdownEnabled = tuiDropdownEnabled(\n computed(() => !this.native && this.interactive()),\n );\n\n protected readonly valueEffect = effect(() => {\n const value = this.value();\n const formatted = value\n ? `${this.months()[value.month] ?? ''} ${value.formattedYear}`\n : '';\n\n this.input.value.set(formatted);\n });\n\n protected readonly calendarIn = effect(() => {\n const calendar = this.calendar();\n\n calendar && tuiSetSignal(calendar.value, this.value());\n });\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.monthClick.subscribe((month) => {\n this.onChange(month);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendarMonth>(\n (x) => x instanceof TuiCalendarMonth,\n );\n\n public readonly native =\n !!inject(TuiWithNativePicker, {optional: true}) && inject(WA_IS_MOBILE);\n\n protected clear(): void {\n this.onChange(null);\n this.open.set(this.dropdownEnabled());\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n effect,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {tuiSetSignal} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\n\nimport {TuiInputMonthDirective} from './input-month.directive';\n\n@Component({\n selector: 'input[tuiInputMonth][type=\"month\"]',\n imports: [TuiTextfieldContent],\n templateUrl: './input-month.template.html',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './input-month.style.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {'data-tui-version': TUI_VERSION, ngSkipHydration: 'true'},\n})\nexport class TuiInputMonthComponent {\n protected readonly host = inject(TuiInputMonthDirective);\n protected readonly calendarSync = effect(() => {\n const calendar = this.host.calendar();\n\n if (calendar) {\n tuiSetSignal(calendar.min, this.min() ?? TUI_FIRST_DAY);\n tuiSetSignal(calendar.max, this.max() ?? TUI_LAST_DAY);\n }\n });\n\n protected readonly min = input<TuiMonth | null>(null);\n protected readonly max = input<TuiMonth | null>(null);\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.onChange(null);\n }\n\n const [year = 0, month = 0] = value.split('-').map(Number);\n\n this.host.onChange(new TuiMonth(year, month - 1));\n }\n}\n","@if (host.native) {\n <input\n *tuiTextfieldContent\n type=\"month\"\n [max]=\"max()?.toJSON()\"\n [min]=\"min()?.toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\n\nimport {TuiInputMonthComponent} from './input-month.component';\nimport {TuiInputMonthDirective} from './input-month.directive';\n\nexport const TuiInputMonth = [\n TuiInputMonthComponent,\n TuiInputMonthDirective,\n TuiCalendarMonth,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiBO,MAAM,uBAAuB,GAAG,IAAI,cAAc,CACrD,SAAS,GAAG,yBAAyB,GAAG,EAAE,EAC1C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACjC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGE,MAAM,4BAA4B,GAAG,CACxC,OAAsC,KAEtC,iBAAiB,CAAC,uBAAuB,EAAE,OAAO,EAAE,8BAA8B;;ACIhF,MAAO,sBAAuB,SAAQ,UAA2B,CAAA;AAZvE,IAAA,WAAA,GAAA;;AAaqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;AAC3B,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI;QAEjC,IAAA,CAAA,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC;AACvD,QAAA,IAAA,CAAA,eAAe,GAAG,kBAAkB,CACnD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,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