@taiga-ui/core 3.18.0 → 3.19.0-dev.main-9e6bc23

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 (321) hide show
  1. package/abstract/abstract-driver.directive.d.ts +9 -2
  2. package/abstract/driver.d.ts +1 -0
  3. package/abstract/position-accessor.d.ts +3 -1
  4. package/abstract/rect-accessor.d.ts +4 -1
  5. package/abstract/vehicle.d.ts +1 -0
  6. package/bundles/taiga-ui-core-abstract.umd.js +59 -29
  7. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-alert.umd.js +14 -23
  9. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-button.umd.js +11 -20
  11. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-calendar.umd.js +11 -20
  13. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-data-list.umd.js +20 -29
  15. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-dialog.umd.js +20 -29
  17. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-error.umd.js +11 -20
  19. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-expand.umd.js +14 -23
  21. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-group.umd.js +14 -23
  23. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-hints-host.umd.js +7 -7
  25. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +14 -23
  26. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-label.umd.js +11 -20
  28. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-link.umd.js +12 -21
  30. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-loader.umd.js +11 -20
  32. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-notification.umd.js +11 -20
  34. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +11 -20
  36. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +11 -20
  38. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +11 -20
  40. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +28 -34
  42. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +11 -20
  44. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-root.umd.js +11 -20
  46. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +17 -26
  48. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-scrollbar.umd.js +17 -26
  50. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-svg.umd.js +11 -20
  52. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-theme-night.umd.js +11 -20
  54. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-tooltip.umd.js +11 -20
  56. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  57. package/bundles/taiga-ui-core-directives-dropdown.umd.js +186 -147
  58. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-directives-hint.umd.js +258 -212
  60. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +7 -7
  62. package/bundles/taiga-ui-core-directives-mode.umd.js +11 -20
  63. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  64. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +11 -20
  65. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +100 -54
  67. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  68. package/bundles/taiga-ui-core-directives-wrapper.umd.js +7 -7
  69. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +11 -20
  70. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  71. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +7 -7
  72. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +7 -7
  73. package/bundles/taiga-ui-core-pipes-flag.umd.js +96 -0
  74. package/bundles/taiga-ui-core-pipes-flag.umd.js.map +1 -0
  75. package/bundles/taiga-ui-core-pipes-format-date.umd.js +7 -7
  76. package/bundles/taiga-ui-core-pipes-format-number.umd.js +7 -7
  77. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +7 -7
  78. package/bundles/taiga-ui-core-pipes-month.umd.js +7 -7
  79. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +11 -20
  80. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  81. package/bundles/taiga-ui-core-pipes.umd.js +10 -4
  82. package/bundles/taiga-ui-core-pipes.umd.js.map +1 -1
  83. package/bundles/taiga-ui-core-services.umd.js +22 -31
  84. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  85. package/bundles/taiga-ui-core-tokens.umd.js +7 -13
  86. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  87. package/bundles/taiga-ui-core-utils-format.umd.js +4 -13
  88. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  89. package/bundles/taiga-ui-core-utils-mask.umd.js +4 -13
  90. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  91. package/components/primitive-textfield/primitive-textfield.component.d.ts +3 -3
  92. package/directives/dropdown/dropdown-context.directive.d.ts +1 -0
  93. package/directives/dropdown/dropdown-driver.directive.d.ts +5 -2
  94. package/directives/dropdown/dropdown-host.directive.d.ts +1 -0
  95. package/directives/dropdown/dropdown-hover.directive.d.ts +1 -0
  96. package/directives/dropdown/dropdown-manual.directive.d.ts +1 -0
  97. package/directives/dropdown/dropdown-position-sided.directive.d.ts +4 -3
  98. package/directives/dropdown/dropdown-position.directive.d.ts +7 -3
  99. package/directives/dropdown/dropdown-selection.directive.d.ts +1 -0
  100. package/directives/dropdown/dropdown.directive.d.ts +7 -4
  101. package/directives/hint/hint-describe.directive.d.ts +3 -5
  102. package/directives/hint/hint-driver.directive.d.ts +5 -2
  103. package/directives/hint/hint-host.directive.d.ts +1 -0
  104. package/directives/hint/hint-hover.directive.d.ts +2 -0
  105. package/directives/hint/hint-manual.directive.d.ts +3 -1
  106. package/directives/hint/hint-position.directive.d.ts +6 -3
  107. package/directives/hint/hint.directive.d.ts +3 -2
  108. package/directives/textfield-controller/index.d.ts +1 -0
  109. package/directives/textfield-controller/textfield-appearance.directive.d.ts +9 -0
  110. package/directives/textfield-controller/textfield-controller.module.d.ts +11 -10
  111. package/directives/textfield-controller/textfield.controller.d.ts +5 -1
  112. package/esm2015/abstract/abstract-driver.directive.js +18 -10
  113. package/esm2015/abstract/abstract-textfield-host.js +3 -3
  114. package/esm2015/abstract/driver.js +2 -1
  115. package/esm2015/abstract/position-accessor.js +10 -1
  116. package/esm2015/abstract/rect-accessor.js +14 -1
  117. package/esm2015/abstract/vehicle.js +2 -1
  118. package/esm2015/components/alert/alert.component.js +3 -3
  119. package/esm2015/components/alert/alert.module.js +4 -4
  120. package/esm2015/components/alert/alert.service.js +3 -3
  121. package/esm2015/components/button/button.component.js +3 -3
  122. package/esm2015/components/button/button.module.js +4 -4
  123. package/esm2015/components/calendar/calendar.component.js +3 -3
  124. package/esm2015/components/calendar/calendar.module.js +4 -4
  125. package/esm2015/components/data-list/data-list.component.js +3 -3
  126. package/esm2015/components/data-list/data-list.directive.js +3 -3
  127. package/esm2015/components/data-list/data-list.module.js +4 -4
  128. package/esm2015/components/data-list/opt-group.directive.js +3 -3
  129. package/esm2015/components/data-list/option/option.component.js +3 -3
  130. package/esm2015/components/dialog/dialog-close.service.js +3 -3
  131. package/esm2015/components/dialog/dialog.component.js +3 -3
  132. package/esm2015/components/dialog/dialog.directive.js +3 -3
  133. package/esm2015/components/dialog/dialog.module.js +4 -4
  134. package/esm2015/components/dialog/dialog.service.js +3 -3
  135. package/esm2015/components/error/error.component.js +3 -3
  136. package/esm2015/components/error/error.module.js +4 -4
  137. package/esm2015/components/expand/expand-content.directive.js +3 -3
  138. package/esm2015/components/expand/expand.component.js +3 -3
  139. package/esm2015/components/expand/expand.module.js +4 -4
  140. package/esm2015/components/group/group-styles.component.js +3 -3
  141. package/esm2015/components/group/group.directive.js +3 -3
  142. package/esm2015/components/group/group.module.js +4 -4
  143. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  144. package/esm2015/components/hints-host/hints-host.module.js +4 -4
  145. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +3 -3
  146. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +3 -3
  147. package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +4 -4
  148. package/esm2015/components/label/label.component.js +3 -3
  149. package/esm2015/components/label/label.module.js +4 -4
  150. package/esm2015/components/link/link.component.js +4 -4
  151. package/esm2015/components/link/link.module.js +4 -4
  152. package/esm2015/components/loader/loader.component.js +3 -3
  153. package/esm2015/components/loader/loader.module.js +4 -4
  154. package/esm2015/components/notification/notification.component.js +3 -3
  155. package/esm2015/components/notification/notification.module.js +4 -4
  156. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  157. package/esm2015/components/primitive-calendar/primitive-calendar.module.js +4 -4
  158. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +3 -3
  159. package/esm2015/components/primitive-checkbox/primitive-checkbox.module.js +4 -4
  160. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  161. package/esm2015/components/primitive-spin-button/primitive-spin-button.module.js +4 -4
  162. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +9 -10
  163. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +3 -3
  164. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +4 -4
  165. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +3 -3
  166. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +3 -3
  167. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  168. package/esm2015/components/primitive-year-picker/primitive-year-picker.module.js +4 -4
  169. package/esm2015/components/root/root.component.js +3 -3
  170. package/esm2015/components/root/root.module.js +4 -4
  171. package/esm2015/components/scroll-controls/scroll-controls.component.js +3 -3
  172. package/esm2015/components/scroll-controls/scroll-controls.module.js +4 -4
  173. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +3 -3
  174. package/esm2015/components/scroll-controls/scrollbar.directive.js +3 -3
  175. package/esm2015/components/scrollbar/scroll-ref.directive.js +3 -3
  176. package/esm2015/components/scrollbar/scrollable.directive.js +3 -3
  177. package/esm2015/components/scrollbar/scrollbar.component.js +3 -3
  178. package/esm2015/components/scrollbar/scrollbar.module.js +4 -4
  179. package/esm2015/components/svg/svg.component.js +3 -3
  180. package/esm2015/components/svg/svg.module.js +4 -4
  181. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  182. package/esm2015/components/theme-night/theme-night.module.js +4 -4
  183. package/esm2015/components/tooltip/tooltip.component.js +3 -3
  184. package/esm2015/components/tooltip/tooltip.module.js +4 -4
  185. package/esm2015/directives/dropdown/dropdown-context.directive.js +5 -4
  186. package/esm2015/directives/dropdown/dropdown-driver.directive.js +24 -7
  187. package/esm2015/directives/dropdown/dropdown-host.directive.js +8 -4
  188. package/esm2015/directives/dropdown/dropdown-hover.directive.js +5 -4
  189. package/esm2015/directives/dropdown/dropdown-manual.directive.js +7 -6
  190. package/esm2015/directives/dropdown/dropdown-options.directive.js +3 -3
  191. package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +15 -14
  192. package/esm2015/directives/dropdown/dropdown-position.directive.js +28 -11
  193. package/esm2015/directives/dropdown/dropdown-selection.directive.js +5 -4
  194. package/esm2015/directives/dropdown/dropdown.component.js +21 -11
  195. package/esm2015/directives/dropdown/dropdown.directive.js +16 -21
  196. package/esm2015/directives/dropdown/dropdown.module.js +4 -4
  197. package/esm2015/directives/hint/hint-describe.directive.js +7 -13
  198. package/esm2015/directives/hint/hint-driver.directive.js +24 -7
  199. package/esm2015/directives/hint/hint-host.directive.js +8 -4
  200. package/esm2015/directives/hint/hint-hover.directive.js +8 -6
  201. package/esm2015/directives/hint/hint-manual.directive.js +14 -7
  202. package/esm2015/directives/hint/hint-options.directive.js +3 -3
  203. package/esm2015/directives/hint/hint-pointer.directive.js +3 -3
  204. package/esm2015/directives/hint/hint-position.directive.js +25 -11
  205. package/esm2015/directives/hint/hint.component.js +20 -6
  206. package/esm2015/directives/hint/hint.directive.js +6 -4
  207. package/esm2015/directives/hint/hint.module.js +4 -4
  208. package/esm2015/directives/hint/hint.providers.js +2 -1
  209. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +3 -3
  210. package/esm2015/directives/mask-accessor/mask-accessor.module.js +4 -4
  211. package/esm2015/directives/mode/mode.directive.js +3 -3
  212. package/esm2015/directives/mode/mode.module.js +4 -4
  213. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +3 -3
  214. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +4 -4
  215. package/esm2015/directives/textfield-controller/index.js +2 -1
  216. package/esm2015/directives/textfield-controller/textfield-appearance.directive.js +38 -0
  217. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +3 -3
  218. package/esm2015/directives/textfield-controller/textfield-controller.module.js +11 -6
  219. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +7 -3
  220. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +3 -3
  221. package/esm2015/directives/textfield-controller/textfield-filler.directive.js +3 -3
  222. package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +3 -3
  223. package/esm2015/directives/textfield-controller/textfield-icon.directive.js +3 -3
  224. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +3 -3
  225. package/esm2015/directives/textfield-controller/textfield-postfix.directive.js +3 -3
  226. package/esm2015/directives/textfield-controller/textfield-prefix.directive.js +3 -3
  227. package/esm2015/directives/textfield-controller/textfield-size.directive.js +3 -3
  228. package/esm2015/directives/textfield-controller/textfield.controller.js +7 -2
  229. package/esm2015/directives/wrapper/wrapper.directive.js +3 -3
  230. package/esm2015/directives/wrapper/wrapper.module.js +4 -4
  231. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +3 -3
  232. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.module.js +4 -4
  233. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +3 -3
  234. package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +4 -4
  235. package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +4 -4
  236. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +3 -3
  237. package/esm2015/pipes/flag/flag.module.js +16 -0
  238. package/esm2015/pipes/flag/flag.pipe.js +44 -0
  239. package/esm2015/pipes/flag/index.js +3 -0
  240. package/esm2015/pipes/flag/taiga-ui-core-pipes-flag.js +5 -0
  241. package/esm2015/pipes/format-date/format-date.module.js +4 -4
  242. package/esm2015/pipes/format-date/format-date.pipe.js +3 -3
  243. package/esm2015/pipes/format-number/format-number.module.js +4 -4
  244. package/esm2015/pipes/format-number/format-number.pipe.js +3 -3
  245. package/esm2015/pipes/format-phone/format-phone.module.js +4 -4
  246. package/esm2015/pipes/format-phone/format-phone.pipe.js +3 -3
  247. package/esm2015/pipes/index.js +2 -1
  248. package/esm2015/pipes/month/month.module.js +4 -4
  249. package/esm2015/pipes/month/month.pipe.js +3 -3
  250. package/esm2015/pipes/order-week-days/order-week-days.module.js +4 -4
  251. package/esm2015/pipes/order-week-days/order-week-days.pipe.js +3 -3
  252. package/esm2015/services/format-date.service.js +3 -3
  253. package/esm2015/services/hint.service.js +3 -3
  254. package/esm2015/services/night-theme.service.js +3 -3
  255. package/esm2015/services/position.service.js +3 -3
  256. package/esm2015/services/router-link-active.service.js +3 -3
  257. package/esm2015/services/svg.service.js +3 -3
  258. package/esm2015/tokens/textfield-appearance.js +3 -1
  259. package/esm2015/tokens/viewport.js +2 -1
  260. package/fesm2015/taiga-ui-core-abstract.js +45 -15
  261. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  262. package/fesm2015/taiga-ui-core-components-alert.js +10 -10
  263. package/fesm2015/taiga-ui-core-components-button.js +7 -7
  264. package/fesm2015/taiga-ui-core-components-calendar.js +7 -7
  265. package/fesm2015/taiga-ui-core-components-data-list.js +16 -16
  266. package/fesm2015/taiga-ui-core-components-dialog.js +16 -16
  267. package/fesm2015/taiga-ui-core-components-error.js +7 -7
  268. package/fesm2015/taiga-ui-core-components-expand.js +10 -10
  269. package/fesm2015/taiga-ui-core-components-group.js +10 -10
  270. package/fesm2015/taiga-ui-core-components-hints-host.js +7 -7
  271. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  272. package/fesm2015/taiga-ui-core-components-label.js +7 -7
  273. package/fesm2015/taiga-ui-core-components-link.js +8 -8
  274. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  275. package/fesm2015/taiga-ui-core-components-loader.js +7 -7
  276. package/fesm2015/taiga-ui-core-components-notification.js +7 -7
  277. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +7 -7
  278. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +7 -7
  279. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +7 -7
  280. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +21 -22
  281. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  282. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +7 -7
  283. package/fesm2015/taiga-ui-core-components-root.js +7 -7
  284. package/fesm2015/taiga-ui-core-components-scroll-controls.js +13 -13
  285. package/fesm2015/taiga-ui-core-components-scrollbar.js +13 -13
  286. package/fesm2015/taiga-ui-core-components-svg.js +7 -7
  287. package/fesm2015/taiga-ui-core-components-theme-night.js +7 -7
  288. package/fesm2015/taiga-ui-core-components-tooltip.js +7 -7
  289. package/fesm2015/taiga-ui-core-directives-dropdown.js +123 -81
  290. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  291. package/fesm2015/taiga-ui-core-directives-hint.js +205 -156
  292. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  293. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +7 -7
  294. package/fesm2015/taiga-ui-core-directives-mode.js +7 -7
  295. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +7 -7
  296. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +83 -36
  297. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  298. package/fesm2015/taiga-ui-core-directives-wrapper.js +7 -7
  299. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +7 -7
  300. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +7 -7
  301. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +7 -7
  302. package/fesm2015/taiga-ui-core-pipes-flag.js +64 -0
  303. package/fesm2015/taiga-ui-core-pipes-flag.js.map +1 -0
  304. package/fesm2015/taiga-ui-core-pipes-format-date.js +7 -7
  305. package/fesm2015/taiga-ui-core-pipes-format-number.js +7 -7
  306. package/fesm2015/taiga-ui-core-pipes-format-phone.js +7 -7
  307. package/fesm2015/taiga-ui-core-pipes-month.js +7 -7
  308. package/fesm2015/taiga-ui-core-pipes-order-week-days.js +7 -7
  309. package/fesm2015/taiga-ui-core-pipes.js +1 -0
  310. package/fesm2015/taiga-ui-core-pipes.js.map +1 -1
  311. package/fesm2015/taiga-ui-core-services.js +18 -18
  312. package/fesm2015/taiga-ui-core-tokens.js +3 -0
  313. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  314. package/package.json +4 -4
  315. package/pipes/flag/flag.module.d.ts +7 -0
  316. package/pipes/flag/flag.pipe.d.ts +13 -0
  317. package/pipes/flag/index.d.ts +2 -0
  318. package/pipes/flag/package.json +10 -0
  319. package/pipes/flag/taiga-ui-core-pipes-flag.d.ts +5 -0
  320. package/pipes/index.d.ts +1 -0
  321. package/tokens/textfield-appearance.d.ts +1 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('rxjs'), require('@taiga-ui/core/utils'), require('@angular/common'), require('@taiga-ui/core/constants')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', 'rxjs', '@taiga-ui/core/utils', '@angular/common', '@taiga-ui/core/constants'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global.i1$1, global.rxjs.operators, global.rxjs, global["taiga-ui"].core.utils, global.ng.common, global["taiga-ui"].core.constants));
