@taiga-ui/kit 4.52.0-canary.974ca4b → 4.52.0-canary.a1004d6

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 (397) hide show
  1. package/components/avatar/avatar-labeled.component.d.ts +3 -3
  2. package/components/avatar/avatar-stack.component.d.ts +2 -2
  3. package/components/badge-notification/badge-notification.component.d.ts +2 -3
  4. package/components/badged-content/badged-content.directive.d.ts +2 -2
  5. package/components/breadcrumbs/breadcrumbs.component.d.ts +6 -7
  6. package/components/button-loading/button-loading.component.d.ts +5 -5
  7. package/components/calendar-range/calendar-range.component.d.ts +0 -1
  8. package/components/calendar-range/day-range-period.d.ts +2 -1
  9. package/components/carousel/carousel-autoscroll.directive.d.ts +1 -2
  10. package/components/carousel/carousel-scroll.directive.d.ts +1 -1
  11. package/components/carousel/carousel.component.d.ts +15 -18
  12. package/components/carousel/carousel.directive.d.ts +5 -4
  13. package/components/combo-box/combo-box.d.ts +5 -0
  14. package/components/combo-box/combo-box.directive.d.ts +7 -9
  15. package/components/combo-box/index.d.ts +1 -0
  16. package/components/compass/compass.component.d.ts +2 -2
  17. package/components/confirm/confirm.component.d.ts +3 -2
  18. package/components/confirm/confirm.service.d.ts +1 -1
  19. package/components/copy/copy.component.d.ts +3 -4
  20. package/components/copy/copy.directive.d.ts +2 -4
  21. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -2
  22. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  23. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  24. package/components/data-list-wrapper/index.d.ts +1 -1
  25. package/components/drawer/drawer.component.d.ts +3 -4
  26. package/components/files/file/file.component.d.ts +16 -29
  27. package/components/files/files/files.component.d.ts +5 -8
  28. package/components/files/input-files/input-files.component.d.ts +2 -2
  29. package/components/files/input-files/input-files.content.d.ts +7 -8
  30. package/components/files/input-files/input-files.directive.d.ts +2 -2
  31. package/components/filter/filter.component.d.ts +9 -12
  32. package/components/fullscreen/fullscreen.component.d.ts +5 -8
  33. package/components/index.d.ts +0 -3
  34. package/components/input-chip/input-chip.component.d.ts +9 -8
  35. package/components/input-chip/input-chip.d.ts +5 -1
  36. package/components/input-chip/input-chip.directive.d.ts +7 -12
  37. package/components/input-color/index.d.ts +1 -0
  38. package/components/input-color/input-color.component.d.ts +8 -12
  39. package/components/input-color/input-color.d.ts +5 -0
  40. package/components/input-date/input-date.component.d.ts +2 -2
  41. package/components/input-date/input-date.d.ts +4 -1
  42. package/components/input-date/input-date.directive.d.ts +21 -22
  43. package/components/input-date/input-date.options.d.ts +3 -3
  44. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  45. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  46. package/components/input-date-range/input-date-range.d.ts +4 -1
  47. package/components/input-date-range/input-date-range.directive.d.ts +9 -10
  48. package/components/input-date-range/input-date-range.options.d.ts +2 -2
  49. package/components/input-date-time/input-date-time.d.ts +4 -1
  50. package/components/input-date-time/input-date-time.directive.d.ts +14 -14
  51. package/components/input-date-time/input-date-time.options.d.ts +2 -2
  52. package/components/input-inline/input-inline.component.d.ts +3 -2
  53. package/components/input-month/input-month.component.d.ts +3 -5
  54. package/components/input-month/input-month.d.ts +4 -1
  55. package/components/input-month/input-month.directive.d.ts +6 -5
  56. package/components/input-month-range/input-month-range.d.ts +4 -1
  57. package/components/input-month-range/input-month-range.directive.d.ts +6 -5
  58. package/components/input-number/input-number.d.ts +4 -1
  59. package/components/input-number/input-number.directive.d.ts +6 -8
  60. package/components/input-number/input-number.options.d.ts +2 -3
  61. package/components/input-number/step/input-number-step.component.d.ts +3 -3
  62. package/components/input-phone/index.d.ts +1 -0
  63. package/components/input-phone/input-phone.d.ts +5 -0
  64. package/components/input-phone/input-phone.directive.d.ts +12 -14
  65. package/components/input-phone-international/index.d.ts +1 -0
  66. package/components/input-phone-international/input-phone-international.component.d.ts +14 -16
  67. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  68. package/components/input-phone-international/input-phone-international.options.d.ts +1 -0
  69. package/components/input-pin/index.d.ts +1 -0
  70. package/components/input-pin/input-pin.component.d.ts +5 -6
  71. package/components/input-pin/input-pin.d.ts +5 -0
  72. package/components/input-range/index.d.ts +0 -1
  73. package/components/input-range/input-range.component.d.ts +22 -52
  74. package/components/input-slider/input-slider.d.ts +4 -1
  75. package/components/input-slider/input-slider.directive.d.ts +1 -1
  76. package/components/input-time/input-time.component.d.ts +1 -3
  77. package/components/input-time/input-time.d.ts +4 -1
  78. package/components/input-time/input-time.directive.d.ts +5 -5
  79. package/components/input-year/input-year.d.ts +4 -1
  80. package/components/input-year/input-year.directive.d.ts +8 -10
  81. package/components/input-year/input-year.options.d.ts +2 -2
  82. package/components/items-with-more/items-with-more.component.d.ts +6 -6
  83. package/components/items-with-more/items-with-more.directive.d.ts +6 -6
  84. package/components/like/like.options.d.ts +1 -1
  85. package/components/line-clamp/line-clamp-box.component.d.ts +1 -1
  86. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +4 -6
  87. package/components/multi-select/multi-select-native/multi-select-native.component.d.ts +5 -4
  88. package/components/notification-middle/notification-middle.service.d.ts +1 -1
  89. package/components/pager/pager.component.d.ts +12 -12
  90. package/components/pagination/pagination.component.d.ts +22 -52
  91. package/components/pagination/pagination.options.d.ts +3 -6
  92. package/components/preview/dialog/preview-dialog.service.d.ts +1 -1
  93. package/components/preview/index.d.ts +1 -0
  94. package/components/preview/pagination/preview-pagination.component.d.ts +6 -10
  95. package/components/preview/preview.component.d.ts +6 -6
  96. package/components/preview/zoom/preview-zoom.component.d.ts +11 -17
  97. package/components/progress/progress-bar/progress-bar.component.d.ts +3 -4
  98. package/components/progress/progress-circle/progress-circle.component.d.ts +7 -11
  99. package/components/pulse/pulse.component.d.ts +2 -2
  100. package/components/push/push-alert.component.d.ts +2 -2
  101. package/components/push/push.component.d.ts +6 -7
  102. package/components/push/push.options.d.ts +4 -3
  103. package/components/push/push.service.d.ts +2 -2
  104. package/components/radio/radio.component.d.ts +1 -1
  105. package/components/radio-list/radio-list.component.d.ts +11 -9
  106. package/components/range/range.component.d.ts +3 -4
  107. package/components/rating/rating.component.d.ts +1 -1
  108. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  109. package/components/segmented/segmented.component.d.ts +4 -6
  110. package/components/segmented/segmented.directive.d.ts +6 -7
  111. package/components/select/native-select/native-select.component.d.ts +4 -4
  112. package/components/select/select.d.ts +4 -1
  113. package/components/select/select.directive.d.ts +4 -3
  114. package/components/slider/helpers/slider-key-steps.directive.d.ts +6 -5
  115. package/components/slider/helpers/slider-readonly.directive.d.ts +2 -4
  116. package/components/slider/helpers/slider-thumb-label.component.d.ts +2 -4
  117. package/components/slider/slider.component.d.ts +4 -7
  118. package/components/stepper/step.component.d.ts +14 -9
  119. package/components/stepper/stepper.component.d.ts +5 -12
  120. package/components/switch/switch.component.d.ts +1 -0
  121. package/components/tabs/tabs-horizontal.directive.d.ts +3 -4
  122. package/components/tabs/tabs-vertical.directive.d.ts +2 -2
  123. package/components/tabs/tabs-with-more.component.d.ts +12 -16
  124. package/components/tabs/tabs.directive.d.ts +5 -7
  125. package/components/textarea/index.d.ts +2 -1
  126. package/components/textarea/textarea.component.d.ts +10 -11
  127. package/components/textarea/textarea.d.ts +6 -0
  128. package/components/textarea/textarea.directive.d.ts +13 -0
  129. package/components/tiles/tile.component.d.ts +7 -10
  130. package/components/tiles/tile.service.d.ts +1 -1
  131. package/components/tiles/tiles.component.d.ts +4 -7
  132. package/components/toast/toast.component.d.ts +2 -2
  133. package/components/toast/toast.options.d.ts +4 -3
  134. package/components/toast/toast.service.d.ts +2 -2
  135. package/components/tree/components/tree/tree.component.d.ts +7 -7
  136. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  137. package/components/tree/directives/tree-children.directive.d.ts +2 -2
  138. package/components/tree/directives/tree-controller.directive.d.ts +4 -5
  139. package/components/tree/directives/tree-item-controller.directive.d.ts +2 -2
  140. package/components/tree/directives/tree-node.directive.d.ts +5 -4
  141. package/directives/appearance-proxy/appearance-proxy.directive.d.ts +10 -0
  142. package/directives/appearance-proxy/index.d.ts +1 -0
  143. package/directives/button-select/button-select.directive.d.ts +1 -1
  144. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  145. package/directives/fade/fade.directive.d.ts +5 -6
  146. package/directives/highlight/highlight.directive.d.ts +4 -4
  147. package/directives/index.d.ts +1 -1
  148. package/directives/password/password.directive.d.ts +1 -1
  149. package/directives/present/present.directive.d.ts +2 -4
  150. package/directives/tooltip/tooltip.directive.d.ts +1 -1
  151. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +2 -2
  152. package/directives/unmask-handler/unmask-handler.directive.d.ts +3 -3
  153. package/fesm2022/taiga-ui-kit-components-accordion.mjs +8 -8
  154. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
  156. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-avatar.mjs +33 -47
  158. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +8 -10
  160. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-badge.mjs +7 -7
  162. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +9 -11
  163. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  165. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +16 -30
  167. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +18 -26
  169. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -13
  171. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +23 -23
  173. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-carousel.mjs +69 -116
  175. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +4 -5
  177. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-chip.mjs +7 -7
  179. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +40 -44
  180. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-comment.mjs +7 -7
  182. package/fesm2022/taiga-ui-kit-components-compass.mjs +7 -9
  183. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-confirm.mjs +9 -10
  185. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-copy.mjs +19 -32
  187. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +24 -85
  189. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-drawer.mjs +15 -32
  191. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-files.mjs +110 -230
  193. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-filter.mjs +21 -34
  195. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +23 -42
  197. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +63 -75
  199. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-input-color.mjs +27 -28
  201. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +34 -46
  203. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +37 -36
  205. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +40 -55
  207. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-input-date.mjs +52 -58
  209. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +10 -12
  211. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +26 -22
  213. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-input-month.mjs +39 -45
  215. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-components-input-number.mjs +50 -50
  217. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +61 -67
  219. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +37 -41
  221. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +24 -22
  223. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-components-input-range.mjs +42 -69
  225. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +15 -10
  227. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-input-time.mjs +38 -39
  229. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-components-input-year.mjs +31 -36
  231. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +50 -70
  233. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-components-like.mjs +3 -3
  235. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +14 -14
  237. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-components-message.mjs +7 -7
  239. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +36 -52
  241. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +12 -12
  243. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-components-pager.mjs +30 -44
  245. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-components-pagination.mjs +65 -150
  247. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-pin.mjs +7 -7
  249. package/fesm2022/taiga-ui-kit-components-preview.mjs +77 -145
  250. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-progress.mjs +44 -63
  252. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-components-pulse.mjs +7 -11
  254. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components-push.mjs +27 -40
  256. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +23 -35
  258. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-components-radio.mjs +6 -6
  260. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-components-range.mjs +19 -29
  262. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -4
  264. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +4 -4
  266. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-components-segmented.mjs +31 -57
  268. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-components-select.mjs +52 -28
  270. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-components-slider.mjs +49 -67
  272. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-components-status.mjs +6 -6
  274. package/fesm2022/taiga-ui-kit-components-stepper.mjs +61 -88
  275. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  277. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-components-tabs.mjs +73 -126
  279. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-components-textarea.mjs +60 -71
  281. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-components-tiles.mjs +36 -68
  283. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-components-toast.mjs +27 -28
  285. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-components-tree.mjs +62 -92
  287. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  288. package/fesm2022/taiga-ui-kit-components.mjs +0 -3
  289. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +27 -0
  291. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -0
  292. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  293. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  294. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +6 -6
  296. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +10 -9
  298. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-directives-connected.mjs +7 -7
  300. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -52
  302. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-directives-fade.mjs +25 -34
  304. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +3 -3
  306. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +16 -20
  307. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-directives-password.mjs +10 -8
  309. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  310. package/fesm2022/taiga-ui-kit-directives-present.mjs +10 -17
  311. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  312. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +6 -6
  313. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +6 -6
  314. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -6
  315. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  316. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -8
  317. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +8 -10
  319. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  320. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +10 -14
  321. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  322. package/fesm2022/taiga-ui-kit-directives.mjs +1 -1
  323. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  324. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  325. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  326. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -24
  327. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  328. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
  329. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  330. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -4
  331. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  332. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  333. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  334. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -8
  335. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  336. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  337. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  338. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  339. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -0
  340. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  341. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -108
  342. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  343. package/fesm2022/taiga-ui-kit-utils.mjs +3 -15
  344. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  345. package/package.json +33 -33
  346. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  347. package/pipes/auto-color/index.d.ts +1 -0
  348. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  349. package/pipes/flag/flag.pipe.d.ts +14 -0
  350. package/pipes/flag/index.d.ts +1 -0
  351. package/pipes/index.d.ts +3 -0
  352. package/pipes/initials/index.d.ts +1 -0
  353. package/pipes/initials/initials.pipe.d.ts +7 -0
  354. package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
  355. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  356. package/styles/components/avatar.less +14 -14
  357. package/styles/components/badge.less +3 -3
  358. package/styles/components/block.less +4 -4
  359. package/styles/components/chip.less +3 -3
  360. package/styles/components/comment.less +1 -1
  361. package/styles/components/message.less +1 -1
  362. package/styles/components/pin.less +3 -3
  363. package/styles/components/switch.less +3 -2
  364. package/styles/components/toast.less +1 -1
  365. package/tokens/i18n.d.ts +1 -0
  366. package/tokens/index.d.ts +0 -7
  367. package/utils/index.d.ts +0 -2
  368. package/utils/maskito.binding.d.ts +1 -1
  369. package/components/elastic-container/elastic-container.component.d.ts +0 -8
  370. package/components/elastic-container/elastic-container.directive.d.ts +0 -7
  371. package/components/elastic-container/index.d.ts +0 -2
  372. package/components/floating-container/floating-container.directive.d.ts +0 -7
  373. package/components/floating-container/index.d.ts +0 -1
  374. package/components/input-range/input-range.d.ts +0 -3
  375. package/components/slides/index.d.ts +0 -1
  376. package/components/slides/slides.directive.d.ts +0 -11
  377. package/components/textarea/textarea-limit.directive.d.ts +0 -26
  378. package/directives/lazy-loading/index.d.ts +0 -2
  379. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  380. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  381. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -77
  382. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
  383. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -37
  384. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
  385. package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -49
  386. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
  387. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -80
  388. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  389. package/tokens/calendar-date-stream.d.ts +0 -10
  390. package/tokens/date-inputs-value-transformers.d.ts +0 -19
  391. package/tokens/input-date-options.d.ts +0 -15
  392. package/tokens/items-handlers.d.ts +0 -20
  393. package/tokens/mobile-calendar.d.ts +0 -6
  394. package/tokens/month-formatter.d.ts +0 -5
  395. package/utils/phone.d.ts +0 -3
  396. package/utils/toggle-day.d.ts +0 -2
  397. /package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pagination.mjs","sources":["../../../projects/kit/components/pagination/pagination.options.ts","../../../projects/kit/components/pagination/pagination.component.ts","../../../projects/kit/components/pagination/pagination.template.html","../../../projects/kit/components/pagination/taiga-ui-kit-components-pagination.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiPaginationOptions {\n readonly appearance: TuiStringHandler<{\n isActive: boolean;\n size: TuiSizeL | TuiSizeS;\n }>;\n readonly defaultSize: TuiSizeL | TuiSizeS;\n}\n\nexport const [TUI_PAGINATION_OPTIONS, tuiPaginationOptionsProvider] =\n tuiCreateOptions<TuiPaginationOptions>({\n appearance: ({isActive, size}) => {\n const fallback = size === 's' ? 'secondary' : 'flat';\n\n return isActive ? 'primary' : fallback;\n },\n defaultSize: 'l',\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n type QueryList,\n ViewChildren,\n} from '@angular/core';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TuiRepeatTimes} from '@taiga-ui/cdk/directives/repeat-times';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsFocusedIn} from '@taiga-ui/cdk/utils/focus';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_SPIN_ICONS} from '@taiga-ui/core/tokens';\nimport {\n type TuiHorizontalDirection,\n type TuiSizeL,\n type TuiSizeS,\n type TuiSizeXS,\n} from '@taiga-ui/core/types';\nimport {TUI_PAGINATION_TEXTS} from '@taiga-ui/kit/tokens';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TUI_PAGINATION_OPTIONS} from './pagination.options';\n\nconst DOTS_LENGTH = 1;\nconst ACTIVE_ITEM_LENGTH = 1;\n\n@Component({\n selector: 'tui-pagination',\n imports: [PolymorpheusOutlet, TuiButton, TuiRepeatTimes],\n templateUrl: './pagination.template.html',\n styleUrl: './pagination.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPagination {\n @ViewChildren('element', {read: ElementRef})\n private readonly els: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n private readonly el = tuiInjectElement();\n\n protected readonly texts = inject(TUI_PAGINATION_TEXTS);\n protected readonly icons = inject(TUI_SPIN_ICONS);\n protected readonly options = inject(TUI_PAGINATION_OPTIONS);\n\n @Input()\n public length = 1;\n\n @Input()\n public focusable = true;\n\n @Input()\n public size: TuiSizeL | TuiSizeS = this.options.defaultSize;\n\n @Input()\n public readonly disabled = false;\n\n /**\n * Amount of visible pages around active page\n */\n @Input()\n public activePadding = 1;\n\n /**\n * Amount of visible pages at the edges\n */\n @Input()\n public sidePadding = 1;\n\n /**\n * Customization for page number display.\n */\n @Input()\n public content: PolymorpheusContent<TuiContext<number>>;\n\n /**\n * Active page index\n */\n @Input()\n public index = 0;\n\n @Output()\n public readonly indexChange = new EventEmitter<number>();\n\n public get nativeFocusableElement(): HTMLElement | null {\n if (this.disabled) {\n return null;\n }\n\n let activeElementIndex = 0;\n const {elementsLength} = this;\n\n for (let i = 0; i < elementsLength; i++) {\n const itemIndex = this.getItemIndexByElementIndex(i);\n\n if (itemIndex) {\n activeElementIndex++;\n }\n\n if (itemIndex === this.index) {\n break;\n }\n }\n\n return (\n this.els.find((_, index) => index === activeElementIndex)?.nativeElement ??\n null\n );\n }\n\n public get focused(): boolean {\n return tuiIsFocusedIn(this.el);\n }\n\n public get arrowIsDisabledLeft(): boolean {\n return this.index === 0;\n }\n\n public get arrowIsDisabledRight(): boolean {\n return this.reverseIndex === 0;\n }\n\n /**\n * Number of items in a container.\n */\n protected get elementsLength(): number {\n return this.itemsFit ? this.length : this.maxElementsLength;\n }\n\n protected get buttonSize(): TuiSizeXS {\n return this.size === 'm' ? 'xs' : 's';\n }\n\n protected elementIsFocusable(index: number): boolean {\n return this.index === index && !this.focused;\n }\n\n /**\n * Get index by element index\n * @param elementIndex\n * @returns index or null (for '…')\n */\n protected getItemIndexByElementIndex(elementIndex: number): number | null {\n if (this.size === 's') {\n return elementIndex;\n }\n\n if (elementIndex < this.sidePadding) {\n return elementIndex;\n }\n\n if (elementIndex === this.sidePadding && this.hasCollapsedItems(this.index)) {\n return null;\n }\n\n const reverseElementIndex = this.lastElementIndex - elementIndex;\n\n if (\n reverseElementIndex === this.sidePadding &&\n this.hasCollapsedItems(this.reverseIndex)\n ) {\n return null;\n }\n\n if (reverseElementIndex < this.sidePadding) {\n return this.lastIndex - reverseElementIndex;\n }\n\n const computedIndex = this.index - this.maxHalfLength + elementIndex;\n\n return tuiClamp(\n computedIndex,\n elementIndex,\n this.lastIndex - reverseElementIndex,\n );\n }\n\n protected getElementMode(index = -1): string {\n return this.options.appearance({\n isActive: this.index === index,\n size: this.size,\n });\n }\n\n protected onElementClick(index: number): void {\n this.updateIndex(index);\n }\n\n protected onElementKeyDownArrowLeft(element: HTMLElement): void {\n if (element === this.els.first.nativeElement) {\n return;\n }\n\n const previous = this.els.find(\n (_, index, array) => array[index + 1]?.nativeElement === element,\n );\n\n previous?.nativeElement.focus();\n }\n\n protected onElementKeyDownArrowRight(element: HTMLElement): void {\n if (element === this.els.last.nativeElement) {\n return;\n }\n\n const next = this.els.find(\n (_, index, array) => array[index - 1]?.nativeElement === element,\n );\n\n next?.nativeElement.focus();\n }\n\n protected onArrowClick(direction: TuiHorizontalDirection): void {\n this.tryChangeTo(direction);\n this.focusActive();\n }\n\n /**\n * Active index from the end\n */\n private get reverseIndex(): number {\n return this.lastIndex - this.index;\n }\n\n /**\n * Max number of elements in half (not counting the middle one).\n */\n private get maxHalfLength(): number {\n return this.sidePadding + DOTS_LENGTH + this.activePadding;\n }\n\n /**\n * Is there '...' anywhere\n */\n private get itemsFit(): boolean {\n return this.length <= this.maxElementsLength;\n }\n\n /**\n * Max number of elements\n */\n private get maxElementsLength(): number {\n return this.maxHalfLength * 2 + ACTIVE_ITEM_LENGTH;\n }\n\n private get lastIndex(): number {\n return this.length - 1;\n }\n\n private get lastElementIndex(): number {\n return this.elementsLength - 1;\n }\n\n /**\n * Are there collapsed items at that index\n * @param index\n * @returns there are collapsed items\n */\n private hasCollapsedItems(index: number): boolean {\n return !this.itemsFit && index > this.maxHalfLength;\n }\n\n private tryChangeTo(direction: TuiHorizontalDirection): void {\n this.updateIndex(\n tuiClamp(this.index + (direction === 'right' ? 1 : -1), 0, this.lastIndex),\n );\n }\n\n private focusActive(): void {\n const {nativeFocusableElement} = this;\n\n if (nativeFocusableElement) {\n nativeFocusableElement.focus();\n }\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","<div class=\"t-content\">\n @if (size !== 's') {\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"getElementMode()\"\n [disabled]=\"arrowIsDisabledLeft\"\n [iconStart]=\"icons.decrement\"\n [size]=\"buttonSize\"\n (click)=\"onArrowClick('left')\"\n (mousedown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n <ng-container *tuiRepeatTimes=\"let elementIndex of elementsLength\">\n @let index = getItemIndexByElementIndex(elementIndex);\n @if (index !== null) {\n <button\n #element\n automation-id=\"tui-pagination__element\"\n tuiButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"getElementMode(index)\"\n [disabled]=\"disabled\"\n [size]=\"buttonSize\"\n [tabIndex]=\"elementIsFocusable(index) ? 0 : -1\"\n (click)=\"onElementClick(index)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n >\n <ng-container *polymorpheusOutlet=\"content || index + 1 as text; context: {$implicit: index}\">\n {{ text }}\n </ng-container>\n </button>\n } @else {\n <div\n automation-id=\"tui-pagination__element\"\n class=\"t-dots\"\n [class.t-dots_small]=\"size === 'm'\"\n ></div>\n }\n </ng-container>\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"getElementMode()\"\n [disabled]=\"arrowIsDisabledRight\"\n [iconStart]=\"icons.increment\"\n [size]=\"buttonSize\"\n (click)=\"onArrowClick('right')\"\n (mousedown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n } @else {\n <button\n *tuiRepeatTimes=\"let indexItem of length\"\n #element\n tuiButton\n type=\"button\"\n class=\"t-button t-button_small\"\n [appearance]=\"getElementMode(indexItem)\"\n [disabled]=\"disabled\"\n [tabIndex]=\"elementIsFocusable(indexItem) ? 0 : -1\"\n (click)=\"onElementClick(indexItem)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n >\n {{ indexItem + 1 }}\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAYa,CAAC,sBAAsB,EAAE,4BAA4B,CAAC,GAC/D,gBAAgB,CAAuB;IACnC,UAAU,EAAE,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,KAAI;AAC7B,QAAA,MAAM,QAAQ,GAAG,IAAI,KAAK,GAAG,GAAG,WAAW,GAAG,MAAM;QAEpD,OAAO,QAAQ,GAAG,SAAS,GAAG,QAAQ;KACzC;AACD,IAAA,WAAW,EAAE,GAAG;AACnB,CAAA;;ACUL,MAAM,WAAW,GAAG,CAAC;AACrB,MAAM,kBAAkB,GAAG,CAAC;MASf,aAAa,CAAA;AAP1B,IAAA,WAAA,GAAA;QASqB,IAAG,CAAA,GAAA,GAAuC,WAAW;QAErD,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAErB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACpC,QAAA,IAA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A,QAAA,EAAA,w8FAAA,EAAA,MAAA,EAAA,CAAA,6nCAAA,CAAA,EAAA;8BAI9B,GAAG,EAAA,CAAA;sBADnB,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,SAAS,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;gBAUpC,MAAM,EAAA,CAAA;sBADZ;gBAIM,SAAS,EAAA,CAAA;sBADf;gBAIM,IAAI,EAAA,CAAA;sBADV;gBAIe,QAAQ,EAAA,CAAA;sBADvB;gBAOM,aAAa,EAAA,CAAA;sBADnB;gBAOM,WAAW,EAAA,CAAA;sBADjB;gBAOM,OAAO,EAAA,CAAA;sBADb;gBAOM,KAAK,EAAA,CAAA;sBADX;gBAIe,WAAW,EAAA,CAAA;sBAD1B;;;AEtFL;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-pagination.mjs","sources":["../../../projects/kit/components/pagination/pagination.options.ts","../../../projects/kit/components/pagination/pagination.component.ts","../../../projects/kit/components/pagination/pagination.template.html","../../../projects/kit/components/pagination/taiga-ui-kit-components-pagination.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL} from '@taiga-ui/core/types';\n\nexport interface TuiPaginationOptions {\n readonly size: TuiSizeL;\n readonly appearance: TuiStringHandler<boolean>;\n}\n\nexport const [TUI_PAGINATION_OPTIONS, tuiPaginationOptionsProvider] =\n tuiCreateOptions<TuiPaginationOptions>({\n size: 'l',\n appearance: (isActive) => (isActive ? 'primary' : 'flat'),\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n model,\n viewChildren,\n} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsFocusedIn} from '@taiga-ui/cdk/utils/focus';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {TUI_PAGINATION_TEXTS} from '@taiga-ui/kit/tokens';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TUI_PAGINATION_OPTIONS} from './pagination.options';\n\nconst ELLIPSIS_ITEM_LENGTH = 1;\nconst ACTIVE_ITEM_LENGTH = 1;\n\n@Component({\n selector: 'tui-pagination',\n imports: [PolymorpheusOutlet, TuiButton],\n templateUrl: './pagination.template.html',\n styleUrl: './pagination.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiPagination {\n private readonly els = viewChildren('element', {read: ElementRef});\n private readonly el = tuiInjectElement();\n private readonly maxHalfLength = computed(\n () => this.sidePadding() + ELLIPSIS_ITEM_LENGTH + this.activePadding(),\n );\n\n private readonly maxElementsLength = computed(\n () => this.maxHalfLength() * 2 + ACTIVE_ITEM_LENGTH,\n );\n\n private readonly lastElementIndex = computed(() => this.elementsLength() - 1);\n private readonly itemsFit = computed(() => this.length() <= this.maxElementsLength());\n private readonly lastIndex = computed(() => this.length() - 1);\n private readonly reverseIndex = computed(\n (): number => this.lastIndex() - this.index(),\n );\n\n protected readonly texts = inject(TUI_PAGINATION_TEXTS);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly options = inject(TUI_PAGINATION_OPTIONS);\n protected readonly buttonSize = computed(() => (this.size() === 'm' ? 'xs' : 's'));\n protected readonly elementsLength = computed(() =>\n this.itemsFit() ? this.length() : this.maxElementsLength(),\n );\n\n public readonly length = input(1);\n public readonly focusable = input(true);\n public readonly size = input(this.options.size);\n public readonly disabled = input(false);\n public readonly activePadding = input(1);\n public readonly sidePadding = input(1);\n public readonly content = input<PolymorpheusContent<TuiContext<number>>>();\n public readonly index = model(0);\n public readonly arrowIsDisabledRight = computed(() => this.reverseIndex() === 0);\n public readonly arrowIsDisabledLeft = computed(() => this.index() === 0);\n public readonly nativeFocusableElement = computed((): HTMLElement | null => {\n if (this.disabled()) {\n return null;\n }\n\n let activeElementIndex = 0;\n\n for (let i = 0; i < this.elementsLength(); i++) {\n const itemIndex = this.getItemIndexByElementIndex(i);\n\n if (itemIndex) {\n activeElementIndex++;\n }\n\n if (itemIndex === this.index()) {\n break;\n }\n }\n\n return (\n this.els().find((_, index) => index === activeElementIndex)?.nativeElement ??\n null\n );\n });\n\n public get focused(): boolean {\n return tuiIsFocusedIn(this.el);\n }\n\n protected elementIsFocusable(index: number): boolean {\n return this.index() === index && !this.focused;\n }\n\n /**\n * Get index by element index\n * @param elementIndex\n * @returns index or null (for '…')\n */\n protected getItemIndexByElementIndex(elementIndex: number): number | null {\n const reverseElementIndex = this.lastElementIndex() - elementIndex;\n\n if (elementIndex < this.sidePadding()) {\n return elementIndex;\n }\n\n if (reverseElementIndex < this.sidePadding()) {\n return this.lastIndex() - reverseElementIndex;\n }\n\n if (elementIndex === this.sidePadding() && this.hasCollapsedItems(this.index())) {\n return null;\n }\n\n if (\n reverseElementIndex === this.sidePadding() &&\n this.hasCollapsedItems(this.reverseIndex())\n ) {\n return null;\n }\n\n const computedIndex = this.index() - this.maxHalfLength() + elementIndex;\n\n return tuiClamp(\n computedIndex,\n elementIndex,\n this.lastIndex() - reverseElementIndex,\n );\n }\n\n protected getElementMode(index = -1): string {\n return this.options.appearance(this.index() === index);\n }\n\n protected onElementClick(index: number): void {\n this.updateIndex(index);\n }\n\n protected onElementKeyDownArrowLeft(element: HTMLElement): void {\n if (element === this.els()[0]?.nativeElement) {\n return;\n }\n\n const previous = this.els().find(\n (_, index, array) => array[index + 1]?.nativeElement === element,\n );\n\n previous?.nativeElement.focus();\n }\n\n protected onElementKeyDownArrowRight(element: HTMLElement): void {\n if (element === this.els()[this.els().length - 1]?.nativeElement) {\n return;\n }\n\n const next = this.els().find(\n (_, index, array) => array[index - 1]?.nativeElement === element,\n );\n\n next?.nativeElement.focus();\n }\n\n protected onArrowClick(direction: TuiHorizontalDirection): void {\n this.tryChangeTo(direction);\n this.nativeFocusableElement()?.focus();\n }\n\n /**\n * Are there collapsed items at that index\n * @param index\n * @returns there are collapsed items\n */\n private hasCollapsedItems(index: number): boolean {\n return !this.itemsFit() && index > this.maxHalfLength();\n }\n\n private tryChangeTo(direction: TuiHorizontalDirection): void {\n this.updateIndex(\n tuiClamp(\n this.index() + (direction === 'right' ? 1 : -1),\n 0,\n this.lastIndex(),\n ),\n );\n }\n\n private updateIndex(index: number): void {\n if (this.index() !== index) {\n this.index.set(index);\n }\n }\n}\n","<div class=\"t-content\">\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"getElementMode()\"\n [disabled]=\"arrowIsDisabledLeft()\"\n [iconStart]=\"icons.decrement\"\n [size]=\"buttonSize()\"\n (click)=\"onArrowClick('left')\"\n (mousedown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[0] }}\n </button>\n @for (_ of '-'.repeat(elementsLength()); track $index) {\n @let index = getItemIndexByElementIndex($index);\n @if (index !== null) {\n <button\n #element\n automation-id=\"tui-pagination__element\"\n tuiButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"getElementMode(index)\"\n [disabled]=\"disabled()\"\n [size]=\"buttonSize()\"\n [tabIndex]=\"elementIsFocusable(index) ? 0 : -1\"\n (click)=\"onElementClick(index)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n >\n <ng-container *polymorpheusOutlet=\"content() || index + 1 as text; context: {$implicit: index}\">\n {{ text }}\n </ng-container>\n </button>\n } @else {\n <div\n automation-id=\"tui-pagination__element\"\n class=\"t-ellipsis\"\n [class.t-ellipsis_small]=\"size() === 'm'\"\n ></div>\n }\n }\n\n <button\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [appearance]=\"getElementMode()\"\n [disabled]=\"arrowIsDisabledRight()\"\n [iconStart]=\"icons.increment\"\n [size]=\"buttonSize()\"\n (click)=\"onArrowClick('right')\"\n (mousedown.zoneless.prevent)=\"(0)\"\n >\n {{ texts()[1] }}\n </button>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MASa,CAAC,sBAAsB,EAAE,4BAA4B,CAAC,GAC/D,gBAAgB,CAAuB;AACnC,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,UAAU,EAAE,CAAC,QAAQ,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAC5D,CAAA;;ACSL,MAAM,oBAAoB,GAAG,CAAC;AAC9B,MAAM,kBAAkB,GAAG,CAAC;MASf,aAAa,CAAA;AAP1B,IAAA,WAAA,GAAA;QAQqB,IAAG,CAAA,GAAA,GAAG,YAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAC;QACjD,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AACvB,QAAA,IAAA,CAAA,aAAa,GAAG,QAAQ,CACrC,MAAM,IAAI,CAAC,WAAW,EAAE,GAAG,oBAAoB,GAAG,IAAI,CAAC,aAAa,EAAE,CACzE;AAEgB,QAAA,IAAA,CAAA,iBAAiB,GAAG,QAAQ,CACzC,MAAM,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,GAAG,kBAAkB,CACtD;AAEgB,QAAA,IAAA,CAAA,gBAAgB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;AAC5D,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;AACpE,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,C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,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECjCpE,sjEA4DA,EDjCc,MAAA,EAAA,CAAA,w4BAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAkB,8HAAE,SAAS,EAAA,QAAA,EAAA,uEAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAK9B,aAAa,EAAA,UAAA,EAAA,CAAA;kBAPzB,SAAS;+BACI,gBAAgB,EAAA,OAAA,EACjB,CAAC,kBAAkB,EAAE,SAAS,CAAC,EAAA,eAAA,EAGvB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,sjEAAA,EAAA,MAAA,EAAA,CAAA,w4BAAA,CAAA,EAAA;;;AE9BnD;;AAEG;;;;"}
@@ -3,22 +3,22 @@ import { ChangeDetectionStrategy, ViewEncapsulation, Component, input, Directive
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
 
5
5
  class Styles {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-pin" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-text-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiPin]:empty{--t-size: .75rem}[tuiPin]:empty:before{display:none}[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}[tuiPin]>tui-icon{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]:has(:checked)>img{padding:.125rem}[tuiPin]:has(:checked)>tui-icon{font-size:2.125rem}[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]._open>img{padding:.125rem}[tuiPin]._open>tui-icon{font-size:2.125rem}[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]._open:after{top:4.5rem;opacity:1}[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-pin" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-body-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiPin]:empty{--t-size: .75rem}[tuiPin]:empty:before{display:none}[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}[tuiPin]>tui-icon{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-body-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]:has(:checked)>img{padding:.125rem}[tuiPin]:has(:checked)>tui-icon{font-size:2.125rem}[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-body-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]._open>img{padding:.125rem}[tuiPin]._open>tui-icon{font-size:2.125rem}[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]._open:after{top:4.5rem;opacity:1}[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, decorators: [{
10
10
  type: Component,
11
- args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-pin' }, styles: ["[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-text-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiPin]:empty{--t-size: .75rem}[tuiPin]:empty:before{display:none}[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}[tuiPin]>tui-icon{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]:has(:checked)>img{padding:.125rem}[tuiPin]:has(:checked)>tui-icon{font-size:2.125rem}[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]._open>img{padding:.125rem}[tuiPin]._open>tui-icon{font-size:2.125rem}[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]._open:after{top:4.5rem;opacity:1}[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"] }]
11
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-pin' }, styles: ["[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-body-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiPin]:empty{--t-size: .75rem}[tuiPin]:empty:before{display:none}[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}[tuiPin]>tui-icon{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-body-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]:has(:checked)>img{padding:.125rem}[tuiPin]:has(:checked)>tui-icon{font-size:2.125rem}[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-body-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}[tuiPin]._open>img{padding:.125rem}[tuiPin]._open>tui-icon{font-size:2.125rem}[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}[tuiPin]._open:after{top:4.5rem;opacity:1}[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"] }]
12
12
  }] });
13
13
  class TuiPin {
14
14
  constructor() {
15
15
  this.nothing = tuiWithStyles(Styles);
16
16
  this.open = input('', { alias: 'tuiPin' });
17
17
  }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPin, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiPin, isStandalone: true, selector: "[tuiPin]", inputs: { open: { classPropertyName: "open", publicName: "tuiPin", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiPin": "" }, properties: { "class._open": "open()" } }, ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPin, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiPin, isStandalone: true, selector: "[tuiPin]", inputs: { open: { classPropertyName: "open", publicName: "tuiPin", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiPin": "" }, properties: { "class._open": "open()" } }, ngImport: i0 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPin, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPin, decorators: [{
22
22
  type: Directive,
23
23
  args: [{
24
24
  selector: '[tuiPin]',
@@ -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, input, model, computed, output, 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
7
  import * as i1$1 from '@taiga-ui/cdk/portals';
8
8
  import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
9
- import { TuiModalService } from '@taiga-ui/core/components/modal';
9
+ import { TuiModalService } from '@taiga-ui/core/portals/modal';
10
10
  import { tuiClamp, tuiRound } from '@taiga-ui/cdk/utils/math';
11
- import { TUI_PREVIEW_ICONS, TUI_PAGINATION_TEXTS, TUI_PREVIEW_ZOOM_TEXTS, TUI_PREVIEW_TEXTS } from '@taiga-ui/kit/tokens';
12
- import { AsyncPipe, PercentPipe } from '@angular/common';
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 { PercentPipe, AsyncPipe } 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,36 +19,25 @@ 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';
23
- import { switchMap, merge, of, timer, map, startWith, BehaviorSubject, combineLatest } from 'rxjs';
22
+ import * as i2 from '@taiga-ui/core/portals/hint';
23
+ import { TuiHint } from '@taiga-ui/core/portals/hint';
24
+ import { skip, switchMap, merge, of, timer, map, startWith, BehaviorSubject, combineLatest } from 'rxjs';
25
+ import { toSignal, toObservable } from '@angular/core/rxjs-interop';
24
26
  import * as i1$2 from '@angular/forms';
25
27
  import { FormsModule } from '@angular/forms';
26
28
  import * as i3 from '@taiga-ui/kit/components/slider';
27
29
  import { TuiSlider } from '@taiga-ui/kit/components/slider';
28
30
 
29
31
  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: [
32
- tuiButtonOptionsProvider({
33
- appearance: 'preview-action',
34
- size: 's',
35
- }),
36
- ], ngImport: i0 }); }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewAction, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
33
+ 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: [tuiButtonOptionsProvider({ appearance: 'preview-action', size: 's' })], ngImport: i0 }); }
37
34
  }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewAction, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewAction, decorators: [{
39
36
  type: Directive,
40
37
  args: [{
41
38
  selector: '[tuiPreviewAction]',
42
- providers: [
43
- tuiButtonOptionsProvider({
44
- appearance: 'preview-action',
45
- size: 's',
46
- }),
47
- ],
48
- host: {
49
- '[style.border-radius.rem]': '100',
50
- },
39
+ providers: [tuiButtonOptionsProvider({ appearance: 'preview-action', size: 's' })],
40
+ host: { '[style.border-radius.rem]': '100' },
51
41
  }]
52
42
  }] });
