@taiga-ui/kit 4.52.0-canary.56739a2 → 4.52.0-canary.58fe47a

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 (892) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  9. package/components/avatar/avatar.directive.d.ts +15 -0
  10. package/components/avatar/avatar.options.d.ts +1 -4
  11. package/components/avatar/index.d.ts +1 -1
  12. package/components/badge/badge.directive.d.ts +2 -2
  13. package/components/badge/badge.options.d.ts +1 -3
  14. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  15. package/components/block/block.directive.d.ts +4 -4
  16. package/components/block/block.options.d.ts +2 -4
  17. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  18. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  19. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  20. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  21. package/components/checkbox/checkbox.component.d.ts +7 -18
  22. package/components/checkbox/checkbox.options.d.ts +5 -9
  23. package/components/chip/chip.directive.d.ts +2 -4
  24. package/components/chip/chip.options.d.ts +1 -3
  25. package/components/comment/comment.directive.d.ts +2 -2
  26. package/components/confirm/confirm.component.d.ts +4 -2
  27. package/components/confirm/confirm.service.d.ts +2 -1
  28. package/{directives → components}/copy/copy.component.d.ts +2 -2
  29. package/{directives → components}/copy/copy.directive.d.ts +3 -4
  30. package/{directives → components}/copy/copy.options.d.ts +2 -2
  31. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  32. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  33. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  34. package/components/data-list-wrapper/index.d.ts +1 -1
  35. package/components/files/file/file.options.d.ts +2 -2
  36. package/components/files/files/files.component.d.ts +2 -2
  37. package/components/files/input-files/input-files.options.d.ts +1 -3
  38. package/components/floating-container/floating-container.directive.d.ts +2 -2
  39. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  40. package/components/fullscreen/index.d.ts +1 -0
  41. package/components/index.d.ts +3 -2
  42. package/components/input-chip/input-chip.component.d.ts +8 -7
  43. package/components/input-chip/input-chip.directive.d.ts +5 -10
  44. package/components/input-chip/input-chip.options.d.ts +1 -1
  45. package/components/input-color/input-color.component.d.ts +2 -1
  46. package/components/input-color/input-color.options.d.ts +1 -1
  47. package/components/input-date/input-date.directive.d.ts +1 -3
  48. package/components/input-date/input-date.options.d.ts +1 -1
  49. package/components/input-date-multi/input-date-multi.directive.d.ts +9 -13
  50. package/components/input-number/input-number.directive.d.ts +5 -9
  51. package/components/input-number/input-number.options.d.ts +1 -1
  52. package/components/input-number/quantum.directive.d.ts +2 -2
  53. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  54. package/components/input-phone/input-phone.options.d.ts +1 -1
  55. package/components/input-phone-international/input-phone-international.component.d.ts +24 -30
  56. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  57. package/components/input-pin/input-pin.component.d.ts +1 -1
  58. package/components/input-range/input-range.component.d.ts +9 -12
  59. package/components/input-slider/input-slider.directive.d.ts +3 -5
  60. package/components/input-time/input-time.directive.d.ts +6 -8
  61. package/components/input-time/input-time.options.d.ts +1 -1
  62. package/components/like/like.component.d.ts +4 -11
  63. package/components/like/like.options.d.ts +3 -4
  64. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  65. package/components/line-clamp/line-clamp.component.d.ts +12 -18
  66. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  67. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  68. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  69. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  70. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  71. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  72. package/components/pager/pager.component.d.ts +1 -1
  73. package/components/pagination/index.d.ts +1 -0
  74. package/components/pagination/pagination.component.d.ts +3 -2
  75. package/components/pagination/pagination.options.d.ts +10 -0
  76. package/components/pin/pin.directive.d.ts +2 -2
  77. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  78. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  79. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  80. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  81. package/components/preview/preview.component.d.ts +1 -1
  82. package/components/preview/preview.d.ts +2 -1
  83. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  84. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  85. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  86. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  87. package/components/progress/progress.options.d.ts +1 -3
  88. package/components/push/push-alert.component.d.ts +4 -3
  89. package/components/push/push.component.d.ts +2 -2
  90. package/components/push/push.directive.d.ts +4 -6
  91. package/components/push/push.options.d.ts +5 -8
  92. package/components/push/push.service.d.ts +6 -2
  93. package/components/radio/radio.component.d.ts +7 -8
  94. package/components/radio/radio.directive.d.ts +2 -2
  95. package/components/radio/radio.options.d.ts +2 -5
  96. package/components/radio-list/radio-list.component.d.ts +5 -3
  97. package/components/range/range-change.directive.d.ts +1 -2
  98. package/components/range/range.component.d.ts +16 -24
  99. package/components/rating/rating.component.d.ts +5 -5
  100. package/components/rating/rating.options.d.ts +6 -6
  101. package/components/segmented/segmented.component.d.ts +8 -12
  102. package/components/segmented/segmented.directive.d.ts +6 -7
  103. package/components/select/native-select/native-select.component.d.ts +4 -5
  104. package/components/slider/helpers/key-steps.d.ts +1 -2
  105. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  106. package/components/slider/slider.options.d.ts +1 -6
  107. package/components/slides/slides.directive.d.ts +4 -4
  108. package/components/status/status.directive.d.ts +2 -2
  109. package/components/stepper/step.component.d.ts +6 -8
  110. package/components/stepper/stepper.component.d.ts +6 -11
  111. package/components/switch/switch.component.d.ts +7 -19
  112. package/components/switch/switch.options.d.ts +4 -8
  113. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  114. package/components/tabs/tabs.options.d.ts +1 -6
  115. package/components/textarea/textarea-limit.directive.d.ts +4 -5
  116. package/components/textarea/textarea.options.d.ts +1 -1
  117. package/components/toast/index.d.ts +5 -0
  118. package/components/toast/toast.component.d.ts +18 -0
  119. package/components/toast/toast.d.ts +3 -0
  120. package/components/toast/toast.directive.d.ts +7 -0
  121. package/components/toast/toast.options.d.ts +10 -0
  122. package/components/toast/toast.service.d.ts +17 -0
  123. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  124. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +9 -7
  125. package/components/tree/misc/tree.constants.d.ts +0 -3
  126. package/components/tree/misc/tree.tokens.d.ts +1 -6
  127. package/directives/button-close/button-close.directive.d.ts +2 -1
  128. package/directives/button-select/button-select.directive.d.ts +3 -3
  129. package/directives/chevron/chevron.directive.d.ts +2 -3
  130. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  131. package/directives/fade/fade.directive.d.ts +2 -2
  132. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  133. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  134. package/directives/highlight/highlight.directive.d.ts +1 -3
  135. package/directives/index.d.ts +0 -2
  136. package/directives/password/password.options.d.ts +1 -1
  137. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  138. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  139. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  140. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  141. package/directives/tooltip/tooltip.options.d.ts +1 -4
  142. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -146
  143. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  145. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-avatar.mjs +82 -101
  147. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  149. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-badge.mjs +18 -28
  151. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -9
  153. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  155. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +11 -19
  157. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +7 -8
  159. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +7 -20
  161. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +10 -11
  163. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-carousel.mjs +22 -30
  165. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +18 -76
  167. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-chip.mjs +25 -34
  169. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +9 -10
  171. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  173. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-compass.mjs +6 -6
  175. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-confirm.mjs +13 -16
  177. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-copy.mjs +116 -0
  179. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  180. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +23 -79
  181. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  183. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -9
  185. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-files.mjs +46 -63
  187. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-filter.mjs +7 -16
  189. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +13 -19
  191. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  193. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  194. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +60 -75
  195. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-input-color.mjs +12 -15
  197. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +30 -49
  199. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +7 -8
  201. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +12 -15
  203. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-input-date.mjs +28 -40
  205. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +6 -7
  207. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +9 -11
  209. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-input-month.mjs +15 -18
  211. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-input-number.mjs +51 -75
  213. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +106 -137
  215. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +12 -15
  217. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +8 -9
  219. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-input-range.mjs +35 -39
  221. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +29 -44
  223. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-components-input-time.mjs +42 -49
  225. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-input-year.mjs +9 -11
  227. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +18 -20
  229. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  231. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +41 -91
  233. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-components-message.mjs +10 -13
  235. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +56 -65
  237. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +40 -36
  239. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-components-pager.mjs +8 -10
  241. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-components-pagination.mjs +25 -16
  243. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  245. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-components-preview.mjs +59 -53
  247. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-progress.mjs +78 -83
  249. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-components-pulse.mjs +5 -5
  251. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-components-push.mjs +50 -57
  253. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +10 -11
  255. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  256. package/fesm2022/taiga-ui-kit-components-radio.mjs +35 -41
  257. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  258. package/fesm2022/taiga-ui-kit-components-range.mjs +42 -86
  259. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  260. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  261. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  262. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +12 -8
  263. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  264. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  265. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  266. package/fesm2022/taiga-ui-kit-components-select.mjs +48 -52
  267. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  268. package/fesm2022/taiga-ui-kit-components-slider.mjs +76 -85
  269. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  270. package/fesm2022/taiga-ui-kit-components-slides.mjs +14 -22
  271. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  272. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  273. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  274. package/fesm2022/taiga-ui-kit-components-stepper.mjs +47 -81
  275. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-components-switch.mjs +18 -65
  277. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-components-tabs.mjs +37 -50
  279. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-components-textarea.mjs +19 -30
  281. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-components-tiles.mjs +15 -16
  283. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-components-toast.mjs +165 -0
  285. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  286. package/fesm2022/taiga-ui-kit-components-tree.mjs +64 -84
  287. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  288. package/fesm2022/taiga-ui-kit-components.mjs +3 -2
  289. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  291. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  292. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +10 -13
  293. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  294. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +17 -16
  295. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  296. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +15 -21
  297. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  298. package/fesm2022/taiga-ui-kit-directives-connected.mjs +10 -16
  299. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  300. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +24 -52
  301. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  302. package/fesm2022/taiga-ui-kit-directives-fade.mjs +16 -18
  303. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  304. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  305. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  306. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -6
  307. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -10
  309. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  310. package/fesm2022/taiga-ui-kit-directives-password.mjs +12 -14
  311. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  312. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -5
  313. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  314. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  315. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  316. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  317. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +27 -38
  319. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  320. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +15 -20
  321. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  322. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +7 -9
  323. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  324. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +5 -6
  325. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  326. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  327. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  328. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  329. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  330. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -4
  331. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  332. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  333. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  334. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -5
  335. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  336. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  337. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  338. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  339. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  340. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  341. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  342. package/fesm2022/taiga-ui-kit-tokens.mjs +9 -27
  343. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  344. package/fesm2022/taiga-ui-kit-utils.mjs +2 -2
  345. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  346. package/package.json +30 -250
  347. package/pipes/index.d.ts +0 -1
  348. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  349. package/styles/components/avatar.less +188 -0
  350. package/styles/components/badge.less +4 -18
  351. package/styles/components/block.less +1 -1
  352. package/styles/components/checkbox.less +17 -16
  353. package/styles/components/chip.less +13 -4
  354. package/styles/components/like.less +15 -17
  355. package/styles/components/pin.less +3 -7
  356. package/styles/components/radio.less +2 -2
  357. package/styles/components/switch.less +12 -12
  358. package/styles/components/toast.less +44 -0
  359. package/tokens/i18n.d.ts +25 -26
  360. package/tokens/index.d.ts +0 -1
  361. package/tokens/input-date-options.d.ts +1 -1
  362. package/tokens/items-handlers.d.ts +1 -7
  363. package/tokens/preview-icons.d.ts +1 -3
  364. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  365. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  366. package/components/accordion/accordion-item.component.d.ts +0 -25
  367. package/components/action-bar/action-bar.d.ts +0 -3
  368. package/components/action-bar/action-bar.directive.d.ts +0 -6
  369. package/components/avatar/avatar.component.d.ts +0 -15
  370. package/components/input-password/index.d.ts +0 -2
  371. package/components/input-password/input-password.component.d.ts +0 -16
  372. package/components/input-password/input-password.options.d.ts +0 -24
  373. package/components/pdf-viewer/index.d.ts +0 -4
  374. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  375. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  376. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  377. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  378. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  379. package/directives/icon-badge/index.d.ts +0 -1
  380. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  381. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  382. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  383. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  384. package/esm2022/components/accordion/accordion.mjs +0 -11
  385. package/esm2022/components/accordion/index.mjs +0 -6
  386. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  387. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  388. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  389. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  390. package/esm2022/components/action-bar/index.mjs +0 -4
  391. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  392. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  393. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  394. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  395. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  396. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  397. package/esm2022/components/avatar/index.mjs +0 -6
  398. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  399. package/esm2022/components/badge/badge.directive.mjs +0 -42
  400. package/esm2022/components/badge/badge.options.mjs +0 -13
  401. package/esm2022/components/badge/index.mjs +0 -3
  402. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  403. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  404. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  405. package/esm2022/components/badge-notification/index.mjs +0 -3
  406. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  407. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  408. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  409. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  410. package/esm2022/components/badged-content/index.mjs +0 -4
  411. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  412. package/esm2022/components/block/block.directive.mjs +0 -58
  413. package/esm2022/components/block/block.options.mjs +0 -13
  414. package/esm2022/components/block/index.mjs +0 -3
  415. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  416. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  417. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  418. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  419. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  420. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  421. package/esm2022/components/button-loading/index.mjs +0 -2
  422. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  423. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  424. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  425. package/esm2022/components/calendar-month/index.mjs +0 -3
  426. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  427. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  428. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  429. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  430. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  431. package/esm2022/components/calendar-range/index.mjs +0 -5
  432. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  433. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  434. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  435. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  436. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  437. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  438. package/esm2022/components/carousel/carousel.mjs +0 -15
  439. package/esm2022/components/carousel/index.mjs +0 -7
  440. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  441. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  442. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  443. package/esm2022/components/checkbox/index.mjs +0 -3
  444. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  445. package/esm2022/components/chip/chip.directive.mjs +0 -63
  446. package/esm2022/components/chip/chip.options.mjs +0 -13
  447. package/esm2022/components/chip/index.mjs +0 -3
  448. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  449. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  450. package/esm2022/components/combo-box/index.mjs +0 -2
  451. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  452. package/esm2022/components/comment/comment.directive.mjs +0 -35
  453. package/esm2022/components/comment/index.mjs +0 -2
  454. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  455. package/esm2022/components/compass/compass.component.mjs +0 -19
  456. package/esm2022/components/compass/index.mjs +0 -2
  457. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  458. package/esm2022/components/confirm/confirm.component.mjs +0 -28
  459. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  460. package/esm2022/components/confirm/index.mjs +0 -3
  461. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  462. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  463. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  464. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  465. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  466. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  467. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  468. package/esm2022/components/drawer/index.mjs +0 -2
  469. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  470. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  471. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  472. package/esm2022/components/elastic-container/index.mjs +0 -3
  473. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  474. package/esm2022/components/files/file/file.component.mjs +0 -144
  475. package/esm2022/components/files/file/file.options.mjs +0 -16
  476. package/esm2022/components/files/files/files.component.mjs +0 -56
  477. package/esm2022/components/files/files.mjs +0 -15
  478. package/esm2022/components/files/files.types.mjs +0 -2
  479. package/esm2022/components/files/files.utils.mjs +0 -30
  480. package/esm2022/components/files/files.validators.mjs +0 -32
  481. package/esm2022/components/files/index.mjs +0 -13
  482. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  483. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  484. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  485. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  486. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  487. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  488. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  489. package/esm2022/components/filter/filter.component.mjs +0 -65
  490. package/esm2022/components/filter/index.mjs +0 -2
  491. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  492. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  493. package/esm2022/components/floating-container/index.mjs +0 -2
  494. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  495. package/esm2022/components/index.mjs +0 -73
  496. package/esm2022/components/input-chip/index.mjs +0 -5
  497. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  498. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  499. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  500. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  501. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  502. package/esm2022/components/input-color/index.mjs +0 -3
  503. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  504. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  505. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  506. package/esm2022/components/input-date/date-filler.mjs +0 -20
  507. package/esm2022/components/input-date/index.mjs +0 -6
  508. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  509. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  510. package/esm2022/components/input-date/input-date.mjs +0 -9
  511. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  512. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  513. package/esm2022/components/input-date-multi/index.mjs +0 -3
  514. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  515. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  516. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  517. package/esm2022/components/input-date-range/index.mjs +0 -4
  518. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  519. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  520. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  521. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  522. package/esm2022/components/input-date-time/index.mjs +0 -5
  523. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  524. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  525. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  526. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  527. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  528. package/esm2022/components/input-inline/index.mjs +0 -2
  529. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  530. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  531. package/esm2022/components/input-month/index.mjs +0 -5
  532. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  533. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  534. package/esm2022/components/input-month/input-month.mjs +0 -9
  535. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  536. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  537. package/esm2022/components/input-month-range/index.mjs +0 -4
  538. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  539. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  540. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  541. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  542. package/esm2022/components/input-number/index.mjs +0 -6
  543. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  544. package/esm2022/components/input-number/input-number.mjs +0 -9
  545. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  546. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  547. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  548. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  549. package/esm2022/components/input-password/index.mjs +0 -3
  550. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  551. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  552. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  553. package/esm2022/components/input-phone/index.mjs +0 -3
  554. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  555. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  556. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  557. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  558. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  559. package/esm2022/components/input-phone-international/index.mjs +0 -3
  560. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  561. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  562. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  563. package/esm2022/components/input-pin/index.mjs +0 -2
  564. package/esm2022/components/input-pin/input-pin.component.mjs +0 -66
  565. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  566. package/esm2022/components/input-range/index.mjs +0 -3
  567. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  568. package/esm2022/components/input-range/input-range.mjs +0 -4
  569. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  570. package/esm2022/components/input-slider/index.mjs +0 -3
  571. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  572. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  573. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  574. package/esm2022/components/input-time/index.mjs +0 -5
  575. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  576. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  577. package/esm2022/components/input-time/input-time.mjs +0 -4
  578. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  579. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  580. package/esm2022/components/input-year/index.mjs +0 -4
  581. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  582. package/esm2022/components/input-year/input-year.mjs +0 -4
  583. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  584. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  585. package/esm2022/components/items-with-more/index.mjs +0 -6
  586. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  587. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  588. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  589. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  590. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  591. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  592. package/esm2022/components/like/index.mjs +0 -3
  593. package/esm2022/components/like/like.component.mjs +0 -46
  594. package/esm2022/components/like/like.options.mjs +0 -10
  595. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  596. package/esm2022/components/line-clamp/index.mjs +0 -4
  597. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  598. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  599. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  600. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  601. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  602. package/esm2022/components/message/index.mjs +0 -2
  603. package/esm2022/components/message/message.directive.mjs +0 -43
  604. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  605. package/esm2022/components/multi-select/index.mjs +0 -6
  606. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  607. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  608. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  609. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  610. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  611. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  612. package/esm2022/components/notification-middle/index.mjs +0 -4
  613. package/esm2022/components/notification-middle/notification-middle.component.mjs +0 -57
  614. package/esm2022/components/notification-middle/notification-middle.directive.mjs +0 -21
  615. package/esm2022/components/notification-middle/notification-middle.service.mjs +0 -22
  616. package/esm2022/components/notification-middle/taiga-ui-kit-components-notification-middle.mjs +0 -5
  617. package/esm2022/components/pager/index.mjs +0 -2
  618. package/esm2022/components/pager/pager.component.mjs +0 -97
  619. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  620. package/esm2022/components/pagination/index.mjs +0 -2
  621. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  622. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  623. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  624. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  625. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  626. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  627. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  628. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  629. package/esm2022/components/pin/index.mjs +0 -2
  630. package/esm2022/components/pin/pin.directive.mjs +0 -35
  631. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  632. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  633. package/esm2022/components/preview/dialog/index.mjs +0 -4
  634. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  635. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  636. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  637. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  638. package/esm2022/components/preview/index.mjs +0 -8
  639. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  640. package/esm2022/components/preview/preview.component.mjs +0 -142
  641. package/esm2022/components/preview/preview.mjs +0 -13
  642. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  643. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  644. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  645. package/esm2022/components/progress/index.mjs +0 -9
  646. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  647. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  648. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  649. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  650. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  651. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  652. package/esm2022/components/progress/progress.mjs +0 -15
  653. package/esm2022/components/progress/progress.options.mjs +0 -13
  654. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  655. package/esm2022/components/pulse/index.mjs +0 -2
  656. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  657. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  658. package/esm2022/components/push/index.mjs +0 -7
  659. package/esm2022/components/push/push-alert.component.mjs +0 -29
  660. package/esm2022/components/push/push.component.mjs +0 -39
  661. package/esm2022/components/push/push.directive.mjs +0 -33
  662. package/esm2022/components/push/push.mjs +0 -5
  663. package/esm2022/components/push/push.options.mjs +0 -21
  664. package/esm2022/components/push/push.service.mjs +0 -19
  665. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  666. package/esm2022/components/radio/index.mjs +0 -5
  667. package/esm2022/components/radio/radio.component.mjs +0 -53
  668. package/esm2022/components/radio/radio.directive.mjs +0 -32
  669. package/esm2022/components/radio/radio.mjs +0 -4
  670. package/esm2022/components/radio/radio.options.mjs +0 -13
  671. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  672. package/esm2022/components/radio-list/index.mjs +0 -2
  673. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  674. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  675. package/esm2022/components/range/index.mjs +0 -3
  676. package/esm2022/components/range/range-change.directive.mjs +0 -78
  677. package/esm2022/components/range/range.component.mjs +0 -164
  678. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  679. package/esm2022/components/rating/index.mjs +0 -3
  680. package/esm2022/components/rating/rating.component.mjs +0 -64
  681. package/esm2022/components/rating/rating.options.mjs +0 -13
  682. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  683. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  684. package/esm2022/components/routable-dialog/index.mjs +0 -3
  685. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  686. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  687. package/esm2022/components/segmented/index.mjs +0 -3
  688. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  689. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  690. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  691. package/esm2022/components/select/index.mjs +0 -5
  692. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  693. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  694. package/esm2022/components/select/select.directive.mjs +0 -56
  695. package/esm2022/components/select/select.mjs +0 -4
  696. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  697. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  698. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  699. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  700. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  701. package/esm2022/components/slider/index.mjs +0 -8
  702. package/esm2022/components/slider/slider.component.mjs +0 -124
  703. package/esm2022/components/slider/slider.mjs +0 -12
  704. package/esm2022/components/slider/slider.options.mjs +0 -16
  705. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  706. package/esm2022/components/slides/index.mjs +0 -2
  707. package/esm2022/components/slides/slides.directive.mjs +0 -51
  708. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  709. package/esm2022/components/status/index.mjs +0 -2
  710. package/esm2022/components/status/status.directive.mjs +0 -35
  711. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  712. package/esm2022/components/stepper/index.mjs +0 -4
  713. package/esm2022/components/stepper/step.component.mjs +0 -58
  714. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  715. package/esm2022/components/stepper/stepper.mjs +0 -4
  716. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  717. package/esm2022/components/switch/index.mjs +0 -3
  718. package/esm2022/components/switch/switch.component.mjs +0 -63
  719. package/esm2022/components/switch/switch.options.mjs +0 -15
  720. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  721. package/esm2022/components/tabs/index.mjs +0 -9
  722. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  723. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  724. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  725. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -213
  726. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  727. package/esm2022/components/tabs/tabs.mjs +0 -15
  728. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  729. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  730. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  731. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  732. package/esm2022/components/textarea/index.mjs +0 -4
  733. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  734. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -93
  735. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  736. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  737. package/esm2022/components/tiles/index.mjs +0 -7
  738. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  739. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  740. package/esm2022/components/tiles/tile.component.mjs +0 -69
  741. package/esm2022/components/tiles/tile.service.mjs +0 -90
  742. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  743. package/esm2022/components/tiles/tiles.mjs +0 -5
  744. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  745. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  746. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  747. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  748. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  749. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  750. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  751. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  752. package/esm2022/components/tree/index.mjs +0 -12
  753. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  754. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  755. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  756. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  757. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  758. package/esm2022/components/tree/tree.mjs +0 -17
  759. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  760. package/esm2022/directives/button-close/index.mjs +0 -2
  761. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  762. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  763. package/esm2022/directives/button-group/index.mjs +0 -2
  764. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  765. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  766. package/esm2022/directives/button-select/index.mjs +0 -2
  767. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  768. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  769. package/esm2022/directives/chevron/index.mjs +0 -2
  770. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  771. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  772. package/esm2022/directives/connected/index.mjs +0 -2
  773. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  774. package/esm2022/directives/copy/copy.component.mjs +0 -48
  775. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  776. package/esm2022/directives/copy/copy.mjs +0 -4
  777. package/esm2022/directives/copy/copy.options.mjs +0 -3
  778. package/esm2022/directives/copy/index.mjs +0 -6
  779. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  780. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  781. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  782. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  783. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  784. package/esm2022/directives/fade/index.mjs +0 -2
  785. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  786. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  787. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  788. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  789. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  790. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  791. package/esm2022/directives/highlight/index.mjs +0 -2
  792. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  793. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  794. package/esm2022/directives/icon-badge/index.mjs +0 -2
  795. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  796. package/esm2022/directives/index.mjs +0 -21
  797. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  798. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  799. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  800. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  801. package/esm2022/directives/password/index.mjs +0 -3
  802. package/esm2022/directives/password/password.directive.mjs +0 -67
  803. package/esm2022/directives/password/password.options.mjs +0 -8
  804. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  805. package/esm2022/directives/present/index.mjs +0 -2
  806. package/esm2022/directives/present/present.directive.mjs +0 -33
  807. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  808. package/esm2022/directives/sensitive/index.mjs +0 -2
  809. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  810. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  811. package/esm2022/directives/shimmer/index.mjs +0 -2
  812. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  813. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  814. package/esm2022/directives/skeleton/index.mjs +0 -2
  815. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  816. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  817. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  818. package/esm2022/directives/tooltip/index.mjs +0 -3
  819. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  820. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  821. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  822. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  823. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  824. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  825. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  826. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  827. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  828. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  829. package/esm2022/index.mjs +0 -6
  830. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  831. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  832. package/esm2022/pipes/emails/index.mjs +0 -3
  833. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  834. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  835. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  836. package/esm2022/pipes/field-error/index.mjs +0 -3
  837. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  838. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  839. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  840. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  841. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  842. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  843. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  844. package/esm2022/pipes/index.mjs +0 -8
  845. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  846. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  847. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  848. package/esm2022/pipes/stringify/index.mjs +0 -2
  849. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  850. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  851. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  852. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  853. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  854. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  855. package/esm2022/taiga-ui-kit.mjs +0 -5
  856. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  857. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  858. package/esm2022/tokens/i18n.mjs +0 -75
  859. package/esm2022/tokens/index.mjs +0 -10
  860. package/esm2022/tokens/input-date-options.mjs +0 -13
  861. package/esm2022/tokens/items-handlers.mjs +0 -27
  862. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  863. package/esm2022/tokens/month-formatter.mjs +0 -12
  864. package/esm2022/tokens/preview-icons.mjs +0 -17
  865. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  866. package/esm2022/tokens/validation-errors.mjs +0 -6
  867. package/esm2022/utils/create-time-periods.mjs +0 -12
  868. package/esm2022/utils/index.mjs +0 -7
  869. package/esm2022/utils/inject-value.mjs +0 -11
  870. package/esm2022/utils/is-flat.mjs +0 -4
  871. package/esm2022/utils/maskito.binding.mjs +0 -6
  872. package/esm2022/utils/phone.mjs +0 -6
  873. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  874. package/esm2022/utils/toggle-day.mjs +0 -6
  875. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -96
  876. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  877. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  878. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  879. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  880. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  881. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -120
  882. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  883. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  884. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  885. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  886. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  887. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  888. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  889. package/pipes/field-error/index.d.ts +0 -2
  890. package/tokens/validation-errors.d.ts +0 -5
  891. /package/{directives → components}/copy/copy.d.ts +0 -0
  892. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1,16 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { isSignal, Component, ChangeDetectionStrategy, Injectable, Directive } from '@angular/core';