5
- })(this, (function (exports, i0, i3, i1, animations, i5, i2$1, tokens, i1$1, operators, i2, utils, common, constants) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core/abstract'), require('@taiga-ui/core/animations'), require('@taiga-ui/core/directives/mode'), require('@taiga-ui/core/services'), require('@taiga-ui/core/tokens'), require('@tinkoff/ng-polymorpheus'), require('rxjs/operators'), require('@taiga-ui/core/utils'), require('rxjs'), require('@angular/common'), require('@taiga-ui/core/constants')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/core/directives/hint', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core/abstract', '@taiga-ui/core/animations', '@taiga-ui/core/directives/mode', '@taiga-ui/core/services', '@taiga-ui/core/tokens', '@tinkoff/ng-polymorpheus', 'rxjs/operators', '@taiga-ui/core/utils', 'rxjs', '@angular/common', '@taiga-ui/core/constants'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].core = global["taiga-ui"].core || {}, global["taiga-ui"].core.directives = global["taiga-ui"].core.directives || {}, global["taiga-ui"].core.directives.hint = {}), global.ng.core, global.i3, global["taiga-ui"].core.abstract, global["taiga-ui"].core.animations, global["taiga-ui"].core.directives.mode, global["taiga-ui"].core.services, global["taiga-ui"].core.tokens, global.i1, global.rxjs.operators, global["taiga-ui"].core.utils, global.rxjs, global.ng.common, global["taiga-ui"].core.constants));
5
+ })(this, (function (exports, i0, i3, i1$1, animations, i5, i2, tokens, i1, operators, utils, i2$1, common, constants) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -24,13 +24,13 @@
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
27
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
28
28
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
29
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
30
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
31
29
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
31
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
32
32
 
33
- /******************************************************************************
33
+ /*! *****************************************************************************
34
34
  Copyright (c) Microsoft Corporation.
35
35
 
36
36
  Permission to use, copy, modify, and/or distribute this software for any
@@ -128,7 +128,7 @@
128
128
  function step(op) {
129
129
  if (f)
130
130
  throw new TypeError("Generator is already executing.");
131
- while (g && (g = 0, op[0] && (_ = 0)), _)
131
+ while (_)
132
132
  try {
133
133
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
134
134
  return t;
@@ -192,11 +192,7 @@
192
192
  var __createBinding = Object.create ? (function (o, m, k, k2) {
193
193
  if (k2 === undefined)
194
194
  k2 = k;
195
- var desc = Object.getOwnPropertyDescriptor(m, k);
196
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
197
- desc = { enumerable: true, get: function () { return m[k]; } };
198
- }
199
- Object.defineProperty(o, k2, desc);
195
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
200
196
  }) : (function (o, m, k, k2) {
201
197
  if (k2 === undefined)
202
198
  k2 = k;
@@ -269,7 +265,7 @@
269
265
  ar[i] = from[i];
270
266
  }
271
267
  }
272
- return to.concat(ar || Array.prototype.slice.call(from));
268
+ return to.concat(ar || from);
273
269
  }
274
270
  function __await(v) {
275
271
  return this instanceof __await ? (this.v = v, this) : new __await(v);
@@ -351,11 +347,10 @@
351
347
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
352
348
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
353
349
  }
354
- function __classPrivateFieldIn(state, receiver) {
355
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
356
- throw new TypeError("Cannot use 'in' operator on non-object");
357
- return typeof state === "function" ? receiver === state : state.has(receiver);
358
- }
350
+
351
+ var TUI_HINT_COMPONENT = new i0.InjectionToken("[TUI_HINT_COMPONENT] A component to display a hint", {
352
+ factory: function () { return TuiHintComponent; },
353
+ });
359
354
 
360
355
  /** Default values for hint options */
361
356
  var TUI_HINT_DEFAULT_OPTIONS = {
@@ -391,8 +386,8 @@
391
386
  }
392
387
  return TuiHintOptionsDirective;
393
388
  }(i3.AbstractTuiController));
