@taiga-ui/kit 4.52.0-canary.e10b718 → 4.52.0-canary.e53e79e

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 (418) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  9. package/components/badge/badge.directive.d.ts +2 -2
  10. package/components/badge/badge.options.d.ts +1 -3
  11. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +2 -4
  14. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  15. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/chip/chip.directive.d.ts +2 -4
  18. package/components/chip/chip.options.d.ts +1 -3
  19. package/components/combo-box/combo-box.d.ts +5 -0
  20. package/components/combo-box/combo-box.directive.d.ts +5 -5
  21. package/components/combo-box/index.d.ts +1 -0
  22. package/components/comment/comment.directive.d.ts +2 -2
  23. package/components/confirm/confirm.component.d.ts +5 -3
  24. package/components/confirm/confirm.service.d.ts +3 -2
  25. package/{directives → components}/copy/copy.component.d.ts +2 -2
  26. package/{directives → components}/copy/copy.directive.d.ts +3 -4
  27. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  28. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  29. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  30. package/components/data-list-wrapper/index.d.ts +1 -1
  31. package/components/elastic-container/elastic-container.component.d.ts +1 -1
  32. package/components/files/file/file.options.d.ts +1 -1
  33. package/components/files/files/files.component.d.ts +2 -2
  34. package/components/files/input-files/input-files.options.d.ts +1 -3
  35. package/components/floating-container/floating-container.directive.d.ts +3 -2
  36. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  37. package/components/fullscreen/index.d.ts +1 -0
  38. package/components/index.d.ts +3 -1
  39. package/components/input-chip/input-chip.component.d.ts +9 -8
  40. package/components/input-chip/input-chip.d.ts +5 -1
  41. package/components/input-chip/input-chip.directive.d.ts +7 -12
  42. package/components/input-color/index.d.ts +1 -0
  43. package/components/input-color/input-color.component.d.ts +4 -4
  44. package/components/input-color/input-color.d.ts +5 -0
  45. package/components/input-date/input-date.d.ts +4 -1
  46. package/components/input-date/input-date.directive.d.ts +10 -12
  47. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  48. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  49. package/components/input-date-range/input-date-range.d.ts +4 -1
  50. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  51. package/components/input-date-time/input-date-time.d.ts +4 -1
  52. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  53. package/components/input-month/input-month.d.ts +4 -1
  54. package/components/input-month/input-month.directive.d.ts +5 -4
  55. package/components/input-month-range/input-month-range.d.ts +4 -1
  56. package/components/input-month-range/input-month-range.directive.d.ts +5 -4
  57. package/components/input-number/input-number.d.ts +4 -1
  58. package/components/input-number/input-number.directive.d.ts +7 -11
  59. package/components/input-number/quantum.directive.d.ts +1 -1
  60. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  61. package/components/input-phone/index.d.ts +1 -0
  62. package/components/input-phone/input-phone.d.ts +5 -0
  63. package/components/input-phone/input-phone.directive.d.ts +7 -7
  64. package/components/input-phone-international/index.d.ts +1 -0
  65. package/components/input-phone-international/input-phone-international.component.d.ts +26 -32
  66. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  67. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  68. package/components/input-pin/index.d.ts +1 -0
  69. package/components/input-pin/input-pin.component.d.ts +4 -4
  70. package/components/input-pin/input-pin.d.ts +5 -0
  71. package/components/input-range/input-range.component.d.ts +9 -12
  72. package/components/input-slider/input-slider.d.ts +4 -1
  73. package/components/input-slider/input-slider.directive.d.ts +3 -5
  74. package/components/input-time/input-time.component.d.ts +1 -3
  75. package/components/input-time/input-time.d.ts +4 -1
  76. package/components/input-time/input-time.directive.d.ts +8 -10
  77. package/components/input-year/input-year.d.ts +4 -1
  78. package/components/input-year/input-year.directive.d.ts +5 -5
  79. package/components/like/like.component.d.ts +2 -2
  80. package/components/like/like.options.d.ts +1 -1
  81. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  82. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  83. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  84. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  85. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  86. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  87. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  88. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  89. package/components/pagination/index.d.ts +1 -0
  90. package/components/pagination/pagination.component.d.ts +25 -54
  91. package/components/pagination/pagination.options.d.ts +7 -0
  92. package/components/pin/pin.directive.d.ts +2 -2
  93. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  94. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  95. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  96. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  97. package/components/preview/preview.component.d.ts +1 -1
  98. package/components/preview/preview.d.ts +2 -1
  99. package/components/preview/zoom/preview-zoom.component.d.ts +2 -1
  100. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  101. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  102. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  103. package/components/progress/progress.options.d.ts +1 -3
  104. package/components/push/push-alert.component.d.ts +4 -3
  105. package/components/push/push.component.d.ts +1 -1
  106. package/components/push/push.directive.d.ts +4 -6
  107. package/components/push/push.options.d.ts +5 -8
  108. package/components/push/push.service.d.ts +6 -2
  109. package/components/radio/radio.component.d.ts +1 -1
  110. package/components/radio-list/radio-list.component.d.ts +5 -3
  111. package/components/range/range-change.directive.d.ts +1 -2
  112. package/components/range/range.component.d.ts +16 -24
  113. package/components/rating/rating.component.d.ts +5 -5
  114. package/components/rating/rating.options.d.ts +6 -6
  115. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  116. package/components/segmented/segmented.component.d.ts +4 -6
  117. package/components/segmented/segmented.directive.d.ts +6 -7
  118. package/components/select/native-select/native-select.component.d.ts +7 -8
  119. package/components/select/select.d.ts +4 -1
  120. package/components/select/select.directive.d.ts +4 -3
  121. package/components/slider/helpers/key-steps.d.ts +1 -2
  122. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  123. package/components/slider/slider.options.d.ts +1 -6
  124. package/components/slides/slides.directive.d.ts +4 -4
  125. package/components/status/status.directive.d.ts +2 -2
  126. package/components/stepper/step.component.d.ts +6 -8
  127. package/components/stepper/stepper.component.d.ts +6 -11
  128. package/components/switch/switch.component.d.ts +1 -0
  129. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  130. package/components/tabs/tabs.options.d.ts +1 -6
  131. package/components/textarea/index.d.ts +2 -1
  132. package/components/textarea/textarea.component.d.ts +4 -4
  133. package/components/textarea/textarea.d.ts +6 -0
  134. package/components/textarea/textarea.directive.d.ts +13 -0
  135. package/components/toast/index.d.ts +5 -0
  136. package/components/toast/toast.component.d.ts +18 -0
  137. package/components/toast/toast.d.ts +3 -0
  138. package/components/toast/toast.directive.d.ts +7 -0
  139. package/components/toast/toast.options.d.ts +10 -0
  140. package/components/toast/toast.service.d.ts +17 -0
  141. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  142. package/components/tree/misc/tree.constants.d.ts +0 -3
  143. package/components/tree/misc/tree.tokens.d.ts +1 -6
  144. package/directives/button-close/button-close.directive.d.ts +2 -1
  145. package/directives/button-select/button-select.directive.d.ts +4 -4
  146. package/directives/chevron/chevron.directive.d.ts +2 -3
  147. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  148. package/directives/fade/fade.directive.d.ts +2 -2
  149. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  150. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  151. package/directives/index.d.ts +0 -2
  152. package/directives/password/password.directive.d.ts +1 -1
  153. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  154. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  155. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  156. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  157. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  158. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
  160. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-avatar.mjs +33 -44
  162. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  164. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-badge.mjs +16 -27
  166. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -7
  168. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  170. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +12 -18
  172. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +6 -6
  174. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -17
  176. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -8
  178. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -23
  180. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -6
  182. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-chip.mjs +18 -34
  184. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +42 -32
  186. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  188. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -5
  190. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -17
  192. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-copy.mjs +113 -0
  194. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  195. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -78
  196. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  198. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -12
  200. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-files.mjs +43 -50
  202. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -5
  204. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +16 -19
  206. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  208. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  209. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +69 -74
  210. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-input-color.mjs +24 -14
  212. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +34 -51
  214. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +27 -32
  216. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +32 -29
  218. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-input-date.mjs +44 -47
  220. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
  222. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +24 -18
  224. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-input-month.mjs +27 -21
  226. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-input-number.mjs +60 -77
  228. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +122 -138
  230. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +32 -23
  232. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +20 -11
  234. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-input-range.mjs +33 -29
  236. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +36 -45
  238. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-input-time.mjs +64 -70
  240. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-input-year.mjs +26 -18
  242. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -16
  244. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-like.mjs +6 -6
  246. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -82
  248. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -12
  250. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +37 -48
  252. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +37 -33
  254. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -8
  256. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-pagination.mjs +69 -140
  258. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  260. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-preview.mjs +59 -50
  262. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-progress.mjs +76 -81
  264. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  266. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-push.mjs +49 -57
  268. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  270. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -9
  272. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-range.mjs +41 -85
  274. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  276. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  278. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  280. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-components-select.mjs +82 -62
  282. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-components-slider.mjs +74 -82
  284. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-components-slides.mjs +16 -24
  286. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  288. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-components-stepper.mjs +45 -79
  290. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  292. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-components-tabs.mjs +36 -47
  294. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-components-textarea.mjs +54 -62
  296. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -15
  298. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-components-toast.mjs +164 -0
  300. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  301. package/fesm2022/taiga-ui-kit-components-tree.mjs +59 -63
  302. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-components.mjs +3 -1
  304. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  306. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  308. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  310. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
  312. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  313. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -15
  314. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  315. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  316. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  317. package/fesm2022/taiga-ui-kit-directives-fade.mjs +15 -17
  318. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  319. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  320. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  321. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -4
  322. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  323. package/fesm2022/taiga-ui-kit-directives-password.mjs +12 -14
  324. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  325. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -4
  326. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  327. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  328. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  329. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  330. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  331. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
  332. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  333. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +17 -22
  334. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  335. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +6 -8
  336. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  337. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -5
  338. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  339. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  340. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  342. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  343. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  344. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  345. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  346. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  347. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +31 -0
  348. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  349. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  350. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  351. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  352. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  353. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -5
  354. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  355. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  356. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  357. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  358. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  359. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
  360. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  361. package/fesm2022/taiga-ui-kit-tokens.mjs +7 -25
  362. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  363. package/fesm2022/taiga-ui-kit-utils.mjs +2 -8
  364. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  365. package/package.json +54 -46
  366. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  367. package/pipes/auto-color/index.d.ts +1 -0
  368. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  369. package/pipes/flag/flag.pipe.d.ts +14 -0
  370. package/pipes/flag/index.d.ts +1 -0
  371. package/pipes/index.d.ts +3 -1
  372. package/pipes/initials/index.d.ts +1 -0
  373. package/pipes/initials/initials.pipe.d.ts +7 -0
  374. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  375. package/styles/components/badge.less +1 -0
  376. package/styles/components/checkbox.less +1 -1
  377. package/styles/components/chip.less +12 -1
  378. package/styles/components/pin.less +0 -1
  379. package/styles/components/radio.less +1 -1
  380. package/styles/components/switch.less +1 -1
  381. package/styles/components/toast.less +44 -0
  382. package/tokens/i18n.d.ts +25 -26
  383. package/tokens/index.d.ts +0 -1
  384. package/tokens/items-handlers.d.ts +1 -7
  385. package/tokens/preview-icons.d.ts +1 -3
  386. package/utils/index.d.ts +0 -1
  387. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  388. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  389. package/components/accordion/accordion-item.component.d.ts +0 -25
  390. package/components/action-bar/action-bar.d.ts +0 -3
  391. package/components/action-bar/action-bar.directive.d.ts +0 -6
  392. package/components/pdf-viewer/index.d.ts +0 -4
  393. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  394. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  395. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  396. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  397. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  398. package/directives/lazy-loading/index.d.ts +0 -2
  399. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  400. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  401. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  402. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  403. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  404. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  405. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -119
  406. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  407. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  408. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  409. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  410. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  411. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  412. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  413. package/pipes/field-error/index.d.ts +0 -2
  414. package/tokens/validation-errors.d.ts +0 -5
  415. package/utils/phone.d.ts +0 -3
  416. /package/{directives → components}/copy/copy.d.ts +0 -0
  417. /package/{directives → components}/copy/copy.options.d.ts +0 -0
  418. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-password.mjs","sources":["../../../projects/kit/directives/password/password.options.ts","../../../projects/kit/directives/password/password.directive.ts","../../../projects/kit/directives/password/taiga-ui-kit-directives-password.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiPasswordOptions {\n readonly icons: Readonly<{\n hide: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n show: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n }>;\n}\n\nexport const [TUI_PASSWORD_OPTIONS, tuiPasswordOptionsProvider] =\n tuiCreateOptions<TuiPasswordOptions>({\n icons: {\n hide: '@tui.eye-off',\n show: '@tui.eye',\n },\n });\n","import {computed, Directive, inject, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiDirectiveBinding, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {tuiIconStart} from '@taiga-ui/core/directives/icons';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\n\nimport {TUI_PASSWORD_OPTIONS} from './password.options';\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiPassword]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDirective,\n inputs: ['tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n style: 'cursor: pointer',\n '(click)': 'toggle()',\n '[style.border]':\n 'textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null',\n },\n})\nexport class TuiPassword {\n private readonly options = inject(TUI_PASSWORD_OPTIONS);\n private readonly texts = toSignal(inject(TUI_PASSWORD_TEXTS), {\n initialValue: ['', ''] as const,\n });\n\n protected readonly textfield = inject(TuiTextfieldComponent);\n protected readonly hidden = signal(true);\n protected readonly icon = tuiIconStart(\n computed((size = this.textfield.options.size()) => {\n const icon = this.hidden()\n ? this.options.icons.show\n : this.options.icons.hide;\n\n return tuiIsString(icon) ? icon : icon(size);\n }),\n );\n\n protected readonly hint = tuiDirectiveBinding(\n TuiHintDirective,\n 'tuiHint',\n computed(() => (this.hidden() ? this.texts()[0] : this.texts()[1])),\n );\n\n protected toggle(): void {\n this.hidden.set(!this.hidden());\n this.textfield.input?.nativeElement.setAttribute(\n 'type',\n this.hidden() ? 'password' : 'text',\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAWa,CAAC,oBAAoB,EAAE,0BAA0B,CAAC,GAC3D,gBAAgB,CAAqB;AACjC,IAAA,KAAK,EAAE;AACH,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,IAAI,EAAE,UAAU;AACnB,KAAA;AACJ,CAAA;;MCoBQ,WAAW,CAAA;AAvBxB,IAAA,WAAA,GAAA;AAwBqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACtC,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE;AAC1D,YAAA,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,CAAU;AAClC,SAAA,CAAC;AAEiB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACzC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;AACrB,QAAA,IAAA,CAAA,IAAI,GAAG,YAAY,CAClC,QAAQ,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,KAAI;AAC9C,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM;AACpB,kBAAE,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;kBACnB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI;AAE7B,YAAA,OAAO,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SAC/C,CAAC,CACL;AAEkB,QAAA,IAAA,CAAA,IAAI,GAAG,mBAAmB,CACzC,gBAAgB,EAChB,SAAS,EACT,QAAQ,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE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;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC;AACjC,yBAAA;AACJ,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,iBAAiB;AACjB,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,mBAAmB,EAAE,gBAAgB,CAAC;AAClD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,KAAK,EAAE,iBAAiB;AACxB,wBAAA,SAAS,EAAE,UAAU;AACrB,wBAAA,gBAAgB,EACZ,uEAAuE;AAC9E,qBAAA;AACJ,iBAAA;;;ACpCD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-password.mjs","sources":["../../../projects/kit/directives/password/password.options.ts","../../../projects/kit/directives/password/password.directive.ts","../../../projects/kit/directives/password/taiga-ui-kit-directives-password.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiPasswordOptions {\n readonly icons: Readonly<{\n hide: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n show: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n }>;\n}\n\nexport const [TUI_PASSWORD_OPTIONS, tuiPasswordOptionsProvider] =\n tuiCreateOptions<TuiPasswordOptions>({\n icons: {\n hide: '@tui.eye-off',\n show: '@tui.eye',\n },\n });\n","import {computed, Directive, inject, signal} from '@angular/core';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {tuiIconStart} from '@taiga-ui/core/directives/icons';\nimport {TuiHintDirective} from '@taiga-ui/core/portals/hint';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\n\nimport {TUI_PASSWORD_OPTIONS} from './password.options';\n\n@Directive({\n selector: 'tui-icon[tuiPassword]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDirective,\n inputs: ['tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n style: 'cursor: pointer',\n '(click)': 'toggle()',\n '[style.border]':\n 'textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null',\n },\n})\nexport class TuiPassword {\n private readonly options = inject(TUI_PASSWORD_OPTIONS);\n private readonly texts = inject(TUI_PASSWORD_TEXTS);\n\n protected readonly textfield = inject(TuiTextfieldComponent);\n protected readonly hidden = signal(true);\n protected readonly icon = tuiIconStart(\n computed((size = this.textfield.options.size()) => {\n const icon = this.hidden()\n ? this.options.icons.show\n : this.options.icons.hide;\n\n return tuiIsString(icon) ? icon : icon(size);\n }),\n );\n\n protected readonly hint = tuiDirectiveBinding(\n TuiHintDirective,\n 'content',\n computed(() => (this.hidden() ? this.texts()[0] : this.texts()[1])),\n );\n\n protected toggle(): void {\n this.hidden.set(!this.hidden());\n this.textfield\n .input()\n ?.nativeElement.setAttribute('type', this.hidden() ? 'password' : 'text');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAWa,CAAC,oBAAoB,EAAE,0BAA0B,CAAC,GAC3D,gBAAgB,CAAqB;AACjC,IAAA,KAAK,EAAE;AACH,QAAA,IAAI,EAAE,cAAc;AACpB,QAAA,IAAI,EAAE,UAAU;AACn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oBAAA,IAAI,EAAE;AACF,wBAAA,KAAK,EAAE,iBAAiB;AACxB,wBAAA,SAAS,EAAE,UAAU;AACrB,wBAAA,gBAAgB,EACZ,uEAAuE;AAC9E,qBAAA;AACJ,iBAAA;;;ACnCD;;AAEG;;;;"}
@@ -13,13 +13,12 @@ class TuiPresent {
13
13
  onAnimation(visibility) {
14
14
  this.visibility$.next(visibility);
15
15
  }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPresent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPresent, isStandalone: true, selector: "[tuiPresentChange]", outputs: { tuiPresentChange: "tuiPresentChange" }, host: { listeners: { "animationcancel.self": "onAnimation(false)", "animationstart.self": "onAnimation(true)" }, properties: { "style.animation": "\"tuiPresent 1s infinite\"" } }, ngImport: i0 }); }
