@taiga-ui/kit 4.52.0-canary.24b31eb → 4.52.0-canary.2d877cf

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 (390) hide show
  1. package/README.md +1 -1
  2. package/components/action-bar/action-bar.component.d.ts +5 -7
  3. package/components/action-bar/index.d.ts +0 -2
  4. package/components/badge/badge.options.d.ts +1 -3
  5. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  6. package/components/block/block.options.d.ts +1 -3
  7. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  8. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  9. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  10. package/components/chip/chip.options.d.ts +1 -3
  11. package/components/combo-box/combo-box.d.ts +5 -0
  12. package/components/combo-box/combo-box.directive.d.ts +5 -5
  13. package/components/combo-box/index.d.ts +1 -0
  14. package/components/confirm/confirm.component.d.ts +5 -4
  15. package/components/confirm/confirm.service.d.ts +1 -1
  16. package/components/copy/copy.component.d.ts +2 -2
  17. package/components/copy/copy.directive.d.ts +3 -4
  18. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  19. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  20. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  21. package/components/data-list-wrapper/index.d.ts +1 -1
  22. package/components/files/file/file.options.d.ts +1 -1
  23. package/components/files/files/files.component.d.ts +2 -2
  24. package/components/files/input-files/input-files.options.d.ts +1 -3
  25. package/components/index.d.ts +0 -4
  26. package/components/input-chip/input-chip.component.d.ts +9 -8
  27. package/components/input-chip/input-chip.d.ts +5 -1
  28. package/components/input-chip/input-chip.directive.d.ts +7 -12
  29. package/components/input-color/index.d.ts +1 -0
  30. package/components/input-color/input-color.component.d.ts +4 -4
  31. package/components/input-color/input-color.d.ts +5 -0
  32. package/components/input-date/input-date.d.ts +4 -1
  33. package/components/input-date/input-date.directive.d.ts +12 -14
  34. package/components/input-date/input-date.options.d.ts +3 -3
  35. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  36. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  37. package/components/input-date-range/input-date-range.d.ts +4 -1
  38. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  39. package/components/input-date-range/input-date-range.options.d.ts +2 -2
  40. package/components/input-date-time/input-date-time.d.ts +4 -1
  41. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  42. package/components/input-date-time/input-date-time.options.d.ts +2 -2
  43. package/components/input-month/input-month.d.ts +4 -1
  44. package/components/input-month/input-month.directive.d.ts +6 -5
  45. package/components/input-month-range/input-month-range.d.ts +4 -1
  46. package/components/input-month-range/input-month-range.directive.d.ts +6 -5
  47. package/components/input-number/input-number.d.ts +4 -1
  48. package/components/input-number/input-number.directive.d.ts +7 -11
  49. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  50. package/components/input-phone/index.d.ts +1 -0
  51. package/components/input-phone/input-phone.d.ts +5 -0
  52. package/components/input-phone/input-phone.directive.d.ts +7 -7
  53. package/components/input-phone-international/index.d.ts +1 -0
  54. package/components/input-phone-international/input-phone-international.component.d.ts +11 -11
  55. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  56. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  57. package/components/input-pin/index.d.ts +1 -0
  58. package/components/input-pin/input-pin.component.d.ts +4 -4
  59. package/components/input-pin/input-pin.d.ts +5 -0
  60. package/components/input-range/input-range.component.d.ts +4 -7
  61. package/components/input-slider/input-slider.d.ts +4 -1
  62. package/components/input-slider/input-slider.directive.d.ts +1 -2
  63. package/components/input-time/input-time.component.d.ts +1 -3
  64. package/components/input-time/input-time.d.ts +4 -1
  65. package/components/input-time/input-time.directive.d.ts +8 -10
  66. package/components/input-year/input-year.d.ts +4 -1
  67. package/components/input-year/input-year.directive.d.ts +5 -5
  68. package/components/input-year/input-year.options.d.ts +2 -2
  69. package/components/like/like.options.d.ts +1 -1
  70. package/components/line-clamp/line-clamp-box.component.d.ts +1 -1
  71. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  72. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  73. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +5 -7
  74. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  75. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  76. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  77. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  78. package/components/pagination/index.d.ts +1 -0
  79. package/components/pagination/pagination.component.d.ts +25 -54
  80. package/components/pagination/pagination.options.d.ts +7 -0
  81. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  82. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  83. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  84. package/components/preview/index.d.ts +1 -0
  85. package/components/preview/pagination/preview-pagination.component.d.ts +3 -2
  86. package/components/preview/preview.component.d.ts +2 -2
  87. package/components/preview/preview.d.ts +2 -1
  88. package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +1 -3
  89. package/components/preview/zoom/preview-zoom.component.d.ts +4 -2
  90. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  91. package/components/progress/progress.options.d.ts +1 -3
  92. package/components/push/push-alert.component.d.ts +4 -3
  93. package/components/push/push.component.d.ts +1 -1
  94. package/components/push/push.directive.d.ts +4 -6
  95. package/components/push/push.options.d.ts +5 -8
  96. package/components/push/push.service.d.ts +6 -2
  97. package/components/radio/radio.component.d.ts +1 -1
  98. package/components/radio-list/radio-list.component.d.ts +5 -3
  99. package/components/range/range-change.directive.d.ts +1 -2
  100. package/components/range/range.component.d.ts +16 -24
  101. package/components/rating/rating.component.d.ts +1 -1
  102. package/components/rating/rating.options.d.ts +1 -3
  103. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  104. package/components/segmented/segmented.component.d.ts +4 -6
  105. package/components/segmented/segmented.directive.d.ts +6 -7
  106. package/components/select/native-select/native-select.component.d.ts +7 -8
  107. package/components/select/select.d.ts +4 -1
  108. package/components/select/select.directive.d.ts +4 -3
  109. package/components/slider/helpers/key-steps.d.ts +1 -2
  110. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  111. package/components/slider/slider.options.d.ts +1 -6
  112. package/components/stepper/step.component.d.ts +6 -8
  113. package/components/stepper/stepper.component.d.ts +6 -11
  114. package/components/switch/switch.component.d.ts +1 -0
  115. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  116. package/components/tabs/tabs.options.d.ts +1 -6
  117. package/components/textarea/index.d.ts +2 -1
  118. package/components/textarea/textarea.component.d.ts +4 -4
  119. package/components/textarea/textarea.d.ts +6 -0
  120. package/components/textarea/textarea.directive.d.ts +13 -0
  121. package/components/toast/toast.component.d.ts +4 -3
  122. package/components/toast/toast.options.d.ts +9 -7
  123. package/components/toast/toast.service.d.ts +10 -9
  124. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  125. package/components/tree/misc/tree.constants.d.ts +0 -3
  126. package/components/tree/misc/tree.tokens.d.ts +1 -6
  127. package/directives/button-close/button-close.directive.d.ts +2 -1
  128. package/directives/button-select/button-select.directive.d.ts +4 -4
  129. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  130. package/directives/fade/fade.directive.d.ts +1 -2
  131. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  132. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  133. package/directives/index.d.ts +0 -1
  134. package/directives/password/password.directive.d.ts +1 -1
  135. package/directives/tooltip/tooltip.directive.d.ts +1 -1
  136. package/fesm2022/taiga-ui-kit-components-accordion.mjs +7 -8
  137. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  139. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-avatar.mjs +20 -20
  141. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  143. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-badge.mjs +11 -15
  145. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -7
  147. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-block.mjs +10 -14
  149. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +12 -18
  151. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +6 -6
  153. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -17
  155. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -8
  157. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -23
  159. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -6
  161. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-chip.mjs +11 -15
  163. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +42 -32
  165. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-comment.mjs +6 -6
  167. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -5
  169. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-confirm.mjs +11 -14
  171. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-copy.mjs +19 -25
  173. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -78
  175. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  177. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-files.mjs +41 -48
  179. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-filter.mjs +4 -4
  181. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +3 -3
  183. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +69 -74
  185. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-input-color.mjs +24 -13
  187. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +36 -53
  189. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +31 -36
  191. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +34 -31
  193. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-input-date.mjs +50 -53
  195. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
  197. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +30 -27
  199. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-input-month.mjs +36 -27
  201. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-input-number.mjs +54 -72
  203. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +51 -43
  205. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +32 -23
  207. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +18 -9
  209. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-input-range.mjs +9 -16
  211. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +24 -25
  213. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-input-time.mjs +64 -70
  215. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-components-input-year.mjs +29 -21
  217. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -16
  219. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-like.mjs +4 -4
  221. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +36 -78
  223. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-components-message.mjs +6 -7
  225. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +34 -46
  227. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +36 -25
  229. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -8
  231. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-pagination.mjs +67 -138
  233. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-components-pin.mjs +7 -7
  235. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components-preview.mjs +72 -52
  237. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-components-progress.mjs +64 -56
  239. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  241. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-components-push.mjs +49 -57
  243. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  245. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -9
  247. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-range.mjs +41 -85
  249. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-components-rating.mjs +7 -12
  251. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  253. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  255. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  256. package/fesm2022/taiga-ui-kit-components-select.mjs +82 -62
  257. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  258. package/fesm2022/taiga-ui-kit-components-slider.mjs +73 -81
  259. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  260. package/fesm2022/taiga-ui-kit-components-status.mjs +6 -6
  261. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  262. package/fesm2022/taiga-ui-kit-components-stepper.mjs +45 -79
  263. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  264. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  265. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  266. package/fesm2022/taiga-ui-kit-components-tabs.mjs +28 -36
  267. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  268. package/fesm2022/taiga-ui-kit-components-textarea.mjs +54 -62
  269. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  270. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -15
  271. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  272. package/fesm2022/taiga-ui-kit-components-toast.mjs +51 -53
  273. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  274. package/fesm2022/taiga-ui-kit-components-tree.mjs +56 -60
  275. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-components.mjs +0 -4
  277. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  279. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +6 -6
  281. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  283. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +9 -8
  285. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-directives-connected.mjs +6 -7
  287. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  288. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  289. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-directives-fade.mjs +12 -11
  291. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  292. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  293. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  294. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -4
  295. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  296. package/fesm2022/taiga-ui-kit-directives-password.mjs +12 -14
  297. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  298. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -4
  299. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  300. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +6 -6
  301. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  302. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +6 -6
  303. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  304. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -6
  305. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  306. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +11 -11
  307. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +5 -6
  309. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  310. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -5
  311. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  312. package/fesm2022/taiga-ui-kit-directives.mjs +0 -1
  313. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  314. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  315. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  316. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  317. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  319. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  320. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
  321. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  322. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  323. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  324. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  325. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  326. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -8
  327. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  328. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  329. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  330. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  331. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  332. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -0
  333. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  334. package/fesm2022/taiga-ui-kit-tokens.mjs +2 -98
  335. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  336. package/fesm2022/taiga-ui-kit-utils.mjs +2 -14
  337. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  338. package/package.json +50 -58
  339. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  340. package/pipes/auto-color/index.d.ts +1 -0
  341. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  342. package/pipes/flag/flag.pipe.d.ts +14 -0
  343. package/pipes/flag/index.d.ts +1 -0
  344. package/pipes/index.d.ts +3 -0
  345. package/pipes/initials/index.d.ts +1 -0
  346. package/pipes/initials/initials.pipe.d.ts +7 -0
  347. package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
  348. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  349. package/styles/components/badge.less +1 -0
  350. package/styles/components/chip.less +12 -1
  351. package/tokens/i18n.d.ts +25 -26
  352. package/tokens/index.d.ts +0 -6
  353. package/utils/index.d.ts +0 -2
  354. package/components/action-bar/action-bar.d.ts +0 -3
  355. package/components/action-bar/action-bar.directive.d.ts +0 -6
  356. package/components/elastic-container/elastic-container.component.d.ts +0 -8
  357. package/components/elastic-container/elastic-container.directive.d.ts +0 -7
  358. package/components/elastic-container/index.d.ts +0 -2
  359. package/components/floating-container/floating-container.directive.d.ts +0 -7
  360. package/components/floating-container/index.d.ts +0 -1
  361. package/components/pdf-viewer/index.d.ts +0 -4
  362. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  363. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  364. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  365. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  366. package/components/slides/index.d.ts +0 -1
  367. package/components/slides/slides.directive.d.ts +0 -11
  368. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  369. package/directives/lazy-loading/index.d.ts +0 -2
  370. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  371. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  372. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -78
  373. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
  374. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -37
  375. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
  376. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  377. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  378. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  379. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  380. package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -49
  381. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
  382. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  383. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  384. package/tokens/date-inputs-value-transformers.d.ts +0 -19
  385. package/tokens/input-date-options.d.ts +0 -15
  386. package/tokens/items-handlers.d.ts +0 -26
  387. package/tokens/mobile-calendar.d.ts +0 -6
  388. package/tokens/month-formatter.d.ts +0 -5
  389. package/utils/phone.d.ts +0 -3
  390. package/utils/toggle-day.d.ts +0 -2