53
43
 
@@ -55,14 +45,14 @@ class TuiPreviewDialog {
55
45
  constructor() {
56
46
  this.context = injectContext();
57
47
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
- 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: `
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
49
+ 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: `
60
50
  <ng-container *polymorpheusOutlet="context.content as text; context: context">
61
51
  {{ text }}
62
52
  </ng-container>
63
- `, 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(: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]: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 }); }
53
+ `, 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}[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}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
64
54
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialog, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialog, decorators: [{
66
56
  type: Component,
67
57
  args: [{ selector: 'tui-preview-dialog', imports: [PolymorpheusOutlet], template: `
68
58
  <ng-container *polymorpheusOutlet="context.content as text; context: context">
@@ -70,7 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
70
60
  </ng-container>
71
61
  `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
72
62
  '(document:keydown.esc.prevent)': 'context.$implicit.complete()',
73
- }, 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(: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]: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"] }]
63
+ }, 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}[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}\n"] }]
74
64
  }] });
75
65
 
76
66
  class TuiPreviewDialogService extends TuiModalService {
@@ -79,10 +69,10 @@ class TuiPreviewDialogService extends TuiModalService {
79
69
  this.options = {};
80
70
  this.content = TuiPreviewDialog;
81
71
  }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
83
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogService, providedIn: 'root' }); }
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
73
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogService, providedIn: 'root' }); }
84
74
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogService, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogService, decorators: [{
86
76
  type: Injectable,
87
77
  args: [{
88
78
  providedIn: 'root',
@@ -90,10 +80,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
90
80
  }] });
