@taiga-ui/core 2.20.0 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. package/README.md +7 -3
  2. package/abstract/abstract-hint.d.ts +3 -1
  3. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  4. package/bundles/taiga-ui-core-abstract.umd.js +4 -2
  5. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-abstract.umd.min.js +1 -1
  7. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.js +21 -7
  9. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  11. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
  13. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-calendar.umd.min.js +1 -1
  15. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-data-list.umd.js +6 -5
  17. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  19. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-dialog.umd.js +2 -2
  21. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  23. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  25. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  26. package/bundles/taiga-ui-core-components-error.umd.js +1 -1
  27. package/bundles/taiga-ui-core-components-error.umd.min.js +1 -1
  28. package/bundles/taiga-ui-core-components-expand.umd.js +3 -2
  29. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  31. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-hints-host.umd.js +11 -5
  33. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +1 -1
  35. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +2 -15
  37. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  39. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  41. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  43. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-link.umd.js +1 -1
  45. package/bundles/taiga-ui-core-components-link.umd.min.js +1 -1
  46. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-loader.umd.js +2 -2
  48. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-loader.umd.min.js +1 -1
  50. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-notification.umd.js +1 -1
  52. package/bundles/taiga-ui-core-components-notification.umd.min.js +1 -1
  53. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
  54. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  56. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +2 -2
  58. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  59. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +138 -106
  60. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +2 -2
  62. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +2 -2
  64. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  65. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +1 -1
  66. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +2 -2
  68. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +1 -1
  69. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core-components-scrollbar.umd.js +34 -24
  71. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
  73. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-core-components-theme-night.umd.js +7 -11
  75. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-theme-night.umd.min.js +2 -2
  77. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  79. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  80. package/bundles/taiga-ui-core-components-wrapper.umd.js +1 -1
  81. package/bundles/taiga-ui-core-components-wrapper.umd.min.js +1 -1
  82. package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-core-constants.umd.js +10 -1
  84. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  85. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  86. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-core-directives-border.umd.js +291 -0
  88. package/bundles/taiga-ui-core-directives-border.umd.js.map +1 -0
  89. package/bundles/taiga-ui-core-directives-border.umd.min.js +16 -0
  90. package/bundles/taiga-ui-core-directives-border.umd.min.js.map +1 -0
  91. package/bundles/taiga-ui-core-directives-hint.umd.js +7 -4
  92. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  93. package/bundles/taiga-ui-core-directives-hint.umd.min.js +1 -1
  94. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +7 -4
  96. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  97. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js +1 -1
  98. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +1 -1
  100. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
  102. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -3
  104. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  105. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives.umd.js +12 -4
  107. package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  109. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  110. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  111. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js +1 -1
  112. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-modules-notifications.umd.js +2 -2
  114. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  116. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-core-tokens.umd.js +9 -0
  118. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  119. package/bundles/taiga-ui-core-tokens.umd.min.js +1 -1
  120. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-core-utils-dom.umd.js +3 -1
  122. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  123. package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
  124. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-utils-mask.umd.js +28 -8
  126. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  127. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  128. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +2 -4
  130. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  131. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js +1 -1
  132. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  133. package/components/button/button-options.d.ts +10 -0
  134. package/components/button/button.component.d.ts +8 -7
  135. package/components/button/index.d.ts +1 -0
  136. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  137. package/components/calendar/taiga-ui-core-components-calendar.metadata.json +1 -1
  138. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  139. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  140. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  141. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  142. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  143. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  144. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +1 -3
  145. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  146. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  147. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  148. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  149. package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
  150. package/components/primitive-calendar/primitive-calendar.component.d.ts +1 -1
  151. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  152. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  153. package/components/primitive-textfield/index.d.ts +1 -0
  154. package/components/primitive-textfield/primitive-textfield.component.d.ts +9 -16
  155. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  156. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +18 -0
  157. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
  158. package/components/scroll-controls/scroll-controls.component.d.ts +1 -1
  159. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  160. package/components/scrollbar/scrollable.directive.d.ts +5 -1
  161. package/components/scrollbar/scrollbar.component.d.ts +4 -3
  162. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  163. package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
  164. package/components/theme-night/theme-night.component.d.ts +0 -1
  165. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  166. package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +1 -1
  167. package/constants/events.d.ts +5 -0
  168. package/constants/media.d.ts +1 -0
  169. package/constants/regexp.d.ts +1 -0
  170. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  171. package/constants/version.d.ts +1 -1
  172. package/directives/border/border.directive.d.ts +9 -0
  173. package/directives/border/border.module.d.ts +2 -0
  174. package/directives/border/index.d.ts +2 -0
  175. package/directives/border/package.json +13 -0
  176. package/directives/border/taiga-ui-core-directives-border.d.ts +4 -0
  177. package/directives/border/taiga-ui-core-directives-border.metadata.json +1 -0
  178. package/directives/hint/hint.directive.d.ts +2 -2
  179. package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
  180. package/directives/index.d.ts +1 -0
  181. package/directives/manual-hint/manual-hint.directive.d.ts +2 -1
  182. package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
  183. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  184. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  185. package/esm2015/abstract/abstract-hint.js +6 -4
  186. package/esm2015/components/button/button-options.js +10 -0
  187. package/esm2015/components/button/button.component.js +12 -8
  188. package/esm2015/components/button/index.js +2 -1
  189. package/esm2015/components/calendar/calendar.component.js +2 -2
  190. package/esm2015/components/data-list/data-list.component.js +4 -3
  191. package/esm2015/components/data-list/option/option.component.js +4 -4
  192. package/esm2015/components/dialog/dialog.component.js +3 -3
  193. package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
  194. package/esm2015/components/error/error.component.js +1 -1
  195. package/esm2015/components/expand/expand.component.js +4 -3
  196. package/esm2015/components/hints-host/hint-box/hint-box.component.js +3 -3
  197. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  198. package/esm2015/components/hints-host/hints-host.module.js +9 -3
  199. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +4 -13
  200. package/esm2015/components/label/label.component.js +2 -2
  201. package/esm2015/components/link/link.component.js +1 -1
  202. package/esm2015/components/loader/loader.component.js +3 -3
  203. package/esm2015/components/notification/notification.component.js +1 -1
  204. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  205. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
  206. package/esm2015/components/primitive-textfield/index.js +2 -1
  207. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +38 -67
  208. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +7 -2
  209. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +65 -0
  210. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  211. package/esm2015/components/scroll-controls/scroll-controls.component.js +2 -2
  212. package/esm2015/components/scrollbar/scrollable.directive.js +18 -4
  213. package/esm2015/components/scrollbar/scrollbar.component.js +20 -18
  214. package/esm2015/components/theme-night/theme-night.component.js +4 -12
  215. package/esm2015/components/tooltip/tooltip.component.js +1 -1
  216. package/esm2015/components/wrapper/wrapper.component.js +1 -1
  217. package/esm2015/constants/events.js +6 -1
  218. package/esm2015/constants/media.js +2 -1
  219. package/esm2015/constants/regexp.js +2 -1
  220. package/esm2015/constants/version.js +2 -2
  221. package/esm2015/directives/border/border.directive.js +42 -0
  222. package/esm2015/directives/border/border.module.js +13 -0
  223. package/esm2015/directives/border/index.js +3 -0
  224. package/esm2015/directives/border/taiga-ui-core-directives-border.js +5 -0
  225. package/esm2015/directives/hint/hint.directive.js +10 -7
  226. package/esm2015/directives/index.js +2 -1
  227. package/esm2015/directives/manual-hint/manual-hint.directive.js +10 -7
  228. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +2 -2
  229. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  230. package/esm2015/directives/textfield-controller/textfield-size.directive.js +4 -2
  231. package/esm2015/directives/textfield-controller/textfield-type.directive.js +4 -2
  232. package/esm2015/interfaces/index.js +1 -1
  233. package/esm2015/interfaces/media.js +1 -0
  234. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  235. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  236. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  237. package/esm2015/tokens/index.js +2 -1
  238. package/esm2015/tokens/media.js +9 -0
  239. package/esm2015/utils/dom/process-icon.js +4 -2
  240. package/esm2015/utils/mask/create-number-mask.js +28 -10
  241. package/esm2015/utils/miscellaneous/get-border.js +3 -5
  242. package/esm5/abstract/abstract-hint.js +6 -4
  243. package/esm5/components/button/button-options.js +10 -0
  244. package/esm5/components/button/button.component.js +12 -8
  245. package/esm5/components/button/index.js +2 -1
  246. package/esm5/components/calendar/calendar.component.js +2 -2
  247. package/esm5/components/data-list/data-list.component.js +4 -3
  248. package/esm5/components/data-list/option/option.component.js +4 -4
  249. package/esm5/components/dialog/dialog.component.js +3 -3
  250. package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
  251. package/esm5/components/error/error.component.js +1 -1
  252. package/esm5/components/expand/expand.component.js +4 -3
  253. package/esm5/components/hints-host/hint-box/hint-box.component.js +3 -3
  254. package/esm5/components/hints-host/hints-host.component.js +3 -3
  255. package/esm5/components/hints-host/hints-host.module.js +9 -3
  256. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +4 -17
  257. package/esm5/components/label/label.component.js +2 -2
  258. package/esm5/components/link/link.component.js +1 -1
  259. package/esm5/components/loader/loader.component.js +3 -3
  260. package/esm5/components/notification/notification.component.js +1 -1
  261. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  262. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
  263. package/esm5/components/primitive-textfield/index.js +2 -1
  264. package/esm5/components/primitive-textfield/primitive-textfield.component.js +43 -104
  265. package/esm5/components/primitive-textfield/primitive-textfield.module.js +7 -2
  266. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +99 -0
  267. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  268. package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
  269. package/esm5/components/scrollbar/scrollable.directive.js +17 -5
  270. package/esm5/components/scrollbar/scrollbar.component.js +20 -22
  271. package/esm5/components/theme-night/theme-night.component.js +6 -11
  272. package/esm5/components/tooltip/tooltip.component.js +1 -1
  273. package/esm5/components/wrapper/wrapper.component.js +1 -1
  274. package/esm5/constants/events.js +6 -1
  275. package/esm5/constants/media.js +2 -1
  276. package/esm5/constants/regexp.js +2 -1
  277. package/esm5/constants/version.js +2 -2
  278. package/esm5/directives/border/border.directive.js +51 -0
  279. package/esm5/directives/border/border.module.js +16 -0
  280. package/esm5/directives/border/index.js +3 -0
  281. package/esm5/directives/border/taiga-ui-core-directives-border.js +5 -0
  282. package/esm5/directives/hint/hint.directive.js +10 -7
  283. package/esm5/directives/index.js +2 -1
  284. package/esm5/directives/manual-hint/manual-hint.directive.js +10 -7
  285. package/esm5/directives/pointer-hint/pointer-hint.directive.js +2 -2
  286. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  287. package/esm5/directives/textfield-controller/textfield-size.directive.js +4 -2
  288. package/esm5/directives/textfield-controller/textfield-type.directive.js +4 -2
  289. package/esm5/interfaces/index.js +1 -1
  290. package/esm5/interfaces/media.js +1 -0
  291. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  292. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  293. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  294. package/esm5/tokens/index.js +2 -1
  295. package/esm5/tokens/media.js +9 -0
  296. package/esm5/utils/dom/process-icon.js +4 -2
  297. package/esm5/utils/mask/create-number-mask.js +30 -10
  298. package/esm5/utils/miscellaneous/get-border.js +3 -5
  299. package/fesm2015/taiga-ui-core-abstract.js +4 -2
  300. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  301. package/fesm2015/taiga-ui-core-components-button.js +21 -9
  302. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  303. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  304. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  305. package/fesm2015/taiga-ui-core-components-data-list.js +6 -5
  306. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  307. package/fesm2015/taiga-ui-core-components-dialog.js +2 -2
  308. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  309. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  310. package/fesm2015/taiga-ui-core-components-error.js +1 -1
  311. package/fesm2015/taiga-ui-core-components-expand.js +3 -2
  312. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  313. package/fesm2015/taiga-ui-core-components-hints-host.js +12 -6
  314. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  315. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +3 -12
  316. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  317. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  318. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  319. package/fesm2015/taiga-ui-core-components-link.js +1 -1
  320. package/fesm2015/taiga-ui-core-components-loader.js +2 -2
  321. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  322. package/fesm2015/taiga-ui-core-components-notification.js +1 -1
  323. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  324. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  325. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
  326. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +102 -69
  327. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  328. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  329. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  330. package/fesm2015/taiga-ui-core-components-scroll-controls.js +2 -2
  331. package/fesm2015/taiga-ui-core-components-scrollbar.js +33 -17
  332. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  333. package/fesm2015/taiga-ui-core-components-theme-night.js +3 -11
  334. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  335. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  336. package/fesm2015/taiga-ui-core-components-wrapper.js +1 -1
  337. package/fesm2015/taiga-ui-core-constants.js +9 -2
  338. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  339. package/fesm2015/taiga-ui-core-directives-border.js +57 -0
  340. package/fesm2015/taiga-ui-core-directives-border.js.map +1 -0
  341. package/fesm2015/taiga-ui-core-directives-hint.js +9 -6
  342. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  343. package/fesm2015/taiga-ui-core-directives-manual-hint.js +9 -6
  344. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  345. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +1 -1
  346. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  347. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +9 -3
  348. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  349. package/fesm2015/taiga-ui-core-directives.js +1 -0
  350. package/fesm2015/taiga-ui-core-directives.js.map +1 -1
  351. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  352. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  353. package/fesm2015/taiga-ui-core-modules-notifications.js +2 -2
  354. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  355. package/fesm2015/taiga-ui-core-tokens.js +9 -1
  356. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  357. package/fesm2015/taiga-ui-core-utils-dom.js +3 -1
  358. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  359. package/fesm2015/taiga-ui-core-utils-mask.js +27 -9
  360. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  361. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +2 -4
  362. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  363. package/fesm5/taiga-ui-core-abstract.js +4 -2
  364. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  365. package/fesm5/taiga-ui-core-components-button.js +21 -9
  366. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  367. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  368. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  369. package/fesm5/taiga-ui-core-components-data-list.js +6 -5
  370. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  371. package/fesm5/taiga-ui-core-components-dialog.js +2 -2
  372. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  373. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  374. package/fesm5/taiga-ui-core-components-error.js +1 -1
  375. package/fesm5/taiga-ui-core-components-expand.js +3 -2
  376. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  377. package/fesm5/taiga-ui-core-components-hints-host.js +12 -6
  378. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  379. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +3 -16
  380. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  381. package/fesm5/taiga-ui-core-components-label.js +1 -1
  382. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  383. package/fesm5/taiga-ui-core-components-link.js +1 -1
  384. package/fesm5/taiga-ui-core-components-loader.js +2 -2
  385. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  386. package/fesm5/taiga-ui-core-components-notification.js +1 -1
  387. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  388. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  389. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
  390. package/fesm5/taiga-ui-core-components-primitive-textfield.js +141 -106
  391. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  392. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  393. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  394. package/fesm5/taiga-ui-core-components-scroll-controls.js +2 -2
  395. package/fesm5/taiga-ui-core-components-scrollbar.js +32 -22
  396. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  397. package/fesm5/taiga-ui-core-components-theme-night.js +5 -10
  398. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  399. package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
  400. package/fesm5/taiga-ui-core-components-wrapper.js +1 -1
  401. package/fesm5/taiga-ui-core-constants.js +9 -2
  402. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  403. package/fesm5/taiga-ui-core-directives-border.js +69 -0
  404. package/fesm5/taiga-ui-core-directives-border.js.map +1 -0
  405. package/fesm5/taiga-ui-core-directives-hint.js +9 -6
  406. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  407. package/fesm5/taiga-ui-core-directives-manual-hint.js +9 -6
  408. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  409. package/fesm5/taiga-ui-core-directives-pointer-hint.js +1 -1
  410. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  411. package/fesm5/taiga-ui-core-directives-textfield-controller.js +9 -3
  412. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  413. package/fesm5/taiga-ui-core-directives.js +1 -0
  414. package/fesm5/taiga-ui-core-directives.js.map +1 -1
  415. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  416. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  417. package/fesm5/taiga-ui-core-modules-notifications.js +2 -2
  418. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  419. package/fesm5/taiga-ui-core-tokens.js +9 -1
  420. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  421. package/fesm5/taiga-ui-core-utils-dom.js +3 -1
  422. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  423. package/fesm5/taiga-ui-core-utils-mask.js +30 -10
  424. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  425. package/fesm5/taiga-ui-core-utils-miscellaneous.js +2 -4
  426. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  427. package/interfaces/index.d.ts +1 -0
  428. package/interfaces/media.d.ts +6 -0
  429. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  430. package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.metadata.json +1 -1
  431. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  432. package/package.json +5 -5
  433. package/styles/basic/main.less +2 -4
  434. package/styles/markup/tui-autofill.less +2 -0
  435. package/styles/markup/tui-container-old.less +69 -0
  436. package/styles/markup/tui-form-old.less +141 -0
  437. package/styles/markup/tui-form.less +12 -12
  438. package/styles/markup/tui-group-old.less +322 -0
  439. package/styles/markup/tui-group.less +2 -2
  440. package/styles/markup/tui-mobile-only.less +1 -1
  441. package/styles/markup/tui-row-old.less +157 -0
  442. package/styles/markup/tui-table.less +2 -2
  443. package/styles/mixins/mixins.less +8 -3
  444. package/styles/mixins/picker.less +1 -1
  445. package/styles/mixins/textfield.less +37 -78
  446. package/styles/taiga-ui-global-old.less +18 -0
  447. package/styles/taiga-ui-local-old.less +7 -0
  448. package/styles/theme/variables.less +4 -0
  449. package/styles/theme/wrapper/table.less +4 -0
  450. package/styles/variables/media-old.less +48 -0
  451. package/styles/variables/media.less +4 -4
  452. package/tokens/index.d.ts +1 -0
  453. package/tokens/media.d.ts +3 -0
  454. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  455. package/utils/mask/create-number-mask.d.ts +1 -0
  456. package/utils/miscellaneous/get-border.d.ts +1 -1
