@taiga-ui/core 3.49.0 → 3.50.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 (594) hide show
  1. package/abstract/taiga-ui-core-abstract.d.ts +0 -3
  2. package/animations/taiga-ui-core-animations.d.ts +0 -3
  3. package/bundles/taiga-ui-core-abstract.umd.js +0 -9
  4. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  5. package/bundles/taiga-ui-core-animations.umd.js +0 -4
  6. package/bundles/taiga-ui-core-animations.umd.js.map +1 -1
  7. package/bundles/taiga-ui-core-components-alert.umd.js +1 -16
  8. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-button.umd.js +0 -7
  10. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-calendar.umd.js +0 -4
  12. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  13. package/bundles/taiga-ui-core-components-data-list.umd.js +0 -10
  14. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  15. package/bundles/taiga-ui-core-components-dialog.umd.js +1 -13
  16. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-error.umd.js +0 -4
  18. package/bundles/taiga-ui-core-components-error.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-components-expand.umd.js +0 -5
  20. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-components-group.umd.js +1 -5
  22. package/bundles/taiga-ui-core-components-group.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-components-hints-host.umd.js +0 -8
  24. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  25. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +11 -7
  26. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-components-label.umd.js +0 -4
  28. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-components-link.umd.js +0 -5
  30. package/bundles/taiga-ui-core-components-link.umd.js.map +1 -1
  31. package/bundles/taiga-ui-core-components-loader.umd.js +0 -9
  32. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  33. package/bundles/taiga-ui-core-components-notification.umd.js +1 -8
  34. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  35. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +0 -7
  36. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  37. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +0 -8
  38. package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
  39. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +0 -4
  40. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js.map +1 -1
  41. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +1 -33
  42. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  43. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +0 -4
  44. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  45. package/bundles/taiga-ui-core-components-root.umd.js +1 -7
  46. package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +0 -5
  48. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-scrollbar.umd.js +0 -8
  50. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-svg.umd.js +0 -9
  52. package/bundles/taiga-ui-core-components-svg.umd.js.map +1 -1
  53. package/bundles/taiga-ui-core-components-theme-night.umd.js +0 -4
  54. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-tooltip.umd.js +0 -4
  56. package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
  57. package/bundles/taiga-ui-core-components.umd.js +0 -4
  58. package/bundles/taiga-ui-core-components.umd.js.map +1 -1
  59. package/bundles/taiga-ui-core-constants.umd.js +0 -26
  60. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-directives-dropdown.umd.js +22 -51
  62. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  63. package/bundles/taiga-ui-core-directives-hint.umd.js +0 -13
  64. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  65. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js +0 -7
  66. package/bundles/taiga-ui-core-directives-mask-accessor.umd.js.map +1 -1
  67. package/bundles/taiga-ui-core-directives-mode.umd.js +0 -4
  68. package/bundles/taiga-ui-core-directives-mode.umd.js.map +1 -1
  69. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js +0 -9
  70. package/bundles/taiga-ui-core-directives-scroll-into-view.umd.js.map +1 -1
  71. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +0 -11
  72. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  73. package/bundles/taiga-ui-core-directives-wrapper.umd.js +0 -4
  74. package/bundles/taiga-ui-core-directives-wrapper.umd.js.map +1 -1
  75. package/bundles/taiga-ui-core-directives.umd.js +0 -4
  76. package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
  77. package/bundles/taiga-ui-core-enums.umd.js +0 -22
  78. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  79. package/bundles/taiga-ui-core-interfaces.umd.js +1 -3
  80. package/bundles/taiga-ui-core-interfaces.umd.js.map +1 -1
  81. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +0 -4
  82. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  83. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js +0 -5
  84. package/bundles/taiga-ui-core-internal-svg-defs-host.umd.js.map +1 -1
  85. package/bundles/taiga-ui-core-internal.umd.js +0 -4
  86. package/bundles/taiga-ui-core-internal.umd.js.map +1 -1
  87. package/bundles/taiga-ui-core-mask.umd.js +1 -3
  88. package/bundles/taiga-ui-core-mask.umd.js.map +1 -1
  89. package/bundles/taiga-ui-core-observables.umd.js +0 -11
  90. package/bundles/taiga-ui-core-observables.umd.js.map +1 -1
  91. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js +0 -11
  92. package/bundles/taiga-ui-core-pipes-calendar-sheet.umd.js.map +1 -1
  93. package/bundles/taiga-ui-core-pipes-flag.umd.js +0 -4
  94. package/bundles/taiga-ui-core-pipes-flag.umd.js.map +1 -1
  95. package/bundles/taiga-ui-core-pipes-format-date.umd.js +0 -4
  96. package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +1 -1
  97. package/bundles/taiga-ui-core-pipes-format-number.umd.js +0 -10
  98. package/bundles/taiga-ui-core-pipes-format-number.umd.js.map +1 -1
  99. package/bundles/taiga-ui-core-pipes-format-phone.umd.js +0 -11
  100. package/bundles/taiga-ui-core-pipes-format-phone.umd.js.map +1 -1
  101. package/bundles/taiga-ui-core-pipes-month.umd.js +0 -4
  102. package/bundles/taiga-ui-core-pipes-month.umd.js.map +1 -1
  103. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +0 -4
  104. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  105. package/bundles/taiga-ui-core-pipes.umd.js +0 -4
  106. package/bundles/taiga-ui-core-pipes.umd.js.map +1 -1
  107. package/bundles/taiga-ui-core-providers.umd.js +0 -4
  108. package/bundles/taiga-ui-core-providers.umd.js.map +1 -1
  109. package/bundles/taiga-ui-core-services.umd.js +2 -20
  110. package/bundles/taiga-ui-core-services.umd.js.map +1 -1
  111. package/bundles/taiga-ui-core-tokens.umd.js +0 -123
  112. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  113. package/bundles/taiga-ui-core-types.umd.js +1 -3
  114. package/bundles/taiga-ui-core-types.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-utils-dom.umd.js +0 -50
  116. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  117. package/bundles/taiga-ui-core-utils-format.umd.js +0 -51
  118. package/bundles/taiga-ui-core-utils-format.umd.js.map +1 -1
  119. package/bundles/taiga-ui-core-utils-mask.umd.js +1 -40
  120. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  121. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +0 -17
  122. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  123. package/bundles/taiga-ui-core-utils-mobile.umd.js +0 -4
  124. package/bundles/taiga-ui-core-utils-mobile.umd.js.map +1 -1
  125. package/bundles/taiga-ui-core-utils.umd.js +0 -4
  126. package/bundles/taiga-ui-core-utils.umd.js.map +1 -1
  127. package/bundles/taiga-ui-core.umd.js +0 -4
  128. package/bundles/taiga-ui-core.umd.js.map +1 -1
  129. package/components/alert/taiga-ui-core-components-alert.d.ts +0 -3
  130. package/components/button/button.options.d.ts +0 -3
  131. package/components/button/taiga-ui-core-components-button.d.ts +0 -3
  132. package/components/calendar/calendar.component.d.ts +2 -2
  133. package/components/calendar/taiga-ui-core-components-calendar.d.ts +0 -3
  134. package/components/data-list/option/option.component.d.ts +0 -1
  135. package/components/data-list/taiga-ui-core-components-data-list.d.ts +0 -3
  136. package/components/dialog/dialog.tokens.d.ts +0 -6
  137. package/components/dialog/taiga-ui-core-components-dialog.d.ts +0 -3
  138. package/components/error/taiga-ui-core-components-error.d.ts +0 -3
  139. package/components/expand/taiga-ui-core-components-expand.d.ts +0 -3
  140. package/components/group/taiga-ui-core-components-group.d.ts +0 -3
  141. package/components/hints-host/taiga-ui-core-components-hints-host.d.ts +0 -3
  142. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +1 -1
  143. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.d.ts +0 -3
  144. package/components/label/taiga-ui-core-components-label.d.ts +0 -3
  145. package/components/link/taiga-ui-core-components-link.d.ts +0 -3
  146. package/components/loader/loader.options.d.ts +0 -4
  147. package/components/loader/taiga-ui-core-components-loader.d.ts +0 -3
  148. package/components/notification/notification.component.d.ts +0 -3
  149. package/components/notification/taiga-ui-core-components-notification.d.ts +0 -3
  150. package/components/primitive-calendar/primitive-calendar.component.d.ts +0 -3
  151. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.d.ts +0 -3
  152. package/components/primitive-checkbox/checkbox.options.d.ts +0 -4
  153. package/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.d.ts +0 -3
  154. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.d.ts +0 -3
  155. package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -16
  156. package/components/primitive-textfield/primitive-textfield.component.d.ts +0 -7
  157. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.d.ts +0 -3
  158. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.d.ts +0 -3
  159. package/components/root/taiga-ui-core-components-root.d.ts +0 -3
  160. package/components/scroll-controls/scroll-controls.module.d.ts +0 -1
  161. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.d.ts +0 -3
  162. package/components/scrollbar/scroll-ref.directive.d.ts +0 -2
  163. package/components/scrollbar/taiga-ui-core-components-scrollbar.d.ts +0 -3
  164. package/components/svg/svg-options.d.ts +0 -3
  165. package/components/svg/taiga-ui-core-components-svg.d.ts +0 -3
  166. package/components/taiga-ui-core-components.d.ts +0 -3
  167. package/components/theme-night/taiga-ui-core-components-theme-night.d.ts +0 -3
  168. package/components/tooltip/taiga-ui-core-components-tooltip.d.ts +0 -3
  169. package/constants/cache-basting-payload.d.ts +1 -1
  170. package/constants/decimal-symbols.d.ts +0 -4
  171. package/constants/events.d.ts +0 -14
  172. package/constants/mask-caret-trap.d.ts +0 -4
  173. package/constants/taiga-ui-core-constants.d.ts +0 -3
  174. package/directives/dropdown/dropdown-hover.options.d.ts +0 -4
  175. package/directives/dropdown/dropdown-options.directive.d.ts +0 -4
  176. package/directives/dropdown/dropdown-selection.directive.d.ts +0 -9
  177. package/directives/dropdown/dropdown.component.d.ts +2 -9
  178. package/directives/dropdown/dropdown.providers.d.ts +0 -3
  179. package/directives/dropdown/taiga-ui-core-directives-dropdown.d.ts +0 -3
  180. package/directives/hint/hint-options.directive.d.ts +0 -4
  181. package/directives/hint/hint.providers.d.ts +0 -3
  182. package/directives/hint/taiga-ui-core-directives-hint.d.ts +0 -3
  183. package/directives/mask-accessor/mask-accessor.module.d.ts +0 -3
  184. package/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.d.ts +0 -3
  185. package/directives/mode/taiga-ui-core-directives-mode.d.ts +0 -3
  186. package/directives/scroll-into-view/scroll-into-view.directive.d.ts +0 -3
  187. package/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.d.ts +0 -3
  188. package/directives/taiga-ui-core-directives.d.ts +0 -3
  189. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.d.ts +0 -3
  190. package/directives/textfield-controller/textfield.options.d.ts +0 -7
  191. package/directives/wrapper/taiga-ui-core-directives-wrapper.d.ts +0 -3
  192. package/enums/dropdown-animation.d.ts +0 -1
  193. package/enums/interactive-state.d.ts +0 -3
  194. package/enums/notification.d.ts +0 -3
  195. package/enums/range-state.d.ts +0 -3
  196. package/enums/taiga-ui-core-enums.d.ts +0 -3
  197. package/esm2015/abstract/driver.js +1 -2
  198. package/esm2015/abstract/position-accessor.js +1 -2
  199. package/esm2015/abstract/rect-accessor.js +1 -3
  200. package/esm2015/abstract/taiga-ui-core-abstract.js +1 -4
  201. package/esm2015/abstract/vehicle.js +1 -2
  202. package/esm2015/animations/taiga-ui-core-animations.js +1 -4
  203. package/esm2015/components/alert/alert.component.js +2 -13
  204. package/esm2015/components/alert/taiga-ui-core-components-alert.js +1 -4
  205. package/esm2015/components/button/button.options.js +1 -4
  206. package/esm2015/components/button/taiga-ui-core-components-button.js +1 -4
  207. package/esm2015/components/calendar/calendar.component.js +1 -1
  208. package/esm2015/components/calendar/taiga-ui-core-components-calendar.js +1 -4
  209. package/esm2015/components/data-list/data-list.component.js +1 -3
  210. package/esm2015/components/data-list/option/option.component.js +1 -5
  211. package/esm2015/components/data-list/taiga-ui-core-components-data-list.js +1 -4
  212. package/esm2015/components/dialog/dialog.component.js +2 -4
  213. package/esm2015/components/dialog/dialog.tokens.js +1 -7
  214. package/esm2015/components/dialog/taiga-ui-core-components-dialog.js +1 -4
  215. package/esm2015/components/error/taiga-ui-core-components-error.js +1 -4
  216. package/esm2015/components/expand/expand.component.js +1 -2
  217. package/esm2015/components/expand/taiga-ui-core-components-expand.js +1 -4
  218. package/esm2015/components/group/group-styles.component.js +1 -1
  219. package/esm2015/components/group/taiga-ui-core-components-group.js +1 -4
  220. package/esm2015/components/hints-host/hints-host.component.js +1 -5
  221. package/esm2015/components/hints-host/taiga-ui-core-components-hints-host.js +1 -4
  222. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +12 -7
  223. package/esm2015/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.js +1 -4
  224. package/esm2015/components/label/taiga-ui-core-components-label.js +1 -4
  225. package/esm2015/components/link/link.component.js +1 -2
  226. package/esm2015/components/link/taiga-ui-core-components-link.js +1 -4
  227. package/esm2015/components/loader/loader.component.js +1 -2
  228. package/esm2015/components/loader/loader.options.js +1 -5
  229. package/esm2015/components/loader/taiga-ui-core-components-loader.js +1 -4
  230. package/esm2015/components/notification/notification.component.js +2 -5
  231. package/esm2015/components/notification/taiga-ui-core-components-notification.js +1 -4
  232. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +1 -4
  233. package/esm2015/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.js +1 -4
  234. package/esm2015/components/primitive-checkbox/checkbox.options.js +1 -5
  235. package/esm2015/components/primitive-checkbox/taiga-ui-core-components-primitive-checkbox.js +1 -4
  236. package/esm2015/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.js +1 -4
  237. package/esm2015/components/primitive-textfield/primitive-textfield-options.js +1 -13
  238. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +1 -9
  239. package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +1 -6
  240. package/esm2015/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.js +1 -4
  241. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +1 -3
  242. package/esm2015/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.js +1 -4
  243. package/esm2015/components/root/root.component.js +2 -4
  244. package/esm2015/components/root/taiga-ui-core-components-root.js +1 -4
  245. package/esm2015/components/scroll-controls/scroll-controls.module.js +1 -2
  246. package/esm2015/components/scroll-controls/taiga-ui-core-components-scroll-controls.js +1 -4
  247. package/esm2015/components/scrollbar/scroll-ref.directive.js +1 -3
  248. package/esm2015/components/scrollbar/scrollbar.component.js +1 -3
  249. package/esm2015/components/scrollbar/taiga-ui-core-components-scrollbar.js +1 -4
  250. package/esm2015/components/svg/svg-options.js +1 -4
  251. package/esm2015/components/svg/svg.component.js +1 -3
  252. package/esm2015/components/svg/taiga-ui-core-components-svg.js +1 -4
  253. package/esm2015/components/taiga-ui-core-components.js +1 -4
  254. package/esm2015/components/theme-night/taiga-ui-core-components-theme-night.js +1 -4
  255. package/esm2015/components/tooltip/taiga-ui-core-components-tooltip.js +1 -4
  256. package/esm2015/constants/decimal-symbols.js +1 -5
  257. package/esm2015/constants/events.js +1 -15
  258. package/esm2015/constants/mask-caret-trap.js +1 -5
  259. package/esm2015/constants/taiga-ui-core-constants.js +1 -4
  260. package/esm2015/directives/dropdown/dropdown-driver.directive.js +1 -2
  261. package/esm2015/directives/dropdown/dropdown-hover.options.js +1 -5
  262. package/esm2015/directives/dropdown/dropdown-options.directive.js +1 -5
  263. package/esm2015/directives/dropdown/dropdown-position-sided.directive.js +2 -2
  264. package/esm2015/directives/dropdown/dropdown-position.directive.js +13 -6
  265. package/esm2015/directives/dropdown/dropdown-selection.directive.js +1 -10
  266. package/esm2015/directives/dropdown/dropdown.component.js +8 -18
  267. package/esm2015/directives/dropdown/dropdown.directive.js +1 -2
  268. package/esm2015/directives/dropdown/dropdown.providers.js +1 -4
  269. package/esm2015/directives/dropdown/taiga-ui-core-directives-dropdown.js +1 -4
  270. package/esm2015/directives/hint/hint-driver.directive.js +1 -2
  271. package/esm2015/directives/hint/hint-hover.directive.js +1 -2
  272. package/esm2015/directives/hint/hint-options.directive.js +1 -5
  273. package/esm2015/directives/hint/hint-position.directive.js +1 -2
  274. package/esm2015/directives/hint/hint.directive.js +1 -2
  275. package/esm2015/directives/hint/hint.providers.js +1 -5
  276. package/esm2015/directives/hint/taiga-ui-core-directives-hint.js +1 -4
  277. package/esm2015/directives/mask-accessor/mask-accessor.module.js +1 -4
  278. package/esm2015/directives/mask-accessor/taiga-ui-core-directives-mask-accessor.js +1 -4
  279. package/esm2015/directives/mode/taiga-ui-core-directives-mode.js +1 -4
  280. package/esm2015/directives/scroll-into-view/scroll-into-view.directive.js +1 -6
  281. package/esm2015/directives/scroll-into-view/taiga-ui-core-directives-scroll-into-view.js +1 -4
  282. package/esm2015/directives/taiga-ui-core-directives.js +1 -4
  283. package/esm2015/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.js +1 -4
  284. package/esm2015/directives/textfield-controller/textfield-appearance.directive.js +1 -4
  285. package/esm2015/directives/textfield-controller/textfield.options.js +1 -5
  286. package/esm2015/directives/wrapper/taiga-ui-core-directives-wrapper.js +1 -4
  287. package/esm2015/enums/appearance.js +1 -3
  288. package/esm2015/enums/dropdown-animation.js +1 -3
  289. package/esm2015/enums/interactive-state.js +1 -6
  290. package/esm2015/enums/notification.js +1 -5
  291. package/esm2015/enums/range-state.js +1 -6
  292. package/esm2015/enums/taiga-ui-core-enums.js +1 -4
  293. package/esm2015/interfaces/taiga-ui-core-interfaces.js +1 -4
  294. package/esm2015/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -4
  295. package/esm2015/internal/svg-defs-host/svg-defs-host.component.js +1 -2
  296. package/esm2015/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.js +1 -4
  297. package/esm2015/internal/taiga-ui-core-internal.js +1 -4
  298. package/esm2015/mask/taiga-ui-core-mask.js +1 -4
  299. package/esm2015/observables/taiga-ui-core-observables.js +1 -4
  300. package/esm2015/observables/zoneful-map.js +1 -8
  301. package/esm2015/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.js +1 -4
  302. package/esm2015/pipes/calendar-sheet/utils.js +1 -8
  303. package/esm2015/pipes/flag/taiga-ui-core-pipes-flag.js +1 -4
  304. package/esm2015/pipes/format-date/taiga-ui-core-pipes-format-date.js +1 -4
  305. package/esm2015/pipes/format-number/format-number.pipe.js +1 -7
  306. package/esm2015/pipes/format-number/taiga-ui-core-pipes-format-number.js +1 -4
  307. package/esm2015/pipes/format-phone/format-phone.pipe.js +1 -8
  308. package/esm2015/pipes/format-phone/taiga-ui-core-pipes-format-phone.js +1 -4
  309. package/esm2015/pipes/month/taiga-ui-core-pipes-month.js +1 -4
  310. package/esm2015/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.js +1 -4
  311. package/esm2015/pipes/taiga-ui-core-pipes.js +1 -4
  312. package/esm2015/providers/taiga-ui-core-providers.js +1 -4
  313. package/esm2015/services/breakpoint.service.js +1 -4
  314. package/esm2015/services/hint.service.js +1 -4
  315. package/esm2015/services/position.service.js +2 -4
  316. package/esm2015/services/router-link-active.service.js +2 -4
  317. package/esm2015/services/svg.service.js +1 -4
  318. package/esm2015/services/taiga-ui-core-services.js +1 -4
  319. package/esm2015/services/visual-viewport.service.js +1 -2
  320. package/esm2015/taiga-ui-core.js +1 -4
  321. package/esm2015/tokens/animation-options.js +1 -4
  322. package/esm2015/tokens/animations-duration.js +1 -4
  323. package/esm2015/tokens/assert-enabled.js +1 -8
  324. package/esm2015/tokens/data-list-accessor.js +1 -4
  325. package/esm2015/tokens/data-list-host.js +1 -4
  326. package/esm2015/tokens/day-type-handler.js +1 -4
  327. package/esm2015/tokens/element-ref.js +1 -4
  328. package/esm2015/tokens/first-day-of-week.js +1 -4
  329. package/esm2015/tokens/i18n.js +1 -19
  330. package/esm2015/tokens/icon-place.js +1 -5
  331. package/esm2015/tokens/icons-path.js +1 -5
  332. package/esm2015/tokens/icons.js +1 -4
  333. package/esm2015/tokens/is-mobile-resolution.js +1 -6
  334. package/esm2015/tokens/legacy-mask.js +1 -6
  335. package/esm2015/tokens/media.js +1 -4
  336. package/esm2015/tokens/mode.js +1 -4
  337. package/esm2015/tokens/notification-options.js +1 -6
  338. package/esm2015/tokens/number-format.js +1 -4
  339. package/esm2015/tokens/option-content.js +1 -4
  340. package/esm2015/tokens/ordered-short-week-days.js +1 -8
  341. package/esm2015/tokens/sanitizer.js +1 -4
  342. package/esm2015/tokens/scroll-ref.js +1 -4
  343. package/esm2015/tokens/selection-stream.js +1 -4
  344. package/esm2015/tokens/svg-content-processor.js +1 -5
  345. package/esm2015/tokens/svg-src-processor.js +1 -5
  346. package/esm2015/tokens/taiga-ui-core-tokens.js +1 -4
  347. package/esm2015/tokens/textfield-appearance.js +1 -6
  348. package/esm2015/tokens/textfield-host.js +1 -4
  349. package/esm2015/tokens/value-accessor.js +1 -4
  350. package/esm2015/tokens/viewport.js +1 -4
  351. package/esm2015/types/size.js +1 -12
  352. package/esm2015/types/taiga-ui-core-types.js +1 -4
  353. package/esm2015/utils/dom/get-safe-area-size.js +1 -6
  354. package/esm2015/utils/dom/get-viewport-height.js +1 -18
  355. package/esm2015/utils/dom/get-viewport-width.js +1 -18
  356. package/esm2015/utils/dom/get-word-range.js +1 -8
  357. package/esm2015/utils/dom/taiga-ui-core-utils-dom.js +1 -4
  358. package/esm2015/utils/format/capitalize.js +1 -8
  359. package/esm2015/utils/format/format-number.js +1 -9
  360. package/esm2015/utils/format/format-phone.js +1 -20
  361. package/esm2015/utils/format/get-fractional-part-padded.js +1 -8
  362. package/esm2015/utils/format/number-to-string-without-exp.js +1 -7
  363. package/esm2015/utils/format/taiga-ui-core-utils-format.js +1 -4
  364. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +1 -9
  365. package/esm2015/utils/mask/create-correction-mask.js +1 -5
  366. package/esm2015/utils/mask/create-number-mask.js +2 -10
  367. package/esm2015/utils/mask/enable-auto-correct-decimal-symbol.js +1 -5
  368. package/esm2015/utils/mask/masked-money-value-is-empty.js +1 -8
  369. package/esm2015/utils/mask/masked-number-string-to-number.js +1 -5
  370. package/esm2015/utils/mask/taiga-ui-core-utils-mask.js +1 -4
  371. package/esm2015/utils/miscellaneous/is-editing-key.js +1 -4
  372. package/esm2015/utils/miscellaneous/is-obscured.js +1 -4
  373. package/esm2015/utils/miscellaneous/override-options.js +1 -2
  374. package/esm2015/utils/miscellaneous/size-bigger.js +1 -7
  375. package/esm2015/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.js +1 -4
  376. package/esm2015/utils/mobile/taiga-ui-core-utils-mobile.js +1 -4
  377. package/esm2015/utils/taiga-ui-core-utils.js +1 -4
  378. package/fesm2015/taiga-ui-core-abstract.js +0 -9
  379. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  380. package/fesm2015/taiga-ui-core-animations.js +0 -4
  381. package/fesm2015/taiga-ui-core-animations.js.map +1 -1
  382. package/fesm2015/taiga-ui-core-components-alert.js +1 -16
  383. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  384. package/fesm2015/taiga-ui-core-components-button.js +0 -7
  385. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  386. package/fesm2015/taiga-ui-core-components-calendar.js +0 -4
  387. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  388. package/fesm2015/taiga-ui-core-components-data-list.js +0 -10
  389. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  390. package/fesm2015/taiga-ui-core-components-dialog.js +1 -13
  391. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  392. package/fesm2015/taiga-ui-core-components-error.js +0 -4
  393. package/fesm2015/taiga-ui-core-components-error.js.map +1 -1
  394. package/fesm2015/taiga-ui-core-components-expand.js +0 -5
  395. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  396. package/fesm2015/taiga-ui-core-components-group.js +1 -5
  397. package/fesm2015/taiga-ui-core-components-group.js.map +1 -1
  398. package/fesm2015/taiga-ui-core-components-hints-host.js +0 -8
  399. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  400. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +11 -10
  401. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  402. package/fesm2015/taiga-ui-core-components-label.js +0 -4
  403. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  404. package/fesm2015/taiga-ui-core-components-link.js +0 -5
  405. package/fesm2015/taiga-ui-core-components-link.js.map +1 -1
  406. package/fesm2015/taiga-ui-core-components-loader.js +0 -9
  407. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  408. package/fesm2015/taiga-ui-core-components-notification.js +1 -8
  409. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  410. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +0 -7
  411. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  412. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +0 -8
  413. package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
  414. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +0 -4
  415. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js.map +1 -1
  416. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +0 -31
  417. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  418. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +0 -4
  419. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  420. package/fesm2015/taiga-ui-core-components-root.js +1 -7
  421. package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
  422. package/fesm2015/taiga-ui-core-components-scroll-controls.js +0 -5
  423. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  424. package/fesm2015/taiga-ui-core-components-scrollbar.js +0 -8
  425. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  426. package/fesm2015/taiga-ui-core-components-svg.js +0 -9
  427. package/fesm2015/taiga-ui-core-components-svg.js.map +1 -1
  428. package/fesm2015/taiga-ui-core-components-theme-night.js +0 -4
  429. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  430. package/fesm2015/taiga-ui-core-components-tooltip.js +0 -4
  431. package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
  432. package/fesm2015/taiga-ui-core-components.js +0 -4
  433. package/fesm2015/taiga-ui-core-components.js.map +1 -1
  434. package/fesm2015/taiga-ui-core-constants.js +0 -26
  435. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  436. package/fesm2015/taiga-ui-core-directives-dropdown.js +20 -49
  437. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  438. package/fesm2015/taiga-ui-core-directives-hint.js +0 -14
  439. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  440. package/fesm2015/taiga-ui-core-directives-mask-accessor.js +0 -7
  441. package/fesm2015/taiga-ui-core-directives-mask-accessor.js.map +1 -1
  442. package/fesm2015/taiga-ui-core-directives-mode.js +0 -4
  443. package/fesm2015/taiga-ui-core-directives-mode.js.map +1 -1
  444. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js +0 -9
  445. package/fesm2015/taiga-ui-core-directives-scroll-into-view.js.map +1 -1
  446. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +0 -11
  447. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  448. package/fesm2015/taiga-ui-core-directives-wrapper.js +0 -4
  449. package/fesm2015/taiga-ui-core-directives-wrapper.js.map +1 -1
  450. package/fesm2015/taiga-ui-core-directives.js +0 -4
  451. package/fesm2015/taiga-ui-core-directives.js.map +1 -1
  452. package/fesm2015/taiga-ui-core-enums.js +0 -22
  453. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  454. package/fesm2015/taiga-ui-core-interfaces.js +1 -3
  455. package/fesm2015/taiga-ui-core-interfaces.js.map +1 -1
  456. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +0 -4
  457. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  458. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js +0 -5
  459. package/fesm2015/taiga-ui-core-internal-svg-defs-host.js.map +1 -1
  460. package/fesm2015/taiga-ui-core-internal.js +0 -4
  461. package/fesm2015/taiga-ui-core-internal.js.map +1 -1
  462. package/fesm2015/taiga-ui-core-mask.js +1 -3
  463. package/fesm2015/taiga-ui-core-mask.js.map +1 -1
  464. package/fesm2015/taiga-ui-core-observables.js +0 -11
  465. package/fesm2015/taiga-ui-core-observables.js.map +1 -1
  466. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js +0 -11
  467. package/fesm2015/taiga-ui-core-pipes-calendar-sheet.js.map +1 -1
  468. package/fesm2015/taiga-ui-core-pipes-flag.js +0 -4
  469. package/fesm2015/taiga-ui-core-pipes-flag.js.map +1 -1
  470. package/fesm2015/taiga-ui-core-pipes-format-date.js +0 -4
  471. package/fesm2015/taiga-ui-core-pipes-format-date.js.map +1 -1
  472. package/fesm2015/taiga-ui-core-pipes-format-number.js +0 -10
  473. package/fesm2015/taiga-ui-core-pipes-format-number.js.map +1 -1
  474. package/fesm2015/taiga-ui-core-pipes-format-phone.js +0 -11
  475. package/fesm2015/taiga-ui-core-pipes-format-phone.js.map +1 -1
  476. package/fesm2015/taiga-ui-core-pipes-month.js +0 -4
  477. package/fesm2015/taiga-ui-core-pipes-month.js.map +1 -1
  478. package/fesm2015/taiga-ui-core-pipes-order-week-days.js +0 -4
  479. package/fesm2015/taiga-ui-core-pipes-order-week-days.js.map +1 -1
  480. package/fesm2015/taiga-ui-core-pipes.js +0 -4
  481. package/fesm2015/taiga-ui-core-pipes.js.map +1 -1
  482. package/fesm2015/taiga-ui-core-providers.js +0 -4
  483. package/fesm2015/taiga-ui-core-providers.js.map +1 -1
  484. package/fesm2015/taiga-ui-core-services.js +2 -20
  485. package/fesm2015/taiga-ui-core-services.js.map +1 -1
  486. package/fesm2015/taiga-ui-core-tokens.js +0 -126
  487. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  488. package/fesm2015/taiga-ui-core-types.js +0 -14
  489. package/fesm2015/taiga-ui-core-types.js.map +1 -1
  490. package/fesm2015/taiga-ui-core-utils-dom.js +0 -50
  491. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  492. package/fesm2015/taiga-ui-core-utils-format.js +0 -51
  493. package/fesm2015/taiga-ui-core-utils-format.js.map +1 -1
  494. package/fesm2015/taiga-ui-core-utils-mask.js +1 -40
  495. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  496. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +0 -17
  497. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  498. package/fesm2015/taiga-ui-core-utils-mobile.js +0 -4
  499. package/fesm2015/taiga-ui-core-utils-mobile.js.map +1 -1
  500. package/fesm2015/taiga-ui-core-utils.js +0 -4
  501. package/fesm2015/taiga-ui-core-utils.js.map +1 -1
  502. package/fesm2015/taiga-ui-core.js +0 -4
  503. package/fesm2015/taiga-ui-core.js.map +1 -1
  504. package/interfaces/alert-options.d.ts +0 -2
  505. package/interfaces/dialog-options.d.ts +0 -11
  506. package/interfaces/number-format-settings.d.ts +0 -21
  507. package/interfaces/taiga-ui-core-interfaces.d.ts +0 -3
  508. package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.d.ts +0 -3
  509. package/internal/svg-defs-host/taiga-ui-core-internal-svg-defs-host.d.ts +0 -3
  510. package/internal/taiga-ui-core-internal.d.ts +0 -3
  511. package/mask/taiga-ui-core-mask.d.ts +0 -3
  512. package/mask/text-mask-config.d.ts +0 -5
  513. package/mask/text-mask-correction-handler.d.ts +0 -3
  514. package/mask/text-mask-list-handler.d.ts +0 -3
  515. package/mask/text-mask-list.d.ts +0 -4
  516. package/mask/text-mask-options.d.ts +0 -22
  517. package/mask/text-mask-pipe-handler.d.ts +0 -4
  518. package/mask/text-mask-pipe-result.d.ts +0 -4
  519. package/observables/taiga-ui-core-observables.d.ts +0 -3
  520. package/observables/zoneful-map.d.ts +0 -7
  521. package/package.json +4 -4
  522. package/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.d.ts +0 -3
  523. package/pipes/calendar-sheet/utils.d.ts +0 -13
  524. package/pipes/flag/taiga-ui-core-pipes-flag.d.ts +0 -3
  525. package/pipes/format-date/taiga-ui-core-pipes-format-date.d.ts +0 -3
  526. package/pipes/format-number/format-number.pipe.d.ts +0 -6
  527. package/pipes/format-number/taiga-ui-core-pipes-format-number.d.ts +0 -3
  528. package/pipes/format-phone/format-phone.pipe.d.ts +0 -7
  529. package/pipes/format-phone/taiga-ui-core-pipes-format-phone.d.ts +0 -3
  530. package/pipes/month/taiga-ui-core-pipes-month.d.ts +0 -3
  531. package/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.d.ts +0 -3
  532. package/pipes/taiga-ui-core-pipes.d.ts +0 -3
  533. package/providers/taiga-ui-core-providers.d.ts +0 -3
  534. package/services/breakpoint.service.d.ts +0 -3
  535. package/services/hint.service.d.ts +0 -3
  536. package/services/svg.service.d.ts +0 -3
  537. package/services/taiga-ui-core-services.d.ts +0 -3
  538. package/taiga-ui-core.d.ts +0 -3
  539. package/tokens/animation-options.d.ts +0 -3
  540. package/tokens/animations-duration.d.ts +0 -3
  541. package/tokens/assert-enabled.d.ts +0 -7
  542. package/tokens/data-list-accessor.d.ts +0 -3
  543. package/tokens/data-list-host.d.ts +0 -3
  544. package/tokens/day-type-handler.d.ts +0 -3
  545. package/tokens/element-ref.d.ts +0 -3
  546. package/tokens/first-day-of-week.d.ts +0 -3
  547. package/tokens/i18n.d.ts +0 -18
  548. package/tokens/icon-place.d.ts +0 -4
  549. package/tokens/icons-path.d.ts +0 -4
  550. package/tokens/icons.d.ts +0 -3
  551. package/tokens/is-mobile-resolution.d.ts +0 -5
  552. package/tokens/legacy-mask.d.ts +0 -5
  553. package/tokens/media.d.ts +0 -3
  554. package/tokens/mode.d.ts +0 -3
  555. package/tokens/notification-options.d.ts +0 -5
  556. package/tokens/number-format.d.ts +0 -3
  557. package/tokens/option-content.d.ts +0 -3
  558. package/tokens/ordered-short-week-days.d.ts +0 -7
  559. package/tokens/sanitizer.d.ts +0 -3
  560. package/tokens/scroll-ref.d.ts +0 -3
  561. package/tokens/selection-stream.d.ts +0 -3
  562. package/tokens/svg-content-processor.d.ts +0 -4
  563. package/tokens/svg-src-processor.d.ts +0 -4
  564. package/tokens/taiga-ui-core-tokens.d.ts +0 -3
  565. package/tokens/textfield-appearance.d.ts +0 -5
  566. package/tokens/textfield-host.d.ts +0 -3
  567. package/tokens/value-accessor.d.ts +0 -3
  568. package/tokens/viewport.d.ts +0 -3
  569. package/types/size.d.ts +0 -11
  570. package/types/taiga-ui-core-types.d.ts +0 -3
  571. package/utils/dom/get-safe-area-size.d.ts +0 -5
  572. package/utils/dom/get-viewport-height.d.ts +0 -17
  573. package/utils/dom/get-viewport-width.d.ts +0 -17
  574. package/utils/dom/get-word-range.d.ts +0 -6
  575. package/utils/dom/taiga-ui-core-utils-dom.d.ts +0 -3
  576. package/utils/format/capitalize.d.ts +0 -7
  577. package/utils/format/format-number.d.ts +0 -8
  578. package/utils/format/format-phone.d.ts +0 -19
  579. package/utils/format/get-fractional-part-padded.d.ts +0 -7
  580. package/utils/format/number-to-string-without-exp.d.ts +0 -6
  581. package/utils/format/taiga-ui-core-utils-format.d.ts +0 -3
  582. package/utils/mask/create-auto-corrected-money-pipe.d.ts +0 -5
  583. package/utils/mask/create-correction-mask.d.ts +0 -4
  584. package/utils/mask/create-number-mask.d.ts +0 -5
  585. package/utils/mask/enable-auto-correct-decimal-symbol.d.ts +0 -4
  586. package/utils/mask/masked-money-value-is-empty.d.ts +0 -7
  587. package/utils/mask/masked-number-string-to-number.d.ts +0 -4
  588. package/utils/mask/taiga-ui-core-utils-mask.d.ts +0 -3
  589. package/utils/miscellaneous/is-editing-key.d.ts +0 -3
  590. package/utils/miscellaneous/is-obscured.d.ts +0 -3
  591. package/utils/miscellaneous/size-bigger.d.ts +0 -6
  592. package/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.d.ts +0 -3
  593. package/utils/mobile/taiga-ui-core-utils-mobile.d.ts +0 -3
  594. package/utils/taiga-ui-core-utils.d.ts +0 -3
