@taiga-ui/kit 4.52.0-canary.216e347 → 4.52.0-canary.2c75afa

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 (864) hide show
  1. package/components/accordion/accordion.component.d.ts +13 -0
  2. package/components/accordion/accordion.d.ts +4 -4
  3. package/components/accordion/accordion.directive.d.ts +11 -10
  4. package/components/accordion/index.d.ts +1 -3
  5. package/components/action-bar/action-bar.component.d.ts +5 -7
  6. package/components/action-bar/index.d.ts +0 -2
  7. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  8. package/components/avatar/avatar.directive.d.ts +15 -0
  9. package/components/avatar/avatar.options.d.ts +1 -4
  10. package/components/avatar/index.d.ts +1 -1
  11. package/components/badge/badge.directive.d.ts +2 -2
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +1 -1
  14. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  15. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/checkbox/checkbox.component.d.ts +7 -18
  18. package/components/checkbox/checkbox.options.d.ts +5 -9
  19. package/components/chip/chip.directive.d.ts +2 -4
  20. package/components/comment/comment.directive.d.ts +2 -2
  21. package/components/confirm/confirm.component.d.ts +3 -2
  22. package/components/confirm/confirm.service.d.ts +2 -1
  23. package/{directives → components}/copy/copy.component.d.ts +1 -1
  24. package/{directives → components}/copy/copy.directive.d.ts +2 -2
  25. package/{directives → components}/copy/copy.options.d.ts +2 -2
  26. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -0
  27. package/components/files/file/file.options.d.ts +2 -2
  28. package/components/files/files/files.component.d.ts +2 -2
  29. package/components/floating-container/floating-container.directive.d.ts +2 -2
  30. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  31. package/components/fullscreen/index.d.ts +1 -0
  32. package/components/index.d.ts +3 -2
  33. package/components/input-chip/input-chip.options.d.ts +1 -1
  34. package/components/input-color/input-color.component.d.ts +2 -1
  35. package/components/input-color/input-color.options.d.ts +1 -1
  36. package/components/input-date/input-date.options.d.ts +1 -1
  37. package/components/input-number/input-number.directive.d.ts +5 -9
  38. package/components/input-number/input-number.options.d.ts +1 -1
  39. package/components/input-number/quantum.directive.d.ts +2 -2
  40. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  41. package/components/input-phone/input-phone.options.d.ts +1 -1
  42. package/components/input-phone-international/input-phone-international.component.d.ts +24 -30
  43. package/components/input-pin/input-pin.component.d.ts +1 -1
  44. package/components/input-range/input-range.component.d.ts +9 -12
  45. package/components/input-slider/input-slider.directive.d.ts +2 -4
  46. package/components/input-time/input-time.directive.d.ts +6 -8
  47. package/components/input-time/input-time.options.d.ts +1 -1
  48. package/components/like/like.component.d.ts +4 -11
  49. package/components/like/like.options.d.ts +3 -4
  50. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  51. package/components/line-clamp/line-clamp.component.d.ts +12 -18
  52. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +3 -3
  53. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  54. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  55. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  56. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  57. package/components/pager/pager.component.d.ts +1 -1
  58. package/components/pagination/index.d.ts +1 -0
  59. package/components/pagination/pagination.component.d.ts +3 -2
  60. package/components/pagination/pagination.options.d.ts +10 -0
  61. package/components/pin/pin.directive.d.ts +2 -2
  62. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  63. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  64. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  65. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  66. package/components/preview/preview.component.d.ts +1 -1
  67. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  68. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  69. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  70. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  71. package/components/push/push-alert.component.d.ts +4 -3
  72. package/components/push/push.component.d.ts +2 -2
  73. package/components/push/push.directive.d.ts +4 -6
  74. package/components/push/push.options.d.ts +4 -8
  75. package/components/push/push.service.d.ts +6 -2
  76. package/components/radio/radio.component.d.ts +7 -8
  77. package/components/radio/radio.directive.d.ts +2 -2
  78. package/components/radio/radio.options.d.ts +2 -5
  79. package/components/range/range-change.directive.d.ts +1 -2
  80. package/components/range/range.component.d.ts +16 -24
  81. package/components/rating/rating.component.d.ts +5 -5
  82. package/components/rating/rating.options.d.ts +5 -3
  83. package/components/segmented/segmented.component.d.ts +4 -6
  84. package/components/select/native-select/native-select.component.d.ts +4 -5
  85. package/components/slider/helpers/key-steps.d.ts +1 -2
  86. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  87. package/components/slides/slides.directive.d.ts +4 -4
  88. package/components/status/status.directive.d.ts +2 -2
  89. package/components/switch/switch.component.d.ts +7 -19
  90. package/components/switch/switch.options.d.ts +4 -8
  91. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  92. package/components/textarea/textarea-limit.directive.d.ts +4 -5
  93. package/components/textarea/textarea.options.d.ts +1 -1
  94. package/components/toast/index.d.ts +5 -0
  95. package/components/toast/toast.component.d.ts +18 -0
  96. package/components/toast/toast.d.ts +3 -0
  97. package/components/toast/toast.directive.d.ts +7 -0
  98. package/components/toast/toast.options.d.ts +9 -0
  99. package/components/toast/toast.service.d.ts +17 -0
  100. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  101. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +9 -7
  102. package/components/tree/misc/tree.constants.d.ts +0 -3
  103. package/components/tree/misc/tree.tokens.d.ts +1 -6
  104. package/directives/button-close/button-close.directive.d.ts +2 -1
  105. package/directives/button-select/button-select.directive.d.ts +1 -2
  106. package/directives/chevron/chevron.directive.d.ts +2 -3
  107. package/directives/fade/fade.directive.d.ts +1 -0
  108. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  109. package/directives/highlight/highlight.directive.d.ts +1 -3
  110. package/directives/index.d.ts +0 -2
  111. package/directives/password/password.options.d.ts +1 -1
  112. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  113. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  114. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  115. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  116. package/directives/tooltip/tooltip.options.d.ts +1 -4
  117. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -146
  118. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  120. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-kit-components-avatar.mjs +82 -101
  122. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +5 -5
  124. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-badge.mjs +15 -21
  126. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -9
  128. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-block.mjs +17 -24
  130. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +9 -12
  132. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +7 -8
  134. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +7 -12
  136. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +10 -11
  138. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-carousel.mjs +22 -30
  140. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +19 -76
  142. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-chip.mjs +22 -27
  144. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +9 -10
  146. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  148. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -5
  150. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -16
  152. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-copy.mjs +119 -0
  154. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  155. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +21 -14
  156. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  158. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -9
  160. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-files.mjs +42 -54
  162. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-filter.mjs +7 -16
  164. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +13 -19
  166. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  168. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  169. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +22 -21
  170. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-input-color.mjs +12 -15
  172. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +9 -14
  174. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -5
  176. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +9 -12
  178. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-input-date.mjs +22 -31
  180. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +6 -7
  182. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +8 -10
  184. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-input-month.mjs +14 -17
  186. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-input-number.mjs +50 -73
  188. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +106 -132
  190. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +12 -15
  192. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +7 -7
  194. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-input-range.mjs +35 -39
  196. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +28 -42
  198. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-input-time.mjs +41 -47
  200. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-input-year.mjs +8 -10
  202. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +18 -20
  204. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  206. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -84
  208. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-message.mjs +10 -13
  210. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +48 -47
  212. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +40 -36
  214. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-pager.mjs +8 -8
  216. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-pagination.mjs +25 -15
  218. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  220. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +31 -23
  222. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-preview.mjs +58 -53
  224. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-progress.mjs +75 -76
  226. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-pulse.mjs +5 -5
  228. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-push.mjs +50 -57
  230. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +7 -8
  232. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-radio.mjs +35 -41
  234. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-range.mjs +42 -86
  236. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-rating.mjs +17 -21
  238. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +12 -8
  240. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-segmented.mjs +9 -10
  242. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-select.mjs +46 -51
  244. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-slider.mjs +72 -74
  246. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-slides.mjs +14 -22
  248. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  250. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-stepper.mjs +12 -12
  252. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-switch.mjs +19 -65
  254. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-tabs.mjs +32 -40
  256. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-textarea.mjs +18 -28
  258. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-tiles.mjs +15 -16
  260. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-toast.mjs +165 -0
  262. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  263. package/fesm2022/taiga-ui-kit-components-tree.mjs +62 -83
  264. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components.mjs +3 -2
  266. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  268. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +10 -13
  270. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +5 -13
  272. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +13 -20
  274. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-directives-connected.mjs +10 -16
  276. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -5
  278. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-directives-fade.mjs +11 -14
  280. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +12 -20
  282. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -6
  284. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -10
  286. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-directives-password.mjs +8 -12
  288. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -5
  290. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  292. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  294. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +27 -38
  296. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +15 -20
  298. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +6 -8
  300. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -5
  302. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  304. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  306. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -4
  308. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -4
  310. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -5
  312. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  314. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  316. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  318. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  319. package/fesm2022/taiga-ui-kit-tokens.mjs +7 -10
  320. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  321. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  322. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  323. package/package.json +30 -246
  324. package/pipes/index.d.ts +0 -1
  325. package/styles/components/avatar.less +188 -0
  326. package/styles/components/badge.less +4 -18
  327. package/styles/components/block.less +1 -1
  328. package/styles/components/checkbox.less +17 -16
  329. package/styles/components/chip.less +13 -4
  330. package/styles/components/like.less +15 -17
  331. package/styles/components/pin.less +3 -7
  332. package/styles/components/radio.less +2 -2
  333. package/styles/components/switch.less +12 -12
  334. package/styles/components/toast.less +44 -0
  335. package/tokens/i18n.d.ts +25 -26
  336. package/tokens/index.d.ts +0 -1
  337. package/tokens/input-date-options.d.ts +1 -1
  338. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  339. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  340. package/components/accordion/accordion-item.component.d.ts +0 -25
  341. package/components/action-bar/action-bar.d.ts +0 -3
  342. package/components/action-bar/action-bar.directive.d.ts +0 -6
  343. package/components/avatar/avatar.component.d.ts +0 -15
  344. package/components/input-password/index.d.ts +0 -2
  345. package/components/input-password/input-password.component.d.ts +0 -16
  346. package/components/input-password/input-password.options.d.ts +0 -24
  347. package/components/pdf-viewer/index.d.ts +0 -4
  348. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  349. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  350. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  351. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  352. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  353. package/directives/icon-badge/index.d.ts +0 -1
  354. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  355. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  356. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  357. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  358. package/esm2022/components/accordion/accordion.mjs +0 -11
  359. package/esm2022/components/accordion/index.mjs +0 -6
  360. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  361. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  362. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  363. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  364. package/esm2022/components/action-bar/index.mjs +0 -4
  365. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  366. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  367. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  368. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  369. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  370. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  371. package/esm2022/components/avatar/index.mjs +0 -6
  372. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  373. package/esm2022/components/badge/badge.directive.mjs +0 -42
  374. package/esm2022/components/badge/badge.options.mjs +0 -13
  375. package/esm2022/components/badge/index.mjs +0 -3
  376. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  377. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  378. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  379. package/esm2022/components/badge-notification/index.mjs +0 -3
  380. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  381. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  382. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  383. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  384. package/esm2022/components/badged-content/index.mjs +0 -4
  385. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  386. package/esm2022/components/block/block.directive.mjs +0 -58
  387. package/esm2022/components/block/block.options.mjs +0 -13
  388. package/esm2022/components/block/index.mjs +0 -3
  389. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  390. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  391. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  392. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  393. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  394. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  395. package/esm2022/components/button-loading/index.mjs +0 -2
  396. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  397. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  398. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  399. package/esm2022/components/calendar-month/index.mjs +0 -3
  400. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  401. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  402. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  403. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  404. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  405. package/esm2022/components/calendar-range/index.mjs +0 -5
  406. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  407. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  408. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  409. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  410. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  411. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  412. package/esm2022/components/carousel/carousel.mjs +0 -15
  413. package/esm2022/components/carousel/index.mjs +0 -7
  414. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  415. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  416. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  417. package/esm2022/components/checkbox/index.mjs +0 -3
  418. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  419. package/esm2022/components/chip/chip.directive.mjs +0 -63
  420. package/esm2022/components/chip/chip.options.mjs +0 -13
  421. package/esm2022/components/chip/index.mjs +0 -3
  422. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  423. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  424. package/esm2022/components/combo-box/index.mjs +0 -2
  425. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  426. package/esm2022/components/comment/comment.directive.mjs +0 -35
  427. package/esm2022/components/comment/index.mjs +0 -2
  428. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  429. package/esm2022/components/compass/compass.component.mjs +0 -19
  430. package/esm2022/components/compass/index.mjs +0 -2
  431. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  432. package/esm2022/components/confirm/confirm.component.mjs +0 -28
  433. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  434. package/esm2022/components/confirm/index.mjs +0 -3
  435. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  436. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  437. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  438. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  439. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  440. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  441. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  442. package/esm2022/components/drawer/index.mjs +0 -2
  443. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  444. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  445. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  446. package/esm2022/components/elastic-container/index.mjs +0 -3
  447. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  448. package/esm2022/components/files/file/file.component.mjs +0 -144
  449. package/esm2022/components/files/file/file.options.mjs +0 -16
  450. package/esm2022/components/files/files/files.component.mjs +0 -56
  451. package/esm2022/components/files/files.mjs +0 -15
  452. package/esm2022/components/files/files.types.mjs +0 -2
  453. package/esm2022/components/files/files.utils.mjs +0 -30
  454. package/esm2022/components/files/files.validators.mjs +0 -32
  455. package/esm2022/components/files/index.mjs +0 -13
  456. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  457. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  458. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  459. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  460. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  461. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  462. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  463. package/esm2022/components/filter/filter.component.mjs +0 -65
  464. package/esm2022/components/filter/index.mjs +0 -2
  465. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  466. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  467. package/esm2022/components/floating-container/index.mjs +0 -2
  468. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  469. package/esm2022/components/index.mjs +0 -73
  470. package/esm2022/components/input-chip/index.mjs +0 -5
  471. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  472. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  473. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  474. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  475. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  476. package/esm2022/components/input-color/index.mjs +0 -3
  477. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  478. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  479. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  480. package/esm2022/components/input-date/date-filler.mjs +0 -20
  481. package/esm2022/components/input-date/index.mjs +0 -6
  482. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  483. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  484. package/esm2022/components/input-date/input-date.mjs +0 -9
  485. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  486. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  487. package/esm2022/components/input-date-multi/index.mjs +0 -3
  488. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  489. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  490. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  491. package/esm2022/components/input-date-range/index.mjs +0 -4
  492. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  493. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  494. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  495. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  496. package/esm2022/components/input-date-time/index.mjs +0 -5
  497. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  498. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  499. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  500. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  501. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  502. package/esm2022/components/input-inline/index.mjs +0 -2
  503. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  504. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  505. package/esm2022/components/input-month/index.mjs +0 -5
  506. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  507. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  508. package/esm2022/components/input-month/input-month.mjs +0 -9
  509. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  510. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  511. package/esm2022/components/input-month-range/index.mjs +0 -4
  512. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  513. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  514. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  515. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  516. package/esm2022/components/input-number/index.mjs +0 -6
  517. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  518. package/esm2022/components/input-number/input-number.mjs +0 -9
  519. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  520. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  521. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  522. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  523. package/esm2022/components/input-password/index.mjs +0 -3
  524. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  525. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  526. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  527. package/esm2022/components/input-phone/index.mjs +0 -3
  528. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  529. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  530. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  531. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  532. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  533. package/esm2022/components/input-phone-international/index.mjs +0 -3
  534. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  535. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  536. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  537. package/esm2022/components/input-pin/index.mjs +0 -2
  538. package/esm2022/components/input-pin/input-pin.component.mjs +0 -66
  539. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  540. package/esm2022/components/input-range/index.mjs +0 -3
  541. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  542. package/esm2022/components/input-range/input-range.mjs +0 -4
  543. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  544. package/esm2022/components/input-slider/index.mjs +0 -3
  545. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  546. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  547. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  548. package/esm2022/components/input-time/index.mjs +0 -5
  549. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  550. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  551. package/esm2022/components/input-time/input-time.mjs +0 -4
  552. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  553. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  554. package/esm2022/components/input-year/index.mjs +0 -4
  555. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  556. package/esm2022/components/input-year/input-year.mjs +0 -4
  557. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  558. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  559. package/esm2022/components/items-with-more/index.mjs +0 -6
  560. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  561. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  562. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  563. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  564. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  565. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  566. package/esm2022/components/like/index.mjs +0 -3
  567. package/esm2022/components/like/like.component.mjs +0 -46
  568. package/esm2022/components/like/like.options.mjs +0 -10
  569. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  570. package/esm2022/components/line-clamp/index.mjs +0 -4
  571. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  572. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  573. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  574. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  575. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  576. package/esm2022/components/message/index.mjs +0 -2
  577. package/esm2022/components/message/message.directive.mjs +0 -43
  578. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  579. package/esm2022/components/multi-select/index.mjs +0 -6
  580. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  581. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  582. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  583. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  584. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  585. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  586. package/esm2022/components/notification-middle/index.mjs +0 -4
  587. package/esm2022/components/notification-middle/notification-middle.component.mjs +0 -57
  588. package/esm2022/components/notification-middle/notification-middle.directive.mjs +0 -21
  589. package/esm2022/components/notification-middle/notification-middle.service.mjs +0 -22
  590. package/esm2022/components/notification-middle/taiga-ui-kit-components-notification-middle.mjs +0 -5
  591. package/esm2022/components/pager/index.mjs +0 -2
  592. package/esm2022/components/pager/pager.component.mjs +0 -97
  593. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  594. package/esm2022/components/pagination/index.mjs +0 -2
  595. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  596. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  597. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  598. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  599. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  600. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  601. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  602. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  603. package/esm2022/components/pin/index.mjs +0 -2
  604. package/esm2022/components/pin/pin.directive.mjs +0 -35
  605. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  606. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  607. package/esm2022/components/preview/dialog/index.mjs +0 -4
  608. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  609. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  610. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  611. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  612. package/esm2022/components/preview/index.mjs +0 -8
  613. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  614. package/esm2022/components/preview/preview.component.mjs +0 -142
  615. package/esm2022/components/preview/preview.mjs +0 -13
  616. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  617. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  618. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  619. package/esm2022/components/progress/index.mjs +0 -9
  620. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  621. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  622. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  623. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  624. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  625. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  626. package/esm2022/components/progress/progress.mjs +0 -15
  627. package/esm2022/components/progress/progress.options.mjs +0 -13
  628. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  629. package/esm2022/components/pulse/index.mjs +0 -2
  630. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  631. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  632. package/esm2022/components/push/index.mjs +0 -7
  633. package/esm2022/components/push/push-alert.component.mjs +0 -29
  634. package/esm2022/components/push/push.component.mjs +0 -39
  635. package/esm2022/components/push/push.directive.mjs +0 -33
  636. package/esm2022/components/push/push.mjs +0 -5
  637. package/esm2022/components/push/push.options.mjs +0 -21
  638. package/esm2022/components/push/push.service.mjs +0 -19
  639. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  640. package/esm2022/components/radio/index.mjs +0 -5
  641. package/esm2022/components/radio/radio.component.mjs +0 -53
  642. package/esm2022/components/radio/radio.directive.mjs +0 -32
  643. package/esm2022/components/radio/radio.mjs +0 -4
  644. package/esm2022/components/radio/radio.options.mjs +0 -13
  645. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  646. package/esm2022/components/radio-list/index.mjs +0 -2
  647. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  648. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  649. package/esm2022/components/range/index.mjs +0 -3
  650. package/esm2022/components/range/range-change.directive.mjs +0 -78
  651. package/esm2022/components/range/range.component.mjs +0 -164
  652. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  653. package/esm2022/components/rating/index.mjs +0 -3
  654. package/esm2022/components/rating/rating.component.mjs +0 -64
  655. package/esm2022/components/rating/rating.options.mjs +0 -13
  656. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  657. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  658. package/esm2022/components/routable-dialog/index.mjs +0 -3
  659. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  660. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  661. package/esm2022/components/segmented/index.mjs +0 -3
  662. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  663. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  664. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  665. package/esm2022/components/select/index.mjs +0 -5
  666. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  667. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  668. package/esm2022/components/select/select.directive.mjs +0 -56
  669. package/esm2022/components/select/select.mjs +0 -4
  670. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  671. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  672. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  673. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  674. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  675. package/esm2022/components/slider/index.mjs +0 -8
  676. package/esm2022/components/slider/slider.component.mjs +0 -124
  677. package/esm2022/components/slider/slider.mjs +0 -12
  678. package/esm2022/components/slider/slider.options.mjs +0 -16
  679. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  680. package/esm2022/components/slides/index.mjs +0 -2
  681. package/esm2022/components/slides/slides.directive.mjs +0 -51
  682. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  683. package/esm2022/components/status/index.mjs +0 -2
  684. package/esm2022/components/status/status.directive.mjs +0 -35
  685. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  686. package/esm2022/components/stepper/index.mjs +0 -4
  687. package/esm2022/components/stepper/step.component.mjs +0 -58
  688. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  689. package/esm2022/components/stepper/stepper.mjs +0 -4
  690. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  691. package/esm2022/components/switch/index.mjs +0 -3
  692. package/esm2022/components/switch/switch.component.mjs +0 -63
  693. package/esm2022/components/switch/switch.options.mjs +0 -15
  694. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  695. package/esm2022/components/tabs/index.mjs +0 -9
  696. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  697. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  698. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  699. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -213
  700. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  701. package/esm2022/components/tabs/tabs.mjs +0 -15
  702. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  703. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  704. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  705. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  706. package/esm2022/components/textarea/index.mjs +0 -4
  707. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  708. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -93
  709. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  710. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  711. package/esm2022/components/tiles/index.mjs +0 -7
  712. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  713. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  714. package/esm2022/components/tiles/tile.component.mjs +0 -69
  715. package/esm2022/components/tiles/tile.service.mjs +0 -90
  716. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  717. package/esm2022/components/tiles/tiles.mjs +0 -5
  718. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  719. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  720. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  721. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  722. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  723. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  724. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  725. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  726. package/esm2022/components/tree/index.mjs +0 -12
  727. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  728. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  729. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  730. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  731. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  732. package/esm2022/components/tree/tree.mjs +0 -17
  733. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  734. package/esm2022/directives/button-close/index.mjs +0 -2
  735. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  736. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  737. package/esm2022/directives/button-group/index.mjs +0 -2
  738. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  739. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  740. package/esm2022/directives/button-select/index.mjs +0 -2
  741. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  742. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  743. package/esm2022/directives/chevron/index.mjs +0 -2
  744. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  745. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  746. package/esm2022/directives/connected/index.mjs +0 -2
  747. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  748. package/esm2022/directives/copy/copy.component.mjs +0 -48
  749. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  750. package/esm2022/directives/copy/copy.mjs +0 -4
  751. package/esm2022/directives/copy/copy.options.mjs +0 -3
  752. package/esm2022/directives/copy/index.mjs +0 -6
  753. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  754. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  755. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  756. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  757. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  758. package/esm2022/directives/fade/index.mjs +0 -2
  759. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  760. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  761. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  762. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  763. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  764. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  765. package/esm2022/directives/highlight/index.mjs +0 -2
  766. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  767. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  768. package/esm2022/directives/icon-badge/index.mjs +0 -2
  769. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  770. package/esm2022/directives/index.mjs +0 -21
  771. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  772. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  773. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  774. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  775. package/esm2022/directives/password/index.mjs +0 -3
  776. package/esm2022/directives/password/password.directive.mjs +0 -67
  777. package/esm2022/directives/password/password.options.mjs +0 -8
  778. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  779. package/esm2022/directives/present/index.mjs +0 -2
  780. package/esm2022/directives/present/present.directive.mjs +0 -33
  781. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  782. package/esm2022/directives/sensitive/index.mjs +0 -2
  783. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  784. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  785. package/esm2022/directives/shimmer/index.mjs +0 -2
  786. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  787. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  788. package/esm2022/directives/skeleton/index.mjs +0 -2
  789. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  790. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  791. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  792. package/esm2022/directives/tooltip/index.mjs +0 -3
  793. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  794. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  795. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  796. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  797. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  798. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  799. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  800. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  801. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  802. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  803. package/esm2022/index.mjs +0 -6
  804. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  805. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  806. package/esm2022/pipes/emails/index.mjs +0 -3
  807. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  808. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  809. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  810. package/esm2022/pipes/field-error/index.mjs +0 -3
  811. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  812. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  813. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  814. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  815. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  816. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  817. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  818. package/esm2022/pipes/index.mjs +0 -8
  819. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  820. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  821. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  822. package/esm2022/pipes/stringify/index.mjs +0 -2
  823. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  824. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  825. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  826. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  827. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  828. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  829. package/esm2022/taiga-ui-kit.mjs +0 -5
  830. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  831. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  832. package/esm2022/tokens/i18n.mjs +0 -75
  833. package/esm2022/tokens/index.mjs +0 -10
  834. package/esm2022/tokens/input-date-options.mjs +0 -13
  835. package/esm2022/tokens/items-handlers.mjs +0 -27
  836. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  837. package/esm2022/tokens/month-formatter.mjs +0 -12
  838. package/esm2022/tokens/preview-icons.mjs +0 -17
  839. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  840. package/esm2022/tokens/validation-errors.mjs +0 -6
  841. package/esm2022/utils/create-time-periods.mjs +0 -12
  842. package/esm2022/utils/index.mjs +0 -7
  843. package/esm2022/utils/inject-value.mjs +0 -11
  844. package/esm2022/utils/is-flat.mjs +0 -4
  845. package/esm2022/utils/maskito.binding.mjs +0 -6
  846. package/esm2022/utils/phone.mjs +0 -6
  847. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  848. package/esm2022/utils/toggle-day.mjs +0 -6
  849. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -96
  850. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  851. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  852. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  853. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -120
  854. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  855. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  856. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  857. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  858. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  859. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  860. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  861. package/pipes/field-error/index.d.ts +0 -2
  862. package/tokens/validation-errors.d.ts +0 -5
  863. /package/{directives → components}/copy/copy.d.ts +0 -0
  864. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-connected.mjs","sources":["../../../projects/kit/directives/connected/connected.directive.ts","../../../projects/kit/directives/connected/taiga-ui-kit-directives-connected.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./connected.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-connected-styles',\n },\n})\nclass TuiConnectedStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiConnected]',\n host: {\n tuiConnected: '',\n },\n})\nexport class TuiConnected {\n protected readonly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AAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAPxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,EAAE;AACnB,qBAAA;AACJ,iBAAA,CAAA;;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-connected.mjs","sources":["../../../projects/kit/directives/connected/connected.directive.ts","../../../projects/kit/directives/connected/taiga-ui-kit-directives-connected.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n template: '',\n styleUrl: './connected.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-connected'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiConnected]',\n})\nexport class TuiConnected {\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAQA,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,mHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,67DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,KAAK,EAAE,eAAe,EAAC,EAAA,MAAA,EAAA,CAAA,67DAAA,CAAA,EAAA;;MAOrB,YAAY,CAAA;AAHzB,IAAA,WAAA,GAAA;AAIuB,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC;AACrD;+GAFY,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;AAC7B,iBAAA;;;ACnBD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, DestroyRef, ElementRef, Directive, ContentChildren } from '@angular/core';