91
81
 
92
82
  class TuiPreviewDialogDirective {
93
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
94
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPreviewDialogDirective, isStandalone: true, selector: "ng-template[tuiPreviewDialog]", providers: [tuiAsPortal(TuiPreviewDialogService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["open", "tuiPreviewDialog"], outputs: ["openChange", "tuiPreviewDialogChange"] }], ngImport: i0 }); }
83
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
84
+ 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 }); }
95
85
  }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewDialogDirective, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewDialogDirective, decorators: [{
97
87
  type: Directive,
98
88
  args: [{
99
89
  selector: 'ng-template[tuiPreviewDialog]',
@@ -108,110 +98,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
108
98
  }]
109
99
  }] });
110
100
 
101
+ const TUI_PREVIEW_ICONS_DEFAULT = {
102
+ rotate: '@tui.rotate-ccw-square',
103
+ prev: '@tui.arrow-left',
104
+ next: '@tui.arrow-right',
105
+ zoomIn: '@tui.plus',
106
+ zoomOut: '@tui.minus',
107
+ zoomReset: '@tui.minimize',
108
+ };
109
+ const [TUI_PREVIEW_ICONS, tuiPreviewIconsProvider] = tuiCreateOptions(TUI_PREVIEW_ICONS_DEFAULT);
110
+
111
111
  class TuiPreviewPagination {
112
112
  constructor() {
113
113
  this.icons = inject(TUI_PREVIEW_ICONS);
114
- this.paginationTexts = inject(TUI_PAGINATION_TEXTS);
115
- this.length = 1;
116
- this.index = 0;
117
- this.indexChange = new EventEmitter();
114
+ this.texts = inject(TUI_PAGINATION_TEXTS);
115
+ this.length = input(1);
116
+ this.index = model(0);
118
117
  }
119
118
  onArrowClick(step) {
120
- this.updateIndex(tuiClamp(this.index + step, 0, this.length - 1));
121
- }
122
- get leftButtonDisabled() {
123
- return this.index === 0;
124
- }
125
- get rightButtonDisabled() {
126
- return this.index === this.length - 1;
127
- }
128
- updateIndex(index) {
129
- if (this.index === index) {
130
- return;
131
- }
132
- this.index = index;
133
- this.indexChange.emit(index);
119
+ this.index.set(tuiClamp(this.index() + step, 0, this.length() - 1));
134
120
  }
135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
136
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.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: "@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 }); }
121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
122
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.17", type: TuiPreviewPagination, isStandalone: true, selector: "tui-preview-pagination", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { index: "indexChange" }, host: { listeners: { "document:keydown.arrowRight.prevent": "onArrowClick(1)", "document:keydown.arrowLeft.prevent": "onArrowClick(-1)" } }, ngImport: i0, template: "<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"!index()\"\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]=\"index() === length() - 1\"\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-body-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 }); }
137
123
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewPagination, decorators: [{
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewPagination, decorators: [{
139
125
  type: Component,
140
126
  args: [{ selector: 'tui-preview-pagination', imports: [TuiButton, TuiPreviewAction], changeDetection: ChangeDetectionStrategy.OnPush, host: {
141
127
  '(document:keydown.arrowRight.prevent)': 'onArrowClick(1)',
142
128
  '(document:keydown.arrowLeft.prevent)': 'onArrowClick(-1)',
143
- }, 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"] }]
144
- }], propDecorators: { length: [{
145
- type: Input
146
- }], index: [{
147
- type: Input
148
- }], indexChange: [{
149
- type: Output
150
- }] } });
129
+ }, template: "<button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-arrow t-arrow_left\"\n [disabled]=\"!index()\"\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]=\"index() === length() - 1\"\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-body-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"] }]
130
+ }] });
151
131
 
