@taiga-ui/core 4.52.0-canary.216e347 → 4.52.0-canary.2c75afa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. package/classes/accessors.d.ts +1 -1
  2. package/classes/driver.d.ts +1 -1
  3. package/components/alert/alert.component.d.ts +5 -6
  4. package/components/alert/alert.directive.d.ts +4 -3
  5. package/components/alert/alert.interfaces.d.ts +7 -7
  6. package/components/alert/alert.service.d.ts +6 -2
  7. package/components/alert/alert.tokens.d.ts +1 -7
  8. package/components/alert/index.d.ts +0 -1
  9. package/components/button/button.directive.d.ts +2 -3
  10. package/components/button/button.options.d.ts +1 -1
  11. package/components/calendar/calendar-sheet.component.d.ts +1 -6
  12. package/components/cell/cell.directive.d.ts +9 -0
  13. package/components/cell/cell.options.d.ts +6 -0
  14. package/components/cell/index.d.ts +2 -0
  15. package/components/data-list/data-list.component.d.ts +1 -1
  16. package/components/dialog/dialog.component.d.ts +6 -12
  17. package/components/dialog/dialog.directive.d.ts +5 -4
  18. package/components/dialog/dialog.factory.d.ts +1 -1
  19. package/components/dialog/dialog.options.d.ts +25 -0
  20. package/components/dialog/{dialog-close.service.d.ts → dialog.providers.d.ts} +2 -0
  21. package/components/dialog/dialog.service.d.ts +6 -3
  22. package/components/dialog/index.d.ts +2 -4
  23. package/components/error/error.component.d.ts +6 -8
  24. package/components/error/error.d.ts +4 -0
  25. package/components/error/error.directive.d.ts +19 -0
  26. package/components/error/error.pipe.d.ts +10 -0
  27. package/components/error/index.d.ts +3 -0
  28. package/components/expand/expand.component.d.ts +9 -28
  29. package/components/expand/index.d.ts +0 -2
  30. package/components/icon/icon.component.d.ts +6 -11
  31. package/components/index.d.ts +2 -1
  32. package/components/link/link.directive.d.ts +2 -2
  33. package/components/loader/loader.component.d.ts +7 -7
  34. package/components/modal/index.d.ts +2 -0
  35. package/components/modal/modal.component.d.ts +17 -0
  36. package/components/modal/modal.service.d.ts +13 -0
  37. package/components/notification/notification.directive.d.ts +6 -11
  38. package/components/notification/notification.options.d.ts +1 -1
  39. package/components/root/root.component.d.ts +4 -6
  40. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  41. package/components/scrollbar/scrollbar.component.d.ts +2 -2
  42. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  43. package/components/scrollbar/scrollbar.options.d.ts +1 -1
  44. package/components/spin-button/spin-button.component.d.ts +8 -9
  45. package/components/textfield/index.d.ts +1 -3
  46. package/components/textfield/textfield-content.directive.d.ts +3 -2
  47. package/components/textfield/textfield-icon.d.ts +3 -3
  48. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +5 -6
  49. package/components/textfield/textfield.component.d.ts +9 -10
  50. package/components/textfield/textfield.d.ts +2 -3
  51. package/components/textfield/textfield.directive.d.ts +11 -14
  52. package/components/textfield/textfield.options.d.ts +8 -11
  53. package/directives/appearance/appearance.directive.d.ts +5 -13
  54. package/directives/appearance/appearance.options.d.ts +1 -1
  55. package/directives/date-format/date-format.directive.d.ts +3 -7
  56. package/directives/dropdown/dropdown-content.directive.d.ts +9 -0
  57. package/directives/dropdown/dropdown-position.directive.d.ts +1 -1
  58. package/directives/dropdown/dropdown.d.ts +2 -2
  59. package/directives/dropdown/dropdown.directive.d.ts +1 -2
  60. package/directives/dropdown/index.d.ts +1 -3
  61. package/directives/hint/hint-describe.directive.d.ts +4 -6
  62. package/directives/hint/hint-host.directive.d.ts +2 -2
  63. package/directives/hint/hint-hover.directive.d.ts +3 -4
  64. package/directives/hint/hint-manual.directive.d.ts +2 -2
  65. package/directives/hint/hint-options.directive.d.ts +3 -3
  66. package/directives/hint/hint-overflow.directive.d.ts +2 -2
  67. package/directives/hint/hint-position.directive.d.ts +4 -5
  68. package/directives/hint/hint-unstyled.component.d.ts +2 -7
  69. package/directives/hint/hint.component.d.ts +10 -11
  70. package/directives/hint/hint.directive.d.ts +9 -11
  71. package/directives/hint/index.d.ts +0 -2
  72. package/directives/icons/icons.bindings.d.ts +5 -0
  73. package/directives/icons/icons.directive.d.ts +8 -16
  74. package/directives/icons/index.d.ts +1 -0
  75. package/directives/index.d.ts +1 -1
  76. package/directives/notification/index.d.ts +2 -0
  77. package/directives/notification/notification.directive.d.ts +11 -0
  78. package/directives/notification/notification.service.d.ts +12 -0
  79. package/directives/number-format/number-format.directive.d.ts +3 -7
  80. package/directives/popup/popup.directive.d.ts +6 -5
  81. package/directives/popup/popup.service.d.ts +1 -1
  82. package/directives/popup/popups.component.d.ts +2 -2
  83. package/directives/title/title.directive.d.ts +2 -3
  84. package/fesm2022/taiga-ui-core-animations.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-core-classes.mjs +4 -4
  86. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-core-components-alert.mjs +60 -99
  88. package/fesm2022/taiga-ui-core-components-alert.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-core-components-button.mjs +13 -21
  90. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-core-components-calendar.mjs +23 -27
  92. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  94. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  95. package/fesm2022/taiga-ui-core-components-data-list.mjs +33 -42
  96. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-core-components-dialog.mjs +75 -113
  98. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-core-components-error.mjs +109 -26
  100. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-core-components-expand.mjs +34 -132
  102. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-core-components-icon.mjs +22 -40
  104. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-core-components-label.mjs +10 -13
  106. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-core-components-link.mjs +13 -18
  108. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-core-components-loader.mjs +15 -29
  110. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-core-components-modal.mjs +89 -0
  112. package/fesm2022/taiga-ui-core-components-modal.mjs.map +1 -0
  113. package/fesm2022/taiga-ui-core-components-notification.mjs +23 -53
  114. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-core-components-root.mjs +20 -52
  116. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +57 -65
  118. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-core-components-spin-button.mjs +16 -29
  120. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-core-components-textfield.mjs +164 -305
  122. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-core-components.mjs +2 -1
  124. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-core-directives-appearance.mjs +26 -64
  126. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-core-directives-date-format.mjs +26 -20
  128. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +104 -164
  130. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-core-directives-group.mjs +10 -13
  132. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-core-directives-hint.mjs +149 -251
  134. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-core-directives-icons.mjs +35 -46
  136. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +12 -15
  138. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-core-directives-notification.mjs +73 -0
  140. package/fesm2022/taiga-ui-core-directives-notification.mjs.map +1 -0
  141. package/fesm2022/taiga-ui-core-directives-number-format.mjs +32 -20
  142. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-core-directives-popup.mjs +20 -27
  144. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-core-directives-title.mjs +13 -19
  146. package/fesm2022/taiga-ui-core-directives-title.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-core-directives.mjs +1 -1
  148. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +3 -4
  149. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +3 -4
  151. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-core-pipes-flag.mjs +3 -4
  153. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +3 -4
  155. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +23 -14
  157. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-core-pipes-initials.mjs +3 -4
  159. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-core-pipes-month.mjs +5 -5
  161. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +3 -4
  163. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-core-pipes.mjs +0 -1
  165. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-core-services.mjs +18 -18
  167. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-core-tokens.mjs +41 -39
  169. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -0
  172. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +50 -4
  174. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  175. package/package.json +26 -123
  176. package/pipes/format-number/format-number.pipe.d.ts +5 -3
  177. package/pipes/index.d.ts +0 -1
  178. package/styles/components/appearance.less +6 -0
  179. package/styles/components/button.less +0 -2
  180. package/styles/components/icon.less +32 -22
  181. package/styles/components/icons.less +16 -12
  182. package/styles/components/link.less +2 -3
  183. package/styles/mixins/appearance.less +1 -1
  184. package/styles/mixins/mixins.less +1 -7
  185. package/styles/mixins/mixins.scss +1 -7
  186. package/styles/mixins/slider.less +21 -16
  187. package/styles/theme/appearance/outline.less +1 -2
  188. package/styles/theme/appearance/textfield.less +1 -2
  189. package/styles/theme/variables.less +2 -4
  190. package/tokens/date-format.d.ts +2 -3
  191. package/tokens/i18n.d.ts +7 -7
  192. package/tokens/icon-resolver.d.ts +1 -5
  193. package/tokens/index.d.ts +1 -0
  194. package/tokens/number-format.d.ts +2 -3
  195. package/tokens/validation-errors.d.ts +4 -0
  196. package/types/index.d.ts +0 -1
  197. package/utils/miscellaneous/index.d.ts +1 -0
  198. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  199. package/components/alert/alerts.component.d.ts +0 -12
  200. package/components/dialog/dialog.interfaces.d.ts +0 -34
  201. package/components/dialog/dialog.tokens.d.ts +0 -15
  202. package/components/dialog/dialogs.component.d.ts +0 -8
  203. package/components/expand/expand-content.directive.d.ts +0 -8
  204. package/components/expand/expand.d.ts +0 -6
  205. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  206. package/components/fullscreen/index.d.ts +0 -1
  207. package/components/textfield/select.directive.d.ts +0 -19
  208. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  209. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  210. package/directives/dropdown/dropdown.service.d.ts +0 -6
  211. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  212. package/directives/hint/hint.service.d.ts +0 -13
  213. package/directives/hint/hints.component.d.ts +0 -12
  214. package/directives/surface/index.d.ts +0 -1
  215. package/directives/surface/surface.directive.d.ts +0 -8
  216. package/esm2022/animations/animations.mjs +0 -363
  217. package/esm2022/animations/index.mjs +0 -2
  218. package/esm2022/animations/taiga-ui-core-animations.mjs +0 -5
  219. package/esm2022/classes/accessors.mjs +0 -31
  220. package/esm2022/classes/driver.mjs +0 -36
  221. package/esm2022/classes/index.mjs +0 -4
  222. package/esm2022/classes/taiga-ui-core-classes.mjs +0 -5
  223. package/esm2022/classes/vehicle.mjs +0 -7
  224. package/esm2022/components/alert/alert.component.mjs +0 -43
  225. package/esm2022/components/alert/alert.directive.mjs +0 -21
  226. package/esm2022/components/alert/alert.interfaces.mjs +0 -2
  227. package/esm2022/components/alert/alert.service.mjs +0 -18
  228. package/esm2022/components/alert/alert.tokens.mjs +0 -51
  229. package/esm2022/components/alert/alerts.component.mjs +0 -33
  230. package/esm2022/components/alert/index.mjs +0 -6
  231. package/esm2022/components/alert/taiga-ui-core-components-alert.mjs +0 -5
  232. package/esm2022/components/button/button.directive.mjs +0 -43
  233. package/esm2022/components/button/button.options.mjs +0 -7
  234. package/esm2022/components/button/index.mjs +0 -3
  235. package/esm2022/components/button/taiga-ui-core-components-button.mjs +0 -5
  236. package/esm2022/components/calendar/calendar-sheet.component.mjs +0 -168
  237. package/esm2022/components/calendar/calendar-sheet.options.mjs +0 -12
  238. package/esm2022/components/calendar/calendar-spin.component.mjs +0 -53
  239. package/esm2022/components/calendar/calendar-year.component.mjs +0 -128
  240. package/esm2022/components/calendar/calendar.component.mjs +0 -147
  241. package/esm2022/components/calendar/index.mjs +0 -6
  242. package/esm2022/components/calendar/taiga-ui-core-components-calendar.mjs +0 -5
  243. package/esm2022/components/data-list/data-list.component.mjs +0 -139
  244. package/esm2022/components/data-list/data-list.directive.mjs +0 -19
  245. package/esm2022/components/data-list/data-list.mjs +0 -14
  246. package/esm2022/components/data-list/data-list.tokens.mjs +0 -18
  247. package/esm2022/components/data-list/index.mjs +0 -9
  248. package/esm2022/components/data-list/opt-group.directive.mjs +0 -21
  249. package/esm2022/components/data-list/option/option-content.mjs +0 -36
  250. package/esm2022/components/data-list/option/option-legacy.component.mjs +0 -90
  251. package/esm2022/components/data-list/option/option.directive.mjs +0 -109
  252. package/esm2022/components/data-list/taiga-ui-core-components-data-list.mjs +0 -5
  253. package/esm2022/components/dialog/dialog-close.service.mjs +0 -41
  254. package/esm2022/components/dialog/dialog.component.mjs +0 -63
  255. package/esm2022/components/dialog/dialog.directive.mjs +0 -21
  256. package/esm2022/components/dialog/dialog.factory.mjs +0 -15
  257. package/esm2022/components/dialog/dialog.interfaces.mjs +0 -2
  258. package/esm2022/components/dialog/dialog.service.mjs +0 -18
  259. package/esm2022/components/dialog/dialog.tokens.mjs +0 -33
  260. package/esm2022/components/dialog/dialogs.component.mjs +0 -29
  261. package/esm2022/components/dialog/index.mjs +0 -8
  262. package/esm2022/components/dialog/taiga-ui-core-components-dialog.mjs +0 -5
  263. package/esm2022/components/error/error.component.mjs +0 -34
  264. package/esm2022/components/error/index.mjs +0 -2
  265. package/esm2022/components/error/taiga-ui-core-components-error.mjs +0 -5
  266. package/esm2022/components/expand/expand-content.directive.mjs +0 -18
  267. package/esm2022/components/expand/expand.component.mjs +0 -124
  268. package/esm2022/components/expand/expand.mjs +0 -7
  269. package/esm2022/components/expand/index.mjs +0 -4
  270. package/esm2022/components/expand/taiga-ui-core-components-expand.mjs +0 -5
  271. package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -67
  272. package/esm2022/components/fullscreen/index.mjs +0 -2
  273. package/esm2022/components/fullscreen/taiga-ui-core-components-fullscreen.mjs +0 -5
  274. package/esm2022/components/icon/icon.component.mjs +0 -44
  275. package/esm2022/components/icon/icon.pipe.mjs +0 -19
  276. package/esm2022/components/icon/index.mjs +0 -3
  277. package/esm2022/components/icon/taiga-ui-core-components-icon.mjs +0 -5
  278. package/esm2022/components/index.mjs +0 -18
  279. package/esm2022/components/label/index.mjs +0 -2
  280. package/esm2022/components/label/label.directive.mjs +0 -41
  281. package/esm2022/components/label/taiga-ui-core-components-label.mjs +0 -5
  282. package/esm2022/components/link/index.mjs +0 -3
  283. package/esm2022/components/link/link.directive.mjs +0 -47
  284. package/esm2022/components/link/link.options.mjs +0 -13
  285. package/esm2022/components/link/taiga-ui-core-components-link.mjs +0 -5
  286. package/esm2022/components/loader/index.mjs +0 -3
  287. package/esm2022/components/loader/loader.component.mjs +0 -46
  288. package/esm2022/components/loader/loader.options.mjs +0 -18
  289. package/esm2022/components/loader/taiga-ui-core-components-loader.mjs +0 -5
  290. package/esm2022/components/notification/index.mjs +0 -3
  291. package/esm2022/components/notification/notification.directive.mjs +0 -81
  292. package/esm2022/components/notification/notification.options.mjs +0 -23
  293. package/esm2022/components/notification/taiga-ui-core-components-notification.mjs +0 -5
  294. package/esm2022/components/root/index.mjs +0 -2
  295. package/esm2022/components/root/root.component.mjs +0 -85
  296. package/esm2022/components/root/taiga-ui-core-components-root.mjs +0 -5
  297. package/esm2022/components/scrollbar/index.mjs +0 -9
  298. package/esm2022/components/scrollbar/scroll-controls.component.mjs +0 -32
  299. package/esm2022/components/scrollbar/scroll-into-view.directive.mjs +0 -43
  300. package/esm2022/components/scrollbar/scroll-ref.directive.mjs +0 -19
  301. package/esm2022/components/scrollbar/scrollable.directive.mjs +0 -26
  302. package/esm2022/components/scrollbar/scrollbar.component.mjs +0 -72
  303. package/esm2022/components/scrollbar/scrollbar.directive.mjs +0 -93
  304. package/esm2022/components/scrollbar/scrollbar.options.mjs +0 -6
  305. package/esm2022/components/scrollbar/scrollbar.service.mjs +0 -46
  306. package/esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs +0 -5
  307. package/esm2022/components/spin-button/index.mjs +0 -2
  308. package/esm2022/components/spin-button/spin-button.component.mjs +0 -51
  309. package/esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs +0 -5
  310. package/esm2022/components/taiga-ui-core-components.mjs +0 -5
  311. package/esm2022/components/textfield/index.mjs +0 -16
  312. package/esm2022/components/textfield/select-like.directive.mjs +0 -42
  313. package/esm2022/components/textfield/select.directive.mjs +0 -64
  314. package/esm2022/components/textfield/taiga-ui-core-components-textfield.mjs +0 -5
  315. package/esm2022/components/textfield/textfield-accessor.mjs +0 -7
  316. package/esm2022/components/textfield/textfield-auxiliary.mjs +0 -7
  317. package/esm2022/components/textfield/textfield-content.directive.mjs +0 -22
  318. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +0 -43
  319. package/esm2022/components/textfield/textfield-icon.mjs +0 -10
  320. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +0 -34
  321. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +0 -137
  322. package/esm2022/components/textfield/textfield.component.mjs +0 -180
  323. package/esm2022/components/textfield/textfield.directive.mjs +0 -134
  324. package/esm2022/components/textfield/textfield.mjs +0 -19
  325. package/esm2022/components/textfield/textfield.options.mjs +0 -63
  326. package/esm2022/components/textfield/with-native-picker.directive.mjs +0 -24
  327. package/esm2022/directives/appearance/appearance.bindings.mjs +0 -15
  328. package/esm2022/directives/appearance/appearance.directive.mjs +0 -79
  329. package/esm2022/directives/appearance/appearance.options.mjs +0 -12
  330. package/esm2022/directives/appearance/index.mjs +0 -5
  331. package/esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs +0 -5
  332. package/esm2022/directives/appearance/with-appearance.mjs +0 -27
  333. package/esm2022/directives/date-format/date-format.directive.mjs +0 -31
  334. package/esm2022/directives/date-format/index.mjs +0 -2
  335. package/esm2022/directives/date-format/taiga-ui-core-directives-date-format.mjs +0 -5
  336. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +0 -76
  337. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +0 -70
  338. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +0 -17
  339. package/esm2022/directives/dropdown/dropdown-limit-width.mjs +0 -37
  340. package/esm2022/directives/dropdown/dropdown-manual.directive.mjs +0 -27
  341. package/esm2022/directives/dropdown/dropdown-open-legacy.directive.mjs +0 -33
  342. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +0 -169
  343. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +0 -73
  344. package/esm2022/directives/dropdown/dropdown-portal.directive.mjs +0 -34
  345. package/esm2022/directives/dropdown/dropdown-position-sided.directive.mjs +0 -69
  346. package/esm2022/directives/dropdown/dropdown-position.directive.mjs +0 -88
  347. package/esm2022/directives/dropdown/dropdown-selection.directive.mjs +0 -159
  348. package/esm2022/directives/dropdown/dropdown.bindings.mjs +0 -19
  349. package/esm2022/directives/dropdown/dropdown.component.mjs +0 -92
  350. package/esm2022/directives/dropdown/dropdown.directive.mjs +0 -110
  351. package/esm2022/directives/dropdown/dropdown.driver.mjs +0 -32
  352. package/esm2022/directives/dropdown/dropdown.mjs +0 -29
  353. package/esm2022/directives/dropdown/dropdown.providers.mjs +0 -10
  354. package/esm2022/directives/dropdown/dropdown.service.mjs +0 -15
  355. package/esm2022/directives/dropdown/dropdowns.component.mjs +0 -24
  356. package/esm2022/directives/dropdown/index.mjs +0 -22
  357. package/esm2022/directives/dropdown/taiga-ui-core-directives-dropdown.mjs +0 -5
  358. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +0 -23
  359. package/esm2022/directives/group/group.directive.mjs +0 -53
  360. package/esm2022/directives/group/group.options.mjs +0 -15
  361. package/esm2022/directives/group/index.mjs +0 -3
  362. package/esm2022/directives/group/taiga-ui-core-directives-group.mjs +0 -5
  363. package/esm2022/directives/hint/hint-describe.directive.mjs +0 -50
  364. package/esm2022/directives/hint/hint-driver.directive.mjs +0 -19
  365. package/esm2022/directives/hint/hint-host.directive.mjs +0 -27
  366. package/esm2022/directives/hint/hint-hover.directive.mjs +0 -59
  367. package/esm2022/directives/hint/hint-manual.directive.mjs +0 -33
  368. package/esm2022/directives/hint/hint-options.directive.mjs +0 -86
  369. package/esm2022/directives/hint/hint-overflow.directive.mjs +0 -38
  370. package/esm2022/directives/hint/hint-pointer.directive.mjs +0 -33
  371. package/esm2022/directives/hint/hint-position.directive.mjs +0 -112
  372. package/esm2022/directives/hint/hint-unstyled.component.mjs +0 -39
  373. package/esm2022/directives/hint/hint.component.mjs +0 -127
  374. package/esm2022/directives/hint/hint.directive.mjs +0 -99
  375. package/esm2022/directives/hint/hint.mjs +0 -27
  376. package/esm2022/directives/hint/hint.providers.mjs +0 -9
  377. package/esm2022/directives/hint/hint.service.mjs +0 -29
  378. package/esm2022/directives/hint/hints.component.mjs +0 -34
  379. package/esm2022/directives/hint/index.mjs +0 -17
  380. package/esm2022/directives/hint/taiga-ui-core-directives-hint.mjs +0 -5
  381. package/esm2022/directives/icons/icons.directive.mjs +0 -66
  382. package/esm2022/directives/icons/index.mjs +0 -3
  383. package/esm2022/directives/icons/taiga-ui-core-directives-icons.mjs +0 -5
  384. package/esm2022/directives/icons/with-icons.mjs +0 -22
  385. package/esm2022/directives/index.mjs +0 -12
  386. package/esm2022/directives/items-handlers/index.mjs +0 -4
  387. package/esm2022/directives/items-handlers/items-handlers.directive.mjs +0 -63
  388. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +0 -27
  389. package/esm2022/directives/items-handlers/items-handlers.validator.mjs +0 -32
  390. package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +0 -5
  391. package/esm2022/directives/number-format/index.mjs +0 -2
  392. package/esm2022/directives/number-format/number-format.directive.mjs +0 -31
  393. package/esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs +0 -5
  394. package/esm2022/directives/popup/index.mjs +0 -4
  395. package/esm2022/directives/popup/popup.directive.mjs +0 -31
  396. package/esm2022/directives/popup/popup.service.mjs +0 -15
  397. package/esm2022/directives/popup/popups.component.mjs +0 -20
  398. package/esm2022/directives/popup/taiga-ui-core-directives-popup.mjs +0 -5
  399. package/esm2022/directives/surface/index.mjs +0 -2
  400. package/esm2022/directives/surface/surface.directive.mjs +0 -44
  401. package/esm2022/directives/surface/taiga-ui-core-directives-surface.mjs +0 -5
  402. package/esm2022/directives/taiga-ui-core-directives.mjs +0 -5
  403. package/esm2022/directives/title/index.mjs +0 -2
  404. package/esm2022/directives/title/taiga-ui-core-directives-title.mjs +0 -5
  405. package/esm2022/directives/title/title.directive.mjs +0 -37
  406. package/esm2022/index.mjs +0 -9
  407. package/esm2022/pipes/auto-color/auto-color.pipe.mjs +0 -19
  408. package/esm2022/pipes/auto-color/index.mjs +0 -2
  409. package/esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs +0 -5
  410. package/esm2022/pipes/calendar-sheet/calendar-sheet.pipe.mjs +0 -54
  411. package/esm2022/pipes/calendar-sheet/index.mjs +0 -2
  412. package/esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs +0 -5
  413. package/esm2022/pipes/calendar-sheet/utils.mjs +0 -36
  414. package/esm2022/pipes/fallback-src/fallback-src.pipe.mjs +0 -23
  415. package/esm2022/pipes/fallback-src/index.mjs +0 -2
  416. package/esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs +0 -5
  417. package/esm2022/pipes/flag/flag.pipe.mjs +0 -26
  418. package/esm2022/pipes/flag/index.mjs +0 -2
  419. package/esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs +0 -5
  420. package/esm2022/pipes/format-date/format-date.pipe.mjs +0 -22
  421. package/esm2022/pipes/format-date/index.mjs +0 -2
  422. package/esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs +0 -5
  423. package/esm2022/pipes/format-number/format-number.pipe.mjs +0 -36
  424. package/esm2022/pipes/format-number/index.mjs +0 -2
  425. package/esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs +0 -5
  426. package/esm2022/pipes/index.mjs +0 -10
  427. package/esm2022/pipes/initials/index.mjs +0 -2
  428. package/esm2022/pipes/initials/initials.pipe.mjs +0 -23
  429. package/esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs +0 -5
  430. package/esm2022/pipes/month/index.mjs +0 -2
  431. package/esm2022/pipes/month/month.pipe.mjs +0 -23
  432. package/esm2022/pipes/month/taiga-ui-core-pipes-month.mjs +0 -5
  433. package/esm2022/pipes/order-week-days/index.mjs +0 -2
  434. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +0 -30
  435. package/esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs +0 -5
  436. package/esm2022/pipes/taiga-ui-core-pipes.mjs +0 -5
  437. package/esm2022/services/breakpoint.service.mjs +0 -31
  438. package/esm2022/services/dark-theme.service.mjs +0 -24
  439. package/esm2022/services/format-date.service.mjs +0 -24
  440. package/esm2022/services/index.mjs +0 -6
  441. package/esm2022/services/position.service.mjs +0 -26
  442. package/esm2022/services/taiga-ui-core-services.mjs +0 -5
  443. package/esm2022/services/visual-viewport.service.mjs +0 -29
  444. package/esm2022/taiga-ui-core.mjs +0 -5
  445. package/esm2022/tokens/animations-speed.mjs +0 -9
  446. package/esm2022/tokens/assets-path.mjs +0 -11
  447. package/esm2022/tokens/auxiliary.mjs +0 -9
  448. package/esm2022/tokens/common-icons.mjs +0 -18
  449. package/esm2022/tokens/dark-mode.mjs +0 -41
  450. package/esm2022/tokens/date-format.mjs +0 -20
  451. package/esm2022/tokens/day-type-handler.mjs +0 -8
  452. package/esm2022/tokens/first-day-of-week.mjs +0 -9
  453. package/esm2022/tokens/i18n.mjs +0 -45
  454. package/esm2022/tokens/icon-resolver.mjs +0 -44
  455. package/esm2022/tokens/icon.mjs +0 -8
  456. package/esm2022/tokens/icons.mjs +0 -21
  457. package/esm2022/tokens/index.mjs +0 -21
  458. package/esm2022/tokens/media.mjs +0 -12
  459. package/esm2022/tokens/number-format.mjs +0 -24
  460. package/esm2022/tokens/reduced-motion.mjs +0 -7
  461. package/esm2022/tokens/scroll-ref.mjs +0 -6
  462. package/esm2022/tokens/selection-stream.mjs +0 -14
  463. package/esm2022/tokens/spin-icons.mjs +0 -8
  464. package/esm2022/tokens/taiga-ui-core-tokens.mjs +0 -5
  465. package/esm2022/tokens/theme.mjs +0 -5
  466. package/esm2022/tokens/viewport.mjs +0 -35
  467. package/esm2022/types/direction.mjs +0 -2
  468. package/esm2022/types/index.mjs +0 -2
  469. package/esm2022/types/interactive-state.mjs +0 -2
  470. package/esm2022/types/orientation.mjs +0 -2
  471. package/esm2022/types/point.mjs +0 -2
  472. package/esm2022/types/portal-item.mjs +0 -2
  473. package/esm2022/types/range-state.mjs +0 -2
  474. package/esm2022/types/size.mjs +0 -13
  475. package/esm2022/types/taiga-ui-core-types.mjs +0 -5
  476. package/esm2022/types/value-content-context.mjs +0 -2
  477. package/esm2022/utils/dom/check-fixed-position.mjs +0 -9
  478. package/esm2022/utils/dom/get-viewport.mjs +0 -24
  479. package/esm2022/utils/dom/get-word-range.mjs +0 -51
  480. package/esm2022/utils/dom/index.mjs +0 -4
  481. package/esm2022/utils/dom/taiga-ui-core-utils-dom.mjs +0 -5
  482. package/esm2022/utils/format/format-number.mjs +0 -47
  483. package/esm2022/utils/format/get-fractional-part-padded.mjs +0 -16
  484. package/esm2022/utils/format/index.mjs +0 -5
  485. package/esm2022/utils/format/number-to-string-without-exp.mjs +0 -18
  486. package/esm2022/utils/format/string-hash-to-hsl.mjs +0 -21
  487. package/esm2022/utils/format/taiga-ui-core-utils-format.mjs +0 -5
  488. package/esm2022/utils/index.mjs +0 -4
  489. package/esm2022/utils/miscellaneous/font-scaling.mjs +0 -11
  490. package/esm2022/utils/miscellaneous/index.mjs +0 -7
  491. package/esm2022/utils/miscellaneous/is-editing-key.mjs +0 -18
  492. package/esm2022/utils/miscellaneous/is-obscured.mjs +0 -8
  493. package/esm2022/utils/miscellaneous/override-options.mjs +0 -11
  494. package/esm2022/utils/miscellaneous/size-bigger.mjs +0 -19
  495. package/esm2022/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs +0 -5
  496. package/esm2022/utils/miscellaneous/to-animation-options.mjs +0 -16
  497. package/esm2022/utils/taiga-ui-core-utils.mjs +0 -5
  498. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -73
  499. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  500. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  501. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  502. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  503. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  504. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  505. package/pipes/fallback-src/index.d.ts +0 -1
  506. package/types/portal-item.d.ts +0 -9
