@taiga-ui/core 2.29.0 → 2.33.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 (348) hide show
  1. package/abstract/abstract-dropdown.d.ts +2 -1
  2. package/abstract/abstract-hint-options.d.ts +7 -0
  3. package/abstract/abstract-hint.d.ts +5 -4
  4. package/abstract/abstract-textfield-host.d.ts +13 -0
  5. package/abstract/index.d.ts +2 -0
  6. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  7. package/bundles/taiga-ui-core-abstract.umd.js +76 -4
  8. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-abstract.umd.min.js +1 -1
  10. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -1
  12. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  13. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  15. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  16. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-hints-host.umd.js +1 -0
  18. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  21. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  22. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-link.umd.js +2 -2
  24. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-link.umd.min.js +1 -1
  26. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-loader.umd.js +5 -2
  28. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-loader.umd.min.js +1 -1
  30. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +226 -44
  32. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +2 -2
  34. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +1 -1
  36. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +2 -2
  37. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-theme-night.umd.js +1 -1
  39. package/bundles/taiga-ui-core-components-theme-night.umd.min.js +1 -1
  40. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-tooltip.umd.js +24 -14
  42. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +2 -2
  44. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  45. package/bundles/taiga-ui-core-constants.umd.js +2 -2
  46. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  48. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-core-directives-dropdown.umd.js +1 -6
  50. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-directives-dropdown.umd.min.js +2 -2
  52. package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-directives-hint-controller.umd.js +17 -12
  54. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js +2 -2
  56. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-directives-hint.umd.js +20 -6
  58. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-directives-hint.umd.min.js +1 -1
  60. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +15 -4
  62. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js +1 -1
  64. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +17 -6
  66. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  67. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
  68. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  69. package/bundles/taiga-ui-core-directives.umd.js +4 -12
  70. package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
  71. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  72. package/bundles/taiga-ui-core-providers.umd.js +2 -1
  73. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  74. package/bundles/taiga-ui-core-providers.umd.min.js +1 -1
  75. package/bundles/taiga-ui-core-providers.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-core-tokens.umd.js +3 -0
  77. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  78. package/bundles/taiga-ui-core-tokens.umd.min.js +2 -2
  79. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-core-utils-dom.umd.js +1 -1
  81. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  82. package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
  83. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  84. package/bundles/taiga-ui-core-utils-format.umd.js +38 -6
  85. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  86. package/bundles/taiga-ui-core-utils-format.umd.min.js +1 -1
  87. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-core-utils-mask.umd.js +1 -1
  89. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  90. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  91. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  92. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  93. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  94. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  95. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  96. package/components/loader/loader.directive.d.ts +3 -0
  97. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  98. package/components/primitive-textfield/index.d.ts +3 -0
  99. package/components/primitive-textfield/primitive-textfield-options.d.ts +11 -0
  100. package/components/primitive-textfield/primitive-textfield.component.d.ts +18 -11
  101. package/components/primitive-textfield/primitive-textfield.directive.d.ts +8 -0
  102. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  103. package/components/primitive-textfield/textfield/textfield.component.d.ts +15 -0
  104. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +1 -0
  105. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  106. package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
  107. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  108. package/components/tooltip/tooltip.component.d.ts +9 -6
  109. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  110. package/constants/version.d.ts +1 -1
  111. package/directives/dropdown/taiga-ui-core-directives-dropdown.metadata.json +1 -1
  112. package/directives/hint/hint-options.d.ts +12 -0
  113. package/directives/hint/hint.directive.d.ts +5 -3
  114. package/directives/hint/index.d.ts +1 -0
  115. package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
  116. package/directives/hint-controller/hint-controller.directive.d.ts +7 -5
  117. package/directives/hint-controller/taiga-ui-core-directives-hint-controller.metadata.json +1 -1
  118. package/directives/index.d.ts +0 -1
  119. package/directives/manual-hint/index.d.ts +1 -0
  120. package/directives/manual-hint/manual-hint-options.d.ts +6 -0
  121. package/directives/manual-hint/manual-hint.directive.d.ts +3 -1
  122. package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
  123. package/directives/pointer-hint/index.d.ts +1 -0
  124. package/directives/pointer-hint/pointer-hint-options.d.ts +9 -0
  125. package/directives/pointer-hint/pointer-hint.directive.d.ts +5 -3
  126. package/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.metadata.json +1 -1
  127. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  128. package/esm2015/abstract/abstract-dropdown.js +12 -1
  129. package/esm2015/abstract/abstract-hint-options.js +6 -0
  130. package/esm2015/abstract/abstract-hint.js +7 -5
  131. package/esm2015/abstract/abstract-textfield-host.js +34 -0
  132. package/esm2015/abstract/index.js +3 -1
  133. package/esm2015/components/dialog/dialog.component.js +1 -1
  134. package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
  135. package/esm2015/components/hints-host/hint-box/hint-box.component.js +2 -1
  136. package/esm2015/components/label/label.component.js +1 -1
  137. package/esm2015/components/link/link.component.js +3 -3
  138. package/esm2015/components/loader/loader.component.js +1 -1
  139. package/esm2015/components/loader/loader.directive.js +5 -2
  140. package/esm2015/components/primitive-textfield/index.js +4 -1
  141. package/esm2015/components/primitive-textfield/primitive-textfield-options.js +12 -0
  142. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +66 -31
  143. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +40 -0
  144. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +15 -7
  145. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +68 -0
  146. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -5
  147. package/esm2015/components/scroll-controls/scroll-controls.component.js +1 -1
  148. package/esm2015/components/theme-night/theme-night.component.js +1 -1
  149. package/esm2015/components/tooltip/tooltip.component.js +17 -10
  150. package/esm2015/components/tooltip/tooltip.module.js +3 -2
  151. package/esm2015/constants/regexp.js +2 -2
  152. package/esm2015/constants/version.js +2 -2
  153. package/esm2015/directives/dropdown/dropdown.directive.js +2 -7
  154. package/esm2015/directives/hint/hint-options.js +10 -0
  155. package/esm2015/directives/hint/hint.directive.js +11 -7
  156. package/esm2015/directives/hint/index.js +2 -1
  157. package/esm2015/directives/hint-controller/hint-controller.directive.js +16 -10
  158. package/esm2015/directives/hint-controller/hint-controller.token.js +4 -3
  159. package/esm2015/directives/index.js +1 -2
  160. package/esm2015/directives/manual-hint/index.js +2 -1
  161. package/esm2015/directives/manual-hint/manual-hint-options.js +8 -0
  162. package/esm2015/directives/manual-hint/manual-hint.directive.js +9 -5
  163. package/esm2015/directives/pointer-hint/index.js +2 -1
  164. package/esm2015/directives/pointer-hint/pointer-hint-options.js +8 -0
  165. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +11 -7
  166. package/esm2015/interfaces/index.js +1 -1
  167. package/esm2015/interfaces/textfield-host.js +1 -0
  168. package/esm2015/providers/mode.provider.js +3 -2
  169. package/esm2015/tokens/index.js +2 -1
  170. package/esm2015/tokens/textfield-host.js +3 -0
  171. package/esm2015/utils/dom/process-icon.js +2 -2
  172. package/esm2015/utils/format/format-number.js +6 -7
  173. package/esm2015/utils/format/get-fractional-part-padded.js +15 -0
  174. package/esm2015/utils/format/index.js +3 -1
  175. package/esm2015/utils/format/number-to-string-without-exp.js +18 -0
  176. package/esm2015/utils/mask/create-number-mask.js +2 -2
  177. package/esm5/abstract/abstract-dropdown.js +12 -1
  178. package/esm5/abstract/abstract-hint-options.js +6 -0
  179. package/esm5/abstract/abstract-hint.js +7 -5
  180. package/esm5/abstract/abstract-textfield-host.js +55 -0
  181. package/esm5/abstract/index.js +3 -1
  182. package/esm5/components/dialog/dialog.component.js +1 -1
  183. package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
  184. package/esm5/components/hints-host/hint-box/hint-box.component.js +2 -1
  185. package/esm5/components/label/label.component.js +1 -1
  186. package/esm5/components/link/link.component.js +3 -3
  187. package/esm5/components/loader/loader.component.js +1 -1
  188. package/esm5/components/loader/loader.directive.js +5 -2
  189. package/esm5/components/primitive-textfield/index.js +4 -1
  190. package/esm5/components/primitive-textfield/primitive-textfield-options.js +12 -0
  191. package/esm5/components/primitive-textfield/primitive-textfield.component.js +70 -35
  192. package/esm5/components/primitive-textfield/primitive-textfield.directive.js +49 -0
  193. package/esm5/components/primitive-textfield/primitive-textfield.module.js +15 -7
  194. package/esm5/components/primitive-textfield/textfield/textfield.component.js +77 -0
  195. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +16 -5
  196. package/esm5/components/scroll-controls/scroll-controls.component.js +1 -1
  197. package/esm5/components/theme-night/theme-night.component.js +1 -1
  198. package/esm5/components/tooltip/tooltip.component.js +21 -10
  199. package/esm5/components/tooltip/tooltip.module.js +3 -2
  200. package/esm5/constants/regexp.js +2 -2
  201. package/esm5/constants/version.js +2 -2
  202. package/esm5/directives/dropdown/dropdown.directive.js +2 -7
  203. package/esm5/directives/hint/hint-options.js +11 -0
  204. package/esm5/directives/hint/hint.directive.js +11 -7
  205. package/esm5/directives/hint/index.js +2 -1
  206. package/esm5/directives/hint-controller/hint-controller.directive.js +16 -10
  207. package/esm5/directives/hint-controller/hint-controller.token.js +4 -3
  208. package/esm5/directives/index.js +1 -2
  209. package/esm5/directives/manual-hint/index.js +2 -1
  210. package/esm5/directives/manual-hint/manual-hint-options.js +9 -0
  211. package/esm5/directives/manual-hint/manual-hint.directive.js +9 -5
  212. package/esm5/directives/pointer-hint/index.js +2 -1
  213. package/esm5/directives/pointer-hint/pointer-hint-options.js +9 -0
  214. package/esm5/directives/pointer-hint/pointer-hint.directive.js +11 -7
  215. package/esm5/interfaces/index.js +1 -1
  216. package/esm5/interfaces/textfield-host.js +1 -0
  217. package/esm5/providers/mode.provider.js +3 -2
  218. package/esm5/tokens/index.js +2 -1
  219. package/esm5/tokens/textfield-host.js +3 -0
  220. package/esm5/utils/dom/process-icon.js +2 -2
  221. package/esm5/utils/format/format-number.js +6 -7
  222. package/esm5/utils/format/get-fractional-part-padded.js +16 -0
  223. package/esm5/utils/format/index.js +3 -1
  224. package/esm5/utils/format/number-to-string-without-exp.js +19 -0
  225. package/esm5/utils/mask/create-number-mask.js +2 -2
  226. package/fesm2015/taiga-ui-core-abstract.js +57 -8
  227. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  228. package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
  229. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  230. package/fesm2015/taiga-ui-core-components-hints-host.js +1 -0
  231. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  232. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  233. package/fesm2015/taiga-ui-core-components-link.js +2 -2
  234. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  235. package/fesm2015/taiga-ui-core-components-loader.js +5 -2
  236. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  237. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +197 -42
  238. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  239. package/fesm2015/taiga-ui-core-components-scroll-controls.js +1 -1
  240. package/fesm2015/taiga-ui-core-components-theme-night.js +1 -1
  241. package/fesm2015/taiga-ui-core-components-tooltip.js +18 -10
  242. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  243. package/fesm2015/taiga-ui-core-constants.js +2 -2
  244. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  245. package/fesm2015/taiga-ui-core-directives-dropdown.js +1 -6
  246. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  247. package/fesm2015/taiga-ui-core-directives-hint-controller.js +16 -10
  248. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  249. package/fesm2015/taiga-ui-core-directives-hint.js +20 -9
  250. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  251. package/fesm2015/taiga-ui-core-directives-manual-hint.js +16 -7
  252. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  253. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +18 -9
  254. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  255. package/fesm2015/taiga-ui-core-directives.js +0 -1
  256. package/fesm2015/taiga-ui-core-directives.js.map +1 -1
  257. package/fesm2015/taiga-ui-core-providers.js +2 -1
  258. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  259. package/fesm2015/taiga-ui-core-tokens.js +3 -1
  260. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  261. package/fesm2015/taiga-ui-core-utils-dom.js +1 -1
  262. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  263. package/fesm2015/taiga-ui-core-utils-format.js +37 -7
  264. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  265. package/fesm2015/taiga-ui-core-utils-mask.js +1 -1
  266. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  267. package/fesm5/taiga-ui-core-abstract.js +78 -8
  268. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  269. package/fesm5/taiga-ui-core-components-dialog.js +1 -1
  270. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  271. package/fesm5/taiga-ui-core-components-hints-host.js +1 -0
  272. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  273. package/fesm5/taiga-ui-core-components-label.js +1 -1
  274. package/fesm5/taiga-ui-core-components-link.js +2 -2
  275. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  276. package/fesm5/taiga-ui-core-components-loader.js +5 -2
  277. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  278. package/fesm5/taiga-ui-core-components-primitive-textfield.js +223 -46
  279. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  280. package/fesm5/taiga-ui-core-components-scroll-controls.js +1 -1
  281. package/fesm5/taiga-ui-core-components-theme-night.js +1 -1
  282. package/fesm5/taiga-ui-core-components-tooltip.js +22 -10
  283. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  284. package/fesm5/taiga-ui-core-constants.js +2 -2
  285. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  286. package/fesm5/taiga-ui-core-directives-dropdown.js +1 -6
  287. package/fesm5/taiga-ui-core-directives-dropdown.js.map +1 -1
  288. package/fesm5/taiga-ui-core-directives-hint-controller.js +16 -10
  289. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  290. package/fesm5/taiga-ui-core-directives-hint.js +21 -10
  291. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  292. package/fesm5/taiga-ui-core-directives-manual-hint.js +17 -8
  293. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  294. package/fesm5/taiga-ui-core-directives-pointer-hint.js +19 -10
  295. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  296. package/fesm5/taiga-ui-core-directives.js +0 -1
  297. package/fesm5/taiga-ui-core-directives.js.map +1 -1
  298. package/fesm5/taiga-ui-core-providers.js +2 -1
  299. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  300. package/fesm5/taiga-ui-core-tokens.js +3 -1
  301. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  302. package/fesm5/taiga-ui-core-utils-dom.js +1 -1
  303. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  304. package/fesm5/taiga-ui-core-utils-format.js +37 -7
  305. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  306. package/fesm5/taiga-ui-core-utils-mask.js +1 -1
  307. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  308. package/interfaces/index.d.ts +1 -0
  309. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  310. package/interfaces/textfield-host.d.ts +9 -0
  311. package/package.json +7 -6
  312. package/providers/taiga-ui-core-providers.metadata.json +1 -1
  313. package/styles/markup/tui-island.less +1 -0
  314. package/styles/mixins/textfield.less +47 -27
  315. package/styles/mixins/textfield.scss +0 -9
  316. package/styles/taiga-ui-theme.less +1 -0
  317. package/styles/theme/dialog.less +13 -0
  318. package/styles/theme/variables.less +2 -0
  319. package/styles/variables/media.less +2 -2
  320. package/tokens/index.d.ts +1 -0
  321. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  322. package/tokens/textfield-host.d.ts +3 -0
  323. package/utils/format/get-fractional-part-padded.d.ts +8 -0
  324. package/utils/format/index.d.ts +2 -0
  325. package/utils/format/number-to-string-without-exp.d.ts +7 -0
  326. package/utils/format/taiga-ui-core-utils-format.metadata.json +1 -1
  327. package/bundles/taiga-ui-core-directives-border.umd.js +0 -291
  328. package/bundles/taiga-ui-core-directives-border.umd.js.map +0 -1
  329. package/bundles/taiga-ui-core-directives-border.umd.min.js +0 -16
  330. package/bundles/taiga-ui-core-directives-border.umd.min.js.map +0 -1
  331. package/directives/border/border.directive.d.ts +0 -9
  332. package/directives/border/border.module.d.ts +0 -2
  333. package/directives/border/index.d.ts +0 -2
  334. package/directives/border/package.json +0 -13
  335. package/directives/border/taiga-ui-core-directives-border.d.ts +0 -4
  336. package/directives/border/taiga-ui-core-directives-border.metadata.json +0 -1
  337. package/esm2015/directives/border/border.directive.js +0 -42
  338. package/esm2015/directives/border/border.module.js +0 -13
  339. package/esm2015/directives/border/index.js +0 -3
  340. package/esm2015/directives/border/taiga-ui-core-directives-border.js +0 -5
  341. package/esm5/directives/border/border.directive.js +0 -51
  342. package/esm5/directives/border/border.module.js +0 -16
  343. package/esm5/directives/border/index.js +0 -3
  344. package/esm5/directives/border/taiga-ui-core-directives-border.js +0 -5
  345. package/fesm2015/taiga-ui-core-directives-border.js +0 -57
  346. package/fesm2015/taiga-ui-core-directives-border.js.map +0 -1
  347. package/fesm5/taiga-ui-core-directives-border.js +0 -69
  348. package/fesm5/taiga-ui-core-directives-border.js.map +0 -1
