@taiga-ui/core 4.66.0 → 5.0.0-rc.0

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 (654) 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 -20
  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 +29 -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 -7
  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 +9 -15
  60. package/components/textfield/textfield.component.d.ts +20 -35
  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 -2
  66. package/directives/button-x/button-x.directive.d.ts +6 -0
  67. package/directives/button-x/index.d.ts +1 -0
  68. package/directives/date-format/date-format.directive.d.ts +3 -7
  69. package/directives/group/group.directive.d.ts +7 -7
  70. package/directives/group/group.options.d.ts +1 -3
  71. package/directives/icons/icons.bindings.d.ts +5 -0
  72. package/directives/icons/icons.directive.d.ts +8 -16
  73. package/directives/icons/index.d.ts +1 -0
  74. package/directives/index.d.ts +1 -5
  75. package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
  76. package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
  77. package/directives/number-format/number-format.directive.d.ts +3 -7
  78. package/fesm2022/taiga-ui-core-classes.mjs +9 -11
  79. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-core-components-button.mjs +13 -21
  81. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-components-calendar.mjs +144 -47
  83. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  85. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  86. package/fesm2022/taiga-ui-core-components-data-list.mjs +113 -284
  87. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-error.mjs +110 -26
  89. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-expand.mjs +34 -132
  91. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-components-icon.mjs +22 -40
  93. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-components-input.mjs +100 -0
  95. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -0
  96. package/fesm2022/taiga-ui-core-components-label.mjs +13 -18
  97. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-components-link.mjs +16 -36
  99. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-components-loader.mjs +20 -40
  101. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-core-components-notification.mjs +107 -66
  103. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-components-root.mjs +23 -60
  105. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +73 -87
  107. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-components-spin-button.mjs +18 -31
  109. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-components-textfield.mjs +136 -435
  111. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-core-components-title.mjs +37 -0
  113. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -0
  114. package/fesm2022/taiga-ui-core-components.mjs +3 -3
  115. package/fesm2022/taiga-ui-core-directives-appearance.mjs +32 -69
  116. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-core-directives-button-x.mjs +51 -0
  118. package/fesm2022/taiga-ui-core-directives-button-x.mjs.map +1 -0
  119. package/fesm2022/taiga-ui-core-directives-date-format.mjs +26 -20
  120. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-core-directives-group.mjs +25 -40
  122. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-core-directives-icons.mjs +35 -45
  124. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +18 -42
  126. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-core-directives-number-format.mjs +32 -20
  128. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-core-directives.mjs +1 -5
  130. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +21 -15
  132. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-core-pipes.mjs +0 -8
  134. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-core-portals-alert.mjs +73 -0
  136. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -0
  137. package/fesm2022/taiga-ui-core-portals-dialog.mjs +159 -0
  138. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -0
  139. package/fesm2022/{taiga-ui-core-directives-dropdown.mjs → taiga-ui-core-portals-dropdown.mjs} +249 -414
  140. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -0
  141. package/fesm2022/taiga-ui-core-portals-hint.mjs +552 -0
  142. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -0
  143. package/fesm2022/taiga-ui-core-portals-modal.mjs +89 -0
  144. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -0
  145. package/fesm2022/taiga-ui-core-portals-popup.mjs +56 -0
  146. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -0
  147. package/fesm2022/taiga-ui-core-portals.mjs +11 -0
  148. package/fesm2022/taiga-ui-core-portals.mjs.map +1 -0
  149. package/fesm2022/taiga-ui-core-services.mjs +17 -81
  150. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-core-tokens.mjs +62 -81
  152. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
  155. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +55 -19
  157. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-core.mjs +1 -1
  159. package/index.d.ts +1 -1
  160. package/package.json +58 -179
  161. package/pipes/format-number/format-number.pipe.d.ts +6 -4
  162. package/pipes/index.d.ts +0 -8
  163. package/portals/alert/alert.directive.d.ts +11 -0
  164. package/portals/alert/alert.service.d.ts +12 -0
  165. package/portals/alert/index.d.ts +2 -0
  166. package/portals/dialog/dialog.component.d.ts +14 -0
  167. package/portals/dialog/dialog.directive.d.ts +8 -0
  168. package/{components → portals}/dialog/dialog.factory.d.ts +1 -1
  169. package/portals/dialog/dialog.options.d.ts +25 -0
  170. package/{components/dialog/dialog-close.service.d.ts → portals/dialog/dialog.providers.d.ts} +2 -0
  171. package/portals/dialog/dialog.service.d.ts +10 -0
  172. package/portals/dialog/index.d.ts +6 -0
  173. package/portals/dropdown/dropdown-close.directive.d.ts +15 -0
  174. package/portals/dropdown/dropdown-content.directive.d.ts +9 -0
  175. package/{directives → portals}/dropdown/dropdown-context.directive.d.ts +0 -1
  176. package/{directives → portals}/dropdown/dropdown-hover.directive.d.ts +5 -10
  177. package/{directives → portals}/dropdown/dropdown-hover.options.d.ts +1 -3
  178. package/{directives → portals}/dropdown/dropdown-manual.directive.d.ts +2 -2
  179. package/portals/dropdown/dropdown-open.directive.d.ts +29 -0
  180. package/{directives → portals}/dropdown/dropdown-options.directive.d.ts +1 -5
  181. package/{directives → portals}/dropdown/dropdown-position-sided.directive.d.ts +3 -3
  182. package/{directives → portals}/dropdown/dropdown-position.directive.d.ts +6 -6
  183. package/{directives → portals}/dropdown/dropdown-selection.directive.d.ts +4 -5
  184. package/{directives → portals}/dropdown/dropdown.bindings.d.ts +0 -1
  185. package/{directives → portals}/dropdown/dropdown.d.ts +2 -3
  186. package/{directives → portals}/dropdown/dropdown.directive.d.ts +6 -8
  187. package/{directives → portals}/dropdown/index.d.ts +2 -4
  188. package/{directives → portals}/hint/hint-describe.directive.d.ts +4 -6
  189. package/{directives → portals}/hint/hint-host.directive.d.ts +2 -2
  190. package/{directives → portals}/hint/hint-hover.directive.d.ts +3 -4
  191. package/{directives → portals}/hint/hint-manual.directive.d.ts +2 -2
  192. package/portals/hint/hint-options.directive.d.ts +17 -0
  193. package/{directives → portals}/hint/hint-overflow.directive.d.ts +2 -2
  194. package/{directives → portals}/hint/hint-position.directive.d.ts +7 -8
  195. package/{directives → portals}/hint/hint-unstyled.component.d.ts +2 -7
  196. package/portals/hint/hint.component.d.ts +29 -0
  197. package/{directives → portals}/hint/hint.d.ts +1 -2
  198. package/portals/hint/hint.directive.d.ts +24 -0
  199. package/{directives → portals}/hint/index.d.ts +0 -2
  200. package/portals/index.d.ts +6 -0
  201. package/portals/modal/index.d.ts +2 -0
  202. package/portals/modal/modal.component.d.ts +17 -0
  203. package/portals/modal/modal.service.d.ts +13 -0
  204. package/portals/popup/popup.directive.d.ts +12 -0
  205. package/{directives → portals}/popup/popup.service.d.ts +1 -1
  206. package/{directives → portals}/popup/popups.component.d.ts +2 -2
  207. package/services/index.d.ts +0 -3
  208. package/styles/components/appearance.less +5 -0
  209. package/styles/components/button.less +10 -22
  210. package/styles/components/icon.less +42 -21
  211. package/styles/components/icons.less +18 -13
  212. package/styles/components/label.less +3 -12
  213. package/styles/components/link.less +8 -27
  214. package/styles/components/notification.less +31 -65
  215. package/styles/components/textfield.less +128 -213
  216. package/styles/components/title.less +8 -8
  217. package/styles/mixins/appearance.less +11 -26
  218. package/styles/mixins/appearance.scss +9 -24
  219. package/styles/mixins/date-picker.less +1 -1
  220. package/styles/mixins/mixins.less +1 -7
  221. package/styles/mixins/mixins.scss +1 -7
  222. package/styles/mixins/picker.less +1 -1
  223. package/styles/mixins/picker.scss +1 -1
  224. package/styles/mixins/slider.less +28 -24
  225. package/styles/mixins/slider.scss +23 -22
  226. package/styles/taiga-ui-local.less +0 -1
  227. package/styles/taiga-ui-local.scss +0 -1
  228. package/styles/taiga-ui-theme.less +0 -1
  229. package/styles/theme/appearance/outline.less +9 -18
  230. package/styles/theme/appearance/primary.less +2 -4
  231. package/styles/theme/appearance/secondary.less +6 -14
  232. package/styles/theme/appearance/status.less +0 -4
  233. package/styles/theme/appearance/table.less +36 -35
  234. package/styles/theme/appearance/textfield.less +27 -28
  235. package/styles/theme/appearance.less +0 -1
  236. package/styles/theme/variables.less +16 -19
  237. package/styles/variables/media.less +13 -18
  238. package/styles/variables/media.scss +13 -13
  239. package/tokens/breakpoint.d.ts +4 -0
  240. package/tokens/common-icons.d.ts +3 -3
  241. package/tokens/date-format.d.ts +2 -3
  242. package/tokens/i18n.d.ts +7 -7
  243. package/tokens/icon-resolver.d.ts +1 -5
  244. package/tokens/icons.d.ts +0 -4
  245. package/tokens/index.d.ts +2 -4
  246. package/tokens/number-format.d.ts +2 -3
  247. package/tokens/validation-errors.d.ts +4 -0
  248. package/types/direction.d.ts +1 -1
  249. package/types/index.d.ts +0 -3
  250. package/types/point.d.ts +1 -1
  251. package/types/size.d.ts +0 -11
  252. package/utils/format/index.d.ts +0 -1
  253. package/utils/miscellaneous/get-duration.d.ts +2 -0
  254. package/utils/miscellaneous/index.d.ts +2 -1
  255. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  256. package/animations/animations.d.ts +0 -109
  257. package/animations/index.d.ts +0 -1
  258. package/components/alert/alert.component.d.ts +0 -15
  259. package/components/alert/alert.directive.d.ts +0 -7
  260. package/components/alert/alert.interfaces.d.ts +0 -12
  261. package/components/alert/alert.service.d.ts +0 -7
  262. package/components/alert/alert.tokens.d.ts +0 -12
  263. package/components/alert/alerts.component.d.ts +0 -12
  264. package/components/alert/index.d.ts +0 -6
  265. package/components/data-list/data-list.directive.d.ts +0 -7
  266. package/components/data-list/option/option-content.d.ts +0 -16
  267. package/components/data-list/option/option-legacy.component.d.ts +0 -24
  268. package/components/data-list/option/option.directive.d.ts +0 -27
  269. package/components/dialog/active-zone-adapter.directive.d.ts +0 -11
  270. package/components/dialog/dialog.component.d.ts +0 -20
  271. package/components/dialog/dialog.directive.d.ts +0 -7
  272. package/components/dialog/dialog.interfaces.d.ts +0 -34
  273. package/components/dialog/dialog.service.d.ts +0 -7
  274. package/components/dialog/dialog.tokens.d.ts +0 -15
  275. package/components/dialog/dialogs.component.d.ts +0 -8
  276. package/components/dialog/index.d.ts +0 -8
  277. package/components/expand/expand-content.directive.d.ts +0 -8
  278. package/components/expand/expand.d.ts +0 -6
  279. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  280. package/components/fullscreen/index.d.ts +0 -1
  281. package/components/link/link.options.d.ts +0 -12
  282. package/components/textfield/select.directive.d.ts +0 -19
  283. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  284. package/components/textfield/textfield.directive.d.ts +0 -38
  285. package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
  286. package/directives/dropdown/dropdown-open.directive.d.ts +0 -33
  287. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  288. package/directives/dropdown/dropdown.service.d.ts +0 -6
  289. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  290. package/directives/hint/hint-options.directive.d.ts +0 -36
  291. package/directives/hint/hint.component.d.ts +0 -30
  292. package/directives/hint/hint.directive.d.ts +0 -26
  293. package/directives/hint/hint.service.d.ts +0 -13
  294. package/directives/hint/hints.component.d.ts +0 -12
  295. package/directives/popup/popup.directive.d.ts +0 -11
  296. package/directives/surface/index.d.ts +0 -1
  297. package/directives/surface/surface.directive.d.ts +0 -8
  298. package/esm2022/animations/animations.mjs +0 -363
  299. package/esm2022/animations/index.mjs +0 -2
  300. package/esm2022/animations/taiga-ui-core-animations.mjs +0 -5
  301. package/esm2022/classes/accessors.mjs +0 -31
  302. package/esm2022/classes/driver.mjs +0 -36
  303. package/esm2022/classes/index.mjs +0 -4
  304. package/esm2022/classes/taiga-ui-core-classes.mjs +0 -5
  305. package/esm2022/classes/vehicle.mjs +0 -7
  306. package/esm2022/components/alert/alert.component.mjs +0 -43
  307. package/esm2022/components/alert/alert.directive.mjs +0 -21
  308. package/esm2022/components/alert/alert.interfaces.mjs +0 -2
  309. package/esm2022/components/alert/alert.service.mjs +0 -18
  310. package/esm2022/components/alert/alert.tokens.mjs +0 -51
  311. package/esm2022/components/alert/alerts.component.mjs +0 -33
  312. package/esm2022/components/alert/index.mjs +0 -6
  313. package/esm2022/components/alert/taiga-ui-core-components-alert.mjs +0 -5
  314. package/esm2022/components/button/button.directive.mjs +0 -43
  315. package/esm2022/components/button/button.options.mjs +0 -7
  316. package/esm2022/components/button/index.mjs +0 -3
  317. package/esm2022/components/button/taiga-ui-core-components-button.mjs +0 -5
  318. package/esm2022/components/calendar/calendar-sheet.component.mjs +0 -168
  319. package/esm2022/components/calendar/calendar-sheet.options.mjs +0 -12
  320. package/esm2022/components/calendar/calendar-spin.component.mjs +0 -53
  321. package/esm2022/components/calendar/calendar-year.component.mjs +0 -128
  322. package/esm2022/components/calendar/calendar.component.mjs +0 -147
  323. package/esm2022/components/calendar/index.mjs +0 -6
  324. package/esm2022/components/calendar/taiga-ui-core-components-calendar.mjs +0 -5
  325. package/esm2022/components/data-list/data-list.component.mjs +0 -139
  326. package/esm2022/components/data-list/data-list.directive.mjs +0 -19
  327. package/esm2022/components/data-list/data-list.mjs +0 -14
  328. package/esm2022/components/data-list/data-list.tokens.mjs +0 -18
  329. package/esm2022/components/data-list/index.mjs +0 -9
  330. package/esm2022/components/data-list/opt-group.directive.mjs +0 -21
  331. package/esm2022/components/data-list/option/option-content.mjs +0 -36
  332. package/esm2022/components/data-list/option/option-legacy.component.mjs +0 -90
  333. package/esm2022/components/data-list/option/option.directive.mjs +0 -109
  334. package/esm2022/components/data-list/taiga-ui-core-components-data-list.mjs +0 -5
  335. package/esm2022/components/dialog/active-zone-adapter.directive.mjs +0 -37
  336. package/esm2022/components/dialog/dialog-close.service.mjs +0 -41
  337. package/esm2022/components/dialog/dialog.component.mjs +0 -63
  338. package/esm2022/components/dialog/dialog.directive.mjs +0 -21
  339. package/esm2022/components/dialog/dialog.factory.mjs +0 -15
  340. package/esm2022/components/dialog/dialog.interfaces.mjs +0 -2
  341. package/esm2022/components/dialog/dialog.service.mjs +0 -18
  342. package/esm2022/components/dialog/dialog.tokens.mjs +0 -33
  343. package/esm2022/components/dialog/dialogs.component.mjs +0 -31
  344. package/esm2022/components/dialog/index.mjs +0 -8
  345. package/esm2022/components/dialog/taiga-ui-core-components-dialog.mjs +0 -5
  346. package/esm2022/components/error/error.component.mjs +0 -34
  347. package/esm2022/components/error/index.mjs +0 -2
  348. package/esm2022/components/error/taiga-ui-core-components-error.mjs +0 -5
  349. package/esm2022/components/expand/expand-content.directive.mjs +0 -18
  350. package/esm2022/components/expand/expand.component.mjs +0 -124
  351. package/esm2022/components/expand/expand.mjs +0 -7
  352. package/esm2022/components/expand/index.mjs +0 -4
  353. package/esm2022/components/expand/taiga-ui-core-components-expand.mjs +0 -5
  354. package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -71
  355. package/esm2022/components/fullscreen/index.mjs +0 -2
  356. package/esm2022/components/fullscreen/taiga-ui-core-components-fullscreen.mjs +0 -5
  357. package/esm2022/components/icon/icon.component.mjs +0 -44
  358. package/esm2022/components/icon/icon.pipe.mjs +0 -19
  359. package/esm2022/components/icon/index.mjs +0 -3
  360. package/esm2022/components/icon/taiga-ui-core-components-icon.mjs +0 -5
  361. package/esm2022/components/index.mjs +0 -18
  362. package/esm2022/components/label/index.mjs +0 -2
  363. package/esm2022/components/label/label.directive.mjs +0 -41
  364. package/esm2022/components/label/taiga-ui-core-components-label.mjs +0 -5
  365. package/esm2022/components/link/index.mjs +0 -3
  366. package/esm2022/components/link/link.directive.mjs +0 -47
  367. package/esm2022/components/link/link.options.mjs +0 -13
  368. package/esm2022/components/link/taiga-ui-core-components-link.mjs +0 -5
  369. package/esm2022/components/loader/index.mjs +0 -3
  370. package/esm2022/components/loader/loader.component.mjs +0 -46
  371. package/esm2022/components/loader/loader.options.mjs +0 -18
  372. package/esm2022/components/loader/taiga-ui-core-components-loader.mjs +0 -5
  373. package/esm2022/components/notification/index.mjs +0 -3
  374. package/esm2022/components/notification/notification.directive.mjs +0 -81
  375. package/esm2022/components/notification/notification.options.mjs +0 -23
  376. package/esm2022/components/notification/taiga-ui-core-components-notification.mjs +0 -5
  377. package/esm2022/components/root/index.mjs +0 -2
  378. package/esm2022/components/root/root.component.mjs +0 -87
  379. package/esm2022/components/root/taiga-ui-core-components-root.mjs +0 -5
  380. package/esm2022/components/scrollbar/index.mjs +0 -9
  381. package/esm2022/components/scrollbar/scroll-controls.component.mjs +0 -32
  382. package/esm2022/components/scrollbar/scroll-into-view.directive.mjs +0 -43
  383. package/esm2022/components/scrollbar/scroll-ref.directive.mjs +0 -19
  384. package/esm2022/components/scrollbar/scrollable.directive.mjs +0 -26
  385. package/esm2022/components/scrollbar/scrollbar.component.mjs +0 -72
  386. package/esm2022/components/scrollbar/scrollbar.directive.mjs +0 -93
  387. package/esm2022/components/scrollbar/scrollbar.options.mjs +0 -6
  388. package/esm2022/components/scrollbar/scrollbar.service.mjs +0 -46
  389. package/esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs +0 -5
  390. package/esm2022/components/spin-button/index.mjs +0 -2
  391. package/esm2022/components/spin-button/spin-button.component.mjs +0 -51
  392. package/esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs +0 -5
  393. package/esm2022/components/taiga-ui-core-components.mjs +0 -5
  394. package/esm2022/components/textfield/index.mjs +0 -16
  395. package/esm2022/components/textfield/select-like.directive.mjs +0 -44
  396. package/esm2022/components/textfield/select.directive.mjs +0 -64
  397. package/esm2022/components/textfield/taiga-ui-core-components-textfield.mjs +0 -5
  398. package/esm2022/components/textfield/textfield-accessor.mjs +0 -7
  399. package/esm2022/components/textfield/textfield-auxiliary.mjs +0 -7
  400. package/esm2022/components/textfield/textfield-content.directive.mjs +0 -22
  401. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +0 -43
  402. package/esm2022/components/textfield/textfield-icon.mjs +0 -10
  403. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +0 -34
  404. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +0 -137
  405. package/esm2022/components/textfield/textfield.component.mjs +0 -183
  406. package/esm2022/components/textfield/textfield.directive.mjs +0 -134
  407. package/esm2022/components/textfield/textfield.mjs +0 -19
  408. package/esm2022/components/textfield/textfield.options.mjs +0 -63
  409. package/esm2022/components/textfield/with-native-picker.directive.mjs +0 -24
  410. package/esm2022/directives/appearance/appearance.bindings.mjs +0 -15
  411. package/esm2022/directives/appearance/appearance.directive.mjs +0 -79
  412. package/esm2022/directives/appearance/appearance.options.mjs +0 -12
  413. package/esm2022/directives/appearance/index.mjs +0 -5
  414. package/esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs +0 -5
  415. package/esm2022/directives/appearance/with-appearance.mjs +0 -27
  416. package/esm2022/directives/date-format/date-format.directive.mjs +0 -31
  417. package/esm2022/directives/date-format/index.mjs +0 -2
  418. package/esm2022/directives/date-format/taiga-ui-core-directives-date-format.mjs +0 -5
  419. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +0 -76
  420. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +0 -70
  421. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +0 -17
  422. package/esm2022/directives/dropdown/dropdown-limit-width.mjs +0 -37
  423. package/esm2022/directives/dropdown/dropdown-manual.directive.mjs +0 -27
  424. package/esm2022/directives/dropdown/dropdown-open-legacy.directive.mjs +0 -33
  425. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +0 -169
  426. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +0 -73
  427. package/esm2022/directives/dropdown/dropdown-portal.directive.mjs +0 -34
  428. package/esm2022/directives/dropdown/dropdown-position-sided.directive.mjs +0 -69
  429. package/esm2022/directives/dropdown/dropdown-position.directive.mjs +0 -88
  430. package/esm2022/directives/dropdown/dropdown-selection.directive.mjs +0 -159
  431. package/esm2022/directives/dropdown/dropdown.bindings.mjs +0 -19
  432. package/esm2022/directives/dropdown/dropdown.component.mjs +0 -92
  433. package/esm2022/directives/dropdown/dropdown.directive.mjs +0 -110
  434. package/esm2022/directives/dropdown/dropdown.driver.mjs +0 -32
  435. package/esm2022/directives/dropdown/dropdown.mjs +0 -29
  436. package/esm2022/directives/dropdown/dropdown.providers.mjs +0 -10
  437. package/esm2022/directives/dropdown/dropdown.service.mjs +0 -15
  438. package/esm2022/directives/dropdown/dropdowns.component.mjs +0 -24
  439. package/esm2022/directives/dropdown/index.mjs +0 -22
  440. package/esm2022/directives/dropdown/taiga-ui-core-directives-dropdown.mjs +0 -5
  441. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +0 -23
  442. package/esm2022/directives/group/group.directive.mjs +0 -53
  443. package/esm2022/directives/group/group.options.mjs +0 -15
  444. package/esm2022/directives/group/index.mjs +0 -3
  445. package/esm2022/directives/group/taiga-ui-core-directives-group.mjs +0 -5
  446. package/esm2022/directives/hint/hint-describe.directive.mjs +0 -50
  447. package/esm2022/directives/hint/hint-driver.directive.mjs +0 -19
  448. package/esm2022/directives/hint/hint-host.directive.mjs +0 -27
  449. package/esm2022/directives/hint/hint-hover.directive.mjs +0 -59
  450. package/esm2022/directives/hint/hint-manual.directive.mjs +0 -33
  451. package/esm2022/directives/hint/hint-options.directive.mjs +0 -86
  452. package/esm2022/directives/hint/hint-overflow.directive.mjs +0 -38
  453. package/esm2022/directives/hint/hint-pointer.directive.mjs +0 -33
  454. package/esm2022/directives/hint/hint-position.directive.mjs +0 -115
  455. package/esm2022/directives/hint/hint-unstyled.component.mjs +0 -39
  456. package/esm2022/directives/hint/hint.component.mjs +0 -127
  457. package/esm2022/directives/hint/hint.directive.mjs +0 -99
  458. package/esm2022/directives/hint/hint.mjs +0 -27
  459. package/esm2022/directives/hint/hint.providers.mjs +0 -9
  460. package/esm2022/directives/hint/hint.service.mjs +0 -29
  461. package/esm2022/directives/hint/hints.component.mjs +0 -34
  462. package/esm2022/directives/hint/index.mjs +0 -17
  463. package/esm2022/directives/hint/taiga-ui-core-directives-hint.mjs +0 -5
  464. package/esm2022/directives/icons/icons.directive.mjs +0 -66
  465. package/esm2022/directives/icons/index.mjs +0 -3
  466. package/esm2022/directives/icons/taiga-ui-core-directives-icons.mjs +0 -5
  467. package/esm2022/directives/icons/with-icons.mjs +0 -22
  468. package/esm2022/directives/index.mjs +0 -12
  469. package/esm2022/directives/items-handlers/index.mjs +0 -4
  470. package/esm2022/directives/items-handlers/items-handlers.directive.mjs +0 -63
  471. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +0 -27
  472. package/esm2022/directives/items-handlers/items-handlers.validator.mjs +0 -32
  473. package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +0 -5
  474. package/esm2022/directives/number-format/index.mjs +0 -2
  475. package/esm2022/directives/number-format/number-format.directive.mjs +0 -31
  476. package/esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs +0 -5
  477. package/esm2022/directives/popup/index.mjs +0 -4
  478. package/esm2022/directives/popup/popup.directive.mjs +0 -31
  479. package/esm2022/directives/popup/popup.service.mjs +0 -15
  480. package/esm2022/directives/popup/popups.component.mjs +0 -20
  481. package/esm2022/directives/popup/taiga-ui-core-directives-popup.mjs +0 -5
  482. package/esm2022/directives/surface/index.mjs +0 -2
  483. package/esm2022/directives/surface/surface.directive.mjs +0 -44
  484. package/esm2022/directives/surface/taiga-ui-core-directives-surface.mjs +0 -5
  485. package/esm2022/directives/taiga-ui-core-directives.mjs +0 -5
  486. package/esm2022/directives/title/index.mjs +0 -2
  487. package/esm2022/directives/title/taiga-ui-core-directives-title.mjs +0 -5
  488. package/esm2022/directives/title/title.directive.mjs +0 -37
  489. package/esm2022/index.mjs +0 -9
  490. package/esm2022/pipes/auto-color/auto-color.pipe.mjs +0 -19
  491. package/esm2022/pipes/auto-color/index.mjs +0 -2
  492. package/esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs +0 -5
  493. package/esm2022/pipes/calendar-sheet/calendar-sheet.pipe.mjs +0 -54
  494. package/esm2022/pipes/calendar-sheet/index.mjs +0 -2
  495. package/esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs +0 -5
  496. package/esm2022/pipes/calendar-sheet/utils.mjs +0 -36
  497. package/esm2022/pipes/fallback-src/fallback-src.pipe.mjs +0 -23
  498. package/esm2022/pipes/fallback-src/index.mjs +0 -2
  499. package/esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs +0 -5
  500. package/esm2022/pipes/flag/flag.pipe.mjs +0 -26
  501. package/esm2022/pipes/flag/index.mjs +0 -2
  502. package/esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs +0 -5
  503. package/esm2022/pipes/format-date/format-date.pipe.mjs +0 -22
  504. package/esm2022/pipes/format-date/index.mjs +0 -2
  505. package/esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs +0 -5
  506. package/esm2022/pipes/format-number/format-number.pipe.mjs +0 -36
  507. package/esm2022/pipes/format-number/index.mjs +0 -2
  508. package/esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs +0 -5
  509. package/esm2022/pipes/index.mjs +0 -10
  510. package/esm2022/pipes/initials/index.mjs +0 -2
  511. package/esm2022/pipes/initials/initials.pipe.mjs +0 -23
  512. package/esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs +0 -5
  513. package/esm2022/pipes/month/index.mjs +0 -2
  514. package/esm2022/pipes/month/month.pipe.mjs +0 -23
  515. package/esm2022/pipes/month/taiga-ui-core-pipes-month.mjs +0 -5
  516. package/esm2022/pipes/order-week-days/index.mjs +0 -2
  517. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +0 -30
  518. package/esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs +0 -5
  519. package/esm2022/pipes/taiga-ui-core-pipes.mjs +0 -5
  520. package/esm2022/services/breakpoint.service.mjs +0 -31
  521. package/esm2022/services/dark-theme.service.mjs +0 -24
  522. package/esm2022/services/format-date.service.mjs +0 -24
  523. package/esm2022/services/index.mjs +0 -6
  524. package/esm2022/services/position.service.mjs +0 -26
  525. package/esm2022/services/taiga-ui-core-services.mjs +0 -5
  526. package/esm2022/services/visual-viewport.service.mjs +0 -29
  527. package/esm2022/taiga-ui-core.mjs +0 -5
  528. package/esm2022/tokens/animations-speed.mjs +0 -9
  529. package/esm2022/tokens/assets-path.mjs +0 -11
  530. package/esm2022/tokens/auxiliary.mjs +0 -9
  531. package/esm2022/tokens/common-icons.mjs +0 -18
  532. package/esm2022/tokens/dark-mode.mjs +0 -43
  533. package/esm2022/tokens/date-format.mjs +0 -20
  534. package/esm2022/tokens/day-type-handler.mjs +0 -8
  535. package/esm2022/tokens/first-day-of-week.mjs +0 -9
  536. package/esm2022/tokens/i18n.mjs +0 -45
  537. package/esm2022/tokens/icon-resolver.mjs +0 -44
  538. package/esm2022/tokens/icon.mjs +0 -8
  539. package/esm2022/tokens/icons.mjs +0 -21
  540. package/esm2022/tokens/index.mjs +0 -21
  541. package/esm2022/tokens/media.mjs +0 -12
  542. package/esm2022/tokens/number-format.mjs +0 -24
  543. package/esm2022/tokens/reduced-motion.mjs +0 -7
  544. package/esm2022/tokens/scroll-ref.mjs +0 -6
  545. package/esm2022/tokens/selection-stream.mjs +0 -14
  546. package/esm2022/tokens/spin-icons.mjs +0 -8
  547. package/esm2022/tokens/taiga-ui-core-tokens.mjs +0 -5
  548. package/esm2022/tokens/theme.mjs +0 -5
  549. package/esm2022/tokens/viewport.mjs +0 -35
  550. package/esm2022/types/direction.mjs +0 -2
  551. package/esm2022/types/index.mjs +0 -2
  552. package/esm2022/types/interactive-state.mjs +0 -2
  553. package/esm2022/types/orientation.mjs +0 -2
  554. package/esm2022/types/point.mjs +0 -2
  555. package/esm2022/types/portal-item.mjs +0 -2
  556. package/esm2022/types/range-state.mjs +0 -2
  557. package/esm2022/types/size.mjs +0 -13
  558. package/esm2022/types/taiga-ui-core-types.mjs +0 -5
  559. package/esm2022/types/value-content-context.mjs +0 -2
  560. package/esm2022/utils/dom/check-fixed-position.mjs +0 -9
  561. package/esm2022/utils/dom/get-viewport.mjs +0 -24
  562. package/esm2022/utils/dom/get-word-range.mjs +0 -51
  563. package/esm2022/utils/dom/index.mjs +0 -4
  564. package/esm2022/utils/dom/taiga-ui-core-utils-dom.mjs +0 -5
  565. package/esm2022/utils/format/format-number.mjs +0 -47
  566. package/esm2022/utils/format/get-fractional-part-padded.mjs +0 -16
  567. package/esm2022/utils/format/index.mjs +0 -5
  568. package/esm2022/utils/format/number-to-string-without-exp.mjs +0 -18
  569. package/esm2022/utils/format/string-hash-to-hsl.mjs +0 -21
  570. package/esm2022/utils/format/taiga-ui-core-utils-format.mjs +0 -5
  571. package/esm2022/utils/index.mjs +0 -4
  572. package/esm2022/utils/miscellaneous/font-scaling.mjs +0 -21
  573. package/esm2022/utils/miscellaneous/index.mjs +0 -7
  574. package/esm2022/utils/miscellaneous/is-editing-key.mjs +0 -18
  575. package/esm2022/utils/miscellaneous/is-obscured.mjs +0 -8
  576. package/esm2022/utils/miscellaneous/override-options.mjs +0 -11
  577. package/esm2022/utils/miscellaneous/size-bigger.mjs +0 -19
  578. package/esm2022/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs +0 -5
  579. package/esm2022/utils/miscellaneous/to-animation-options.mjs +0 -16
  580. package/esm2022/utils/taiga-ui-core-utils.mjs +0 -5
  581. package/fesm2022/taiga-ui-core-animations.mjs +0 -370
  582. package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
  583. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -149
  584. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  585. package/fesm2022/taiga-ui-core-components-dialog.mjs +0 -230
  586. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +0 -1
  587. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -77
  588. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  589. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +0 -1
  590. package/fesm2022/taiga-ui-core-directives-hint.mjs +0 -713
  591. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +0 -1
  592. package/fesm2022/taiga-ui-core-directives-popup.mjs +0 -63
  593. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +0 -1
  594. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  595. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  596. package/fesm2022/taiga-ui-core-directives-title.mjs +0 -43
  597. package/fesm2022/taiga-ui-core-directives-title.mjs.map +0 -1
  598. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -25
  599. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +0 -1
  600. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -94
  601. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +0 -1
  602. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  603. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  604. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -32
  605. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +0 -1
  606. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -28
  607. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +0 -1
  608. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -29
  609. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +0 -1
  610. package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -29
  611. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
  612. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -36
  613. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +0 -1
  614. package/pipes/auto-color/auto-color.pipe.d.ts +0 -7
  615. package/pipes/auto-color/index.d.ts +0 -1
  616. package/pipes/calendar-sheet/index.d.ts +0 -1
  617. package/pipes/calendar-sheet/utils.d.ts +0 -20
  618. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  619. package/pipes/fallback-src/index.d.ts +0 -1
  620. package/pipes/flag/flag.pipe.d.ts +0 -14
  621. package/pipes/flag/index.d.ts +0 -1
  622. package/pipes/format-date/format-date.pipe.d.ts +0 -9
  623. package/pipes/format-date/index.d.ts +0 -1
  624. package/pipes/initials/index.d.ts +0 -1
  625. package/pipes/initials/initials.pipe.d.ts +0 -7
  626. package/pipes/month/index.d.ts +0 -1
  627. package/pipes/month/month.pipe.d.ts +0 -10
  628. package/pipes/order-week-days/index.d.ts +0 -1
  629. package/services/breakpoint.service.d.ts +0 -16
  630. package/services/dark-theme.service.d.ts +0 -10
  631. package/services/format-date.service.d.ts +0 -8
  632. package/styles/mixins/wrapper.less +0 -64
  633. package/styles/mixins/wrapper.scss +0 -61
  634. package/styles/theme/appearance/opposite.less +0 -17
  635. package/styles/theme/wrapper.less +0 -211
  636. package/tokens/day-type-handler.d.ts +0 -7
  637. package/tokens/first-day-of-week.d.ts +0 -5
  638. package/tokens/scroll-ref.d.ts +0 -2
  639. package/tokens/spin-icons.d.ts +0 -6
  640. package/types/portal-item.d.ts +0 -9
  641. package/types/range-state.d.ts +0 -4
  642. package/types/value-content-context.d.ts +0 -4
  643. package/utils/format/string-hash-to-hsl.d.ts +0 -6
  644. package/utils/miscellaneous/to-animation-options.d.ts +0 -4
  645. /package/{directives → components}/title/index.d.ts +0 -0
  646. /package/{directives → portals}/dropdown/dropdown-limit-width.d.ts +0 -0
  647. /package/{directives → portals}/dropdown/dropdown.component.d.ts +0 -0
  648. /package/{directives → portals}/dropdown/dropdown.driver.d.ts +0 -0
  649. /package/{directives → portals}/dropdown/dropdown.providers.d.ts +0 -0
  650. /package/{directives → portals}/dropdown/with-dropdown-open.directive.d.ts +0 -0
  651. /package/{directives → portals}/hint/hint-driver.directive.d.ts +0 -0
  652. /package/{directives → portals}/hint/hint-pointer.directive.d.ts +0 -0
  653. /package/{directives → portals}/hint/hint.providers.d.ts +0 -0
  654. /package/{directives → portals}/popup/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-core-portals-hint.mjs","sources":["../../../projects/core/portals/hint/hint.providers.ts","../../../projects/core/portals/hint/hint-driver.directive.ts","../../../projects/core/portals/hint/hint-options.directive.ts","../../../projects/core/portals/hint/hint-hover.directive.ts","../../../projects/core/portals/hint/hint-position.directive.ts","../../../projects/core/portals/hint/hint.directive.ts","../../../projects/core/portals/hint/hint-pointer.directive.ts","../../../projects/core/portals/hint/hint-unstyled.component.ts","../../../projects/core/portals/hint/hint.component.ts","../../../projects/core/portals/hint/hint-describe.directive.ts","../../../projects/core/portals/hint/hint-host.directive.ts","../../../projects/core/portals/hint/hint-manual.directive.ts","../../../projects/core/portals/hint/hint-overflow.directive.ts","../../../projects/core/portals/hint/hint.ts","../../../projects/core/portals/hint/taiga-ui-core-portals-hint.ts"],"sourcesContent":["import {InjectionToken, type Type} from '@angular/core';\n\nimport {TuiHintComponent} from './hint.component';\n\n/**\n * A component to display a hint\n */\nexport const TUI_HINT_COMPONENT = new InjectionToken<Type<unknown>>(\n ngDevMode ? 'TUI_HINT_COMPONENT' : '',\n {\n factory: () => TuiHintComponent,\n },\n);\n","import {Directive} from '@angular/core';\nimport {TuiDriverDirective} from '@taiga-ui/core/classes';\n\n@Directive()\nexport class TuiHintDriver extends TuiDriverDirective {\n public readonly type = 'hint';\n}\n","import {type FactoryProvider, InjectionToken, Optional, SkipSelf} from '@angular/core';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {tuiOverrideOptions} from '@taiga-ui/core/utils/miscellaneous';\n\nexport type TuiHintDirection =\n | 'bottom-end'\n | 'bottom-start'\n | 'bottom'\n | 'end-bottom'\n | 'end-top'\n | 'end'\n | 'start-bottom'\n | 'start-top'\n | 'start'\n | 'top-end'\n | 'top-start'\n | 'top';\n\nexport const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[] = [\n 'bottom-start',\n 'bottom',\n 'bottom-end',\n 'top-start',\n 'top',\n 'top-end',\n 'start-top',\n 'start',\n 'start-bottom',\n 'end-top',\n 'end',\n 'end-bottom',\n];\n\nexport interface TuiHintOptions extends TuiAppearanceOptions {\n readonly direction: TuiHintDirection | TuiHintDirection[];\n readonly hideDelay: number;\n readonly icon: string;\n readonly showDelay: number;\n}\n\n/** Default values for hint options */\nexport const TUI_HINT_DEFAULT_OPTIONS: TuiHintOptions = {\n direction: 'bottom-start',\n showDelay: 500,\n hideDelay: 200,\n appearance: '',\n /** TODO @deprecated use {@link TUI_TOOLTIP_OPTIONS} instead **/\n icon: '@tui.circle-help',\n};\n\n/**\n * Default parameters for hint directive\n */\nexport const TUI_HINT_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_HINT_OPTIONS' : '', {\n factory: () => TUI_HINT_DEFAULT_OPTIONS,\n});\n\nexport const tuiHintOptionsProvider: (\n options: Partial<TuiHintOptions>,\n) => FactoryProvider = (override: Partial<TuiHintOptions>) => ({\n provide: TUI_HINT_OPTIONS,\n deps: [[new Optional(), new SkipSelf(), TUI_HINT_OPTIONS]],\n useFactory: tuiOverrideOptions(override, TUI_HINT_DEFAULT_OPTIONS),\n});\n","import {Directive, inject, input} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {TuiHoveredService} from '@taiga-ui/cdk/directives/hovered';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiAsDriver, TuiDriver} from '@taiga-ui/core/classes';\nimport {tuiIsObscured} from '@taiga-ui/core/utils/miscellaneous';\nimport {\n delay,\n filter,\n map,\n merge,\n of,\n repeat,\n Subject,\n switchMap,\n takeUntil,\n tap,\n} from 'rxjs';\n\nimport {TUI_HINT_OPTIONS} from './hint-options.directive';\n\n@Directive({\n providers: [tuiAsDriver(TuiHintHover), TuiHoveredService],\n exportAs: 'tuiHintHover',\n})\nexport class TuiHintHover extends TuiDriver {\n private readonly isMobile = inject(WA_IS_MOBILE);\n private readonly el = tuiInjectElement();\n private readonly hovered$ = inject(TuiHoveredService);\n private readonly options = inject(TUI_HINT_OPTIONS);\n private visible = false;\n private readonly toggle$ = new Subject<boolean>();\n private readonly stream$ = merge(\n this.toggle$.pipe(\n switchMap((show) =>\n this.isMobile\n ? of(show)\n : of(show).pipe(delay(show ? 0 : this.hideDelay())),\n ),\n takeUntil(this.hovered$),\n repeat(),\n ),\n this.hovered$.pipe(\n switchMap((show) =>\n this.isMobile\n ? of(show).pipe(delay(0))\n : of(show).pipe(delay(show ? this.showDelay() : this.hideDelay())),\n ),\n takeUntil(this.toggle$),\n repeat(),\n ),\n ).pipe(\n filter(() => this.enabled),\n map(\n (value) =>\n value &&\n (this.el.hasAttribute('tuiHintPointer') || !tuiIsObscured(this.el)),\n ),\n tap((visible) => {\n this.visible = visible;\n }),\n );\n\n private readonly parent = inject(TuiHintHover, {\n optional: true,\n skipSelf: true,\n });\n\n public readonly showDelay = input(this.options.showDelay, {\n alias: 'tuiHintShowDelay',\n });\n\n public readonly hideDelay = input(this.options.hideDelay, {\n alias: 'tuiHintHideDelay',\n });\n\n public readonly type = 'hint';\n\n public enabled = true;\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n public toggle(visible = !this.visible): void {\n this.toggle$.next(visible);\n this.parent?.toggle(visible);\n }\n\n public close(): void {\n this.toggle$.next(false);\n }\n}\n","import {Directive, inject, input} from '@angular/core';\nimport {outputFromObservable} from '@angular/core/rxjs-interop';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n tuiFallbackAccessor,\n TuiPositionAccessor,\n TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TUI_VIEWPORT} from '@taiga-ui/core/tokens';\nimport {type TuiPoint} from '@taiga-ui/core/types';\nimport {distinctUntilChanged, Subject} from 'rxjs';\n\nimport {\n TUI_HINT_DIRECTIONS,\n TUI_HINT_OPTIONS,\n type TuiHintDirection,\n} from './hint-options.directive';\n\nconst GAP = 8;\nconst ARROW_OFFSET = 24;\nconst TOP = 1;\nconst LEFT = 0;\n\n@Directive()\nexport class TuiHintPosition extends TuiPositionAccessor {\n private readonly el = tuiInjectElement();\n private readonly viewport = inject(TUI_VIEWPORT);\n private readonly directionChange = new Subject<TuiHintDirection>();\n private readonly accessor = tuiFallbackAccessor<TuiRectAccessor>('hint')(\n inject<any>(TuiRectAccessor, {optional: true}),\n {getClientRect: () => this.el.getBoundingClientRect()},\n );\n\n private readonly points: Record<TuiHintDirection, [number, number]> =\n TUI_HINT_DIRECTIONS.reduce(\n (acc, direction) => ({...acc, [direction]: [0, 0]}),\n {} as Record<TuiHintDirection, [number, number]>,\n );\n\n public readonly direction = input(inject(TUI_HINT_OPTIONS).direction, {\n alias: 'tuiHintDirection',\n });\n\n public readonly offset = input(inject(WA_IS_MOBILE) ? 16 : 8, {\n alias: 'tuiHintOffset',\n });\n\n public readonly tuiHintDirectionChange = outputFromObservable(\n this.directionChange.pipe(distinctUntilChanged()),\n );\n\n public readonly type = 'hint';\n\n public getPosition({width, height}: DOMRect): TuiPoint {\n const direction = this.direction();\n const hostRect = this.accessor.getClientRect();\n const leftCenter = hostRect.left + hostRect.width / 2;\n const topCenter = hostRect.top + hostRect.height / 2;\n const rtl = this.el.matches('[dir=\"rtl\"] :scope');\n\n this.points['top-start'][TOP] = hostRect.top - height - this.offset();\n this.points['top-start'][LEFT] = leftCenter - width + ARROW_OFFSET;\n this.points.top[TOP] = this.points['top-start'][TOP];\n this.points.top[LEFT] = leftCenter - width / 2;\n this.points['top-end'][TOP] = this.points['top-start'][TOP];\n this.points['top-end'][LEFT] = leftCenter - ARROW_OFFSET;\n\n this.points['bottom-start'][TOP] = hostRect.bottom + this.offset();\n this.points['bottom-start'][LEFT] = this.points['top-start'][LEFT];\n this.points.bottom[TOP] = this.points['bottom-start'][TOP];\n this.points.bottom[LEFT] = this.points.top[LEFT];\n this.points['bottom-end'][TOP] = this.points['bottom-start'][TOP];\n this.points['bottom-end'][LEFT] = this.points['top-end'][LEFT];\n\n this.points['start-top'][TOP] = topCenter - height + ARROW_OFFSET;\n this.points['start-top'][LEFT] = hostRect.left - width - this.offset();\n this.points.start[TOP] = topCenter - height / 2;\n this.points.start[LEFT] = this.points['start-top'][LEFT];\n this.points['start-bottom'][TOP] = topCenter - ARROW_OFFSET;\n this.points['start-bottom'][LEFT] = this.points['start-top'][LEFT];\n\n this.points['end-top'][TOP] = this.points['start-top'][TOP];\n this.points['end-top'][LEFT] = hostRect.right + this.offset();\n this.points.end[TOP] = this.points.start[TOP];\n this.points.end[LEFT] = this.points['end-top'][LEFT];\n this.points['end-bottom'][TOP] = this.points['start-bottom'][TOP];\n this.points['end-bottom'][LEFT] = this.points['end-top'][LEFT];\n\n const array = Array.isArray(direction) ? direction : [direction];\n const priority = array.map((direction) => adjust(direction, rtl));\n const updated =\n priority\n .concat(TUI_HINT_DIRECTIONS)\n .find((dir) => this.checkPosition(this.points[dir], width, height)) ||\n this.fallback;\n\n this.directionChange.next(adjust(updated, rtl));\n\n return this.points[updated];\n }\n\n private get fallback(): TuiHintDirection {\n return this.points.top[TOP] >\n this.viewport.getClientRect().bottom - this.points.bottom[TOP]\n ? 'top'\n : 'bottom';\n }\n\n private checkPosition([left, top]: TuiPoint, width: number, height: number): boolean {\n const viewport = this.viewport.getClientRect();\n\n return (\n top > viewport.top + GAP &&\n left > viewport.left + GAP &&\n top + height < viewport.bottom - GAP &&\n left + width < viewport.right - GAP\n );\n }\n}\n\nfunction adjust(direction: TuiHintDirection, rtl: boolean): TuiHintDirection {\n if (rtl && direction.includes('left')) {\n return direction.replace('left', 'right') as TuiHintDirection;\n }\n\n if (rtl && direction.includes('right')) {\n return direction.replace('right', 'left') as TuiHintDirection;\n }\n\n return direction;\n}\n","import {\n type ComponentRef,\n Directive,\n inject,\n INJECTOR,\n input,\n type OnChanges,\n type OnDestroy,\n output,\n} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {\n tuiAsVehicle,\n type TuiRectAccessor,\n type TuiVehicle,\n} from '@taiga-ui/core/classes';\nimport {TuiPopupService} from '@taiga-ui/core/portals/popup';\nimport {PolymorpheusComponent, type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nimport {TUI_HINT_COMPONENT} from './hint.providers';\nimport {TuiHintDriver} from './hint-driver.directive';\nimport {TuiHintHover} from './hint-hover.directive';\nimport {TUI_HINT_OPTIONS} from './hint-options.directive';\nimport {TuiHintPosition} from './hint-position.directive';\n\n@Directive({\n selector: '[tuiHint]:not(ng-container):not(ng-template)',\n providers: [\n tuiAsVehicle(TuiHintDirective),\n {\n provide: PolymorpheusComponent,\n deps: [TUI_HINT_COMPONENT, INJECTOR],\n useClass: PolymorpheusComponent,\n },\n ],\n hostDirectives: [\n TuiHintDriver,\n {\n directive: TuiHintHover,\n inputs: ['tuiHintHideDelay', 'tuiHintShowDelay'],\n },\n {\n directive: TuiHintPosition,\n inputs: ['tuiHintDirection', 'tuiHintOffset'],\n outputs: ['tuiHintDirectionChange'],\n },\n ],\n})\nexport class TuiHintDirective<C>\n implements OnDestroy, OnChanges, TuiRectAccessor, TuiVehicle\n{\n private readonly service = inject(TuiPopupService);\n private ref?: ComponentRef<unknown>;\n\n public readonly content = input<PolymorpheusContent<C>>(null, {alias: 'tuiHint'});\n public readonly context = input<C>(undefined, {alias: 'tuiHintContext'});\n public readonly appearance = input(inject(TUI_HINT_OPTIONS).appearance, {\n alias: 'tuiHintAppearance',\n });\n\n public readonly visible = output<boolean>({alias: 'tuiHintVisible'});\n\n public component = inject(PolymorpheusComponent<unknown>);\n public readonly el = tuiInjectElement();\n public readonly type = 'hint';\n\n public ngOnChanges(): void {\n if (!this.content()) {\n this.toggle(false);\n }\n }\n\n public ngOnDestroy(): void {\n this.toggle(false);\n }\n\n public getClientRect(): DOMRect {\n return this.el.getBoundingClientRect();\n }\n\n public toggle(show: boolean): void {\n if (show && this.content() && !this.ref) {\n this.ref = this.service.add(this.component);\n this.visible.emit(true);\n } else if (this.ref) {\n this.ref.destroy();\n this.ref = undefined;\n this.visible.emit(false);\n }\n }\n}\n","import {Directive} from '@angular/core';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\nimport {tuiPointToClientRect} from '@taiga-ui/cdk/utils/dom';\nimport {\n tuiAsDriver,\n tuiAsRectAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\n\nimport {TuiHintHover} from './hint-hover.directive';\n\n@Directive({\n selector: '[tuiHint][tuiHintPointer]',\n providers: [tuiAsRectAccessor(TuiHintPointer), tuiAsDriver(TuiHintPointer)],\n host: {\n '(mousemove.zoneless)': 'onMove($event)',\n },\n})\nexport class TuiHintPointer extends TuiHintHover implements TuiRectAccessor {\n private currentRect = EMPTY_CLIENT_RECT;\n\n public getClientRect(): DOMRect {\n return this.currentRect;\n }\n\n protected onMove({clientX, clientY}: MouseEvent): void {\n this.currentRect = tuiPointToClientRect(clientX, clientY);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n INJECTOR,\n TemplateRef,\n} from '@angular/core';\nimport {tuiSetSignal} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {PolymorpheusComponent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TuiHintDirective} from './hint.directive';\n\n@Component({\n imports: [PolymorpheusOutlet],\n template: '<ng-container *polymorpheusOutlet=\"hint.content()\" />',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiHintUnstyledComponent {\n protected readonly hint = inject(TuiHintDirective);\n}\n\n@Directive({\n selector: 'ng-template[tuiHint]',\n})\nexport class TuiHintUnstyled<C> {\n constructor() {\n const hint = inject(TuiHintDirective<C>);\n\n tuiSetSignal(hint.content, inject(TemplateRef<C>));\n hint.component = new PolymorpheusComponent(\n TuiHintUnstyledComponent,\n inject(INJECTOR),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n inject,\n signal,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiHoveredService} from '@taiga-ui/cdk/directives/hovered';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiPositionAccessorFor,\n TuiRectAccessor,\n tuiRectAccessorFor,\n} from '@taiga-ui/core/classes';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiAppearance, tuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiPositionService, TuiVisualViewportService} from '@taiga-ui/core/services';\nimport {TUI_VIEWPORT} from '@taiga-ui/core/tokens';\nimport {tuiIsObscured} from '@taiga-ui/core/utils/miscellaneous';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {map, takeWhile} from 'rxjs';\n\nimport {TuiHintDirective} from './hint.directive';\nimport {TuiHintHover} from './hint-hover.directive';\nimport {TuiHintPointer} from './hint-pointer.directive';\nimport {TuiHintPosition} from './hint-position.directive';\nimport {TuiHintUnstyledComponent} from './hint-unstyled.component';\n\nexport const TUI_HINT_PROVIDERS = [\n TuiPositionService,\n TuiHoveredService,\n tuiPositionAccessorFor('hint', TuiHintPosition),\n tuiRectAccessorFor(\n 'hint',\n forwardRef(() => TuiHintDirective),\n ),\n];\n\nconst GAP = 8;\n\n@Component({\n selector: 'tui-hint',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-content />\n <span\n *polymorpheusOutlet=\"content() as text; context: hint.context()\"\n [innerHTML]=\"text\"\n ></span>\n `,\n styleUrl: './hint.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TUI_HINT_PROVIDERS, tuiButtonOptionsProvider({size: 's'})],\n hostDirectives: [TuiAppearance, TuiAnimated, TuiActiveZone],\n host: {\n role: 'tooltip',\n '[class._untouchable]': 'pointer',\n '[class._mobile]': 'isMobile',\n '[attr.tuiTheme]': 'theme',\n '(document:click)': 'onClick($event.target)',\n },\n})\nexport class TuiHintComponent {\n private readonly el = tuiInjectElement();\n private readonly hover = inject(TuiHintHover);\n private readonly vvs = inject(TuiVisualViewportService);\n private readonly viewport = inject(TUI_VIEWPORT);\n\n protected readonly pointer = inject(TuiHintPointer, {optional: true});\n protected readonly accessor = inject(TuiRectAccessor);\n protected readonly hint = inject(TuiHintDirective);\n protected readonly isMobile = inject(WA_IS_MOBILE);\n\n protected readonly content =\n this.hint.component.component === TuiHintUnstyledComponent\n ? signal('')\n : this.hint.content;\n\n protected readonly theme = this.hint.el\n .closest('[tuiTheme]')\n ?.getAttribute('tuiTheme');\n\n protected readonly appearance = tuiAppearance(this.hint.appearance);\n\n constructor() {\n inject(TuiPositionService)\n .pipe(\n takeWhile(() => this.hint.el.isConnected),\n map((point) => this.vvs.correct(point)),\n takeUntilDestroyed(),\n )\n .subscribe({\n next: (point) => this.update(...point),\n complete: () => this.hover.close(),\n });\n\n inject(TuiHoveredService)\n .pipe(takeUntilDestroyed())\n .subscribe((hover) => this.hover.toggle(hover));\n }\n\n protected onClick(target: HTMLElement): void {\n if (\n (!target.closest(this.el.tagName) && !this.hint.el.contains(target)) ||\n tuiIsObscured(this.hint.el)\n ) {\n this.hover.toggle(false);\n }\n }\n\n private apply(top: string, left: string, beakTop: number, beakLeft: number): void {\n this.el.style.setProperty('top', top);\n this.el.style.setProperty('left', left);\n this.el.style.setProperty('--t-top', `${beakTop}%`);\n this.el.style.setProperty('--t-left', `${beakLeft}%`);\n this.el.style.setProperty(\n '--t-rotate',\n !beakLeft || Math.ceil(beakLeft) === 100 ? '90deg' : '0deg',\n );\n }\n\n private update(left: number, top: number): void {\n const {clientHeight, clientWidth} = this.el;\n const rect = this.accessor.getClientRect();\n\n if (rect === EMPTY_CLIENT_RECT || !clientHeight || !clientWidth) {\n return;\n }\n\n const viewport = this.viewport.getClientRect();\n const safeLeft = tuiClamp(\n Math.max(GAP, left),\n viewport.left + GAP,\n Math.max(GAP, viewport.width + viewport.left - clientWidth - GAP),\n );\n\n const [beakTop, beakLeft] = this.vvs.correct([\n rect.top + rect.height / 2 - top,\n rect.left + rect.width / 2 - safeLeft,\n ]);\n\n this.apply(\n tuiPx(Math.round(top)),\n tuiPx(Math.round(safeLeft)),\n Math.round((tuiClamp(beakTop, 0, clientHeight) / clientHeight) * 100),\n Math.round((tuiClamp(beakLeft, 0, clientWidth) / clientWidth) * 100),\n );\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {computed, Directive, inject, input} from '@angular/core';\nimport {toObservable} from '@angular/core/rxjs-interop';\nimport {tuiIfMap, tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsFocused} from '@taiga-ui/cdk/utils/focus';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsDriver, TuiDriver} from '@taiga-ui/core/classes';\nimport {\n debounce,\n distinctUntilChanged,\n fromEvent,\n map,\n merge,\n of,\n skip,\n startWith,\n switchMap,\n timer,\n} from 'rxjs';\n\n@Directive({\n selector: '[tuiHintDescribe]',\n providers: [tuiAsDriver(TuiHintDescribe)],\n})\nexport class TuiHintDescribe extends TuiDriver {\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n\n protected readonly element = computed((id = this.id()) =>\n id ? this.doc.querySelector(`#${id}`) || this.el : this.el,\n );\n\n public readonly id = input<string | null | undefined>('', {alias: 'tuiHintDescribe'});\n public readonly type = 'hint';\n\n protected readonly stream$ = toObservable(this.id).pipe(\n distinctUntilChanged(),\n tuiIfMap(() => fromEvent(this.doc, 'keydown', {capture: true}), tuiIsPresent),\n switchMap(() =>\n this.focused\n ? of(false)\n : merge(\n tuiTypedFromEvent(this.doc, 'keyup'),\n tuiTypedFromEvent(this.element(), 'blur'),\n ).pipe(map(() => this.focused)),\n ),\n debounce((visible) => (visible ? timer(1000) : of(null))),\n startWith(false),\n distinctUntilChanged(),\n skip(1),\n tuiZoneOptimized(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n private get focused(): boolean {\n return tuiIsFocused(this.element());\n }\n}\n","import {Directive, input} from '@angular/core';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\nimport {tuiAsRectAccessor, TuiRectAccessor} from '@taiga-ui/core/classes';\n\n@Directive({\n selector: '[tuiHint][tuiHintHost]',\n providers: [tuiAsRectAccessor(TuiHintHost)],\n})\nexport class TuiHintHost extends TuiRectAccessor {\n public readonly tuiHintHost = input<HTMLElement>();\n public readonly type = 'hint';\n\n public getClientRect(): DOMRect {\n return this.tuiHintHost()?.getBoundingClientRect() || EMPTY_CLIENT_RECT;\n }\n}\n","import {Directive, inject, input, type OnChanges} from '@angular/core';\nimport {tuiAsDriver, TuiDriver} from '@taiga-ui/core/classes';\nimport {BehaviorSubject} from 'rxjs';\n\nimport {TuiHintHover} from './hint-hover.directive';\n\n@Directive({\n selector: '[tuiHint][tuiHintManual]',\n providers: [tuiAsDriver(TuiHintManual)],\n})\nexport class TuiHintManual extends TuiDriver implements OnChanges {\n private readonly hover = inject(TuiHintHover);\n private readonly stream$ = new BehaviorSubject(false);\n\n public readonly visible = input<boolean | null>(false, {alias: 'tuiHintManual'});\n public readonly type = 'hint';\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n this.hover.enabled = false;\n }\n\n public ngOnChanges(): void {\n this.stream$.next(!!this.visible());\n this.hover.enabled = this.visible() === null;\n }\n}\n","import {Directive, inject, input} from '@angular/core';\nimport {tuiSetSignal} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TuiHintDirective} from './hint.directive';\n\n@Directive({\n selector: '[tuiHintOverflow]',\n hostDirectives: [\n {\n directive: TuiHintDirective,\n inputs: ['tuiHintAppearance'],\n },\n ],\n host: {\n '(mouseenter)': 'onMouseEnter($event.currentTarget)',\n },\n})\nexport class TuiHintOverflow {\n private readonly hint = inject(TuiHintDirective);\n\n public readonly content = input<string | null>('', {alias: 'tuiHintOverflow'});\n\n protected onMouseEnter({scrollWidth, clientWidth, textContent}: Element): void {\n tuiSetSignal(\n this.hint.content,\n scrollWidth > clientWidth && this.content() !== null\n ? this.content() || textContent\n : '',\n );\n }\n}\n","import {TuiHintComponent} from './hint.component';\nimport {TuiHintDirective} from './hint.directive';\nimport {TuiHintDescribe} from './hint-describe.directive';\nimport {TuiHintDriver} from './hint-driver.directive';\nimport {TuiHintHost} from './hint-host.directive';\nimport {TuiHintHover} from './hint-hover.directive';\nimport {TuiHintManual} from './hint-manual.directive';\nimport {TuiHintOverflow} from './hint-overflow.directive';\nimport {TuiHintPointer} from './hint-pointer.directive';\nimport {TuiHintPosition} from './hint-position.directive';\nimport {TuiHintUnstyled} from './hint-unstyled.component';\n\nexport const TuiHint = [\n TuiHintComponent,\n TuiHintDirective,\n TuiHintUnstyled,\n TuiHintDriver,\n TuiHintPosition,\n TuiHintHover,\n TuiHintOverflow,\n TuiHintDescribe,\n TuiHintHost,\n TuiHintManual,\n TuiHintPointer,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["GAP","i1.TuiHintDriver","i2.TuiHintHover","i3.TuiHintPosition","i1.TuiHintDirective"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEG;AACU,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,SAAS,GAAG,oBAAoB,GAAG,EAAE,EACrC;AACI,IAAA,OAAO,EAAE,MAAM,gBAAgB;AAClC,CAAA;;ACPC,MAAO,aAAc,SAAQ,kBAAkB,CAAA;AADrD,IAAA,WAAA,GAAA;;QAEoB,IAAI,CAAA,IAAA,GAAG,MAAM;AAChC;+GAFY,aAAa,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAb,aA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,EAAA,SAAA,EAAAC,gBAAA,EAAA,MAAA,EAAA,CAAA,mBAAA,EAAA,mBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAZ3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,cAAc,EAAE;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;4BAC3B,MAAM,EAAE,CAAC,mBAAmB,CAAC;AAChC,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,cAAc,EAAE,oCAAoC;AACvD,qBAAA;AACJ,iBAAA;;;ACJY,MAAA,OAAO,GAAG;IACnB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,eAAe;IACf,YAAY;IACZ,eAAe;IACf,eAAe;IACf,WAAW;IACX,aAAa;IACb,cAAc;;;ACvBlB;;AAEG;;;;"}
