@taiga-ui/kit 4.51.0 → 4.52.0-canary.34c26c6

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 (726) hide show
  1. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  2. package/components/files/file/file.options.d.ts +1 -1
  3. package/components/index.d.ts +1 -0
  4. package/components/input-chip/input-chip.options.d.ts +1 -1
  5. package/components/input-color/input-color.component.d.ts +2 -1
  6. package/components/input-color/input-color.options.d.ts +1 -1
  7. package/components/input-date/input-date.directive.d.ts +1 -1
  8. package/components/input-date/input-date.options.d.ts +1 -1
  9. package/components/input-number/input-number.options.d.ts +1 -1
  10. package/components/input-number/quantum.directive.d.ts +1 -1
  11. package/components/input-phone/input-phone.options.d.ts +1 -1
  12. package/components/input-time/input-time.component.d.ts +1 -1
  13. package/components/input-time/input-time.options.d.ts +1 -1
  14. package/components/like/like.options.d.ts +1 -1
  15. package/components/notification-middle/index.d.ts +3 -0
  16. package/components/notification-middle/notification-middle.component.d.ts +16 -0
  17. package/components/notification-middle/notification-middle.directive.d.ts +7 -0
  18. package/components/notification-middle/notification-middle.service.d.ts +7 -0
  19. package/components/segmented/segmented.component.d.ts +6 -4
  20. package/components/textarea/textarea-limit.directive.d.ts +0 -1
  21. package/components/textarea/textarea.options.d.ts +1 -1
  22. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  23. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
  24. package/directives/copy/copy.options.d.ts +1 -1
  25. package/directives/highlight/highlight.directive.d.ts +3 -1
  26. package/directives/password/password.options.d.ts +1 -1
  27. package/directives/tooltip/tooltip.options.d.ts +4 -1
  28. package/fesm2022/taiga-ui-kit-components-accordion.mjs +14 -14
  29. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
  31. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-kit-components-avatar.mjs +18 -18
  33. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  35. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-kit-components-badge.mjs +8 -8
  37. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  39. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  41. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +4 -4
  43. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -4
  45. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -5
  47. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +6 -6
  49. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-kit-components-carousel.mjs +18 -18
  51. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -5
  53. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-kit-components-chip.mjs +8 -8
  55. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
  57. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-kit-components-comment.mjs +8 -8
  59. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  61. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-confirm.mjs +9 -10
  63. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +9 -9
  65. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-drawer.mjs +6 -6
  67. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +7 -7
  69. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-files.mjs +38 -30
  71. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-filter.mjs +4 -4
  73. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +7 -7
  75. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +10 -10
  77. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-input-color.mjs +8 -8
  79. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -4
  81. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  83. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +7 -7
  85. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-input-date.mjs +11 -11
  87. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -4
  89. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
  91. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-input-month.mjs +7 -7
  93. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-input-number.mjs +20 -20
  95. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-input-password.mjs +4 -4
  97. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +14 -14
  99. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
  101. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +6 -5
  103. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-input-range.mjs +5 -5
  105. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +7 -7
  107. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-input-time.mjs +10 -10
  109. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-input-year.mjs +4 -4
  111. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +16 -16
  113. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-like.mjs +5 -5
  115. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +12 -12
  117. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-message.mjs +8 -8
  119. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +14 -14
  121. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +97 -0
  123. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -0
  124. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -6
  125. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-pagination.mjs +4 -4
  127. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +10 -10
  129. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-pin.mjs +8 -8
  131. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +10 -10
  133. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-preview.mjs +25 -25
  135. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-progress.mjs +28 -28
  137. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  139. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-push.mjs +15 -15
  141. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +5 -5
  143. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -8
  145. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-range.mjs +8 -8
  147. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-rating.mjs +6 -7
  149. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  151. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  153. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-select.mjs +11 -11
  155. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-slider.mjs +19 -20
  157. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-slides.mjs +7 -7
  159. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-status.mjs +7 -7
  161. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-stepper.mjs +7 -7
  163. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-switch.mjs +5 -5
  165. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-tabs.mjs +26 -24
  167. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-textarea.mjs +16 -17
  169. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  171. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-tree.mjs +29 -37
  173. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components.mjs +1 -0
  175. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  177. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  179. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  181. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +7 -7
  183. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-directives-connected.mjs +8 -8
  185. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-directives-copy.mjs +8 -8
  187. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  189. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -9
  191. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  193. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  195. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +8 -8
  197. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -8
  199. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-directives-password.mjs +3 -3
  201. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  203. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +8 -8
  205. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -8
  207. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -7
  209. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +7 -7
  211. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +4 -4
  213. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  215. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  217. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +7 -7
  219. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  221. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  223. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  225. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  227. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  229. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-tokens.mjs +3 -3
  231. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  233. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  234. package/package.json +12 -218
  235. package/styles/components/chip.less +6 -0
  236. package/tokens/input-date-options.d.ts +1 -1
  237. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  238. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  239. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  240. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  241. package/esm2022/components/accordion/accordion.mjs +0 -11
  242. package/esm2022/components/accordion/index.mjs +0 -6
  243. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  244. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  245. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  246. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  247. package/esm2022/components/action-bar/index.mjs +0 -4
  248. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  249. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  250. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  251. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  252. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  253. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  254. package/esm2022/components/avatar/index.mjs +0 -6
  255. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  256. package/esm2022/components/badge/badge.directive.mjs +0 -42
  257. package/esm2022/components/badge/badge.options.mjs +0 -13
  258. package/esm2022/components/badge/index.mjs +0 -3
  259. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  260. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  261. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  262. package/esm2022/components/badge-notification/index.mjs +0 -3
  263. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  264. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  265. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  266. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  267. package/esm2022/components/badged-content/index.mjs +0 -4
  268. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  269. package/esm2022/components/block/block.directive.mjs +0 -58
  270. package/esm2022/components/block/block.options.mjs +0 -13
  271. package/esm2022/components/block/index.mjs +0 -3
  272. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  273. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  274. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  275. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  276. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  277. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  278. package/esm2022/components/button-loading/index.mjs +0 -2
  279. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  280. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  281. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  282. package/esm2022/components/calendar-month/index.mjs +0 -3
  283. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  284. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  285. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  286. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  287. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  288. package/esm2022/components/calendar-range/index.mjs +0 -5
  289. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  290. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  291. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  292. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  293. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  294. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  295. package/esm2022/components/carousel/carousel.mjs +0 -15
  296. package/esm2022/components/carousel/index.mjs +0 -7
  297. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  298. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  299. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  300. package/esm2022/components/checkbox/index.mjs +0 -3
  301. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  302. package/esm2022/components/chip/chip.directive.mjs +0 -63
  303. package/esm2022/components/chip/chip.options.mjs +0 -13
  304. package/esm2022/components/chip/index.mjs +0 -3
  305. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  306. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  307. package/esm2022/components/combo-box/index.mjs +0 -2
  308. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  309. package/esm2022/components/comment/comment.directive.mjs +0 -35
  310. package/esm2022/components/comment/index.mjs +0 -2
  311. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  312. package/esm2022/components/compass/compass.component.mjs +0 -19
  313. package/esm2022/components/compass/index.mjs +0 -2
  314. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  315. package/esm2022/components/confirm/confirm.component.mjs +0 -29
  316. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  317. package/esm2022/components/confirm/index.mjs +0 -3
  318. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  319. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  320. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  321. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  322. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  323. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  324. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  325. package/esm2022/components/drawer/index.mjs +0 -2
  326. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  327. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  328. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  329. package/esm2022/components/elastic-container/index.mjs +0 -3
  330. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  331. package/esm2022/components/files/file/file.component.mjs +0 -144
  332. package/esm2022/components/files/file/file.options.mjs +0 -16
  333. package/esm2022/components/files/files/files.component.mjs +0 -49
  334. package/esm2022/components/files/files.mjs +0 -15
  335. package/esm2022/components/files/files.types.mjs +0 -2
  336. package/esm2022/components/files/files.utils.mjs +0 -30
  337. package/esm2022/components/files/files.validators.mjs +0 -32
  338. package/esm2022/components/files/index.mjs +0 -13
  339. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  340. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  341. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  342. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  343. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  344. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  345. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  346. package/esm2022/components/filter/filter.component.mjs +0 -65
  347. package/esm2022/components/filter/index.mjs +0 -2
  348. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  349. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  350. package/esm2022/components/floating-container/index.mjs +0 -2
  351. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  352. package/esm2022/components/index.mjs +0 -72
  353. package/esm2022/components/input-chip/index.mjs +0 -5
  354. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  355. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  356. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  357. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  358. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  359. package/esm2022/components/input-color/index.mjs +0 -3
  360. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  361. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  362. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  363. package/esm2022/components/input-date/date-filler.mjs +0 -20
  364. package/esm2022/components/input-date/index.mjs +0 -6
  365. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  366. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  367. package/esm2022/components/input-date/input-date.mjs +0 -9
  368. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  369. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  370. package/esm2022/components/input-date-multi/index.mjs +0 -3
  371. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  372. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  373. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  374. package/esm2022/components/input-date-range/index.mjs +0 -4
  375. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  376. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  377. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  378. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  379. package/esm2022/components/input-date-time/index.mjs +0 -5
  380. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  381. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  382. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  383. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  384. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  385. package/esm2022/components/input-inline/index.mjs +0 -2
  386. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  387. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  388. package/esm2022/components/input-month/index.mjs +0 -5
  389. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  390. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  391. package/esm2022/components/input-month/input-month.mjs +0 -9
  392. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  393. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  394. package/esm2022/components/input-month-range/index.mjs +0 -4
  395. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  396. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  397. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  398. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  399. package/esm2022/components/input-number/index.mjs +0 -6
  400. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  401. package/esm2022/components/input-number/input-number.mjs +0 -9
  402. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  403. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  404. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  405. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  406. package/esm2022/components/input-password/index.mjs +0 -3
  407. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  408. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  409. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  410. package/esm2022/components/input-phone/index.mjs +0 -3
  411. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  412. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  413. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  414. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  415. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  416. package/esm2022/components/input-phone-international/index.mjs +0 -3
  417. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  418. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  419. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  420. package/esm2022/components/input-pin/index.mjs +0 -2
  421. package/esm2022/components/input-pin/input-pin.component.mjs +0 -65
  422. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  423. package/esm2022/components/input-range/index.mjs +0 -3
  424. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  425. package/esm2022/components/input-range/input-range.mjs +0 -4
  426. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  427. package/esm2022/components/input-slider/index.mjs +0 -3
  428. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  429. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  430. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  431. package/esm2022/components/input-time/index.mjs +0 -5
  432. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  433. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  434. package/esm2022/components/input-time/input-time.mjs +0 -4
  435. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  436. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  437. package/esm2022/components/input-year/index.mjs +0 -4
  438. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  439. package/esm2022/components/input-year/input-year.mjs +0 -4
  440. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  441. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  442. package/esm2022/components/items-with-more/index.mjs +0 -6
  443. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  444. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  445. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  446. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  447. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  448. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  449. package/esm2022/components/like/index.mjs +0 -3
  450. package/esm2022/components/like/like.component.mjs +0 -46
  451. package/esm2022/components/like/like.options.mjs +0 -10
  452. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  453. package/esm2022/components/line-clamp/index.mjs +0 -4
  454. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  455. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  456. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  457. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  458. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  459. package/esm2022/components/message/index.mjs +0 -2
  460. package/esm2022/components/message/message.directive.mjs +0 -43
  461. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  462. package/esm2022/components/multi-select/index.mjs +0 -6
  463. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  464. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  465. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  466. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  467. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  468. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  469. package/esm2022/components/pager/index.mjs +0 -2
  470. package/esm2022/components/pager/pager.component.mjs +0 -97
  471. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  472. package/esm2022/components/pagination/index.mjs +0 -2
  473. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  474. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  475. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  476. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  477. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  478. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  479. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  480. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  481. package/esm2022/components/pin/index.mjs +0 -2
  482. package/esm2022/components/pin/pin.directive.mjs +0 -35
  483. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  484. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  485. package/esm2022/components/preview/dialog/index.mjs +0 -4
  486. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  487. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  488. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  489. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  490. package/esm2022/components/preview/index.mjs +0 -8
  491. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  492. package/esm2022/components/preview/preview.component.mjs +0 -142
  493. package/esm2022/components/preview/preview.mjs +0 -13
  494. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  495. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  496. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  497. package/esm2022/components/progress/index.mjs +0 -9
  498. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  499. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  500. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  501. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  502. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  503. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  504. package/esm2022/components/progress/progress.mjs +0 -15
  505. package/esm2022/components/progress/progress.options.mjs +0 -13
  506. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  507. package/esm2022/components/pulse/index.mjs +0 -2
  508. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  509. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  510. package/esm2022/components/push/index.mjs +0 -7
  511. package/esm2022/components/push/push-alert.component.mjs +0 -29
  512. package/esm2022/components/push/push.component.mjs +0 -39
  513. package/esm2022/components/push/push.directive.mjs +0 -33
  514. package/esm2022/components/push/push.mjs +0 -5
  515. package/esm2022/components/push/push.options.mjs +0 -21
  516. package/esm2022/components/push/push.service.mjs +0 -19
  517. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  518. package/esm2022/components/radio/index.mjs +0 -5
  519. package/esm2022/components/radio/radio.component.mjs +0 -53
  520. package/esm2022/components/radio/radio.directive.mjs +0 -32
  521. package/esm2022/components/radio/radio.mjs +0 -4
  522. package/esm2022/components/radio/radio.options.mjs +0 -13
  523. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  524. package/esm2022/components/radio-list/index.mjs +0 -2
  525. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  526. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  527. package/esm2022/components/range/index.mjs +0 -3
  528. package/esm2022/components/range/range-change.directive.mjs +0 -78
  529. package/esm2022/components/range/range.component.mjs +0 -164
  530. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  531. package/esm2022/components/rating/index.mjs +0 -3
  532. package/esm2022/components/rating/rating.component.mjs +0 -65
  533. package/esm2022/components/rating/rating.options.mjs +0 -13
  534. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  535. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  536. package/esm2022/components/routable-dialog/index.mjs +0 -3
  537. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  538. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  539. package/esm2022/components/segmented/index.mjs +0 -3
  540. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  541. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  542. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  543. package/esm2022/components/select/index.mjs +0 -5
  544. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  545. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  546. package/esm2022/components/select/select.directive.mjs +0 -56
  547. package/esm2022/components/select/select.mjs +0 -4
  548. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  549. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  550. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  551. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  552. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  553. package/esm2022/components/slider/index.mjs +0 -8
  554. package/esm2022/components/slider/slider.component.mjs +0 -124
  555. package/esm2022/components/slider/slider.mjs +0 -12
  556. package/esm2022/components/slider/slider.options.mjs +0 -16
  557. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  558. package/esm2022/components/slides/index.mjs +0 -2
  559. package/esm2022/components/slides/slides.directive.mjs +0 -51
  560. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  561. package/esm2022/components/status/index.mjs +0 -2
  562. package/esm2022/components/status/status.directive.mjs +0 -35
  563. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  564. package/esm2022/components/stepper/index.mjs +0 -4
  565. package/esm2022/components/stepper/step.component.mjs +0 -58
  566. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  567. package/esm2022/components/stepper/stepper.mjs +0 -4
  568. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  569. package/esm2022/components/switch/index.mjs +0 -3
  570. package/esm2022/components/switch/switch.component.mjs +0 -63
  571. package/esm2022/components/switch/switch.options.mjs +0 -15
  572. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  573. package/esm2022/components/tabs/index.mjs +0 -9
  574. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  575. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  576. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  577. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -211
  578. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  579. package/esm2022/components/tabs/tabs.mjs +0 -15
  580. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  581. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  582. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  583. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  584. package/esm2022/components/textarea/index.mjs +0 -4
  585. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  586. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -94
  587. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  588. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  589. package/esm2022/components/tiles/index.mjs +0 -7
  590. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  591. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  592. package/esm2022/components/tiles/tile.component.mjs +0 -69
  593. package/esm2022/components/tiles/tile.service.mjs +0 -90
  594. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  595. package/esm2022/components/tiles/tiles.mjs +0 -5
  596. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  597. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  598. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  599. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  600. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  601. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  602. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  603. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  604. package/esm2022/components/tree/index.mjs +0 -12
  605. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  606. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  607. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  608. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  609. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  610. package/esm2022/components/tree/tree.mjs +0 -17
  611. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  612. package/esm2022/directives/button-close/index.mjs +0 -2
  613. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  614. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  615. package/esm2022/directives/button-group/index.mjs +0 -2
  616. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  617. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  618. package/esm2022/directives/button-select/index.mjs +0 -2
  619. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  620. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  621. package/esm2022/directives/chevron/index.mjs +0 -2
  622. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  623. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  624. package/esm2022/directives/connected/index.mjs +0 -2
  625. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  626. package/esm2022/directives/copy/copy.component.mjs +0 -48
  627. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  628. package/esm2022/directives/copy/copy.mjs +0 -4
  629. package/esm2022/directives/copy/copy.options.mjs +0 -3
  630. package/esm2022/directives/copy/index.mjs +0 -6
  631. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  632. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  633. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  634. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  635. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  636. package/esm2022/directives/fade/index.mjs +0 -2
  637. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  638. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  639. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  640. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  641. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  642. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  643. package/esm2022/directives/highlight/index.mjs +0 -2
  644. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  645. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  646. package/esm2022/directives/icon-badge/index.mjs +0 -2
  647. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  648. package/esm2022/directives/index.mjs +0 -21
  649. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  650. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  651. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  652. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  653. package/esm2022/directives/password/index.mjs +0 -3
  654. package/esm2022/directives/password/password.directive.mjs +0 -67
  655. package/esm2022/directives/password/password.options.mjs +0 -8
  656. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  657. package/esm2022/directives/present/index.mjs +0 -2
  658. package/esm2022/directives/present/present.directive.mjs +0 -33
  659. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  660. package/esm2022/directives/sensitive/index.mjs +0 -2
  661. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  662. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  663. package/esm2022/directives/shimmer/index.mjs +0 -2
  664. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  665. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  666. package/esm2022/directives/skeleton/index.mjs +0 -2
  667. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  668. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  669. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  670. package/esm2022/directives/tooltip/index.mjs +0 -3
  671. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  672. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  673. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  674. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  675. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  676. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  677. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  678. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  679. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  680. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  681. package/esm2022/index.mjs +0 -6
  682. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  683. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  684. package/esm2022/pipes/emails/index.mjs +0 -3
  685. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  686. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  687. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  688. package/esm2022/pipes/field-error/index.mjs +0 -3
  689. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  690. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  691. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  692. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  693. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  694. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  695. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  696. package/esm2022/pipes/index.mjs +0 -8
  697. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  698. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  699. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  700. package/esm2022/pipes/stringify/index.mjs +0 -2
  701. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  702. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  703. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  704. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  705. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  706. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  707. package/esm2022/taiga-ui-kit.mjs +0 -5
  708. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  709. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  710. package/esm2022/tokens/i18n.mjs +0 -75
  711. package/esm2022/tokens/index.mjs +0 -10
  712. package/esm2022/tokens/input-date-options.mjs +0 -13
  713. package/esm2022/tokens/items-handlers.mjs +0 -27
  714. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  715. package/esm2022/tokens/month-formatter.mjs +0 -12
  716. package/esm2022/tokens/preview-icons.mjs +0 -17
  717. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  718. package/esm2022/tokens/validation-errors.mjs +0 -6
  719. package/esm2022/utils/create-time-periods.mjs +0 -12
  720. package/esm2022/utils/index.mjs +0 -7
  721. package/esm2022/utils/inject-value.mjs +0 -11
  722. package/esm2022/utils/is-flat.mjs +0 -4
  723. package/esm2022/utils/maskito.binding.mjs +0 -6
  724. package/esm2022/utils/phone.mjs +0 -6
  725. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  726. package/esm2022/utils/toggle-day.mjs +0 -6
