@taiga-ui/core 4.52.0-canary.e444d19 → 4.52.0-canary.e53e79e

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 (334) hide show
  1. package/README.md +1 -1
  2. package/classes/accessors.d.ts +2 -2
  3. package/components/button/button.directive.d.ts +2 -2
  4. package/components/button/button.options.d.ts +1 -1
  5. package/components/calendar/calendar-sheet.component.d.ts +1 -1
  6. package/components/calendar/calendar-sheet.options.d.ts +1 -3
  7. package/{pipes/calendar-sheet → components/calendar}/calendar-sheet.pipe.d.ts +2 -2
  8. package/components/calendar/calendar-spin.component.d.ts +1 -0
  9. package/components/calendar/calendar-year.component.d.ts +1 -1
  10. package/components/calendar/calendar.options.d.ts +9 -0
  11. package/components/calendar/index.d.ts +3 -0
  12. package/{pipes/order-week-days → components/calendar}/order-week-days.pipe.d.ts +1 -1
  13. package/components/cell/cell.directive.d.ts +9 -0
  14. package/components/cell/cell.options.d.ts +6 -0
  15. package/components/cell/index.d.ts +2 -0
  16. package/components/data-list/data-list.component.d.ts +8 -12
  17. package/components/data-list/data-list.d.ts +3 -4
  18. package/components/data-list/data-list.tokens.d.ts +1 -23
  19. package/components/data-list/index.d.ts +3 -4
  20. package/components/data-list/opt-group.directive.d.ts +2 -2
  21. package/components/data-list/option-content.directive.d.ts +14 -0
  22. package/components/data-list/option-with-value.directive.d.ts +9 -0
  23. package/components/data-list/option.directive.d.ts +19 -0
  24. package/components/error/error.component.d.ts +6 -8
  25. package/components/error/error.d.ts +4 -0
  26. package/components/error/error.directive.d.ts +19 -0
  27. package/components/error/error.pipe.d.ts +10 -0
  28. package/components/error/index.d.ts +3 -0
  29. package/components/expand/expand.component.d.ts +9 -28
  30. package/components/expand/index.d.ts +0 -2
  31. package/components/icon/icon.component.d.ts +3 -3
  32. package/components/index.d.ts +3 -3
  33. package/components/input/index.d.ts +2 -0
  34. package/components/input/input.d.ts +5 -0
  35. package/components/input/input.directive.d.ts +30 -0
  36. package/components/label/label.directive.d.ts +1 -1
  37. package/components/link/index.d.ts +0 -1
  38. package/components/link/link.directive.d.ts +8 -6
  39. package/components/loader/loader.component.d.ts +7 -7
  40. package/components/loader/loader.options.d.ts +1 -3
  41. package/components/notification/index.d.ts +3 -0
  42. package/components/notification/notification.component.d.ts +14 -0
  43. package/components/notification/notification.d.ts +3 -0
  44. package/components/notification/notification.directive.d.ts +7 -12
  45. package/components/notification/notification.options.d.ts +10 -7
  46. package/components/notification/notification.service.d.ts +17 -0
  47. package/components/root/root.component.d.ts +4 -6
  48. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  49. package/components/scrollbar/scroll-ref.directive.d.ts +2 -0
  50. package/components/scrollbar/scrollbar.component.d.ts +1 -5
  51. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  52. package/components/scrollbar/scrollbar.options.d.ts +1 -1
  53. package/components/spin-button/spin-button.component.d.ts +9 -10
  54. package/components/textfield/index.d.ts +1 -4
  55. package/components/textfield/textfield-content.directive.d.ts +3 -2
  56. package/components/textfield/textfield-icon.d.ts +3 -3
  57. package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
  58. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +10 -15
  59. package/components/textfield/textfield.component.d.ts +23 -37
  60. package/components/textfield/textfield.d.ts +2 -4
  61. package/components/textfield/textfield.options.d.ts +8 -11
  62. package/{directives → components}/title/title.directive.d.ts +2 -3
  63. package/directives/appearance/appearance.directive.d.ts +5 -13
  64. package/directives/appearance/appearance.options.d.ts +1 -1
  65. package/directives/date-format/date-format.directive.d.ts +3 -7
  66. package/directives/group/group.directive.d.ts +7 -7
  67. package/directives/group/group.options.d.ts +1 -3
  68. package/directives/icons/icons.bindings.d.ts +5 -0
  69. package/directives/icons/icons.directive.d.ts +6 -14
  70. package/directives/icons/index.d.ts +1 -0
  71. package/directives/index.d.ts +0 -5
  72. package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
  73. package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
  74. package/directives/number-format/number-format.directive.d.ts +3 -7
  75. package/fesm2022/taiga-ui-core-classes.mjs +9 -11
  76. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-core-components-button.mjs +13 -20
  78. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-core-components-calendar.mjs +140 -36
  80. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  82. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  83. package/fesm2022/taiga-ui-core-components-data-list.mjs +112 -281
  84. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-core-components-error.mjs +109 -24
  86. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-core-components-expand.mjs +33 -131
  88. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-core-components-icon.mjs +11 -12
  90. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-core-components-input.mjs +103 -0
  92. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -0
  93. package/fesm2022/taiga-ui-core-components-label.mjs +13 -18
  94. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-core-components-link.mjs +16 -36
  96. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-core-components-loader.mjs +16 -34
  98. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-core-components-notification.mjs +107 -66
  100. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-core-components-root.mjs +21 -52
  102. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +68 -82
  104. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-core-components-spin-button.mjs +18 -31
  106. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-core-components-textfield.mjs +130 -427
  108. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-core-components-title.mjs +37 -0
  110. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -0
  111. package/fesm2022/taiga-ui-core-components.mjs +3 -3
  112. package/fesm2022/taiga-ui-core-directives-appearance.mjs +32 -69
  113. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-core-directives-date-format.mjs +26 -20
  115. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-core-directives-group.mjs +25 -40
  117. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-core-directives-icons.mjs +35 -45
  119. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +18 -42
  121. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-core-directives-number-format.mjs +32 -20
  123. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-core-directives.mjs +0 -5
  125. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +21 -15
  127. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-core-pipes.mjs +0 -8
  129. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-core-portals-alert.mjs +73 -0
  131. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -0
  132. package/fesm2022/taiga-ui-core-portals-dialog.mjs +158 -0
  133. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -0
  134. package/fesm2022/{taiga-ui-core-directives-dropdown.mjs → taiga-ui-core-portals-dropdown.mjs} +180 -332
  135. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -0
  136. package/fesm2022/taiga-ui-core-portals-hint.mjs +607 -0
  137. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -0
  138. package/fesm2022/taiga-ui-core-portals-modal.mjs +89 -0
  139. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -0
  140. package/fesm2022/taiga-ui-core-portals-popup.mjs +56 -0
  141. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -0
  142. package/fesm2022/taiga-ui-core-portals.mjs +11 -0
  143. package/fesm2022/taiga-ui-core-portals.mjs.map +1 -0
  144. package/fesm2022/taiga-ui-core-services.mjs +16 -55
  145. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-core-tokens.mjs +30 -52
  147. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
  149. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +55 -18
  151. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-core.mjs +1 -1
  153. package/index.d.ts +1 -1
  154. package/package.json +58 -84
  155. package/pipes/format-number/format-number.pipe.d.ts +6 -4
  156. package/pipes/index.d.ts +0 -8
  157. package/portals/alert/alert.directive.d.ts +11 -0
  158. package/portals/alert/alert.service.d.ts +12 -0
  159. package/portals/alert/index.d.ts +2 -0
  160. package/portals/dialog/dialog.component.d.ts +14 -0
  161. package/portals/dialog/dialog.directive.d.ts +8 -0
  162. package/{components → portals}/dialog/dialog.factory.d.ts +1 -1
  163. package/portals/dialog/dialog.options.d.ts +25 -0
  164. package/{components/dialog/dialog-close.service.d.ts → portals/dialog/dialog.providers.d.ts} +2 -0
  165. package/portals/dialog/dialog.service.d.ts +10 -0
  166. package/portals/dialog/index.d.ts +6 -0
  167. package/portals/dropdown/dropdown-content.directive.d.ts +9 -0
  168. package/{directives → portals}/dropdown/dropdown-hover.directive.d.ts +5 -10
  169. package/{directives → portals}/dropdown/dropdown-hover.options.d.ts +1 -3
  170. package/{directives → portals}/dropdown/dropdown-manual.directive.d.ts +2 -2
  171. package/portals/dropdown/dropdown-open.directive.d.ts +30 -0
  172. package/{directives → portals}/dropdown/dropdown-position-sided.directive.d.ts +3 -3
  173. package/{directives → portals}/dropdown/dropdown-position.directive.d.ts +5 -5
  174. package/{directives → portals}/dropdown/dropdown-selection.directive.d.ts +4 -5
  175. package/{directives → portals}/dropdown/dropdown.bindings.d.ts +0 -1
  176. package/{directives → portals}/dropdown/dropdown.d.ts +2 -3
  177. package/{directives → portals}/dropdown/dropdown.directive.d.ts +6 -8
  178. package/{directives → portals}/dropdown/index.d.ts +1 -4
  179. package/{directives → portals}/hint/hint-describe.directive.d.ts +4 -6
  180. package/{directives → portals}/hint/hint-host.directive.d.ts +2 -2
  181. package/{directives → portals}/hint/hint-hover.directive.d.ts +3 -4
  182. package/{directives → portals}/hint/hint-manual.directive.d.ts +2 -2
  183. package/{directives → portals}/hint/hint-options.directive.d.ts +3 -3
  184. package/{directives → portals}/hint/hint-overflow.directive.d.ts +2 -2
  185. package/{directives → portals}/hint/hint-position.directive.d.ts +5 -6
  186. package/{directives → portals}/hint/hint-unstyled.component.d.ts +2 -7
  187. package/portals/hint/hint.component.d.ts +29 -0
  188. package/portals/hint/hint.directive.d.ts +24 -0
  189. package/{directives → portals}/hint/index.d.ts +0 -2
  190. package/portals/index.d.ts +6 -0
  191. package/portals/modal/index.d.ts +2 -0
  192. package/portals/modal/modal.component.d.ts +17 -0
  193. package/portals/modal/modal.service.d.ts +13 -0
  194. package/portals/popup/popup.directive.d.ts +12 -0
  195. package/{directives → portals}/popup/popup.service.d.ts +1 -1
  196. package/{directives → portals}/popup/popups.component.d.ts +2 -2
  197. package/services/index.d.ts +0 -2
  198. package/styles/components/button.less +0 -2
  199. package/styles/components/icons.less +4 -4
  200. package/styles/components/link.less +9 -23
  201. package/styles/components/textfield.less +10 -7
  202. package/styles/mixins/appearance.less +2 -2
  203. package/styles/mixins/mixins.less +0 -6
  204. package/styles/mixins/mixins.scss +0 -6
  205. package/styles/mixins/slider.less +21 -16
  206. package/styles/mixins/slider.scss +1 -2
  207. package/styles/theme/variables.less +2 -4
  208. package/tokens/common-icons.d.ts +3 -3
  209. package/tokens/date-format.d.ts +2 -3
  210. package/tokens/i18n.d.ts +7 -7
  211. package/tokens/icon-resolver.d.ts +0 -4
  212. package/tokens/icons.d.ts +0 -4
  213. package/tokens/index.d.ts +1 -4
  214. package/tokens/number-format.d.ts +2 -3
  215. package/tokens/validation-errors.d.ts +4 -0
  216. package/types/index.d.ts +0 -3
  217. package/types/point.d.ts +1 -1
  218. package/types/size.d.ts +0 -11
  219. package/utils/format/index.d.ts +0 -1
  220. package/utils/miscellaneous/get-duration.d.ts +2 -0
  221. package/utils/miscellaneous/index.d.ts +2 -1
  222. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  223. package/animations/animations.d.ts +0 -109
  224. package/animations/index.d.ts +0 -1
  225. package/components/alert/alert.component.d.ts +0 -15
  226. package/components/alert/alert.directive.d.ts +0 -7
  227. package/components/alert/alert.interfaces.d.ts +0 -12
  228. package/components/alert/alert.service.d.ts +0 -7
  229. package/components/alert/alert.tokens.d.ts +0 -12
  230. package/components/alert/alerts.component.d.ts +0 -12
  231. package/components/alert/index.d.ts +0 -6
  232. package/components/data-list/data-list.directive.d.ts +0 -7
  233. package/components/data-list/option/option-content.d.ts +0 -16
  234. package/components/data-list/option/option-legacy.component.d.ts +0 -24
  235. package/components/data-list/option/option.directive.d.ts +0 -27
  236. package/components/dialog/dialog.component.d.ts +0 -20
  237. package/components/dialog/dialog.directive.d.ts +0 -7
  238. package/components/dialog/dialog.interfaces.d.ts +0 -34
  239. package/components/dialog/dialog.service.d.ts +0 -7
  240. package/components/dialog/dialog.tokens.d.ts +0 -15
  241. package/components/dialog/dialogs.component.d.ts +0 -8
  242. package/components/dialog/index.d.ts +0 -8
  243. package/components/expand/expand-content.directive.d.ts +0 -8
  244. package/components/expand/expand.d.ts +0 -6
  245. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  246. package/components/fullscreen/index.d.ts +0 -1
  247. package/components/link/link.options.d.ts +0 -12
  248. package/components/textfield/select.directive.d.ts +0 -19
  249. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  250. package/components/textfield/textfield.directive.d.ts +0 -38
  251. package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
  252. package/directives/dropdown/dropdown-open.directive.d.ts +0 -33
  253. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  254. package/directives/dropdown/dropdown.service.d.ts +0 -6
  255. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  256. package/directives/hint/hint.component.d.ts +0 -30
  257. package/directives/hint/hint.directive.d.ts +0 -26
  258. package/directives/hint/hint.service.d.ts +0 -13
  259. package/directives/hint/hints.component.d.ts +0 -12
  260. package/directives/popup/popup.directive.d.ts +0 -11
  261. package/directives/surface/index.d.ts +0 -1
  262. package/directives/surface/surface.directive.d.ts +0 -8
  263. package/fesm2022/taiga-ui-core-animations.mjs +0 -370
  264. package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
  265. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -149
  266. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  267. package/fesm2022/taiga-ui-core-components-dialog.mjs +0 -195
  268. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +0 -1
  269. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -66
  270. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  271. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +0 -1
  272. package/fesm2022/taiga-ui-core-directives-hint.mjs +0 -709
  273. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +0 -1
  274. package/fesm2022/taiga-ui-core-directives-popup.mjs +0 -63
  275. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +0 -1
  276. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  277. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  278. package/fesm2022/taiga-ui-core-directives-title.mjs +0 -43
  279. package/fesm2022/taiga-ui-core-directives-title.mjs.map +0 -1
  280. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -25
  281. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +0 -1
  282. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -94
  283. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +0 -1
  284. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  285. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  286. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -32
  287. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +0 -1
  288. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -28
  289. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +0 -1
  290. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -29
  291. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +0 -1
  292. package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -29
  293. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
  294. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -36
  295. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +0 -1
  296. package/pipes/auto-color/auto-color.pipe.d.ts +0 -7
  297. package/pipes/auto-color/index.d.ts +0 -1
  298. package/pipes/calendar-sheet/index.d.ts +0 -1
  299. package/pipes/calendar-sheet/utils.d.ts +0 -20
  300. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  301. package/pipes/fallback-src/index.d.ts +0 -1
  302. package/pipes/flag/flag.pipe.d.ts +0 -14
  303. package/pipes/flag/index.d.ts +0 -1
  304. package/pipes/format-date/format-date.pipe.d.ts +0 -9
  305. package/pipes/format-date/index.d.ts +0 -1
  306. package/pipes/initials/index.d.ts +0 -1
  307. package/pipes/initials/initials.pipe.d.ts +0 -7
  308. package/pipes/month/index.d.ts +0 -1
  309. package/pipes/month/month.pipe.d.ts +0 -10
  310. package/pipes/order-week-days/index.d.ts +0 -1
  311. package/services/dark-theme.service.d.ts +0 -10
  312. package/services/format-date.service.d.ts +0 -8
  313. package/tokens/day-type-handler.d.ts +0 -7
  314. package/tokens/first-day-of-week.d.ts +0 -5
  315. package/tokens/scroll-ref.d.ts +0 -2
  316. package/tokens/spin-icons.d.ts +0 -6
  317. package/types/portal-item.d.ts +0 -9
  318. package/types/range-state.d.ts +0 -4
  319. package/types/value-content-context.d.ts +0 -4
  320. package/utils/format/string-hash-to-hsl.d.ts +0 -6
  321. package/utils/miscellaneous/to-animation-options.d.ts +0 -4
  322. /package/{directives → components}/title/index.d.ts +0 -0
  323. /package/{directives → portals}/dropdown/dropdown-context.directive.d.ts +0 -0
  324. /package/{directives → portals}/dropdown/dropdown-limit-width.d.ts +0 -0
  325. /package/{directives → portals}/dropdown/dropdown-options.directive.d.ts +0 -0
  326. /package/{directives → portals}/dropdown/dropdown.component.d.ts +0 -0
  327. /package/{directives → portals}/dropdown/dropdown.driver.d.ts +0 -0
  328. /package/{directives → portals}/dropdown/dropdown.providers.d.ts +0 -0
  329. /package/{directives → portals}/dropdown/with-dropdown-open.directive.d.ts +0 -0
  330. /package/{directives → portals}/hint/hint-driver.directive.d.ts +0 -0
  331. /package/{directives → portals}/hint/hint-pointer.directive.d.ts +0 -0
  332. /package/{directives → portals}/hint/hint.d.ts +0 -0
  333. /package/{directives → portals}/hint/hint.providers.d.ts +0 -0
  334. /package/{directives → portals}/popup/index.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-components-alert.mjs","sources":["../../../projects/core/components/alert/alert.tokens.ts","../../../projects/core/components/alert/alert.component.ts","../../../projects/core/components/alert/alert.template.html","../../../projects/core/components/alert/alert.service.ts","../../../projects/core/components/alert/alert.directive.ts","../../../projects/core/components/alert/alerts.component.ts","../../../projects/core/components/alert/alerts.template.html","../../../projects/core/components/alert/taiga-ui-core-components-alert.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken, type Type} from '@angular/core';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification';\nimport {BehaviorSubject, combineLatest, map, of} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\n\nexport const TUI_ALERT_DEFAULT_OPTIONS: Omit<TuiAlertOptions, 'appearance' | 'icon'> = {\n autoClose: 3000,\n label: '',\n closeable: true,\n data: undefined,\n};\n\nexport const TUI_ALERT_OPTIONS = new InjectionToken<TuiAlertOptions>(\n ngDevMode ? 'TUI_ALERT_OPTIONS' : '',\n {\n factory: () => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...inject(TUI_NOTIFICATION_OPTIONS),\n }),\n },\n);\n\nexport const TUI_ALERT_POSITION = new InjectionToken<string>(\n ngDevMode ? 'TUI_ALERT_POSITION' : '',\n {\n factory: () => (inject(TUI_IS_MOBILE) ? '1rem 1rem 0 auto' : '2rem 3rem 0 auto'),\n },\n);\n\nexport const TUI_ALERTS = new InjectionToken(ngDevMode ? 'TUI_ALERTS' : '', {\n factory: () => new BehaviorSubject<ReadonlyArray<TuiPopover<any, any>>>([]),\n});\n\n/**\n * Grouping alerts by their component\n */\nexport const TUI_ALERTS_GROUPED = new InjectionToken(\n ngDevMode ? 'TUI_ALERTS_GROUPED' : '',\n {\n factory: () =>\n combineLatest([\n of(new Map<Type<any>, ReadonlyArray<TuiPopover<any, any>>>()),\n inject(TUI_ALERTS),\n ]).pipe(\n map(([map, alerts]) => {\n map.forEach((_, key) => map.set(key, []));\n\n alerts.forEach((alert) => {\n const key = alert.component.component;\n const value = map.get(key) || [];\n\n map.set(key, [...value, alert]);\n });\n\n return Array.from(map.values());\n }),\n ),\n },\n);\n\nexport function tuiAlertOptionsProvider(\n options: Partial<TuiAlertOptions>,\n): FactoryProvider {\n return {\n provide: TUI_ALERT_OPTIONS,\n useFactory: (): TuiAlertOptions => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...(inject(TUI_ALERT_OPTIONS, {optional: true, skipSelf: true}) ||\n inject(TUI_NOTIFICATION_OPTIONS)),\n ...options,\n }),\n };\n}\n","import {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiNotification} from '@taiga-ui/core/components/notification';\nimport {TuiTitle} from '@taiga-ui/core/directives/title';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_POSITION} from './alert.tokens';\n\n@Component({\n selector: 'tui-alert',\n imports: [PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle],\n templateUrl: './alert.template.html',\n styleUrls: ['./alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n role: 'alert',\n '[style.margin]': 'position',\n '[style.--tui-from]': 'from',\n },\n})\nexport class TuiAlertComponent<O, I> {\n private readonly el = tuiInjectElement();\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly close = toSignal(inject(TUI_CLOSE_WORD));\n protected readonly position = inject(TUI_ALERT_POSITION);\n protected readonly item = injectContext<TuiPopover<TuiAlertOptions<I>, O>>();\n\n protected readonly sub = of(\n typeof this.item.autoClose === 'function'\n ? this.item.autoClose(this.item.appearance)\n : this.item.autoClose,\n )\n .pipe(\n switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)),\n takeUntil(fromEvent(this.el, 'mouseenter')),\n repeat({delay: () => fromEvent(this.el, 'mouseleave')}),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.item.$implicit.complete());\n\n public get from(): string {\n return this.position.endsWith('auto') ? 'translateX(100%)' : 'translateX(-100%)';\n }\n}\n","<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closeable]=\"item.closeable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n @if (item.closeable) {\n <button\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n }\n </tui-notification>\n</div>\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\n\nimport {TuiAlertComponent} from './alert.component';\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_OPTIONS, TUI_ALERTS} from './alert.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiAlertService(TUI_ALERTS, TuiAlertComponent, inject(TUI_ALERT_OPTIONS)),\n})\nexport class TuiAlertService extends TuiPopoverService<TuiAlertOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TuiAlertService} from './alert.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiAlert]',\n inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],\n outputs: ['openChange: tuiAlertChange'],\n providers: [tuiAsPopover(TuiAlertService)],\n})\nexport class TuiAlert<T> extends TuiPopoverDirective<TuiAlertOptions<T>> {}\n","import {AsyncPipe, NgComponentOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n INJECTOR,\n Injector,\n type Type,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiAnimatedParent} from '@taiga-ui/cdk/directives/animated';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n// eslint-disable-next-line no-restricted-imports\nimport {POLYMORPHEUS_CONTEXT} from '@taiga-ui/polymorpheus';\nimport {identity} from 'rxjs';\n\nimport {TUI_ALERTS_GROUPED} from './alert.tokens';\n\n@Component({\n selector: 'tui-alerts',\n imports: [AsyncPipe, NgComponentOutlet, TuiAnimatedParent, TuiMapperPipe],\n templateUrl: './alerts.template.html',\n styleUrls: ['./alerts.style.less'],\n encapsulation: ViewEncapsulation.None,\n // So that we do not force OnPush on custom alerts\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class TuiAlerts {\n private readonly injector = inject(INJECTOR);\n\n protected readonly alerts$ = inject(TUI_ALERTS_GROUPED);\n protected readonly trackBy = identity;\n protected readonly mapper: TuiMapper<[Type<any>], Injector> = (useValue) =>\n Injector.create({\n providers: [\n {\n provide: POLYMORPHEUS_CONTEXT,\n useValue,\n },\n ],\n parent: this.injector,\n });\n}\n","@for (group of alerts$ | async; track trackBy(group)) {\n <div\n tuiAnimatedParent\n class=\"t-wrapper\"\n >\n @for (item of group; track item) {\n <ng-container\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAQa,MAAA,yBAAyB,GAAiD;AACnF,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,SAAS;;AAGN,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,OAAO;AACZ,QAAA,GAAG,yBAAyB;QAC5B,GAAG,MAAM,CAAC,wBAAwB,CAAC;KACtC,CAAC;AACL,CAAA;AAGQ,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,OAAO,MAAM,CAAC,aAAa,CAAC,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AACnF,CAAA;AAGQ,MAAA,UAAU,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,YAAY,GAAG,EAAE,EAAE;IACxE,OAAO,EAAE,MAAM,IAAI,eAAe,CAAsC,EAAE,CAAC;AAC9E,CAAA;AAED;;AAEG;AACU,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,MACL,aAAa,CAAC;AACV,QAAA,EAAE,CAAC,IAAI,GAAG,EAAkD,CAAC;QAC7D,MAAM,CAAC,UAAU,CAAC;AACrB,KAAA,CAAC,CAAC,IAAI,CACH,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE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B,EAAE,iBAAiB,EAAE,aAAa,CAAC,iBAG1D,iBAAiB,CAAC,IAAI,EAGpB,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,iYAAA,EAAA,MAAA,EAAA,CAAA,+QAAA,CAAA,EAAA;;;AE3BpD;;AAEG;;;;"}