152
- const STEP = 0.5;
153
132
  class TuiPreviewZoom {
154
133
  constructor() {
155
134
  this.icons = inject(TUI_PREVIEW_ICONS);
156
- this.zoomTexts = inject(TUI_PREVIEW_ZOOM_TEXTS);
157
- this.min = 0.5;
158
- this.max = 2;
159
- this.value = 1;
160
- this.valueChange = new EventEmitter();
161
- this.reset = new EventEmitter();
162
- this.hintShow$ = this.valueChange.pipe(switchMap(() => merge(of(true), timer(1000).pipe(map(TUI_FALSE_HANDLER)))), startWith(false));
163
- }
164
- get leftButtonDisabled() {
165
- return this.value === this.min;
166
- }
167
- get rightButtonDisabled() {
168
- return this.value === this.max;
169
- }
170
- get collapseVisible() {
171
- return this.value > this.min;
135
+ this.texts = inject(TUI_PREVIEW_ZOOM_TEXTS);
136
+ this.sliderLabel = computed(() => `${this.texts().zoomOut} / ${this.texts().zoomIn}`);
137
+ this.min = input(0.5);
138
+ this.max = input(2);
139
+ this.value = model(1);
140
+ this.reset = output();
141
+ this.hint = toSignal(toObservable(this.value).pipe(skip(1), switchMap(() => merge(of(true), timer(1000).pipe(map(TUI_FALSE_HANDLER)))), startWith(false)), { requireSync: true });
172
142
  }
173
- onModelChange(value) {
174
- const clamped = tuiClamp(value, this.min, this.max);
175
- if (clamped === this.value) {
176
- return;
177
- }
178
- this.value = clamped;
179
- this.valueChange.emit(clamped);
180
- }
181
- onReset() {
182
- this.reset.emit();
183
- }
184
- onMinus() {
185
- this.onModelChange(this.value - STEP);
143
+ clamp(value) {
144
+ this.value.set(tuiClamp(value, this.min(), this.max()));
186
145
  }
187
- onPlus() {
188
- this.onModelChange(this.value < 1 ? 1 : this.value + STEP);
189
- }
190
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewZoom, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
191
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.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: "@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 <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", 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 }); }
146
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewZoom, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
147
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.17", type: TuiPreviewZoom, isStandalone: true, selector: "tui-preview-zoom", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", reset: "reset" }, ngImport: i0, template: "<section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"value() === min()\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"clamp(value() - 0.5)\"\n >\n {{ texts().zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n <div\n [tuiHint]=\"value() | percent\"\n [tuiHintManual]=\"hint()\"\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]=\"value() | percent\"\n [max]=\"max()\"\n [min]=\"min()\"\n [ngModelOptions]=\"{standalone: true}\"\n [(ngModel)]=\"value\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"value() === max()\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"clamp(value() + 0.5)\"\n >\n {{ texts().zoomIn }}\n </button>\n</section>\n<button\n tuiHintAppearance=\"floating\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"value() === this.min()\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts().reset\"\n (click)=\"reset.emit()\"\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-body-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: "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 }); }
192
148
  }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewZoom, decorators: [{
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewZoom, decorators: [{
194
150
  type: Component,
195
- args: [{ selector: 'tui-preview-zoom', imports: [
196
- AsyncPipe,
197
- FormsModule,
198
- PercentPipe,
199
- TuiButton,
200
- TuiHint,
201
- TuiPreviewAction,
202
- TuiSlider,
203
- ], 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 <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", 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"] }]
204
- }], propDecorators: { min: [{
205
- type: Input
206
- }], max: [{
207
- type: Input
208
- }], value: [{
209
- type: Input
210
- }], valueChange: [{
211
- type: Output
212
- }], reset: [{
213
- type: Output
214
- }] } });
151
+ args: [{ selector: 'tui-preview-zoom', imports: [FormsModule, PercentPipe, TuiButton, TuiHint, TuiPreviewAction, TuiSlider], changeDetection: ChangeDetectionStrategy.OnPush, template: "<section class=\"t-zoom\">\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_minus\"\n [disabled]=\"value() === min()\"\n [iconStart]=\"icons.zoomOut\"\n (click)=\"clamp(value() - 0.5)\"\n >\n {{ texts().zoomOut }}\n </button>\n <label tuiSliderThumbLabel>\n <div\n [tuiHint]=\"value() | percent\"\n [tuiHintManual]=\"hint()\"\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]=\"value() | percent\"\n [max]=\"max()\"\n [min]=\"min()\"\n [ngModelOptions]=\"{standalone: true}\"\n [(ngModel)]=\"value\"\n />\n </label>\n <button\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-sign_plus\"\n [disabled]=\"value() === max()\"\n [iconStart]=\"icons.zoomIn\"\n (click)=\"clamp(value() + 0.5)\"\n >\n {{ texts().zoomIn }}\n </button>\n</section>\n<button\n tuiHintAppearance=\"floating\"\n tuiHintDescribe\n tuiHintDirection=\"top-right\"\n tuiIconButton\n tuiPreviewAction\n type=\"button\"\n class=\"t-reset-button\"\n [class.t-invisible]=\"value() === this.min()\"\n [iconStart]=\"icons.zoomReset\"\n [tuiHint]=\"texts().reset\"\n (click)=\"reset.emit()\"\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-body-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"] }]
152
+ }] });
215
153
 
