@taiga-ui/core 4.51.0 → 4.52.0-canary.0ec45da

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 (498) hide show
  1. package/classes/driver.d.ts +1 -1
  2. package/components/alert/alert.component.d.ts +5 -6
  3. package/components/alert/alert.directive.d.ts +4 -3
  4. package/components/alert/alert.interfaces.d.ts +3 -2
  5. package/components/alert/alert.service.d.ts +6 -2
  6. package/components/alert/alert.tokens.d.ts +1 -7
  7. package/components/alert/index.d.ts +0 -1
  8. package/components/button/button.directive.d.ts +2 -3
  9. package/components/button/button.options.d.ts +1 -1
  10. package/components/calendar/calendar-sheet.component.d.ts +1 -6
  11. package/components/cell/cell.directive.d.ts +9 -0
  12. package/components/cell/cell.options.d.ts +6 -0
  13. package/components/cell/index.d.ts +2 -0
  14. package/components/data-list/data-list.component.d.ts +1 -1
  15. package/components/dialog/active-zone-adapter.directive.d.ts +11 -0
  16. package/components/dialog/dialog.component.d.ts +6 -11
  17. package/components/dialog/dialog.directive.d.ts +5 -4
  18. package/components/dialog/dialog.factory.d.ts +1 -1
  19. package/components/dialog/dialog.options.d.ts +26 -0
  20. package/components/dialog/{dialog-close.service.d.ts → dialog.providers.d.ts} +4 -1
  21. package/components/dialog/dialog.service.d.ts +6 -3
  22. package/components/dialog/index.d.ts +2 -3
  23. package/components/error/error.component.d.ts +6 -8
  24. package/components/error/error.d.ts +4 -0
  25. package/components/error/error.directive.d.ts +19 -0
  26. package/components/error/error.pipe.d.ts +10 -0
  27. package/components/error/index.d.ts +3 -0
  28. package/components/expand/expand.component.d.ts +9 -28
  29. package/components/expand/index.d.ts +0 -2
  30. package/components/header/header.directive.d.ts +17 -0
  31. package/components/header/index.d.ts +1 -0
  32. package/components/icon/icon.component.d.ts +6 -8
  33. package/components/index.d.ts +3 -1
  34. package/components/link/link.directive.d.ts +2 -2
  35. package/components/loader/loader.component.d.ts +7 -7
  36. package/components/modal/index.d.ts +2 -0
  37. package/components/modal/modal.component.d.ts +17 -0
  38. package/components/modal/modal.service.d.ts +13 -0
  39. package/components/notification/notification.directive.d.ts +7 -11
  40. package/components/notification/notification.options.d.ts +1 -1
  41. package/components/root/root.component.d.ts +4 -6
  42. package/components/scrollbar/scrollbar.options.d.ts +1 -1
  43. package/components/spin-button/spin-button.component.d.ts +8 -9
  44. package/components/textfield/index.d.ts +1 -3
  45. package/components/textfield/textfield-content.directive.d.ts +3 -2
  46. package/components/textfield/textfield-icon.d.ts +3 -3
  47. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +7 -9
  48. package/components/textfield/textfield.component.d.ts +13 -13
  49. package/components/textfield/textfield.d.ts +2 -3
  50. package/components/textfield/textfield.directive.d.ts +11 -14
  51. package/components/textfield/textfield.options.d.ts +8 -11
  52. package/directives/appearance/appearance.directive.d.ts +5 -13
  53. package/directives/appearance/appearance.options.d.ts +1 -1
  54. package/directives/dropdown/dropdown-content.directive.d.ts +9 -0
  55. package/directives/dropdown/dropdown-context.directive.d.ts +2 -0
  56. package/directives/dropdown/dropdown.d.ts +2 -2
  57. package/directives/dropdown/dropdown.directive.d.ts +1 -2
  58. package/directives/dropdown/index.d.ts +1 -3
  59. package/directives/hint/hint-describe.directive.d.ts +4 -6
  60. package/directives/hint/hint-host.directive.d.ts +2 -2
  61. package/directives/hint/hint-hover.directive.d.ts +3 -4
  62. package/directives/hint/hint-manual.directive.d.ts +2 -2
  63. package/directives/hint/hint-options.directive.d.ts +3 -3
  64. package/directives/hint/hint-overflow.directive.d.ts +2 -2
  65. package/directives/hint/hint-position.directive.d.ts +4 -5
  66. package/directives/hint/hint-unstyled.component.d.ts +2 -7
  67. package/directives/hint/hint.component.d.ts +10 -11
  68. package/directives/hint/hint.directive.d.ts +9 -11
  69. package/directives/hint/index.d.ts +0 -2
  70. package/directives/icons/icons.bindings.d.ts +5 -0
  71. package/directives/icons/icons.directive.d.ts +8 -14
  72. package/directives/icons/index.d.ts +1 -0
  73. package/directives/index.d.ts +1 -1
  74. package/directives/notification/index.d.ts +2 -0
  75. package/directives/notification/notification.directive.d.ts +11 -0
  76. package/directives/notification/notification.service.d.ts +12 -0
  77. package/directives/popup/popup.directive.d.ts +6 -5
  78. package/directives/popup/popup.service.d.ts +1 -1
  79. package/directives/popup/popups.component.d.ts +2 -2
  80. package/directives/title/title.directive.d.ts +2 -3
  81. package/fesm2022/taiga-ui-core-animations.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-classes.mjs +3 -3
  83. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-core-components-alert.mjs +60 -100
  85. package/fesm2022/taiga-ui-core-components-alert.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-core-components-button.mjs +13 -21
  87. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-calendar.mjs +24 -27
  89. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-cell.mjs +45 -0
  91. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -0
  92. package/fesm2022/taiga-ui-core-components-data-list.mjs +32 -34
  93. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-components-dialog.mjs +125 -94
  95. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-core-components-error.mjs +109 -26
  97. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-components-expand.mjs +34 -132
  99. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-components-header.mjs +42 -0
  101. package/fesm2022/taiga-ui-core-components-header.mjs.map +1 -0
  102. package/fesm2022/taiga-ui-core-components-icon.mjs +22 -30
  103. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-components-label.mjs +10 -13
  105. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-components-link.mjs +13 -18
  107. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-components-loader.mjs +15 -29
  109. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-components-modal.mjs +89 -0
  111. package/fesm2022/taiga-ui-core-components-modal.mjs.map +1 -0
  112. package/fesm2022/taiga-ui-core-components-notification.mjs +24 -53
  113. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-core-components-root.mjs +20 -51
  115. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +28 -28
  117. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-core-components-spin-button.mjs +16 -29
  119. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-core-components-textfield.mjs +171 -300
  121. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-core-components.mjs +3 -1
  123. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-core-directives-appearance.mjs +26 -63
  125. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-core-directives-date-format.mjs +5 -5
  127. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +96 -131
  129. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-core-directives-group.mjs +10 -13
  131. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-core-directives-hint.mjs +145 -244
  133. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-core-directives-icons.mjs +41 -41
  135. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +12 -12
  137. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-core-directives-notification.mjs +73 -0
  139. package/fesm2022/taiga-ui-core-directives-notification.mjs.map +1 -0
  140. package/fesm2022/taiga-ui-core-directives-number-format.mjs +5 -5
  141. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-core-directives-popup.mjs +20 -27
  143. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-core-directives-title.mjs +13 -19
  145. package/fesm2022/taiga-ui-core-directives-title.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-core-directives.mjs +1 -1
  147. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +3 -3
  148. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +3 -3
  150. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-core-pipes-flag.mjs +3 -3
  152. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +3 -3
  154. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +3 -3
  156. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-core-pipes-initials.mjs +3 -3
  158. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-core-pipes-month.mjs +5 -4
  160. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +3 -3
  162. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-core-pipes.mjs +0 -1
  164. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-core-services.mjs +18 -18
  166. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-core-tokens.mjs +31 -17
  168. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +50 -4
  172. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  173. package/package.json +27 -123
  174. package/pipes/index.d.ts +0 -1
  175. package/styles/components/appearance.less +6 -0
  176. package/styles/components/button.less +0 -2
  177. package/styles/components/icon.less +37 -12
  178. package/styles/components/icons.less +45 -7
  179. package/styles/components/link.less +1 -3
  180. package/styles/mixins/mixins.less +1 -2
  181. package/styles/mixins/mixins.scss +1 -2
  182. package/styles/mixins/slider.less +21 -16
  183. package/styles/theme/appearance/outline.less +1 -2
  184. package/styles/theme/appearance/textfield.less +1 -2
  185. package/tokens/i18n.d.ts +7 -7
  186. package/tokens/icon-resolver.d.ts +1 -4
  187. package/tokens/index.d.ts +1 -0
  188. package/tokens/validation-errors.d.ts +4 -0
  189. package/types/index.d.ts +0 -1
  190. package/utils/miscellaneous/index.d.ts +1 -0
  191. package/utils/miscellaneous/provide-taiga.d.ts +13 -0
  192. package/components/alert/alerts.component.d.ts +0 -12
  193. package/components/dialog/dialog.interfaces.d.ts +0 -34
  194. package/components/dialog/dialog.tokens.d.ts +0 -15
  195. package/components/expand/expand-content.directive.d.ts +0 -8
  196. package/components/expand/expand.d.ts +0 -6
  197. package/components/fullscreen/fullscreen.component.d.ts +0 -14
  198. package/components/fullscreen/index.d.ts +0 -1
  199. package/components/textfield/select.directive.d.ts +0 -19
  200. package/components/textfield/textfield-dropdown.directive.d.ts +0 -16
  201. package/directives/dropdown/dropdown-portal.directive.d.ts +0 -14
  202. package/directives/dropdown/dropdown.service.d.ts +0 -6
  203. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  204. package/directives/hint/hint.service.d.ts +0 -13
  205. package/directives/hint/hints.component.d.ts +0 -12
  206. package/directives/surface/index.d.ts +0 -1
  207. package/directives/surface/surface.directive.d.ts +0 -8
  208. package/esm2022/animations/animations.mjs +0 -363
  209. package/esm2022/animations/index.mjs +0 -2
  210. package/esm2022/animations/taiga-ui-core-animations.mjs +0 -5
  211. package/esm2022/classes/accessors.mjs +0 -31
  212. package/esm2022/classes/driver.mjs +0 -36
  213. package/esm2022/classes/index.mjs +0 -4
  214. package/esm2022/classes/taiga-ui-core-classes.mjs +0 -5
  215. package/esm2022/classes/vehicle.mjs +0 -7
  216. package/esm2022/components/alert/alert.component.mjs +0 -43
  217. package/esm2022/components/alert/alert.directive.mjs +0 -21
  218. package/esm2022/components/alert/alert.interfaces.mjs +0 -2
  219. package/esm2022/components/alert/alert.service.mjs +0 -18
  220. package/esm2022/components/alert/alert.tokens.mjs +0 -51
  221. package/esm2022/components/alert/alerts.component.mjs +0 -34
  222. package/esm2022/components/alert/index.mjs +0 -6
  223. package/esm2022/components/alert/taiga-ui-core-components-alert.mjs +0 -5
  224. package/esm2022/components/button/button.directive.mjs +0 -43
  225. package/esm2022/components/button/button.options.mjs +0 -7
  226. package/esm2022/components/button/index.mjs +0 -3
  227. package/esm2022/components/button/taiga-ui-core-components-button.mjs +0 -5
  228. package/esm2022/components/calendar/calendar-sheet.component.mjs +0 -167
  229. package/esm2022/components/calendar/calendar-sheet.options.mjs +0 -12
  230. package/esm2022/components/calendar/calendar-spin.component.mjs +0 -53
  231. package/esm2022/components/calendar/calendar-year.component.mjs +0 -128
  232. package/esm2022/components/calendar/calendar.component.mjs +0 -147
  233. package/esm2022/components/calendar/index.mjs +0 -6
  234. package/esm2022/components/calendar/taiga-ui-core-components-calendar.mjs +0 -5
  235. package/esm2022/components/data-list/data-list.component.mjs +0 -139
  236. package/esm2022/components/data-list/data-list.directive.mjs +0 -19
  237. package/esm2022/components/data-list/data-list.mjs +0 -14
  238. package/esm2022/components/data-list/data-list.tokens.mjs +0 -18
  239. package/esm2022/components/data-list/index.mjs +0 -9
  240. package/esm2022/components/data-list/opt-group.directive.mjs +0 -21
  241. package/esm2022/components/data-list/option/option-content.mjs +0 -36
  242. package/esm2022/components/data-list/option/option-legacy.component.mjs +0 -90
  243. package/esm2022/components/data-list/option/option.directive.mjs +0 -109
  244. package/esm2022/components/data-list/taiga-ui-core-components-data-list.mjs +0 -5
  245. package/esm2022/components/dialog/dialog-close.service.mjs +0 -41
  246. package/esm2022/components/dialog/dialog.component.mjs +0 -63
  247. package/esm2022/components/dialog/dialog.directive.mjs +0 -21
  248. package/esm2022/components/dialog/dialog.factory.mjs +0 -15
  249. package/esm2022/components/dialog/dialog.interfaces.mjs +0 -2
  250. package/esm2022/components/dialog/dialog.service.mjs +0 -18
  251. package/esm2022/components/dialog/dialog.tokens.mjs +0 -33
  252. package/esm2022/components/dialog/dialogs.component.mjs +0 -29
  253. package/esm2022/components/dialog/index.mjs +0 -8
  254. package/esm2022/components/dialog/taiga-ui-core-components-dialog.mjs +0 -5
  255. package/esm2022/components/error/error.component.mjs +0 -34
  256. package/esm2022/components/error/index.mjs +0 -2
  257. package/esm2022/components/error/taiga-ui-core-components-error.mjs +0 -5
  258. package/esm2022/components/expand/expand-content.directive.mjs +0 -18
  259. package/esm2022/components/expand/expand.component.mjs +0 -124
  260. package/esm2022/components/expand/expand.mjs +0 -7
  261. package/esm2022/components/expand/index.mjs +0 -4
  262. package/esm2022/components/expand/taiga-ui-core-components-expand.mjs +0 -5
  263. package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -67
  264. package/esm2022/components/fullscreen/index.mjs +0 -2
  265. package/esm2022/components/fullscreen/taiga-ui-core-components-fullscreen.mjs +0 -5
  266. package/esm2022/components/icon/icon.component.mjs +0 -35
  267. package/esm2022/components/icon/icon.pipe.mjs +0 -19
  268. package/esm2022/components/icon/index.mjs +0 -3
  269. package/esm2022/components/icon/taiga-ui-core-components-icon.mjs +0 -5
  270. package/esm2022/components/index.mjs +0 -18
  271. package/esm2022/components/label/index.mjs +0 -2
  272. package/esm2022/components/label/label.directive.mjs +0 -41
  273. package/esm2022/components/label/taiga-ui-core-components-label.mjs +0 -5
  274. package/esm2022/components/link/index.mjs +0 -3
  275. package/esm2022/components/link/link.directive.mjs +0 -47
  276. package/esm2022/components/link/link.options.mjs +0 -13
  277. package/esm2022/components/link/taiga-ui-core-components-link.mjs +0 -5
  278. package/esm2022/components/loader/index.mjs +0 -3
  279. package/esm2022/components/loader/loader.component.mjs +0 -46
  280. package/esm2022/components/loader/loader.options.mjs +0 -18
  281. package/esm2022/components/loader/taiga-ui-core-components-loader.mjs +0 -5
  282. package/esm2022/components/notification/index.mjs +0 -3
  283. package/esm2022/components/notification/notification.directive.mjs +0 -81
  284. package/esm2022/components/notification/notification.options.mjs +0 -23
  285. package/esm2022/components/notification/taiga-ui-core-components-notification.mjs +0 -5
  286. package/esm2022/components/root/index.mjs +0 -2
  287. package/esm2022/components/root/root.component.mjs +0 -85
  288. package/esm2022/components/root/taiga-ui-core-components-root.mjs +0 -5
  289. package/esm2022/components/scrollbar/index.mjs +0 -9
  290. package/esm2022/components/scrollbar/scroll-controls.component.mjs +0 -32
  291. package/esm2022/components/scrollbar/scroll-into-view.directive.mjs +0 -43
  292. package/esm2022/components/scrollbar/scroll-ref.directive.mjs +0 -19
  293. package/esm2022/components/scrollbar/scrollable.directive.mjs +0 -26
  294. package/esm2022/components/scrollbar/scrollbar.component.mjs +0 -72
  295. package/esm2022/components/scrollbar/scrollbar.directive.mjs +0 -93
  296. package/esm2022/components/scrollbar/scrollbar.options.mjs +0 -6
  297. package/esm2022/components/scrollbar/scrollbar.service.mjs +0 -46
  298. package/esm2022/components/scrollbar/taiga-ui-core-components-scrollbar.mjs +0 -5
  299. package/esm2022/components/spin-button/index.mjs +0 -2
  300. package/esm2022/components/spin-button/spin-button.component.mjs +0 -51
  301. package/esm2022/components/spin-button/taiga-ui-core-components-spin-button.mjs +0 -5
  302. package/esm2022/components/taiga-ui-core-components.mjs +0 -5
  303. package/esm2022/components/textfield/index.mjs +0 -16
  304. package/esm2022/components/textfield/select-like.directive.mjs +0 -42
  305. package/esm2022/components/textfield/select.directive.mjs +0 -65
  306. package/esm2022/components/textfield/taiga-ui-core-components-textfield.mjs +0 -5
  307. package/esm2022/components/textfield/textfield-accessor.mjs +0 -7
  308. package/esm2022/components/textfield/textfield-auxiliary.mjs +0 -7
  309. package/esm2022/components/textfield/textfield-content.directive.mjs +0 -22
  310. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +0 -43
  311. package/esm2022/components/textfield/textfield-icon.mjs +0 -10
  312. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +0 -34
  313. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +0 -137
  314. package/esm2022/components/textfield/textfield.component.mjs +0 -177
  315. package/esm2022/components/textfield/textfield.directive.mjs +0 -131
  316. package/esm2022/components/textfield/textfield.mjs +0 -19
  317. package/esm2022/components/textfield/textfield.options.mjs +0 -63
  318. package/esm2022/components/textfield/with-native-picker.directive.mjs +0 -24
  319. package/esm2022/directives/appearance/appearance.bindings.mjs +0 -15
  320. package/esm2022/directives/appearance/appearance.directive.mjs +0 -79
  321. package/esm2022/directives/appearance/appearance.options.mjs +0 -12
  322. package/esm2022/directives/appearance/index.mjs +0 -5
  323. package/esm2022/directives/appearance/taiga-ui-core-directives-appearance.mjs +0 -5
  324. package/esm2022/directives/appearance/with-appearance.mjs +0 -27
  325. package/esm2022/directives/date-format/date-format.directive.mjs +0 -31
  326. package/esm2022/directives/date-format/index.mjs +0 -2
  327. package/esm2022/directives/date-format/taiga-ui-core-directives-date-format.mjs +0 -5
  328. package/esm2022/directives/dropdown/dropdown-context.directive.mjs +0 -70
  329. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +0 -70
  330. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +0 -17
  331. package/esm2022/directives/dropdown/dropdown-limit-width.mjs +0 -37
  332. package/esm2022/directives/dropdown/dropdown-manual.directive.mjs +0 -27
  333. package/esm2022/directives/dropdown/dropdown-open-legacy.directive.mjs +0 -33
  334. package/esm2022/directives/dropdown/dropdown-open.directive.mjs +0 -169
  335. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +0 -73
  336. package/esm2022/directives/dropdown/dropdown-portal.directive.mjs +0 -34
  337. package/esm2022/directives/dropdown/dropdown-position-sided.directive.mjs +0 -69
  338. package/esm2022/directives/dropdown/dropdown-position.directive.mjs +0 -88
  339. package/esm2022/directives/dropdown/dropdown-selection.directive.mjs +0 -159
  340. package/esm2022/directives/dropdown/dropdown.bindings.mjs +0 -19
  341. package/esm2022/directives/dropdown/dropdown.component.mjs +0 -92
  342. package/esm2022/directives/dropdown/dropdown.directive.mjs +0 -110
  343. package/esm2022/directives/dropdown/dropdown.driver.mjs +0 -32
  344. package/esm2022/directives/dropdown/dropdown.mjs +0 -29
  345. package/esm2022/directives/dropdown/dropdown.providers.mjs +0 -10
  346. package/esm2022/directives/dropdown/dropdown.service.mjs +0 -15
  347. package/esm2022/directives/dropdown/dropdowns.component.mjs +0 -24
  348. package/esm2022/directives/dropdown/index.mjs +0 -22
  349. package/esm2022/directives/dropdown/taiga-ui-core-directives-dropdown.mjs +0 -5
  350. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +0 -23
  351. package/esm2022/directives/group/group.directive.mjs +0 -53
  352. package/esm2022/directives/group/group.options.mjs +0 -15
  353. package/esm2022/directives/group/index.mjs +0 -3
  354. package/esm2022/directives/group/taiga-ui-core-directives-group.mjs +0 -5
  355. package/esm2022/directives/hint/hint-describe.directive.mjs +0 -50
  356. package/esm2022/directives/hint/hint-driver.directive.mjs +0 -19
  357. package/esm2022/directives/hint/hint-host.directive.mjs +0 -27
  358. package/esm2022/directives/hint/hint-hover.directive.mjs +0 -59
  359. package/esm2022/directives/hint/hint-manual.directive.mjs +0 -33
  360. package/esm2022/directives/hint/hint-options.directive.mjs +0 -86
  361. package/esm2022/directives/hint/hint-overflow.directive.mjs +0 -38
  362. package/esm2022/directives/hint/hint-pointer.directive.mjs +0 -33
  363. package/esm2022/directives/hint/hint-position.directive.mjs +0 -112
  364. package/esm2022/directives/hint/hint-unstyled.component.mjs +0 -39
  365. package/esm2022/directives/hint/hint.component.mjs +0 -127
  366. package/esm2022/directives/hint/hint.directive.mjs +0 -99
  367. package/esm2022/directives/hint/hint.mjs +0 -27
  368. package/esm2022/directives/hint/hint.providers.mjs +0 -9
  369. package/esm2022/directives/hint/hint.service.mjs +0 -29
  370. package/esm2022/directives/hint/hints.component.mjs +0 -34
  371. package/esm2022/directives/hint/index.mjs +0 -17
  372. package/esm2022/directives/hint/taiga-ui-core-directives-hint.mjs +0 -5
  373. package/esm2022/directives/icons/icons.directive.mjs +0 -56
  374. package/esm2022/directives/icons/index.mjs +0 -3
  375. package/esm2022/directives/icons/taiga-ui-core-directives-icons.mjs +0 -5
  376. package/esm2022/directives/icons/with-icons.mjs +0 -22
  377. package/esm2022/directives/index.mjs +0 -12
  378. package/esm2022/directives/items-handlers/index.mjs +0 -4
  379. package/esm2022/directives/items-handlers/items-handlers.directive.mjs +0 -63
  380. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +0 -27
  381. package/esm2022/directives/items-handlers/items-handlers.validator.mjs +0 -32
  382. package/esm2022/directives/items-handlers/taiga-ui-core-directives-items-handlers.mjs +0 -5
  383. package/esm2022/directives/number-format/index.mjs +0 -2
  384. package/esm2022/directives/number-format/number-format.directive.mjs +0 -31
  385. package/esm2022/directives/number-format/taiga-ui-core-directives-number-format.mjs +0 -5
  386. package/esm2022/directives/popup/index.mjs +0 -4
  387. package/esm2022/directives/popup/popup.directive.mjs +0 -31
  388. package/esm2022/directives/popup/popup.service.mjs +0 -15
  389. package/esm2022/directives/popup/popups.component.mjs +0 -20
  390. package/esm2022/directives/popup/taiga-ui-core-directives-popup.mjs +0 -5
  391. package/esm2022/directives/surface/index.mjs +0 -2
  392. package/esm2022/directives/surface/surface.directive.mjs +0 -44
  393. package/esm2022/directives/surface/taiga-ui-core-directives-surface.mjs +0 -5
  394. package/esm2022/directives/taiga-ui-core-directives.mjs +0 -5
  395. package/esm2022/directives/title/index.mjs +0 -2
  396. package/esm2022/directives/title/taiga-ui-core-directives-title.mjs +0 -5
  397. package/esm2022/directives/title/title.directive.mjs +0 -37
  398. package/esm2022/index.mjs +0 -9
  399. package/esm2022/pipes/auto-color/auto-color.pipe.mjs +0 -19
  400. package/esm2022/pipes/auto-color/index.mjs +0 -2
  401. package/esm2022/pipes/auto-color/taiga-ui-core-pipes-auto-color.mjs +0 -5
  402. package/esm2022/pipes/calendar-sheet/calendar-sheet.pipe.mjs +0 -54
  403. package/esm2022/pipes/calendar-sheet/index.mjs +0 -2
  404. package/esm2022/pipes/calendar-sheet/taiga-ui-core-pipes-calendar-sheet.mjs +0 -5
  405. package/esm2022/pipes/calendar-sheet/utils.mjs +0 -36
  406. package/esm2022/pipes/fallback-src/fallback-src.pipe.mjs +0 -23
  407. package/esm2022/pipes/fallback-src/index.mjs +0 -2
  408. package/esm2022/pipes/fallback-src/taiga-ui-core-pipes-fallback-src.mjs +0 -5
  409. package/esm2022/pipes/flag/flag.pipe.mjs +0 -26
  410. package/esm2022/pipes/flag/index.mjs +0 -2
  411. package/esm2022/pipes/flag/taiga-ui-core-pipes-flag.mjs +0 -5
  412. package/esm2022/pipes/format-date/format-date.pipe.mjs +0 -22
  413. package/esm2022/pipes/format-date/index.mjs +0 -2
  414. package/esm2022/pipes/format-date/taiga-ui-core-pipes-format-date.mjs +0 -5
  415. package/esm2022/pipes/format-number/format-number.pipe.mjs +0 -36
  416. package/esm2022/pipes/format-number/index.mjs +0 -2
  417. package/esm2022/pipes/format-number/taiga-ui-core-pipes-format-number.mjs +0 -5
  418. package/esm2022/pipes/index.mjs +0 -10
  419. package/esm2022/pipes/initials/index.mjs +0 -2
  420. package/esm2022/pipes/initials/initials.pipe.mjs +0 -23
  421. package/esm2022/pipes/initials/taiga-ui-core-pipes-initials.mjs +0 -5
  422. package/esm2022/pipes/month/index.mjs +0 -2
  423. package/esm2022/pipes/month/month.pipe.mjs +0 -23
  424. package/esm2022/pipes/month/taiga-ui-core-pipes-month.mjs +0 -5
  425. package/esm2022/pipes/order-week-days/index.mjs +0 -2
  426. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +0 -30
  427. package/esm2022/pipes/order-week-days/taiga-ui-core-pipes-order-week-days.mjs +0 -5
  428. package/esm2022/pipes/taiga-ui-core-pipes.mjs +0 -5
  429. package/esm2022/services/breakpoint.service.mjs +0 -31
  430. package/esm2022/services/dark-theme.service.mjs +0 -24
  431. package/esm2022/services/format-date.service.mjs +0 -24
  432. package/esm2022/services/index.mjs +0 -6
  433. package/esm2022/services/position.service.mjs +0 -26
  434. package/esm2022/services/taiga-ui-core-services.mjs +0 -5
  435. package/esm2022/services/visual-viewport.service.mjs +0 -29
  436. package/esm2022/taiga-ui-core.mjs +0 -5
  437. package/esm2022/tokens/animations-speed.mjs +0 -9
  438. package/esm2022/tokens/assets-path.mjs +0 -11
  439. package/esm2022/tokens/auxiliary.mjs +0 -9
  440. package/esm2022/tokens/common-icons.mjs +0 -18
  441. package/esm2022/tokens/dark-mode.mjs +0 -41
  442. package/esm2022/tokens/date-format.mjs +0 -20
  443. package/esm2022/tokens/day-type-handler.mjs +0 -8
  444. package/esm2022/tokens/first-day-of-week.mjs +0 -9
  445. package/esm2022/tokens/i18n.mjs +0 -45
  446. package/esm2022/tokens/icon-resolver.mjs +0 -22
  447. package/esm2022/tokens/icon.mjs +0 -8
  448. package/esm2022/tokens/icons.mjs +0 -21
  449. package/esm2022/tokens/index.mjs +0 -21
  450. package/esm2022/tokens/media.mjs +0 -12
  451. package/esm2022/tokens/number-format.mjs +0 -24
  452. package/esm2022/tokens/reduced-motion.mjs +0 -7
  453. package/esm2022/tokens/scroll-ref.mjs +0 -6
  454. package/esm2022/tokens/selection-stream.mjs +0 -14
  455. package/esm2022/tokens/spin-icons.mjs +0 -8
  456. package/esm2022/tokens/taiga-ui-core-tokens.mjs +0 -5
  457. package/esm2022/tokens/theme.mjs +0 -5
  458. package/esm2022/tokens/viewport.mjs +0 -35
  459. package/esm2022/types/direction.mjs +0 -2
  460. package/esm2022/types/index.mjs +0 -2
  461. package/esm2022/types/interactive-state.mjs +0 -2
  462. package/esm2022/types/orientation.mjs +0 -2
  463. package/esm2022/types/point.mjs +0 -2
  464. package/esm2022/types/portal-item.mjs +0 -2
  465. package/esm2022/types/range-state.mjs +0 -2
  466. package/esm2022/types/size.mjs +0 -13
  467. package/esm2022/types/taiga-ui-core-types.mjs +0 -5
  468. package/esm2022/types/value-content-context.mjs +0 -2
  469. package/esm2022/utils/dom/check-fixed-position.mjs +0 -9
  470. package/esm2022/utils/dom/get-viewport.mjs +0 -24
  471. package/esm2022/utils/dom/get-word-range.mjs +0 -51
  472. package/esm2022/utils/dom/index.mjs +0 -4
  473. package/esm2022/utils/dom/taiga-ui-core-utils-dom.mjs +0 -5
  474. package/esm2022/utils/format/format-number.mjs +0 -47
  475. package/esm2022/utils/format/get-fractional-part-padded.mjs +0 -16
  476. package/esm2022/utils/format/index.mjs +0 -5
  477. package/esm2022/utils/format/number-to-string-without-exp.mjs +0 -18
  478. package/esm2022/utils/format/string-hash-to-hsl.mjs +0 -21
  479. package/esm2022/utils/format/taiga-ui-core-utils-format.mjs +0 -5
  480. package/esm2022/utils/index.mjs +0 -4
  481. package/esm2022/utils/miscellaneous/font-scaling.mjs +0 -11
  482. package/esm2022/utils/miscellaneous/index.mjs +0 -7
  483. package/esm2022/utils/miscellaneous/is-editing-key.mjs +0 -18
  484. package/esm2022/utils/miscellaneous/is-obscured.mjs +0 -8
  485. package/esm2022/utils/miscellaneous/override-options.mjs +0 -11
  486. package/esm2022/utils/miscellaneous/size-bigger.mjs +0 -19
  487. package/esm2022/utils/miscellaneous/taiga-ui-core-utils-miscellaneous.mjs +0 -5
  488. package/esm2022/utils/miscellaneous/to-animation-options.mjs +0 -16
  489. package/esm2022/utils/taiga-ui-core-utils.mjs +0 -5
  490. package/fesm2022/taiga-ui-core-components-fullscreen.mjs +0 -73
  491. package/fesm2022/taiga-ui-core-components-fullscreen.mjs.map +0 -1
  492. package/fesm2022/taiga-ui-core-directives-surface.mjs +0 -50
  493. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +0 -1
  494. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs +0 -29
  495. package/fesm2022/taiga-ui-core-pipes-fallback-src.mjs.map +0 -1
  496. package/pipes/fallback-src/fallback-src.pipe.d.ts +0 -9
  497. package/pipes/fallback-src/index.d.ts +0 -1
  498. package/types/portal-item.d.ts +0 -9
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Directive, InjectionToken, Optional, Self, SkipSelf, inject, Input, EventEmitter, Output, ChangeDetectorRef, INJECTOR, signal, TemplateRef, computed, Component, ChangeDetectionStrategy, ElementRef, ContentChild, ViewContainerRef } from '@angular/core';
2
+ import { Injectable, Directive, InjectionToken, Optional, Self, SkipSelf, inject, Input, EventEmitter, Output, ChangeDetectorRef, INJECTOR, signal, TemplateRef, computed, ChangeDetectionStrategy, Component, PLATFORM_ID, ElementRef, ContentChild, ViewContainerRef } from '@angular/core';
3
3
  import { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';
4
4
  import { EMPTY_CLIENT_RECT, TUI_TRUE_HANDLER, CHAR_ZERO_WIDTH_SPACE, CHAR_NO_BREAK_SPACE } from '@taiga-ui/cdk/constants';
5
5
  import * as i1 from '@taiga-ui/cdk/directives/active-zone';
@@ -16,16 +16,16 @@ import { TUI_VIEWPORT, TUI_DARK_MODE, TUI_SELECTION_STREAM } from '@taiga-ui/cor
16
16
  import { PolymorpheusComponent, PolymorpheusTemplate, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
17
17
  import { BehaviorSubject, Subject, throttleTime, takeWhile, map, merge, filter, fromEvent, switchMap, delay, startWith, takeUntil, distinctUntilChanged, of, tap, share, combineLatest } from 'rxjs';
18
18
  import { coerceArray } from '@angular/cdk/coercion';
19
- import { tuiZonefreeScheduler, tuiIfMap, tuiCloseWatcher, tuiZonefull, tuiWatch, tuiTypedFromEvent, tuiZoneOptimized } from '@taiga-ui/cdk/observables';
19
+ import { tuiZonefreeScheduler, tuiTypedFromEvent, tuiZonefree, tuiIfMap, tuiCloseWatcher, tuiZonefull, tuiWatch, tuiZoneOptimized } from '@taiga-ui/cdk/observables';
20
+ import { TuiPopupService } from '@taiga-ui/core/directives/popup';
20
21
  import { tuiOverrideOptions, tuiCheckFixedPosition, tuiGetWordRange } from '@taiga-ui/core/utils';
21
- import { TuiPortalService, TuiPortals, tuiAsPortal } from '@taiga-ui/cdk/classes';
22
22
  import { __decorate } from 'tslib';
23
+ import { isPlatformBrowser, DOCUMENT } from '@angular/common';
23
24
  import { TUI_IS_TOUCH, TUI_RANGE } from '@taiga-ui/cdk/tokens';
24
25
  import { shouldCall } from '@taiga-ui/event-plugins';
25
- import { DOCUMENT } from '@angular/common';
26
26
  import * as i1$1 from '@taiga-ui/cdk/directives/obscured';
27
27
  import { TuiObscured } from '@taiga-ui/cdk/directives/obscured';
28
- import { tuiIsNativeKeyboardFocusable, tuiGetClosestFocusable, tuiIsNativeFocusedIn, tuiGetNativeFocused } from '@taiga-ui/cdk/utils/focus';
28
+ import { tuiIsKeyboardFocusable, tuiGetClosestFocusable, tuiIsFocusedIn, tuiGetFocused } from '@taiga-ui/cdk/utils/focus';
29
29
  import { tuiIsEditingKey, tuiOverrideOptions as tuiOverrideOptions$1 } from '@taiga-ui/core/utils/miscellaneous';
30
30
 
31
31
  class TuiDropdownDriver extends BehaviorSubject {
@@ -33,21 +33,21 @@ class TuiDropdownDriver extends BehaviorSubject {
33
33
  super(false);
34
34
  this.type = 'dropdown';
35
35
  }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
37
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownDriver }); }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
37
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownDriver }); }
38
38
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownDriver, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownDriver, decorators: [{
40
40
  type: Injectable
41
- }], ctorParameters: function () { return []; } });
41
+ }], ctorParameters: () => [] });
42
42
  class TuiDropdownDriverDirective extends TuiDriverDirective {
43
43
  constructor() {
44
44
  super(...arguments);
45
45
  this.type = 'dropdown';
46
46
  }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownDriverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
48
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownDriverDirective, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
47
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownDriverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
48
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownDriverDirective, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownDriverDirective, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownDriverDirective, decorators: [{
51
51
  type: Directive,
52
52
  args: [{
53
53
  standalone: true,
@@ -62,17 +62,6 @@ const TUI_DROPDOWN_COMPONENT = new InjectionToken(ngDevMode ? 'TUI_DROPDOWN_COMP
62
62
  });
63
63
  const TUI_DROPDOWN_CONTEXT = new InjectionToken(ngDevMode ? 'TUI_DROPDOWN_CONTEXT' : '');
64
64
 
65
- class TuiDropdownService extends TuiPortalService {
66
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
67
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownService, providedIn: 'root' }); }
68
- }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownService, decorators: [{
70
- type: Injectable,
71
- args: [{
72
- providedIn: 'root',
73
- }]
74
- }] });
75
-
76
65
  /** Default values for dropdown options */