@@ -2,10 +2,6 @@ import { TUI_VERSION, EMPTY_ARRAY, CHAR_NO_BREAK_SPACE } from '@taiga-ui/cdk';
2
2
 
3
3
  const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}`;
4
4
 
5
- /**
6
- * @deprecated
7
- * TODO: delete in v4.0
8
- */
9
5
  const TUI_DECIMAL_SYMBOLS = [`,`, `.`];
10
6
 
11
7
  const DEFAULT_ICONS_PATH = name => name.includes(`.svg#`) ? name : `#${name}`;
@@ -32,23 +28,9 @@ const tuiEditingKeys = [
32
28
  `Home`,
33
29
  ];
34
30
 
35
- /**
36
- * An event indicating that async data for expand has finished loading.
37
- * Dispatch to finish loading states for {@link TuiExpandComponent}.
38
- */
39
31
  const TUI_EXPAND_LOADED = `tui-expand-loaded`;
40
- /**
41
- * An event for scrolling an element into view within {@link TuiScrollbarComponent}.
42
- */
43
32
  const TUI_SCROLL_INTO_VIEW = `tui-scroll-into-view`;
44
- /**
45
- * An event to notify {@link TuiScrollbarComponent} that
46
- * it should control a nested element.
47
- */
48
33
  const TUI_SCROLLABLE = `tui-scrollable`;