2
+ import { isSignal, ChangeDetectionStrategy, Component, Injectable, input, Directive } from '@angular/core';
3
3
  import * as i2 from '@ng-web-apis/resize-observer';
4
4
  import { WaResizeObserver } from '@ng-web-apis/resize-observer';
5
5
  import * as i1 from '@taiga-ui/cdk/directives/animated';
6
6
  import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
7
7
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
8
- import { tuiLoaderOptionsProvider, TuiLoader } from '@taiga-ui/core/components/loader';
9
- import { tuiAvatarOptionsProvider } from '@taiga-ui/kit/components/avatar';
8
+ import { TuiLoader, tuiLoaderOptionsProvider } from '@taiga-ui/core/components/loader';
10
9
  import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
11
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
12
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
13
- import { TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
10
+ import * as i1$1 from '@taiga-ui/cdk/portals';
11
+ import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
12
+ import { TuiModalService } from '@taiga-ui/core/components/modal';
14
13
 
15
14
  class TuiNotificationMiddleComponent {
16
15
  constructor() {
@@ -27,65 +26,70 @@ class TuiNotificationMiddleComponent {
27
26
  ? this.context.closable()
28
27
  : this.context.closable;
29
28
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNotificationMiddleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
31
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiNotificationMiddleComponent, isStandalone: true, selector: "tui-notification-middle", host: { listeners: { "document:click.capture": "onClick($event.target)", "document:keydown.esc": "onClick($event.currentTarget)", "waResizeObserver": "el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")" } }, providers: [
32
- tuiLoaderOptionsProvider({ size: 'l' }),
33
- tuiAvatarOptionsProvider({ size: 'm' }),
34
- ], hostDirectives: [{ directive: i1.TuiAnimated }, { directive: i2.WaResizeObserver, outputs: ["waResizeObserver", "waResizeObserver"] }], ngImport: i0, template: `
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiNotificationMiddleComponent, isStandalone: true, selector: "tui-notification-middle", host: { listeners: { "document:click.capture": "onClick($event.target)", "document:keydown.esc": "onClick($event.currentTarget)", "waResizeObserver": "el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")" }, classAttribute: "tui-backdrop-hidden" }, providers: [tuiLoaderOptionsProvider({ size: 'l' })], hostDirectives: [{ directive: i1.TuiAnimated }, { directive: i2.WaResizeObserver, outputs: ["waResizeObserver", "waResizeObserver"] }], ngImport: i0, template: `
35
31
  <tui-loader class="t-loader" />
36
32
  <ng-container *polymorpheusOutlet="context.content as text">
37
33
  {{ text }}
38
34
  </ng-container>
39
- `, isInline: true, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>tui-avatar,:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiLoader, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "showLoader"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
+ `, isInline: true, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>[tuiAvatar],:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiLoader, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
40
36
  }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNotificationMiddleComponent, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleComponent, decorators: [{
42
38
  type: Component,
43
- args: [{ standalone: true, selector: 'tui-notification-middle', imports: [PolymorpheusOutlet, TuiLoader], template: `
39
+ args: [{ selector: 'tui-notification-middle', imports: [PolymorpheusOutlet, TuiLoader], template: `
44
40
  <tui-loader class="t-loader" />
45
41
  <ng-container *polymorpheusOutlet="context.content as text">
46
42
  {{ text }}
47
43
  </ng-container>
48
- `, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
49
- tuiLoaderOptionsProvider({ size: 'l' }),
50
- tuiAvatarOptionsProvider({ size: 'm' }),
51
- ], hostDirectives: [
44
+ `, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiLoaderOptionsProvider({ size: 'l' })], hostDirectives: [
52
45
  TuiAnimated,
53
46
  { directive: WaResizeObserver, outputs: ['waResizeObserver'] },
54
47
  ], host: {
48
+ class: 'tui-backdrop-hidden',
55
49
  '(document:click.capture)': 'onClick($event.target)',
56
50
  '(document:keydown.esc)': 'onClick($event.currentTarget)',
57
51
  '(waResizeObserver)': 'el.style.setProperty("--t-width", el.clientWidth + "px")',
58
- }, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>tui-avatar,:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"] }]
52
+ }, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>[tuiAvatar],:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"] }]
59
53
  }] });
60
54
 
61
- class TuiNotificationMiddleService extends TuiPopoverService {
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNotificationMiddleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
63
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNotificationMiddleService, providedIn: 'root', useFactory: () => new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {
64
- closable: false,
65
- }) }); }
55
+ class TuiNotificationMiddleService extends TuiModalService {
56
+ constructor() {
57
+ super(...arguments);
58
+ this.options = { closable: false };
59
+ this.content = TuiNotificationMiddleComponent;
60
+ }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
62
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, providedIn: 'root' }); }
66
63
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNotificationMiddleService, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, decorators: [{
68
65
  type: Injectable,
69
66
  args: [{
70
67
  providedIn: 'root',
71
- useFactory: () => new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {
72
- closable: false,
73
- }),
74
68
  }]
75
69
  }] });