77
66
  const TUI_DROPDOWN_DEFAULT_OPTIONS = {
78
67
  align: 'left',
@@ -108,10 +97,10 @@ class TuiDropdownOptionsDirective {
108
97
  this.maxHeight = this.options.maxHeight;
109
98
  this.offset = this.options.offset;
110
99
  }
111
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownOptionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
112
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownOptionsDirective, isStandalone: true, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: { align: ["tuiDropdownAlign", "align"], appearance: ["tuiDropdownAppearance", "appearance"], direction: ["tuiDropdownDirection", "direction"], limitWidth: ["tuiDropdownLimitWidth", "limitWidth"], minHeight: ["tuiDropdownMinHeight", "minHeight"], maxHeight: ["tuiDropdownMaxHeight", "maxHeight"], offset: ["tuiDropdownOffset", "offset"] }, providers: [tuiProvide(TUI_DROPDOWN_OPTIONS, TuiDropdownOptionsDirective)], ngImport: i0 }); }
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownOptionsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
101
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownOptionsDirective, isStandalone: true, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: { align: ["tuiDropdownAlign", "align"], appearance: ["tuiDropdownAppearance", "appearance"], direction: ["tuiDropdownDirection", "direction"], limitWidth: ["tuiDropdownLimitWidth", "limitWidth"], minHeight: ["tuiDropdownMinHeight", "minHeight"], maxHeight: ["tuiDropdownMaxHeight", "maxHeight"], offset: ["tuiDropdownOffset", "offset"] }, providers: [tuiProvide(TUI_DROPDOWN_OPTIONS, TuiDropdownOptionsDirective)], ngImport: i0 }); }
113
102
  }
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownOptionsDirective, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownOptionsDirective, decorators: [{
115
104
  type: Directive,
116
105
  args: [{
117
106
  standalone: true,
@@ -202,13 +191,13 @@ class TuiDropdownPosition extends TuiPositionAccessor {
202
191
  }
203
192
  return rtl && align === 'right' ? 'left' : align;
204
193
  }
205
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownPosition, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
206
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownPosition, isStandalone: true, outputs: { directionChange: "tuiDropdownDirectionChange" }, usesInheritance: true, ngImport: i0 }); }
194
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownPosition, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
195
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownPosition, isStandalone: true, outputs: { directionChange: "tuiDropdownDirectionChange" }, usesInheritance: true, ngImport: i0 }); }
207
196
  }