49
- /**
50
- * An event indicating and error during icon loading in {@link TuiSvgComponent}.
51
- */
52
34
  const TUI_ICON_ERROR = `tui-icon-error`;
53
35
 
54
36
  const TUI_HINT_DIRECTIONS = [
@@ -66,10 +48,6 @@ const TUI_HINT_DIRECTIONS = [
66
48
  `right-bottom`,
67
49
  ];
68
50
 
69
- /**
70
- * @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}
71
- * TODO: delete in v4.0
72
- */
73
51
  const MASK_CARET_TRAP = `[]`;
74
52
 
75
53
  const TUI_DIGIT_REGEXP = /\d/;
@@ -81,9 +59,5 @@ const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\/#!$%\\^&\\*;:{}=\\-_`~()]$/;
81
59
  const TUI_LATIN_REGEXP = /[A-z]/;
82
60
  const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;
83
61
 
84
- /**
85
- * Generated bundle index. Do not edit.
86
- */
87
-
88
62
  export { DEFAULT_ICONS_PATH, MASK_CARET_TRAP, TUI_CACHE_BUSTING_PAYLOAD, TUI_DECIMAL_SYMBOLS, TUI_DEFAULT_MARKER_HANDLER, TUI_DEFAULT_NUMBER_FORMAT, TUI_DIGIT_REGEXP, TUI_EXPAND_LOADED, TUI_HINT_DIRECTIONS, TUI_ICON_ERROR, TUI_LAST_PUNCTUATION_MARK_REGEXP, TUI_LATIN_AND_NUMBERS_REGEXP, TUI_LATIN_REGEXP, TUI_LEADING_ZEROES_REGEXP, TUI_MASK_SYMBOLS_REGEXP, TUI_NON_DIGITS_REGEXP, TUI_NON_DIGIT_REGEXP, TUI_SCROLLABLE, TUI_SCROLL_INTO_VIEW, tuiEditingKeys };
89
63
  //# sourceMappingURL=taiga-ui-core-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-core-constants.js","sources":["../../../projects/core/constants/cache-basting-payload.ts","../../../projects/core/constants/decimal-symbols.ts","../../../projects/core/constants/default-icons-path.ts","../../../projects/core/constants/default-marker-handler.ts","../../../projects/core/constants/default-number-format.ts","../../../projects/core/constants/editing-keys.ts","../../../projects/core/constants/events.ts","../../../projects/core/constants/hint-directions.ts","../../../projects/core/constants/mask-caret-trap.ts","../../../projects/core/constants/regexp.ts","../../../projects/core/constants/taiga-ui-core-constants.ts"],"sourcesContent":["import {TUI_VERSION} from '@taiga-ui/cdk';\n\nexport const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}` as const;\n","/**\n * @deprecated\n * TODO: delete in v4.0\n */\nexport const TUI_DECIMAL_SYMBOLS: readonly string[] = [`,`, `.`];\n","import {TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = name =>\n name.includes(`.svg#`) ? name : `#${name}`;\n","import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {TuiMarkerHandler} from '@taiga-ui/core/types';\n\nexport const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY;\n","import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings = {\n decimalLimit: Infinity,\n decimalSeparator: `,`,\n thousandSeparator: CHAR_NO_BREAK_SPACE,\n zeroPadding: true,\n rounding: `truncate`,\n};\n","export const tuiEditingKeys: readonly string[] = [\n `Spacebar`,\n `Backspace`,\n `Delete`,\n `ArrowLeft`,\n `ArrowRight`,\n `Left`,\n `Right`,\n `End`,\n `Home`,\n];\n","/**\n * An event indicating that async data for expand has finished loading.\n * Dispatch to finish loading states for {@link TuiExpandComponent}.\n */\nexport const TUI_EXPAND_LOADED = `tui-expand-loaded`;\n\n/**\n * An event for scrolling an element into view within {@link TuiScrollbarComponent}.\n */\nexport const TUI_SCROLL_INTO_VIEW = `tui-scroll-into-view`;\n\n/**\n * An event to notify {@link TuiScrollbarComponent} that\n * it should control a nested element.\n */\nexport const TUI_SCROLLABLE = `tui-scrollable`;\n\n/**\n * An event indicating and error during icon loading in {@link TuiSvgComponent}.\n */\nexport const TUI_ICON_ERROR = `tui-icon-error`;\n","import {TuiHintDirection} from '@taiga-ui/core/types';\n\nexport const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[] = [\n `bottom-left`,\n `bottom`,\n `bottom-right`,\n `top-left`,\n `top`,\n `top-right`,\n `left-top`,\n `left`,\n `left-bottom`,\n `right-top`,\n `right`,\n `right-bottom`,\n];\n","/**\n * @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}\n * TODO: delete in v4.0\n */\nexport const MASK_CARET_TRAP = `[]`;\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\nexport const TUI_LEADING_ZEROES_REGEXP = /^0+/;\nexport const TUI_MASK_SYMBOLS_REGEXP = /[ \\-_()]/g;\nexport const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\\\/#!$%\\\\^&\\\\*;:{}=\\\\-_`~()]$/;\nexport const TUI_LATIN_REGEXP = /[A-z]/;\nexport const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEa,MAAA,yBAAyB,GAAG,CAAM,GAAA,EAAA,WAAW;;ACF1D;;;AAGG;MACU,mBAAmB,GAAsB,CAAC,CAAG,CAAA,CAAA,EAAE,CAAG,CAAA,CAAA;;ACFlD,MAAA,kBAAkB,GAA6B,IAAI,IAC5D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAA,CAAA,EAAI,IAAI,CAAA;;MCA/B,0BAA0B,GAAqB,MAAM;;ACArD,MAAA,yBAAyB,GAA4B;AAC9D,IAAA,YAAY,EAAE,QAAQ;AACtB,IAAA,gBAAgB,EAAE,CAAG,CAAA,CAAA;AACrB,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,QAAQ,EAAE,CAAU,QAAA,CAAA;;;ACRX,MAAA,cAAc,GAAsB;IAC7C,CAAU,QAAA,CAAA;IACV,CAAW,SAAA,CAAA;IACX,CAAQ,MAAA,CAAA;IACR,CAAW,SAAA,CAAA;IACX,CAAY,UAAA,CAAA;IACZ,CAAM,IAAA,CAAA;IACN,CAAO,KAAA,CAAA;IACP,CAAK,GAAA,CAAA;IACL,CAAM,IAAA,CAAA;;;ACTV;;;AAGG;AACI,MAAM,iBAAiB,GAAG,oBAAoB;AAErD;;AAEG;AACI,MAAM,oBAAoB,GAAG,uBAAuB;AAE3D;;;AAGG;AACI,MAAM,cAAc,GAAG,iBAAiB;AAE/C;;AAEG;AACI,MAAM,cAAc,GAAG;;AClBjB,MAAA,mBAAmB,GAAgC;IAC5D,CAAa,WAAA,CAAA;IACb,CAAQ,MAAA,CAAA;IACR,CAAc,YAAA,CAAA;IACd,CAAU,QAAA,CAAA;IACV,CAAK,GAAA,CAAA;IACL,CAAW,SAAA,CAAA;IACX,CAAU,QAAA,CAAA;IACV,CAAM,IAAA,CAAA;IACN,CAAa,WAAA,CAAA;IACb,CAAW,SAAA,CAAA;IACX,CAAO,KAAA,CAAA;IACP,CAAc,YAAA,CAAA;;;ACdlB;;;AAGG;AACI,MAAM,eAAe,GAAG;;ACJxB,MAAM,gBAAgB,GAAG,KAAK;AAC9B,MAAM,oBAAoB,GAAG,KAAK;AAClC,MAAM,qBAAqB,GAAG,OAAO;AACrC,MAAM,yBAAyB,GAAG,MAAM;AACxC,MAAM,uBAAuB,GAAG,YAAY;AAC5C,MAAM,gCAAgC,GAAG,mCAAmC;AAC5E,MAAM,gBAAgB,GAAG,QAAQ;AACjC,MAAM,4BAA4B,GAAG;;ACP5C;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-core-constants.js","sources":["../../../projects/core/constants/cache-basting-payload.ts","../../../projects/core/constants/decimal-symbols.ts","../../../projects/core/constants/default-icons-path.ts","../../../projects/core/constants/default-marker-handler.ts","../../../projects/core/constants/default-number-format.ts","../../../projects/core/constants/editing-keys.ts","../../../projects/core/constants/events.ts","../../../projects/core/constants/hint-directions.ts","../../../projects/core/constants/mask-caret-trap.ts","../../../projects/core/constants/regexp.ts"],"sourcesContent":["import {TUI_VERSION} from '@taiga-ui/cdk';\n\nexport const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}` as const;\n","/**\n * @deprecated\n * TODO: delete in v4.0\n */\nexport const TUI_DECIMAL_SYMBOLS: readonly string[] = [`,`, `.`];\n","import {TuiStringHandler} from '@taiga-ui/cdk';\n\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = name =>\n name.includes(`.svg#`) ? name : `#${name}`;\n","import {EMPTY_ARRAY} from '@taiga-ui/cdk';\nimport {TuiMarkerHandler} from '@taiga-ui/core/types';\n\nexport const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY;\n","import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings = {\n decimalLimit: Infinity,\n decimalSeparator: `,`,\n thousandSeparator: CHAR_NO_BREAK_SPACE,\n zeroPadding: true,\n rounding: `truncate`,\n};\n","export const tuiEditingKeys: readonly string[] = [\n `Spacebar`,\n `Backspace`,\n `Delete`,\n `ArrowLeft`,\n `ArrowRight`,\n `Left`,\n `Right`,\n `End`,\n `Home`,\n];\n","/**\n * An event indicating that async data for expand has finished loading.\n * Dispatch to finish loading states for {@link TuiExpandComponent}.\n */\nexport const TUI_EXPAND_LOADED = `tui-expand-loaded`;\n\n/**\n * An event for scrolling an element into view within {@link TuiScrollbarComponent}.\n */\nexport const TUI_SCROLL_INTO_VIEW = `tui-scroll-into-view`;\n\n/**\n * An event to notify {@link TuiScrollbarComponent} that\n * it should control a nested element.\n */\nexport const TUI_SCROLLABLE = `tui-scrollable`;\n\n/**\n * An event indicating and error during icon loading in {@link TuiSvgComponent}.\n */\nexport const TUI_ICON_ERROR = `tui-icon-error`;\n","import {TuiHintDirection} from '@taiga-ui/core/types';\n\nexport const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[] = [\n `bottom-left`,\n `bottom`,\n `bottom-right`,\n `top-left`,\n `top`,\n `top-right`,\n `left-top`,\n `left`,\n `left-bottom`,\n `right-top`,\n `right`,\n `right-bottom`,\n];\n","/**\n * @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}\n * TODO: delete in v4.0\n */\nexport const MASK_CARET_TRAP = `[]`;\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\nexport const TUI_LEADING_ZEROES_REGEXP = /^0+/;\nexport const TUI_MASK_SYMBOLS_REGEXP = /[ \\-_()]/g;\nexport const TUI_LAST_PUNCTUATION_MARK_REGEXP = /[.,\\\\/#!$%\\\\^&\\\\*;:{}=\\\\-_`~()]$/;\nexport const TUI_LATIN_REGEXP = /[A-z]/;\nexport const TUI_LATIN_AND_NUMBERS_REGEXP = /[A-z|0-9]/;\n"],"names":[],"mappings":";;AAEa,MAAA,yBAAyB,GAAG,CAAM,GAAA,EAAA,WAAW;;MCE7C,mBAAmB,GAAsB,CAAC,CAAG,CAAA,CAAA,EAAE,CAAG,CAAA,CAAA;;ACFlD,MAAA,kBAAkB,GAA6B,IAAI,IAC5D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAA,CAAA,EAAI,IAAI,CAAA;;MCA/B,0BAA0B,GAAqB,MAAM;;ACArD,MAAA,yBAAyB,GAA4B;AAC9D,IAAA,YAAY,EAAE,QAAQ;AACtB,IAAA,gBAAgB,EAAE,CAAG,CAAA,CAAA;AACrB,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,QAAQ,EAAE,CAAU,QAAA,CAAA;;;ACRX,MAAA,cAAc,GAAsB;IAC7C,CAAU,QAAA,CAAA;IACV,CAAW,SAAA,CAAA;IACX,CAAQ,MAAA,CAAA;IACR,CAAW,SAAA,CAAA;IACX,CAAY,UAAA,CAAA;IACZ,CAAM,IAAA,CAAA;IACN,CAAO,KAAA,CAAA;IACP,CAAK,GAAA,CAAA;IACL,CAAM,IAAA,CAAA;;;ACLH,MAAM,iBAAiB,GAAG,oBAAoB;AAK9C,MAAM,oBAAoB,GAAG,uBAAuB;AAMpD,MAAM,cAAc,GAAG,iBAAiB;AAKxC,MAAM,cAAc,GAAG;;AClBjB,MAAA,mBAAmB,GAAgC;IAC5D,CAAa,WAAA,CAAA;IACb,CAAQ,MAAA,CAAA;IACR,CAAc,YAAA,CAAA;IACd,CAAU,QAAA,CAAA;IACV,CAAK,GAAA,CAAA;IACL,CAAW,SAAA,CAAA;IACX,CAAU,QAAA,CAAA;IACV,CAAM,IAAA,CAAA;IACN,CAAa,WAAA,CAAA;IACb,CAAW,SAAA,CAAA;IACX,CAAO,KAAA,CAAA;IACP,CAAc,YAAA,CAAA;;;ACVX,MAAM,eAAe,GAAG;;ACJxB,MAAM,gBAAgB,GAAG,KAAK;AAC9B,MAAM,oBAAoB,GAAG,KAAK;AAClC,MAAM,qBAAqB,GAAG,OAAO;AACrC,MAAM,yBAAyB,GAAG,MAAM;AACxC,MAAM,uBAAuB,GAAG,YAAY;AAC5C,MAAM,gCAAgC,GAAG,mCAAmC;AAC5E,MAAM,gBAAgB,GAAG,QAAQ;AACjC,MAAM,4BAA4B,GAAG;;;;"}
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Directive, Input, Output, ElementRef, INJECTOR, Self, Inject, Optional, SkipSelf, forwardRef, Component, ChangeDetectionStrategy, HostListener, ViewContainerRef, NgModule } from '@angular/core';
3
3
  import { WINDOW } from '@ng-web-apis/common';