76
70
 
77
- class TuiNotificationMiddle extends TuiPopoverDirective {
78
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNotificationMiddle, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
79
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiNotificationMiddle, isStandalone: true, selector: "ng-template[tuiNotificationMiddle]", inputs: { options: ["tuiNotificationMiddleOptions", "options"], open: ["tuiNotificationMiddle", "open"] }, outputs: { openChange: "tuiNotificationMiddleChange" }, providers: [tuiAsPopover(TuiNotificationMiddleService)], usesInheritance: true, ngImport: i0 }); }
71
+ class TuiNotificationMiddle {
72
+ constructor() {
73
+ this.tuiNotificationMiddleOptions = input({});
74
+ }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
76
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiNotificationMiddle, isStandalone: true, selector: "ng-template[tuiNotificationMiddle]", inputs: { tuiNotificationMiddleOptions: { classPropertyName: "tuiNotificationMiddleOptions", publicName: "tuiNotificationMiddleOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiNotificationMiddleService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["options", "tuiNotificationMiddleOptions", "open", "tuiNotificationMiddle"], outputs: ["openChange", "tuiNotificationMiddleChange"] }], ngImport: i0 }); }
80
77
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNotificationMiddle, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddle, decorators: [{
82
79
  type: Directive,
83
80
  args: [{
84
- standalone: true,
85
81
  selector: 'ng-template[tuiNotificationMiddle]',
86
- inputs: ['options: tuiNotificationMiddleOptions', 'open: tuiNotificationMiddle'],
87
- outputs: ['openChange: tuiNotificationMiddleChange'],
88
- providers: [tuiAsPopover(TuiNotificationMiddleService)],
82
+ providers: [tuiAsPortal(TuiNotificationMiddleService)],
83
+ hostDirectives: [
84
+ {
85
+ directive: TuiPortalDirective,
86
+ inputs: [
87
+ 'options: tuiNotificationMiddleOptions',
88
+ 'open: tuiNotificationMiddle',
89
+ ],
90
+ outputs: ['openChange: tuiNotificationMiddleChange'],
91
+ },
92
+ ],
89
93
  }]
90
94
  }] });
91
95
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-notification-middle.mjs","sources":["../../../projects/kit/components/notification-middle/notification-middle.component.ts","../../../projects/kit/components/notification-middle/notification-middle.service.ts","../../../projects/kit/components/notification-middle/notification-middle.directive.ts","../../../projects/kit/components/notification-middle/taiga-ui-kit-components-notification-middle.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, isSignal, type Signal} from '@angular/core';\nimport {WaResizeObserver} from '@ng-web-apis/resize-observer';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiLoader, tuiLoaderOptionsProvider} from '@taiga-ui/core/components/loader';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nexport interface TuiNotificationMiddleOptions {\n closable: Signal<boolean> | boolean;\n}\n\n@Component({\n standalone: true,\n selector: 'tui-notification-middle',\n imports: [PolymorpheusOutlet, TuiLoader],\n template: `\n <tui-loader class=\"t-loader\" />\n <ng-container *polymorpheusOutlet=\"context.content as text\">\n {{ text }}\n </ng-container>\n `,\n styleUrls: ['./notification-middle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiLoaderOptionsProvider({size: 'l'}),\n tuiAvatarOptionsProvider({size: 'm'}),\n ],\n hostDirectives: [\n TuiAnimated,\n {directive: WaResizeObserver, outputs: ['waResizeObserver']},\n ],\n host: {\n '(document:click.capture)': 'onClick($event.target)',\n '(document:keydown.esc)': 'onClick($event.currentTarget)',\n '(waResizeObserver)': 'el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")',\n },\n})\nexport class TuiNotificationMiddleComponent {\n protected readonly el = tuiInjectElement();\n protected readonly context =\n injectContext<TuiPopover<TuiNotificationMiddleOptions, void>>();\n\n protected onClick(target: HTMLElement): void {\n if (this.closable && !this.el.contains(target)) {\n this.context.$implicit.complete();\n }\n }\n\n private get closable(): boolean {\n return isSignal(this.context.closable)\n ? this.context.closable()\n : this.context.closable;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {\n TuiNotificationMiddleComponent,\n type TuiNotificationMiddleOptions,\n} from './notification-middle.component';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiNotificationMiddleService(TUI_DIALOGS, TuiNotificationMiddleComponent, {\n closable: false,\n }),\n})\nexport class TuiNotificationMiddleService extends TuiPopoverService<TuiNotificationMiddleOptions> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiNotificationMiddleOptions} from './notification-middle.component';\nimport {TuiNotificationMiddleService} from './notification-middle.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiNotificationMiddle]',\n inputs: ['options: tuiNotificationMiddleOptions', 'open: tuiNotificationMiddle'],\n outputs: ['openChange: tuiNotificationMiddleChange'],\n providers: [tuiAsPopover(TuiNotificationMiddleService)],\n})\nexport class TuiNotificationMiddle extends TuiPopoverDirective<TuiNotificationMiddleOptions> {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,MA0Ba,8BAA8B,CAAA;AA1B3C,IAAA,WAAA,GAAA;QA2BuB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;QACxB,IAAO,CAAA,OAAA,GACtB,aAAa,EAAkD,CAAC;AAavE,KAAA;AAXa,IAAA,OAAO,CAAC,MAAmB,EAAA;AACjC,QAAA,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,E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notification-middle/notification-middle.component.ts","../../../projects/kit/components/notification-middle/notification-middle.service.ts","../../../projects/kit/components/notification-middle/notification-middle.directive.ts","../../../projects/kit/components/notification-middle/taiga-ui-kit-components-notification-middle.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, isSignal, type Signal} from '@angular/core';\nimport {WaResizeObserver} from '@ng-web-apis/resize-observer';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiLoader, tuiLoaderOptionsProvider} from '@taiga-ui/core/components/loader';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nexport interface TuiNotificationMiddleOptions {\n closable: Signal<boolean> | boolean;\n}\n\n@Component({\n selector: 'tui-notification-middle',\n imports: [PolymorpheusOutlet, TuiLoader],\n template: `\n <tui-loader class=\"t-loader\" />\n <ng-container *polymorpheusOutlet=\"context.content as text\">\n {{ text }}\n </ng-container>\n `,\n styleUrl: './notification-middle.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiLoaderOptionsProvider({size: 'l'})],\n hostDirectives: [\n TuiAnimated,\n {directive: WaResizeObserver, outputs: ['waResizeObserver']},\n ],\n host: {\n class: 'tui-backdrop-hidden',\n '(document:click.capture)': 'onClick($event.target)',\n '(document:keydown.esc)': 'onClick($event.currentTarget)',\n '(waResizeObserver)': 'el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")',\n },\n})\nexport class TuiNotificationMiddleComponent {\n protected readonly el = tuiInjectElement();\n protected readonly context =\n injectContext<TuiPortalContext<TuiNotificationMiddleOptions>>();\n\n protected onClick(target: HTMLElement): void {\n if (this.closable && !this.el.contains(target)) {\n this.context.$implicit.complete();\n }\n }\n\n private get closable(): boolean {\n return isSignal(this.context.closable)\n ? this.context.closable()\n : this.context.closable;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {TuiModalService} from '@taiga-ui/core/components/modal';\n\nimport {\n TuiNotificationMiddleComponent,\n type TuiNotificationMiddleOptions,\n} from './notification-middle.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiNotificationMiddleService extends TuiModalService<TuiNotificationMiddleOptions> {\n protected readonly options = {closable: false};\n protected readonly content = TuiNotificationMiddleComponent;\n}\n","import {Directive, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\n\nimport {type TuiNotificationMiddleOptions} from './notification-middle.component';\nimport {TuiNotificationMiddleService} from './notification-middle.service';\n\n@Directive({\n selector: 'ng-template[tuiNotificationMiddle]',\n providers: [tuiAsPortal(TuiNotificationMiddleService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: [\n 'options: tuiNotificationMiddleOptions',\n 'open: tuiNotificationMiddle',\n ],\n outputs: ['openChange: tuiNotificationMiddleChange'],\n },\n ],\n})\nexport class TuiNotificationMiddle {\n public readonly tuiNotificationMiddleOptions = input<\n Partial<TuiNotificationMiddleOptions>\n >({});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;MAmCa,8BAA8B,CAAA;AAvB3C,IAAA,WAAA,GAAA;QAwBuB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;QACvB,IAAO,CAAA,OAAA,GACtB,aAAa,EAAkD;AAatE;AAXa,IAAA,OAAO,CAAC,MAAmB,EAAA;AACjC,QAAA,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC5C,YAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE;;;AAIzC,IAAA,IAAY,QAAQ,GAAA;AAChB,QAAA,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ;AACjC,cAAE,IAAI,CAAC,OAAO,CAAC,QAAQ;AACvB,cAA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A,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,0RAZnB,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,IAAA,CAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,8BAAA,EAAA,MAAA,EAAA,uBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,6BAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAY7C,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAdjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oCAAoC;AAC9C,oBAAA,SAAS,EAAE,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;AACtD,oBAAA,cAAc,EAAE;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,kBAAkB;AAC7B,4BAAA,MAAM,EAAE;gCACJ,uCAAuC;gCACvC,6BAA6B;AAChC,6BAAA;4BACD,OAAO,EAAE,CAAC,yCAAyC,CAAC;AACvD,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;ACnBD;;AAEG;;;;"}
@@ -1,10 +1,8 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { signal, inject, Component, ChangeDetectionStrategy, ViewChildren, Input } from '@angular/core';
3
+ import { signal, inject, Input, ViewChildren, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
- import { FormsModule } from '@angular/forms';
6
5
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
7
- import { TuiRepeatTimes } from '@taiga-ui/cdk/directives/repeat-times';
8
6
  import { tuiWatch } from '@taiga-ui/cdk/observables';
9
7
  import { delay, map } from 'rxjs';
10
8
 
@@ -13,7 +11,7 @@ class TuiPager {
13
11
  this.start = 0;
14
12
  this.end = 0;
15
13
  this.left = signal(0);
16
- this.maxWidth = toSignal(inject(MutationObserverService, { self: true }).pipe(delay(0), map(() => this.visibleWidth), tuiWatch(), takeUntilDestroyed()));
14
+ this.maxWidth = toSignal(inject(MutationObserverService, { self: true }).pipe(delay(0), map(() => this.visibleWidth), tuiWatch(), takeUntilDestroyed()), { initialValue: 0 });
17
15
  this.max = 6;
18
16
  this.count = this.max;
19
17
  this.size = 'm';
@@ -48,8 +46,8 @@ class TuiPager {
48
46
  }
49
47
  this.left.set(-1 * left);
50
48
  }
51
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPager, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
52
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiPager, isStandalone: true, selector: "tui-pager", inputs: { max: "max", count: "count", size: "size", valueContent: "valueContent", index: "index" }, host: { properties: { "attr.data-size": "size", "style.--t-gap.px": "gap", "style.max-width.px": "maxWidth()" } }, providers: [
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPager, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
50
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiPager, isStandalone: true, selector: "tui-pager", inputs: { max: "max", count: "count", size: "size", valueContent: "valueContent", index: "index" }, host: { properties: { "attr.data-size": "size", "style.--t-gap.px": "gap", "style.max-width.px": "maxWidth()" } }, providers: [
53
51
  MutationObserverService,
54
52
  {
55
53
  provide: WA_MUTATION_OBSERVER_INIT,
@@ -60,11 +58,11 @@ class TuiPager {
60
58
  subtree: true,
61
59
  },
62
60
  },
63
- ], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"t-items\"\n [style.transform]=\"'translateX(calc(var(--tui-inline) * ' + left() + 'px))'\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{--t-size: .5rem;display:flex;align-items:center;overflow:hidden}:host :host-context(tui-root._mobile){--t-size: .375rem}:host[data-size=m]{min-block-size:1.25rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{min-block-size:1rem;--t-small-dot: scale(.5);--t-super-small-dot: scale(.25);--t-icon-size: .875rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiRepeatTimes, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
61
+ ], viewQueries: [{ propertyName: "items", predicate: ["item"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n @for (_ of '-'.repeat(count); track $index) {\n <div\n #item\n class=\"t-item\"\n [attr.data-index]=\"$index\"\n [class._active]=\"$index === index\"\n [class._last]=\"$index === count - 1\"\n [class._post-active]=\"$index === index + 1\"\n [class._pre-active]=\"$index === index - 1\"\n [class._pre-last]=\"$index === count - 2\"\n [class._visible]=\"$index >= start && $index <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: $index}\" />\n </div>\n }\n</div>\n", styles: [":host{display:flex;align-items:center;overflow:hidden}:host[data-size=m]{--t-size: .5rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem;min-block-size:1.25rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{--t-size: .375rem;--t-small-dot: scale(.666);--t-super-small-dot: scale(.333);--t-icon-size: .75rem;min-block-size:1rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
64
62
  }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPager, decorators: [{
63
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPager, decorators: [{
66
64
  type: Component,
67
- args: [{ standalone: true, selector: 'tui-pager', imports: [FormsModule, NgTemplateOutlet, TuiRepeatTimes], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
65
+ args: [{ selector: 'tui-pager', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
68
66
  MutationObserverService,
69
67
  {
70
68
  provide: WA_MUTATION_OBSERVER_INIT,
@@ -79,7 +77,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
79
77
  '[attr.data-size]': 'size',
80
78
  '[style.--t-gap.px]': 'gap',
81
79
  '[style.max-width.px]': 'maxWidth()',
82
- }, template: "<div\n class=\"t-items\"\n [style.transform]=\"'translateX(calc(var(--tui-inline) * ' + left() + 'px))'\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n", styles: [":host{--t-size: .5rem;display:flex;align-items:center;overflow:hidden}:host :host-context(tui-root._mobile){--t-size: .375rem}:host[data-size=m]{min-block-size:1.25rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{min-block-size:1rem;--t-small-dot: scale(.5);--t-super-small-dot: scale(.25);--t-icon-size: .875rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"] }]
80
+ }, template: "<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n @for (_ of '-'.repeat(count); track $index) {\n <div\n #item\n class=\"t-item\"\n [attr.data-index]=\"$index\"\n [class._active]=\"$index === index\"\n [class._last]=\"$index === count - 1\"\n [class._post-active]=\"$index === index + 1\"\n [class._pre-active]=\"$index === index - 1\"\n [class._pre-last]=\"$index === count - 2\"\n [class._visible]=\"$index >= start && $index <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: $index}\" />\n </div>\n }\n</div>\n", styles: [":host{display:flex;align-items:center;overflow:hidden}:host[data-size=m]{--t-size: .5rem;--t-small-dot: scale(.75);--t-super-small-dot: scale(.5);--t-icon-size: 1rem;min-block-size:1.25rem}:host-context(tui-root._mobile) :host[data-size=m]{--t-icon-size: .875rem}:host[data-size=s]{--t-size: .375rem;--t-small-dot: scale(.666);--t-super-small-dot: scale(.333);--t-icon-size: .75rem;min-block-size:1rem}:host-context(tui-root._mobile) :host[data-size=s]{--t-icon-size: .6875rem}.t-items{display:flex;gap:var(--t-gap);transition:transform var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}.t-item{display:flex;align-self:center;align-items:center;justify-content:center;color:var(--tui-background-neutral-2)}.t-item._active{color:var(--tui-background-accent-1)}.t-item:empty:before{content:\"\";display:flex;min-inline-size:var(--t-size);min-block-size:var(--t-size);border-radius:100%;background:currentColor;transition:inherit}.t-item:empty:not(._visible):before,.t-item:empty:not(._visible)+.t-item:not(._active):not(._pre-active):empty:before,.t-item:empty:not(._last):not(._post-active):not(._active):nth-last-child(1 of._visible):before{transform:var(--t-super-small-dot)!important}.t-item:empty:not(._last)._post-active:nth-last-child(1 of._visible):before,.t-item:empty:not(._visible)+.t-item._pre-active:empty:before,.t-item:empty:not(._visible)+.t-item:empty+.t-item:not(._active):empty:before,.t-item:empty:not(._pre-last):nth-last-child(2 of._visible):not(._active):before{transform:var(--t-small-dot)}.t-item:empty+.t-item:not(:empty)._pre-last{transform:scale(.64)}.t-item:empty+.t-item:not(:empty)._pre-last:nth-last-child(2 of._visible){transform:scale(1)}.t-item::ng-deep>tui-icon{inline-size:var(--t-icon-size);block-size:var(--t-icon-size)}.t-item,.t-item::ng-deep>tui-icon{transition:all var(--tui-duration-fast, .15s) var(--tui-curve-productive-standard, cubic-bezier(.2, 0, .4, .9))}\n"] }]
83
81
  }], propDecorators: { items: [{
84
82
  type: ViewChildren,
85
83
  args: ['item']
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pager.mjs","sources":["../../../projects/kit/components/pager/pager.component.ts","../../../projects/kit/components/pager/pager.component.html","../../../projects/kit/components/pager/taiga-ui-kit-components-pager.ts"],"sourcesContent":["import {NgTemplateOutlet} from '@angular/common';\nimport {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n type ElementRef,\n inject,\n Input,\n type OnChanges,\n type QueryList,\n signal,\n type TemplateRef,\n ViewChildren,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {FormsModule} from '@angular/forms';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {TuiRepeatTimes} from '@taiga-ui/cdk/directives/repeat-times';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {delay, map} from 'rxjs';\n\n@Component({\n standalone: true,\n selector: 'tui-pager',\n imports: [FormsModule, NgTemplateOutlet, TuiRepeatTimes],\n templateUrl: './pager.component.html',\n styleUrls: ['./pager.styles.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n attributeOldValue: true,\n characterData: true,\n childList: true,\n subtree: true,\n },\n },\n ],\n host: {\n '[attr.data-size]': 'size',\n '[style.--t-gap.px]': 'gap',\n '[style.max-width.px]': 'maxWidth()',\n },\n})\nexport class TuiPager implements OnChanges, AfterViewInit {\n @ViewChildren('item')\n protected items?: QueryList<ElementRef<HTMLElement>>;\n\n protected start = 0;\n protected end = 0;\n protected left = signal(0);\n protected readonly maxWidth = toSignal(\n inject(MutationObserverService, {self: true}).pipe(\n delay(0),\n map(() => this.visibleWidth),\n tuiWatch(),\n takeUntilDestroyed(),\n ),\n );\n\n @Input()\n public max = 6;\n\n @Input()\n public count = this.max;\n\n @Input()\n public size: TuiSizeS = 'm';\n\n @Input()\n public valueContent?: TemplateRef<unknown>;\n\n @Input()\n public index = 0;\n\n public ngOnChanges(): void {\n this.move();\n }\n\n public ngAfterViewInit(): void {\n this.move();\n }\n\n protected get gap(): number {\n return this.size === 'm' ? 9 : 7;\n }\n\n private get visibleRange(): [start: number, end: number] {\n const max = this.max > this.count ? this.count : this.max;\n\n const start = Math.min(\n Math.max(this.index - Math.floor(max / 2), 0),\n this.count - max,\n );\n\n return [start, start + (max - 1)];\n }\n\n private get visibleWidth(): number {\n return (\n (this.items?.map((item) => item.nativeElement.offsetWidth ?? 0) ?? [])\n .slice(this.start, this.end + 1)\n .reduce((sum, item) => sum + item + this.gap, 0) - this.gap\n );\n }\n\n private move(): void {\n const [start, end] = this.visibleRange;\n\n this.start = start;\n this.end = end;\n\n let left = this.start * this.gap;\n\n for (let i = 0; i < this.start; i++) {\n left += this.items?.get(i)?.nativeElement.offsetWidth ?? 0;\n }\n\n this.left.set(-1 * left);\n }\n}\n","<div\n class=\"t-items\"\n [style.transform]=\"'translateX(calc(var(--tui-inline) * ' + left() + 'px))'\"\n>\n <div\n *tuiRepeatTimes=\"let i of count\"\n #item\n class=\"t-item\"\n [attr.data-index]=\"i\"\n [class._active]=\"i === index\"\n [class._last]=\"i === count - 1\"\n [class._post-active]=\"i === index + 1\"\n [class._pre-active]=\"i === index - 1\"\n [class._pre-last]=\"i === count - 2\"\n [class._visible]=\"i >= start && i <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: i}\" />\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAyBA,MAyBa,QAAQ,CAAA;AAzBrB,IAAA,WAAA,GAAA;QA6Bc,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;QACV,IAAG,CAAA,GAAA,GAAG,CAAC,CAAC;AACR,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACR,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAClC,MAAM,CAAC,uBAAuB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CAC9C,KAAK,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AE,IAAI;AACvB,gCAAA,aAAa,EAAE,IAAI;AACnB,gCAAA,SAAS,EAAE,IAAI;AACf,gCAAA,OAAO,EAAE,IAAI;AAChB,6BAAA;AACJ,yBAAA;qBACJ,EACK,IAAA,EAAA;AACF,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,oBAAoB,EAAE,KAAK;AAC3B,wBAAA,sBAAsB,EAAE,YAAY;AACvC,qBAAA,EAAA,QAAA,EAAA,0oBAAA,EAAA,MAAA,EAAA,CAAA,s8DAAA,CAAA,EAAA,CAAA;8BAIS,KAAK,EAAA,CAAA;sBADd,YAAY;uBAAC,MAAM,CAAA;gBAgBb,GAAG,EAAA,CAAA;sBADT,KAAK;gBAIC,KAAK,EAAA,CAAA;sBADX,KAAK;gBAIC,IAAI,EAAA,CAAA;sBADV,KAAK;gBAIC,YAAY,EAAA,CAAA;sBADlB,KAAK;gBAIC,KAAK,EAAA,CAAA;sBADX,KAAK;;;AE9EV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-pager.mjs","sources":["../../../projects/kit/components/pager/pager.component.ts","../../../projects/kit/components/pager/pager.component.html","../../../projects/kit/components/pager/taiga-ui-kit-components-pager.ts"],"sourcesContent":["import {NgTemplateOutlet} from '@angular/common';\nimport {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n type ElementRef,\n inject,\n Input,\n type OnChanges,\n type QueryList,\n signal,\n type TemplateRef,\n ViewChildren,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\nimport {delay, map} from 'rxjs';\n\n@Component({\n selector: 'tui-pager',\n imports: [NgTemplateOutlet],\n templateUrl: './pager.component.html',\n styleUrl: './pager.styles.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n attributeOldValue: true,\n characterData: true,\n childList: true,\n subtree: true,\n },\n },\n ],\n host: {\n '[attr.data-size]': 'size',\n '[style.--t-gap.px]': 'gap',\n '[style.max-width.px]': 'maxWidth()',\n },\n})\nexport class TuiPager implements OnChanges, AfterViewInit {\n @ViewChildren('item')\n protected items?: QueryList<ElementRef<HTMLElement>>;\n\n protected start = 0;\n protected end = 0;\n protected left = signal(0);\n protected readonly maxWidth = toSignal(\n inject(MutationObserverService, {self: true}).pipe(\n delay(0),\n map(() => this.visibleWidth),\n tuiWatch(),\n takeUntilDestroyed(),\n ),\n {initialValue: 0},\n );\n\n @Input()\n public max = 6;\n\n @Input()\n public count = this.max;\n\n @Input()\n public size: TuiSizeS = 'm';\n\n @Input()\n public valueContent?: TemplateRef<unknown>;\n\n @Input()\n public index = 0;\n\n public ngOnChanges(): void {\n this.move();\n }\n\n public ngAfterViewInit(): void {\n this.move();\n }\n\n protected get gap(): number {\n return this.size === 'm' ? 9 : 7;\n }\n\n private get visibleRange(): [start: number, end: number] {\n const max = this.max > this.count ? this.count : this.max;\n\n const start = Math.min(\n Math.max(this.index - Math.floor(max / 2), 0),\n this.count - max,\n );\n\n return [start, start + (max - 1)];\n }\n\n private get visibleWidth(): number {\n return (\n (this.items?.map((item) => item.nativeElement.offsetWidth ?? 0) ?? [])\n .slice(this.start, this.end + 1)\n .reduce((sum, item) => sum + item + this.gap, 0) - this.gap\n );\n }\n\n private move(): void {\n const [start, end] = this.visibleRange;\n\n this.start = start;\n this.end = end;\n\n let left = this.start * this.gap;\n\n for (let i = 0; i < this.start; i++) {\n left += this.items?.get(i)?.nativeElement.offsetWidth ?? 0;\n }\n\n this.left.set(-1 * left);\n }\n}\n","<div\n class=\"t-items\"\n [style.transform]=\"`translateX(calc(var(--tui-inline) * ${left()}px))`\"\n>\n @for (_ of '-'.repeat(count); track $index) {\n <div\n #item\n class=\"t-item\"\n [attr.data-index]=\"$index\"\n [class._active]=\"$index === index\"\n [class._last]=\"$index === count - 1\"\n [class._post-active]=\"$index === index + 1\"\n [class._pre-active]=\"$index === index - 1\"\n [class._pre-last]=\"$index === count - 2\"\n [class._visible]=\"$index >= start && $index <= end\"\n >\n <ng-container *ngTemplateOutlet=\"valueContent || null; context: {$implicit: $index}\" />\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MA+Ca,QAAQ,CAAA;AAxBrB,IAAA,WAAA,GAAA;QA4Bc,IAAK,CAAA,KAAA,GAAG,CAAC;QACT,IAAG,CAAA,GAAA,GAAG,CAAC;AACP,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC;QACP,IAAQ,CAAA,QAAA,GAAG,QAAQ,CAClC,MAAM,CAAC,uBAAuB,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CAC9C,KAAK,CAAC,CAAC,CAAC,EACR,GAAG,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,EAC5B,QAAQ,EAAE,EACV,kBAAkB,EAAE,CACvB,EACD,EAAC,YAAY,EAAE,CAAC,EAAC,CACpB;QAGM,IAAG,CAAA,GAAA,GAAG,CAAC;AAGP,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,GAAG;QAGhB,IAAI,CAAA,IAAA,GAAa,GAAG;QAMpB,IAAK,CAAA,KAAA,GAAG,CAAC;AA+CnB;IA7CU,WAAW,GAAA;QACd,IAAI,CAAC,IAAI,EAAE;;IAGR,eAAe,GAAA;QAClB,IAAI,CAAC,IAAI,EAAE;;AAGf,IAAA,IAAc,GAAG,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,IAAI,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC;;AAGpC,IAAA,IAAY,YAAY,GAAA;QACpB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,IA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,EAAA,UAAA,EAAA,CAAA;kBAxBpB,SAAS;+BACI,WAAW,EAAA,OAAA,EACZ,CAAC,gBAAgB,CAAC,mBAGV,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;wBACP,uBAAuB;AACvB,wBAAA;AACI,4BAAA,OAAO,EAAE,yBAAyB;AAClC,4BAAA,QAAQ,EAAE;AACN,gCAAA,iBAAiB,EAAE,IAAI;AACvB,gCAAA,aAAa,EAAE,IAAI;AACnB,gCAAA,SAAS,EAAE,IAAI;AACf,gCAAA,OAAO,EAAE,IAAI;AAChB,6BAAA;AACJ,yBAAA;qBACJ,EACK,IAAA,EAAA;AACF,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,oBAAoB,EAAE,KAAK;AAC3B,wBAAA,sBAAsB,EAAE,YAAY;AACvC,qBAAA,EAAA,QAAA,EAAA,ovBAAA,EAAA,MAAA,EAAA,CAAA,k6DAAA,CAAA,EAAA;8BAIS,KAAK,EAAA,CAAA;sBADd,YAAY;uBAAC,MAAM;gBAiBb,GAAG,EAAA,CAAA;sBADT;gBAIM,KAAK,EAAA,CAAA;sBADX;gBAIM,IAAI,EAAA,CAAA;sBADV;gBAIM,YAAY,EAAA,CAAA;sBADlB;gBAIM,KAAK,EAAA,CAAA;sBADX;;;AE5EL;;AAEG;;;;"}
@@ -1,16 +1,22 @@
1
- import { AsyncPipe, NgIf } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, EventEmitter, ElementRef, Component, ChangeDetectionStrategy, ViewChildren, Input, Output } from '@angular/core';
2
+ import { inject, EventEmitter, ElementRef, Output, Input, ViewChildren, ChangeDetectionStrategy, Component } from '@angular/core';
4
3
  import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
5
- import { TuiLet } from '@taiga-ui/cdk/directives/let';
6
- import { TuiRepeatTimes } from '@taiga-ui/cdk/directives/repeat-times';
7
4
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
8
- import { tuiIsNativeFocusedIn } from '@taiga-ui/cdk/utils/focus';
5
+ import { tuiIsFocusedIn } from '@taiga-ui/cdk/utils/focus';
9
6
  import { tuiClamp } from '@taiga-ui/cdk/utils/math';
10
7
  import { TuiButton } from '@taiga-ui/core/components/button';
11
8
  import { TUI_SPIN_ICONS } from '@taiga-ui/core/tokens';
12
9
  import { TUI_PAGINATION_TEXTS } from '@taiga-ui/kit/tokens';
13
10
  import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
11
+ import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
12
+
13
+ const [TUI_PAGINATION_OPTIONS, tuiPaginationOptionsProvider] = tuiCreateOptions({
14
+ appearance: ({ isActive, size }) => {
15
+ const fallback = size === 's' ? 'secondary' : 'flat';
16
+ return isActive ? 'primary' : fallback;
17
+ },
18
+ defaultSize: 'l',
19
+ });
14
20
 
15
21
  const DOTS_LENGTH = 1;
16
22
  const ACTIVE_ITEM_LENGTH = 1;
@@ -18,11 +24,12 @@ class TuiPagination {
18
24
  constructor() {
19
25
  this.els = EMPTY_QUERY;
20
26
  this.el = tuiInjectElement();
21
- this.texts$ = inject(TUI_PAGINATION_TEXTS);
27
+ this.texts = inject(TUI_PAGINATION_TEXTS);
22
28
  this.icons = inject(TUI_SPIN_ICONS);
29
+ this.options = inject(TUI_PAGINATION_OPTIONS);
23
30
  this.length = 1;
24
31
  this.focusable = true;
25
- this.size = 'l';
32
+ this.size = this.options.defaultSize;
26
33
  this.disabled = false;
27
34
  /**
28
35
  * Amount of visible pages around active page
@@ -57,7 +64,7 @@ class TuiPagination {
57
64
  null);
58
65
  }
59
66
  get focused() {
60
- return tuiIsNativeFocusedIn(this.el);
67
+ return tuiIsFocusedIn(this.el);
61
68
  }
62
69
  get arrowIsDisabledLeft() {
63
70
  return this.index === 0;
@@ -103,9 +110,11 @@ class TuiPagination {
103
110
  const computedIndex = this.index - this.maxHalfLength + elementIndex;
104
111
  return tuiClamp(computedIndex, elementIndex, this.lastIndex - reverseElementIndex);
105
112
  }
106
- getElementMode(index) {
107
- const fallback = this.size === 's' ? 'secondary' : 'flat';
108
- return this.index === index ? 'primary' : fallback;
113
+ getElementMode(index = -1) {
114
+ return this.options.appearance({
115
+ isActive: this.index === index,
116
+ size: this.size,
117
+ });
109
118
  }
110
119
  onElementClick(index) {
111
120
  this.updateIndex(index);
@@ -182,12 +191,12 @@ class TuiPagination {
182
191
  this.index = index;
183
192
  this.indexChange.emit(index);
184
193
  }
185
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
186
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiPagination, isStandalone: true, selector: "tui-pagination", inputs: { length: "length", focusable: "focusable", size: "size", disabled: "disabled", activePadding: "activePadding", sidePadding: "sidePadding", content: "content", index: "index" }, outputs: { indexChange: "indexChange" }, viewQueries: [{ propertyName: "els", predicate: ["element"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div class=\"t-content\">\n <ng-container *ngIf=\"size !== 's'; else smallButtons\">\n <ng-container *ngIf=\"texts$ | async as texts\">\n <button\n appearance=\"flat\"\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\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 <ng-container *tuiLet=\"getItemIndexByElementIndex(elementIndex) as index\">\n <button\n *ngIf=\"index !== null; else dotsTemplate\"\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 </ng-container>\n </ng-container>\n <button\n appearance=\"flat\"\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\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 </ng-container>\n </ng-container>\n <ng-template #smallButtons>\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 </ng-template>\n <ng-template #dotsTemplate>\n <div\n automation-id=\"tui-pagination__element\"\n class=\"t-dots\"\n [class.t-dots_small]=\"size === 'm'\"\n ></div>\n </ng-template>\n</div>\n", styles: [":host{display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);text-align:center}.t-content{display:flex;justify-content:center}.t-button{margin:0 .125rem;flex-shrink:0}.t-button[tuiButton]:not(.t-button_small){min-inline-size:var(--tui-height-s);padding:0 .5rem}.t-button[tuiButton]:not(.t-button_small)[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button:first-child{transform:scaleX(var(--tui-inline));margin-inline-start:0}.t-button:last-child{transform:scaleX(var(--tui-inline));margin-inline-end:0}.t-button[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button.t-button.t-button_small{inline-size:.5rem;block-size:.5rem;font-size:0;padding:0;margin:0}.t-button.t-button.t-button_small:not(:first-child){margin-inline-start:.5rem}.t-dots{inline-size:var(--tui-height-s);block-size:var(--tui-height-s);line-height:var(--tui-height-s);margin:0 .125rem;flex-shrink:0;color:var(--tui-text-action);text-align:center;cursor:default}.t-dots_small{inline-size:var(--tui-height-xs);block-size:var(--tui-height-xs);line-height:var(--tui-height-xs)}.t-dots:before{content:\"\\2026\"}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiLet, selector: "[tuiLet]", inputs: ["tuiLet"] }, { kind: "directive", type: TuiRepeatTimes, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
194
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
195
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiPagination, isStandalone: true, selector: "tui-pagination", inputs: { length: "length", focusable: "focusable", size: "size", disabled: "disabled", activePadding: "activePadding", sidePadding: "sidePadding", content: "content", index: "index" }, outputs: { indexChange: "indexChange" }, viewQueries: [{ propertyName: "els", predicate: ["element"], descendants: true, read: ElementRef }], ngImport: i0, template: "<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 @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-dots\"\n [class.t-dots_small]=\"size === 'm'\"\n ></div>\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 } @else {\n @for (_ of '-'.repeat(length); track $index) {\n <button\n #element\n tuiButton\n type=\"button\"\n class=\"t-button t-button_small\"\n [appearance]=\"getElementMode($index)\"\n [disabled]=\"disabled\"\n [tabIndex]=\"elementIsFocusable($index) ? 0 : -1\"\n (click)=\"onElementClick($index)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n >\n {{ $index + 1 }}\n </button>\n }\n }\n</div>\n", styles: [":host{display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);text-align:center}.t-content{display:flex;justify-content:center}.t-button{margin:0 .125rem;flex-shrink:0}.t-button[tuiButton]:not(.t-button_small){min-inline-size:var(--tui-height-s);padding:0 .5rem}.t-button[tuiButton]:not(.t-button_small)[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button:first-child{transform:scaleX(var(--tui-inline));margin-inline-start:0}.t-button:last-child{transform:scaleX(var(--tui-inline));margin-inline-end:0}.t-button[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button.t-button.t-button_small{inline-size:.5rem;block-size:.5rem;font-size:0;padding:0;margin:0}.t-button.t-button.t-button_small:not(:first-child){margin-inline-start:.5rem}.t-dots{inline-size:var(--tui-height-s);block-size:var(--tui-height-s);line-height:var(--tui-height-s);margin:0 .125rem;flex-shrink:0;color:var(--tui-text-action);text-align:center;cursor:default}.t-dots_small{inline-size:var(--tui-height-xs);block-size:var(--tui-height-xs);line-height:var(--tui-height-xs)}.t-dots:before{content:\"\\2026\"}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
187
196
  }
188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPagination, decorators: [{
197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPagination, decorators: [{
189
198
  type: Component,
190
- args: [{ standalone: true, selector: 'tui-pagination', imports: [AsyncPipe, NgIf, PolymorpheusOutlet, TuiButton, TuiLet, TuiRepeatTimes], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"t-content\">\n <ng-container *ngIf=\"size !== 's'; else smallButtons\">\n <ng-container *ngIf=\"texts$ | async as texts\">\n <button\n appearance=\"flat\"\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\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 <ng-container *tuiLet=\"getItemIndexByElementIndex(elementIndex) as index\">\n <button\n *ngIf=\"index !== null; else dotsTemplate\"\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 </ng-container>\n </ng-container>\n <button\n appearance=\"flat\"\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\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 </ng-container>\n </ng-container>\n <ng-template #smallButtons>\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 </ng-template>\n <ng-template #dotsTemplate>\n <div\n automation-id=\"tui-pagination__element\"\n class=\"t-dots\"\n [class.t-dots_small]=\"size === 'm'\"\n ></div>\n </ng-template>\n</div>\n", styles: [":host{display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);text-align:center}.t-content{display:flex;justify-content:center}.t-button{margin:0 .125rem;flex-shrink:0}.t-button[tuiButton]:not(.t-button_small){min-inline-size:var(--tui-height-s);padding:0 .5rem}.t-button[tuiButton]:not(.t-button_small)[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button:first-child{transform:scaleX(var(--tui-inline));margin-inline-start:0}.t-button:last-child{transform:scaleX(var(--tui-inline));margin-inline-end:0}.t-button[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button.t-button.t-button_small{inline-size:.5rem;block-size:.5rem;font-size:0;padding:0;margin:0}.t-button.t-button.t-button_small:not(:first-child){margin-inline-start:.5rem}.t-dots{inline-size:var(--tui-height-s);block-size:var(--tui-height-s);line-height:var(--tui-height-s);margin:0 .125rem;flex-shrink:0;color:var(--tui-text-action);text-align:center;cursor:default}.t-dots_small{inline-size:var(--tui-height-xs);block-size:var(--tui-height-xs);line-height:var(--tui-height-xs)}.t-dots:before{content:\"\\2026\"}\n"] }]
199
+ args: [{ selector: 'tui-pagination', imports: [PolymorpheusOutlet, TuiButton], changeDetection: ChangeDetectionStrategy.OnPush, template: "<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 @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-dots\"\n [class.t-dots_small]=\"size === 'm'\"\n ></div>\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 } @else {\n @for (_ of '-'.repeat(length); track $index) {\n <button\n #element\n tuiButton\n type=\"button\"\n class=\"t-button t-button_small\"\n [appearance]=\"getElementMode($index)\"\n [disabled]=\"disabled\"\n [tabIndex]=\"elementIsFocusable($index) ? 0 : -1\"\n (click)=\"onElementClick($index)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n >\n {{ $index + 1 }}\n </button>\n }\n }\n</div>\n", styles: [":host{display:block;font:var(--tui-font-text-s);color:var(--tui-text-primary);text-align:center}.t-content{display:flex;justify-content:center}.t-button{margin:0 .125rem;flex-shrink:0}.t-button[tuiButton]:not(.t-button_small){min-inline-size:var(--tui-height-s);padding:0 .5rem}.t-button[tuiButton]:not(.t-button_small)[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button:first-child{transform:scaleX(var(--tui-inline));margin-inline-start:0}.t-button:last-child{transform:scaleX(var(--tui-inline));margin-inline-end:0}.t-button[data-size=xs]{min-inline-size:var(--tui-height-xs);padding:0 .375rem}.t-button.t-button.t-button_small{inline-size:.5rem;block-size:.5rem;font-size:0;padding:0;margin:0}.t-button.t-button.t-button_small:not(:first-child){margin-inline-start:.5rem}.t-dots{inline-size:var(--tui-height-s);block-size:var(--tui-height-s);line-height:var(--tui-height-s);margin:0 .125rem;flex-shrink:0;color:var(--tui-text-action);text-align:center;cursor:default}.t-dots_small{inline-size:var(--tui-height-xs);block-size:var(--tui-height-xs);line-height:var(--tui-height-xs)}.t-dots:before{content:\"\\2026\"}\n"] }]
191
200
  }], propDecorators: { els: [{
192
201
  type: ViewChildren,
193
202
  args: ['element', { read: ElementRef }]
@@ -215,5 +224,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
215
224
  * Generated bundle index. Do not edit.
216
225
  */
217
226
 
218
- export { TuiPagination };
227
+ export { TUI_PAGINATION_OPTIONS, TuiPagination, tuiPaginationOptionsProvider };
219
228
  //# sourceMappingURL=taiga-ui-kit-components-pagination.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pagination.mjs","sources":["../../../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 {AsyncPipe, NgIf} from '@angular/common';\nimport {\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 {TuiLet} from '@taiga-ui/cdk/directives/let';\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 {tuiIsNativeFocusedIn} 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\nconst DOTS_LENGTH = 1;\nconst ACTIVE_ITEM_LENGTH = 1;\n\n@Component({\n standalone: true,\n selector: 'tui-pagination',\n imports: [AsyncPipe, NgIf, PolymorpheusOutlet, TuiButton, TuiLet, TuiRepeatTimes],\n templateUrl: './pagination.template.html',\n styleUrls: ['./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\n @Input()\n public length = 1;\n\n @Input()\n public focusable = true;\n\n @Input()\n public size: TuiSizeL | TuiSizeS = 'l';\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 tuiIsNativeFocusedIn(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: number): string {\n const fallback = this.size === 's' ? 'secondary' : 'flat';\n\n return this.index === index ? 'primary' : fallback;\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 <ng-container *ngIf=\"size !== 's'; else smallButtons\">\n <ng-container *ngIf=\"texts$ | async as texts\">\n <button\n appearance=\"flat\"\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\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 <ng-container *tuiLet=\"getItemIndexByElementIndex(elementIndex) as index\">\n <button\n *ngIf=\"index !== null; else dotsTemplate\"\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 </ng-container>\n </ng-container>\n <button\n appearance=\"flat\"\n tabIndex=\"-1\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\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 </ng-container>\n </ng-container>\n <ng-template #smallButtons>\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 </ng-template>\n <ng-template #dotsTemplate>\n <div\n automation-id=\"tui-pagination__element\"\n class=\"t-dots\"\n [class.t-dots_small]=\"size === 'm'\"\n ></div>\n </ng-template>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA8BA,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,MAQa,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;QAUqB,IAAG,CAAA,GAAA,GAAuC,WAAW,CAAC;QAEtD,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;AAEtB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACtC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QAG3C,IAAM,CAAA,MAAA,GAAG,CAAC,CAAC;QAGX,IAAS,CAAA,SAAA,GAAG,IAAI,CAAC;QAGjB,IAAI,CAAA,IAAA,GAAwB,GAAG,CAAC;QAGvB,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AAEjC;;AAEG;QAEI,IAAa,CAAA,aAAA,GAAG,CAAC,CAAC;AAEzB;;AAEG;QAEI,IAAW,CAAA,WAAA,GAAG,CAAC,CAAC;AAQvB;;AAEG;QAEI,IAAK,CAAA,KAAA,GAAG,CAAC,CAAC;AAGD,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAU,CAAC;AAyM5D,KAAA;AAvMG,IAAA,IAAW,sBAAsB,GAAA;QAC7B,IAAI,IAAI,CAAC,QAAQ,EAAE;AACf,YAAA,OAAO,IAAI,CAAC;AACf,SAAA;QAED,IAAI,kBAAkB,GAAG,CAAC,CAAC;AAC3B,QAAA,MAAM,EAAC,cAAc,EAAC,GAAG,IAAI,CAAC;QAE9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,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A,EACjB,CAAC,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,CAAC,EAGhE,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,s1GAAA,EAAA,MAAA,EAAA,CAAA,6nCAAA,CAAA,EAAA,CAAA;8BAI9B,GAAG,EAAA,CAAA;sBADnB,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,SAAS,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAA;gBASpC,MAAM,EAAA,CAAA;sBADZ,KAAK;gBAIC,SAAS,EAAA,CAAA;sBADf,KAAK;gBAIC,IAAI,EAAA,CAAA;sBADV,KAAK;gBAIU,QAAQ,EAAA,CAAA;sBADvB,KAAK;gBAOC,aAAa,EAAA,CAAA;sBADnB,KAAK;gBAOC,WAAW,EAAA,CAAA;sBADjB,KAAK;gBAOC,OAAO,EAAA,CAAA;sBADb,KAAK;gBAOC,KAAK,EAAA,CAAA;sBADX,KAAK;gBAIU,WAAW,EAAA,CAAA;sBAD1B,MAAM;;;AEtFX;;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, 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 {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],\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 @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-dots\"\n [class.t-dots_small]=\"size === 'm'\"\n ></div>\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 } @else {\n @for (_ of '-'.repeat(length); track $index) {\n <button\n #element\n tuiButton\n type=\"button\"\n class=\"t-button t-button_small\"\n [appearance]=\"getElementMode($index)\"\n [disabled]=\"disabled\"\n [tabIndex]=\"elementIsFocusable($index) ? 0 : -1\"\n (click)=\"onElementClick($index)\"\n (keydown.arrowLeft.prevent)=\"onElementKeyDownArrowLeft(element)\"\n (keydown.arrowRight.prevent)=\"onElementKeyDownArrowRight(element)\"\n >\n {{ $index + 1 }}\n </button>\n }\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;;ACSL,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,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC;QAGpD,IAAM,CAAA,MAAA,GAAG,CAAC;QAGV,IAAS,CAAA,SAAA,GAAG,IAAI;AAGhB,QAAA,IAAA,CAAA,IAAI,GAAwB,IAAI,CAAC,OAAO,CAAC,WAAW;QAG3C,IAAQ,CAAA,QAAA,GAAG,KAAK;AAEhC;;AAEG;QAEI,IAAa,CAAA,aAAA,GAAG,CAAC;AAExB;;AAEG;QAEI,IAAW,CAAA,WAAA,GAAG,CAAC;AAQtB;;AAEG;QAEI,IAAK,CAAA,KAAA,GAAG,CAAC;AAGA,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAU;AA0M3D;AAxM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