394
- TuiHintOptionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintOptionsDirective, deps: [{ token: TUI_HINT_OPTIONS, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
395
- TuiHintOptionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [
389
+ TuiHintOptionsDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, deps: [{ token: TUI_HINT_OPTIONS, skipSelf: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
390
+ TuiHintOptionsDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [
396
391
  {
397
392
  provide: TUI_HINT_OPTIONS,
398
393
  useExisting: i0.forwardRef(function () { return TuiHintOptionsDirective; }),
@@ -413,7 +408,7 @@
413
408
  __decorate([
414
409
  i3.tuiDefaultProp()
415
410
  ], TuiHintOptionsDirective.prototype, "hideDelay", void 0);
416
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintOptionsDirective, decorators: [{
411
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintOptionsDirective, decorators: [{
417
412
  type: i0.Directive,
418
413
  args: [{
419
414
  selector: '[tuiHintContent]',
@@ -448,6 +443,105 @@
448
443
  args: ['tuiHintHideDelay']
449
444
  }] } });
450
445
 
446
+ var TuiHintDirective = /** @class */ (function () {
447
+ function TuiHintDirective(elementRef, component, hintService, options, activeZone) {
448
+ this.elementRef = elementRef;
449
+ this.component = component;
450
+ this.hintService = hintService;
451
+ this.options = options;
452
+ this.activeZone = activeZone;
453
+ this.content = '';
454
+ this.tuiHintAppearance = null;
455
+ this.type = 'hint';
456
+ }
457
+ Object.defineProperty(TuiHintDirective.prototype, "appearance", {
458
+ get: function () {
459
+ var _a;
460
+ return (_a = this.tuiHintAppearance) !== null && _a !== void 0 ? _a : this.options.appearance;
461
+ },
462
+ enumerable: false,
463
+ configurable: true
464
+ });
465
+ TuiHintDirective.prototype.ngOnChanges = function () {
466
+ if (!this.content) {
467
+ this.toggle(false);
468
+ }
469
+ };
470
+ TuiHintDirective.prototype.ngOnDestroy = function () {
471
+ this.toggle(false);
472
+ };
473
+ TuiHintDirective.prototype.getClientRect = function () {
474
+ return this.elementRef.nativeElement.getBoundingClientRect();
475
+ };
476
+ TuiHintDirective.prototype.toggle = function (show) {
477
+ if (show && this.content) {
478
+ this.hintService.add(this);
479
+ }
480
+ else {
481
+ this.hintService.remove(this);
482
+ }
483
+ };
484
+ return TuiHintDirective;
485
+ }());
486
+ TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1.PolymorpheusComponent }, { token: i2.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
487
+ TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
488
+ i1$1.tuiAsRectAccessor(TuiHintDirective),
489
+ i1$1.tuiAsVehicle(TuiHintDirective),
490
+ {
491
+ provide: i1.PolymorpheusComponent,
492
+ deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
493
+ useClass: i1.PolymorpheusComponent,
494
+ },
495
+ ], usesOnChanges: true, ngImport: i0__namespace });
496
+ __decorate([
497
+ i3.tuiDefaultProp()
498
+ ], TuiHintDirective.prototype, "content", void 0);
499
+ __decorate([
500
+ i3.tuiDefaultProp()
501
+ ], TuiHintDirective.prototype, "tuiHintAppearance", void 0);
502
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
503
+ type: i0.Directive,
504
+ args: [{
505
+ selector: '[tuiHint]:not(ng-container)',
506
+ providers: [
507
+ i1$1.tuiAsRectAccessor(TuiHintDirective),
508
+ i1$1.tuiAsVehicle(TuiHintDirective),
509
+ {
510
+ provide: i1.PolymorpheusComponent,
511
+ deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
512
+ useClass: i1.PolymorpheusComponent,
513
+ },
514
+ ],
515
+ }]
516
+ }], ctorParameters: function () {
517
+ return [{ type: i0__namespace.ElementRef, decorators: [{
518
+ type: i0.Inject,
519
+ args: [i0.ElementRef]
520
+ }] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
521
+ type: i0.Inject,
522
+ args: [i1.PolymorpheusComponent]
523
+ }] }, { type: i2__namespace.TuiHintService, decorators: [{
524
+ type: i0.Inject,
525
+ args: [i2.TuiHintService]
526
+ }] }, { type: undefined, decorators: [{
527
+ type: i0.Inject,
528
+ args: [TUI_HINT_OPTIONS]
529
+ }] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
530
+ type: i0.Optional
531
+ }, {
532
+ type: i0.Inject,
533
+ args: [i3.TuiActiveZoneDirective]
534
+ }] }];
535
+ }, propDecorators: { content: [{
536
+ type: i0.Input,
537
+ args: ['tuiHint']
538
+ }], context: [{
539
+ type: i0.Input,
540
+ args: ['tuiHintContext']
541
+ }], tuiHintAppearance: [{
542
+ type: i0.Input
543
+ }] } });
544
+
451
545
  var TuiHintHoverDirective = /** @class */ (function (_super) {
452
546
  __extends(TuiHintHoverDirective, _super);
453
547
  function TuiHintHoverDirective(hovered$, options, elementRef) {
@@ -455,34 +549,36 @@
455
549
  _this.hovered$ = hovered$;
456
550
  _this.options = options;
457
551
  _this.elementRef = elementRef;
458
- _this.toggle$ = new i2.Subject();
459
- _this.stream$ = i2.merge(_this.toggle$.pipe(operators.switchMap(function (visible) { return i2.of(visible).pipe(operators.delay(visible ? 0 : _this.hideDelay)); }), operators.takeUntil(_this.hovered$), operators.repeat()), _this.hovered$.pipe(operators.switchMap(function (visible) { return i2.of(visible).pipe(operators.delay(visible ? _this.showDelay : _this.hideDelay)); }), operators.takeUntil(_this.toggle$), operators.repeat()));
552
+ _this.toggle$ = new i2$1.Subject();
553
+ _this.stream$ = i2$1.merge(_this.toggle$.pipe(operators.switchMap(function (visible) { return i2$1.of(visible).pipe(operators.delay(visible ? 0 : _this.hideDelay)); }), operators.takeUntil(_this.hovered$), operators.repeat()), _this.hovered$.pipe(operators.switchMap(function (visible) { return i2$1.of(visible).pipe(operators.delay(visible ? _this.showDelay : _this.hideDelay)); }), operators.takeUntil(_this.toggle$), operators.repeat())).pipe(operators.filter(function () { return _this.enabled; }));
460
554
  _this.showDelay = _this.options.showDelay;
461
555
  _this.hideDelay = _this.options.hideDelay;
556
+ _this.type = 'hint';
557
+ _this.enabled = true;
462
558
  return _this;
463
559
  }
464
560
  TuiHintHoverDirective.prototype.toggle = function (visible) {
465
561
  this.toggle$.next(visible);
466
562
  };
467
563
  return TuiHintHoverDirective;
468
- }(i1.TuiDriver));
469
- TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHoverDirective, deps: [{ token: i3.TuiHoveredService }, { token: TUI_HINT_OPTIONS }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
470
- TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [i1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
564
+ }(i1$1.TuiDriver));
565
+ TuiHintHoverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, deps: [{ token: i3.TuiHoveredService }, { token: TUI_HINT_OPTIONS }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
566
+ TuiHintHoverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHoverDirective, selector: "[tuiHint]:not(ng-container)", inputs: { showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [i1$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService], exportAs: ["tuiHintHover"], usesInheritance: true, ngImport: i0__namespace });
471
567
  __decorate([
472
568
  i3.tuiDefaultProp()
473
569
  ], TuiHintHoverDirective.prototype, "showDelay", void 0);