4
4
  import * as i2 from '@taiga-ui/cdk';
5
- import { tuiCreateTokenFromFactory, TuiDestroyService, TuiDropdownPortalService, tuiPure, tuiCreateToken, tuiProvideOptions, TuiHoveredService, tuiPx, tuiGetClosestFocusable, AbstractTuiPortalHostComponent, EMPTY_CLIENT_RECT, tuiPointToClientRect, TuiActiveZoneDirective, ALWAYS_TRUE_HANDLER, tuiIsTextNode, tuiIsString, tuiIsElement, tuiGetNativeFocused, tuiIsTextfield, CHAR_ZERO_WIDTH_SPACE, CHAR_NO_BREAK_SPACE, TUI_RANGE, TuiActiveZoneModule, TuiOverscrollModule, TuiHoveredModule } from '@taiga-ui/cdk';
5
+ import { tuiCreateTokenFromFactory, TuiDestroyService, TuiDropdownPortalService, tuiPure, tuiCreateToken, tuiProvideOptions, TuiHoveredService, tuiPx, tuiGetClosestFocusable, EMPTY_CLIENT_RECT, tuiPointToClientRect, TuiActiveZoneDirective, ALWAYS_TRUE_HANDLER, tuiIsTextNode, tuiIsString, tuiIsElement, tuiGetNativeFocused, tuiIsTextfield, CHAR_ZERO_WIDTH_SPACE, CHAR_NO_BREAK_SPACE, TUI_RANGE, TuiActiveZoneModule, TuiOverscrollModule, TuiHoveredModule } from '@taiga-ui/cdk';
6
6
  import * as i1$2 from '@taiga-ui/core/abstract';