@@ -1,25 +1,30 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { InjectionToken, Injectable, Directive, Optional, Self, SkipSelf, inject, Input, EventEmitter, Output, signal, INJECTOR, Component, ChangeDetectionStrategy, TemplateRef, NgZone, DestroyRef, ChangeDetectorRef } from '@angular/core';
4
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
3
+ import { InjectionToken, Directive, Optional, Self, SkipSelf, inject, Input, input, output, INJECTOR, ChangeDetectionStrategy, Component, TemplateRef, forwardRef, signal, computed } from '@angular/core';
4
+ import { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';
5
5
  import { EMPTY_CLIENT_RECT } from '@taiga-ui/cdk/constants';
6
- import * as i1 from '@taiga-ui/cdk/directives/animated';
7
- import { TuiAnimated, TuiAnimatedParent } from '@taiga-ui/cdk/directives/animated';
6
+ import * as i3 from '@taiga-ui/cdk/directives/active-zone';
7
+ import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
8
+ import * as i2 from '@taiga-ui/cdk/directives/animated';
9
+ import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
8
10
  import { TuiHoveredService } from '@taiga-ui/cdk/directives/hovered';
9
11
  import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
10
12
  import { tuiInjectElement, tuiPointToClientRect } from '@taiga-ui/cdk/utils/dom';
11
13
  import { tuiClamp } from '@taiga-ui/cdk/utils/math';
12
- import { tuiProvide, tuiPure, tuiPx, tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
13
- import { TuiDriverDirective, TuiDriver, tuiAsDriver, TuiPositionAccessor, tuiFallbackAccessor, TuiRectAccessor, tuiAsRectAccessor, tuiAsVehicle, tuiPositionAccessorFor, tuiRectAccessorFor } from '@taiga-ui/core/classes';
14
+ import { tuiProvide, tuiPure, tuiSetSignal, tuiPx, tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
15
+ import { TuiDriverDirective, TuiDriver, tuiAsDriver, TuiPositionAccessor, tuiFallbackAccessor, TuiRectAccessor, tuiAsVehicle, tuiAsRectAccessor, tuiPositionAccessorFor, tuiRectAccessorFor } from '@taiga-ui/core/classes';
16
+ import { tuiButtonOptionsProvider } from '@taiga-ui/core/components/button';
17
+ import * as i1 from '@taiga-ui/core/directives/appearance';
18
+ import { tuiAppearance, TuiAppearance } from '@taiga-ui/core/directives/appearance';
14
19
  import { TuiPositionService, TuiVisualViewportService } from '@taiga-ui/core/services';
15
20
  import { TUI_VIEWPORT } from '@taiga-ui/core/tokens';
16
21
  import { tuiOverrideOptions, tuiIsObscured } from '@taiga-ui/core/utils';
17
- import { PolymorpheusComponent, injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
18
- import { BehaviorSubject, Subject, merge, switchMap, of, delay, takeUntil, repeat, filter, map, tap, takeWhile, distinctUntilChanged, fromEvent, debounce, timer, startWith, skip } from 'rxjs';
19
- import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
20
- import { DOCUMENT, NgForOf } from '@angular/common';
21
- import { tuiIfMap, tuiTypedFromEvent, tuiZonefreeScheduler, tuiZoneOptimized } from '@taiga-ui/cdk/observables';
22
- import { tuiIsNativeFocused } from '@taiga-ui/cdk/utils/focus';
22
+ import { PolymorpheusComponent, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
23
+ import { Subject, merge, switchMap, of, delay, takeUntil, repeat, filter, map, tap, takeWhile, distinctUntilChanged, fromEvent, debounce, timer, startWith, skip, BehaviorSubject } from 'rxjs';
24
+ import { TuiPopupService } from '@taiga-ui/core/directives/popup';
25
+ import { DOCUMENT } from '@angular/common';
26
+ import { tuiIfMap, tuiTypedFromEvent, tuiZoneOptimized } from '@taiga-ui/cdk/observables';
27
+ import { tuiIsFocused } from '@taiga-ui/cdk/utils/focus';
23
28
 
24
29
  /**
25
30
  * A component to display a hint
@@ -28,44 +33,16 @@ const TUI_HINT_COMPONENT = new InjectionToken(ngDevMode ? 'TUI_HINT_COMPONENT' :
28
33
  factory: () => TuiHintComponent,
29
34
  });
30
35
 
31
- /**
32
- * Service for displaying hints/tooltips
33
- */
34
- class TuiHintService extends BehaviorSubject {
35
- constructor() {
36
- super([]);
37
- }
38
- add(directive) {
39
- this.next(this.value.concat(directive));
40
- }
41
- remove(directive) {
42
- if (this.value.includes(directive)) {
43
- this.next(this.value.filter((hint) => hint !== directive));
44
- }
45
- }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
47
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintService, providedIn: 'root' }); }
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintService, decorators: [{
50
- type: Injectable,
51
- args: [{
52
- providedIn: 'root',
53
- }]
54
- }], ctorParameters: function () { return []; } });
55
-
56
36
  class TuiHintDriver extends TuiDriverDirective {
57
37
  constructor() {
58
38
  super(...arguments);
59
39
  this.type = 'hint';
60
40
  }
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintDriver, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
62
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintDriver, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintDriver, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
42
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiHintDriver, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
63
43
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintDriver, decorators: [{
65
- type: Directive,
66
- args: [{
67
- standalone: true,
68
- }]
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintDriver, decorators: [{
45
+ type: Directive
69
46
  }] });
70
47
 
71
48
  const TUI_HINT_DIRECTIONS = [
@@ -121,13 +98,12 @@ class TuiHintOptionsDirective {
121
98
  ngOnChanges() {
122
99
  this.change$.next();
123
100
  }
124
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintOptionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
125
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintOptionsDirective, isStandalone: true, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [tuiProvide(TUI_HINT_OPTIONS, TuiHintOptionsDirective)], usesOnChanges: true, ngImport: i0 }); }
101
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintOptionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
102
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiHintOptionsDirective, isStandalone: true, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [tuiProvide(TUI_HINT_OPTIONS, TuiHintOptionsDirective)], usesOnChanges: true, ngImport: i0 }); }
126
103
  }