@@ -1,195 +0,0 @@
1
- import { DOCUMENT, AsyncPipe } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, Injectable, computed, ChangeDetectionStrategy, Component, Directive, assertInInjectionContext, INJECTOR } from '@angular/core';
4
- import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
5
- import { TUI_TRUE_HANDLER } from '@taiga-ui/cdk/constants';
6
- import * as i1 from '@taiga-ui/cdk/directives/animated';
7
- import { TuiAnimated, TuiAnimatedParent } from '@taiga-ui/cdk/directives/animated';
8
- import { TuiAutoFocus } from '@taiga-ui/cdk/directives/auto-focus';
9
- import { TuiButton } from '@taiga-ui/core/components/button';
10
- import { TuiBreakpointService } from '@taiga-ui/core/services';
11
- import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
12
- import { injectContext, PolymorpheusOutlet, PolymorpheusComponent } from '@taiga-ui/polymorpheus';
13
- import { BehaviorSubject, EMPTY, Observable, merge, filter, switchMap, take, map, of, isObservable, Subject, exhaustMap } from 'rxjs';
14
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
15
- import { WA_WINDOW } from '@ng-web-apis/common';
16
- import { tuiCloseWatcher, tuiZonefull, tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
17
- import { tuiInjectElement, tuiGetActualTarget, tuiIsElement, tuiContainsOrAfter } from '@taiga-ui/cdk/utils/dom';
18
- import { tuiGetViewportWidth } from '@taiga-ui/core/utils';
19
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
20
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
21
- import { TuiFocusTrap } from '@taiga-ui/cdk/directives/focus-trap';
22
- import { TuiScrollControls, TuiScrollRef } from '@taiga-ui/core/components/scrollbar';
23
-
24
- const TUI_DIALOGS = new InjectionToken(ngDevMode ? 'TUI_DIALOGS' : '', {
25
- factory: () => new BehaviorSubject([]),
26
- });
27
- const TUI_DIALOG_DEFAULT_OPTIONS = {
28
- appearance: '',
29
- size: 'm',
30
- required: false,
31
- closeable: true,
32
- dismissible: true,
33
- label: '',
34
- header: '',
35
- data: undefined,
36
- };
37
- /**
38
- * A stream to close dialogs
39
- * TODO: use router.events in v5
40
- */
41
- const TUI_DIALOGS_CLOSE = new InjectionToken(ngDevMode ? 'TUI_DIALOGS_CLOSE' : '', {
42
- factory: () => EMPTY,
43
- });
44
- /**
45
- * Default parameters for dialog component
46
- */
47
- const TUI_DIALOG_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_DIALOG_OPTIONS' : '', {
48
- factory: () => TUI_DIALOG_DEFAULT_OPTIONS,
49
- });
50
- function tuiDialogOptionsProvider(options) {
51
- return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);
52
- }
53
-
54
- const SCROLLBAR_PLACEHOLDER = 17;
55
- class TuiDialogCloseService extends Observable {
56
- constructor() {
57
- super((subscriber) => merge(this.esc$, this.mousedown$, tuiCloseWatcher().pipe(tuiZonefull())).subscribe(subscriber));
58
- this.win = inject(WA_WINDOW);
59
- this.doc = inject(DOCUMENT);
60
- this.el = tuiInjectElement();
61
- this.esc$ = tuiTypedFromEvent(this.doc, 'keydown').pipe(filter((event) => {
62
- const target = tuiGetActualTarget(event);
63
- return (
64
- // @ts-ignore
65
- typeof CloseWatcher === 'undefined' &&
66
- event.key?.toLowerCase() === 'escape' &&
67
- !event.defaultPrevented &&
68
- (this.el.contains(target) || this.isOutside(target)));
69
- }));
70
- this.mousedown$ = tuiTypedFromEvent(this.doc, 'mousedown').pipe(filter((event) => tuiGetViewportWidth(this.win) - event.clientX > SCROLLBAR_PLACEHOLDER &&
71
- this.isOutside(tuiGetActualTarget(event))), switchMap(() => tuiTypedFromEvent(this.doc, 'mouseup').pipe(take(1), map(tuiGetActualTarget), filter((target) => this.isOutside(target)))));
72
- }
73
- isOutside(target) {
74
- return (tuiIsElement(target) &&
75
- (!tuiContainsOrAfter(this.el, target) ||
76
- // TODO: Drop 'new' attribute in v5
77
- (target === this.el && !this.el.hasAttribute('new'))));
78
- }
79
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogCloseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
80
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogCloseService }); }
81
- }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogCloseService, decorators: [{
83
- type: Injectable
84
- }], ctorParameters: () => [] });
85
-
86
- const REQUIRED_ERROR = new Error('Required dialog was dismissed');
87
- function toObservable(valueOrStream) {
88
- return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);
89
- }
90
- class TuiDialogComponent {
91
- constructor() {
92
- this.close$ = new Subject();
93
- this.context = injectContext();
94
- this.closeWord$ = inject(TUI_CLOSE_WORD);
95
- this.icons = inject(TUI_COMMON_ICONS);
96
- this.from = computed(() => this.size === 'fullscreen' || this.size === 'page' || this.isMobile()
97
- ? 'translateY(100vh)'
98
- : 'translateY(2.5rem)');
99
- this.isMobile = toSignal(inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')));
100
- merge(this.close$.pipe(switchMap(() => toObservable(this.context.closeable))), inject(TuiDialogCloseService).pipe(exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1)))), inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)))
101
- .pipe(filter(Boolean), takeUntilDestroyed())
102
- .subscribe(() => {
103
- this.close();
104
- });
105
- }
106
- get size() {
107
- return this.context.size;
108
- }
109
- get header() {
110
- return this.context.header;
111
- }
112
- close() {
113
- if (this.context.required) {
114
- this.context.$implicit.error(REQUIRED_ERROR);
115
- }
116
- else {
117
- this.context.$implicit.complete();
118
- }
119
- }
120
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
121
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiDialogComponent, isStandalone: true, selector: "tui-dialog", host: { properties: { "attr.data-appearance": "context.appearance", "attr.data-size": "size", "class._centered": "header", "style.--tui-from": "from()" } }, providers: [TuiDialogCloseService], hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "@if (header) {\n <header class=\"t-header\">\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n </header>\n}\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closeable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n @if (context.closeable || context.dismissible) {\n <div class=\"t-buttons\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n }\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closeable === Observable<false>` by design -->\n@if (context.closeable) {\n <button\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n >\n {{ closeWord$ | async }}\n </button>\n}\n", styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1.5rem;border:2.5rem solid transparent}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}:host[data-size=auto]{inline-size:auto}:host[data-size=s]{inline-size:30rem}:host[data-size=s] .t-content{padding:1.5rem}:host[data-size=s] .t-heading{font:var(--tui-font-heading-5)}:host[data-size=m]{inline-size:42.5rem}:host[data-size=l]{inline-size:55rem}:host[data-size=fullscreen],:host[data-size=page]{min-inline-size:100vw;min-block-size:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}:host[data-size=fullscreen] .t-content,:host[data-size=page] .t-content{padding:3rem calc(50vw - 22.5rem)}:host[data-size=fullscreen] .t-heading,:host[data-size=page] .t-heading{font:var(--tui-font-heading-3)}:host._centered{text-align:center}:host :host-context(tui-root._mobile)[data-size]{min-inline-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;border:none;margin:auto 0 0;background:var(--tui-background-elevation-1);padding-block-end:env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size] .t-content{padding:1rem}:host :host-context(tui-root._mobile)[data-size] .t-heading{font:var(--tui-font-heading-5)}:host :host-context(tui-root._mobile)[data-size=fullscreen],:host :host-context(tui-root._mobile)[data-size=page]{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size=fullscreen] .t-close,:host :host-context(tui-root._mobile)[data-size=page] .t-close{top:max(1rem,env(safe-area-inset-top))}:host[data-size=page] .t-content,:host-context(tui-root._mobile) :host[data-size=page] .t-content{padding:0}.t-heading{margin:0 0 .5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}.t-heading_closable{padding-inline-end:2rem}.t-heading:empty{display:none}.t-header{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}:host[data-size=fullscreen] :host-context(tui-root._mobile) .t-header{flex:1}.t-content{border-radius:inherit;padding:1.75rem;background:var(--tui-background-elevation-1)}.t-content:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-content>section{border-radius:inherit}.t-filler{flex-grow:1}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:1rem;right:1rem}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:1rem}}.t-buttons{margin-block-start:1.25rem;text-align:end}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiAutoFocus, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
122
- }
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogComponent, decorators: [{
124
- type: Component,
125
- args: [{ selector: 'tui-dialog', imports: [AsyncPipe, PolymorpheusOutlet, TuiAutoFocus, TuiButton], changeDetection: ChangeDetectionStrategy.Default, providers: [TuiDialogCloseService], hostDirectives: [TuiAnimated], host: {
126
- '[attr.data-appearance]': 'context.appearance',
127
- '[attr.data-size]': 'size',
128
- '[class._centered]': 'header',
129
- '[style.--tui-from]': 'from()',
130
- }, template: "@if (header) {\n <header class=\"t-header\">\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n </header>\n}\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closeable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n @if (context.closeable || context.dismissible) {\n <div class=\"t-buttons\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n }\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closeable === Observable<false>` by design -->\n@if (context.closeable) {\n <button\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n >\n {{ closeWord$ | async }}\n </button>\n}\n", styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1.5rem;border:2.5rem solid transparent}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;content:\"\";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-popup)}:host[data-size=auto]{inline-size:auto}:host[data-size=s]{inline-size:30rem}:host[data-size=s] .t-content{padding:1.5rem}:host[data-size=s] .t-heading{font:var(--tui-font-heading-5)}:host[data-size=m]{inline-size:42.5rem}:host[data-size=l]{inline-size:55rem}:host[data-size=fullscreen],:host[data-size=page]{min-inline-size:100vw;min-block-size:100%;border-radius:0;border:none;background:var(--tui-background-elevation-1);box-shadow:0 4rem var(--tui-background-elevation-1)}:host[data-size=fullscreen] .t-content,:host[data-size=page] .t-content{padding:3rem calc(50vw - 22.5rem)}:host[data-size=fullscreen] .t-heading,:host[data-size=page] .t-heading{font:var(--tui-font-heading-3)}:host._centered{text-align:center}:host :host-context(tui-root._mobile)[data-size]{min-inline-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0;border:none;margin:auto 0 0;background:var(--tui-background-elevation-1);padding-block-end:env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size] .t-content{padding:1rem}:host :host-context(tui-root._mobile)[data-size] .t-heading{font:var(--tui-font-heading-5)}:host :host-context(tui-root._mobile)[data-size=fullscreen],:host :host-context(tui-root._mobile)[data-size=page]{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}:host :host-context(tui-root._mobile)[data-size=fullscreen] .t-close,:host :host-context(tui-root._mobile)[data-size=page] .t-close{top:max(1rem,env(safe-area-inset-top))}:host[data-size=page] .t-content,:host-context(tui-root._mobile) :host[data-size=page] .t-content{padding:0}.t-heading{margin:0 0 .5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}.t-heading_closable{padding-inline-end:2rem}.t-heading:empty{display:none}.t-header{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}:host[data-size=fullscreen] :host-context(tui-root._mobile) .t-header{flex:1}.t-content{border-radius:inherit;padding:1.75rem;background:var(--tui-background-elevation-1)}.t-content:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-content>section{border-radius:inherit}.t-filler{flex-grow:1}.t-close{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:1rem;right:1rem}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:1rem}}.t-buttons{margin-block-start:1.25rem;text-align:end}\n"] }]
131
- }], ctorParameters: () => [] });
132
-
133
- class TuiDialogService extends TuiPopoverService {
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
135
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, providedIn: 'root', useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)) }); }
136
- }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogService, decorators: [{
138
- type: Injectable,
139
- args: [{
140
- providedIn: 'root',
141
- useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),
142
- }]
143
- }] });
144
-
145
- class TuiDialog extends TuiPopoverDirective {
146
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialog, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
147
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDialog, isStandalone: true, selector: "ng-template[tuiDialog]", inputs: { options: ["tuiDialogOptions", "options"], open: ["tuiDialog", "open"] }, outputs: { openChange: "tuiDialogChange" }, providers: [tuiAsPopover(TuiDialogService)], usesInheritance: true, ngImport: i0 }); }
148
- }
149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialog, decorators: [{
150
- type: Directive,
151
- args: [{
152
- standalone: true,
153
- selector: 'ng-template[tuiDialog]',
154
- inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],
155
- outputs: ['openChange: tuiDialogChange'],
156
- providers: [tuiAsPopover(TuiDialogService)],
157
- }]
158
- }] });
159
-
160
- function tuiDialog(component, { injector, ...options } = {}) {
161
- if (!injector) {
162
- assertInInjectionContext(tuiDialog);
163
- injector = inject(INJECTOR);
164
- }
165
- const dialogService = injector.get(TuiDialogService);
166
- return (data) => dialogService.open(new PolymorpheusComponent(component, injector), {
167
- ...options,
168
- data,
169
- });
170
- }
171
-
172
- class TuiDialogs {
173
- constructor() {
174
- this.dialogs = toSignal(inject(TUI_DIALOGS), { initialValue: [] });
175
- }
176
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
177
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiDialogs, isStandalone: true, selector: "tui-dialogs", ngImport: i0, template: "<div\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs().length\"\n></div>\n<!--TODO: Rename to <article> in v5-->\n@for (item of dialogs(); track item) {\n <section\n aria-modal=\"true\"\n role=\"dialog\"\n tuiAnimatedParent\n tuiFocusTrap\n tuiScrollRef\n class=\"t-dialog\"\n [attr.aria-labelledby]=\"item.id\"\n >\n <ng-container *polymorpheusOutlet=\"item.component; context: item\" />\n <tui-scroll-controls class=\"t-scrollbars\" />\n </section>\n}\n", styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:hidden;overscroll-behavior:none;overflow-wrap:break-word;margin-block-start:var(--t-root-top)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host:has(section){pointer-events:auto;overflow:auto}:host:has(section:only-of-type ::ng-deep tui-dialog[new][data-appearance~=fullscreen])>.t-overlay,:host:has(section:only-of-type ::ng-deep tui-notification-middle)>.t-overlay{opacity:0}:host:before{content:\"\";display:block;block-size:200%}.t-overlay,.t-dialog{transition-property:filter;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;block-size:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay::-webkit-scrollbar,.t-dialog::-webkit-scrollbar,.t-overlay::-webkit-scrollbar-thumb,.t-dialog::-webkit-scrollbar-thumb{display:none}.t-dialog{position:sticky;overscroll-behavior:none;filter:brightness(.25)}.t-dialog:has(tui-dialog[new]){display:grid;place-items:center}.t-dialog ::ng-deep>.tui-enter+.t-scrollbars .t-bar_vertical,.t-dialog ::ng-deep>.tui-leave+.t-scrollbars .t-bar_vertical{display:none}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none);opacity:0;transition-timing-function:ease-in}.t-overlay_visible{opacity:1;transition-timing-function:ease-out}.t-dialog:last-child{pointer-events:auto;filter:none}:host-context(tui-root:has(tui-dropdown-mobile._sheet)) .t-dialog:last-child{filter:brightness(.5)}.t-scrollbars{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}.t-scrollbars ::ng-deep .t-bar_horizontal,.t-scrollbars ::ng-deep .t-bar_vertical .t-thumb[style*=\"height: 100%\"]{display:none}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiAnimatedParent, selector: "[tuiAnimatedParent]" }, { kind: "directive", type: TuiFocusTrap, selector: "[tuiFocusTrap]" }, { kind: "component", type: TuiScrollControls, selector: "tui-scroll-controls" }, { kind: "directive", type: TuiScrollRef, selector: "[tuiScrollRef]" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
178
- }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialogs, decorators: [{
180
- type: Component,
181
- args: [{ selector: 'tui-dialogs', imports: [
182
- PolymorpheusOutlet,
183
- TuiAnimatedParent,
184
- TuiFocusTrap,
185
- TuiScrollControls,
186
- TuiScrollRef,
187
- ], changeDetection: ChangeDetectionStrategy.Default, template: "<div\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs().length\"\n></div>\n<!--TODO: Rename to <article> in v5-->\n@for (item of dialogs(); track item) {\n <section\n aria-modal=\"true\"\n role=\"dialog\"\n tuiAnimatedParent\n tuiFocusTrap\n tuiScrollRef\n class=\"t-dialog\"\n [attr.aria-labelledby]=\"item.id\"\n >\n <ng-container *polymorpheusOutlet=\"item.component; context: item\" />\n <tui-scroll-controls class=\"t-scrollbars\" />\n </section>\n}\n", styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;scrollbar-width:none;-ms-overflow-style:none;pointer-events:none;overflow:hidden;overscroll-behavior:none;overflow-wrap:break-word;margin-block-start:var(--t-root-top)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host:has(section){pointer-events:auto;overflow:auto}:host:has(section:only-of-type ::ng-deep tui-dialog[new][data-appearance~=fullscreen])>.t-overlay,:host:has(section:only-of-type ::ng-deep tui-notification-middle)>.t-overlay{opacity:0}:host:before{content:\"\";display:block;block-size:200%}.t-overlay,.t-dialog{transition-property:filter;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;scrollbar-width:none;-ms-overflow-style:none;position:fixed;top:0;left:0;bottom:0;right:0;display:flex;block-size:100%;align-items:flex-start;outline:none;overflow:auto}.t-overlay::-webkit-scrollbar,.t-dialog::-webkit-scrollbar,.t-overlay::-webkit-scrollbar-thumb,.t-dialog::-webkit-scrollbar-thumb{display:none}.t-dialog{position:sticky;overscroll-behavior:none;filter:brightness(.25)}.t-dialog:has(tui-dialog[new]){display:grid;place-items:center}.t-dialog ::ng-deep>.tui-enter+.t-scrollbars .t-bar_vertical,.t-dialog ::ng-deep>.tui-leave+.t-scrollbars .t-bar_vertical{display:none}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-service-backdrop);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none);opacity:0;transition-timing-function:ease-in}.t-overlay_visible{opacity:1;transition-timing-function:ease-out}.t-dialog:last-child{pointer-events:auto;filter:none}:host-context(tui-root:has(tui-dropdown-mobile._sheet)) .t-dialog:last-child{filter:brightness(.5)}.t-scrollbars{position:fixed;top:0;left:0;bottom:0;right:0;margin:0;color:#747474}.t-scrollbars ::ng-deep .t-bar_horizontal,.t-scrollbars ::ng-deep .t-bar_vertical .t-thumb[style*=\"height: 100%\"]{display:none}\n"] }]
188
- }] });
189
-
190
- /**
191
- * Generated bundle index. Do not edit.
192
- */
193
-
194
- export { TUI_DIALOGS, TUI_DIALOGS_CLOSE, TUI_DIALOG_DEFAULT_OPTIONS, TUI_DIALOG_OPTIONS, TuiDialog, TuiDialogCloseService, TuiDialogComponent, TuiDialogService, TuiDialogs, tuiDialog, tuiDialogOptionsProvider };
195
- //# sourceMappingURL=taiga-ui-core-components-dialog.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-components-dialog.mjs","sources":["../../../projects/core/components/dialog/dialog.tokens.ts","../../../projects/core/components/dialog/dialog-close.service.ts","../../../projects/core/components/dialog/dialog.component.ts","../../../projects/core/components/dialog/dialog.template.html","../../../projects/core/components/dialog/dialog.service.ts","../../../projects/core/components/dialog/dialog.directive.ts","../../../projects/core/components/dialog/dialog.factory.ts","../../../projects/core/components/dialog/dialogs.component.ts","../../../projects/core/components/dialog/dialogs.template.html","../../../projects/core/components/dialog/taiga-ui-core-components-dialog.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {BehaviorSubject, EMPTY, type Observable} from 'rxjs';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\n\nexport const TUI_DIALOGS = new InjectionToken(ngDevMode ? 'TUI_DIALOGS' : '', {\n factory: () => new BehaviorSubject<ReadonlyArray<TuiPopover<any, any>>>([]),\n});\n\nexport const TUI_DIALOG_DEFAULT_OPTIONS: TuiDialogOptions<void> = {\n appearance: '',\n size: 'm',\n required: false,\n closeable: true,\n dismissible: true,\n label: '',\n header: '',\n data: undefined,\n};\n\n/**\n * A stream to close dialogs\n * TODO: use router.events in v5\n */\nexport const TUI_DIALOGS_CLOSE = new InjectionToken<Observable<unknown>>(\n ngDevMode ? 'TUI_DIALOGS_CLOSE' : '',\n {\n factory: () => EMPTY,\n },\n);\n\n/**\n * Default parameters for dialog component\n */\nexport const TUI_DIALOG_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_DIALOG_OPTIONS' : '',\n {\n factory: () => TUI_DIALOG_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiDialogOptionsProvider(\n options: Partial<TuiDialogOptions<unknown>>,\n): Provider {\n return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {tuiCloseWatcher, tuiTypedFromEvent, tuiZonefull} from '@taiga-ui/cdk/observables';\nimport {\n tuiContainsOrAfter,\n tuiGetActualTarget,\n tuiInjectElement,\n tuiIsElement,\n} from '@taiga-ui/cdk/utils/dom';\nimport {tuiGetViewportWidth} from '@taiga-ui/core/utils';\nimport {filter, map, merge, Observable, switchMap, take} from 'rxjs';\n\nconst SCROLLBAR_PLACEHOLDER = 17;\n\n@Injectable()\nexport class TuiDialogCloseService extends Observable<unknown> {\n private readonly win = inject(WA_WINDOW);\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n\n private readonly esc$ = tuiTypedFromEvent(this.doc, 'keydown').pipe(\n filter((event) => {\n const target = tuiGetActualTarget(event);\n\n return (\n // @ts-ignore\n typeof CloseWatcher === 'undefined' &&\n event.key?.toLowerCase() === 'escape' &&\n !event.defaultPrevented &&\n (this.el.contains(target) || this.isOutside(target))\n );\n }),\n );\n\n private readonly mousedown$ = tuiTypedFromEvent(this.doc, 'mousedown').pipe(\n filter(\n (event) =>\n tuiGetViewportWidth(this.win) - event.clientX > SCROLLBAR_PLACEHOLDER &&\n this.isOutside(tuiGetActualTarget(event)),\n ),\n switchMap(() =>\n tuiTypedFromEvent(this.doc, 'mouseup').pipe(\n take(1),\n map(tuiGetActualTarget),\n filter((target) => this.isOutside(target)),\n ),\n ),\n );\n\n constructor() {\n super((subscriber) =>\n merge(\n this.esc$,\n this.mousedown$,\n tuiCloseWatcher().pipe(tuiZonefull()),\n ).subscribe(subscriber),\n );\n }\n\n private isOutside(target: EventTarget): boolean {\n return (\n tuiIsElement(target) &&\n (!tuiContainsOrAfter(this.el, target) ||\n // TODO: Drop 'new' attribute in v5\n (target === this.el && !this.el.hasAttribute('new')))\n );\n }\n}\n","import {AsyncPipe} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiAutoFocus} from '@taiga-ui/cdk/directives/auto-focus';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiBreakpointService} from '@taiga-ui/core/services';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {\n injectContext,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\nimport {\n exhaustMap,\n filter,\n isObservable,\n map,\n merge,\n type Observable,\n of,\n Subject,\n switchMap,\n take,\n} from 'rxjs';\n\nimport {type TuiDialogOptions, type TuiDialogSize} from './dialog.interfaces';\nimport {TUI_DIALOGS_CLOSE} from './dialog.tokens';\nimport {TuiDialogCloseService} from './dialog-close.service';\n\nconst REQUIRED_ERROR = new Error('Required dialog was dismissed');\n\nfunction toObservable<T>(valueOrStream: Observable<T> | T): Observable<T> {\n return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);\n}\n\n@Component({\n selector: 'tui-dialog',\n imports: [AsyncPipe, PolymorpheusOutlet, TuiAutoFocus, TuiButton],\n templateUrl: './dialog.template.html',\n styleUrls: ['./dialog.style.less'],\n // So we don't force OnPush on dialog content\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [TuiDialogCloseService],\n hostDirectives: [TuiAnimated],\n host: {\n '[attr.data-appearance]': 'context.appearance',\n '[attr.data-size]': 'size',\n '[class._centered]': 'header',\n '[style.--tui-from]': 'from()',\n },\n})\nexport class TuiDialogComponent<O, I> {\n protected readonly close$ = new Subject<void>();\n protected readonly context = injectContext<TuiPopover<TuiDialogOptions<I>, O>>();\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly from = computed(() =>\n this.size === 'fullscreen' || this.size === 'page' || this.isMobile()\n ? 'translateY(100vh)'\n : 'translateY(2.5rem)',\n );\n\n protected readonly isMobile = toSignal(\n inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')),\n );\n\n constructor() {\n merge(\n this.close$.pipe(switchMap(() => toObservable(this.context.closeable))),\n inject(TuiDialogCloseService).pipe(\n exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1))),\n ),\n inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)),\n )\n .pipe(filter(Boolean), takeUntilDestroyed())\n .subscribe(() => {\n this.close();\n });\n }\n\n protected get size(): TuiDialogSize {\n return this.context.size;\n }\n\n protected get header(): PolymorpheusContent<TuiPopover<TuiDialogOptions<I>, O>> {\n return this.context.header;\n }\n\n private close(): void {\n if (this.context.required) {\n this.context.$implicit.error(REQUIRED_ERROR);\n } else {\n this.context.$implicit.complete();\n }\n }\n}\n","@if (header) {\n <header class=\"t-header\">\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n </header>\n}\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closeable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n @if (context.closeable || context.dismissible) {\n <div class=\"t-buttons\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n }\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closeable === Observable<false>` by design -->\n@if (context.closeable) {\n <button\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n >\n {{ closeWord$ | async }}\n </button>\n}\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\n\nimport {TuiDialogComponent} from './dialog.component';\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TUI_DIALOG_OPTIONS, TUI_DIALOGS} from './dialog.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),\n})\nexport class TuiDialogService extends TuiPopoverService<TuiDialogOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiDialog]',\n inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],\n outputs: ['openChange: tuiDialogChange'],\n providers: [tuiAsPopover(TuiDialogService)],\n})\nexport class TuiDialog<T> extends TuiPopoverDirective<TuiDialogOptions<T>> {}\n","import {assertInInjectionContext, inject, INJECTOR, type Injector} from '@angular/core';\nimport {PolymorpheusComponent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {type TuiDialogContext, type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\ntype SingleUnionOrNever<T, U = T> = [T] extends [never]\n ? never\n : T extends U\n ? [U] extends [T]\n ? T\n : never\n : never;\n\ntype ReplaceAny<T> = 0 extends T & 1 ? void : T;\n\ntype ContextKeys<T> = {\n [K in keyof T]: ReplaceAny<T[K]> extends TuiDialogContext<any, any> | null\n ? K\n : never;\n}[keyof T];\n\ntype AssertNotMultipleContexts<T, K extends keyof T> = [K] extends [never]\n ? new (...args: any[]) => T\n : [SingleUnionOrNever<K>] extends [never]\n ? 'Component has multiple context. Cannot determine the type...'\n : new (...args: any[]) => T;\n\ntype ExtractDialogData<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<any, infer D> | null\n ? D\n : void;\n\ntype ExtractDialogResult<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<infer R, any> | null\n ? R\n : void;\n\ntype Options<T> = Omit<TuiDialogOptions<T>, 'data'> & {injector: Injector};\n\nexport function tuiDialog<\n T,\n K extends ContextKeys<T>,\n D extends ExtractDialogData<T, K>,\n R extends ExtractDialogResult<T, K>,\n>(\n component: AssertNotMultipleContexts<T, K>,\n {injector, ...options}: Partial<Options<D>> = {},\n): (data: D) => Observable<R> {\n if (!injector) {\n assertInInjectionContext(tuiDialog);\n injector = inject(INJECTOR);\n }\n\n const dialogService = injector.get(TuiDialogService);\n\n return (data) =>\n dialogService.open(\n new PolymorpheusComponent(component as new () => T, injector),\n {\n ...options,\n data,\n },\n );\n}\n","import {ChangeDetectionStrategy, Component, inject, type Signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TuiAnimatedParent} from '@taiga-ui/cdk/directives/animated';\nimport {TuiFocusTrap} from '@taiga-ui/cdk/directives/focus-trap';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiScrollControls, TuiScrollRef} from '@taiga-ui/core/components/scrollbar';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TUI_DIALOGS} from './dialog.tokens';\n\n@Component({\n selector: 'tui-dialogs',\n imports: [\n PolymorpheusOutlet,\n TuiAnimatedParent,\n TuiFocusTrap,\n TuiScrollControls,\n TuiScrollRef,\n ],\n templateUrl: './dialogs.template.html',\n styleUrls: ['./dialogs.style.less'],\n // So that we do not force OnPush on custom dialogs\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class TuiDialogs {\n protected readonly dialogs: Signal<ReadonlyArray<TuiPopover<any, any>>> = toSignal(\n inject(TUI_DIALOGS),\n {initialValue: []},\n );\n}\n","<div\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs().length\"\n></div>\n<!--TODO: Rename to <article> in v5-->\n@for (item of dialogs(); track item) {\n <section\n aria-modal=\"true\"\n role=\"dialog\"\n tuiAnimatedParent\n tuiFocusTrap\n tuiScrollRef\n class=\"t-dialog\"\n [attr.aria-labelledby]=\"item.id\"\n >\n <ng-container *polymorpheusOutlet=\"item.component; context: item\" />\n <tui-scroll-controls class=\"t-scrollbars\" />\n </section>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAOa,MAAA,WAAW,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,aAAa,GAAG,EAAE,EAAE;IAC1E,OAAO,EAAE,MAAM,IAAI,eAAe,CAAsC,EA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AAY,EAAA,QAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,OAAA,EAAA,CAAA,CAAA;;4FAQP,UAAU,EAAA,UAAA,EAAA,CAAA;kBAftB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EACd,OAAA,EAAA;wBACL,kBAAkB;wBAClB,iBAAiB;wBACjB,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;qBACf,EAKgB,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,miBAAA,EAAA,MAAA,EAAA,CAAA,6/DAAA,CAAA,EAAA;;;AEvBpD;;AAEG;;;;"}
@@ -1,66 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, signal, EventEmitter, ElementRef, Input, Output, ViewChild, ChangeDetectionStrategy, Component } from '@angular/core';
4
- import { TuiRoot } from '@taiga-ui/core/components/root';
5
-
6
- class TuiFullscreen {
7
- constructor() {
8
- this.doc = inject(DOCUMENT);
9
- this.open = signal(false);
10
- this.opened = new EventEmitter();
11
- this.options = { navigationUI: 'auto' };
12
- }
13
- set fullscreen(open) {
14
- if (this.open() === open) {
15
- return;
16
- }
17
- if (open) {
18
- this.root?.nativeElement
19
- .requestFullscreen(this.options)
20
- .then(() => this.fullscreenState(open));
21
- }
22
- else {
23
- this.doc
24
- .exitFullscreen()
25
- .then(() => this.fullscreenState(open))
26
- .catch((error) => console.error('Failed to exit fullscreen:', error));
27
- }
28
- }
29
- closedByEscape(event) {
30
- const escaped = !this.doc.fullscreenElement && event.target === this.root?.nativeElement;
31
- if (escaped) {
32
- this.fullscreenState(false);
33
- }
34
- }
35
- fullscreenState(open) {
36
- this.open.set(open);
37
- this.opened.emit(open);
38
- }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFullscreen, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
40
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiFullscreen, isStandalone: true, selector: "[tuiFullscreen]", inputs: { options: ["tuiFullscreenOptions", "options"], fullscreen: ["tuiFullscreen", "fullscreen"] }, outputs: { opened: "tuiFullscreenChange" }, host: { listeners: { "document:fullscreenchange": "closedByEscape($event)" } }, viewQueries: [{ propertyName: "root", first: true, predicate: TuiRoot, descendants: true, read: ElementRef }], ngImport: i0, template: '<tui-root><ng-content /></tui-root>', isInline: true, styles: ["tui-root{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}tui-root::-webkit-scrollbar,tui-root::-webkit-scrollbar-thumb{display:none}\n"], dependencies: [{ kind: "component", type: TuiRoot, selector: "tui-root" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
41
- }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFullscreen, decorators: [{
43
- type: Component,
44
- args: [{ selector: '[tuiFullscreen]', imports: [TuiRoot], template: '<tui-root><ng-content /></tui-root>', changeDetection: ChangeDetectionStrategy.OnPush, host: {
45
- '(document:fullscreenchange)': 'closedByEscape($event)',
46
- }, styles: ["tui-root{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}tui-root::-webkit-scrollbar,tui-root::-webkit-scrollbar-thumb{display:none}\n"] }]
47
- }], propDecorators: { root: [{
48
- type: ViewChild,
49
- args: [TuiRoot, { read: ElementRef }]
50
- }], opened: [{
51
- type: Output,
52
- args: ['tuiFullscreenChange']
53
- }], options: [{
54
- type: Input,
55
- args: ['tuiFullscreenOptions']
56
- }], fullscreen: [{
57
- type: Input,
58
- args: ['tuiFullscreen']
59
- }] } });
60
-
61
- /**
62
- * Generated bundle index. Do not edit.
63
- */
64
-
65
- export { TuiFullscreen };
66
- //# sourceMappingURL=taiga-ui-core-components-fullscreen.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-components-fullscreen.mjs","sources":["../../../projects/core/components/fullscreen/fullscreen.component.ts","../../../projects/core/components/fullscreen/taiga-ui-core-components-fullscreen.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {TuiRoot} from '@taiga-ui/core/components/root';\n\n@Component({\n selector: '[tuiFullscreen]',\n imports: [TuiRoot],\n template: '<tui-root><ng-content /></tui-root>',\n styleUrls: ['./fullscreen.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:fullscreenchange)': 'closedByEscape($event)',\n },\n})\nexport class TuiFullscreen {\n @ViewChild(TuiRoot, {read: ElementRef})\n private readonly root?: ElementRef<HTMLElement>;\n\n private readonly doc = inject(DOCUMENT);\n protected readonly open = signal(false);\n\n @Output('tuiFullscreenChange')\n public readonly opened = new EventEmitter<boolean>();\n\n @Input('tuiFullscreenOptions')\n public options?: FullscreenOptions = {navigationUI: 'auto'};\n\n @Input('tuiFullscreen')\n public set fullscreen(open: boolean) {\n if (this.open() === open) {\n return;\n }\n\n if (open) {\n this.root?.nativeElement\n .requestFullscreen(this.options)\n .then(() => this.fullscreenState(open));\n } else {\n this.doc\n .exitFullscreen()\n .then(() => this.fullscreenState(open))\n .catch((error: unknown) =>\n console.error('Failed to exit fullscreen:', error),\n );\n }\n }\n\n protected closedByEscape(event: Event): void {\n const escaped =\n !this.doc.fullscreenElement && event.target === this.root?.nativeElement;\n\n if (escaped) {\n this.fullscreenState(false);\n }\n }\n\n private fullscreenState(open: boolean): void {\n this.open.set(open);\n this.opened.emit(open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAwBa,aAAa,CAAA;AAV1B,IAAA,WAAA,GAAA;AAcqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ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