216
154
  const EMPTY_COORDINATES = [0, 0];
217
155
  const ROTATION_ANGLE = 90;
@@ -221,7 +159,7 @@ class TuiPreviewComponent {
221
159
  this.minZoom = 1;
222
160
  this.width = 0;
223
161
  this.height = 0;
224
- this.previewTexts = inject(TUI_PREVIEW_TEXTS);
162
+ this.texts = inject(TUI_PREVIEW_TEXTS);
225
163
  this.icons = inject(TUI_PREVIEW_ICONS);
226
164
  this.cdr = inject(ChangeDetectorRef);
227
165
  this.zoom$ = new BehaviorSubject(this.minZoom);
@@ -236,9 +174,9 @@ class TuiPreviewComponent {
236
174
  this.zoom$,
237
175
  this.rotation$,
238
176
  ]).pipe(map(([translate, zoom, rotation]) => `translate(${translate}) scale(${zoom}) rotate(${rotation}deg)`));
239
- this.zoomable = true;
240
- this.rotatable = false;
241
- this.initialScale = 0.8;
177
+ this.zoomable = input(true);
178
+ this.rotatable = input(false);
179
+ this.initialScale = input(0.8);
242
180
  }
243
181
  rotate() {
244
182
  this.rotation$.next(this.rotation$.value - ROTATION_ANGLE);
@@ -251,7 +189,7 @@ class TuiPreviewComponent {
251
189
  this.refresh(clientWidth, clientHeight);
252
190
  }
253
191
  onZoom({ clientX, clientY, delta }) {
254
- if (this.zoomable) {
192
+ if (this.zoomable()) {
255
193
  this.processZoom(clientX, clientY, delta);
256
194
  }
257
195
  }
@@ -276,11 +214,11 @@ class TuiPreviewComponent {
276
214
  return { offsetX, offsetY };
277
215
  }
278
216
  calculateMinZoom(contentHeight, contentWidth, boxHeight, boxWidth) {
279
- const bigSize = contentHeight > boxHeight * this.initialScale ||
280
- contentWidth > boxWidth * this.initialScale;
217
+ const bigSize = contentHeight > boxHeight * this.initialScale() ||
218
+ contentWidth > boxWidth * this.initialScale();
281
219
  const { clientHeight, clientWidth } = this.el;
282
220
  return bigSize
283
- ? tuiRound(Math.min((clientHeight * this.initialScale) / contentHeight, (clientWidth * this.initialScale) / contentWidth), 2)
221
+ ? tuiRound(Math.min((clientHeight * this.initialScale()) / contentHeight, (clientWidth * this.initialScale()) / contentWidth), 2)
284
222
  : 1;
285
223
  }
286
224
  refresh(width, height) {
@@ -310,10 +248,10 @@ class TuiPreviewComponent {
310
248
  (clientY - y - this.el.offsetHeight / 2) / scale,
311
249
  ];
312
250
  }
313
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
314
- 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: "@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 }); }
251
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
252
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiPreviewComponent, isStandalone: true, selector: "tui-preview", inputs: { zoomable: { classPropertyName: "zoomable", publicName: "zoomable", isSignal: true, isRequired: false, transformFunction: null }, rotatable: { classPropertyName: "rotatable", publicName: "rotatable", isSignal: true, isRequired: false, transformFunction: null }, initialScale: { classPropertyName: "initialScale", publicName: "initialScale", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<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=\"floating\"\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 }); }
315
253
  }
316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewComponent, decorators: [{
254
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewComponent, decorators: [{
317
255
  type: Component,
318
256
  args: [{ selector: 'tui-preview', imports: [
319
257
  AsyncPipe,
@@ -325,26 +263,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
325
263
  TuiZoom,
326
264
  WaMutationObserver,
327
265
  WaResizeObserver,
328
- ], 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"] }]
329
- }], propDecorators: { zoomable: [{
330
- type: Input
331
- }], rotatable: [{
332
- type: Input
333
- }], initialScale: [{
334
- type: Input
335
- }] } });
266
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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=\"floating\"\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"] }]
267
+ }] });
336
268
 