127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintOptionsDirective, decorators: [{
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintOptionsDirective, decorators: [{
128
105
  type: Directive,
129
106
  args: [{
130
- standalone: true,
131
107
  selector: '[tuiHintContent]',
132
108
  providers: [tuiProvide(TUI_HINT_OPTIONS, TuiHintOptionsDirective)],
133
109
  }]
@@ -157,11 +133,11 @@ class TuiHintHover extends TuiDriver {
157
133
  this.options = inject(TUI_HINT_OPTIONS);
158
134
  this.visible = false;
159
135
  this.toggle$ = new Subject();
160
- this.stream$ = merge(this.toggle$.pipe(switchMap((visible) => this.isMobile
161
- ? of(visible)
162
- : of(visible).pipe(delay(visible ? 0 : this.tuiHintHideDelay))), takeUntil(this.hovered$), repeat()), this.hovered$.pipe(switchMap((visible) => this.isMobile
163
- ? of(visible)
164
- : of(visible).pipe(delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay))), takeUntil(this.toggle$), repeat())).pipe(filter(() => this.enabled), map((value) => value &&
136
+ this.stream$ = merge(this.toggle$.pipe(switchMap((show) => this.isMobile
137
+ ? of(show)
138
+ : of(show).pipe(delay(show ? 0 : this.hideDelay()))), takeUntil(this.hovered$), repeat()), this.hovered$.pipe(switchMap((show) => this.isMobile
139
+ ? of(show)
140
+ : of(show).pipe(delay(show ? this.showDelay() : this.hideDelay()))), takeUntil(this.toggle$), repeat())).pipe(filter(() => this.enabled), map((value) => value &&
165
141
  (this.el.hasAttribute('tuiHintPointer') || !tuiIsObscured(this.el))), tap((visible) => {
166
142
  this.visible = visible;
167
143
  }));
@@ -169,8 +145,12 @@ class TuiHintHover extends TuiDriver {
169
145
  optional: true,
170
146
  skipSelf: true,
171
147
  });
172
- this.tuiHintShowDelay = this.options.showDelay;
173
- this.tuiHintHideDelay = this.options.hideDelay;
148
+ this.showDelay = input(this.options.showDelay, {
149
+ alias: 'tuiHintShowDelay',
150
+ });
151
+ this.hideDelay = input(this.options.hideDelay, {
152
+ alias: 'tuiHintHideDelay',
153
+ });
174
154
  this.type = 'hint';
175
155
  this.enabled = true;
176
156
  }
@@ -181,21 +161,16 @@ class TuiHintHover extends TuiDriver {
181
161
  close() {
182
162
  this.toggle$.next(false);
183
163
  }
184
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintHover, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
185
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintHover, isStandalone: true, inputs: { tuiHintShowDelay: "tuiHintShowDelay", tuiHintHideDelay: "tuiHintHideDelay" }, providers: [tuiAsDriver(TuiHintHover), TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0 }); }
164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintHover, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
165
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiHintHover, isStandalone: true, inputs: { showDelay: { classPropertyName: "showDelay", publicName: "tuiHintShowDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "tuiHintHideDelay", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsDriver(TuiHintHover), TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0 }); }
186
166
  }
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintHover, decorators: [{
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintHover, decorators: [{
188
168
  type: Directive,
189
169
  args: [{
190
- standalone: true,
191
170
  providers: [tuiAsDriver(TuiHintHover), TuiHoveredService],
192
171
  exportAs: 'tuiHintHover',
193
172
  }]
194
- }], ctorParameters: function () { return []; }, propDecorators: { tuiHintShowDelay: [{
195
- type: Input
196
- }], tuiHintHideDelay: [{
197
- type: Input
198
- }] } });
173
+ }], ctorParameters: () => [] });
199
174
 