208
197
  __decorate([
209
198
  tuiPure
210
199
  ], TuiDropdownPosition.prototype, "emitDirection", null);
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownPosition, decorators: [{
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownPosition, decorators: [{
212
201
  type: Directive,
213
202
  args: [{
214
203
  standalone: true,
@@ -221,7 +210,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
221
210
  class TuiDropdownDirective {
222
211
  constructor() {
223
212
  this.refresh$ = new Subject();
224
- this.service = inject(TuiDropdownService);
213
+ this.service = inject(TuiPopupService);
225
214
  this.cdr = inject(ChangeDetectorRef);
226
215
  // TODO: think of a better solution later
227
216
  this.drivers = coerceArray(inject(TuiDropdownDriver, { self: true, optional: true }));
@@ -274,19 +263,19 @@ class TuiDropdownDirective {
274
263
  }
275
264
  else if (!show && ref) {
276
265
  this.ref.set(null);
277
- this.service.remove(ref);
266
+ ref.destroy();
278
267
  }
279
268
  this.drivers.forEach((driver) => driver?.next(show));
280
269
  // TODO: Remove in v5, only needed in Angular 16
281
270
  this.cdr.markForCheck();
282
271
  }
283
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
284
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownDirective, isStandalone: true, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: { tuiDropdown: "tuiDropdown" }, host: { properties: { "class.tui-dropdown-open": "ref()" } }, providers: [
272
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
273
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownDirective, isStandalone: true, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: { tuiDropdown: "tuiDropdown" }, host: { properties: { "class.tui-dropdown-open": "ref()" } }, providers: [
285
274
  tuiAsRectAccessor(TuiDropdownDirective),
286
275
  tuiAsVehicle(TuiDropdownDirective),
287
276
  ], exportAs: ["tuiDropdown"], hostDirectives: [{ directive: TuiDropdownDriverDirective }, { directive: TuiDropdownPosition, outputs: ["tuiDropdownDirectionChange", "tuiDropdownDirectionChange"] }], ngImport: i0 }); }
288
277
  }
289
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownDirective, decorators: [{
278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownDirective, decorators: [{
290
279
  type: Directive,
291
280
  args: [{
292
281
  standalone: true,
@@ -362,25 +351,48 @@ class TuiDropdownComponent {
362
351
  maxWidth: tuiPx(Math.round(viewport.width) - 16), // 8px min gap from each side
363
352
  };
364
353
  }
365
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
366
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownComponent, isStandalone: true, selector: "tui-dropdown", host: { properties: { "attr.data-appearance": "options.appearance", "attr.tuiTheme": "theme()" } }, providers: [
354
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
355
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownComponent, isStandalone: true, selector: "tui-dropdown", host: { properties: { "attr.data-appearance": "options.appearance", "attr.tuiTheme": "theme()" } }, providers: [
367
356
  TuiPositionService,
368
357
  tuiPositionAccessorFor('dropdown', TuiDropdownPosition),
369
358
  tuiRectAccessorFor('dropdown', TuiDropdownDirective),
370
- ], hostDirectives: [{ directive: i1.TuiActiveZone }, { directive: i2.TuiAnimated }], ngImport: i0, template: "<tui-scrollbar class=\"t-scroll\">\n <div\n *polymorpheusOutlet=\"directive._content() as text; context: {$implicit: close}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n</tui-scrollbar>\n", styles: [":host{position:absolute;display:flex;box-shadow:var(--tui-shadow-medium);color:var(--tui-text-primary);background:var(--tui-background-elevation-3);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-border-normal);box-sizing:border-box;isolation:isolate;pointer-events:auto;--tui-from: translateY(-1rem)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:not([style*=top]){visibility:hidden}.t-scroll{flex-grow:1;max-inline-size:100%;inline-size:-webkit-max-content;inline-size:max-content;overscroll-behavior:none}.t-primitive{padding:1rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiScrollbar, selector: "tui-scrollbar", inputs: ["hidden"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
359
+ ], hostDirectives: [{ directive: i1.TuiActiveZone }, { directive: i2.TuiAnimated }], ngImport: i0, template: "<tui-scrollbar class=\"t-scroll\">\n <div\n *polymorpheusOutlet=\"directive._content() as text; context: {$implicit: close}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n</tui-scrollbar>\n", styles: [":host{position:absolute;display:flex;box-shadow:var(--tui-shadow-medium);color:var(--tui-text-primary);background:var(--tui-background-elevation-3);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-border-normal);box-sizing:border-box;isolation:isolate;pointer-events:auto;--tui-from: translateY(-1rem)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:not([style*=top]){visibility:hidden}.t-scroll{flex-grow:1;max-inline-size:100%;inline-size:max-content;overscroll-behavior:none}.t-primitive{padding:1rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiScrollbar, selector: "tui-scrollbar", inputs: ["hidden"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
371
360
  }
372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownComponent, decorators: [{
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownComponent, decorators: [{
373
362
  type: Component,
374
- args: [{ standalone: true, selector: 'tui-dropdown', imports: [PolymorpheusOutlet, TuiScrollbar], changeDetection: ChangeDetectionStrategy.Default, providers: [
363
+ args: [{ selector: 'tui-dropdown', imports: [PolymorpheusOutlet, TuiScrollbar], changeDetection: ChangeDetectionStrategy.Default, providers: [
375
364
  TuiPositionService,
376
365
  tuiPositionAccessorFor('dropdown', TuiDropdownPosition),
377
366
  tuiRectAccessorFor('dropdown', TuiDropdownDirective),
378
367
  ], hostDirectives: [TuiActiveZone, TuiAnimated], host: {
379
368
  '[attr.data-appearance]': 'options.appearance',
380
369
  '[attr.tuiTheme]': 'theme()',
381
- }, template: "<tui-scrollbar class=\"t-scroll\">\n <div\n *polymorpheusOutlet=\"directive._content() as text; context: {$implicit: close}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n</tui-scrollbar>\n", styles: [":host{position:absolute;display:flex;box-shadow:var(--tui-shadow-medium);color:var(--tui-text-primary);background:var(--tui-background-elevation-3);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-border-normal);box-sizing:border-box;isolation:isolate;pointer-events:auto;--tui-from: translateY(-1rem)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:not([style*=top]){visibility:hidden}.t-scroll{flex-grow:1;max-inline-size:100%;inline-size:-webkit-max-content;inline-size:max-content;overscroll-behavior:none}.t-primitive{padding:1rem}\n"] }]
370
+ }, template: "<tui-scrollbar class=\"t-scroll\">\n <div\n *polymorpheusOutlet=\"directive._content() as text; context: {$implicit: close}\"\n class=\"t-primitive\"\n >\n {{ text }}\n </div>\n</tui-scrollbar>\n", styles: [":host{position:absolute;display:flex;box-shadow:var(--tui-shadow-medium);color:var(--tui-text-primary);background:var(--tui-background-elevation-3);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-border-normal);box-sizing:border-box;isolation:isolate;pointer-events:auto;--tui-from: translateY(-1rem)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide}:host:not([style*=top]){visibility:hidden}.t-scroll{flex-grow:1;max-inline-size:100%;inline-size:max-content;overscroll-behavior:none}.t-primitive{padding:1rem}\n"] }]
382
371
  }] });
383
372
 
373
+ class TuiDropdownContent {
374
+ constructor() {
375
+ this.directive = inject(TuiDropdownDirective);
376
+ this.directive.tuiDropdown = inject(TemplateRef);
377
+ if (isPlatformBrowser(inject(PLATFORM_ID)) &&
378
+ this.directive.el.matches(':focus-within')) {
379
+ this.directive.toggle(true);
380
+ }
381
+ }
382
+ ngOnDestroy() {
383
+ this.directive.tuiDropdown = null;
384
+ }
385
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
386
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownContent, isStandalone: true, selector: "ng-template[tuiDropdown]", ngImport: i0 }); }
387
+ }
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownContent, decorators: [{
389
+ type: Directive,
390
+ args: [{
391
+ standalone: true,
392
+ selector: 'ng-template[tuiDropdown]',
393
+ }]
394
+ }], ctorParameters: () => [] });
395
+
384
396
  function activeZoneFilter(event) {
385
397
  return (!event ||
386
398
  (this.driver.value && !this.activeZone.contains(tuiGetActualTarget(event))));
@@ -393,6 +405,10 @@ class TuiDropdownContext extends TuiRectAccessor {
393
405
  this.userSelect = computed(() => (this.isTouch() ? 'none' : null));
394
406
  this.activeZone = inject(TuiActiveZone);
395
407
  this.driver = inject(TuiDropdownDriver);
408
+ this.doc = inject(DOCUMENT);
409
+ this.sub = merge(tuiTypedFromEvent(this.doc, 'pointerdown'), tuiTypedFromEvent(this.doc, 'contextmenu', { capture: true }))
410
+ .pipe(tuiZonefree(), takeUntilDestroyed())
411
+ .subscribe((event) => this.closeDropdown(event));
396
412
  this.type = 'dropdown';
397
413
  }
398
414
  getClientRect() {
@@ -406,8 +422,8 @@ class TuiDropdownContext extends TuiRectAccessor {
406
422
  this.currentRect = tuiPointToClientRect(x, y);
407
423
  this.driver.next(true);
408
424
  }
409
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownContext, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
410
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownContext, isStandalone: true, selector: "[tuiDropdownContext]", host: { listeners: { "document:pointerdown.zoneless": "closeDropdown($event)", "document:contextmenu.capture.zoneless": "closeDropdown($event)", "document:keydown.esc": "closeDropdown()", "longtap": "onContextMenu($event.detail.clientX, $event.detail.clientY)" }, properties: { "style.user-select": "userSelect()", "style.-webkit-user-select": "userSelect()", "style.-webkit-touch-callout": "userSelect()" } }, providers: [
425
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownContext, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
426
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownContext, isStandalone: true, selector: "[tuiDropdownContext]", host: { listeners: { "document:keydown.esc": "closeDropdown()", "longtap": "onContextMenu($event.detail.clientX, $event.detail.clientY)" }, properties: { "style.user-select": "userSelect()", "style.-webkit-user-select": "userSelect()", "style.-webkit-touch-callout": "userSelect()" } }, providers: [
411
427
  TuiActiveZone,
412
428
  TuiDropdownDriver,
413
429
  tuiAsDriver(TuiDropdownDriver),
@@ -417,7 +433,7 @@ class TuiDropdownContext extends TuiRectAccessor {
417
433
  __decorate([
418
434
  shouldCall(activeZoneFilter)
419
435
  ], TuiDropdownContext.prototype, "closeDropdown", null);
420
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownContext, decorators: [{
436
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownContext, decorators: [{
421
437
  type: Directive,
422
438
  args: [{
423
439
  standalone: true,
@@ -432,8 +448,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
432
448
  '[style.user-select]': 'userSelect()',
433
449
  '[style.-webkit-user-select]': 'userSelect()',
434
450
  '[style.-webkit-touch-callout]': 'userSelect()',
435
- '(document:pointerdown.zoneless)': 'closeDropdown($event)',
436
- '(document:contextmenu.capture.zoneless)': 'closeDropdown($event)',
437
451
  '(document:keydown.esc)': 'closeDropdown()',
438
452
  '(longtap)': 'onContextMenu($event.detail.clientX, $event.detail.clientY)',
439
453
  },
@@ -529,7 +543,7 @@ class TuiDropdownOpen {
529
543
  }
530
544
  get host() {
531
545
  const initial = this.dropdownHost?.nativeElement || this.el;
532
- const focusable = tuiIsNativeKeyboardFocusable(initial)
546
+ const focusable = tuiIsKeyboardFocusable(initial)
533
547
  ? initial
534
548
  : tuiGetClosestFocusable({ initial, root: this.el });
535
549
  return this.dropdownHost?.nativeElement || focusable || this.el;
@@ -538,7 +552,7 @@ class TuiDropdownOpen {
538
552
  return tuiIsElementEditable(this.host);
539
553
  }
540
554
  get focused() {
541
- return tuiIsNativeFocusedIn(this.host) || tuiIsNativeFocusedIn(this.dropdown());
555
+ return tuiIsFocusedIn(this.host) || tuiIsFocusedIn(this.dropdown());
542
556
  }
543
557
  update(open) {
544
558
  if (open && !this.tuiDropdownEnabled) {
@@ -565,13 +579,13 @@ class TuiDropdownOpen {
565
579
  child.remove();
566
580
  focusable?.focus();
567
581
  }
568
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownOpen, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
569
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownOpen, isStandalone: true, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: { tuiDropdownEnabled: "tuiDropdownEnabled", tuiDropdownOpen: "tuiDropdownOpen" }, outputs: { tuiDropdownOpenChange: "tuiDropdownOpenChange" }, host: { listeners: { "click": "onClick($event.target)", "keydown.arrowDown": "onArrow($event, false)", "keydown.arrowUp": "onArrow($event, true)", "document:keydown.zoneless.capture": "onEsc($event)", "document:keydown.zoneless": "onKeydown($event)", "tuiActiveZoneChange": "0" } }, providers: [TuiDropdownDriver, tuiAsDriver(TuiDropdownDriver)], queries: [{ propertyName: "dropdownHost", first: true, predicate: ["tuiDropdownHost"], descendants: true, read: ElementRef }], usesOnChanges: true, hostDirectives: [{ directive: i1$1.TuiObscured }, { directive: i1.TuiActiveZone, inputs: ["tuiActiveZoneParent", "tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange", "tuiActiveZoneChange"] }], ngImport: i0 }); }
582
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownOpen, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
583
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownOpen, isStandalone: true, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: { tuiDropdownEnabled: "tuiDropdownEnabled", tuiDropdownOpen: "tuiDropdownOpen" }, outputs: { tuiDropdownOpenChange: "tuiDropdownOpenChange" }, host: { listeners: { "click": "onClick($event.target)", "keydown.arrowDown": "onArrow($event, false)", "keydown.arrowUp": "onArrow($event, true)", "document:keydown.zoneless.capture": "onEsc($event)", "document:keydown.zoneless": "onKeydown($event)", "tuiActiveZoneChange": "0" } }, providers: [TuiDropdownDriver, tuiAsDriver(TuiDropdownDriver)], queries: [{ propertyName: "dropdownHost", first: true, predicate: ["tuiDropdownHost"], descendants: true, read: ElementRef }], usesOnChanges: true, hostDirectives: [{ directive: i1$1.TuiObscured }, { directive: i1.TuiActiveZone, inputs: ["tuiActiveZoneParent", "tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange", "tuiActiveZoneChange"] }], ngImport: i0 }); }
570
584
  }
571
585
  __decorate([
572
586
  shouldCall(shouldClose)
573
587
  ], TuiDropdownOpen.prototype, "onEsc", null);
574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownOpen, decorators: [{
588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownOpen, decorators: [{
575
589
  type: Directive,
576
590
  args: [{
577
591
  standalone: true,
@@ -639,10 +653,10 @@ class TuiDropdownHover extends TuiDriver {
639
653
  const child = !this.el.contains(element) && this.activeZone.contains(element);
640
654
  return hovered || child;
641
655
  }
642
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownHover, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
643
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownHover, isStandalone: true, selector: "[tuiDropdownHover]", inputs: { showDelay: ["tuiDropdownShowDelay", "showDelay"], hideDelay: ["tuiDropdownHideDelay", "hideDelay"] }, host: { listeners: { "click.capture": "onClick($event)" } }, providers: [TuiActiveZone, tuiAsDriver(TuiDropdownHover)], queries: [{ propertyName: "dropdownHost", first: true, predicate: ["tuiDropdownHost"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0 }); }
656
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownHover, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
657
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownHover, isStandalone: true, selector: "[tuiDropdownHover]", inputs: { showDelay: ["tuiDropdownShowDelay", "showDelay"], hideDelay: ["tuiDropdownHideDelay", "hideDelay"] }, host: { listeners: { "click.capture": "onClick($event)" } }, providers: [TuiActiveZone, tuiAsDriver(TuiDropdownHover)], queries: [{ propertyName: "dropdownHost", first: true, predicate: ["tuiDropdownHost"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0 }); }
644
658
  }
645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownHover, decorators: [{
659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownHover, decorators: [{
646
660
  type: Directive,
647
661
  args: [{
648
662
  standalone: true,
@@ -652,7 +666,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
652
666
  '(click.capture)': 'onClick($event)',
653
667
  },
654
668
  }]
655
- }], ctorParameters: function () { return []; }, propDecorators: { dropdownHost: [{
669
+ }], ctorParameters: () => [], propDecorators: { dropdownHost: [{
656
670
  type: ContentChild,
657
671
  args: ['tuiDropdownHost', { descendants: true, read: ElementRef }]
658
672
  }], showDelay: [{
@@ -671,10 +685,10 @@ class TuiDropdownManual {
671
685
  ngOnChanges() {
672
686
  this.driver.next(!!this.tuiDropdownManual);
673
687
  }
674
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownManual, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
675
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownManual, isStandalone: true, selector: "[tuiDropdownManual]", inputs: { tuiDropdownManual: "tuiDropdownManual" }, providers: [TuiDropdownDriver, tuiAsDriver(TuiDropdownDriver)], usesOnChanges: true, ngImport: i0 }); }
688
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownManual, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
689
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownManual, isStandalone: true, selector: "[tuiDropdownManual]", inputs: { tuiDropdownManual: "tuiDropdownManual" }, providers: [TuiDropdownDriver, tuiAsDriver(TuiDropdownDriver)], usesOnChanges: true, ngImport: i0 }); }
676
690
  }
677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownManual, decorators: [{
691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownManual, decorators: [{
678
692
  type: Directive,
679
693
  args: [{
680
694
  standalone: true,
@@ -699,10 +713,10 @@ class TuiDropdownOpenLegacy {
699
713
  emitOpenChange(open) {
700
714
  this.openStateSub.next(open);
701
715
  }
702
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownOpenLegacy, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
703
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownOpenLegacy, isStandalone: true, selector: "[tuiDropdownOpen]:not([tuiDropdown]),[tuiDropdownOpenChange]:not([tuiDropdown])", inputs: { tuiDropdownOpen: "tuiDropdownOpen" }, outputs: { tuiDropdownOpenChange: "tuiDropdownOpenChange" }, ngImport: i0 }); }
716
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownOpenLegacy, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
717
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownOpenLegacy, isStandalone: true, selector: "[tuiDropdownOpen]:not([tuiDropdown]),[tuiDropdownOpenChange]:not([tuiDropdown])", inputs: { tuiDropdownOpen: "tuiDropdownOpen" }, outputs: { tuiDropdownOpenChange: "tuiDropdownOpenChange" }, ngImport: i0 }); }
704
718
  }
705
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownOpenLegacy, decorators: [{
719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownOpenLegacy, decorators: [{
706
720
  type: Directive,
707
721
  args: [{
708
722
  standalone: true,
@@ -714,36 +728,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
714
728
  type: Input
715
729
  }] } });
716
730
 
717
- /**
718
- * @deprecated use {@link TuiPopup} directive instead
719
- */
720
- class TuiDropdownPortal {
721
- constructor() {
722
- this.template = inject(TemplateRef);
723
- this.service = inject(TuiDropdownService);
724
- }
725
- set tuiDropdown(show) {
726
- this.viewRef?.destroy();
727
- if (show) {
728
- this.viewRef = this.service.addTemplate(this.template);
729
- }
730
- }
731
- ngOnDestroy() {
732
- this.viewRef?.destroy();
733
- }
734
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownPortal, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
735
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownPortal, isStandalone: true, selector: "ng-template[tuiDropdown]", inputs: { tuiDropdown: "tuiDropdown" }, ngImport: i0 }); }
736
- }
737
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownPortal, decorators: [{
738
- type: Directive,
739
- args: [{
740
- standalone: true,
741
- selector: 'ng-template[tuiDropdown]',
742
- }]
743
- }], propDecorators: { tuiDropdown: [{
744
- type: Input
745
- }] } });
746
-
747
731
  class TuiDropdownPositionSided extends TuiPositionAccessor {
748
732
  constructor() {
749
733
  super(...arguments);
@@ -772,7 +756,7 @@ class TuiDropdownPositionSided extends TuiPositionAccessor {
772
756
  bottom: viewport.bottom - hostRect.top,
773
757
  };
774
758
  const position = {
775
- top: hostRect.bottom - height + this.tuiDropdownSidedOffset + 1,
759
+ top: hostRect.bottom - height + this.tuiDropdownSidedOffset + 1, // 1 for border
776
760
  left: hostRect.left - width - offset,
777
761
  right: hostRect.right + offset,
778
762
  bottom: hostRect.top - this.tuiDropdownSidedOffset - 1, // 1 for border
@@ -789,10 +773,10 @@ class TuiDropdownPositionSided extends TuiPositionAccessor {
789
773
  this.vertical.emitDirection(better);
790
774
  return [position[better], left];
791
775
  }
792
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownPositionSided, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
793
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownPositionSided, isStandalone: true, selector: "[tuiDropdownSided]", inputs: { tuiDropdownSided: "tuiDropdownSided", tuiDropdownSidedOffset: "tuiDropdownSidedOffset" }, providers: [TuiDropdownPosition, tuiAsPositionAccessor(TuiDropdownPositionSided)], usesInheritance: true, ngImport: i0 }); }
776
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownPositionSided, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
777
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownPositionSided, isStandalone: true, selector: "[tuiDropdownSided]", inputs: { tuiDropdownSided: "tuiDropdownSided", tuiDropdownSidedOffset: "tuiDropdownSidedOffset" }, providers: [TuiDropdownPosition, tuiAsPositionAccessor(TuiDropdownPositionSided)], usesInheritance: true, ngImport: i0 }); }
794
778
  }
795
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownPositionSided, decorators: [{
779
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownPositionSided, decorators: [{
796
780
  type: Directive,
797
781
  args: [{
798
782
  standalone: true,
@@ -861,7 +845,7 @@ class TuiDropdownSelection extends TuiDriver {
861
845
  return this.el.querySelector('tui-textfield .t-ghost') || this.el;
862
846
  }
863
847
  getRange() {
864
- const active = tuiGetNativeFocused(this.doc);
848
+ const active = tuiGetFocused(this.doc);
865
849
  const selection = this.doc.getSelection();
866
850
  const range = active && tuiIsTextfield(active) && this.el.contains(active)
867
851
  ? this.veryVerySadInputFix(active)
@@ -927,13 +911,13 @@ class TuiDropdownSelection extends TuiDriver {
927
911
  this.ghost = ghost;
928
912
  return ghost;
929
913
  }
930
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownSelection, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
931
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownSelection, isStandalone: true, selector: "[tuiDropdownSelection]", inputs: { position: ["tuiDropdownSelectionPosition", "position"], tuiDropdownSelection: "tuiDropdownSelection" }, providers: [
914
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownSelection, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
915
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownSelection, isStandalone: true, selector: "[tuiDropdownSelection]", inputs: { position: ["tuiDropdownSelectionPosition", "position"], tuiDropdownSelection: "tuiDropdownSelection" }, providers: [
932
916
  tuiAsDriver(TuiDropdownSelection),
933
917
  tuiAsRectAccessor(TuiDropdownSelection),
934
918
  ], usesInheritance: true, ngImport: i0 }); }
935
919
  }
936
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownSelection, decorators: [{
920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownSelection, decorators: [{
937
921
  type: Directive,
938
922
  args: [{
939
923
  standalone: true,
@@ -943,7 +927,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
943
927
  tuiAsRectAccessor(TuiDropdownSelection),
944
928
  ],
945
929
  }]
946
- }], ctorParameters: function () { return []; }, propDecorators: { position: [{
930
+ }], ctorParameters: () => [], propDecorators: { position: [{
947
931
  type: Input,
948
932
  args: ['tuiDropdownSelectionPosition']
949
933
  }], tuiDropdownSelection: [{
@@ -957,9 +941,9 @@ const TuiDropdown = [
957
941
  TuiDropdownComponent,
958
942
  TuiDropdownOpen,
959
943
  TuiDropdownOpenLegacy,
960
- TuiDropdownPortal,
961
944
  TuiDropdownManual,
962
945
  TuiDropdownHover,
946
+ TuiDropdownContent,
963
947
  TuiDropdownContext,
964
948
  TuiDropdownPosition,
965
949
  TuiDropdownPositionSided,
@@ -985,16 +969,16 @@ class TuiDropdownFixed {
985
969
  const override = tuiOverrideOptions$1({ limitWidth: 'fixed' }, TUI_DROPDOWN_DEFAULT_OPTIONS);
986
970
  override(inject(TUI_DROPDOWN_OPTIONS, { self: true, optional: true }), null);
987
971
  }
988
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownFixed, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
989
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownFixed, isStandalone: true, providers: [tuiDropdownOptionsProvider({})], ngImport: i0 }); }
972
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownFixed, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
973
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownFixed, isStandalone: true, providers: [tuiDropdownOptionsProvider({})], ngImport: i0 }); }
990
974
  }
991
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownFixed, decorators: [{
975
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownFixed, decorators: [{
992
976
  type: Directive,
993
977
  args: [{
994
978
  standalone: true,
995
979
  providers: [tuiDropdownOptionsProvider({})],
996
980
  }]
997
- }], ctorParameters: function () { return []; } });
981
+ }], ctorParameters: () => [] });
998
982
  class TuiDropdownAuto {
999
983
  constructor() {
1000
984
  /**
@@ -1003,38 +987,19 @@ class TuiDropdownAuto {
1003
987
  */
1004
988
  inject(TUI_DROPDOWN_OPTIONS).limitWidth = 'auto';
1005
989
  }
1006
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownAuto, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1007
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdownAuto, isStandalone: true, ngImport: i0 }); }
990
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownAuto, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
991
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDropdownAuto, isStandalone: true, ngImport: i0 }); }
1008
992
  }