7
7
  import { tuiAsRectAccessor, tuiAsVehicle, TuiDriver, tuiAsDriver, TuiRectAccessor, tuiPositionAccessorFor, tuiRectAccessorFor, AbstractTuiDriverDirective, TuiVehicle, TuiPositionAccessor, tuiFallbackRectAccessor, tuiAsPositionAccessor } from '@taiga-ui/core/abstract';
8
8
  import { tuiDropdownAnimation } from '@taiga-ui/core/animations';
@@ -22,9 +22,6 @@ import { TuiScrollbarModule } from '@taiga-ui/core/components/scrollbar';
22
22
  import { shouldCall } from '@tinkoff/ng-event-plugins';
23
23
  import { DOCUMENT } from '@angular/common';
24
24
 
25
- /**
26
- * A component to display a dropdown
27
- */
28
25
  const TUI_DROPDOWN_COMPONENT = tuiCreateTokenFromFactory(() => TuiDropdownComponent);
29
26
 
30
27
  class TuiDropdownOpenDirective {
@@ -66,7 +63,6 @@ class TuiDropdownDirective {
66
63
  else {
67
64
  this.open = null;
68
65
  }
69
- // Ignore multiple change detection triggers at the same frame
70
66
  this.refresh$.pipe(throttleTime(0), takeUntil(destroy$)).subscribe(() => {
71
67
  var _a, _b;
72
68
  (_a = this.dropdownBoxRef) === null || _a === void 0 ? void 0 : _a.changeDetectorRef.detectChanges();
@@ -153,14 +149,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
153
149
  args: ['tuiDropdown']
154
150
  }], position: [] } });