200
175
  const GAP$1 = 8;
201
176
  const ARROW_OFFSET = 24;
@@ -207,19 +182,24 @@ class TuiHintPosition extends TuiPositionAccessor {
207
182
  this.el = tuiInjectElement();
208
183
  this.offset = inject(TUI_IS_MOBILE) ? 16 : 8;
209
184
  this.viewport = inject(TUI_VIEWPORT);
210
- this.accessor = tuiFallbackAccessor('hint')(inject(TuiRectAccessor), inject(TuiHintDirective));
185
+ this.accessor = tuiFallbackAccessor('hint')(inject(TuiRectAccessor, { optional: true }), { getClientRect: () => this.el.getBoundingClientRect() });
211
186
  this.points = TUI_HINT_DIRECTIONS.reduce((acc, direction) => ({ ...acc, [direction]: [0, 0] }), {});
212
- this.direction = inject(TUI_HINT_OPTIONS).direction;
213
- this.directionChange = new EventEmitter();
187
+ this.direction = input(inject(TUI_HINT_OPTIONS).direction, {
188
+ alias: 'tuiHintDirection',
189
+ });
190
+ this.directionChange = output({
191
+ alias: 'tuiHintDirectionChange',
192
+ });
214
193
  this.type = 'hint';
215
194
  }