474
570
  __decorate([
475
571
  i3.tuiDefaultProp()
476
572
  ], TuiHintHoverDirective.prototype, "hideDelay", void 0);
477
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
573
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHoverDirective, decorators: [{
478
574
  type: i0.Directive,
479
575
  args: [{
480
576
  selector: '[tuiHint]:not(ng-container)',
481
577
  exportAs: 'tuiHintHover',
482
- providers: [i1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
578
+ providers: [i1$1.tuiAsDriver(TuiHintHoverDirective), i3.TuiHoveredService],
483
579
  }]
484
580
  }], ctorParameters: function () {
485
- return [{ type: i2__namespace.Observable, decorators: [{
581
+ return [{ type: i2__namespace$1.Observable, decorators: [{
486
582
  type: i0.Inject,
487
583
  args: [i3.TuiHoveredService]
488
584
  }] }, { type: undefined, decorators: [{
@@ -516,18 +612,18 @@
516
612
  };
517
613
  return TuiHintPointerDirective;
518
614
  }(TuiHintHoverDirective));
519
- TuiHintPointerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPointerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
520
- TuiHintPointerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.silent": "onMove($event)" } }, providers: [
521
- i1.tuiAsRectAccessor(TuiHintPointerDirective),
522
- i1.tuiAsDriver(TuiHintPointerDirective),
615
+ TuiHintPointerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
616
+ TuiHintPointerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPointerDirective, selector: "[tuiHint][tuiHintPointer]", host: { listeners: { "mousemove.silent": "onMove($event)" } }, providers: [
617
+ i1$1.tuiAsRectAccessor(TuiHintPointerDirective),
618
+ i1$1.tuiAsDriver(TuiHintPointerDirective),
523
619
  ], usesInheritance: true, ngImport: i0__namespace });
524
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
620
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPointerDirective, decorators: [{
525
621
  type: i0.Directive,
526
622
  args: [{
527
623
  selector: '[tuiHint][tuiHintPointer]',
528
624
  providers: [
529
- i1.tuiAsRectAccessor(TuiHintPointerDirective),
530
- i1.tuiAsDriver(TuiHintPointerDirective),
625
+ i1$1.tuiAsRectAccessor(TuiHintPointerDirective),
626
+ i1$1.tuiAsDriver(TuiHintPointerDirective),
531
627
  ],
532
628
  }]
533
629
  }], propDecorators: { onMove: [{
@@ -590,36 +686,48 @@
590
686
  };
591
687
  return TuiHintComponent;
592
688
  }());
593
- TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintComponent, deps: [{ token: i3.TuiHoveredService }, { token: i2$1.TuiPositionService }, { token: i3.TuiDestroyService, self: true }, { token: i1.TuiRectAccessor }, { token: i0.ElementRef }, { token: tokens.TUI_ANIMATION_OPTIONS }, { token: i1$1.POLYMORPHEUS_CONTEXT }, { token: TuiHintHoverDirective }, { token: TuiHintPointerDirective, optional: true }, { token: i5.TuiModeDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
594
- TuiHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintComponent, selector: "tui-hint", host: { listeners: { "document:click": "onClick($event.target)" }, properties: { "@tuiFadeIn": "this.animation", "attr.data-appearance": "this.appearance", "class._untouchable": "this.untouchable" } }, providers: [i3.TuiDestroyService, i2$1.TuiPositionService, i3.TuiHoveredService], ngImport: i0__namespace, template: "\n <ng-container *polymorpheusOutlet=\"content as text; context: context\">\n {{ text }}\n </ng-container>\n ", isInline: true, styles: [":host{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}:host:before{content:\"\";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}:host[data-appearance=error]{background:var(--tui-error-fill)}:host[data-appearance=onDark]{background:var(--tui-elevation-01);color:var(--tui-text-01);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"], directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [animations.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
689
+ TuiHintComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, deps: [{ token: i3.TuiHoveredService }, { token: i2.TuiPositionService }, { token: i3.TuiDestroyService, self: true }, { token: i1$1.TuiRectAccessor }, { token: i0.ElementRef }, { token: tokens.TUI_ANIMATION_OPTIONS }, { token: i1.POLYMORPHEUS_CONTEXT }, { token: TuiHintHoverDirective }, { token: TuiHintPointerDirective, optional: true }, { token: i5.TuiModeDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
690
+ TuiHintComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintComponent, selector: "tui-hint", host: { listeners: { "document:click": "onClick($event.target)" }, properties: { "@tuiFadeIn": "this.animation", "attr.data-appearance": "this.appearance", "class._untouchable": "this.untouchable" } }, providers: [
691
+ i3.TuiDestroyService,
692
+ i2.TuiPositionService,
693
+ i3.TuiHoveredService,
694
+ i1$1.tuiPositionAccessorFor('hint'),
695
+ i1$1.tuiRectAccessorFor('hint', TuiHintDirective),
696
+ ], ngImport: i0__namespace, template: "\n <ng-container *polymorpheusOutlet=\"content as text; context: context\">\n {{ text }}\n </ng-container>\n ", isInline: true, styles: [":host{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}:host:before{content:\"\";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}:host[data-appearance=error]{background:var(--tui-error-fill)}:host[data-appearance=onDark]{background:var(--tui-elevation-01);color:var(--tui-text-01);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"], directives: [{ type: i1__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], animations: [animations.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
595
697
  __decorate([
596
698
  i3.tuiPure
597
699
  ], TuiHintComponent.prototype, "update", null);
598
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
700
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintComponent, decorators: [{
599
701
  type: i0.Component,
600
702
  args: [{
601
703
  selector: 'tui-hint',
602
704
  template: "\n <ng-container *polymorpheusOutlet=\"content as text; context: context\">\n {{ text }}\n </ng-container>\n ",
603
705
  styleUrls: ['./hint.style.less'],
604
706
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
605
- providers: [i3.TuiDestroyService, i2$1.TuiPositionService, i3.TuiHoveredService],
707
+ providers: [
708
+ i3.TuiDestroyService,
709
+ i2.TuiPositionService,
710
+ i3.TuiHoveredService,
711
+ i1$1.tuiPositionAccessorFor('hint'),
712
+ i1$1.tuiRectAccessorFor('hint', TuiHintDirective),
713
+ ],
606
714
  animations: [animations.tuiFadeIn],
607
715
  }]
608
716
  }], ctorParameters: function () {
609
- return [{ type: i2__namespace.Observable, decorators: [{
717
+ return [{ type: i2__namespace$1.Observable, decorators: [{
610
718
  type: i0.Inject,
611
719
  args: [i3.TuiHoveredService]
612
- }] }, { type: i2__namespace.Observable, decorators: [{
720
+ }] }, { type: i2__namespace$1.Observable, decorators: [{
613
721
  type: i0.Inject,
614
- args: [i2$1.TuiPositionService]
615
- }] }, { type: i2__namespace.Observable, decorators: [{
722
+ args: [i2.TuiPositionService]
723
+ }] }, { type: i2__namespace$1.Observable, decorators: [{
616
724
  type: i0.Self
617
725
  }, {
618
726
  type: i0.Inject,
619
727
  args: [i3.TuiDestroyService]
620
728
  }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
621
729
  type: i0.Inject,
622
- args: [i1.TuiRectAccessor]
730
+ args: [i1$1.TuiRectAccessor]
623
731
  }] }, { type: i0__namespace.ElementRef, decorators: [{
624
732
  type: i0.Inject,
625
733
  args: [i0.ElementRef]
@@ -628,7 +736,7 @@
628
736
  args: [tokens.TUI_ANIMATION_OPTIONS]
629
737
  }] }, { type: undefined, decorators: [{
630
738
  type: i0.Inject,
631
- args: [i1$1.POLYMORPHEUS_CONTEXT]
739
+ args: [i1.POLYMORPHEUS_CONTEXT]
632
740
  }] }, { type: TuiHintHoverDirective, decorators: [{
633
741
  type: i0.Inject,
634
742
  args: [TuiHintHoverDirective]
@@ -657,123 +765,20 @@
657
765
  args: ['document:click', ['$event.target']]
658
766
  }], update: [] } });
659
767
 
660
- var TUI_HINT_COMPONENT = new i0.InjectionToken("[TUI_HINT_COMPONENT] A component to display a hint", {
661
- factory: function () { return TuiHintComponent; },
662
- });
663
-
664
- var TuiHintDirective = /** @class */ (function () {
665
- function TuiHintDirective(elementRef, component, hintService, options, activeZone) {
666
- this.elementRef = elementRef;
667
- this.component = component;
668
- this.hintService = hintService;
669
- this.options = options;
670
- this.activeZone = activeZone;
671
- this.content = '';
672
- this.tuiHintAppearance = null;
673
- }
674
- Object.defineProperty(TuiHintDirective.prototype, "appearance", {
675
- get: function () {
676
- var _a;
677
- return (_a = this.tuiHintAppearance) !== null && _a !== void 0 ? _a : this.options.appearance;
678
- },
679
- enumerable: false,
680
- configurable: true
681
- });
682
- TuiHintDirective.prototype.ngOnChanges = function () {
683
- if (!this.content) {
684
- this.toggle(false);
685
- }
686
- };
687
- TuiHintDirective.prototype.ngOnDestroy = function () {
688
- this.toggle(false);
689
- };
690
- TuiHintDirective.prototype.getClientRect = function () {
691
- return this.elementRef.nativeElement.getBoundingClientRect();
692
- };
693
- TuiHintDirective.prototype.toggle = function (show) {
694
- if (show && this.content) {
695
- this.hintService.add(this);
696
- }
697
- else {
698
- this.hintService.remove(this);
699
- }
700
- };
701
- return TuiHintDirective;
702
- }());
703
- TuiHintDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.PolymorpheusComponent }, { token: i2$1.TuiHintService }, { token: TUI_HINT_OPTIONS }, { token: i3.TuiActiveZoneDirective, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
704
- TuiHintDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintDirective, selector: "[tuiHint]:not(ng-container)", inputs: { content: ["tuiHint", "content"], context: ["tuiHintContext", "context"], tuiHintAppearance: "tuiHintAppearance" }, providers: [
705
- i1.tuiAsRectAccessor(TuiHintDirective),
706
- i1.tuiAsVehicle(TuiHintDirective),
707
- {
708
- provide: i1$1.PolymorpheusComponent,
709
- deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
710
- useClass: i1$1.PolymorpheusComponent,
711
- },
712
- ], usesOnChanges: true, ngImport: i0__namespace });
713
- __decorate([
714
- i3.tuiDefaultProp()
715
- ], TuiHintDirective.prototype, "content", void 0);
716
- __decorate([
717
- i3.tuiDefaultProp()
718
- ], TuiHintDirective.prototype, "tuiHintAppearance", void 0);
719
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDirective, decorators: [{
720
- type: i0.Directive,
721
- args: [{
722
- selector: '[tuiHint]:not(ng-container)',
723
- providers: [
724
- i1.tuiAsRectAccessor(TuiHintDirective),
725
- i1.tuiAsVehicle(TuiHintDirective),
726
- {
727
- provide: i1$1.PolymorpheusComponent,
728
- deps: [TUI_HINT_COMPONENT, i0.INJECTOR],
729
- useClass: i1$1.PolymorpheusComponent,
730
- },
731
- ],
732
- }]
733
- }], ctorParameters: function () {
734
- return [{ type: i0__namespace.ElementRef, decorators: [{
735
- type: i0.Inject,
736
- args: [i0.ElementRef]
737
- }] }, { type: i1__namespace.PolymorpheusComponent, decorators: [{
738
- type: i0.Inject,
739
- args: [i1$1.PolymorpheusComponent]
740
- }] }, { type: i2__namespace$1.TuiHintService, decorators: [{
741
- type: i0.Inject,
742
- args: [i2$1.TuiHintService]
743
- }] }, { type: undefined, decorators: [{
744
- type: i0.Inject,
745
- args: [TUI_HINT_OPTIONS]
746
- }] }, { type: i3__namespace.TuiActiveZoneDirective, decorators: [{
747
- type: i0.Optional
748
- }, {
749
- type: i0.Inject,
750
- args: [i3.TuiActiveZoneDirective]
751
- }] }];
752
- }, propDecorators: { content: [{
753
- type: i0.Input,
754
- args: ['tuiHint']
755
- }], context: [{
756
- type: i0.Input,
757
- args: ['tuiHintContext']
758
- }], tuiHintAppearance: [{
759
- type: i0.Input
760
- }] } });
761
-
762
768
  var TuiHintDescribeDirective = /** @class */ (function (_super) {
763
769
  __extends(TuiHintDescribeDirective, _super);
764
- function TuiHintDescribeDirective(ngZone, hover$, documentRef, elementRef) {
770
+ function TuiHintDescribeDirective(ngZone, documentRef, elementRef) {
765
771
  var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
766
772
  _this.ngZone = ngZone;
767
- _this.hover$ = hover$;
768
773
  _this.documentRef = documentRef;
769
774
  _this.elementRef = elementRef;
770
- _this.focus$ = i3.tuiTypedFromEvent(_this.documentRef, 'keydown', {
775
+ _this.stream$ = i3.tuiTypedFromEvent(_this.documentRef, 'keydown', {
771
776
  capture: true,
772
777
  }).pipe(operators.switchMap(function () { return _this.focused
773
- ? i2.of(false)
774
- : i2.merge(i3.tuiTypedFromEvent(_this.documentRef, 'keyup'), i3.tuiTypedFromEvent(_this.element, 'blur')).pipe(operators.map(function () { return _this.focused; })); }), operators.debounce(function (visible) { return (visible ? i2.timer(1000) : i2.of(null)); }), operators.startWith(false), operators.distinctUntilChanged(), operators.skip(1), i3.tuiZoneOptimized(_this.ngZone));
775
- _this.stream$ = i2.merge(_this.hover$, _this.focus$);
778
+ ? i2$1.of(false)
779
+ : i2$1.merge(i3.tuiTypedFromEvent(_this.documentRef, 'keyup'), i3.tuiTypedFromEvent(_this.element, 'blur')).pipe(operators.map(function () { return _this.focused; })); }), operators.debounce(function (visible) { return (visible ? i2$1.timer(1000) : i2$1.of(null)); }), operators.startWith(false), operators.distinctUntilChanged(), operators.skip(1), i3.tuiZoneOptimized(_this.ngZone));
776
780
  _this.tuiHintDescribe = '';
781
+ _this.type = 'hint';
777
782
  return _this;
778
783
  }
779
784
  Object.defineProperty(TuiHintDescribeDirective.prototype, "focused", {
@@ -792,25 +797,22 @@
792
797
  configurable: true
793
798
  });
794
799
  return TuiHintDescribeDirective;
795
- }(i1.TuiDriver));
796
- TuiHintDescribeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDescribeDirective, deps: [{ token: i0.NgZone }, { token: TuiHintHoverDirective }, { token: common.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
797
- TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, ngImport: i0__namespace });
800
+ }(i1$1.TuiDriver));
801
+ TuiHintDescribeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, deps: [{ token: i0.NgZone }, { token: common.DOCUMENT }, { token: i0.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
802
+ TuiHintDescribeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDescribeDirective, selector: "[tuiHintDescribe]", inputs: { tuiHintDescribe: "tuiHintDescribe" }, providers: [i1$1.tuiAsDriver(TuiHintDescribeDirective)], usesInheritance: true, ngImport: i0__namespace });
798
803
  __decorate([
799
804
  i3.tuiPure
800
805
  ], TuiHintDescribeDirective.prototype, "element", null);
801
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
806
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDescribeDirective, decorators: [{
802
807
  type: i0.Directive,
803
808
  args: [{
804
809
  selector: '[tuiHintDescribe]',
805
- providers: [i1.tuiAsDriver(TuiHintDescribeDirective)],
810
+ providers: [i1$1.tuiAsDriver(TuiHintDescribeDirective)],
806
811
  }]
807
812
  }], ctorParameters: function () {
808
813
  return [{ type: i0__namespace.NgZone, decorators: [{
809
814
  type: i0.Inject,
810
815
  args: [i0.NgZone]
811
- }] }, { type: i2__namespace.Observable, decorators: [{
812
- type: i0.Inject,
813
- args: [TuiHintHoverDirective]
814
816
  }] }, { type: Document, decorators: [{
815
817
  type: i0.Inject,
816
818
  args: [common.DOCUMENT]
@@ -824,39 +826,57 @@
824
826
 
825
827
  var TuiHintDriverDirective = /** @class */ (function (_super) {
826
828
  __extends(TuiHintDriverDirective, _super);
827
- function TuiHintDriverDirective() {
828
- return _super !== null && _super.apply(this, arguments) || this;
829
+ // TODO: Figure out why this is necessary under nx test runner
830
+ function TuiHintDriverDirective(destroy$, drivers, vehicles) {
831
+ var _this = _super.call(this, destroy$, drivers, vehicles) || this;
832
+ _this.type = 'hint';
833
+ return _this;
829
834
  }
830
835
  return TuiHintDriverDirective;
831
- }(i1.AbstractTuiDriverDirective));
832
- TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDriverDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
833
- TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintDriverDirective, selector: "[tuiHint]", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
834
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
836
+ }(i1$1.AbstractTuiDriverDirective));
837
+ TuiHintDriverDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, deps: [{ token: i3.TuiDestroyService, self: true }, { token: i1$1.TuiDriver }, { token: i1$1.TuiVehicle }], target: i0__namespace.ɵɵFactoryTarget.Directive });
838
+ TuiHintDriverDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintDriverDirective, selector: "[tuiHint]", providers: [i3.TuiDestroyService], usesInheritance: true, ngImport: i0__namespace });
839
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintDriverDirective, decorators: [{
835
840
  type: i0.Directive,
836
841
  args: [{
837
842
  selector: '[tuiHint]',
838
843
  providers: [i3.TuiDestroyService],
839
844
  }]
840
- }] });
845
+ }], ctorParameters: function () {
846
+ return [{ type: i2__namespace$1.Observable, decorators: [{
847
+ type: i0.Self
848
+ }, {
849
+ type: i0.Inject,
850
+ args: [i3.TuiDestroyService]
851
+ }] }, { type: undefined, decorators: [{
852
+ type: i0.Inject,
853
+ args: [i1$1.TuiDriver]
854
+ }] }, { type: undefined, decorators: [{
855
+ type: i0.Inject,
856
+ args: [i1$1.TuiVehicle]
857
+ }] }];
858
+ } });
841
859
 
842
860
  var TuiHintHostDirective = /** @class */ (function (_super) {
843
861
  __extends(TuiHintHostDirective, _super);
844
862
  function TuiHintHostDirective() {
845
- return _super !== null && _super.apply(this, arguments) || this;
863
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
864
+ _this.type = 'hint';
865
+ return _this;
846
866
  }
847
867
  TuiHintHostDirective.prototype.getClientRect = function () {
848
868
  var _a;
849
869
  return ((_a = this.tuiHintHost) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || i3.EMPTY_CLIENT_RECT;
850
870
  };
851
871
  return TuiHintHostDirective;
852
- }(i1.TuiRectAccessor));
853
- TuiHintHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHostDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
854
- TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
855
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
872
+ }(i1$1.TuiRectAccessor));
873
+ TuiHintHostDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, deps: null, target: i0__namespace.ɵɵFactoryTarget.Directive });
874
+ TuiHintHostDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintHostDirective, selector: "[tuiHint][tuiHintHost]", inputs: { tuiHintHost: "tuiHintHost" }, providers: [i1$1.tuiAsRectAccessor(TuiHintHostDirective)], usesInheritance: true, ngImport: i0__namespace });
875
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintHostDirective, decorators: [{
856
876
  type: i0.Directive,
857
877
  args: [{
858
878
  selector: '[tuiHint][tuiHintHost]',
859
- providers: [i1.tuiAsRectAccessor(TuiHintHostDirective)],
879
+ providers: [i1$1.tuiAsRectAccessor(TuiHintHostDirective)],
860
880
  }]
861
881
  }], propDecorators: { tuiHintHost: [{
862
882
  type: i0.Input
@@ -864,26 +884,33 @@
864
884
 
865
885
  var TuiHintManualDirective = /** @class */ (function (_super) {
866
886
  __extends(TuiHintManualDirective, _super);
867
- function TuiHintManualDirective() {
887
+ function TuiHintManualDirective(hover) {
868
888
  var _this = _super.call(this, function (subscriber) { return _this.stream$.subscribe(subscriber); }) || this;
869
- _this.stream$ = new i2.Subject();
889
+ _this.stream$ = new i2$1.Subject();
870
890
  _this.tuiHintManual = false;
891
+ _this.type = 'hint';
892
+ hover.enabled = false;
871
893
  return _this;
872
894
  }
873
895
  TuiHintManualDirective.prototype.ngOnChanges = function () {
874
896
  this.stream$.next(this.tuiHintManual);
875
897
  };
876
898
  return TuiHintManualDirective;
877
- }(i1.TuiDriver));
878
- TuiHintManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintManualDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
879
- TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
880
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
899
+ }(i1$1.TuiDriver));
900
+ TuiHintManualDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, deps: [{ token: TuiHintHoverDirective }], target: i0__namespace.ɵɵFactoryTarget.Directive });
901
+ TuiHintManualDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintManualDirective, selector: "[tuiHint][tuiHintManual]", inputs: { tuiHintManual: "tuiHintManual" }, providers: [i1$1.tuiAsDriver(TuiHintManualDirective)], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace });
902
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintManualDirective, decorators: [{
881
903
  type: i0.Directive,
882
904
  args: [{
883
905
  selector: '[tuiHint][tuiHintManual]',
884
- providers: [i1.tuiAsDriver(TuiHintManualDirective)],
906
+ providers: [i1$1.tuiAsDriver(TuiHintManualDirective)],
885
907
  }]
886
- }], ctorParameters: function () { return []; }, propDecorators: { tuiHintManual: [{
908
+ }], ctorParameters: function () {
909
+ return [{ type: TuiHintHoverDirective, decorators: [{
910
+ type: i0.Inject,
911
+ args: [TuiHintHoverDirective]
912
+ }] }];
913
+ }, propDecorators: { tuiHintManual: [{
887
914
  type: i0.Input
888
915
  }] } });
