@taiga-ui/core 2.21.0 → 2.25.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 (724) hide show
  1. package/README.md +7 -3
  2. package/abstract/abstract-hint.d.ts +3 -1
  3. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  4. package/bundles/taiga-ui-core-abstract.umd.js +4 -2
  5. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-abstract.umd.min.js +1 -1
  7. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.js +21 -7
  9. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  11. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
  13. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-calendar.umd.min.js +1 -1
  15. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-data-list.umd.js +6 -5
  17. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  19. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-dialog.umd.js +16 -40
  21. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  23. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  25. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  26. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  27. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-error.umd.js +1 -1
  29. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-error.umd.min.js +1 -1
  31. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-expand.umd.js +3 -2
  33. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  35. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-hints-host.umd.js +20 -14
  39. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +2 -2
  41. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +2 -15
  43. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  45. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  47. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  48. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  49. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-core-components-link.umd.js +1 -1
  51. package/bundles/taiga-ui-core-components-link.umd.min.js +1 -1
  52. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-loader.umd.js +2 -2
  54. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-loader.umd.min.js +1 -1
  56. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-notification.umd.js +1 -1
  58. package/bundles/taiga-ui-core-components-notification.umd.min.js +1 -1
  59. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
  60. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  62. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  64. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +2 -2
  66. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  67. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +138 -106
  68. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +2 -2
  70. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +2 -2
  72. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  73. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +1 -1
  74. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  75. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +61 -61
  78. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +2 -2
  80. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  81. package/bundles/taiga-ui-core-components-scrollbar.umd.js +52 -42
  82. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  83. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
  84. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  86. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  88. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  90. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  91. package/bundles/taiga-ui-core-components-wrapper.umd.js +1 -1
  92. package/bundles/taiga-ui-core-components-wrapper.umd.js.map +1 -1
  93. package/bundles/taiga-ui-core-components-wrapper.umd.min.js +1 -1
  94. package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-components.umd.js +8 -8
  96. package/bundles/taiga-ui-core-components.umd.min.js +1 -1
  97. package/bundles/taiga-ui-core-constants.umd.js +12 -3
  98. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  99. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  100. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-border.umd.js +291 -0
  102. package/bundles/taiga-ui-core-directives-border.umd.js.map +1 -0
  103. package/bundles/taiga-ui-core-directives-border.umd.min.js +16 -0
  104. package/bundles/taiga-ui-core-directives-border.umd.min.js.map +1 -0
  105. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  110. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  111. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  112. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-hint.umd.js +7 -4
  114. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-hint.umd.min.js +1 -1
  116. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +7 -4
  118. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  119. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js +1 -1
  120. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  122. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  123. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  124. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +1 -1
  126. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  127. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
  128. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  130. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  132. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  133. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -3
  134. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  135. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  136. package/bundles/taiga-ui-core-directives.umd.js +16 -8
  137. package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
  138. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  139. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  140. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  141. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js +1 -1
  142. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  144. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  145. package/bundles/taiga-ui-core-modules-notifications.umd.js +25 -25
  146. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  147. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  148. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  150. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  151. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  152. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  153. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  154. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  156. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-core-pipes.umd.js +12 -12
  158. package/bundles/taiga-ui-core-pipes.umd.min.js +1 -1
  159. package/bundles/taiga-ui-core-providers.umd.js +9 -9
  160. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  161. package/bundles/taiga-ui-core-providers.umd.min.js +1 -1
  162. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  163. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  164. package/bundles/taiga-ui-core-tokens.umd.js +28 -19
  165. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  166. package/bundles/taiga-ui-core-tokens.umd.min.js +1 -1
  167. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  168. package/bundles/taiga-ui-core-utils-dom.umd.js +3 -1
  169. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  170. package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
  171. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-core-utils-mask.umd.js +28 -8
  173. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  174. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  175. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  176. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +2 -4
  177. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  178. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js +1 -1
  179. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  180. package/components/button/button-options.d.ts +10 -0
  181. package/components/button/button.component.d.ts +8 -7
  182. package/components/button/index.d.ts +1 -0
  183. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  184. package/components/calendar/taiga-ui-core-components-calendar.metadata.json +1 -1
  185. package/components/data-list/index.d.ts +1 -1
  186. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  187. package/components/dialog/dialog.directive.d.ts +2 -11
  188. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  189. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  190. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  191. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  192. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  193. package/components/hints-host/index.d.ts +2 -2
  194. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  195. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +1 -3
  196. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  197. package/components/index.d.ts +1 -1
  198. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  199. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  200. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  201. package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
  202. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  203. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.metadata.json +1 -1
  204. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  205. package/components/primitive-textfield/index.d.ts +1 -0
  206. package/components/primitive-textfield/primitive-textfield.component.d.ts +9 -16
  207. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  208. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +18 -0
  209. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
  210. package/components/root/taiga-ui-core-components-root.metadata.json +1 -1
  211. package/components/scroll-controls/index.d.ts +1 -1
  212. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  213. package/components/scrollbar/index.d.ts +1 -1
  214. package/components/scrollbar/scrollable.directive.d.ts +5 -1
  215. package/components/scrollbar/scrollbar.component.d.ts +4 -3
  216. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  217. package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
  218. package/components/taiga-ui-core-components.metadata.json +1 -1
  219. package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
  220. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  221. package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +1 -1
  222. package/constants/events.d.ts +5 -0
  223. package/constants/index.d.ts +1 -1
  224. package/constants/media.d.ts +1 -0
  225. package/constants/regexp.d.ts +1 -0
  226. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  227. package/constants/version.d.ts +1 -1
  228. package/directives/border/border.directive.d.ts +9 -0
  229. package/directives/border/border.module.d.ts +2 -0
  230. package/directives/border/index.d.ts +2 -0
  231. package/directives/border/package.json +13 -0
  232. package/directives/border/taiga-ui-core-directives-border.d.ts +4 -0
  233. package/directives/border/taiga-ui-core-directives-border.metadata.json +1 -0
  234. package/directives/color/index.d.ts +1 -1
  235. package/directives/color/taiga-ui-core-directives-color.metadata.json +1 -1
  236. package/directives/described-by/taiga-ui-core-directives-described-by.metadata.json +1 -1
  237. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  238. package/directives/hint/hint.directive.d.ts +2 -2
  239. package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
  240. package/directives/hint-controller/taiga-ui-core-directives-hint-controller.metadata.json +1 -1
  241. package/directives/index.d.ts +2 -1
  242. package/directives/manual-hint/manual-hint.directive.d.ts +2 -1
  243. package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
  244. package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.metadata.json +1 -1
  245. package/directives/mode/taiga-ui-core-directives-mode.metadata.json +1 -1
  246. package/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.metadata.json +1 -1
  247. package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.metadata.json +1 -1
  248. package/directives/table-mode/taiga-ui-core-directives-table-mode.metadata.json +1 -1
  249. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  250. package/directives/textfield-controller/index.d.ts +2 -2
  251. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  252. package/directives/textfield-controller/textfield-controller.provider.d.ts +1 -1
  253. package/esm2015/abstract/abstract-hint.js +6 -4
  254. package/esm2015/components/button/button-options.js +10 -0
  255. package/esm2015/components/button/button.component.js +12 -8
  256. package/esm2015/components/button/button.module.js +1 -1
  257. package/esm2015/components/button/index.js +2 -1
  258. package/esm2015/components/calendar/calendar.component.js +2 -2
  259. package/esm2015/components/data-list/data-list.component.js +4 -3
  260. package/esm2015/components/data-list/data-list.module.js +2 -2
  261. package/esm2015/components/data-list/index.js +2 -2
  262. package/esm2015/components/data-list/option/option.component.js +4 -4
  263. package/esm2015/components/dialog/dialog.component.js +3 -3
  264. package/esm2015/components/dialog/dialog.directive.js +14 -36
  265. package/esm2015/components/dialog/dialog.module.js +1 -1
  266. package/esm2015/components/dialog/dialog.service.js +1 -1
  267. package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
  268. package/esm2015/components/dropdown-box/dropdown-box.module.js +1 -1
  269. package/esm2015/components/error/error.component.js +1 -1
  270. package/esm2015/components/error/error.module.js +1 -1
  271. package/esm2015/components/expand/expand.component.js +4 -3
  272. package/esm2015/components/expand/expand.module.js +2 -2
  273. package/esm2015/components/group/group.component.js +1 -1
  274. package/esm2015/components/group/group.module.js +1 -1
  275. package/esm2015/components/hints-host/hint-box/hint-box.component.js +3 -3
  276. package/esm2015/components/hints-host/hint-box/hint-box.module.js +1 -1
  277. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  278. package/esm2015/components/hints-host/hints-host.module.js +9 -3
  279. package/esm2015/components/hints-host/index.js +3 -3
  280. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +4 -13
  281. package/esm2015/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  282. package/esm2015/components/index.js +2 -2
  283. package/esm2015/components/label/label.component.js +2 -2
  284. package/esm2015/components/label/label.module.js +1 -1
  285. package/esm2015/components/link/link.component.js +1 -1
  286. package/esm2015/components/loader/loader.component.js +3 -3
  287. package/esm2015/components/loader/loader.module.js +1 -1
  288. package/esm2015/components/notification/notification.component.js +1 -1
  289. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  290. package/esm2015/components/primitive-calendar/primitive-calendar.module.js +1 -1
  291. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +1 -1
  292. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
  293. package/esm2015/components/primitive-textfield/index.js +2 -1
  294. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +38 -67
  295. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +7 -2
  296. package/esm2015/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  297. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +65 -0
  298. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  299. package/esm2015/components/root/root.module.js +1 -1
  300. package/esm2015/components/scroll-controls/index.js +2 -2
  301. package/esm2015/components/scroll-controls/scroll-controls.component.js +2 -2
  302. package/esm2015/components/scroll-controls/scroll-controls.module.js +2 -2
  303. package/esm2015/components/scrollbar/index.js +2 -2
  304. package/esm2015/components/scrollbar/scrollable.directive.js +18 -4
  305. package/esm2015/components/scrollbar/scrollbar.component.js +20 -18
  306. package/esm2015/components/scrollbar/scrollbar.module.js +1 -1
  307. package/esm2015/components/svg/svg.module.js +1 -1
  308. package/esm2015/components/theme-night/theme-night.module.js +1 -1
  309. package/esm2015/components/tooltip/tooltip.component.js +1 -1
  310. package/esm2015/components/wrapper/wrapper.component.js +1 -1
  311. package/esm2015/components/wrapper/wrapper.module.js +1 -1
  312. package/esm2015/constants/events.js +6 -1
  313. package/esm2015/constants/index.js +2 -2
  314. package/esm2015/constants/media.js +2 -1
  315. package/esm2015/constants/regexp.js +2 -1
  316. package/esm2015/constants/version.js +2 -2
  317. package/esm2015/directives/border/border.directive.js +42 -0
  318. package/esm2015/directives/border/border.module.js +13 -0
  319. package/esm2015/directives/border/index.js +3 -0
  320. package/esm2015/directives/border/taiga-ui-core-directives-border.js +5 -0
  321. package/esm2015/directives/color/color.module.js +1 -1
  322. package/esm2015/directives/color/index.js +2 -2
  323. package/esm2015/directives/described-by/described-by.module.js +1 -1
  324. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  325. package/esm2015/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  326. package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  327. package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  328. package/esm2015/directives/hint/hint.directive.js +10 -7
  329. package/esm2015/directives/hint/hint.module.js +1 -1
  330. package/esm2015/directives/hint-controller/hint-controller.directive.js +1 -1
  331. package/esm2015/directives/hint-controller/hint-controller.module.js +1 -1
  332. package/esm2015/directives/hint-controller/hint-controller.provider.js +1 -1
  333. package/esm2015/directives/hint-controller/hint-controller.token.js +1 -1
  334. package/esm2015/directives/index.js +3 -2
  335. package/esm2015/directives/manual-hint/manual-hint.directive.js +10 -7
  336. package/esm2015/directives/manual-hint/manual-hint.module.js +1 -1
  337. package/esm2015/directives/mask-accessor/mask-accessor.module.js +1 -1
  338. package/esm2015/directives/mode/mode.module.js +1 -1
  339. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +2 -2
  340. package/esm2015/directives/pointer-hint/pointer-hint.module.js +1 -1
  341. package/esm2015/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  342. package/esm2015/directives/table-mode/table-mode.module.js +1 -1
  343. package/esm2015/directives/textfield-controller/index.js +3 -3
  344. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  345. package/esm2015/directives/textfield-controller/textfield-controller.module.js +1 -1
  346. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  347. package/esm2015/directives/textfield-controller/textfield-size.directive.js +4 -2
  348. package/esm2015/directives/textfield-controller/textfield-type.directive.js +4 -2
  349. package/esm2015/directives/textfield-controller/textfield.controller.js +1 -1
  350. package/esm2015/interfaces/dialog-context.js +1 -1
  351. package/esm2015/interfaces/index.js +1 -1
  352. package/esm2015/interfaces/media.js +1 -0
  353. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  354. package/esm2015/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  355. package/esm2015/mask/index.js +1 -1
  356. package/esm2015/modules/notifications/index.js +3 -3
  357. package/esm2015/modules/notifications/notification-alert/Notification-alert.js +1 -1
  358. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  359. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +2 -2
  360. package/esm2015/modules/notifications/notifications.module.js +1 -1
  361. package/esm2015/modules/notifications/notifications.service.js +1 -1
  362. package/esm2015/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  363. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  364. package/esm2015/pipes/calendar-sheet/index.js +2 -2
  365. package/esm2015/pipes/format-number/format-number.pipe.js +1 -1
  366. package/esm2015/pipes/index.js +2 -2
  367. package/esm2015/pipes/month/month.module.js +1 -1
  368. package/esm2015/pipes/pluralize/pluralize.module.js +1 -1
  369. package/esm2015/providers/index.js +2 -2
  370. package/esm2015/services/hint.service.js +1 -1
  371. package/esm2015/tokens/animation-options.js +1 -1
  372. package/esm2015/tokens/index.js +5 -4
  373. package/esm2015/tokens/media.js +9 -0
  374. package/esm2015/tokens/ordered-short-week-days.js +1 -1
  375. package/esm2015/types/marker-handler.js +1 -1
  376. package/esm2015/utils/dom/process-icon.js +4 -2
  377. package/esm2015/utils/mask/create-number-mask.js +28 -10
  378. package/esm2015/utils/miscellaneous/get-border.js +3 -5
  379. package/esm5/abstract/abstract-hint.js +6 -4
  380. package/esm5/components/button/button-options.js +10 -0
  381. package/esm5/components/button/button.component.js +12 -8
  382. package/esm5/components/button/button.module.js +1 -1
  383. package/esm5/components/button/index.js +2 -1
  384. package/esm5/components/calendar/calendar.component.js +2 -2
  385. package/esm5/components/data-list/data-list.component.js +4 -3
  386. package/esm5/components/data-list/data-list.module.js +2 -2
  387. package/esm5/components/data-list/index.js +2 -2
  388. package/esm5/components/data-list/option/option.component.js +4 -4
  389. package/esm5/components/dialog/dialog.component.js +3 -3
  390. package/esm5/components/dialog/dialog.directive.js +18 -43
  391. package/esm5/components/dialog/dialog.module.js +1 -1
  392. package/esm5/components/dialog/dialog.service.js +1 -1
  393. package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
  394. package/esm5/components/dropdown-box/dropdown-box.module.js +1 -1
  395. package/esm5/components/error/error.component.js +1 -1
  396. package/esm5/components/error/error.module.js +1 -1
  397. package/esm5/components/expand/expand.component.js +4 -3
  398. package/esm5/components/expand/expand.module.js +2 -2
  399. package/esm5/components/group/group.component.js +1 -1
  400. package/esm5/components/group/group.module.js +1 -1
  401. package/esm5/components/hints-host/hint-box/hint-box.component.js +3 -3
  402. package/esm5/components/hints-host/hint-box/hint-box.module.js +1 -1
  403. package/esm5/components/hints-host/hints-host.component.js +3 -3
  404. package/esm5/components/hints-host/hints-host.module.js +9 -3
  405. package/esm5/components/hints-host/index.js +3 -3
  406. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +4 -17
  407. package/esm5/components/hosted-dropdown/hosted-dropdown.module.js +2 -2
  408. package/esm5/components/index.js +2 -2
  409. package/esm5/components/label/label.component.js +2 -2
  410. package/esm5/components/label/label.module.js +1 -1
  411. package/esm5/components/link/link.component.js +1 -1
  412. package/esm5/components/loader/loader.component.js +3 -3
  413. package/esm5/components/loader/loader.module.js +1 -1
  414. package/esm5/components/notification/notification.component.js +1 -1
  415. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  416. package/esm5/components/primitive-calendar/primitive-calendar.module.js +1 -1
  417. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +1 -1
  418. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
  419. package/esm5/components/primitive-textfield/index.js +2 -1
  420. package/esm5/components/primitive-textfield/primitive-textfield.component.js +43 -104
  421. package/esm5/components/primitive-textfield/primitive-textfield.module.js +7 -2
  422. package/esm5/components/primitive-textfield/primitive-textfield.providers.js +1 -1
  423. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +99 -0
  424. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  425. package/esm5/components/root/root.module.js +1 -1
  426. package/esm5/components/scroll-controls/index.js +2 -2
  427. package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
  428. package/esm5/components/scroll-controls/scroll-controls.module.js +2 -2
  429. package/esm5/components/scrollbar/index.js +2 -2
  430. package/esm5/components/scrollbar/scrollable.directive.js +17 -5
  431. package/esm5/components/scrollbar/scrollbar.component.js +20 -22
  432. package/esm5/components/scrollbar/scrollbar.module.js +1 -1
  433. package/esm5/components/svg/svg.module.js +1 -1
  434. package/esm5/components/theme-night/theme-night.module.js +1 -1
  435. package/esm5/components/tooltip/tooltip.component.js +1 -1
  436. package/esm5/components/wrapper/wrapper.component.js +1 -1
  437. package/esm5/components/wrapper/wrapper.module.js +1 -1
  438. package/esm5/constants/events.js +6 -1
  439. package/esm5/constants/index.js +2 -2
  440. package/esm5/constants/media.js +2 -1
  441. package/esm5/constants/regexp.js +2 -1
  442. package/esm5/constants/version.js +2 -2
  443. package/esm5/directives/border/border.directive.js +51 -0
  444. package/esm5/directives/border/border.module.js +16 -0
  445. package/esm5/directives/border/index.js +3 -0
  446. package/esm5/directives/border/taiga-ui-core-directives-border.js +5 -0
  447. package/esm5/directives/color/color.module.js +1 -1
  448. package/esm5/directives/color/index.js +2 -2
  449. package/esm5/directives/described-by/described-by.module.js +1 -1
  450. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +1 -1
  451. package/esm5/directives/dropdown-controller/dropdown-controller.module.js +1 -1
  452. package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +1 -1
  453. package/esm5/directives/dropdown-controller/dropdown-controller.token.js +1 -1
  454. package/esm5/directives/hint/hint.directive.js +10 -7
  455. package/esm5/directives/hint/hint.module.js +1 -1
  456. package/esm5/directives/hint-controller/hint-controller.directive.js +1 -1
  457. package/esm5/directives/hint-controller/hint-controller.module.js +1 -1
  458. package/esm5/directives/hint-controller/hint-controller.provider.js +1 -1
  459. package/esm5/directives/hint-controller/hint-controller.token.js +1 -1
  460. package/esm5/directives/index.js +3 -2
  461. package/esm5/directives/manual-hint/manual-hint.directive.js +10 -7
  462. package/esm5/directives/manual-hint/manual-hint.module.js +1 -1
  463. package/esm5/directives/mask-accessor/mask-accessor.module.js +1 -1
  464. package/esm5/directives/mode/mode.module.js +1 -1
  465. package/esm5/directives/pointer-hint/pointer-hint.directive.js +2 -2
  466. package/esm5/directives/pointer-hint/pointer-hint.module.js +1 -1
  467. package/esm5/directives/scroll-into-view/scroll-into-view.module.js +1 -1
  468. package/esm5/directives/table-mode/table-mode.module.js +1 -1
  469. package/esm5/directives/textfield-controller/index.js +3 -3
  470. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  471. package/esm5/directives/textfield-controller/textfield-controller.module.js +1 -1
  472. package/esm5/directives/textfield-controller/textfield-controller.provider.js +2 -2
  473. package/esm5/directives/textfield-controller/textfield-size.directive.js +4 -2
  474. package/esm5/directives/textfield-controller/textfield-type.directive.js +4 -2
  475. package/esm5/directives/textfield-controller/textfield.controller.js +1 -1
  476. package/esm5/interfaces/dialog-context.js +1 -1
  477. package/esm5/interfaces/index.js +1 -1
  478. package/esm5/interfaces/media.js +1 -0
  479. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  480. package/esm5/internal/svg-defs-host/svg-defs-host.module.js +1 -1
  481. package/esm5/mask/index.js +1 -1
  482. package/esm5/modules/notifications/index.js +3 -3
  483. package/esm5/modules/notifications/notification-alert/Notification-alert.js +1 -1
  484. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  485. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +2 -2
  486. package/esm5/modules/notifications/notifications.module.js +1 -1
  487. package/esm5/modules/notifications/notifications.service.js +1 -1
  488. package/esm5/pipes/calendar-sheet/calendar-sheet.module.js +1 -1
  489. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +1 -1
  490. package/esm5/pipes/calendar-sheet/index.js +2 -2
  491. package/esm5/pipes/format-number/format-number.pipe.js +1 -1
  492. package/esm5/pipes/index.js +2 -2
  493. package/esm5/pipes/month/month.module.js +1 -1
  494. package/esm5/pipes/pluralize/pluralize.module.js +1 -1
  495. package/esm5/providers/index.js +2 -2
  496. package/esm5/services/hint.service.js +1 -1
  497. package/esm5/tokens/animation-options.js +1 -1
  498. package/esm5/tokens/index.js +5 -4
  499. package/esm5/tokens/media.js +9 -0
  500. package/esm5/tokens/ordered-short-week-days.js +1 -1
  501. package/esm5/types/marker-handler.js +1 -1
  502. package/esm5/utils/dom/process-icon.js +4 -2
  503. package/esm5/utils/mask/create-number-mask.js +30 -10
  504. package/esm5/utils/miscellaneous/get-border.js +3 -5
  505. package/fesm2015/taiga-ui-core-abstract.js +4 -2
  506. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  507. package/fesm2015/taiga-ui-core-components-button.js +21 -9
  508. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  509. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  510. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  511. package/fesm2015/taiga-ui-core-components-data-list.js +6 -5
  512. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  513. package/fesm2015/taiga-ui-core-components-dialog.js +16 -37
  514. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  515. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  516. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  517. package/fesm2015/taiga-ui-core-components-error.js +1 -1
  518. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  519. package/fesm2015/taiga-ui-core-components-expand.js +3 -2
  520. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  521. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  522. package/fesm2015/taiga-ui-core-components-hints-host.js +16 -10
  523. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  524. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +3 -12
  525. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  526. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  527. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  528. package/fesm2015/taiga-ui-core-components-link.js +1 -1
  529. package/fesm2015/taiga-ui-core-components-loader.js +2 -2
  530. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  531. package/fesm2015/taiga-ui-core-components-notification.js +1 -1
  532. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  533. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  534. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  535. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
  536. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +102 -69
  537. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  538. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  539. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  540. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  541. package/fesm2015/taiga-ui-core-components-scroll-controls.js +56 -56
  542. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  543. package/fesm2015/taiga-ui-core-components-scrollbar.js +49 -33
  544. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  545. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  546. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  547. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  548. package/fesm2015/taiga-ui-core-components-wrapper.js +1 -1
  549. package/fesm2015/taiga-ui-core-components-wrapper.js.map +1 -1
  550. package/fesm2015/taiga-ui-core-components.js +1 -1
  551. package/fesm2015/taiga-ui-core-constants.js +11 -4
  552. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  553. package/fesm2015/taiga-ui-core-directives-border.js +57 -0
  554. package/fesm2015/taiga-ui-core-directives-border.js.map +1 -0
  555. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  556. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  557. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  558. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  559. package/fesm2015/taiga-ui-core-directives-hint.js +9 -6
  560. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  561. package/fesm2015/taiga-ui-core-directives-manual-hint.js +9 -6
  562. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  563. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  564. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  565. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +1 -1
  566. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  567. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  568. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  569. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +9 -3
  570. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  571. package/fesm2015/taiga-ui-core-directives.js +2 -1
  572. package/fesm2015/taiga-ui-core-directives.js.map +1 -1
  573. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  574. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  575. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  576. package/fesm2015/taiga-ui-core-modules-notifications.js +24 -24
  577. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  578. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  579. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  580. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  581. package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +1 -1
  582. package/fesm2015/taiga-ui-core-pipes.js +1 -1
  583. package/fesm2015/taiga-ui-core-providers.js +7 -7
  584. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  585. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  586. package/fesm2015/taiga-ui-core-tokens.js +28 -20
  587. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  588. package/fesm2015/taiga-ui-core-utils-dom.js +3 -1
  589. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  590. package/fesm2015/taiga-ui-core-utils-mask.js +27 -9
  591. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  592. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +2 -4
  593. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  594. package/fesm5/taiga-ui-core-abstract.js +4 -2
  595. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  596. package/fesm5/taiga-ui-core-components-button.js +21 -9
  597. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  598. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  599. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  600. package/fesm5/taiga-ui-core-components-data-list.js +6 -5
  601. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  602. package/fesm5/taiga-ui-core-components-dialog.js +20 -44
  603. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  604. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  605. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  606. package/fesm5/taiga-ui-core-components-error.js +1 -1
  607. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  608. package/fesm5/taiga-ui-core-components-expand.js +3 -2
  609. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  610. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  611. package/fesm5/taiga-ui-core-components-hints-host.js +16 -10
  612. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  613. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +3 -16
  614. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  615. package/fesm5/taiga-ui-core-components-label.js +1 -1
  616. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  617. package/fesm5/taiga-ui-core-components-link.js +1 -1
  618. package/fesm5/taiga-ui-core-components-loader.js +2 -2
  619. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  620. package/fesm5/taiga-ui-core-components-notification.js +1 -1
  621. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  622. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  623. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  624. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
  625. package/fesm5/taiga-ui-core-components-primitive-textfield.js +141 -106
  626. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  627. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  628. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  629. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  630. package/fesm5/taiga-ui-core-components-scroll-controls.js +63 -63
  631. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  632. package/fesm5/taiga-ui-core-components-scrollbar.js +51 -41
  633. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  634. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  635. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  636. package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
  637. package/fesm5/taiga-ui-core-components-wrapper.js +1 -1
  638. package/fesm5/taiga-ui-core-components-wrapper.js.map +1 -1
  639. package/fesm5/taiga-ui-core-components.js +1 -1
  640. package/fesm5/taiga-ui-core-constants.js +11 -4
  641. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  642. package/fesm5/taiga-ui-core-directives-border.js +69 -0
  643. package/fesm5/taiga-ui-core-directives-border.js.map +1 -0
  644. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  645. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  646. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  647. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  648. package/fesm5/taiga-ui-core-directives-hint.js +9 -6
  649. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  650. package/fesm5/taiga-ui-core-directives-manual-hint.js +9 -6
  651. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  652. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  653. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  654. package/fesm5/taiga-ui-core-directives-pointer-hint.js +1 -1
  655. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  656. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  657. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  658. package/fesm5/taiga-ui-core-directives-textfield-controller.js +9 -3
  659. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  660. package/fesm5/taiga-ui-core-directives.js +2 -1
  661. package/fesm5/taiga-ui-core-directives.js.map +1 -1
  662. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  663. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  664. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  665. package/fesm5/taiga-ui-core-modules-notifications.js +25 -25
  666. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  667. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  668. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  669. package/fesm5/taiga-ui-core-pipes-month.js.map +1 -1
  670. package/fesm5/taiga-ui-core-pipes-pluralize.js.map +1 -1
  671. package/fesm5/taiga-ui-core-pipes.js +1 -1
  672. package/fesm5/taiga-ui-core-providers.js +7 -7
  673. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  674. package/fesm5/taiga-ui-core-services.js.map +1 -1
  675. package/fesm5/taiga-ui-core-tokens.js +28 -20
  676. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  677. package/fesm5/taiga-ui-core-utils-dom.js +3 -1
  678. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  679. package/fesm5/taiga-ui-core-utils-mask.js +30 -10
  680. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  681. package/fesm5/taiga-ui-core-utils-miscellaneous.js +2 -4
  682. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  683. package/interfaces/index.d.ts +2 -1
  684. package/interfaces/media.d.ts +6 -0
  685. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  686. package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.metadata.json +1 -1
  687. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.metadata.json +1 -1
  688. package/mask/index.d.ts +1 -1
  689. package/mask/taiga-ui-core-mask.metadata.json +1 -1
  690. package/modules/notifications/index.d.ts +2 -2
  691. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  692. package/package.json +5 -5
  693. package/pipes/calendar-sheet/index.d.ts +1 -1
  694. package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.metadata.json +1 -1
  695. package/pipes/index.d.ts +1 -1
  696. package/pipes/month/taiga-ui-core-pipes-month.metadata.json +1 -1
  697. package/pipes/pluralize/taiga-ui-core-pipes-pluralize.metadata.json +1 -1
  698. package/pipes/taiga-ui-core-pipes.metadata.json +1 -1
  699. package/providers/index.d.ts +1 -1
  700. package/providers/taiga-ui-core-providers.metadata.json +1 -1
  701. package/services/taiga-ui-core-services.metadata.json +1 -1
  702. package/styles/basic/main.less +2 -4
  703. package/styles/markup/tui-autofill.less +2 -0
  704. package/styles/markup/tui-container-old.less +69 -0
  705. package/styles/markup/tui-form-old.less +141 -0
  706. package/styles/markup/tui-form.less +12 -12
  707. package/styles/markup/tui-group-old.less +322 -0
  708. package/styles/markup/tui-group.less +2 -2
  709. package/styles/markup/tui-row-old.less +157 -0
  710. package/styles/markup/tui-table.less +2 -2
  711. package/styles/mixins/mixins.less +8 -3
  712. package/styles/mixins/picker.less +1 -1
  713. package/styles/mixins/textfield.less +37 -78
  714. package/styles/taiga-ui-global-old.less +18 -0
  715. package/styles/taiga-ui-local-old.less +7 -0
  716. package/styles/theme/variables.less +4 -0
  717. package/styles/theme/wrapper/table.less +4 -0
  718. package/styles/variables/media-old.less +48 -0
  719. package/styles/variables/media.less +4 -4
  720. package/tokens/index.d.ts +4 -3
  721. package/tokens/media.d.ts +3 -0
  722. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  723. package/utils/mask/create-number-mask.d.ts +1 -0
  724. package/utils/miscellaneous/get-border.d.ts +1 -1