@@ -1,18 +1,31 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Directive, Inject, ElementRef, Input, HostBinding, ContentChild, HostListener, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
2
+ import { ElementRef, Inject, Directive, Input, HostBinding, HostListener, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
+ import { TUI_SCROLLABLE, TUI_SCROLL_INTO_VIEW } from '@taiga-ui/core/constants';
3
4
  import { CSS, USER_AGENT } from '@ng-web-apis/common';
4
5
  import { isFirefox, getElementOffset, TUI_IS_IOS, tuiDefaultProp } from '@taiga-ui/cdk';
5
- import { TUI_SCROLL_INTO_VIEW } from '@taiga-ui/core/constants';
6
6
  import { TUI_SCROLL_REF } from '@taiga-ui/core/tokens';
7
7
  import { CommonModule } from '@angular/common';
8
8
  import { TuiScrollControlsModule } from '@taiga-ui/core/components/scroll-controls';
9
9
 
10
10
  let TuiScrollableDirective = class TuiScrollableDirective {
11
+ constructor(elementRef) {
12
+ this.elementRef = elementRef;
13
+ }
14
+ ngOnInit() {
15
+ this.elementRef.nativeElement.dispatchEvent(new CustomEvent(TUI_SCROLLABLE, {
16
+ bubbles: true,
17
+ detail: this.elementRef.nativeElement,
18
+ }));
19
+ }
11
20
  };
21
+ TuiScrollableDirective.ctorParameters = () => [
22
+ { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
23
+ ];
12
24
  TuiScrollableDirective = __decorate([
13
25
  Directive({
14
26
  selector: '[tuiScrollable]',
15
- })
27
+ }),
28
+ __param(0, Inject(ElementRef))
16
29
  ], TuiScrollableDirective);
17
30
 
18
31
  var TuiScrollbarComponent_1;
@@ -31,22 +44,26 @@ let TuiScrollbarComponent = TuiScrollbarComponent_1 = class TuiScrollbarComponen
31
44
  this.userAgent = userAgent;
32
45
  this.isIos = isIos;
33
46
  this.hidden = false;