889
916
 
@@ -891,22 +918,28 @@
891
918
  var ARROW_OFFSET = 22;
892
919
  var TOP = 0;
893
920
  var LEFT = 1;
894
- var TuiHintPositionDirective = /** @class */ (function () {
895
- function TuiHintPositionDirective(options, viewport, accessor) {
896
- this.options = options;
897
- this.viewport = viewport;
898
- this.accessor = accessor;
899
- this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
900
- var _a;
901
- return (Object.assign(Object.assign({}, acc), (_a = {}, _a[direction] = [0, 0], _a)));
921
+ var TuiHintPositionDirective = /** @class */ (function (_super) {
922
+ __extends(TuiHintPositionDirective, _super);
923
+ function TuiHintPositionDirective(options, viewport, directive, accessors) {
924
+ var _this = _super.call(this) || this;
925
+ _this.options = options;
926
+ _this.viewport = viewport;
927
+ _this.directive = directive;
928
+ _this.accessors = accessors;
929
+ _this.points = constants.TUI_HINT_DIRECTIONS.reduce(function (acc, direction) {
930
+ var _c;
931
+ return (Object.assign(Object.assign({}, acc), (_c = {}, _c[direction] = [0, 0], _c)));
902
932
  }, {});
903
- this.direction = this.options.direction;
933
+ _this.direction = _this.options.direction;
934
+ _this.type = 'hint';
935
+ return _this;
904
936
  }
905
937
  // eslint-disable-next-line max-statements
906
- TuiHintPositionDirective.prototype.getPosition = function (_a) {
938
+ TuiHintPositionDirective.prototype.getPosition = function (_c) {
907
939
  var _this = this;
908
- var width = _a.width, height = _a.height;
909
- var hostRect = this.accessor.getClientRect();
940
+ var width = _c.width, height = _c.height;
941
+ var _a, _b;
942
+ var hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : i3.EMPTY_CLIENT_RECT;
910
943
  var leftCenter = hostRect.left + hostRect.width / 2;
911
944
  var topCenter = hostRect.top + hostRect.height / 2;
912
945
  this.points['top-left'][TOP] = hostRect.top - height - OFFSET;
@@ -939,6 +972,13 @@
939
972
  var direction = constants.TUI_HINT_DIRECTIONS.find(function (direction) { return _this.checkPosition(_this.points[direction], width, height); });
940
973
  return this.points[direction || this.fallback];
941
974
  };
975
+ Object.defineProperty(TuiHintPositionDirective.prototype, "accessor", {
976
+ get: function () {
977
+ return i1$1.tuiFallbackRectAccessor('hint')(this.accessors, this.directive);
978
+ },
979
+ enumerable: false,
980
+ configurable: true
981
+ });
942
982
  Object.defineProperty(TuiHintPositionDirective.prototype, "fallback", {
943
983
  get: function () {
944
984
  return this.points.top[TOP] >
@@ -949,8 +989,8 @@
949
989
  enumerable: false,
950
990
  configurable: true
951
991
  });
952
- TuiHintPositionDirective.prototype.checkPosition = function (_a, width, height) {
953
- var _b = __read(_a, 2), top = _b[0], left = _b[1];
992
+ TuiHintPositionDirective.prototype.checkPosition = function (_c, width, height) {
993
+ var _d = __read(_c, 2), top = _d[0], left = _d[1];
954
994
  var viewport = this.viewport.getClientRect();
955
995
  return (top > OFFSET &&
956
996
  left > OFFSET &&
@@ -958,17 +998,20 @@
958
998
  left + width < viewport.right - OFFSET);
959
999
  };
960
1000
  return TuiHintPositionDirective;
961
- }());
962
- TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: i1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
963
- TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i1.tuiAsPositionAccessor(TuiHintPositionDirective)], ngImport: i0__namespace });
1001
+ }(i1$1.TuiPositionAccessor));
1002
+ TuiHintPositionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, deps: [{ token: TUI_HINT_OPTIONS }, { token: tokens.TUI_VIEWPORT }, { token: TuiHintDirective }, { token: i1$1.TuiRectAccessor }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1003
+ TuiHintPositionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiHintPositionDirective, selector: "[tuiHint]:not([tuiHintCustomPosition])", inputs: { direction: ["tuiHintDirection", "direction"] }, providers: [i1$1.tuiAsPositionAccessor(TuiHintPositionDirective)], usesInheritance: true, ngImport: i0__namespace });
964
1004
  __decorate([
965
1005
  i3.tuiDefaultProp()
966
1006
  ], TuiHintPositionDirective.prototype, "direction", void 0);