@@ -94,7 +94,7 @@ var TuiWrapperComponent = /** @class */ (function () {
94
94
  host: {
95
95
  '($.data-mode.attr)': 'mode$',
96
96
  },
97
- styles: [":host{transition-property:color,background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:block;height:100%;width:100%;text-align:left;border-radius:inherit}:host:after{transition-property:box-shadow;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;border:1px solid currentColor;pointer-events:none;color:transparent}:host._focused:after{border-width:2px;color:var(--tui-focus)}:host[data-state=disabled]{pointer-events:none}"]
97
+ styles: [":host{transition-property:color,background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:relative;display:block;height:100%;width:100%;border-radius:inherit}:host:after{transition-property:box-shadow;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;border:1px solid currentColor;pointer-events:none;color:transparent}:host._focused:after{border-width:2px;color:var(--tui-focus)}:host[data-state=disabled]{pointer-events:none}"]
98
98
  }),
99
99
  __param(0, Inject(TUI_IS_MOBILE)),
100
100
  __param(1, Inject(TUI_MODE))
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-wrapper.js","sources":["ng://@taiga-ui/core/components/wrapper/wrapper.component.ts","ng://@taiga-ui/core/components/wrapper/wrapper.module.ts","ng://@taiga-ui/core/components/wrapper/taiga-ui-core-components-wrapper.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk';\nimport {TuiInteractiveState} from '@taiga-ui/core/enums';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-wrapper',\n template: '<ng-content></ng-content>',\n styleUrls: ['./wrapper.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiWrapperComponent {\n @Input()\n disabled = false;\n\n @Input()\n readOnly = false;\n\n @Input()\n hovered = false;\n\n @Input()\n pressed = false;\n\n @Input()\n focused = false;\n\n @Input()\n invalid = false;\n\n @Input()\n @HostBinding('attr.data-appearance')\n appearance = '';\n\n constructor(\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n ) {}\n\n @HostBinding('class._invalid')\n get computedInvalid(): boolean {\n return !this.disabled && !this.readOnly && this.invalid;\n }\n\n @HostBinding('class._focused')\n get computedFocused(): boolean {\n return this.focused && !this.disabled;\n }\n\n @HostBinding('attr.data-state')\n get interactiveState(): TuiInteractiveState | null {\n if (this.disabled) {\n return TuiInteractiveState.Disabled;\n }\n\n if (this.readOnly) {\n return TuiInteractiveState.Readonly;\n }\n\n if (this.pressed && !this.isMobile) {\n return TuiInteractiveState.Pressed;\n }\n\n if (this.hovered && !this.isMobile) {\n return TuiInteractiveState.Hovered;\n }\n\n return null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiWrapperComponent} from './wrapper.component';\n\n@NgModule({\n declarations: [TuiWrapperComponent],\n exports: [TuiWrapperComponent],\n})\nexport class TuiWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA+CI,6BAC4C,QAAiB,EAC9B,KAAuC;QAD1B,aAAQ,GAAR,QAAQ,CAAS;QAC9B,UAAK,GAAL,KAAK,CAAkC;QAvBtE,aAAQ,GAAG,KAAK,CAAC;QAGjB,aAAQ,GAAG,KAAK,CAAC;QAGjB,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAAG,KAAK,CAAC;QAIhB,eAAU,GAAG,EAAE,CAAC;KAKZ;IAGJ,sBAAI,gDAAe;aAAnB;YACI,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC;SAC3D;;;OAAA;IAGD,sBAAI,gDAAe;aAAnB;YACI,OAAO,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;SACzC;;;OAAA;IAGD,sBAAI,iDAAgB;aAApB;YACI,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,iCAAoC;aACvC;YAED,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,iCAAoC;aACvC;YAED,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChC,+BAAmC;aACtC;YAED,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChC,+BAAmC;aACtC;YAED,OAAO,IAAI,CAAC;SACf;;;OAAA;;8CAjCI,MAAM,SAAC,aAAa;gBACa,UAAU,uBAA3C,MAAM,SAAC,QAAQ;;IAvBpB;QADC,KAAK,EAAE;yDACS;IAGjB;QADC,KAAK,EAAE;yDACS;IAGjB;QADC,KAAK,EAAE;wDACQ;IAGhB;QADC,KAAK,EAAE;wDACQ;IAGhB;QADC,KAAK,EAAE;wDACQ;IAGhB;QADC,KAAK,EAAE;wDACQ;IAIhB;QAFC,KAAK,EAAE;QACP,WAAW,CAAC,sBAAsB,CAAC;2DACpB;IAQhB;QADC,WAAW,CAAC,gBAAgB,CAAC;8DAG7B;IAGD;QADC,WAAW,CAAC,gBAAgB,CAAC;8DAG7B;IAGD;QADC,WAAW,CAAC,iBAAiB,CAAC;+DAmB9B;IAzDQ,mBAAmB;QAV/B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,QAAQ,EAAE,2BAA2B;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE,CAAC,aAAa,CAAC;YAC1B,IAAI,EAAE;gBACF,oBAAoB,EAAE,OAAO;aAChC;;SACJ,CAAC;QAyBO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;OAzBZ,mBAAmB,CA0D/B;IAAD,0BAAC;CA1DD;;;ICjBA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-wrapper.js","sources":["ng://@taiga-ui/core/components/wrapper/wrapper.component.ts","ng://@taiga-ui/core/components/wrapper/wrapper.module.ts","ng://@taiga-ui/core/components/wrapper/taiga-ui-core-components-wrapper.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Inject,\n Input,\n} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk';\nimport {TuiInteractiveState} from '@taiga-ui/core/enums';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\n@Component({\n selector: 'tui-wrapper',\n template: '<ng-content></ng-content>',\n styleUrls: ['./wrapper.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiWrapperComponent {\n @Input()\n disabled = false;\n\n @Input()\n readOnly = false;\n\n @Input()\n hovered = false;\n\n @Input()\n pressed = false;\n\n @Input()\n focused = false;\n\n @Input()\n invalid = false;\n\n @Input()\n @HostBinding('attr.data-appearance')\n appearance = '';\n\n constructor(\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n ) {}\n\n @HostBinding('class._invalid')\n get computedInvalid(): boolean {\n return !this.disabled && !this.readOnly && this.invalid;\n }\n\n @HostBinding('class._focused')\n get computedFocused(): boolean {\n return this.focused && !this.disabled;\n }\n\n @HostBinding('attr.data-state')\n get interactiveState(): TuiInteractiveState | null {\n if (this.disabled) {\n return TuiInteractiveState.Disabled;\n }\n\n if (this.readOnly) {\n return TuiInteractiveState.Readonly;\n }\n\n if (this.pressed && !this.isMobile) {\n return TuiInteractiveState.Pressed;\n }\n\n if (this.hovered && !this.isMobile) {\n return TuiInteractiveState.Hovered;\n }\n\n return null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiWrapperComponent} from './wrapper.component';\n\n@NgModule({\n declarations: [TuiWrapperComponent],\n exports: [TuiWrapperComponent],\n})\nexport class TuiWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA+CI,6BAC4C,QAAiB,EAC9B,KAAuC;QAD1B,aAAQ,GAAR,QAAQ,CAAS;QAC9B,UAAK,GAAL,KAAK,CAAkC;QAvBtE,aAAQ,GAAG,KAAK,CAAC;QAGjB,aAAQ,GAAG,KAAK,CAAC;QAGjB,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAAG,KAAK,CAAC;QAGhB,YAAO,GAAG,KAAK,CAAC;QAIhB,eAAU,GAAG,EAAE,CAAC;KAKZ;IAGJ,sBAAI,gDAAe;aAAnB;YACI,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC;SAC3D;;;OAAA;IAGD,sBAAI,gDAAe;aAAnB;YACI,OAAO,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;SACzC;;;OAAA;IAGD,sBAAI,iDAAgB;aAApB;YACI,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,iCAAoC;aACvC;YAED,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACf,iCAAoC;aACvC;YAED,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChC,+BAAmC;aACtC;YAED,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChC,+BAAmC;aACtC;YAED,OAAO,IAAI,CAAC;SACf;;;OAAA;;8CAjCI,MAAM,SAAC,aAAa;gBACa,UAAU,uBAA3C,MAAM,SAAC,QAAQ;;IAvBpB;QADC,KAAK,EAAE;yDACS;IAGjB;QADC,KAAK,EAAE;yDACS;IAGjB;QADC,KAAK,EAAE;wDACQ;IAGhB;QADC,KAAK,EAAE;wDACQ;IAGhB;QADC,KAAK,EAAE;wDACQ;IAGhB;QADC,KAAK,EAAE;wDACQ;IAIhB;QAFC,KAAK,EAAE;QACP,WAAW,CAAC,sBAAsB,CAAC;2DACpB;IAQhB;QADC,WAAW,CAAC,gBAAgB,CAAC;8DAG7B;IAGD;QADC,WAAW,CAAC,gBAAgB,CAAC;8DAG7B;IAGD;QADC,WAAW,CAAC,iBAAiB,CAAC;+DAmB9B;IAzDQ,mBAAmB;QAV/B,SAAS,CAAC;YACP,QAAQ,EAAE,aAAa;YACvB,QAAQ,EAAE,2BAA2B;YAErC,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE,CAAC,aAAa,CAAC;YAC1B,IAAI,EAAE;gBACF,oBAAoB,EAAE,OAAO;aAChC;;SACJ,CAAC;QAyBO,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;OAzBZ,mBAAmB,CA0D/B;IAAD,0BAAC;CA1DD;;;IChBA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
@@ -18,8 +18,8 @@ export * from '@taiga-ui/core/components/primitive-spin-button';
18
18
  export * from '@taiga-ui/core/components/primitive-textfield';
