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

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 (250) hide show
  1. package/components/action-bar/action-bar.component.d.ts +5 -7
  2. package/components/action-bar/index.d.ts +0 -2
  3. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  4. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  5. package/components/confirm/confirm.component.d.ts +2 -2
  6. package/components/copy/copy.component.d.ts +1 -1
  7. package/components/copy/copy.directive.d.ts +1 -0
  8. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -0
  9. package/components/files/file/file.options.d.ts +1 -1
  10. package/components/files/files/files.component.d.ts +2 -2
  11. package/components/index.d.ts +0 -1
  12. package/components/input-number/input-number.directive.d.ts +5 -9
  13. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  14. package/components/input-phone-international/input-phone-international.component.d.ts +3 -3
  15. package/components/input-pin/input-pin.component.d.ts +1 -1
  16. package/components/input-range/input-range.component.d.ts +4 -7
  17. package/components/input-slider/input-slider.directive.d.ts +0 -1
  18. package/components/input-time/input-time.directive.d.ts +6 -8
  19. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  20. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
  21. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  22. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  23. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  24. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  25. package/components/pagination/index.d.ts +1 -0
  26. package/components/pagination/pagination.component.d.ts +3 -2
  27. package/components/pagination/pagination.options.d.ts +10 -0
  28. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  29. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  30. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  31. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  32. package/components/preview/preview.component.d.ts +1 -1
  33. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  34. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  35. package/components/push/push-alert.component.d.ts +4 -3
  36. package/components/push/push.component.d.ts +1 -1
  37. package/components/push/push.directive.d.ts +4 -6
  38. package/components/push/push.options.d.ts +4 -8
  39. package/components/push/push.service.d.ts +6 -2
  40. package/components/range/range-change.directive.d.ts +1 -2
  41. package/components/range/range.component.d.ts +16 -24
  42. package/components/select/native-select/native-select.component.d.ts +4 -5
  43. package/components/slider/helpers/key-steps.d.ts +1 -2
  44. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  45. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  46. package/components/textarea/textarea-limit.directive.d.ts +4 -5
  47. package/components/toast/toast.component.d.ts +4 -3
  48. package/components/toast/toast.options.d.ts +8 -7
  49. package/components/toast/toast.service.d.ts +10 -9
  50. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  51. package/components/tree/misc/tree.constants.d.ts +0 -3
  52. package/components/tree/misc/tree.tokens.d.ts +1 -6
  53. package/directives/button-close/button-close.directive.d.ts +2 -1
  54. package/directives/button-select/button-select.directive.d.ts +1 -2
  55. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  56. package/fesm2022/taiga-ui-kit-components-accordion.mjs +1 -2
  57. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +20 -36
  59. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-avatar.mjs +1 -1
  61. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +1 -1
  63. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-kit-components-badge.mjs +2 -2
  65. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +0 -1
  67. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +3 -4
  70. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  72. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +3 -6
  74. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +4 -5
  76. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-carousel.mjs +3 -9
  78. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +1 -1
  80. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-chip.mjs +2 -2
  82. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +5 -6
  84. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-compass.mjs +1 -1
  87. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-confirm.mjs +3 -5
  89. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-copy.mjs +6 -6
  91. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +11 -3
  93. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -1
  96. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-kit-components-files.mjs +13 -15
  98. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +2 -2
  101. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +0 -2
  104. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +3 -8
  107. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +0 -1
  109. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +1 -3
  111. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-input-date.mjs +7 -15
  113. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +2 -3
  115. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -5
  117. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-input-month.mjs +3 -5
  119. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-input-number.mjs +22 -46
  121. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +8 -7
  123. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +3 -5
  125. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-input-range.mjs +7 -14
  128. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +9 -15
  130. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-input-time.mjs +29 -35
  132. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-input-year.mjs +2 -4
  134. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +2 -4
  136. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-like.mjs +1 -1
  138. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +22 -60
  140. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-message.mjs +0 -1
  142. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +12 -14
  144. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +31 -20
  146. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-components-pagination.mjs +20 -10
  149. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-components-pin.mjs +2 -2
  151. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +23 -15
  153. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-preview.mjs +36 -29
  155. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-progress.mjs +38 -26
  157. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-pulse.mjs +1 -1
  159. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-push.mjs +40 -47
  161. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +2 -2
  163. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-radio.mjs +1 -2
  165. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-range.mjs +36 -80
  167. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +7 -3
  170. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-segmented.mjs +1 -2
  172. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-select.mjs +35 -40
  174. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-slider.mjs +56 -57
  176. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-switch.mjs +1 -1
  181. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-tabs.mjs +3 -6
  183. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-textarea.mjs +5 -14
  185. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-tiles.mjs +2 -3
  187. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-toast.mjs +39 -40
  189. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-tree.mjs +34 -39
  191. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components.mjs +0 -1
  193. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +13 -5
  195. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +2 -10
  198. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-directives-connected.mjs +0 -1
  201. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -1
  203. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +10 -18
  206. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +0 -1
  208. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -1
  210. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-directives-password.mjs +2 -6
  212. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-directives-present.mjs +0 -1
  214. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  216. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +2 -2
  219. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +1 -2
  221. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +0 -1
  223. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +0 -1
  225. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +0 -1
  227. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +0 -1
  229. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  230. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +2 -2
  231. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +0 -1
  233. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +0 -1
  235. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-tokens.mjs +3 -1
  237. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  238. package/package.json +10 -10
  239. package/styles/components/badge.less +1 -0
  240. package/styles/components/chip.less +12 -1
  241. package/tokens/i18n.d.ts +25 -26
  242. package/components/action-bar/action-bar.d.ts +0 -3
  243. package/components/action-bar/action-bar.directive.d.ts +0 -6
  244. package/components/pdf-viewer/index.d.ts +0 -4
  245. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  246. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  247. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  248. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  249. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  250. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