@@ -0,0 +1,89 @@
1
+ import { DOCUMENT } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, signal, ChangeDetectionStrategy, ViewEncapsulation, Component, Injectable } from '@angular/core';
4
+ import * as i1 from '@taiga-ui/cdk/directives/active-zone';
5
+ import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
6
+ import * as i2 from '@taiga-ui/cdk/directives/focus-trap';
7
+ import { TuiFocusTrap } from '@taiga-ui/cdk/directives/focus-trap';
8
+ import { tuiGetFocused } from '@taiga-ui/cdk/utils/focus';
9
+ import * as i3 from '@taiga-ui/core/components/scrollbar';
10
+ import { TuiScrollControls, TuiScrollRef } from '@taiga-ui/core/components/scrollbar';
11
+ import { injectContext, PolymorpheusOutlet, PolymorpheusComponent } from '@taiga-ui/polymorpheus';
12
+ import { TUI_LEAVE } from '@taiga-ui/cdk/directives/animated';
13
+ import { TuiPortal } from '@taiga-ui/cdk/portals';
14
+ import { TuiPopupService } from '@taiga-ui/core/portals/popup';
15
+
16
+ class TuiModalComponent {
17
+ constructor() {
18
+ this.current = inject(TuiActiveZone);
19
+ this.parent = findActive(inject(TuiActiveZone, { skipSelf: true }), tuiGetFocused(inject(DOCUMENT)));
20
+ this.context = injectContext();
21
+ this.component = signal(null);
22
+ }
23
+ ngOnInit() {
24
+ this.current.tuiActiveZoneParentSetter = this.parent;
25
+ }
26
+ ngOnDestroy() {
27
+ this.current.tuiActiveZoneParentSetter = null;
28
+ }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiModalComponent, isStandalone: true, selector: "tui-modal", host: { attributes: { "role": "dialog", "aria-modal": "true" }, listeners: { "animationend.self": "$event.target.classList.remove(\"tui-enter\")" }, properties: { "attr.aria-labelledby": "context.id" }, classAttribute: "tui-enter" }, hostDirectives: [{ directive: i1.TuiActiveZone }, { directive: i2.TuiFocusTrap }, { directive: i3.TuiScrollRef }], ngImport: i0, template: `
31
+ <ng-container *polymorpheusOutlet="component(); context: context" />
32
+ <tui-scroll-controls class="t-scrollbars" />
33
+ `, isInline: true, styles: ["@keyframes tuiModalBackdrop{0%{-webkit-backdrop-filter:none;backdrop-filter:none}to{-webkit-backdrop-filter:brightness(.25);backdrop-filter:brightness(.25)}}tui-modal{transition-property:backdrop-filter;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;scrollbar-width:none;-ms-overflow-style:none;position:fixed;display:grid;inset:0;grid-template-rows:0;place-items:center;outline:none;overflow:auto;overscroll-behavior:none contain;transition-timing-function:linear;animation-timing-function:cubic-bezier(.14,.52,.35,.84)!important;perspective:10rem;transform:translateY(var(--t-root-top))}tui-modal::-webkit-scrollbar,tui-modal::-webkit-scrollbar-thumb{display:none}@supports not (selector(:has(*))) or not (selector(:nth-child(1 of *))){tui-modal:last-of-type:not(.tui-leave){-webkit-backdrop-filter:brightness(.25);backdrop-filter:brightness(.25)}tui-modal:last-of-type.tui-enter,tui-modal:last-of-type.tui-leave{animation-name:tuiModalBackdrop}}@supports (selector(:has(*))) and (selector(:nth-child(1 of *))){tui-modal:nth-last-child(1 of tui-modal:not(.tui-leave):not(:has(.tui-backdrop-hidden))){-webkit-backdrop-filter:brightness(.25);backdrop-filter:brightness(.25)}tui-modal:nth-last-child(1 of tui-modal:not(:has(.tui-backdrop-hidden))):is(.tui-enter,.tui-leave){animation-name:tuiModalBackdrop}}tui-modal:before{content:\"\";block-size:1px;inline-size:calc(100% + 1px)}tui-modal>.t-scrollbars{position:fixed;inset:0;margin:0;color:#747474}tui-modal>.t-scrollbars .t-bar_horizontal,tui-modal>.t-scrollbars .t-bar_vertical .t-thumb[style*=\"height: 100%\"]{display:none}tui-modal>.tui-enter+.t-scrollbars .t-bar_vertical,tui-modal>.tui-leave+.t-scrollbars .t-bar_vertical{display:none}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiScrollControls, selector: "tui-scroll-controls" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
34
+ }
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiModalComponent, decorators: [{
36
+ type: Component,
37
+ args: [{ selector: 'tui-modal', imports: [PolymorpheusOutlet, TuiScrollControls], template: `
38
+ <ng-container *polymorpheusOutlet="component(); context: context" />
39
+ <tui-scroll-controls class="t-scrollbars" />
40
+ `, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiActiveZone, TuiFocusTrap, TuiScrollRef], host: {
41
+ role: 'dialog',
42
+ class: 'tui-enter',
43
+ 'aria-modal': 'true',
44
+ '[attr.aria-labelledby]': 'context.id',
45
+ '(animationend.self)': '$event.target.classList.remove("tui-enter")',
46
+ }, styles: ["@keyframes tuiModalBackdrop{0%{-webkit-backdrop-filter:none;backdrop-filter:none}to{-webkit-backdrop-filter:brightness(.25);backdrop-filter:brightness(.25)}}tui-modal{transition-property:backdrop-filter;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;scrollbar-width:none;-ms-overflow-style:none;position:fixed;display:grid;inset:0;grid-template-rows:0;place-items:center;outline:none;overflow:auto;overscroll-behavior:none contain;transition-timing-function:linear;animation-timing-function:cubic-bezier(.14,.52,.35,.84)!important;perspective:10rem;transform:translateY(var(--t-root-top))}tui-modal::-webkit-scrollbar,tui-modal::-webkit-scrollbar-thumb{display:none}@supports not (selector(:has(*))) or not (selector(:nth-child(1 of *))){tui-modal:last-of-type:not(.tui-leave){-webkit-backdrop-filter:brightness(.25);backdrop-filter:brightness(.25)}tui-modal:last-of-type.tui-enter,tui-modal:last-of-type.tui-leave{animation-name:tuiModalBackdrop}}@supports (selector(:has(*))) and (selector(:nth-child(1 of *))){tui-modal:nth-last-child(1 of tui-modal:not(.tui-leave):not(:has(.tui-backdrop-hidden))){-webkit-backdrop-filter:brightness(.25);backdrop-filter:brightness(.25)}tui-modal:nth-last-child(1 of tui-modal:not(:has(.tui-backdrop-hidden))):is(.tui-enter,.tui-leave){animation-name:tuiModalBackdrop}}tui-modal:before{content:\"\";block-size:1px;inline-size:calc(100% + 1px)}tui-modal>.t-scrollbars{position:fixed;inset:0;margin:0;color:#747474}tui-modal>.t-scrollbars .t-bar_horizontal,tui-modal>.t-scrollbars .t-bar_vertical .t-thumb[style*=\"height: 100%\"]{display:none}tui-modal>.tui-enter+.t-scrollbars .t-bar_vertical,tui-modal>.tui-leave+.t-scrollbars .t-bar_vertical{display:none}\n"] }]
47
+ }] });
48
+ function findActive(zone, el) {
49
+ if (!el || !zone.contains(el)) {
50
+ return null;
51
+ }
52
+ const active = zone.children.find((child) => !child['el'].matches('[tuiActiveZoneAdapter]') && child.contains(el));
53
+ return active ? findActive(active, el) : zone;
54
+ }
55
+
56
+ class TuiModalService extends TuiPortal {
57
+ constructor() {
58
+ super(inject(TuiPopupService));
59
+ this.component = TuiModalComponent;
60
+ }
61
+ add(component) {
62
+ const ref = this.service.add(component);
63
+ const el = ref.location.nativeElement;
64
+ ref.instance.component.set(new PolymorpheusComponent(this.content));
65
+ return () => {
66
+ ref.instance.component.set(null);
67
+ ref.changeDetectorRef.detectChanges();
68
+ el.classList.add(TUI_LEAVE);
69
+ Promise.allSettled(getAnimations(el))
70
+ .then(async () => Promise.allSettled(getAnimations(el.firstElementChild)))
71
+ .then(() => ref.destroy());
72
+ };
73
+ }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
75
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiModalService }); }
76
+ }
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiModalService, decorators: [{
78
+ type: Injectable
79
+ }], ctorParameters: () => [] });
80
+ function getAnimations(el) {
81
+ return el?.getAnimations().map(async ({ finished }) => finished) || [];
82
+ }
83
+
84
+ /**
85
+ * Generated bundle index. Do not edit.
86
+ */
87
+
88
+ export { TuiModalComponent, TuiModalService };
89
+ //# sourceMappingURL=taiga-ui-core-portals-modal.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-core-portals-modal.mjs","sources":["../../../projects/core/portals/modal/modal.component.ts","../../../projects/core/portals/modal/modal.service.ts","../../../projects/core/portals/modal/taiga-ui-core-portals-modal.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n type OnDestroy,\n type OnInit,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {TuiFocusTrap} from '@taiga-ui/cdk/directives/focus-trap';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {tuiGetFocused} from '@taiga-ui/cdk/utils/focus';\nimport {TuiScrollControls, TuiScrollRef} from '@taiga-ui/core/components/scrollbar';\nimport {\n injectContext,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-modal',\n imports: [PolymorpheusOutlet, TuiScrollControls],\n template: `\n <ng-container *polymorpheusOutlet=\"component(); context: context\" />\n <tui-scroll-controls class=\"t-scrollbars\" />\n `,\n styleUrl: './modal.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiActiveZone, TuiFocusTrap, TuiScrollRef],\n host: {\n role: 'dialog',\n class: 'tui-enter',\n 'aria-modal': 'true',\n '[attr.aria-labelledby]': 'context.id',\n '(animationend.self)': '$event.target.classList.remove(\"tui-enter\")',\n },\n})\nexport class TuiModalComponent<T> implements OnDestroy, OnInit {\n private readonly current = inject(TuiActiveZone);\n private readonly parent = findActive(\n inject(TuiActiveZone, {skipSelf: true}),\n tuiGetFocused(inject(DOCUMENT)),\n );\n\n public readonly context = injectContext<TuiPortalContext<T>>();\n public readonly component = signal<PolymorpheusContent<TuiPortalContext<T>>>(null);\n\n public ngOnInit(): void {\n this.current.tuiActiveZoneParentSetter = this.parent;\n }\n\n public ngOnDestroy(): void {\n this.current.tuiActiveZoneParentSetter = null;\n }\n}\n\nfunction findActive(zone: TuiActiveZone, el: Element | null): TuiActiveZone | null {\n if (!el || !zone.contains(el)) {\n return null;\n }\n\n const active = zone.children.find(\n (child) => !child['el'].matches('[tuiActiveZoneAdapter]') && child.contains(el),\n );\n\n return active ? findActive(active, el) : zone;\n}\n","import {inject, Injectable, type Type} from '@angular/core';\nimport {TUI_LEAVE} from '@taiga-ui/cdk/directives/animated';\nimport {TuiPortal} from '@taiga-ui/cdk/portals';\nimport {TuiPopupService} from '@taiga-ui/core/portals/popup';\nimport {PolymorpheusComponent} from '@taiga-ui/polymorpheus';\n\nimport {TuiModalComponent} from './modal.component';\n\n@Injectable()\nexport abstract class TuiModalService<T, K = void> extends TuiPortal<T, K> {\n protected abstract readonly content: Type<unknown>;\n protected readonly component = TuiModalComponent;\n\n constructor() {\n super(inject(TuiPopupService));\n }\n\n protected override add(\n component: PolymorpheusComponent<TuiModalComponent<T>>,\n ): () => void {\n const ref = this.service.add(component);\n const el: HTMLElement = ref.location.nativeElement;\n\n ref.instance.component.set(new PolymorpheusComponent(this.content));\n\n return () => {\n ref.instance.component.set(null);\n ref.changeDetectorRef.detectChanges();\n el.classList.add(TUI_LEAVE);\n\n Promise.allSettled(getAnimations(el))\n .then(async () => Promise.allSettled(getAnimations(el.firstElementChild)))\n .then(() => ref.destroy());\n };\n }\n}\n\nfunction getAnimations(el: Element | null): ReadonlyArray<Promise<unknown>> {\n return el?.getAnimations().map(async ({finished}) => finished) || [];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAwCa,iBAAiB,CAAA;AAnB9B,IAAA,WAAA,GAAA;AAoBqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC;QAC/B,IAAM,CAAA,MAAA,GAAG,UAAU,CAChC,MAAM,CAAC,aAAa,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EACvC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAClC;QAEe,IAAO,CAAA,OAAA,GAAG,aAAa,EAAuB;AAC9C,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA2C,IAAI,CAAC;AASrF;IAPU,QAAQ,GAAA;QACX,IAAI,CAAC,OAAO,CAAC,yBAAyB,GAAG,IAA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,CAAC,aAAa;AAElD,QAAA,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAEnE,QAAA,OAAO,MAAK;YACR,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;AAChC,YAAA,GAAG,CAAC,iBAAiB,CAAC,aAAa,EAAE;AACrC,YAAA,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC;AAE3B,YAAA,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;AAC/B,iBAAA,IAAI,CAAC,YAAY,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;iBACxE,IAAI,CAAC,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC;AAClC,SAAC;;+GAxBa,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAf,eAAe,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBADpC;;AA6BD,SAAS,aAAa,CAAC,EAAkB,EAAA;AACrC,IAAA,OAAO,EAAE,EAAE,aAAa,EAAE,CAAC,GAAG,CAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,QAAQ,CAAC,IAAI,EAAE;AACxE;;ACvCA;;AAEG;;;;"}
@@ -0,0 +1,56 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, inject, TemplateRef, input, Directive, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { TuiPortalService, TuiPortals } from '@taiga-ui/cdk/portals';
4
+ import { tuiProvide } from '@taiga-ui/cdk/utils/di';
5
+
6
+ class TuiPopupService extends TuiPortalService {
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPopupService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
8
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPopupService, providedIn: 'root' }); }
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPopupService, decorators: [{
11
+ type: Injectable,
12
+ args: [{
13
+ providedIn: 'root',
14
+ }]
15
+ }] });
16
+
17
+ class TuiPopup {
18
+ constructor() {
19
+ this.template = inject(TemplateRef);
20
+ this.service = inject(TuiPopupService);
21
+ this.show = input(false, { alias: 'tuiPopup' });
22
+ }
23
+ ngOnChanges() {
24
+ this.ref?.destroy();
25
+ if (this.show()) {
26
+ this.ref = this.service.add(this.template);
27
+ }
28
+ }
29
+ ngOnDestroy() {
30
+ this.ref?.destroy();
31
+ }
32
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPopup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
33
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiPopup, isStandalone: true, selector: "ng-template[tuiPopup]", inputs: { show: { classPropertyName: "show", publicName: "tuiPopup", isSignal: true, isRequired: false, transformFunction: null } }, usesOnChanges: true, ngImport: i0 }); }
34
+ }
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPopup, decorators: [{
36
+ type: Directive,
37
+ args: [{
38
+ selector: 'ng-template[tuiPopup]',
39
+ }]
40
+ }] });
41
+
42
+ class TuiPopups extends TuiPortals {
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPopups, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
44
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiPopups, isStandalone: true, selector: "tui-popups", providers: [tuiProvide(TuiPortalService, TuiPopupService)], usesInheritance: true, ngImport: i0, template: '<ng-content/><ng-container #vcr />', isInline: true, styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;display:grid;grid-template-rows:repeat(9,min-content) 1fr;pointer-events:none;overflow:hidden;overflow-wrap:break-word;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}:host ::ng-deep>*{pointer-events:auto}:host:after{content:\"\";grid-row:10}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
45
+ }
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPopups, decorators: [{
47
+ type: Component,
48
+ args: [{ selector: 'tui-popups', template: '<ng-content/><ng-container #vcr />', changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiProvide(TuiPortalService, TuiPopupService)], styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;display:grid;grid-template-rows:repeat(9,min-content) 1fr;pointer-events:none;overflow:hidden;overflow-wrap:break-word;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}:host ::ng-deep>*{pointer-events:auto}:host:after{content:\"\";grid-row:10}\n"] }]
49
+ }] });
50
+
51
+ /**
52
+ * Generated bundle index. Do not edit.
53
+ */
54
+
55
+ export { TuiPopup, TuiPopupService, TuiPopups };
56
+ //# sourceMappingURL=taiga-ui-core-portals-popup.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-core-portals-popup.mjs","sources":["../../../projects/core/portals/popup/popup.service.ts","../../../projects/core/portals/popup/popup.directive.ts","../../../projects/core/portals/popup/popups.component.ts","../../../projects/core/portals/popup/taiga-ui-core-portals-popup.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {TuiPortalService} from '@taiga-ui/cdk/portals';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiPopupService extends TuiPortalService {}\n","import {\n Directive,\n type EmbeddedViewRef,\n inject,\n input,\n type OnChanges,\n type OnDestroy,\n TemplateRef,\n} from '@angular/core';\n\nimport {TuiPopupService} from './popup.service';\n\n@Directive({\n selector: 'ng-template[tuiPopup]',\n})\nexport class TuiPopup implements OnChanges, OnDestroy {\n private readonly template = inject(TemplateRef);\n private readonly service = inject(TuiPopupService);\n private ref?: EmbeddedViewRef<unknown>;\n\n public readonly show = input(false, {alias: 'tuiPopup'});\n\n public ngOnChanges(): void {\n this.ref?.destroy();\n\n if (this.show()) {\n this.ref = this.service.add(this.template);\n }\n }\n\n public ngOnDestroy(): void {\n this.ref?.destroy();\n }\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiPortals, TuiPortalService} from '@taiga-ui/cdk/portals';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/di';\n\nimport {TuiPopupService} from './popup.service';\n\n@Component({\n selector: 'tui-popups',\n template: '<ng-content/><ng-container #vcr />',\n styleUrl: './popups.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiProvide(TuiPortalService, TuiPopupService)],\n})\nexport class TuiPopups extends TuiPortals {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAMM,MAAO,eAAgB,SAAQ,gBAAgB,CAAA;+GAAxC,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFZ,MAAM,EAAA,CAAA,CAAA;;4FAET,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH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AAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAT,SAAS,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,SAAA,EAFP,CAAC,UAAU,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHhD,oCAAoC,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,iZAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAKrC,SAAS,EAAA,UAAA,EAAA,CAAA;kBAPrB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,EACZ,QAAA,EAAA,oCAAoC,EAE7B,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,UAAU,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC,EAAA,MAAA,EAAA,CAAA,iZAAA,CAAA,EAAA;;;ACX9D;;AAEG;;;;"}
@@ -0,0 +1,11 @@
1
+ export * from '@taiga-ui/core/portals/alert';
2
+ export * from '@taiga-ui/core/portals/dialog';
3
+ export * from '@taiga-ui/core/portals/dropdown';
4
+ export * from '@taiga-ui/core/portals/hint';
5
+ export * from '@taiga-ui/core/portals/modal';
6
+ export * from '@taiga-ui/core/portals/popup';
7
+
8
+ /**
9
+ * Generated bundle index. Do not edit.
10
+ */
11
+ //# sourceMappingURL=taiga-ui-core-portals.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-core-portals.mjs","sources":["../../../projects/core/portals/taiga-ui-core-portals.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;;AAEG"}
@@ -1,112 +1,48 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Injectable, LOCALE_ID, NgZone } from '@angular/core';
3
- import { tuiZoneOptimized, tuiZonefree } from '@taiga-ui/cdk/observables';
4
- import { TUI_WINDOW_SIZE, TUI_IS_WEBKIT } from '@taiga-ui/cdk/tokens';
5
- import { TUI_MEDIA } from '@taiga-ui/core/tokens';
6
- import { Observable, map, distinctUntilChanged, shareReplay, fromEvent, startWith, of, finalize } from 'rxjs';
7
- import { WA_WINDOW, WA_ANIMATION_FRAME } from '@ng-web-apis/common';
2
+ import { inject, NgZone, Injectable } from '@angular/core';
3
+ import { WA_ANIMATION_FRAME, WA_WINDOW } from '@ng-web-apis/common';
8
4
  import { EMPTY_CLIENT_RECT } from '@taiga-ui/cdk/constants';