337
269
  class TuiPreviewTitle {
338
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewTitle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
339
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiPreviewTitle, isStandalone: true, selector: "tui-preview-title", ngImport: i0, template: `
270
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewTitle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
271
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiPreviewTitle, isStandalone: true, selector: "tui-preview-title", ngImport: i0, template: `
340
272
  <ng-content />
341
- `, 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 }); }
273
+ `, isInline: true, styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:inline-block;font:var(--tui-font-body-s);padding:.375rem .75rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
342
274
  }
343
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPreviewTitle, decorators: [{
275
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPreviewTitle, decorators: [{
344
276
  type: Component,
345
277
  args: [{ selector: 'tui-preview-title', template: `
346
278
  <ng-content />
347
- `, 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"] }]
279
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{border-radius:1rem;background:#686868f5;color:#fff;display:inline-block;font:var(--tui-font-body-s);padding:.375rem .75rem}\n"] }]
348
280
  }] });
349
281
 
350
282
  const TuiPreview = [
@@ -360,5 +292,5 @@ const TuiPreview = [
360
292
  * Generated bundle index. Do not edit.
361
293
  */
362
294
 
363
- export { TuiPreview, TuiPreviewAction, TuiPreviewComponent, TuiPreviewDialog, TuiPreviewDialogDirective, TuiPreviewDialogService, TuiPreviewPagination, TuiPreviewTitle, TuiPreviewZoom };
295
+ export { TUI_PREVIEW_ICONS, TUI_PREVIEW_ICONS_DEFAULT, TuiPreview, TuiPreviewAction, TuiPreviewComponent, TuiPreviewDialog, TuiPreviewDialogDirective, TuiPreviewDialogService, TuiPreviewPagination, TuiPreviewTitle, TuiPreviewZoom, tuiPreviewIconsProvider };
364
296
  //# sourceMappingURL=taiga-ui-kit-components-preview.mjs.map