16
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiPresent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
17
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiPresent, isStandalone: true, selector: "[tuiPresentChange]", outputs: { tuiPresentChange: "tuiPresentChange" }, host: { listeners: { "animationcancel.self": "onAnimation(false)", "animationstart.self": "onAnimation(true)" }, properties: { "style.animation": "\"tuiPresent 1s infinite\"" } }, ngImport: i0 }); }
18
18
  }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPresent, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiPresent, decorators: [{
20
20
  type: Directive,
21
21
  args: [{
22
- standalone: true,
23
22
  selector: '[tuiPresentChange]',
24
23
  host: {
25
24
  '[style.animation]': '"tuiPresent 1s infinite"',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-present.mjs","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import {Directive, type OnDestroy, Output} from '@angular/core';\nimport {BehaviorSubject, distinctUntilChanged, skip} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n '(animationcancel.self)': 'onAnimation(false)',\n '(animationstart.self)': 'onAnimation(true)',\n },\n})\nexport class TuiPresent implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n public readonly tuiPresentChange = this.visibility$.pipe(\n distinctUntilChanged(),\n skip(1),\n );\n\n public ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n\n protected onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,UAAU,CAAA;AATvB,IAAA,WAAA,GAAA;AAUqB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC;AAGzC,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CACpD,oBAAoB,EAAE,EACtB,IAAI,CAAC,CAAC,CAAC,CACV;AASJ;IAPU,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC;;AAGtB,IAAA,WAAW,CAAC,UAAmB,EAAA;AACrC,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;;+GAd5B,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,mBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,4BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBATtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACF,wBAAA,mBAAmB,EAAE,0BAA0B;AAC/C,wBAAA,wBAAwB,EAAE,oBAAoB;AAC9C,wBAAA,uBAAuB,EAAE,mBAAmB;AAC/C,qBAAA;AACJ,iBAAA;8BAKmB,gBAAgB,EAAA,CAAA;sBAD/B;;;ACfL;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-present.mjs","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/taiga-ui-kit-directives-present.ts"],"sourcesContent":["import {Directive, type OnDestroy, Output} from '@angular/core';\nimport {BehaviorSubject, distinctUntilChanged, skip} from 'rxjs';\n\n@Directive({\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n '(animationcancel.self)': 'onAnimation(false)',\n '(animationstart.self)': 'onAnimation(true)',\n },\n})\nexport class TuiPresent implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n public readonly tuiPresentChange = this.visibility$.pipe(\n distinctUntilChanged(),\n skip(1),\n );\n\n public ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n\n protected onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;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y, ViewEncapsulation, Component, inject, Input, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, input, Directive } from '@angular/core';