216
195
  emitDirection(direction) {
217
196
  this.directionChange.emit(direction);
218
197
  }
219
198
  getPosition(rect, el) {
199
+ const direction = this.direction();
220
200
  const width = el?.clientWidth ?? rect.width;
221
201
  const height = el?.clientHeight ?? rect.height;
222
- const hostRect = this.accessor.getClientRect() ?? EMPTY_CLIENT_RECT;
202
+ const hostRect = this.accessor.getClientRect();
223
203
  const leftCenter = hostRect.left + hostRect.width / 2;
224
204
  const topCenter = hostRect.top + hostRect.height / 2;
225
205
  const rtl = this.el.matches('[dir="rtl"] :scope');
@@ -247,14 +227,14 @@ class TuiHintPosition extends TuiPositionAccessor {
247
227
  this.points.right[LEFT] = this.points['right-top'][LEFT];
248
228
  this.points['right-bottom'][TOP] = this.points['left-bottom'][TOP];
249
229
  this.points['right-bottom'][LEFT] = this.points['right-top'][LEFT];
250
- const array = Array.isArray(this.direction) ? this.direction : [this.direction];
230
+ const array = Array.isArray(direction) ? direction : [direction];
251
231
  const priority = array.map((direction) => adjust(direction, rtl));
252
- const direction = priority
232
+ const updated = priority
253
233
  .concat(TUI_HINT_DIRECTIONS)
254
234
  .find((dir) => this.checkPosition(this.points[dir], width, height)) ||
255
235
  this.fallback;
256
- this.emitDirection(adjust(direction, rtl));
257
- return this.points[direction];
236
+ this.emitDirection(adjust(updated, rtl));
237
+ return this.points[updated];
258
238
  }
259
239
  get fallback() {
260
240
  return this.points.top[TOP] >
@@ -269,24 +249,15 @@ class TuiHintPosition extends TuiPositionAccessor {
269
249
  top + height < viewport.bottom - GAP$1 &&
270
250
  left + width < viewport.right - GAP$1);
271
251
  }
272
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintPosition, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
273
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintPosition, isStandalone: true, inputs: { direction: ["tuiHintDirection", "direction"] }, outputs: { directionChange: "tuiHintDirectionChange" }, usesInheritance: true, ngImport: i0 }); }
252
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintPosition, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
253
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiHintPosition, isStandalone: true, inputs: { direction: { classPropertyName: "direction", publicName: "tuiHintDirection", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { directionChange: "tuiHintDirectionChange" }, usesInheritance: true, ngImport: i0 }); }
274
254
  }
275
255
  __decorate([
276
256
  tuiPure
277
257
  ], TuiHintPosition.prototype, "emitDirection", null);
278
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintPosition, decorators: [{
279
- type: Directive,
280
- args: [{
281
- standalone: true,
282
- }]
283
- }], propDecorators: { direction: [{
284
- type: Input,
285
- args: ['tuiHintDirection']
286
- }], directionChange: [{
287
- type: Output,
288
- args: ['tuiHintDirectionChange']
289
- }], emitDirection: [] } });
258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintPosition, decorators: [{
259
+ type: Directive
260
+ }], propDecorators: { emitDirection: [] } });
290
261
  function adjust(direction, rtl) {
291
262
  if (rtl && direction.includes('left')) {
292
263
  return direction.replace('left', 'right');
@@ -299,18 +270,19 @@ function adjust(direction, rtl) {
299
270
 
300
271
  class TuiHintDirective {
301
272
  constructor() {
302
- this.service = inject(TuiHintService);
303
- this.appearance = inject(TUI_HINT_OPTIONS).appearance;
304
- this.visible = new EventEmitter();
305
- this.content = signal(null);
273
+ this.service = inject(TuiPopupService);
274
+ this.content = input(null, { alias: 'tuiHint' });
275
+ this.context = input(undefined, { alias: 'tuiHintContext' });
276
+ this.appearance = input(inject(TUI_HINT_OPTIONS).appearance, {
277
+ alias: 'tuiHintAppearance',
278
+ });
279
+ this.visible = output({ alias: 'tuiHintVisible' });
306
280
  this.component = inject((PolymorpheusComponent));
307
281
  this.el = tuiInjectElement();
308
- this.activeZone = inject(TuiActiveZone, { optional: true });
309
282
  this.type = 'hint';
310
283
  }
311
- set tuiHint(content) {
312
- this.content.set(content);
313
- if (!content) {
284
+ ngOnChanges() {
285
+ if (!this.content()) {
314
286
  this.toggle(false);
315
287
  }
316
288
  }
@@ -321,32 +293,31 @@ class TuiHintDirective {
321
293
  return this.el.getBoundingClientRect();
322
294
  }
323
295
  toggle(show) {
324
- if (show && this.content()) {
325
- this.service.add(this);
296
+ if (show && this.content() && !this.ref) {
297
+ this.ref = this.service.add(this.component);
298
+ this.visible.emit(true);
326
299
  }
327
- else {
328
- this.service.remove(this);
300
+ else if (this.ref) {
301
+ this.ref.destroy();
302
+ this.ref = undefined;
303
+ this.visible.emit(false);
329
304
  }
330
- this.visible.emit(show);
331
305
  }
332
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
333
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintDirective, isStandalone: true, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { context: ["tuiHintContext", "context"], appearance: ["tuiHintAppearance", "appearance"], tuiHint: "tuiHint" }, outputs: { visible: "tuiHintVisible" }, providers: [
334
- tuiAsRectAccessor(TuiHintDirective),
306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
307
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiHintDirective, isStandalone: true, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: { content: { classPropertyName: "content", publicName: "tuiHint", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "tuiHintContext", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "tuiHintAppearance", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "tuiHintVisible" }, providers: [
335
308
  tuiAsVehicle(TuiHintDirective),
336
309
  {
337
310
  provide: PolymorpheusComponent,
338
311
  deps: [TUI_HINT_COMPONENT, INJECTOR],
339
312
  useClass: PolymorpheusComponent,
340
313
  },
341
- ], hostDirectives: [{ directive: TuiHintDriver }, { directive: TuiHintHover, inputs: ["tuiHintHideDelay", "tuiHintHideDelay", "tuiHintShowDelay", "tuiHintShowDelay"] }, { directive: TuiHintPosition, inputs: ["tuiHintDirection", "tuiHintDirection"], outputs: ["tuiHintDirectionChange", "tuiHintDirectionChange"] }], ngImport: i0 }); }
314
+ ], usesOnChanges: true, hostDirectives: [{ directive: TuiHintDriver }, { directive: TuiHintHover, inputs: ["tuiHintHideDelay", "tuiHintHideDelay", "tuiHintShowDelay", "tuiHintShowDelay"] }, { directive: TuiHintPosition, inputs: ["tuiHintDirection", "tuiHintDirection"], outputs: ["tuiHintDirectionChange", "tuiHintDirectionChange"] }], ngImport: i0 }); }
342
315
  }
343
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintDirective, decorators: [{
316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintDirective, decorators: [{
344
317
  type: Directive,
345
318
  args: [{
346
- standalone: true,
347
319
  selector: '[tuiHint]:not(ng-container):not(ng-template)',
348
320
  providers: [
349
- tuiAsRectAccessor(TuiHintDirective),
350
321
  tuiAsVehicle(TuiHintDirective),
351
322
  {
352
323
  provide: PolymorpheusComponent,
@@ -367,18 +338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
367
338
  },
368
339
  ],
369
340
  }]
370
- }], propDecorators: { context: [{
371
- type: Input,
372
- args: ['tuiHintContext']
373
- }], appearance: [{
374
- type: Input,
375
- args: ['tuiHintAppearance']
376
- }], visible: [{
377
- type: Output,
378
- args: ['tuiHintVisible']
379
- }], tuiHint: [{
380
- type: Input
381
- }] } });
341
+ }] });
382
342
 