155
151
 
156
- /** Default values for hint options */
157
152
  const TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS = {
158
153
  showDelay: 200,
159
154
  hideDelay: 500,
160
155
  };
161
- /**
162
- * Default parameters for dropdown hover directive
163
- */
164
156
  const TUI_DROPDOWN_HOVER_OPTIONS = tuiCreateToken(TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS);
165
157
  function tuiDropdownHoverOptionsProvider(options) {
166
158
  return tuiProvideOptions(TUI_DROPDOWN_HOVER_OPTIONS, options, TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS);
@@ -216,7 +208,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
216
208
  args: ['tuiDropdownHideDelay']
217
209
  }] } });
218
210
 
219
- /** Default values for dropdown options */
220
211
  const TUI_DROPDOWN_DEFAULT_OPTIONS = {
221
212
  align: 'left',
222
213
  direction: null,
@@ -226,9 +217,6 @@ const TUI_DROPDOWN_DEFAULT_OPTIONS = {
226
217
  offset: 4,
227
218
  appearance: '',
228
219
  };
229
- /**
230
- * Default parameters for dropdown directive
231
- */
232
220
  const TUI_DROPDOWN_OPTIONS = tuiCreateToken(TUI_DROPDOWN_DEFAULT_OPTIONS);
233
221
  const tuiDropdownOptionsProvider = (override) => ({
234
222
  provide: TUI_DROPDOWN_OPTIONS,
@@ -296,17 +284,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
296
284
  args: ['tuiDropdownOffset']
297
285
  }] } });
