@taiga-ui/core 2.74.0 → 2.76.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 (584) hide show
  1. package/abstract/abstract-dropdown.d.ts +2 -2
  2. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  3. package/bundles/taiga-ui-core-abstract.umd.js +49 -2
  4. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-alert.umd.js +55 -10
  7. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-alert.umd.min.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-button.umd.js +60 -15
  10. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-calendar.umd.js +47 -2
  13. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-data-list.umd.js +83 -39
  16. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-data-list.umd.min.js +1 -1
  18. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-dialog.umd.js +60 -15
  20. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +84 -39
  23. package/bundles/taiga-ui-core-components-dropdown-box.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-error.umd.js +50 -5
  26. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-error.umd.min.js.map +1 -1
  28. package/bundles/taiga-ui-core-components-expand.umd.js +58 -13
  29. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-group.umd.js +64 -19
  32. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-group.umd.min.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-hints-host.umd.js +93 -48
  35. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +56 -11
  38. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-label.umd.js +51 -6
  41. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  43. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-link.umd.js +57 -12
  45. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  46. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-loader.umd.js +48 -3
  48. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  50. package/bundles/taiga-ui-core-components-notification.umd.js +54 -9
  51. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  52. package/bundles/taiga-ui-core-components-notification.umd.min.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +48 -3
  54. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  56. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +49 -4
  57. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  58. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.min.js.map +1 -1
  59. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +48 -3
  60. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js.map +1 -1
  62. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +97 -52
  63. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  64. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  65. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +48 -3
  66. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  67. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  68. package/bundles/taiga-ui-core-components-root.umd.js +50 -5
  69. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  70. package/bundles/taiga-ui-core-components-root.umd.min.js.map +1 -1
  71. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +72 -27
  72. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  73. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-core-components-scrollbar.umd.js +54 -9
  75. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  77. package/bundles/taiga-ui-core-components-svg.umd.js +61 -16
  78. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-components-svg.umd.min.js.map +1 -1
  80. package/bundles/taiga-ui-core-components-theme-night.umd.js +48 -3
  81. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  82. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-core-components-tooltip.umd.js +53 -8
  84. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  85. package/bundles/taiga-ui-core-components-tooltip.umd.min.js.map +1 -1
  86. package/bundles/taiga-ui-core-directives-color.umd.js +52 -7
  87. package/bundles/taiga-ui-core-directives-color.umd.js.map +1 -1
  88. package/bundles/taiga-ui-core-directives-color.umd.min.js.map +1 -1
  89. package/bundles/taiga-ui-core-directives-described-by.umd.js +50 -5
  90. package/bundles/taiga-ui-core-directives-described-by.umd.js.map +1 -1
  91. package/bundles/taiga-ui-core-directives-described-by.umd.min.js.map +1 -1
  92. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js +55 -10
  93. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.js.map +1 -1
  94. package/bundles/taiga-ui-core-directives-dropdown-controller.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-dropdown.umd.js +48 -3
  96. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  97. package/bundles/taiga-ui-core-directives-dropdown.umd.min.js.map +1 -1
  98. package/bundles/taiga-ui-core-directives-hint-controller.umd.js +52 -7
  99. package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +1 -1
  100. package/bundles/taiga-ui-core-directives-hint-controller.umd.min.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-hint.umd.js +51 -6
  102. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  103. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  104. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +49 -4
  105. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  107. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +47 -2
  108. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  109. package/bundles/taiga-ui-core-directives-mask-accessor.umd.min.js.map +1 -1
  110. package/bundles/taiga-ui-core-directives-mode.umd.js +48 -3
  111. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  112. package/bundles/taiga-ui-core-directives-mode.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +50 -5
  114. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  116. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +47 -2
  117. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  118. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.min.js.map +1 -1
  119. package/bundles/taiga-ui-core-directives-table-mode.umd.js +48 -3
  120. package/bundles/taiga-ui-core-directives-table-mode.umd.js.map +1 -1
  121. package/bundles/taiga-ui-core-directives-table-mode.umd.min.js.map +1 -1
  122. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +79 -34
  123. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  124. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-directives-wrapper.umd.js +55 -10
  126. package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
  127. package/bundles/taiga-ui-core-directives-wrapper.umd.min.js.map +1 -1
  128. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +47 -2
  129. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  130. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  131. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +47 -2
  132. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  133. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.min.js.map +1 -1
  134. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +47 -2
  135. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  136. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.min.js.map +1 -1
  137. package/bundles/taiga-ui-core-pipes-format-date.umd.js +46 -1
  138. package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +1 -1
  139. package/bundles/taiga-ui-core-pipes-format-date.umd.min.js.map +1 -1
  140. package/bundles/taiga-ui-core-pipes-format-number.umd.js +46 -1
  141. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  142. package/bundles/taiga-ui-core-pipes-format-number.umd.min.js.map +1 -1
  143. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +46 -1
  144. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  145. package/bundles/taiga-ui-core-pipes-format-phone.umd.min.js.map +1 -1
  146. package/bundles/taiga-ui-core-pipes-month.umd.js +46 -1
  147. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  148. package/bundles/taiga-ui-core-pipes-month.umd.min.js.map +1 -1
  149. package/bundles/taiga-ui-core-pipes-pluralize.umd.js +46 -1
  150. package/bundles/taiga-ui-core-pipes-pluralize.umd.js.map +1 -1
  151. package/bundles/taiga-ui-core-pipes-pluralize.umd.min.js.map +1 -1
  152. package/bundles/taiga-ui-core-services.umd.js +46 -1
  153. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  154. package/bundles/taiga-ui-core-services.umd.min.js.map +1 -1
  155. package/bundles/taiga-ui-core-tokens.umd.js +46 -1
  156. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  157. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  158. package/bundles/taiga-ui-core-utils-dom.umd.js +1 -3
  159. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  160. package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
  161. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  162. package/bundles/taiga-ui-core-utils-format.umd.js +46 -1
  163. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  164. package/bundles/taiga-ui-core-utils-format.umd.min.js.map +1 -1
  165. package/bundles/taiga-ui-core-utils-mask.umd.js +47 -2
  166. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  167. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  168. package/bundles/taiga-ui-core-utils-polyfills.umd.js.map +1 -1
  169. package/bundles/taiga-ui-core-utils-polyfills.umd.min.js.map +1 -1
  170. package/components/button/button-options.d.ts +3 -3
  171. package/components/button/button.component.d.ts +2 -2
  172. package/components/calendar/calendar.component.d.ts +1 -1
  173. package/components/data-list/option/option.component.d.ts +1 -1
  174. package/components/dropdown-box/dropdown-box.component.d.ts +3 -3
  175. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  176. package/components/link/link.component.d.ts +1 -1
  177. package/components/loader/loader.component.d.ts +1 -1
  178. package/components/notification/notification.component.d.ts +1 -1
  179. package/components/primitive-calendar/primitive-calendar.component.d.ts +2 -2
  180. package/components/primitive-textfield/primitive-textfield.component.d.ts +2 -2
  181. package/components/primitive-year-picker/primitive-year-picker.component.d.ts +1 -1
  182. package/components/svg/svg.component.d.ts +1 -1
  183. package/components/svg/taiga-ui-core-components-svg.metadata.json +1 -1
  184. package/constants/version.d.ts +1 -1
  185. package/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.metadata.json +1 -1
  186. package/directives/textfield-controller/textfield-size.directive.d.ts +1 -1
  187. package/directives/textfield-controller/textfield.controller.d.ts +1 -1
  188. package/esm2015/abstract/abstract-dropdown.js +1 -1
  189. package/esm2015/abstract/abstract-textfield-host.js +7 -3
  190. package/esm2015/components/alert/alert.component.js +10 -10
  191. package/esm2015/components/button/button-options.js +1 -1
  192. package/esm2015/components/button/button.component.js +15 -15
  193. package/esm2015/components/calendar/calendar.component.js +2 -2
  194. package/esm2015/components/data-list/data-list-dropdown-manager.directive.js +9 -10
  195. package/esm2015/components/data-list/data-list.component.js +12 -12
  196. package/esm2015/components/data-list/data-list.directive.js +2 -2
  197. package/esm2015/components/data-list/opt-group.directive.js +5 -5
  198. package/esm2015/components/data-list/option/option.component.js +13 -13
  199. package/esm2015/components/dialog/dialog.component.js +12 -12
  200. package/esm2015/components/dialog/dialog.directive.js +4 -4
  201. package/esm2015/components/dropdown-box/dropdown-box.component.js +39 -39
  202. package/esm2015/components/error/error.component.js +5 -5
  203. package/esm2015/components/expand/expand-content.directive.js +2 -2
  204. package/esm2015/components/expand/expand.component.js +12 -12
  205. package/esm2015/components/group/group-styles.component.js +2 -2
  206. package/esm2015/components/group/group.component.js +4 -4
  207. package/esm2015/components/group/group.directive.js +15 -15
  208. package/esm2015/components/hints-host/hint-box/hint-box.component.js +46 -46
  209. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  210. package/esm2015/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  211. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  212. package/esm2015/components/label/label.component.js +6 -6
  213. package/esm2015/components/link/link.component.js +12 -12
  214. package/esm2015/components/loader/loader.component.js +3 -3
  215. package/esm2015/components/notification/notification.component.js +9 -9
  216. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  217. package/esm2015/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  218. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  219. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +28 -28
  220. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  221. package/esm2015/components/primitive-textfield/textfield/textfield.component.js +13 -13
  222. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  223. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  224. package/esm2015/components/root/root.component.js +5 -5
  225. package/esm2015/components/scroll-controls/scroll-controls.component.js +4 -4
  226. package/esm2015/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  227. package/esm2015/components/scroll-controls/scrollbar.directive.js +23 -23
  228. package/esm2015/components/scrollbar/scroll-ref.directive.js +2 -2
  229. package/esm2015/components/scrollbar/scrollable.directive.js +2 -2
  230. package/esm2015/components/scrollbar/scrollbar.component.js +7 -7
  231. package/esm2015/components/svg/svg.component.js +16 -16
  232. package/esm2015/components/theme-night/theme-night.component.js +3 -3
  233. package/esm2015/components/tooltip/tooltip.component.js +8 -8
  234. package/esm2015/directives/color/color.directive.js +7 -7
  235. package/esm2015/directives/described-by/described-by.directive.js +5 -5
  236. package/esm2015/directives/dropdown/dropdown.directive.js +3 -3
  237. package/esm2015/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  238. package/esm2015/directives/hint/hint.directive.js +6 -6
  239. package/esm2015/directives/hint-controller/hint-controller.directive.js +7 -7
  240. package/esm2015/directives/manual-hint/manual-hint.directive.js +4 -4
  241. package/esm2015/directives/mask-accessor/mask-accessor.directive.js +2 -2
  242. package/esm2015/directives/mode/mode.directive.js +3 -3
  243. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +5 -5
  244. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  245. package/esm2015/directives/table-mode/table-mode.directive.js +3 -3
  246. package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  247. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  248. package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  249. package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  250. package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  251. package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  252. package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  253. package/esm2015/directives/textfield-controller/textfield-size.directive.js +5 -5
  254. package/esm2015/directives/textfield-controller/textfield-type.directive.js +5 -5
  255. package/esm2015/directives/textfield-controller/textfield.controller.js +1 -1
  256. package/esm2015/directives/wrapper/wrapper.directive.js +10 -10
  257. package/esm2015/interfaces/alert-options.js +1 -1
  258. package/esm2015/interfaces/dropdown-directive.js +1 -1
  259. package/esm2015/interfaces/hint.js +1 -1
  260. package/esm2015/interfaces/notification-options.js +1 -1
  261. package/esm2015/interfaces/number-format-settings.js +1 -1
  262. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  263. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  264. package/esm2015/mask/text-mask-list.js +1 -1
  265. package/esm2015/mask/text-mask-pipe-handler.js +1 -1
  266. package/esm2015/pipes/calendar-sheet/utils.js +2 -2
  267. package/esm2015/pipes/format-date/format-date.pipe.js +1 -1
  268. package/esm2015/types/brightness.js +1 -1
  269. package/esm2015/types/decimal-symbol.js +1 -1
  270. package/esm2015/types/decimal.js +1 -1
  271. package/esm2015/types/dialog-size.js +1 -1
  272. package/esm2015/types/direction.js +1 -1
  273. package/esm2015/types/dropdown-width.js +1 -1
  274. package/esm2015/types/marker-handler.js +1 -1
  275. package/esm2015/types/option-role.js +1 -1
  276. package/esm2015/types/orientation.js +1 -1
  277. package/esm2015/types/size.js +1 -1
  278. package/esm2015/utils/dom/get-safe-area-size.js +1 -1
  279. package/esm2015/utils/dom/process-icon.js +2 -4
  280. package/esm2015/utils/mask/create-number-mask.js +2 -2
  281. package/esm2015/utils/polyfills/inner-html.js +3 -3
  282. package/esm5/abstract/abstract-dropdown.js +1 -1
  283. package/esm5/abstract/abstract-textfield-host.js +4 -2
  284. package/esm5/components/alert/alert.component.js +10 -10
  285. package/esm5/components/button/button-options.js +1 -1
  286. package/esm5/components/button/button.component.js +15 -15
  287. package/esm5/components/calendar/calendar.component.js +2 -2
  288. package/esm5/components/data-list/data-list-dropdown-manager.directive.js +10 -11
  289. package/esm5/components/data-list/data-list.component.js +12 -12
  290. package/esm5/components/data-list/data-list.directive.js +2 -2
  291. package/esm5/components/data-list/opt-group.directive.js +5 -5
  292. package/esm5/components/data-list/option/option.component.js +13 -13
  293. package/esm5/components/dialog/dialog.component.js +12 -12
  294. package/esm5/components/dialog/dialog.directive.js +4 -4
  295. package/esm5/components/dropdown-box/dropdown-box.component.js +39 -39
  296. package/esm5/components/error/error.component.js +5 -5
  297. package/esm5/components/expand/expand-content.directive.js +2 -2
  298. package/esm5/components/expand/expand.component.js +12 -12
  299. package/esm5/components/group/group-styles.component.js +2 -2
  300. package/esm5/components/group/group.component.js +4 -4
  301. package/esm5/components/group/group.directive.js +15 -15
  302. package/esm5/components/hints-host/hint-box/hint-box.component.js +46 -46
  303. package/esm5/components/hints-host/hints-host.component.js +3 -3
  304. package/esm5/components/hosted-dropdown/hosted-dropdown-connector.directive.js +2 -2
  305. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +10 -10
  306. package/esm5/components/label/label.component.js +6 -6
  307. package/esm5/components/link/link.component.js +12 -12
  308. package/esm5/components/loader/loader.component.js +3 -3
  309. package/esm5/components/notification/notification.component.js +9 -9
  310. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  311. package/esm5/components/primitive-checkbox/primitive-checkbox.component.js +4 -4
  312. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +3 -3
  313. package/esm5/components/primitive-textfield/primitive-textfield.component.js +28 -28
  314. package/esm5/components/primitive-textfield/primitive-textfield.directive.js +2 -2
  315. package/esm5/components/primitive-textfield/textfield/textfield.component.js +13 -13
  316. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +12 -12
  317. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  318. package/esm5/components/root/root.component.js +5 -5
  319. package/esm5/components/scroll-controls/scroll-controls.component.js +4 -4
  320. package/esm5/components/scroll-controls/scrollbar-wrapper.directive.js +2 -2
  321. package/esm5/components/scroll-controls/scrollbar.directive.js +23 -23
  322. package/esm5/components/scrollbar/scroll-ref.directive.js +2 -2
  323. package/esm5/components/scrollbar/scrollable.directive.js +2 -2
  324. package/esm5/components/scrollbar/scrollbar.component.js +7 -7
  325. package/esm5/components/svg/svg.component.js +16 -16
  326. package/esm5/components/theme-night/theme-night.component.js +3 -3
  327. package/esm5/components/tooltip/tooltip.component.js +8 -8
  328. package/esm5/directives/color/color.directive.js +7 -7
  329. package/esm5/directives/described-by/described-by.directive.js +5 -5
  330. package/esm5/directives/dropdown/dropdown.directive.js +3 -3
  331. package/esm5/directives/dropdown-controller/dropdown-controller.directive.js +10 -10
  332. package/esm5/directives/hint/hint.directive.js +6 -6
  333. package/esm5/directives/hint-controller/hint-controller.directive.js +7 -7
  334. package/esm5/directives/manual-hint/manual-hint.directive.js +4 -4
  335. package/esm5/directives/mask-accessor/mask-accessor.directive.js +2 -2
  336. package/esm5/directives/mode/mode.directive.js +3 -3
  337. package/esm5/directives/pointer-hint/pointer-hint.directive.js +5 -5
  338. package/esm5/directives/scroll-into-view/scroll-into-view.directive.js +2 -2
  339. package/esm5/directives/table-mode/table-mode.directive.js +3 -3
  340. package/esm5/directives/textfield-controller/textfield-autocomplete.directive.js +5 -5
  341. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -4
  342. package/esm5/directives/textfield-controller/textfield-custom-content.directive.js +5 -5
  343. package/esm5/directives/textfield-controller/textfield-example-text.directive.js +5 -5
  344. package/esm5/directives/textfield-controller/textfield-input-mode.directive.js +5 -5
  345. package/esm5/directives/textfield-controller/textfield-label-outside.directive.js +4 -4
  346. package/esm5/directives/textfield-controller/textfield-max-length.directive.js +4 -4
  347. package/esm5/directives/textfield-controller/textfield-size.directive.js +5 -5
  348. package/esm5/directives/textfield-controller/textfield-type.directive.js +5 -5
  349. package/esm5/directives/textfield-controller/textfield.controller.js +1 -1
  350. package/esm5/directives/wrapper/wrapper.directive.js +10 -10
  351. package/esm5/interfaces/alert-options.js +1 -1
  352. package/esm5/interfaces/dropdown-directive.js +1 -1
  353. package/esm5/interfaces/hint.js +1 -1
  354. package/esm5/interfaces/notification-options.js +1 -1
  355. package/esm5/interfaces/number-format-settings.js +1 -1
  356. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  357. package/esm5/internal/svg-defs-host/svg-defs-host.component.js +2 -2
  358. package/esm5/mask/text-mask-list.js +1 -1
  359. package/esm5/mask/text-mask-pipe-handler.js +1 -1
  360. package/esm5/pipes/calendar-sheet/utils.js +2 -2
  361. package/esm5/pipes/format-date/format-date.pipe.js +1 -1
  362. package/esm5/types/brightness.js +1 -1
  363. package/esm5/types/decimal-symbol.js +1 -1
  364. package/esm5/types/decimal.js +1 -1
  365. package/esm5/types/dialog-size.js +1 -1
  366. package/esm5/types/direction.js +1 -1
  367. package/esm5/types/dropdown-width.js +1 -1
  368. package/esm5/types/marker-handler.js +1 -1
  369. package/esm5/types/option-role.js +1 -1
  370. package/esm5/types/orientation.js +1 -1
  371. package/esm5/types/size.js +1 -1
  372. package/esm5/utils/dom/get-safe-area-size.js +1 -1
  373. package/esm5/utils/dom/process-icon.js +2 -4
  374. package/esm5/utils/mask/create-number-mask.js +2 -2
  375. package/esm5/utils/polyfills/inner-html.js +1 -1
  376. package/fesm2015/taiga-ui-core-abstract.js +6 -2
  377. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  378. package/fesm2015/taiga-ui-core-components-alert.js +9 -9
  379. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  380. package/fesm2015/taiga-ui-core-components-button.js +14 -14
  381. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  382. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  383. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  384. package/fesm2015/taiga-ui-core-components-data-list.js +36 -37
  385. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  386. package/fesm2015/taiga-ui-core-components-dialog.js +14 -14
  387. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  388. package/fesm2015/taiga-ui-core-components-dropdown-box.js +38 -38
  389. package/fesm2015/taiga-ui-core-components-dropdown-box.js.map +1 -1
  390. package/fesm2015/taiga-ui-core-components-error.js +4 -4
  391. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  392. package/fesm2015/taiga-ui-core-components-expand.js +12 -12
  393. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  394. package/fesm2015/taiga-ui-core-components-group.js +18 -18
  395. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  396. package/fesm2015/taiga-ui-core-components-hints-host.js +47 -47
  397. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  398. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +10 -10
  399. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  400. package/fesm2015/taiga-ui-core-components-label.js +5 -5
  401. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  402. package/fesm2015/taiga-ui-core-components-link.js +11 -11
  403. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  404. package/fesm2015/taiga-ui-core-components-loader.js +2 -2
  405. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  406. package/fesm2015/taiga-ui-core-components-notification.js +8 -8
  407. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  408. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  409. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  410. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +3 -3
  411. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  412. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
  413. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  414. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +51 -51
  415. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  416. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  417. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  418. package/fesm2015/taiga-ui-core-components-root.js +4 -4
  419. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  420. package/fesm2015/taiga-ui-core-components-scroll-controls.js +26 -26
  421. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  422. package/fesm2015/taiga-ui-core-components-scrollbar.js +8 -8
  423. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  424. package/fesm2015/taiga-ui-core-components-svg.js +15 -15
  425. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  426. package/fesm2015/taiga-ui-core-components-theme-night.js +2 -2
  427. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  428. package/fesm2015/taiga-ui-core-components-tooltip.js +7 -7
  429. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  430. package/fesm2015/taiga-ui-core-directives-color.js +6 -6
  431. package/fesm2015/taiga-ui-core-directives-color.js.map +1 -1
  432. package/fesm2015/taiga-ui-core-directives-described-by.js +4 -4
  433. package/fesm2015/taiga-ui-core-directives-described-by.js.map +1 -1
  434. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js +9 -9
  435. package/fesm2015/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  436. package/fesm2015/taiga-ui-core-directives-dropdown.js +2 -2
  437. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  438. package/fesm2015/taiga-ui-core-directives-hint-controller.js +6 -6
  439. package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +1 -1
  440. package/fesm2015/taiga-ui-core-directives-hint.js +5 -5
  441. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  442. package/fesm2015/taiga-ui-core-directives-manual-hint.js +3 -3
  443. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  444. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +1 -1
  445. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  446. package/fesm2015/taiga-ui-core-directives-mode.js +2 -2
  447. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  448. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +4 -4
  449. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  450. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +1 -1
  451. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  452. package/fesm2015/taiga-ui-core-directives-table-mode.js +2 -2
  453. package/fesm2015/taiga-ui-core-directives-table-mode.js.map +1 -1
  454. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +33 -33
  455. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  456. package/fesm2015/taiga-ui-core-directives-wrapper.js +9 -9
  457. package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
  458. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  459. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  460. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +1 -1
  461. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  462. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  463. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  464. package/fesm2015/taiga-ui-core-pipes-format-date.js.map +1 -1
  465. package/fesm2015/taiga-ui-core-utils-dom.js +1 -3
  466. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  467. package/fesm2015/taiga-ui-core-utils-mask.js +1 -1
  468. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  469. package/fesm2015/taiga-ui-core-utils-polyfills.js +2 -2
  470. package/fesm2015/taiga-ui-core-utils-polyfills.js.map +1 -1
  471. package/fesm5/taiga-ui-core-abstract.js +3 -1
  472. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  473. package/fesm5/taiga-ui-core-components-alert.js +9 -9
  474. package/fesm5/taiga-ui-core-components-alert.js.map +1 -1
  475. package/fesm5/taiga-ui-core-components-button.js +14 -14
  476. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  477. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  478. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  479. package/fesm5/taiga-ui-core-components-data-list.js +37 -38
  480. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  481. package/fesm5/taiga-ui-core-components-dialog.js +14 -14
  482. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  483. package/fesm5/taiga-ui-core-components-dropdown-box.js +38 -38
  484. package/fesm5/taiga-ui-core-components-dropdown-box.js.map +1 -1
  485. package/fesm5/taiga-ui-core-components-error.js +4 -4
  486. package/fesm5/taiga-ui-core-components-error.js.map +1 -1
  487. package/fesm5/taiga-ui-core-components-expand.js +12 -12
  488. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  489. package/fesm5/taiga-ui-core-components-group.js +18 -18
  490. package/fesm5/taiga-ui-core-components-group.js.map +1 -1
  491. package/fesm5/taiga-ui-core-components-hints-host.js +47 -47
  492. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  493. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +10 -10
  494. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  495. package/fesm5/taiga-ui-core-components-label.js +5 -5
  496. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  497. package/fesm5/taiga-ui-core-components-link.js +11 -11
  498. package/fesm5/taiga-ui-core-components-link.js.map +1 -1
  499. package/fesm5/taiga-ui-core-components-loader.js +2 -2
  500. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  501. package/fesm5/taiga-ui-core-components-notification.js +8 -8
  502. package/fesm5/taiga-ui-core-components-notification.js.map +1 -1
  503. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  504. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  505. package/fesm5/taiga-ui-core-components-primitive-checkbox.js +3 -3
  506. package/fesm5/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  507. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
  508. package/fesm5/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  509. package/fesm5/taiga-ui-core-components-primitive-textfield.js +51 -51
  510. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  511. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  512. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  513. package/fesm5/taiga-ui-core-components-root.js +4 -4
  514. package/fesm5/taiga-ui-core-components-root.js.map +1 -1
  515. package/fesm5/taiga-ui-core-components-scroll-controls.js +26 -26
  516. package/fesm5/taiga-ui-core-components-scroll-controls.js.map +1 -1
  517. package/fesm5/taiga-ui-core-components-scrollbar.js +8 -8
  518. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  519. package/fesm5/taiga-ui-core-components-svg.js +15 -15
  520. package/fesm5/taiga-ui-core-components-svg.js.map +1 -1
  521. package/fesm5/taiga-ui-core-components-theme-night.js +2 -2
  522. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  523. package/fesm5/taiga-ui-core-components-tooltip.js +7 -7
  524. package/fesm5/taiga-ui-core-components-tooltip.js.map +1 -1
  525. package/fesm5/taiga-ui-core-directives-color.js +6 -6
  526. package/fesm5/taiga-ui-core-directives-color.js.map +1 -1
  527. package/fesm5/taiga-ui-core-directives-described-by.js +4 -4
  528. package/fesm5/taiga-ui-core-directives-described-by.js.map +1 -1
  529. package/fesm5/taiga-ui-core-directives-dropdown-controller.js +9 -9
  530. package/fesm5/taiga-ui-core-directives-dropdown-controller.js.map +1 -1
  531. package/fesm5/taiga-ui-core-directives-dropdown.js +2 -2
  532. package/fesm5/taiga-ui-core-directives-dropdown.js.map +1 -1
  533. package/fesm5/taiga-ui-core-directives-hint-controller.js +6 -6
  534. package/fesm5/taiga-ui-core-directives-hint-controller.js.map +1 -1
  535. package/fesm5/taiga-ui-core-directives-hint.js +5 -5
  536. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  537. package/fesm5/taiga-ui-core-directives-manual-hint.js +3 -3
  538. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  539. package/fesm5/taiga-ui-core-directives-mask-accessor.js +1 -1
  540. package/fesm5/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  541. package/fesm5/taiga-ui-core-directives-mode.js +2 -2
  542. package/fesm5/taiga-ui-core-directives-mode.js.map +1 -1
  543. package/fesm5/taiga-ui-core-directives-pointer-hint.js +4 -4
  544. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  545. package/fesm5/taiga-ui-core-directives-scroll-into-view.js +1 -1
  546. package/fesm5/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  547. package/fesm5/taiga-ui-core-directives-table-mode.js +2 -2
  548. package/fesm5/taiga-ui-core-directives-table-mode.js.map +1 -1
  549. package/fesm5/taiga-ui-core-directives-textfield-controller.js +33 -33
  550. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  551. package/fesm5/taiga-ui-core-directives-wrapper.js +9 -9
  552. package/fesm5/taiga-ui-core-directives-wrapper.js.map +1 -1
  553. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  554. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  555. package/fesm5/taiga-ui-core-internal-svg-defs-host.js +1 -1
  556. package/fesm5/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  557. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js +1 -1
  558. package/fesm5/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  559. package/fesm5/taiga-ui-core-pipes-format-date.js.map +1 -1
  560. package/fesm5/taiga-ui-core-utils-dom.js +1 -3
  561. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  562. package/fesm5/taiga-ui-core-utils-mask.js +1 -1
  563. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  564. package/fesm5/taiga-ui-core-utils-polyfills.js.map +1 -1
  565. package/interfaces/alert-options.d.ts +1 -1
  566. package/interfaces/dropdown-directive.d.ts +2 -2
  567. package/interfaces/hint.d.ts +1 -1
  568. package/interfaces/notification-options.d.ts +1 -1
  569. package/interfaces/number-format-settings.d.ts +1 -2
  570. package/mask/text-mask-list.d.ts +1 -1
  571. package/mask/text-mask-pipe-handler.d.ts +1 -1
  572. package/package.json +4 -4
  573. package/pipes/format-date/format-date.pipe.d.ts +1 -1
  574. package/tokens/dropdown-directive.d.ts +1 -1
  575. package/types/brightness.d.ts +1 -1
  576. package/types/decimal-symbol.d.ts +1 -1
  577. package/types/decimal.d.ts +1 -1
  578. package/types/dialog-size.d.ts +1 -1
  579. package/types/direction.d.ts +2 -2
  580. package/types/dropdown-width.d.ts +1 -1
  581. package/types/marker-handler.d.ts +1 -1
  582. package/types/option-role.d.ts +1 -1
  583. package/types/orientation.d.ts +1 -1
  584. package/types/size.d.ts +2 -2