@@ -10,7 +10,7 @@ TuiThemeNightComponent = __decorate([
10
10
  selector: 'tui-theme-night',
11
11
  template: '',
12
12
  encapsulation: ViewEncapsulation.None,
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}"]
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-elevation-01:#222;--tui-elevation-02:#222}tui-notification{--tui-base-01:#000}"]
14
14
  })
15
15
  ], TuiThemeNightComponent);
16
16
 
@@ -1,6 +1,7 @@
1
1
  import { __decorate, __param } from 'tslib';
2
2
  import { Inject, Input, HostBinding, HostListener, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { TuiDestroyService, TUI_IS_MOBILE, tuiDefaultProp } from '@taiga-ui/cdk';
4
+ import { TUI_HINT_OPTIONS } from '@taiga-ui/core/directives';
4
5
  import { MODE_PROVIDER } from '@taiga-ui/core/providers';
5
6
  import { TUI_MODE } from '@taiga-ui/core/tokens';
6
7
  import { Observable } from 'rxjs';
@@ -8,16 +9,18 @@ import { takeUntil } from 'rxjs/operators';
8
9
  import { CommonModule } from '@angular/common';
9
10
  import { TuiSvgModule } from '@taiga-ui/core/components/svg';
10
11
  import { TuiHintModule } from '@taiga-ui/core/directives/hint';
12
+ import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
11
13
 
12
14
  let TuiTooltipComponent = class TuiTooltipComponent {
13
- constructor(destroy$, mode$, isMobile) {
15
+ constructor(destroy$, mode$, isMobile, options) {
14
16
  this.isMobile = isMobile;
17
+ this.options = options;
15
18
  this.globalMode = null;
16
19
  this.content = '';
17
- this.mode = null;
18
- this.direction = 'bottom-left';
19
- this.showDelay = 500;
20
- this.hideDelay = 200;
20
+ this.mode = this.options.mode;
21
+ this.direction = this.options.direction;
22
+ this.showDelay = this.options.tuiHintShowDelay;
23
+ this.hideDelay = this.options.tuiHintHideDelay;
21
24
  this.describeId = '';
22
25
  mode$.pipe(takeUntil(destroy$)).subscribe(mode => {
23
26
  this.globalMode = mode;
@@ -33,11 +36,15 @@ let TuiTooltipComponent = class TuiTooltipComponent {
33
36
  event.stopPropagation();
34
37
  }
35
38
  }
39
+ get icon() {
40
+ return this.options.tooltipIcon;
41
+ }
36
42
  };
37
43
  TuiTooltipComponent.ctorParameters = () => [
38
44
  { type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
39
45
  { type: Observable, decorators: [{ type: Inject, args: [TUI_MODE,] }] },
40
- { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] }
46
+ { type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
47
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_HINT_OPTIONS,] }] }
41
48
  ];
42
49
  __decorate([
43
50
  Input(),
@@ -73,21 +80,22 @@ __decorate([
73
80
  TuiTooltipComponent = __decorate([
74
81
  Component({
75
82
  selector: 'tui-tooltip',
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",
83
+ template: "<span\n polymorpheus-outlet\n automation-id=\"tui-tooltip__icon\"\n class=\"icon\"\n [content]=\"icon\"\n [tuiHintId]=\"describeId\"\n [tuiHint]=\"content\"\n [tuiHintDirection]=\"direction\"\n [tuiHintShowDelay]=\"showDelay\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintMode]=\"computedMode\"\n>\n <ng-template let-icon>\n <tui-svg [src]=\"icon\"></tui-svg>\n </ng-template>\n</span>\n",
77
84
  changeDetection: ChangeDetectionStrategy.OnPush,
78
85
  providers: [TuiDestroyService, MODE_PROVIDER],
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}"]
86
+ 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;display:inline-block;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}"]
80
87
  }),
81
88
  __param(0, Inject(TuiDestroyService)),
82
89
  __param(1, Inject(TUI_MODE)),
83
- __param(2, Inject(TUI_IS_MOBILE))
90
+ __param(2, Inject(TUI_IS_MOBILE)),
91
+ __param(3, Inject(TUI_HINT_OPTIONS))
84
92
  ], TuiTooltipComponent);
85
93
 
86
94
  let TuiTooltipModule = class TuiTooltipModule {
87
95
  };
88
96
  TuiTooltipModule = __decorate([
89
97
  NgModule({
90
- imports: [CommonModule, TuiSvgModule, TuiHintModule],
98
+ imports: [CommonModule, TuiSvgModule, TuiHintModule, PolymorpheusModule],
91
99
  declarations: [TuiTooltipComponent],
92
100
  exports: [TuiTooltipComponent],
93
101
  })
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-tooltip.js","sources":["ng://@taiga-ui/core/components/tooltip/tooltip.component.ts","ng://@taiga-ui/core/components/tooltip/tooltip.module.ts","ng://@taiga-ui/core/components/tooltip/taiga-ui-core-components-tooltip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {TUI_IS_MOBILE, tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness, TuiDirection, TuiHintModeT} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-tooltip',\n templateUrl: './tooltip.template.html',\n styleUrls: ['./tooltip.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n})\nexport class TuiTooltipComponent {\n private globalMode: TuiBrightness | null = null;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n mode: TuiHintModeT | null = null;\n\n @Input()\n @tuiDefaultProp()\n direction: TuiDirection = 'bottom-left';\n\n @Input()\n @tuiDefaultProp()\n showDelay = 500;\n\n @Input()\n @tuiDefaultProp()\n hideDelay = 200;\n\n @Input()\n @tuiDefaultProp()\n describeId = '';\n\n constructor(\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_MODE) mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n ) {\n mode$.pipe(takeUntil(destroy$)).subscribe(mode => {\n this.globalMode = mode;\n });\n }\n\n // TODO: Simplify\n @HostBinding('attr.data-mode')\n get computedMode(): TuiHintModeT | TuiBrightness | null {\n return this.mode || this.globalMode;\n }\n\n @HostListener('mousedown', ['$event'])\n @HostListener('click', ['$event'])\n stopOnMobile(event: MouseEvent) {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiHintModule} from '@taiga-ui/core/directives/hint';\n\nimport {TuiTooltipComponent} from './tooltip.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule, TuiHintModule],\n declarations: [TuiTooltipComponent],\n exports: [TuiTooltipComponent],\n})\nexport class TuiTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;IAuBa,mBAAmB,GAAhC,MAAa,mBAAmB;IA2B5B,YAC+B,QAA6B,EACtC,KAAuC,EACjB,QAAiB;QAAjB,aAAQ,GAAR,QAAQ,CAAS;QA7BrD,eAAU,GAAyB,IAAI,CAAC;QAIhD,YAAO,GAAwB,EAAE,CAAC;QAIlC,SAAI,GAAwB,IAAI,CAAC;QAIjC,cAAS,GAAiB,aAAa,CAAC;QAIxC,cAAS,GAAG,GAAG,CAAC;QAIhB,cAAS,GAAG,GAAG,CAAC;QAIhB,eAAU,GAAG,EAAE,CAAC;QAOZ,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI;YAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SAC1B,CAAC,CAAC;KACN;;IAID,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC;KACvC;IAID,YAAY,CAAC,KAAiB;QAC1B,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;SAC3B;KACJ;EACJ;;YAvB4C,UAAU,uBAA9C,MAAM,SAAC,iBAAiB;YACA,UAAU,uBAAlC,MAAM,SAAC,QAAQ;0CACf,MAAM,SAAC,aAAa;;AAzBzB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDACiB;AAIlC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;iDACgB;AAIjC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;sDACuB;AAIxC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;sDACD;AAIhB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;sDACD;AAIhB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;uDACD;AAchB;IADC,WAAW,CAAC,gBAAgB,CAAC;uDAG7B;AAID;IAFC,YAAY,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC;IACrC,YAAY,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC;uDAMjC;AAlDQ,mBAAmB;IAP/B,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;QACvB,kVAAsC;QAEtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;;KAChD,CAAC;IA6BO,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;GA9BjB,mBAAmB,CAmD/B;;IC9DY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAL5B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC;QACpD,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACZhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-tooltip.js","sources":["ng://@taiga-ui/core/components/tooltip/tooltip.component.ts","ng://@taiga-ui/core/components/tooltip/tooltip.module.ts","ng://@taiga-ui/core/components/tooltip/taiga-ui-core-components-tooltip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {TUI_IS_MOBILE, tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness, TuiHintModeT} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-tooltip',\n templateUrl: './tooltip.template.html',\n styleUrls: ['./tooltip.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n})\nexport class TuiTooltipComponent {\n private globalMode: TuiBrightness | null = null;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n mode: TuiHintOptions['mode'] = this.options.mode;\n\n @Input()\n @tuiDefaultProp()\n direction: TuiHintOptions['direction'] = this.options.direction;\n\n @Input()\n @tuiDefaultProp()\n showDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n hideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\n\n @Input()\n @tuiDefaultProp()\n describeId = '';\n\n constructor(\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_MODE) mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_HINT_OPTIONS) private readonly options: TuiHintOptions,\n ) {\n mode$.pipe(takeUntil(destroy$)).subscribe(mode => {\n this.globalMode = mode;\n });\n }\n\n // TODO: Simplify\n @HostBinding('attr.data-mode')\n get computedMode(): TuiHintModeT | TuiBrightness | null {\n return this.mode || this.globalMode;\n }\n\n @HostListener('mousedown', ['$event'])\n @HostListener('click', ['$event'])\n stopOnMobile(event: MouseEvent) {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n get icon(): PolymorpheusContent {\n return this.options.tooltipIcon;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiHintModule} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTooltipComponent} from './tooltip.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule, TuiHintModule, PolymorpheusModule],\n declarations: [TuiTooltipComponent],\n exports: [TuiTooltipComponent],\n})\nexport class TuiTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;IAwBa,mBAAmB,GAAhC,MAAa,mBAAmB;IA2B5B,YAC+B,QAA6B,EACtC,KAAuC,EACjB,QAAiB,EACd,OAAuB;QAD1B,aAAQ,GAAR,QAAQ,CAAS;QACd,YAAO,GAAP,OAAO,CAAgB;QA9B9D,eAAU,GAAyB,IAAI,CAAC;QAIhD,YAAO,GAAwB,EAAE,CAAC;QAIlC,SAAI,GAA2B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAIjD,cAAS,GAAgC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAIhE,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,eAAU,GAAG,EAAE,CAAC;QAQZ,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI;YAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SAC1B,CAAC,CAAC;KACN;;IAID,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AM,CAAC,gBAAgB,CAAC,CAAA;GA/BpB,mBAAmB,CAwD/B;;ICnEY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAL5B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,CAAC;QACxE,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACbhC;;;;;;"}
@@ -59,11 +59,11 @@ const TUI_DIGIT_REGEXP = /\d/;
59
59
  const TUI_NON_DIGIT_REGEXP = /\D/;
60
60
  const TUI_NON_DIGITS_REGEXP = /\D+/g;
61
61
  const TUI_LEADING_ZEROES_REGEXP = /^0+/;
62
- const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\/#!$%\\^&\\*;:{}=\\-_\`~()]$/;
62
+ const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\/#!$%\\^&\\*;:{}=\\-_`~()]$/;
63
63
  const TUI_LATIN_REGEXP = /[A-z]/;
64
64
  const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;
65
65
 
66
- const VERSION = '2.29.0';
66
+ const VERSION = '2.33.0';
67
67
 
68
68
  /**
69
69
  * Generated bundle index. Do not edit.
@@ -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/decimal-symbols.ts","ng://@taiga-ui/core/constants/default-icons-path.ts","ng://@taiga-ui/core/constants/default-marker-handler.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","export const TUI_DECIMAL_SYMBOLS: ReadonlyArray<string> = [',', '.'];\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 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.29.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;;MCHpB,mBAAmB,GAA0B,CAAC,GAAG,EAAE,GAAG;;MCEtD,kBAAkB,GAA6B,IAAI,IAC5D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,IAAI;;MCA/B,0BAA0B,GAAqB,MAAM;;MCHrD,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;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-constants.js","sources":["ng://@taiga-ui/core/constants/absolute-box-sizes.ts","ng://@taiga-ui/core/constants/decimal-symbols.ts","ng://@taiga-ui/core/constants/default-icons-path.ts","ng://@taiga-ui/core/constants/default-marker-handler.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","export const TUI_DECIMAL_SYMBOLS: ReadonlyArray<string> = [',', '.'];\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 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.33.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;;MCHpB,mBAAmB,GAA0B,CAAC,GAAG,EAAE,GAAG;;MCEtD,kBAAkB,GAA6B,IAAI,IAC5D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,IAAI;;MCA/B,0BAA0B,GAAqB,MAAM;;MCHrD,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,mCAAmC;MACtE,gBAAgB,GAAG,QAAQ;MAC3B,4BAA4B,GAAG;;MCN/B,OAAO,GAAG;;ACAvB;;;;;;"}
@@ -12,12 +12,7 @@ let TuiDropdownDirective = TuiDropdownDirective_1 = class TuiDropdownDirective e
12
12
  this.refresh$ = refresh$;
13
13
  }
14
14
  set open(value) {
15
- if (value) {
16
- this.openDropdownBox();
17
- }
18
- else {
19
- this.closeDropdownBox();
20
- }
15
+ this.toggleDropdown(value);
21
16
  }
22
17
  };
23
18
  TuiDropdownDirective.ctorParameters = () => [
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-dropdown.js","sources":["ng://@taiga-ui/core/directives/dropdown/dropdown.directive.ts","ng://@taiga-ui/core/directives/dropdown/dropdown.module.ts","ng://@taiga-ui/core/directives/dropdown/taiga-ui-core-directives-dropdown.ts"],"sourcesContent":["import {\n AfterViewChecked,\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Injector,\n Input,\n OnDestroy,\n Optional,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n TuiParentsScrollService,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown} from '@taiga-ui/core/abstract';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {TUI_DROPDOWN_DIRECTIVE} from '@taiga-ui/core/tokens';\n\n@Directive({\n selector: '[tuiDropdown]:not(ng-container)',\n providers: [\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownDirective),\n },\n TuiParentsScrollService,\n ],\n})\nexport class TuiDropdownDirective\n extends AbstractTuiDropdown\n implements TuiDropdown, AfterViewChecked, OnDestroy\n{\n @Input('tuiDropdown')\n set open(value: boolean) {\n if (value) {\n this.openDropdownBox();\n } else {\n this.closeDropdownBox();\n }\n }\n\n constructor(\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService)\n portalService: TuiPortalService,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiActiveZoneDirective)\n @Optional()\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TuiParentsScrollService) readonly refresh$: TuiParentsScrollService,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core/components/dropdown-box';\n\nimport {TuiDropdownDirective} from './dropdown.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownDirective],\n exports: [TuiDropdownDirective],\n})\nexport class TuiDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA+Ba,oBAAoB,4BAAjC,MAAa,oBACT,SAAQ,mBAAmB;IAY3B,YAEI,wBAAkD,EAChC,QAAkB,EAEpC,aAA+B,EACX,UAAmC,EAGvD,UAAyC,EACC,QAAiC;QAE3E,KAAK,CAAC,wBAAwB,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;QAFvC,aAAQ,GAAR,QAAQ,CAAyB;KAG9E;IArBD,IAAI,IAAI,CAAC,KAAc;QACnB,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,eAAe,EAAE,CAAC;SAC1B;aAAM;YACH,IAAI,CAAC,gBAAgB,EAAE,CAAC;SAC3B;KACJ;EAgBJ;;YAZiC,wBAAwB,uBADjD,MAAM,SAAC,wBAAwB;YAEJ,QAAQ,uBAAnC,MAAM,SAAC,QAAQ;YAED,gBAAgB,uBAD9B,MAAM,SAAC,gBAAgB;YAEQ,UAAU,uBAAzC,MAAM,SAAC,UAAU;YAGN,sBAAsB,uBAFjC,MAAM,SAAC,sBAAsB,cAC7B,QAAQ;YAE2C,uBAAuB,uBAA1E,MAAM,SAAC,uBAAuB;;AAlBnC;IADC,KAAK,CAAC,aAAa,CAAC;gDAOpB;AAXQ,oBAAoB;IAVhC,SAAS,CAAC;QACP,QAAQ,EAAE,iCAAiC;QAC3C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,sBAAsB;gBAC/B,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAoB,CAAC;aACtD;YACD,uBAAuB;SAC1B;KACJ,CAAC;IAeO,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;IAEhC,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAC9B,WAAA,QAAQ,EAAE,CAAA;IAEV,WAAA,MAAM,CAAC,uBAAuB,CAAC,CAAA;GAvB3B,oBAAoB,CA2BhC;;IChDY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAL7B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;QAC/B,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACVjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-dropdown.js","sources":["ng://@taiga-ui/core/directives/dropdown/dropdown.directive.ts","ng://@taiga-ui/core/directives/dropdown/dropdown.module.ts","ng://@taiga-ui/core/directives/dropdown/taiga-ui-core-directives-dropdown.ts"],"sourcesContent":["import {\n AfterViewChecked,\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Injector,\n Input,\n OnDestroy,\n Optional,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n TuiParentsScrollService,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown} from '@taiga-ui/core/abstract';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {TUI_DROPDOWN_DIRECTIVE} from '@taiga-ui/core/tokens';\n\n@Directive({\n selector: '[tuiDropdown]:not(ng-container)',\n providers: [\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownDirective),\n },\n TuiParentsScrollService,\n ],\n})\nexport class TuiDropdownDirective\n extends AbstractTuiDropdown\n implements TuiDropdown, AfterViewChecked, OnDestroy\n{\n @Input('tuiDropdown')\n set open(value: boolean) {\n this.toggleDropdown(value);\n }\n\n constructor(\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService)\n portalService: TuiPortalService,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiActiveZoneDirective)\n @Optional()\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TuiParentsScrollService) readonly refresh$: TuiParentsScrollService,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core/components/dropdown-box';\n\nimport {TuiDropdownDirective} from './dropdown.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownDirective],\n exports: [TuiDropdownDirective],\n})\nexport class TuiDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA+Ba,oBAAoB,4BAAjC,MAAa,oBACT,SAAQ,mBAAmB;IAQ3B,YAEI,wBAAkD,EAChC,QAAkB,EAEpC,aAA+B,EACX,UAAmC,EAGvD,UAAyC,EACC,QAAiC;QAE3E,KAAK,CAAC,wBAAwB,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,U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;;;;"}
@@ -1,25 +1,30 @@
1
- import { __decorate } from 'tslib';
2
- import { InjectionToken, Input, Directive, forwardRef, NgModule, ChangeDetectorRef } from '@angular/core';
1
+ import { __decorate, __param } from 'tslib';
2
+ import { InjectionToken, inject, Inject, Input, Directive, forwardRef, NgModule, ChangeDetectorRef } from '@angular/core';
3
3
  import { TuiController, tuiDefaultProp, TuiDestroyService } from '@taiga-ui/cdk';
4
+ import { TUI_HINT_OPTIONS } from '@taiga-ui/core/directives/hint';
4
5
  import { watchedControllerFactory } from '@taiga-ui/core/providers';
5
6
 
6
7
  const TUI_HINT_CONTROLLER = new InjectionToken('Controls configuration of hints', {
7
- factory: () => new TuiHintControllerDirective(),
8
+ factory: () => new TuiHintControllerDirective(inject(TUI_HINT_OPTIONS)),
8
9
  });
9
10
 
10
11
  var TuiHintControllerDirective_1;
11
12
  // TODO: v2.0 use in Charts
12
13
  let TuiHintControllerDirective = TuiHintControllerDirective_1 = class TuiHintControllerDirective extends TuiController {
13
- constructor() {
14
- super(...arguments);
14
+ constructor(options) {
15
+ super();
16
+ this.options = options;
15
17
  // TODO: Remove null in 3.0
16
18
  this.content = null;
17
- this.direction = 'bottom-left';
18
- this.mode = null;
19
- this.showDelay = 500;
20
- this.hideDelay = 200;
19
+ this.direction = this.options.direction;
20
+ this.mode = this.options.mode;
21
+ this.showDelay = this.options.tuiHintShowDelay;
22
+ this.hideDelay = this.options.tuiHintHideDelay;
21
23
  }
22
24
  };
25
+ TuiHintControllerDirective.ctorParameters = () => [
26
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_HINT_OPTIONS,] }] }
27
+ ];
23
28
  __decorate([
24
29
  Input('tuiHintContent'),
25
30
  tuiDefaultProp()
@@ -49,7 +54,8 @@ TuiHintControllerDirective = TuiHintControllerDirective_1 = __decorate([
49
54
  useExisting: forwardRef(() => TuiHintControllerDirective_1),
50
55
  },
51
56
  ],
52
- })
57
+ }),
58
+ __param(0, Inject(TUI_HINT_OPTIONS))
53
59
  ], TuiHintControllerDirective);
54
60
 
55
61
  let TuiHintControllerModule = class TuiHintControllerModule {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-hint-controller.js","sources":["ng://@taiga-ui/core/directives/hint-controller/hint-controller.token.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.directive.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.module.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.provider.ts","ng://@taiga-ui/core/directives/hint-controller/taiga-ui-core-directives-hint-controller.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\nexport const TUI_HINT_CONTROLLER = new InjectionToken<TuiHintControllerDirective>(\n 'Controls configuration of hints',\n {\n factory: () => new TuiHintControllerDirective(),\n },\n);\n","import {Directive, forwardRef, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiDirection, TuiHintModeT} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\n// TODO: v2.0 use in Charts\n@Directive({\n selector: '[tuiHintContent]',\n providers: [\n {\n provide: TUI_HINT_CONTROLLER,\n useExisting: forwardRef(() => TuiHintControllerDirective),\n },\n ],\n})\nexport class TuiHintControllerDirective extends TuiController {\n // TODO: Remove null in 3.0\n @Input('tuiHintContent')\n @tuiDefaultProp()\n content: PolymorpheusContent | null = null;\n\n @Input('tuiHintDirection')\n @tuiDefaultProp()\n direction: TuiDirection = 'bottom-left';\n\n @Input('tuiHintMode')\n @tuiDefaultProp()\n mode: TuiHintModeT | null = null;\n\n @Input('tuiHintShowDelay')\n @tuiDefaultProp()\n showDelay = 500;\n\n @Input('tuiHintHideDelay')\n @tuiDefaultProp()\n hideDelay = 200;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\n@NgModule({\n declarations: [TuiHintControllerDirective],\n exports: [TuiHintControllerDirective],\n})\nexport class TuiHintControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {watchedControllerFactory} from '@taiga-ui/core/providers';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\nexport const TUI_HINT_WATCHED_CONTROLLER = new InjectionToken('watched hint controller');\n// TODO: remove in ivy compilation\nexport const HINT_CONTROLLER_FACTORY = watchedControllerFactory;\nexport const HINT_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_HINT_WATCHED_CONTROLLER,\n deps: [TUI_HINT_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: HINT_CONTROLLER_FACTORY,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAIa,mBAAmB,GAAG,IAAI,cAAc,CACjD,iCAAiC,EACjC;IACI,OAAO,EAAE,MAAM,IAAI,0BAA0B,EAAE;CAClD;;;ACDL;IAUa,0BAA0B,kCAAvC,MAAa,0BAA2B,SAAQ,aAAa;IAA7D;;;QAII,YAAO,GAA+B,IAAI,CAAC;QAI3C,cAAS,GAAiB,aAAa,CAAC;QAIxC,SAAI,GAAwB,IAAI,CAAC;QAIjC,cAAS,GAAG,GAAG,CAAC;QAIhB,cAAS,GAAG,GAAG,CAAC;KACnB;EAAA;AAjBG;IAFC,KAAK,CAAC,gBAAgB,CAAC;IACvB,cAAc,EAAE;2DAC0B;AAI3C;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DACuB;AAIxC;IAFC,KAAK,CAAC,aAAa,CAAC;IACpB,cAAc,EAAE;wDACgB;AAIjC;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DACD;AAIhB;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DACD;AApBP,0BAA0B;IATtC,SAAS,CAAC;QACP,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,mBAAmB;gBAC5B,WAAW,EAAE,UAAU,CAAC,MAAM,4BAA0B,CAAC;aAC5D;SACJ;KACJ,CAAC;GACW,0BAA0B,CAqBtC;;IC9BY,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IAJnC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;QAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACxC,CAAC;GACW,uBAAuB,CAAG;;MCF1B,2BAA2B,GAAG,IAAI,cAAc,CAAC,yBAAyB,EAAE;AACzF;MACa,uBAAuB,GAAG,yBAAyB;MACnD,wBAAwB,GAAa;IAC9C,iBAAiB;IACjB;QACI,OAAO,EAAE,2BAA2B;QACpC,IAAI,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;QACjE,UAAU,EAAE,uBAAuB;KACtC;;;ACfL;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-hint-controller.js","sources":["ng://@taiga-ui/core/directives/hint-controller/hint-controller.token.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.directive.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.module.ts","ng://@taiga-ui/core/directives/hint-controller/hint-controller.provider.ts","ng://@taiga-ui/core/directives/hint-controller/taiga-ui-core-directives-hint-controller.ts"],"sourcesContent":["import {inject, InjectionToken} from '@angular/core';\nimport {TUI_HINT_OPTIONS} from '@taiga-ui/core/directives/hint';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\nexport const TUI_HINT_CONTROLLER = new InjectionToken<TuiHintControllerDirective>(\n 'Controls configuration of hints',\n {\n factory: () => new TuiHintControllerDirective(inject(TUI_HINT_OPTIONS)),\n },\n);\n","import {Directive, forwardRef, Inject, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\n// TODO: v2.0 use in Charts\n@Directive({\n selector: '[tuiHintContent]',\n providers: [\n {\n provide: TUI_HINT_CONTROLLER,\n useExisting: forwardRef(() => TuiHintControllerDirective),\n },\n ],\n})\nexport class TuiHintControllerDirective extends TuiController {\n // TODO: Remove null in 3.0\n @Input('tuiHintContent')\n @tuiDefaultProp()\n content: PolymorpheusContent | null = null;\n\n @Input('tuiHintDirection')\n @tuiDefaultProp()\n direction: TuiHintOptions['direction'] = this.options.direction;\n\n @Input('tuiHintMode')\n @tuiDefaultProp()\n mode: TuiHintOptions['mode'] = this.options.mode;\n\n @Input('tuiHintShowDelay')\n @tuiDefaultProp()\n showDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input('tuiHintHideDelay')\n @tuiDefaultProp()\n hideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\n\n constructor(@Inject(TUI_HINT_OPTIONS) private readonly options: TuiHintOptions) {\n super();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\n@NgModule({\n declarations: [TuiHintControllerDirective],\n exports: [TuiHintControllerDirective],\n})\nexport class TuiHintControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {watchedControllerFactory} from '@taiga-ui/core/providers';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\nexport const TUI_HINT_WATCHED_CONTROLLER = new InjectionToken('watched hint controller');\n// TODO: remove in ivy compilation\nexport const HINT_CONTROLLER_FACTORY = watchedControllerFactory;\nexport const HINT_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_HINT_WATCHED_CONTROLLER,\n deps: [TUI_HINT_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: HINT_CONTROLLER_FACTORY,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAKa,mBAAmB,GAAG,IAAI,cAAc,CACjD,iCAAiC,EACjC;IACI,OAAO,EAAE,MAAM,IAAI,0BAA0B,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;CAC1E;;;ACFL;IAUa,0BAA0B,kCAAvC,MAAa,0BAA2B,SAAQ,aAAa;IAsBzD,YAAuD,OAAuB;QAC1E,KAAK,EAAE,CAAC;QAD2C,YAAO,GAAP,OAAO,CAAgB;;QAlB9E,YAAO,GAA+B,IAAI,CAAC;QAI3C,cAAS,GAAgC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAIhE,SAAI,GAA2B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAIjD,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;KAI7E;EACJ;;4CAHgB,MAAM,SAAC,gBAAgB;;AAlBpC;IAFC,KAAK,CAAC,gBAAgB,CAAC;IACvB,cAAc,EAAE;2DAC0B;AAI3C;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DAC+C;AAIhE;IAFC,KAAK,CAAC,aAAa,CAAC;IACpB,cAAc,EAAE;wDACgC;AAIjD;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DAC6D;AAI9E;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DAC6D;AApBrE,0BAA0B;IATtC,SAAS,CAAC;QACP,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,mBAAmB;gBAC5B,WAAW,EAAE,UAAU,CAAC,MAAM,4BAA0B,CAAC;aAC5D;SACJ;KACJ,CAAC;IAuBe,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAtB5B,0BAA0B,CAyBtC;;IClCY,uBAAuB,GAApC,MAAa,uBAAuB;EAAG;AAA1B,uBAAuB;IAJnC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;QAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACxC,CAAC;GACW,uBAAuB,CAAG;;MCF1B,2BAA2B,GAAG,IAAI,cAAc,CAAC,yBAAyB,EAAE;AACzF;MACa,uBAAuB,GAAG,yBAAyB;MACnD,wBAAwB,GAAa;IAC9C,iBAAiB;IACjB;QACI,OAAO,EAAE,2BAA2B;QACpC,IAAI,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;QACjE,UAAU,EAAE,uBAAuB;KACtC;;;ACfL;;;;;;"}
@@ -1,19 +1,28 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { Renderer2, Inject, ElementRef, Self, Optional, Input, Directive, NgModule } from '@angular/core';
2
+ import { InjectionToken, Renderer2, Inject, ElementRef, Self, Optional, Input, Directive, NgModule } from '@angular/core';
3
3
  import { TuiDestroyService, TuiObscuredService, TuiHoveredService, TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter, TuiParentsScrollService } from '@taiga-ui/cdk';
4
- import { AbstractTuiHint } from '@taiga-ui/core/abstract';
4
+ import { TUI_ABSTRACT_HINT_DEFAULT_OPTIONS, 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';
7
7
  import { Subject, combineLatest, of } from 'rxjs';
8
8
  import { startWith, map, switchMap, delay, take, distinctUntilChanged, takeUntil } from 'rxjs/operators';
9
9
 
10
+ // TODO: remove in ivy compilation
11
+ const TUI_TOOLTIP_ICON = 'tuiIconTooltipLarge';
12
+ /** Default values for hint options */
13
+ const TUI_HINT_DEFAULT_OPTIONS = Object.assign(Object.assign({}, TUI_ABSTRACT_HINT_DEFAULT_OPTIONS), { tuiHintShowDelay: 500, tuiHintHideDelay: 200, tooltipIcon: TUI_TOOLTIP_ICON });
14
+ const TUI_HINT_OPTIONS = new InjectionToken('Default parameters for hint directive', {
15
+ factory: () => TUI_HINT_DEFAULT_OPTIONS,
16
+ });
17
+
10
18
  const HINT_HOVERED_CLASS = '_hint_hovered';
11
19
  let TuiHintDirective = class TuiHintDirective extends AbstractTuiHint {
12
- constructor(renderer, elementRef, hintService, destroy$, obscured$, hoveredService, activeZone) {
13
- super(elementRef, hintService, activeZone);
20
+ constructor(renderer, elementRef, hintService, destroy$, obscured$, hoveredService, activeZone, options) {
21
+ super(elementRef, hintService, activeZone, options);
14
22
  this.renderer = renderer;
15
- this.tuiHintShowDelay = 500;
16
- this.tuiHintHideDelay = 200;
23
+ this.options = options;
24
+ this.tuiHintShowDelay = this.options.tuiHintShowDelay;
25
+ this.tuiHintHideDelay = this.options.tuiHintHideDelay;
17
26
  this.tuiHintHost = null;
18
27
  this.componentHovered$ = new Subject();
19
28
  // @bad TODO: Use private provider
@@ -82,7 +91,8 @@ TuiHintDirective.ctorParameters = () => [
82
91
  { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
83
92
  { type: TuiObscuredService, decorators: [{ type: Inject, args: [TuiObscuredService,] }, { type: Self }] },
84
93
  { type: TuiHoveredService, decorators: [{ type: Inject, args: [TuiHoveredService,] }] },
85
- { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] }
94
+ { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] },
95
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_HINT_OPTIONS,] }] }
86
96
  ];
87
97
  __decorate([
88
98
  Input()
@@ -116,7 +126,8 @@ TuiHintDirective = __decorate([
116
126
  __param(4, Self()),
117
127
  __param(5, Inject(TuiHoveredService)),
118
128
  __param(6, Optional()),
119
- __param(6, Inject(TuiActiveZoneDirective))
129
+ __param(6, Inject(TuiActiveZoneDirective)),
130
+ __param(7, Inject(TUI_HINT_OPTIONS))
120
131
  ], TuiHintDirective);
121
132
 
122
133
  let TuiHintModule = class TuiHintModule {
@@ -132,5 +143,5 @@ TuiHintModule = __decorate([
132
143
  * Generated bundle index. Do not edit.
133
144
  */
134
145
 
135
- export { HINT_HOVERED_CLASS, TuiHintDirective, TuiHintModule };
146
+ export { HINT_HOVERED_CLASS, TUI_HINT_DEFAULT_OPTIONS, TUI_HINT_OPTIONS, TUI_TOOLTIP_ICON, TuiHintDirective, TuiHintModule };
136
147
  //# sourceMappingURL=taiga-ui-core-directives-hint.js.map
@@ -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 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 @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 readonly componentHovered$ = new Subject<boolean>();\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';\n\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,GAA7B,MAAa,gBAAiB,SAAQ,eAAe;IAgCjD,YACwC,QAAmB,EACnC,UAAmC,EAC/B,WAA2B,EAEnD,QAA2B,EAG3B,SAA6B,EACF,cAAiC,EAG5D,UAAyC;QAEzC,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QAbP,aAAQ,GAAR,QAAQ,CAAW;QA3B3D,qBAAgB,GAAG,GAAG,CAAC;QAIvB,qBAAgB,GAAG,GAAG,CAAC;QAIvB,gBAAW,GAAuB,IAAI,CAAC;QAgB9B,sBAAiB,GAAG,IAAI,OAAO,EAAW,CAAC;;QAmBhD,aAAa,CACT,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,EACvD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAChD;aACI,IAAI,CACD,GAAG,CACC,CAAC,CAAC,gBAA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KAAK,EAAE;IACP,iBAAiB,EAAE;+CAUnB;AA5BQ,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;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GA3C1B,gBAAgB,CA4H5B;;IC5JY,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;;ACR7B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-hint.js","sources":["ng://@taiga-ui/core/directives/hint/hint-options.ts","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 {InjectionToken} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiHintOptions extends TuiAbstractHintOptions {\n readonly tuiHintShowDelay: number;\n readonly tuiHintHideDelay: number;\n readonly tooltipIcon: PolymorpheusContent;\n}\n\n// TODO: remove in ivy compilation\nexport const TUI_TOOLTIP_ICON = 'tuiIconTooltipLarge';\n\n/** Default values for hint options */\nexport const TUI_HINT_DEFAULT_OPTIONS: TuiHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n tuiHintShowDelay: 500,\n tuiHintHideDelay: 200,\n tooltipIcon: TUI_TOOLTIP_ICON,\n};\n\nexport const TUI_HINT_OPTIONS = new InjectionToken<TuiHintOptions>(\n 'Default parameters for hint directive',\n {\n factory: () => TUI_HINT_DEFAULT_OPTIONS,\n },\n);\n","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\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from './hint-options';\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 @Input()\n tuiHintId?: string;\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\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 readonly componentHovered$ = new Subject<boolean>();\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 @Inject(TUI_HINT_OPTIONS) protected readonly options: TuiHintOptions,\n ) {\n super(elementRef, hintService, activeZone, options);\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';\n\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":";;;;;;;;;AAaA;MACa,gBAAgB,GAAG,sBAAsB;AAEtD;MACa,wBAAwB,mCAC9B,iCAAiC,KACpC,gBAAgB,EAAE,GAAG,EACrB,gBAAgB,EAAE,GAAG,EACrB,WAAW,EAAE,gBAAgB,IAC/B;MAEW,gBAAgB,GAAG,IAAI,cAAc,CAC9C,uCAAuC,EACvC;IACI,OAAO,EAAE,MAAM,wBAAwB;CAC1C;;MCQQ,kBAAkB,GAAG,gBAAgB;IAMrC,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,eAAe;IAgCjD,YACwC,QAAmB,EACnC,UAAmC,EAC/B,WAA2B,EAEnD,QAA2B,EAG3B,SAA6B,EACF,cAAiC,EAG5D,UAAyC,EACI,OAAuB;QAEpE,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAdhB,aAAQ,GAAR,QAAQ,CAAW;QAYV,YAAO,GAAP,OAAO,CAAgB;QAvCxE,qBAAgB,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAIrF,qBAAgB,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAIrF,gBAAW,GAAuB,IAAI,CAAC;QAgB9B,sBAAiB,GAAG,I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,YACR,MAAM,SAAC,sBAAsB;4CAE7B,MAAM,SAAC,gBAAgB;;AA3C5B;IADC,KAAK,EAAE;mDACW;AAInB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;0DACoE;AAIrF;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;0DACoE;AAIrF;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;qDACsB;AAKvC;IAFC,KAAK,EAAE;IACP,iBAAiB,EAAE;+CAUnB;AA5BQ,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;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAE9B,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GA7CpB,gBAAgB,CA6H5B;;IC/JY,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;;ACR7B;;;;;;"}
@@ -1,12 +1,19 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { ElementRef, Inject, Optional, Input, Directive, NgModule } from '@angular/core';
2
+ import { InjectionToken, ElementRef, Inject, Optional, Input, Directive, NgModule } from '@angular/core';
3
3
  import { TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter } from '@taiga-ui/cdk';
4
- import { AbstractTuiHint } from '@taiga-ui/core/abstract';
4
+ import { TUI_ABSTRACT_HINT_DEFAULT_OPTIONS, AbstractTuiHint } from '@taiga-ui/core/abstract';
5
5
  import { TuiHintService } from '@taiga-ui/core/services';
6
6
 
7
+ /** Default values for manual hint options */
8
+ const TUI_MANUAL_HINT_DEFAULT_OPTIONS = Object.assign({}, TUI_ABSTRACT_HINT_DEFAULT_OPTIONS);
9
+ const TUI_MANUAL_HINT_OPTIONS = new InjectionToken('Default parameters for manual hint directive', {
10
+ factory: () => TUI_MANUAL_HINT_DEFAULT_OPTIONS,
11
+ });
12
+
7
13
  let TuiManualHintDirective = class TuiManualHintDirective extends AbstractTuiHint {
8
- constructor(elementRef, hintService, activeZone) {
9
- super(elementRef, hintService, activeZone);
14
+ constructor(elementRef, hintService, activeZone, options) {
15
+ super(elementRef, hintService, activeZone, options);
16
+ this.options = options;
10
17
  this.content = '';
11
18
  }
12
19
  set tuiManualHintShow(show) {
@@ -24,7 +31,8 @@ let TuiManualHintDirective = class TuiManualHintDirective extends AbstractTuiHin
24
31
  TuiManualHintDirective.ctorParameters = () => [
25
32
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
26
33
  { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] },
27
- { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] }
34
+ { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] },
35
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_MANUAL_HINT_OPTIONS,] }] }
28
36
  ];
29
37
  __decorate([
30
38
  Input('tuiManualHint'),
@@ -41,7 +49,8 @@ TuiManualHintDirective = __decorate([
41
49
  __param(0, Inject(ElementRef)),
42
50
  __param(1, Inject(TuiHintService)),
43
51
  __param(2, Optional()),
44
- __param(2, Inject(TuiActiveZoneDirective))
52
+ __param(2, Inject(TuiActiveZoneDirective)),
53
+ __param(3, Inject(TUI_MANUAL_HINT_OPTIONS))
45
54
  ], TuiManualHintDirective);
46
55
 
47
56
  let TuiManualHintModule = class TuiManualHintModule {
@@ -57,5 +66,5 @@ TuiManualHintModule = __decorate([
57
66
  * Generated bundle index. Do not edit.
58
67
  */
59
68
 
60
- export { TuiManualHintDirective, TuiManualHintModule };
69
+ export { TUI_MANUAL_HINT_DEFAULT_OPTIONS, TUI_MANUAL_HINT_OPTIONS, TuiManualHintDirective, TuiManualHintModule };
61
70
  //# sourceMappingURL=taiga-ui-core-directives-manual-hint.js.map
@@ -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, 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';\n\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;;IC7BY,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;;ACRnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-manual-hint.js","sources":["ng://@taiga-ui/core/directives/manual-hint/manual-hint-options.ts","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 {InjectionToken} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\n\nexport type TuiManualHintOptions = TuiAbstractHintOptions;\n\n/** Default values for manual hint options */\nexport const TUI_MANUAL_HINT_DEFAULT_OPTIONS: TuiManualHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n};\n\nexport const TUI_MANUAL_HINT_OPTIONS = new InjectionToken<TuiManualHintOptions>(\n 'Default parameters for manual hint directive',\n {\n factory: () => TUI_MANUAL_HINT_DEFAULT_OPTIONS,\n },\n);\n","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\nimport {TUI_MANUAL_HINT_OPTIONS, TuiManualHintOptions} from './manual-hint-options';\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 @Inject(TUI_MANUAL_HINT_OPTIONS) protected readonly options: TuiManualHintOptions,\n ) {\n super(elementRef, hintService, activeZone, options);\n }\n\n getElementClientRect(): ClientRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n}\n","import {NgModule} from '@angular/core';\n\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":";;;;;;AAQA;MACa,+BAA+B,qBACrC,iCAAiC,EACtC;MAEW,uBAAuB,GAAG,IAAI,cAAc,CACrD,8CAA8C,EAC9C;IACI,OAAO,EAAE,MAAM,+BAA+B;CACjD;;ICNQ,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,eAAe;IAevD,YACwB,UAAmC,EAC/B,WAA2B,EAGnD,UAAyC,EACW,OAA6B;QAEjF,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAFA,YAAO,GAAP,OAAO,CAAsB;QAlBrF,YAAO,GAAwB,EAAE,CAAC;KAqBjC;IAjBD,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;IAaD,oBAAoB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;KAChE;EACJ;;YAbuC,UAAU,uBAAzC,MAAM,SAAC,UAAU;YACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;YAGV,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;4CAE7B,MAAM,SAAC,uBAAuB;;AAlBnC;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;IAE9B,WAAA,MAAM,CAAC,uBAAuB,CAAC,CAAA;GArB3B,sBAAsB,CA6BlC;;IChCY,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;;ACRnC;;;;;;"}
@@ -1,18 +1,25 @@
1
1
  import { __decorate, __param } from 'tslib';
2
- import { ElementRef, Inject, Input, Directive, NgModule } from '@angular/core';
2
+ import { InjectionToken, ElementRef, Inject, Input, Directive, NgModule } from '@angular/core';
3
3
  import { typedFromEvent, TuiDestroyService, TuiHoveredService, tuiDefaultProp, tuiRequiredSetter } from '@taiga-ui/cdk';
4
- import { AbstractTuiHint } from '@taiga-ui/core/abstract';
4
+ import { TUI_ABSTRACT_HINT_DEFAULT_OPTIONS, AbstractTuiHint } from '@taiga-ui/core/abstract';
5
5
  import { TuiHintService } from '@taiga-ui/core/services';
6
6
  import { of } from 'rxjs';
7
7
  import { filter, startWith, distinctUntilChanged, switchMap, delay, takeUntil } from 'rxjs/operators';
8
8
 
9
+ /** Default values for pointer hint options */
10
+ const TUI_POINTER_HINT_DEFAULT_OPTIONS = Object.assign(Object.assign({}, TUI_ABSTRACT_HINT_DEFAULT_OPTIONS), { tuiHintShowDelay: 0, tuiHintHideDelay: 0 });
11
+ const TUI_POINTER_HINT_OPTIONS = new InjectionToken('Default parameters for pointer hint directive', {
12
+ factory: () => TUI_POINTER_HINT_DEFAULT_OPTIONS,
13
+ });
14
+
9
15
  let TuiPointerHintDirective = class TuiPointerHintDirective extends AbstractTuiHint {
10
- constructor(elementRef, hintService, destroy$, hoveredService) {
11
- super(elementRef, hintService, null);
16
+ constructor(elementRef, hintService, destroy$, hoveredService, options) {
17
+ super(elementRef, hintService, null, options);
12
18
  this.destroy$ = destroy$;
19
+ this.options = options;
13
20
  this.currentMouseRect = this.mousePositionToClientRect();
14
- this.tuiHintShowDelay = 0;
15
- this.tuiHintHideDelay = 0;
21
+ this.tuiHintShowDelay = this.options.tuiHintShowDelay;
22
+ this.tuiHintHideDelay = this.options.tuiHintHideDelay;
16
23
  this.content = '';
17
24
  const hint$ = hoveredService.createHovered$(this.elementRef.nativeElement).pipe(filter(() => !!this.content), startWith(false), distinctUntilChanged());
18
25
  hint$
@@ -65,7 +72,8 @@ TuiPointerHintDirective.ctorParameters = () => [
65
72
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
66
73
  { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] },
67
74
  { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
68
- { type: TuiHoveredService, decorators: [{ type: Inject, args: [TuiHoveredService,] }] }
75
+ { type: TuiHoveredService, decorators: [{ type: Inject, args: [TuiHoveredService,] }] },
76
+ { type: undefined, decorators: [{ type: Inject, args: [TUI_POINTER_HINT_OPTIONS,] }] }
69
77
  ];
70
78
  __decorate([
71
79
  Input(),
@@ -87,7 +95,8 @@ TuiPointerHintDirective = __decorate([
87
95
  __param(0, Inject(ElementRef)),
88
96
  __param(1, Inject(TuiHintService)),
89
97
  __param(2, Inject(TuiDestroyService)),
90
- __param(3, Inject(TuiHoveredService))
98
+ __param(3, Inject(TuiHoveredService)),
99
+ __param(4, Inject(TUI_POINTER_HINT_OPTIONS))
91
100
  ], TuiPointerHintDirective);
92
101
 
93
102
  let TuiPointerHintModule = class TuiPointerHintModule {
@@ -103,5 +112,5 @@ TuiPointerHintModule = __decorate([
103
112
  * Generated bundle index. Do not edit.
104
113
  */
105
114
 
106
- export { TuiPointerHintDirective, TuiPointerHintModule };
115
+ export { TUI_POINTER_HINT_DEFAULT_OPTIONS, TUI_POINTER_HINT_OPTIONS, TuiPointerHintDirective, TuiPointerHintModule };
107
116
  //# sourceMappingURL=taiga-ui-core-directives-pointer-hint.js.map
@@ -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 private currentMouseRect = this.mousePositionToClientRect();\n\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 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';\n\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,uB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EzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAhCrB,uBAAuB,CA4FnC;;IC7GY,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;;ACRpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-pointer-hint.js","sources":["ng://@taiga-ui/core/directives/pointer-hint/pointer-hint-options.ts","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 {InjectionToken} from '@angular/core';\nimport {\n TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n TuiAbstractHintOptions,\n} from '@taiga-ui/core/abstract';\n\nexport interface TuiPointerHintOptions extends TuiAbstractHintOptions {\n readonly tuiHintShowDelay: number;\n readonly tuiHintHideDelay: number;\n}\n\n/** Default values for pointer hint options */\nexport const TUI_POINTER_HINT_DEFAULT_OPTIONS: TuiPointerHintOptions = {\n ...TUI_ABSTRACT_HINT_DEFAULT_OPTIONS,\n tuiHintShowDelay: 0,\n tuiHintHideDelay: 0,\n};\n\nexport const TUI_POINTER_HINT_OPTIONS = new InjectionToken<TuiPointerHintOptions>(\n 'Default parameters for pointer hint directive',\n {\n factory: () => TUI_POINTER_HINT_DEFAULT_OPTIONS,\n },\n);\n","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\nimport {TUI_POINTER_HINT_OPTIONS, TuiPointerHintOptions} from './pointer-hint-options';\n\n@Directive({\n selector: '[tuiPointerHint]:not(ng-container)',\n providers: [TuiDestroyService],\n})\nexport class TuiPointerHintDirective extends AbstractTuiHint {\n private currentMouseRect = this.mousePositionToClientRect();\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay: TuiPointerHintOptions['tuiHintShowDelay'] =\n this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay: TuiPointerHintOptions['tuiHintHideDelay'] =\n this.options.tuiHintHideDelay;\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 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 @Inject(TUI_POINTER_HINT_OPTIONS)\n protected readonly options: TuiPointerHintOptions,\n ) {\n super(elementRef, hintService, null, options);\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';\n\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":";;;;;;;;AAWA;MACa,gCAAgC,mCACtC,iCAAiC,KACpC,gBAAgB,EAAE,CAAC,EACnB,gBAAgB,EAAE,CAAC,IACrB;MAEW,wBAAwB,GAAG,IAAI,cAAc,CACtD,+CAA+C,EAC/C;IACI,OAAO,EAAE,MAAM,gCAAgC;CAClD;;ICKQ,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,eAAe;IA6BxD,YACwB,UAAmC,EAC/B,WAA2B,EAElC,QAA2B,EACjB,cAAiC,EAEzC,OAA8B;QAEjD,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAL7B,aAAQ,GAAR,QAAQ,CAAmB;QAGzB,YAAO,GAAP,OAAO,CAAuB;QAnC7C,qBAAgB,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAI5D,qBAAgB,GACZ,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAIlC,qBAAgB,GACZ,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAgBlC,YAAO,GAAwB,EAAE,CAAC;QAa9B,MAAM,KAAK,GAAG,cAAc,CAAC,cAAc,CAAC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-ui/core/directives/border';
2
1
  export * from '@taiga-ui/core/directives/color';
3
2
  export * from '@taiga-ui/core/directives/described-by';
4
3
  export * from '@taiga-ui/core/directives/dropdown';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives.js","sources":["ng://@taiga-ui/core/directives/taiga-ui-core-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives.js","sources":["ng://@taiga-ui/core/directives/taiga-ui-core-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;"}
@@ -21,7 +21,8 @@ function modeFactory(mode, { nativeElement }) {
21
21
  const mode$ = mode
22
22
  ? mode.change$.pipe(startWith(null), map(() => mode.mode))
23
23
  : EMPTY;
24
- return (nativeElement['$.data-mode.attr'] = mode$);
24
+ nativeElement['$.data-mode.attr'] = mode$;
25
+ return mode$;
25
26
  }
26
27
  const MODE_PROVIDER = {
27
28
  provide: TUI_MODE,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-providers.js","sources":["ng://@taiga-ui/core/providers/is-mobile-resolution.provider.ts","ng://@taiga-ui/core/providers/mode.provider.ts","ng://@taiga-ui/core/providers/watched-controller-provider-factory.ts","ng://@taiga-ui/core/providers/taiga-ui-core-providers.ts"],"sourcesContent":["import {ElementRef, NgZone, Provider} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\nimport {TUI_IS_MOBILE_RES, TUI_MEDIA} from '@taiga-ui/core/tokens';\nimport {fromEvent, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, startWith} from 'rxjs/operators';\n\nexport function isMobileResFactory(\n windowRef: Window,\n {mobile}: TuiMedia,\n {nativeElement}: ElementRef,\n ngZone: NgZone,\n): Observable<boolean> {\n const mobile$ = fromEvent(windowRef, 'resize').pipe(\n startWith(null),\n map(() => windowRef.innerWidth < mobile),\n distinctUntilChanged(),\n tuiZoneOptimized(ngZone),\n );\n\n nativeElement['$.class._mobile'] = mobile$;\n\n return mobile$;\n}\n\nexport const TUI_IS_MOBILE_RES_PROVIDER: Provider = {\n provide: TUI_IS_MOBILE_RES,\n deps: [WINDOW, TUI_MEDIA, ElementRef, NgZone],\n useFactory: isMobileResFactory,\n};\n","import {ElementRef, Optional, Provider} from '@angular/core';\nimport {TuiModeDirective} from '@taiga-ui/core/directives/mode';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nexport function modeFactory(\n mode: TuiModeDirective | null,\n {nativeElement}: ElementRef,\n): Observable<TuiBrightness | null> {\n const mode$ = mode\n ? mode.change$.pipe(\n startWith(null),\n map(() => mode.mode),\n )\n : EMPTY;\n\n return (nativeElement['$.data-mode.attr'] = mode$);\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n","import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nexport function watchedControllerFactory(\n controller: TuiController,\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n): TuiController {\n controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;SAQgB,kBAAkB,CAC9B,SAAiB,EACjB,EAAC,MAAM,EAAW,EAClB,EAAC,aAAa,EAAa,EAC3B,MAAc;IAEd,MAAM,OAAO,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.provider.ts","ng://@taiga-ui/core/providers/watched-controller-provider-factory.ts","ng://@taiga-ui/core/providers/taiga-ui-core-providers.ts"],"sourcesContent":["import {ElementRef, NgZone, Provider} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\nimport {TUI_IS_MOBILE_RES, TUI_MEDIA} from '@taiga-ui/core/tokens';\nimport {fromEvent, Observable} from 'rxjs';\nimport {distinctUntilChanged, map, startWith} from 'rxjs/operators';\n\nexport function isMobileResFactory(\n windowRef: Window,\n {mobile}: TuiMedia,\n {nativeElement}: ElementRef,\n ngZone: NgZone,\n): Observable<boolean> {\n const mobile$ = fromEvent(windowRef, 'resize').pipe(\n startWith(null),\n map(() => windowRef.innerWidth < mobile),\n distinctUntilChanged(),\n tuiZoneOptimized(ngZone),\n );\n\n nativeElement['$.class._mobile'] = mobile$;\n\n return mobile$;\n}\n\nexport const TUI_IS_MOBILE_RES_PROVIDER: Provider = {\n provide: TUI_IS_MOBILE_RES,\n deps: [WINDOW, TUI_MEDIA, ElementRef, NgZone],\n useFactory: isMobileResFactory,\n};\n","import {ElementRef, Optional, Provider} from '@angular/core';\nimport {TuiModeDirective} from '@taiga-ui/core/directives/mode';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {EMPTY, Observable} from 'rxjs';\nimport {map, startWith} from 'rxjs/operators';\n\nexport function modeFactory(\n mode: TuiModeDirective | null,\n {nativeElement}: ElementRef,\n): Observable<TuiBrightness | null> {\n const mode$ = mode\n ? mode.change$.pipe(\n startWith(null),\n map(() => mode.mode),\n )\n : EMPTY;\n\n nativeElement['$.data-mode.attr'] = mode$;\n\n return mode$;\n}\n\nexport const MODE_PROVIDER: Provider = {\n provide: TUI_MODE,\n deps: [[new Optional(), TuiModeDirective], ElementRef],\n useFactory: modeFactory,\n};\n","import {ChangeDetectorRef} from '@angular/core';\nimport {TuiController, watch} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nexport function watchedControllerFactory(\n controller: TuiController,\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n): TuiController {\n controller.change$.pipe(watch(changeDetectorRef), takeUntil(destroy$)).subscribe();\n\n return controller;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;SAQgB,kBAAkB,CAC9B,SAAiB,EACjB,EAAC,MAAM,EAAW,EAClB,EAAC,aAAa,EAAa,EAC3B,MAAc;IAEd,MAAM,OAAO,GAAG,SAAS,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,IAAI,CAC/C,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAM,SAAS,CAAC,UAAU,GAAG,MAAM,CAAC,EACxC,oBAAoB,EAAE,EACtB,gBAAgB,CAAC,MAAM,CAAC,CAC3B,CAAC;IAEF,aAAa,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC;IAE3C,OAAO,OAAO,CAAC;AACnB,CAAC;MAEY,0BAA0B,GAAa;IAChD,OAAO,EAAE,iBAAiB;IAC1B,IAAI,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC;IAC7C,UAAU,EAAE,kBAAkB;;;SCtBlB,WAAW,CACvB,IAA6B,EAC7B,EAAC,aAAa,EAAa;IAE3B,MAAM,KAAK,GAAG,IAAI;UACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CACvB;UACD,KAAK,CAAC;IAEZ,aAAa,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC;IAE1C,OAAO,KAAK,CAAC;AACjB,CAAC;MAEY,aAAa,GAAa;IACnC,OAAO,EAAE,QAAQ;IACjB,IAAI,EAAE,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