1009
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdownAuto, decorators: [{
993
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDropdownAuto, decorators: [{
1010
994
  type: Directive,
1011
995
  args: [{ standalone: true }]
1012
- }], ctorParameters: function () { return []; } });
1013
-
1014
- /**
1015
- * Host element for dynamically created portals, for example using {@link TuiDropdownDirective}.
1016
- */
1017
- class TuiDropdowns extends TuiPortals {
1018
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdowns, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
1019
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDropdowns, isStandalone: true, selector: "tui-dropdowns", host: { styleAttribute: "position: absolute; width: 100%; top: 0" }, providers: [tuiAsPortal(TuiDropdownService)], usesInheritance: true, ngImport: i0, template: '<ng-container #viewContainer />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1020
- }
1021
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDropdowns, decorators: [{
1022
- type: Component,
1023
- args: [{
1024
- standalone: true,
1025
- selector: 'tui-dropdowns',
1026
- template: '<ng-container #viewContainer />',
1027
- changeDetection: ChangeDetectionStrategy.OnPush,
1028
- providers: [tuiAsPortal(TuiDropdownService)],
1029
- host: { style: 'position: absolute; width: 100%; top: 0' },
1030
- }]
1031
- }] });
996
+ }], ctorParameters: () => [] });
1032
997
 