383
343
  class TuiHintPointer extends TuiHintHover {
384
344
  constructor() {
@@ -391,13 +351,12 @@ class TuiHintPointer extends TuiHintHover {
391
351
  onMove({ clientX, clientY }) {
392
352
  this.currentRect = tuiPointToClientRect(clientX, clientY);
393
353
  }
394
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintPointer, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
395
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintPointer, isStandalone: true, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.zoneless": "onMove($event)" } }, providers: [tuiAsRectAccessor(TuiHintPointer), tuiAsDriver(TuiHintPointer)], usesInheritance: true, ngImport: i0 }); }
354
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintPointer, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
355
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiHintPointer, isStandalone: true, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.zoneless": "onMove($event)" } }, providers: [tuiAsRectAccessor(TuiHintPointer), tuiAsDriver(TuiHintPointer)], usesInheritance: true, ngImport: i0 }); }
396
356
  }
397
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintPointer, decorators: [{
357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintPointer, decorators: [{
398
358
  type: Directive,
399
359
  args: [{
400
- standalone: true,
401
360
  selector: '[tuiHint][tuiHintPointer]',
402
361
  providers: [tuiAsRectAccessor(TuiHintPointer), tuiAsDriver(TuiHintPointer)],
403
362
  host: {
@@ -408,46 +367,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
408
367
 
409
368
  class TuiHintUnstyledComponent {
410
369
  constructor() {
411
- this.context = injectContext();
370
+ this.hint = inject(TuiHintDirective);
412
371
  }
413
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintUnstyledComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
414
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintUnstyledComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '<ng-container *polymorpheusOutlet="context.$implicit.content()" />', isInline: true, dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
372
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintUnstyledComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
373
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiHintUnstyledComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: '<ng-container *polymorpheusOutlet="hint.content()" />', isInline: true, dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
415
374
  }
416
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintUnstyledComponent, decorators: [{
375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintUnstyledComponent, decorators: [{
417
376
  type: Component,
418
377
  args: [{
419
- standalone: true,
420
378
  imports: [PolymorpheusOutlet],
421
- template: '<ng-container *polymorpheusOutlet="context.$implicit.content()" />',
379
+ template: '<ng-container *polymorpheusOutlet="hint.content()" />',
422
380
  changeDetection: ChangeDetectionStrategy.OnPush,
423
381
  }]
424
382
  }] });
425
383
  class TuiHintUnstyled {
426
384
  constructor() {
427
385
  const hint = inject((TuiHintDirective));
428
- hint.component = new PolymorpheusComponent(TuiHintUnstyledComponent);
429
- hint.content.set(inject((TemplateRef)));
386
+ tuiSetSignal(hint.content, inject((TemplateRef)));
387
+ hint.component = new PolymorpheusComponent(TuiHintUnstyledComponent, inject(INJECTOR));
430
388
  }
431
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintUnstyled, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
432
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintUnstyled, isStandalone: true, selector: "ng-template[tuiHint]", ngImport: i0 }); }
389
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintUnstyled, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
390
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiHintUnstyled, isStandalone: true, selector: "ng-template[tuiHint]", ngImport: i0 }); }
433
391
  }
434
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintUnstyled, decorators: [{
392
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintUnstyled, decorators: [{
435
393
  type: Directive,
436
394
  args: [{
437
- standalone: true,
438
395
  selector: 'ng-template[tuiHint]',
439
396
  }]
440
- }], ctorParameters: function () { return []; } });
397
+ }], ctorParameters: () => [] });
441
398
 
442
399
  const TUI_HINT_PROVIDERS = [
443
400
  TuiPositionService,
444
401
  TuiHoveredService,
445
402
  tuiPositionAccessorFor('hint', TuiHintPosition),
446
- tuiRectAccessorFor('hint', TuiHintDirective),
403
+ tuiRectAccessorFor('hint', forwardRef(() => TuiHintDirective)),
447
404
  ];
448
405
  const GAP = 8;