@@ -1,6 +1,6 @@
1
1
  import { AsyncPipe, NgIf } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, EventEmitter, ElementRef, Component, ChangeDetectionStrategy, ViewChildren, Input, Output } from '@angular/core';
3
+ import { inject, EventEmitter, ElementRef, Output, Input, ViewChildren, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
5
5
  import { TuiLet } from '@taiga-ui/cdk/directives/let';
6
6
  import { TuiRepeatTimes } from '@taiga-ui/cdk/directives/repeat-times';
@@ -182,10 +182,10 @@ class TuiPagination {
182
182
  this.index = index;
183
183
  this.indexChange.emit(index);
184
184
  }
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 }); }
185
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPagination, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
186
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", 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 }); }
187
187
  }
188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPagination, decorators: [{
188
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPagination, decorators: [{
189
189
  type: Component,
190
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"] }]
191
191
  }], propDecorators: { els: [{
@@ -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,WAA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AAA,IAAA,EAAA,MAAM,yEAAE,cAAc,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAKvE,aAAa,EAAA,UAAA,EAAA,CAAA;kBARzB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,gBAAgB,EAAA,OAAA,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.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;AACrB,MAAM,kBAAkB,GAAG,CAAC;MAUf,aAAa,CAAA;AAR1B,IAAA,WAAA,GAAA;QAUqB,IAAA,CAAA,GAAG,GAAuC,WAAW;QAErD,IAAA,CAAA,EAAE,GAAG,gBAAgB,EAAE;AAErB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACrC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;QAG1C,IAAA,CAAA,MAAM,GAAG,CAAC;QAGV,IAAA,CAAA,SAAS,GAAG,IAAI;QAGhB,IAAA,CAAA,IAAI,GAAwB,GAAG;QAGtB,IAAA,CAAA,QAAQ,GAAG,KAAK;AAEhC;;AAEG;QAEI,IAAA,CAAA,aAAa,GAAG,CAAC;AAExB;;AAEG;QAEI,IAAA,CAAA,WAAW,GAAG,CAAC;AAQtB;;AAEG;QAEI,IAAA,CAAA,KAAK,GAAG,CAAC;AAGA,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAU;AAyM3D,IAAA;AAvMG,IAAA,IAAW,sBAAsB,GAAA;AAC7B,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACf,YAAA,OAAO,IAAI;QACf;QAEA,IAAI,kBAAkB,GAAG,CAAC;AAC1B,QAAA,MAAM,EAAC,cAAc,EAAC,GAAG,IAAI;AAE7B,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAA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AAU,EAAC;gBASpC,MAAM,EAAA,CAAA;sBADZ;gBAIM,SAAS,EAAA,CAAA;sBADf;gBAIM,IAAI,EAAA,CAAA;sBADV;gBAIe,QAAQ,EAAA,CAAA;sBADvB;gBAOM,aAAa,EAAA,CAAA;sBADnB;gBAOM,WAAW,EAAA,CAAA;sBADjB;gBAOM,OAAO,EAAA,CAAA;sBADb;gBAOM,KAAK,EAAA,CAAA;sBADX;gBAIe,WAAW,EAAA,CAAA;sBAD1B;;;AEtFL;;AAEG;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { AsyncPipe } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Component, ChangeDetectionStrategy, InjectionToken, Injectable, Directive } from '@angular/core';
3
+ import { inject, ChangeDetectionStrategy, Component, InjectionToken, Injectable, Directive } from '@angular/core';
4
4
  import * as i1 from '@taiga-ui/cdk/directives/animated';
5
5
  import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
6
6
  import { TuiButton } from '@taiga-ui/core/components/button';
@@ -20,10 +20,10 @@ class TuiPdfViewerComponent {
20
20
  onKeyDownEsc() {
21
21
  this.context.$implicit.complete();
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPdfViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiPdfViewerComponent, isStandalone: true, selector: "tui-pdf-viewer", host: { listeners: { "document:keydown.esc": "onKeyDownEsc()" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<header class=\"t-header\">\n <h2\n automation-id=\"tui-pdf-viewer__label\"\n class=\"t-title\"\n >\n {{ context.label }}\n </h2>\n <div class=\"t-actions\">\n <ng-container *polymorpheusOutlet=\"context.actions as text; context: context\">\n {{ text }}\n </ng-container>\n </div>\n <button\n appearance=\"\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ closeWord$ | async }}\n </button>\n</header>\n<section class=\"t-content\">\n <iframe\n *polymorpheusOutlet=\"context.content as content; context: context\"\n title=\"pdf\"\n class=\"t-iframe\"\n [src]=\"content\"\n ></iframe>\n</section>\n", styles: [":host{display:block;inline-size:100%;block-size:100%;box-sizing:border-box;color:#fff;background:#333639;padding-block-start:env(safe-area-inset-top);padding-block-end:env(safe-area-inset-bottom)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}.t-header{display:flex;align-items:center;block-size:4rem;padding:0 1rem 0 1.5625rem;box-shadow:inset 0 -1px #535659}.t-title{margin:0;font:var(--tui-font-text-m);white-space:nowrap;text-overflow:ellipsis;padding-inline-end:.3125rem;overflow:hidden}.t-actions{display:flex;margin-inline-start:auto}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-start:.75rem;color:#fff;background:#ffffff52}.t-close:hover{background:#fff6}.t-content{block-size:calc(100% - 4rem);overflow:hidden}.t-iframe{inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { 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 }); }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPdfViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiPdfViewerComponent, isStandalone: true, selector: "tui-pdf-viewer", host: { listeners: { "document:keydown.esc": "onKeyDownEsc()" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<header class=\"t-header\">\n <h2\n automation-id=\"tui-pdf-viewer__label\"\n class=\"t-title\"\n >\n {{ context.label }}\n </h2>\n <div class=\"t-actions\">\n <ng-container *polymorpheusOutlet=\"context.actions as text; context: context\">\n {{ text }}\n </ng-container>\n </div>\n <button\n appearance=\"\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ closeWord$ | async }}\n </button>\n</header>\n<section class=\"t-content\">\n <iframe\n *polymorpheusOutlet=\"context.content as content; context: context\"\n title=\"pdf\"\n class=\"t-iframe\"\n [src]=\"content\"\n ></iframe>\n</section>\n", styles: [":host{display:block;inline-size:100%;block-size:100%;box-sizing:border-box;color:#fff;background:#333639;padding-block-start:env(safe-area-inset-top);padding-block-end:env(safe-area-inset-bottom)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}.t-header{display:flex;align-items:center;block-size:4rem;padding:0 1rem 0 1.5625rem;box-shadow:inset 0 -1px #535659}.t-title{margin:0;font:var(--tui-font-text-m);white-space:nowrap;text-overflow:ellipsis;padding-inline-end:.3125rem;overflow:hidden}.t-actions{display:flex;margin-inline-start:auto}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-start:.75rem;color:#fff;background:#ffffff52}.t-close:hover{background:#fff6}.t-content{block-size:calc(100% - 4rem);overflow:hidden}.t-iframe{inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { 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 }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPdfViewerComponent, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPdfViewerComponent, decorators: [{
27
27
  type: Component,
28
28
  args: [{ standalone: true, selector: 'tui-pdf-viewer', imports: [AsyncPipe, PolymorpheusOutlet, TuiButton], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
29
29
  '(document:keydown.esc)': 'onKeyDownEsc()',
@@ -49,10 +49,10 @@ class TuiPdfViewerService extends TuiPopoverService {
49
49
  open(content, options = {}) {
50
50
  return super.open(content, options);
51
51
  }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPdfViewerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
53
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPdfViewerService, providedIn: 'root', useFactory: () => new TuiPdfViewerService(TUI_DIALOGS, TuiPdfViewerComponent, inject(TUI_PDF_VIEWER_OPTIONS)) }); }
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPdfViewerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
53
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPdfViewerService, providedIn: 'root', useFactory: () => new TuiPdfViewerService(TUI_DIALOGS, TuiPdfViewerComponent, inject(TUI_PDF_VIEWER_OPTIONS)) }); }
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPdfViewerService, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPdfViewerService, decorators: [{
56
56
  type: Injectable,
57
57
  args: [{
58
58
  providedIn: 'root',
@@ -61,10 +61,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
61
61
  }] });
62
62
 
63
63
  class TuiPdfViewerDirective extends TuiPopoverDirective {
64
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPdfViewerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
65
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPdfViewerDirective, isStandalone: true, selector: "ng-template[tuiPdfViewer]", inputs: { options: ["tuiPdfViewerOptions", "options"], open: ["tuiPdfViewer", "open"] }, outputs: { openChange: "tuiPdfViewerChange" }, providers: [tuiAsPopover(TuiPdfViewerService)], usesInheritance: true, ngImport: i0 }); }
64
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPdfViewerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
65
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiPdfViewerDirective, isStandalone: true, selector: "ng-template[tuiPdfViewer]", inputs: { options: ["tuiPdfViewerOptions", "options"], open: ["tuiPdfViewer", "open"] }, outputs: { openChange: "tuiPdfViewerChange" }, providers: [tuiAsPopover(TuiPdfViewerService)], usesInheritance: true, ngImport: i0 }); }
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPdfViewerDirective, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPdfViewerDirective, decorators: [{
68
68
  type: Directive,
69
69
  args: [{
70
70
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pdf-viewer.mjs","sources":["../../../projects/kit/components/pdf-viewer/pdf-viewer.component.ts","../../../projects/kit/components/pdf-viewer/pdf-viewer.template.html","../../../projects/kit/components/pdf-viewer/pdf-viewer.options.ts","../../../projects/kit/components/pdf-viewer/pdf-viewer.service.ts","../../../projects/kit/components/pdf-viewer/pdf-viewer.directive.ts","../../../projects/kit/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {type TuiPdfViewerOptions} from './pdf-viewer.options';\n\n@Component({\n standalone: true,\n selector: 'tui-pdf-viewer',\n imports: [AsyncPipe, PolymorpheusOutlet, TuiButton],\n templateUrl: './pdf-viewer.template.html',\n styleUrls: ['./pdf-viewer.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n '(document:keydown.esc)': 'onKeyDownEsc()',\n },\n})\nexport class TuiPdfViewerComponent<I, O> {\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly context = injectContext<TuiPopover<TuiPdfViewerOptions<I>, O>>();\n\n protected onKeyDownEsc(): void {\n this.context.$implicit.complete();\n }\n}\n","<header class=\"t-header\">\n <h2\n automation-id=\"tui-pdf-viewer__label\"\n class=\"t-title\"\n >\n {{ context.label }}\n </h2>\n <div class=\"t-actions\">\n <ng-container *polymorpheusOutlet=\"context.actions as text; context: context\">\n {{ text }}\n </ng-container>\n </div>\n <button\n appearance=\"\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ closeWord$ | async }}\n </button>\n</header>\n<section class=\"t-content\">\n <iframe\n *polymorpheusOutlet=\"context.content as content; context: context\"\n title=\"pdf\"\n class=\"t-iframe\"\n [src]=\"content\"\n ></iframe>\n</section>\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport const TUI_PDF_VIEWER_DEFAULT_OPTIONS: TuiPdfViewerOptions = {\n label: '',\n actions: '',\n data: undefined,\n};\n\n/**\n * Default parameters for PdfViewer component\n */\nexport const TUI_PDF_VIEWER_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_PDF_VIEWER_OPTIONS' : '',\n {\n factory: () => TUI_PDF_VIEWER_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiPdfViewerOptionsProvider(\n options: Partial<TuiPdfViewerOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_PDF_VIEWER_OPTIONS,\n options,\n TUI_PDF_VIEWER_DEFAULT_OPTIONS,\n );\n}\n\nexport interface TuiPdfViewerOptions<I = undefined> {\n readonly actions: PolymorpheusContent<TuiPdfViewerOptions<I>>;\n readonly data: I;\n readonly label: string;\n}\n","import {inject, Injectable} from '@angular/core';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {type TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TUI_PDF_VIEWER_OPTIONS, type TuiPdfViewerOptions} from './pdf-viewer.options';\n\ntype Content<G> = PolymorpheusContent<\n TuiPdfViewerOptions<unknown> & TuiPopoverContext<G>\n>;\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiPdfViewerService(\n TUI_DIALOGS,\n TuiPdfViewerComponent,\n inject(TUI_PDF_VIEWER_OPTIONS),\n ),\n})\nexport class TuiPdfViewerService extends TuiPopoverService<TuiPdfViewerOptions<unknown>> {\n public override open<G>(\n content: Content<G> | SafeResourceUrl,\n options: Partial<TuiPdfViewerOptions<any>> = {},\n ): Observable<G> {\n return super.open(content as Content<G>, options);\n }\n}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiPdfViewerOptions} from './pdf-viewer.options';\nimport {TuiPdfViewerService} from './pdf-viewer.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiPdfViewer]',\n inputs: ['options: tuiPdfViewerOptions', 'open: tuiPdfViewer'],\n outputs: ['openChange: tuiPdfViewerChange'],\n providers: [tuiAsPopover(TuiPdfViewerService)],\n})\nexport class TuiPdfViewerDirective<T> extends TuiPopoverDirective<\n TuiPdfViewerOptions<T>\n> {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAUA,MAYa,qBAAqB,CAAA;AAZlC,IAAA,WAAA,GAAA;AAauB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AACpC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjC,IAAO,CAAA,OAAA,GAAG,aAAa,EAAyC,CAAC;AAKvF,KAAA;IAHa,YAAY,GAAA;AAClB,QAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;KACrC;+GAPQ,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EA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AAA,EAAA,IAAA,EAAA,qBAAqB,gNAFnB,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAErC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,MAAM,EAAE,CAAC,8BAA8B,EAAE,oBAAoB,CAAC;oBAC9D,OAAO,EAAE,CAAC,gCAAgC,CAAC;AAC3C,oBAAA,SAAS,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;AACjD,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-pdf-viewer.mjs","sources":["../../../projects/kit/components/pdf-viewer/pdf-viewer.component.ts","../../../projects/kit/components/pdf-viewer/pdf-viewer.template.html","../../../projects/kit/components/pdf-viewer/pdf-viewer.options.ts","../../../projects/kit/components/pdf-viewer/pdf-viewer.service.ts","../../../projects/kit/components/pdf-viewer/pdf-viewer.directive.ts","../../../projects/kit/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {type TuiPdfViewerOptions} from './pdf-viewer.options';\n\n@Component({\n standalone: true,\n selector: 'tui-pdf-viewer',\n imports: [AsyncPipe, PolymorpheusOutlet, TuiButton],\n templateUrl: './pdf-viewer.template.html',\n styleUrls: ['./pdf-viewer.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n '(document:keydown.esc)': 'onKeyDownEsc()',\n },\n})\nexport class TuiPdfViewerComponent<I, O> {\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly context = injectContext<TuiPopover<TuiPdfViewerOptions<I>, O>>();\n\n protected onKeyDownEsc(): void {\n this.context.$implicit.complete();\n }\n}\n","<header class=\"t-header\">\n <h2\n automation-id=\"tui-pdf-viewer__label\"\n class=\"t-title\"\n >\n {{ context.label }}\n </h2>\n <div class=\"t-actions\">\n <ng-container *polymorpheusOutlet=\"context.actions as text; context: context\">\n {{ text }}\n </ng-container>\n </div>\n <button\n appearance=\"\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ closeWord$ | async }}\n </button>\n</header>\n<section class=\"t-content\">\n <iframe\n *polymorpheusOutlet=\"context.content as content; context: context\"\n title=\"pdf\"\n class=\"t-iframe\"\n [src]=\"content\"\n ></iframe>\n</section>\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport const TUI_PDF_VIEWER_DEFAULT_OPTIONS: TuiPdfViewerOptions = {\n label: '',\n actions: '',\n data: undefined,\n};\n\n/**\n * Default parameters for PdfViewer component\n */\nexport const TUI_PDF_VIEWER_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_PDF_VIEWER_OPTIONS' : '',\n {\n factory: () => TUI_PDF_VIEWER_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiPdfViewerOptionsProvider(\n options: Partial<TuiPdfViewerOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_PDF_VIEWER_OPTIONS,\n options,\n TUI_PDF_VIEWER_DEFAULT_OPTIONS,\n );\n}\n\nexport interface TuiPdfViewerOptions<I = undefined> {\n readonly actions: PolymorpheusContent<TuiPdfViewerOptions<I>>;\n readonly data: I;\n readonly label: string;\n}\n","import {inject, Injectable} from '@angular/core';\nimport {type SafeResourceUrl} from '@angular/platform-browser';\nimport {type TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TUI_PDF_VIEWER_OPTIONS, type TuiPdfViewerOptions} from './pdf-viewer.options';\n\ntype Content<G> = PolymorpheusContent<\n TuiPdfViewerOptions<unknown> & TuiPopoverContext<G>\n>;\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiPdfViewerService(\n TUI_DIALOGS,\n TuiPdfViewerComponent,\n inject(TUI_PDF_VIEWER_OPTIONS),\n ),\n})\nexport class TuiPdfViewerService extends TuiPopoverService<TuiPdfViewerOptions<unknown>> {\n public override open<G>(\n content: Content<G> | SafeResourceUrl,\n options: Partial<TuiPdfViewerOptions<any>> = {},\n ): Observable<G> {\n return super.open(content as Content<G>, options);\n }\n}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiPdfViewerOptions} from './pdf-viewer.options';\nimport {TuiPdfViewerService} from './pdf-viewer.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiPdfViewer]',\n inputs: ['options: tuiPdfViewerOptions', 'open: tuiPdfViewer'],\n outputs: ['openChange: tuiPdfViewerChange'],\n providers: [tuiAsPopover(TuiPdfViewerService)],\n})\nexport class TuiPdfViewerDirective<T> extends TuiPopoverDirective<\n TuiPdfViewerOptions<T>\n> {}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AClB,oBAAA,UAAU,EAAE,MACR,IAAA,mBAAA,CACI,WAAW,EACX,qBAAqB,EACrB,MAAM,CAAC,sBAAsB,CAAC,CACjC;AACR,iBAAA;;;ACRK,MAAO,qBAAyB,SAAQ,mBAE7C,CAAA;8GAFY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,gNAFnB,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAErC,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAPjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,MAAM,EAAE,CAAC,8BAA8B,EAAE,oBAAoB,CAAC;oBAC9D,OAAO,EAAE,CAAC,gCAAgC,CAAC;AAC3C,oBAAA,SAAS,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;AACjD,iBAAA;;;ACbD;;AAEG;;;;"}
@@ -1,26 +1,26 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Directive, Input } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, Input, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
 
5
5
  class TuiPinStyles {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPinStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiPinStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-pin" }, ngImport: i0, template: '', isInline: true, styles: ["tui-pin,[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-text-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}tui-pin:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:empty,[tuiPin]:empty{--t-size: .75rem}tui-pin:empty:before,[tuiPin]:empty:before{display:none}tui-pin>input,[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}tui-pin>img,[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}tui-pin>tui-icon,[tuiPin]>tui-icon,tui-pin>tui-svg,[tuiPin]>tui-svg{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}tui-pin:has(:checked),[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin:has(:checked)>img,[tuiPin]:has(:checked)>img{padding:.125rem}tui-pin:has(:checked)>tui-icon,[tuiPin]:has(:checked)>tui-icon,tui-pin:has(:checked)>tui-svg,[tuiPin]:has(:checked)>tui-svg{font-size:2.125rem}tui-pin:has(:checked):before,[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin:has(:checked):after,[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}tui-pin._open,[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin._open>img,[tuiPin]._open>img{padding:.125rem}tui-pin._open>tui-icon,[tuiPin]._open>tui-icon,tui-pin._open>tui-svg,[tuiPin]._open>tui-svg{font-size:2.125rem}tui-pin._open:before,[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin._open:after,[tuiPin]._open:after{top:4.5rem;opacity:1}tui-pin:before,[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;-webkit-mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}tui-pin:after,[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
6
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPinStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
7
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiPinStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-pin" }, ngImport: i0, template: '', isInline: true, styles: ["tui-pin,[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-text-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}tui-pin:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:empty,[tuiPin]:empty{--t-size: .75rem}tui-pin:empty:before,[tuiPin]:empty:before{display:none}tui-pin>input,[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}tui-pin>img,[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}tui-pin>tui-icon,[tuiPin]>tui-icon,tui-pin>tui-svg,[tuiPin]>tui-svg{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}tui-pin:has(:checked),[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin:has(:checked)>img,[tuiPin]:has(:checked)>img{padding:.125rem}tui-pin:has(:checked)>tui-icon,[tuiPin]:has(:checked)>tui-icon,tui-pin:has(:checked)>tui-svg,[tuiPin]:has(:checked)>tui-svg{font-size:2.125rem}tui-pin:has(:checked):before,[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin:has(:checked):after,[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}tui-pin._open,[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin._open>img,[tuiPin]._open>img{padding:.125rem}tui-pin._open>tui-icon,[tuiPin]._open>tui-icon,tui-pin._open>tui-svg,[tuiPin]._open>tui-svg{font-size:2.125rem}tui-pin._open:before,[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin._open:after,[tuiPin]._open:after{top:4.5rem;opacity:1}tui-pin:before,[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}tui-pin:after,[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPinStyles, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPinStyles, decorators: [{
10
10
  type: Component,
11
11
  args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
12
12
  class: 'tui-pin',
13
- }, styles: ["tui-pin,[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-text-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}tui-pin:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:empty,[tuiPin]:empty{--t-size: .75rem}tui-pin:empty:before,[tuiPin]:empty:before{display:none}tui-pin>input,[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}tui-pin>img,[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}tui-pin>tui-icon,[tuiPin]>tui-icon,tui-pin>tui-svg,[tuiPin]>tui-svg{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}tui-pin:has(:checked),[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin:has(:checked)>img,[tuiPin]:has(:checked)>img{padding:.125rem}tui-pin:has(:checked)>tui-icon,[tuiPin]:has(:checked)>tui-icon,tui-pin:has(:checked)>tui-svg,[tuiPin]:has(:checked)>tui-svg{font-size:2.125rem}tui-pin:has(:checked):before,[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin:has(:checked):after,[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}tui-pin._open,[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin._open>img,[tuiPin]._open>img{padding:.125rem}tui-pin._open>tui-icon,[tuiPin]._open>tui-icon,tui-pin._open>tui-svg,[tuiPin]._open>tui-svg{font-size:2.125rem}tui-pin._open:before,[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin._open:after,[tuiPin]._open:after{top:4.5rem;opacity:1}tui-pin:before,[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;-webkit-mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}tui-pin:after,[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"] }]
13
+ }, styles: ["tui-pin,[tuiPin]{--t-size: 2rem;transition-property:width,height,border,margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;inline-size:var(--t-size);block-size:var(--t-size);align-items:stretch;flex-direction:column;justify-content:center;text-align:center;border-radius:100%;font:var(--tui-font-text-s);font-weight:700;box-sizing:border-box;color:var(--tui-text-primary-on-accent-2);background:var(--tui-background-accent-2);box-shadow:0 0 0 .125rem var(--tui-background-elevation-2);border:0 solid var(--tui-background-accent-2);transform:translate(-50%,-50%)}tui-pin:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled),[tuiPin]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}tui-pin:empty,[tuiPin]:empty{--t-size: .75rem}tui-pin:empty:before,[tuiPin]:empty:before{display:none}tui-pin>input,[tuiPin]>input{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;-webkit-appearance:none;appearance:none;border-radius:100%}tui-pin>img,[tuiPin]>img{max-block-size:100%;box-sizing:border-box;border-radius:100%;background:var(--tui-background-base)}tui-pin>tui-icon,[tuiPin]>tui-icon,tui-pin>tui-svg,[tuiPin]>tui-svg{transition-property:width,height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font-size:1.25rem;align-self:center}tui-pin:has(:checked),[tuiPin]:has(:checked){--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin:has(:checked)>img,[tuiPin]:has(:checked)>img{padding:.125rem}tui-pin:has(:checked)>tui-icon,[tuiPin]:has(:checked)>tui-icon,tui-pin:has(:checked)>tui-svg,[tuiPin]:has(:checked)>tui-svg{font-size:2.125rem}tui-pin:has(:checked):before,[tuiPin]:has(:checked):before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin:has(:checked):after,[tuiPin]:has(:checked):after{top:4.5rem;opacity:1}tui-pin._open,[tuiPin]._open{--t-size: 3.5rem;font:var(--tui-font-text-m);font-weight:700;border-width:0;margin-block-start:-2.75rem}tui-pin._open>img,[tuiPin]._open>img{padding:.125rem}tui-pin._open>tui-icon,[tuiPin]._open>tui-icon,tui-pin._open>tui-svg,[tuiPin]._open>tui-svg{font-size:2.125rem}tui-pin._open:before,[tuiPin]._open:before{transform:scale(.99) translate(-1.875rem,-1.875rem);opacity:1}tui-pin._open:after,[tuiPin]._open:after{top:4.5rem;opacity:1}tui-pin:before,[tuiPin]:before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;right:-.25rem;bottom:-.625rem;box-sizing:border-box;border-width:2.2rem 2rem;border-style:solid;border-color:inherit;opacity:0;transform:scale(.57) translate(-1.875rem,-1.875rem);transform-origin:top left;pointer-events:none;mask:url('data:image/svg+xml,<svg width=\"60\" height=\"66\" viewBox=\"0 0 60 66\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z\" /></svg>') no-repeat}tui-pin:after,[tuiPin]:after{transition-property:top,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;top:50%;left:50%;border:.1875rem solid currentColor;border-color:inherit;border-radius:100%;box-sizing:border-box;box-shadow:inherit;transform:translate(-50%,-50%);opacity:0}\n"] }]
14
14
  }] });
15
15
  class TuiPin {
16
16
  constructor() {
17
17
  this.nothing = tuiWithStyles(TuiPinStyles);
18
18
  this.open = false;
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPin, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPin, isStandalone: true, selector: "tui-pin,[tuiPin]", inputs: { open: "open" }, host: { properties: { "class._open": "open" } }, ngImport: i0 }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPin, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiPin, isStandalone: true, selector: "tui-pin,[tuiPin]", inputs: { open: "open" }, host: { properties: { "class._open": "open" } }, ngImport: i0 }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPin, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPin, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-pin.mjs","sources":["../../../projects/kit/components/pin/pin.directive.ts","../../../projects/kit/components/pin/taiga-ui-kit-components-pin.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/pin.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-pin',\n },\n})\nclass TuiPinStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-pin,[tuiPin]',\n host: {\n '[class._open]': 'open',\n },\n})\nexport class TuiPin {\n protected readonly nothing = tuiWithStyles(TuiPinStyles);\n\n @Input()\n public open = false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA,MAUM,YAAY,CAAA;+GAAZ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;;4FAAN,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACF,wBAAA,eAAe,EAAE,MAAM;AAC1B,qBAAA;AACJ,iBAAA,CAAA;8BAKU,IAAI,EAAA,CAAA;sBADV,KAAK;;;AC/BV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-pin.mjs","sources":["../../../projects/kit/components/pin/pin.directive.ts","../../../projects/kit/components/pin/taiga-ui-kit-components-pin.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/pin.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-pin',\n },\n})\nclass TuiPinStyles {}\n\n@Directive({\n standalone: true,\n selector: 'tui-pin,[tuiPin]',\n host: {\n '[class._open]': 'open',\n },\n})\nexport class TuiPin {\n protected readonly nothing = tuiWithStyles(TuiPinStyles);\n\n @Input()\n public open = false;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AASA,MAUM,YAAY,CAAA;8GAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAY,6GARJ,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,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import { Component, ViewEncapsulation, ChangeDetectionStrategy, Injectable, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, Injectable, Directive } from '@angular/core';
3
3
  import * as i1 from '@taiga-ui/cdk/directives/animated';
4
4
  import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
5
5
  import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
@@ -11,14 +11,14 @@ class TuiPreviewDialog {
11
11
  constructor() {
12
12
  this.context = injectContext();
13
13
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPreviewDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiPreviewDialog, isStandalone: true, selector: "tui-preview-dialog", host: { listeners: { "document:keydown.esc.prevent": "context.$implicit.complete()" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPreviewDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiPreviewDialog, isStandalone: true, selector: "tui-preview-dialog", host: { listeners: { "document:keydown.esc.prevent": "context.$implicit.complete()" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
16
16
  <ng-container *polymorpheusOutlet="context.content as text; context: context">
17
17
  {{ text }}
18
18
  </ng-container>
19
19
  `, isInline: true, styles: ["tui-preview-dialog{inline-size:100%;block-size:100%}tui-preview-dialog.tui-enter,tui-preview-dialog.tui-leave{animation-name:tuiFade,tuiSlide}[tuiAppearance][data-appearance=preview-action]{background:#686868f5;color:#fff}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not(:disabled):not([data-state]){background:#9f9f9fdb}}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):hover:not(:disabled):not([data-state]){background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action][data-state=hover]{background:#9f9f9fdb}@media (hover: hover) and (pointer: fine){[tuiAppearance][data-appearance=preview-action][tuiWrapper]:hover:not(._no-hover),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=hover]{background:#9f9f9fdb}}[tuiAppearance][data-appearance=preview-action]:matches(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not(:disabled):not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled):active:not(:disabled):not([data-state]){background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][data-state=active]{background:#9f9f9fbf}[tuiAppearance][data-appearance=preview-action][tuiWrapper]:active:not(._no-active),[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active],[tuiAppearance][data-appearance=preview-action][tuiWrapper][data-state=active]:hover{background:#9f9f9fbf}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPreviewDialog, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPreviewDialog, decorators: [{
22
22
  type: Component,
23
23
  args: [{ standalone: true, selector: 'tui-preview-dialog', imports: [PolymorpheusOutlet], template: `
24
24
  <ng-container *polymorpheusOutlet="context.content as text; context: context">
@@ -30,10 +30,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
30
30
  }] });
31
31
 
32
32
  class TuiPreviewDialogService extends TuiPopoverService {
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPreviewDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
34
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPreviewDialogService, providedIn: 'root', useFactory: () => new TuiPreviewDialogService(TUI_DIALOGS, TuiPreviewDialog) }); }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPreviewDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
34
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPreviewDialogService, providedIn: 'root', useFactory: () => new TuiPreviewDialogService(TUI_DIALOGS, TuiPreviewDialog) }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPreviewDialogService, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPreviewDialogService, decorators: [{
37
37
  type: Injectable,
38
38
  args: [{
39
39
  providedIn: 'root',
@@ -42,10 +42,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
42
42
  }] });
43
43
 
44
44
  class TuiPreviewDialogDirective extends TuiPopoverDirective {
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPreviewDialogDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
46
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPreviewDialogDirective, isStandalone: true, selector: "ng-template[tuiPreviewDialog]", inputs: { open: ["tuiPreviewDialog", "open"] }, outputs: { openChange: "tuiPreviewDialogChange" }, providers: [tuiAsPopover(TuiPreviewDialogService)], usesInheritance: true, ngImport: i0 }); }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPreviewDialogDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
46
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiPreviewDialogDirective, isStandalone: true, selector: "ng-template[tuiPreviewDialog]", inputs: { open: ["tuiPreviewDialog", "open"] }, outputs: { openChange: "tuiPreviewDialogChange" }, providers: [tuiAsPopover(TuiPreviewDialogService)], usesInheritance: true, ngImport: i0 }); }
47
47
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPreviewDialogDirective, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPreviewDialogDirective, decorators: [{
49
49
  type: Directive,
50
50
  args: [{
51
51
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-preview-dialog.mjs","sources":["../../../projects/kit/components/preview/dialog/preview-dialog.component.ts","../../../projects/kit/components/preview/dialog/preview-dialog.service.ts","../../../projects/kit/components/preview/dialog/preview-dialog.directive.ts","../../../projects/kit/components/preview/dialog/taiga-ui-kit-components-preview-dialog.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-preview-dialog',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n {{ text }}\n </ng-container>\n `,\n styleUrls: ['./preview-dialog.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n '(document:keydown.esc.prevent)': 'context.$implicit.complete()',\n },\n})\nexport class TuiPreviewDialog {\n protected readonly context = injectContext<TuiPopover<void, void>>();\n}\n","import {Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {TuiPreviewDialog} from './preview-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () => new TuiPreviewDialogService(TUI_DIALOGS, TuiPreviewDialog),\n})\nexport class TuiPreviewDialogService extends TuiPopoverService<unknown> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {TuiPreviewDialogService} from './preview-dialog.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiPreviewDialog]',\n inputs: ['open: tuiPreviewDialog'],\n outputs: ['openChange: tuiPreviewDialogChange'],\n providers: [tuiAsPopover(TuiPreviewDialogService)],\n})\nexport class TuiPreviewDialogDirective extends TuiPopoverDirective<unknown> {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAKA,MAiBa,gBAAgB,CAAA;AAjB7B,IAAA,WAAA,GAAA;QAkBuB,IAAO,CAAA,OAAA,GAAG,aAAa,EAA0B,CAAC;AACxE,KAAA;+GAFY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAA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,CAAC;AACrD,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-preview-dialog.mjs","sources":["../../../projects/kit/components/preview/dialog/preview-dialog.component.ts","../../../projects/kit/components/preview/dialog/preview-dialog.service.ts","../../../projects/kit/components/preview/dialog/preview-dialog.directive.ts","../../../projects/kit/components/preview/dialog/taiga-ui-kit-components-preview-dialog.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-preview-dialog',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n {{ text }}\n </ng-container>\n `,\n styleUrls: ['./preview-dialog.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n '(document:keydown.esc.prevent)': 'context.$implicit.complete()',\n },\n})\nexport class TuiPreviewDialog {\n protected readonly context = injectContext<TuiPopover<void, void>>();\n}\n","import {Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {TuiPreviewDialog} from './preview-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () => new TuiPreviewDialogService(TUI_DIALOGS, TuiPreviewDialog),\n})\nexport class TuiPreviewDialogService extends TuiPopoverService<unknown> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {TuiPreviewDialogService} from './preview-dialog.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiPreviewDialog]',\n inputs: ['open: tuiPreviewDialog'],\n outputs: ['openChange: tuiPreviewDialogChange'],\n providers: [tuiAsPopover(TuiPreviewDialogService)],\n})\nexport class TuiPreviewDialogDirective extends TuiPopoverDirective<unknown> {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAsBa,gBAAgB,CAAA;AAjB7B,IAAA,WAAA,GAAA;QAkBuB,IAAA,CAAA,OAAO,GAAG,aAAa,EAA0B;AACvE,IAAA;8GAFY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,8BAAA,EAAA,8BAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAbf;;;;AAIT,IAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,orDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EALS,kBAAkB,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,CAAA,oBAAA,EAAA,2BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAcnB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAjB5B,SAAS;AACM,YAAA,IAAA,EAAA,CAAA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