1033
998
  class TuiWithDropdownOpen {
1034
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiWithDropdownOpen, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1035
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiWithDropdownOpen, isStandalone: true, hostDirectives: [{ directive: TuiDropdownOpen, inputs: ["tuiDropdownOpen", "open", "tuiDropdownEnabled", "tuiDropdownEnabled"], outputs: ["tuiDropdownOpenChange", "openChange"] }], ngImport: i0 }); }
999
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWithDropdownOpen, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1000
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiWithDropdownOpen, isStandalone: true, hostDirectives: [{ directive: TuiDropdownOpen, inputs: ["tuiDropdownOpen", "open", "tuiDropdownEnabled", "tuiDropdownEnabled"], outputs: ["tuiDropdownOpenChange", "openChange"] }], ngImport: i0 }); }
1036
1001
  }
1037
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiWithDropdownOpen, decorators: [{
1002
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWithDropdownOpen, decorators: [{
1038
1003
  type: Directive,
1039
1004
  args: [{
1040
1005
  standalone: true,
@@ -1052,5 +1017,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1052
1017
  * Generated bundle index. Do not edit.
1053
1018
  */
1054
1019
 
1055
- export { TUI_DROPDOWN_COMPONENT, TUI_DROPDOWN_CONTEXT, TUI_DROPDOWN_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_OPTIONS, TUI_DROPDOWN_OPTIONS, TuiDropdown, TuiDropdownAuto, TuiDropdownComponent, TuiDropdownContext, TuiDropdownDirective, TuiDropdownDriver, TuiDropdownDriverDirective, TuiDropdownFixed, TuiDropdownHover, TuiDropdownManual, TuiDropdownOpen, TuiDropdownOpenLegacy, TuiDropdownOptionsDirective, TuiDropdownPortal, TuiDropdownPosition, TuiDropdownPositionSided, TuiDropdownSelection, TuiDropdownService, TuiDropdowns, TuiWithDropdownOpen, tuiDropdown, tuiDropdownEnabled, tuiDropdownHoverOptionsProvider, tuiDropdownOpen, tuiDropdownOptionsProvider };
1020
+ export { TUI_DROPDOWN_COMPONENT, TUI_DROPDOWN_CONTEXT, TUI_DROPDOWN_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_DEFAULT_OPTIONS, TUI_DROPDOWN_HOVER_OPTIONS, TUI_DROPDOWN_OPTIONS, TuiDropdown, TuiDropdownAuto, TuiDropdownComponent, TuiDropdownContent, TuiDropdownContext, TuiDropdownDirective, TuiDropdownDriver, TuiDropdownDriverDirective, TuiDropdownFixed, TuiDropdownHover, TuiDropdownManual, TuiDropdownOpen, TuiDropdownOpenLegacy, TuiDropdownOptionsDirective, TuiDropdownPosition, TuiDropdownPositionSided, TuiDropdownSelection, TuiWithDropdownOpen, tuiDropdown, tuiDropdownEnabled, tuiDropdownHoverOptionsProvider, tuiDropdownOpen, tuiDropdownOptionsProvider };
1056
1021
  //# sourceMappingURL=taiga-ui-core-directives-dropdown.mjs.map