449
- // TODO(v5): remove base component after angular update
450
- class TuiHintBaseComponent {
406
+ class TuiHintComponent {
451
407
  constructor() {
452
408
  this.el = tuiInjectElement();
453
409
  this.hover = inject(TuiHintHover);
@@ -455,13 +411,15 @@ class TuiHintBaseComponent {
455
411
  this.viewport = inject(TUI_VIEWPORT);
456
412
  this.pointer = inject(TuiHintPointer, { optional: true });
457
413
  this.accessor = inject(TuiRectAccessor);
458
- this.hint = injectContext().$implicit;
414
+ this.hint = inject(TuiHintDirective);
459
415
  this.isMobile = inject(TUI_IS_MOBILE);
460
416
  this.content = this.hint.component.component === TuiHintUnstyledComponent
461
417
  ? signal('')
462
418
  : this.hint.content;
463
- this.appearance = this.hint.appearance ||
464
- this.hint.el.closest('[tuiTheme]')?.getAttribute('tuiTheme');
419
+ this.theme = this.hint.el
420
+ .closest('[tuiTheme]')
421
+ ?.getAttribute('tuiTheme');
422
+ this.appearance = tuiAppearance(this.hint.appearance);
465
423
  inject(TuiPositionService)
466
424
  .pipe(takeWhile(() => this.hint.el.isConnected), map((point) => this.vvs.correct(point)), takeUntilDestroyed())
467
425
  .subscribe({
@@ -499,154 +457,121 @@ class TuiHintBaseComponent {
499
457
  ]);
500
458
  this.apply(tuiPx(Math.round(top)), tuiPx(Math.round(safeLeft)), Math.round((tuiClamp(beakTop, 0, clientHeight) / clientHeight) * 100), Math.round((tuiClamp(beakLeft, 0, clientWidth) / clientWidth) * 100));
501
459
  }
502
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
503
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintBaseComponent, isStandalone: true, selector: "ng-component", host: { listeners: { "document:click": "onClick($event.target)" }, properties: { "class._untouchable": "pointer", "class._mobile": "isMobile", "attr.data-appearance": "appearance", "attr.tuiTheme": "appearance === \"dark\" ? \"light\" : null" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
504
- }
505
- __decorate([
506
- tuiPure
507
- ], TuiHintBaseComponent.prototype, "apply", null);
508
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintBaseComponent, decorators: [{
509
- type: Component,
510
- args: [{
511
- standalone: true,
512
- template: '',
513
- changeDetection: ChangeDetectionStrategy.OnPush,
514
- host: {
515
- '[class._untouchable]': 'pointer',
516
- '[class._mobile]': 'isMobile',
517
- '[attr.data-appearance]': 'appearance',
518
- '[attr.tuiTheme]': 'appearance === "dark" ? "light" : null',
519
- '(document:click)': 'onClick($event.target)',
520
- },
521
- }]
522
- }], ctorParameters: function () { return []; }, propDecorators: { apply: [] } });
523
- class TuiHintComponent extends TuiHintBaseComponent {
524
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
525
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintComponent, isStandalone: true, selector: "tui-hint", providers: TUI_HINT_PROVIDERS, usesInheritance: true, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
460
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
461
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiHintComponent, isStandalone: true, selector: "tui-hint", host: { attributes: { "role": "tooltip" }, listeners: { "document:click": "onClick($event.target)" }, properties: { "class._untouchable": "pointer", "class._mobile": "isMobile", "attr.tuiTheme": "theme" } }, providers: [TUI_HINT_PROVIDERS, tuiButtonOptionsProvider({ size: 's' })], hostDirectives: [{ directive: i1.TuiAppearance }, { directive: i2.TuiAnimated }, { directive: i3.TuiActiveZone }], ngImport: i0, template: `
526
462
  <ng-content />
527
463
  <span
528
- *polymorpheusOutlet="content() as text; context: hint.context"
464
+ *polymorpheusOutlet="content() as text; context: hint.context()"
529
465
  [innerHTML]="text"
530
466
  ></span>
531
- `, isInline: true, styles: [":host{position:absolute;max-inline-size:min(18rem,calc(100% - 1rem));padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;overflow-wrap:break-word;transform-origin:var(--t-left) var(--t-top);--tui-background-elevation-2: var(--tui-background-elevation-3)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}:host :host-context(tui-root._mobile).tui-enter{animation:tuiFade var(--tui-duration) ease-in-out,tuiScale var(--tui-duration) cubic-bezier(.34,1.56,.64,1)}:host :host-context(tui-root._mobile).tui-leave{animation:tuiFade var(--tui-duration) ease-in-out reverse,tuiScale var(--tui-duration) ease-in-out reverse}:host:before{content:\"\";position:absolute;top:var(--t-top);left:var(--t-left);inline-size:.75rem;block-size:.5rem;background:inherit;-webkit-mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');transform:translate(-50%,-50%) rotate(var(--t-rotate))}:host._mobile{font:var(--tui-font-text-m)}:host._mobile:before{inline-size:1.5rem;block-size:1.125rem;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>')}:host[data-appearance=error]{background:var(--tui-status-negative)}:host[data-appearance=dark]{background:var(--tui-background-elevation-1);color:var(--tui-text-primary);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}:host:not([style*=top]){visibility:hidden}:host._untouchable{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
467
+ `, isInline: true, styles: [":host{position:absolute;max-inline-size:min(20rem,calc(100% - 1rem));padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;overflow-wrap:break-word;transform-origin:var(--t-left) var(--t-top);--tui-background-elevation-2: var(--tui-background-elevation-3)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}:host :host-context(tui-root._mobile).tui-enter{animation:tuiFade var(--tui-duration) ease-in-out,tuiScale var(--tui-duration) cubic-bezier(.34,1.56,.64,1)}:host :host-context(tui-root._mobile).tui-leave{animation:tuiFade var(--tui-duration) ease-in-out reverse,tuiScale var(--tui-duration) ease-in-out reverse}:host:before{content:\"\";position:absolute;top:var(--t-top);left:var(--t-left);inline-size:.75rem;block-size:.5rem;background:inherit;-webkit-mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');transition:none;transform:translate(-50%,-50%) rotate(var(--t-rotate))}:host._mobile{font:var(--tui-font-text-m)}:host._mobile:before{inline-size:1.5rem;block-size:1.125rem;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>')}:host:not([style*=top]){visibility:hidden}:host._untouchable{pointer-events:none}:host ::ng-deep [tuiTitle]{margin-block-end:.75rem}:host ::ng-deep [tuiTitle]+footer{margin-block-start:.75rem}:host ::ng-deep [tuiIconButton][data-appearance=icon][data-size=xs]{float:inline-end;margin-inline-end:-.25rem}:host ::ng-deep img{display:block;border-radius:var(--tui-radius-m)}:host ::ng-deep footer{display:flex;justify-content:flex-end;gap:.5rem;inline-size:18rem;max-inline-size:100%;margin:1rem 0 .25rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
532
468
  }
533
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintComponent, decorators: [{
469
+ __decorate([
470
+ tuiPure
471
+ ], TuiHintComponent.prototype, "apply", null);
472
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintComponent, decorators: [{
534
473
  type: Component,
535
- args: [{ standalone: true, selector: 'tui-hint', imports: [PolymorpheusOutlet], template: `
474
+ args: [{ selector: 'tui-hint', imports: [PolymorpheusOutlet], template: `
536
475
  <ng-content />
537
476
  <span
538
- *polymorpheusOutlet="content() as text; context: hint.context"
477
+ *polymorpheusOutlet="content() as text; context: hint.context()"
539
478
  [innerHTML]="text"
540
479
  ></span>
541
- `, changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_HINT_PROVIDERS, hostDirectives: [TuiAnimated], styles: [":host{position:absolute;max-inline-size:min(18rem,calc(100% - 1rem));padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;overflow-wrap:break-word;transform-origin:var(--t-left) var(--t-top);--tui-background-elevation-2: var(--tui-background-elevation-3)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}:host :host-context(tui-root._mobile).tui-enter{animation:tuiFade var(--tui-duration) ease-in-out,tuiScale var(--tui-duration) cubic-bezier(.34,1.56,.64,1)}:host :host-context(tui-root._mobile).tui-leave{animation:tuiFade var(--tui-duration) ease-in-out reverse,tuiScale var(--tui-duration) ease-in-out reverse}:host:before{content:\"\";position:absolute;top:var(--t-top);left:var(--t-left);inline-size:.75rem;block-size:.5rem;background:inherit;-webkit-mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');transform:translate(-50%,-50%) rotate(var(--t-rotate))}:host._mobile{font:var(--tui-font-text-m)}:host._mobile:before{inline-size:1.5rem;block-size:1.125rem;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>')}:host[data-appearance=error]{background:var(--tui-status-negative)}:host[data-appearance=dark]{background:var(--tui-background-elevation-1);color:var(--tui-text-primary);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}:host:not([style*=top]){visibility:hidden}:host._untouchable{pointer-events:none}\n"] }]
542
- }] });
480
+ `, changeDetection: ChangeDetectionStrategy.OnPush, providers: [TUI_HINT_PROVIDERS, tuiButtonOptionsProvider({ size: 's' })], hostDirectives: [TuiAppearance, TuiAnimated, TuiActiveZone], host: {
481
+ role: 'tooltip',
482
+ '[class._untouchable]': 'pointer',
483
+ '[class._mobile]': 'isMobile',
484
+ '[attr.tuiTheme]': 'theme',
485
+ '(document:click)': 'onClick($event.target)',
486
+ }, styles: [":host{position:absolute;max-inline-size:min(20rem,calc(100% - 1rem));padding:.75rem 1rem;background:var(--tui-background-accent-1);border-radius:var(--tui-radius-l);color:var(--tui-text-primary-on-accent-1);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;overflow-wrap:break-word;transform-origin:var(--t-left) var(--t-top);--tui-background-elevation-2: var(--tui-background-elevation-3)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}:host :host-context(tui-root._mobile).tui-enter{animation:tuiFade var(--tui-duration) ease-in-out,tuiScale var(--tui-duration) cubic-bezier(.34,1.56,.64,1)}:host :host-context(tui-root._mobile).tui-leave{animation:tuiFade var(--tui-duration) ease-in-out reverse,tuiScale var(--tui-duration) ease-in-out reverse}:host:before{content:\"\";position:absolute;top:var(--t-top);left:var(--t-left);inline-size:.75rem;block-size:.5rem;background:inherit;-webkit-mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg viewBox=\"0 0 12 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.61336 1.69607L2.44882 2.96493C1.84795 3.61964 0.949361 3.99951 0.00053941 4C0.000359608 4 0.000179805 4 0 4C0.000179863 4 0.000359764 4 0.000539623 4C0.949362 4.00049 1.84795 4.38036 2.44882 5.03506L3.61336 6.30394C4.55981 7.33517 5.03303 7.85079 5.63254 7.96535C5.87433 8.01155 6.12436 8.01155 6.36616 7.96535C6.96567 7.85079 7.43889 7.33517 8.38534 6.30393L9.54988 5.03507C10.1511 4.37994 11.0505 4 12 4C11.0505 4 10.1511 3.62006 9.54988 2.96493L8.38534 1.69606C7.43889 0.664826 6.96567 0.149207 6.36616 0.0346517C6.12436 -0.0115506 5.87433 -0.0115506 5.63254 0.0346517C5.03303 0.149207 4.55981 0.664827 3.61336 1.69607Z\" /></svg>');transition:none;transform:translate(-50%,-50%) rotate(var(--t-rotate))}:host._mobile{font:var(--tui-font-text-m)}:host._mobile:before{inline-size:1.5rem;block-size:1.125rem;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>');mask-image:url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 18\"><path d=\"M7.22854 3.81615L4.89971 6.6711C3.69732 8.14514 1.8988 9 0 9C1.8988 9 3.69732 9.85486 4.89971 11.3289L7.22854 14.1839L7.22854 14.1839C9.12123 16.5041 10.0676 17.6643 11.2665 17.922C11.75 18.026 12.25 18.026 12.7335 17.922C13.9324 17.6643 14.8788 16.5041 16.7715 14.1839L19.1003 11.3289C20.3027 9.85486 22.1012 9 24 9C22.1012 9 20.3027 8.14514 19.1003 6.6711L16.7715 3.81614C14.8788 1.49586 13.9324 0.335716 12.7335 0.0779663C12.25 -0.0259888 11.75 -0.0259888 11.2665 0.0779663C10.0676 0.335716 9.12123 1.49586 7.22854 3.81614L7.22854 3.81615Z\" /></svg>')}:host:not([style*=top]){visibility:hidden}:host._untouchable{pointer-events:none}:host ::ng-deep [tuiTitle]{margin-block-end:.75rem}:host ::ng-deep [tuiTitle]+footer{margin-block-start:.75rem}:host ::ng-deep [tuiIconButton][data-appearance=icon][data-size=xs]{float:inline-end;margin-inline-end:-.25rem}:host ::ng-deep img{display:block;border-radius:var(--tui-radius-m)}:host ::ng-deep footer{display:flex;justify-content:flex-end;gap:.5rem;inline-size:18rem;max-inline-size:100%;margin:1rem 0 .25rem}\n"] }]
487
+ }], ctorParameters: () => [], propDecorators: { apply: [] } });
543
488
 
544
489
  class TuiHintDescribe extends TuiDriver {
545
490
  constructor() {
546
491
  super((subscriber) => this.stream$.subscribe(subscriber));
547
492
  this.doc = inject(DOCUMENT);
548
493
  this.el = tuiInjectElement();
549
- this.zone = inject(NgZone);
550
- this.id$ = new BehaviorSubject('');
551
- this.stream$ = this.id$.pipe(distinctUntilChanged(), tuiIfMap(() => fromEvent(this.doc, 'keydown', { capture: true }), tuiIsPresent), switchMap(() => this.focused
552
- ? of(false)
553
- : merge(tuiTypedFromEvent(this.doc, 'keyup'), tuiTypedFromEvent(this.element, 'blur')).pipe(map(() => this.focused))), debounce((visible) => visible ? timer(1000, tuiZonefreeScheduler(this.zone)) : of(null)), startWith(false), distinctUntilChanged(), skip(1), tuiZoneOptimized());
494
+ this.element = computed((id = this.id()) => id ? this.doc.querySelector(`#${id}`) || this.el : this.el);
495
+ this.id = input('', { alias: 'tuiHintDescribe' });
554
496
  this.type = 'hint';
555
- }
556
- set tuiHintDescribe(id) {
557
- this.id$.next(id || '');
558
- }
559
- get element() {
560
- const id = this.id$.value;
561
- return id ? this.doc.querySelector(`#${id}`) || this.el : this.el;
497
+ this.stream$ = toObservable(this.id).pipe(distinctUntilChanged(), tuiIfMap(() => fromEvent(this.doc, 'keydown', { capture: true }), tuiIsPresent), switchMap(() => this.focused
498
+ ? of(false)
499
+ : merge(tuiTypedFromEvent(this.doc, 'keyup'), tuiTypedFromEvent(this.element(), 'blur')).pipe(map(() => this.focused))), debounce((visible) => (visible ? timer(1000) : of(null))), startWith(false), distinctUntilChanged(), skip(1), tuiZoneOptimized());
562
500
  }
563
501
  get focused() {
564
- return tuiIsNativeFocused(this.element);
502
+ return tuiIsFocused(this.element());
565
503
  }
