@taiga-ui/core 2.54.1 → 2.57.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 (756) hide show
  1. package/bundles/taiga-ui-core-abstract.umd.js +15 -15
  2. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  4. package/bundles/taiga-ui-core-animations.umd.js +138 -138
  5. package/bundles/taiga-ui-core-animations.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-animations.umd.min.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-alert.umd.js +12 -12
  8. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-alert.umd.min.js +1 -1
  10. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-button.umd.js +17 -17
  12. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  14. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
  16. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-data-list.umd.js +34 -34
  19. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-dialog.umd.js +24 -24
  22. package/bundles/taiga-ui-core-components-dialog.umd.js.map +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 +38 -38
  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.map +1 -1
  27. package/bundles/taiga-ui-core-components-error.umd.js +4 -4
  28. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-expand.umd.js +12 -12
  31. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-group.umd.js +19 -19
  34. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-group.umd.min.js +1 -1
  36. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-hints-host.umd.js +47 -47
  38. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +10 -10
  41. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-label.umd.js +4 -4
  44. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-link.umd.js +11 -11
  47. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  48. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-loader.umd.js +4 -4
  50. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  52. package/bundles/taiga-ui-core-components-notification.umd.js +8 -8
  53. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  54. package/bundles/taiga-ui-core-components-notification.umd.min.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
  56. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  58. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +7 -7
  59. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  60. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +2 -2
  62. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
  64. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +54 -54
  65. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  66. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +2 -2
  68. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core-components-root.umd.js +4 -4
  71. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  73. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +26 -26
  74. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  75. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-scrollbar.umd.js +8 -8
  77. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  78. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-svg.umd.js +15 -15
  80. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  81. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  82. package/bundles/taiga-ui-core-components-theme-night.umd.js +2 -2
  83. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  84. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  85. package/bundles/taiga-ui-core-components-tooltip.umd.js +7 -7
  86. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  87. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  88. package/bundles/taiga-ui-core-constants.umd.js +17 -17
  89. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  90. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  91. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-core-directives-color.umd.js +6 -6
  93. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  94. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-described-by.umd.js +8 -8
  96. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  97. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js +11 -11
  99. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  100. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-dropdown.umd.js +2 -2
  102. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  103. package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-core-directives-hint-controller.umd.js +8 -8
  105. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-hint.umd.js +7 -7
  108. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +4 -4
  111. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  112. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +1 -1
  114. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-core-directives-mode.umd.js +2 -2
  117. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  118. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +5 -5
  120. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  121. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +1 -1
  123. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  124. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-directives-table-mode.umd.js +2 -2
  126. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  127. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +35 -35
  129. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  130. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-core-directives-wrapper.umd.js +9 -9
  132. package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
  133. package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  135. package/bundles/taiga-ui-core-enums.umd.min.js.map +1 -1
  136. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  137. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  138. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  139. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +1 -1
  140. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  141. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  142. package/bundles/taiga-ui-core-observables.umd.js +2 -2
  143. package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
  144. package/bundles/taiga-ui-core-observables.umd.min.js.map +1 -1
  145. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +1 -1
  146. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  147. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  148. package/bundles/taiga-ui-core-pipes-format-number.umd.js +1 -1
  149. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  150. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  151. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +3 -3
  152. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  153. package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js.map +1 -1
  154. package/bundles/taiga-ui-core-pipes-month.umd.js +1 -1
  155. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  156. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  157. package/bundles/taiga-ui-core-pipes-pluralize.umd.js +1 -1
  158. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  159. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  160. package/bundles/taiga-ui-core-providers.umd.js +2 -2
  161. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  162. package/bundles/taiga-ui-core-providers.umd.min.js.map +1 -1
  163. package/bundles/taiga-ui-core-services.umd.js +7 -7
  164. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  165. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  166. package/bundles/taiga-ui-core-tokens.umd.js +40 -40
  167. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  168. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  169. package/bundles/taiga-ui-core-utils-dom.umd.js +16 -16
  170. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  171. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  172. package/bundles/taiga-ui-core-utils-format.umd.js +17 -17
  173. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  174. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  175. package/bundles/taiga-ui-core-utils-mask.umd.js +28 -28
  176. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  177. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  178. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +12 -12
  179. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  180. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  181. package/bundles/taiga-ui-core-utils-polyfills.umd.js +4 -4
  182. package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
  183. package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +1 -1
  184. package/components/alert/taiga-ui-core-components-alert.metadata.json +1 -1
  185. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  186. package/components/group/taiga-ui-core-components-group.metadata.json +1 -1
  187. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  188. package/constants/version.d.ts +1 -1
  189. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  190. package/esm2015/abstract/abstract-dropdown.js +12 -12
  191. package/esm2015/abstract/abstract-hint-options.js +2 -2
  192. package/esm2015/abstract/abstract-hint.js +4 -4
  193. package/esm2015/animations/animations.js +140 -140
  194. package/esm2015/components/alert/alert.component.js +11 -11
  195. package/esm2015/components/alert/alert.service.js +3 -3
  196. package/esm2015/components/button/button-options.js +3 -3
  197. package/esm2015/components/button/button.component.js +16 -16
  198. package/esm2015/components/calendar/calendar.component.js +2 -2
  199. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +7 -7
  200. package/esm2015/components/data-list/data-list.component.js +12 -12
  201. package/esm2015/components/data-list/data-list.directive.js +2 -2
  202. package/esm2015/components/data-list/opt-group.directive.js +5 -5
  203. package/esm2015/components/data-list/option/option.component.js +12 -12
  204. package/esm2015/components/dialog/dialog.component.js +12 -12
  205. package/esm2015/components/dialog/dialog.directive.js +4 -4
  206. package/esm2015/components/dialog/dialog.providers.js +7 -7
  207. package/esm2015/components/dialog/dialog.service.js +5 -5
  208. package/esm2015/components/dropdown-box/dropdown-box.component.js +39 -39
  209. package/esm2015/components/error/error.component.js +5 -5
  210. package/esm2015/components/expand/expand-content.directive.js +2 -2
  211. package/esm2015/components/expand/expand.component.js +12 -12
  212. package/esm2015/components/group/group-styles.component.js +2 -2
  213. package/esm2015/components/group/group.component.js +7 -5
  214. package/esm2015/components/group/group.directive.js +15 -15
  215. package/esm2015/components/hints-host/hint-box/hint-box.component.js +46 -46
  216. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  217. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  218. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  219. package/esm2015/components/label/label.component.js +5 -5
  220. package/esm2015/components/link/link.component.js +12 -12
  221. package/esm2015/components/loader/loader-options.js +3 -3
  222. package/esm2015/components/loader/loader.component.js +3 -3
  223. package/esm2015/components/notification/notification.component.js +9 -9
  224. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  225. package/esm2015/components/primitive-checkbox/checkbox-options.js +5 -5
  226. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  227. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  228. package/esm2015/components/primitive-textfield/primitive-textfield-options.js +4 -4
  229. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +28 -28
  230. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  231. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +13 -13
  232. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  233. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  234. package/esm2015/components/root/root.component.js +5 -5
  235. package/esm2015/components/scroll-controls/scroll-controls.component.js +4 -4
  236. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  237. package/esm2015/components/scroll-controls/scrollbar.directive.js +23 -23
  238. package/esm2015/components/scrollbar/scroll-ref.directive.js +2 -2
  239. package/esm2015/components/scrollbar/scrollable.directive.js +2 -2
  240. package/esm2015/components/scrollbar/scrollbar.component.js +7 -7
  241. package/esm2015/components/svg/svg.component.js +16 -16
  242. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  243. package/esm2015/components/tooltip/tooltip.component.js +8 -8
  244. package/esm2015/constants/decimal-symbols.js +2 -2
  245. package/esm2015/constants/default-icons-path.js +2 -2
  246. package/esm2015/constants/editing-keys.js +10 -10
  247. package/esm2015/constants/events.js +5 -5
  248. package/esm2015/constants/mask-caret-trap.js +2 -2
  249. package/esm2015/constants/version.js +2 -2
  250. package/esm2015/directives/color/color.directive.js +7 -7
  251. package/esm2015/directives/described-by/described-by.directive.js +5 -5
  252. package/esm2015/directives/described-by/described-by.providers.js +3 -3
  253. package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
  254. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  255. package/esm2015/directives/dropdown-controller/dropdown-controller.provider.js +2 -2
  256. package/esm2015/directives/dropdown-controller/dropdown-controller.token.js +2 -2
  257. package/esm2015/directives/hint/hint-options.js +3 -3
  258. package/esm2015/directives/hint/hint.directive.js +6 -6
  259. package/esm2015/directives/hint-controller/hint-controller.directive.js +7 -7
  260. package/esm2015/directives/hint-controller/hint-controller.provider.js +2 -2
  261. package/esm2015/directives/hint-controller/hint-controller.token.js +2 -2
  262. package/esm2015/directives/manual-hint/manual-hint-options.js +2 -2
  263. package/esm2015/directives/manual-hint/manual-hint.directive.js +4 -4
  264. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -2
  265. package/esm2015/directives/mode/mode.directive.js +3 -3
  266. package/esm2015/directives/pointer-hint/pointer-hint-options.js +2 -2
  267. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +5 -5
  268. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  269. package/esm2015/directives/table-mode/table-mode.directive.js +3 -3
  270. package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  271. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  272. package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
  273. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  274. package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  275. package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  276. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  277. package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  278. package/esm2015/directives/textfield-controller/textfield-size.directive.js +5 -5
  279. package/esm2015/directives/textfield-controller/textfield-type.directive.js +5 -5
  280. package/esm2015/directives/textfield-controller/textfield.controller.js +2 -2
  281. package/esm2015/directives/wrapper/wrapper.directive.js +10 -10
  282. package/esm2015/enums/appearance.js +1 -1
  283. package/esm2015/enums/base-color.js +1 -1
  284. package/esm2015/enums/button-shape.js +1 -1
  285. package/esm2015/enums/decimal.js +1 -1
  286. package/esm2015/enums/dropdown-animation.js +1 -1
  287. package/esm2015/enums/dropdown-width.js +1 -1
  288. package/esm2015/enums/hint-mode.js +1 -1
  289. package/esm2015/enums/interactive-state.js +1 -1
  290. package/esm2015/enums/link-mode.js +1 -1
  291. package/esm2015/enums/notification.js +1 -1
  292. package/esm2015/enums/orientation.js +1 -1
  293. package/esm2015/enums/range-state.js +1 -1
  294. package/esm2015/enums/support-color.js +1 -1
  295. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  296. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  297. package/esm2015/observables/smart-search.js +3 -3
  298. package/esm2015/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
  299. package/esm2015/pipes/format-number/format-number.pipe.js +2 -2
  300. package/esm2015/pipes/format-phone/format-phone.pipe.js +4 -4
  301. package/esm2015/pipes/month/month.pipe.js +2 -2
  302. package/esm2015/pipes/pluralize/pluralize.pipe.js +2 -2
  303. package/esm2015/providers/is-mobile-resolution.provider.js +2 -2
  304. package/esm2015/providers/mode.provider.js +2 -2
  305. package/esm2015/services/hint.service.js +2 -2
  306. package/esm2015/services/night-theme.service.js +4 -4
  307. package/esm2015/services/svg.service.js +4 -4
  308. package/esm2015/tokens/animation-options.js +2 -2
  309. package/esm2015/tokens/animations-duration.js +2 -2
  310. package/esm2015/tokens/assert-enabled.js +2 -2
  311. package/esm2015/tokens/data-list-accessor.js +2 -2
  312. package/esm2015/tokens/data-list-host.js +2 -2
  313. package/esm2015/tokens/document-or-shadow-root.js +2 -2
  314. package/esm2015/tokens/dropdown-directive.js +2 -2
  315. package/esm2015/tokens/element-ref.js +2 -2
  316. package/esm2015/tokens/first-day-of-week.js +2 -2
  317. package/esm2015/tokens/i18n.js +10 -10
  318. package/esm2015/tokens/icon-place.js +3 -3
  319. package/esm2015/tokens/icons-path.js +2 -2
  320. package/esm2015/tokens/icons.js +2 -2
  321. package/esm2015/tokens/is-mobile-resolution.js +3 -3
  322. package/esm2015/tokens/media.js +2 -2
  323. package/esm2015/tokens/mode.js +2 -2
  324. package/esm2015/tokens/notification-options.js +3 -3
  325. package/esm2015/tokens/number-format.js +3 -3
  326. package/esm2015/tokens/option-content.js +2 -2
  327. package/esm2015/tokens/ordered-short-week-days.js +2 -2
  328. package/esm2015/tokens/scroll-ref.js +2 -2
  329. package/esm2015/tokens/svg-content-processor.js +2 -2
  330. package/esm2015/tokens/svg-src-processor.js +2 -2
  331. package/esm2015/tokens/textfield-appearance.js +2 -2
  332. package/esm2015/tokens/textfield-host.js +2 -2
  333. package/esm2015/tokens/theme.js +3 -3
  334. package/esm2015/tokens/value-accessor.js +2 -2
  335. package/esm2015/utils/dom/are-css-vars-supported.js +2 -2
  336. package/esm2015/utils/dom/check-fixed-position.js +3 -3
  337. package/esm2015/utils/dom/get-safe-area-size.js +4 -4
  338. package/esm2015/utils/dom/process-icon.js +11 -11
  339. package/esm2015/utils/format/format-number.js +5 -5
  340. package/esm2015/utils/format/format-phone.js +9 -9
  341. package/esm2015/utils/format/get-fractional-part-padded.js +3 -3
  342. package/esm2015/utils/format/number-to-string-without-exp.js +3 -3
  343. package/esm2015/utils/format/other-decimal-symbol.js +2 -2
  344. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +11 -11
  345. package/esm2015/utils/mask/create-correction-mask.js +3 -3
  346. package/esm2015/utils/mask/create-number-mask.js +13 -13
  347. package/esm2015/utils/mask/masked-money-value-is-empty.js +3 -3
  348. package/esm2015/utils/mask/masked-number-string-to-number.js +2 -2
  349. package/esm2015/utils/miscellaneous/color-fallback.js +8 -8
  350. package/esm2015/utils/miscellaneous/icons-path-factory.js +3 -3
  351. package/esm2015/utils/miscellaneous/is-presumed-html-string.js +2 -2
  352. package/esm2015/utils/miscellaneous/size-bigger.js +3 -3
  353. package/esm2015/utils/polyfills/inner-html.js +5 -5
  354. package/esm5/abstract/abstract-dropdown.js +12 -12
  355. package/esm5/abstract/abstract-hint-options.js +2 -2
  356. package/esm5/abstract/abstract-hint.js +4 -4
  357. package/esm5/animations/animations.js +140 -140
  358. package/esm5/components/alert/alert.component.js +11 -11
  359. package/esm5/components/alert/alert.service.js +3 -3
  360. package/esm5/components/button/button-options.js +3 -3
  361. package/esm5/components/button/button.component.js +16 -16
  362. package/esm5/components/calendar/calendar.component.js +2 -2
  363. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +8 -8
  364. package/esm5/components/data-list/data-list.component.js +12 -12
  365. package/esm5/components/data-list/data-list.directive.js +2 -2
  366. package/esm5/components/data-list/opt-group.directive.js +5 -5
  367. package/esm5/components/data-list/option/option.component.js +12 -12
  368. package/esm5/components/dialog/dialog.component.js +12 -12
  369. package/esm5/components/dialog/dialog.directive.js +4 -4
  370. package/esm5/components/dialog/dialog.providers.js +7 -7
  371. package/esm5/components/dialog/dialog.service.js +5 -5
  372. package/esm5/components/dropdown-box/dropdown-box.component.js +39 -39
  373. package/esm5/components/error/error.component.js +5 -5
  374. package/esm5/components/expand/expand-content.directive.js +2 -2
  375. package/esm5/components/expand/expand.component.js +12 -12
  376. package/esm5/components/group/group-styles.component.js +2 -2
  377. package/esm5/components/group/group.component.js +5 -5
  378. package/esm5/components/group/group.directive.js +15 -15
  379. package/esm5/components/hints-host/hint-box/hint-box.component.js +46 -46
  380. package/esm5/components/hints-host/hints-host.component.js +3 -3
  381. package/esm5/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  382. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  383. package/esm5/components/label/label.component.js +5 -5
  384. package/esm5/components/link/link.component.js +12 -12
  385. package/esm5/components/loader/loader-options.js +3 -3
  386. package/esm5/components/loader/loader.component.js +3 -3
  387. package/esm5/components/notification/notification.component.js +9 -9
  388. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  389. package/esm5/components/primitive-checkbox/checkbox-options.js +5 -5
  390. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  391. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  392. package/esm5/components/primitive-textfield/primitive-textfield-options.js +4 -4
  393. package/esm5/components/primitive-textfield/primitive-textfield.component.js +28 -28
  394. package/esm5/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  395. package/esm5/components/primitive-textfield/textfield/textfield.component.js +13 -13
  396. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  397. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  398. package/esm5/components/root/root.component.js +5 -5
  399. package/esm5/components/scroll-controls/scroll-controls.component.js +4 -4
  400. package/esm5/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  401. package/esm5/components/scroll-controls/scrollbar.directive.js +23 -23
  402. package/esm5/components/scrollbar/scroll-ref.directive.js +2 -2
  403. package/esm5/components/scrollbar/scrollable.directive.js +2 -2
  404. package/esm5/components/scrollbar/scrollbar.component.js +7 -7
  405. package/esm5/components/svg/svg.component.js +16 -16
  406. package/esm5/components/theme-night/theme-night.component.js +3 -3
  407. package/esm5/components/tooltip/tooltip.component.js +8 -8
  408. package/esm5/constants/decimal-symbols.js +2 -2
  409. package/esm5/constants/default-icons-path.js +2 -2
  410. package/esm5/constants/editing-keys.js +10 -10
  411. package/esm5/constants/events.js +5 -5
  412. package/esm5/constants/mask-caret-trap.js +2 -2
  413. package/esm5/constants/version.js +2 -2
  414. package/esm5/directives/color/color.directive.js +7 -7
  415. package/esm5/directives/described-by/described-by.directive.js +5 -5
  416. package/esm5/directives/described-by/described-by.providers.js +5 -5
  417. package/esm5/directives/dropdown/dropdown.directive.js +3 -3
  418. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  419. package/esm5/directives/dropdown-controller/dropdown-controller.provider.js +2 -2
  420. package/esm5/directives/dropdown-controller/dropdown-controller.token.js +2 -2
  421. package/esm5/directives/hint/hint-options.js +3 -3
  422. package/esm5/directives/hint/hint.directive.js +6 -6
  423. package/esm5/directives/hint-controller/hint-controller.directive.js +7 -7
  424. package/esm5/directives/hint-controller/hint-controller.provider.js +2 -2
  425. package/esm5/directives/hint-controller/hint-controller.token.js +2 -2
  426. package/esm5/directives/manual-hint/manual-hint-options.js +2 -2
  427. package/esm5/directives/manual-hint/manual-hint.directive.js +4 -4
  428. package/esm5/directives/mask-accessor/mask-accessor.directive.js +2 -2
  429. package/esm5/directives/mode/mode.directive.js +3 -3
  430. package/esm5/directives/pointer-hint/pointer-hint-options.js +2 -2
  431. package/esm5/directives/pointer-hint/pointer-hint.directive.js +5 -5
  432. package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  433. package/esm5/directives/table-mode/table-mode.directive.js +3 -3
  434. package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  435. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  436. package/esm5/directives/textfield-controller/textfield-controller.provider.js +2 -2
  437. package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  438. package/esm5/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  439. package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  440. package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  441. package/esm5/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  442. package/esm5/directives/textfield-controller/textfield-size.directive.js +5 -5
  443. package/esm5/directives/textfield-controller/textfield-type.directive.js +5 -5
  444. package/esm5/directives/textfield-controller/textfield.controller.js +2 -2
  445. package/esm5/directives/wrapper/wrapper.directive.js +10 -10
  446. package/esm5/enums/appearance.js +1 -1
  447. package/esm5/enums/base-color.js +1 -1
  448. package/esm5/enums/button-shape.js +1 -1
  449. package/esm5/enums/decimal.js +1 -1
  450. package/esm5/enums/dropdown-animation.js +1 -1
  451. package/esm5/enums/dropdown-width.js +1 -1
  452. package/esm5/enums/hint-mode.js +1 -1
  453. package/esm5/enums/interactive-state.js +1 -1
  454. package/esm5/enums/link-mode.js +1 -1
  455. package/esm5/enums/notification.js +1 -1
  456. package/esm5/enums/orientation.js +1 -1
  457. package/esm5/enums/range-state.js +1 -1
  458. package/esm5/enums/support-color.js +1 -1
  459. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  460. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  461. package/esm5/observables/smart-search.js +3 -3
  462. package/esm5/pipes/calendar-sheet/calendar-sheet.pipe.js +2 -2
  463. package/esm5/pipes/format-number/format-number.pipe.js +2 -2
  464. package/esm5/pipes/format-phone/format-phone.pipe.js +4 -4
  465. package/esm5/pipes/month/month.pipe.js +2 -2
  466. package/esm5/pipes/pluralize/pluralize.pipe.js +2 -2
  467. package/esm5/providers/is-mobile-resolution.provider.js +2 -2
  468. package/esm5/providers/mode.provider.js +2 -2
  469. package/esm5/services/hint.service.js +2 -2
  470. package/esm5/services/night-theme.service.js +4 -4
  471. package/esm5/services/svg.service.js +4 -4
  472. package/esm5/tokens/animation-options.js +2 -2
  473. package/esm5/tokens/animations-duration.js +2 -2
  474. package/esm5/tokens/assert-enabled.js +2 -2
  475. package/esm5/tokens/data-list-accessor.js +2 -2
  476. package/esm5/tokens/data-list-host.js +2 -2
  477. package/esm5/tokens/document-or-shadow-root.js +2 -2
  478. package/esm5/tokens/dropdown-directive.js +2 -2
  479. package/esm5/tokens/element-ref.js +2 -2
  480. package/esm5/tokens/first-day-of-week.js +2 -2
  481. package/esm5/tokens/i18n.js +10 -10
  482. package/esm5/tokens/icon-place.js +3 -3
  483. package/esm5/tokens/icons-path.js +2 -2
  484. package/esm5/tokens/icons.js +2 -2
  485. package/esm5/tokens/is-mobile-resolution.js +3 -3
  486. package/esm5/tokens/media.js +2 -2
  487. package/esm5/tokens/mode.js +2 -2
  488. package/esm5/tokens/notification-options.js +3 -3
  489. package/esm5/tokens/number-format.js +3 -3
  490. package/esm5/tokens/option-content.js +2 -2
  491. package/esm5/tokens/ordered-short-week-days.js +2 -2
  492. package/esm5/tokens/scroll-ref.js +2 -2
  493. package/esm5/tokens/svg-content-processor.js +2 -2
  494. package/esm5/tokens/svg-src-processor.js +2 -2
  495. package/esm5/tokens/textfield-appearance.js +2 -2
  496. package/esm5/tokens/textfield-host.js +2 -2
  497. package/esm5/tokens/theme.js +3 -3
  498. package/esm5/tokens/value-accessor.js +2 -2
  499. package/esm5/utils/dom/are-css-vars-supported.js +2 -2
  500. package/esm5/utils/dom/check-fixed-position.js +3 -3
  501. package/esm5/utils/dom/get-safe-area-size.js +4 -4
  502. package/esm5/utils/dom/process-icon.js +11 -11
  503. package/esm5/utils/format/format-number.js +5 -5
  504. package/esm5/utils/format/format-phone.js +9 -9
  505. package/esm5/utils/format/get-fractional-part-padded.js +3 -3
  506. package/esm5/utils/format/number-to-string-without-exp.js +3 -3
  507. package/esm5/utils/format/other-decimal-symbol.js +2 -2
  508. package/esm5/utils/mask/create-auto-corrected-money-pipe.js +12 -12
  509. package/esm5/utils/mask/create-correction-mask.js +3 -3
  510. package/esm5/utils/mask/create-number-mask.js +13 -13
  511. package/esm5/utils/mask/masked-money-value-is-empty.js +3 -3
  512. package/esm5/utils/mask/masked-number-string-to-number.js +2 -2
  513. package/esm5/utils/miscellaneous/color-fallback.js +8 -8
  514. package/esm5/utils/miscellaneous/icons-path-factory.js +3 -3
  515. package/esm5/utils/miscellaneous/is-presumed-html-string.js +2 -2
  516. package/esm5/utils/miscellaneous/size-bigger.js +3 -3
  517. package/esm5/utils/polyfills/inner-html.js +5 -5
  518. package/fesm2015/taiga-ui-core-abstract.js +15 -15
  519. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  520. package/fesm2015/taiga-ui-core-animations.js +138 -138
  521. package/fesm2015/taiga-ui-core-animations.js.map +1 -1
  522. package/fesm2015/taiga-ui-core-components-alert.js +12 -12
  523. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  524. package/fesm2015/taiga-ui-core-components-button.js +17 -17
  525. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  526. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  527. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  528. package/fesm2015/taiga-ui-core-components-data-list.js +33 -33
  529. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  530. package/fesm2015/taiga-ui-core-components-dialog.js +24 -24
  531. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  532. package/fesm2015/taiga-ui-core-components-dropdown-box.js +38 -38
  533. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  534. package/fesm2015/taiga-ui-core-components-error.js +4 -4
  535. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  536. package/fesm2015/taiga-ui-core-components-expand.js +12 -12
  537. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  538. package/fesm2015/taiga-ui-core-components-group.js +21 -19
  539. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  540. package/fesm2015/taiga-ui-core-components-hints-host.js +47 -47
  541. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  542. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  543. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  544. package/fesm2015/taiga-ui-core-components-label.js +4 -4
  545. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  546. package/fesm2015/taiga-ui-core-components-link.js +11 -11
  547. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  548. package/fesm2015/taiga-ui-core-components-loader.js +4 -4
  549. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  550. package/fesm2015/taiga-ui-core-components-notification.js +8 -8
  551. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  552. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  553. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  554. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +7 -7
  555. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  556. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
  557. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  558. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +54 -54
  559. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  560. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  561. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  562. package/fesm2015/taiga-ui-core-components-root.js +4 -4
  563. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  564. package/fesm2015/taiga-ui-core-components-scroll-controls.js +26 -26
  565. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  566. package/fesm2015/taiga-ui-core-components-scrollbar.js +8 -8
  567. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  568. package/fesm2015/taiga-ui-core-components-svg.js +15 -15
  569. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  570. package/fesm2015/taiga-ui-core-components-theme-night.js +2 -2
  571. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  572. package/fesm2015/taiga-ui-core-components-tooltip.js +7 -7
  573. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  574. package/fesm2015/taiga-ui-core-constants.js +17 -17
  575. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  576. package/fesm2015/taiga-ui-core-directives-color.js +6 -6
  577. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  578. package/fesm2015/taiga-ui-core-directives-described-by.js +6 -6
  579. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  580. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js +11 -11
  581. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  582. package/fesm2015/taiga-ui-core-directives-dropdown.js +2 -2
  583. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  584. package/fesm2015/taiga-ui-core-directives-hint-controller.js +8 -8
  585. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  586. package/fesm2015/taiga-ui-core-directives-hint.js +7 -7
  587. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  588. package/fesm2015/taiga-ui-core-directives-manual-hint.js +4 -4
  589. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  590. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -1
  591. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  592. package/fesm2015/taiga-ui-core-directives-mode.js +2 -2
  593. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  594. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +5 -5
  595. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  596. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -1
  597. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  598. package/fesm2015/taiga-ui-core-directives-table-mode.js +2 -2
  599. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  600. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +35 -35
  601. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  602. package/fesm2015/taiga-ui-core-directives-wrapper.js +9 -9
  603. package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
  604. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  605. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  606. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  607. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  608. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  609. package/fesm2015/taiga-ui-core-observables.js +2 -2
  610. package/fesm2015/taiga-ui-core-observables.js.map +1 -1
  611. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  612. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  613. package/fesm2015/taiga-ui-core-pipes-format-number.js +1 -1
  614. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  615. package/fesm2015/taiga-ui-core-pipes-format-phone.js +3 -3
  616. package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
  617. package/fesm2015/taiga-ui-core-pipes-month.js +1 -1
  618. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  619. package/fesm2015/taiga-ui-core-pipes-pluralize.js +1 -1
  620. package/fesm2015/taiga-ui-core-pipes-pluralize.js.map +1 -1
  621. package/fesm2015/taiga-ui-core-providers.js +2 -2
  622. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  623. package/fesm2015/taiga-ui-core-services.js +7 -7
  624. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  625. package/fesm2015/taiga-ui-core-tokens.js +40 -40
  626. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  627. package/fesm2015/taiga-ui-core-utils-dom.js +16 -16
  628. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  629. package/fesm2015/taiga-ui-core-utils-format.js +17 -17
  630. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  631. package/fesm2015/taiga-ui-core-utils-mask.js +27 -27
  632. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  633. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +12 -12
  634. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  635. package/fesm2015/taiga-ui-core-utils-polyfills.js +4 -4
  636. package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
  637. package/fesm5/taiga-ui-core-abstract.js +15 -15
  638. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  639. package/fesm5/taiga-ui-core-animations.js +138 -138
  640. package/fesm5/taiga-ui-core-animations.js.map +1 -1
  641. package/fesm5/taiga-ui-core-components-alert.js +12 -12
  642. package/fesm5/taiga-ui-core-components-alert.js.map +1 -1
  643. package/fesm5/taiga-ui-core-components-button.js +17 -17
  644. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  645. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  646. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  647. package/fesm5/taiga-ui-core-components-data-list.js +34 -34
  648. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  649. package/fesm5/taiga-ui-core-components-dialog.js +24 -24
  650. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  651. package/fesm5/taiga-ui-core-components-dropdown-box.js +38 -38
  652. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  653. package/fesm5/taiga-ui-core-components-error.js +4 -4
  654. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  655. package/fesm5/taiga-ui-core-components-expand.js +12 -12
  656. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  657. package/fesm5/taiga-ui-core-components-group.js +19 -19
  658. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  659. package/fesm5/taiga-ui-core-components-hints-host.js +47 -47
  660. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  661. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +10 -10
  662. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  663. package/fesm5/taiga-ui-core-components-label.js +4 -4
  664. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  665. package/fesm5/taiga-ui-core-components-link.js +11 -11
  666. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  667. package/fesm5/taiga-ui-core-components-loader.js +4 -4
  668. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  669. package/fesm5/taiga-ui-core-components-notification.js +8 -8
  670. package/fesm5/taiga-ui-core-components-notification.js.map +1 -1
  671. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  672. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  673. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +7 -7
  674. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  675. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
  676. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  677. package/fesm5/taiga-ui-core-components-primitive-textfield.js +54 -54
  678. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  679. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  680. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  681. package/fesm5/taiga-ui-core-components-root.js +4 -4
  682. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  683. package/fesm5/taiga-ui-core-components-scroll-controls.js +26 -26
  684. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  685. package/fesm5/taiga-ui-core-components-scrollbar.js +8 -8
  686. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  687. package/fesm5/taiga-ui-core-components-svg.js +15 -15
  688. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  689. package/fesm5/taiga-ui-core-components-theme-night.js +2 -2
  690. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  691. package/fesm5/taiga-ui-core-components-tooltip.js +7 -7
  692. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  693. package/fesm5/taiga-ui-core-constants.js +17 -17
  694. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  695. package/fesm5/taiga-ui-core-directives-color.js +6 -6
  696. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  697. package/fesm5/taiga-ui-core-directives-described-by.js +8 -8
  698. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  699. package/fesm5/taiga-ui-core-directives-dropdown-controller.js +11 -11
  700. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  701. package/fesm5/taiga-ui-core-directives-dropdown.js +2 -2
  702. package/fesm5/taiga-ui-core-directives-dropdown.js.map +1 -1
  703. package/fesm5/taiga-ui-core-directives-hint-controller.js +8 -8
  704. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  705. package/fesm5/taiga-ui-core-directives-hint.js +7 -7
  706. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  707. package/fesm5/taiga-ui-core-directives-manual-hint.js +4 -4
  708. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  709. package/fesm5/taiga-ui-core-directives-mask-accessor.js +1 -1
  710. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  711. package/fesm5/taiga-ui-core-directives-mode.js +2 -2
  712. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  713. package/fesm5/taiga-ui-core-directives-pointer-hint.js +5 -5
  714. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  715. package/fesm5/taiga-ui-core-directives-scroll-into-view.js +1 -1
  716. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  717. package/fesm5/taiga-ui-core-directives-table-mode.js +2 -2
  718. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  719. package/fesm5/taiga-ui-core-directives-textfield-controller.js +35 -35
  720. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  721. package/fesm5/taiga-ui-core-directives-wrapper.js +9 -9
  722. package/fesm5/taiga-ui-core-directives-wrapper.js.map +1 -1
  723. package/fesm5/taiga-ui-core-enums.js.map +1 -1
  724. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  725. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  726. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  727. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  728. package/fesm5/taiga-ui-core-observables.js +2 -2
  729. package/fesm5/taiga-ui-core-observables.js.map +1 -1
  730. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  731. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  732. package/fesm5/taiga-ui-core-pipes-format-number.js +1 -1
  733. package/fesm5/taiga-ui-core-pipes-format-number.js.map +1 -1
  734. package/fesm5/taiga-ui-core-pipes-format-phone.js +3 -3
  735. package/fesm5/taiga-ui-core-pipes-format-phone.js.map +1 -1
  736. package/fesm5/taiga-ui-core-pipes-month.js +1 -1
  737. package/fesm5/taiga-ui-core-pipes-month.js.map +1 -1
  738. package/fesm5/taiga-ui-core-pipes-pluralize.js +1 -1
  739. package/fesm5/taiga-ui-core-pipes-pluralize.js.map +1 -1
  740. package/fesm5/taiga-ui-core-providers.js +2 -2
  741. package/fesm5/taiga-ui-core-providers.js.map +1 -1
  742. package/fesm5/taiga-ui-core-services.js +7 -7
  743. package/fesm5/taiga-ui-core-services.js.map +1 -1
  744. package/fesm5/taiga-ui-core-tokens.js +40 -40
  745. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  746. package/fesm5/taiga-ui-core-utils-dom.js +16 -16
  747. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  748. package/fesm5/taiga-ui-core-utils-format.js +17 -17
  749. package/fesm5/taiga-ui-core-utils-format.js.map +1 -1
  750. package/fesm5/taiga-ui-core-utils-mask.js +28 -28
  751. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  752. package/fesm5/taiga-ui-core-utils-miscellaneous.js +12 -12
  753. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  754. package/fesm5/taiga-ui-core-utils-polyfills.js +4 -4
  755. package/fesm5/taiga-ui-core-utils-polyfills.js.map +1 -1
  756. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-root.js","sources":["ng://@taiga-ui/core/components/root/root.component.ts","ng://@taiga-ui/core/components/root/root.module.ts","ng://@taiga-ui/core/components/root/taiga-ui-core-components-root.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, ElementRef, Inject} from '@angular/core';\nimport {TUI_DIALOGS, TUI_IS_MOBILE, tuiAssert} from '@taiga-ui/cdk';\nimport {VERSION} from '@taiga-ui/core/constants';\nimport {TUI_IS_MOBILE_RES_PROVIDER} from '@taiga-ui/core/providers';\nimport {\n TUI_ANIMATIONS_DURATION,\n TUI_ASSERT_ENABLED,\n TUI_IS_MOBILE_RES,\n TUI_THEME,\n} from '@taiga-ui/core/tokens';\nimport {merge, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: 'tui-root',\n templateUrl: 'root.template.html',\n styleUrls: ['./root.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TUI_IS_MOBILE_RES_PROVIDER],\n host: {\n 'data-tui-version': VERSION,\n '[style.--tui-duration]': 'duration + \"ms\"',\n '($.class._mobile)': 'isMobileRes$',\n },\n})\nexport class TuiRootComponent {\n readonly scrollbars$: Observable<boolean> =\n this.dialogs.length && !this.isMobile\n ? merge(...this.dialogs).pipe(map(({length}) => !length))\n : of(!this.isMobile);\n\n constructor(\n @Inject(TUI_ANIMATIONS_DURATION) readonly duration: number,\n @Inject(ElementRef) readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_DIALOGS)\n readonly dialogs: ReadonlyArray<Observable<readonly unknown[]>>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_ASSERT_ENABLED) enabled: boolean,\n @Inject(TUI_IS_MOBILE_RES) readonly isMobileRes$: Observable<boolean>,\n @Inject(DOCUMENT) {body}: Document,\n @Inject(TUI_THEME) theme: string,\n ) {\n tuiAssert.enabled = enabled;\n body.setAttribute('data-tui-theme', theme.toLowerCase());\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertHostModule,\n TuiDialogHostModule,\n TuiDragModule,\n TuiDropdownHostModule,\n} from '@taiga-ui/cdk';\nimport {TuiHintsHostModule} from '@taiga-ui/core/components/hints-host';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\nimport {TuiSvgDefsHostModule} from '@taiga-ui/core/internal/svg-defs-host';\nimport {EventPluginsModule} from '@tinkoff/ng-event-plugins';\n\nimport {TuiRootComponent} from './root.component';\n\n@NgModule({\n imports: [\n CommonModule,\n EventPluginsModule,\n TuiDragModule,\n TuiDropdownHostModule,\n TuiSvgDefsHostModule,\n TuiHintsHostModule,\n TuiDialogHostModule,\n TuiAlertHostModule,\n TuiScrollControlsModule,\n ],\n declarations: [TuiRootComponent],\n exports: [TuiRootComponent],\n})\nexport class TuiRootModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAcA;IAaa,gBAAgB,GAA7B,MAAa,gBAAgB;IAMzB,YAC8C,QAAgB,EAC7B,UAAmC,EAEvD,OAAsD,EACvB,QAAiB,EAC7B,OAAgB,EACR,YAAiC,EACnD,EAAC,IAAI,EAAW,EACf,KAAa;QARU,aAAQ,GAAR,QAAQ,CAAQ;QAC7B,eAAU,GAAV,UAAU,CAAyB;QAEvD,YAAO,GAAP,OAAO,CAA+C;QACvB,aAAQ,GAAR,QAAQ,CAAS;QAErB,iBAAY,GAAZ,YAAY,CAAqB;QAZhE,gBAAW,GAChB,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ;cAC/B,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,MAAM,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;cACvD,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAazB,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;QAC5B,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;KAC5D;EACJ;;yCAbQ,MAAM,SAAC,uBAAuB;YACU,UAAU,uBAAlD,MAAM,SAAC,UAAU;4CACjB,MAAM,SAAC,WAAW;0CAElB,MAAM,SAAC,aAAa;0CACpB,MAAM,SAAC,kBAAkB;YACwB,UAAU,uBAA3D,MAAM,SAAC,iBAAiB;YACC,QAAQ,uBAAjC,MAAM,SAAC,QAAQ;yCACf,MAAM,SAAC,SAAS;;AAfZ,gBAAgB;IAZ5B,SAAS,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,yvBAAiC;QAEjC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,0BAA0B,CAAC;QACvC,IAAI,EAAE;YACF,kBAAkB,EAAE,OAAO;YAC3B,wBAAwB,EAAE,iBAAiB;YAC3C,mBAAmB,EAAE,cAAc;SACtC;;KACJ,CAAC;IAQO,WAAA,MAAM,CAAC,uBAAuB,CAAC,CAAA;IAC/B,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,WAAW,CAAC,CAAA;IAEnB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IACrB,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAC1B,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;GAfb,gBAAgB,CAoB5B;;ICjBY,aAAa,GAA1B,MAAa,aAAa;EAAG;AAAhB,aAAa;IAfzB,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,kBAAkB;YAClB,aAAa;YACb,qBAAqB;YACrB,oBAAoB;YACpB,kBAAkB;YAClB,mBAAmB;YACnB,kBAAkB;YAClB,uBAAuB;SAC1B;QACD,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC9B,CAAC;GACW,aAAa,CAAG;;AC9B7B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-root.js","sources":["ng://@taiga-ui/core/components/root/root.component.ts","ng://@taiga-ui/core/components/root/root.module.ts","ng://@taiga-ui/core/components/root/taiga-ui-core-components-root.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, ElementRef, Inject} from '@angular/core';\nimport {TUI_DIALOGS, TUI_IS_MOBILE, tuiAssert} from '@taiga-ui/cdk';\nimport {VERSION} from '@taiga-ui/core/constants';\nimport {TUI_IS_MOBILE_RES_PROVIDER} from '@taiga-ui/core/providers';\nimport {\n TUI_ANIMATIONS_DURATION,\n TUI_ASSERT_ENABLED,\n TUI_IS_MOBILE_RES,\n TUI_THEME,\n} from '@taiga-ui/core/tokens';\nimport {merge, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: `tui-root`,\n templateUrl: `root.template.html`,\n styleUrls: [`./root.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TUI_IS_MOBILE_RES_PROVIDER],\n host: {\n 'data-tui-version': VERSION,\n '[style.--tui-duration]': `duration + \"ms\"`,\n '($.class._mobile)': `isMobileRes$`,\n },\n})\nexport class TuiRootComponent {\n readonly scrollbars$: Observable<boolean> =\n this.dialogs.length && !this.isMobile\n ? merge(...this.dialogs).pipe(map(({length}) => !length))\n : of(!this.isMobile);\n\n constructor(\n @Inject(TUI_ANIMATIONS_DURATION) readonly duration: number,\n @Inject(ElementRef) readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_DIALOGS)\n readonly dialogs: ReadonlyArray<Observable<readonly unknown[]>>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_ASSERT_ENABLED) enabled: boolean,\n @Inject(TUI_IS_MOBILE_RES) readonly isMobileRes$: Observable<boolean>,\n @Inject(DOCUMENT) {body}: Document,\n @Inject(TUI_THEME) theme: string,\n ) {\n tuiAssert.enabled = enabled;\n body.setAttribute(`data-tui-theme`, theme.toLowerCase());\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertHostModule,\n TuiDialogHostModule,\n TuiDragModule,\n TuiDropdownHostModule,\n} from '@taiga-ui/cdk';\nimport {TuiHintsHostModule} from '@taiga-ui/core/components/hints-host';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\nimport {TuiSvgDefsHostModule} from '@taiga-ui/core/internal/svg-defs-host';\nimport {EventPluginsModule} from '@tinkoff/ng-event-plugins';\n\nimport {TuiRootComponent} from './root.component';\n\n@NgModule({\n imports: [\n CommonModule,\n EventPluginsModule,\n TuiDragModule,\n TuiDropdownHostModule,\n TuiSvgDefsHostModule,\n TuiHintsHostModule,\n TuiDialogHostModule,\n TuiAlertHostModule,\n TuiScrollControlsModule,\n ],\n declarations: [TuiRootComponent],\n exports: [TuiRootComponent],\n})\nexport class TuiRootModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAcA;IAaa,gBAAgB,GAA7B,MAAa,gBAAgB;IAMzB,YAC8C,QAAgB,EAC7B,UAAmC,EAEvD,OAAsD,EACvB,QAAiB,EAC7B,OAAgB,EACR,YAAiC,EACnD,EAAC,IAAI,EAAW,EACf,KAAa;QARU,aAAQ,GAAR,QAAQ,CAAQ;QAC7B,eAAU,GAAV,UAAU,CAAyB;QAEvD,YAAO,GAAP,OAAO,CAA+C;QACvB,aAAQ,GAAR,QAAQ,CAAS;QAErB,iBAAY,GAAZ,YAAY,CAAqB;QAZhE,gBAAW,GAChB,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ;cAC/B,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAC,MAAM,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;cACvD,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAazB,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;QAC5B,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;KAC5D;EACJ;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B;;;;;;"}