package/tokens/i18n.d.ts CHANGED
@@ -1,21 +1,20 @@
1
- import { InjectionToken } from '@angular/core';
1
+ import { InjectionToken, type Signal } from '@angular/core';
2
2
  import { type TuiDateMode } from '@taiga-ui/cdk/date-time';
3
3
  import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
4
- import { type Observable } from 'rxjs';
5
- export declare const TUI_CONFIRM_WORDS: InjectionToken<Observable<{
4
+ export declare const TUI_CONFIRM_WORDS: InjectionToken<Signal<{
6
5
  no: string;
7
6
  yes: string;
8
7
  }>>;
9
- export declare const TUI_CANCEL_WORD: InjectionToken<Observable<string>>;
10
- export declare const TUI_DONE_WORD: InjectionToken<Observable<string>>;
11
- export declare const TUI_MORE_WORD: InjectionToken<Observable<string>>;
12
- export declare const TUI_HIDE_TEXT: InjectionToken<Observable<string>>;
13
- export declare const TUI_SHOW_ALL_TEXT: InjectionToken<Observable<string>>;
14
- export declare const TUI_OTHER_DATE_TEXT: InjectionToken<Observable<string>>;
15
- export declare const TUI_CHOOSE_DAY_OR_RANGE_TEXTS: InjectionToken<Observable<readonly [choose_day: string, choose_range: string, choose_days: string]>>;
16
- export declare const TUI_FROM_TO_TEXTS: InjectionToken<Observable<readonly [from: string, to: string]>>;
17
- export declare const TUI_PLUS_MINUS_TEXTS: InjectionToken<Observable<readonly [plus: string, minus: string]>>;
18
- export declare const TUI_TIME_TEXTS: InjectionToken<Observable<{
8
+ export declare const TUI_CANCEL_WORD: InjectionToken<Signal<string>>;
9
+ export declare const TUI_DONE_WORD: InjectionToken<Signal<string>>;
10
+ export declare const TUI_MORE_WORD: InjectionToken<Signal<string>>;
11
+ export declare const TUI_HIDE_TEXT: InjectionToken<Signal<string>>;
12
+ export declare const TUI_SHOW_ALL_TEXT: InjectionToken<Signal<string>>;
13
+ export declare const TUI_OTHER_DATE_TEXT: InjectionToken<Signal<string>>;
14
+ export declare const TUI_CHOOSE_DAY_OR_RANGE_TEXTS: InjectionToken<Signal<readonly [choose_day: string, choose_range: string, choose_days: string]>>;
15
+ export declare const TUI_FROM_TO_TEXTS: InjectionToken<Signal<readonly [from: string, to: string]>>;
16
+ export declare const TUI_PLUS_MINUS_TEXTS: InjectionToken<Signal<readonly [plus: string, minus: string]>>;
17
+ export declare const TUI_TIME_TEXTS: InjectionToken<Signal<{
19
18
  'MM:SS': string;
20
19
  'HH:MM': string;
21
20
  'HH:MM AA': string;
@@ -29,18 +28,18 @@ export declare const TUI_TIME_TEXTS: InjectionToken<Observable<{
29
28
  'MM.SS.MSS': string;
30
29
  'SS.MSS': string;
31
30
  }>>;
32
- export declare const TUI_DATE_TEXTS: InjectionToken<Observable<Record<TuiDateMode, string>>>;
33
- export declare const TUI_DIGITAL_INFORMATION_UNITS: InjectionToken<Observable<readonly [short_byte: string, short_kilobyte: string, short_megabyte: string]>>;
34
- export declare const TUI_COPY_TEXTS: InjectionToken<Observable<readonly [copy: string, copied: string]>>;
35
- export declare const TUI_PASSWORD_TEXTS: InjectionToken<Observable<readonly [show_password: string, hide_password: string]>>;
36
- export declare const TUI_CALENDAR_MONTHS: InjectionToken<Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
37
- export declare const TUI_FILE_TEXTS: InjectionToken<Observable<{
31
+ export declare const TUI_DATE_TEXTS: InjectionToken<Signal<Record<TuiDateMode, string>>>;
32
+ export declare const TUI_DIGITAL_INFORMATION_UNITS: InjectionToken<Signal<readonly [short_byte: string, short_kilobyte: string, short_megabyte: string]>>;
33
+ export declare const TUI_COPY_TEXTS: InjectionToken<Signal<readonly [copy: string, copied: string]>>;
34
+ export declare const TUI_PASSWORD_TEXTS: InjectionToken<Signal<readonly [show_password: string, hide_password: string]>>;
35
+ export declare const TUI_CALENDAR_MONTHS: InjectionToken<Signal<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
36
+ export declare const TUI_FILE_TEXTS: InjectionToken<Signal<{
38
37
  loadingError: string;
39
38
  preview: string;
40
39
  remove: string;
41
40
  }>>;
42
- export declare const TUI_PAGINATION_TEXTS: InjectionToken<Observable<readonly [previous_page: string, next_page: string]>>;
43
- export declare const TUI_INPUT_FILE_TEXTS: InjectionToken<Observable<{
41
+ export declare const TUI_PAGINATION_TEXTS: InjectionToken<Signal<readonly [previous_page: string, next_page: string]>>;
42
+ export declare const TUI_INPUT_FILE_TEXTS: InjectionToken<Signal<{
44
43
  defaultLabelMultiple: string;
45
44
  defaultLabelSingle: string;
46
45
  defaultLinkMultiple: string;
@@ -50,17 +49,17 @@ export declare const TUI_INPUT_FILE_TEXTS: InjectionToken<Observable<{
50
49
  formatRejectionReason: string;
51
50
  maxSizeRejectionReason: string;
52
51
  }>>;
53
- export declare const TUI_MULTI_SELECT_TEXTS: InjectionToken<Observable<{
52
+ export declare const TUI_MULTI_SELECT_TEXTS: InjectionToken<Signal<{
54
53
  all: string;
55
54
  none: string;
56
55
  }>>;
57
- export declare const TUI_COUNTRIES: InjectionToken<Observable<Record<TuiCountryIsoCode, string>>>;
58
- export declare const TUI_PREVIEW_TEXTS: InjectionToken<Observable<{
56
+ export declare const TUI_COUNTRIES: InjectionToken<Signal<Record<TuiCountryIsoCode, string>>>;
57
+ export declare const TUI_PREVIEW_TEXTS: InjectionToken<Signal<{
59
58
  rotate: string;
60
59
  }>>;
61
- export declare const TUI_PREVIEW_ZOOM_TEXTS: InjectionToken<Observable<{
60
+ export declare const TUI_PREVIEW_ZOOM_TEXTS: InjectionToken<Signal<{
62
61
  zoomIn: string;
63
62
  zoomOut: string;
64
63
  reset: string;
65
64
  }>>;
66
- export declare const TUI_INTERNATIONAL_SEARCH: InjectionToken<Observable<string>>;
65
+ export declare const TUI_INTERNATIONAL_SEARCH: InjectionToken<Signal<string>>;
@@ -1,3 +0,0 @@
1
- import { TuiActionBarComponent } from './action-bar.component';
2
- import { TuiActionBarDirective } from './action-bar.directive';
3
- export declare const TuiActionBar: readonly [typeof TuiActionBarComponent, typeof TuiActionBarDirective];
@@ -1,6 +0,0 @@
1
- import { TuiDropdownPortal } from '@taiga-ui/core/directives/dropdown';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiActionBarDirective extends TuiDropdownPortal {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiActionBarDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiActionBarDirective, "ng-template[tuiActionBar]", never, { "tuiDropdown": { "alias": "tuiActionBar"; "required": false; }; }, {}, never, never, true, never>;
6
- }
@@ -1,4 +0,0 @@
1
- export * from './pdf-viewer.component';
2
- export * from './pdf-viewer.directive';
3
- export * from './pdf-viewer.options';
4
- export * from './pdf-viewer.service';
@@ -1,12 +0,0 @@
1
- import { type TuiPopover } from '@taiga-ui/cdk/services';
2
- import { type TuiPdfViewerOptions } from './pdf-viewer.options';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@taiga-ui/cdk/directives/animated";
5
- export declare class TuiPdfViewerComponent<I, O> {
6
- protected readonly closeWord$: import("rxjs").Observable<string>;
7
- protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
8
- protected readonly context: TuiPopover<TuiPdfViewerOptions<I>, O>;
9
- protected onKeyDownEsc(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiPdfViewerComponent<any, any>, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiPdfViewerComponent<any, any>, "tui-pdf-viewer", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }]>;
12
- }
@@ -1,7 +0,0 @@
1
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
2
- import { type TuiPdfViewerOptions } from './pdf-viewer.options';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiPdfViewerDirective<T> extends TuiPopoverDirective<TuiPdfViewerOptions<T>> {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiPdfViewerDirective<any>, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPdfViewerDirective<any>, "ng-template[tuiPdfViewer]", never, { "options": { "alias": "tuiPdfViewerOptions"; "required": false; }; "open": { "alias": "tuiPdfViewer"; "required": false; }; }, { "openChange": "tuiPdfViewerChange"; }, never, never, true, never>;
7
- }
@@ -1,13 +0,0 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
2
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
3
- export declare const TUI_PDF_VIEWER_DEFAULT_OPTIONS: TuiPdfViewerOptions;
4
- /**
5
- * Default parameters for PdfViewer component
6
- */
7
- export declare const TUI_PDF_VIEWER_OPTIONS: InjectionToken<TuiPdfViewerOptions<undefined>>;
8
- export declare function tuiPdfViewerOptionsProvider(options: Partial<TuiPdfViewerOptions>): Provider;
9
- export interface TuiPdfViewerOptions<I = undefined> {
10
- readonly actions: PolymorpheusContent<TuiPdfViewerOptions<I>>;
11
- readonly data: I;
12
- readonly label: string;
13
- }
@@ -1,13 +0,0 @@
1
- import { type SafeResourceUrl } from '@angular/platform-browser';
2
- import { type TuiPopoverContext, TuiPopoverService } from '@taiga-ui/cdk/services';
3
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
4
- import { type Observable } from 'rxjs';
5
- import { type TuiPdfViewerOptions } from './pdf-viewer.options';
6
- import * as i0 from "@angular/core";
7
- type Content<G> = PolymorpheusContent<TuiPdfViewerOptions<unknown> & TuiPopoverContext<G>>;
8
- export declare class TuiPdfViewerService extends TuiPopoverService<TuiPdfViewerOptions<unknown>> {
9
- open<G>(content: Content<G> | SafeResourceUrl, options?: Partial<TuiPdfViewerOptions<any>>): Observable<G>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiPdfViewerService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiPdfViewerService>;
12
- }
13
- export {};
@@ -1,83 +0,0 @@
1
- import { AsyncPipe } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, ChangeDetectionStrategy, Component, InjectionToken, Injectable, Directive } from '@angular/core';
4
- import * as i1 from '@taiga-ui/cdk/directives/animated';
5
- import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
6
- import { TuiButton } from '@taiga-ui/core/components/button';
7
- import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
8
- import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
9
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
10
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
11
- import { TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
12
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
13
-
14
- class TuiPdfViewerComponent {
15
- constructor() {
16
- this.closeWord$ = inject(TUI_CLOSE_WORD);
17
- this.icons = inject(TUI_COMMON_ICONS);
18
- this.context = injectContext();
19
- }
20
- onKeyDownEsc() {
21
- this.context.$implicit.complete();
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPdfViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", 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
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPdfViewerComponent, decorators: [{
27
- type: Component,
28
- args: [{ selector: 'tui-pdf-viewer', imports: [AsyncPipe, PolymorpheusOutlet, TuiButton], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
29
- '(document:keydown.esc)': 'onKeyDownEsc()',
30
- }, 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"] }]
31
- }] });
32
-
33
- const TUI_PDF_VIEWER_DEFAULT_OPTIONS = {
34
- label: '',
35
- actions: '',
36
- data: undefined,
37
- };
38
- /**
39
- * Default parameters for PdfViewer component
40
- */
41
- const TUI_PDF_VIEWER_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_PDF_VIEWER_OPTIONS' : '', {
42
- factory: () => TUI_PDF_VIEWER_DEFAULT_OPTIONS,
43
- });
44
- function tuiPdfViewerOptionsProvider(options) {
45
- return tuiProvideOptions(TUI_PDF_VIEWER_OPTIONS, options, TUI_PDF_VIEWER_DEFAULT_OPTIONS);
46
- }
47
-
48
- class TuiPdfViewerService extends TuiPopoverService {
49
- open(content, options = {}) {
50
- return super.open(content, options);
51
- }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPdfViewerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
53
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPdfViewerService, providedIn: 'root', useFactory: () => new TuiPdfViewerService(TUI_DIALOGS, TuiPdfViewerComponent, inject(TUI_PDF_VIEWER_OPTIONS)) }); }
54
- }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPdfViewerService, decorators: [{
56
- type: Injectable,
57
- args: [{
58
- providedIn: 'root',
59
- useFactory: () => new TuiPdfViewerService(TUI_DIALOGS, TuiPdfViewerComponent, inject(TUI_PDF_VIEWER_OPTIONS)),
60
- }]
61
- }] });
62
-
63
- class TuiPdfViewerDirective extends TuiPopoverDirective {
64
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPdfViewerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
65
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", 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
- }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPdfViewerDirective, decorators: [{
68
- type: Directive,
69
- args: [{
70
- standalone: true,
71
- selector: 'ng-template[tuiPdfViewer]',
72
- inputs: ['options: tuiPdfViewerOptions', 'open: tuiPdfViewer'],
73
- outputs: ['openChange: tuiPdfViewerChange'],
74
- providers: [tuiAsPopover(TuiPdfViewerService)],
75
- }]
76
- }] });
77
-
78
- /**
79
- * Generated bundle index. Do not edit.
80
- */
81
-
82
- export { TUI_PDF_VIEWER_DEFAULT_OPTIONS, TUI_PDF_VIEWER_OPTIONS, TuiPdfViewerComponent, TuiPdfViewerDirective, TuiPdfViewerService, tuiPdfViewerOptionsProvider };
83
- //# sourceMappingURL=taiga-ui-kit-components-pdf-viewer.mjs.map
@@ -1 +0,0 @@
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 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":"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"}