3
+ import { inject, DestroyRef, ElementRef, ContentChildren, Directive } from '@angular/core';
4
4
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
6
6
  import { tuiTypedFromEvent, tuiQueryListChanges, tuiPreventDefault } from '@taiga-ui/cdk/observables';
@@ -74,8 +74,8 @@ class TuiDataListDropdownManager {
74
74
  });
75
75
  item?.focus();
76
76
  }
77
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDataListDropdownManager, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
78
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDataListDropdownManager, isStandalone: true, selector: "tui-data-list[tuiDataListDropdownManager]", queries: [{ propertyName: "dropdowns", predicate: TuiDropdownDirective, descendants: true }, { propertyName: "els", predicate: TuiDropdownDirective, descendants: true, read: ElementRef }], ngImport: i0 }); }
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDataListDropdownManager, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
78
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDataListDropdownManager, isStandalone: true, selector: "tui-data-list[tuiDataListDropdownManager]", queries: [{ propertyName: "dropdowns", predicate: TuiDropdownDirective, descendants: true }, { propertyName: "els", predicate: TuiDropdownDirective, descendants: true, read: ElementRef }], ngImport: i0 }); }
79
79
  }
80
80
  __decorate([
81
81
  tuiPure
@@ -89,10 +89,9 @@ __decorate([
89
89
  __decorate([
90
90
  tuiPure
91
91
  ], TuiDataListDropdownManager.prototype, "debounce$", null);
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDataListDropdownManager, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDataListDropdownManager, decorators: [{
93
93
  type: Directive,
94
94
  args: [{
95
- standalone: true,
96
95
  selector: 'tui-data-list[tuiDataListDropdownManager]',
97
96
  }]
98
97
  }], propDecorators: { dropdowns: [{
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-data-list-dropdown-manager.mjs","sources":["../../../projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts","../../../projects/kit/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.ts"],"sourcesContent":["import {\n type AfterViewInit,\n ContentChildren,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n type QueryList,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {\n tuiPreventDefault,\n tuiQueryListChanges,\n tuiTypedFromEvent,\n} from '@taiga-ui/cdk/observables';\nimport {tuiGetClosestFocusable} from '@taiga-ui/cdk/utils/focus';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown';\nimport {\n debounceTime,\n EMPTY,\n filter,\n map,\n merge,\n type Observable,\n shareReplay,\n switchMap,\n take,\n tap,\n} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: 'tui-data-list[tuiDataListDropdownManager]',\n})\nexport class TuiDataListDropdownManager implements AfterViewInit {\n @ContentChildren(TuiDropdownDirective, {descendants: true})\n private readonly dropdowns: QueryList<TuiDropdownDirective> = EMPTY_QUERY;\n\n @ContentChildren(TuiDropdownDirective, {read: ElementRef, descendants: true})\n private readonly els: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n private readonly destroyRef = inject(DestroyRef);\n\n public ngAfterViewInit(): void {\n this.right$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((index) => {\n this.tryToFocus(index);\n });\n\n merge(this.immediate$, this.debounce$)\n .pipe(\n switchMap((active) => {\n this.dropdowns.forEach((dropdown, index) => {\n dropdown.toggle(index === active);\n });\n\n const element = this.els.get(active);\n const dropdown = this.dropdowns.get(active);\n const ref = dropdown?.ref();\n\n if (!element || !dropdown || !ref) {\n return EMPTY;\n }\n\n const {nativeElement} = ref.location;\n const mouseEnter$ = tuiTypedFromEvent(\n nativeElement,\n 'mouseenter',\n ).pipe(take(1));\n const esc$ = merge(\n tuiTypedFromEvent(element.nativeElement, 'keydown'),\n tuiTypedFromEvent(nativeElement, 'keydown'),\n ).pipe(filter(({key}) => key === 'Escape'));\n\n return merge(mouseEnter$, esc$).pipe(\n tap((event) => {\n if (dropdown.ref()) {\n event.stopPropagation();\n }\n\n element.nativeElement.focus();\n dropdown.toggle('offsetX' in event);\n }),\n );\n }),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe();\n }\n\n @tuiPure\n private get elements$(): Observable<readonly HTMLElement[]> {\n return tuiQueryListChanges(this.els).pipe(\n map((array) => array.map(({nativeElement}) => nativeElement)),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n }\n\n @tuiPure\n private get right$(): Observable<number> {\n return this.elements$.pipe(\n switchMap((elements) =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'keydown').pipe(\n filter(({key}) => key === 'ArrowRight'),\n tuiPreventDefault(),\n map(() => index),\n ),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get immediate$(): Observable<number> {\n return this.elements$.pipe(\n switchMap((elements) =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'click').pipe(map(() => index)),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get debounce$(): Observable<number> {\n return this.elements$.pipe(\n switchMap((elements) =>\n merge(\n ...elements.map((element, index) =>\n merge(\n tuiTypedFromEvent(element, 'focus'),\n tuiTypedFromEvent(element, 'blur'),\n ).pipe(\n filter(({relatedTarget}) =>\n this.notInDropdown(relatedTarget, index),\n ),\n map(({type}) => (type === 'focus' ? index : NaN)),\n ),\n ),\n ),\n ),\n debounceTime(300),\n );\n }\n\n private notInDropdown(element: EventTarget | null, index: number): boolean {\n return !this.dropdowns\n .get(index)\n ?.ref()\n ?.location.nativeElement.contains(element);\n }\n\n private tryToFocus(index: number): void {\n const content = this.dropdowns.get(index)?.ref()?.location.nativeElement;\n\n if (!content) {\n return;\n }\n\n // First item is focus trap\n const focusTrap = tuiGetClosestFocusable({initial: content, root: content});\n const item = tuiGetClosestFocusable({\n initial: focusTrap || content,\n root: content,\n });\n\n item?.focus();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAgCA,MAIa,0BAA0B,CAAA;AAJvC,IAAA,WAAA,GAAA;QAMqB,IAAS,CAAA,SAAA,GAAoC,WAAW,CAAC;QAGzD,IAAG,CAAA,GAAA,GAAuC,WAAW,CAAC;AAEtD,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAmIpD,KAAA;IAjIU,eAAe,GAAA;AAClB,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;AACtE,YAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAC3B,SAAC,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC;AACjC,aAAA,IAAI,CACD,SAAS,CAAC,CAAC,MAAM,KAAI;YACjB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,KAAI;AACvC,gBAAA,QAAQ,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;AACtC,aAAC,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACrC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC5C,YAAA,MAAM,GAAG,GAAG,QAAQ,EAAE,GAAG,EAAE,CAAC;YAE5B,IAAI,CAAC,OAAO,IAAI,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;AAC/B,gBAAA,OAAO,KAAK,CAAC;AAChB,aAAA;AAED,YAAA,MAAM,EAAC,aAAa,EAAC,GAAG,GAAG,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AAA,EAAA,0BAAA,CAAA,SAAA,EAAA,WAAA,EAAA,IAAA,CAAA,CAAA;AAGD,UAAA,CAAA;IADC,OAAO;AAeP,CAAA,EAAA,0BAAA,CAAA,SAAA,EAAA,QAAA,EAAA,IAAA,CAAA,CAAA;AAGD,UAAA,CAAA;IADC,OAAO;AAWP,CAAA,EAAA,0BAAA,CAAA,SAAA,EAAA,YAAA,EAAA,IAAA,CAAA,CAAA;AAGD,UAAA,CAAA;IADC,OAAO;AAoBP,CAAA,EAAA,0BAAA,CAAA,SAAA,EAAA,WAAA,EAAA,IAAA,CAAA,CAAA;4FAjHQ,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,2CAA2C;AACxD,iBAAA,CAAA;8BAGoB,SAAS,EAAA,CAAA;sBADzB,eAAe;AAAC,gBAAA,IAAA,EAAA,CAAA,oBAAoB,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC,CAAA;gBAIzC,GAAG,EAAA,CAAA;sBADnB,eAAe;uBAAC,oBAAoB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAC,CAAA;AAoDhE,aAAA,CAAA,EAAA,SAAS,EAQT,EAAA,EAAA,MAAM,EAiBN,EAAA,EAAA,UAAU,MAaV,SAAS,EAAA,EAAA,EAAA,EAAA,CAAA;;AClIzB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-data-list-dropdown-manager.mjs","sources":["../../../projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts","../../../projects/kit/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.ts"],"sourcesContent":["import {\n type AfterViewInit,\n ContentChildren,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n type QueryList,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {\n tuiPreventDefault,\n tuiQueryListChanges,\n tuiTypedFromEvent,\n} from '@taiga-ui/cdk/observables';\nimport {tuiGetClosestFocusable} from '@taiga-ui/cdk/utils/focus';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown';\nimport {\n debounceTime,\n EMPTY,\n filter,\n map,\n merge,\n type Observable,\n shareReplay,\n switchMap,\n take,\n tap,\n} from 'rxjs';\n\n@Directive({\n selector: 'tui-data-list[tuiDataListDropdownManager]',\n})\nexport class TuiDataListDropdownManager implements AfterViewInit {\n @ContentChildren(TuiDropdownDirective, {descendants: true})\n private readonly dropdowns: QueryList<TuiDropdownDirective> = EMPTY_QUERY;\n\n @ContentChildren(TuiDropdownDirective, {read: ElementRef, descendants: true})\n private readonly els: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n private readonly destroyRef = inject(DestroyRef);\n\n public ngAfterViewInit(): void {\n this.right$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((index) => {\n this.tryToFocus(index);\n });\n\n merge(this.immediate$, this.debounce$)\n .pipe(\n switchMap((active) => {\n this.dropdowns.forEach((dropdown, index) => {\n dropdown.toggle(index === active);\n });\n\n const element = this.els.get(active);\n const dropdown = this.dropdowns.get(active);\n const ref = dropdown?.ref();\n\n if (!element || !dropdown || !ref) {\n return EMPTY;\n }\n\n const {nativeElement} = ref.location;\n const mouseEnter$ = tuiTypedFromEvent(\n nativeElement,\n 'mouseenter',\n ).pipe(take(1));\n const esc$ = merge(\n tuiTypedFromEvent(element.nativeElement, 'keydown'),\n tuiTypedFromEvent(nativeElement, 'keydown'),\n ).pipe(filter(({key}) => key === 'Escape'));\n\n return merge(mouseEnter$, esc$).pipe(\n tap((event) => {\n if (dropdown.ref()) {\n event.stopPropagation();\n }\n\n element.nativeElement.focus();\n dropdown.toggle('offsetX' in event);\n }),\n );\n }),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe();\n }\n\n @tuiPure\n private get elements$(): Observable<readonly HTMLElement[]> {\n return tuiQueryListChanges(this.els).pipe(\n map((array) => array.map(({nativeElement}) => nativeElement)),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n }\n\n @tuiPure\n private get right$(): Observable<number> {\n return this.elements$.pipe(\n switchMap((elements) =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'keydown').pipe(\n filter(({key}) => key === 'ArrowRight'),\n tuiPreventDefault(),\n map(() => index),\n ),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get immediate$(): Observable<number> {\n return this.elements$.pipe(\n switchMap((elements) =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'click').pipe(map(() => index)),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get debounce$(): Observable<number> {\n return this.elements$.pipe(\n switchMap((elements) =>\n merge(\n ...elements.map((element, index) =>\n merge(\n tuiTypedFromEvent(element, 'focus'),\n tuiTypedFromEvent(element, 'blur'),\n ).pipe(\n filter(({relatedTarget}) =>\n this.notInDropdown(relatedTarget, index),\n ),\n map(({type}) => (type === 'focus' ? index : NaN)),\n ),\n ),\n ),\n ),\n debounceTime(300),\n );\n }\n\n private notInDropdown(element: EventTarget | null, index: number): boolean {\n return !this.dropdowns\n .get(index)\n ?.ref()\n ?.location.nativeElement.contains(element);\n }\n\n private tryToFocus(index: number): void {\n const content = this.dropdowns.get(index)?.ref()?.location.nativeElement;\n\n if (!content) {\n return;\n }\n\n // First item is focus trap\n const focusTrap = tuiGetClosestFocusable({initial: content, root: content});\n const item = tuiGetClosestFocusable({\n initial: focusTrap || content,\n root: content,\n });\n\n item?.focus();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAmCa,0BAA0B,CAAA;AAHvC,IAAA,WAAA,GAAA;QAKqB,IAAS,CAAA,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SAAS,EAAA,CAAA;sBADzB,eAAe;AAAC,gBAAA,IAAA,EAAA,CAAA,oBAAoB,EAAE,EAAC,WAAW,EAAE,IAAI,EAAC;gBAIzC,GAAG,EAAA,CAAA;sBADnB,eAAe;uBAAC,oBAAoB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAC;AAoDhE,aAAA,CAAA,EAAA,SAAS,EAQT,EAAA,EAAA,MAAM,EAiBN,EAAA,EAAA,UAAU,MAaV,SAAS,EAAA,EAAA,EAAA,EAAA,CAAA;;ACjIzB;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, Directive, Input } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Input, Directive } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
5
5
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
@@ -11,25 +11,23 @@ import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
11
11
  import { merge, fromEvent, filter } from 'rxjs';
12
12
 
13
13
  const BUFFER = 1; // buffer for rounding issues
14
- class TuiFadeStyles {
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFadeStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiFadeStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-fade-styles" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
14
+ class Styles {
15
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
16
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-fade" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
17
17
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFadeStyles, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, decorators: [{
19
19
  type: Component,
20
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
21
- class: 'tui-fade-styles',
22
- }, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:-webkit-mask-position;transition-property:mask-position;transition-property:mask-position,-webkit-mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"] }]
20
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-fade' }, styles: ["[tuiFade]{scrollbar-width:none;-ms-overflow-style:none;transition-property:mask-position;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;overflow:auto;text-overflow:unset!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}[tuiFade]::-webkit-scrollbar,[tuiFade]::-webkit-scrollbar-thumb{display:none}[tuiFade]:not([data-orientation=vertical]){overflow-y:hidden;-webkit-mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);mask-image:linear-gradient(to right,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to left,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(#000,#000);-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;-webkit-mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%));mask-size:calc(51% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),calc(50% + var(--t-fade-size) + var(--t-fade-offset)) var(--t-line-height, 100%),100% calc(100% - var(--t-line-height, 100%))}[tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._end{-webkit-mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top;mask-position:left bottom,calc(100% + var(--t-fade-size) + var(--t-fade-offset)) bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start{-webkit-mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top;mask-position:calc(-1 * var(--t-fade-size) - var(--t-fade-offset)) bottom,right bottom,top}[dir=rtl] [tuiFade]:not([data-orientation=vertical])._start._end{-webkit-mask-position:left bottom,right bottom,top;mask-position:left bottom,right bottom,top}[tuiFade][data-orientation=vertical]{overflow-x:hidden;-webkit-mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));mask-image:linear-gradient(to bottom,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset))),linear-gradient(to top,transparent var(--t-fade-offset),#000 calc(var(--t-fade-size) + var(--t-fade-offset)));-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left calc(100% + var(--t-fade-size) + var(--t-fade-offset));-webkit-mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset));mask-size:100% calc(51% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._start{-webkit-mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset));mask-position:left top,left calc(100% + var(--t-fade-size) + var(--t-fade-offset))}[tuiFade][data-orientation=vertical]._end{-webkit-mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom;mask-position:left calc(-1 * var(--t-fade-size) - var(--t-fade-offset)),left bottom}[tuiFade][data-orientation=vertical]._start._end{-webkit-mask-position:left top,left bottom;mask-position:left top,left bottom}\n"] }]
23
21
  }] });
24
22
  class TuiFade {
25
23
  constructor() {
24
+ this.nothing = tuiWithStyles(Styles);
26
25
  // TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh
27
26
  this.lineHeight = null;
28
27
  this.size = '1.5em';
29
28
  this.offset = '0em';
30
29
  this.orientation = 'horizontal';
31
30
  const el = tuiInjectElement();
32
- tuiWithStyles(TuiFadeStyles);
33
31
  merge(inject(ResizeObserverService, { self: true }), inject(MutationObserverService, { self: true }), fromEvent(el, 'scroll'))
34
32
  .pipe(filter(() => !!el.scrollWidth), tuiZonefree(), takeUntilDestroyed())
35
33
  .subscribe(() => {
@@ -44,8 +42,8 @@ class TuiFade {
44
42
  // horizontal multiline fade can kick in early due to hanging elements of fonts so using bigger buffer
45
43
  scrollHeight > clientHeight + 4 * BUFFER;
46
44
  }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFade, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
48
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiFade, isStandalone: true, selector: "[tuiFade]", inputs: { lineHeight: ["tuiFadeHeight", "lineHeight"], size: ["tuiFadeSize", "size"], offset: ["tuiFadeOffset", "offset"], orientation: ["tuiFade", "orientation"] }, host: { properties: { "style.line-height": "lineHeight", "style.--t-line-height": "lineHeight", "style.--t-fade-size": "size", "style.--t-fade-offset": "offset", "attr.data-orientation": "orientation" } }, providers: [
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFade, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
46
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiFade, isStandalone: true, selector: "[tuiFade]", inputs: { lineHeight: ["tuiFadeHeight", "lineHeight"], size: ["tuiFadeSize", "size"], offset: ["tuiFadeOffset", "offset"], orientation: ["tuiFade", "orientation"] }, host: { properties: { "style.line-height": "lineHeight", "style.--t-line-height": "lineHeight", "style.--t-fade-size": "size", "style.--t-fade-offset": "offset", "attr.data-orientation": "orientation" } }, providers: [
49
47
  ResizeObserverService,
50
48
  MutationObserverService,
51
49
  {
@@ -54,10 +52,9 @@ class TuiFade {
54
52
  },
55
53
  ], hostDirectives: [{ directive: i1.TuiTransitioned }], ngImport: i0 }); }
56
54
  }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFade, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFade, decorators: [{
58
56
  type: Directive,
59
57
  args: [{
60
- standalone: true,
61
58
  selector: '[tuiFade]',
62
59
  providers: [
63
60
  ResizeObserverService,
@@ -76,7 +73,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
76
73
  '[attr.data-orientation]': 'orientation',
77
74
  },
78
75
  }]
79
- }], ctorParameters: function () { return []; }, propDecorators: { lineHeight: [{
76
+ }], ctorParameters: () => [], propDecorators: { lineHeight: [{
80
77
  type: Input,
81
78
  args: ['tuiFadeHeight']
82
79
  }], size: [{
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-fade.mjs","sources":["../../../projects/kit/directives/fade/fade.directive.ts","../../../projects/kit/directives/fade/taiga-ui-kit-directives-fade.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {TuiTransitioned} from '@taiga-ui/cdk/directives/transitioned';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiOrientation} from '@taiga-ui/core/types';\nimport {filter, fromEvent, merge} from 'rxjs';\n\nconst BUFFER = 1; // buffer for rounding issues\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./fade.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-fade-styles',\n },\n})\nclass TuiFadeStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiFade]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n hostDirectives: [TuiTransitioned],\n host: {\n '[style.line-height]': 'lineHeight',\n '[style.--t-line-height]': 'lineHeight',\n '[style.--t-fade-size]': 'size',\n '[style.--t-fade-offset]': 'offset',\n '[attr.data-orientation]': 'orientation',\n },\n})\nexport class TuiFade {\n // TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh\n @Input('tuiFadeHeight')\n public lineHeight: string | null = null;\n\n @Input('tuiFadeSize')\n public size = '1.5em';\n\n @Input('tuiFadeOffset')\n public offset = '0em';\n\n @Input('tuiFade')\n public orientation: TuiOrientation | '' = 'horizontal';\n\n constructor() {\n const el = tuiInjectElement();\n\n tuiWithStyles(TuiFadeStyles);\n merge(\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(el, 'scroll'),\n )\n .pipe(\n filter(() => !!el.scrollWidth),\n tuiZonefree(),\n takeUntilDestroyed(),\n )\n .subscribe(() => {\n el.classList.toggle('_end', this.isEnd(el));\n el.classList.toggle(\n '_start',\n !!Math.floor(el.scrollLeft) || !!Math.floor(el.scrollTop),\n );\n });\n }\n\n private isEnd({\n scrollTop,\n scrollLeft,\n scrollHeight,\n scrollWidth,\n clientHeight,\n clientWidth,\n }: HTMLElement): boolean {\n return this.orientation === 'vertical'\n ? Math.round(scrollTop) < scrollHeight - clientHeight - BUFFER\n : Math.ceil(Math.abs(scrollLeft)) < scrollWidth - clientWidth - BUFFER ||\n // horizontal multiline fade can kick in early due to hanging elements of fonts so using bigger buffer\n scrollHeight > clientHeight + 4 * BUFFER;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB,MAUM,aAAa,CAAA;+GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,qHARL,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,y9IAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQV,aAAa,EAAA,UAAA,EAAA,CAAA;kBAVlB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,iB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A,EAAA,CAAA,CAAA,EAAA;;4FAUQ,OAAO,EAAA,UAAA,EAAA,CAAA;kBApBnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,SAAS,EAAE;wBACP,qBAAqB;wBACrB,uBAAuB;AACvB,wBAAA;AACI,4BAAA,OAAO,EAAE,yBAAyB;4BAClC,QAAQ,EAAE,EAAC,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC;AACjD,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,eAAe,CAAC;AACjC,oBAAA,IAAI,EAAE;AACF,wBAAA,qBAAqB,EAAE,YAAY;AACnC,wBAAA,yBAAyB,EAAE,YAAY;AACvC,wBAAA,uBAAuB,EAAE,MAAM;AAC/B,wBAAA,yBAAyB,EAAE,QAAQ;AACnC,wBAAA,yBAAyB,EAAE,aAAa;AAC3C,qBAAA;AACJ,iBAAA,CAAA;0EAIU,UAAU,EAAA,CAAA;sBADhB,KAAK;uBAAC,eAAe,CAAA;gBAIf,IAAI,EAAA,CAAA;sBADV,KAAK;uBAAC,aAAa,CAAA;gBAIb,MAAM,EAAA,CAAA;sBADZ,KAAK;uBAAC,eAAe,CAAA;gBAIf,WAAW,EAAA,CAAA;sBADjB,KAAK;uBAAC,SAAS,CAAA;;;AClEpB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-fade.mjs","sources":["../../../projects/kit/directives/fade/fade.directive.ts","../../../projects/kit/directives/fade/taiga-ui-kit-directives-fade.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {TuiTransitioned} from '@taiga-ui/cdk/directives/transitioned';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiOrientation} from '@taiga-ui/core/types';\nimport {filter, fromEvent, merge} from 'rxjs';\n\nconst BUFFER = 1; // buffer for rounding issues\n\n@Component({\n template: '',\n styleUrl: './fade.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-fade'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiFade]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n hostDirectives: [TuiTransitioned],\n host: {\n '[style.line-height]': 'lineHeight',\n '[style.--t-line-height]': 'lineHeight',\n '[style.--t-fade-size]': 'size',\n '[style.--t-fade-offset]': 'offset',\n '[attr.data-orientation]': 'orientation',\n },\n})\nexport class TuiFade {\n protected readonly nothing = tuiWithStyles(Styles);\n\n // TODO: Remove when lh CSS units are supported: https://caniuse.com/mdn-css_types_length_lh\n @Input('tuiFadeHeight')\n public lineHeight: string | null = null;\n\n @Input('tuiFadeSize')\n public size = '1.5em';\n\n @Input('tuiFadeOffset')\n public offset = '0em';\n\n @Input('tuiFade')\n public orientation: TuiOrientation | '' = 'horizontal';\n\n constructor() {\n const el = tuiInjectElement();\n\n merge(\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(el, 'scroll'),\n )\n .pipe(\n filter(() => !!el.scrollWidth),\n tuiZonefree(),\n takeUntilDestroyed(),\n )\n .subscribe(() => {\n el.classList.toggle('_end', this.isEnd(el));\n el.classList.toggle(\n '_start',\n !!Math.floor(el.scrollLeft) || !!Math.floor(el.scrollTop),\n );\n });\n }\n\n private isEnd({\n scrollTop,\n scrollLeft,\n scrollHeight,\n scrollWidth,\n clientHeight,\n clientWidth,\n }: HTMLElement): boolean {\n return this.orientation === 'vertical'\n ? Math.round(scrollTop) < scrollHeight - clientHeight - BUFFER\n : Math.ceil(Math.abs(scrollLeft)) < scrollWidth - clientWidth - BUFFER ||\n // horizontal multiline fade can kick in early due to hanging elements of fonts so using bigger buffer\n scrollHeight > clientHeight + 4 * BUFFER;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,MAAM,MAAM,GAAG,CAAC,CAAC;AAEjB,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,8GANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,u3IAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,KAAK,EAAE,UAAU,EAAC,EAAA,MAAA,EAAA,CAAA,u3IAAA,CAAA,EAAA;;MAuBhB,OAAO,CAAA;AAgBhB,IAAA,WAAA,GAAA;AAfmB,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC;;QAI3C,IAAU,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C,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC;AACjD,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,eAAe,CAAC;AACjC,oBAAA,IAAI,EAAE;AACF,wBAAA,qBAAqB,EAAE,YAAY;AACnC,wBAAA,yBAAyB,EAAE,YAAY;AACvC,wBAAA,uBAAuB,EAAE,MAAM;AAC/B,wBAAA,yBAAyB,EAAE,QAAQ;AACnC,wBAAA,yBAAyB,EAAE,aAAa;AAC3C,qBAAA;AACJ,iBAAA;wDAMU,UAAU,EAAA,CAAA;sBADhB,KAAK;uBAAC,eAAe;gBAIf,IAAI,EAAA,CAAA;sBADV,KAAK;uBAAC,aAAa;gBAIb,MAAM,EAAA,CAAA;sBADZ,KAAK;uBAAC,eAAe;gBAIf,WAAW,EAAA,CAAA;sBADjB,KAAK;uBAAC,SAAS;;;AChEpB;;AAEG;;;;"}
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, Directive, Input } from '@angular/core';
3
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
2
+ import { InjectionToken, inject, input, Directive } from '@angular/core';
3
+ import { toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
5
5
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
6
6
  import { tuiZonefree } from '@taiga-ui/cdk/observables';
7
7
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
8
- import { Subject, merge, fromEvent } from 'rxjs';
8
+ import { merge, fromEvent } from 'rxjs';
9
9
  import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
10
10
 
11
11
  const TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS = {
@@ -22,15 +22,14 @@ function tuiFluidTypographyOptionsProvider(options) {
22
22
  const STEP = 1 / 16;
23
23
  class TuiFluidTypography {
24
24
  constructor() {
25
- // TODO: refactor to signal inputs after Angular update
26
- this.changes$ = new Subject();
27
25
  this.el = tuiInjectElement();
28
26
  this.options = inject(TUI_FLUID_TYPOGRAPHY_OPTIONS);
29
- this.sub = merge(this.changes$, inject(ResizeObserverService, { self: true }), inject(MutationObserverService, { self: true }), fromEvent(this.el, 'input'))
27
+ this.tuiFluidTypography = input('');
28
+ this.sub = merge(toObservable(this.tuiFluidTypography), inject(ResizeObserverService, { self: true }), inject(MutationObserverService, { self: true }), fromEvent(this.el, 'input'))
30
29
  .pipe(tuiZonefree(), takeUntilDestroyed())
31
30
  .subscribe(() => {
32
- const min = Number(this.tuiFluidTypography[0] || this.options.min);
33
- const max = Number(this.tuiFluidTypography[1] || this.options.max);
31
+ const min = Number(this.tuiFluidTypography()[0] || this.options.min);
32
+ const max = Number(this.tuiFluidTypography()[1] || this.options.max);
34
33
  for (let i = max; i >= min; i -= STEP) {
35
34
  this.el.style.fontSize = `${i}rem`;
36
35
  if (this.el.scrollWidth <= this.el.clientWidth) {
@@ -38,25 +37,20 @@ class TuiFluidTypography {
38
37
  }
39
38
  }
40
39
  });
41
- this.tuiFluidTypography = '';
42
40
  }
43
- ngOnChanges() {
44
- this.changes$.next();
45
- }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFluidTypography, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
47
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiFluidTypography, isStandalone: true, selector: "[tuiFluidTypography]", inputs: { tuiFluidTypography: "tuiFluidTypography" }, host: { attributes: { "tuiFluidTypography": "" } }, providers: [
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFluidTypography, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiFluidTypography, isStandalone: true, selector: "[tuiFluidTypography]", inputs: { tuiFluidTypography: { classPropertyName: "tuiFluidTypography", publicName: "tuiFluidTypography", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiFluidTypography": "" } }, providers: [
48
43
  ResizeObserverService,
49
44
  MutationObserverService,
50
45
  {
51
46
  provide: WA_MUTATION_OBSERVER_INIT,
52
47
  useValue: { characterData: true, subtree: true },
53
48
  },
54
- ], usesOnChanges: true, ngImport: i0 }); }
49
+ ], ngImport: i0 }); }
55
50
  }
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFluidTypography, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFluidTypography, decorators: [{
57
52
  type: Directive,
58
53
  args: [{
59
- standalone: true,
60
54
  selector: '[tuiFluidTypography]',
61
55
  providers: [
62
56
  ResizeObserverService,
@@ -68,9 +62,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
68
62
  ],
69
63
  host: { tuiFluidTypography: '' },
70
64
  }]
71
- }], propDecorators: { tuiFluidTypography: [{
72
- type: Input
73
- }] } });
65
+ }] });
74
66
 
75
67
  /**
76
68
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-fluid-typography.mjs","sources":["../../../projects/kit/directives/fluid-typography/fluid-typography.options.ts","../../../projects/kit/directives/fluid-typography/fluid-typography.directive.ts","../../../projects/kit/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiFluidTypographyOptions {\n readonly min: number;\n readonly max: number;\n}\n\nexport const TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS: TuiFluidTypographyOptions = {\n min: 0.625,\n max: 1.25,\n};\n\nexport const TUI_FLUID_TYPOGRAPHY_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_FLUID_TYPOGRAPHY_OPTIONS' : '',\n {\n factory: () => TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiFluidTypographyOptionsProvider(\n options: Partial<TuiFluidTypographyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_FLUID_TYPOGRAPHY_OPTIONS,\n options,\n TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n );\n}\n","import {Directive, inject, Input, type OnChanges} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {fromEvent, merge, Subject} from 'rxjs';\n\nimport {TUI_FLUID_TYPOGRAPHY_OPTIONS} from './fluid-typography.options';\n\nconst STEP = 1 / 16;\n\n@Directive({\n standalone: true,\n selector: '[tuiFluidTypography]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n host: {tuiFluidTypography: ''},\n})\nexport class TuiFluidTypography implements OnChanges {\n // TODO: refactor to signal inputs after Angular update\n private readonly changes$ = new Subject<void>();\n private readonly el = tuiInjectElement();\n private readonly options = inject(TUI_FLUID_TYPOGRAPHY_OPTIONS);\n\n protected readonly sub = merge(\n this.changes$,\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(this.el, 'input'),\n )\n .pipe(tuiZonefree(), takeUntilDestroyed())\n .subscribe(() => {\n const min = Number(this.tuiFluidTypography[0] || this.options.min);\n const max = Number(this.tuiFluidTypography[1] || this.options.max);\n\n for (let i = max; i >= min; i -= STEP) {\n this.el.style.fontSize = `${i}rem`;\n\n if (this.el.scrollWidth <= this.el.clientWidth) {\n break;\n }\n }\n });\n\n @Input()\n public tuiFluidTypography: readonly [min: number, max: number] | '' = '';\n\n public ngOnChanges(): void {\n this.changes$.next();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQa,MAAA,oCAAoC,GAA8B;AAC3E,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,GAAG,EAAE,IAAI;EACX;AAEW,MAAA,4BAA4B,GAAG,IAAI,cAAc,CAC1D,SAAS,GAAG,8BAA8B,GAAG,EAAE,EAC/C;AACI,IAAA,OAAO,EAAE,MAAM,oCAAoC;AACtD,CAAA,EACH;AAEI,SAAU,iCAAiC,CAC7C,OAA2C,EAAA;IAE3C,OAAO,iBAAiB,CACpB,4BAA4B,EAC5B,OAAO,EACP,oCAAoC,CACvC,CAAC;AACN;;ACfA,MAAM,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;AAEpB,MAaa,kBAAkB,CAAA;AAb/B,IAAA,WAAA,GAAA;;AAeqB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;QAC/B,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;AACxB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAE7C,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAC1B,IAAI,CAAC,QAAQ,EACb,MAAM,CAAC,qBAAqB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,EAC3C,MAAM,CAAC,uBAAuB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,EAC7C,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAC9B;AACI,aAAA,IAAI,CAAC,WAAW,EAAE,EAAE,kBA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P,qBAAqB;YACrB,uBAAuB;AACvB,YAAA;AACI,gBAAA,OAAO,EAAE,yBAAyB;gBAClC,QAAQ,EAAE,EAAC,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC;AACjD,aAAA;AACJ,SAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAGQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAb9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,SAAS,EAAE;wBACP,qBAAqB;wBACrB,uBAAuB;AACvB,wBAAA;AACI,4BAAA,OAAO,EAAE,yBAAyB;4BAClC,QAAQ,EAAE,EAAC,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC;AACjD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE,EAAC,kBAAkB,EAAE,EAAE,EAAC;AACjC,iBAAA,CAAA;8BA4BU,kBAAkB,EAAA,CAAA;sBADxB,KAAK;;;ACtDV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-fluid-typography.mjs","sources":["../../../projects/kit/directives/fluid-typography/fluid-typography.options.ts","../../../projects/kit/directives/fluid-typography/fluid-typography.directive.ts","../../../projects/kit/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiFluidTypographyOptions {\n readonly min: number;\n readonly max: number;\n}\n\nexport const TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS: TuiFluidTypographyOptions = {\n min: 0.625,\n max: 1.25,\n};\n\nexport const TUI_FLUID_TYPOGRAPHY_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_FLUID_TYPOGRAPHY_OPTIONS' : '',\n {\n factory: () => TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiFluidTypographyOptionsProvider(\n options: Partial<TuiFluidTypographyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_FLUID_TYPOGRAPHY_OPTIONS,\n options,\n TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS,\n );\n}\n","import {Directive, inject, input} from '@angular/core';\nimport {takeUntilDestroyed, toObservable} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {fromEvent, merge} from 'rxjs';\n\nimport {TUI_FLUID_TYPOGRAPHY_OPTIONS} from './fluid-typography.options';\n\nconst STEP = 1 / 16;\n\n@Directive({\n selector: '[tuiFluidTypography]',\n providers: [\n ResizeObserverService,\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {characterData: true, subtree: true},\n },\n ],\n host: {tuiFluidTypography: ''},\n})\nexport class TuiFluidTypography {\n private readonly el = tuiInjectElement();\n private readonly options = inject(TUI_FLUID_TYPOGRAPHY_OPTIONS);\n\n public readonly tuiFluidTypography = input<readonly [min: number, max: number] | ''>(\n '',\n );\n\n protected readonly sub = merge(\n toObservable(this.tuiFluidTypography),\n inject(ResizeObserverService, {self: true}),\n inject(MutationObserverService, {self: true}),\n fromEvent(this.el, 'input'),\n )\n .pipe(tuiZonefree(), takeUntilDestroyed())\n .subscribe(() => {\n const min = Number(this.tuiFluidTypography()[0] || this.options.min);\n const max = Number(this.tuiFluidTypography()[1] || this.options.max);\n\n for (let i = max; i >= min; i -= STEP) {\n this.el.style.fontSize = `${i}rem`;\n\n if (this.el.scrollWidth <= this.el.clientWidth) {\n break;\n }\n }\n });\n}\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EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,SAAS,EAAE;wBACP,qBAAqB;wBACrB,uBAAuB;AACvB,wBAAA;AACI,4BAAA,OAAO,EAAE,yBAAyB;4BAClC,QAAQ,EAAE,EAAC,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC;AACjD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE,EAAC,kBAAkB,EAAE,EAAE,EAAC;AACjC,iBAAA;;;AC1BD;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Renderer2, Directive, Input } from '@angular/core';
3
+ import { inject, Renderer2, Input, Directive } from '@angular/core';
4
4
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
6
6
  import { svgNodeFilter } from '@taiga-ui/cdk/constants';
@@ -70,13 +70,12 @@ class TuiHighlight {
70
70
  this.renderer.appendChild(this.el, highlight);
71
71
  return highlight;
72
72
  }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHighlight, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHighlight, isStandalone: true, selector: "[tuiHighlight]", inputs: { tuiHighlight: "tuiHighlight", tuiHighlightColor: "tuiHighlightColor" }, host: { properties: { "style.position": "\"relative\"", "style.zIndex": "0" } }, providers: [ResizeObserverService], usesOnChanges: true, ngImport: i0 }); }
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHighlight, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiHighlight, isStandalone: true, selector: "[tuiHighlight]", inputs: { tuiHighlight: "tuiHighlight", tuiHighlightColor: "tuiHighlightColor" }, host: { properties: { "style.position": "\"relative\"", "style.zIndex": "0" } }, providers: [ResizeObserverService], usesOnChanges: true, ngImport: i0 }); }
75
75
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHighlight, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHighlight, decorators: [{
77
77
  type: Directive,
78
78
  args: [{
79
- standalone: true,
80
79
  selector: '[tuiHighlight]',
81
80
  providers: [ResizeObserverService],
82
81
  host: {
@@ -84,7 +83,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
84
83
  '[style.zIndex]': '0',
85
84
  },
86
85
  }]
87
- }], ctorParameters: function () { return []; }, propDecorators: { tuiHighlight: [{
86
+ }], ctorParameters: () => [], propDecorators: { tuiHighlight: [{
88
87
  type: Input
89
88
  }], tuiHighlightColor: [{
90
89
  type: Input
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-highlight.mjs","sources":["../../../projects/kit/directives/highlight/highlight.directive.ts","../../../projects/kit/directives/highlight/taiga-ui-kit-directives-highlight.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, Input, type OnChanges, Renderer2} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {svgNodeFilter} from '@taiga-ui/cdk/constants';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const [TUI_HIGHLIGHT_OPTIONS, tuiHighlightOptionsProvider] = tuiCreateOptions({\n highlightColor: 'var(--tui-service-selection-background)',\n});\n\n@Directive({\n standalone: true,\n selector: '[tuiHighlight]',\n providers: [ResizeObserverService],\n host: {\n '[style.position]': '\"relative\"',\n '[style.zIndex]': '0',\n },\n})\nexport class TuiHighlight implements OnChanges {\n private readonly el = tuiInjectElement();\n private readonly renderer = inject(Renderer2);\n private readonly doc = inject(DOCUMENT);\n\n private readonly highlight: HTMLElement = this.setUpHighlight();\n private readonly treeWalker = this.doc.createTreeWalker(\n this.el,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n );\n\n @Input()\n public tuiHighlight = '';\n\n @Input()\n public tuiHighlightColor = inject(TUI_HIGHLIGHT_OPTIONS).highlightColor;\n\n constructor() {\n inject(ResizeObserverService, {self: true})\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.updateStyles());\n }\n\n public ngOnChanges(): void {\n this.updateStyles();\n }\n\n protected get match(): boolean {\n return this.indexOf(this.el.textContent) !== -1;\n }\n\n private updateStyles(): void {\n this.highlight.style.display = 'none';\n\n if (!this.match) {\n return;\n }\n\n this.treeWalker.currentNode = this.el;\n\n do {\n const index = this.indexOf(this.treeWalker.currentNode.nodeValue);\n\n if (index === -1) {\n continue;\n }\n\n const range = this.doc.createRange();\n\n range.setStart(this.treeWalker.currentNode, index);\n range.setEnd(this.treeWalker.currentNode, index + this.tuiHighlight.length);\n\n const hostRect = this.el.getBoundingClientRect();\n const {left, top, width, height} = range.getBoundingClientRect();\n const {style} = this.highlight;\n\n style.background = this.tuiHighlightColor;\n style.left = tuiPx(left - hostRect.left);\n style.top = tuiPx(top - hostRect.top);\n style.width = tuiPx(width);\n style.height = tuiPx(height);\n style.display = 'block';\n\n return;\n } while (this.treeWalker.nextNode());\n }\n\n private indexOf(source: string | null): number {\n return !source || !this.tuiHighlight\n ? -1\n : source.toLowerCase().indexOf(this.tuiHighlight.toLowerCase());\n }\n\n private setUpHighlight(): HTMLElement {\n const highlight = this.renderer.createElement('div');\n const {style} = highlight;\n\n style.background = this.tuiHighlightColor;\n style.zIndex = '-1';\n style.position = 'absolute';\n this.renderer.appendChild(this.el, highlight);\n\n return highlight;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MASa,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,GAAG,gBAAgB,CAAC;AACjF,IAAA,cAAc,EAAE,yCAAyC;AAC5D,CAAA,EAAE;AAEH,MASa,YAAY,CAAA;AAkBrB,IAAA,WAAA,GAAA;QAjBiB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;AACxB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAC7B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEvB,QAAA,IAAA,CAAA,SAAS,GAAgB,IAAI,CAAC,cAAc,EAAE,CAAC;AAC/C,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,CACnD,IAAI,CAAC,EAAE,EACP,UAAU,CAAC,SAAS,EACpB,aAAa,CAChB,CAAC;QAGK,IAAY,CAAA,YAAA,GAAG,EAAE,CAAC;AAGlB,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,cAAc,CAAC;QAGpE,MAAM,CAAC,qBAAqB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;aACtC,IAAI,CAAC,kBAAkB,EAAE,CAAC;aAC1B,SAAS,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;KAC7C;IAEM,WAAW,GAAA;QACd,IAAI,CAAC,YAAY,EAAE,CAAC;KACvB;AAED,IAAA,IAAc,KAAK,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;KACnD;IAEO,YAAY,GAAA;QACh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A,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAMzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBATxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,SAAS,EAAE,CAAC,qBAAqB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,gBAAgB,EAAE,GAAG;AACxB,qBAAA;AACJ,iBAAA,CAAA;0EAcU,YAAY,EAAA,CAAA;sBADlB,KAAK;gBAIC,iBAAiB,EAAA,CAAA;sBADvB,KAAK;;;ACrCV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-highlight.mjs","sources":["../../../projects/kit/directives/highlight/highlight.directive.ts","../../../projects/kit/directives/highlight/taiga-ui-kit-directives-highlight.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, Input, type OnChanges, Renderer2} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {svgNodeFilter} from '@taiga-ui/cdk/constants';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport const [TUI_HIGHLIGHT_OPTIONS, tuiHighlightOptionsProvider] = tuiCreateOptions({\n highlightColor: 'var(--tui-service-selection-background)',\n});\n\n@Directive({\n selector: '[tuiHighlight]',\n providers: [ResizeObserverService],\n host: {\n '[style.position]': '\"relative\"',\n '[style.zIndex]': '0',\n },\n})\nexport class TuiHighlight implements OnChanges {\n private readonly el = tuiInjectElement();\n private readonly renderer = inject(Renderer2);\n private readonly doc = inject(DOCUMENT);\n\n private readonly highlight: HTMLElement = this.setUpHighlight();\n private readonly treeWalker = this.doc.createTreeWalker(\n this.el,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n );\n\n @Input()\n public tuiHighlight = '';\n\n @Input()\n public tuiHighlightColor = inject(TUI_HIGHLIGHT_OPTIONS).highlightColor;\n\n constructor() {\n inject(ResizeObserverService, {self: true})\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.updateStyles());\n }\n\n public ngOnChanges(): void {\n this.updateStyles();\n }\n\n protected get match(): boolean {\n return this.indexOf(this.el.textContent) !== -1;\n }\n\n private updateStyles(): void {\n this.highlight.style.display = 'none';\n\n if (!this.match) {\n return;\n }\n\n this.treeWalker.currentNode = this.el;\n\n do {\n const index = this.indexOf(this.treeWalker.currentNode.nodeValue);\n\n if (index === -1) {\n continue;\n }\n\n const range = this.doc.createRange();\n\n range.setStart(this.treeWalker.currentNode, index);\n range.setEnd(this.treeWalker.currentNode, index + this.tuiHighlight.length);\n\n const hostRect = this.el.getBoundingClientRect();\n const {left, top, width, height} = range.getBoundingClientRect();\n const {style} = this.highlight;\n\n style.background = this.tuiHighlightColor;\n style.left = tuiPx(left - hostRect.left);\n style.top = tuiPx(top - hostRect.top);\n style.width = tuiPx(width);\n style.height = tuiPx(height);\n style.display = 'block';\n\n return;\n } while (this.treeWalker.nextNode());\n }\n\n private indexOf(source: string | null): number {\n return !source || !this.tuiHighlight\n ? -1\n : source.toLowerCase().indexOf(this.tuiHighlight.toLowerCase());\n }\n\n private setUpHighlight(): HTMLElement {\n const highlight = this.renderer.createElement('div');\n const {style} = highlight;\n\n style.background = this.tuiHighlightColor;\n style.zIndex = '-1';\n style.position = 'absolute';\n this.renderer.appendChild(this.el, highlight);\n\n return highlight;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MASa,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,GAAG,gBAAgB,CAAC;AACjF,IAAA,cAAc,EAAE,yCAAyC;AA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AAC;AACpD,QAAA,MAAM,EAAC,KAAK,EAAC,GAAG,SAAS;AAEzB,QAAA,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,iBAAiB;AACzC,QAAA,KAAK,CAAC,MAAM,GAAG,IAAI;AACnB,QAAA,KAAK,CAAC,QAAQ,GAAG,UAAU;QAC3B,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC;AAE7C,QAAA,OAAO,SAAS;;+GAnFX,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,YAAA,EAAA,cAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,cAAA,EAAA,cAAA,EAAA,GAAA,EAAA,EAAA,EAAA,SAAA,EANV,CAAC,qBAAqB,CAAC,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAMzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBARxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,SAAS,EAAE,CAAC,qBAAqB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,kBAAkB,EAAE,YAAY;AAChC,wBAAA,gBAAgB,EAAE,GAAG;AACxB,qBAAA;AACJ,iBAAA;wDAcU,YAAY,EAAA,CAAA;sBADlB;gBAIM,iBAAiB,EAAA,CAAA;sBADvB;;;ACpCL;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { isPlatformServer } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Injectable, PLATFORM_ID, signal, Directive, Input } from '@angular/core';
3
+ import { inject, Injectable, PLATFORM_ID, signal, Input, Directive } from '@angular/core';
4
4
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
5
  import { IntersectionObserverService } from '@ng-web-apis/intersection-observer';
6
6
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
@@ -17,12 +17,12 @@ class TuiLazyLoadingService extends Observable {
17
17
  next(src) {
18
18
  this.src$.next(src);
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLazyLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLazyLoadingService }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLazyLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLazyLoadingService }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLazyLoadingService, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLazyLoadingService, decorators: [{
24
24
  type: Injectable
25
- }], ctorParameters: function () { return []; } });
25
+ }], ctorParameters: () => [] });
26
26
 
27
27
  /**
28
28
  * @deprecated: Drop in v5.0
@@ -36,7 +36,6 @@ class TuiImgLazyLoading {
36
36
  this.background = signal(this.isServer ? '' : 'var(--tui-background-neutral-2)');
37
37
  this.animation = signal(this.isServer ? '' : 'tuiSkeletonVibe ease-in-out 1s infinite alternate');
38
38
  this.$ = !this.supported &&
39
- // eslint-disable-next-line @angular-eslint/no-uncalled-signals
40
39
  this.loading$.pipe(takeUntilDestroyed()).subscribe((src) => this.src.set(src));
41
40
  }
42
41
  set srcSetter(src) {
@@ -51,13 +50,12 @@ class TuiImgLazyLoading {
51
50
  this.background.set('');
52
51
  this.animation.set('');
53
52
  }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiImgLazyLoading, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
55
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiImgLazyLoading, isStandalone: true, selector: "img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]", inputs: { srcSetter: ["src", "srcSetter"] }, host: { listeners: { "load": "unset()", "error": "unset()" }, properties: { "style.animation": "animation()", "style.background": "background()", "attr.loading": "supported ? \"lazy\" : null", "attr.src": "src()" } }, providers: [TuiLazyLoadingService, IntersectionObserverService], ngImport: i0 }); }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiImgLazyLoading, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
54
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiImgLazyLoading, isStandalone: true, selector: "img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]", inputs: { srcSetter: ["src", "srcSetter"] }, host: { listeners: { "load": "unset()", "error": "unset()" }, properties: { "style.animation": "animation()", "style.background": "background()", "attr.loading": "supported ? \"lazy\" : null", "attr.src": "src()" } }, providers: [TuiLazyLoadingService, IntersectionObserverService], ngImport: i0 }); }
56
55
  }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiImgLazyLoading, decorators: [{
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiImgLazyLoading, decorators: [{
58
57
  type: Directive,
59
58
  args: [{
60
- standalone: true,
61
59
  selector: 'img[loading="lazy"],img[tuiLoading="lazy"]',
62
60
  providers: [TuiLazyLoadingService, IntersectionObserverService],
63
61
  host: {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-lazy-loading.mjs","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {filter, map, Observable, Subject, switchMap, take} from 'rxjs';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n private readonly intersections$ = inject(IntersectionObserverService);\n private readonly stream$ = this.src$.pipe(\n switchMap((src) =>\n this.intersections$.pipe(\n filter((entry) => !!entry[0]?.isIntersecting),\n map(() => src),\n take(1),\n ),\n ),\n tuiWatch(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n public next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {isPlatformServer} from '@angular/common';\nimport {Directive, inject, Input, PLATFORM_ID, signal} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n/**\n * @deprecated: Drop in v5.0\n */\n@Directive({\n standalone: true,\n selector: 'img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]',\n providers: [TuiLazyLoadingService, IntersectionObserverService],\n host: {\n '[style.animation]': 'animation()',\n '[style.background]': 'background()',\n '[attr.loading]': 'supported ? \"lazy\" : null',\n '[attr.src]': 'src()',\n '(load)': 'unset()',\n '(error)': 'unset()',\n },\n})\nexport class TuiImgLazyLoading {\n private readonly isServer = isPlatformServer(inject(PLATFORM_ID));\n private readonly loading$ = inject(TuiLazyLoadingService);\n protected readonly supported = 'loading' in tuiInjectElement<HTMLImageElement>();\n protected src = signal<SafeResourceUrl | string | null>(null);\n protected background = signal(this.isServer ? '' : 'var(--tui-background-neutral-2)');\n protected animation = signal(\n this.isServer ? '' : 'tuiSkeletonVibe ease-in-out 1s infinite alternate',\n );\n\n protected readonly $ =\n !this.supported &&\n // eslint-disable-next-line @angular-eslint/no-uncalled-signals\n this.loading$.pipe(takeUntilDestroyed()).subscribe((src) => this.src.set(src));\n\n @Input('src')\n public set srcSetter(src: SafeResourceUrl | string) {\n if (this.supported) {\n this.src.set(src);\n } else {\n this.loading$.next(src);\n }\n }\n\n protected unset(): void {\n this.background.set('');\n this.animation.set('');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAMA,MACa,qBAAsB,SAAQ,UAAoC,CAAA;AAc3E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAd7C,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,OAAO,EAA4B,CAAC;AAC/C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;QACrD,IAAO,CAAA,OAAA,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CACrC,SAAS,CAAC,CAAC,GAAG,KACV,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,EAC7C,GAAG,CAAC,MAAM,GAAG,CAAC,EAC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AS,EAAE,CAAC,qBAAqB,EAAE,2BAA2B,CAAC;AAC/D,oBAAA,IAAI,EAAE;AACF,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,oBAAoB,EAAE,cAAc;AACpC,wBAAA,gBAAgB,EAAE,2BAA2B;AAC7C,wBAAA,YAAY,EAAE,OAAO;AACrB,wBAAA,QAAQ,EAAE,SAAS;AACnB,wBAAA,SAAS,EAAE,SAAS;AACvB,qBAAA;AACJ,iBAAA,CAAA;8BAiBc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;;;ACxChB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-lazy-loading.mjs","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {filter, map, Observable, Subject, switchMap, take} from 'rxjs';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n private readonly intersections$ = inject(IntersectionObserverService);\n private readonly stream$ = this.src$.pipe(\n switchMap((src) =>\n this.intersections$.pipe(\n filter((entry) => !!entry[0]?.isIntersecting),\n map(() => src),\n take(1),\n ),\n ),\n tuiWatch(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n public next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {isPlatformServer} from '@angular/common';\nimport {Directive, inject, Input, PLATFORM_ID, signal} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n/**\n * @deprecated: Drop in v5.0\n */\n@Directive({\n selector: 'img[loading=\"lazy\"],img[tuiLoading=\"lazy\"]',\n providers: [TuiLazyLoadingService, IntersectionObserverService],\n host: {\n '[style.animation]': 'animation()',\n '[style.background]': 'background()',\n '[attr.loading]': 'supported ? \"lazy\" : null',\n '[attr.src]': 'src()',\n '(load)': 'unset()',\n '(error)': 'unset()',\n },\n})\nexport class TuiImgLazyLoading {\n private readonly isServer = isPlatformServer(inject(PLATFORM_ID));\n private readonly loading$ = inject(TuiLazyLoadingService);\n protected readonly supported = 'loading' in tuiInjectElement<HTMLImageElement>();\n protected src = signal<SafeResourceUrl | string | null>(null);\n protected background = signal(this.isServer ? '' : 'var(--tui-background-neutral-2)');\n protected animation = signal(\n this.isServer ? '' : 'tuiSkeletonVibe ease-in-out 1s infinite alternate',\n );\n\n protected readonly $ =\n !this.supported &&\n this.loading$.pipe(takeUntilDestroyed()).subscribe((src) => this.src.set(src));\n\n @Input('src')\n public set srcSetter(src: SafeResourceUrl | string) {\n if (this.supported) {\n this.src.set(src);\n } else {\n this.loading$.next(src);\n }\n }\n\n protected unset(): void {\n this.background.set('');\n this.animation.set('');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAOM,MAAO,qBAAsB,SAAQ,UAAoC,CAAA;AAc3E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;AAd5C,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,OAAO,EAA4B;AAC9C,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,2BAA2B,CAAC;QACpD,IAAO,CAAA,OAAA,GAAG,IAAI,CAAC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CAA4C;AACtD,oBAAA,SAAS,EAAE,CAAC,qBAAqB,EAAE,2BAA2B,CAAC;AAC/D,oBAAA,IAAI,EAAE;AACF,wBAAA,mBAAmB,EAAE,aAAa;AAClC,wBAAA,oBAAoB,EAAE,cAAc;AACpC,wBAAA,gBAAgB,EAAE,2BAA2B;AAC7C,wBAAA,YAAY,EAAE,OAAO;AACrB,wBAAA,QAAQ,EAAE,SAAS;AACnB,wBAAA,SAAS,EAAE,SAAS;AACvB,qBAAA;AACJ,iBAAA;8BAgBc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;ACtChB;;AAEG;;;;"}
@@ -1,13 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { inject, signal, computed, Directive } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
4
- import { tuiDirectiveBinding, tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
5
- import { TuiIcon } from '@taiga-ui/core/components/icon';
3
+ import { tuiIsString, tuiDirectiveBinding } from '@taiga-ui/cdk/utils/miscellaneous';
6
4
  import { TuiTextfieldComponent } from '@taiga-ui/core/components/textfield';
7
5
  import * as i1 from '@taiga-ui/core/directives/appearance';
8
6
  import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
9
7
  import * as i2 from '@taiga-ui/core/directives/hint';
10
8
  import { TuiHintDirective } from '@taiga-ui/core/directives/hint';
9
+ import { tuiIconStart } from '@taiga-ui/core/directives/icons';
11
10
  import { TUI_PASSWORD_TEXTS } from '@taiga-ui/kit/tokens';
12
11
  import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
13
12
 
@@ -21,35 +20,32 @@ const [TUI_PASSWORD_OPTIONS, tuiPasswordOptionsProvider] = tuiCreateOptions({
21
20
  class TuiPassword {
22
21
  constructor() {
23
22
  this.options = inject(TUI_PASSWORD_OPTIONS);
24
- this.texts = toSignal(inject(TUI_PASSWORD_TEXTS), {
25
- initialValue: ['', ''],
26
- });
23
+ this.texts = inject(TUI_PASSWORD_TEXTS);
27
24
  this.textfield = inject(TuiTextfieldComponent);
28
25
  this.hidden = signal(true);
29
- this.icon = tuiDirectiveBinding(TuiIcon, 'icon', computed((size = this.textfield.options.size()) => {
26
+ this.icon = tuiIconStart(computed((size = this.textfield.options.size()) => {
30
27
  const icon = this.hidden()
31
28
  ? this.options.icons.show
32
29
  : this.options.icons.hide;
33
30
  return tuiIsString(icon) ? icon : icon(size);
34
31
  }));
35
- this.hint = tuiDirectiveBinding(TuiHintDirective, 'tuiHint', computed(() => (this.hidden() ? this.texts()[0] : this.texts()[1])));
32
+ this.hint = tuiDirectiveBinding(TuiHintDirective, 'content', computed(() => (this.hidden() ? this.texts()[0] : this.texts()[1])));
36
33
  }
37
34
  toggle() {
38
35
  this.hidden.set(!this.hidden());
39
36
  this.textfield.input?.nativeElement.setAttribute('type', this.hidden() ? 'password' : 'text');
40
37
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPassword, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPassword, isStandalone: true, selector: "tui-icon[tuiPassword]", host: { listeners: { "click": "toggle()" }, properties: { "style.border": "textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null" }, styleAttribute: "cursor: pointer" }, providers: [
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPassword, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
39
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPassword, isStandalone: true, selector: "tui-icon[tuiPassword]", host: { listeners: { "click": "toggle()" }, properties: { "style.border": "textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null" }, styleAttribute: "cursor: pointer" }, providers: [
43
40
  {
44
41
  provide: TUI_APPEARANCE_OPTIONS,
45
42
  useValue: { appearance: 'icon' },
46
43
  },
47
44
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiHintDirective, inputs: ["tuiHintAppearance", "tuiHintAppearance", "tuiHintContext", "tuiHintContext"] }], ngImport: i0 }); }
48
45
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPassword, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPassword, decorators: [{
50
47
  type: Directive,
51
48
  args: [{
52
- standalone: true,
53
49
  selector: 'tui-icon[tuiPassword]',
54
50
  providers: [
55
51
  {