47
+ this.browserScrollRef = new ElementRef(this.elementRef.nativeElement);
48
+ this.delegated = false;
34
49
  this.isLegacy = !this.cssRef.supports('position', 'sticky') ||
35
50
  (isFirefox(this.userAgent) && !this.cssRef.supports('scrollbar-width', 'none'));
36
51
  }
37
52
  get showScrollbars() {
38
- return !this.hidden && !this.isIos && (!this.isLegacy || !!this.scrollable);
39
- }
40
- get browserScrollRef() {
41
- return this.scrollable || this.elementRef;
53
+ return !this.hidden && !this.isIos && (!this.isLegacy || this.delegated);
42
54
  }
43
55
  get showNative() {
44
- return this.isLegacy && !this.hidden && !this.scrollable;
56
+ return this.isLegacy && !this.hidden && !this.delegated;
57
+ }
58
+ onScrollable(element) {
59
+ this.delegated = true;
60
+ this.browserScrollRef.nativeElement = element;
45
61
  }
46
- scrollIntoView(event) {
47
- const { detail } = event;
62
+ scrollIntoView(detail) {
63
+ if (this.delegated) {
64
+ return;
65
+ }
48
66
  const { nativeElement } = this.browserScrollRef;
49
- event.stopPropagation();
50
67
  const { offsetTop, offsetLeft } = getElementOffset(nativeElement, detail);
51
68
  nativeElement.scrollTop =
52
69
  offsetTop + detail.offsetHeight / 2 - nativeElement.clientHeight / 2;
@@ -64,15 +81,14 @@ __decorate([
64
81
  Input(),
65
82
  tuiDefaultProp()
66
83
  ], TuiScrollbarComponent.prototype, "hidden", void 0);
67
- __decorate([
68
- HostBinding('class._container'),
69
- ContentChild(TuiScrollableDirective, { read: ElementRef })
70
- ], TuiScrollbarComponent.prototype, "scrollable", void 0);
71
84
  __decorate([
72
85
  HostBinding('class._legacy')
73
86
  ], TuiScrollbarComponent.prototype, "showNative", null);
74
87
  __decorate([
75
- HostListener(TUI_SCROLL_INTO_VIEW, ['$event'])
88
+ HostListener(`${TUI_SCROLLABLE}.stop`, ['$event.detail'])
89
+ ], TuiScrollbarComponent.prototype, "onScrollable", null);
90
+ __decorate([
91
+ HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, ['$event.detail'])
76
92
  ], TuiScrollbarComponent.prototype, "scrollIntoView", null);
77
93
  TuiScrollbarComponent = TuiScrollbarComponent_1 = __decorate([
78
94
  Component({
@@ -86,7 +102,7 @@ TuiScrollbarComponent = TuiScrollbarComponent_1 = __decorate([
86
102
  useFactory: scrollRefFactory,
87
103
  },
88
104
  ],
89
- styles: [":host{z-index:0;position:relative;display:flex;overflow:auto}:host:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}:host:not(._legacy)::-webkit-scrollbar,:host:not(._legacy)::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._legacy{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){:host._legacy::-webkit-scrollbar,:host._legacy::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:6px solid transparent}:host._legacy::-webkit-scrollbar{background-color:transparent}:host._legacy::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}:host._legacy::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}:host._legacy::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}:host._container tui-scroll-controls{position:absolute}.content{position:relative;z-index:0;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content}"]
105
+ styles: [":host{z-index:0;position:relative;display:flex;overflow:auto}:host:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}:host:not(._legacy)::-webkit-scrollbar,:host:not(._legacy)::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._legacy{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:0.001dpcm){:host._legacy::-webkit-scrollbar,:host._legacy::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:6px solid transparent}:host._legacy::-webkit-scrollbar{background-color:transparent}:host._legacy::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}:host._legacy::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}:host._legacy::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}.content{position:relative;z-index:0;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content}"]
90
106
  }),
91
107
  __param(0, Inject(CSS)),
92
108
  __param(1, Inject(ElementRef)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-scrollbar.js","sources":["ng://@taiga-ui/core/components/scrollbar/scrollable.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.component.ts","ng://@taiga-ui/core/components/scrollbar/scroll-ref.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.module.ts","ng://@taiga-ui/core/components/scrollbar/taiga-ui-core-components-scrollbar.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n@Directive({\n selector: '[tuiScrollable]',\n})\nexport class TuiScrollableDirective {}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {CSS, USER_AGENT} from '@ng-web-apis/common';\nimport {getElementOffset, isFirefox, TUI_IS_IOS, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW} from '@taiga-ui/core/constants';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\nimport {TuiScrollableDirective} from './scrollable.directive';\n\nexport function scrollRefFactory({\n browserScrollRef,\n}: TuiScrollbarComponent): ElementRef<HTMLElement> {\n return browserScrollRef;\n}\n\n// @dynamic\n@Component({\n selector: 'tui-scrollbar',\n templateUrl: './scrollbar.template.html',\n styleUrls: ['./scrollbar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n deps: [TuiScrollbarComponent],\n useFactory: scrollRefFactory,\n },\n ],\n})\nexport class TuiScrollbarComponent {\n @Input()\n @tuiDefaultProp()\n hidden = false;\n\n @HostBinding('class._container')\n @ContentChild(TuiScrollableDirective, {read: ElementRef})\n readonly scrollable?: ElementRef<HTMLDivElement>;\n\n private readonly isLegacy: boolean =\n !this.cssRef.supports('position', 'sticky') ||\n (isFirefox(this.userAgent) && !this.cssRef.supports('scrollbar-width', 'none'));\n\n constructor(\n /**\n * TODO: remove \"any\" in new TS version; https://github.com/ng-web-apis/common/pull/6\n */\n @Inject(CSS) private readonly cssRef: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_IS_IOS) private readonly isIos: boolean,\n ) {}\n\n get showScrollbars(): boolean {\n return !this.hidden && !this.isIos && (!this.isLegacy || !!this.scrollable);\n }\n\n get browserScrollRef(): ElementRef<HTMLElement> {\n return this.scrollable || this.elementRef;\n }\n\n @HostBinding('class._legacy')\n get showNative(): boolean {\n return this.isLegacy && !this.hidden && !this.scrollable;\n }\n\n @HostListener(TUI_SCROLL_INTO_VIEW, ['$event'])\n scrollIntoView(event: CustomEvent<HTMLElement>) {\n const {detail} = event;\n const {nativeElement} = this.browserScrollRef;\n\n event.stopPropagation();\n\n const {offsetTop, offsetLeft} = getElementOffset(nativeElement, detail);\n\n nativeElement.scrollTop =\n offsetTop + detail.offsetHeight / 2 - nativeElement.clientHeight / 2;\n nativeElement.scrollLeft =\n offsetLeft + detail.offsetWidth / 2 - nativeElement.clientWidth / 2;\n }\n}\n","import {Directive, ElementRef} from '@angular/core';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport const SCROLL_REF_SELECTOR = '[tuiScrollRef]';\n\n@Directive({\n selector: SCROLL_REF_SELECTOR,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollRefDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\nimport {TuiScrollRefDirective} from './scroll-ref.directive';\nimport {TuiScrollableDirective} from './scrollable.directive';\nimport {TuiScrollbarComponent} from './scrollbar.component';\n\n@NgModule({\n imports: [CommonModule, TuiScrollControlsModule],\n declarations: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n exports: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n})\nexport class TuiScrollbarModule {}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CAAC,UAAU,CAAC,CAAA;GApBd,qBAAqB,CAkDjC;;MCnFY,mBAAmB,GAAG,iBAAiB;IAWvC,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IATjC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,cAAc;gBACvB,WAAW,EAAE,UAAU;aAC1B;SACJ;KACJ,CAAC;GACW,qBAAqB,CAAG;;ICFxB,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,uBAAuB,CAAC;QAChD,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;QACpF,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;KAClF,CAAC;GACW,kBAAkB,CAAG;;ACZlC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-scrollbar.js","sources":["ng://@taiga-ui/core/components/scrollbar/scrollable.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.component.ts","ng://@taiga-ui/core/components/scrollbar/scroll-ref.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.module.ts","ng://@taiga-ui/core/components/scrollbar/taiga-ui-core-components-scrollbar.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, OnInit} from '@angular/core';\nimport {TUI_SCROLLABLE} from '@taiga-ui/core/constants';\n\n@Directive({\n selector: '[tuiScrollable]',\n})\nexport class TuiScrollableDirective implements OnInit {\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngOnInit() {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SCROLLABLE, {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n }),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {CSS, USER_AGENT} from '@ng-web-apis/common';\nimport {getElementOffset, isFirefox, TUI_IS_IOS, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW, TUI_SCROLLABLE} from '@taiga-ui/core/constants';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport function scrollRefFactory({\n browserScrollRef,\n}: TuiScrollbarComponent): ElementRef<HTMLElement> {\n return browserScrollRef;\n}\n\n// @dynamic\n@Component({\n selector: 'tui-scrollbar',\n templateUrl: './scrollbar.template.html',\n styleUrls: ['./scrollbar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n deps: [TuiScrollbarComponent],\n useFactory: scrollRefFactory,\n },\n ],\n})\nexport class TuiScrollbarComponent {\n @Input()\n @tuiDefaultProp()\n hidden = false;\n\n readonly browserScrollRef = new ElementRef(this.elementRef.nativeElement);\n\n private delegated = false;\n\n private readonly isLegacy: boolean =\n !this.cssRef.supports('position', 'sticky') ||\n (isFirefox(this.userAgent) && !this.cssRef.supports('scrollbar-width', 'none'));\n\n constructor(\n /**\n * TODO: remove \"any\" in new TS version; https://github.com/ng-web-apis/common/pull/6\n */\n @Inject(CSS) private readonly cssRef: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_IS_IOS) private readonly isIos: boolean,\n ) {}\n\n get showScrollbars(): boolean {\n return !this.hidden && !this.isIos && (!this.isLegacy || this.delegated);\n }\n\n @HostBinding('class._legacy')\n get showNative(): boolean {\n return this.isLegacy && !this.hidden && !this.delegated;\n }\n\n @HostListener(`${TUI_SCROLLABLE}.stop`, ['$event.detail'])\n onScrollable(element: HTMLElement) {\n this.delegated = true;\n this.browserScrollRef.nativeElement = element;\n }\n\n @HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, ['$event.detail'])\n scrollIntoView(detail: HTMLElement) {\n if (this.delegated) {\n return;\n }\n\n const {nativeElement} = this.browserScrollRef;\n const {offsetTop, offsetLeft} = getElementOffset(nativeElement, detail);\n\n nativeElement.scrollTop =\n offsetTop + detail.offsetHeight / 2 - nativeElement.clientHeight / 2;\n nativeElement.scrollLeft =\n offsetLeft + detail.offsetWidth / 2 - nativeElement.clientWidth / 2;\n }\n}\n","import {Directive, ElementRef} from '@angular/core';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport const SCROLL_REF_SELECTOR = '[tuiScrollRef]';\n\n@Directive({\n selector: SCROLL_REF_SELECTOR,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollRefDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\nimport {TuiScrollRefDirective} from './scroll-ref.directive';\nimport {TuiScrollableDirective} from './scrollable.directive';\nimport {TuiScrollbarComponent} from './scrollbar.component';\n\n@NgModule({\n imports: [CommonModule, TuiScrollControlsModule],\n declarations: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n exports: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n})\nexport class TuiScrollbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAMa,sBAAsB,GAAnC,MAAa,sBAAsB;IAC/B,YACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;KACxE;IAEJ,QAAQ;QACJ,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CACvC,IAAI,WAAW,CAAC,cAAc,EAAE;YAC5B,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa;SACxC,CAAC,CACL,CAAC;KACL;EACJ;;YAXwD,UAAU,uBA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,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GApBd,qBAAqB,CAoDjC;;MCnFY,mBAAmB,GAAG,iBAAiB;IAWvC,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IATjC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,cAAc;gBACvB,WAAW,EAAE,UAAU;aAC1B;SACJ;KACJ,CAAC;GACW,qBAAqB,CAAG;;ICFxB,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,uBAAuB,CAAC;QAChD,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;QACpF,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;KAClF,CAAC;GACW,kBAAkB,CAAG;;ACZlC;;;;;;"}
@@ -1,25 +1,17 @@
1
- import { __decorate, __param } from 'tslib';
2
- import { DOCUMENT } from '@angular/common';
3
- import { Inject, Component, ViewEncapsulation, NgModule } from '@angular/core';
1
+ import { __decorate } from 'tslib';
2
+ import { Component, ViewEncapsulation, NgModule } from '@angular/core';
4
3
  import { AbstractTuiThemeSwitcher } from '@taiga-ui/cdk';
5
4
 
6
5
  // @dynamic
7
6
  let TuiThemeNightComponent = class TuiThemeNightComponent extends AbstractTuiThemeSwitcher {
8
- constructor(documentRef) {
9
- super(documentRef);
10
- }
11
7
  };
12
- TuiThemeNightComponent.ctorParameters = () => [
13
- { type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
14
- ];
15
8
  TuiThemeNightComponent = __decorate([
16
9
  Component({
17
10
  selector: 'tui-theme-night',
18
11
  template: '',
19
12
  encapsulation: ViewEncapsulation.None,
20
13
  styles: [":root{--tui-base-01:#222;--tui-base-02:#333;--tui-base-03:#808080;--tui-base-04:#959595;--tui-base-05:#b0b0b0;--tui-base-06:#d7d7d7;--tui-base-07:#ededed;--tui-base-08:#f6f6f6;--tui-base-09:#fff;--tui-focus:rgba(51, 51, 51, 0.64);--tui-secondary:rgba(255, 255, 255, 0.16);--tui-secondary-hover:rgba(255, 255, 255, 0.24);--tui-secondary-active:rgba(255, 255, 255, 0.4);--tui-clear:rgba(255, 255, 255, 0.16);--tui-clear-disabled:rgba(255, 255, 255, 0.08);--tui-clear-hover:rgba(255, 255, 255, 0.24);--tui-clear-active:rgba(255, 255, 255, 0.4);--tui-error-fill:#ff8c67;--tui-error-bg:rgba(244, 87, 37, 0.32);--tui-error-bg-hover:rgba(244, 87, 37, 0.4);--tui-success-fill:#4ac99b;--tui-success-bg:rgba(74, 201, 155, 0.32);--tui-success-bg-hover:rgba(74, 201, 155, 0.4);--tui-warning-fill:#ffc700;--tui-warning-bg:rgba(255, 199, 0, 0.32);--tui-warning-bg-hover:rgba(255, 199, 0, 0.4);--tui-info-fill:#70b6f6;--tui-info-bg:rgba(112, 182, 246, 0.32);--tui-info-bg-hover:rgba(112, 182, 246, 0.4);--tui-neutral-fill:#959ba4;--tui-neutral-bg:rgba(149, 155, 164, 0.32);--tui-neutral-bg-hover:rgba(149, 155, 164, 0.48);--tui-text-01:#ffffff;--tui-text-02:rgba(255, 255, 255, 0.72);--tui-text-03:rgba(255, 255, 255, 0.6);--tui-link:#6788ff;--tui-link-hover:#526ed3;--tui-positive:#44c596;--tui-positive-hover:#3aa981;--tui-negative:#ff8c67;--tui-negative-hover:#bb593a;--tui-autofill:var(--tui-autofill-night)}tui-notification{--tui-base-01:#000}"]
21
- }),
22
- __param(0, Inject(DOCUMENT))
14
+ })
23
15
  ], TuiThemeNightComponent);
24
16
 
25
17
  let TuiThemeNightModule = class TuiThemeNightModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-theme-night.js","sources":["ng://@taiga-ui/core/components/theme-night/theme-night.component.ts","ng://@taiga-ui/core/components/theme-night/theme-night.module.ts","ng://@taiga-ui/core/components/theme-night/taiga-ui-core-components-theme-night.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Component, Inject, ViewEncapsulation} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-theme-night',\n template: '',\n styleUrls: ['./theme-night.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiThemeNightComponent extends AbstractTuiThemeSwitcher {\n constructor(@Inject(DOCUMENT) documentRef: Document) {\n super(documentRef);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiThemeNightComponent} from './theme-night.component';\n\n@NgModule({\n declarations: [TuiThemeNightComponent],\n exports: [TuiThemeNightComponent],\n})\nexport class TuiThemeNightModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;IAOa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,wBAAwB;IAChE,YAA8B,WAAqB;QAC/C,KAAK,CAAC,WAAW,CAAC,CAAC;KACtB;EACJ;;YAH8C,QAAQ,uBAAtC,MAAM,SAAC,QAAQ;;AADnB,sBAAsB;IANlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,QAAQ,EAAE,EAAE;QAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;IAEe,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;GADpB,sBAAsB,CAIlC;;ICRY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACPnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-theme-night.js","sources":["ng://@taiga-ui/core/components/theme-night/theme-night.component.ts","ng://@taiga-ui/core/components/theme-night/theme-night.module.ts","ng://@taiga-ui/core/components/theme-night/taiga-ui-core-components-theme-night.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-theme-night',\n template: '',\n styleUrls: ['./theme-night.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiThemeNightComponent extends AbstractTuiThemeSwitcher {}\n","import {NgModule} from '@angular/core';\nimport {TuiThemeNightComponent} from './theme-night.component';\n\n@NgModule({\n declarations: [TuiThemeNightComponent],\n exports: [TuiThemeNightComponent],\n})\nexport class TuiThemeNightModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;IAOa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,wBAAwB;EAAG;AAA1D,sBAAsB;IANlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,QAAQ,EAAE,EAAE;QAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;GACW,sBAAsB,CAAoC;;ICH1D,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACPnC;;;;;;"}
@@ -73,7 +73,7 @@ __decorate([
73
73
  TuiTooltipComponent = __decorate([
74
74
  Component({
75
75
  selector: 'tui-tooltip',
76
- template: "<tui-svg\n class=\"icon\"\n src=\"tuiIconTooltipLarge\"\n automation-id=\"tui-tooltip__icon\"\n [tuiHintId]=\"describeId\"\n [tuiHint]=\"content\"\n [tuiHintDirection]=\"direction\"\n [tuiHintShowDelay]=\"showDelay\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintMode]=\"computedMode\"\n></tui-svg>\n",
76
+ template: "<tui-svg\n src=\"tuiIconTooltipLarge\"\n automation-id=\"tui-tooltip__icon\"\n class=\"icon\"\n [tuiHintId]=\"describeId\"\n [tuiHint]=\"content\"\n [tuiHintDirection]=\"direction\"\n [tuiHintShowDelay]=\"showDelay\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintMode]=\"computedMode\"\n></tui-svg>\n",
77
77
  changeDetection: ChangeDetectionStrategy.OnPush,
78
78
  providers: [TuiDestroyService, MODE_PROVIDER],
79
79
  styles: [":host{transition-property:color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;cursor:pointer;color:var(--tui-text-03)}:host:hover{color:var(--tui-text-02)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host[data-mode=onLight]{color:var(--tui-text-01)}:host[data-mode=error]{color:var(--tui-error-fill)}.icon{transition-property:opacity,color;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;width:100%;height:100%}:host:not([data-mode]) .icon._hint_hovered{color:var(--tui-text-02)}:host[data-mode=onDark] .icon,:host[data-mode=onLight] .icon{opacity:var(--tui-disabled-opacity)}:host[data-mode=onDark] .icon._hint_hovered,:host[data-mode=onDark] .icon:hover,:host[data-mode=onLight] .icon._hint_hovered,:host[data-mode=onLight] .icon:hover{opacity:1}"]
@@ -83,7 +83,7 @@ TuiWrapperComponent = __decorate([
83
83
  host: {
84
84
  '($.data-mode.attr)': 'mode$',
85
85
  },
86
- styles: [":host{transition-property:color,background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:block;height:100%;width:100%;text-align:left;border-radius:inherit}:host:after{transition-property:box-shadow;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;border:1px solid currentColor;pointer-events:none;color:transparent}:host._focused:after{border-width:2px;color:var(--tui-focus)}:host[data-state=disabled]{pointer-events:none}"]
86
+ styles: [":host{transition-property:color,background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:block;height:100%;width:100%;border-radius:inherit}:host:after{transition-property:box-shadow;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;border:1px solid currentColor;pointer-events:none;color:transparent}:host._focused:after{border-width:2px;color:var(--tui-focus)}:host[data-state=disabled]{pointer-events:none}"]
87
87
  }),
88
88
  __param(0, Inject(TUI_IS_MOBILE)),
89
89
  __param(1, Inject(TUI_MODE))
@@ -32,6 +32,11 @@ const TUI_EXPAND_LOADED = 'tui-expand-loaded';
32
32
  * An event for scrolling an element into view within {@link TuiScrollbarComponent}.
33
33
  */
34
34
  const TUI_SCROLL_INTO_VIEW = 'tui-scroll-into-view';
35
+ /**
36
+ * An event to notify {@link TuiScrollbarComponent} that
37
+ * it should control a nested element.
38
+ */
39
+ const TUI_SCROLLABLE = 'tui-scrollable';
35
40
  /**
36
41
  * An event indicating and error during icon loading in {@link TuiSvgComponent}.
37
42
  */
@@ -41,6 +46,7 @@ const MASK_CARET_TRAP = '[]';
41
46
 
42
47
  /**
43
48
  * Media constants are exact the same as css media breakpoints
49
+ * @deprecated use TUI_MEDIA token
44
50
  */
45
51
  const MEDIA = {
46
52
  mobile: 320,
@@ -52,15 +58,16 @@ const MEDIA = {
52
58
  const TUI_DIGIT_REGEXP = /\d/;
53
59
  const TUI_NON_DIGIT_REGEXP = /\D/;
54
60
  const TUI_NON_DIGITS_REGEXP = /\D+/g;
61
+ const TUI_LEADING_ZEROES_REGEXP = /^0+/;
55
62
  const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\/#!$%\\^&\\*;:{}=\\-_\`~()]$/;
56
63
  const TUI_LATIN_REGEXP = /[A-z]/;
57
64
  const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;
58
65
 
59
- const VERSION = '2.20.0';
66
+ const VERSION = '2.24.0';
60
67
 
61
68
  /**
62
69
  * Generated bundle index. Do not edit.
63
70
  */
64
71
 
65
- export { DEFAULT_ICONS_PATH, DEFAULT_MARGIN, DEFAULT_MAX_HEIGHT, DEFAULT_MAX_WIDTH, DEFAULT_MIN_HEIGHT, MASK_CARET_TRAP, MEDIA, TUI_DECIMAL_SYMBOLS, TUI_DEFAULT_MARKER_HANDLER, TUI_DIGIT_REGEXP, TUI_EXPAND_LOADED, TUI_ICON_ERROR, TUI_LAST_PUNCTUATION_MARK_REGEXP, TUI_LATIN_AND_NUMBERS_REGEXP, TUI_LATIN_REGEXP, TUI_NON_DIGITS_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_SCROLL_INTO_VIEW, VERSION, tuiEditingKeys };
72
+ export { DEFAULT_ICONS_PATH, DEFAULT_MARGIN, DEFAULT_MAX_HEIGHT, DEFAULT_MAX_WIDTH, DEFAULT_MIN_HEIGHT, MASK_CARET_TRAP, MEDIA, TUI_DECIMAL_SYMBOLS, TUI_DEFAULT_MARKER_HANDLER, TUI_DIGIT_REGEXP, TUI_EXPAND_LOADED, TUI_ICON_ERROR, TUI_LAST_PUNCTUATION_MARK_REGEXP, TUI_LATIN_AND_NUMBERS_REGEXP, TUI_LATIN_REGEXP, TUI_LEADING_ZEROES_REGEXP, TUI_NON_DIGITS_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_SCROLLABLE, TUI_SCROLL_INTO_VIEW, VERSION, tuiEditingKeys };
66
73
  //# sourceMappingURL=taiga-ui-core-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-constants.js","sources":["ng://@taiga-ui/core/constants/absolute-box-sizes.ts","ng://@taiga-ui/core/constants/default-icons-path.ts","ng://@taiga-ui/core/constants/default-marker-handler.ts","ng://@taiga-ui/core/constants/decimal-symbols.ts","ng://@taiga-ui/core/constants/editing-keys.ts","ng://@taiga-ui/core/constants/events.ts","ng://@taiga-ui/core/constants/mask-caret-trap.ts","ng://@taiga-ui/core/constants/media.ts","ng://@taiga-ui/core/constants/regexp.ts","ng://@taiga-ui/core/constants/version.ts","ng://@taiga-ui/core/constants/taiga-ui-core-constants.ts"],"sourcesContent":["export const DEFAULT_MARGIN = 4;\nexport const DEFAULT_MIN_HEIGHT = 80;\nexport const DEFAULT_MAX_HEIGHT = 400;\nexport const DEFAULT_MAX_WIDTH = 600;\n","import {TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = name =>\n name.includes('.svg#') ? name : `#${name}`;\n","import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {TuiMarkerHandler} from '@taiga-ui/core/types';\n\nexport const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY;\n","export const TUI_DECIMAL_SYMBOLS: ReadonlyArray<string> = [',', '.'];\n","export const tuiEditingKeys: readonly string[] = [\n 'Spacebar',\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Left',\n 'Right',\n 'End',\n 'Home',\n];\n","/**\n * An event indicating that async data for expand has finished loading.\n * Dispatch to finish loading states for {@link TuiExpandComponent}.\n */\nexport const TUI_EXPAND_LOADED = 'tui-expand-loaded';\n\n/**\n * An event for scrolling an element into view within {@link TuiScrollbarComponent}.\n */\nexport const TUI_SCROLL_INTO_VIEW = 'tui-scroll-into-view';\n\n/**\n * An event indicating and error during icon loading in {@link TuiSvgComponent}.\n */\nexport const TUI_ICON_ERROR = 'tui-icon-error';\n","export const MASK_CARET_TRAP = '[]';\n","/**\n * Media constants are exact the same as css media breakpoints\n */\nexport const MEDIA = {\n mobile: 320,\n tablet: 600,\n desktopSmall: 1024,\n desktopLarge: 1280,\n};\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\nexport const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\\\/#!$%\\\\^&\\\\*;:{}=\\\\-_\\`~()]$/;\nexport const TUI_LATIN_REGEXP = /[A-z]/;\nexport const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;\n","export const VERSION = '2.20.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAAa,cAAc,GAAG,EAAE;MACnB,kBAAkB,GAAG,GAAG;MACxB,kBAAkB,GAAG,IAAI;MACzB,iBAAiB,GAAG;;MCDpB,kBAAkB,GAA6B,IAAI,IAC5D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,IAAI;;MCA/B,0BAA0B,GAAqB,MAAM;;MCHrD,mBAAmB,GAA0B,CAAC,GAAG,EAAE,GAAG;;MCAtD,cAAc,GAAsB;IAC7C,UAAU;IACV,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;;;ACTV;;;;MAIa,iBAAiB,GAAG,oBAAoB;AAErD;;;MAGa,oBAAoB,GAAG,uBAAuB;AAE3D;;;MAGa,cAAc,GAAG;;MCdjB,eAAe,GAAG;;ACA/B;;;MAGa,KAAK,GAAG;IACjB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;;;MCPT,gBAAgB,GAAG,KAAK;MACxB,oBAAoB,GAAG,KAAK;MAC5B,qBAAqB,GAAG,OAAO;MAC/B,gCAAgC,GAAG,oCAAoC;MACvE,gBAAgB,GAAG,QAAQ;MAC3B,4BAA4B,GAAG;;MCL/B,OAAO,GAAG;;ACAvB;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-constants.js","sources":["ng://@taiga-ui/core/constants/absolute-box-sizes.ts","ng://@taiga-ui/core/constants/default-icons-path.ts","ng://@taiga-ui/core/constants/default-marker-handler.ts","ng://@taiga-ui/core/constants/decimal-symbols.ts","ng://@taiga-ui/core/constants/editing-keys.ts","ng://@taiga-ui/core/constants/events.ts","ng://@taiga-ui/core/constants/mask-caret-trap.ts","ng://@taiga-ui/core/constants/media.ts","ng://@taiga-ui/core/constants/regexp.ts","ng://@taiga-ui/core/constants/version.ts","ng://@taiga-ui/core/constants/taiga-ui-core-constants.ts"],"sourcesContent":["export const DEFAULT_MARGIN = 4;\nexport const DEFAULT_MIN_HEIGHT = 80;\nexport const DEFAULT_MAX_HEIGHT = 400;\nexport const DEFAULT_MAX_WIDTH = 600;\n","import {TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = name =>\n name.includes('.svg#') ? name : `#${name}`;\n","import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {TuiMarkerHandler} from '@taiga-ui/core/types';\n\nexport const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY;\n","export const TUI_DECIMAL_SYMBOLS: ReadonlyArray<string> = [',', '.'];\n","export const tuiEditingKeys: readonly string[] = [\n 'Spacebar',\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Left',\n 'Right',\n 'End',\n 'Home',\n];\n","/**\n * An event indicating that async data for expand has finished loading.\n * Dispatch to finish loading states for {@link TuiExpandComponent}.\n */\nexport const TUI_EXPAND_LOADED = 'tui-expand-loaded';\n\n/**\n * An event for scrolling an element into view within {@link TuiScrollbarComponent}.\n */\nexport const TUI_SCROLL_INTO_VIEW = 'tui-scroll-into-view';\n\n/**\n * An event to notify {@link TuiScrollbarComponent} that\n * it should control a nested element.\n */\nexport const TUI_SCROLLABLE = 'tui-scrollable';\n\n/**\n * An event indicating and error during icon loading in {@link TuiSvgComponent}.\n */\nexport const TUI_ICON_ERROR = 'tui-icon-error';\n","export const MASK_CARET_TRAP = '[]';\n","/**\n * Media constants are exact the same as css media breakpoints\n * @deprecated use TUI_MEDIA token\n */\nexport const MEDIA = {\n mobile: 320,\n tablet: 600,\n desktopSmall: 1024,\n desktopLarge: 1280,\n};\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\nexport const TUI_LEADING_ZEROES_REGEXP = /^0+/;\nexport const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\\\/#!$%\\\\^&\\\\*;:{}=\\\\-_\\`~()]$/;\nexport const TUI_LATIN_REGEXP = /[A-z]/;\nexport const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;\n","export const VERSION = '2.24.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAAa,cAAc,GAAG,EAAE;MACnB,kBAAkB,GAAG,GAAG;MACxB,kBAAkB,GAAG,IAAI;MACzB,iBAAiB,GAAG;;MCDpB,kBAAkB,GAA6B,IAAI,IAC5D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,IAAI;;MCA/B,0BAA0B,GAAqB,MAAM;;MCHrD,mBAAmB,GAA0B,CAAC,GAAG,EAAE,GAAG;;MCAtD,cAAc,GAAsB;IAC7C,UAAU;IACV,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;;;ACTV;;;;MAIa,iBAAiB,GAAG,oBAAoB;AAErD;;;MAGa,oBAAoB,GAAG,uBAAuB;AAE3D;;;;MAIa,cAAc,GAAG,iBAAiB;AAE/C;;;MAGa,cAAc,GAAG;;MCpBjB,eAAe,GAAG;;ACA/B;;;;MAIa,KAAK,GAAG;IACjB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;;;MCRT,gBAAgB,GAAG,KAAK;MACxB,oBAAoB,GAAG,KAAK;MAC5B,qBAAqB,GAAG,OAAO;MAC/B,yBAAyB,GAAG,MAAM;MAClC,gCAAgC,GAAG,oCAAoC;MACvE,gBAAgB,GAAG,QAAQ;MAC3B,4BAA4B,GAAG;;MCN/B,OAAO,GAAG;;ACAvB;;;;;;"}
@@ -0,0 +1,57 @@
1
+ import { __decorate, __param } from 'tslib';
2
+ import { Inject, Input, HostBinding, Directive, NgModule } from '@angular/core';
3
+ import { CSS } from '@ng-web-apis/common';
4
+
5
+ let TuiBorderDirective = class TuiBorderDirective {
6
+ constructor(css) {
7
+ this.css = css;
8
+ this.start = 0;
9
+ this.end = 0;
10
+ this.modern = this.css.supports('border-inline-start-width', '0');
11
+ }
12
+ get oldStart() {
13
+ return this.modern ? null : this.start;
14
+ }
15
+ get oldEnd() {
16
+ return this.modern ? null : this.end;
17
+ }
18
+ };
19
+ TuiBorderDirective.ctorParameters = () => [
20
+ { type: undefined, decorators: [{ type: Inject, args: [CSS,] }] }
21
+ ];
22
+ __decorate([
23
+ Input('tuiBorderStart'),
24
+ HostBinding('style.borderInlineStartWidth.rem')
25
+ ], TuiBorderDirective.prototype, "start", void 0);
26
+ __decorate([
27
+ Input('tuiBorderEnd'),
28
+ HostBinding('style.borderInlineEndWidth.rem')
29
+ ], TuiBorderDirective.prototype, "end", void 0);
30
+ __decorate([
31
+ HostBinding('style.borderLeftWidth.rem')
32
+ ], TuiBorderDirective.prototype, "oldStart", null);
33
+ __decorate([
34
+ HostBinding('style.borderRightWidth.rem')
35
+ ], TuiBorderDirective.prototype, "oldEnd", null);
36
+ TuiBorderDirective = __decorate([
37
+ Directive({
38
+ selector: '[tuiBorderStart], [tuiBorderEnd]',
39
+ }),
40
+ __param(0, Inject(CSS))
41
+ ], TuiBorderDirective);
42
+
43
+ let TuiBorderModule = class TuiBorderModule {
44
+ };
45
+ TuiBorderModule = __decorate([
46
+ NgModule({
47
+ declarations: [TuiBorderDirective],
48
+ exports: [TuiBorderDirective],
49
+ })
50
+ ], TuiBorderModule);
51
+
52
+ /**
53
+ * Generated bundle index. Do not edit.
54
+ */
55
+
56
+ export { TuiBorderDirective, TuiBorderModule };
57
+ //# sourceMappingURL=taiga-ui-core-directives-border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-core-directives-border.js","sources":["ng://@taiga-ui/core/directives/border/border.directive.ts","ng://@taiga-ui/core/directives/border/border.module.ts","ng://@taiga-ui/core/directives/border/taiga-ui-core-directives-border.ts"],"sourcesContent":["import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {CSS} from '@ng-web-apis/common';\n\n@Directive({\n selector: '[tuiBorderStart], [tuiBorderEnd]',\n})\nexport class TuiBorderDirective {\n @Input('tuiBorderStart')\n @HostBinding('style.borderInlineStartWidth.rem')\n start = 0;\n\n @Input('tuiBorderEnd')\n @HostBinding('style.borderInlineEndWidth.rem')\n end = 0;\n\n readonly modern = this.css.supports('border-inline-start-width', '0');\n\n constructor(@Inject(CSS) private readonly css: any) {}\n\n @HostBinding('style.borderLeftWidth.rem')\n get oldStart(): number | null {\n return this.modern ? null : this.start;\n }\n\n @HostBinding('style.borderRightWidth.rem')\n get oldEnd(): number | null {\n return this.modern ? null : this.end;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiBorderDirective} from './border.directive';\n\n@NgModule({\n declarations: [TuiBorderDirective],\n exports: [TuiBorderDirective],\n})\nexport class TuiBorderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;IAMa,kBAAkB,GAA/B,MAAa,kBAAkB;IAW3B,YAA0C,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;QARlD,UAAK,GAAG,CAAC,CAAC;QAIV,QAAG,GAAG,CAAC,CAAC;QAEC,WAAM,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC;KAEhB;IAGtD,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;KAC1C;IAGD,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC;KACxC;EACJ;;4CAXgB,MAAM,SAAC,GAAG;;AARvB;IAFC,KAAK,CAAC,gBAAgB,CAAC;IACvB,WAAW,CAAC,kCAAkC,CAAC;iDACtC;AAIV;IAFC,KAAK,CAAC,cAAc,CAAC;IACrB,WAAW,CAAC,gCAAgC,CAAC;+CACtC;AAOR;IADC,WAAW,CAAC,2BAA2B,CAAC;kDAGxC;AAGD;IADC,WAAW,CAAC,4BAA4B,CAAC;gDAGzC;AArBQ,kBAAkB;IAH9B,SAAS,CAAC;QACP,QAAQ,EAAE,kCAAkC;KAC/C,CAAC;IAYe,WAAA,MAAM,CAAC,GAAG,CAAC,CAAA;GAXf,kBAAkB,CAsB9B;;ICrBY,eAAe,GAA5B,MAAa,eAAe;EAAG;AAAlB,eAAe;IAJ3B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;QAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAChC,CAAC;GACW,eAAe,CAAG;;ACP/B;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Renderer2, Inject, ElementRef, Self, Input, Directive, NgModule } from '@angular/core';
3
- import { TuiDestroyService, TuiObscuredService, TuiHoveredService, tuiDefaultProp, tuiRequiredSetter, TuiParentsScrollService } from '@taiga-ui/cdk';
2
+ import { Renderer2, Inject, ElementRef, Self, Optional, Input, Directive, NgModule } from '@angular/core';
3
+ import { TuiDestroyService, TuiObscuredService, TuiHoveredService, TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter, TuiParentsScrollService } from '@taiga-ui/cdk';
4
4
  import { AbstractTuiHint } from '@taiga-ui/core/abstract';
5
5
  import { DESCRIBED_BY } from '@taiga-ui/core/directives/described-by';
6
6
  import { TuiHintService } from '@taiga-ui/core/services';
@@ -9,8 +9,8 @@ import { startWith, map, switchMap, delay, take, distinctUntilChanged, takeUntil
9
9
 
10
10
  const HINT_HOVERED_CLASS = '_hint_hovered';
11
11
  let TuiHintDirective = class TuiHintDirective extends AbstractTuiHint {
12
- constructor(renderer, elementRef, hintService, destroy$, obscured$, hoveredService) {
13
- super(elementRef, hintService);
12
+ constructor(renderer, elementRef, hintService, destroy$, obscured$, hoveredService, activeZone) {
13
+ super(elementRef, hintService, activeZone);
14
14
  this.renderer = renderer;
15
15
  this.componentHovered$ = new Subject();
16
16
  this.tuiHintShowDelay = 500;
@@ -81,7 +81,8 @@ TuiHintDirective.ctorParameters = () => [
81
81
  { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] },
82
82
  { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
83
83
  { type: TuiObscuredService, decorators: [{ type: Inject, args: [TuiObscuredService,] }, { type: Self }] },
84
- { type: TuiHoveredService, decorators: [{ type: Inject, args: [TuiHoveredService,] }] }
84
+ { type: TuiHoveredService, decorators: [{ type: Inject, args: [TuiHoveredService,] }] },
85
+ { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] }
85
86
  ];
86
87
  __decorate([
87
88
  Input()
@@ -113,7 +114,9 @@ TuiHintDirective = __decorate([
113
114
  __param(3, Inject(TuiDestroyService)),
114
115
  __param(4, Inject(TuiObscuredService)),
115
116
  __param(4, Self()),
116
- __param(5, Inject(TuiHoveredService))
117
+ __param(5, Inject(TuiHoveredService)),
118
+ __param(6, Optional()),
119
+ __param(6, Inject(TuiActiveZoneDirective))
117
120
  ], TuiHintDirective);
118
121
 
119
122
  let TuiHintModule = class TuiHintModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-hint.js","sources":["ng://@taiga-ui/core/directives/hint/hint.directive.ts","ng://@taiga-ui/core/directives/hint/hint.module.ts","ng://@taiga-ui/core/directives/hint/taiga-ui-core-directives-hint.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n OnDestroy,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n TuiObscuredService,\n TuiParentsScrollService,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {DESCRIBED_BY} from '@taiga-ui/core/directives/described-by';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, of, Subject} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n map,\n startWith,\n switchMap,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nexport const HINT_HOVERED_CLASS = '_hint_hovered';\n\n@Directive({\n selector: '[tuiHint]:not(ng-container)',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiHintDirective extends AbstractTuiHint implements OnDestroy {\n readonly componentHovered$ = new Subject<boolean>();\n\n @Input()\n tuiHintId?: string;\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 500;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 200;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHost: HTMLElement | null = null;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n constructor(\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiObscuredService)\n @Self()\n obscured$: TuiObscuredService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n super(elementRef, hintService);\n\n // @bad TODO: Use private provider\n combineLatest(\n hoveredService.createHovered$(elementRef.nativeElement),\n this.componentHovered$.pipe(startWith(false)),\n )\n .pipe(\n map(\n ([directiveHovered, componentHovered]) =>\n directiveHovered || componentHovered,\n ),\n switchMap(visible => {\n this.toggleClass(visible);\n\n return of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n );\n }),\n switchMap(visible =>\n visible && this.mode !== 'overflow'\n ? obscured$.pipe(\n map(obscured => !obscured),\n take(2),\n )\n : of(visible),\n ),\n distinctUntilChanged(),\n takeUntil(destroy$),\n )\n .subscribe(visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n });\n\n this.hintService.register(this);\n }\n\n get id(): string | null {\n return this.tuiHintId ? this.tuiHintId + DESCRIBED_BY : null;\n }\n\n get host(): HTMLElement {\n return this.tuiHintHost ? this.tuiHintHost : this.elementRef.nativeElement;\n }\n\n getElementClientRect(): ClientRect {\n return this.host.getBoundingClientRect();\n }\n\n ngOnDestroy() {\n this.hintService.unregister(this);\n }\n\n protected showTooltip() {\n if (this.content === '') {\n return;\n }\n\n this.toggleClass(true);\n this.hintService.add(this);\n }\n\n protected hideTooltip() {\n this.toggleClass(false);\n this.hintService.remove(this);\n }\n\n private toggleClass(add: boolean) {\n if (add) {\n this.renderer.addClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n } else {\n this.renderer.removeClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiHintDirective} from './hint.directive';\n\n@NgModule({\n declarations: [TuiHintDirective],\n exports: [TuiHintDirective],\n})\nexport class TuiHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAgCa,kBAAkB,GAAG,gBAAgB;IAMrC,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,eAAe;IAgCjD,YACwC,QAAmB,EACnC,UAAmC,EAC/B,WAA2B,EAEnD,QAA2B,EAG3B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AAM,SAAC,UAAU;YACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;YAEZ,iBAAiB,uBAD1B,MAAM,SAAC,iBAAiB;YAId,kBAAkB,uBAF5B,MAAM,SAAC,kBAAkB,cACzB,IAAI;YAEsC,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;AArC7B;IADC,KAAK,EAAE;mDACW;AAInB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;0DACM;AAIvB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;0DACM;AAIvB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;qDACsB;AAKvC;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;+CAUnB;AA9BQ,gBAAgB;IAJ5B,SAAS,CAAC;QACP,QAAQ,EAAE,6BAA6B;QACvC,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;KAC9E,CAAC;IAkCO,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IACjB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAC1B,WAAA,IAAI,EAAE,CAAA;IAEN,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAzCrB,gBAAgB,CAyH5B;;ICxJY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAJzB,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACP7B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-hint.js","sources":["ng://@taiga-ui/core/directives/hint/hint.directive.ts","ng://@taiga-ui/core/directives/hint/hint.module.ts","ng://@taiga-ui/core/directives/hint/taiga-ui-core-directives-hint.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n TuiObscuredService,\n TuiParentsScrollService,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {DESCRIBED_BY} from '@taiga-ui/core/directives/described-by';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, of, Subject} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n map,\n startWith,\n switchMap,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nexport const HINT_HOVERED_CLASS = '_hint_hovered';\n\n@Directive({\n selector: '[tuiHint]:not(ng-container)',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiHintDirective extends AbstractTuiHint implements OnDestroy {\n readonly componentHovered$ = new Subject<boolean>();\n\n @Input()\n tuiHintId?: string;\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 500;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 200;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHost: HTMLElement | null = null;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n constructor(\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiObscuredService)\n @Self()\n obscured$: TuiObscuredService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n ) {\n super(elementRef, hintService, activeZone);\n\n // @bad TODO: Use private provider\n combineLatest(\n hoveredService.createHovered$(elementRef.nativeElement),\n this.componentHovered$.pipe(startWith(false)),\n )\n .pipe(\n map(\n ([directiveHovered, componentHovered]) =>\n directiveHovered || componentHovered,\n ),\n switchMap(visible => {\n this.toggleClass(visible);\n\n return of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n );\n }),\n switchMap(visible =>\n visible && this.mode !== 'overflow'\n ? obscured$.pipe(\n map(obscured => !obscured),\n take(2),\n )\n : of(visible),\n ),\n distinctUntilChanged(),\n takeUntil(destroy$),\n )\n .subscribe(visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n });\n\n this.hintService.register(this);\n }\n\n get id(): string | null {\n return this.tuiHintId ? this.tuiHintId + DESCRIBED_BY : null;\n }\n\n get host(): HTMLElement {\n return this.tuiHintHost ? this.tuiHintHost : this.elementRef.nativeElement;\n }\n\n getElementClientRect(): ClientRect {\n return this.host.getBoundingClientRect();\n }\n\n ngOnDestroy() {\n this.hintService.unregister(this);\n }\n\n protected showTooltip() {\n if (this.content === '') {\n return;\n }\n\n this.toggleClass(true);\n this.hintService.add(this);\n }\n\n protected hideTooltip() {\n this.toggleClass(false);\n this.hintService.remove(this);\n }\n\n private toggleClass(add: boolean) {\n if (add) {\n this.renderer.addClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n } else {\n this.renderer.removeClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiHintDirective} from './hint.directive';\n\n@NgModule({\n declarations: [TuiHintDirective],\n exports: [TuiHintDirective],\n})\nexport class TuiHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAkCa,kBAAkB,GAAG,gBAAgB;IAMrC,gBAAgB,GAA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AAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;ACP7B;;;;;;"}
@@ -1,12 +1,12 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { ElementRef, Inject, Input, Directive, NgModule } from '@angular/core';
3
- import { tuiDefaultProp, tuiRequiredSetter } from '@taiga-ui/cdk';
2
+ import { ElementRef, Inject, Optional, Input, Directive, NgModule } from '@angular/core';
3
+ import { TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter } from '@taiga-ui/cdk';
4
4
  import { AbstractTuiHint } from '@taiga-ui/core/abstract';
5
5
  import { TuiHintService } from '@taiga-ui/core/services';
6
6
 
7
7
  let TuiManualHintDirective = class TuiManualHintDirective extends AbstractTuiHint {
8
- constructor(elementRef, hintService) {
9
- super(elementRef, hintService);
8
+ constructor(elementRef, hintService, activeZone) {
9
+ super(elementRef, hintService, activeZone);
10
10
  this.content = '';
11
11
  }
12
12
  set tuiManualHintShow(show) {
@@ -23,7 +23,8 @@ let TuiManualHintDirective = class TuiManualHintDirective extends AbstractTuiHin
23
23
  };
24
24
  TuiManualHintDirective.ctorParameters = () => [
25
25
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
26
- { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] }
26
+ { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] },
27
+ { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] }
27
28
  ];
28
29
  __decorate([
29
30
  Input('tuiManualHint'),
@@ -38,7 +39,9 @@ TuiManualHintDirective = __decorate([
38
39
  selector: '[tuiManualHint]:not(ng-container)',
39
40
  }),
40
41
  __param(0, Inject(ElementRef)),
41
- __param(1, Inject(TuiHintService))
42
+ __param(1, Inject(TuiHintService)),
43
+ __param(2, Optional()),
44
+ __param(2, Inject(TuiActiveZoneDirective))
42
45
  ], TuiManualHintDirective);
43
46
 
44
47
  let TuiManualHintModule = class TuiManualHintModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-manual-hint.js","sources":["ng://@taiga-ui/core/directives/manual-hint/manual-hint.directive.ts","ng://@taiga-ui/core/directives/manual-hint/manual-hint.module.ts","ng://@taiga-ui/core/directives/manual-hint/taiga-ui-core-directives-manual-hint.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Directive({\n selector: '[tuiManualHint]:not(ng-container)',\n})\nexport class TuiManualHintDirective extends AbstractTuiHint {\n @Input('tuiManualHint')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input()\n @tuiRequiredSetter()\n set tuiManualHintShow(show: boolean) {\n if (show) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n }\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n ) {\n super(elementRef, hintService);\n }\n\n getElementClientRect(): ClientRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiManualHintDirective} from './manual-hint.directive';\n\n@NgModule({\n declarations: [TuiManualHintDirective],\n exports: [TuiManualHintDirective],\n})\nexport class TuiManualHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IASa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,eAAe;IAevD,YACwB,UAAmC,EAC/B,WAA2B;QAEnD,KAAK,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAhBnC,YAAO,GAAwB,EAAE,CAAC;KAiBjC;IAbD,IAAI,iBAAiB,CAAC,IAAa;QAC/B,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;aAAM;YACH,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;KACJ;IASD,oBAAoB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;KAChE;EACJ;;YATuC,UAAU,uBAAzC,MAAM,SAAC,UAAU;YACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;;AAd1B;IAFC,KAAK,CAAC,eAAe,CAAC;IACtB,cAAc,EAAE;uDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;+DAOnB;AAbQ,sBAAsB;IAHlC,SAAS,CAAC;QACP,QAAQ,EAAE,mCAAmC;KAChD,CAAC;IAiBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;GAjBlB,sBAAsB,CAyBlC;;IC3BY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACPnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-manual-hint.js","sources":["ng://@taiga-ui/core/directives/manual-hint/manual-hint.directive.ts","ng://@taiga-ui/core/directives/manual-hint/manual-hint.module.ts","ng://@taiga-ui/core/directives/manual-hint/taiga-ui-core-directives-manual-hint.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input, Optional} from '@angular/core';\nimport {TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Directive({\n selector: '[tuiManualHint]:not(ng-container)',\n})\nexport class TuiManualHintDirective extends AbstractTuiHint {\n @Input('tuiManualHint')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input()\n @tuiRequiredSetter()\n set tuiManualHintShow(show: boolean) {\n if (show) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n }\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n ) {\n super(elementRef, hintService, activeZone);\n }\n\n getElementClientRect(): ClientRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiManualHintDirective} from './manual-hint.directive';\n\n@NgModule({\n declarations: [TuiManualHintDirective],\n exports: [TuiManualHintDirective],\n})\nexport class TuiManualHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IASa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,eAAe;IAevD,YACwB,UAAmC,EAC/B,WAA2B,EAGnD,UAAyC;QAEzC,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QAnB/C,YAAO,GAAwB,EAAE,CAAC;KAoBjC;IAhBD,IAAI,iBAAiB,CAAC,IAAa;QAC/B,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;aAAM;YACH,IAAI,CAAC,WAAW,EAAE,CAAC;SACtB;KACJ;IAYD,oBAAoB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;KAChE;EACJ;;YAZuC,UAAU,uBAAzC,MAAM,SAAC,UAAU;YACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;YAGV,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;;AAhBlC;IAFC,KAAK,CAAC,eAAe,CAAC;IACtB,cAAc,EAAE;uDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;+DAOnB;AAbQ,sBAAsB;IAHlC,SAAS,CAAC;QACP,QAAQ,EAAE,mCAAmC;KAChD,CAAC;IAiBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAnB1B,sBAAsB,CA4BlC;;IC9BY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACPnC;;;;;;"}
@@ -8,7 +8,7 @@ import { filter, startWith, distinctUntilChanged, switchMap, delay, takeUntil }
8
8
 
9
9
  let TuiPointerHintDirective = class TuiPointerHintDirective extends AbstractTuiHint {
10
10
  constructor(elementRef, hintService, destroy$, hoveredService) {
11
- super(elementRef, hintService);
11
+ super(elementRef, hintService, null);
12
12
  this.destroy$ = destroy$;
13
13
  this.tuiHintShowDelay = 0;
14
14
  this.tuiHintHideDelay = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-pointer-hint.js","sources":["ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.directive.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.module.ts","ng://@taiga-ui/core/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n tuiRequiredSetter,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n filter,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPointerHint]:not(ng-container)',\n providers: [TuiDestroyService],\n})\nexport class TuiPointerHintDirective extends AbstractTuiHint {\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 0;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 0;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiPointerHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n content: PolymorpheusContent = '';\n\n private currentMouseRect = this.mousePositionToClientRect();\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n super(elementRef, hintService);\n\n const hint$ = hoveredService.createHovered$(this.elementRef.nativeElement).pipe(\n filter(() => !!this.content),\n startWith(false),\n distinctUntilChanged(),\n );\n\n hint$\n .pipe(\n switchMap(visible =>\n of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe({\n next: visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n },\n complete: () => {\n this.hideTooltip();\n },\n });\n\n this.initMouseMoveSubscription();\n }\n\n getElementClientRect(): ClientRect {\n return this.currentMouseRect;\n }\n\n private initMouseMoveSubscription() {\n const mouseMove$: Observable<MouseEvent> = typedFromEvent(\n this.elementRef.nativeElement,\n 'mousemove',\n );\n\n mouseMove$.pipe(takeUntil(this.destroy$)).subscribe(({clientX, clientY}) => {\n this.currentMouseRect = this.mousePositionToClientRect(clientX, clientY);\n });\n }\n\n private mousePositionToClientRect(x: number = 0, y: number = 0): ClientRect {\n return {\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n };\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPointerHintDirective} from './pointer-hint.directive';\n\n@NgModule({\n declarations: [TuiPointerHintDirective],\n exports: [TuiPointerHintDirective],\n})\nexport class TuiPointerHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAyBa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,eAAe;IA2BxD,YACwB,UAAmC,EAC/B,WAA2B,EAElC,QAA2B,EACjB,cAAiC;QAE5D,KAAK,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAHd,aAAQ,GAAR,QAAQ,CAAmB;QA5BhD,qBAAgB,GAAG,CAAC,CAAC;QAIrB,qBAAgB,GAAG,CAAC,CAAC;QAgBrB,YAAO,GAAwB,EAAE,CAAC;QAE1B,qBAAgB,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAWxD,MAAM,KAAK,GAAG,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,IAAI,CAC3E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAC5B,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,CACzB,CAAC;QAEF,KAAK;aACA,IAAI,CACD,SAAS,CAAC,OAAO,IACb,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CACZ,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CACjE,CACJ,EACD,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC;YACP,IAAI,EAAE,OAAO;gBACT,IAAI,OAAO,EAAE;oBACT,IAAI,CAAC,WAAW,EAAE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Ac,EAAE;iEACI;AAIrB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iEACI;AAKrB;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;6DAUnB;AArBQ,uBAAuB;IAJnC,SAAS,CAAC;QACP,QAAQ,EAAE,oCAAoC;QAC9C,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IA6BO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAhCrB,uBAAuB,CA4FnC;;IC9GY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACPpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-pointer-hint.js","sources":["ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.directive.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.module.ts","ng://@taiga-ui/core/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n tuiRequiredSetter,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n filter,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPointerHint]:not(ng-container)',\n providers: [TuiDestroyService],\n})\nexport class TuiPointerHintDirective extends AbstractTuiHint {\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 0;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 0;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiPointerHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n content: PolymorpheusContent = '';\n\n private currentMouseRect = this.mousePositionToClientRect();\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n super(elementRef, hintService, null);\n\n const hint$ = hoveredService.createHovered$(this.elementRef.nativeElement).pipe(\n filter(() => !!this.content),\n startWith(false),\n distinctUntilChanged(),\n );\n\n hint$\n .pipe(\n switchMap(visible =>\n of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe({\n next: visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n },\n complete: () => {\n this.hideTooltip();\n },\n });\n\n this.initMouseMoveSubscription();\n }\n\n getElementClientRect(): ClientRect {\n return this.currentMouseRect;\n }\n\n private initMouseMoveSubscription() {\n const mouseMove$: Observable<MouseEvent> = typedFromEvent(\n this.elementRef.nativeElement,\n 'mousemove',\n );\n\n mouseMove$.pipe(takeUntil(this.destroy$)).subscribe(({clientX, clientY}) => {\n this.currentMouseRect = this.mousePositionToClientRect(clientX, clientY);\n });\n }\n\n private mousePositionToClientRect(x: number = 0, y: number = 0): ClientRect {\n return {\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n };\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPointerHintDirective} from './pointer-hint.directive';\n\n@NgModule({\n declarations: [TuiPointerHintDirective],\n exports: [TuiPointerHintDirective],\n})\nexport class TuiPointerHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAyBa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,eAAe;IA2BxD,YACwB,UAAmC,EAC/B,WAA2B,EAElC,QAA2B,EACjB,cAAiC;QAE5D,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;QAHpB,aAAQ,GAAR,QAAQ,CAAmB;QA5BhD,qBAAgB,GAAG,CAAC,CAAC;QAIrB,qBAAgB,GAAG,CAAC,CAAC;QAgBrB,YAAO,GAAwB,EAAE,CAAC;QAE1B,qBAAgB,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAWxD,MAAM,KAAK,GAAG,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,IAAI,CAC3E,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAC5B,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,CACzB,CAAC;QAEF,KAAK;aACA,IAAI,CACD,SAAS,CAAC,OAAO,IACb,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CACZ,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CACjE,CACJ,EACD,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC;YACP,IAAI,EAAE,OAAO;gBACT,IAAI,OAAO,EAAE;oBACT,IAAI,CAAC,WAAW,EAAE,CAAC;iBACtB;qBAAM;oBACH,IAAI,CAAC,WAAW,EAAE,CAAC;iBACtB;aACJ;YACD,QAAQ,EAAE;gBACN,IAAI,CAAC,WAAW,EAAE,CAAC;aACtB;SACJ,CAAC,CAAC;QAEP,IAAI,CAAC,yBAAyB,EAAE,CAAC;KACpC;;I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,CAAC,iBAAiB,CAAC;KACjC,CAAC;IA6BO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAhCrB,uBAAuB,CA4FnC;;IC9GY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACPpC;;;;;;"}
@@ -75,7 +75,9 @@ function autocompleteDirectiveFactory() {
75
75
  }
76
76
 
77
77
  var TuiTextfieldCleanerDirective_1;
78
- const TUI_TEXTFIELD_CLEANER = new InjectionToken('tuiTextfieldCleaner', { factory: cleanerDirectiveFactory });
78
+ const TUI_TEXTFIELD_CLEANER = new InjectionToken('tuiTextfieldCleaner', {
79
+ factory: cleanerDirectiveFactory,
80
+ });
79
81
  let TuiTextfieldCleanerDirective = TuiTextfieldCleanerDirective_1 = class TuiTextfieldCleanerDirective extends TuiController {
80
82
  constructor() {
81
83
  super(...arguments);
@@ -242,7 +244,9 @@ function maxLengthDirectiveFactory() {
242
244
  }
243
245
 
244
246
  var TuiTextfieldSizeDirective_1;
245
- const TUI_TEXTFIELD_SIZE = new InjectionToken('tuiTextfieldSize', { factory: sizeDirectiveFactory });
247
+ const TUI_TEXTFIELD_SIZE = new InjectionToken('tuiTextfieldSize', {
248
+ factory: sizeDirectiveFactory,
249
+ });
246
250
  let TuiTextfieldSizeDirective = TuiTextfieldSizeDirective_1 = class TuiTextfieldSizeDirective extends TuiController {
247
251
  constructor() {
248
252
  super(...arguments);
@@ -268,7 +272,9 @@ function sizeDirectiveFactory() {
268
272
  }
269
273
 
270
274
  var TuiTextfieldTypeDirective_1;
271
- const TUI_TEXTFIELD_TYPE = new InjectionToken('tuiTextfieldType', { factory: typeDirectiveFactory });
275
+ const TUI_TEXTFIELD_TYPE = new InjectionToken('tuiTextfieldType', {
276
+ factory: typeDirectiveFactory,
277
+ });
272
278
  let TuiTextfieldTypeDirective = TuiTextfieldTypeDirective_1 = class TuiTextfieldTypeDirective extends TuiController {
273
279
  constructor() {
274
280
  super(...arguments);