@@ -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 as CSS_TOKEN, USER_AGENT} from '@ng-web-apis/common';\nimport {\n getElementOffset,\n isFirefox,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiInjectionTokenType,\n} 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_TOKEN)\n private readonly cssRef: TuiInjectionTokenType<typeof CSS_TOKEN>,\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":["CSS_TOKEN"],"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;;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P,QAAQ,EAAE,eAAe;QACzB,oJAAwC;QAExC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,cAAc;gBACvB,IAAI,EAAE,CAAC,uBAAqB,CAAC;gBAC7B,UAAU,EAAE,gBAAgB;aAC/B;SACJ;;KACJ,CAAC;IAeO,WAAA,MAAM,CAACA,GAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAlBd,qBAAqB,CAkDjC;;IC9EY,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 as CSS_TOKEN, USER_AGENT} from '@ng-web-apis/common';\nimport {\n getElementOffset,\n isFirefox,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiInjectionTokenType,\n} 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_TOKEN)\n private readonly cssRef: TuiInjectionTokenType<typeof CSS_TOKEN>,\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":["CSS_TOKEN"],"mappings":";;;;;;;;;MAGa,mBAAmB,GAAG,iBAAiB;IAWvC,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IATjC,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB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AAGD;IADC,YAAY,CAAC,GAAG,oBAAoB,OAAO,EAAE,CAAC,eAAe,CAAC,CAAC;2DAa/D;AAjDQ,qBAAqB;IAbjC,SAAS,CAAC;QACP,QAAQ,EAAE,eAAe;QACzB,oJAAwC;QAExC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,cAAc;gBACvB,IAAI,EAAE,CAAC,uBAAqB,CAAC;gBAC7B,UAAU,EAAE,gBAAgB;aAC/B;SACJ;;KACJ,CAAC;IAeO,WAAA,MAAM,CAACA,GAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAlBd,qBAAqB,CAkDjC;;IC9EY,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=\"t-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}.t-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;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,cAAS,GAAT,SAAS,CAAQ;QAErC,iBAAY,GAAZ,YAAY,CAA0B;QAEtC,qBAAgB,GAAhB,gBAAgB,CAA0B;QA7B9C,SAAI,GAAG,IAAI,aAAa,CAAO,CAAC,CAAC,CAAC;QAClC,SAAI,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrC,SAAI,GAAG,EAAE,CAAC;QA6Bd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAC5B,SAAS,CAAC,MACN,IAAI,CAAC,UAAU;cACT,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;cAC/B,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAA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P,iBAAiB,EAAE;0CAInB;AAsGD;IADC,OAAO;kDAGP;AAlHQ,eAAe;IAN3B,SAAS,CAAC;QACP,QAAQ,EAAE,SAAS;QACnB,mnBAAkC;QAElC,eAAe,EAAE,uBAAuB,CAAC,MAAM;;KAClD,CAAC;IAgBO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,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 get src(): string {\n return this.icon;\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 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;IAkBxB,YACuC,WAAqB,EACvB,SAAiB,EACT,SAAmC,EAG3D,YAA8B,EACP,UAAyB,EAEhD,oBAA6C,EACvB,SAAuB,EACzB,UAA+B,EAC/B,SAAiB,EAErC,YA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Y,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;GAjC7B,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;;;;;;"}
@@ -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=\"t-tooltip-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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AC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC;IACrC,YAAY,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC;uDAMjC;AAnDQ,mBAAmB;IAP/B,SAAS,CAAC;QACP,QAAQ,EAAE,aAAa;QACvB,ocAAsC;QAEtC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;;KAChD,CAAC;IA6BO,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;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":";;;;;;;;;;;;;IAwBa,mBAAmB,GAAhC,MAAa,mBAAmB;IA2B5B,YAC+B,QAA6B,EACtC,KAAuC,EACjB,QAAiB,EACd,OAAuB;QAD1B,aAAQ,GAAR,QAAQ,CAAS;QACd,YAAO,GAAP,OAAO,CAAgB;QA9B9D,eAAU,GAAyB,IAAI,CAAC;QAIhD,YAAO,GAAwB,EAAE,CAAC;QAIlC,SAAI,GAA2B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;QAIjD,cAAS,GAAgC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QAIhE,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,cAAS,GAAuC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;QAI9E,eAAU,GAAG,EAAE,CAAC;QAQZ,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI;YAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SAC1B,CAAC,CAAC;KACN;;IAID,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,KAAK,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAAC,CAAC;KACxE;IAID,YAAY,CAAC,KAAiB;QAC1B,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,KAAK,CAAC,eAAe,EAAE,CAAC;SAC3B;KACJ;IAED,IAAI,IAAI;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CAAC;QACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;KACjC,CAAC;GACW,gBAAgB,CAAG;;ACbhC;;;;;;"}
@@ -325,9 +325,9 @@ const COLOR = `[data-tui-background='primary'] {
325
325
  */
326
326
  let TuiColorDirective = class TuiColorDirective {
327
327
  constructor(directiveStyles) {
328
- this.tuiColor = ``;
329
- this.tuiBackground = ``;
330
- directiveStyles.addStyle(COLOR, `TuiColorDirective`);
328
+ this.tuiColor = '';
329
+ this.tuiBackground = '';
330
+ directiveStyles.addStyle(COLOR, 'TuiColorDirective');
331
331
  }
332
332
  };
333
333
  TuiColorDirective.ctorParameters = () => [
@@ -335,17 +335,17 @@ TuiColorDirective.ctorParameters = () => [
335
335
  ];
336
336
  __decorate([
337
337
  Input(),
338
- HostBinding(`attr.data-tui-color`),
338
+ HostBinding('attr.data-tui-color'),
339
339
  tuiDefaultProp()
340
340
  ], TuiColorDirective.prototype, "tuiColor", void 0);
341
341
  __decorate([
342
342
  Input(),
343
- HostBinding(`attr.data-tui-background`),
343
+ HostBinding('attr.data-tui-background'),
344
344
  tuiDefaultProp()
345
345
  ], TuiColorDirective.prototype, "tuiBackground", void 0);
346
346
  TuiColorDirective = __decorate([
347
347
  Directive({
348
- selector: `[tuiColor],[tuiBackground]`,
348
+ selector: '[tuiColor],[tuiBackground]',
349
349
  }),
350
350
  __param(0, Inject(TuiDirectiveStylesService))
351
351
  ], TuiColorDirective);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-color.js","sources":["ng://@taiga-ui/core/directives/color/color.const.ts","ng://@taiga-ui/core/directives/color/color.directive.ts","ng://@taiga-ui/core/directives/color/color.module.ts","ng://@taiga-ui/core/directives/color/taiga-ui-core-directives-color.ts"],"sourcesContent":["/**\n * @deprecated use CSS custom properties\n */\nexport const COLOR = `[data-tui-background='primary'] {\n background-color: var(--tui-primary);\n}\n\n[data-tui-background='secondary'] {\n background-color: var(--tui-info-fill);\n}\n\n[data-tui-background='success'] {\n background-color: var(--tui-success-fill);\n}\n\n[data-tui-background='error'] {\n background-color: var(--tui-error-fill);\n}\n\n[data-tui-background='support-mustard'],\n[data-tui-background='support-01'] {\n background-color: var(--tui-support-01);\n}\n\n[data-tui-background='support-texas'],\n[data-tui-background='support-02'] {\n background-color: var(--tui-support-02);\n}\n\n[data-tui-background='support-tan'],\n[data-tui-background='support-03'] {\n background-color: var(--tui-support-03);\n}\n\n[data-tui-background='support-salmon'],\n[data-tui-background='support-04'] {\n background-color: var(--tui-support-04);\n}\n\n[data-tui-background='support-sienna'],\n[data-tui-background='support-05'] {\n background-color: var(--tui-support-05);\n}\n\n[data-tui-background='support-bittersweet'],\n[data-tui-background='support-06'] {\n background-color: var(--tui-support-06);\n}\n\n[data-tui-background='support-pinkie'],\n[data-tui-background='support-07'] {\n background-color: var(--tui-support-07);\n}\n\n[data-tui-background='support-charm'],\n[data-tui-background='support-08'] {\n background-color: var(--tui-support-08);\n}\n\n[data-tui-background='support-amethyst'],\n[data-tui-background='support-09'] {\n background-color: var(--tui-support-09);\n}\n\n[data-tui-background='support-helio'],\n[data-tui-background='support-10'] {\n background-color: var(--tui-support-10);\n}\n\n[data-tui-background='support-lilac'],\n[data-tui-background='support-11'] {\n background-color: var(--tui-support-11);\n}\n\n[data-tui-background='support-malibu'],\n[data-tui-background='support-12'] {\n background-color: var(--tui-support-12);\n}\n\n[data-tui-background='support-havelock'],\n[data-tui-background='support-13'] {\n background-color: var(--tui-support-13);\n}\n\n[data-tui-background='support-picton'],\n[data-tui-background='support-14'] {\n background-color: var(--tui-support-14);\n}\n\n[data-tui-background='support-mint'],\n[data-tui-background='support-15'] {\n background-color: var(--tui-support-15);\n}\n\n[data-tui-background='support-fountain'],\n[data-tui-background='support-16'] {\n background-color: var(--tui-support-16);\n}\n\n[data-tui-background='support-puertorico'],\n[data-tui-background='support-17'] {\n background-color: var(--tui-support-17);\n}\n\n[data-tui-background='support-bay'],\n[data-tui-background='support-18'] {\n background-color: var(--tui-support-18);\n}\n\n[data-tui-background='support-forest'],\n[data-tui-background='support-19'] {\n background-color: var(--tui-support-19);\n}\n\n[data-tui-background='support-york'],\n[data-tui-background='support-20'] {\n background-color: var(--tui-support-20);\n}\n\n[data-tui-background='support-feijoa'],\n[data-tui-background='support-21'] {\n background-color: var(--tui-support-21);\n}\n\n[data-tui-background='base-01'] {\n background-color: var(--tui-base-01);\n}\n\n[data-tui-background='base-02'] {\n background-color: var(--tui-base-02);\n}\n\n[data-tui-background='base-03'] {\n background-color: var(--tui-base-03);\n}\n\n[data-tui-background='base-04'] {\n background-color: var(--tui-base-04);\n}\n\n[data-tui-background='base-05'] {\n background-color: var(--tui-base-05);\n}\n\n[data-tui-background='base-06'] {\n background-color: var(--tui-base-06);\n}\n\n[data-tui-background='base-07'] {\n background-color: var(--tui-base-07);\n}\n\n[data-tui-background='base-08'] {\n background-color: var(--tui-base-08);\n}\n\n[data-tui-background='base-09'] {\n background-color: var(--tui-base-09);\n}\n\n[data-tui-color='primary'] {\n color: var(--tui-primary);\n}\n\n[data-tui-color='secondary'] {\n color: var(--tui-info-fill);\n}\n\n[data-tui-color='success'] {\n color: var(--tui-success-fill);\n}\n\n[data-tui-color='error'] {\n color: var(--tui-error-fill);\n}\n\n[data-tui-color='support-mustard'],\n[data-tui-color='support-01'] {\n color: var(--tui-support-01);\n}\n\n[data-tui-color='support-texas'],\n[data-tui-color='support-02'] {\n color: var(--tui-support-02);\n}\n\n[data-tui-color='support-tan'],\n[data-tui-color='support-03'] {\n color: var(--tui-support-03);\n}\n\n[data-tui-color='support-salmon'],\n[data-tui-color='support-04'] {\n color: var(--tui-support-04);\n}\n\n[data-tui-color='support-sienna'],\n[data-tui-color='support-05'] {\n color: var(--tui-support-05);\n}\n\n[data-tui-color='support-bittersweet'],\n[data-tui-color='support-06'] {\n color: var(--tui-support-06);\n}\n\n[data-tui-color='support-pinkie'],\n[data-tui-color='support-07'] {\n color: var(--tui-support-07);\n}\n\n[data-tui-color='support-charm'],\n[data-tui-color='support-08'] {\n color: var(--tui-support-08);\n}\n\n[data-tui-color='support-amethyst'],\n[data-tui-color='support-09'] {\n color: var(--tui-support-09);\n}\n\n[data-tui-color='support-helio'],\n[data-tui-color='support-10'] {\n color: var(--tui-support-10);\n}\n\n[data-tui-color='support-lilac'],\n[data-tui-color='support-11'] {\n color: var(--tui-support-11);\n}\n\n[data-tui-color='support-malibu'],\n[data-tui-color='support-12'] {\n color: var(--tui-support-12);\n}\n\n[data-tui-color='support-havelock'],\n[data-tui-color='support-13'] {\n color: var(--tui-support-13);\n}\n\n[data-tui-color='support-picton'],\n[data-tui-color='support-14'] {\n color: var(--tui-support-14);\n}\n\n[data-tui-color='support-mint'],\n[data-tui-color='support-15'] {\n color: var(--tui-support-15);\n}\n\n[data-tui-color='support-fountain'],\n[data-tui-color='support-16'] {\n color: var(--tui-support-16);\n}\n\n[data-tui-color='support-puertorico'],\n[data-tui-color='support-17'] {\n color: var(--tui-support-17);\n}\n\n[data-tui-color='support-bay'],\n[data-tui-color='support-18'] {\n color: var(--tui-support-18);\n}\n\n[data-tui-color='support-forest'],\n[data-tui-color='support-19'] {\n color: var(--tui-support-19);\n}\n\n[data-tui-color='support-york'],\n[data-tui-color='support-20'] {\n color: var(--tui-support-20);\n}\n\n[data-tui-color='support-feijoa'],\n[data-tui-color='support-21'] {\n color: var(--tui-support-21);\n}\n\n[data-tui-color='base-01'] {\n color: var(--tui-base-01);\n}\n\n[data-tui-color='base-02'] {\n color: var(--tui-base-02);\n}\n\n[data-tui-color='base-03'] {\n color: var(--tui-base-03);\n}\n\n[data-tui-color='base-04'] {\n color: var(--tui-base-04);\n}\n\n[data-tui-color='base-05'] {\n color: var(--tui-base-05);\n}\n\n[data-tui-color='base-06'] {\n color: var(--tui-base-06);\n}\n\n[data-tui-color='base-07'] {\n color: var(--tui-base-07);\n}\n\n[data-tui-color='base-08'] {\n color: var(--tui-base-08);\n}\n\n[data-tui-color='base-09'] {\n color: var(--tui-base-09);\n}\n`;\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiDirectiveStylesService} from '@taiga-ui/cdk';\nimport {TuiColor} from '@taiga-ui/core/types';\n\nimport {COLOR} from './color.const';\n\n/**\n * @deprecated use CSS custom properties\n */\n@Directive({\n selector: `[tuiColor],[tuiBackground]`,\n})\nexport class TuiColorDirective {\n @Input()\n @HostBinding(`attr.data-tui-color`)\n @tuiDefaultProp()\n tuiColor: TuiColor | string = ``;\n\n @Input()\n @HostBinding(`attr.data-tui-background`)\n @tuiDefaultProp()\n tuiBackground: TuiColor | string = ``;\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addStyle(COLOR, `TuiColorDirective`);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiColorDirective} from './color.directive';\n\n/**\n * @deprecated use CSS custom properties\n */\n@NgModule({\n declarations: [TuiColorDirective],\n exports: [TuiColorDirective],\n})\nexport class TuiColorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;MAGa,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGrB;;;IAMa,iBAAiB,GAA9B,MAAa,iBAAiB;IAW1B,YACuC,eAA0C;QARjF,aAAQ,GAAsB,EAAE,CAAC;QAKjC,kBAAa,GAAsB,EAAE,CAAC;QAKlC,eAAe,CAAC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;KACxD;EACJ;;YAJ2D,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;AARrC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,qBAAqB,CAAC;IAClC,cAAc,EAAE;mDACgB;AAKjC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,0BAA0B,CAAC;IACvC,cAAc,EAAE;wDACqB;AAT7B,iBAAiB;IAH7B,SAAS,CAAC;QACP,QAAQ,EAAE,4BAA4B;KACzC,CAAC;IAaO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAZ7B,iBAAiB,CAgB7B;;ACxBD;;;IAOa,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAJ1B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACX9B;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-color.js","sources":["ng://@taiga-ui/core/directives/color/color.const.ts","ng://@taiga-ui/core/directives/color/color.directive.ts","ng://@taiga-ui/core/directives/color/color.module.ts","ng://@taiga-ui/core/directives/color/taiga-ui-core-directives-color.ts"],"sourcesContent":["/**\n * @deprecated use CSS custom properties\n */\nexport const COLOR = `[data-tui-background='primary'] {\n background-color: var(--tui-primary);\n}\n\n[data-tui-background='secondary'] {\n background-color: var(--tui-info-fill);\n}\n\n[data-tui-background='success'] {\n background-color: var(--tui-success-fill);\n}\n\n[data-tui-background='error'] {\n background-color: var(--tui-error-fill);\n}\n\n[data-tui-background='support-mustard'],\n[data-tui-background='support-01'] {\n background-color: var(--tui-support-01);\n}\n\n[data-tui-background='support-texas'],\n[data-tui-background='support-02'] {\n background-color: var(--tui-support-02);\n}\n\n[data-tui-background='support-tan'],\n[data-tui-background='support-03'] {\n background-color: var(--tui-support-03);\n}\n\n[data-tui-background='support-salmon'],\n[data-tui-background='support-04'] {\n background-color: var(--tui-support-04);\n}\n\n[data-tui-background='support-sienna'],\n[data-tui-background='support-05'] {\n background-color: var(--tui-support-05);\n}\n\n[data-tui-background='support-bittersweet'],\n[data-tui-background='support-06'] {\n background-color: var(--tui-support-06);\n}\n\n[data-tui-background='support-pinkie'],\n[data-tui-background='support-07'] {\n background-color: var(--tui-support-07);\n}\n\n[data-tui-background='support-charm'],\n[data-tui-background='support-08'] {\n background-color: var(--tui-support-08);\n}\n\n[data-tui-background='support-amethyst'],\n[data-tui-background='support-09'] {\n background-color: var(--tui-support-09);\n}\n\n[data-tui-background='support-helio'],\n[data-tui-background='support-10'] {\n background-color: var(--tui-support-10);\n}\n\n[data-tui-background='support-lilac'],\n[data-tui-background='support-11'] {\n background-color: var(--tui-support-11);\n}\n\n[data-tui-background='support-malibu'],\n[data-tui-background='support-12'] {\n background-color: var(--tui-support-12);\n}\n\n[data-tui-background='support-havelock'],\n[data-tui-background='support-13'] {\n background-color: var(--tui-support-13);\n}\n\n[data-tui-background='support-picton'],\n[data-tui-background='support-14'] {\n background-color: var(--tui-support-14);\n}\n\n[data-tui-background='support-mint'],\n[data-tui-background='support-15'] {\n background-color: var(--tui-support-15);\n}\n\n[data-tui-background='support-fountain'],\n[data-tui-background='support-16'] {\n background-color: var(--tui-support-16);\n}\n\n[data-tui-background='support-puertorico'],\n[data-tui-background='support-17'] {\n background-color: var(--tui-support-17);\n}\n\n[data-tui-background='support-bay'],\n[data-tui-background='support-18'] {\n background-color: var(--tui-support-18);\n}\n\n[data-tui-background='support-forest'],\n[data-tui-background='support-19'] {\n background-color: var(--tui-support-19);\n}\n\n[data-tui-background='support-york'],\n[data-tui-background='support-20'] {\n background-color: var(--tui-support-20);\n}\n\n[data-tui-background='support-feijoa'],\n[data-tui-background='support-21'] {\n background-color: var(--tui-support-21);\n}\n\n[data-tui-background='base-01'] {\n background-color: var(--tui-base-01);\n}\n\n[data-tui-background='base-02'] {\n background-color: var(--tui-base-02);\n}\n\n[data-tui-background='base-03'] {\n background-color: var(--tui-base-03);\n}\n\n[data-tui-background='base-04'] {\n background-color: var(--tui-base-04);\n}\n\n[data-tui-background='base-05'] {\n background-color: var(--tui-base-05);\n}\n\n[data-tui-background='base-06'] {\n background-color: var(--tui-base-06);\n}\n\n[data-tui-background='base-07'] {\n background-color: var(--tui-base-07);\n}\n\n[data-tui-background='base-08'] {\n background-color: var(--tui-base-08);\n}\n\n[data-tui-background='base-09'] {\n background-color: var(--tui-base-09);\n}\n\n[data-tui-color='primary'] {\n color: var(--tui-primary);\n}\n\n[data-tui-color='secondary'] {\n color: var(--tui-info-fill);\n}\n\n[data-tui-color='success'] {\n color: var(--tui-success-fill);\n}\n\n[data-tui-color='error'] {\n color: var(--tui-error-fill);\n}\n\n[data-tui-color='support-mustard'],\n[data-tui-color='support-01'] {\n color: var(--tui-support-01);\n}\n\n[data-tui-color='support-texas'],\n[data-tui-color='support-02'] {\n color: var(--tui-support-02);\n}\n\n[data-tui-color='support-tan'],\n[data-tui-color='support-03'] {\n color: var(--tui-support-03);\n}\n\n[data-tui-color='support-salmon'],\n[data-tui-color='support-04'] {\n color: var(--tui-support-04);\n}\n\n[data-tui-color='support-sienna'],\n[data-tui-color='support-05'] {\n color: var(--tui-support-05);\n}\n\n[data-tui-color='support-bittersweet'],\n[data-tui-color='support-06'] {\n color: var(--tui-support-06);\n}\n\n[data-tui-color='support-pinkie'],\n[data-tui-color='support-07'] {\n color: var(--tui-support-07);\n}\n\n[data-tui-color='support-charm'],\n[data-tui-color='support-08'] {\n color: var(--tui-support-08);\n}\n\n[data-tui-color='support-amethyst'],\n[data-tui-color='support-09'] {\n color: var(--tui-support-09);\n}\n\n[data-tui-color='support-helio'],\n[data-tui-color='support-10'] {\n color: var(--tui-support-10);\n}\n\n[data-tui-color='support-lilac'],\n[data-tui-color='support-11'] {\n color: var(--tui-support-11);\n}\n\n[data-tui-color='support-malibu'],\n[data-tui-color='support-12'] {\n color: var(--tui-support-12);\n}\n\n[data-tui-color='support-havelock'],\n[data-tui-color='support-13'] {\n color: var(--tui-support-13);\n}\n\n[data-tui-color='support-picton'],\n[data-tui-color='support-14'] {\n color: var(--tui-support-14);\n}\n\n[data-tui-color='support-mint'],\n[data-tui-color='support-15'] {\n color: var(--tui-support-15);\n}\n\n[data-tui-color='support-fountain'],\n[data-tui-color='support-16'] {\n color: var(--tui-support-16);\n}\n\n[data-tui-color='support-puertorico'],\n[data-tui-color='support-17'] {\n color: var(--tui-support-17);\n}\n\n[data-tui-color='support-bay'],\n[data-tui-color='support-18'] {\n color: var(--tui-support-18);\n}\n\n[data-tui-color='support-forest'],\n[data-tui-color='support-19'] {\n color: var(--tui-support-19);\n}\n\n[data-tui-color='support-york'],\n[data-tui-color='support-20'] {\n color: var(--tui-support-20);\n}\n\n[data-tui-color='support-feijoa'],\n[data-tui-color='support-21'] {\n color: var(--tui-support-21);\n}\n\n[data-tui-color='base-01'] {\n color: var(--tui-base-01);\n}\n\n[data-tui-color='base-02'] {\n color: var(--tui-base-02);\n}\n\n[data-tui-color='base-03'] {\n color: var(--tui-base-03);\n}\n\n[data-tui-color='base-04'] {\n color: var(--tui-base-04);\n}\n\n[data-tui-color='base-05'] {\n color: var(--tui-base-05);\n}\n\n[data-tui-color='base-06'] {\n color: var(--tui-base-06);\n}\n\n[data-tui-color='base-07'] {\n color: var(--tui-base-07);\n}\n\n[data-tui-color='base-08'] {\n color: var(--tui-base-08);\n}\n\n[data-tui-color='base-09'] {\n color: var(--tui-base-09);\n}\n`;\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp, TuiDirectiveStylesService} from '@taiga-ui/cdk';\nimport {TuiColor} from '@taiga-ui/core/types';\n\nimport {COLOR} from './color.const';\n\n/**\n * @deprecated use CSS custom properties\n */\n@Directive({\n selector: '[tuiColor],[tuiBackground]',\n})\nexport class TuiColorDirective {\n @Input()\n @HostBinding('attr.data-tui-color')\n @tuiDefaultProp()\n tuiColor: TuiColor | string = '';\n\n @Input()\n @HostBinding('attr.data-tui-background')\n @tuiDefaultProp()\n tuiBackground: TuiColor | string = '';\n\n constructor(\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n ) {\n directiveStyles.addStyle(COLOR, 'TuiColorDirective');\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiColorDirective} from './color.directive';\n\n/**\n * @deprecated use CSS custom properties\n */\n@NgModule({\n declarations: [TuiColorDirective],\n exports: [TuiColorDirective],\n})\nexport class TuiColorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;;MAGa,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACGrB;;;IAMa,iBAAiB,GAA9B,MAAa,iBAAiB;IAW1B,YACuC,eAA0C;QARjF,aAAQ,GAAsB,EAAE,CAAC;QAKjC,kBAAa,GAAsB,EAAE,CAAC;QAKlC,eAAe,CAAC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;KACxD;EACJ;;YAJ2D,yBAAyB,uBAA5E,MAAM,SAAC,yBAAyB;;AARrC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,qBAAqB,CAAC;IAClC,cAAc,EAAE;mDACgB;AAKjC;IAHC,KAAK,EAAE;IACP,WAAW,CAAC,0BAA0B,CAAC;IACvC,cAAc,EAAE;wDACqB;AAT7B,iBAAiB;IAH7B,SAAS,CAAC;QACP,QAAQ,EAAE,4BAA4B;KACzC,CAAC;IAaO,WAAA,MAAM,CAAC,yBAAyB,CAAC,CAAA;GAZ7B,iBAAiB,CAgB7B;;ACxBD;;;IAOa,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAJ1B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;ACX9B;;;;;;"}
@@ -23,13 +23,13 @@ function describedByFactory(focusVisible$, { nativeElement }) {
23
23
  .pipe(distinctUntilChanged());
24
24
  }
25
25
 
26
- const DESCRIBED_BY = `_described-by`;
26
+ const DESCRIBED_BY = '_described-by';
27
27
  /**
28
28
  * A directive linking focusable elements and hints for accessibility
29
29
  */
30
30
  let TuiDescribedByDirective = class TuiDescribedByDirective {
31
31
  constructor(hintService, visibility$) {
32
- this.tuiDescribedBy = ``;
32
+ this.tuiDescribedBy = '';
33
33
  visibility$.subscribe(visible => {
34
34
  if (!this.tuiDescribedBy) {
35
35
  return;
@@ -55,11 +55,11 @@ __decorate([
55
55
  tuiDefaultProp()
56
56
  ], TuiDescribedByDirective.prototype, "tuiDescribedBy", void 0);
57
57
  __decorate([
58
- HostBinding(`attr.aria-describedby`)
58
+ HostBinding('attr.aria-describedby')
59
59
  ], TuiDescribedByDirective.prototype, "computedDescribedBy", null);
60
60
  TuiDescribedByDirective = __decorate([
61
61
  Directive({
62
- selector: `[tuiDescribedBy]:not(ng-container)`,
62
+ selector: '[tuiDescribedBy]:not(ng-container)',
63
63
  providers: TUI_DESCRIBED_BY_PROVIDERS,
64
64
  }),
65
65
  __param(0, Inject(TuiHintService)),
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-described-by.js","sources":["ng://@taiga-ui/core/directives/described-by/described-by.providers.ts","ng://@taiga-ui/core/directives/described-by/described-by.directive.ts","ng://@taiga-ui/core/directives/described-by/described-by.module.ts","ng://@taiga-ui/core/directives/described-by/taiga-ui-core-directives-described-by.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {\n stopPropagation,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {merge, Observable, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n startWith,\n switchMapTo,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nconst DELAY = 1000;\n\nexport const TUI_DESCRIBED_BY_SHOW = new InjectionToken<Observable<boolean>>(\n `Accessible tooltip visibility stream`,\n);\nexport const TUI_DESCRIBED_BY_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n {\n provide: TUI_DESCRIBED_BY_SHOW,\n deps: [TuiFocusVisibleService, ElementRef],\n useFactory: describedByFactory,\n },\n];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function describedByFactory(\n focusVisible$: Observable<boolean>,\n {nativeElement}: ElementRef<HTMLElement>,\n): Observable<boolean> {\n return focusVisible$\n .pipe(\n filter(Boolean),\n switchMapTo(\n timer(DELAY).pipe(\n mapTo(true),\n takeUntil(\n merge(\n typedFromEvent(nativeElement, `keydown`),\n typedFromEvent(nativeElement, `blur`),\n ),\n ),\n ),\n ),\n switchMapTo(\n merge(\n typedFromEvent(nativeElement, `keydown`).pipe(\n filter(({key}) => key === `Escape`),\n take(1),\n stopPropagation(),\n mapTo(false),\n startWith(true),\n ),\n typedFromEvent(nativeElement, `blur`).pipe(mapTo(false)),\n ),\n ),\n )\n .pipe(distinctUntilChanged());\n}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_DESCRIBED_BY_SHOW,\n} from './described-by.providers';\n\nexport const DESCRIBED_BY = `_described-by`;\n\n/**\n * A directive linking focusable elements and hints for accessibility\n */\n@Directive({\n selector: `[tuiDescribedBy]:not(ng-container)`,\n providers: TUI_DESCRIBED_BY_PROVIDERS,\n})\nexport class TuiDescribedByDirective {\n @Input()\n @tuiDefaultProp()\n tuiDescribedBy = ``;\n\n constructor(\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TUI_DESCRIBED_BY_SHOW) visibility$: Observable<boolean>,\n ) {\n visibility$.subscribe(visible => {\n if (!this.tuiDescribedBy) {\n return;\n }\n\n if (visible) {\n hintService.showHintForId(this.tuiDescribedBy);\n } else {\n hintService.hideHintForId(this.tuiDescribedBy);\n }\n });\n }\n\n @HostBinding(`attr.aria-describedby`)\n get computedDescribedBy(): string | null {\n return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDescribedByDirective} from './described-by.directive';\n\n@NgModule({\n declarations: [TuiDescribedByDirective],\n exports: [TuiDescribedByDirective],\n})\nexport class TuiDescribedByModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAkBA,MAAM,KAAK,GAAG,IAAI,CAAC;MAEN,qBAAqB,GAAG,IAAI,cAAc,CACnD,sCAAsC,EACxC;MACW,0BAA0B,GAAe;IAClD,iBAAiB;IACjB,sBAAsB;IACtB;QACI,OAAO,EAAE,qBAAqB;QAC9B,IAAI,EAAE,CAAC,sBAAsB,EAAE,UAAU,CAAC;QAC1C,UAAU,EAAE,kBAAkB;KACjC;EACH;AAEF;SACgB,kBAAkB,CAC9B,aAAkC,EAClC,EAAC,aAAa,EAA0B;IAExC,OAAO,aAAa;SACf,IAAI,CACD,MAAM,CAAC,OAAO,CAAC,EACf,WAAW,CACP,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CACb,KAAK,CAAC,IAAI,CAAC,EACX,SAAS,CACL,KAAK,CACD,cAAc,CAAC,aAAa,EAAE,SA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AJnC,SAAS,CAAC;QACP,QAAQ,EAAE,oCAAoC;QAC9C,SAAS,EAAE,0BAA0B;KACxC,CAAC;IAOO,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;GAPzB,uBAAuB,CA0BnC;;ICrCY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACRpC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-described-by.js","sources":["ng://@taiga-ui/core/directives/described-by/described-by.providers.ts","ng://@taiga-ui/core/directives/described-by/described-by.directive.ts","ng://@taiga-ui/core/directives/described-by/described-by.module.ts","ng://@taiga-ui/core/directives/described-by/taiga-ui-core-directives-described-by.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {\n stopPropagation,\n TuiDestroyService,\n TuiFocusVisibleService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {merge, Observable, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n startWith,\n switchMapTo,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nconst DELAY = 1000;\n\nexport const TUI_DESCRIBED_BY_SHOW = new InjectionToken<Observable<boolean>>(\n `Accessible tooltip visibility stream`,\n);\nexport const TUI_DESCRIBED_BY_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n {\n provide: TUI_DESCRIBED_BY_SHOW,\n deps: [TuiFocusVisibleService, ElementRef],\n useFactory: describedByFactory,\n },\n];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function describedByFactory(\n focusVisible$: Observable<boolean>,\n {nativeElement}: ElementRef<HTMLElement>,\n): Observable<boolean> {\n return focusVisible$\n .pipe(\n filter(Boolean),\n switchMapTo(\n timer(DELAY).pipe(\n mapTo(true),\n takeUntil(\n merge(\n typedFromEvent(nativeElement, `keydown`),\n typedFromEvent(nativeElement, `blur`),\n ),\n ),\n ),\n ),\n switchMapTo(\n merge(\n typedFromEvent(nativeElement, `keydown`).pipe(\n filter(({key}) => key === `Escape`),\n take(1),\n stopPropagation(),\n mapTo(false),\n startWith(true),\n ),\n typedFromEvent(nativeElement, `blur`).pipe(mapTo(false)),\n ),\n ),\n )\n .pipe(distinctUntilChanged());\n}\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_DESCRIBED_BY_SHOW,\n} from './described-by.providers';\n\nexport const DESCRIBED_BY = '_described-by';\n\n/**\n * A directive linking focusable elements and hints for accessibility\n */\n@Directive({\n selector: '[tuiDescribedBy]:not(ng-container)',\n providers: TUI_DESCRIBED_BY_PROVIDERS,\n})\nexport class TuiDescribedByDirective {\n @Input()\n @tuiDefaultProp()\n tuiDescribedBy = '';\n\n constructor(\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TUI_DESCRIBED_BY_SHOW) visibility$: Observable<boolean>,\n ) {\n visibility$.subscribe(visible => {\n if (!this.tuiDescribedBy) {\n return;\n }\n\n if (visible) {\n hintService.showHintForId(this.tuiDescribedBy);\n } else {\n hintService.hideHintForId(this.tuiDescribedBy);\n }\n });\n }\n\n @HostBinding('attr.aria-describedby')\n get computedDescribedBy(): string | null {\n return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDescribedByDirective} from './described-by.directive';\n\n@NgModule({\n declarations: [TuiDescribedByDirective],\n exports: [TuiDescribedByDirective],\n})\nexport class TuiDescribedByModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport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,IAAI,CAAC,cAAc,EAAE;gBACtB,OAAO;aACV;YAED,IAAI,OAAO,EAAE;gBACT,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;aAClD;iBAAM;gBACH,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;aAClD;SACJ,CAAC,CAAC;KACN;IAGD,IAAI,mBAAmB;QACnB,OAAO,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,GAAG,YAAY,GAAG,IAAI,CAAC;KAC1E;EACJ;;YApB4C,cAAc,uBAAlD,MAAM,SAAC,cAAc;YACsB,UAAU,uBAArD,MAAM,SAAC,qBAAqB;;AAJjC;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;+DACG;AAoBpB;IADC,WAAW,CAAC,uBAAuB,CAAC;kEAGpC;AAzBQ,uBAAuB;IAJnC,SAAS,CAAC;QACP,QAAQ,EAAE,oCAAoC;QAC9C,SAAS,EAAE,0BAA0B;KACxC,CAAC;IAOO,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;IACtB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;GAPzB,uBAAuB,CA0BnC;;ICrCY,oBAAoB,GAAjC,MAAa,oBAAoB;EAAG;AAAvB,oBAAoB;IAJhC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;QACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;KACrC,CAAC;GACW,oBAAoB,CAAG;;ACRpC;;;;;;"}
@@ -12,41 +12,41 @@ var TuiDropdownControllerDirective_1;
12
12
  let TuiDropdownControllerDirective = TuiDropdownControllerDirective_1 = class TuiDropdownControllerDirective extends TuiController {
13
13
  constructor() {
14
14
  super(...arguments);
15
- this.align = `right`;
15
+ this.align = 'right';
16
16
  this.direction = null;
17
- this.limitWidth = `auto`;
17
+ this.limitWidth = 'auto';
18
18
  this.minHeight = DEFAULT_MIN_HEIGHT;
19
19
  this.maxHeight = DEFAULT_MAX_HEIGHT;
20
20
  this.sided = false;
21
21
  }
22
22
  };
23
23
  __decorate([
24
- Input(`tuiDropdownAlign`),
24
+ Input('tuiDropdownAlign'),
25
25
  tuiDefaultProp()
26
26
  ], TuiDropdownControllerDirective.prototype, "align", void 0);
27
27
  __decorate([
28
- Input(`tuiDropdownDirection`),
28
+ Input('tuiDropdownDirection'),
29
29
  tuiDefaultProp()
30
30
  ], TuiDropdownControllerDirective.prototype, "direction", void 0);
31
31
  __decorate([
32
- Input(`tuiDropdownLimitWidth`),
32
+ Input('tuiDropdownLimitWidth'),
33
33
  tuiDefaultProp()
34
34
  ], TuiDropdownControllerDirective.prototype, "limitWidth", void 0);
35
35
  __decorate([
36
- Input(`tuiDropdownMinHeight`),
36
+ Input('tuiDropdownMinHeight'),
37
37
  tuiDefaultProp()
38
38
  ], TuiDropdownControllerDirective.prototype, "minHeight", void 0);
39
39
  __decorate([
40
- Input(`tuiDropdownMaxHeight`),
40
+ Input('tuiDropdownMaxHeight'),
41
41
  tuiDefaultProp()
42
42
  ], TuiDropdownControllerDirective.prototype, "maxHeight", void 0);
43
43
  __decorate([
44
- Input(`tuiDropdownSided`),
44
+ Input('tuiDropdownSided'),
45
45
  tuiDefaultProp()
46
46
  ], TuiDropdownControllerDirective.prototype, "sided", void 0);
47
47
  TuiDropdownControllerDirective = TuiDropdownControllerDirective_1 = __decorate([
48
48
  Directive({
49
- selector: `[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]`,
49
+ selector: '[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]',
50
50
  providers: [
51
51
  {
52
52
  provide: TUI_DROPDOWN_CONTROLLER,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-dropdown-controller.js","sources":["ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.token.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.directive.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.module.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.provider.ts","ng://@taiga-ui/core/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\nexport const TUI_DROPDOWN_CONTROLLER = new InjectionToken<TuiDropdownControllerDirective>(\n `Controls configuration of hints`,\n {\n factory: () => new TuiDropdownControllerDirective(),\n },\n);\n","import {Directive, forwardRef, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {DEFAULT_MAX_HEIGHT, DEFAULT_MIN_HEIGHT} from '@taiga-ui/core/constants';\nimport {\n TuiDropdownWidthT,\n TuiHorizontalDirection,\n TuiVerticalDirection,\n} from '@taiga-ui/core/types';\n\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\n@Directive({\n selector: `[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]`,\n providers: [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n useExisting: forwardRef(() => TuiDropdownControllerDirective),\n },\n ],\n})\nexport class TuiDropdownControllerDirective extends TuiController {\n @Input(`tuiDropdownAlign`)\n @tuiDefaultProp()\n align: TuiHorizontalDirection = `right`;\n\n @Input(`tuiDropdownDirection`)\n @tuiDefaultProp()\n direction: TuiVerticalDirection | null = null;\n\n @Input(`tuiDropdownLimitWidth`)\n @tuiDefaultProp()\n limitWidth: TuiDropdownWidthT = `auto`;\n\n @Input(`tuiDropdownMinHeight`)\n @tuiDefaultProp()\n minHeight = DEFAULT_MIN_HEIGHT;\n\n @Input(`tuiDropdownMaxHeight`)\n @tuiDefaultProp()\n maxHeight = DEFAULT_MAX_HEIGHT;\n\n @Input(`tuiDropdownSided`)\n @tuiDefaultProp()\n sided = false;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\n@NgModule({\n declarations: [TuiDropdownControllerDirective],\n exports: [TuiDropdownControllerDirective],\n})\nexport class TuiDropdownControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {watchedControllerFactory} from '@taiga-ui/core/providers';\n\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\nexport const TUI_DROPDOWN_WATCHED_CONTROLLER = new InjectionToken(\n `watched dropdown controller`,\n);\n// TODO: 3.0 remove in ivy compilation\nexport const DROPDOWN_CONTROLLER_FACTORY = watchedControllerFactory;\nexport const DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_DROPDOWN_WATCHED_CONTROLLER,\n deps: [TUI_DROPDOWN_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: DROPDOWN_CONTROLLER_FACTORY,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAIa,uBAAuB,GAAG,IAAI,cAAc,CACrD,iCAAiC,EACjC;IACI,OAAO,EAAE,MAAM,IAAI,8BAA8B,EAAE;CACtD;;;ICYQ,8BAA8B,sCAA3C,MAAa,8BAA+B,SAAQ,aAAa;IAAjE;;QAGI,UAAK,GAA2B,OAAO,CAAC;QAIxC,cAAS,GAAgC,IAAI,CAAC;QAI9C,eAAU,GAAsB,MAAM,CAAC;QAIvC,cAAS,GAAG,kBAAkB,CAAC;QAI/B,cAAS,GAAG,kBAAkB,CAAC;QAI/B,UAAK,GAAG,KAAK,CAAC;KACjB;EAAA;AArBG;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DACuB;AAIxC;IAFC,KAAK,CAAC,sBAAsB,CAAC;IAC7B,cAAc,EAAE;iEAC6B;AAI9C;IAFC,KAAK,CAAC,uBAAuB,CAAC;IAC9B,cAAc,EAAE;kEACsB;AAIvC;IAFC,KAAK,CAAC,sBAAsB,CAAC;IAC7B,cAAc,EAAE;iEACc;AAI/B;IAFC,KAAK,CAAC,sBAAsB,CAAC;IAC7B,cAAc,EAAE;iEACc;AAI/B;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DACH;AAvBL,8BAA8B;IAT1C,SAAS,CAAC;QACP,QAAQ,EAAE,yIAAyI;QACnJ,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,uBAAuB;gBAChC,WAAW,EAAE,UAAU,CAAC,MAAM,gCAA8B,CAAC;aAChE;SACJ;KACJ,CAAC;GACW,8BAA8B,CAwB1C;;ICpCY,2BAA2B,GAAxC,MAAa,2BAA2B;EAAG;AAA9B,2BAA2B;IAJvC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,8BAA8B,CAAC;QAC9C,OAAO,EAAE,CAAC,8BAA8B,CAAC;KAC5C,CAAC;GACW,2BAA2B,CAAG;;MCF9B,+BAA+B,GAAG,IAAI,cAAc,CAC7D,6BAA6B,EAC/B;AACF;MACa,2BAA2B,GAAG,yBAAyB;MACvD,4BAA4B,GAAa;IAClD,iBAAiB;IACjB;QACI,OAAO,EAAE,+BAA+B;QACxC,IAAI,EAAE,CAAC,uBAAuB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;QACrE,UAAU,EAAE,2BAA2B;KAC1C;;;ACjBL;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-dropdown-controller.js","sources":["ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.token.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.directive.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.module.ts","ng://@taiga-ui/core/directives/dropdown-controller/dropdown-controller.provider.ts","ng://@taiga-ui/core/directives/dropdown-controller/taiga-ui-core-directives-dropdown-controller.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\nexport const TUI_DROPDOWN_CONTROLLER = new InjectionToken<TuiDropdownControllerDirective>(\n `Controls configuration of hints`,\n {\n factory: () => new TuiDropdownControllerDirective(),\n },\n);\n","import {Directive, forwardRef, Input} from '@angular/core';\nimport {TuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {DEFAULT_MAX_HEIGHT, DEFAULT_MIN_HEIGHT} from '@taiga-ui/core/constants';\nimport {\n TuiDropdownWidthT,\n TuiHorizontalDirection,\n TuiVerticalDirection,\n} from '@taiga-ui/core/types';\n\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\n@Directive({\n selector:\n '[tuiDropdownAlign], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownSided]',\n providers: [\n {\n provide: TUI_DROPDOWN_CONTROLLER,\n useExisting: forwardRef(() => TuiDropdownControllerDirective),\n },\n ],\n})\nexport class TuiDropdownControllerDirective extends TuiController {\n @Input('tuiDropdownAlign')\n @tuiDefaultProp()\n align: TuiHorizontalDirection = 'right';\n\n @Input('tuiDropdownDirection')\n @tuiDefaultProp()\n direction: TuiVerticalDirection | null = null;\n\n @Input('tuiDropdownLimitWidth')\n @tuiDefaultProp()\n limitWidth: TuiDropdownWidthT = 'auto';\n\n @Input('tuiDropdownMinHeight')\n @tuiDefaultProp()\n minHeight = DEFAULT_MIN_HEIGHT;\n\n @Input('tuiDropdownMaxHeight')\n @tuiDefaultProp()\n maxHeight = DEFAULT_MAX_HEIGHT;\n\n @Input('tuiDropdownSided')\n @tuiDefaultProp()\n sided = false;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDropdownControllerDirective} from './dropdown-controller.directive';\n\n@NgModule({\n declarations: [TuiDropdownControllerDirective],\n exports: [TuiDropdownControllerDirective],\n})\nexport class TuiDropdownControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {watchedControllerFactory} from '@taiga-ui/core/providers';\n\nimport {TUI_DROPDOWN_CONTROLLER} from './dropdown-controller.token';\n\nexport const TUI_DROPDOWN_WATCHED_CONTROLLER = new InjectionToken(\n `watched dropdown controller`,\n);\n// TODO: 3.0 remove in ivy compilation\nexport const DROPDOWN_CONTROLLER_FACTORY = watchedControllerFactory;\nexport const DROPDOWN_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_DROPDOWN_WATCHED_CONTROLLER,\n deps: [TUI_DROPDOWN_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: DROPDOWN_CONTROLLER_FACTORY,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAIa,uBAAuB,GAAG,IAAI,cAAc,CACrD,iCAAiC,EACjC;IACI,OAAO,EAAE,MAAM,IAAI,8BAA8B,EAAE;CACtD;;;ICaQ,8BAA8B,sCAA3C,MAAa,8BAA+B,SAAQ,aAAa;IAAjE;;QAGI,UAAK,GAA2B,OAAO,CAAC;QAIxC,cAAS,GAAgC,IAAI,CAAC;QAI9C,eAAU,GAAsB,MAAM,CAAC;QAIvC,cAAS,GAAG,kBAAkB,CAAC;QAI/B,cAAS,GAAG,kBAAkB,CAAC;QAI/B,UAAK,GAAG,KAAK,CAAC;KACjB;EAAA;AArBG;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DACuB;AAIxC;IAFC,KAAK,CAAC,sBAAsB,CAAC;IAC7B,cAAc,EAAE;iEAC6B;AAI9C;IAFC,KAAK,CAAC,uBAAuB,CAAC;IAC9B,cAAc,EAAE;kEACsB;AAIvC;IAFC,KAAK,CAAC,sBAAsB,CAAC;IAC7B,cAAc,EAAE;iEACc;AAI/B;IAFC,KAAK,CAAC,sBAAsB,CAAC;IAC7B,cAAc,EAAE;iEACc;AAI/B;IAFC,KAAK,CAAC,kBAAkB,CAAC;IACzB,cAAc,EAAE;6DACH;AAvBL,8BAA8B;IAV1C,SAAS,CAAC;QACP,QAAQ,EACJ,yIAAyI;QAC7I,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,uBAAuB;gBAChC,WAAW,EAAE,UAAU,CAAC,MAAM,gCAA8B,CAAC;aAChE;SACJ;KACJ,CAAC;GACW,8BAA8B,CAwB1C;;ICrCY,2BAA2B,GAAxC,MAAa,2BAA2B;EAAG;AAA9B,2BAA2B;IAJvC,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,8BAA8B,CAAC;QAC9C,OAAO,EAAE,CAAC,8BAA8B,CAAC;KAC5C,CAAC;GACW,2BAA2B,CAAG;;MCF9B,+BAA+B,GAAG,IAAI,cAAc,CAC7D,6BAA6B,EAC/B;AACF;MACa,2BAA2B,GAAG,yBAAyB;MACvD,4BAA4B,GAAa;IAClD,iBAAiB;IACjB;QACI,OAAO,EAAE,+BAA+B;QACxC,IAAI,EAAE,CAAC,uBAAuB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;QACrE,UAAU,EAAE,2BAA2B;KAC1C;;;ACjBL;;;;;;"}
@@ -24,11 +24,11 @@ TuiDropdownDirective.ctorParameters = () => [
24
24
  { type: TuiParentsScrollService, decorators: [{ type: Inject, args: [TuiParentsScrollService,] }] }
25
25
  ];
26
26
  __decorate([
27
- Input(`tuiDropdown`)
27
+ Input('tuiDropdown')
28
28
  ], TuiDropdownDirective.prototype, "open", null);
29
29
  TuiDropdownDirective = TuiDropdownDirective_1 = __decorate([
30
30
  Directive({
31
- selector: `[tuiDropdown]:not(ng-container)`,
31
+ selector: '[tuiDropdown]:not(ng-container)',
32
32
  providers: [
33
33
  {
34
34
  provide: TUI_DROPDOWN_DIRECTIVE,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-directives-dropdown.js","sources":["ng://@taiga-ui/core/directives/dropdown/dropdown.directive.ts","ng://@taiga-ui/core/directives/dropdown/dropdown.module.ts","ng://@taiga-ui/core/directives/dropdown/taiga-ui-core-directives-dropdown.ts"],"sourcesContent":["import {\n AfterViewChecked,\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Injector,\n Input,\n OnDestroy,\n Optional,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n TuiParentsScrollService,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown} from '@taiga-ui/core/abstract';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {TUI_DROPDOWN_DIRECTIVE} from '@taiga-ui/core/tokens';\n\n@Directive({\n selector: `[tuiDropdown]:not(ng-container)`,\n providers: [\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownDirective),\n },\n TuiParentsScrollService,\n ],\n})\nexport class TuiDropdownDirective\n extends AbstractTuiDropdown\n implements TuiDropdown, AfterViewChecked, OnDestroy\n{\n @Input(`tuiDropdown`)\n set open(value: boolean) {\n this.toggleDropdown(value);\n }\n\n constructor(\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService)\n portalService: TuiPortalService,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiActiveZoneDirective)\n @Optional()\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TuiParentsScrollService) readonly refresh$: TuiParentsScrollService,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core/components/dropdown-box';\n\nimport {TuiDropdownDirective} from './dropdown.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownDirective],\n exports: [TuiDropdownDirective],\n})\nexport class TuiDropdownModule {}\n","/**\n * Generated bundle index.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A;GAnB3B,oBAAoB,CAuBhC;;IC5CY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAL7B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;QAC/B,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACVjC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-directives-dropdown.js","sources":["ng://@taiga-ui/core/directives/dropdown/dropdown.directive.ts","ng://@taiga-ui/core/directives/dropdown/dropdown.module.ts","ng://@taiga-ui/core/directives/dropdown/taiga-ui-core-directives-dropdown.ts"],"sourcesContent":["import {\n AfterViewChecked,\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Injector,\n Input,\n OnDestroy,\n Optional,\n} from '@angular/core';\nimport {\n TuiActiveZoneDirective,\n TuiParentsScrollService,\n TuiPortalService,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiDropdown} from '@taiga-ui/core/abstract';\nimport {TuiDropdown} from '@taiga-ui/core/interfaces';\nimport {TUI_DROPDOWN_DIRECTIVE} from '@taiga-ui/core/tokens';\n\n@Directive({\n selector: '[tuiDropdown]:not(ng-container)',\n providers: [\n {\n provide: TUI_DROPDOWN_DIRECTIVE,\n useExisting: forwardRef(() => TuiDropdownDirective),\n },\n TuiParentsScrollService,\n ],\n})\nexport class TuiDropdownDirective\n extends AbstractTuiDropdown\n implements TuiDropdown, AfterViewChecked, OnDestroy\n{\n @Input('tuiDropdown')\n set open(value: boolean) {\n this.toggleDropdown(value);\n }\n\n constructor(\n @Inject(ComponentFactoryResolver)\n componentFactoryResolver: ComponentFactoryResolver,\n @Inject(Injector) injector: Injector,\n @Inject(TuiPortalService)\n portalService: TuiPortalService,\n @Inject(ElementRef) elementRef: ElementRef<HTMLElement>,\n @Inject(TuiActiveZoneDirective)\n @Optional()\n activeZone: TuiActiveZoneDirective | null,\n @Inject(TuiParentsScrollService) readonly refresh$: TuiParentsScrollService,\n ) {\n super(componentFactoryResolver, injector, portalService, elementRef, activeZone);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiDropdownBoxModule} from '@taiga-ui/core/components/dropdown-box';\n\nimport {TuiDropdownDirective} from './dropdown.directive';\n\n@NgModule({\n imports: [TuiDropdownBoxModule],\n declarations: [TuiDropdownDirective],\n exports: [TuiDropdownDirective],\n})\nexport class TuiDropdownModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IA+Ba,oBAAoB,4BAAjC,MAAa,oBACT,SAAQ,mBAAmB;IAQ3B,YAEI,wBAAkD,EAChC,QAAkB,EAEpC,aAA+B,EACX,UAAmC,EAGvD,UAAyC,EACC,QAAiC;QAE3E,KAAK,CAAC,wBAAwB,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;QAFvC,aAAQ,GAAR,QAAQ,CAAyB;KAG9E;IAjBD,IAAI,IAAI,CAAC,KAAc;QACnB,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;KAC9B;EAgBJ;;YAZiC,wBAAwB,uBADjD,MAAM,SAAC,wBAAwB;YAEJ,QAAQ,uBAAnC,MAAM,SAAC,QAAQ;YAED,gBAAgB,uBAD9B,MAAM,SAAC,gBAAgB;YAEQ,UAAU,uBAAzC,MAAM,SAAC,UAAU;YAGN,sBAAsB,uBAFjC,MAAM,SAAC,sBAAsB,cAC7B,QAAQ;YAE2C,uBAAuB,uBAA1E,MAAM,SAAC,uBAAuB;;AAdnC;IADC,KAAK,CAAC,aAAa,CAAC;gDAGpB;AAPQ,oBAAoB;IAVhC,SAAS,CAAC;QACP,QAAQ,EAAE,iCAAiC;QAC3C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,sBAAsB;gBAC/B,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAoB,CAAC;aACtD;YACD,uBAAuB;SAC1B;KACJ,CAAC;IAWO,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;IAEhC,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAExB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;IAC9B,WAAA,QAAQ,EAAE,CAAA;IAEV,WAAA,MAAM,CAAC,uBAAuB,CAAC,CAAA;GAnB3B,oBAAoB,CAuBhC;;IC5CY,iBAAiB,GAA9B,MAAa,iBAAiB;EAAG;AAApB,iBAAiB;IAL7B,QAAQ,CAAC;QACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;QAC/B,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAClC,CAAC;GACW,iBAAiB,CAAG;;ACVjC;;;;;;"}
@@ -26,28 +26,28 @@ TuiHintControllerDirective.ctorParameters = () => [
26
26
  { type: undefined, decorators: [{ type: Inject, args: [TUI_HINT_OPTIONS,] }] }
27
27
  ];
28
28
  __decorate([
29
- Input(`tuiHintContent`),
29
+ Input('tuiHintContent'),
30
30
  tuiDefaultProp()
31
31
  ], TuiHintControllerDirective.prototype, "content", void 0);
32
32
  __decorate([
33
- Input(`tuiHintDirection`),
33
+ Input('tuiHintDirection'),
34
34
  tuiDefaultProp()
35
35
  ], TuiHintControllerDirective.prototype, "direction", void 0);
36
36
  __decorate([
37
- Input(`tuiHintMode`),
37
+ Input('tuiHintMode'),
38
38
  tuiDefaultProp()
39
39
  ], TuiHintControllerDirective.prototype, "mode", void 0);
40
40
  __decorate([
41
- Input(`tuiHintShowDelay`),
41
+ Input('tuiHintShowDelay'),
42
42
  tuiDefaultProp()
43
43
  ], TuiHintControllerDirective.prototype, "showDelay", void 0);
44
44
  __decorate([
45
- Input(`tuiHintHideDelay`),
45
+ Input('tuiHintHideDelay'),
46
46
  tuiDefaultProp()
47
47
  ], TuiHintControllerDirective.prototype, "hideDelay", void 0);
48
48
  TuiHintControllerDirective = TuiHintControllerDirective_1 = __decorate([
49
49
  Directive({
50
- selector: `[tuiHintContent]`,
50
+ selector: '[tuiHintContent]',
51
51
  providers: [
52
52
  {
53
53
  provide: TUI_HINT_CONTROLLER,