3
3
  import { toSignal } from '@angular/core/rxjs-interop';
4
4
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
5
5
  import { tuiZonefull, tuiWatch } from '@taiga-ui/cdk/observables';
@@ -7,44 +7,39 @@ import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
7
7
  import { map } from 'rxjs';
8
8
 
9
9
  const rowsInSvg = 3;
10
- class TuiSensitiveStyles {
11
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSensitiveStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiSensitiveStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-sensitive-styles" }, ngImport: i0, template: '', isInline: true, styles: [".tui-sensitive{position:relative;line-height:1em;clip-path:inset(0 round .25rem)}.tui-sensitive:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";display:block!important;background:currentColor;border-radius:inherit;mask:url('data:image/svg+xml,<svg width=\"360\" height=\"72\" preserveAspectRatio=\"none\" fill=\"black\" xmlns=\"http://www.w3.org/2000/svg\"><rect opacity=\"0.2\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"336\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"120\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"216\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"312\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"144\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"192\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"288\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"240\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.24\" x=\"72\" width=\"24\" height=\"24\"/><rect opacity=\"0.34\" x=\"264\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"168\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"336\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"120\" y=\"0\" width=\"24\" height=\"24\" /><rect opacity=\"0.3\" x=\"216\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"24\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"312\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"144\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"192\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"48\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"288\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.38\" x=\"96\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"240\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"72\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"264\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" x=\"168\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"240\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"72\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"192\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.34\" x=\"216\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"24\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"168\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"264\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.31\" x=\"288\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"312\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.28\" x=\"144\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"336\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"120\" y=\"48\" width=\"24\" height=\"24\"/></svg>') var(--t-offset, 0) 0 / auto var(--t-mask-height);margin:0!important}.tui-sensitive.tui-sensitive{-webkit-text-fill-color:transparent}span.tui-sensitive,a.tui-sensitive{display:inline-block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
+ class Styles {
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-sensitive" }, ngImport: i0, template: '', isInline: true, styles: [".tui-sensitive{position:relative;line-height:1em;clip-path:inset(0 round .25rem)}.tui-sensitive:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";display:block!important;background:currentColor;border-radius:inherit;mask:url('data:image/svg+xml,<svg width=\"360\" height=\"72\" preserveAspectRatio=\"none\" fill=\"black\" xmlns=\"http://www.w3.org/2000/svg\"><rect opacity=\"0.2\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"336\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"120\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"216\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"312\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"144\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"192\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"288\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"240\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.24\" x=\"72\" width=\"24\" height=\"24\"/><rect opacity=\"0.34\" x=\"264\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"168\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"336\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"120\" y=\"0\" width=\"24\" height=\"24\" /><rect opacity=\"0.3\" x=\"216\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"24\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"312\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"144\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"192\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"48\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"288\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.38\" x=\"96\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"240\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"72\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"264\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" x=\"168\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"240\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"72\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"192\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.34\" x=\"216\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"24\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"168\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"264\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.31\" x=\"288\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"312\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.28\" x=\"144\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"336\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"120\" y=\"48\" width=\"24\" height=\"24\"/></svg>') var(--t-offset, 0) 0 / auto var(--t-mask-height);margin:0!important}.tui-sensitive.tui-sensitive{-webkit-text-fill-color:transparent}span.tui-sensitive,a.tui-sensitive{display:inline-block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
13
13
  }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSensitiveStyles, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, decorators: [{
15
15
  type: Component,
16
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
17
- class: 'tui-sensitive-styles',
18
- }, styles: [".tui-sensitive{position:relative;line-height:1em;clip-path:inset(0 round .25rem)}.tui-sensitive:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";display:block!important;background:currentColor;border-radius:inherit;mask:url('data:image/svg+xml,<svg width=\"360\" height=\"72\" preserveAspectRatio=\"none\" fill=\"black\" xmlns=\"http://www.w3.org/2000/svg\"><rect opacity=\"0.2\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"336\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"120\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"216\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"312\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"144\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"192\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"288\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"240\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.24\" x=\"72\" width=\"24\" height=\"24\"/><rect opacity=\"0.34\" x=\"264\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"168\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"336\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"120\" y=\"0\" width=\"24\" height=\"24\" /><rect opacity=\"0.3\" x=\"216\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"24\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"312\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"144\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"192\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"48\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"288\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.38\" x=\"96\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"240\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"72\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"264\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" x=\"168\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"240\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"72\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"192\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.34\" x=\"216\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"24\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"168\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"264\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.31\" x=\"288\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"312\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.28\" x=\"144\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"336\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"120\" y=\"48\" width=\"24\" height=\"24\"/></svg>') var(--t-offset, 0) 0 / auto var(--t-mask-height);margin:0!important}.tui-sensitive.tui-sensitive{-webkit-text-fill-color:transparent}span.tui-sensitive,a.tui-sensitive{display:inline-block}\n"] }]
16
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-sensitive' }, styles: [".tui-sensitive{position:relative;line-height:1em;clip-path:inset(0 round .25rem)}.tui-sensitive:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";display:block!important;background:currentColor;border-radius:inherit;mask:url('data:image/svg+xml,<svg width=\"360\" height=\"72\" preserveAspectRatio=\"none\" fill=\"black\" xmlns=\"http://www.w3.org/2000/svg\"><rect opacity=\"0.2\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"336\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"120\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"216\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"312\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"144\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"192\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"288\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"240\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.24\" x=\"72\" width=\"24\" height=\"24\"/><rect opacity=\"0.34\" x=\"264\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"168\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"336\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"120\" y=\"0\" width=\"24\" height=\"24\" /><rect opacity=\"0.3\" x=\"216\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"24\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"312\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"144\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"192\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"48\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"288\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.38\" x=\"96\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"240\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"72\" y=\"24\" width=\"24\" height=\"24\"/><rect opacity=\"0.2\" x=\"264\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" x=\"168\" y=\"0\" width=\"24\" height=\"24\"/><rect opacity=\"0.35\" x=\"240\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.4\" x=\"72\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"192\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"48\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.34\" x=\"216\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"24\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"168\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.32\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"264\" y=\"48\" width=\"24\" height=\"24\"/> <rect opacity=\"0.31\" x=\"288\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.3\" x=\"96\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.25\" x=\"312\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.28\" x=\"144\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.36\" x=\"336\" y=\"48\" width=\"24\" height=\"24\"/><rect opacity=\"0.21\" x=\"120\" y=\"48\" width=\"24\" height=\"24\"/></svg>') var(--t-offset, 0) 0 / auto var(--t-mask-height);margin:0!important}.tui-sensitive.tui-sensitive{-webkit-text-fill-color:transparent}span.tui-sensitive,a.tui-sensitive{display:inline-block}\n"] }]
19
17
  }] });