@@ -19,7 +19,7 @@ let TuiScrollControlsComponent = class TuiScrollControlsComponent {
19
19
  this.animationFrame$ = animationFrame$;
20
20
  this.mode$ = mode$;
21
21
  this.refresh$ = this.animationFrame$.pipe(throttleTime(300), map(() => this.scrollbars), startWith([false, false]), distinctUntilChanged((a, b) => a[0] === b[0] && a[1] === b[1]), tuiZoneOptimized(this.ngZone));
22
- this.animation = Object.assign({ value: '' }, this.options);
22
+ this.animation = Object.assign({ value: `` }, this.options);
23
23
  }
24
24
  get scrollbars() {
25
25
  const { clientHeight, scrollHeight, clientWidth, scrollWidth } = this.scrollRef
@@ -41,13 +41,13 @@ TuiScrollControlsComponent.ctorParameters = () => [
41
41
  ];
42
42
  TuiScrollControlsComponent = __decorate([
43
43
  Component({
44
- selector: 'tui-scroll-controls',
44
+ selector: `tui-scroll-controls`,
45
45
  template: "<ng-container *tuiLet=\"refresh$ | async as bars\">\n <div\n *ngIf=\"bars[0]\"\n tuiScrollbarWrapper\n class=\"bar bar_vertical\"\n [@tuiFadeIn]=\"animation\"\n [class.bar_has-horizontal]=\"bars[1]\"\n >\n <div\n tuiScrollbar=\"vertical\"\n class=\"thumb\"\n ></div>\n </div>\n <div\n *ngIf=\"bars[1]\"\n tuiScrollbarWrapper\n class=\"bar bar_horizontal\"\n [@tuiFadeIn]=\"animation\"\n [class.bar_has-vertical]=\"bars[0]\"\n >\n <div\n tuiScrollbar=\"horizontal\"\n class=\"thumb\"\n ></div>\n </div>\n</ng-container>\n",
46
46
  changeDetection: ChangeDetectionStrategy.OnPush,
47
47
  animations: [tuiFadeIn],
48
48
  providers: [MODE_PROVIDER],
49
49
  host: {
50
- '($.data-mode.attr)': 'mode$',
50
+ '($.data-mode.attr)': `mode$`,
51
51
  },
52
52
  styles: [":host{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);float:left;margin-right:calc(-100% + 1px);-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.bar{position:absolute;right:0;bottom:0;pointer-events:auto}.bar_vertical{top:0;width:.875rem}.bar_horizontal{left:0;height:.875rem}.bar_has-horizontal{bottom:.5rem}.bar_has-vertical{right:.5rem}.thumb{transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;background:var(--tui-text-01);background-clip:content-box;box-sizing:border-box;transition-property:width,height;opacity:.2}.thumb:hover{opacity:.24}.thumb:active{opacity:.48}:host[data-mode=onDark] .thumb{background-color:var(--tui-text-01-night)}.bar_vertical .thumb{right:0;width:.75rem;min-height:1.25rem}.bar_vertical .thumb:active,.bar_vertical:hover .thumb{width:.875rem}.bar_horizontal .thumb{bottom:0;height:.75rem;min-width:1.25rem}.bar_horizontal .thumb:active,.bar_horizontal:hover .thumb{height:.875rem}"]
53
53
  }),
@@ -70,12 +70,12 @@ let TuiScrollbarDirective = class TuiScrollbarDirective {
70
70
  this.windowRef = windowRef;
71
71
  this.elementRef = elementRef;
72
72
  this.viewportScroller = viewportScroller;
73
- this.tuiScrollbar = 'vertical';
73
+ this.tuiScrollbar = `vertical`;
74
74
  const { nativeElement } = this.elementRef;
75
- const mousedown$ = typedFromEvent(nativeElement, 'mousedown');
76
- const mousemove$ = typedFromEvent(this.documentRef, 'mousemove');
77
- const mouseup$ = typedFromEvent(this.documentRef, 'mouseup');
78
- const mousedownWrapper$ = typedFromEvent(wrapper.nativeElement, 'mousedown');
75
+ const mousedown$ = typedFromEvent(nativeElement, `mousedown`);
76
+ const mousemove$ = typedFromEvent(this.documentRef, `mousemove`);
77
+ const mouseup$ = typedFromEvent(this.documentRef, `mouseup`);
78
+ const mousedownWrapper$ = typedFromEvent(wrapper.nativeElement, `mousedown`);
79
79
  merge(mousedownWrapper$.pipe(preventDefault(), map(event => this.getScrolled(event, 0.5, 0.5))), mousedown$.pipe(preventDefault(), stopPropagation(), switchMap(event => {
80
80
  const rect = nativeElement.getBoundingClientRect();
81
81
  const vertical = getOffsetVertical(event, rect);
@@ -87,46 +87,46 @@ let TuiScrollbarDirective = class TuiScrollbarDirective {
87
87
  const [x, y] = this.viewportScroller.getScrollPosition();
88
88
  if (!this.container) {
89
89
  this.viewportScroller.scrollToPosition([
90
- this.tuiScrollbar === 'vertical' ? x : scrollLeft,
91
- this.tuiScrollbar === 'vertical' ? scrollTop : y,
90
+ this.tuiScrollbar === `vertical` ? x : scrollLeft,
91
+ this.tuiScrollbar === `vertical` ? scrollTop : y,
92
92
  ]);
93
93
  return;
94
94
  }
95
- if (this.tuiScrollbar === 'vertical') {
96
- renderer.setProperty(this.container.nativeElement, 'scrollTop', scrollTop);
95
+ if (this.tuiScrollbar === `vertical`) {
96
+ renderer.setProperty(this.container.nativeElement, `scrollTop`, scrollTop);
97
97
  }
98
98
  else {
99
- renderer.setProperty(this.container.nativeElement, 'scrollLeft', scrollLeft);
99
+ renderer.setProperty(this.container.nativeElement, `scrollLeft`, scrollLeft);
100
100
  }
101
101
  });
102
- merge(fromEvent(this.container ? this.container.nativeElement : this.windowRef, 'scroll'), animationFrame$.pipe(throttleTime(POLLING_TIME)))
102
+ merge(fromEvent(this.container ? this.container.nativeElement : this.windowRef, `scroll`), animationFrame$.pipe(throttleTime(POLLING_TIME)))
103
103
  .pipe(tuiZonefree(ngZone), takeUntil(destroy$))
104
104
  .subscribe(() => {
105
- if (this.tuiScrollbar === 'vertical') {
106
- renderer.setStyle(nativeElement, 'top', `${this.thumb * 100}%`);
107
- renderer.setStyle(nativeElement, 'height', `${this.view * 100}%`);
105
+ if (this.tuiScrollbar === `vertical`) {
106
+ renderer.setStyle(nativeElement, `top`, `${this.thumb * 100}%`);
107
+ renderer.setStyle(nativeElement, `height`, `${this.view * 100}%`);
108
108
  }
109
109
  else {
110
- renderer.setStyle(nativeElement, 'left', `${this.thumb * 100}%`);
111
- renderer.setStyle(nativeElement, 'width', `${this.view * 100}%`);
110
+ renderer.setStyle(nativeElement, `left`, `${this.thumb * 100}%`);
111
+ renderer.setStyle(nativeElement, `width`, `${this.view * 100}%`);
112
112
  }
113
113
  });
114
114
  }
115
115
  get scrolled() {
116
116
  const { scrollTop, scrollHeight, clientHeight, scrollLeft, scrollWidth, clientWidth, } = this.computedContainer;
117
- return this.tuiScrollbar === 'vertical'
117
+ return this.tuiScrollbar === `vertical`
118
118
  ? scrollTop / (scrollHeight - clientHeight)
119
119
  : scrollLeft / (scrollWidth - clientWidth);
120
120
  }
121
121
  get compensation() {
122
122
  const { clientHeight, scrollHeight, clientWidth, scrollWidth } = this.computedContainer;
123
123
  if (((clientHeight * clientHeight) / scrollHeight > MIN_WIDTH &&
124
- this.tuiScrollbar === 'vertical') ||
124
+ this.tuiScrollbar === `vertical`) ||
125
125
  ((clientWidth * clientWidth) / scrollWidth > MIN_WIDTH &&
126
- this.tuiScrollbar === 'horizontal')) {
126
+ this.tuiScrollbar === `horizontal`)) {
127
127
  return 0;
128
128
  }
129
- return this.tuiScrollbar === 'vertical'
129
+ return this.tuiScrollbar === `vertical`
130
130
  ? MIN_WIDTH / clientHeight
131
131
  : MIN_WIDTH / clientWidth;
132
132
  }
@@ -136,7 +136,7 @@ let TuiScrollbarDirective = class TuiScrollbarDirective {
136
136
  }
137
137
  get view() {
138
138
  const { clientHeight, scrollHeight, clientWidth, scrollWidth } = this.computedContainer;
139
- return this.tuiScrollbar === 'vertical'
139
+ return this.tuiScrollbar === `vertical`
140
140
  ? Math.ceil((clientHeight / scrollHeight) * 100) / 100
141
141
  : Math.ceil((clientWidth / scrollWidth) * 100) / 100;
142
142
  }
@@ -172,7 +172,7 @@ __decorate([
172
172
  ], TuiScrollbarDirective.prototype, "tuiScrollbar", void 0);
173
173
  TuiScrollbarDirective = __decorate([
174
174
  Directive({
175
- selector: '[tuiScrollbar]',
175
+ selector: `[tuiScrollbar]`,
176
176
  providers: [TuiDestroyService],
177
177
  }),
178
178
  __param(0, Inject(NgZone)),
@@ -198,7 +198,7 @@ let TuiScrollbarWrapperDirective = class TuiScrollbarWrapperDirective {
198
198
  };
199
199
  TuiScrollbarWrapperDirective = __decorate([
200
200
  Directive({
201
- selector: '[tuiScrollbarWrapper]',
201
+ selector: `[tuiScrollbarWrapper]`,
202
202
  providers: [
203
203
  {
204
204
  provide: TUI_ELEMENT_REF,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-scroll-controls.js","sources":["ng://@taiga-ui/core/components/scroll-controls/scroll-controls.component.ts","ng://@taiga-ui/core/components/scroll-controls/scrollbar.directive.ts","ng://@taiga-ui/core/components/scroll-controls/scrollbar-wrapper.directive.ts","ng://@taiga-ui/core/components/scroll-controls/scroll-controls.module.ts","ng://@taiga-ui/core/components/scroll-controls/taiga-ui-core-components-scroll-controls.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n NgZone,\n Optional,\n} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {tuiFadeIn} from '@taiga-ui/core/animations';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_ANIMATION_OPTIONS, TUI_MODE, TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, startWith, throttleTime} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: 'tui-scroll-controls',\n templateUrl: './scroll-controls.template.html',\n styleUrls: ['./scroll-controls.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiFadeIn],\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': 'mode$',\n },\n})\nexport class TuiScrollControlsComponent {\n readonly refresh$ = this.animationFrame$.pipe(\n throttleTime(300),\n map(() => this.scrollbars),\n startWith([false, false]),\n distinctUntilChanged((a, b) => a[0] === b[0] && a[1] === b[1]),\n tuiZoneOptimized(this.ngZone),\n );\n\n readonly animation = {\n value: '',\n ...this.options,\n } as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Optional()\n @Inject(TUI_SCROLL_REF)\n private readonly scrollRef: ElementRef<HTMLElement> | null,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n ) {}\n\n private get scrollbars(): [boolean, boolean] {\n const {clientHeight, scrollHeight, clientWidth, scrollWidth} = this.scrollRef\n ? this.scrollRef.nativeElement\n : this.documentRef.documentElement;\n\n return [\n Math.ceil((clientHeight / scrollHeight) * 100) < 100,\n Math.ceil((clientWidth / scrollWidth) * 100) < 100,\n ];\n }\n}\n","import {DOCUMENT, ViewportScroller} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n Inject,\n Input,\n NgZone,\n Optional,\n Renderer2,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {\n POLLING_TIME,\n preventDefault,\n stopPropagation,\n TuiDestroyService,\n tuiZonefree,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF, TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\nimport {TuiOrientationT} from '@taiga-ui/core/types';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {map, switchMap, takeUntil, throttleTime} from 'rxjs/operators';\n\nconst MIN_WIDTH = 24;\n\n// @dynamic\n@Directive({\n selector: '[tuiScrollbar]',\n providers: [TuiDestroyService],\n})\nexport class TuiScrollbarDirective {\n @Input()\n tuiScrollbar: TuiOrientationT = 'vertical';\n\n constructor(\n @Inject(NgZone) ngZone: NgZone,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n @Inject(TUI_ELEMENT_REF) private readonly wrapper: ElementRef<HTMLElement>,\n @Optional()\n @Inject(TUI_SCROLL_REF)\n private readonly container: ElementRef<HTMLElement> | null,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(ViewportScroller) private readonly viewportScroller: ViewportScroller,\n ) {\n const {nativeElement} = this.elementRef;\n const mousedown$ = typedFromEvent(nativeElement, 'mousedown');\n const mousemove$ = typedFromEvent(this.documentRef, 'mousemove');\n const mouseup$ = typedFromEvent(this.documentRef, 'mouseup');\n const mousedownWrapper$ = typedFromEvent(wrapper.nativeElement, 'mousedown');\n\n merge(\n mousedownWrapper$.pipe(\n preventDefault(),\n map(event => this.getScrolled(event, 0.5, 0.5)),\n ),\n mousedown$.pipe(\n preventDefault(),\n stopPropagation(),\n switchMap(event => {\n const rect = nativeElement.getBoundingClientRect();\n const vertical = getOffsetVertical(event, rect);\n const horizontal = getOffsetHorizontal(event, rect);\n\n return mousemove$.pipe(\n map(event => this.getScrolled(event, vertical, horizontal)),\n takeUntil(mouseup$),\n );\n }),\n ),\n )\n .pipe(tuiZonefree(ngZone), takeUntil(destroy$))\n .subscribe(([scrollTop, scrollLeft]) => {\n const [x, y] = this.viewportScroller.getScrollPosition();\n\n if (!this.container) {\n this.viewportScroller.scrollToPosition([\n this.tuiScrollbar === 'vertical' ? x : scrollLeft,\n this.tuiScrollbar === 'vertical' ? scrollTop : y,\n ]);\n\n return;\n }\n\n if (this.tuiScrollbar === 'vertical') {\n renderer.setProperty(\n this.container.nativeElement,\n 'scrollTop',\n scrollTop,\n );\n } else {\n renderer.setProperty(\n this.container.nativeElement,\n 'scrollLeft',\n scrollLeft,\n );\n }\n });\n\n merge(\n fromEvent(\n this.container ? this.container.nativeElement : this.windowRef,\n 'scroll',\n ),\n animationFrame$.pipe(throttleTime(POLLING_TIME)),\n )\n .pipe(tuiZonefree(ngZone), takeUntil(destroy$))\n .subscribe(() => {\n if (this.tuiScrollbar === 'vertical') {\n renderer.setStyle(nativeElement, 'top', `${this.thumb * 100}%`);\n renderer.setStyle(nativeElement, 'height', `${this.view * 100}%`);\n } else {\n renderer.setStyle(nativeElement, 'left', `${this.thumb * 100}%`);\n renderer.setStyle(nativeElement, 'width', `${this.view * 100}%`);\n }\n });\n }\n\n private get scrolled(): number {\n const {\n scrollTop,\n scrollHeight,\n clientHeight,\n scrollLeft,\n scrollWidth,\n clientWidth,\n } = this.computedContainer;\n\n return this.tuiScrollbar === 'vertical'\n ? scrollTop / (scrollHeight - clientHeight)\n : scrollLeft / (scrollWidth - clientWidth);\n }\n\n private get compensation(): number {\n const {clientHeight, scrollHeight, clientWidth, scrollWidth} =\n this.computedContainer;\n\n if (\n ((clientHeight * clientHeight) / scrollHeight > MIN_WIDTH &&\n this.tuiScrollbar === 'vertical') ||\n ((clientWidth * clientWidth) / scrollWidth > MIN_WIDTH &&\n this.tuiScrollbar === 'horizontal')\n ) {\n return 0;\n }\n\n return this.tuiScrollbar === 'vertical'\n ? MIN_WIDTH / clientHeight\n : MIN_WIDTH / clientWidth;\n }\n\n private get thumb(): number {\n const compensation = this.compensation || this.view;\n\n return this.scrolled * (1 - compensation);\n }\n\n private get view(): number {\n const {clientHeight, scrollHeight, clientWidth, scrollWidth} =\n this.computedContainer;\n\n return this.tuiScrollbar === 'vertical'\n ? Math.ceil((clientHeight / scrollHeight) * 100) / 100\n : Math.ceil((clientWidth / scrollWidth) * 100) / 100;\n }\n\n private get computedContainer(): Element {\n return this.container\n ? this.container.nativeElement\n : this.documentRef.scrollingElement!;\n }\n\n private getScrolled(\n {clientY, clientX}: MouseEvent,\n offsetVertical: number,\n offsetHorizontal: number,\n ): [number, number] {\n const {offsetHeight, offsetWidth} = this.elementRef.nativeElement;\n const {top, left, width, height} =\n this.wrapper.nativeElement.getBoundingClientRect();\n\n const maxTop = this.computedContainer.scrollHeight - height;\n const maxLeft = this.computedContainer.scrollWidth - width;\n const scrolledTop =\n (clientY - top - offsetHeight * offsetVertical) / (height - offsetHeight);\n const scrolledLeft =\n (clientX - left - offsetWidth * offsetHorizontal) / (width - offsetWidth);\n\n return [maxTop * scrolledTop, maxLeft * scrolledLeft];\n }\n}\n\nfunction getOffsetVertical({clientY}: MouseEvent, {top, height}: ClientRect): number {\n return (clientY - top) / height;\n}\n\nfunction getOffsetHorizontal({clientX}: MouseEvent, {left, width}: ClientRect): number {\n return (clientX - left) / width;\n}\n","import {Directive, ElementRef} from '@angular/core';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core/tokens';\n\n@Directive({\n selector: '[tuiScrollbarWrapper]',\n providers: [\n {\n provide: TUI_ELEMENT_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollbarWrapperDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiScrollControlsComponent} from './scroll-controls.component';\nimport {TuiScrollbarDirective} from './scrollbar.directive';\nimport {TuiScrollbarWrapperDirective} from './scrollbar-wrapper.directive';\n\n@NgModule({\n imports: [CommonModule, TuiLetModule],\n declarations: [\n TuiScrollbarDirective,\n TuiScrollbarWrapperDirective,\n TuiScrollControlsComponent,\n ],\n exports: [TuiScrollControlsComponent],\n})\nexport class TuiScrollControlsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {TuiScrollbarWrapperDirective as ɵa} from './scrollbar-wrapper.directive';"],"names":[],"mappings":";;;;;;;;;;;AAmBA;IAYa,0BAA0B,GAAvC,MAAa,0BAA0B;IAcnC,YACoD,OAAyB,EACxC,MAAc,EACZ,WAAqB,EAGvC,SAAyC,EAChB,eAAmC,EAClD,KAAuC;QAPlB,YAAO,GAAP,OAAO,CAAkB;QACxC,WAAM,GAAN,MAAM,CAAQ;Q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AAY,CAAC;QACrC,YAAY,EAAE;YACV,qBAAqB;YACrB,4BAA4B;YAC5B,0BAA0B;SAC7B;QACD,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACxC,CAAC;GACW,uBAAuB,CAAG;;ACjBvC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-scroll-controls.js","sources":["ng://@taiga-ui/core/components/scroll-controls/scroll-controls.component.ts","ng://@taiga-ui/core/components/scroll-controls/scrollbar.directive.ts","ng://@taiga-ui/core/components/scroll-controls/scrollbar-wrapper.directive.ts","ng://@taiga-ui/core/components/scroll-controls/scroll-controls.module.ts","ng://@taiga-ui/core/components/scroll-controls/taiga-ui-core-components-scroll-controls.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n NgZone,\n Optional,\n} from '@angular/core';\nimport {ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {tuiFadeIn} from '@taiga-ui/core/animations';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_ANIMATION_OPTIONS, TUI_MODE, TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, startWith, throttleTime} from 'rxjs/operators';\n\n// @dynamic\n@Component({\n selector: `tui-scroll-controls`,\n templateUrl: `./scroll-controls.template.html`,\n styleUrls: [`./scroll-controls.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiFadeIn],\n providers: [MODE_PROVIDER],\n host: {\n '($.data-mode.attr)': `mode$`,\n },\n})\nexport class TuiScrollControlsComponent {\n readonly refresh$ = this.animationFrame$.pipe(\n throttleTime(300),\n map(() => this.scrollbars),\n startWith([false, false]),\n distinctUntilChanged((a, b) => a[0] === b[0] && a[1] === b[1]),\n tuiZoneOptimized(this.ngZone),\n );\n\n readonly animation = {\n value: ``,\n ...this.options,\n } as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Optional()\n @Inject(TUI_SCROLL_REF)\n private readonly scrollRef: ElementRef<HTMLElement> | null,\n @Inject(ANIMATION_FRAME) private readonly animationFrame$: Observable<number>,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n ) {}\n\n private get scrollbars(): [boolean, boolean] {\n const {clientHeight, scrollHeight, clientWidth, scrollWidth} = this.scrollRef\n ? this.scrollRef.nativeElement\n : this.documentRef.documentElement;\n\n return [\n Math.ceil((clientHeight / scrollHeight) * 100) < 100,\n Math.ceil((clientWidth / scrollWidth) * 100) < 100,\n ];\n }\n}\n","import {DOCUMENT, ViewportScroller} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n Inject,\n Input,\n NgZone,\n Optional,\n Renderer2,\n} from '@angular/core';\nimport {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common';\nimport {\n POLLING_TIME,\n preventDefault,\n stopPropagation,\n TuiDestroyService,\n tuiZonefree,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TUI_ELEMENT_REF, TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\nimport {TuiOrientationT} from '@taiga-ui/core/types';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {map, switchMap, takeUntil, throttleTime} from 'rxjs/operators';\n\nconst MIN_WIDTH = 24;\n\n// @dynamic\n@Directive({\n selector: `[tuiScrollbar]`,\n providers: [TuiDestroyService],\n})\nexport class TuiScrollbarDirective {\n @Input()\n tuiScrollbar: TuiOrientationT = `vertical`;\n\n constructor(\n @Inject(NgZone) ngZone: NgZone,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Inject(ANIMATION_FRAME) animationFrame$: Observable<number>,\n @Inject(TUI_ELEMENT_REF) private readonly wrapper: ElementRef<HTMLElement>,\n @Optional()\n @Inject(TUI_SCROLL_REF)\n private readonly container: ElementRef<HTMLElement> | null,\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(ViewportScroller) private readonly viewportScroller: ViewportScroller,\n ) {\n const {nativeElement} = this.elementRef;\n const mousedown$ = typedFromEvent(nativeElement, `mousedown`);\n const mousemove$ = typedFromEvent(this.documentRef, `mousemove`);\n const mouseup$ = typedFromEvent(this.documentRef, `mouseup`);\n const mousedownWrapper$ = typedFromEvent(wrapper.nativeElement, `mousedown`);\n\n merge(\n mousedownWrapper$.pipe(\n preventDefault(),\n map(event => this.getScrolled(event, 0.5, 0.5)),\n ),\n mousedown$.pipe(\n preventDefault(),\n stopPropagation(),\n switchMap(event => {\n const rect = nativeElement.getBoundingClientRect();\n const vertical = getOffsetVertical(event, rect);\n const horizontal = getOffsetHorizontal(event, rect);\n\n return mousemove$.pipe(\n map(event => this.getScrolled(event, vertical, horizontal)),\n takeUntil(mouseup$),\n );\n }),\n ),\n )\n .pipe(tuiZonefree(ngZone), takeUntil(destroy$))\n .subscribe(([scrollTop, scrollLeft]) => {\n const [x, y] = this.viewportScroller.getScrollPosition();\n\n if (!this.container) {\n this.viewportScroller.scrollToPosition([\n this.tuiScrollbar === `vertical` ? x : scrollLeft,\n this.tuiScrollbar === `vertical` ? scrollTop : y,\n ]);\n\n return;\n }\n\n if (this.tuiScrollbar === `vertical`) {\n renderer.setProperty(\n this.container.nativeElement,\n `scrollTop`,\n scrollTop,\n );\n } else {\n renderer.setProperty(\n this.container.nativeElement,\n `scrollLeft`,\n scrollLeft,\n );\n }\n });\n\n merge(\n fromEvent(\n this.container ? this.container.nativeElement : this.windowRef,\n `scroll`,\n ),\n animationFrame$.pipe(throttleTime(POLLING_TIME)),\n )\n .pipe(tuiZonefree(ngZone), takeUntil(destroy$))\n .subscribe(() => {\n if (this.tuiScrollbar === `vertical`) {\n renderer.setStyle(nativeElement, `top`, `${this.thumb * 100}%`);\n renderer.setStyle(nativeElement, `height`, `${this.view * 100}%`);\n } else {\n renderer.setStyle(nativeElement, `left`, `${this.thumb * 100}%`);\n renderer.setStyle(nativeElement, `width`, `${this.view * 100}%`);\n }\n });\n }\n\n private get scrolled(): number {\n const {\n scrollTop,\n scrollHeight,\n clientHeight,\n scrollLeft,\n scrollWidth,\n clientWidth,\n } = this.computedContainer;\n\n return this.tuiScrollbar === `vertical`\n ? scrollTop / (scrollHeight - clientHeight)\n : scrollLeft / (scrollWidth - clientWidth);\n }\n\n private get compensation(): number {\n const {clientHeight, scrollHeight, clientWidth, scrollWidth} =\n this.computedContainer;\n\n if (\n ((clientHeight * clientHeight) / scrollHeight > MIN_WIDTH &&\n this.tuiScrollbar === `vertical`) ||\n ((clientWidth * clientWidth) / scrollWidth > MIN_WIDTH &&\n this.tuiScrollbar === `horizontal`)\n ) {\n return 0;\n }\n\n return this.tuiScrollbar === `vertical`\n ? MIN_WIDTH / clientHeight\n : MIN_WIDTH / clientWidth;\n }\n\n private get thumb(): number {\n const compensation = this.compensation || this.view;\n\n return this.scrolled * (1 - compensation);\n }\n\n private get view(): number {\n const {clientHeight, scrollHeight, clientWidth, scrollWidth} =\n this.computedContainer;\n\n return this.tuiScrollbar === `vertical`\n ? Math.ceil((clientHeight / scrollHeight) * 100) / 100\n : Math.ceil((clientWidth / scrollWidth) * 100) / 100;\n }\n\n private get computedContainer(): Element {\n return this.container\n ? this.container.nativeElement\n : this.documentRef.scrollingElement!;\n }\n\n private getScrolled(\n {clientY, clientX}: MouseEvent,\n offsetVertical: number,\n offsetHorizontal: number,\n ): [number, number] {\n const {offsetHeight, offsetWidth} = this.elementRef.nativeElement;\n const {top, left, width, height} =\n this.wrapper.nativeElement.getBoundingClientRect();\n\n const maxTop = this.computedContainer.scrollHeight - height;\n const maxLeft = this.computedContainer.scrollWidth - width;\n const scrolledTop =\n (clientY - top - offsetHeight * offsetVertical) / (height - offsetHeight);\n const scrolledLeft =\n (clientX - left - offsetWidth * offsetHorizontal) / (width - offsetWidth);\n\n return [maxTop * scrolledTop, maxLeft * scrolledLeft];\n }\n}\n\nfunction getOffsetVertical({clientY}: MouseEvent, {top, height}: ClientRect): number {\n return (clientY - top) / height;\n}\n\nfunction getOffsetHorizontal({clientX}: MouseEvent, {left, width}: ClientRect): number {\n return (clientX - left) / width;\n}\n","import {Directive, ElementRef} from '@angular/core';\nimport {TUI_ELEMENT_REF} from '@taiga-ui/core/tokens';\n\n@Directive({\n selector: `[tuiScrollbarWrapper]`,\n providers: [\n {\n provide: TUI_ELEMENT_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollbarWrapperDirective {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiScrollControlsComponent} from './scroll-controls.component';\nimport {TuiScrollbarDirective} from './scrollbar.directive';\nimport {TuiScrollbarWrapperDirective} from './scrollbar-wrapper.directive';\n\n@NgModule({\n imports: [CommonModule, TuiLetModule],\n declarations: [\n TuiScrollbarDirective,\n TuiScrollbarWrapperDirective,\n TuiScrollControlsComponent,\n ],\n exports: [TuiScrollControlsComponent],\n})\nexport class TuiScrollControlsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {TuiScrollbarWrapperDirective as ɵa} from './scrollbar-wrapper.directive';"],"names":[],"mappings":";;;;;;;;;;;AAmBA;IAYa,0BAA0B,GAAvC,MAAa,0BAA0B;IAcnC,YACoD,OAAyB,EACxC,MAAc,EACZ,WAAqB,EAGvC,SAAyC,EAChB,eAAmC,EAClD,KAAuC;QAPlB,YAAO,GAAP,OAAO,CAAkB;QACxC,WAAM,GAAN,MAAM,CAAQ;QACZ,gBAAW,GAAX,WAAW,CAAU;QAGvC,cAAS,GAAT,SAAS,C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YAC5B,0BAA0B;SAC7B;QACD,OAAO,EAAE,CAAC,0BAA0B,CAAC;KACxC,CAAC;GACW,uBAAuB,CAAG;;ACjBvC;;;;;;"}
@@ -7,7 +7,7 @@ import { isFirefox, getElementOffset, TUI_IS_IOS, tuiDefaultProp } from '@taiga-
7
7
  import { CommonModule } from '@angular/common';
8
8
  import { TuiScrollControlsModule } from '@taiga-ui/core/components/scroll-controls';
9
9
 
10
- const SCROLL_REF_SELECTOR = '[tuiScrollRef]';
10
+ const SCROLL_REF_SELECTOR = `[tuiScrollRef]`;
11
11
  let TuiScrollRefDirective = class TuiScrollRefDirective {
12
12
  };
13
13
  TuiScrollRefDirective = __decorate([
@@ -38,7 +38,7 @@ TuiScrollableDirective.ctorParameters = () => [
38
38
  ];
39
39
  TuiScrollableDirective = __decorate([
40
40
  Directive({
41
- selector: '[tuiScrollable]',
41
+ selector: `[tuiScrollable]`,
42
42
  }),
43
43
  __param(0, Inject(ElementRef))
44
44
  ], TuiScrollableDirective);
@@ -56,8 +56,8 @@ let TuiScrollbarComponent = TuiScrollbarComponent_1 = class TuiScrollbarComponen
56
56
  this.userAgent = userAgent;
57
57
  this.isIos = isIos;
58
58
  this.delegated = false;
59
- this.isLegacy = !this.cssRef.supports('position', 'sticky') ||
60
- (isFirefox(this.userAgent) && !this.cssRef.supports('scrollbar-width', 'none'));
59
+ this.isLegacy = !this.cssRef.supports(`position`, `sticky`) ||
60
+ (isFirefox(this.userAgent) && !this.cssRef.supports(`scrollbar-width`, `none`));
61
61
  this.hidden = false;
62
62
  this.browserScrollRef = new ElementRef(this.elementRef.nativeElement);
63
63
  }
@@ -94,17 +94,17 @@ __decorate([
94
94
  tuiDefaultProp()
95
95
  ], TuiScrollbarComponent.prototype, "hidden", void 0);
96
96
  __decorate([
97
- HostBinding('class._legacy')
97
+ HostBinding(`class._legacy`)
98
98
  ], TuiScrollbarComponent.prototype, "showNative", null);
99
99
  __decorate([
100
- HostListener(`${TUI_SCROLLABLE}.stop`, ['$event.detail'])
100
+ HostListener(`${TUI_SCROLLABLE}.stop`, [`$event.detail`])
101
101
  ], TuiScrollbarComponent.prototype, "onScrollable", null);
102
102
  __decorate([
103
- HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, ['$event.detail'])
103
+ HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, [`$event.detail`])
104
104
  ], TuiScrollbarComponent.prototype, "scrollIntoView", null);
105
105
  TuiScrollbarComponent = TuiScrollbarComponent_1 = __decorate([
106
106
  Component({
107
- selector: 'tui-scrollbar',
107
+ selector: `tui-scrollbar`,
108
108
  template: "<tui-scroll-controls *ngIf=\"showScrollbars\"></tui-scroll-controls>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
109
109
  changeDetection: ChangeDetectionStrategy.OnPush,
110
110
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-scrollbar.js","sources":["ng://@taiga-ui/core/components/scrollbar/scroll-ref.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollable.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.component.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.module.ts","ng://@taiga-ui/core/components/scrollbar/taiga-ui-core-components-scrollbar.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport const SCROLL_REF_SELECTOR = '[tuiScrollRef]';\n\n@Directive({\n selector: SCROLL_REF_SELECTOR,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollRefDirective {}\n","import {Directive, ElementRef, Inject, OnInit} from '@angular/core';\nimport {TUI_SCROLLABLE} from '@taiga-ui/core/constants';\n\n@Directive({\n selector: '[tuiScrollable]',\n})\nexport class TuiScrollableDirective implements OnInit {\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngOnInit(): void {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SCROLLABLE, {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n }),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {CSS, USER_AGENT} from '@ng-web-apis/common';\nimport {getElementOffset, isFirefox, TUI_IS_IOS, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW, TUI_SCROLLABLE} from '@taiga-ui/core/constants';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function scrollRefFactory({\n browserScrollRef,\n}: TuiScrollbarComponent): ElementRef<HTMLElement> {\n return browserScrollRef;\n}\n\n// @dynamic\n@Component({\n selector: 'tui-scrollbar',\n templateUrl: './scrollbar.template.html',\n styleUrls: ['./scrollbar.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n deps: [TuiScrollbarComponent],\n useFactory: scrollRefFactory,\n },\n ],\n})\nexport class TuiScrollbarComponent {\n private delegated = false;\n\n private readonly isLegacy: boolean =\n !this.cssRef.supports('position', 'sticky') ||\n (isFirefox(this.userAgent) && !this.cssRef.supports('scrollbar-width', 'none'));\n\n @Input()\n @tuiDefaultProp()\n hidden = false;\n\n readonly browserScrollRef = new ElementRef(this.elementRef.nativeElement);\n\n constructor(\n @Inject(CSS) private readonly cssRef: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_IS_IOS) private readonly isIos: boolean,\n ) {}\n\n get showScrollbars(): boolean {\n return !this.hidden && !this.isIos && (!this.isLegacy || this.delegated);\n }\n\n @HostBinding('class._legacy')\n get showNative(): boolean {\n return this.isLegacy && !this.hidden && !this.delegated;\n }\n\n @HostListener(`${TUI_SCROLLABLE}.stop`, ['$event.detail'])\n onScrollable(element: HTMLElement): void {\n this.delegated = true;\n this.browserScrollRef.nativeElement = element;\n }\n\n @HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, ['$event.detail'])\n scrollIntoView(detail: HTMLElement): void {\n if (this.delegated) {\n return;\n }\n\n const {nativeElement} = this.browserScrollRef;\n const {offsetTop, offsetLeft} = getElementOffset(nativeElement, detail);\n\n nativeElement.scrollTop =\n offsetTop + detail.offsetHeight / 2 - nativeElement.clientHeight / 2;\n nativeElement.scrollLeft =\n offsetLeft + detail.offsetWidth / 2 - nativeElement.clientWidth / 2;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\n\nimport {TuiScrollRefDirective} from './scroll-ref.directive';\nimport {TuiScrollableDirective} from './scrollable.directive';\nimport {TuiScrollbarComponent} from './scrollbar.component';\n\n@NgModule({\n imports: [CommonModule, TuiScrollControlsModule],\n declarations: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n exports: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n})\nexport class TuiScrollbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAGa,mBAAmB,GAAG,iBAAiB;IAWvC,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IATjC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,cAAc;gBACvB,WAAW,EAAE,UAAU;aAC1B;SACJ;KACJ,CAAC;GACW,qBAAqB,CAAG;;ICRxB,sBAAsB,GAAnC,MAAa,sBAAsB;IAC/B,YACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;KACxE;IAEJ,QAAQ;QACJ,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CACvC,IAAI,WAAW,CAAC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gB;aAC/B;SACJ;;KACJ,CAAC;IAeO,WAAA,MAAM,CAAC,GAAG,CAAC,CAAA;IACX,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAjBd,qBAAqB,CAiDjC;;ICvEY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,uBAAuB,CAAC;QAChD,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;QACpF,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;KAClF,CAAC;GACW,kBAAkB,CAAG;;ACblC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-scrollbar.js","sources":["ng://@taiga-ui/core/components/scrollbar/scroll-ref.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollable.directive.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.component.ts","ng://@taiga-ui/core/components/scrollbar/scrollbar.module.ts","ng://@taiga-ui/core/components/scrollbar/taiga-ui-core-components-scrollbar.ts"],"sourcesContent":["import {Directive, ElementRef} from '@angular/core';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\nexport const SCROLL_REF_SELECTOR = `[tuiScrollRef]`;\n\n@Directive({\n selector: SCROLL_REF_SELECTOR,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiScrollRefDirective {}\n","import {Directive, ElementRef, Inject, OnInit} from '@angular/core';\nimport {TUI_SCROLLABLE} from '@taiga-ui/core/constants';\n\n@Directive({\n selector: `[tuiScrollable]`,\n})\nexport class TuiScrollableDirective implements OnInit {\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngOnInit(): void {\n this.elementRef.nativeElement.dispatchEvent(\n new CustomEvent(TUI_SCROLLABLE, {\n bubbles: true,\n detail: this.elementRef.nativeElement,\n }),\n );\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {CSS, USER_AGENT} from '@ng-web-apis/common';\nimport {getElementOffset, isFirefox, TUI_IS_IOS, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_SCROLL_INTO_VIEW, TUI_SCROLLABLE} from '@taiga-ui/core/constants';\nimport {TUI_SCROLL_REF} from '@taiga-ui/core/tokens';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function scrollRefFactory({\n browserScrollRef,\n}: TuiScrollbarComponent): ElementRef<HTMLElement> {\n return browserScrollRef;\n}\n\n// @dynamic\n@Component({\n selector: `tui-scrollbar`,\n templateUrl: `./scrollbar.template.html`,\n styleUrls: [`./scrollbar.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_SCROLL_REF,\n deps: [TuiScrollbarComponent],\n useFactory: scrollRefFactory,\n },\n ],\n})\nexport class TuiScrollbarComponent {\n private delegated = false;\n\n private readonly isLegacy: boolean =\n !this.cssRef.supports(`position`, `sticky`) ||\n (isFirefox(this.userAgent) && !this.cssRef.supports(`scrollbar-width`, `none`));\n\n @Input()\n @tuiDefaultProp()\n hidden = false;\n\n readonly browserScrollRef = new ElementRef(this.elementRef.nativeElement);\n\n constructor(\n @Inject(CSS) private readonly cssRef: any,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_IS_IOS) private readonly isIos: boolean,\n ) {}\n\n get showScrollbars(): boolean {\n return !this.hidden && !this.isIos && (!this.isLegacy || this.delegated);\n }\n\n @HostBinding(`class._legacy`)\n get showNative(): boolean {\n return this.isLegacy && !this.hidden && !this.delegated;\n }\n\n @HostListener(`${TUI_SCROLLABLE}.stop`, [`$event.detail`])\n onScrollable(element: HTMLElement): void {\n this.delegated = true;\n this.browserScrollRef.nativeElement = element;\n }\n\n @HostListener(`${TUI_SCROLL_INTO_VIEW}.stop`, [`$event.detail`])\n scrollIntoView(detail: HTMLElement): void {\n if (this.delegated) {\n return;\n }\n\n const {nativeElement} = this.browserScrollRef;\n const {offsetTop, offsetLeft} = getElementOffset(nativeElement, detail);\n\n nativeElement.scrollTop =\n offsetTop + detail.offsetHeight / 2 - nativeElement.clientHeight / 2;\n nativeElement.scrollLeft =\n offsetLeft + detail.offsetWidth / 2 - nativeElement.clientWidth / 2;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiScrollControlsModule} from '@taiga-ui/core/components/scroll-controls';\n\nimport {TuiScrollRefDirective} from './scroll-ref.directive';\nimport {TuiScrollableDirective} from './scrollable.directive';\nimport {TuiScrollbarComponent} from './scrollbar.component';\n\n@NgModule({\n imports: [CommonModule, TuiScrollControlsModule],\n declarations: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n exports: [TuiScrollbarComponent, TuiScrollRefDirective, TuiScrollableDirective],\n})\nexport class TuiScrollbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAGa,mBAAmB,GAAG,iBAAiB;IAWvC,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IATjC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,cAAc;gBACvB,WAAW,EAAE,UAAU;aAC1B;SACJ;KACJ,CAAC;GACW,qBAAqB,CAAG;;ICRxB,sBAAsB,GAAnC,MAAa,sBAAsB;IAC/B,YACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;KACxE;IAEJ,QAAQ;QACJ,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC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AAC;gBAC7B,UAAU,EAAE,gBAAgB;aAC/B;SACJ;;KACJ,CAAC;IAeO,WAAA,MAAM,CAAC,GAAG,CAAC,CAAA;IACX,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAjBd,qBAAqB,CAiDjC;;ICvEY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,uBAAuB,CAAC;QAChD,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;QACpF,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC;KAClF,CAAC;GACW,kBAAkB,CAAG;;ACblC;;;;;;"}
@@ -11,9 +11,9 @@ import { isPresumedHTMLString } from '@taiga-ui/core/utils/miscellaneous';
11
11
  import { ReplaySubject, of } from 'rxjs';
12
12
  import { switchMap, startWith, catchError, map } from 'rxjs/operators';
13
13
 
14
- const UNDEFINED_NAMED_ICON = 'Attempted to use undefined named icon';
15
- const MISSING_EXTERNAL_ICON = 'External icon is missing on the given URL';
16
- const FAILED_EXTERNAL_ICON = 'Failed to load external SVG';
14
+ const UNDEFINED_NAMED_ICON = `Attempted to use undefined named icon`;
15
+ const MISSING_EXTERNAL_ICON = `External icon is missing on the given URL`;
16
+ const FAILED_EXTERNAL_ICON = `Failed to load external SVG`;
17
17
  // TODO: Consider moving to CDK along with SvgService and SvgDefsHostComponent
18
18
  // @dynamic
19
19
  let TuiSvgComponent = class TuiSvgComponent {
@@ -31,10 +31,10 @@ let TuiSvgComponent = class TuiSvgComponent {
31
31
  this.contentProcessor = contentProcessor;
32
32
  this.src$ = new ReplaySubject(1);
33
33
  this.isIE = isIE(this.userAgent);
34
- this.icon = '';
34
+ this.icon = ``;
35
35
  this.innerHTML$ = this.src$.pipe(switchMap(() => this.isExternal
36
36
  ? this.getExternalIcon(this.icon)
37
- : of(this.getSafeHtml(this.icon))), startWith(''));
37
+ : of(this.getSafeHtml(this.icon))), startWith(``));
38
38
  }
39
39
  set src(src) {
40
40
  this.icon = this.srcProcessor(src);
@@ -44,7 +44,7 @@ let TuiSvgComponent = class TuiSvgComponent {
44
44
  return this.icon;
45
45
  }
46
46
  get use() {
47
- return this.icon.includes('.svg#')
47
+ return this.icon.includes(`.svg#`)
48
48
  ? this.icon
49
49
  : this.resolveName(this.icon, this.iconsPath);
50
50
  }
@@ -55,13 +55,13 @@ let TuiSvgComponent = class TuiSvgComponent {
55
55
  return (getDocumentOrShadowRoot(this.elementRef.nativeElement) !== this.documentRef);
56
56
  }
57
57
  get isUse() {
58
- return this.use.includes('.svg#');
58
+ return this.use.includes(`.svg#`);
59
59
  }
60
60
  get isExternal() {
61
61
  return this.isUrl || (this.isIE && this.isUse) || this.isCrossDomain;
62
62
  }
63
63
  get isUrl() {
64
- return this.icon.endsWith('.svg');
64
+ return this.icon.endsWith(`.svg`);
65
65
  }
66
66
  get isSrc() {
67
67
  return isPresumedHTMLString(this.icon);
@@ -72,7 +72,7 @@ let TuiSvgComponent = class TuiSvgComponent {
72
72
  get isCrossDomain() {
73
73
  const { use, isUse, windowRef } = this;
74
74
  return (isUse &&
75
- use.startsWith('http') &&
75
+ use.startsWith(`http`) &&
76
76
  !!windowRef.origin &&
77
77
  !use.startsWith(windowRef.origin));
78
78
  }
@@ -100,20 +100,20 @@ let TuiSvgComponent = class TuiSvgComponent {
100
100
  this.onError(UNDEFINED_NAMED_ICON);
101
101
  }
102
102
  // Empty line for innerHTML when icon is shown through USE tag
103
- return !this.isShadowDOM || !this.isName ? '' : this.sanitize(icon || '');
103
+ return !this.isShadowDOM || !this.isName ? `` : this.sanitize(icon || ``);
104
104
  }
105
105
  sanitize(src) {
106
106
  src = this.contentProcessor(src);
107
107
  return this.tuiSanitizer
108
- ? this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(SecurityContext.HTML, src) || '')
108
+ ? this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(SecurityContext.HTML, src) || ``)
109
109
  : src;
110
110
  }
111
111
  getExternalIcon(src) {
112
- const url = src.includes('.svg') ? src : this.use;
112
+ const url = src.includes(`.svg`) ? src : this.use;
113
113
  return this.staticRequestService.request(url).pipe(catchError(() => {
114
114
  this.onError(FAILED_EXTERNAL_ICON);
115
- return of('');
116
- }), map(response => this.sanitize(response.replace('<svg', '<svg focusable="false"'))));
115
+ return of(``);
116
+ }), map(response => this.sanitize(response.replace(`<svg`, `<svg focusable="false"`))));
117
117
  }
118
118
  };
119
119
  TuiSvgComponent.ctorParameters = () => [
@@ -138,7 +138,7 @@ __decorate([
138
138
  ], TuiSvgComponent.prototype, "resolveName", null);
139
139
  TuiSvgComponent = __decorate([
140
140
  Component({
141
- selector: 'tui-svg',
141
+ selector: `tui-svg`,
142
142
  template: "<ng-container *tuiLet=\"innerHTML$ | async as innerHTML\">\n <div\n *ngIf=\"isInnerHTML; else useTemplate\"\n class=\"src\"\n [innerHTML]=\"innerHTML\"\n ></div>\n <ng-template #useTemplate>\n <svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n focusable=\"false\"\n width=\"100%\"\n height=\"100%\"\n (error)=\"onError()\"\n >\n <use [attr.xlink:href]=\"use\"></use>\n </svg>\n </ng-template>\n</ng-container>\n",
143
143
  changeDetection: ChangeDetectionStrategy.OnPush,
144
144
  styles: [":host{display:inline-block;vertical-align:middle;flex-shrink:0;line-height:0;height:1.5rem;width:1.5rem;fill:currentColor;font-size:1rem}.src{display:flex;height:100%;align-items:center;justify-content:center}"]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-svg.js","sources":["ng://@taiga-ui/core/components/svg/svg.component.ts","ng://@taiga-ui/core/components/svg/svg.module.ts","ng://@taiga-ui/core/components/svg/taiga-ui-core-components-svg.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n Input,\n Optional,\n Sanitizer,\n SecurityContext,\n} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\nimport {USER_AGENT, WINDOW} from '@ng-web-apis/common';\nimport {\n getDocumentOrShadowRoot,\n isIE,\n tuiAssert,\n tuiCustomEvent,\n tuiPure,\n tuiRequiredSetter,\n TuiStaticRequestService,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\nimport {TUI_ICON_ERROR} from '@taiga-ui/core/constants';\nimport {TuiIconError} from '@taiga-ui/core/interfaces';\nimport {TuiSvgService} from '@taiga-ui/core/services';\nimport {\n TUI_ICONS_PATH,\n TUI_SANITIZER,\n TUI_SVG_CONTENT_PROCESSOR,\n TUI_SVG_SRC_PROCESSOR,\n} from '@taiga-ui/core/tokens';\nimport {isPresumedHTMLString} from '@taiga-ui/core/utils/miscellaneous';\nimport {Observable, of, ReplaySubject} from 'rxjs';\nimport {catchError, map, startWith, switchMap} from 'rxjs/operators';\n\nconst UNDEFINED_NAMED_ICON = 'Attempted to use undefined named icon';\nconst MISSING_EXTERNAL_ICON = 'External icon is missing on the given URL';\nconst FAILED_EXTERNAL_ICON = 'Failed to load external SVG';\n\n// TODO: Consider moving to CDK along with SvgService and SvgDefsHostComponent\n// @dynamic\n@Component({\n selector: 'tui-svg',\n templateUrl: './svg.template.html',\n styleUrls: ['./svg.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSvgComponent {\n private readonly src$ = new ReplaySubject<void>(1);\n private readonly isIE = isIE(this.userAgent);\n private icon = '';\n\n @Input()\n @tuiRequiredSetter()\n set src(src: string) {\n this.icon = this.srcProcessor(src);\n this.src$.next();\n }\n\n readonly innerHTML$: Observable<SafeHtml>;\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(TUI_ICONS_PATH) private readonly iconsPath: TuiStringHandler<string>,\n @Optional()\n @Inject(TUI_SANITIZER)\n private readonly tuiSanitizer: Sanitizer | null,\n @Inject(TuiSvgService) private readonly svgService: TuiSvgService,\n @Inject(TuiStaticRequestService)\n private readonly staticRequestService: TuiStaticRequestService,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_SVG_SRC_PROCESSOR)\n private readonly srcProcessor: TuiStringHandler<string>,\n @Inject(TUI_SVG_CONTENT_PROCESSOR)\n private readonly contentProcessor: TuiStringHandler<string>,\n ) {\n this.innerHTML$ = this.src$.pipe(\n switchMap(() =>\n this.isExternal\n ? this.getExternalIcon(this.icon)\n : of(this.getSafeHtml(this.icon)),\n ),\n startWith(''),\n );\n }\n\n get src(): string {\n return this.icon;\n }\n\n get use(): string {\n return this.icon.includes('.svg#')\n ? this.icon\n : this.resolveName(this.icon, this.iconsPath);\n }\n\n get isInnerHTML(): boolean {\n return this.isSrc || this.isExternal || (this.isName && this.isShadowDOM);\n }\n\n private get isShadowDOM(): boolean {\n return (\n getDocumentOrShadowRoot(this.elementRef.nativeElement) !== this.documentRef\n );\n }\n\n private get isUse(): boolean {\n return this.use.includes('.svg#');\n }\n\n private get isExternal(): boolean {\n return this.isUrl || (this.isIE && this.isUse) || this.isCrossDomain;\n }\n\n private get isUrl(): boolean {\n return this.icon.endsWith('.svg');\n }\n\n private get isSrc(): boolean {\n return isPresumedHTMLString(this.icon);\n }\n\n private get isName(): boolean {\n return !this.isUrl && !this.isUse && !this.isSrc;\n }\n\n private get isCrossDomain(): boolean {\n const {use, isUse, windowRef} = this;\n\n return (\n isUse &&\n use.startsWith('http') &&\n !!windowRef.origin &&\n !use.startsWith(windowRef.origin)\n );\n }\n\n onError(message: string = MISSING_EXTERNAL_ICON): void {\n const {icon} = this;\n const event = tuiCustomEvent<TuiIconError>(\n TUI_ICON_ERROR,\n {\n bubbles: true,\n detail: {\n message,\n icon,\n },\n },\n this.documentRef,\n );\n\n tuiAssert.assert(false, message, icon);\n this.elementRef.nativeElement.dispatchEvent(event);\n }\n\n @tuiPure\n private resolveName(name: string, iconsPath: TuiStringHandler<string>): string {\n return iconsPath(name);\n }\n\n private getSafeHtml(src: string): SafeHtml {\n return this.isSrc ? this.sanitize(src) : this.process(src);\n }\n\n private process(src: string): SafeHtml {\n const icon = this.svgService.getOriginal(src);\n\n if (this.isName && !icon && !!src) {\n this.onError(UNDEFINED_NAMED_ICON);\n }\n\n // Empty line for innerHTML when icon is shown through USE tag\n return !this.isShadowDOM || !this.isName ? '' : this.sanitize(icon || '');\n }\n\n private sanitize(src: string): SafeHtml | string {\n src = this.contentProcessor(src);\n\n return this.tuiSanitizer\n ? this.sanitizer.bypassSecurityTrustHtml(\n this.tuiSanitizer.sanitize(SecurityContext.HTML, src) || '',\n )\n : src;\n }\n\n private getExternalIcon(src: string): Observable<SafeHtml> {\n const url = src.includes('.svg') ? src : this.use;\n\n return this.staticRequestService.request(url).pipe(\n catchError(() => {\n this.onError(FAILED_EXTERNAL_ICON);\n\n return of('');\n }),\n map(response =>\n this.sanitize(response.replace('<svg', '<svg focusable=\"false\"')),\n ),\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiSvgComponent} from './svg.component';\n\n@NgModule({\n imports: [CommonModule, TuiLetModule],\n declarations: [TuiSvgComponent],\n exports: [TuiSvgComponent],\n})\nexport class TuiSvgModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAoCA,MAAM,oBAAoB,GAAG,uCAAuC,CAAC;AACrE,MAAM,qBAAqB,GAAG,2CAA2C,CAAC;AAC1E,MAAM,oBAAoB,GAAG,6BAA6B,CAAC;A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AAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IAErB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IACrB,WAAA,MAAM,CAAC,uBAAuB,CAAC,CAAA;IAE/B,WAAA,MAAM,CAAC,YAAY,CAAC,CAAA;IACpB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAE7B,YAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GA7B7B,eAAe,CA2J3B;;IChMY,YAAY,GAAzB,MAAa,YAAY;EAAG;AAAf,YAAY;IALxB,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;QACrC,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACX5B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-svg.js","sources":["ng://@taiga-ui/core/components/svg/svg.component.ts","ng://@taiga-ui/core/components/svg/svg.module.ts","ng://@taiga-ui/core/components/svg/taiga-ui-core-components-svg.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Inject,\n Input,\n Optional,\n Sanitizer,\n SecurityContext,\n} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\nimport {USER_AGENT, WINDOW} from '@ng-web-apis/common';\nimport {\n getDocumentOrShadowRoot,\n isIE,\n tuiAssert,\n tuiCustomEvent,\n tuiPure,\n tuiRequiredSetter,\n TuiStaticRequestService,\n TuiStringHandler,\n} from '@taiga-ui/cdk';\nimport {TUI_ICON_ERROR} from '@taiga-ui/core/constants';\nimport {TuiIconError} from '@taiga-ui/core/interfaces';\nimport {TuiSvgService} from '@taiga-ui/core/services';\nimport {\n TUI_ICONS_PATH,\n TUI_SANITIZER,\n TUI_SVG_CONTENT_PROCESSOR,\n TUI_SVG_SRC_PROCESSOR,\n} from '@taiga-ui/core/tokens';\nimport {isPresumedHTMLString} from '@taiga-ui/core/utils/miscellaneous';\nimport {Observable, of, ReplaySubject} from 'rxjs';\nimport {catchError, map, startWith, switchMap} from 'rxjs/operators';\n\nconst UNDEFINED_NAMED_ICON = `Attempted to use undefined named icon`;\nconst MISSING_EXTERNAL_ICON = `External icon is missing on the given URL`;\nconst FAILED_EXTERNAL_ICON = `Failed to load external SVG`;\n\n// TODO: Consider moving to CDK along with SvgService and SvgDefsHostComponent\n// @dynamic\n@Component({\n selector: `tui-svg`,\n templateUrl: `./svg.template.html`,\n styleUrls: [`./svg.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiSvgComponent {\n private readonly src$ = new ReplaySubject<void>(1);\n private readonly isIE = isIE(this.userAgent);\n private icon = ``;\n\n @Input()\n @tuiRequiredSetter()\n set src(src: string) {\n this.icon = this.srcProcessor(src);\n this.src$.next();\n }\n\n readonly innerHTML$: Observable<SafeHtml>;\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(TUI_ICONS_PATH) private readonly iconsPath: TuiStringHandler<string>,\n @Optional()\n @Inject(TUI_SANITIZER)\n private readonly tuiSanitizer: Sanitizer | null,\n @Inject(TuiSvgService) private readonly svgService: TuiSvgService,\n @Inject(TuiStaticRequestService)\n private readonly staticRequestService: TuiStaticRequestService,\n @Inject(DomSanitizer) private readonly sanitizer: DomSanitizer,\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(TUI_SVG_SRC_PROCESSOR)\n private readonly srcProcessor: TuiStringHandler<string>,\n @Inject(TUI_SVG_CONTENT_PROCESSOR)\n private readonly contentProcessor: TuiStringHandler<string>,\n ) {\n this.innerHTML$ = this.src$.pipe(\n switchMap(() =>\n this.isExternal\n ? this.getExternalIcon(this.icon)\n : of(this.getSafeHtml(this.icon)),\n ),\n startWith(``),\n );\n }\n\n get src(): string {\n return this.icon;\n }\n\n get use(): string {\n return this.icon.includes(`.svg#`)\n ? this.icon\n : this.resolveName(this.icon, this.iconsPath);\n }\n\n get isInnerHTML(): boolean {\n return this.isSrc || this.isExternal || (this.isName && this.isShadowDOM);\n }\n\n private get isShadowDOM(): boolean {\n return (\n getDocumentOrShadowRoot(this.elementRef.nativeElement) !== this.documentRef\n );\n }\n\n private get isUse(): boolean {\n return this.use.includes(`.svg#`);\n }\n\n private get isExternal(): boolean {\n return this.isUrl || (this.isIE && this.isUse) || this.isCrossDomain;\n }\n\n private get isUrl(): boolean {\n return this.icon.endsWith(`.svg`);\n }\n\n private get isSrc(): boolean {\n return isPresumedHTMLString(this.icon);\n }\n\n private get isName(): boolean {\n return !this.isUrl && !this.isUse && !this.isSrc;\n }\n\n private get isCrossDomain(): boolean {\n const {use, isUse, windowRef} = this;\n\n return (\n isUse &&\n use.startsWith(`http`) &&\n !!windowRef.origin &&\n !use.startsWith(windowRef.origin)\n );\n }\n\n onError(message: string = MISSING_EXTERNAL_ICON): void {\n const {icon} = this;\n const event = tuiCustomEvent<TuiIconError>(\n TUI_ICON_ERROR,\n {\n bubbles: true,\n detail: {\n message,\n icon,\n },\n },\n this.documentRef,\n );\n\n tuiAssert.assert(false, message, icon);\n this.elementRef.nativeElement.dispatchEvent(event);\n }\n\n @tuiPure\n private resolveName(name: string, iconsPath: TuiStringHandler<string>): string {\n return iconsPath(name);\n }\n\n private getSafeHtml(src: string): SafeHtml {\n return this.isSrc ? this.sanitize(src) : this.process(src);\n }\n\n private process(src: string): SafeHtml {\n const icon = this.svgService.getOriginal(src);\n\n if (this.isName && !icon && !!src) {\n this.onError(UNDEFINED_NAMED_ICON);\n }\n\n // Empty line for innerHTML when icon is shown through USE tag\n return !this.isShadowDOM || !this.isName ? `` : this.sanitize(icon || ``);\n }\n\n private sanitize(src: string): SafeHtml | string {\n src = this.contentProcessor(src);\n\n return this.tuiSanitizer\n ? this.sanitizer.bypassSecurityTrustHtml(\n this.tuiSanitizer.sanitize(SecurityContext.HTML, src) || ``,\n )\n : src;\n }\n\n private getExternalIcon(src: string): Observable<SafeHtml> {\n const url = src.includes(`.svg`) ? src : this.use;\n\n return this.staticRequestService.request(url).pipe(\n catchError(() => {\n this.onError(FAILED_EXTERNAL_ICON);\n\n return of(``);\n }),\n map(response =>\n this.sanitize(response.replace(`<svg`, `<svg focusable=\"false\"`)),\n ),\n );\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule} from '@taiga-ui/cdk';\n\nimport {TuiSvgComponent} from './svg.component';\n\n@NgModule({\n imports: [CommonModule, TuiLetModule],\n declarations: [TuiSvgComponent],\n exports: [TuiSvgComponent],\n})\nexport class TuiSvgModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAoCA,MAAM,oBAAoB,GAAG,uCAAuC,CAAC;AACrE,MAAM,qBAAqB,GAAG,2CAA2C,CAAC;AAC1E,MAAM,oBAAoB,GAAG,6BAA6B,CAAC;AAE3D;AACA;IAOa,eAAe,GAA5B,MAAa,eAAe;IAcxB,YACuC,WAAqB,EACvB,SAAiB,EACT,SAAmC,EAG3D,YAA8B,EACP,UAAyB,EAEhD,oBAA6C,EACvB,SAAuB,EACzB,UAA+B,EAC/B,SAAiB,EAErC,YAAsC,EAEtC,gBAA0C;QAfxB,gBAAW,GAAX,WAAW,CAAU;QACvB,cAAS,GAAT,SAAS,CAAQ;QACT,cAAS,GAAT,SAAS,CAA0B;QAG3D,iBAAY,GAAZ,YAAY,CAAkB;QACP,eAAU,GAAV,UAAU,CAAe;QAEhD,yBAAoB,GAApB,oBAAoB,CAAyB;QACvB,cAAS,GAAT,SAAS,CAAc;QACzB,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAA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OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;QACrC,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;KAC7B,CAAC;GACW,YAAY,CAAG;;ACX5B;;;;;;"}
@@ -7,8 +7,8 @@ let TuiThemeNightComponent = class TuiThemeNightComponent extends AbstractTuiThe
7
7
  };
8
8
  TuiThemeNightComponent = __decorate([
9
9
  Component({
10
- selector: 'tui-theme-night',
11
- template: '',
10
+ selector: `tui-theme-night`,
11
+ template: ``,
12
12
  encapsulation: ViewEncapsulation.None,
13
13
  styles: [":root{--tui-base-01:#222;--tui-base-02:#333;--tui-base-03:#808080;--tui-base-04:#959595;--tui-base-05:#b0b0b0;--tui-base-06:#d7d7d7;--tui-base-07:#ededed;--tui-base-08:#f6f6f6;--tui-base-09:#fff;--tui-focus:rgba(51, 51, 51, 0.64);--tui-secondary:rgba(255, 255, 255, 0.16);--tui-secondary-hover:rgba(255, 255, 255, 0.24);--tui-secondary-active:rgba(255, 255, 255, 0.4);--tui-clear:rgba(255, 255, 255, 0.16);--tui-clear-disabled:rgba(255, 255, 255, 0.08);--tui-clear-hover:rgba(255, 255, 255, 0.24);--tui-clear-active:rgba(255, 255, 255, 0.4);--tui-error-fill:#ff8c67;--tui-error-bg:rgba(244, 87, 37, 0.32);--tui-error-bg-hover:rgba(244, 87, 37, 0.4);--tui-success-fill:#4ac99b;--tui-success-bg:rgba(74, 201, 155, 0.32);--tui-success-bg-hover:rgba(74, 201, 155, 0.4);--tui-warning-fill:#ffc700;--tui-warning-bg:rgba(255, 199, 0, 0.32);--tui-warning-bg-hover:rgba(255, 199, 0, 0.4);--tui-info-fill:#70b6f6;--tui-info-bg:rgba(112, 182, 246, 0.32);--tui-info-bg-hover:rgba(112, 182, 246, 0.4);--tui-neutral-fill:#959ba4;--tui-neutral-bg:rgba(149, 155, 164, 0.32);--tui-neutral-bg-hover:rgba(149, 155, 164, 0.48);--tui-text-01:#ffffff;--tui-text-02:rgba(255, 255, 255, 0.72);--tui-text-03:rgba(255, 255, 255, 0.6);--tui-link:#6788ff;--tui-link-hover:#526ed3;--tui-positive:#44c596;--tui-positive-hover:#3aa981;--tui-negative:#ff8c67;--tui-negative-hover:#bb593a;--tui-autofill:var(--tui-autofill-night);--tui-elevation-01:#222;--tui-elevation-02:#222}tui-notification{--tui-base-01:#000}"]
14
14
  })
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-theme-night.js","sources":["ng://@taiga-ui/core/components/theme-night/theme-night.component.ts","ng://@taiga-ui/core/components/theme-night/theme-night.module.ts","ng://@taiga-ui/core/components/theme-night/taiga-ui-core-components-theme-night.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-theme-night',\n template: '',\n styleUrls: ['./theme-night.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiThemeNightComponent extends AbstractTuiThemeSwitcher {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiThemeNightComponent} from './theme-night.component';\n\n@NgModule({\n declarations: [TuiThemeNightComponent],\n exports: [TuiThemeNightComponent],\n})\nexport class TuiThemeNightModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;IAOa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,wBAAwB;EAAG;AAA1D,sBAAsB;IANlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,QAAQ,EAAE,EAAE;QAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;GACW,sBAAsB,CAAoC;;ICF1D,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-theme-night.js","sources":["ng://@taiga-ui/core/components/theme-night/theme-night.component.ts","ng://@taiga-ui/core/components/theme-night/theme-night.module.ts","ng://@taiga-ui/core/components/theme-night/taiga-ui-core-components-theme-night.ts"],"sourcesContent":["import {Component, ViewEncapsulation} from '@angular/core';\nimport {AbstractTuiThemeSwitcher} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: `tui-theme-night`,\n template: ``,\n styleUrls: [`./theme-night.style.less`],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiThemeNightComponent extends AbstractTuiThemeSwitcher {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiThemeNightComponent} from './theme-night.component';\n\n@NgModule({\n declarations: [TuiThemeNightComponent],\n exports: [TuiThemeNightComponent],\n})\nexport class TuiThemeNightModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;IAOa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,wBAAwB;EAAG;AAA1D,sBAAsB;IANlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,QAAQ,EAAE,EAAE;QAEZ,aAAa,EAAE,iBAAiB,CAAC,IAAI;;KACxC,CAAC;GACW,sBAAsB,CAAoC;;ICF1D,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
@@ -16,19 +16,19 @@ let TuiTooltipComponent = class TuiTooltipComponent {
16
16
  this.isMobile = isMobile;
17
17
  this.options = options;
18
18
  this.globalMode = null;
19
- this.content = '';
19
+ this.content = ``;
20
20
  this.mode = this.options.mode;
21
21
  this.direction = this.options.direction;
22
22
  this.showDelay = this.options.tuiHintShowDelay;
23
23
  this.hideDelay = this.options.tuiHintHideDelay;
24
- this.describeId = '';
24
+ this.describeId = ``;
25
25
  mode$.pipe(takeUntil(destroy$)).subscribe(mode => {
26
26
  this.globalMode = mode;
27
27
  });
28
28
  }
29
29
  // TODO: Simplify
30
30
  get computedMode() {
31
- return this.mode || (this.globalMode === 'onDark' ? 'onDark' : null);
31
+ return this.mode || (this.globalMode === `onDark` ? `onDark` : null);
32
32
  }
33
33
  stopOnMobile(event) {
34
34
  if (this.isMobile) {
@@ -71,15 +71,15 @@ __decorate([
71
71
  tuiDefaultProp()
72
72
  ], TuiTooltipComponent.prototype, "describeId", void 0);
73
73
  __decorate([
74
- HostBinding('attr.data-mode')
74
+ HostBinding(`attr.data-mode`)
75
75
  ], TuiTooltipComponent.prototype, "computedMode", null);
76
76
  __decorate([
77
- HostListener('mousedown', ['$event']),
78
- HostListener('click', ['$event'])
77
+ HostListener(`mousedown`, [`$event`]),
78
+ HostListener(`click`, [`$event`])
79
79
  ], TuiTooltipComponent.prototype, "stopOnMobile", null);
80
80
  TuiTooltipComponent = __decorate([
81
81
  Component({
82
- selector: 'tui-tooltip',
82
+ selector: `tui-tooltip`,
83
83
  template: "<span\n polymorpheus-outlet\n automation-id=\"tui-tooltip__icon\"\n class=\"icon\"\n [content]=\"icon\"\n [tuiHintId]=\"describeId\"\n [tuiHint]=\"content\"\n [tuiHintDirection]=\"direction\"\n [tuiHintShowDelay]=\"showDelay\"\n [tuiHintHideDelay]=\"hideDelay\"\n [tuiHintMode]=\"computedMode\"\n>\n <ng-template let-icon>\n <tui-svg [src]=\"icon\"></tui-svg>\n </ng-template>\n</span>\n",
84
84
  changeDetection: ChangeDetectionStrategy.OnPush,
85
85
  providers: [TuiDestroyService, MODE_PROVIDER],
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-components-tooltip.js","sources":["ng://@taiga-ui/core/components/tooltip/tooltip.component.ts","ng://@taiga-ui/core/components/tooltip/tooltip.module.ts","ng://@taiga-ui/core/components/tooltip/taiga-ui-core-components-tooltip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {TUI_IS_MOBILE, tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness, TuiHintModeT} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: 'tui-tooltip',\n templateUrl: './tooltip.template.html',\n styleUrls: ['./tooltip.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n})\nexport class TuiTooltipComponent {\n private globalMode: TuiBrightness | null = null;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = '';\n\n @Input()\n @tuiDefaultProp()\n mode: TuiHintOptions['mode'] = this.options.mode;\n\n @Input()\n @tuiDefaultProp()\n direction: TuiHintOptions['direction'] = this.options.direction;\n\n @Input()\n @tuiDefaultProp()\n showDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n hideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\n\n @Input()\n @tuiDefaultProp()\n describeId = '';\n\n constructor(\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_MODE) mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_HINT_OPTIONS) private readonly options: TuiHintOptions,\n ) {\n mode$.pipe(takeUntil(destroy$)).subscribe(mode => {\n this.globalMode = mode;\n });\n }\n\n // TODO: Simplify\n @HostBinding('attr.data-mode')\n get computedMode(): TuiHintModeT | null {\n return this.mode || (this.globalMode === 'onDark' ? 'onDark' : null);\n }\n\n @HostListener('mousedown', ['$event'])\n @HostListener('click', ['$event'])\n stopOnMobile(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n get icon(): PolymorpheusContent {\n return this.options.tooltipIcon;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiHintModule} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTooltipComponent} from './tooltip.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule, TuiHintModule, PolymorpheusModule],\n declarations: [TuiTooltipComponent],\n exports: [TuiTooltipComponent],\n})\nexport class TuiTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;IAwBa,mBAAmB,GAAhC,MAAa,mBAAmB;IA2B5B,YAC+B,QAA6B,EACtC,KAAuC,EACjB,QAAiB,EACd,OAAuB;QAD1B,aAAQ,GAAR,QAAQ,CAAS;QACd,YAAO,GAAP,OAAO,CAAgB;QA9B9D,eAAU,GAAyB,IAAI,CAAC;QAIhD,YAAO,GAAwB,EAAE,CAAC;QAIlC,SAAI,GAA2B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAIjD,cAAS,GAAgC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAIhE,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,eAAU,GAAG,EAAE,CAAC;QAQZ,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC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AAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;IACrB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GA/BpB,mBAAmB,CAwD/B;;ICnEY,gBAAgB,GAA7B,MAAa,gBAAgB;EAAG;AAAnB,gBAAgB;IAL5B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,CAAC;QACxE,YAAY,EAAE,CAAC,mBAAmB,CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACbhC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-components-tooltip.js","sources":["ng://@taiga-ui/core/components/tooltip/tooltip.component.ts","ng://@taiga-ui/core/components/tooltip/tooltip.module.ts","ng://@taiga-ui/core/components/tooltip/taiga-ui-core-components-tooltip.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {TUI_IS_MOBILE, tuiDefaultProp, TuiDestroyService} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives';\nimport {MODE_PROVIDER} from '@taiga-ui/core/providers';\nimport {TUI_MODE} from '@taiga-ui/core/tokens';\nimport {TuiBrightness, TuiHintModeT} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n@Component({\n selector: `tui-tooltip`,\n templateUrl: `./tooltip.template.html`,\n styleUrls: [`./tooltip.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService, MODE_PROVIDER],\n})\nexport class TuiTooltipComponent {\n private globalMode: TuiBrightness | null = null;\n\n @Input()\n @tuiDefaultProp()\n content: PolymorpheusContent = ``;\n\n @Input()\n @tuiDefaultProp()\n mode: TuiHintOptions['mode'] = this.options.mode;\n\n @Input()\n @tuiDefaultProp()\n direction: TuiHintOptions['direction'] = this.options.direction;\n\n @Input()\n @tuiDefaultProp()\n showDelay: TuiHintOptions['tuiHintShowDelay'] = this.options.tuiHintShowDelay;\n\n @Input()\n @tuiDefaultProp()\n hideDelay: TuiHintOptions['tuiHintHideDelay'] = this.options.tuiHintHideDelay;\n\n @Input()\n @tuiDefaultProp()\n describeId = ``;\n\n constructor(\n @Inject(TuiDestroyService) destroy$: Observable<unknown>,\n @Inject(TUI_MODE) mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_HINT_OPTIONS) private readonly options: TuiHintOptions,\n ) {\n mode$.pipe(takeUntil(destroy$)).subscribe(mode => {\n this.globalMode = mode;\n });\n }\n\n // TODO: Simplify\n @HostBinding(`attr.data-mode`)\n get computedMode(): TuiHintModeT | null {\n return this.mode || (this.globalMode === `onDark` ? `onDark` : null);\n }\n\n @HostListener(`mousedown`, [`$event`])\n @HostListener(`click`, [`$event`])\n stopOnMobile(event: MouseEvent): void {\n if (this.isMobile) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n get icon(): PolymorpheusContent {\n return this.options.tooltipIcon;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiSvgModule} from '@taiga-ui/core/components/svg';\nimport {TuiHintModule} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTooltipComponent} from './tooltip.component';\n\n@NgModule({\n imports: [CommonModule, TuiSvgModule, TuiHintModule, PolymorpheusModule],\n declarations: [TuiTooltipComponent],\n exports: [TuiTooltipComponent],\n})\nexport class TuiTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;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