5
+ import { tuiZonefree } from '@taiga-ui/cdk/observables';
9
6
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
10
7
  import { TuiPositionAccessor } from '@taiga-ui/core/classes';
11
-
12
- /**
13
- * Service to provide the current breakpoint based on Taiga UI's media queries
14
- */
15
- class TuiBreakpointService extends Observable {
16
- constructor() {
17
- super((subscriber) => this.stream$.subscribe(subscriber));
18
- this.media = inject(TUI_MEDIA);
19
- this.sorted = Object.values(this.media).sort((a, b) => a - b);
20
- this.invert = Object.keys(this.media).reduce((ret, key) => ({
21
- ...ret,
22
- [this.media[key]]: key,
23
- }), {});
24
- this.stream$ = inject(TUI_WINDOW_SIZE).pipe(map(({ width }) => this.sorted.find((size) => size > width)), map((key) => this.invert[key || this.sorted[this.sorted.length - 1] || 0] ?? null), distinctUntilChanged(), tuiZoneOptimized(), shareReplay({ bufferSize: 1, refCount: true }));
25
- }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiBreakpointService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
27
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiBreakpointService, providedIn: 'root' }); }
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiBreakpointService, decorators: [{
30
- type: Injectable,
31
- args: [{
32
- providedIn: 'root',
33
- }]
34
- }], ctorParameters: function () { return []; } });
35
-
36
- /**
37
- * @deprecated use {@link TUI_DARK_MODE} instead
38
- */
39
- class TuiDarkThemeService extends Observable {
40
- constructor() {
41
- const media = inject(WA_WINDOW).matchMedia('(prefers-color-scheme: dark)');
42
- const media$ = fromEvent(media, 'change').pipe(startWith(null), map(() => media.matches), shareReplay({ bufferSize: 1, refCount: true }));
43
- super((subscriber) => media$.subscribe(subscriber));
44
- }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDarkThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
46
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDarkThemeService, providedIn: 'root' }); }
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDarkThemeService, decorators: [{
49
- type: Injectable,
50
- args: [{
51
- providedIn: 'root',
52
- }]
53
- }], ctorParameters: function () { return []; } });
54
-
55
- class TuiFormatDateService {
56
- constructor() {
57
- this.locale = inject(LOCALE_ID);
58
- }
59
- format(timestamp) {
60
- return of(new Date(timestamp).toLocaleTimeString(this.locale, {
61
- hour: 'numeric',
62
- minute: '2-digit',
63
- }));
64
- }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFormatDateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
66
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFormatDateService, providedIn: 'root' }); }
67
- }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFormatDateService, decorators: [{
69
- type: Injectable,
70
- args: [{
71
- providedIn: 'root',
72
- }]
73
- }] });
8
+ import { Observable, startWith, map, finalize } from 'rxjs';
9
+ import { WA_IS_WEBKIT } from '@ng-web-apis/platform';
74
10
 