20
18
  class TuiSensitive {
21
19
  constructor() {
22
- this.nothing = tuiWithStyles(TuiSensitiveStyles);
20
+ this.nothing = tuiWithStyles(Styles);
23
21
  this.offset = Math.round(Math.random() * 10) * 10;
24
22
  this.height = toSignal(inject(ResizeObserverService, { self: true }).pipe(map((entry) => {
25
23
  const height = entry[0]?.contentRect.height ?? 0;
26
24
  return [Math.max(2, Math.floor(height / 16) + 1), height];
27
25
  }), map(([rows, height]) => height * (rowsInSvg / rows)), tuiZonefull(), tuiWatch()));
28
- this.tuiSensitive = false;
26
+ this.tuiSensitive = input(false);
29
27
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSensitive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
31
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiSensitive, isStandalone: true, selector: "[tuiSensitive]", inputs: { tuiSensitive: "tuiSensitive" }, host: { properties: { "style.--t-offset.px": "offset", "style.--t-mask-height.px": "height()", "class.tui-sensitive": "tuiSensitive" } }, providers: [ResizeObserverService], ngImport: i0 }); }
28
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSensitive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
29
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.16", type: TuiSensitive, isStandalone: true, selector: "[tuiSensitive]", inputs: { tuiSensitive: { classPropertyName: "tuiSensitive", publicName: "tuiSensitive", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--t-offset.px": "offset", "style.--t-mask-height.px": "height()", "class.tui-sensitive": "tuiSensitive()" } }, providers: [ResizeObserverService], ngImport: i0 }); }
32
30
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSensitive, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSensitive, decorators: [{
34
32
  type: Directive,
35
33
  args: [{
36
- standalone: true,
37
34
  selector: '[tuiSensitive]',
38
35
  providers: [ResizeObserverService],
39
36
  host: {
40
37
  '[style.--t-offset.px]': 'offset',
41
38
  '[style.--t-mask-height.px]': 'height()',
42
- '[class.tui-sensitive]': 'tuiSensitive',
39
+ '[class.tui-sensitive]': 'tuiSensitive()',
43
40
  },
44
41
  }]
45
- }], propDecorators: { tuiSensitive: [{
46
- type: Input
47
- }] } });
42
+ }] });
48
43
 