566
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintDescribe, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
567
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintDescribe, isStandalone: true, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [tuiAsDriver(TuiHintDescribe)], usesInheritance: true, ngImport: i0 }); }
504
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintDescribe, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
505
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiHintDescribe, isStandalone: true, selector: "[tuiHintDescribe]", inputs: { id: { classPropertyName: "id", publicName: "tuiHintDescribe", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsDriver(TuiHintDescribe)], usesInheritance: true, ngImport: i0 }); }
568
506
  }
569
- __decorate([
570
- tuiPure
571
- ], TuiHintDescribe.prototype, "element", null);
572
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintDescribe, decorators: [{
507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintDescribe, decorators: [{
573
508
  type: Directive,
574
509
  args: [{
575
- standalone: true,
576
510
  selector: '[tuiHintDescribe]',
577
511
  providers: [tuiAsDriver(TuiHintDescribe)],
578
512
  }]
579
- }], ctorParameters: function () { return []; }, propDecorators: { tuiHintDescribe: [{
580
- type: Input
581
- }], element: [] } });
513
+ }], ctorParameters: () => [] });
582
514
 
583
515
  class TuiHintHost extends TuiRectAccessor {
584
516
  constructor() {
585
517
  super(...arguments);
518
+ this.tuiHintHost = input();
586
519
  this.type = 'hint';
587
520
  }
588
521
  getClientRect() {
589
- return this.tuiHintHost?.getBoundingClientRect() || EMPTY_CLIENT_RECT;
522
+ return this.tuiHintHost()?.getBoundingClientRect() || EMPTY_CLIENT_RECT;
590
523
  }
591
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintHost, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
592
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintHost, isStandalone: true, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [tuiAsRectAccessor(TuiHintHost)], usesInheritance: true, ngImport: i0 }); }
524
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintHost, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
525
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiHintHost, isStandalone: true, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: { classPropertyName: "tuiHintHost", publicName: "tuiHintHost", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsRectAccessor(TuiHintHost)], usesInheritance: true, ngImport: i0 }); }
593
526
  }
594
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintHost, decorators: [{
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintHost, decorators: [{
595
528
  type: Directive,
596
529
  args: [{
597
- standalone: true,
598
530
  selector: '[tuiHint][tuiHintHost]',
599
531
  providers: [tuiAsRectAccessor(TuiHintHost)],
600
532
  }]
601
- }], propDecorators: { tuiHintHost: [{
602
- type: Input
603
- }] } });
533
+ }] });
604
534
 
605
535
  class TuiHintManual extends TuiDriver {
606
536
  constructor() {
607
537
  super((subscriber) => this.stream$.subscribe(subscriber));
608
538
  this.hover = inject(TuiHintHover);
609
539
  this.stream$ = new BehaviorSubject(false);
610
- this.tuiHintManual = false;
540
+ this.visible = input(false, { alias: 'tuiHintManual' });
611
541
  this.type = 'hint';
612
542
  this.hover.enabled = false;
613
543
  }
614
544
  ngOnChanges() {
615
- this.stream$.next(!!this.tuiHintManual);
616
- this.hover.enabled = this.tuiHintManual === null;
545
+ this.stream$.next(!!this.visible());
546
+ this.hover.enabled = this.visible() === null;
617
547
  }
618
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintManual, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
619
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintManual, isStandalone: true, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [tuiAsDriver(TuiHintManual)], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
548
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintManual, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
549
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiHintManual, isStandalone: true, selector: "[tuiHint][tuiHintManual]", inputs: { visible: { classPropertyName: "visible", publicName: "tuiHintManual", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsDriver(TuiHintManual)], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
620
550
  }
621
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintManual, decorators: [{
551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintManual, decorators: [{
622
552
  type: Directive,
623
553
  args: [{
624
- standalone: true,
625
554
  selector: '[tuiHint][tuiHintManual]',
626
555
  providers: [tuiAsDriver(TuiHintManual)],
627
556
  }]
628
- }], ctorParameters: function () { return []; }, propDecorators: { tuiHintManual: [{
629
- type: Input
630
- }] } });
557
+ }], ctorParameters: () => [] });
631
558
 
632
559
  class TuiHintOverflow {
633
560
  constructor() {
634
561
  this.hint = inject(TuiHintDirective);
635
- this.tuiHintOverflow = '';
562
+ this.content = input('', { alias: 'tuiHintOverflow' });
636
563
  }
637
564
  onMouseEnter({ scrollWidth, clientWidth, textContent }) {
638
- this.hint.tuiHint =
639
- scrollWidth > clientWidth && this.tuiHintOverflow !== null
640
- ? this.tuiHintOverflow || textContent
641
- : '';
565
+ tuiSetSignal(this.hint.content, scrollWidth > clientWidth && this.content() !== null
566
+ ? this.content() || textContent
567
+ : '');
642
568
  }
643
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintOverflow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
644
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiHintOverflow, isStandalone: true, selector: "[tuiHintOverflow]", inputs: { tuiHintOverflow: "tuiHintOverflow" }, host: { listeners: { "mouseenter": "onMouseEnter($event.currentTarget)" } }, hostDirectives: [{ directive: TuiHintDirective, inputs: ["tuiHintAppearance", "tuiHintAppearance"] }], ngImport: i0 }); }
569
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintOverflow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
570
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiHintOverflow, isStandalone: true, selector: "[tuiHintOverflow]", inputs: { content: { classPropertyName: "content", publicName: "tuiHintOverflow", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "onMouseEnter($event.currentTarget)" } }, hostDirectives: [{ directive: TuiHintDirective, inputs: ["tuiHintAppearance", "tuiHintAppearance"] }], ngImport: i0 }); }
645
571
  }
646
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHintOverflow, decorators: [{
572
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiHintOverflow, decorators: [{
647
573
  type: Directive,
648
574
  args: [{
649
- standalone: true,
650
575
  selector: '[tuiHintOverflow]',
651
576
  hostDirectives: [
652
577
  {
@@ -658,9 +583,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
658
583
  '(mouseenter)': 'onMouseEnter($event.currentTarget)',
659
584
  },
660
585
  }]
661
- }], propDecorators: { tuiHintOverflow: [{
662
- type: Input
663
- }] } });
586
+ }] });
664
587
 
665
588
  const TuiHint = [
666
589
  TuiHintComponent,
@@ -677,34 +600,9 @@ const TuiHint = [
677
600
  TuiHintPointer,
678
601
  ];
679
602
 
680
- class TuiHints {
681
- constructor() {
682
- this.hints$ = inject(TuiHintService);
683
- this.destroyRef = inject(DestroyRef);
684
- this.cdr = inject(ChangeDetectorRef);
685
- this.hints = [];
686
- }
687
- ngOnInit() {
688
- // Due to this view being parallel to app content, `markForCheck` from `async` pipe
689
- // can happen after view was checked, so calling `detectChanges` instead
690
- this.hints$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((hints) => {
691
- this.hints = hints;
692
- this.cdr.detectChanges();
693
- });
694
- }
695
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHints, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
696
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiHints, isStandalone: true, selector: "tui-hints", host: { attributes: { "aria-live": "polite" } }, ngImport: i0, template: "<div\n *ngFor=\"let hint of hints\"\n role=\"tooltip\"\n tuiAnimatedParent\n [tuiActiveZoneParent]=\"hint.activeZone || null\"\n>\n <ng-container *polymorpheusOutlet=\"hint.component; context: {$implicit: hint}\" />\n</div>\n", styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;block-size:0}\n"], dependencies: [{ kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiActiveZone, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { kind: "directive", type: TuiAnimatedParent, selector: "[tuiAnimatedParent]" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
697
- }
698
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiHints, decorators: [{
699
- type: Component,
700
- args: [{ standalone: true, selector: 'tui-hints', imports: [NgForOf, PolymorpheusOutlet, TuiActiveZone, TuiAnimatedParent], changeDetection: ChangeDetectionStrategy.Default, host: {
701
- 'aria-live': 'polite',
702
- }, template: "<div\n *ngFor=\"let hint of hints\"\n role=\"tooltip\"\n tuiAnimatedParent\n [tuiActiveZoneParent]=\"hint.activeZone || null\"\n>\n <ng-container *polymorpheusOutlet=\"hint.component; context: {$implicit: hint}\" />\n</div>\n", styles: [":host{position:fixed;top:0;left:0;inline-size:100%;block-size:100%;block-size:0}\n"] }]
703
- }] });
704
-
705
603
  /**
706
604
  * Generated bundle index. Do not edit.
707
605
  */
708
606
 
709
- export { TUI_HINT_COMPONENT, TUI_HINT_DEFAULT_OPTIONS, TUI_HINT_DIRECTIONS, TUI_HINT_OPTIONS, TUI_HINT_PROVIDERS, TuiHint, TuiHintBaseComponent, TuiHintComponent, TuiHintDescribe, TuiHintDirective, TuiHintDriver, TuiHintHost, TuiHintHover, TuiHintManual, TuiHintOptionsDirective, TuiHintOverflow, TuiHintPointer, TuiHintPosition, TuiHintService, TuiHintUnstyled, TuiHintUnstyledComponent, TuiHints, tuiHintOptionsProvider };
607
+ export { TUI_HINT_COMPONENT, TUI_HINT_DEFAULT_OPTIONS, TUI_HINT_DIRECTIONS, TUI_HINT_OPTIONS, TUI_HINT_PROVIDERS, TuiHint, TuiHintComponent, TuiHintDescribe, TuiHintDirective, TuiHintDriver, TuiHintHost, TuiHintHover, TuiHintManual, TuiHintOptionsDirective, TuiHintOverflow, TuiHintPointer, TuiHintPosition, TuiHintUnstyled, TuiHintUnstyledComponent, tuiHintOptionsProvider };
710
608
  //# sourceMappingURL=taiga-ui-core-directives-hint.mjs.map