75
11
  class TuiPositionService extends Observable {
76
12
  constructor() {
77
13
  const animationFrame$ = inject(WA_ANIMATION_FRAME);
78
14
  const zone = inject(NgZone);
79
15
  super((subscriber) => animationFrame$
80
- .pipe(startWith(null), map(() => this.accessor.getPosition(this.el.getBoundingClientRect(), this.el)), tuiZonefree(zone), finalize(() => this.accessor.getPosition(EMPTY_CLIENT_RECT)))
16
+ .pipe(startWith(null), map(() => this.accessor.getPosition(this.el.getBoundingClientRect())), tuiZonefree(zone), finalize(() => this.accessor.getPosition(EMPTY_CLIENT_RECT)))
81
17
  .subscribe(subscriber));
82
18
  this.el = tuiInjectElement();
83
19
  this.accessor = inject(TuiPositionAccessor);
84
20
  }
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
86
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPositionService }); }
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPositionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
22
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPositionService }); }
87
23
  }
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPositionService, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiPositionService, decorators: [{
89
25
  type: Injectable
90
- }], ctorParameters: function () { return []; } });
26
+ }], ctorParameters: () => [] });
91
27
 
92
28
  class TuiVisualViewportService {
93
29
  constructor() {
94
- this.isWebkit = inject(TUI_IS_WEBKIT);
30
+ this.isWebkit = inject(WA_IS_WEBKIT);
95
31
  this.win = inject(WA_WINDOW);
96
32
  }
97
33
  // https://bugs.webkit.org/show_bug.cgi?id=207089
98
34
  correct(point) {
99
35
  return this.isWebkit
100
36
  ? [
101
- point[0] + (this.win.visualViewport?.offsetTop ?? 0),
102
- point[1] + (this.win.visualViewport?.offsetLeft ?? 0),
37
+ point[0] + (this.win.visualViewport?.offsetLeft ?? 0),
38
+ point[1] + (this.win.visualViewport?.offsetTop ?? 0),
103
39
  ]
104
40
  : point;
105
41
  }
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiVisualViewportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
107
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiVisualViewportService, providedIn: 'root' }); }
42
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiVisualViewportService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
43
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiVisualViewportService, providedIn: 'root' }); }
108
44
  }
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiVisualViewportService, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiVisualViewportService, decorators: [{
110
46
  type: Injectable,
111
47
  args: [{
112
48
  providedIn: 'root',
@@ -117,5 +53,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
117
53
  * Generated bundle index. Do not edit.
118
54
  */
119
55
 
120
- export { TuiBreakpointService, TuiDarkThemeService, TuiFormatDateService, TuiPositionService, TuiVisualViewportService };
56
+ export { TuiPositionService, TuiVisualViewportService };
121
57
  //# sourceMappingURL=taiga-ui-core-services.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-services.mjs","sources":["../../../projects/core/services/breakpoint.service.ts","../../../projects/core/services/dark-theme.service.ts","../../../projects/core/services/format-date.service.ts","../../../projects/core/services/position.service.ts","../../../projects/core/services/visual-viewport.service.ts","../../../projects/core/services/taiga-ui-core-services.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {TUI_WINDOW_SIZE} from '@taiga-ui/cdk/tokens';\nimport {TUI_MEDIA, type TuiMedia} from '@taiga-ui/core/tokens';\nimport {distinctUntilChanged, map, Observable, shareReplay} from 'rxjs';\n\nexport type TuiBreakpointMediaKey = keyof Omit<TuiMedia, 'tablet'>;\n\n/**\n * Service to provide the current breakpoint based on Taiga UI's media queries\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiBreakpointService extends Observable<TuiBreakpointMediaKey | null> {\n private readonly media = inject(TUI_MEDIA);\n private readonly sorted: number[] = Object.values(this.media).sort((a, b) => a - b);\n private readonly invert: Record<number, TuiBreakpointMediaKey> = Object.keys(\n this.media,\n ).reduce(\n (ret, key) => ({\n ...ret,\n [this.media[key as TuiBreakpointMediaKey]]: key,\n }),\n {},\n );\n\n private readonly stream$ = inject(TUI_WINDOW_SIZE).pipe(\n map(({width}) => this.sorted.find((size) => size > width)),\n map(\n (key) => this.invert[key || this.sorted[this.sorted.length - 1] || 0] ?? null,\n ),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {fromEvent, map, Observable, shareReplay, startWith} from 'rxjs';\n\n/**\n * @deprecated use {@link TUI_DARK_MODE} instead\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiDarkThemeService extends Observable<boolean> {\n constructor() {\n const media = inject(WA_WINDOW).matchMedia('(prefers-color-scheme: dark)');\n const media$ = fromEvent(media, 'change').pipe(\n startWith(null),\n map(() => media.matches),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n\n super((subscriber) => media$.subscribe(subscriber));\n }\n}\n","import {inject, Injectable, LOCALE_ID} from '@angular/core';\nimport {type Observable, of} from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiFormatDateService {\n protected readonly locale = inject(LOCALE_ID);\n\n public format(timestamp: number): Observable<string> {\n return of(\n new Date(timestamp).toLocaleTimeString(this.locale, {\n hour: 'numeric',\n minute: '2-digit',\n }),\n );\n }\n}\n","import {inject, Injectable, NgZone} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiPositionAccessor} from '@taiga-ui/core/classes';\nimport {type TuiPoint} from '@taiga-ui/core/types';\nimport {finalize, map, Observable, startWith} from 'rxjs';\n\n@Injectable()\nexport class TuiPositionService extends Observable<TuiPoint> {\n private readonly el = tuiInjectElement();\n private readonly accessor = inject(TuiPositionAccessor);\n\n constructor() {\n const animationFrame$ = inject(WA_ANIMATION_FRAME);\n const zone = inject(NgZone);\n\n super((subscriber) =>\n animationFrame$\n .pipe(\n startWith(null),\n map(() =>\n this.accessor.getPosition(\n this.el.getBoundingClientRect(),\n this.el,\n ),\n ),\n tuiZonefree(zone),\n finalize(() => this.accessor.getPosition(EMPTY_CLIENT_RECT)),\n )\n .subscribe(subscriber),\n );\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {TUI_IS_WEBKIT} from '@taiga-ui/cdk/tokens';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiVisualViewportService {\n private readonly isWebkit = inject(TUI_IS_WEBKIT);\n private readonly win = inject(WA_WINDOW);\n\n // https://bugs.webkit.org/show_bug.cgi?id=207089\n public correct(point: TuiPoint): TuiPoint {\n return this.isWebkit\n ? [\n point[0] + (this.win.visualViewport?.offsetTop ?? 0),\n point[1] + (this.win.visualViewport?.offsetLeft ?? 0),\n ]\n : point;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAQA;;AAEG;AACH,MAGa,oBAAqB,SAAQ,UAAwC,CAAA;AAuB9E,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAvB7C,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAC1B,IAAM,CAAA,MAAA,GAAa,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACnE,QAAA,IAAA,CAAA,MAAM,GAA0C,MAAM,CAAC,IAAI,CACxE,IAAI,CAAC,KAAK,CACb,CAAC,MAAM,CACJ,CAAC,GAAG,EAAE,GAAG,MAAM;AACX,YAAA,GAAG,GAAG;YACN,CAAC,IAAI,CAAC,KAAK,CAAC,GAA4B,CAAC,GAAG,GAAG;SAClD,CAAC,EACF,EAAE,CACL,CAAC;AAEe,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,IAAI,CACnD,GAAG,C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CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAW5C,KAAA;;AARU,IAAA,OAAO,CAAC,KAAe,EAAA;QAC1B,OAAO,IAAI,CAAC,QAAQ;AAChB,cAAE;AACI,gBAAA,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,SAAS,IAAI,CAAC,CAAC;AACpD,gBAAA,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,UAAU,IAAI,CAAC,CAAC;AACxD,aAAA;cACD,KAAK,CAAC;KACf;+GAZQ,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,cAFrB,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAET,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-services.mjs","sources":["../../../projects/core/services/position.service.ts","../../../projects/core/services/visual-viewport.service.ts","../../../projects/core/services/taiga-ui-core-services.ts"],"sourcesContent":["import {inject, Injectable, NgZone} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiPositionAccessor} from '@taiga-ui/core/classes';\nimport {type TuiPoint} from '@taiga-ui/core/types';\nimport {finalize, map, Observable, startWith} from 'rxjs';\n\n@Injectable()\nexport class TuiPositionService extends Observable<TuiPoint> {\n private readonly el = tuiInjectElement();\n private readonly accessor = inject(TuiPositionAccessor);\n\n constructor() {\n const animationFrame$ = inject(WA_ANIMATION_FRAME);\n const zone = inject(NgZone);\n\n super((subscriber) =>\n animationFrame$\n .pipe(\n startWith(null),\n map(() => this.accessor.getPosition(this.el.getBoundingClientRect())),\n tuiZonefree(zone),\n finalize(() => this.accessor.getPosition(EMPTY_CLIENT_RECT)),\n )\n .subscribe(subscriber),\n );\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {WA_IS_WEBKIT} from '@ng-web-apis/platform';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiVisualViewportService {\n private readonly isWebkit = inject(WA_IS_WEBKIT);\n private readonly win = inject(WA_WINDOW);\n\n // https://bugs.webkit.org/show_bug.cgi?id=207089\n public correct(point: TuiPoint): TuiPoint {\n return this.isWebkit\n ? [\n point[0] + (this.win.visualViewport?.offsetLeft ?? 0),\n point[1] + (this.win.visualViewport?.offsetTop ?? 0),\n ]\n : point;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAUM,MAAO,kBAAmB,SAAQ,UAAoB,CAAA;AAIxD,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAClD,QAAA,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AAE3B,QAAA,KAAK,CAAC,CAAC,UAAU,KACb;aACK,IAAI,CACD,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,qBAAqB,EAA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