@taiga-ui/core 4.52.0-canary.d626d20 → 4.52.0-canary.e07790b

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 (637) hide show
  1. package/README.md +1 -1
  2. package/classes/accessors.d.ts +2 -2
  3. package/classes/driver.d.ts +1 -1
  4. package/components/button/button.directive.d.ts +2 -3
  5. package/components/button/button.options.d.ts +1 -1
  6. package/components/calendar/calendar-sheet.component.d.ts +2 -7
  7. package/components/calendar/calendar-sheet.options.d.ts +1 -3
  8. package/{pipes/calendar-sheet → components/calendar}/calendar-sheet.pipe.d.ts +2 -2
  9. package/components/calendar/calendar-spin.component.d.ts +1 -0
  10. package/components/calendar/calendar-year.component.d.ts +1 -1
  11. package/components/calendar/calendar.options.d.ts +9 -0
  12. package/components/calendar/index.d.ts +3 -0
  13. package/{pipes/order-week-days → components/calendar}/order-week-days.pipe.d.ts +1 -1
  14. package/components/cell/cell.directive.d.ts +9 -0
  15. package/components/cell/cell.options.d.ts +6 -0
  16. package/components/cell/index.d.ts +2 -0
  17. package/components/data-list/data-list.component.d.ts +8 -12
  18. package/components/data-list/data-list.d.ts +3 -4
  19. package/components/data-list/data-list.tokens.d.ts +1 -23
  20. package/components/data-list/index.d.ts +3 -4
  21. package/components/data-list/opt-group.directive.d.ts +2 -2
  22. package/components/data-list/option-content.directive.d.ts +14 -0
  23. package/components/data-list/option-with-value.directive.d.ts +9 -0
  24. package/components/data-list/option.directive.d.ts +19 -0
  25. package/components/error/error.component.d.ts +6 -8
  26. package/components/error/error.d.ts +4 -0
  27. package/components/error/error.directive.d.ts +19 -0
  28. package/components/error/error.pipe.d.ts +10 -0
  29. package/components/error/index.d.ts +3 -0
  30. package/components/expand/expand.component.d.ts +9 -28
  31. package/components/expand/index.d.ts +0 -2
  32. package/components/icon/icon.component.d.ts +6 -11
  33. package/components/index.d.ts +3 -3
  34. package/components/input/index.d.ts +2 -0
  35. package/components/input/input.d.ts +5 -0
  36. package/components/input/input.directive.d.ts +30 -0
  37. package/components/label/label.directive.d.ts +1 -1
  38. package/components/link/index.d.ts +0 -1
  39. package/components/link/link.directive.d.ts +8 -6
  40. package/components/loader/loader.component.d.ts +7 -7
  41. package/components/loader/loader.options.d.ts +1 -3
  42. package/components/notification/index.d.ts +3 -0
  43. package/components/notification/notification.component.d.ts +14 -0
  44. package/components/notification/notification.d.ts +3 -0
  45. package/components/notification/notification.directive.d.ts +7 -12
  46. package/components/notification/notification.options.d.ts +10 -7
  47. package/components/notification/notification.service.d.ts +17 -0
  48. package/components/root/root.component.d.ts +4 -6
  49. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  50. package/components/scrollbar/scroll-ref.directive.d.ts +2 -0
  51. package/components/scrollbar/scrollbar.component.d.ts +1 -5
  52. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  53. package/components/scrollbar/scrollbar.options.d.ts +1 -1
  54. package/components/spin-button/spin-button.component.d.ts +9 -10
  55. package/components/textfield/index.d.ts +1 -4
  56. package/components/textfield/textfield-content.directive.d.ts +3 -2
  57. package/components/textfield/textfield-icon.d.ts +3 -3
  58. package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
  59. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +10 -15
  60. package/components/textfield/textfield.component.d.ts +20 -33
  61. package/components/textfield/textfield.d.ts +2 -4
  62. package/components/textfield/textfield.options.d.ts +8 -11
  63. package/{directives → components}/title/title.directive.d.ts +2 -3
  64. package/directives/appearance/appearance.directive.d.ts +5 -13
  65. package/directives/appearance/appearance.options.d.ts +1 -1
  66. package/directives/date-format/date-format.directive.d.ts +3 -7
  67. package/directives/group/group.directive.d.ts +7 -7
  68. package/directives/group/group.options.d.ts +1 -3
  69. package/directives/icons/icons.bindings.d.ts +5 -0
  70. package/directives/icons/icons.directive.d.ts +8 -16
  71. package/directives/icons/index.d.ts +1 -0
  72. package/directives/index.d.ts +0 -5
  73. package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
  74. package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
  75. package/directives/number-format/number-format.directive.d.ts +3 -7
  76. package/fesm2022/taiga-ui-core-classes.mjs +9 -11
  77. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-core-components-button.mjs +13 -21
  79. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-core-components-calendar.mjs +143 -42
  81. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  83. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  84. package/fesm2022/taiga-ui-core-components-data-list.mjs +112 -283
  85. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-core-components-error.mjs +110 -26
  87. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-expand.mjs +34 -132
  89. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-icon.mjs +22 -40
  91. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-components-input.mjs +104 -0
  93. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -0
  94. package/fesm2022/taiga-ui-core-components-label.mjs +13 -18
  95. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-core-components-link.mjs +16 -36
  97. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-components-loader.mjs +17 -36
  99. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-components-notification.mjs +107 -66
  101. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-core-components-root.mjs +22 -55
  103. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +71 -85
  105. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-components-spin-button.mjs +18 -31
  107. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-components-textfield.mjs +136 -430
  109. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-components-title.mjs +37 -0
  111. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -0
  112. package/fesm2022/taiga-ui-core-components.mjs +3 -3
  113. package/fesm2022/taiga-ui-core-directives-appearance.mjs +32 -69
  114. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-core-directives-date-format.mjs +26 -20
  116. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-core-directives-group.mjs +25 -40
  118. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-core-directives-icons.mjs +35 -45
  120. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +18 -42
  122. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-core-directives-number-format.mjs +32 -20
  124. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-core-directives.mjs +0 -5
  126. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +21 -15
  128. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-core-pipes.mjs +0 -8
  130. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-core-portals-alert.mjs +73 -0
  132. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -0
  133. package/fesm2022/taiga-ui-core-portals-dialog.mjs +158 -0
  134. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -0
  135. package/fesm2022/{taiga-ui-core-directives-dropdown.mjs → taiga-ui-core-portals-dropdown.mjs} +184 -336
  136. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -0
  137. package/fesm2022/taiga-ui-core-portals-hint.mjs +609 -0
  138. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -0
  139. package/fesm2022/taiga-ui-core-portals-modal.mjs +89 -0
  140. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -0
  141. package/fesm2022/taiga-ui-core-portals-popup.mjs +56 -0
  142. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -0
  143. package/fesm2022/taiga-ui-core-portals.mjs +11 -0
  144. package/fesm2022/taiga-ui-core-portals.mjs.map +1 -0
  145. package/fesm2022/taiga-ui-core-services.mjs +18 -57
  146. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-core-tokens.mjs +45 -76
  148. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
  151. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +65 -19
  153. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-core.mjs +1 -1
  155. package/index.d.ts +1 -1
  156. package/package.json +82 -208
  157. package/pipes/format-number/format-number.pipe.d.ts +6 -4
  158. package/pipes/index.d.ts +0 -8
  159. package/portals/alert/alert.directive.d.ts +11 -0
  160. package/portals/alert/alert.service.d.ts +12 -0
  161. package/portals/alert/index.d.ts +2 -0
  162. package/portals/dialog/dialog.component.d.ts +14 -0
  163. package/portals/dialog/dialog.directive.d.ts +8 -0
  164. package/{components → portals}/dialog/dialog.factory.d.ts +1 -1
  165. package/portals/dialog/dialog.options.d.ts +25 -0
  166. package/{components/dialog/dialog-close.service.d.ts → portals/dialog/dialog.providers.d.ts} +2 -0
  167. package/portals/dialog/dialog.service.d.ts +10 -0
  168. package/portals/dialog/index.d.ts +6 -0
  169. package/portals/dropdown/dropdown-content.directive.d.ts +9 -0
  170. package/{directives → portals}/dropdown/dropdown-hover.directive.d.ts +5 -10
  171. package/{directives → portals}/dropdown/dropdown-hover.options.d.ts +1 -3
  172. package/{directives → portals}/dropdown/dropdown-manual.directive.d.ts +2 -2
  173. package/portals/dropdown/dropdown-open.directive.d.ts +30 -0
  174. package/{directives → portals}/dropdown/dropdown-position-sided.directive.d.ts +3 -3
  175. package/{directives → portals}/dropdown/dropdown-position.directive.d.ts +5 -5
  176. package/{directives → portals}/dropdown/dropdown-selection.directive.d.ts +4 -5
  177. package/{directives → portals}/dropdown/dropdown.bindings.d.ts +0 -1
  178. package/{directives → portals}/dropdown/dropdown.d.ts +2 -3
  179. package/{directives → portals}/dropdown/dropdown.directive.d.ts +6 -8
  180. package/{directives → portals}/dropdown/index.d.ts +1 -4
  181. package/{directives → portals}/hint/hint-describe.directive.d.ts +4 -6
  182. package/{directives → portals}/hint/hint-host.directive.d.ts +2 -2
  183. package/{directives → portals}/hint/hint-hover.directive.d.ts +3 -4
  184. package/{directives → portals}/hint/hint-manual.directive.d.ts +2 -2
  185. package/{directives → portals}/hint/hint-options.directive.d.ts +3 -3
  186. package/{directives → portals}/hint/hint-overflow.directive.d.ts +2 -2
  187. package/{directives → portals}/hint/hint-position.directive.d.ts +6 -7
  188. package/{directives → portals}/hint/hint-unstyled.component.d.ts +2 -7
  189. package/portals/hint/hint.component.d.ts +29 -0
  190. package/portals/hint/hint.directive.d.ts +24 -0
  191. package/{directives → portals}/hint/index.d.ts +0 -2
  192. package/portals/index.d.ts +6 -0
  193. package/portals/modal/index.d.ts +2 -0
  194. package/portals/modal/modal.component.d.ts +17 -0
  195. package/portals/modal/modal.service.d.ts +13 -0
  196. package/portals/popup/popup.directive.d.ts +12 -0
  197. package/{directives → portals}/popup/popup.service.d.ts +1 -1
  198. package/{directives → portals}/popup/popups.component.d.ts +2 -2
  199. package/services/index.d.ts +0 -2
  200. package/styles/components/appearance.less +11 -0
  201. package/styles/components/button.less +1 -3
  202. package/styles/components/icon.less +32 -22
  203. package/styles/components/icons.less +16 -12
  204. package/styles/components/link.less +10 -26
  205. package/styles/components/notification.less +4 -4
  206. package/styles/components/textfield.less +32 -65
  207. package/styles/mixins/appearance.less +10 -26
  208. package/styles/mixins/appearance.scss +8 -24
  209. package/styles/mixins/mixins.less +1 -7
  210. package/styles/mixins/mixins.scss +1 -7
  211. package/styles/mixins/slider.less +21 -16
  212. package/styles/mixins/slider.scss +1 -2
  213. package/styles/taiga-ui-local.less +0 -1
  214. package/styles/taiga-ui-local.scss +0 -1
  215. package/styles/taiga-ui-theme.less +0 -1
  216. package/styles/theme/appearance/outline.less +10 -20
  217. package/styles/theme/appearance/primary.less +2 -4
  218. package/styles/theme/appearance/secondary.less +6 -14
  219. package/styles/theme/appearance/status.less +0 -4
  220. package/styles/theme/appearance/table.less +38 -31
  221. package/styles/theme/appearance/textfield.less +1 -2
  222. package/styles/theme/appearance.less +0 -1
  223. package/styles/theme/variables.less +2 -4
  224. package/tokens/common-icons.d.ts +3 -3
  225. package/tokens/date-format.d.ts +2 -3
  226. package/tokens/i18n.d.ts +7 -7
  227. package/tokens/icon-resolver.d.ts +1 -5
  228. package/tokens/icons.d.ts +0 -4
  229. package/tokens/index.d.ts +1 -4
  230. package/tokens/number-format.d.ts +2 -3
  231. package/tokens/validation-errors.d.ts +4 -0
  232. package/types/index.d.ts +0 -3
  233. package/types/point.d.ts +1 -1
  234. package/types/size.d.ts +0 -11
  235. package/utils/format/index.d.ts +0 -1
  236. package/utils/miscellaneous/font-scaling.d.ts +2 -1
  237. package/utils/miscellaneous/get-duration.d.ts +2 -0
  238. package/utils/miscellaneous/index.d.ts +2 -1
  239. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  240. package/animations/animations.d.ts +0 -109
  241. package/animations/index.d.ts +0 -1
  242. package/components/alert/alert.component.d.ts +0 -15
  243. package/components/alert/alert.directive.d.ts +0 -7
  244. package/components/alert/alert.interfaces.d.ts +0 -12
  245. package/components/alert/alert.service.d.ts +0 -7
  246. package/components/alert/alert.tokens.d.ts +0 -12
  247. package/components/alert/alerts.component.d.ts +0 -12
  248. package/components/alert/index.d.ts +0 -6
  249. package/components/data-list/data-list.directive.d.ts +0 -7
  250. package/components/data-list/option/option-content.d.ts +0 -16
  251. package/components/data-list/option/option-legacy.component.d.ts +0 -24
  252. package/components/data-list/option/option.directive.d.ts +0 -27
  253. package/components/dialog/dialog.component.d.ts +0 -20
  254. package/components/dialog/dialog.directive.d.ts +0 -7
  255. package/components/dialog/dialog.interfaces.d.ts +0 -34
  256. package/components/dialog/dialog.service.d.ts +0 -7
  257. package/components/dialog/dialog.tokens.d.ts +0 -15
  258. package/components/dialog/dialogs.component.d.ts +0 -8
  259. package/components/dialog/index.d.ts +0 -8
  260. package/components/expand/expand-content.directive.d.ts +0 -8
  261. package/components/expand/expand.d.ts +0 -6
  262. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  263. package/components/fullscreen/index.d.ts +0 -1
  264. package/components/link/link.options.d.ts +0 -12
  265. package/components/textfield/select.directive.d.ts +0 -19
  266. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  267. package/components/textfield/textfield.directive.d.ts +0 -38
  268. package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
  269. package/directives/dropdown/dropdown-open.directive.d.ts +0 -33
  270. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  271. package/directives/dropdown/dropdown.service.d.ts +0 -6
  272. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  273. package/directives/hint/hint.component.d.ts +0 -30
  274. package/directives/hint/hint.directive.d.ts +0 -26
  275. package/directives/hint/hint.service.d.ts +0 -13
  276. package/directives/hint/hints.component.d.ts +0 -12
  277. package/directives/popup/popup.directive.d.ts +0 -11
  278. package/directives/surface/index.d.ts +0 -1
  279. package/directives/surface/surface.directive.d.ts +0 -8
  280. package/esm2022/animations/animations.mjs +0 -363
  281. package/esm2022/animations/index.mjs +0 -2
  282. package/esm2022/animations/taiga-ui-core-animations.mjs +0 -5
  283. package/esm2022/classes/accessors.mjs +0 -31
  284. package/esm2022/classes/driver.mjs +0 -36
  285. package/esm2022/classes/index.mjs +0 -4
  286. package/esm2022/classes/taiga-ui-core-classes.mjs +0 -5
  287. package/esm2022/classes/vehicle.mjs +0 -7
  288. package/esm2022/components/alert/alert.component.mjs +0 -43
  289. package/esm2022/components/alert/alert.directive.mjs +0 -21
  290. package/esm2022/components/alert/alert.interfaces.mjs +0 -2
  291. package/esm2022/components/alert/alert.service.mjs +0 -18
  292. package/esm2022/components/alert/alert.tokens.mjs +0 -51
  293. package/esm2022/components/alert/alerts.component.mjs +0 -33
  294. package/esm2022/components/alert/index.mjs +0 -6
  295. package/esm2022/components/alert/taiga-ui-core-components-alert.mjs +0 -5
  296. package/esm2022/components/button/button.directive.mjs +0 -43
  297. package/esm2022/components/button/button.options.mjs +0 -7
  298. package/esm2022/components/button/index.mjs +0 -3
  299. package/esm2022/components/button/taiga-ui-core-components-button.mjs +0 -5
  300. package/esm2022/components/calendar/calendar-sheet.component.mjs +0 -168
  301. package/esm2022/components/calendar/calendar-sheet.options.mjs +0 -12
  302. package/esm2022/components/calendar/calendar-spin.component.mjs +0 -53
  303. package/esm2022/components/calendar/calendar-year.component.mjs +0 -128
  304. package/esm2022/components/calendar/calendar.component.mjs +0 -147
  305. package/esm2022/components/calendar/index.mjs +0 -6
  306. package/esm2022/components/calendar/taiga-ui-core-components-calendar.mjs +0 -5
  307. package/esm2022/components/data-list/data-list.component.mjs +0 -139
  308. package/esm2022/components/data-list/data-list.directive.mjs +0 -19
  309. package/esm2022/components/data-list/data-list.mjs +0 -14
  310. package/esm2022/components/data-list/data-list.tokens.mjs +0 -18
  311. package/esm2022/components/data-list/index.mjs +0 -9
  312. package/esm2022/components/data-list/opt-group.directive.mjs +0 -21
  313. package/esm2022/components/data-list/option/option-content.mjs +0 -36
  314. package/esm2022/components/data-list/option/option-legacy.component.mjs +0 -90
  315. package/esm2022/components/data-list/option/option.directive.mjs +0 -109
  316. package/esm2022/components/data-list/taiga-ui-core-components-data-list.mjs +0 -5
  317. package/esm2022/components/dialog/dialog-close.service.mjs +0 -41
  318. package/esm2022/components/dialog/dialog.component.mjs +0 -63
  319. package/esm2022/components/dialog/dialog.directive.mjs +0 -21
  320. package/esm2022/components/dialog/dialog.factory.mjs +0 -15
  321. package/esm2022/components/dialog/dialog.interfaces.mjs +0 -2
  322. package/esm2022/components/dialog/dialog.service.mjs +0 -18
  323. package/esm2022/components/dialog/dialog.tokens.mjs +0 -33
  324. package/esm2022/components/dialog/dialogs.component.mjs +0 -29
  325. package/esm2022/components/dialog/index.mjs +0 -8
  326. package/esm2022/components/dialog/taiga-ui-core-components-dialog.mjs +0 -5
  327. package/esm2022/components/error/error.component.mjs +0 -34
  328. package/esm2022/components/error/index.mjs +0 -2
  329. package/esm2022/components/error/taiga-ui-core-components-error.mjs +0 -5
  330. package/esm2022/components/expand/expand-content.directive.mjs +0 -18
  331. package/esm2022/components/expand/expand.component.mjs +0 -124
  332. package/esm2022/components/expand/expand.mjs +0 -7
  333. package/esm2022/components/expand/index.mjs +0 -4
  334. package/esm2022/components/expand/taiga-ui-core-components-expand.mjs +0 -5
  335. package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -67
  336. package/esm2022/components/fullscreen/index.mjs +0 -2
  337. package/esm2022/components/fullscreen/taiga-ui-core-components-fullscreen.mjs +0 -5
  338. package/esm2022/components/icon/icon.component.mjs +0 -44
  339. package/esm2022/components/icon/icon.pipe.mjs +0 -19
  340. package/esm2022/components/icon/index.mjs +0 -3
  341. package/esm2022/components/icon/taiga-ui-core-components-icon.mjs +0 -5
  342. package/esm2022/components/index.mjs +0 -18
  343. package/esm2022/components/label/index.mjs +0 -2
  344. package/esm2022/components/label/label.directive.mjs +0 -41
  345. package/esm2022/components/label/taiga-ui-core-components-label.mjs +0 -5
  346. package/esm2022/components/link/index.mjs +0 -3
  347. package/esm2022/components/link/link.directive.mjs +0 -47
  348. package/esm2022/components/link/link.options.mjs +0 -13
  349. package/esm2022/components/link/taiga-ui-core-components-link.mjs +0 -5
  350. package/esm2022/components/loader/index.mjs +0 -3
  351. package/esm2022/components/loader/loader.component.mjs +0 -46
  352. package/esm2022/components/loader/loader.options.mjs +0 -18
  353. package/esm2022/components/loader/taiga-ui-core-components-loader.mjs +0 -5
  354. package/esm2022/components/notification/index.mjs +0 -3
  355. package/esm2022/components/notification/notification.directive.mjs +0 -81
  356. package/esm2022/components/notification/notification.options.mjs +0 -23
  357. package/esm2022/components/notification/taiga-ui-core-components-notification.mjs +0 -5
  358. package/esm2022/components/root/index.mjs +0 -2
  359. package/esm2022/components/root/root.component.mjs +0 -85
  360. package/esm2022/components/root/taiga-ui-core-components-root.mjs +0 -5
  361. package/esm2022/components/scrollbar/index.mjs +0 -9
  362. package/esm2022/components/scrollbar/scroll-controls.component.mjs +0 -32
  363. package/esm2022/components/scrollbar/scroll-into-view.directive.mjs +0 -43
  364. package/esm2022/components/scrollbar/scroll-ref.directive.mjs +0 -19
  365. package/esm2022/components/scrollbar/scrollable.directive.mjs +0 -26
  366. package/esm2022/components/scrollbar/scrollbar.component.mjs +0 -72
  367. package/esm2022/components/scrollbar/scrollbar.directive.mjs +0 -93
  368. package/esm2022/components/scrollbar/scrollbar.options.mjs +0 -6
  369. package/esm2022/components/scrollbar/scrollbar.service.mjs +0 -46
  370. package/esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs +0 -5
  371. package/esm2022/components/spin-button/index.mjs +0 -2
  372. package/esm2022/components/spin-button/spin-button.component.mjs +0 -51
  373. package/esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs +0 -5
  374. package/esm2022/components/taiga-ui-core-components.mjs +0 -5
  375. package/esm2022/components/textfield/index.mjs +0 -16
  376. package/esm2022/components/textfield/select-like.directive.mjs +0 -42
  377. package/esm2022/components/textfield/select.directive.mjs +0 -64
  378. package/esm2022/components/textfield/taiga-ui-core-components-textfield.mjs +0 -5
  379. package/esm2022/components/textfield/textfield-accessor.mjs +0 -7
  380. package/esm2022/components/textfield/textfield-auxiliary.mjs +0 -7
  381. package/esm2022/components/textfield/textfield-content.directive.mjs +0 -22
  382. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +0 -43
  383. package/esm2022/components/textfield/textfield-icon.mjs +0 -10
  384. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +0 -34
  385. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +0 -137
  386. package/esm2022/components/textfield/textfield.component.mjs +0 -180
  387. package/esm2022/components/textfield/textfield.directive.mjs +0 -134
  388. package/esm2022/components/textfield/textfield.mjs +0 -19
  389. package/esm2022/components/textfield/textfield.options.mjs +0 -63
  390. package/esm2022/components/textfield/with-native-picker.directive.mjs +0 -24
  391. package/esm2022/directives/appearance/appearance.bindings.mjs +0 -15
  392. package/esm2022/directives/appearance/appearance.directive.mjs +0 -79
  393. package/esm2022/directives/appearance/appearance.options.mjs +0 -12
  394. package/esm2022/directives/appearance/index.mjs +0 -5
  395. package/esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs +0 -5
  396. package/esm2022/directives/appearance/with-appearance.mjs +0 -27
  397. package/esm2022/directives/date-format/date-format.directive.mjs +0 -31
  398. package/esm2022/directives/date-format/index.mjs +0 -2
  399. package/esm2022/directives/date-format/taiga-ui-core-directives-date-format.mjs +0 -5
  400. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +0 -76
  401. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +0 -70
  402. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +0 -17
  403. package/esm2022/directives/dropdown/dropdown-limit-width.mjs +0 -37
  404. package/esm2022/directives/dropdown/dropdown-manual.directive.mjs +0 -27
  405. package/esm2022/directives/dropdown/dropdown-open-legacy.directive.mjs +0 -33
  406. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +0 -169
  407. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +0 -73
  408. package/esm2022/directives/dropdown/dropdown-portal.directive.mjs +0 -34
  409. package/esm2022/directives/dropdown/dropdown-position-sided.directive.mjs +0 -69
  410. package/esm2022/directives/dropdown/dropdown-position.directive.mjs +0 -88
  411. package/esm2022/directives/dropdown/dropdown-selection.directive.mjs +0 -159
  412. package/esm2022/directives/dropdown/dropdown.bindings.mjs +0 -19
  413. package/esm2022/directives/dropdown/dropdown.component.mjs +0 -92
  414. package/esm2022/directives/dropdown/dropdown.directive.mjs +0 -110
  415. package/esm2022/directives/dropdown/dropdown.driver.mjs +0 -32
  416. package/esm2022/directives/dropdown/dropdown.mjs +0 -29
  417. package/esm2022/directives/dropdown/dropdown.providers.mjs +0 -10
  418. package/esm2022/directives/dropdown/dropdown.service.mjs +0 -15
  419. package/esm2022/directives/dropdown/dropdowns.component.mjs +0 -24
  420. package/esm2022/directives/dropdown/index.mjs +0 -22
  421. package/esm2022/directives/dropdown/taiga-ui-core-directives-dropdown.mjs +0 -5
  422. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +0 -23
  423. package/esm2022/directives/group/group.directive.mjs +0 -53
  424. package/esm2022/directives/group/group.options.mjs +0 -15
  425. package/esm2022/directives/group/index.mjs +0 -3
  426. package/esm2022/directives/group/taiga-ui-core-directives-group.mjs +0 -5
  427. package/esm2022/directives/hint/hint-describe.directive.mjs +0 -50
  428. package/esm2022/directives/hint/hint-driver.directive.mjs +0 -19
  429. package/esm2022/directives/hint/hint-host.directive.mjs +0 -27
  430. package/esm2022/directives/hint/hint-hover.directive.mjs +0 -59
  431. package/esm2022/directives/hint/hint-manual.directive.mjs +0 -33
  432. package/esm2022/directives/hint/hint-options.directive.mjs +0 -86
  433. package/esm2022/directives/hint/hint-overflow.directive.mjs +0 -38
  434. package/esm2022/directives/hint/hint-pointer.directive.mjs +0 -33
  435. package/esm2022/directives/hint/hint-position.directive.mjs +0 -112
  436. package/esm2022/directives/hint/hint-unstyled.component.mjs +0 -39
  437. package/esm2022/directives/hint/hint.component.mjs +0 -127
  438. package/esm2022/directives/hint/hint.directive.mjs +0 -99
  439. package/esm2022/directives/hint/hint.mjs +0 -27
  440. package/esm2022/directives/hint/hint.providers.mjs +0 -9
  441. package/esm2022/directives/hint/hint.service.mjs +0 -29
  442. package/esm2022/directives/hint/hints.component.mjs +0 -34
  443. package/esm2022/directives/hint/index.mjs +0 -17
  444. package/esm2022/directives/hint/taiga-ui-core-directives-hint.mjs +0 -5
  445. package/esm2022/directives/icons/icons.directive.mjs +0 -66
  446. package/esm2022/directives/icons/index.mjs +0 -3
  447. package/esm2022/directives/icons/taiga-ui-core-directives-icons.mjs +0 -5
  448. package/esm2022/directives/icons/with-icons.mjs +0 -22
  449. package/esm2022/directives/index.mjs +0 -12
  450. package/esm2022/directives/items-handlers/index.mjs +0 -4
  451. package/esm2022/directives/items-handlers/items-handlers.directive.mjs +0 -63
  452. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +0 -27
  453. package/esm2022/directives/items-handlers/items-handlers.validator.mjs +0 -32
  454. package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +0 -5
  455. package/esm2022/directives/number-format/index.mjs +0 -2
  456. package/esm2022/directives/number-format/number-format.directive.mjs +0 -31
  457. package/esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs +0 -5
  458. package/esm2022/directives/popup/index.mjs +0 -4
  459. package/esm2022/directives/popup/popup.directive.mjs +0 -31
  460. package/esm2022/directives/popup/popup.service.mjs +0 -15
  461. package/esm2022/directives/popup/popups.component.mjs +0 -20
  462. package/esm2022/directives/popup/taiga-ui-core-directives-popup.mjs +0 -5
  463. package/esm2022/directives/surface/index.mjs +0 -2
  464. package/esm2022/directives/surface/surface.directive.mjs +0 -44
  465. package/esm2022/directives/surface/taiga-ui-core-directives-surface.mjs +0 -5
  466. package/esm2022/directives/taiga-ui-core-directives.mjs +0 -5
  467. package/esm2022/directives/title/index.mjs +0 -2
  468. package/esm2022/directives/title/taiga-ui-core-directives-title.mjs +0 -5
  469. package/esm2022/directives/title/title.directive.mjs +0 -37
  470. package/esm2022/index.mjs +0 -9
  471. package/esm2022/pipes/auto-color/auto-color.pipe.mjs +0 -19
  472. package/esm2022/pipes/auto-color/index.mjs +0 -2
  473. package/esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs +0 -5
  474. package/esm2022/pipes/calendar-sheet/calendar-sheet.pipe.mjs +0 -54
  475. package/esm2022/pipes/calendar-sheet/index.mjs +0 -2
  476. package/esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs +0 -5
  477. package/esm2022/pipes/calendar-sheet/utils.mjs +0 -36
  478. package/esm2022/pipes/fallback-src/fallback-src.pipe.mjs +0 -23
  479. package/esm2022/pipes/fallback-src/index.mjs +0 -2
  480. package/esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs +0 -5
  481. package/esm2022/pipes/flag/flag.pipe.mjs +0 -26
  482. package/esm2022/pipes/flag/index.mjs +0 -2
  483. package/esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs +0 -5
  484. package/esm2022/pipes/format-date/format-date.pipe.mjs +0 -22
  485. package/esm2022/pipes/format-date/index.mjs +0 -2
  486. package/esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs +0 -5
  487. package/esm2022/pipes/format-number/format-number.pipe.mjs +0 -36
  488. package/esm2022/pipes/format-number/index.mjs +0 -2
  489. package/esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs +0 -5
  490. package/esm2022/pipes/index.mjs +0 -10
  491. package/esm2022/pipes/initials/index.mjs +0 -2
  492. package/esm2022/pipes/initials/initials.pipe.mjs +0 -23
  493. package/esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs +0 -5
  494. package/esm2022/pipes/month/index.mjs +0 -2
  495. package/esm2022/pipes/month/month.pipe.mjs +0 -23
  496. package/esm2022/pipes/month/taiga-ui-core-pipes-month.mjs +0 -5
  497. package/esm2022/pipes/order-week-days/index.mjs +0 -2
  498. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +0 -30
  499. package/esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs +0 -5
  500. package/esm2022/pipes/taiga-ui-core-pipes.mjs +0 -5
  501. package/esm2022/services/breakpoint.service.mjs +0 -31
  502. package/esm2022/services/dark-theme.service.mjs +0 -24
  503. package/esm2022/services/format-date.service.mjs +0 -24
  504. package/esm2022/services/index.mjs +0 -6
  505. package/esm2022/services/position.service.mjs +0 -26
  506. package/esm2022/services/taiga-ui-core-services.mjs +0 -5
  507. package/esm2022/services/visual-viewport.service.mjs +0 -29
  508. package/esm2022/taiga-ui-core.mjs +0 -5
  509. package/esm2022/tokens/animations-speed.mjs +0 -9
  510. package/esm2022/tokens/assets-path.mjs +0 -11
  511. package/esm2022/tokens/auxiliary.mjs +0 -9
  512. package/esm2022/tokens/common-icons.mjs +0 -18
  513. package/esm2022/tokens/dark-mode.mjs +0 -41
  514. package/esm2022/tokens/date-format.mjs +0 -20
  515. package/esm2022/tokens/day-type-handler.mjs +0 -8
  516. package/esm2022/tokens/first-day-of-week.mjs +0 -9
  517. package/esm2022/tokens/i18n.mjs +0 -45
  518. package/esm2022/tokens/icon-resolver.mjs +0 -44
  519. package/esm2022/tokens/icon.mjs +0 -8
  520. package/esm2022/tokens/icons.mjs +0 -21
  521. package/esm2022/tokens/index.mjs +0 -21
  522. package/esm2022/tokens/media.mjs +0 -12
  523. package/esm2022/tokens/number-format.mjs +0 -24
  524. package/esm2022/tokens/reduced-motion.mjs +0 -7
  525. package/esm2022/tokens/scroll-ref.mjs +0 -6
  526. package/esm2022/tokens/selection-stream.mjs +0 -14
  527. package/esm2022/tokens/spin-icons.mjs +0 -8
  528. package/esm2022/tokens/taiga-ui-core-tokens.mjs +0 -5
  529. package/esm2022/tokens/theme.mjs +0 -5
  530. package/esm2022/tokens/viewport.mjs +0 -35
  531. package/esm2022/types/direction.mjs +0 -2
  532. package/esm2022/types/index.mjs +0 -2
  533. package/esm2022/types/interactive-state.mjs +0 -2
  534. package/esm2022/types/orientation.mjs +0 -2
  535. package/esm2022/types/point.mjs +0 -2
  536. package/esm2022/types/portal-item.mjs +0 -2
  537. package/esm2022/types/range-state.mjs +0 -2
  538. package/esm2022/types/size.mjs +0 -13
  539. package/esm2022/types/taiga-ui-core-types.mjs +0 -5
  540. package/esm2022/types/value-content-context.mjs +0 -2
  541. package/esm2022/utils/dom/check-fixed-position.mjs +0 -9
  542. package/esm2022/utils/dom/get-viewport.mjs +0 -24
  543. package/esm2022/utils/dom/get-word-range.mjs +0 -51
  544. package/esm2022/utils/dom/index.mjs +0 -4
  545. package/esm2022/utils/dom/taiga-ui-core-utils-dom.mjs +0 -5
  546. package/esm2022/utils/format/format-number.mjs +0 -47
  547. package/esm2022/utils/format/get-fractional-part-padded.mjs +0 -16
  548. package/esm2022/utils/format/index.mjs +0 -5
  549. package/esm2022/utils/format/number-to-string-without-exp.mjs +0 -18
  550. package/esm2022/utils/format/string-hash-to-hsl.mjs +0 -21
  551. package/esm2022/utils/format/taiga-ui-core-utils-format.mjs +0 -5
  552. package/esm2022/utils/index.mjs +0 -4
  553. package/esm2022/utils/miscellaneous/font-scaling.mjs +0 -11
  554. package/esm2022/utils/miscellaneous/index.mjs +0 -7
  555. package/esm2022/utils/miscellaneous/is-editing-key.mjs +0 -18
  556. package/esm2022/utils/miscellaneous/is-obscured.mjs +0 -8
  557. package/esm2022/utils/miscellaneous/override-options.mjs +0 -11
  558. package/esm2022/utils/miscellaneous/size-bigger.mjs +0 -19
  559. package/esm2022/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs +0 -5
  560. package/esm2022/utils/miscellaneous/to-animation-options.mjs +0 -16
  561. package/esm2022/utils/taiga-ui-core-utils.mjs +0 -5
  562. package/fesm2022/taiga-ui-core-animations.mjs +0 -370
  563. package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
  564. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -149
  565. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  566. package/fesm2022/taiga-ui-core-components-dialog.mjs +0 -196
  567. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +0 -1
  568. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -73
  569. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  570. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +0 -1
  571. package/fesm2022/taiga-ui-core-directives-hint.mjs +0 -710
  572. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +0 -1
  573. package/fesm2022/taiga-ui-core-directives-popup.mjs +0 -63
  574. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +0 -1
  575. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  576. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  577. package/fesm2022/taiga-ui-core-directives-title.mjs +0 -43
  578. package/fesm2022/taiga-ui-core-directives-title.mjs.map +0 -1
  579. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -25
  580. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +0 -1
  581. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -94
  582. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +0 -1
  583. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  584. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  585. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -32
  586. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +0 -1
  587. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -28
  588. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +0 -1
  589. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -29
  590. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +0 -1
  591. package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -29
  592. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
  593. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -36
  594. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +0 -1
  595. package/pipes/auto-color/auto-color.pipe.d.ts +0 -7
  596. package/pipes/auto-color/index.d.ts +0 -1
  597. package/pipes/calendar-sheet/index.d.ts +0 -1
  598. package/pipes/calendar-sheet/utils.d.ts +0 -20
  599. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  600. package/pipes/fallback-src/index.d.ts +0 -1
  601. package/pipes/flag/flag.pipe.d.ts +0 -14
  602. package/pipes/flag/index.d.ts +0 -1
  603. package/pipes/format-date/format-date.pipe.d.ts +0 -9
  604. package/pipes/format-date/index.d.ts +0 -1
  605. package/pipes/initials/index.d.ts +0 -1
  606. package/pipes/initials/initials.pipe.d.ts +0 -7
  607. package/pipes/month/index.d.ts +0 -1
  608. package/pipes/month/month.pipe.d.ts +0 -10
  609. package/pipes/order-week-days/index.d.ts +0 -1
  610. package/services/dark-theme.service.d.ts +0 -10
  611. package/services/format-date.service.d.ts +0 -8
  612. package/styles/mixins/wrapper.less +0 -64
  613. package/styles/mixins/wrapper.scss +0 -61
  614. package/styles/theme/appearance/opposite.less +0 -17
  615. package/styles/theme/wrapper.less +0 -211
  616. package/tokens/day-type-handler.d.ts +0 -7
  617. package/tokens/first-day-of-week.d.ts +0 -5
  618. package/tokens/scroll-ref.d.ts +0 -2
  619. package/tokens/spin-icons.d.ts +0 -6
  620. package/types/portal-item.d.ts +0 -9
  621. package/types/range-state.d.ts +0 -4
  622. package/types/value-content-context.d.ts +0 -4
  623. package/utils/format/string-hash-to-hsl.d.ts +0 -6
  624. package/utils/miscellaneous/to-animation-options.d.ts +0 -4
  625. /package/{directives → components}/title/index.d.ts +0 -0
  626. /package/{directives → portals}/dropdown/dropdown-context.directive.d.ts +0 -0
  627. /package/{directives → portals}/dropdown/dropdown-limit-width.d.ts +0 -0
  628. /package/{directives → portals}/dropdown/dropdown-options.directive.d.ts +0 -0
  629. /package/{directives → portals}/dropdown/dropdown.component.d.ts +0 -0
  630. /package/{directives → portals}/dropdown/dropdown.driver.d.ts +0 -0
  631. /package/{directives → portals}/dropdown/dropdown.providers.d.ts +0 -0
  632. /package/{directives → portals}/dropdown/with-dropdown-open.directive.d.ts +0 -0
  633. /package/{directives → portals}/hint/hint-driver.directive.d.ts +0 -0
  634. /package/{directives → portals}/hint/hint-pointer.directive.d.ts +0 -0
  635. /package/{directives → portals}/hint/hint.d.ts +0 -0
  636. /package/{directives → portals}/hint/hint.providers.d.ts +0 -0
  637. /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 {NgIf} from '@angular/common';\nimport {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 standalone: true,\n selector: 'tui-alert',\n imports: [NgIf, 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 <button\n *ngIf=\"item.closeable\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\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, NgFor} 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 standalone: true,\n selector: 'tui-alerts',\n imports: [AsyncPipe, NgComponentOutlet, NgFor, 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","<div\n *ngFor=\"let group of alerts$ | async; trackBy: trackBy\"\n tuiAnimatedParent\n class=\"t-wrapper\"\n>\n <ng-container\n *ngFor=\"let item of group\"\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n</div>\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;EACjB;AAEW,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,EACH;AAEW,MAAA,kBAAk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,YAAY,EACb,OAAA,EAAA,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAGjE,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,eAAA,EAGpB,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,+TAAA,EAAA,MAAA,EAAA,CAAA,+QAAA,CAAA,EAAA,CAAA;;;AE5BpD;;AAEG;;;;"}
@@ -1,196 +0,0 @@
1
- import { DOCUMENT, AsyncPipe, NgIf, NgForOf } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, Injectable, computed, Component, ChangeDetectionStrategy, 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, isObservable, of, 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: "16.2.12", ngImport: i0, type: TuiDialogCloseService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
80
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogCloseService }); }
81
- }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogCloseService, decorators: [{
83
- type: Injectable
84
- }], ctorParameters: function () { return []; } });
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: "16.2.12", ngImport: i0, type: TuiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
121
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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: "<header\n *ngIf=\"header\"\n class=\"t-header\"\n>\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n</header>\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 <div\n *ngIf=\"context.closeable || context.dismissible\"\n class=\"t-buttons\"\n >\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 </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<button\n *ngIf=\"context.closeable\"\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", 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: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: "16.2.12", ngImport: i0, type: TuiDialogComponent, decorators: [{
124
- type: Component,
125
- args: [{ standalone: true, selector: 'tui-dialog', imports: [AsyncPipe, NgIf, 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: "<header\n *ngIf=\"header\"\n class=\"t-header\"\n>\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n</header>\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 <div\n *ngIf=\"context.closeable || context.dismissible\"\n class=\"t-buttons\"\n >\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 </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<button\n *ngIf=\"context.closeable\"\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", 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: function () { return []; } });
132
-
133
- class TuiDialogService extends TuiPopoverService {
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
135
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", 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: "16.2.12", 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: "16.2.12", ngImport: i0, type: TuiDialog, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
147
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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: "16.2.12", 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: "16.2.12", ngImport: i0, type: TuiDialogs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
177
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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<section\n *ngFor=\"let item of dialogs()\"\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", 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: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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: "16.2.12", ngImport: i0, type: TuiDialogs, decorators: [{
180
- type: Component,
181
- args: [{ standalone: true, selector: 'tui-dialogs', imports: [
182
- NgForOf,
183
- PolymorpheusOutlet,
184
- TuiAnimatedParent,
185
- TuiFocusTrap,
186
- TuiScrollControls,
187
- TuiScrollRef,
188
- ], 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<section\n *ngFor=\"let item of dialogs()\"\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", 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"] }]
189
- }] });
190
-
191
- /**
192
- * Generated bundle index. Do not edit.
193
- */
194
-
195
- export { TUI_DIALOGS, TUI_DIALOGS_CLOSE, TUI_DIALOG_DEFAULT_OPTIONS, TUI_DIALOG_OPTIONS, TuiDialog, TuiDialogCloseService, TuiDialogComponent, TuiDialogService, TuiDialogs, tuiDialog, tuiDialogOptionsProvider };
196
- //# 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, NgIf} 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 standalone: true,\n selector: 'tui-dialog',\n imports: [AsyncPipe, NgIf, 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","<header\n *ngIf=\"header\"\n class=\"t-header\"\n>\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n</header>\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 <div\n *ngIf=\"context.closeable || context.dismissible\"\n class=\"t-buttons\"\n >\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 </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<button\n *ngIf=\"context.closeable\"\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","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 {NgForOf} from '@angular/common';\nimport {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 standalone: true,\n selector: 'tui-dialogs',\n imports: [\n NgForOf,\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<section\n *ngFor=\"let item of dialogs()\"\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 * 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,EAAE,CAAC;AAC9E,CAAA,EAAE;AAEU,MAAA,0BAA0B,GAA2B;AAC9D,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,KAAK,EAAE,EAAE;AACT,IAAA,MAAM,EAAE,EAAE;AACV,IAAA,IAAI,EAAE,SAAS;EACjB;AAEF;;;AAGG;AACU,MAAA,iBAAiB,GAAG,IAAI,cAAc,CAC/C,SAAS,GAAG,mBAAmB,GAAG,EAAE,EACpC;AACI,IAAA,OAAO,EAAE,MAAM,KAAK;AACvB,CAAA,EACH;AAEF;;AAEG;AACU,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,MAAM,0BAA0B;AAC5C,CAAA,EACH;AAEI,SAAU,wBAAwB,CACpC,OAA2C,EAAA;IAE3C,OAAO,iBAAiB,CAAC,kBAAkB,EAAE,OAAO,EAAE,0BAA0B,CAAC,CAAC;AACtF;;AClCA,MAAM,qBAAqB,GAAG,EAAE,CAAC;AAEjC,MACa,qBAAsB,SAAQ,UAAmB,CAAA;AAkC1D,IAAA,WAAA,GAAA;AACI,QA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S;iCACM,IAAI,EAAA,QAAA,EACN,aAAa,EACd,OAAA,EAAA;wBACL,OAAO;wBACP,kBAAkB;wBAClB,iBAAiB;wBACjB,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;qBACf,EAKgB,eAAA,EAAA,uBAAuB,CAAC,OAAO,EAAA,QAAA,EAAA,8eAAA,EAAA,MAAA,EAAA,CAAA,6/DAAA,CAAA,EAAA,CAAA;;;AE1BpD;;AAEG;;;;"}
@@ -1,73 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, signal, EventEmitter, ElementRef, Component, ChangeDetectionStrategy, ViewChild, Output, Input } 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: "16.2.12", ngImport: i0, type: TuiFullscreen, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
40
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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, dependencies: [{ kind: "component", type: TuiRoot, selector: "tui-root" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
41
- }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFullscreen, decorators: [{
43
- type: Component,
44
- args: [{
45
- standalone: true,
46
- selector: '[tuiFullscreen]',
47
- imports: [TuiRoot],
48
- template: '<tui-root><ng-content /></tui-root>',
49
- changeDetection: ChangeDetectionStrategy.OnPush,
50
- host: {
51
- '(document:fullscreenchange)': 'closedByEscape($event)',
52
- },
53
- }]
54
- }], propDecorators: { root: [{
55
- type: ViewChild,
56
- args: [TuiRoot, { read: ElementRef }]
57
- }], opened: [{
58
- type: Output,
59
- args: ['tuiFullscreenChange']
60
- }], options: [{
61
- type: Input,
62
- args: ['tuiFullscreenOptions']
63
- }], fullscreen: [{
64
- type: Input,
65
- args: ['tuiFullscreen']
66
- }] } });
67
-
68
- /**
69
- * Generated bundle index. Do not edit.
70
- */
71
-
72
- export { TuiFullscreen };
73
- //# 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 standalone: true,\n selector: '[tuiFullscreen]',\n imports: [TuiRoot],\n template: '<tui-root><ng-content /></tui-root>',\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":";;;;;AAcA,MAUa,aAAa,CAAA;AAV1B,IAAA,WAAA,GAAA;AAcqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AACrB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAGxB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAW,CAAC;AAG9C,QAAA,IAAA,CAAA,OAAO,GAAuB,EAAC,YAAY,EAAE,MAAM,EAAC,CAAC;AAmC/D,KAAA;IAjCG,IACW,UAAU,CAAC,IAAa,EAAA;AAC/B,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE;YACt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