967
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
1007
+ __decorate([
1008
+ i3.tuiPure
1009
+ ], TuiHintPositionDirective.prototype, "accessor", null);
1010
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintPositionDirective, decorators: [{
968
1011
  type: i0.Directive,
969
1012
  args: [{
970
1013
  selector: '[tuiHint]:not([tuiHintCustomPosition])',
971
- providers: [i1.tuiAsPositionAccessor(TuiHintPositionDirective)],
1014
+ providers: [i1$1.tuiAsPositionAccessor(TuiHintPositionDirective)],
972
1015
  }]
973
1016
  }], ctorParameters: function () {
974
1017
  return [{ type: undefined, decorators: [{
@@ -979,20 +1022,23 @@
979
1022
  args: [tokens.TUI_VIEWPORT]
980
1023
  }] }, { type: i1__namespace$1.TuiRectAccessor, decorators: [{
981
1024
  type: i0.Inject,
982
- args: [i1.TuiRectAccessor]
1025
+ args: [TuiHintDirective]
1026
+ }] }, { type: undefined, decorators: [{
1027
+ type: i0.Inject,
1028
+ args: [i1$1.TuiRectAccessor]
983
1029
  }] }];
984
1030
  }, propDecorators: { direction: [{
985
1031
  type: i0.Input,
986
1032
  args: ['tuiHintDirection']
987
- }] } });
1033
+ }], accessor: [] } });
988
1034
 