19
19
  export * from '@taiga-ui/core/components/primitive-year-picker';
20
20
  export * from '@taiga-ui/core/components/root';
21
- export * from '@taiga-ui/core/components/scrollbar';
22
21
  export * from '@taiga-ui/core/components/scroll-controls';
22
+ export * from '@taiga-ui/core/components/scrollbar';
23
23
  export * from '@taiga-ui/core/components/svg';
24
24
  export * from '@taiga-ui/core/components/theme-night';
25
25
  export * from '@taiga-ui/core/components/tooltip';
@@ -5,14 +5,14 @@ var DEFAULT_MIN_HEIGHT = 80;
5
5
  var DEFAULT_MAX_HEIGHT = 400;
6
6
  var DEFAULT_MAX_WIDTH = 600;
7
7
 
8
+ var TUI_DECIMAL_SYMBOLS = [',', '.'];
9
+
8
10
  var DEFAULT_ICONS_PATH = function (name) {
9
11
  return name.includes('.svg#') ? name : "#" + name;
10
12
  };
11
13
 
12
14
  var TUI_DEFAULT_MARKER_HANDLER = function () { return EMPTY_ARRAY; };
13
15
 
14
- var TUI_DECIMAL_SYMBOLS = [',', '.'];
15
-
16
16
  var tuiEditingKeys = [
17
17
  'Spacebar',
18
18
  'Backspace',
@@ -34,6 +34,11 @@ var TUI_EXPAND_LOADED = 'tui-expand-loaded';
34
34
  * An event for scrolling an element into view within {@link TuiScrollbarComponent}.
35
35
  */
36
36
  var TUI_SCROLL_INTO_VIEW = 'tui-scroll-into-view';
37
+ /**
38
+ * An event to notify {@link TuiScrollbarComponent} that
39
+ * it should control a nested element.
40
+ */
41
+ var TUI_SCROLLABLE = 'tui-scrollable';
37
42
  /**
38
43
  * An event indicating and error during icon loading in {@link TuiSvgComponent}.
39
44
  */
@@ -43,6 +48,7 @@ var MASK_CARET_TRAP = '[]';
43
48
 
44
49
  /**
45
50
  * Media constants are exact the same as css media breakpoints
51
+ * @deprecated use TUI_MEDIA token
46
52
  */
47
53
  var MEDIA = {
48
54
  mobile: 320,
@@ -54,15 +60,16 @@ var MEDIA = {
54
60
  var TUI_DIGIT_REGEXP = /\d/;
55
61
  var TUI_NON_DIGIT_REGEXP = /\D/;
56
62
  var TUI_NON_DIGITS_REGEXP = /\D+/g;
63
+ var TUI_LEADING_ZEROES_REGEXP = /^0+/;
57
64
  var TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\/#!$%\\^&\\*;:{}=\\-_\`~()]$/;
58
65
  var TUI_LATIN_REGEXP = /[A-z]/;
59
66
  var TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;
60
67
 
61
- var VERSION = '2.21.0';
68
+ var VERSION = '2.25.0';
62
69
 
63
70
  /**
64
71
  * Generated bundle index. Do not edit.
65
72
  */
66
73
 
67
- export { DEFAULT_ICONS_PATH, DEFAULT_MARGIN, DEFAULT_MAX_HEIGHT, DEFAULT_MAX_WIDTH, DEFAULT_MIN_HEIGHT, MASK_CARET_TRAP, MEDIA, TUI_DECIMAL_SYMBOLS, TUI_DEFAULT_MARKER_HANDLER, TUI_DIGIT_REGEXP, TUI_EXPAND_LOADED, TUI_ICON_ERROR, TUI_LAST_PUNCTUATION_MARK_REGEXP, TUI_LATIN_AND_NUMBERS_REGEXP, TUI_LATIN_REGEXP, TUI_NON_DIGITS_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_SCROLL_INTO_VIEW, VERSION, tuiEditingKeys };
74
+ export { DEFAULT_ICONS_PATH, DEFAULT_MARGIN, DEFAULT_MAX_HEIGHT, DEFAULT_MAX_WIDTH, DEFAULT_MIN_HEIGHT, MASK_CARET_TRAP, MEDIA, TUI_DECIMAL_SYMBOLS, TUI_DEFAULT_MARKER_HANDLER, TUI_DIGIT_REGEXP, TUI_EXPAND_LOADED, TUI_ICON_ERROR, TUI_LAST_PUNCTUATION_MARK_REGEXP, TUI_LATIN_AND_NUMBERS_REGEXP, TUI_LATIN_REGEXP, TUI_LEADING_ZEROES_REGEXP, TUI_NON_DIGITS_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_SCROLLABLE, TUI_SCROLL_INTO_VIEW, VERSION, tuiEditingKeys };
68
75
  //# sourceMappingURL=taiga-ui-core-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-constants.js","sources":["ng://@taiga-ui/core/constants/absolute-box-sizes.ts","ng://@taiga-ui/core/constants/default-icons-path.ts","ng://@taiga-ui/core/constants/default-marker-handler.ts","ng://@taiga-ui/core/constants/decimal-symbols.ts","ng://@taiga-ui/core/constants/editing-keys.ts","ng://@taiga-ui/core/constants/events.ts","ng://@taiga-ui/core/constants/mask-caret-trap.ts","ng://@taiga-ui/core/constants/media.ts","ng://@taiga-ui/core/constants/regexp.ts","ng://@taiga-ui/core/constants/version.ts","ng://@taiga-ui/core/constants/taiga-ui-core-constants.ts"],"sourcesContent":["export const DEFAULT_MARGIN = 4;\nexport const DEFAULT_MIN_HEIGHT = 80;\nexport const DEFAULT_MAX_HEIGHT = 400;\nexport const DEFAULT_MAX_WIDTH = 600;\n","import {TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = name =>\n name.includes('.svg#') ? name : `#${name}`;\n","import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {TuiMarkerHandler} from '@taiga-ui/core/types';\n\nexport const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY;\n","export const TUI_DECIMAL_SYMBOLS: ReadonlyArray<string> = [',', '.'];\n","export const tuiEditingKeys: readonly string[] = [\n 'Spacebar',\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Left',\n 'Right',\n 'End',\n 'Home',\n];\n","/**\n * An event indicating that async data for expand has finished loading.\n * Dispatch to finish loading states for {@link TuiExpandComponent}.\n */\nexport const TUI_EXPAND_LOADED = 'tui-expand-loaded';\n\n/**\n * An event for scrolling an element into view within {@link TuiScrollbarComponent}.\n */\nexport const TUI_SCROLL_INTO_VIEW = 'tui-scroll-into-view';\n\n/**\n * An event indicating and error during icon loading in {@link TuiSvgComponent}.\n */\nexport const TUI_ICON_ERROR = 'tui-icon-error';\n","export const MASK_CARET_TRAP = '[]';\n","/**\n * Media constants are exact the same as css media breakpoints\n */\nexport const MEDIA = {\n mobile: 320,\n tablet: 600,\n desktopSmall: 1024,\n desktopLarge: 1280,\n};\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\nexport const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\\\/#!$%\\\\^&\\\\*;:{}=\\\\-_\\`~()]$/;\nexport const TUI_LATIN_REGEXP = /[A-z]/;\nexport const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;\n","export const VERSION = '2.21.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;IAAa,cAAc,GAAG,EAAE;IACnB,kBAAkB,GAAG,GAAG;IACxB,kBAAkB,GAAG,IAAI;IACzB,iBAAiB,GAAG;;ICDpB,kBAAkB,GAA6B,UAAA,IAAI;IAC5D,OAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,MAAI,IAAM;AAA1C;;ICAS,0BAA0B,GAAqB,cAAM,OAAA,WAAW;;ICHhE,mBAAmB,GAA0B,CAAC,GAAG,EAAE,GAAG;;ICAtD,cAAc,GAAsB;IAC7C,UAAU;IACV,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;;;ACTV;;;;IAIa,iBAAiB,GAAG,oBAAoB;AAErD;;;IAGa,oBAAoB,GAAG,uBAAuB;AAE3D;;;IAGa,cAAc,GAAG;;ICdjB,eAAe,GAAG;;ACA/B;;;IAGa,KAAK,GAAG;IACjB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;;;ICPT,gBAAgB,GAAG,KAAK;IACxB,oBAAoB,GAAG,KAAK;IAC5B,qBAAqB,GAAG,OAAO;IAC/B,gCAAgC,GAAG,oCAAoC;IACvE,gBAAgB,GAAG,QAAQ;IAC3B,4BAA4B,GAAG;;ICL/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.25.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;IAAa,cAAc,GAAG,EAAE;IACnB,kBAAkB,GAAG,GAAG;IACxB,kBAAkB,GAAG,IAAI;IACzB,iBAAiB,GAAG;;ICHpB,mBAAmB,GAA0B,CAAC,GAAG,EAAE,GAAG;;ICEtD,kBAAkB,GAA6B,UAAA,IAAI;IAC5D,OAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,MAAI,IAAM;AAA1C;;ICAS,0BAA0B,GAAqB,cAAM,OAAA,WAAW;;ICHhE,cAAc,GAAsB;IAC7C,UAAU;IACV,WAAW;IACX,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;;;ACTV;;;;IAIa,iBAAiB,GAAG,oBAAoB;AAErD;;;IAGa,oBAAoB,GAAG,uBAAuB;AAE3D;;;;IAIa,cAAc,GAAG,iBAAiB;AAE/C;;;IAGa,cAAc,GAAG;;ICpBjB,eAAe,GAAG;;ACA/B;;;;IAIa,KAAK,GAAG;IACjB,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;IACX,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;;;ICRT,gBAAgB,GAAG,KAAK;IACxB,oBAAoB,GAAG,KAAK;IAC5B,qBAAqB,GAAG,OAAO;IAC/B,yBAAyB,GAAG,MAAM;IAClC,gCAAgC,GAAG,oCAAoC;IACvE,gBAAgB,GAAG,QAAQ;IAC3B,4BAA4B,GAAG;;ICN/B,OAAO,GAAG;;ACAvB;;;;;;"}
@@ -0,0 +1,69 @@
1
+ import { __decorate, __param } from 'tslib';
2
+ import { Inject, Input, HostBinding, Directive, NgModule } from '@angular/core';
3
+ import { CSS } from '@ng-web-apis/common';
4
+
5
+ var TuiBorderDirective = /** @class */ (function () {
6
+ function TuiBorderDirective(css) {
7
+ this.css = css;
8
+ this.start = 0;
9
+ this.end = 0;
10
+ this.modern = this.css.supports('border-inline-start-width', '0');
11
+ }
12
+ Object.defineProperty(TuiBorderDirective.prototype, "oldStart", {
13
+ get: function () {
14
+ return this.modern ? null : this.start;
15
+ },
16
+ enumerable: true,
17
+ configurable: true
18
+ });
19
+ Object.defineProperty(TuiBorderDirective.prototype, "oldEnd", {
20
+ get: function () {
21
+ return this.modern ? null : this.end;
22
+ },
23
+ enumerable: true,
24
+ configurable: true
25
+ });
26
+ TuiBorderDirective.ctorParameters = function () { return [
27
+ { type: undefined, decorators: [{ type: Inject, args: [CSS,] }] }
28
+ ]; };
29
+ __decorate([
30
+ Input('tuiBorderStart'),
31
+ HostBinding('style.borderInlineStartWidth.rem')
32
+ ], TuiBorderDirective.prototype, "start", void 0);
33
+ __decorate([
34
+ Input('tuiBorderEnd'),
35
+ HostBinding('style.borderInlineEndWidth.rem')
36
+ ], TuiBorderDirective.prototype, "end", void 0);
37
+ __decorate([
38
+ HostBinding('style.borderLeftWidth.rem')
39
+ ], TuiBorderDirective.prototype, "oldStart", null);
40
+ __decorate([
41
+ HostBinding('style.borderRightWidth.rem')
42
+ ], TuiBorderDirective.prototype, "oldEnd", null);
43
+ TuiBorderDirective = __decorate([
44
+ Directive({
45
+ selector: '[tuiBorderStart], [tuiBorderEnd]',
46
+ }),
47
+ __param(0, Inject(CSS))
48
+ ], TuiBorderDirective);
49
+ return TuiBorderDirective;
50
+ }());
51
+
52
+ var TuiBorderModule = /** @class */ (function () {
53
+ function TuiBorderModule() {
54
+ }
55
+ TuiBorderModule = __decorate([
56
+ NgModule({
57
+ declarations: [TuiBorderDirective],
58
+ exports: [TuiBorderDirective],
59
+ })
60
+ ], TuiBorderModule);
61
+ return TuiBorderModule;
62
+ }());
63
+
64
+ /**
65
+ * Generated bundle index. Do not edit.
66
+ */
67
+
68
+ export { TuiBorderDirective, TuiBorderModule };
69
+ //# sourceMappingURL=taiga-ui-core-directives-border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-core-directives-border.js","sources":["ng://@taiga-ui/core/directives/border/border.directive.ts","ng://@taiga-ui/core/directives/border/border.module.ts","ng://@taiga-ui/core/directives/border/taiga-ui-core-directives-border.ts"],"sourcesContent":["import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {CSS} from '@ng-web-apis/common';\n\n@Directive({\n selector: '[tuiBorderStart], [tuiBorderEnd]',\n})\nexport class TuiBorderDirective {\n @Input('tuiBorderStart')\n @HostBinding('style.borderInlineStartWidth.rem')\n start = 0;\n\n @Input('tuiBorderEnd')\n @HostBinding('style.borderInlineEndWidth.rem')\n end = 0;\n\n readonly modern = this.css.supports('border-inline-start-width', '0');\n\n constructor(@Inject(CSS) private readonly css: any) {}\n\n @HostBinding('style.borderLeftWidth.rem')\n get oldStart(): number | null {\n return this.modern ? null : this.start;\n }\n\n @HostBinding('style.borderRightWidth.rem')\n get oldEnd(): number | null {\n return this.modern ? null : this.end;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiBorderDirective} from './border.directive';\n\n@NgModule({\n declarations: [TuiBorderDirective],\n exports: [TuiBorderDirective],\n})\nexport class TuiBorderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAiBI,4BAA0C,GAAQ;QAAR,QAAG,GAAH,GAAG,CAAK;QARlD,UAAK,GAAG,CAAC,CAAC;QAIV,QAAG,GAAG,CAAC,CAAC;QAEC,WAAM,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC;KAEhB;IAGtD,sBAAI,wCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;SAC1C;;;OAAA;IAGD,sBAAI,sCAAM;aAAV;YACI,OAAO,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC;SACxC;;;OAAA;;gDAVY,MAAM,SAAC,GAAG;;IARvB;QAFC,KAAK,CAAC,gBAAgB,CAAC;QACvB,WAAW,CAAC,kCAAkC,CAAC;qDACtC;IAIV;QAFC,KAAK,CAAC,cAAc,CAAC;QACrB,WAAW,CAAC,gCAAgC,CAAC;mDACtC;IAOR;QADC,WAAW,CAAC,2BAA2B,CAAC;sDAGxC;IAGD;QADC,WAAW,CAAC,4BAA4B,CAAC;oDAGzC;IArBQ,kBAAkB;QAH9B,SAAS,CAAC;YACP,QAAQ,EAAE,kCAAkC;SAC/C,CAAC;QAYe,WAAA,MAAM,CAAC,GAAG,CAAC,CAAA;OAXf,kBAAkB,CAsB9B;IAAD,yBAAC;CAtBD;;;ICEA;KAA+B;IAAlB,eAAe;QAJ3B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;YAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;SAChC,CAAC;OACW,eAAe,CAAG;IAAD,sBAAC;CAA/B;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-color.js","sources":["ng://@taiga-ui/core/directives/color/color.const.ts","ng://@taiga-ui/core/directives/color/color.directive.ts","ng://@taiga-ui/core/directives/color/color.module.ts","ng://@taiga-ui/core/directives/color/taiga-ui-core-directives-color.ts"],"sourcesContent":["/**\n * @deprecated use CSS custom properties\n */\nexport const COLOR = `[data-tui-background='primary'] {\n background-color: var(--tui-primary);\n}\n\n[data-tui-background='secondary'] {\n background-color: var(--tui-info-fill);\n}\n\n[data-tui-background='success'] {\n background-color: var(--tui-success-fill);\n}\n\n[data-tui-background='error'] {\n background-color: var(--tui-error-fill);\n}\n\n[data-tui-background='support-mustard'],\n[data-tui-background='support-01'] {\n background-color: var(--tui-support-01);\n}\n\n[data-tui-background='support-texas'],\n[data-tui-background='support-02'] {\n background-color: var(--tui-support-02);\n}\n\n[data-tui-background='support-tan'],\n[data-tui-background='support-03'] {\n background-color: var(--tui-support-03);\n}\n\n[data-tui-background='support-salmon'],\n[data-tui-background='support-04'] {\n background-color: var(--tui-support-04);\n}\n\n[data-tui-background='support-sienna'],\n[data-tui-background='support-05'] {\n background-color: var(--tui-support-05);\n}\n\n[data-tui-background='support-bittersweet'],\n[data-tui-background='support-06'] {\n background-color: var(--tui-support-06);\n}\n\n[data-tui-background='support-pinkie'],\n[data-tui-background='support-07'] {\n background-color: var(--tui-support-07);\n}\n\n[data-tui-background='support-charm'],\n[data-tui-background='support-08'] {\n background-color: var(--tui-support-08);\n}\n\n[data-tui-background='support-amethyst'],\n[data-tui-background='support-09'] {\n background-color: var(--tui-support-09);\n}\n\n[data-tui-background='support-helio'],\n[data-tui-background='support-10'] {\n background-color: var(--tui-support-10);\n}\n\n[data-tui-background='support-lilac'],\n[data-tui-background='support-11'] {\n background-color: var(--tui-support-11);\n}\n\n[data-tui-background='support-malibu'],\n[data-tui-background='support-12'] {\n background-color: var(--tui-support-12);\n}\n\n[data-tui-background='support-havelock'],\n[data-tui-background='support-13'] {\n background-color: var(--tui-support-13);\n}\n\n[data-tui-background='support-picton'],\n[data-tui-background='support-14'] {\n background-color: var(--tui-support-14);\n}\n\n[data-tui-background='support-mint'],\n[data-tui-background='support-15'] {\n background-color: var(--tui-support-15);\n}\n\n[data-tui-background='support-fountain'],\n[data-tui-background='support-16'] {\n background-color: var(--tui-support-16);\n}\n\n[data-tui-background='support-puertorico'],\n[data-tui-background='support-17'] {\n background-color: var(--tui-support-17);\n}\n\n[data-tui-background='support-bay'],\n[data-tui-background='support-18'] {\n background-color: var(--tui-support-18);\n}\n\n[data-tui-background='support-forest'],\n[data-tui-background='support-19'] {\n background-color: var(--tui-support-19);\n}\n\n[data-tui-background='support-york'],\n[data-tui-background='support-20'] {\n background-color: var(--tui-support-20);\n}\n\n[data-tui-background='support-feijoa'],\n[data-tui-background='support-21'] {\n background-color: var(--tui-support-21);\n}\n\n[data-tui-background='base-01'] {\n background-color: var(--tui-base-01);\n}\n\n[data-tui-background='base-02'] {\n background-color: var(--tui-base-02);\n}\n\n[data-tui-background='base-03'] {\n background-color: var(--tui-base-03);\n}\n\n[data-tui-background='base-04'] {\n background-color: var(--tui-base-04);\n}\n\n[data-tui-background='base-05'] {\n background-color: var(--tui-base-05);\n}\n\n[data-tui-background='base-06'] {\n background-color: var(--tui-base-06);\n}\n\n[data-tui-background='base-07'] {\n background-color: var(--tui-base-07);\n}\n\n[data-tui-background='base-08'] {\n background-color: var(--tui-base-08);\n}\n\n[data-tui-background='base-09'] {\n background-color: var(--tui-base-09);\n}\n\n[data-tui-color='primary'] {\n color: var(--tui-primary);\n}\n\n[data-tui-color='secondary'] {\n color: var(--tui-info-fill);\n}\n\n[data-tui-color='success'] {\n color: var(--tui-success-fill);\n}\n\n[data-tui-color='error'] {\n color: var(--tui-error-fill);\n}\n\n[data-tui-color='support-mustard'],\n[data-tui-color='support-01'] {\n color: var(--tui-support-01);\n}\n\n[data-tui-color='support-texas'],\n[data-tui-color='support-02'] {\n color: var(--tui-support-02);\n}\n\n[data-tui-color='support-tan'],\n[data-tui-color='support-03'] {\n color: var(--tui-support-03);\n}\n\n[data-tui-color='support-salmon'],\n[data-tui-color='support-04'] {\n color: var(--tui-support-04);\n}\n\n[data-tui-color='support-sienna'],\n[data-tui-color='support-05'] {\n color: var(--tui-support-05);\n}\n\n[data-tui-color='support-bittersweet'],\n[data-tui-color='support-06'] {\n color: var(--tui-support-06);\n}\n\n[data-tui-color='support-pinkie'],\n[data-tui-color='support-07'] {\n color: var(--tui-support-07);\n}\n\n[data-tui-color='support-charm'],\n[data-tui-color='support-08'] {\n color: var(--tui-support-08);\n}\n\n[data-tui-color='support-amethyst'],\n[data-tui-color='support-09'] {\n color: var(--tui-support-09);\n}\n\n[data-tui-color='support-helio'],\n[data-tui-color='support-10'] {\n color: var(--tui-support-10);\n}\n\n[data-tui-color='support-lilac'],\n[data-tui-color='support-11'] {\n color: var(--tui-support-11);\n}\n\n[data-tui-color='support-malibu'],\n[data-tui-color='support-12'] {\n color: var(--tui-support-12);\n}\n\n[data-tui-color='support-havelock'],\n[data-tui-color='support-13'] {\n color: var(--tui-support-13);\n}\n\n[data-tui-color='support-picton'],\n[data-tui-color='support-14'] {\n color: var(--tui-support-14);\n}\n\n[data-tui-color='support-mint'],\n[data-tui-color='support-15'] {\n color: var(--tui-support-15);\n}\n\n[data-tui-color='support-fountain'],\n[data-tui-color='support-16'] {\n color: var(--tui-support-16);\n}\n\n[data-tui-color='support-puertorico'],\n[data-tui-color='support-17'] {\n color: var(--tui-support-17);\n}\n\n[data-tui-color='support-bay'],\n[data-tui-color='support-18'] {\n color: var(--tui-support-18);\n}\n\n[data-tui-color='support-forest'],\n[data-tui-color='support-19'] {\n color: var(--tui-support-19);\n}\n\n[data-tui-color='support-york'],\n[data-tui-color='support-20'] {\n color: var(--tui-support-20);\n}\n\n[data-tui-color='support-feijoa'],\n[data-tui-color='support-21'] {\n color: var(--tui-support-21);\n}\n\n[data-tui-color='base-01'] {\n color: var(--tui-base-01);\n}\n\n[data-tui-color='base-02'] {\n color: var(--tui-base-02);\n}\n\n[data-tui-color='base-03'] {\n color: var(--tui-base-03);\n}\n\n[data-tui-color='base-04'] {\n color: var(--tui-base-04);\n}\n\n[data-tui-color='base-05'] {\n color: var(--tui-base-05);\n}\n\n[data-tui-color='base-06'] {\n color: var(--tui-base-06);\n}\n\n[data-tui-color='base-07'] {\n color: var(--tui-base-07);\n}\n\n[data-tui-color='base-08'] {\n color: var(--tui-base-08);\n}\n\n[data-tui-color='base-09'] {\n color: var(--tui-base-09);\n}\n`;\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiDirectiveStylesService} from '@taiga-ui/cdk';\nimport {TuiColor} from '@taiga-ui/core/types';\n\nimport {COLOR} from './color.const';\n\n/**\n * @deprecated use CSS custom properties\n */\n@Directive({\n selector: '[tuiColor],[tuiBackground]',\n})\nexport class TuiColorDirective {\n @Input()\n @HostBinding('attr.data-tui-color')\n @tuiDefaultProp()\n tuiColor: TuiColor | string = '';\n\n @Input()\n @HostBinding('attr.data-tui-background')\n @tuiDefaultProp()\n tuiBackground: TuiColor | string = '';\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addStyle(COLOR, 'TuiColorDirective');\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiColorDirective} from './color.directive';\n\n/**\n * @deprecated use CSS custom properties\n */\n@NgModule({\n declarations: [TuiColorDirective],\n exports: [TuiColorDirective],\n})\nexport class TuiColorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;IAGa,KAAK,GAAG;;ACGrB;;;;IAiBI,2BACuC,eAA0C;QARjF,aAAQ,GAAsB,EAAE,CAAC;QAKjC,kBAAa,GAAsB,EAAE,CAAC;QAKlC,eAAe,CAAC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;KACxD;;gBAHuD,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;IARrC;QAHC,KAAK,EAAE;QACP,WAAW,CAAC,qBAAqB,CAAC;QAClC,cAAc,EAAE;uDACgB;IAKjC;QAHC,KAAK,EAAE;QACP,WAAW,CAAC,0BAA0B,CAAC;QACvC,cAAc,EAAE;4DACqB;IAT7B,iBAAiB;QAH7B,SAAS,CAAC;YACP,QAAQ,EAAE,4BAA4B;SACzC,CAAC;QAaO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;OAZ7B,iBAAiB,CAgB7B;IAAD,wBAAC;CAhBD;;ACTA;;;;IAOA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-color.js","sources":["ng://@taiga-ui/core/directives/color/color.const.ts","ng://@taiga-ui/core/directives/color/color.directive.ts","ng://@taiga-ui/core/directives/color/color.module.ts","ng://@taiga-ui/core/directives/color/taiga-ui-core-directives-color.ts"],"sourcesContent":["/**\n * @deprecated use CSS custom properties\n */\nexport const COLOR = `[data-tui-background='primary'] {\n background-color: var(--tui-primary);\n}\n\n[data-tui-background='secondary'] {\n background-color: var(--tui-info-fill);\n}\n\n[data-tui-background='success'] {\n background-color: var(--tui-success-fill);\n}\n\n[data-tui-background='error'] {\n background-color: var(--tui-error-fill);\n}\n\n[data-tui-background='support-mustard'],\n[data-tui-background='support-01'] {\n background-color: var(--tui-support-01);\n}\n\n[data-tui-background='support-texas'],\n[data-tui-background='support-02'] {\n background-color: var(--tui-support-02);\n}\n\n[data-tui-background='support-tan'],\n[data-tui-background='support-03'] {\n background-color: var(--tui-support-03);\n}\n\n[data-tui-background='support-salmon'],\n[data-tui-background='support-04'] {\n background-color: var(--tui-support-04);\n}\n\n[data-tui-background='support-sienna'],\n[data-tui-background='support-05'] {\n background-color: var(--tui-support-05);\n}\n\n[data-tui-background='support-bittersweet'],\n[data-tui-background='support-06'] {\n background-color: var(--tui-support-06);\n}\n\n[data-tui-background='support-pinkie'],\n[data-tui-background='support-07'] {\n background-color: var(--tui-support-07);\n}\n\n[data-tui-background='support-charm'],\n[data-tui-background='support-08'] {\n background-color: var(--tui-support-08);\n}\n\n[data-tui-background='support-amethyst'],\n[data-tui-background='support-09'] {\n background-color: var(--tui-support-09);\n}\n\n[data-tui-background='support-helio'],\n[data-tui-background='support-10'] {\n background-color: var(--tui-support-10);\n}\n\n[data-tui-background='support-lilac'],\n[data-tui-background='support-11'] {\n background-color: var(--tui-support-11);\n}\n\n[data-tui-background='support-malibu'],\n[data-tui-background='support-12'] {\n background-color: var(--tui-support-12);\n}\n\n[data-tui-background='support-havelock'],\n[data-tui-background='support-13'] {\n background-color: var(--tui-support-13);\n}\n\n[data-tui-background='support-picton'],\n[data-tui-background='support-14'] {\n background-color: var(--tui-support-14);\n}\n\n[data-tui-background='support-mint'],\n[data-tui-background='support-15'] {\n background-color: var(--tui-support-15);\n}\n\n[data-tui-background='support-fountain'],\n[data-tui-background='support-16'] {\n background-color: var(--tui-support-16);\n}\n\n[data-tui-background='support-puertorico'],\n[data-tui-background='support-17'] {\n background-color: var(--tui-support-17);\n}\n\n[data-tui-background='support-bay'],\n[data-tui-background='support-18'] {\n background-color: var(--tui-support-18);\n}\n\n[data-tui-background='support-forest'],\n[data-tui-background='support-19'] {\n background-color: var(--tui-support-19);\n}\n\n[data-tui-background='support-york'],\n[data-tui-background='support-20'] {\n background-color: var(--tui-support-20);\n}\n\n[data-tui-background='support-feijoa'],\n[data-tui-background='support-21'] {\n background-color: var(--tui-support-21);\n}\n\n[data-tui-background='base-01'] {\n background-color: var(--tui-base-01);\n}\n\n[data-tui-background='base-02'] {\n background-color: var(--tui-base-02);\n}\n\n[data-tui-background='base-03'] {\n background-color: var(--tui-base-03);\n}\n\n[data-tui-background='base-04'] {\n background-color: var(--tui-base-04);\n}\n\n[data-tui-background='base-05'] {\n background-color: var(--tui-base-05);\n}\n\n[data-tui-background='base-06'] {\n background-color: var(--tui-base-06);\n}\n\n[data-tui-background='base-07'] {\n background-color: var(--tui-base-07);\n}\n\n[data-tui-background='base-08'] {\n background-color: var(--tui-base-08);\n}\n\n[data-tui-background='base-09'] {\n background-color: var(--tui-base-09);\n}\n\n[data-tui-color='primary'] {\n color: var(--tui-primary);\n}\n\n[data-tui-color='secondary'] {\n color: var(--tui-info-fill);\n}\n\n[data-tui-color='success'] {\n color: var(--tui-success-fill);\n}\n\n[data-tui-color='error'] {\n color: var(--tui-error-fill);\n}\n\n[data-tui-color='support-mustard'],\n[data-tui-color='support-01'] {\n color: var(--tui-support-01);\n}\n\n[data-tui-color='support-texas'],\n[data-tui-color='support-02'] {\n color: var(--tui-support-02);\n}\n\n[data-tui-color='support-tan'],\n[data-tui-color='support-03'] {\n color: var(--tui-support-03);\n}\n\n[data-tui-color='support-salmon'],\n[data-tui-color='support-04'] {\n color: var(--tui-support-04);\n}\n\n[data-tui-color='support-sienna'],\n[data-tui-color='support-05'] {\n color: var(--tui-support-05);\n}\n\n[data-tui-color='support-bittersweet'],\n[data-tui-color='support-06'] {\n color: var(--tui-support-06);\n}\n\n[data-tui-color='support-pinkie'],\n[data-tui-color='support-07'] {\n color: var(--tui-support-07);\n}\n\n[data-tui-color='support-charm'],\n[data-tui-color='support-08'] {\n color: var(--tui-support-08);\n}\n\n[data-tui-color='support-amethyst'],\n[data-tui-color='support-09'] {\n color: var(--tui-support-09);\n}\n\n[data-tui-color='support-helio'],\n[data-tui-color='support-10'] {\n color: var(--tui-support-10);\n}\n\n[data-tui-color='support-lilac'],\n[data-tui-color='support-11'] {\n color: var(--tui-support-11);\n}\n\n[data-tui-color='support-malibu'],\n[data-tui-color='support-12'] {\n color: var(--tui-support-12);\n}\n\n[data-tui-color='support-havelock'],\n[data-tui-color='support-13'] {\n color: var(--tui-support-13);\n}\n\n[data-tui-color='support-picton'],\n[data-tui-color='support-14'] {\n color: var(--tui-support-14);\n}\n\n[data-tui-color='support-mint'],\n[data-tui-color='support-15'] {\n color: var(--tui-support-15);\n}\n\n[data-tui-color='support-fountain'],\n[data-tui-color='support-16'] {\n color: var(--tui-support-16);\n}\n\n[data-tui-color='support-puertorico'],\n[data-tui-color='support-17'] {\n color: var(--tui-support-17);\n}\n\n[data-tui-color='support-bay'],\n[data-tui-color='support-18'] {\n color: var(--tui-support-18);\n}\n\n[data-tui-color='support-forest'],\n[data-tui-color='support-19'] {\n color: var(--tui-support-19);\n}\n\n[data-tui-color='support-york'],\n[data-tui-color='support-20'] {\n color: var(--tui-support-20);\n}\n\n[data-tui-color='support-feijoa'],\n[data-tui-color='support-21'] {\n color: var(--tui-support-21);\n}\n\n[data-tui-color='base-01'] {\n color: var(--tui-base-01);\n}\n\n[data-tui-color='base-02'] {\n color: var(--tui-base-02);\n}\n\n[data-tui-color='base-03'] {\n color: var(--tui-base-03);\n}\n\n[data-tui-color='base-04'] {\n color: var(--tui-base-04);\n}\n\n[data-tui-color='base-05'] {\n color: var(--tui-base-05);\n}\n\n[data-tui-color='base-06'] {\n color: var(--tui-base-06);\n}\n\n[data-tui-color='base-07'] {\n color: var(--tui-base-07);\n}\n\n[data-tui-color='base-08'] {\n color: var(--tui-base-08);\n}\n\n[data-tui-color='base-09'] {\n color: var(--tui-base-09);\n}\n`;\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiDirectiveStylesService} from '@taiga-ui/cdk';\nimport {TuiColor} from '@taiga-ui/core/types';\n\nimport {COLOR} from './color.const';\n\n/**\n * @deprecated use CSS custom properties\n */\n@Directive({\n selector: '[tuiColor],[tuiBackground]',\n})\nexport class TuiColorDirective {\n @Input()\n @HostBinding('attr.data-tui-color')\n @tuiDefaultProp()\n tuiColor: TuiColor | string = '';\n\n @Input()\n @HostBinding('attr.data-tui-background')\n @tuiDefaultProp()\n tuiBackground: TuiColor | string = '';\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addStyle(COLOR, 'TuiColorDirective');\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiColorDirective} from './color.directive';\n\n/**\n * @deprecated use CSS custom properties\n */\n@NgModule({\n declarations: [TuiColorDirective],\n exports: [TuiColorDirective],\n})\nexport class TuiColorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;IAGa,KAAK,GAAG;;ACGrB;;;;IAiBI,2BACuC,eAA0C;QARjF,aAAQ,GAAsB,EAAE,CAAC;QAKjC,kBAAa,GAAsB,EAAE,CAAC;QAKlC,eAAe,CAAC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;KACxD;;gBAHuD,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;IARrC;QAHC,KAAK,EAAE;QACP,WAAW,CAAC,qBAAqB,CAAC;QAClC,cAAc,EAAE;uDACgB;IAKjC;QAHC,KAAK,EAAE;QACP,WAAW,CAAC,0BAA0B,CAAC;QACvC,cAAc,EAAE;4DACqB;IAT7B,iBAAiB;QAH7B,SAAS,CAAC;YACP,QAAQ,EAAE,4BAA4B;SACzC,CAAC;QAaO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;OAZ7B,iBAAiB,CAgB7B;IAAD,wBAAC;CAhBD;;ACRA;;;;IAOA;KAA8B;IAAjB,cAAc;QAJ1B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;YACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;SAC/B,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAA9B;;ACXA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-described-by.js","sources":["ng://@taiga-ui/core/directives/described-by/described-by.providers.ts","ng://@taiga-ui/core/directives/described-by/described-by.directive.ts","ng://@taiga-ui/core/directives/described-by/described-by.module.ts","ng://@taiga-ui/core/directives/described-by/taiga-ui-core-directives-described-by.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService, typedFromEvent} from '@taiga-ui/cdk';\nimport {merge, Observable, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n startWith,\n switchMapTo,\n take,\n takeUntil,\n tap,\n} from 'rxjs/operators';\n\nconst DELAY = 1000;\n\nexport const TUI_DESCRIBED_BY_SHOW = new InjectionToken<Observable<boolean>>(\n 'Accessible tooltip visibility stream',\n);\nexport const TUI_DESCRIBED_BY_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n {\n provide: TUI_DESCRIBED_BY_SHOW,\n deps: [TuiFocusVisibleService, ElementRef],\n useFactory: describedByFactory,\n },\n];\n\nexport function describedByFactory(\n focusVisible$: Observable<boolean>,\n {nativeElement}: ElementRef<HTMLElement>,\n): Observable<boolean> {\n return merge(\n focusVisible$.pipe(\n filter(v => v),\n switchMapTo(\n timer(DELAY).pipe(\n mapTo(true),\n takeUntil(typedFromEvent(nativeElement, 'keydown')),\n ),\n ),\n switchMapTo(\n typedFromEvent(nativeElement, 'keydown').pipe(\n filter(({key}) => key === 'Escape'),\n take(1),\n tap(event => {\n event.stopPropagation();\n }),\n mapTo(false),\n startWith(true),\n ),\n ),\n ),\n typedFromEvent(nativeElement, 'blur').pipe(mapTo(false)),\n ).pipe(distinctUntilChanged());\n}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_DESCRIBED_BY_SHOW,\n} from './described-by.providers';\n\nexport const DESCRIBED_BY = '_described-by';\n\n/**\n * A directive linking focusable elements and hints for accessibility\n */\n@Directive({\n selector: '[tuiDescribedBy]:not(ng-container)',\n providers: TUI_DESCRIBED_BY_PROVIDERS,\n})\nexport class TuiDescribedByDirective {\n @Input()\n @tuiDefaultProp()\n tuiDescribedBy = '';\n\n constructor(\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TUI_DESCRIBED_BY_SHOW) visibility$: Observable<boolean>,\n ) {\n visibility$.subscribe(visible => {\n if (!this.tuiDescribedBy) {\n return;\n }\n\n if (visible) {\n hintService.showHintForId(this.tuiDescribedBy);\n } else {\n hintService.hideHintForId(this.tuiDescribedBy);\n }\n });\n }\n\n @HostBinding('attr.aria-describedby')\n get computedDescribedBy(): string | null {\n return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDescribedByDirective} from './described-by.directive';\n\n@NgModule({\n declarations: [TuiDescribedByDirective],\n exports: [TuiDescribedByDirective],\n})\nexport class TuiDescribedByModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAcA,IAAM,KAAK,GAAG,IAAI,CAAC;IAEN,qBAAqB,GAAG,IAAI,cAAc,CACnD,sCAAsC,EACxC;IACW,0BAA0B,GAAe;IAClD,iBAAiB;IACjB,sBAAsB;IACtB;QACI,OAAO,EAAE,qBAAqB;QAC9B,IAAI,EAAE,CAAC,sBAAsB,EAAE,UAAU,CAAC;QAC1C,UAAU,EAAE,kBAAkB;KACjC;EACH;SAEc,kBAAkB,CAC9B,aAAkC,EAClC,EAAwC;QAAvC,gCAAa;IAEd,OAAO,KAAK,CACR,aAAa,CAAC,IAAI,CACd,MAAM,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,GAAA,CAAC,EACd,WAAW,CACP,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CACb,KAAK,CAAC,IAAI,CAAC,EACX,SAAS,CAAC,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,CACtD,CACJ,EACD,WAAW,CACP,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC,IAAI,CACzC,MAAM,CAAC,UAAC,EAAK;YAAJ,YAAG;QAAM,OAAA,GAAG,KAAK,QAAQ;KAAA,CAAC,EACnC,IAAI,CAAC,CAAC,CAAC,EACP,GAAG,CAAC,UAAA,KAAK;QACL,KAAK,CAAC,eAAe,EAAE,CAAC;KAC3B,CAAC,EACF,KAAK,CAAC,KAA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uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-described-by.js","sources":["ng://@taiga-ui/core/directives/described-by/described-by.providers.ts","ng://@taiga-ui/core/directives/described-by/described-by.directive.ts","ng://@taiga-ui/core/directives/described-by/described-by.module.ts","ng://@taiga-ui/core/directives/described-by/taiga-ui-core-directives-described-by.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, TuiFocusVisibleService, typedFromEvent} from '@taiga-ui/cdk';\nimport {merge, Observable, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n startWith,\n switchMapTo,\n take,\n takeUntil,\n tap,\n} from 'rxjs/operators';\n\nconst DELAY = 1000;\n\nexport const TUI_DESCRIBED_BY_SHOW = new InjectionToken<Observable<boolean>>(\n 'Accessible tooltip visibility stream',\n);\nexport const TUI_DESCRIBED_BY_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n {\n provide: TUI_DESCRIBED_BY_SHOW,\n deps: [TuiFocusVisibleService, ElementRef],\n useFactory: describedByFactory,\n },\n];\n\nexport function describedByFactory(\n focusVisible$: Observable<boolean>,\n {nativeElement}: ElementRef<HTMLElement>,\n): Observable<boolean> {\n return merge(\n focusVisible$.pipe(\n filter(v => v),\n switchMapTo(\n timer(DELAY).pipe(\n mapTo(true),\n takeUntil(typedFromEvent(nativeElement, 'keydown')),\n ),\n ),\n switchMapTo(\n typedFromEvent(nativeElement, 'keydown').pipe(\n filter(({key}) => key === 'Escape'),\n take(1),\n tap(event => {\n event.stopPropagation();\n }),\n mapTo(false),\n startWith(true),\n ),\n ),\n ),\n typedFromEvent(nativeElement, 'blur').pipe(mapTo(false)),\n ).pipe(distinctUntilChanged());\n}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_DESCRIBED_BY_SHOW,\n} from './described-by.providers';\n\nexport const DESCRIBED_BY = '_described-by';\n\n/**\n * A directive linking focusable elements and hints for accessibility\n */\n@Directive({\n selector: '[tuiDescribedBy]:not(ng-container)',\n providers: TUI_DESCRIBED_BY_PROVIDERS,\n})\nexport class TuiDescribedByDirective {\n @Input()\n @tuiDefaultProp()\n tuiDescribedBy = '';\n\n constructor(\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TUI_DESCRIBED_BY_SHOW) visibility$: Observable<boolean>,\n ) {\n visibility$.subscribe(visible => {\n if (!this.tuiDescribedBy) {\n return;\n }\n\n if (visible) {\n hintService.showHintForId(this.tuiDescribedBy);\n } else {\n hintService.hideHintForId(this.tuiDescribedBy);\n }\n });\n }\n\n @HostBinding('attr.aria-describedby')\n get computedDescribedBy(): string | null {\n return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDescribedByDirective} from './described-by.directive';\n\n@NgModule({\n declarations: [TuiDescribedByDirective],\n exports: [TuiDescribedByDirective],\n})\nexport class TuiDescribedByModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAcA,IAAM,KAAK,GAAG,IAAI,CAAC;IAEN,qBAAqB,GAAG,IAAI,cAAc,CACnD,sCAAsC,EACxC;IACW,0BAA0B,GAAe;IAClD,iBAAiB;IACjB,sBAAsB;IACtB;QACI,OAAO,EAAE,qBAAqB;QAC9B,IAAI,EAAE,CAAC,sBAAsB,EAAE,UAAU,CAAC;QAC1C,UAAU,EAAE,kBAAkB;KACjC;EACH;SAEc,kBAAkB,CAC9B,aAAkC,EAClC,EAAwC;QAAvC,gCAAa;IAEd,OAAO,K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AAI,CAAC;SAC1E;;;OAAA;;gBAnBwC,cAAc,uBAAlD,MAAM,SAAC,cAAc;gBACsB,UAAU,uBAArD,MAAM,SAAC,qBAAqB;;IAJjC;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;mEACG;IAoBpB;QADC,WAAW,CAAC,uBAAuB,CAAC;sEAGpC;IAzBQ,uBAAuB;QAJnC,SAAS,CAAC;YACP,QAAQ,EAAE,oCAAoC;YAC9C,SAAS,EAAE,0BAA0B;SACxC,CAAC;QAOO,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;OAPzB,uBAAuB,CA0BnC;IAAD,8BAAC;CA1BD;;;ICXA;KAAoC;IAAvB,oBAAoB;QAJhC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-dropdown-controller.js","sources":["ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.token.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.directive.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.module.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.provider.ts","ng://@taiga-ui/core/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\nexport const TUI_DROPDOWN_CONTROLLER = new InjectionToken<TuiDropdownControllerDirective>(\n 'Controls configuration of hints',\n {\n factory: () => new TuiDropdownControllerDirective(),\n },\n);\n","import {Directive, forwardRef, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {DEFAULT_MAX_HEIGHT, DEFAULT_MIN_HEIGHT} from '@taiga-ui/core/constants';\nimport {\n TuiDropdownWidthT,\n TuiHorizontalDirection,\n TuiVerticalDirection,\n} from '@taiga-ui/core/types';\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\n@Directive({\n selector:\n '[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]',\n providers: [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n useExisting: forwardRef(() => TuiDropdownControllerDirective),\n },\n ],\n})\nexport class TuiDropdownControllerDirective extends TuiController {\n @Input('tuiDropdownAlign')\n @tuiDefaultProp()\n align: TuiHorizontalDirection = 'right';\n\n @Input('tuiDropdownDirection')\n @tuiDefaultProp()\n direction: TuiVerticalDirection | null = null;\n\n @Input('tuiDropdownLimitWidth')\n @tuiDefaultProp()\n limitWidth: TuiDropdownWidthT = 'auto';\n\n @Input('tuiDropdownMinHeight')\n @tuiDefaultProp()\n minHeight = DEFAULT_MIN_HEIGHT;\n\n @Input('tuiDropdownMaxHeight')\n @tuiDefaultProp()\n maxHeight = DEFAULT_MAX_HEIGHT;\n\n @Input('tuiDropdownSided')\n @tuiDefaultProp()\n sided = false;\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\n@NgModule({\n declarations: [TuiDropdownControllerDirective],\n exports: [TuiDropdownControllerDirective],\n})\nexport class TuiDropdownControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {watchedControllerFactory} from '@taiga-ui/core/providers';\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\nexport const TUI_DROPDOWN_WATCHED_CONTROLLER = new InjectionToken(\n 'watched dropdown controller',\n);\n// TODO: remove in ivy compilation\nexport const DROPDOWN_CONTROLLER_FACTORY = watchedControllerFactory;\nexport const DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_DROPDOWN_WATCHED_CONTROLLER,\n deps: [TUI_DROPDOWN_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: DROPDOWN_CONTROLLER_FACTORY,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;IAGa,uBAAuB,GAAG,IAAI,cAAc,CACrD,iCAAiC,EACjC;IACI,OAAO,EAAE,cAAM,OAAA,IAAI,8BAA8B,EAAE,GAAA;CACtD;;;ICa+C,kDAAa;IAAjE;QAAA,qEAwBC;QArBG,WAAK,GAA2B,OAAO,CAAC;QAIxC,eAAS,GAAgC,IAAI,CAAC;QAI9C,gBAAU,GAAsB,MAAM,CAAC;QAIvC,eAAS,GAAG,kBAAkB,CAAC;QAI/B,eAAS,GAAG,kBAAkB,CAAC;QAI/B,WAAK,GAAG,KAAK,CAAC;;KACjB;uCAxBY,8BAA8B;;IAGvC;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACuB;IAIxC;QAFC,KAAK,CAAC,sBAAsB,CAAC;QAC7B,cAAc,EAAE;qEAC6B;IAI9C;QAFC,KAAK,CAAC,uBAAuB,CAAC;QAC9B,cAAc,EAAE;sEACsB;IAIvC;QAFC,KAAK,CAAC,sBAAsB,CAAC;QAC7B,cAAc,EAAE;qEACc;IAI/B;QAFC,KAAK,CAAC,sBAAsB,CAAC;QAC7B,cAAc,EAAE;qEACc;IAI/B;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACH;IAvBL,8BAA8B;QAV1C,SAAS,CAAC;YACP,QAAQ,EACJ,yIAAyI;YAC7I,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,uBAAuB;oBAChC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,gCAA8B,GAAA,CAAC;iBAChE;aACJ;SACJ,CAAC;OACW,8BAA8B,CAwB1C;IAAD,qCAAC;CAAA,CAxBmD,aAAa;;;ICbjE;KAA2C;IAA9B,2BAA2B;QAJvC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,8BAA8B,CAAC;YAC9C,OAAO,EAAE,CAAC,8BAA8B,CAAC;SAC5C,CAAC;OACW,2BAA2B,CAAG;IAAD,kCAAC;CAA3C;;ICFa,+BAA+B,GAAG,IAAI,cAAc,CAC7D,6BAA6B,EAC/B;AACF;IACa,2BAA2B,GAAG,yBAAyB;IACvD,4BAA4B,GAAa;IAClD,iBAAiB;IACjB;QACI,OAAO,EAAE,+BAA+B;QACxC,IAAI,EAAE,CAAC,uBAAuB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;QACrE,UAAU,EAAE,2BAA2B;KAC1C;;;AChBL;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-dropdown-controller.js","sources":["ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.token.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.directive.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.module.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.provider.ts","ng://@taiga-ui/core/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\nexport const TUI_DROPDOWN_CONTROLLER = new InjectionToken<TuiDropdownControllerDirective>(\n 'Controls configuration of hints',\n {\n factory: () => new TuiDropdownControllerDirective(),\n },\n);\n","import {Directive, forwardRef, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {DEFAULT_MAX_HEIGHT, DEFAULT_MIN_HEIGHT} from '@taiga-ui/core/constants';\nimport {\n TuiDropdownWidthT,\n TuiHorizontalDirection,\n TuiVerticalDirection,\n} from '@taiga-ui/core/types';\n\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\n@Directive({\n selector:\n '[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]',\n providers: [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n useExisting: forwardRef(() => TuiDropdownControllerDirective),\n },\n ],\n})\nexport class TuiDropdownControllerDirective extends TuiController {\n @Input('tuiDropdownAlign')\n @tuiDefaultProp()\n align: TuiHorizontalDirection = 'right';\n\n @Input('tuiDropdownDirection')\n @tuiDefaultProp()\n direction: TuiVerticalDirection | null = null;\n\n @Input('tuiDropdownLimitWidth')\n @tuiDefaultProp()\n limitWidth: TuiDropdownWidthT = 'auto';\n\n @Input('tuiDropdownMinHeight')\n @tuiDefaultProp()\n minHeight = DEFAULT_MIN_HEIGHT;\n\n @Input('tuiDropdownMaxHeight')\n @tuiDefaultProp()\n maxHeight = DEFAULT_MAX_HEIGHT;\n\n @Input('tuiDropdownSided')\n @tuiDefaultProp()\n sided = false;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\n@NgModule({\n declarations: [TuiDropdownControllerDirective],\n exports: [TuiDropdownControllerDirective],\n})\nexport class TuiDropdownControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {watchedControllerFactory} from '@taiga-ui/core/providers';\n\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\nexport const TUI_DROPDOWN_WATCHED_CONTROLLER = new InjectionToken(\n 'watched dropdown controller',\n);\n// TODO: remove in ivy compilation\nexport const DROPDOWN_CONTROLLER_FACTORY = watchedControllerFactory;\nexport const DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_DROPDOWN_WATCHED_CONTROLLER,\n deps: [TUI_DROPDOWN_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: DROPDOWN_CONTROLLER_F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C;SAC5C,CAAC;OACW,2BAA2B,CAAG;IAAD,kCAAC;CAA3C;;ICFa,+BAA+B,GAAG,IAAI,cAAc,CAC7D,6BAA6B,EAC/B;AACF;IACa,2BAA2B,GAAG,yBAAyB;IACvD,4BAA4B,GAAa;IAClD,iBAAiB;IACjB;QACI,OAAO,EAAE,+BAA+B;QACxC,IAAI,EAAE,CAAC,uBAAuB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;QACrE,UAAU,EAAE,2BAA2B;KAC1C;;;ACjBL;;;;;;"}
@@ -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';\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';\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';\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';\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":";;;;;IAGa,mBAAmB,GAAG,IAAI,cAAc,CACjD,iCAAiC,EACjC;IACI,OAAO,EAAE,cAAM,OAAA,IAAI,0BAA0B,EAAE,GAAA;CAClD;;ACDL;;IAUgD,8CAAa;IAA7D;QAAA,qEAqBC;;QAjBG,aAAO,GAA+B,IAAI,CAAC;QAI3C,eAAS,GAAiB,aAAa,CAAC;QAIxC,UAAI,GAAwB,IAAI,CAAC;QAIjC,eAAS,GAAG,GAAG,CAAC;QAIhB,eAAS,GAAG,GAAG,CAAC;;KACnB;mCArBY,0BAA0B;;IAInC;QAFC,KAAK,CAAC,gBAAgB,CAAC;QACvB,cAAc,EAAE;+DAC0B;IAI3C;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACuB;IAIxC;QAFC,KAAK,CAAC,aAAa,CAAC;QACpB,cAAc,EAAE;4DACgB;IAIjC;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACD;IAIhB;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACD;IApBP,0BAA0B;QATtC,SAAS,CAAC;YACP,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,mBAAmB;oBAC5B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,4BAA0B,GAAA,CAAC;iBAC5D;aACJ;SACJ,CAAC;OACW,0BAA0B,CAqBtC;IAAD,iCAAC;CAAA,CArB+C,aAAa;;;ICT7D;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;YAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ICFa,2BAA2B,GAAG,IAAI,cAAc,CAAC,yBAAyB,EAAE;AACzF;IACa,uBAAuB,GAAG,yBAAyB;IACnD,wBAAwB,GAAa;IAC9C,iBAAiB;IACjB;QACI,OAAO,EAAE,2BAA2B;QACpC,IAAI,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;QACjE,UAAU,EAAE,uBAAuB;KACtC;;;ACdL;;;;;;"}
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":";;;;;IAIa,mBAAmB,GAAG,IAAI,cAAc,CACjD,iCAAiC,EACjC;IACI,OAAO,EAAE,cAAM,OAAA,IAAI,0BAA0B,EAAE,GAAA;CAClD;;ACDL;;IAUgD,8CAAa;IAA7D;QAAA,qEAqBC;;QAjBG,aAAO,GAA+B,IAAI,CAAC;QAI3C,eAAS,GAAiB,aAAa,CAAC;QAIxC,UAAI,GAAwB,IAAI,CAAC;QAIjC,eAAS,GAAG,GAAG,CAAC;QAIhB,eAAS,GAAG,GAAG,CAAC;;KACnB;mCArBY,0BAA0B;;IAInC;QAFC,KAAK,CAAC,gBAAgB,CAAC;QACvB,cAAc,EAAE;+DAC0B;IAI3C;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACuB;IAIxC;QAFC,KAAK,CAAC,aAAa,CAAC;QACpB,cAAc,EAAE;4DACgB;IAIjC;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACD;IAIhB;QAFC,KAAK,CAAC,kBAAkB,CAAC;QACzB,cAAc,EAAE;iEACD;IApBP,0BAA0B;QATtC,SAAS,CAAC;YACP,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,mBAAmB;oBAC5B,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,4BAA0B,GAAA,CAAC;iBAC5D;aACJ;SACJ,CAAC;OACW,0BAA0B,CAqBtC;IAAD,iCAAC;CAAA,CArB+C,aAAa;;;ICT7D;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;YAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ICFa,2BAA2B,GAAG,IAAI,cAAc,CAAC,yBAAyB,EAAE;AACzF;IACa,uBAAuB,GAAG,yBAAyB;IACnD,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,6 +1,6 @@
1
1
  import { __extends, __read, __decorate, __param } from 'tslib';
2
- import { Renderer2, Inject, ElementRef, Self, Input, Directive, NgModule } from '@angular/core';
3
- import { TuiDestroyService, TuiObscuredService, TuiHoveredService, tuiDefaultProp, tuiRequiredSetter, TuiParentsScrollService } from '@taiga-ui/cdk';
2
+ import { Renderer2, Inject, ElementRef, Self, Optional, Input, Directive, NgModule } from '@angular/core';
3
+ import { TuiDestroyService, TuiObscuredService, TuiHoveredService, TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter, TuiParentsScrollService } from '@taiga-ui/cdk';
4
4
  import { AbstractTuiHint } from '@taiga-ui/core/abstract';
5
5
  import { DESCRIBED_BY } from '@taiga-ui/core/directives/described-by';
6
6
  import { TuiHintService } from '@taiga-ui/core/services';
@@ -10,8 +10,8 @@ import { startWith, map, switchMap, delay, take, distinctUntilChanged, takeUntil
10
10
  var HINT_HOVERED_CLASS = '_hint_hovered';
11
11
  var TuiHintDirective = /** @class */ (function (_super) {
12
12
  __extends(TuiHintDirective, _super);
13
- function TuiHintDirective(renderer, elementRef, hintService, destroy$, obscured$, hoveredService) {
14
- var _this = _super.call(this, elementRef, hintService) || this;
13
+ function TuiHintDirective(renderer, elementRef, hintService, destroy$, obscured$, hoveredService, activeZone) {
14
+ var _this = _super.call(this, elementRef, hintService, activeZone) || this;
15
15
  _this.renderer = renderer;
16
16
  _this.componentHovered$ = new Subject();
17
17
  _this.tuiHintShowDelay = 500;
@@ -99,7 +99,8 @@ var TuiHintDirective = /** @class */ (function (_super) {
99
99
  { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] },
100
100
  { type: TuiDestroyService, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
101
101
  { type: TuiObscuredService, decorators: [{ type: Inject, args: [TuiObscuredService,] }, { type: Self }] },
102
- { type: TuiHoveredService, decorators: [{ type: Inject, args: [TuiHoveredService,] }] }
102
+ { type: TuiHoveredService, decorators: [{ type: Inject, args: [TuiHoveredService,] }] },
103
+ { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] }
103
104
  ]; };
104
105
  __decorate([
105
106
  Input()
@@ -131,7 +132,9 @@ var TuiHintDirective = /** @class */ (function (_super) {
131
132
  __param(3, Inject(TuiDestroyService)),
132
133
  __param(4, Inject(TuiObscuredService)),
133
134
  __param(4, Self()),
134
- __param(5, Inject(TuiHoveredService))
135
+ __param(5, Inject(TuiHoveredService)),
136
+ __param(6, Optional()),
137
+ __param(6, Inject(TuiActiveZoneDirective))
135
138
  ], TuiHintDirective);
136
139
  return TuiHintDirective;
137
140
  }(AbstractTuiHint));
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-hint.js","sources":["ng://@taiga-ui/core/directives/hint/hint.directive.ts","ng://@taiga-ui/core/directives/hint/hint.module.ts","ng://@taiga-ui/core/directives/hint/taiga-ui-core-directives-hint.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n OnDestroy,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n TuiObscuredService,\n TuiParentsScrollService,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {DESCRIBED_BY} from '@taiga-ui/core/directives/described-by';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, of, Subject} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n map,\n startWith,\n switchMap,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nexport const HINT_HOVERED_CLASS = '_hint_hovered';\n\n@Directive({\n selector: '[tuiHint]:not(ng-container)',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiHintDirective extends AbstractTuiHint implements OnDestroy {\n readonly componentHovered$ = new Subject<boolean>();\n\n @Input()\n tuiHintId?: string;\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 500;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 200;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHost: HTMLElement | null = null;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n constructor(\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiObscuredService)\n @Self()\n obscured$: TuiObscuredService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n super(elementRef, hintService);\n\n // @bad TODO: Use private provider\n combineLatest(\n hoveredService.createHovered$(elementRef.nativeElement),\n this.componentHovered$.pipe(startWith(false)),\n )\n .pipe(\n map(\n ([directiveHovered, componentHovered]) =>\n directiveHovered || componentHovered,\n ),\n switchMap(visible => {\n this.toggleClass(visible);\n\n return of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n );\n }),\n switchMap(visible =>\n visible && this.mode !== 'overflow'\n ? obscured$.pipe(\n map(obscured => !obscured),\n take(2),\n )\n : of(visible),\n ),\n distinctUntilChanged(),\n takeUntil(destroy$),\n )\n .subscribe(visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n });\n\n this.hintService.register(this);\n }\n\n get id(): string | null {\n return this.tuiHintId ? this.tuiHintId + DESCRIBED_BY : null;\n }\n\n get host(): HTMLElement {\n return this.tuiHintHost ? this.tuiHintHost : this.elementRef.nativeElement;\n }\n\n getElementClientRect(): ClientRect {\n return this.host.getBoundingClientRect();\n }\n\n ngOnDestroy() {\n this.hintService.unregister(this);\n }\n\n protected showTooltip() {\n if (this.content === '') {\n return;\n }\n\n this.toggleClass(true);\n this.hintService.add(this);\n }\n\n protected hideTooltip() {\n this.toggleClass(false);\n this.hintService.remove(this);\n }\n\n private toggleClass(add: boolean) {\n if (add) {\n this.renderer.addClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n } else {\n this.renderer.removeClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiHintDirective} from './hint.directive';\n\n@NgModule({\n declarations: [TuiHintDirective],\n exports: [TuiHintDirective],\n})\nexport class TuiHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAgCa,kBAAkB,GAAG,gBAAgB;;IAMZ,oCAAe;IAgCjD,0BACwC,QAAmB,EACnC,UAAmC,EAC/B,WAA2B,EAEnD,QAA2B,EAG3B,SAA6B,EACF,cAAiC;QAThE,YAWI,kBAAM,UAAU,EAAE,WAAW,CAAC,SAuCjC;QAjDuC,cAAQ,GAAR,QAAQ,CAAW;QAhClD,uBAAiB,GAAG,IAAI,OAAO,EAAW,CAAC;QAOpD,sBAAgB,GAAG,GAAG,CAAC;QAIvB,sBAAgB,GAAG,GAAG,CAAC;QAIvB,iBAAW,GAAuB,IAAI,CAAC;;QA8BnC,aAAa,CACT,cAAc,CAAC,cAAc,CAAC,UAAU,CA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kBAAkB,cACzB,IAAI;gBAEsC,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;IArC7B;QADC,KAAK,EAAE;uDACW;IAInB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;8DACM;IAIvB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;8DACM;IAIvB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;yDACsB;IAKvC;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;mDAUnB;IA9BQ,gBAAgB;QAJ5B,SAAS,CAAC;YACP,QAAQ,EAAE,6BAA6B;YACvC,SAAS,EAAE,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,CAAC;SAC9E,CAAC;QAkCO,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QACjB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;QAC1B,WAAA,IAAI,EAAE,CAAA;QAEN,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAzCrB,gBAAgB,CAyH5B;IAAD,uBAAC;CAAA,CAzHqC,eAAe;;;IC/BrD;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-hint.js","sources":["ng://@taiga-ui/core/directives/hint/hint.directive.ts","ng://@taiga-ui/core/directives/hint/hint.module.ts","ng://@taiga-ui/core/directives/hint/taiga-ui-core-directives-hint.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Renderer2,\n Self,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n TuiObscuredService,\n TuiParentsScrollService,\n tuiRequiredSetter,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {DESCRIBED_BY} from '@taiga-ui/core/directives/described-by';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {combineLatest, of, Subject} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n map,\n startWith,\n switchMap,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nexport const HINT_HOVERED_CLASS = '_hint_hovered';\n\n@Directive({\n selector: '[tuiHint]:not(ng-container)',\n providers: [TuiObscuredService, TuiParentsScrollService, TuiDestroyService],\n})\nexport class TuiHintDirective extends AbstractTuiHint implements OnDestroy {\n readonly componentHovered$ = new Subject<boolean>();\n\n @Input()\n tuiHintId?: string;\n\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 500;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 200;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHost: HTMLElement | null = null;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n constructor(\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n destroy$: TuiDestroyService,\n @Inject(TuiObscuredService)\n @Self()\n obscured$: TuiObscuredService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n @Optional()\n @Inject(TuiActiveZoneDirective)\n activeZone: TuiActiveZoneDirective | null,\n ) {\n super(elementRef, hintService, activeZone);\n\n // @bad TODO: Use private provider\n combineLatest(\n hoveredService.createHovered$(elementRef.nativeElement),\n this.componentHovered$.pipe(startWith(false)),\n )\n .pipe(\n map(\n ([directiveHovered, componentHovered]) =>\n directiveHovered || componentHovered,\n ),\n switchMap(visible => {\n this.toggleClass(visible);\n\n return of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n );\n }),\n switchMap(visible =>\n visible && this.mode !== 'overflow'\n ? obscured$.pipe(\n map(obscured => !obscured),\n take(2),\n )\n : of(visible),\n ),\n distinctUntilChanged(),\n takeUntil(destroy$),\n )\n .subscribe(visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n });\n\n this.hintService.register(this);\n }\n\n get id(): string | null {\n return this.tuiHintId ? this.tuiHintId + DESCRIBED_BY : null;\n }\n\n get host(): HTMLElement {\n return this.tuiHintHost ? this.tuiHintHost : this.elementRef.nativeElement;\n }\n\n getElementClientRect(): ClientRect {\n return this.host.getBoundingClientRect();\n }\n\n ngOnDestroy() {\n this.hintService.unregister(this);\n }\n\n protected showTooltip() {\n if (this.content === '') {\n return;\n }\n\n this.toggleClass(true);\n this.hintService.add(this);\n }\n\n protected hideTooltip() {\n this.toggleClass(false);\n this.hintService.remove(this);\n }\n\n private toggleClass(add: boolean) {\n if (add) {\n this.renderer.addClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n } else {\n this.renderer.removeClass(this.elementRef.nativeElement, HINT_HOVERED_CLASS);\n }\n }\n}\n","import {NgModule} from '@angular/core';\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":";;;;;;;;;IAkCa,kBAAkB,GAAG,gBAAgB;;IAMZ,oCAAe;IAgCjD,0BACwC,QAAmB,EACnC,UAAmC,EAC/B,WAA2B,EAEnD,QAA2B,EAG3B,SAA6B,EACF,cAAiC,EAG5D,UAA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D;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACRA;;;;;;"}
@@ -1,13 +1,13 @@
1
1
  import { __extends, __decorate, __param } from 'tslib';
2
- import { ElementRef, Inject, Input, Directive, NgModule } from '@angular/core';
3
- import { tuiDefaultProp, tuiRequiredSetter } from '@taiga-ui/cdk';
2
+ import { ElementRef, Inject, Optional, Input, Directive, NgModule } from '@angular/core';
3
+ import { TuiActiveZoneDirective, tuiDefaultProp, tuiRequiredSetter } from '@taiga-ui/cdk';
4
4
  import { AbstractTuiHint } from '@taiga-ui/core/abstract';
5
5
  import { TuiHintService } from '@taiga-ui/core/services';
6
6
 
7
7
  var TuiManualHintDirective = /** @class */ (function (_super) {
8
8
  __extends(TuiManualHintDirective, _super);
9
- function TuiManualHintDirective(elementRef, hintService) {
10
- var _this = _super.call(this, elementRef, hintService) || this;
9
+ function TuiManualHintDirective(elementRef, hintService, activeZone) {
10
+ var _this = _super.call(this, elementRef, hintService, activeZone) || this;
11
11
  _this.content = '';
12
12
  return _this;
13
13
  }
@@ -28,7 +28,8 @@ var TuiManualHintDirective = /** @class */ (function (_super) {
28
28
  };
29
29
  TuiManualHintDirective.ctorParameters = function () { return [
30
30
  { type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
31
- { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] }
31
+ { type: TuiHintService, decorators: [{ type: Inject, args: [TuiHintService,] }] },
32
+ { type: TuiActiveZoneDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiActiveZoneDirective,] }] }
32
33
  ]; };
33
34
  __decorate([
34
35
  Input('tuiManualHint'),
@@ -43,7 +44,9 @@ var TuiManualHintDirective = /** @class */ (function (_super) {
43
44
  selector: '[tuiManualHint]:not(ng-container)',
44
45
  }),
45
46
  __param(0, Inject(ElementRef)),
46
- __param(1, Inject(TuiHintService))
47
+ __param(1, Inject(TuiHintService)),
48
+ __param(2, Optional()),
49
+ __param(2, Inject(TuiActiveZoneDirective))
47
50
  ], TuiManualHintDirective);
48
51
  return TuiManualHintDirective;
49
52
  }(AbstractTuiHint));
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-manual-hint.js","sources":["ng://@taiga-ui/core/directives/manual-hint/manual-hint.directive.ts","ng://@taiga-ui/core/directives/manual-hint/manual-hint.module.ts","ng://@taiga-ui/core/directives/manual-hint/taiga-ui-core-directives-manual-hint.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Directive({\n selector: '[tuiManualHint]:not(ng-container)',\n})\nexport class TuiManualHintDirective extends AbstractTuiHint {\n @Input('tuiManualHint')\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input()\n @tuiRequiredSetter()\n set tuiManualHintShow(show: boolean) {\n if (show) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n }\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n ) {\n super(elementRef, hintService);\n }\n\n getElementClientRect(): ClientRect {\n return this.elementRef.nativeElement.getBoundingClientRect();\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiManualHintDirective} from './manual-hint.directive';\n\n@NgModule({\n declarations: [TuiManualHintDirective],\n exports: [TuiManualHintDirective],\n})\nexport class TuiManualHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAS4C,0CAAe;IAevD,gCACwB,UAAmC,EAC/B,WAA2B;QAFvD,YAII,kBAAM,UAAU,EAAE,WAAW,CAAC,SACjC;QAjBD,aAAO,GAAwB,EAAE,CAAC;;KAiBjC;IAbD,sBAAI,qDAAiB;aAArB,UAAsB,IAAa;YAC/B,IAAI,IAAI,EAAE;gBACN,IAAI,CAAC,WAAW,EAAE,CAAC;aACtB;iBAAM;gBACH,IAAI,CAAC,WAAW,EAAE,CAAC;aACtB;SACJ;;;OAAA;IASD,qDAAoB,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;KAChE;;gBARmC,UAAU,uBAAzC,MAAM,SAAC,UAAU;gBACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;;IAd1B;QAFC,KAAK,CAAC,eAAe,CAAC;QACtB,cAAc,EAAE;2DACiB;IAIlC;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;mEAOnB;IAbQ,sBAAsB;QAHlC,SAAS,CAAC;YACP,QAAQ,EAAE,mCAAmC;SAChD,CAAC;QAiBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;OAjBlB,sBAAsB,CAyBlC;IAAD,6BAAC;CAAA,CAzB2C,eAAe;;;ICF3D;KAAmC;IAAtB,mBAAmB;QAJ/B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACPA;;;;;;"}
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":";;;;;;;IAS4C,0CAAe;IAevD,gCACwB,UAAmC,EAC/B,WAA2B,EAGnD,UAAyC;QAL7C,YAOI,kBAAM,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,SAC7C;QApBD,aAAO,GAAwB,EAAE,CAAC;;KAoBjC;IAhBD,sBAAI,qDAAiB;aAArB,UAAsB,IAAa;YAC/B,IAAI,IAAI,EAAE;gBACN,IAAI,CAAC,WAAW,EAAE,CAAC;aACtB;iBAAM;gBACH,IAAI,CAAC,WAAW,EAAE,CAAC;aACtB;SACJ;;;OAAA;IAYD,qDAAoB,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,qBAAqB,EAAE,CAAC;KAChE;;gBAXmC,UAAU,uBAAzC,MAAM,SAAC,UAAU;gBACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;gBAGV,sBAAsB,uBAFjC,QAAQ,YACR,MAAM,SAAC,sBAAsB;;IAhBlC;QAFC,KAAK,CAAC,eAAe,CAAC;QACtB,cAAc,EAAE;2DACiB;IAIlC;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;mEAOnB;IAbQ,sBAAsB;QAHlC,SAAS,CAAC;YACP,QAAQ,EAAE,mCAAmC;SAChD,CAAC;QAiBO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;OAnB1B,sBAAsB,CA4BlC;IAAD,6BAAC;CAAA,CA5B2C,eAAe;;;ICD3D;KAAmC;IAAtB,mBAAmB;QAJ/B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;SACpC,CAAC;OACW,mBAAmB,CAAG;IAAD,0BAAC;CAAnC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-mask-accessor.js","sources":["ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.directive.ts","ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.module.ts","ng://@taiga-ui/core/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.ts"],"sourcesContent":["import {Directive, Optional} from '@angular/core';\nimport {\n ControlValueAccessor,\n DefaultValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\n\nexport function fallbackAccessorFactory(\n accessor: ReadonlyArray<ControlValueAccessor> | null,\n fallback: ControlValueAccessor,\n): ControlValueAccessor {\n return accessor ? accessor[0] : fallback;\n}\n\n@Directive({\n selector: 'input[tuiMaskAccessor]',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n deps: [[new Optional(), TUI_VALUE_ACCESSOR], DefaultValueAccessor],\n useFactory: fallbackAccessorFactory,\n multi: true,\n },\n ],\n})\nexport class TuiMaskAccessorDirective {}\n","import {NgModule} from '@angular/core';\nimport {TuiMaskAccessorDirective} from './mask-accessor.directive';\n\n/**\n * @internal\n */\n@NgModule({\n declarations: [TuiMaskAccessorDirective],\n exports: [TuiMaskAccessorDirective],\n})\nexport class TuiMaskAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;SAQgB,uBAAuB,CACnC,QAAoD,EACpD,QAA8B;IAE9B,OAAO,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;AAC7C,CAAC;;IAaD;KAAwC;IAA3B,wBAAwB;QAXpC,SAAS,CAAC;YACP,QAAQ,EAAE,wBAAwB;YAClC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,iBAAiB;oBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;oBAClE,UAAU,EAAE,uBAAuB;oBACnC,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACvBA;;;;IAOA;KAAqC;IAAxB,qBAAqB;QAJjC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;YACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACVA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-mask-accessor.js","sources":["ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.directive.ts","ng://@taiga-ui/core/directives/mask-accessor/mask-accessor.module.ts","ng://@taiga-ui/core/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.ts"],"sourcesContent":["import {Directive, Optional} from '@angular/core';\nimport {\n ControlValueAccessor,\n DefaultValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens';\n\nexport function fallbackAccessorFactory(\n accessor: ReadonlyArray<ControlValueAccessor> | null,\n fallback: ControlValueAccessor,\n): ControlValueAccessor {\n return accessor ? accessor[0] : fallback;\n}\n\n@Directive({\n selector: 'input[tuiMaskAccessor]',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n deps: [[new Optional(), TUI_VALUE_ACCESSOR], DefaultValueAccessor],\n useFactory: fallbackAccessorFactory,\n multi: true,\n },\n ],\n})\nexport class TuiMaskAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiMaskAccessorDirective} from './mask-accessor.directive';\n\n/**\n * @internal\n */\n@NgModule({\n declarations: [TuiMaskAccessorDirective],\n exports: [TuiMaskAccessorDirective],\n})\nexport class TuiMaskAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;SAQgB,uBAAuB,CACnC,QAAoD,EACpD,QAA8B;IAE9B,OAAO,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;AAC7C,CAAC;;IAaD;KAAwC;IAA3B,wBAAwB;QAXpC,SAAS,CAAC;YACP,QAAQ,EAAE,wBAAwB;YAClC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,iBAAiB;oBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,EAAE,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;oBAClE,UAAU,EAAE,uBAAuB;oBACnC,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;OACW,wBAAwB,CAAG;IAAD,+BAAC;CAAxC;;ACtBA;;;;IAOA;KAAqC;IAAxB,qBAAqB;QAJjC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;YACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACXA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-mode.js","sources":["ng://@taiga-ui/core/directives/mode/mode.directive.ts","ng://@taiga-ui/core/directives/mode/mode.module.ts","ng://@taiga-ui/core/directives/mode/taiga-ui-core-directives-mode.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiBrightness} from '@taiga-ui/core/types';\n\n@Directive({\n selector: '[tuiMode]',\n})\nexport class TuiModeDirective extends TuiController {\n @Input('tuiMode')\n mode: TuiBrightness | null = null;\n}\n","import {NgModule} from '@angular/core';\nimport {TuiModeDirective} from './mode.directive';\n\n@NgModule({\n declarations: [TuiModeDirective],\n exports: [TuiModeDirective],\n})\nexport class TuiModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAOsC,oCAAa;IAAnD;QAAA,qEAGC;QADG,UAAI,GAAyB,IAAI,CAAC;;KACrC;IADG;QADC,KAAK,CAAC,SAAS,CAAC;kDACiB;IAFzB,gBAAgB;QAH5B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;SACxB,CAAC;OACW,gBAAgB,CAG5B;IAAD,uBAAC;CAAA,CAHqC,aAAa;;;ICAnD;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-mode.js","sources":["ng://@taiga-ui/core/directives/mode/mode.directive.ts","ng://@taiga-ui/core/directives/mode/mode.module.ts","ng://@taiga-ui/core/directives/mode/taiga-ui-core-directives-mode.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {TuiController} from '@taiga-ui/cdk';\nimport {TuiBrightness} from '@taiga-ui/core/types';\n\n@Directive({\n selector: '[tuiMode]',\n})\nexport class TuiModeDirective extends TuiController {\n @Input('tuiMode')\n mode: TuiBrightness | null = null;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiModeDirective} from './mode.directive';\n\n@NgModule({\n declarations: [TuiModeDirective],\n exports: [TuiModeDirective],\n})\nexport class TuiModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAOsC,oCAAa;IAAnD;QAAA,qEAGC;QADG,UAAI,GAAyB,IAAI,CAAC;;KACrC;IADG;QADC,KAAK,CAAC,SAAS,CAAC;kDACiB;IAFzB,gBAAgB;QAH5B,SAAS,CAAC;YACP,QAAQ,EAAE,WAAW;SACxB,CAAC;OACW,gBAAgB,CAG5B;IAAD,uBAAC;CAAA,CAHqC,aAAa;;;ICCnD;KAA6B;IAAhB,aAAa;QAJzB,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC9B,CAAC;OACW,aAAa,CAAG;IAAD,oBAAC;CAA7B;;ACRA;;;;;;"}
@@ -9,7 +9,7 @@ import { filter, startWith, distinctUntilChanged, switchMap, delay, takeUntil }
9
9
  var TuiPointerHintDirective = /** @class */ (function (_super) {
10
10
  __extends(TuiPointerHintDirective, _super);
11
11
  function TuiPointerHintDirective(elementRef, hintService, destroy$, hoveredService) {
12
- var _this = _super.call(this, elementRef, hintService) || this;
12
+ var _this = _super.call(this, elementRef, hintService, null) || this;
13
13
  _this.destroy$ = destroy$;
14
14
  _this.tuiHintShowDelay = 0;
15
15
  _this.tuiHintHideDelay = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-pointer-hint.js","sources":["ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.directive.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.module.ts","ng://@taiga-ui/core/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n tuiRequiredSetter,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n filter,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPointerHint]:not(ng-container)',\n providers: [TuiDestroyService],\n})\nexport class TuiPointerHintDirective extends AbstractTuiHint {\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 0;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 0;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiPointerHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n content: PolymorpheusContent = '';\n\n private currentMouseRect = this.mousePositionToClientRect();\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n super(elementRef, hintService);\n\n const hint$ = hoveredService.createHovered$(this.elementRef.nativeElement).pipe(\n filter(() => !!this.content),\n startWith(false),\n distinctUntilChanged(),\n );\n\n hint$\n .pipe(\n switchMap(visible =>\n of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe({\n next: visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n },\n complete: () => {\n this.hideTooltip();\n },\n });\n\n this.initMouseMoveSubscription();\n }\n\n getElementClientRect(): ClientRect {\n return this.currentMouseRect;\n }\n\n private initMouseMoveSubscription() {\n const mouseMove$: Observable<MouseEvent> = typedFromEvent(\n this.elementRef.nativeElement,\n 'mousemove',\n );\n\n mouseMove$.pipe(takeUntil(this.destroy$)).subscribe(({clientX, clientY}) => {\n this.currentMouseRect = this.mousePositionToClientRect(clientX, clientY);\n });\n }\n\n private mousePositionToClientRect(x: number = 0, y: number = 0): ClientRect {\n return {\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n };\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiPointerHintDirective} from './pointer-hint.directive';\n\n@NgModule({\n declarations: [TuiPointerHintDirective],\n exports: [TuiPointerHintDirective],\n})\nexport class TuiPointerHintModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAyB6C,2CAAe;IA2BxD,iCACwB,UAAmC,EAC/B,WAA2B,EAElC,QAA2B,EACjB,cAAiC;QALhE,YAOI,kBAAM,UAAU,EAAE,WAAW,CAAC,SA+BjC;QAlCoB,cAAQ,GAAR,QAAQ,CAAmB;QA5BhD,sBAAgB,GAAG,CAAC,CAAC;QAIrB,sBAAgB,GAAG,CAAC,CAAC;QAgBrB,aAAO,GAAwB,EAAE,CAAC;QAE1B,sBAAgB,GAAG,KAAI,CAAC,yBAAyB,EAAE,CAAC;QAWxD,IAAM,KAAK,GAAG,cAAc,CAAC,cAAc,CAAC,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,IAAI,CAC3E,MAAM,CAAC,cAAM,OAAA,CAAC,CAAC,KAAI,CAAC,OAAO,GAAA,CAAC,EAC5B,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,CACzB,CAAC;Q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AAa;QAA5B,kBAAA,EAAA,KAAa;QAAE,kBAAA,EAAA,KAAa;QAC1D,OAAO;YACH,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,CAAC;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACZ,CAAC;KACL;;gBA/DmC,UAAU,uBAAzC,MAAM,SAAC,UAAU;gBACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;gBAEK,iBAAiB,uBAD3C,MAAM,SAAC,iBAAiB;gBAEkB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;IA7B7B;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;qEACI;IAIrB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;qEACI;IAKrB;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;iEAUnB;IArBQ,uBAAuB;QAJnC,SAAS,CAAC;YACP,QAAQ,EAAE,oCAAoC;YAC9C,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QA6BO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAhCrB,uBAAuB,CA4FnC;IAAD,8BAAC;CAAA,CA5F4C,eAAe;;;IClB5D;KAAoC;IAAvB,oBAAoB;QAJhC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-pointer-hint.js","sources":["ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.directive.ts","ng://@taiga-ui/core/directives/pointer-hint/pointer-hint.module.ts","ng://@taiga-ui/core/directives/pointer-hint/taiga-ui-core-directives-pointer-hint.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {\n tuiDefaultProp,\n TuiDestroyService,\n TuiHoveredService,\n tuiRequiredSetter,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiHint} from '@taiga-ui/core/abstract';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable, of} from 'rxjs';\nimport {\n delay,\n distinctUntilChanged,\n filter,\n startWith,\n switchMap,\n takeUntil,\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPointerHint]:not(ng-container)',\n providers: [TuiDestroyService],\n})\nexport class TuiPointerHintDirective extends AbstractTuiHint {\n @Input()\n @tuiDefaultProp()\n tuiHintShowDelay = 0;\n\n @Input()\n @tuiDefaultProp()\n tuiHintHideDelay = 0;\n\n // TODO: Remove null in 3.0\n @Input()\n @tuiRequiredSetter()\n set tuiPointerHint(value: PolymorpheusContent | null) {\n if (!value) {\n this.hideTooltip();\n this.content = '';\n\n return;\n }\n\n this.content = value;\n }\n\n content: PolymorpheusContent = '';\n\n private currentMouseRect = this.mousePositionToClientRect();\n\n constructor(\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TuiDestroyService)\n private readonly destroy$: TuiDestroyService,\n @Inject(TuiHoveredService) hoveredService: TuiHoveredService,\n ) {\n super(elementRef, hintService, null);\n\n const hint$ = hoveredService.createHovered$(this.elementRef.nativeElement).pipe(\n filter(() => !!this.content),\n startWith(false),\n distinctUntilChanged(),\n );\n\n hint$\n .pipe(\n switchMap(visible =>\n of(visible).pipe(\n delay(visible ? this.tuiHintShowDelay : this.tuiHintHideDelay),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe({\n next: visible => {\n if (visible) {\n this.showTooltip();\n } else {\n this.hideTooltip();\n }\n },\n complete: () => {\n this.hideTooltip();\n },\n });\n\n this.initMouseMoveSubscription();\n }\n\n getElementClientRect(): ClientRect {\n return this.currentMouseRect;\n }\n\n private initMouseMoveSubscription() {\n const mouseMove$: Observable<MouseEvent> = typedFromEvent(\n this.elementRef.nativeElement,\n 'mousemove',\n );\n\n mouseMove$.pipe(takeUntil(this.destroy$)).subscribe(({clientX, clientY}) => {\n this.currentMouseRect = this.mousePositionToClientRect(clientX, clientY);\n });\n }\n\n private mousePositionToClientRect(x: number = 0, y: number = 0): ClientRect {\n return {\n left: x,\n right: x,\n top: y,\n bottom: y,\n width: 0,\n height: 0,\n };\n }\n}\n","import {NgModule} from '@angular/core';\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":";;;;;;;;;IAyB6C,2CAAe;IA2BxD,iCACwB,UAAmC,EAC/B,WAA2B,EAElC,QAA2B,EACjB,cAAiC;QALhE,YAOI,kBAAM,UAAU,EAAE,WAAW,EAAE,IAAI,CAAC,SA+BvC;QAlCoB,cAAQ,GAAR,QAAQ,CAAmB;QA5BhD,sBAAgB,GAAG,CAAC,CAAC;QAIrB,sBAAgB,GAAG,CAAC,CAAC;QAgBrB,aAAO,GAAwB,EAAE,CAAC;QAE1B,sBAAgB,GAAG,KAAI,CAAC,yBAAyB,EAAE,CAAC;QAWxD,IAAM,KAAK,GAAG,cAAc,CAAC,cAAc,CAAC,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,IAAI,CAC3E,MAAM,CAAC,cAAM,OAAA,CAAC,CAAC,KAAI,CAAC,OAAO,GAAA,CAAC,EAC5B,SAAS,CAAC,KAAK,CAAC,EAChB,oBAAoB,EAAE,CACzB,CAAC;QAEF,KAAK;aACA,IAAI,CACD,SAAS,CAAC,UAAA,OAAO;YACb,OAAA,E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,OAAO;YACH,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;YACR,GAAG,EAAE,CAAC;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACZ,CAAC;KACL;;gBA/DmC,UAAU,uBAAzC,MAAM,SAAC,UAAU;gBACmB,cAAc,uBAAlD,MAAM,SAAC,cAAc;gBAEK,iBAAiB,uBAD3C,MAAM,SAAC,iBAAiB;gBAEkB,iBAAiB,uBAA3D,MAAM,SAAC,iBAAiB;;IA7B7B;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;qEACI;IAIrB;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;qEACI;IAKrB;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;iEAUnB;IArBQ,uBAAuB;QAJnC,SAAS,CAAC;YACP,QAAQ,EAAE,oCAAoC;YAC9C,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QA6BO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;QACtB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QAEzB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OAhCrB,uBAAuB,CA4FnC;IAAD,8BAAC;CAAA,CA5F4C,eAAe;;;ICjB5D;KAAoC;IAAvB,oBAAoB;QAJhC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;YACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;SACrC,CAAC;OACW,oBAAoB,CAAG;IAAD,2BAAC;CAApC;;ACRA;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-scroll-into-view.js","sources":["ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.directive.ts","ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.module.ts","ng://@taiga-ui/core/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiCustomEvent, TuiDestroyService, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW} from '@taiga-ui/core/constants';\nimport {Observable, timer} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Directive scrolls element into view inside tui-scrollbar\n */\n// @dynamic\n@Directive({\n selector: '[tuiScrollIntoView]',\n providers: [TuiDestroyService],\n})\nexport class TuiScrollIntoViewDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiScrollIntoView(scroll: boolean) {\n if (!scroll) {\n return;\n }\n\n // Timeout is necessary in order to give element render cycle to get into its final spot\n // (for example if it is inside dropdown box which has to be positioned first)\n timer(0)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.elementRef.nativeElement.dispatchEvent(\n tuiCustomEvent<Element>(\n TUI_SCROLL_INTO_VIEW,\n {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n },\n this.documentRef,\n ),\n );\n });\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService) private readonly destroy$: Observable<void>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\nimport {TuiScrollIntoViewDirective} from './scroll-into-view.directive';\n\n@NgModule({\n declarations: [TuiScrollIntoViewDirective],\n exports: [TuiScrollIntoViewDirective],\n})\nexport class TuiScrollIntoViewModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAOA;;;AAGA;;IA+BI,oCACyC,UAA+B,EACjC,WAAqB,EACZ,QAA0B;QAFjC,eAAU,GAAV,UAAU,CAAqB;QACjC,gBAAW,GAAX,WAAW,CAAU;QACZ,aAAQ,GAAR,QAAQ,CAAkB;KACtE;IA3BJ,sBAAI,yDAAiB;aAArB,UAAsB,MAAe;YAFrC,iBAuBC;YApBG,IAAI,CAAC,MAAM,EAAE;gBACT,OAAO;aACV;;;YAID,KAAK,CAAC,CAAC,CAAC;iBACH,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC9B,SAAS,CAAC;gBACP,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CACvC,cAAc,CACV,oBAAoB,EACpB;oBACI,OAAO,EAAE,IAAI;oBACb,MAAM,EAAE,KAAI,CAAC,UAAU,CAAC,aAAa;iBACxC,EACD,KAAI,CAAC,WAAW,CACnB,CACJ,CAAC;aACL,CAAC,CAAC;SACV;;;OAAA;;gBAGoD,UAAU,uBAA1D,MAAM,SAAC,UAAU;gBAC8B,QAAQ,uBAAvD,MAAM,SAAC,QAAQ;gBACsC,UAAU,uBAA/D,MAAM,SAAC,iBAAiB;;IA1B7B;QAFC,KAAK,EAAE;QACP,iBAAiB,EAAE;uEAsBnB;IAxBQ,0BAA0B;QAJtC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;YAC/B,SAAS,EAAE,CAAC,iBAAiB,CAAC;SACjC,CAAC;QA4BO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OA7BrB,0BAA0B,CA+BtC;IAAD,iCAAC;CA/BD;;;ICRA;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;YAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;SACxC,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACPA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-scroll-into-view.js","sources":["ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.directive.ts","ng://@taiga-ui/core/directives/scroll-into-view/scroll-into-view.module.ts","ng://@taiga-ui/core/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiCustomEvent, TuiDestroyService, tuiRequiredSetter} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW} from '@taiga-ui/core/constants';\nimport {Observable, timer} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Directive scrolls element into view inside tui-scrollbar\n */\n// @dynamic\n@Directive({\n selector: '[tuiScrollIntoView]',\n providers: [TuiDestroyService],\n})\nexport class TuiScrollIntoViewDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiScrollIntoView(scroll: boolean) {\n if (!scroll) {\n return;\n }\n\n // Timeout is necessary in order to give element render cycle to get into its final spot\n // (for example if it is inside dropdown box which has to be positioned first)\n timer(0)\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n this.elementRef.nativeElement.dispatchEvent(\n tuiCustomEvent<Element>(\n TUI_SCROLL_INTO_VIEW,\n {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n },\n this.documentRef,\n ),\n );\n });\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TuiDestroyService) private readonly destroy$: Observable<void>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiScrollIntoViewDirective} from './scroll-into-view.directive';\n\n@NgModule({\n declarations: [TuiScrollIntoViewDirective],\n exports: [TuiScrollIntoViewDirective],\n})\nexport class TuiScrollIntoViewModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAOA;;;AAGA;;IA+BI,oCACyC,UAA+B,EACjC,WAAqB,EACZ,QAA0B;QAFjC,eAAU,GAAV,UAAU,CAAqB;QACjC,gBAAW,GAAX,WAAW,CAAU;QACZ,aAAQ,GAAR,QAAQ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ng://@taiga-ui/core/directives/table-mode/table-mode.module.ts","ng://@taiga-ui/core/directives/table-mode/taiga-ui-core-directives-table-mode.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens';\n\n/**\n * TODO: Remove in v.3\n * @deprecated use @taiga-ui/addon-table\n */\n@Directive({\n selector: '[tuiTableMode]',\n providers: [\n {\n provide: TUI_TEXTFIELD_APPEARANCE,\n // TODO: remove in ivy compilation\n useValue: 'table', // TuiAppearance.Table\n },\n ],\n})\nexport class TuiTableModeDirective {}\n","import {NgModule} from '@angular/core';\nimport {TuiTableModeDirective} from './table-mode.directive';\n\n/** @deprecated */\n@NgModule({\n declarations: [TuiTableModeDirective],\n exports: [TuiTableModeDirective],\n})\nexport class TuiTableModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;IAcA;KAAqC;IAAxB,qBAAqB;QAVjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,wBAAwB;;oBAEjC,QAAQ,EAAE,OAAO;iBACpB;aACJ;SACJ,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACdA;;IAKA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-table-mode.js","sources":["ng://@taiga-ui/core/directives/table-mode/table-mode.directive.ts","ng://@taiga-ui/core/directives/table-mode/table-mode.module.ts","ng://@taiga-ui/core/directives/table-mode/taiga-ui-core-directives-table-mode.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens';\n\n/**\n * TODO: Remove in v.3\n * @deprecated use @taiga-ui/addon-table\n */\n@Directive({\n selector: '[tuiTableMode]',\n providers: [\n {\n provide: TUI_TEXTFIELD_APPEARANCE,\n // TODO: remove in ivy compilation\n useValue: 'table', // TuiAppearance.Table\n },\n ],\n})\nexport class TuiTableModeDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTableModeDirective} from './table-mode.directive';\n\n/** @deprecated */\n@NgModule({\n declarations: [TuiTableModeDirective],\n exports: [TuiTableModeDirective],\n})\nexport class TuiTableModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;IAcA;KAAqC;IAAxB,qBAAqB;QAVjC,SAAS,CAAC;YACP,QAAQ,EAAE,gBAAgB;YAC1B,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,wBAAwB;;oBAEjC,QAAQ,EAAE,OAAO;iBACpB;aACJ;SACJ,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACbA;;IAKA;KAAkC;IAArB,kBAAkB;QAJ9B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;ACTA;;;;;;"}