49
44
  /**
50
45
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-sensitive.mjs","sources":["../../../projects/kit/directives/sensitive/sensitive.directive.ts","../../../projects/kit/directives/sensitive/taiga-ui-kit-directives-sensitive.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiWatch, tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map} from 'rxjs';\n\nconst rowsInSvg = 3;\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./sensitive.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-sensitive-styles',\n },\n})\nclass TuiSensitiveStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiSensitive]',\n providers: [ResizeObserverService],\n host: {\n '[style.--t-offset.px]': 'offset',\n '[style.--t-mask-height.px]': 'height()',\n '[class.tui-sensitive]': 'tuiSensitive',\n },\n})\nexport class TuiSensitive {\n protected readonly nothing = tuiWithStyles(TuiSensitiveStyles);\n protected readonly offset = Math.round(Math.random() * 10) * 10;\n\n protected readonly height = toSignal(\n inject(ResizeObserverService, {self: true}).pipe(\n map((entry): [number, number] => {\n const height = entry[0]?.contentRect.height ?? 0;\n\n return [Math.max(2, Math.floor(height / 16) + 1), height];\n }),\n map(([rows, height]) => height * (rowsInSvg / rows)),\n tuiZonefull(),\n tuiWatch(),\n ),\n );\n\n @Input()\n public tuiSensitive: boolean | null = false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAcA,MAAM,SAAS,GAAG,CAAC;AAEnB,MAUM,kBAAkB,CAAA;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,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C7D,SAAC,CAAC,EACF,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,IAAI,SAAS,GAAG,IAAI,CAAC,CAAC,EACpD,WAAW,EAAE,EACb,QAAQ,EAAE,CACb,CACJ;QAGM,IAAY,CAAA,YAAA,GAAmB,KAAK;AAC9C;+GAnBY,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,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,SAAA,EAPV,CAAC,qBAAqB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAOzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBAVxB,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,uBAAuB,EAAE,QAAQ;AACjC,wBAAA,4BAA4B,EAAE,UAAU;AACxC,wBAAA,uBAAuB,EAAE,cAAc;AAC1C,qBAAA;AACJ,iBAAA;8BAmBU,YAAY,EAAA,CAAA;sBADlB;;;ACvDL;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-sensitive.mjs","sources":["../../../projects/kit/directives/sensitive/sensitive.directive.ts","../../../projects/kit/directives/sensitive/taiga-ui-kit-directives-sensitive.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiWatch, tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {map} from 'rxjs';\n\nconst rowsInSvg = 3;\n\n@Component({\n template: '',\n styleUrl: './sensitive.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-sensitive'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiSensitive]',\n providers: [ResizeObserverService],\n host: {\n '[style.--t-offset.px]': 'offset',\n '[style.--t-mask-height.px]': 'height()',\n '[class.tui-sensitive]': 'tuiSensitive()',\n },\n})\nexport class TuiSensitive {\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly offset = Math.round(Math.random() * 10) * 10;\n protected readonly height = toSignal(\n inject(ResizeObserverService, {self: true}).pipe(\n map((entry): [number, number] => {\n const height = entry[0]?.contentRect.height ?? 0;\n\n return [Math.max(2, Math.floor(height / 16) + 1), height];\n }),\n map(([rows, height]) => height * (rowsInSvg / rows)),\n tuiZonefull(),\n tuiWatch(),\n ),\n );\n\n public readonly tuiSensitive = input<boolean | null>(false);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAcA,MAAM,SAAS,GAAG,CAAC;AAEnB,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,uiHAAA,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C;AAC9D;+GAjBY,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,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,UAAA,EAAA,qBAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,SAAA,EAPV,CAAC,qBAAqB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAOzB,YAAY,EAAA,UAAA,EAAA,CAAA;kBATxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,SAAS,EAAE,CAAC,qBAAqB,CAAC;AAClC,oBAAA,IAAI,EAAE;AACF,wBAAA,uBAAuB,EAAE,QAAQ;AACjC,wBAAA,4BAA4B,EAAE,UAAU;AACxC,wBAAA,uBAAuB,EAAE,gBAAgB;AAC5C,qBAAA;AACJ,iBAAA;;;ACjCD;;AAEG;;;;"}
@@ -1,26 +1,25 @@
1
1
  import { isPlatformBrowser } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, PLATFORM_ID, Input, Directive } from '@angular/core';
3
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, PLATFORM_ID, input, Directive } from '@angular/core';
4
4
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
5
5
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
6
6
 
7
- class TuiShimmerStyles {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiShimmerStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiShimmerStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-shimmer-styles" }, ngImport: i0, template: '', isInline: true, styles: ["@keyframes tuiShimmer{0%{-webkit-mask-position:top left,-100rem;mask-position:top left,-100rem}to{-webkit-mask-position:top left,300rem;mask-position:top left,300rem}}[tuiShimmer]._shimmer{-webkit-mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);-webkit-mask-size:100%,6rem 100%;mask-size:100%,6rem 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-composite:source-out;mask-composite:subtract;animation:tuiShimmer 8s infinite linear;pointer-events:none;-webkit-user-select:none;user-select:none}[tuiShimmer]._disabled{animation:none;mask:none;opacity:var(--tui-disabled-opacity)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
7
+ const OPTIONS = { duration: 1500, iterations: Infinity };
8
+ class Styles {
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
10
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-shimmer" }, ngImport: i0, template: '', isInline: true, styles: ["@keyframes tuiShimmer{0%{-webkit-mask-position:top left,-100rem;mask-position:top left,-100rem}to{-webkit-mask-position:top left,300rem;mask-position:top left,300rem}}[tuiShimmer]._shimmer{-webkit-mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);-webkit-mask-size:100%,6rem 100%;mask-size:100%,6rem 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-composite:source-out;mask-composite:subtract;animation:tuiShimmer 8s infinite linear;pointer-events:none;-webkit-user-select:none;user-select:none}[tuiShimmer]._disabled{animation:none;mask:none;opacity:var(--tui-disabled-opacity)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
11
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiShimmerStyles, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, decorators: [{
12
13
  type: Component,
13
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
14
- class: 'tui-shimmer-styles',
15
- }, styles: ["@keyframes tuiShimmer{0%{-webkit-mask-position:top left,-100rem;mask-position:top left,-100rem}to{-webkit-mask-position:top left,300rem;mask-position:top left,300rem}}[tuiShimmer]._shimmer{-webkit-mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);-webkit-mask-size:100%,6rem 100%;mask-size:100%,6rem 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-composite:source-out;mask-composite:subtract;animation:tuiShimmer 8s infinite linear;pointer-events:none;-webkit-user-select:none;user-select:none}[tuiShimmer]._disabled{animation:none;mask:none;opacity:var(--tui-disabled-opacity)}\n"] }]
14
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-shimmer' }, styles: ["@keyframes tuiShimmer{0%{-webkit-mask-position:top left,-100rem;mask-position:top left,-100rem}to{-webkit-mask-position:top left,300rem;mask-position:top left,300rem}}[tuiShimmer]._shimmer{-webkit-mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);mask-image:linear-gradient(#000,#000),linear-gradient(-70deg,transparent,rgba(0,0,0,.5),transparent);-webkit-mask-size:100%,6rem 100%;mask-size:100%,6rem 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-composite:source-out;mask-composite:subtract;animation:tuiShimmer 8s infinite linear;pointer-events:none;-webkit-user-select:none;user-select:none}[tuiShimmer]._disabled{animation:none;mask:none;opacity:var(--tui-disabled-opacity)}\n"] }]
16
15
  }] });
17
16
  class TuiShimmer {
18
17
  constructor() {
19
18
  this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
20
19
  this.el = tuiInjectElement();
20
+ this.nothing = tuiWithStyles(Styles);
21
21
  this.disabled = false;
22
- this.nothing = tuiWithStyles(TuiShimmerStyles);
23
- this.shimmer = false;
22
+ this.tuiShimmer = input(false);
24
23
  }
25
24
  ngOnChanges() {
26
25
  if (!this.isBrowser) {
@@ -32,39 +31,30 @@ class TuiShimmer {
32
31
  }
33
32
  this.animation?.commitStyles();
34
33
  this.animation?.cancel();
35
- if (this.shimmer) {
36
- this.animation = this.el.animate({ opacity: [0.5, 0.25, 0.5, 0.5] }, { duration: 1500, iterations: Infinity });
37
- }
38
- else {
39
- this.animation = this.el.animate([{ opacity: 0, offset: 0.5 }, { opacity: 1 }], {
40
- duration: 800,
41
- });
42
- this.animation.finished
43
- .then(() => {
44
- this.el.style.opacity = '';
45
- })
46
- .catch(() => { });
47
- }
34
+ this.animation = this.tuiShimmer()
35
+ ? this.el.animate({ opacity: [0.5, 0.25, 0.5, 0.5] }, OPTIONS)
36
+ : this.el.animate([{ opacity: 0, offset: 0.5 }, { opacity: 1 }], 800);
37
+ this.animation.finished
38
+ .then(() => {
39
+ this.el.style.opacity = '';
40
+ })
41
+ .catch(() => { });
48
42
  }
49
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiShimmer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
50
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiShimmer, isStandalone: true, selector: "[tuiShimmer]", inputs: { shimmer: ["tuiShimmer", "shimmer"] }, host: { attributes: { "tuiShimmer": "" }, properties: { "class._shimmer": "shimmer", "class._disabled": "shimmer && disabled", "attr.inert": "shimmer || null" } }, usesOnChanges: true, ngImport: i0 }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiShimmer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.16", type: TuiShimmer, isStandalone: true, selector: "[tuiShimmer]", inputs: { tuiShimmer: { classPropertyName: "tuiShimmer", publicName: "tuiShimmer", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiShimmer": "" }, properties: { "class._shimmer": "tuiShimmer()", "class._disabled": "tuiShimmer() && disabled", "attr.inert": "tuiShimmer() || null" } }, usesOnChanges: true, ngImport: i0 }); }
51
45
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiShimmer, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiShimmer, decorators: [{
53
47
  type: Directive,
54
48
  args: [{
55
- standalone: true,
56
49
  selector: '[tuiShimmer]',
57
50
  host: {
58
51
  tuiShimmer: '',
59
- '[class._shimmer]': 'shimmer',
60
- '[class._disabled]': 'shimmer && disabled',
61
- '[attr.inert]': 'shimmer || null',
52
+ '[class._shimmer]': 'tuiShimmer()',
53
+ '[class._disabled]': 'tuiShimmer() && disabled',
54
+ '[attr.inert]': 'tuiShimmer() || null',
62
55
  },
63
56
  }]
64
- }], propDecorators: { shimmer: [{
65
- type: Input,
66
- args: ['tuiShimmer']
67
- }] } });
57
+ }] });
68
58
 
69
59
  /**
70
60
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-shimmer.mjs","sources":["../../../projects/kit/directives/shimmer/shimmer.directive.ts","../../../projects/kit/directives/shimmer/taiga-ui-kit-directives-shimmer.ts"],"sourcesContent":["import {isPlatformBrowser} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n type OnChanges,\n PLATFORM_ID,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./shimmer.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-shimmer-styles',\n },\n})\nclass TuiShimmerStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiShimmer]',\n host: {\n tuiShimmer: '',\n '[class._shimmer]': 'shimmer',\n '[class._disabled]': 'shimmer && disabled',\n '[attr.inert]': 'shimmer || null',\n },\n})\nexport class TuiShimmer implements OnChanges {\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly el = tuiInjectElement();\n private animation?: Animation;\n\n protected disabled = false;\n\n protected readonly nothing = tuiWithStyles(TuiShimmerStyles);\n\n @Input('tuiShimmer')\n public shimmer = false;\n\n public ngOnChanges(): void {\n if (!this.isBrowser) {\n return;\n }\n\n this.disabled = !parseFloat(\n getComputedStyle(this.el).getPropertyValue('--tui-duration'),\n );\n\n if (this.disabled) {\n return;\n }\n\n this.animation?.commitStyles();\n this.animation?.cancel();\n\n if (this.shimmer) {\n this.animation = this.el.animate(\n {opacity: [0.5, 0.25, 0.5, 0.5]},\n {duration: 1500, iterations: Infinity},\n );\n } else {\n this.animation = this.el.animate([{opacity: 0, offset: 0.5}, {opacity: 1}], {\n duration: 800,\n });\n\n this.animation.finished\n .then(() => {\n this.el.style.opacity = '';\n })\n .catch(() => {});\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAcA,MAUM,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,wHARR,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qvBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAQV,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAVrB,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,oBAAoB;AAC9B,qBAAA,EAAA,MAAA,EAAA,CAAA,qvBAAA,CAAA,EAAA;;MAcQ,UAAU,CAAA;AAVvB,IAAA,WAAA,GAAA;QAWqB,IAAS,CAAA,SAAA,GAAG,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAClD,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;QAG9B,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AA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,SAAA,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,EAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,SAAA,EAAA,iBAAA,EAAA,qBAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAVtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,IAAI,EAAE;AACF,wBAAA,UAAU,EAAE,EAAE;AACd,wBAAA,kBAAkB,EAAE,SAAS;AAC7B,wBAAA,mBAAmB,EAAE,qBAAqB;AAC1C,wBAAA,cAAc,EAAE,iBAAiB;AACpC,qBAAA;AACJ,iBAAA;8BAWU,OAAO,EAAA,CAAA;sBADb,KAAK;uBAAC,YAAY;;;AC7CvB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-shimmer.mjs","sources":["../../../projects/kit/directives/shimmer/shimmer.directive.ts","../../../projects/kit/directives/shimmer/taiga-ui-kit-directives-shimmer.ts"],"sourcesContent":["import {isPlatformBrowser} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n type OnChanges,\n PLATFORM_ID,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\nconst OPTIONS = {duration: 1500, iterations: Infinity};\n\n@Component({\n template: '',\n styleUrl: './shimmer.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-shimmer'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiShimmer]',\n host: {\n tuiShimmer: '',\n '[class._shimmer]': 'tuiShimmer()',\n '[class._disabled]': 'tuiShimmer() && disabled',\n '[attr.inert]': 'tuiShimmer() || null',\n },\n})\nexport class TuiShimmer implements OnChanges {\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly el = tuiInjectElement();\n private animation?: Animation;\n\n protected readonly nothing = tuiWithStyles(Styles);\n protected disabled = false;\n\n public readonly tuiShimmer = input(false);\n\n public ngOnChanges(): void {\n if (!this.isBrowser) {\n return;\n }\n\n this.disabled = !parseFloat(\n getComputedStyle(this.el).getPropertyValue('--tui-duration'),\n );\n\n if (this.disabled) {\n return;\n }\n\n this.animation?.commitStyles();\n this.animation?.cancel();\n this.animation = this.tuiShimmer()\n ? this.el.animate({opacity: [0.5, 0.25, 0.5, 0.5]}, OPTIONS)\n : this.el.animate([{opacity: 0, offset: 0.5}, {opacity: 1}], 800);\n this.animation.finished\n .then(() => {\n this.el.style.opacity = '';\n })\n .catch(() => {});\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAcA,MAAM,OAAO,GAAG,EAAC,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAC;AAEtD,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,iHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,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,qBAAA;AACJ,iBAAA;;;ACjCD;;AAEG;;;;"}
@@ -1,29 +1,36 @@
1
- import { __decorate } from 'tslib';
2
1
  import * as i0 from '@angular/core';
3
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Input, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, computed, input, Directive } from '@angular/core';
4
3
  import { CHAR_NO_BREAK_SPACE } from '@taiga-ui/cdk/constants';
5
4
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
6
- import { tuiWithStyles, tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
5
+ import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
7
6
  import { TUI_ANIMATIONS_SPEED } from '@taiga-ui/core/tokens';
8
7
  import { tuiGetDuration } from '@taiga-ui/core/utils/miscellaneous';
9
8
 
10
9
  const FADE = [{ opacity: 0.06 }, { opacity: 1 }];
11
- class TuiSkeletonStyles {
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSkeletonStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
13
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiSkeletonStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-skeleton-styles" }, ngImport: i0, template: '', isInline: true, styles: ["@keyframes tuiSkeleton{0%{opacity:.03}to{opacity:.06}}[tuiSkeleton]._skeleton{color:transparent;background:var(--tui-background-base)!important;box-shadow:none!important;filter:contrast(0) brightness(0);animation:tuiSkeleton ease-in-out calc(var(--tui-duration) * 4) infinite alternate;-webkit-user-select:none;user-select:none;pointer-events:none;opacity:.06}[tuiSkeleton]._skeleton[data-tui-skeleton]{background:transparent!important}[tuiSkeleton]._skeleton[data-tui-skeleton]:before{content:attr(data-tui-skeleton);background:var(--tui-background-base);font-size:smaller;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.25rem}[tuiTheme=dark] [tuiSkeleton]._skeleton,[tuiTheme=dark][tuiSkeleton]._skeleton{filter:contrast(0) brightness(0) invert(1)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
+ class Styles {
11
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
12
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-skeleton" }, ngImport: i0, template: '', isInline: true, styles: ["@keyframes tuiSkeleton{0%{opacity:.03}to{opacity:.06}}[tuiSkeleton]._skeleton{color:transparent;background:var(--tui-background-base)!important;box-shadow:none!important;filter:contrast(0) brightness(0);animation:tuiSkeleton ease-in-out calc(var(--tui-duration) * 4) infinite alternate;-webkit-user-select:none;user-select:none;pointer-events:none;opacity:.06}[tuiSkeleton]._skeleton[data-tui-skeleton]{background:transparent!important}[tuiSkeleton]._skeleton[data-tui-skeleton]:before{content:attr(data-tui-skeleton);background:var(--tui-background-base);font-size:smaller;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.25rem}[tuiTheme=dark] [tuiSkeleton]._skeleton,[tuiTheme=dark][tuiSkeleton]._skeleton{filter:contrast(0) brightness(0) invert(1)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
14
13
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSkeletonStyles, decorators: [{
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, decorators: [{
16
15
  type: Component,
17
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
18
- class: 'tui-skeleton-styles',
19
- }, styles: ["@keyframes tuiSkeleton{0%{opacity:.03}to{opacity:.06}}[tuiSkeleton]._skeleton{color:transparent;background:var(--tui-background-base)!important;box-shadow:none!important;filter:contrast(0) brightness(0);animation:tuiSkeleton ease-in-out calc(var(--tui-duration) * 4) infinite alternate;-webkit-user-select:none;user-select:none;pointer-events:none;opacity:.06}[tuiSkeleton]._skeleton[data-tui-skeleton]{background:transparent!important}[tuiSkeleton]._skeleton[data-tui-skeleton]:before{content:attr(data-tui-skeleton);background:var(--tui-background-base);font-size:smaller;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.25rem}[tuiTheme=dark] [tuiSkeleton]._skeleton,[tuiTheme=dark][tuiSkeleton]._skeleton{filter:contrast(0) brightness(0) invert(1)}\n"] }]
16
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-skeleton' }, styles: ["@keyframes tuiSkeleton{0%{opacity:.03}to{opacity:.06}}[tuiSkeleton]._skeleton{color:transparent;background:var(--tui-background-base)!important;box-shadow:none!important;filter:contrast(0) brightness(0);animation:tuiSkeleton ease-in-out calc(var(--tui-duration) * 4) infinite alternate;-webkit-user-select:none;user-select:none;pointer-events:none;opacity:.06}[tuiSkeleton]._skeleton[data-tui-skeleton]{background:transparent!important}[tuiSkeleton]._skeleton[data-tui-skeleton]:before{content:attr(data-tui-skeleton);background:var(--tui-background-base);font-size:smaller;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:.25rem}[tuiTheme=dark] [tuiSkeleton]._skeleton,[tuiTheme=dark][tuiSkeleton]._skeleton{filter:contrast(0) brightness(0) invert(1)}\n"] }]
20
17
  }] });
21
18
  class TuiSkeleton {
22
19
  constructor() {
23
20
  this.el = tuiInjectElement();
24
21
  this.duration = tuiGetDuration(inject(TUI_ANIMATIONS_SPEED)) * 2;
25
- this.nothing = tuiWithStyles(TuiSkeletonStyles);
26
- this.tuiSkeleton = false;
22
+ this.nothing = tuiWithStyles(Styles);
23
+ this.placeholder = computed((length = this.tuiSkeleton()) => {
24
+ switch (typeof length) {
25
+ case 'number':
26
+ return Array.from({ length }).map(getWord).join(' ');
27
+ case 'string':
28
+ return length;
29
+ default:
30
+ return null;
31
+ }
32
+ });
33
+ this.tuiSkeleton = input(false);
27
34
  }
28
35
  ngOnChanges({ tuiSkeleton }) {
29
36
  this.animation?.cancel();
@@ -31,40 +38,23 @@ class TuiSkeleton {
31
38
  this.animation = this.el.animate?.(FADE, this.duration);
32
39
  }
33
40
  }
34
- getPlaceholder(value) {
35
- switch (typeof value) {
36
- case 'number':
37
- return Array.from({ length: value })
38
- .map(() => CHAR_NO_BREAK_SPACE.repeat(getLength()))
39
- .join(' ');
40
- case 'string':
41
- return value;
42
- default:
43
- return null;
44
- }
45
- }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
47
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiSkeleton, isStandalone: true, selector: "[tuiSkeleton]", inputs: { tuiSkeleton: "tuiSkeleton" }, host: { attributes: { "tuiSkeleton": "" }, properties: { "class._skeleton": "tuiSkeleton", "attr.data-tui-skeleton": "getPlaceholder(tuiSkeleton)" } }, usesOnChanges: true, ngImport: i0 }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSkeleton, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
42
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.16", type: TuiSkeleton, isStandalone: true, selector: "[tuiSkeleton]", inputs: { tuiSkeleton: { classPropertyName: "tuiSkeleton", publicName: "tuiSkeleton", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiSkeleton": "" }, properties: { "attr.inert": "!!tuiSkeleton() || null", "class._skeleton": "tuiSkeleton()", "attr.data-tui-skeleton": "placeholder()" } }, usesOnChanges: true, ngImport: i0 }); }
48
43
  }
49
- __decorate([
50
- tuiPure
51
- ], TuiSkeleton.prototype, "getPlaceholder", null);
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSkeleton, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiSkeleton, decorators: [{
53
45
  type: Directive,
54
46
  args: [{
55
- standalone: true,
56
47
  selector: '[tuiSkeleton]',
57
48
  host: {
58
49
  tuiSkeleton: '',
59
- '[class._skeleton]': 'tuiSkeleton',
60
- '[attr.data-tui-skeleton]': 'getPlaceholder(tuiSkeleton)',
50
+ '[attr.inert]': '!!tuiSkeleton() || null',
51
+ '[class._skeleton]': 'tuiSkeleton()',
52
+ '[attr.data-tui-skeleton]': 'placeholder()',
61
53
  },
62
54
  }]
63
- }], propDecorators: { tuiSkeleton: [{
64
- type: Input
65
- }], getPlaceholder: [] } });
66
- function getLength() {
67
- return Math.floor(Math.random() * (15 - 5 + 1)) + 5;
55
+ }] });
56
+ function getWord() {
57
+ return CHAR_NO_BREAK_SPACE.repeat(Math.floor(Math.random() * (15 - 5 + 1)) + 5);
68
58
  }
69
59
 
70
60
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-skeleton.mjs","sources":["../../../projects/kit/directives/skeleton/skeleton.directive.ts","../../../projects/kit/directives/skeleton/taiga-ui-kit-directives-skeleton.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n Input,\n type OnChanges,\n type SimpleChanges,\n ViewEncapsulation,\n} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPure, tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\nconst FADE = [{opacity: 0.06}, {opacity: 1}];\n\n@Component({\n standalone: true,\n template: '',\n styleUrls: ['./skeleton.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-skeleton-styles',\n },\n})\nclass TuiSkeletonStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiSkeleton]',\n host: {\n tuiSkeleton: '',\n '[class._skeleton]': 'tuiSkeleton',\n '[attr.data-tui-skeleton]': 'getPlaceholder(tuiSkeleton)',\n },\n})\nexport class TuiSkeleton implements OnChanges {\n private animation?: Animation;\n private readonly el = tuiInjectElement();\n private readonly duration = tuiGetDuration(inject(TUI_ANIMATIONS_SPEED)) * 2;\n\n protected readonly nothing = tuiWithStyles(TuiSkeletonStyles);\n\n @Input()\n public tuiSkeleton: boolean | number | string = false;\n\n public ngOnChanges({tuiSkeleton}: SimpleChanges): void {\n this.animation?.cancel();\n\n if (!tuiSkeleton?.currentValue && !tuiSkeleton?.firstChange) {\n this.animation = this.el.animate?.(FADE, this.duration);\n }\n }\n\n @tuiPure\n protected getPlaceholder(value: boolean | number | string): string | null {\n switch (typeof value) {\n case 'number':\n return Array.from({length: value})\n .map(() => CHAR_NO_BREAK_SPACE.repeat(getLength()))\n .join(' ');\n case 'string':\n return value;\n default:\n return null;\n }\n }\n}\n\nfunction getLength(): number {\n return Math.floor(Math.random() * (15 - 5 + 1)) + 5;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAgBA,MAAM,IAAI,GAAG,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,EAAE,EAAC,OAAO,EAAE,CAAC,EAAC,CAAC;AAE5C,MAUM,iBAAiB,CAAA;+GAAjB,iBAAiB,EAA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,cAAc,EAAA,EAAA,EAAA,EAAA,CAAA;AAc5B,SAAS,SAAS,GAAA;AACd,IAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACvD;;AC1EA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-skeleton.mjs","sources":["../../../projects/kit/directives/skeleton/skeleton.directive.ts","../../../projects/kit/directives/skeleton/taiga-ui-kit-directives-skeleton.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n inject,\n input,\n type OnChanges,\n type SimpleChanges,\n ViewEncapsulation,\n} from '@angular/core';\nimport {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\nconst FADE = [{opacity: 0.06}, {opacity: 1}];\n\n@Component({\n template: '',\n styleUrl: './skeleton.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-skeleton'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiSkeleton]',\n host: {\n tuiSkeleton: '',\n '[attr.inert]': '!!tuiSkeleton() || null',\n '[class._skeleton]': 'tuiSkeleton()',\n '[attr.data-tui-skeleton]': 'placeholder()',\n },\n})\nexport class TuiSkeleton implements OnChanges {\n private animation?: Animation;\n private readonly el = tuiInjectElement();\n private readonly duration = tuiGetDuration(inject(TUI_ANIMATIONS_SPEED)) * 2;\n\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly placeholder = computed((length = this.tuiSkeleton()) => {\n switch (typeof length) {\n case 'number':\n return Array.from({length}).map(getWord).join(' ');\n case 'string':\n return length;\n default:\n return null;\n }\n });\n\n public readonly tuiSkeleton = input<boolean | number | string>(false);\n\n public ngOnChanges({tuiSkeleton}: SimpleChanges): void {\n this.animation?.cancel();\n\n if (!tuiSkeleton?.currentValue && !tuiSkeleton?.firstChange) {\n this.animation = this.el.animate?.(FADE, this.duration);\n }\n }\n}\n\nfunction getWord(): string {\n return CHAR_NO_BREAK_SPACE.repeat(Math.floor(Math.random() * (15 - 5 + 1)) + 5);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAiBA,MAAM,IAAI,GAAG,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,EAAE,EAAC,OAAO,EAAE,CAAC,EAAC,CAAC;AAE5C,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,kHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+wBAAA,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,cAAc,EAAC,EAAA,MAAA,EAAA,CAAA,+wBAAA,CAAA,EAAA;;MAapB,WAAW,CAAA;AATxB,IAAA,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AAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,aAAA,EAAA,EAAA,EAAA,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,yBAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBATvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,IAAI,EAAE;AACF,wBAAA,WAAW,EAAE,EAAE;AACf,wBAAA,cAAc,EAAE,yBAAyB;AACzC,wBAAA,mBAAmB,EAAE,eAAe;AACpC,wBAAA,0BAA0B,EAAE,eAAe;AAC9C,qBAAA;AACJ,iBAAA;;AA6BD,SAAS,OAAO,GAAA;IACZ,OAAO,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACnF;;ACnEA;;AAEG;;;;"}
@@ -1,14 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Input, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, input, Directive } from '@angular/core';
3
3
  import { toSignal } from '@angular/core/rxjs-interop';
4
4
  import { tuiWatch } from '@taiga-ui/cdk/observables';
5
5
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
6
- import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
6
+ import { tuiWithStyles, tuiSetSignal } from '@taiga-ui/cdk/utils/miscellaneous';
7
7
  import { TuiTextfieldComponent } from '@taiga-ui/core/components/textfield';
8
8
  import * as i1 from '@taiga-ui/core/directives/appearance';
9
9
  import { tuiAppearanceState, tuiAppearanceOptionsProvider, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
10
- import * as i2 from '@taiga-ui/core/directives/hint';
11
- import { TuiHintDescribe, TuiHintHover, TUI_HINT_OPTIONS, TuiHintDirective } from '@taiga-ui/core/directives/hint';
10
+ import * as i2 from '@taiga-ui/core/portals/hint';
11
+ import { TuiHintDescribe, TuiHintHover, TUI_HINT_OPTIONS, TuiHintDirective } from '@taiga-ui/core/portals/hint';
12
12
  import { TUI_ICON_START } from '@taiga-ui/core/tokens';
13
13
  import { map } from 'rxjs';
14
14
  import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
@@ -18,15 +18,13 @@ const [TUI_TOOLTIP_OPTIONS, tuiTooltipOptionsProvider] = tuiCreateOptions({
18
18
  appearance: 'icon',
19
19
  });
20
20
 
21
- class TuiTooltipStyles {
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiTooltipStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-tooltip" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiTooltip]{border-width:.125rem;border-radius:100%;cursor:pointer;pointer-events:auto;background-clip:content-box!important}[tuiTooltip] [tuiBlock],[tuiTooltip] [tuiCell][data-size=s],[tuiLabel][data-orientation=horizontal] [tuiTooltip],[tuiTooltip][data-size=s]{font-size:1.25rem}[tuiTitle] [tuiTooltip]{font-size:1rem;border:none}[tuiTooltip]:before{font-size:1rem}@media (hover: hover) and (pointer: fine){tui-textfield:hover [tuiTooltip][data-appearance=icon]:before,tui-textarea:hover [tuiTooltip][data-appearance=icon]:before,tui-primitive-textfield:hover [tuiTooltip][data-appearance=icon]:before,tui-input-tag:hover [tuiTooltip][data-appearance=icon]:before{color:var(--tui-text-secondary)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
21
+ class Styles {
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
23
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-tooltip" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiTooltip]{border-width:.125rem;border-radius:100%;cursor:pointer;pointer-events:auto;background-clip:content-box!important}[tuiTooltip] [tuiBlock],[tuiTooltip] [tuiCell][data-size=s],[tuiLabel][data-orientation=horizontal] [tuiTooltip],[tuiTooltip][data-size=s]{font-size:1.25rem}[tuiTitle] [tuiTooltip]{font-size:1rem;border:none}[tuiTooltip]:before{font-size:1rem}@media (hover: hover) and (pointer: fine){tui-textfield:hover [tuiTooltip][data-appearance=icon]:before,tui-textarea:hover [tuiTooltip][data-appearance=icon]:before,tui-primitive-textfield:hover [tuiTooltip][data-appearance=icon]:before{color:var(--tui-text-secondary)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltipStyles, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, decorators: [{
26
26
  type: Component,
27
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
28
- class: 'tui-tooltip',
29
- }, styles: ["[tuiTooltip]{border-width:.125rem;border-radius:100%;cursor:pointer;pointer-events:auto;background-clip:content-box!important}[tuiTooltip] [tuiBlock],[tuiTooltip] [tuiCell][data-size=s],[tuiLabel][data-orientation=horizontal] [tuiTooltip],[tuiTooltip][data-size=s]{font-size:1.25rem}[tuiTitle] [tuiTooltip]{font-size:1rem;border:none}[tuiTooltip]:before{font-size:1rem}@media (hover: hover) and (pointer: fine){tui-textfield:hover [tuiTooltip][data-appearance=icon]:before,tui-textarea:hover [tuiTooltip][data-appearance=icon]:before,tui-primitive-textfield:hover [tuiTooltip][data-appearance=icon]:before,tui-input-tag:hover [tuiTooltip][data-appearance=icon]:before{color:var(--tui-text-secondary)}}\n"] }]
27
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-tooltip' }, styles: ["[tuiTooltip]{border-width:.125rem;border-radius:100%;cursor:pointer;pointer-events:auto;background-clip:content-box!important}[tuiTooltip] [tuiBlock],[tuiTooltip] [tuiCell][data-size=s],[tuiLabel][data-orientation=horizontal] [tuiTooltip],[tuiTooltip][data-size=s]{font-size:1.25rem}[tuiTitle] [tuiTooltip]{font-size:1rem;border:none}[tuiTooltip]:before{font-size:1rem}@media (hover: hover) and (pointer: fine){tui-textfield:hover [tuiTooltip][data-appearance=icon]:before,tui-textarea:hover [tuiTooltip][data-appearance=icon]:before,tui-primitive-textfield:hover [tuiTooltip][data-appearance=icon]:before{color:var(--tui-text-secondary)}}\n"] }]
30
28
  }] });
31
29
  class TuiTooltip {
32
30
  constructor() {
@@ -34,13 +32,13 @@ class TuiTooltip {
34
32
  this.isMobile = inject(TUI_IS_MOBILE);
35
33
  this.describe = inject(TuiHintDescribe);
36
34
  this.driver = inject(TuiHintHover);
37
- this.nothing = tuiWithStyles(TuiTooltipStyles);
35
+ this.nothing = tuiWithStyles(Styles);
38
36
  this.state = tuiAppearanceState(toSignal(inject(TuiHintHover).pipe(map((hover) => (hover ? 'hover' : null)), tuiWatch()), { initialValue: null }));
39
- this.size = 'm';
37
+ this.size = input('m');
40
38
  }
41
39
  ngDoCheck() {
42
40
  if (this.textfield?.id) {
43
- this.describe.tuiHintDescribe = this.textfield.id;
41
+ tuiSetSignal(this.describe.id, this.textfield.id);
44
42
  }
45
43
  }
46
44
  onClick(event) {
@@ -52,8 +50,8 @@ class TuiTooltip {
52
50
  this.driver.toggle();
53
51
  }
54
52
  }
55
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
56
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiTooltip, isStandalone: true, selector: "tui-icon[tuiTooltip]", inputs: { size: "size" }, host: { attributes: { "tuiTooltip": "" }, listeners: { "click.prevent": "0", "mousedown": "onClick($event)" }, properties: { "attr.data-size": "size" } }, providers: [
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
54
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.16", type: TuiTooltip, isStandalone: true, selector: "tui-icon[tuiTooltip]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiTooltip": "" }, listeners: { "click.prevent": "0", "mousedown": "onClick($event)" }, properties: { "attr.data-size": "size()" } }, providers: [
57
55
  tuiAppearanceOptionsProvider(TUI_TOOLTIP_OPTIONS),
58
56
  {
59
57
  provide: TUI_ICON_START,
@@ -61,10 +59,9 @@ class TuiTooltip {
61
59
  },
62
60
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiHintDescribe, inputs: ["tuiHintDescribe", "tuiTooltipDescribe"] }, { directive: i2.TuiHintDirective, inputs: ["tuiHint", "tuiTooltip", "tuiHintAppearance", "tuiHintAppearance", "tuiHintContext", "tuiHintContext"] }], ngImport: i0 }); }
63
61
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTooltip, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTooltip, decorators: [{
65
63
  type: Directive,
66
64
  args: [{
67
- standalone: true,
68
65
  selector: 'tui-icon[tuiTooltip]',
69
66
  providers: [
70
67
  tuiAppearanceOptionsProvider(TUI_TOOLTIP_OPTIONS),
@@ -86,14 +83,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
86
83
  ],
87
84
  host: {
88
85
  tuiTooltip: '',
89
- '[attr.data-size]': 'size',
86
+ '[attr.data-size]': 'size()',
90
87
  '(click.prevent)': '0',
91
88
  '(mousedown)': 'onClick($event)',
92
89
  },
93
90
  }]
94
- }], propDecorators: { size: [{
95
- type: Input
96
- }] } });
91
+ }] });
97
92
 
98
93
  /**
99
94
  * Generated bundle index. Do not edit.