989
1035
  var TuiHintModule = /** @class */ (function () {
990
1036
  function TuiHintModule() {
991
1037
  }
992
1038
  return TuiHintModule;
993
1039
  }());
994
- TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
995
- TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, declarations: [TuiHintComponent,
1040
+ TuiHintModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1041
+ TuiHintModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, declarations: [TuiHintComponent,
996
1042
  TuiHintDirective,
997
1043
  TuiHintDriverDirective,
998
1044
  TuiHintHostDirective,
@@ -1001,7 +1047,7 @@
1001
1047
  TuiHintPointerDirective,
1002
1048
  TuiHintDescribeDirective,
1003
1049
  TuiHintPositionDirective,
1004
- TuiHintOptionsDirective], imports: [common.CommonModule, i1$1.PolymorpheusModule], exports: [TuiHintComponent,
1050
+ TuiHintOptionsDirective], imports: [common.CommonModule, i1.PolymorpheusModule], exports: [TuiHintComponent,
1005
1051
  TuiHintDirective,
1006
1052
  TuiHintDriverDirective,
1007
1053
  TuiHintHostDirective,
@@ -1011,11 +1057,11 @@
1011
1057
  TuiHintDescribeDirective,
1012
1058
  TuiHintPositionDirective,
1013
1059
  TuiHintOptionsDirective] });
1014
- TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1$1.PolymorpheusModule]] });
1015
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
1060
+ TuiHintModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, imports: [[common.CommonModule, i1.PolymorpheusModule]] });
1061
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiHintModule, decorators: [{
1016
1062
  type: i0.NgModule,
1017
1063
  args: [{
1018
- imports: [common.CommonModule, i1$1.PolymorpheusModule],
1064
+ imports: [common.CommonModule, i1.PolymorpheusModule],
1019
1065
  declarations: [
1020
1066
  TuiHintComponent,
1021
1067
  TuiHintDirective,