@@ -1,15 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, ChangeDetectionStrategy, ViewEncapsulation, Component, Injectable, inject, EventEmitter, Output, Input, ChangeDetectorRef } from '@angular/core';
2
+ import { Directive, ChangeDetectionStrategy, ViewEncapsulation, Component, Injectable, inject, EventEmitter, Output, Input, computed, ChangeDetectorRef } from '@angular/core';
3
3
  import { tuiButtonOptionsProvider, TuiButton } from '@taiga-ui/core/components/button';
4
4
  import * as i1 from '@taiga-ui/cdk/directives/animated';
5
5
  import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
6
6
  import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
7
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
8
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
9
- import { TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
10
- import { AsyncPipe, PercentPipe } from '@angular/common';
7
+ import * as i1$1 from '@taiga-ui/cdk/portals';
8
+ import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
9
+ import { TuiModalService } from '@taiga-ui/core/portals/modal';
11
10
  import { tuiClamp, tuiRound } from '@taiga-ui/cdk/utils/math';
12
- import { TUI_PREVIEW_ICONS, TUI_PAGINATION_TEXTS, TUI_PREVIEW_ZOOM_TEXTS, TUI_PREVIEW_TEXTS } from '@taiga-ui/kit/tokens';
11
+ import { TUI_PAGINATION_TEXTS, TUI_PREVIEW_ZOOM_TEXTS, TUI_PREVIEW_TEXTS } from '@taiga-ui/kit/tokens';
12
+ import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
13
+ import { AsyncPipe, PercentPipe } from '@angular/common';
13
14
  import { WaMutationObserver } from '@ng-web-apis/mutation-observer';
14
15
  import { WaResizeObserver } from '@ng-web-apis/resize-observer';
15
16
  import { TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
@@ -18,27 +19,26 @@ import { TuiZoom } from '@taiga-ui/cdk/directives/zoom';
18
19
  import { tuiDragAndDropFrom, tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
19
20
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
20
21
  import { tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
21
- import * as i2 from '@taiga-ui/core/directives/hint';
22
- import { TuiHint } from '@taiga-ui/core/directives/hint';
22
+ import * as i2 from '@taiga-ui/core/portals/hint';
23
+ import { TuiHint } from '@taiga-ui/core/portals/hint';
23
24
  import { switchMap, merge, of, timer, map, startWith, BehaviorSubject, combineLatest } from 'rxjs';
24
- import * as i1$1 from '@angular/forms';
25
+ import * as i1$2 from '@angular/forms';
25
26
  import { FormsModule } from '@angular/forms';
26
27
  import * as i3 from '@taiga-ui/kit/components/slider';
27
28
  import { TuiSlider } from '@taiga-ui/kit/components/slider';
28
29
 
29
30
  class TuiPreviewAction {
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
31
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPreviewAction, isStandalone: true, selector: "[tuiPreviewAction]", host: { properties: { "style.border-radius.rem": "100" } }, providers: [
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
32
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiPreviewAction, isStandalone: true, selector: "[tuiPreviewAction]", host: { properties: { "style.border-radius.rem": "100" } }, providers: [
32
33
  tuiButtonOptionsProvider({
33
34
  appearance: 'preview-action',
34
35
  size: 's',
35
36
  }),
36
37
  ], ngImport: i0 }); }
37
38
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewAction, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewAction, decorators: [{
39
40
  type: Directive,
40
41
  args: [{
41
- standalone: true,
42
42
  selector: '[tuiPreviewAction]',
43
43
  providers: [
44
44
  tuiButtonOptionsProvider({
@@ -56,14 +56,14 @@ class TuiPreviewDialog {
56
56
  constructor() {
57
57
  this.context = injectContext();
58
58
  }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
60
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiPreviewDialog, isStandalone: true, selector: "tui-preview-dialog", host: { listeners: { "document:keydown.esc.prevent": "context.$implicit.complete()" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
60
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiPreviewDialog, isStandalone: true, selector: "tui-preview-dialog", host: { listeners: { "document:keydown.esc.prevent": "context.$implicit.complete()" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
61
61
  <ng-container *polymorpheusOutlet="context.content as text; context: context">
62
62
  {{ text }}
63
63
  </ng-container>
64
- `, isInline: true, styles: ["tui-preview-dialog{inline-size:100%;block-size:100%;overflow:hidden}tui-preview-dialog.tui-enter,tui-preview-dialog.tui-leave{animation-name:tuiFade,tuiSlide}[tuiAppearance][data-appearance=preview-action]{background:#686868f5;color:#fff}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not(:disabled):not([data-state]){background:#9f9f9fdb}}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not(:disabled):not([data-state]){background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action][data-state=hover]{background:#9f9f9fdb}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action][tuiWrapper]:hover:not(._no-hover),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=hover]{background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not(:disabled):not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not(:disabled):not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][data-state=active]{background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][tuiWrapper]:active:not(._no-active),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active],[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active]:hover{background:#9f9f9fbf}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
64
+ `, isInline: true, styles: ["tui-preview-dialog{inline-size:100%;block-size:100%;overflow:hidden}tui-preview-dialog.tui-enter,tui-preview-dialog.tui-leave{animation-name:tuiFade,tuiSlide}[tuiAppearance][data-appearance=preview-action]{background:#686868f5;color:#fff}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not([data-state]){background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action][data-state=hover]{background:#9f9f9fdb}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action][tuiWrapper]:hover:not(._no-hover),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=hover]{background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][data-state=active]{background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][tuiWrapper]:active:not(._no-active),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active],[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active]:hover{background:#9f9f9fbf}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
65
65
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialog, decorators: [{
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialog, decorators: [{
67
67
  type: Component,
68
68
  args: [{ selector: 'tui-preview-dialog', imports: [PolymorpheusOutlet], template: `
69
69
  <ng-container *polymorpheusOutlet="context.content as text; context: context">
@@ -71,40 +71,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
71
71
  </ng-container>
72
72
  `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
73
73
  '(document:keydown.esc.prevent)': 'context.$implicit.complete()',
74
- }, styles: ["tui-preview-dialog{inline-size:100%;block-size:100%;overflow:hidden}tui-preview-dialog.tui-enter,tui-preview-dialog.tui-leave{animation-name:tuiFade,tuiSlide}[tuiAppearance][data-appearance=preview-action]{background:#686868f5;color:#fff}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not(:disabled):not([data-state]){background:#9f9f9fdb}}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not(:disabled):not([data-state]){background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action][data-state=hover]{background:#9f9f9fdb}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action][tuiWrapper]:hover:not(._no-hover),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=hover]{background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not(:disabled):not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not(:disabled):not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][data-state=active]{background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][tuiWrapper]:active:not(._no-active),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active],[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active]:hover{background:#9f9f9fbf}\n"] }]
74
+ }, styles: ["tui-preview-dialog{inline-size:100%;block-size:100%;overflow:hidden}tui-preview-dialog.tui-enter,tui-preview-dialog.tui-leave{animation-name:tuiFade,tuiSlide}[tuiAppearance][data-appearance=preview-action]{background:#686868f5;color:#fff}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not([data-state]){background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action][data-state=hover]{background:#9f9f9fdb}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action][tuiWrapper]:hover:not(._no-hover),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=hover]{background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][data-state=active]{background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][tuiWrapper]:active:not(._no-active),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active],[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active]:hover{background:#9f9f9fbf}\n"] }]
75
75
  }] });
76
76
 
77
- class TuiPreviewDialogService extends TuiPopoverService {
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
79
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogService, providedIn: 'root', useFactory: () => new TuiPreviewDialogService(TUI_DIALOGS, TuiPreviewDialog) }); }
77
+ class TuiPreviewDialogService extends TuiModalService {
78
+ constructor() {
79
+ super(...arguments);
80
+ this.options = {};
81
+ this.content = TuiPreviewDialog;
82
+ }
83
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
84
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogService, providedIn: 'root' }); }
80
85
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogService, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogService, decorators: [{
82
87
  type: Injectable,
83
88
  args: [{
84
89
  providedIn: 'root',
85
- useFactory: () => new TuiPreviewDialogService(TUI_DIALOGS, TuiPreviewDialog),
86
90
  }]
87
91
  }] });
88
92
 
89
- class TuiPreviewDialogDirective extends TuiPopoverDirective {
90
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
91
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPreviewDialogDirective, isStandalone: true, selector: "ng-template[tuiPreviewDialog]", inputs: { open: ["tuiPreviewDialog", "open"] }, outputs: { openChange: "tuiPreviewDialogChange" }, providers: [tuiAsPopover(TuiPreviewDialogService)], usesInheritance: true, ngImport: i0 }); }
93
+ class TuiPreviewDialogDirective {
94
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
95
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiPreviewDialogDirective, isStandalone: true, selector: "ng-template[tuiPreviewDialog]", providers: [tuiAsPortal(TuiPreviewDialogService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["open", "tuiPreviewDialog"], outputs: ["openChange", "tuiPreviewDialogChange"] }], ngImport: i0 }); }
92
96
  }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogDirective, decorators: [{
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogDirective, decorators: [{
94
98
  type: Directive,
95
99
  args: [{
96
- standalone: true,
97
100
  selector: 'ng-template[tuiPreviewDialog]',
98
- inputs: ['open: tuiPreviewDialog'],
99
- outputs: ['openChange: tuiPreviewDialogChange'],
100
- providers: [tuiAsPopover(TuiPreviewDialogService)],
101
+ providers: [tuiAsPortal(TuiPreviewDialogService)],
102
+ hostDirectives: [
103
+ {
104
+ directive: TuiPortalDirective,
105
+ inputs: ['open: tuiPreviewDialog'],
106
+ outputs: ['openChange: tuiPreviewDialogChange'],
107
+ },
108
+ ],
101
109
  }]
102
110
  }] });
103
111
 
112
+ const TUI_PREVIEW_ICONS_DEFAULT = {
113
+ rotate: '@tui.rotate-ccw-square',
114
+ prev: '@tui.arrow-left',
115
+ next: '@tui.arrow-right',
116
+ zoomIn: '@tui.plus',
117
+ zoomOut: '@tui.minus',
118
+ zoomReset: '@tui.minimize',
119
+ };
120
+ const [TUI_PREVIEW_ICONS, tuiPreviewIconsProvider] = tuiCreateOptions(TUI_PREVIEW_ICONS_DEFAULT);
121
+
104
122
  class TuiPreviewPagination {
105
123
  constructor() {
106
124
  this.icons = inject(TUI_PREVIEW_ICONS);
107
- this.texts$ = inject(TUI_PAGINATION_TEXTS);
125
+ this.paginationTexts = inject(TUI_PAGINATION_TEXTS);
108
126
  this.length = 1;
109
127
  this.index = 0;
110
128
  this.indexChange = new EventEmitter();
@@ -125,15 +143,15 @@ class TuiPreviewPagination {
125
143
  this.index = index;
126
144
  this.indexChange.emit(index);
127
145
  }
128
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
129
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiPreviewPagination, isStandalone: true, selector: "tui-preview-pagination", inputs: { length: "length", index: "index" }, outputs: { indexChange: "indexChange" }, host: { listeners: { "document:keydown.arrowRight.prevent": "onArrowClick(1)", "document:keydown.arrowLeft.prevent": "onArrowClick(-1)" } }, ngImport: i0, template: "@if (texts$ | async; as texts) {\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.prev\"\n (click)=\"onArrowClick(-1)\"\n >\n {{ texts[0] }}\n </button>\n {{ index + 1 }}/{{ length }}\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_right\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.next\"\n (click)=\"onArrowClick(1)\"\n >\n {{ texts[1] }}\n </button>\n}\n", styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:6.25rem}.t-arrow{transform:scaleX(var(--tui-inline))}.t-arrow_left{border-top-right-radius:0;border-bottom-right-radius:0}.t-arrow_right{border-top-left-radius:0;border-bottom-left-radius:0}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiPreviewAction, selector: "[tuiPreviewAction]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
146
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
147
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiPreviewPagination, isStandalone: true, selector: "tui-preview-pagination", inputs: { length: "length", index: "index" }, outputs: { indexChange: "indexChange" }, host: { listeners: { "document:keydown.arrowRight.prevent": "onArrowClick(1)", "document:keydown.arrowLeft.prevent": "onArrowClick(-1)" } }, ngImport: i0, template: "@let texts = paginationTexts();\n<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.prev\"\n (click)=\"onArrowClick(-1)\"\n>\n {{ texts[0] }}\n</button>\n{{ index + 1 }}/{{ length }}\n<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_right\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.next\"\n (click)=\"onArrowClick(1)\"\n>\n {{ texts[1] }}\n</button>\n", styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:6.25rem}.t-arrow{transform:scaleX(var(--tui-inline))}.t-arrow_left{border-top-right-radius:0;border-bottom-right-radius:0}.t-arrow_right{border-top-left-radius:0;border-bottom-left-radius:0}\n"], dependencies: [{ kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiPreviewAction, selector: "[tuiPreviewAction]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
130
148
  }
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewPagination, decorators: [{
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewPagination, decorators: [{
132
150
  type: Component,
133
- args: [{ selector: 'tui-preview-pagination', imports: [AsyncPipe, TuiButton, TuiPreviewAction], changeDetection: ChangeDetectionStrategy.OnPush, host: {
151
+ args: [{ selector: 'tui-preview-pagination', imports: [TuiButton, TuiPreviewAction], changeDetection: ChangeDetectionStrategy.OnPush, host: {
134
152
  '(document:keydown.arrowRight.prevent)': 'onArrowClick(1)',
135
153
  '(document:keydown.arrowLeft.prevent)': 'onArrowClick(-1)',
136
- }, template: "@if (texts$ | async; as texts) {\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.prev\"\n (click)=\"onArrowClick(-1)\"\n >\n {{ texts[0] }}\n </button>\n {{ index + 1 }}/{{ length }}\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_right\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.next\"\n (click)=\"onArrowClick(1)\"\n >\n {{ texts[1] }}\n </button>\n}\n", styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:6.25rem}.t-arrow{transform:scaleX(var(--tui-inline))}.t-arrow_left{border-top-right-radius:0;border-bottom-right-radius:0}.t-arrow_right{border-top-left-radius:0;border-bottom-left-radius:0}\n"] }]
154
+ }, template: "@let texts = paginationTexts();\n<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.prev\"\n (click)=\"onArrowClick(-1)\"\n>\n {{ texts[0] }}\n</button>\n{{ index + 1 }}/{{ length }}\n<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_right\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.next\"\n (click)=\"onArrowClick(1)\"\n>\n {{ texts[1] }}\n</button>\n", styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:6.25rem}.t-arrow{transform:scaleX(var(--tui-inline))}.t-arrow_left{border-top-right-radius:0;border-bottom-right-radius:0}.t-arrow_right{border-top-left-radius:0;border-bottom-left-radius:0}\n"] }]
137
155
  }], propDecorators: { length: [{
138
156
  type: Input
139
157
  }], index: [{
@@ -146,7 +164,8 @@ const STEP = 0.5;
146
164
  class TuiPreviewZoom {
147
165
  constructor() {
148
166
  this.icons = inject(TUI_PREVIEW_ICONS);
149
- this.zoomTexts$ = inject(TUI_PREVIEW_ZOOM_TEXTS);
167
+ this.zoomTexts = inject(TUI_PREVIEW_ZOOM_TEXTS);
168
+ this.sliderLabel = computed(() => `${this.zoomTexts().zoomOut} / ${this.zoomTexts().zoomIn}`);
150
169
  this.min = 0.5;
151
170
  this.max = 2;
152
171
  this.value = 1;
@@ -180,10 +199,10 @@ class TuiPreviewZoom {
180
199
  onPlus() {
181
200
  this.onModelChange(this.value < 1 ? 1 : this.value + STEP);
182
201
  }
183
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewZoom, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
184
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiPreviewZoom, isStandalone: true, selector: "tui-preview-zoom", inputs: { min: "min", max: "max", value: "value" }, outputs: { valueChange: "valueChange", reset: "reset" }, ngImport: i0, template: "@if (zoomTexts$ | async; as texts) {\n <section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"onMinus()\"\n >\n {{ texts.zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n <div\n [tuiHint]=\"hint\"\n [tuiHintManual]=\"!!(hintShow$ | async)\"\n ></div>\n <ng-template #hint>\n {{ (valueChange | async) || value | percent }}\n </ng-template>\n <input\n step=\"any\"\n tuiSlider\n tuiTheme=\"dark\"\n type=\"range\"\n class=\"t-slider\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onModelChange($event)\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"onPlus()\"\n >\n {{ texts.zoomIn }}\n </button>\n </section>\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"!collapseVisible\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts.reset\"\n (click)=\"onReset()\"\n ></button>\n}\n", styles: [":host{position:relative;display:flex}.t-zoom{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:12rem}.t-slider{inline-size:7.5rem}.t-sign_minus{border-top-right-radius:0;border-bottom-right-radius:0}.t-sign_plus{border-top-left-radius:0;border-bottom-left-radius:0}.t-invisible{visibility:hidden}.t-reset-button{margin-inline-start:.3125rem}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: PercentPipe, name: "percent" }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: i2.TuiHintDescribe, selector: "[tuiHintDescribe]", inputs: ["tuiHintDescribe"] }, { kind: "directive", type: i2.TuiHintManual, selector: "[tuiHint][tuiHintManual]", inputs: ["tuiHintManual"] }, { kind: "directive", type: TuiPreviewAction, selector: "[tuiPreviewAction]" }, { kind: "component", type: i3.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }, { kind: "component", type: i3.TuiSliderThumbLabel, selector: "[tuiSliderThumbLabel]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewZoom, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
203
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiPreviewZoom, isStandalone: true, selector: "tui-preview-zoom", inputs: { min: "min", max: "max", value: "value" }, outputs: { valueChange: "valueChange", reset: "reset" }, ngImport: i0, template: "@let texts = zoomTexts();\n<section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"onMinus()\"\n >\n {{ texts.zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n @let sliderValueText = (valueChange | async) || (value | percent);\n\n <div\n [tuiHint]=\"sliderValueText\"\n [tuiHintManual]=\"!!(hintShow$ | async)\"\n ></div>\n <input\n step=\"any\"\n tuiSlider\n tuiTheme=\"dark\"\n type=\"range\"\n class=\"t-slider\"\n [attr.aria-label]=\"sliderLabel()\"\n [attr.aria-valuetext]=\"sliderValueText\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onModelChange($event)\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"onPlus()\"\n >\n {{ texts.zoomIn }}\n </button>\n</section>\n<button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"!collapseVisible\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts.reset\"\n (click)=\"onReset()\"\n>\n {{ texts.reset }}\n</button>\n", styles: [":host{position:relative;display:flex}.t-zoom{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:12rem}.t-slider{inline-size:7.5rem}.t-sign_minus{border-top-right-radius:0;border-bottom-right-radius:0}.t-sign_plus{border-top-left-radius:0;border-bottom-left-radius:0}.t-invisible{visibility:hidden}.t-reset-button{margin-inline-start:.3125rem}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: PercentPipe, name: "percent" }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: i2.TuiHintDescribe, selector: "[tuiHintDescribe]", inputs: ["tuiHintDescribe"] }, { kind: "directive", type: i2.TuiHintManual, selector: "[tuiHint][tuiHintManual]", inputs: ["tuiHintManual"] }, { kind: "directive", type: TuiPreviewAction, selector: "[tuiPreviewAction]" }, { kind: "component", type: i3.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }, { kind: "component", type: i3.TuiSliderThumbLabel, selector: "[tuiSliderThumbLabel]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
185
204
  }
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewZoom, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewZoom, decorators: [{
187
206
  type: Component,
188
207
  args: [{ selector: 'tui-preview-zoom', imports: [
189
208
  AsyncPipe,
@@ -193,7 +212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
193
212
  TuiHint,
194
213
  TuiPreviewAction,
195
214
  TuiSlider,
196
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (zoomTexts$ | async; as texts) {\n <section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"onMinus()\"\n >\n {{ texts.zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n <div\n [tuiHint]=\"hint\"\n [tuiHintManual]=\"!!(hintShow$ | async)\"\n ></div>\n <ng-template #hint>\n {{ (valueChange | async) || value | percent }}\n </ng-template>\n <input\n step=\"any\"\n tuiSlider\n tuiTheme=\"dark\"\n type=\"range\"\n class=\"t-slider\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onModelChange($event)\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"onPlus()\"\n >\n {{ texts.zoomIn }}\n </button>\n </section>\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"!collapseVisible\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts.reset\"\n (click)=\"onReset()\"\n ></button>\n}\n", styles: [":host{position:relative;display:flex}.t-zoom{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:12rem}.t-slider{inline-size:7.5rem}.t-sign_minus{border-top-right-radius:0;border-bottom-right-radius:0}.t-sign_plus{border-top-left-radius:0;border-bottom-left-radius:0}.t-invisible{visibility:hidden}.t-reset-button{margin-inline-start:.3125rem}\n"] }]
215
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let texts = zoomTexts();\n<section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"onMinus()\"\n >\n {{ texts.zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n @let sliderValueText = (valueChange | async) || (value | percent);\n\n <div\n [tuiHint]=\"sliderValueText\"\n [tuiHintManual]=\"!!(hintShow$ | async)\"\n ></div>\n <input\n step=\"any\"\n tuiSlider\n tuiTheme=\"dark\"\n type=\"range\"\n class=\"t-slider\"\n [attr.aria-label]=\"sliderLabel()\"\n [attr.aria-valuetext]=\"sliderValueText\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onModelChange($event)\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"onPlus()\"\n >\n {{ texts.zoomIn }}\n </button>\n</section>\n<button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"!collapseVisible\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts.reset\"\n (click)=\"onReset()\"\n>\n {{ texts.reset }}\n</button>\n", styles: [":host{position:relative;display:flex}.t-zoom{border-radius:1rem;background:#686868f5;color:#fff;display:flex;font:var(--tui-font-text-s);justify-content:space-between;align-items:center;inline-size:12rem}.t-slider{inline-size:7.5rem}.t-sign_minus{border-top-right-radius:0;border-bottom-right-radius:0}.t-sign_plus{border-top-left-radius:0;border-bottom-left-radius:0}.t-invisible{visibility:hidden}.t-reset-button{margin-inline-start:.3125rem}\n"] }]
197
216
  }], propDecorators: { min: [{
198
217
  type: Input
199
218
  }], max: [{
@@ -214,7 +233,7 @@ class TuiPreviewComponent {
214
233
  this.minZoom = 1;
215
234
  this.width = 0;
216
235
  this.height = 0;
217
- this.texts$ = inject(TUI_PREVIEW_TEXTS);
236
+ this.previewTexts = inject(TUI_PREVIEW_TEXTS);
218
237
  this.icons = inject(TUI_PREVIEW_ICONS);
219
238
  this.cdr = inject(ChangeDetectorRef);
220
239
  this.zoom$ = new BehaviorSubject(this.minZoom);
@@ -303,10 +322,10 @@ class TuiPreviewComponent {
303
322
  (clientY - y - this.el.offsetHeight / 2) / scale,
304
323
  ];
305
324
  }
306
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
307
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiPreviewComponent, isStandalone: true, selector: "tui-preview", inputs: { zoomable: "zoomable", rotatable: "rotatable", initialScale: "initialScale" }, ngImport: i0, template: "@if (texts$ | async; as texts) {\n <section\n #contentWrapper\n attributeFilter=\"src\"\n characterData\n childList\n subtree\n class=\"t-wrapper\"\n [class.t-not-interactive-content]=\"zoomable\"\n [class.t-transitive]=\"transitioned$ | async\"\n [style.cursor]=\"cursor$ | async\"\n [style.transform]=\"wrapperTransform$ | async\"\n (tuiPan)=\"onPan($event)\"\n (tuiZoom)=\"onZoom($event)\"\n (waMutationObserver)=\"onMutation(contentWrapper)\"\n (waResizeObserver)=\"onResize($event)\"\n >\n <ng-content />\n </section>\n <header class=\"t-header\">\n <div class=\"t-title\">\n <ng-content select=\"tui-preview-title\" />\n </div>\n <ng-content select=\"tui-preview-pagination\" />\n <div class=\"t-actions\">\n <ng-content select=\"[tuiPreviewAction]\" />\n </div>\n </header>\n <footer class=\"t-footer\">\n @if (rotatable) {\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-rotate-button\"\n [iconStart]=\"icons.rotate\"\n [tuiHint]=\"texts.rotate\"\n (click)=\"rotate()\"\n ></button>\n }\n @if (zoomable) {\n <tui-preview-zoom\n [min]=\"minZoom\"\n [value]=\"(zoom$ | async) || 1\"\n (reset)=\"reset()\"\n (valueChange)=\"setZoom($event)\"\n />\n }\n </footer>\n}\n", styles: [":host{position:relative;display:flex;justify-content:center;align-items:center;inline-size:100%;block-size:100%;-webkit-user-select:none;user-select:none}.t-header{position:fixed;top:max(1rem,env(safe-area-inset-top));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box}.t-footer{position:absolute;bottom:max(1rem,env(safe-area-inset-bottom));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box;justify-content:center}.t-actions{display:flex;flex:1;justify-content:flex-end}.t-actions ::ng-deep>*{margin-inline-start:.625rem}.t-rotate-button{margin-inline-end:.3125rem}.t-title{flex:1}:host-context(tui-root._mobile) .t-title{display:none}.t-not-interactive-content ::ng-deep>*{pointer-events:none}.t-wrapper{will-change:transform}.t-transitive{transition-duration:.3s}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: i2.TuiHintDescribe, selector: "[tuiHintDescribe]", inputs: ["tuiHintDescribe"] }, { kind: "directive", type: TuiPan, selector: "[tuiPan]", outputs: ["tuiPan"] }, { kind: "directive", type: TuiPreviewAction, selector: "[tuiPreviewAction]" }, { kind: "component", type: TuiPreviewZoom, selector: "tui-preview-zoom", inputs: ["min", "max", "value"], outputs: ["valueChange", "reset"] }, { kind: "directive", type: TuiZoom, selector: "[tuiZoom]", outputs: ["tuiZoom"] }, { kind: "directive", type: WaMutationObserver, selector: "[waMutationObserver]", inputs: ["attributeFilter", "attributeOldValue", "attributes", "characterData", "characterDataOldValue", "childList", "subtree"], outputs: ["waMutationObserver"], exportAs: ["MutationObserver"] }, { kind: "directive", type: WaResizeObserver, selector: "[waResizeObserver]", inputs: ["box"], outputs: ["waResizeObserver"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
325
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
326
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiPreviewComponent, isStandalone: true, selector: "tui-preview", inputs: { zoomable: "zoomable", rotatable: "rotatable", initialScale: "initialScale" }, ngImport: i0, template: "@let texts = previewTexts();\n<section\n #contentWrapper\n attributeFilter=\"src\"\n characterData\n childList\n subtree\n class=\"t-wrapper\"\n [class.t-not-interactive-content]=\"zoomable\"\n [class.t-transitive]=\"transitioned$ | async\"\n [style.cursor]=\"cursor$ | async\"\n [style.transform]=\"wrapperTransform$ | async\"\n (tuiPan)=\"onPan($event)\"\n (tuiZoom)=\"onZoom($event)\"\n (waMutationObserver)=\"onMutation(contentWrapper)\"\n (waResizeObserver)=\"onResize($event)\"\n>\n <ng-content />\n</section>\n<header class=\"t-header\">\n <div class=\"t-title\">\n <ng-content select=\"tui-preview-title\" />\n </div>\n <ng-content select=\"tui-preview-pagination\" />\n <div class=\"t-actions\">\n <ng-content select=\"[tuiPreviewAction]\" />\n </div>\n</header>\n<footer class=\"t-footer\">\n @if (rotatable) {\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-rotate-button\"\n [iconStart]=\"icons.rotate\"\n [tuiHint]=\"texts.rotate\"\n (click)=\"rotate()\"\n ></button>\n }\n @if (zoomable) {\n <tui-preview-zoom\n [min]=\"minZoom\"\n [value]=\"(zoom$ | async) || 1\"\n (reset)=\"reset()\"\n (valueChange)=\"setZoom($event)\"\n />\n }\n</footer>\n", styles: [":host{position:relative;display:flex;justify-content:center;align-items:center;inline-size:100%;block-size:100%;-webkit-user-select:none;user-select:none}.t-header{position:fixed;top:max(1rem,env(safe-area-inset-top));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box}.t-footer{position:absolute;bottom:max(1rem,env(safe-area-inset-bottom));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box;justify-content:center}.t-actions{display:flex;flex:1;justify-content:flex-end}.t-actions ::ng-deep>*{margin-inline-start:.625rem}.t-rotate-button{margin-inline-end:.3125rem}.t-title{flex:1}:host-context(tui-root._mobile) .t-title{display:none}.t-not-interactive-content ::ng-deep>*{pointer-events:none}.t-wrapper{will-change:transform}.t-transitive{transition-duration:.3s}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: i2.TuiHintDescribe, selector: "[tuiHintDescribe]", inputs: ["tuiHintDescribe"] }, { kind: "directive", type: TuiPan, selector: "[tuiPan]", outputs: ["tuiPan"] }, { kind: "directive", type: TuiPreviewAction, selector: "[tuiPreviewAction]" }, { kind: "component", type: TuiPreviewZoom, selector: "tui-preview-zoom", inputs: ["min", "max", "value"], outputs: ["valueChange", "reset"] }, { kind: "directive", type: TuiZoom, selector: "[tuiZoom]", outputs: ["tuiZoom"] }, { kind: "directive", type: WaMutationObserver, selector: "[waMutationObserver]", inputs: ["attributeFilter", "attributeOldValue", "attributes", "characterData", "characterDataOldValue", "childList", "subtree"], outputs: ["waMutationObserver"], exportAs: ["MutationObserver"] }, { kind: "directive", type: WaResizeObserver, selector: "[waResizeObserver]", inputs: ["box"], outputs: ["waResizeObserver"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
308
327
  }
309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewComponent, decorators: [{
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewComponent, decorators: [{
310
329
  type: Component,
311
330
  args: [{ selector: 'tui-preview', imports: [
312
331
  AsyncPipe,
@@ -318,7 +337,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
318
337
  TuiZoom,
319
338
  WaMutationObserver,
320
339
  WaResizeObserver,
321
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (texts$ | async; as texts) {\n <section\n #contentWrapper\n attributeFilter=\"src\"\n characterData\n childList\n subtree\n class=\"t-wrapper\"\n [class.t-not-interactive-content]=\"zoomable\"\n [class.t-transitive]=\"transitioned$ | async\"\n [style.cursor]=\"cursor$ | async\"\n [style.transform]=\"wrapperTransform$ | async\"\n (tuiPan)=\"onPan($event)\"\n (tuiZoom)=\"onZoom($event)\"\n (waMutationObserver)=\"onMutation(contentWrapper)\"\n (waResizeObserver)=\"onResize($event)\"\n >\n <ng-content />\n </section>\n <header class=\"t-header\">\n <div class=\"t-title\">\n <ng-content select=\"tui-preview-title\" />\n </div>\n <ng-content select=\"tui-preview-pagination\" />\n <div class=\"t-actions\">\n <ng-content select=\"[tuiPreviewAction]\" />\n </div>\n </header>\n <footer class=\"t-footer\">\n @if (rotatable) {\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-rotate-button\"\n [iconStart]=\"icons.rotate\"\n [tuiHint]=\"texts.rotate\"\n (click)=\"rotate()\"\n ></button>\n }\n @if (zoomable) {\n <tui-preview-zoom\n [min]=\"minZoom\"\n [value]=\"(zoom$ | async) || 1\"\n (reset)=\"reset()\"\n (valueChange)=\"setZoom($event)\"\n />\n }\n </footer>\n}\n", styles: [":host{position:relative;display:flex;justify-content:center;align-items:center;inline-size:100%;block-size:100%;-webkit-user-select:none;user-select:none}.t-header{position:fixed;top:max(1rem,env(safe-area-inset-top));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box}.t-footer{position:absolute;bottom:max(1rem,env(safe-area-inset-bottom));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box;justify-content:center}.t-actions{display:flex;flex:1;justify-content:flex-end}.t-actions ::ng-deep>*{margin-inline-start:.625rem}.t-rotate-button{margin-inline-end:.3125rem}.t-title{flex:1}:host-context(tui-root._mobile) .t-title{display:none}.t-not-interactive-content ::ng-deep>*{pointer-events:none}.t-wrapper{will-change:transform}.t-transitive{transition-duration:.3s}\n"] }]
340
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "@let texts = previewTexts();\n<section\n #contentWrapper\n attributeFilter=\"src\"\n characterData\n childList\n subtree\n class=\"t-wrapper\"\n [class.t-not-interactive-content]=\"zoomable\"\n [class.t-transitive]=\"transitioned$ | async\"\n [style.cursor]=\"cursor$ | async\"\n [style.transform]=\"wrapperTransform$ | async\"\n (tuiPan)=\"onPan($event)\"\n (tuiZoom)=\"onZoom($event)\"\n (waMutationObserver)=\"onMutation(contentWrapper)\"\n (waResizeObserver)=\"onResize($event)\"\n>\n <ng-content />\n</section>\n<header class=\"t-header\">\n <div class=\"t-title\">\n <ng-content select=\"tui-preview-title\" />\n </div>\n <ng-content select=\"tui-preview-pagination\" />\n <div class=\"t-actions\">\n <ng-content select=\"[tuiPreviewAction]\" />\n </div>\n</header>\n<footer class=\"t-footer\">\n @if (rotatable) {\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-rotate-button\"\n [iconStart]=\"icons.rotate\"\n [tuiHint]=\"texts.rotate\"\n (click)=\"rotate()\"\n ></button>\n }\n @if (zoomable) {\n <tui-preview-zoom\n [min]=\"minZoom\"\n [value]=\"(zoom$ | async) || 1\"\n (reset)=\"reset()\"\n (valueChange)=\"setZoom($event)\"\n />\n }\n</footer>\n", styles: [":host{position:relative;display:flex;justify-content:center;align-items:center;inline-size:100%;block-size:100%;-webkit-user-select:none;user-select:none}.t-header{position:fixed;top:max(1rem,env(safe-area-inset-top));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box}.t-footer{position:absolute;bottom:max(1rem,env(safe-area-inset-bottom));display:flex;inline-size:100%;padding:0 1rem;box-sizing:border-box;justify-content:center}.t-actions{display:flex;flex:1;justify-content:flex-end}.t-actions ::ng-deep>*{margin-inline-start:.625rem}.t-rotate-button{margin-inline-end:.3125rem}.t-title{flex:1}:host-context(tui-root._mobile) .t-title{display:none}.t-not-interactive-content ::ng-deep>*{pointer-events:none}.t-wrapper{will-change:transform}.t-transitive{transition-duration:.3s}\n"] }]
322
341
  }], propDecorators: { zoomable: [{
323
342
  type: Input
324
343
  }], rotatable: [{
@@ -328,20 +347,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
328
347
  }] } });
329
348
 
330
349
  class TuiPreviewTitle {
331
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewTitle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
332
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiPreviewTitle, isStandalone: true, selector: "tui-preview-title", ngImport: i0, template: `
350
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewTitle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
351
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiPreviewTitle, isStandalone: true, selector: "tui-preview-title", ngImport: i0, template: `
333
352
  <ng-content />
334
353
  `, isInline: true, styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:inline-block;font:var(--tui-font-text-s);padding:.375rem .75rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
335
354
  }
336
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewTitle, decorators: [{
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewTitle, decorators: [{
337
356
  type: Component,
338
- args: [{ standalone: true, selector: 'tui-preview-title', template: `
357
+ args: [{ selector: 'tui-preview-title', template: `
339
358
  <ng-content />
340
359
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:inline-block;font:var(--tui-font-text-s);padding:.375rem .75rem}\n"] }]
341
360
  }] });
342
361
 
343
362
  const TuiPreview = [
344
363
  TuiPreviewComponent,
364
+ TuiPreviewDialogDirective,
345
365
  TuiPreviewTitle,
346
366
  TuiPreviewPagination,
347
367
  TuiPreviewAction,
@@ -352,5 +372,5 @@ const TuiPreview = [
352
372
  * Generated bundle index. Do not edit.
353
373
  */
354
374
 
355
- export { TuiPreview, TuiPreviewAction, TuiPreviewComponent, TuiPreviewDialog, TuiPreviewDialogDirective, TuiPreviewDialogService, TuiPreviewPagination, TuiPreviewTitle, TuiPreviewZoom };
375
+ export { TUI_PREVIEW_ICONS, TUI_PREVIEW_ICONS_DEFAULT, TuiPreview, TuiPreviewAction, TuiPreviewComponent, TuiPreviewDialog, TuiPreviewDialogDirective, TuiPreviewDialogService, TuiPreviewPagination, TuiPreviewTitle, TuiPreviewZoom, tuiPreviewIconsProvider };
356
376
  //# sourceMappingURL=taiga-ui-kit-components-preview.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-preview.mjs","sources":["../../../projects/kit/components/preview/action/preview-action.directive.ts","../../../projects/kit/components/preview/dialog/preview-dialog.component.ts","../../../projects/kit/components/preview/dialog/preview-dialog.service.ts","../../../projects/kit/components/preview/dialog/preview-dialog.directive.ts","../../../projects/kit/components/preview/pagination/preview-pagination.component.ts","../../../projects/kit/components/preview/pagination/preview-pagination.template.html","../../../projects/kit/components/preview/zoom/preview-zoom.component.ts","../../../projects/kit/components/preview/zoom/preview-zoom.template.html","../../../projects/kit/components/preview/preview.component.ts","../../../projects/kit/components/preview/preview.template.html","../../../projects/kit/components/preview/title/preview-title.component.ts","../../../projects/kit/components/preview/preview.ts","../../../projects/kit/components/preview/taiga-ui-kit-components-preview.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\n\n@Directive({\n standalone: true,\n selector: '[tuiPreviewAction]',\n providers: [\n tuiButtonOptionsProvider({\n appearance: 'preview-action',\n size: 's',\n }),\n ],\n host: {\n '[style.border-radius.rem]': '100',\n },\n})\nexport class TuiPreviewAction {}\n","import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-preview-dialog',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n {{ text }}\n </ng-container>\n `,\n styleUrls: ['./preview-dialog.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n '(document:keydown.esc.prevent)': 'context.$implicit.complete()',\n },\n})\nexport class TuiPreviewDialog {\n protected readonly context = injectContext<TuiPopover<void, void>>();\n}\n","import {Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {TuiPreviewDialog} from './preview-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () => new TuiPreviewDialogService(TUI_DIALOGS, TuiPreviewDialog),\n})\nexport class TuiPreviewDialogService extends TuiPopoverService<unknown> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {TuiPreviewDialogService} from './preview-dialog.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiPreviewDialog]',\n inputs: ['open: tuiPreviewDialog'],\n outputs: ['openChange: tuiPreviewDialogChange'],\n providers: [tuiAsPopover(TuiPreviewDialogService)],\n})\nexport class TuiPreviewDialogDirective extends TuiPopoverDirective<unknown> {}\n","import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_PAGINATION_TEXTS, TUI_PREVIEW_ICONS} from '@taiga-ui/kit/tokens';\n\nimport {TuiPreviewAction} from '../action/preview-action.directive';\n\n@Component({\n selector: 'tui-preview-pagination',\n imports: [AsyncPipe, TuiButton, TuiPreviewAction],\n templateUrl: './preview-pagination.template.html',\n styleUrls: ['./preview-pagination.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:keydown.arrowRight.prevent)': 'onArrowClick(1)',\n '(document:keydown.arrowLeft.prevent)': 'onArrowClick(-1)',\n },\n})\nexport class TuiPreviewPagination {\n protected readonly icons = inject(TUI_PREVIEW_ICONS);\n protected readonly texts$ = inject(TUI_PAGINATION_TEXTS);\n\n @Input()\n public length = 1;\n\n @Input()\n public index = 0;\n\n @Output()\n public readonly indexChange = new EventEmitter<number>();\n\n public onArrowClick(step: number): void {\n this.updateIndex(tuiClamp(this.index + step, 0, this.length - 1));\n }\n\n protected get leftButtonDisabled(): boolean {\n return this.index === 0;\n }\n\n protected get rightButtonDisabled(): boolean {\n return this.index === this.length - 1;\n }\n\n private updateIndex(index: number): void {\n if (this.index === index) {\n return;\n }\n\n this.index = index;\n this.indexChange.emit(index);\n }\n}\n","@if (texts$ | async; as texts) {\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.prev\"\n (click)=\"onArrowClick(-1)\"\n >\n {{ texts[0] }}\n </button>\n {{ index + 1 }}/{{ length }}\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_right\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.next\"\n (click)=\"onArrowClick(1)\"\n >\n {{ texts[1] }}\n </button>\n}\n","import {AsyncPipe, PercentPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport {TuiSlider} from '@taiga-ui/kit/components/slider';\nimport {TUI_PREVIEW_ICONS, TUI_PREVIEW_ZOOM_TEXTS} from '@taiga-ui/kit/tokens';\nimport {map, merge, of, startWith, switchMap, timer} from 'rxjs';\n\nimport {TuiPreviewAction} from '../action/preview-action.directive';\n\nconst STEP = 0.5;\n\n@Component({\n selector: 'tui-preview-zoom',\n imports: [\n AsyncPipe,\n FormsModule,\n PercentPipe,\n TuiButton,\n TuiHint,\n TuiPreviewAction,\n TuiSlider,\n ],\n templateUrl: './preview-zoom.template.html',\n styleUrls: ['./preview-zoom.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPreviewZoom {\n protected readonly icons = inject(TUI_PREVIEW_ICONS);\n protected readonly zoomTexts$ = inject(TUI_PREVIEW_ZOOM_TEXTS);\n\n @Input()\n public min = 0.5;\n\n @Input()\n public max = 2;\n\n @Input()\n public value = 1;\n\n @Output()\n public readonly valueChange = new EventEmitter<number>();\n\n @Output()\n public readonly reset = new EventEmitter<void>();\n\n public readonly hintShow$ = this.valueChange.pipe(\n switchMap(() => merge(of(true), timer(1000).pipe(map(TUI_FALSE_HANDLER)))),\n startWith(false),\n );\n\n protected get leftButtonDisabled(): boolean {\n return this.value === this.min;\n }\n\n protected get rightButtonDisabled(): boolean {\n return this.value === this.max;\n }\n\n protected get collapseVisible(): boolean {\n return this.value > this.min;\n }\n\n protected onModelChange(value: number): void {\n const clamped = tuiClamp(value, this.min, this.max);\n\n if (clamped === this.value) {\n return;\n }\n\n this.value = clamped;\n this.valueChange.emit(clamped);\n }\n\n protected onReset(): void {\n this.reset.emit();\n }\n\n protected onMinus(): void {\n this.onModelChange(this.value - STEP);\n }\n\n protected onPlus(): void {\n this.onModelChange(this.value < 1 ? 1 : this.value + STEP);\n }\n}\n","@if (zoomTexts$ | async; as texts) {\n <section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"onMinus()\"\n >\n {{ texts.zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n <div\n [tuiHint]=\"hint\"\n [tuiHintManual]=\"!!(hintShow$ | async)\"\n ></div>\n <ng-template #hint>\n {{ (valueChange | async) || value | percent }}\n </ng-template>\n <input\n step=\"any\"\n tuiSlider\n tuiTheme=\"dark\"\n type=\"range\"\n class=\"t-slider\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onModelChange($event)\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"onPlus()\"\n >\n {{ texts.zoomIn }}\n </button>\n </section>\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"!collapseVisible\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts.reset\"\n (click)=\"onReset()\"\n ></button>\n}\n","import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n inject,\n Input,\n} from '@angular/core';\nimport {WaMutationObserver} from '@ng-web-apis/mutation-observer';\nimport {WaResizeObserver} from '@ng-web-apis/resize-observer';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {TuiPan} from '@taiga-ui/cdk/directives/pan';\nimport {TuiZoom, type TuiZoomEvent} from '@taiga-ui/cdk/directives/zoom';\nimport {tuiDragAndDropFrom, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp, tuiRound} from '@taiga-ui/cdk/utils/math';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport {TUI_PREVIEW_ICONS, TUI_PREVIEW_TEXTS} from '@taiga-ui/kit/tokens';\nimport {BehaviorSubject, combineLatest, map, merge, startWith} from 'rxjs';\n\nimport {TuiPreviewAction} from './action/preview-action.directive';\nimport {TuiPreviewZoom} from './zoom/preview-zoom.component';\n\nconst EMPTY_COORDINATES: [number, number] = [0, 0];\nconst ROTATION_ANGLE = 90;\n\n@Component({\n selector: 'tui-preview',\n imports: [\n AsyncPipe,\n TuiButton,\n TuiHint,\n TuiPan,\n TuiPreviewAction,\n TuiPreviewZoom,\n TuiZoom,\n WaMutationObserver,\n WaResizeObserver,\n ],\n templateUrl: './preview.template.html',\n styleUrls: ['./preview.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPreviewComponent {\n private readonly el = tuiInjectElement();\n\n protected minZoom = 1;\n protected width = 0;\n protected height = 0;\n protected readonly texts$ = inject(TUI_PREVIEW_TEXTS);\n protected readonly icons = inject(TUI_PREVIEW_ICONS);\n protected readonly cdr = inject(ChangeDetectorRef);\n protected readonly zoom$ = new BehaviorSubject<number>(this.minZoom);\n protected readonly rotation$ = new BehaviorSubject<number>(0);\n protected readonly coordinates$ = new BehaviorSubject<readonly [number, number]>(\n EMPTY_COORDINATES,\n );\n\n protected readonly transitioned$ = merge(\n tuiDragAndDropFrom(this.el).pipe(map(({stage}) => stage !== 'continues')),\n tuiTypedFromEvent(this.el, 'touchmove', {\n passive: true,\n }).pipe(map(TUI_FALSE_HANDLER)),\n tuiTypedFromEvent(this.el, 'wheel', {passive: true}).pipe(map(TUI_FALSE_HANDLER)),\n );\n\n protected readonly cursor$ = tuiDragAndDropFrom(this.el).pipe(\n map(({stage}) => (stage === 'continues' ? 'grabbing' : 'initial')),\n startWith('initial'),\n );\n\n protected readonly wrapperTransform$ = combineLatest([\n this.coordinates$.pipe(map(([x, y]) => `${tuiPx(x)}, ${tuiPx(y)}`)),\n this.zoom$,\n this.rotation$,\n ]).pipe(\n map(\n ([translate, zoom, rotation]) =>\n `translate(${translate}) scale(${zoom}) rotate(${rotation}deg)`,\n ),\n );\n\n @Input()\n public zoomable = true;\n\n @Input()\n public rotatable = false;\n\n @Input()\n public initialScale = 0.8;\n\n protected rotate(): void {\n this.rotation$.next(this.rotation$.value - ROTATION_ANGLE);\n }\n\n protected onPan(delta: readonly [number, number]): void {\n this.coordinates$.next(\n this.getGuardedCoordinates(\n this.coordinates$.value[0] + delta[0],\n this.coordinates$.value[1] + delta[1],\n ),\n );\n }\n\n protected onMutation(contentWrapper: HTMLElement): void {\n const {clientWidth, clientHeight} = contentWrapper;\n\n this.refresh(clientWidth, clientHeight);\n }\n\n protected onZoom({clientX, clientY, delta}: TuiZoomEvent): void {\n if (this.zoomable) {\n this.processZoom(clientX, clientY, delta);\n }\n }\n\n protected onResize([entry]: readonly ResizeObserverEntry[]): void {\n if (entry?.contentRect) {\n this.refresh(entry.contentRect.width, entry.contentRect.height);\n this.cdr.detectChanges();\n }\n }\n\n protected reset(): void {\n this.zoom$.next(this.minZoom);\n this.coordinates$.next(EMPTY_COORDINATES);\n }\n\n protected setZoom(zoom: number): void {\n this.zoom$.next(zoom);\n const [x, y] = this.coordinates$.value;\n\n this.coordinates$.next(this.getGuardedCoordinates(x, y));\n }\n\n private get offsets(): {offsetX: number; offsetY: number} {\n const offsetX = ((this.zoom$.value - this.minZoom) * this.width) / 2;\n const offsetY = ((this.zoom$.value - this.minZoom) * this.height) / 2;\n\n return {offsetX, offsetY};\n }\n\n private calculateMinZoom(\n contentHeight: number,\n contentWidth: number,\n boxHeight: number,\n boxWidth: number,\n ): number {\n const bigSize =\n contentHeight > boxHeight * this.initialScale ||\n contentWidth > boxWidth * this.initialScale;\n const {clientHeight, clientWidth} = this.el;\n\n return bigSize\n ? tuiRound(\n Math.min(\n (clientHeight * this.initialScale) / contentHeight,\n (clientWidth * this.initialScale) / contentWidth,\n ),\n 2,\n )\n : 1;\n }\n\n private refresh(width: number, height: number): void {\n this.width = width;\n this.height = height;\n this.minZoom = this.calculateMinZoom(\n height,\n width,\n this.el.clientHeight,\n this.el.clientWidth,\n );\n this.zoom$.next(this.minZoom);\n this.coordinates$.next(EMPTY_COORDINATES);\n this.rotation$.next(0);\n }\n\n private processZoom(clientX: number, clientY: number, delta: number): void {\n const oldScale = this.zoom$.value;\n const newScale = tuiClamp(oldScale + delta, this.minZoom, 2);\n\n const center = this.getScaleCenter(\n {clientX, clientY},\n this.coordinates$.value,\n this.zoom$.value,\n );\n\n const moveX = center[0] * oldScale - center[0] * newScale;\n const moveY = center[1] * oldScale - center[1] * newScale;\n\n this.zoom$.next(newScale);\n this.coordinates$.next(\n this.getGuardedCoordinates(\n this.coordinates$.value[0] + moveX,\n this.coordinates$.value[1] + moveY,\n ),\n );\n }\n\n private getGuardedCoordinates(x: number, y: number): readonly [number, number] {\n const {offsetX, offsetY} = this.offsets;\n\n return [tuiClamp(x, -offsetX, offsetX), tuiClamp(y, -offsetY, offsetY)];\n }\n\n private getScaleCenter(\n {clientX, clientY}: {clientX: number; clientY: number},\n [x, y]: readonly [number, number],\n scale: number,\n ): [number, number] {\n return [\n (clientX - x - this.el.offsetWidth / 2) / scale,\n (clientY - y - this.el.offsetHeight / 2) / scale,\n ];\n }\n}\n","@if (texts$ | async; as texts) {\n <section\n #contentWrapper\n attributeFilter=\"src\"\n characterData\n childList\n subtree\n class=\"t-wrapper\"\n [class.t-not-interactive-content]=\"zoomable\"\n [class.t-transitive]=\"transitioned$ | async\"\n [style.cursor]=\"cursor$ | async\"\n [style.transform]=\"wrapperTransform$ | async\"\n (tuiPan)=\"onPan($event)\"\n (tuiZoom)=\"onZoom($event)\"\n (waMutationObserver)=\"onMutation(contentWrapper)\"\n (waResizeObserver)=\"onResize($event)\"\n >\n <ng-content />\n </section>\n <header class=\"t-header\">\n <div class=\"t-title\">\n <ng-content select=\"tui-preview-title\" />\n </div>\n <ng-content select=\"tui-preview-pagination\" />\n <div class=\"t-actions\">\n <ng-content select=\"[tuiPreviewAction]\" />\n </div>\n </header>\n <footer class=\"t-footer\">\n @if (rotatable) {\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-rotate-button\"\n [iconStart]=\"icons.rotate\"\n [tuiHint]=\"texts.rotate\"\n (click)=\"rotate()\"\n ></button>\n }\n @if (zoomable) {\n <tui-preview-zoom\n [min]=\"minZoom\"\n [value]=\"(zoom$ | async) || 1\"\n (reset)=\"reset()\"\n (valueChange)=\"setZoom($event)\"\n />\n }\n </footer>\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n standalone: true,\n selector: 'tui-preview-title',\n template: `\n <ng-content />\n `,\n styleUrls: ['./preview-title.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPreviewTitle {}\n","import {TuiPreviewAction} from './action/preview-action.directive';\nimport {TuiPreviewPagination} from './pagination/preview-pagination.component';\nimport {TuiPreviewComponent} from './preview.component';\nimport {TuiPreviewTitle} from './title/preview-title.component';\nimport {TuiPreviewZoom} from './zoom/preview-zoom.component';\n\nexport const TuiPreview = [\n TuiPreviewComponent,\n TuiPreviewTitle,\n TuiPreviewPagination,\n TuiPreviewAction,\n TuiPreviewZoom,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBa,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IA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T3B,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,mBAAmB,EACnB,QAAA,EAAA;;KAET,EAEgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,qIAAA,CAAA,EAAA;;;ACHtC,MAAA,UAAU,GAAG;IACtB,mBAAmB;IACnB,eAAe;IACf,oBAAoB;IACpB,gBAAgB;IAChB,cAAc;;;ACXlB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-preview.mjs","sources":["../../../projects/kit/components/preview/action/preview-action.directive.ts","../../../projects/kit/components/preview/dialog/preview-dialog.component.ts","../../../projects/kit/components/preview/dialog/preview-dialog.service.ts","../../../projects/kit/components/preview/dialog/preview-dialog.directive.ts","../../../projects/kit/components/preview/preview.options.ts","../../../projects/kit/components/preview/pagination/preview-pagination.component.ts","../../../projects/kit/components/preview/pagination/preview-pagination.template.html","../../../projects/kit/components/preview/zoom/preview-zoom.component.ts","../../../projects/kit/components/preview/zoom/preview-zoom.template.html","../../../projects/kit/components/preview/preview.component.ts","../../../projects/kit/components/preview/preview.template.html","../../../projects/kit/components/preview/title/preview-title.component.ts","../../../projects/kit/components/preview/preview.ts","../../../projects/kit/components/preview/taiga-ui-kit-components-preview.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\n\n@Directive({\n selector: '[tuiPreviewAction]',\n providers: [\n tuiButtonOptionsProvider({\n appearance: 'preview-action',\n size: 's',\n }),\n ],\n host: {\n '[style.border-radius.rem]': '100',\n },\n})\nexport class TuiPreviewAction {}\n","import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-preview-dialog',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n {{ text }}\n </ng-container>\n `,\n styleUrl: './preview-dialog.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n '(document:keydown.esc.prevent)': 'context.$implicit.complete()',\n },\n})\nexport class TuiPreviewDialog {\n protected readonly context = injectContext<TuiPortalContext<void>>();\n}\n","import {Injectable} from '@angular/core';\nimport {TuiModalService} from '@taiga-ui/core/portals/modal';\n\nimport {TuiPreviewDialog} from './preview-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiPreviewDialogService extends TuiModalService<unknown> {\n protected readonly options = {};\n protected readonly content = TuiPreviewDialog;\n}\n","import {Directive} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\n\nimport {TuiPreviewDialogService} from './preview-dialog.service';\n\n@Directive({\n selector: 'ng-template[tuiPreviewDialog]',\n providers: [tuiAsPortal(TuiPreviewDialogService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['open: tuiPreviewDialog'],\n outputs: ['openChange: tuiPreviewDialogChange'],\n },\n ],\n})\nexport class TuiPreviewDialogDirective {}\n","import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiPreviewIcons {\n readonly next: string;\n readonly prev: string;\n readonly rotate: string;\n readonly zoomIn: string;\n readonly zoomOut: string;\n readonly zoomReset: string;\n}\n\nexport const TUI_PREVIEW_ICONS_DEFAULT: TuiPreviewIcons = {\n rotate: '@tui.rotate-ccw-square',\n prev: '@tui.arrow-left',\n next: '@tui.arrow-right',\n zoomIn: '@tui.plus',\n zoomOut: '@tui.minus',\n zoomReset: '@tui.minimize',\n};\n\nexport const [TUI_PREVIEW_ICONS, tuiPreviewIconsProvider] = tuiCreateOptions(\n TUI_PREVIEW_ICONS_DEFAULT,\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_PAGINATION_TEXTS} from '@taiga-ui/kit/tokens';\n\nimport {TuiPreviewAction} from '../action/preview-action.directive';\nimport {TUI_PREVIEW_ICONS, type TuiPreviewIcons} from '../preview.options';\n\n@Component({\n selector: 'tui-preview-pagination',\n imports: [TuiButton, TuiPreviewAction],\n templateUrl: './preview-pagination.template.html',\n styleUrl: './preview-pagination.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:keydown.arrowRight.prevent)': 'onArrowClick(1)',\n '(document:keydown.arrowLeft.prevent)': 'onArrowClick(-1)',\n },\n})\nexport class TuiPreviewPagination {\n protected readonly icons: TuiPreviewIcons = inject(TUI_PREVIEW_ICONS);\n protected readonly paginationTexts = inject(TUI_PAGINATION_TEXTS);\n\n @Input()\n public length = 1;\n\n @Input()\n public index = 0;\n\n @Output()\n public readonly indexChange = new EventEmitter<number>();\n\n public onArrowClick(step: number): void {\n this.updateIndex(tuiClamp(this.index + step, 0, this.length - 1));\n }\n\n protected get leftButtonDisabled(): boolean {\n return this.index === 0;\n }\n\n protected get rightButtonDisabled(): boolean {\n return this.index === this.length - 1;\n }\n\n private updateIndex(index: number): void {\n if (this.index === index) {\n return;\n }\n\n this.index = index;\n this.indexChange.emit(index);\n }\n}\n","@let texts = paginationTexts();\n<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.prev\"\n (click)=\"onArrowClick(-1)\"\n>\n {{ texts[0] }}\n</button>\n{{ index + 1 }}/{{ length }}\n<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_right\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.next\"\n (click)=\"onArrowClick(1)\"\n>\n {{ texts[1] }}\n</button>\n","import {AsyncPipe, PercentPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiHint} from '@taiga-ui/core/portals/hint';\nimport {TuiSlider} from '@taiga-ui/kit/components/slider';\nimport {TUI_PREVIEW_ZOOM_TEXTS} from '@taiga-ui/kit/tokens';\nimport {map, merge, of, startWith, switchMap, timer} from 'rxjs';\n\nimport {TuiPreviewAction} from '../action/preview-action.directive';\nimport {TUI_PREVIEW_ICONS, type TuiPreviewIcons} from '../preview.options';\n\nconst STEP = 0.5;\n\n@Component({\n selector: 'tui-preview-zoom',\n imports: [\n AsyncPipe,\n FormsModule,\n PercentPipe,\n TuiButton,\n TuiHint,\n TuiPreviewAction,\n TuiSlider,\n ],\n templateUrl: './preview-zoom.template.html',\n styleUrl: './preview-zoom.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPreviewZoom {\n protected readonly icons: TuiPreviewIcons = inject(TUI_PREVIEW_ICONS);\n protected readonly zoomTexts = inject(TUI_PREVIEW_ZOOM_TEXTS);\n protected readonly sliderLabel = computed(\n () => `${this.zoomTexts().zoomOut} / ${this.zoomTexts().zoomIn}`,\n );\n\n @Input()\n public min = 0.5;\n\n @Input()\n public max = 2;\n\n @Input()\n public value = 1;\n\n @Output()\n public readonly valueChange = new EventEmitter<number>();\n\n @Output()\n public readonly reset = new EventEmitter<void>();\n\n public readonly hintShow$ = this.valueChange.pipe(\n switchMap(() => merge(of(true), timer(1000).pipe(map(TUI_FALSE_HANDLER)))),\n startWith(false),\n );\n\n protected get leftButtonDisabled(): boolean {\n return this.value === this.min;\n }\n\n protected get rightButtonDisabled(): boolean {\n return this.value === this.max;\n }\n\n protected get collapseVisible(): boolean {\n return this.value > this.min;\n }\n\n protected onModelChange(value: number): void {\n const clamped = tuiClamp(value, this.min, this.max);\n\n if (clamped === this.value) {\n return;\n }\n\n this.value = clamped;\n this.valueChange.emit(clamped);\n }\n\n protected onReset(): void {\n this.reset.emit();\n }\n\n protected onMinus(): void {\n this.onModelChange(this.value - STEP);\n }\n\n protected onPlus(): void {\n this.onModelChange(this.value < 1 ? 1 : this.value + STEP);\n }\n}\n","@let texts = zoomTexts();\n<section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"leftButtonDisabled\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"onMinus()\"\n >\n {{ texts.zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n @let sliderValueText = (valueChange | async) || (value | percent);\n\n <div\n [tuiHint]=\"sliderValueText\"\n [tuiHintManual]=\"!!(hintShow$ | async)\"\n ></div>\n <input\n step=\"any\"\n tuiSlider\n tuiTheme=\"dark\"\n type=\"range\"\n class=\"t-slider\"\n [attr.aria-label]=\"sliderLabel()\"\n [attr.aria-valuetext]=\"sliderValueText\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onModelChange($event)\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"rightButtonDisabled\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"onPlus()\"\n >\n {{ texts.zoomIn }}\n </button>\n</section>\n<button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"!collapseVisible\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts.reset\"\n (click)=\"onReset()\"\n>\n {{ texts.reset }}\n</button>\n","import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n inject,\n Input,\n} from '@angular/core';\nimport {WaMutationObserver} from '@ng-web-apis/mutation-observer';\nimport {WaResizeObserver} from '@ng-web-apis/resize-observer';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {TuiPan} from '@taiga-ui/cdk/directives/pan';\nimport {TuiZoom, type TuiZoomEvent} from '@taiga-ui/cdk/directives/zoom';\nimport {tuiDragAndDropFrom, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp, tuiRound} from '@taiga-ui/cdk/utils/math';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiHint} from '@taiga-ui/core/portals/hint';\nimport {TUI_PREVIEW_TEXTS} from '@taiga-ui/kit/tokens';\nimport {BehaviorSubject, combineLatest, map, merge, startWith} from 'rxjs';\n\nimport {TuiPreviewAction} from './action/preview-action.directive';\nimport {TUI_PREVIEW_ICONS} from './preview.options';\nimport {TuiPreviewZoom} from './zoom/preview-zoom.component';\n\nconst EMPTY_COORDINATES: [number, number] = [0, 0];\nconst ROTATION_ANGLE = 90;\n\n@Component({\n selector: 'tui-preview',\n imports: [\n AsyncPipe,\n TuiButton,\n TuiHint,\n TuiPan,\n TuiPreviewAction,\n TuiPreviewZoom,\n TuiZoom,\n WaMutationObserver,\n WaResizeObserver,\n ],\n templateUrl: './preview.template.html',\n styleUrl: './preview.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPreviewComponent {\n private readonly el = tuiInjectElement();\n\n protected minZoom = 1;\n protected width = 0;\n protected height = 0;\n protected readonly previewTexts = inject(TUI_PREVIEW_TEXTS);\n protected readonly icons = inject(TUI_PREVIEW_ICONS);\n protected readonly cdr = inject(ChangeDetectorRef);\n protected readonly zoom$ = new BehaviorSubject<number>(this.minZoom);\n protected readonly rotation$ = new BehaviorSubject<number>(0);\n protected readonly coordinates$ = new BehaviorSubject<readonly [number, number]>(\n EMPTY_COORDINATES,\n );\n\n protected readonly transitioned$ = merge(\n tuiDragAndDropFrom(this.el).pipe(map(({stage}) => stage !== 'continues')),\n tuiTypedFromEvent(this.el, 'touchmove', {\n passive: true,\n }).pipe(map(TUI_FALSE_HANDLER)),\n tuiTypedFromEvent(this.el, 'wheel', {passive: true}).pipe(map(TUI_FALSE_HANDLER)),\n );\n\n protected readonly cursor$ = tuiDragAndDropFrom(this.el).pipe(\n map(({stage}) => (stage === 'continues' ? 'grabbing' : 'initial')),\n startWith('initial'),\n );\n\n protected readonly wrapperTransform$ = combineLatest([\n this.coordinates$.pipe(map(([x, y]) => `${tuiPx(x)}, ${tuiPx(y)}`)),\n this.zoom$,\n this.rotation$,\n ]).pipe(\n map(\n ([translate, zoom, rotation]) =>\n `translate(${translate}) scale(${zoom}) rotate(${rotation}deg)`,\n ),\n );\n\n @Input()\n public zoomable = true;\n\n @Input()\n public rotatable = false;\n\n @Input()\n public initialScale = 0.8;\n\n protected rotate(): void {\n this.rotation$.next(this.rotation$.value - ROTATION_ANGLE);\n }\n\n protected onPan(delta: readonly [number, number]): void {\n this.coordinates$.next(\n this.getGuardedCoordinates(\n this.coordinates$.value[0] + delta[0],\n this.coordinates$.value[1] + delta[1],\n ),\n );\n }\n\n protected onMutation(contentWrapper: HTMLElement): void {\n const {clientWidth, clientHeight} = contentWrapper;\n\n this.refresh(clientWidth, clientHeight);\n }\n\n protected onZoom({clientX, clientY, delta}: TuiZoomEvent): void {\n if (this.zoomable) {\n this.processZoom(clientX, clientY, delta);\n }\n }\n\n protected onResize([entry]: readonly ResizeObserverEntry[]): void {\n if (entry?.contentRect) {\n this.refresh(entry.contentRect.width, entry.contentRect.height);\n this.cdr.detectChanges();\n }\n }\n\n protected reset(): void {\n this.zoom$.next(this.minZoom);\n this.coordinates$.next(EMPTY_COORDINATES);\n }\n\n protected setZoom(zoom: number): void {\n this.zoom$.next(zoom);\n const [x, y] = this.coordinates$.value;\n\n this.coordinates$.next(this.getGuardedCoordinates(x, y));\n }\n\n private get offsets(): {offsetX: number; offsetY: number} {\n const offsetX = ((this.zoom$.value - this.minZoom) * this.width) / 2;\n const offsetY = ((this.zoom$.value - this.minZoom) * this.height) / 2;\n\n return {offsetX, offsetY};\n }\n\n private calculateMinZoom(\n contentHeight: number,\n contentWidth: number,\n boxHeight: number,\n boxWidth: number,\n ): number {\n const bigSize =\n contentHeight > boxHeight * this.initialScale ||\n contentWidth > boxWidth * this.initialScale;\n const {clientHeight, clientWidth} = this.el;\n\n return bigSize\n ? tuiRound(\n Math.min(\n (clientHeight * this.initialScale) / contentHeight,\n (clientWidth * this.initialScale) / contentWidth,\n ),\n 2,\n )\n : 1;\n }\n\n private refresh(width: number, height: number): void {\n this.width = width;\n this.height = height;\n this.minZoom = this.calculateMinZoom(\n height,\n width,\n this.el.clientHeight,\n this.el.clientWidth,\n );\n this.zoom$.next(this.minZoom);\n this.coordinates$.next(EMPTY_COORDINATES);\n this.rotation$.next(0);\n }\n\n private processZoom(clientX: number, clientY: number, delta: number): void {\n const oldScale = this.zoom$.value;\n const newScale = tuiClamp(oldScale + delta, this.minZoom, 2);\n\n const center = this.getScaleCenter(\n {clientX, clientY},\n this.coordinates$.value,\n this.zoom$.value,\n );\n\n const moveX = center[0] * oldScale - center[0] * newScale;\n const moveY = center[1] * oldScale - center[1] * newScale;\n\n this.zoom$.next(newScale);\n this.coordinates$.next(\n this.getGuardedCoordinates(\n this.coordinates$.value[0] + moveX,\n this.coordinates$.value[1] + moveY,\n ),\n );\n }\n\n private getGuardedCoordinates(x: number, y: number): readonly [number, number] {\n const {offsetX, offsetY} = this.offsets;\n\n return [tuiClamp(x, -offsetX, offsetX), tuiClamp(y, -offsetY, offsetY)];\n }\n\n private getScaleCenter(\n {clientX, clientY}: {clientX: number; clientY: number},\n [x, y]: readonly [number, number],\n scale: number,\n ): [number, number] {\n return [\n (clientX - x - this.el.offsetWidth / 2) / scale,\n (clientY - y - this.el.offsetHeight / 2) / scale,\n ];\n }\n}\n","@let texts = previewTexts();\n<section\n #contentWrapper\n attributeFilter=\"src\"\n characterData\n childList\n subtree\n class=\"t-wrapper\"\n [class.t-not-interactive-content]=\"zoomable\"\n [class.t-transitive]=\"transitioned$ | async\"\n [style.cursor]=\"cursor$ | async\"\n [style.transform]=\"wrapperTransform$ | async\"\n (tuiPan)=\"onPan($event)\"\n (tuiZoom)=\"onZoom($event)\"\n (waMutationObserver)=\"onMutation(contentWrapper)\"\n (waResizeObserver)=\"onResize($event)\"\n>\n <ng-content />\n</section>\n<header class=\"t-header\">\n <div class=\"t-title\">\n <ng-content select=\"tui-preview-title\" />\n </div>\n <ng-content select=\"tui-preview-pagination\" />\n <div class=\"t-actions\">\n <ng-content select=\"[tuiPreviewAction]\" />\n </div>\n</header>\n<footer class=\"t-footer\">\n @if (rotatable) {\n <button\n tuiHintAppearance=\"dark\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-rotate-button\"\n [iconStart]=\"icons.rotate\"\n [tuiHint]=\"texts.rotate\"\n (click)=\"rotate()\"\n ></button>\n }\n @if (zoomable) {\n <tui-preview-zoom\n [min]=\"minZoom\"\n [value]=\"(zoom$ | async) || 1\"\n (reset)=\"reset()\"\n (valueChange)=\"setZoom($event)\"\n />\n }\n</footer>\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n selector: 'tui-preview-title',\n template: `\n <ng-content />\n `,\n styleUrl: './preview-title.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPreviewTitle {}\n","import {TuiPreviewAction} from './action/preview-action.directive';\nimport {TuiPreviewDialogDirective} from './dialog/preview-dialog.directive';\nimport {TuiPreviewPagination} from './pagination/preview-pagination.component';\nimport {TuiPreviewComponent} from './preview.component';\nimport {TuiPreviewTitle} from './title/preview-title.component';\nimport {TuiPreviewZoom} from './zoom/preview-zoom.component';\n\nexport const TuiPreview = [\n TuiPreviewComponent,\n TuiPreviewDialogDirective,\n TuiPreviewTitle,\n TuiPreviewPagination,\n TuiPreviewAction,\n TuiPreviewZoom,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAea,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,EAVd,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,yBAAA,EAAA,KAAA,EAAA,EAAA,EAAA,SAAA,EAAA;AACP,YAAA,wBAAwB,CAAC;AACrB,gBAAA,UAAU,EAAE,gBAAgB;AAC5B,gBAAA,IAAI,EAAE,GAAG;aACZ,CAAC;AACL,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAKQ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAZ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,SAAS,EAAE;AACP,wBAAA,wBAAwB,CAAC;AACrB,4BAAA,UAAU,EAAE,gBAAgB;AAC5B,4BAAA,IAAI,EAAE,GAAG;yBACZ,CAAC;AACL,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,2BAA2B,EAAE,KAAK;AACrC,qBAAA;AACJ,iBAAA;;;MCOY,gBAAgB,CAAA;AAhB7B,IAAA,WAAA,GAAA;QAiBuB,I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