298
286
 
299
- /**
300
- * @description:
301
- * This component is used to show template in a portal
302
- * using default style of white rounded box with a shadow
303
- */
304
287
  class TuiDropdownComponent {
305
- constructor(visualViewportService, position$, destroy$, directive, animation, el, host, accessor, win, mode$, options, hoverDirective) {
288
+ constructor(visualViewportService, position$, destroy$, directive, animation, el, accessor, win, mode$, options, hoverDirective) {
306
289
  this.directive = directive;
307
290
  this.animation = animation;
308
291
  this.el = el;
309
- this.host = host;
310
292
  this.accessor = accessor;
311
293
  this.win = win;
312
294
  this.mode$ = mode$;
@@ -333,15 +315,16 @@ class TuiDropdownComponent {
333
315
  this.moveFocusOutside(false);
334
316
  }
335
317
  update(top, left) {
318
+ var _a;
336
319
  const { style } = this.el.nativeElement;
337
320
  const { right } = this.el.nativeElement.getBoundingClientRect();
338
321
  const { maxHeight, offset } = this.options;
339
322
  const { innerHeight } = this.win;
340
- const { clientRect } = this.host;
323
+ const clientRect = (_a = this.el.nativeElement.offsetParent) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
341
324
  const { position } = this.directive;
342
325
  const rect = this.accessor.getClientRect();
343
- const offsetX = position === 'fixed' ? 0 : -clientRect.left;
344
- const offsetY = position === 'fixed' ? 0 : -clientRect.top;
326
+ const offsetX = position === 'fixed' ? 0 : -((clientRect === null || clientRect === void 0 ? void 0 : clientRect.left) || 0);
327
+ const offsetY = position === 'fixed' ? 0 : -((clientRect === null || clientRect === void 0 ? void 0 : clientRect.top) || 0);
345
328
  top += offsetY;
346
329
  left += offsetX;
347
330
  const isIntersecting = left < rect.right && right > rect.left && top < offsetY + 2 * offset;
@@ -380,7 +363,7 @@ class TuiDropdownComponent {
380
363
  focusable === null || focusable === void 0 ? void 0 : focusable.focus();
381
364
  }
382
365
  }
383
- TuiDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDropdownComponent, deps: [{ token: TuiVisualViewportService }, { token: TuiPositionService }, { token: TuiDestroyService, self: true }, { token: TuiDropdownDirective }, { token: TUI_ANIMATION_OPTIONS }, { token: ElementRef }, { token: AbstractTuiPortalHostComponent }, { token: TuiRectAccessor }, { token: WINDOW }, { token: TUI_MODE }, { token: TUI_DROPDOWN_OPTIONS }, { token: TuiDropdownHoverDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
366
+ TuiDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiDropdownComponent, deps: [{ token: TuiVisualViewportService }, { token: TuiPositionService }, { token: TuiDestroyService, self: true }, { token: TuiDropdownDirective }, { token: TUI_ANIMATION_OPTIONS }, { token: ElementRef }, { token: TuiRectAccessor }, { token: WINDOW }, { token: TUI_MODE }, { token: TUI_DROPDOWN_OPTIONS }, { token: TuiDropdownHoverDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component });
384
367
  TuiDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiDropdownComponent, selector: "tui-dropdown", host: { listeners: { "$.data-mode.attr": "mode$" }, properties: { "@tuiDropdownAnimation": "animation", "attr.data-appearance": "options.appearance" } }, providers: [
385
368
  TuiDestroyService,
386
369
  TuiPositionService,
@@ -407,8 +390,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
407
390
  '[attr.data-appearance]': 'options.appearance',
408
391
  '($.data-mode.attr)': 'mode$',
409
392
  },
410
- // @bad TODO: OnPush
411
- // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
412
393
  changeDetection: ChangeDetectionStrategy.Default,
413
394
  }]
414
395
  }], ctorParameters: function () { return [{ type: i4.TuiVisualViewportService, decorators: [{
@@ -431,9 +412,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
431
412
  }] }, { type: i0.ElementRef, decorators: [{
432
413
  type: Inject,
433
414
  args: [ElementRef]
434
- }] }, { type: i2.AbstractTuiPortalHostComponent, decorators: [{
435
- type: Inject,
436
- args: [AbstractTuiPortalHostComponent]
437
415
  }] }, { type: i1$2.TuiRectAccessor, decorators: [{
438
416
  type: Inject,
439
417
  args: [TuiRectAccessor]
@@ -512,7 +490,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
512
490
  }] } });
513
491
 
514
492
  class TuiDropdownDriverDirective extends AbstractTuiDriverDirective {
515
- // TODO: Figure out why this is necessary under nx test runner
516
493
  constructor(destroy$, drivers, vehicles) {
517
494
  super(destroy$, drivers, vehicles);
518
495
  this.type = 'dropdown';
@@ -599,22 +576,29 @@ class TuiDropdownPositionDirective extends TuiPositionAccessor {
599
576
  this.previous = undefined;
600
577
  }
601
578
  const hostRect = (_b = (_a = this.accessor) === null || _a === void 0 ? void 0 : _a.getClientRect()) !== null && _b !== void 0 ? _b : EMPTY_CLIENT_RECT;
602
- const viewport = this.viewport.getClientRect();
579
+ const viewportRect = this.viewport.getClientRect();
603
580
  const { minHeight, align, direction, offset } = this.options;
581
+ const viewport = {
582
+ top: viewportRect.top - offset,
583
+ bottom: viewportRect.bottom + offset,
584
+ right: viewportRect.right - offset,
585
+ left: viewportRect.left + offset,
586
+ };
604
587
  const previous = this.previous || direction || 'bottom';
605
- const right = Math.max(hostRect.right - width, offset);
606
588
  const available = {
607
589
  top: hostRect.top - 2 * offset - viewport.top,
608
590
  bottom: viewport.bottom - hostRect.bottom - 2 * offset,
609
591
  };
592
+ const right = Math.max(hostRect.right - width, offset);
593
+ const left = hostRect.left + width < viewport.right ? hostRect.left : right;
610
594
  const position = {
611
595
  top: hostRect.top - offset - height,
612
596
  bottom: hostRect.bottom + offset,
613
- right,
614
- center: hostRect.left + hostRect.width / 2 + width / 2 < viewport.right - offset
597
+ right: Math.max(viewport.left, right),
598
+ center: hostRect.left + hostRect.width / 2 + width / 2 < viewport.right
615
599
  ? hostRect.left + hostRect.width / 2 - width / 2
616
600
  : right,
617
- left: hostRect.left + width < viewport.right - offset ? hostRect.left : right,
601
+ left: Math.max(viewport.left, left),
618
602
  };
619
603
  const better = available.top > available.bottom ? 'top' : 'bottom';
620
604
  if ((available[previous] > minHeight && direction) ||
@@ -684,7 +668,7 @@ class TuiDropdownPositionSidedDirective extends TuiPositionAccessor {
684
668
  top: hostRect.bottom - height + this.tuiDropdownSidedOffset + 1,
685
669
  left: hostRect.left - width - offset,
686
670
  right: hostRect.right + offset,
687
- bottom: hostRect.top - this.tuiDropdownSidedOffset - 1, // 1 for border
671
+ bottom: hostRect.top - this.tuiDropdownSidedOffset - 1,
688
672
  };
689
673
  const better = available.top > available.bottom ? 'top' : 'bottom';
690
674
  const maxLeft = available.left > available.right ? position.left : position.right;
@@ -785,16 +769,10 @@ class TuiDropdownSelectionDirective extends TuiDriver {
785
769
  }
786
770
  return (selection === null || selection === void 0 ? void 0 : selection.rangeCount) ? selection.getRangeAt(0) : this.range;
787
771
  }
788
- /**
789
- * Check if Node is inside dropdown
790
- */
791
772
  boxContains(node) {
792
773
  var _a;
793
774
  return !!((_a = this.dropdown.dropdownBoxRef) === null || _a === void 0 ? void 0 : _a.location.nativeElement.contains(node));
794
775
  }
795
- /**
796
- * Check if given range is at least partially inside dropdown
797
- */
798
776
  inDropdown(range) {
799
777
  const { startContainer, endContainer } = range;
800
778
  const { nativeElement } = this.el;
@@ -818,9 +796,6 @@ class TuiDropdownSelectionDirective extends TuiDriver {
818
796
  range.setEnd(ghost.firstChild, selectionEnd || 0);
819
797
  return range;
820
798
  }
821
- /**
822
- * Create an invisible DIV styled exactly like input/textarea element inside directive
823
- */
824
799
  initGhost(element) {
825
800
  const ghost = this.doc.createElement('div');
826
801
  const { font, letterSpacing, textTransform, padding } = getComputedStyle(element);
@@ -954,9 +929,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
954
929
  }]
955
930
  }] });
956
931
 
957
- /**
958
- * Generated bundle index. Do not edit.
959
- */
960
-
961
932
  export { TUI_DROPDOWN_COMPONENT, TUI_DROPDOWN_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_OPTIONS, TUI_DROPDOWN_OPTIONS, TuiDropdownComponent, TuiDropdownContextDirective, TuiDropdownDirective, TuiDropdownDriverDirective, TuiDropdownHostDirective, TuiDropdownHoverDirective, TuiDropdownManualDirective, TuiDropdownModule, TuiDropdownOpenDirective, TuiDropdownOptionsDirective, TuiDropdownPositionDirective, TuiDropdownPositionSidedDirective, TuiDropdownSelectionDirective, tuiDropdownHoverOptionsProvider, tuiDropdownOptionsProvider };
962
933
  //# sourceMappingURL=taiga-ui-core-directives-dropdown.js.map