@radix-ng/primitives 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/avatar/src/avatar-fallback.directive.d.ts +1 -1
  2. package/compodoc/documentation.json +1718 -3931
  3. package/core/index.d.ts +3 -2
  4. package/core/src/positioning/constants.d.ts +2 -0
  5. package/core/src/positioning/types.d.ts +31 -0
  6. package/{popover/src/popover.utils.d.ts → core/src/positioning/utils.d.ts} +4 -4
  7. package/dialog/src/dialog-trigger.directive.d.ts +12 -0
  8. package/fesm2022/radix-ng-primitives-accordion.mjs +19 -19
  9. package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
  10. package/fesm2022/radix-ng-primitives-alert-dialog.mjs +22 -22
  11. package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
  12. package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +3 -3
  13. package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
  14. package/fesm2022/radix-ng-primitives-avatar.mjs +17 -17
  15. package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
  16. package/fesm2022/radix-ng-primitives-checkbox.mjs +16 -16
  17. package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
  18. package/fesm2022/radix-ng-primitives-collapsible.mjs +9 -9
  19. package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
  20. package/fesm2022/radix-ng-primitives-context-menu.mjs +34 -34
  21. package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
  22. package/fesm2022/radix-ng-primitives-core.mjs +211 -236
  23. package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
  24. package/fesm2022/radix-ng-primitives-dialog.mjs +31 -26
  25. package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
  26. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +34 -34
  27. package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +1 -1
  28. package/fesm2022/radix-ng-primitives-label.mjs +3 -3
  29. package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
  30. package/fesm2022/radix-ng-primitives-menu.mjs +22 -22
  31. package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
  32. package/fesm2022/radix-ng-primitives-menubar.mjs +31 -31
  33. package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
  34. package/fesm2022/radix-ng-primitives-popover.mjs +61 -256
  35. package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
  36. package/fesm2022/radix-ng-primitives-progress.mjs +10 -10
  37. package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
  38. package/fesm2022/radix-ng-primitives-radio.mjs +12 -12
  39. package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
  40. package/fesm2022/radix-ng-primitives-roving-focus.mjs +6 -6
  41. package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
  42. package/fesm2022/radix-ng-primitives-select.mjs +34 -35
  43. package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
  44. package/fesm2022/radix-ng-primitives-separator.mjs +3 -3
  45. package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
  46. package/fesm2022/radix-ng-primitives-slider.mjs +31 -34
  47. package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
  48. package/fesm2022/radix-ng-primitives-switch.mjs +18 -15
  49. package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
  50. package/fesm2022/radix-ng-primitives-tabs.mjs +16 -16
  51. package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
  52. package/fesm2022/radix-ng-primitives-toggle-group.mjs +9 -9
  53. package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
  54. package/fesm2022/radix-ng-primitives-toggle.mjs +6 -6
  55. package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
  56. package/fesm2022/radix-ng-primitives-tooltip.mjs +143 -242
  57. package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
  58. package/fesm2022/radix-ng-primitives-visually-hidden.mjs +9 -9
  59. package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
  60. package/package.json +3 -57
  61. package/popover/index.d.ts +0 -1
  62. package/popover/src/popover-arrow.directive.d.ts +3 -4
  63. package/popover/src/popover-content.directive.d.ts +3 -3
  64. package/popover/src/popover-root.directive.d.ts +5 -4
  65. package/popover/src/popover.constants.d.ts +0 -2
  66. package/popover/src/popover.types.d.ts +0 -31
  67. package/popover/src/utils/cdk-event.service.d.ts +1 -0
  68. package/switch/src/switch-root.directive.d.ts +4 -1
  69. package/tooltip/src/tooltip-arrow.directive.d.ts +14 -1
  70. package/tooltip/src/tooltip-content.directive.d.ts +4 -5
  71. package/tooltip/src/tooltip-root.directive.d.ts +6 -3
  72. package/tooltip/src/tooltip.types.d.ts +0 -11
  73. package/core/src/control-value-accessor/index.d.ts +0 -75
  74. package/core/src/create-inject-context/assert-injector.d.ts +0 -51
  75. package/core/src/create-inject-context/index.d.ts +0 -68
  76. package/core/src/types.d.ts +0 -23
  77. package/esm2022/accordion/index.mjs +0 -40
  78. package/esm2022/accordion/radix-ng-primitives-accordion.mjs +0 -5
  79. package/esm2022/accordion/src/accordion-content.directive.mjs +0 -42
  80. package/esm2022/accordion/src/accordion-header.directive.mjs +0 -23
  81. package/esm2022/accordion/src/accordion-item.directive.mjs +0 -196
  82. package/esm2022/accordion/src/accordion-root.directive.mjs +0 -200
  83. package/esm2022/accordion/src/accordion-trigger.directive.mjs +0 -42
  84. package/esm2022/alert-dialog/index.mjs +0 -41
  85. package/esm2022/alert-dialog/radix-ng-primitives-alert-dialog.mjs +0 -5
  86. package/esm2022/alert-dialog/src/alert-dialog-cancel.directive.mjs +0 -24
  87. package/esm2022/alert-dialog/src/alert-dialog-content.directive.mjs +0 -34
  88. package/esm2022/alert-dialog/src/alert-dialog-root.directive.mjs +0 -24
  89. package/esm2022/alert-dialog/src/alert-dialog-title.directive.mjs +0 -14
  90. package/esm2022/alert-dialog/src/alert-dialog-trigger.directive.mjs +0 -24
  91. package/esm2022/alert-dialog/src/alert-dialog.service.mjs +0 -46
  92. package/esm2022/aspect-ratio/index.mjs +0 -2
  93. package/esm2022/aspect-ratio/radix-ng-primitives-aspect-ratio.mjs +0 -5
  94. package/esm2022/aspect-ratio/src/aspect-ratio.directive.mjs +0 -57
  95. package/esm2022/avatar/index.mjs +0 -31
  96. package/esm2022/avatar/radix-ng-primitives-avatar.mjs +0 -5
  97. package/esm2022/avatar/src/avatar-fallback.directive.mjs +0 -67
  98. package/esm2022/avatar/src/avatar-image.directive.mjs +0 -65
  99. package/esm2022/avatar/src/avatar-root.directive.mjs +0 -26
  100. package/esm2022/avatar/src/avatar.config.mjs +0 -17
  101. package/esm2022/checkbox/index.mjs +0 -36
  102. package/esm2022/checkbox/radix-ng-primitives-checkbox.mjs +0 -5
  103. package/esm2022/checkbox/src/checkbox-button.directive.mjs +0 -33
  104. package/esm2022/checkbox/src/checkbox-indicator.directive.mjs +0 -24
  105. package/esm2022/checkbox/src/checkbox-input.directive.mjs +0 -44
  106. package/esm2022/checkbox/src/checkbox.directive.mjs +0 -141
  107. package/esm2022/checkbox/src/checkbox.token.mjs +0 -6
  108. package/esm2022/collapsible/index.mjs +0 -4
  109. package/esm2022/collapsible/radix-ng-primitives-collapsible.mjs +0 -5
  110. package/esm2022/collapsible/src/collapsible-content.directive.mjs +0 -42
  111. package/esm2022/collapsible/src/collapsible-content.token.mjs +0 -3
  112. package/esm2022/collapsible/src/collapsible-root.directive.mjs +0 -127
  113. package/esm2022/collapsible/src/collapsible-trigger.directive.mjs +0 -49
  114. package/esm2022/context-menu/index.mjs +0 -65
  115. package/esm2022/context-menu/radix-ng-primitives-context-menu.mjs +0 -5
  116. package/esm2022/context-menu/src/context-menu-content.directive.mjs +0 -56
  117. package/esm2022/context-menu/src/context-menu-item-checkbox.directive.mjs +0 -39
  118. package/esm2022/context-menu/src/context-menu-item-indicator.directive.mjs +0 -22
  119. package/esm2022/context-menu/src/context-menu-item-radio-group.directive.mjs +0 -37
  120. package/esm2022/context-menu/src/context-menu-item-radio.directive.mjs +0 -67
  121. package/esm2022/context-menu/src/context-menu-item-selectable.mjs +0 -31
  122. package/esm2022/context-menu/src/context-menu-item.directive.mjs +0 -70
  123. package/esm2022/context-menu/src/context-menu-label.directive.mjs +0 -14
  124. package/esm2022/context-menu/src/context-menu-separator.directive.mjs +0 -21
  125. package/esm2022/context-menu/src/context-menu-trigger.directive.mjs +0 -92
  126. package/esm2022/core/index.mjs +0 -11
  127. package/esm2022/core/radix-ng-primitives-core.mjs +0 -5
  128. package/esm2022/core/src/accessor/provide-value-accessor.mjs +0 -19
  129. package/esm2022/core/src/auto-focus.directive.mjs +0 -80
  130. package/esm2022/core/src/control-value-accessor/index.mjs +0 -103
  131. package/esm2022/core/src/create-inject-context/assert-injector.mjs +0 -15
  132. package/esm2022/core/src/create-inject-context/index.mjs +0 -116
  133. package/esm2022/core/src/document.mjs +0 -6
  134. package/esm2022/core/src/id-generator.mjs +0 -43
  135. package/esm2022/core/src/inject-ng-control.mjs +0 -17
  136. package/esm2022/core/src/is-client.mjs +0 -6
  137. package/esm2022/core/src/is-inside-form.mjs +0 -7
  138. package/esm2022/core/src/types.mjs +0 -2
  139. package/esm2022/core/src/window.mjs +0 -15
  140. package/esm2022/dialog/index.mjs +0 -50
  141. package/esm2022/dialog/radix-ng-primitives-dialog.mjs +0 -5
  142. package/esm2022/dialog/src/dialog-close.directive.mjs +0 -25
  143. package/esm2022/dialog/src/dialog-content.directive.mjs +0 -46
  144. package/esm2022/dialog/src/dialog-description.directive.mjs +0 -14
  145. package/esm2022/dialog/src/dialog-dismiss.directive.mjs +0 -25
  146. package/esm2022/dialog/src/dialog-ref.mjs +0 -46
  147. package/esm2022/dialog/src/dialog-title.directive.mjs +0 -14
  148. package/esm2022/dialog/src/dialog-trigger.directive.mjs +0 -54
  149. package/esm2022/dialog/src/dialog.config.mjs +0 -6
  150. package/esm2022/dialog/src/dialog.injectors.mjs +0 -10
  151. package/esm2022/dialog/src/dialog.providers.mjs +0 -26
  152. package/esm2022/dialog/src/dialog.service.mjs +0 -96
  153. package/esm2022/dropdown-menu/index.mjs +0 -68
  154. package/esm2022/dropdown-menu/radix-ng-primitives-dropdown-menu.mjs +0 -5
  155. package/esm2022/dropdown-menu/src/dropdown-menu-content.directive.mjs +0 -56
  156. package/esm2022/dropdown-menu/src/dropdown-menu-item-checkbox.directive.mjs +0 -39
  157. package/esm2022/dropdown-menu/src/dropdown-menu-item-indicator.directive.mjs +0 -22
  158. package/esm2022/dropdown-menu/src/dropdown-menu-item-radio-group.directive.mjs +0 -37
  159. package/esm2022/dropdown-menu/src/dropdown-menu-item-radio.directive.mjs +0 -67
  160. package/esm2022/dropdown-menu/src/dropdown-menu-item-selectable.mjs +0 -31
  161. package/esm2022/dropdown-menu/src/dropdown-menu-item.directive.mjs +0 -73
  162. package/esm2022/dropdown-menu/src/dropdown-menu-label.directive.mjs +0 -14
  163. package/esm2022/dropdown-menu/src/dropdown-menu-separator.directive.mjs +0 -21
  164. package/esm2022/dropdown-menu/src/dropdown-menu-trigger.directive.mjs +0 -210
  165. package/esm2022/index.mjs +0 -2
  166. package/esm2022/label/index.mjs +0 -2
  167. package/esm2022/label/radix-ng-primitives-label.mjs +0 -5
  168. package/esm2022/label/src/label.directive.mjs +0 -57
  169. package/esm2022/menu/index.mjs +0 -45
  170. package/esm2022/menu/radix-ng-primitives-menu.mjs +0 -5
  171. package/esm2022/menu/src/menu-content.directive.mjs +0 -17
  172. package/esm2022/menu/src/menu-directive.mjs +0 -18
  173. package/esm2022/menu/src/menu-group.directive.mjs +0 -20
  174. package/esm2022/menu/src/menu-item.directive.mjs +0 -46
  175. package/esm2022/menu/src/menu-label.directive.mjs +0 -14
  176. package/esm2022/menu/src/menu-separator.directive.mjs +0 -21
  177. package/esm2022/menubar/index.mjs +0 -60
  178. package/esm2022/menubar/radix-ng-primitives-menubar.mjs +0 -5
  179. package/esm2022/menubar/src/menubar-content.directive.mjs +0 -17
  180. package/esm2022/menubar/src/menubar-item-checkbox.directive.mjs +0 -34
  181. package/esm2022/menubar/src/menubar-item-indicator.directive.mjs +0 -17
  182. package/esm2022/menubar/src/menubar-item-radio.directive.mjs +0 -35
  183. package/esm2022/menubar/src/menubar-item.directive.mjs +0 -20
  184. package/esm2022/menubar/src/menubar-radio-group.directive.mjs +0 -17
  185. package/esm2022/menubar/src/menubar-root.directive.mjs +0 -24
  186. package/esm2022/menubar/src/menubar-separator.directive.mjs +0 -17
  187. package/esm2022/menubar/src/menubar-trigger.directive.mjs +0 -45
  188. package/esm2022/popover/index.mjs +0 -51
  189. package/esm2022/popover/radix-ng-primitives-popover.mjs +0 -5
  190. package/esm2022/popover/src/popover-anchor.directive.mjs +0 -75
  191. package/esm2022/popover/src/popover-anchor.token.mjs +0 -3
  192. package/esm2022/popover/src/popover-arrow.directive.mjs +0 -117
  193. package/esm2022/popover/src/popover-arrow.token.mjs +0 -3
  194. package/esm2022/popover/src/popover-close.directive.mjs +0 -49
  195. package/esm2022/popover/src/popover-close.token.mjs +0 -3
  196. package/esm2022/popover/src/popover-content-attributes.component.mjs +0 -70
  197. package/esm2022/popover/src/popover-content-attributes.token.mjs +0 -3
  198. package/esm2022/popover/src/popover-content.directive.mjs +0 -270
  199. package/esm2022/popover/src/popover-root.directive.mjs +0 -320
  200. package/esm2022/popover/src/popover-root.inject.mjs +0 -7
  201. package/esm2022/popover/src/popover-trigger.directive.mjs +0 -41
  202. package/esm2022/popover/src/popover.constants.mjs +0 -90
  203. package/esm2022/popover/src/popover.types.mjs +0 -31
  204. package/esm2022/popover/src/popover.utils.mjs +0 -107
  205. package/esm2022/popover/src/utils/cdk-event.service.mjs +0 -153
  206. package/esm2022/popover/src/utils/constants.mjs +0 -2
  207. package/esm2022/popover/src/utils/types.mjs +0 -2
  208. package/esm2022/progress/index.mjs +0 -25
  209. package/esm2022/progress/radix-ng-primitives-progress.mjs +0 -5
  210. package/esm2022/progress/src/progress-indicator.directive.mjs +0 -33
  211. package/esm2022/progress/src/progress-root.directive.mjs +0 -132
  212. package/esm2022/radio/index.mjs +0 -5
  213. package/esm2022/radio/radix-ng-primitives-radio.mjs +0 -5
  214. package/esm2022/radio/src/radio-indicator.directive.mjs +0 -25
  215. package/esm2022/radio/src/radio-item-input.directive.mjs +0 -37
  216. package/esm2022/radio/src/radio-item.directive.mjs +0 -86
  217. package/esm2022/radio/src/radio-root.directive.mjs +0 -104
  218. package/esm2022/radio/src/radio-tokens.mjs +0 -3
  219. package/esm2022/radix-ng-primitives.mjs +0 -5
  220. package/esm2022/roving-focus/index.mjs +0 -3
  221. package/esm2022/roving-focus/radix-ng-primitives-roving-focus.mjs +0 -5
  222. package/esm2022/roving-focus/src/roving-focus-group.directive.mjs +0 -138
  223. package/esm2022/roving-focus/src/roving-focus-item.directive.mjs +0 -133
  224. package/esm2022/roving-focus/src/utils.mjs +0 -47
  225. package/esm2022/select/index.mjs +0 -65
  226. package/esm2022/select/radix-ng-primitives-select.mjs +0 -5
  227. package/esm2022/select/src/select-content.directive.mjs +0 -53
  228. package/esm2022/select/src/select-group.directive.mjs +0 -18
  229. package/esm2022/select/src/select-icon.directive.mjs +0 -18
  230. package/esm2022/select/src/select-item-indicator.directive.mjs +0 -23
  231. package/esm2022/select/src/select-item.directive.mjs +0 -122
  232. package/esm2022/select/src/select-label.directive.mjs +0 -15
  233. package/esm2022/select/src/select-separator.directive.mjs +0 -18
  234. package/esm2022/select/src/select-trigger.directive.mjs +0 -38
  235. package/esm2022/select/src/select-value.directive.mjs +0 -21
  236. package/esm2022/select/src/select.component.mjs +0 -234
  237. package/esm2022/separator/index.mjs +0 -2
  238. package/esm2022/separator/radix-ng-primitives-separator.mjs +0 -5
  239. package/esm2022/separator/src/separator.directive.mjs +0 -61
  240. package/esm2022/slider/index.mjs +0 -28
  241. package/esm2022/slider/radix-ng-primitives-slider.mjs +0 -5
  242. package/esm2022/slider/src/slider-horizontal.component.mjs +0 -117
  243. package/esm2022/slider/src/slider-impl.directive.mjs +0 -89
  244. package/esm2022/slider/src/slider-orientation-context.service.mjs +0 -27
  245. package/esm2022/slider/src/slider-range.component.mjs +0 -41
  246. package/esm2022/slider/src/slider-root.component.mjs +0 -210
  247. package/esm2022/slider/src/slider-thumb-impl.directive.mjs +0 -106
  248. package/esm2022/slider/src/slider-thumb.component.mjs +0 -22
  249. package/esm2022/slider/src/slider-track.component.mjs +0 -27
  250. package/esm2022/slider/src/slider-vertical.component.mjs +0 -117
  251. package/esm2022/slider/src/utils.mjs +0 -94
  252. package/esm2022/switch/index.mjs +0 -30
  253. package/esm2022/switch/radix-ng-primitives-switch.mjs +0 -5
  254. package/esm2022/switch/src/switch-input.directive.mjs +0 -44
  255. package/esm2022/switch/src/switch-root.directive.mjs +0 -145
  256. package/esm2022/switch/src/switch-thumb.directive.mjs +0 -26
  257. package/esm2022/tabs/index.mjs +0 -35
  258. package/esm2022/tabs/radix-ng-primitives-tabs.mjs +0 -5
  259. package/esm2022/tabs/src/tabs-content.directive.mjs +0 -35
  260. package/esm2022/tabs/src/tabs-list.directive.mjs +0 -26
  261. package/esm2022/tabs/src/tabs-root.directive.mjs +0 -57
  262. package/esm2022/tabs/src/tabs-trigger.directive.mjs +0 -78
  263. package/esm2022/tabs/src/utils.mjs +0 -7
  264. package/esm2022/toggle/index.mjs +0 -3
  265. package/esm2022/toggle/radix-ng-primitives-toggle.mjs +0 -5
  266. package/esm2022/toggle/src/toggle-visually-hidden-input.directive.mjs +0 -31
  267. package/esm2022/toggle/src/toggle.directive.mjs +0 -79
  268. package/esm2022/toggle-group/index.mjs +0 -6
  269. package/esm2022/toggle-group/radix-ng-primitives-toggle-group.mjs +0 -5
  270. package/esm2022/toggle-group/src/toggle-group-item.directive.mjs +0 -85
  271. package/esm2022/toggle-group/src/toggle-group-item.token.mjs +0 -3
  272. package/esm2022/toggle-group/src/toggle-group-multiple.directive.mjs +0 -185
  273. package/esm2022/toggle-group/src/toggle-group.directive.mjs +0 -179
  274. package/esm2022/toggle-group/src/toggle-group.token.mjs +0 -6
  275. package/esm2022/tooltip/index.mjs +0 -41
  276. package/esm2022/tooltip/radix-ng-primitives-tooltip.mjs +0 -5
  277. package/esm2022/tooltip/src/get-content-position.mjs +0 -31
  278. package/esm2022/tooltip/src/tooltip-arrow.directive.mjs +0 -92
  279. package/esm2022/tooltip/src/tooltip-arrow.token.mjs +0 -3
  280. package/esm2022/tooltip/src/tooltip-content-attributes.directive.mjs +0 -24
  281. package/esm2022/tooltip/src/tooltip-content.directive.mjs +0 -48
  282. package/esm2022/tooltip/src/tooltip-content.token.mjs +0 -3
  283. package/esm2022/tooltip/src/tooltip-root.directive.mjs +0 -288
  284. package/esm2022/tooltip/src/tooltip-trigger.directive.mjs +0 -70
  285. package/esm2022/tooltip/src/tooltip.config.mjs +0 -18
  286. package/esm2022/tooltip/src/tooltip.constants.mjs +0 -84
  287. package/esm2022/tooltip/src/tooltip.types.mjs +0 -14
  288. package/esm2022/visually-hidden/index.mjs +0 -4
  289. package/esm2022/visually-hidden/radix-ng-primitives-visually-hidden.mjs +0 -5
  290. package/esm2022/visually-hidden/src/visually-hidden-input-bubble.directive.mjs +0 -74
  291. package/esm2022/visually-hidden/src/visually-hidden-input.directive.mjs +0 -74
  292. package/esm2022/visually-hidden/src/visually-hidden.directive.mjs +0 -42
  293. package/tooltip/src/get-content-position.d.ts +0 -3
  294. package/tooltip/src/tooltip.constants.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"radix-ng-primitives-menubar.mjs","sources":["../../../packages/primitives/menubar/src/menubar-content.directive.ts","../../../packages/primitives/menubar/src/menubar-item-checkbox.directive.ts","../../../packages/primitives/menubar/src/menubar-item-indicator.directive.ts","../../../packages/primitives/menubar/src/menubar-item-radio.directive.ts","../../../packages/primitives/menubar/src/menubar-item.directive.ts","../../../packages/primitives/menubar/src/menubar-radio-group.directive.ts","../../../packages/primitives/menubar/src/menubar-root.directive.ts","../../../packages/primitives/menubar/src/menubar-separator.directive.ts","../../../packages/primitives/menubar/src/menubar-trigger.directive.ts","../../../packages/primitives/menubar/index.ts","../../../packages/primitives/menubar/radix-ng-primitives-menubar.ts"],"sourcesContent":["import { CdkMenu } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenuBarContent]',\n standalone: true,\n hostDirectives: [CdkMenu]\n})\nexport class RdxMenuBarContentDirective {}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuItemCheckbox } from '@angular/cdk/menu';\nimport { booleanAttribute, computed, Directive, effect, inject, input, signal } from '@angular/core';\n\n@Directive({\n selector: '[MenubarCheckboxItem]',\n standalone: true,\n hostDirectives: [CdkMenuItemCheckbox],\n host: {\n role: 'menuitemcheckbox',\n '[attr.data-state]': 'checked() ? \"checked\": \"unchecked\"',\n '[disabled]': 'disabledState()'\n }\n})\nexport class RdxMenubarItemCheckboxDirective {\n private readonly cdkMenuItemCheckbox = inject(CdkMenuItemCheckbox, { host: true });\n\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n readonly checked = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n protected readonly disabledState = computed(() => this.disabled || this.disabled$());\n\n protected readonly checked$ = signal(this.cdkMenuItemCheckbox.checked);\n protected readonly disabled$ = signal(this.cdkMenuItemCheckbox.disabled);\n\n constructor() {\n effect(() => {\n this.cdkMenuItemCheckbox.checked = this.checked();\n this.cdkMenuItemCheckbox.disabled = this.disabled();\n });\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenubarItemIndicator]',\n standalone: true,\n host: {\n '[attr.data-state]': 'true'\n }\n})\nexport class RdxMenubarItemIndicatorDirective {}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuItemRadio } from '@angular/cdk/menu';\nimport { booleanAttribute, computed, Directive, effect, inject, input, signal } from '@angular/core';\n\n@Directive({\n selector: '[MenubarItemRadio]',\n standalone: true,\n hostDirectives: [CdkMenuItemRadio],\n host: {\n role: 'menuitemradio',\n '[attr.aria-checked]': 'checked()',\n '[attr.data-state]': 'checked() ? \"checked\": \"unchecked\"',\n '[disabled]': 'disabledState()'\n }\n})\nexport class RdxMenubarItemRadioDirective {\n private readonly cdkMenuItemRadio = inject(CdkMenuItemRadio, { host: true });\n\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n readonly checked = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n protected readonly disabledState = computed(() => this.disabled || this.disabled$());\n\n protected readonly checked$ = signal(this.cdkMenuItemRadio.checked);\n protected readonly disabled$ = signal(this.cdkMenuItemRadio.disabled);\n\n constructor() {\n effect(() => {\n this.cdkMenuItemRadio.checked = this.checked();\n this.cdkMenuItemRadio.disabled = this.disabled();\n });\n }\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input } from '@angular/core';\nimport { RdxMenuItemDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[MenuBarItem]',\n standalone: true,\n hostDirectives: [{ directive: RdxMenuItemDirective, inputs: ['rdxDisabled: disabled '] }]\n})\nexport class RdxMenuBarItemDirective {\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n}\n","import { CdkMenuGroup } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenubarRadioGroup]',\n standalone: true,\n hostDirectives: [CdkMenuGroup]\n})\nexport class RdxMenubarRadioGroupDirective {}\n","import { CdkMenuBar } from '@angular/cdk/menu';\nimport { Directive, input } from '@angular/core';\n\n@Directive({\n selector: '[MenuBarRoot]',\n standalone: true,\n hostDirectives: [CdkMenuBar],\n host: {\n tabindex: '0',\n '[attr.data-orientation]': 'orientation()'\n }\n})\nexport class RdxMenuBarDirective {\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n}\n","import { Directive } from '@angular/core';\nimport { RdxMenuSeparatorDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[MenubarSeparator]',\n standalone: true,\n hostDirectives: [RdxMenuSeparatorDirective]\n})\nexport class RdxMenubarSeparatorDirective {}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuTrigger } from '@angular/cdk/menu';\nimport { booleanAttribute, Directive, inject, input } from '@angular/core';\n\n@Directive({\n selector: '[MenuBarTrigger]',\n standalone: true,\n hostDirectives: [{ directive: CdkMenuTrigger, inputs: ['cdkMenuTriggerFor: MenuBarTrigger'] }],\n host: {\n type: 'button',\n role: 'menuitem',\n '[attr.aria-haspopup]': \"'menu'\",\n '[attr.aria-expanded]': 'cdkTrigger.isOpen()',\n '[attr.data-state]': \"cdkTrigger.isOpen() ? 'open': 'closed'\",\n '[attr.data-disabled]': \"disabled() ? '' : undefined\",\n '[disabled]': 'disabled()',\n\n '(pointerdown)': 'onPointerDown($event)'\n }\n})\nexport class RdxMenuBarTriggerDirective {\n protected readonly cdkTrigger = inject(CdkMenuTrigger, { host: true });\n\n readonly disabled = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute\n });\n\n onPointerDown($event: MouseEvent) {\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!this.disabled() && $event.button === 0 && !$event.ctrlKey) {\n /* empty */\n if (!this.cdkTrigger.isOpen()) {\n // prevent trigger focusing when opening\n // this allows the content to be given focus without competition\n $event.preventDefault();\n }\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RdxMenuBarContentDirective } from './src/menubar-content.directive';\nimport { RdxMenubarItemCheckboxDirective } from './src/menubar-item-checkbox.directive';\nimport { RdxMenubarItemIndicatorDirective } from './src/menubar-item-indicator.directive';\nimport { RdxMenubarItemRadioDirective } from './src/menubar-item-radio.directive';\nimport { RdxMenuBarItemDirective } from './src/menubar-item.directive';\nimport { RdxMenubarRadioGroupDirective } from './src/menubar-radio-group.directive';\nimport { RdxMenuBarDirective } from './src/menubar-root.directive';\nimport { RdxMenubarSeparatorDirective } from './src/menubar-separator.directive';\nimport { RdxMenuBarTriggerDirective } from './src/menubar-trigger.directive';\n\nexport * from './src/menubar-content.directive';\nexport * from './src/menubar-item-checkbox.directive';\nexport * from './src/menubar-item-indicator.directive';\nexport * from './src/menubar-item-radio.directive';\nexport * from './src/menubar-item.directive';\nexport * from './src/menubar-radio-group.directive';\nexport * from './src/menubar-root.directive';\nexport * from './src/menubar-separator.directive';\nexport * from './src/menubar-trigger.directive';\n\nconst menubarImports = [\n RdxMenuBarContentDirective,\n RdxMenuBarTriggerDirective,\n RdxMenubarSeparatorDirective,\n RdxMenubarItemCheckboxDirective,\n RdxMenuBarDirective,\n RdxMenuBarItemDirective,\n RdxMenubarItemIndicatorDirective,\n RdxMenubarItemRadioDirective,\n RdxMenubarRadioGroupDirective\n];\n\n@NgModule({\n imports: [...menubarImports],\n exports: [...menubarImports]\n})\nexport class MenubarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;MAQa,0BAA0B,CAAA;+GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,OAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;oBAChB,cAAc,EAAE,CAAC,OAAO;AAC3B,iBAAA;;;MCOY,+BAA+B,CAAA;AAWxC,IAAA,WAAA,GAAA;QAViB,IAAmB,CAAA,mBAAA,GAAG,MAAM,CAA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AAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc;AAC9B,iBAAA;;;ACpCD;;AAEG;;;;"}
1
+ {"version":3,"file":"radix-ng-primitives-menubar.mjs","sources":["../../../packages/primitives/menubar/src/menubar-content.directive.ts","../../../packages/primitives/menubar/src/menubar-item-checkbox.directive.ts","../../../packages/primitives/menubar/src/menubar-item-indicator.directive.ts","../../../packages/primitives/menubar/src/menubar-item-radio.directive.ts","../../../packages/primitives/menubar/src/menubar-item.directive.ts","../../../packages/primitives/menubar/src/menubar-radio-group.directive.ts","../../../packages/primitives/menubar/src/menubar-root.directive.ts","../../../packages/primitives/menubar/src/menubar-separator.directive.ts","../../../packages/primitives/menubar/src/menubar-trigger.directive.ts","../../../packages/primitives/menubar/index.ts","../../../packages/primitives/menubar/radix-ng-primitives-menubar.ts"],"sourcesContent":["import { CdkMenu } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenuBarContent]',\n standalone: true,\n hostDirectives: [CdkMenu]\n})\nexport class RdxMenuBarContentDirective {}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuItemCheckbox } from '@angular/cdk/menu';\nimport { booleanAttribute, computed, Directive, effect, inject, input, signal } from '@angular/core';\n\n@Directive({\n selector: '[MenubarCheckboxItem]',\n standalone: true,\n hostDirectives: [CdkMenuItemCheckbox],\n host: {\n role: 'menuitemcheckbox',\n '[attr.data-state]': 'checked() ? \"checked\": \"unchecked\"',\n '[disabled]': 'disabledState()'\n }\n})\nexport class RdxMenubarItemCheckboxDirective {\n private readonly cdkMenuItemCheckbox = inject(CdkMenuItemCheckbox, { host: true });\n\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n readonly checked = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n protected readonly disabledState = computed(() => this.disabled || this.disabled$());\n\n protected readonly checked$ = signal(this.cdkMenuItemCheckbox.checked);\n protected readonly disabled$ = signal(this.cdkMenuItemCheckbox.disabled);\n\n constructor() {\n effect(() => {\n this.cdkMenuItemCheckbox.checked = this.checked();\n this.cdkMenuItemCheckbox.disabled = this.disabled();\n });\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenubarItemIndicator]',\n standalone: true,\n host: {\n '[attr.data-state]': 'true'\n }\n})\nexport class RdxMenubarItemIndicatorDirective {}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuItemRadio } from '@angular/cdk/menu';\nimport { booleanAttribute, computed, Directive, effect, inject, input, signal } from '@angular/core';\n\n@Directive({\n selector: '[MenubarItemRadio]',\n standalone: true,\n hostDirectives: [CdkMenuItemRadio],\n host: {\n role: 'menuitemradio',\n '[attr.aria-checked]': 'checked()',\n '[attr.data-state]': 'checked() ? \"checked\": \"unchecked\"',\n '[disabled]': 'disabledState()'\n }\n})\nexport class RdxMenubarItemRadioDirective {\n private readonly cdkMenuItemRadio = inject(CdkMenuItemRadio, { host: true });\n\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n readonly checked = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n protected readonly disabledState = computed(() => this.disabled || this.disabled$());\n\n protected readonly checked$ = signal(this.cdkMenuItemRadio.checked);\n protected readonly disabled$ = signal(this.cdkMenuItemRadio.disabled);\n\n constructor() {\n effect(() => {\n this.cdkMenuItemRadio.checked = this.checked();\n this.cdkMenuItemRadio.disabled = this.disabled();\n });\n }\n}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input } from '@angular/core';\nimport { RdxMenuItemDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[MenuBarItem]',\n standalone: true,\n hostDirectives: [{ directive: RdxMenuItemDirective, inputs: ['rdxDisabled: disabled '] }]\n})\nexport class RdxMenuBarItemDirective {\n readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n}\n","import { CdkMenuGroup } from '@angular/cdk/menu';\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: '[MenubarRadioGroup]',\n standalone: true,\n hostDirectives: [CdkMenuGroup]\n})\nexport class RdxMenubarRadioGroupDirective {}\n","import { CdkMenuBar } from '@angular/cdk/menu';\nimport { Directive, input } from '@angular/core';\n\n@Directive({\n selector: '[MenuBarRoot]',\n standalone: true,\n hostDirectives: [CdkMenuBar],\n host: {\n tabindex: '0',\n '[attr.data-orientation]': 'orientation()'\n }\n})\nexport class RdxMenuBarDirective {\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n}\n","import { Directive } from '@angular/core';\nimport { RdxMenuSeparatorDirective } from '@radix-ng/primitives/menu';\n\n@Directive({\n selector: '[MenubarSeparator]',\n standalone: true,\n hostDirectives: [RdxMenuSeparatorDirective]\n})\nexport class RdxMenubarSeparatorDirective {}\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { CdkMenuTrigger } from '@angular/cdk/menu';\nimport { booleanAttribute, Directive, inject, input } from '@angular/core';\n\n@Directive({\n selector: '[MenuBarTrigger]',\n standalone: true,\n hostDirectives: [{ directive: CdkMenuTrigger, inputs: ['cdkMenuTriggerFor: MenuBarTrigger'] }],\n host: {\n type: 'button',\n role: 'menuitem',\n '[attr.aria-haspopup]': \"'menu'\",\n '[attr.aria-expanded]': 'cdkTrigger.isOpen()',\n '[attr.data-state]': \"cdkTrigger.isOpen() ? 'open': 'closed'\",\n '[attr.data-disabled]': \"disabled() ? '' : undefined\",\n '[disabled]': 'disabled()',\n\n '(pointerdown)': 'onPointerDown($event)'\n }\n})\nexport class RdxMenuBarTriggerDirective {\n protected readonly cdkTrigger = inject(CdkMenuTrigger, { host: true });\n\n readonly disabled = input<boolean, BooleanInput>(false, {\n transform: booleanAttribute\n });\n\n onPointerDown($event: MouseEvent) {\n // only call handler if it's the left button (mousedown gets triggered by all mouse buttons)\n // but not when the control key is pressed (avoiding MacOS right click)\n if (!this.disabled() && $event.button === 0 && !$event.ctrlKey) {\n /* empty */\n if (!this.cdkTrigger.isOpen()) {\n // prevent trigger focusing when opening\n // this allows the content to be given focus without competition\n $event.preventDefault();\n }\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { RdxMenuBarContentDirective } from './src/menubar-content.directive';\nimport { RdxMenubarItemCheckboxDirective } from './src/menubar-item-checkbox.directive';\nimport { RdxMenubarItemIndicatorDirective } from './src/menubar-item-indicator.directive';\nimport { RdxMenubarItemRadioDirective } from './src/menubar-item-radio.directive';\nimport { RdxMenuBarItemDirective } from './src/menubar-item.directive';\nimport { RdxMenubarRadioGroupDirective } from './src/menubar-radio-group.directive';\nimport { RdxMenuBarDirective } from './src/menubar-root.directive';\nimport { RdxMenubarSeparatorDirective } from './src/menubar-separator.directive';\nimport { RdxMenuBarTriggerDirective } from './src/menubar-trigger.directive';\n\nexport * from './src/menubar-content.directive';\nexport * from './src/menubar-item-checkbox.directive';\nexport * from './src/menubar-item-indicator.directive';\nexport * from './src/menubar-item-radio.directive';\nexport * from './src/menubar-item.directive';\nexport * from './src/menubar-radio-group.directive';\nexport * from './src/menubar-root.directive';\nexport * from './src/menubar-separator.directive';\nexport * from './src/menubar-trigger.directive';\n\nconst menubarImports = [\n RdxMenuBarContentDirective,\n RdxMenuBarTriggerDirective,\n RdxMenubarSeparatorDirective,\n RdxMenubarItemCheckboxDirective,\n RdxMenuBarDirective,\n RdxMenuBarItemDirective,\n RdxMenubarItemIndicatorDirective,\n RdxMenubarItemRadioDirective,\n RdxMenubarRadioGroupDirective\n];\n\n@NgModule({\n imports: [...menubarImports],\n exports: [...menubarImports]\n})\nexport class MenubarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;MAQa,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EA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AAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAftB,0BAA0B;YAC1B,0BAA0B;YAC1B,4BAA4B;YAC5B,+BAA+B;YAC/B,mBAAmB;YACnB,uBAAuB;YACvB,gCAAgC;YAChC,4BAA4B;AAC5B,YAAA,6BAA6B,aAR7B,0BAA0B;YAC1B,0BAA0B;YAC1B,4BAA4B;YAC5B,+BAA+B;YAC/B,mBAAmB;YACnB,uBAAuB;YACvB,gCAAgC;YAChC,4BAA4B;YAC5B,6BAA6B,CAAA,EAAA,CAAA,CAAA;+GAOpB,aAAa,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,cAAc;AAC9B,iBAAA;;;ACpCD;;AAEG;;;;"}
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, inject, TemplateRef, DestroyRef, computed, input, output, effect, untracked, SimpleChange, Directive, ElementRef, NgZone, Renderer2, isDevMode, VERSION, Injectable, makeEnvironmentProviders, signal, booleanAttribute, contentChild, ViewContainerRef, afterNextRender, assertInInjectionContext, forwardRef, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/cdk/overlay';
4
4
  import { Overlay, CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
5
- import { DOCUMENT } from '@angular/common';
5
+ import { RdxPositionSide, RdxPositionAlign, getContentPosition, getAllPossibleConnectedPositions, injectDocument, injectWindow, getArrowPositionParams, getSideAndAlignFromAllPossibleConnectedPositions } from '@radix-ng/primitives/core';
6
6
  import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
7
7
  import { filter, tap } from 'rxjs';
8
8
 
@@ -14,19 +14,13 @@ const RdxPopoverCloseToken = new InjectionToken('RdxPopoverCloseToken');
14
14
 
15
15
  const RdxPopoverContentAttributesToken = new InjectionToken('RdxPopoverContentAttributesToken');
16
16
 
17
- var RdxPopoverSide;
18
- (function (RdxPopoverSide) {
19
- RdxPopoverSide["Top"] = "top";
20
- RdxPopoverSide["Right"] = "right";
21
- RdxPopoverSide["Bottom"] = "bottom";
22
- RdxPopoverSide["Left"] = "left";
23
- })(RdxPopoverSide || (RdxPopoverSide = {}));
24
- var RdxPopoverAlign;
25
- (function (RdxPopoverAlign) {
26
- RdxPopoverAlign["Start"] = "start";
27
- RdxPopoverAlign["Center"] = "center";
28
- RdxPopoverAlign["End"] = "end";
29
- })(RdxPopoverAlign || (RdxPopoverAlign = {}));
17
+ const DEFAULTS = {
18
+ offsets: {
19
+ side: 10,
20
+ align: 0
21
+ }
22
+ };
23
+
30
24
  var RdxPopoverState;
31
25
  (function (RdxPopoverState) {
32
26
  RdxPopoverState["OPEN"] = "open";
@@ -45,200 +39,6 @@ var RdxPopoverAnimationStatus;
45
39
  RdxPopoverAnimationStatus["CLOSED_ENDED"] = "closed_ended";
46
40
  })(RdxPopoverAnimationStatus || (RdxPopoverAnimationStatus = {}));
47
41
 
48
- const POPOVER_POSITIONS = {
49
- [RdxPopoverSide.Top]: {
50
- [RdxPopoverAlign.Center]: {
51
- originX: 'center',
52
- originY: 'top',
53
- overlayX: 'center',
54
- overlayY: 'bottom'
55
- },
56
- [RdxPopoverAlign.Start]: {
57
- originX: 'start',
58
- originY: 'top',
59
- overlayX: 'start',
60
- overlayY: 'bottom'
61
- },
62
- [RdxPopoverAlign.End]: {
63
- originX: 'end',
64
- originY: 'top',
65
- overlayX: 'end',
66
- overlayY: 'bottom'
67
- }
68
- },
69
- [RdxPopoverSide.Right]: {
70
- [RdxPopoverAlign.Center]: {
71
- originX: 'end',
72
- originY: 'center',
73
- overlayX: 'start',
74
- overlayY: 'center'
75
- },
76
- [RdxPopoverAlign.Start]: {
77
- originX: 'end',
78
- originY: 'top',
79
- overlayX: 'start',
80
- overlayY: 'top'
81
- },
82
- [RdxPopoverAlign.End]: {
83
- originX: 'end',
84
- originY: 'bottom',
85
- overlayX: 'start',
86
- overlayY: 'bottom'
87
- }
88
- },
89
- [RdxPopoverSide.Bottom]: {
90
- [RdxPopoverAlign.Center]: {
91
- originX: 'center',
92
- originY: 'bottom',
93
- overlayX: 'center',
94
- overlayY: 'top'
95
- },
96
- [RdxPopoverAlign.Start]: {
97
- originX: 'start',
98
- originY: 'bottom',
99
- overlayX: 'start',
100
- overlayY: 'top'
101
- },
102
- [RdxPopoverAlign.End]: {
103
- originX: 'end',
104
- originY: 'bottom',
105
- overlayX: 'end',
106
- overlayY: 'top'
107
- }
108
- },
109
- [RdxPopoverSide.Left]: {
110
- [RdxPopoverAlign.Center]: {
111
- originX: 'start',
112
- originY: 'center',
113
- overlayX: 'end',
114
- overlayY: 'center'
115
- },
116
- [RdxPopoverAlign.Start]: {
117
- originX: 'start',
118
- originY: 'top',
119
- overlayX: 'end',
120
- overlayY: 'top'
121
- },
122
- [RdxPopoverAlign.End]: {
123
- originX: 'start',
124
- originY: 'bottom',
125
- overlayX: 'end',
126
- overlayY: 'bottom'
127
- }
128
- }
129
- };
130
- const DEFAULTS = {
131
- offsets: {
132
- side: 10,
133
- align: 0
134
- }
135
- };
136
-
137
- let allPossibleConnectedPositions;
138
- function getAllPossibleConnectedPositions() {
139
- if (!allPossibleConnectedPositions) {
140
- allPossibleConnectedPositions = new Map();
141
- }
142
- if (allPossibleConnectedPositions.size < 1) {
143
- Object.keys(POPOVER_POSITIONS).forEach((side) => {
144
- Object.keys(POPOVER_POSITIONS[side] ?? {}).forEach((align) => {
145
- allPossibleConnectedPositions.set(`${side}|${align}`, POPOVER_POSITIONS[side][align]);
146
- });
147
- });
148
- }
149
- return allPossibleConnectedPositions;
150
- }
151
- function getSideAndAlignFromAllPossibleConnectedPositions(position) {
152
- const allPossibleConnectedPositions = getAllPossibleConnectedPositions();
153
- let sideAndAlign;
154
- allPossibleConnectedPositions.forEach((value, key) => {
155
- if (position.originX === value.originX &&
156
- position.originY === value.originY &&
157
- position.overlayX === value.overlayX &&
158
- position.overlayY === value.overlayY) {
159
- const sideAndAlignArray = key.split('|');
160
- sideAndAlign = {
161
- side: sideAndAlignArray[0],
162
- align: sideAndAlignArray[1]
163
- };
164
- }
165
- });
166
- if (!sideAndAlign) {
167
- throw Error(`[RdxPopover] cannot infer both side and align from the given position (${JSON.stringify(position)})`);
168
- }
169
- return sideAndAlign;
170
- }
171
- function getContentPosition(sideAndAlignWithOffsets) {
172
- const { side, align, sideOffset, alignOffset } = sideAndAlignWithOffsets;
173
- const position = {
174
- ...(POPOVER_POSITIONS[side]?.[align] ?? POPOVER_POSITIONS[RdxPopoverSide.Top][RdxPopoverAlign.Center])
175
- };
176
- if (sideOffset || alignOffset) {
177
- if ([RdxPopoverSide.Top, RdxPopoverSide.Bottom].includes(side)) {
178
- if (sideOffset) {
179
- position.offsetY = side === RdxPopoverSide.Top ? -sideOffset : sideOffset;
180
- }
181
- if (alignOffset) {
182
- position.offsetX = alignOffset;
183
- }
184
- }
185
- else {
186
- if (sideOffset) {
187
- position.offsetX = side === RdxPopoverSide.Left ? -sideOffset : sideOffset;
188
- }
189
- if (alignOffset) {
190
- position.offsetY = alignOffset;
191
- }
192
- }
193
- }
194
- return position;
195
- }
196
- function getArrowPositionParams(sideAndAlign, arrowWidthAndHeight, triggerWidthAndHeight) {
197
- const posParams = {
198
- top: '',
199
- left: '',
200
- transform: ''
201
- };
202
- if ([RdxPopoverSide.Top, RdxPopoverSide.Bottom].includes(sideAndAlign.side)) {
203
- if (sideAndAlign.side === RdxPopoverSide.Top) {
204
- posParams.top = '100%';
205
- }
206
- else {
207
- posParams.top = `-${arrowWidthAndHeight.height}px`;
208
- posParams.transform = `rotate(180deg)`;
209
- }
210
- if (sideAndAlign.align === RdxPopoverAlign.Start) {
211
- posParams.left = `${(triggerWidthAndHeight.width - arrowWidthAndHeight.width) / 2}px`;
212
- }
213
- else if (sideAndAlign.align === RdxPopoverAlign.Center) {
214
- posParams.left = `calc(50% - ${arrowWidthAndHeight.width / 2}px)`;
215
- }
216
- else if (sideAndAlign.align === RdxPopoverAlign.End) {
217
- posParams.left = `calc(100% - ${(triggerWidthAndHeight.width + arrowWidthAndHeight.width) / 2}px)`;
218
- }
219
- }
220
- else if ([RdxPopoverSide.Left, RdxPopoverSide.Right].includes(sideAndAlign.side)) {
221
- if (sideAndAlign.side === RdxPopoverSide.Left) {
222
- posParams.left = `100%`;
223
- posParams.transform = `rotate(-90deg) translate(0, -50%)`;
224
- }
225
- else {
226
- posParams.left = `-${arrowWidthAndHeight.width}px`;
227
- posParams.transform = `rotate(90deg) translate(0, -50%)`;
228
- }
229
- if (sideAndAlign.align === RdxPopoverAlign.Start) {
230
- posParams.top = `${(triggerWidthAndHeight.height - arrowWidthAndHeight.height) / 2}px`;
231
- }
232
- else if (sideAndAlign.align === RdxPopoverAlign.Center) {
233
- posParams.top = `calc(50% - ${arrowWidthAndHeight.height / 2}px)`;
234
- }
235
- else if (sideAndAlign.align === RdxPopoverAlign.End) {
236
- posParams.top = `calc(100% - ${(triggerWidthAndHeight.height + arrowWidthAndHeight.height) / 2}px)`;
237
- }
238
- }
239
- return posParams;
240
- }
241
-
242
42
  class RdxPopoverContentDirective {
243
43
  constructor() {
244
44
  /** @ignore */
@@ -257,7 +57,7 @@ class RdxPopoverContentDirective {
257
57
  * @description The preferred side of the trigger to render against when open. Will be reversed when collisions occur and avoidCollisions is enabled.
258
58
  * @default top
259
59
  */
260
- this.side = input(RdxPopoverSide.Top);
60
+ this.side = input(RdxPositionSide.Top);
261
61
  /**
262
62
  * @description The distance in pixels from the trigger.
263
63
  * @default undefined
@@ -267,7 +67,7 @@ class RdxPopoverContentDirective {
267
67
  * @description The preferred alignment against the trigger. May change when collisions occur.
268
68
  * @default center
269
69
  */
270
- this.align = input(RdxPopoverAlign.Center);
70
+ this.align = input(RdxPositionAlign.Center);
271
71
  /**
272
72
  * @description An offset in pixels from the "start" or "end" alignment options.
273
73
  * @default undefined
@@ -485,10 +285,10 @@ class RdxPopoverContentDirective {
485
285
  [input]: new SimpleChange(previousValue, currentValue, firstChange)
486
286
  });
487
287
  }
488
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
489
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxPopoverContentDirective, isStandalone: true, selector: "[rdxPopoverContent]", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, alignOffset: { classPropertyName: "alignOffset", publicName: "alignOffset", isSignal: true, isRequired: false, transformFunction: null }, alternatePositionsDisabled: { classPropertyName: "alternatePositionsDisabled", publicName: "alternatePositionsDisabled", isSignal: true, isRequired: false, transformFunction: null }, onOverlayEscapeKeyDownDisabled: { classPropertyName: "onOverlayEscapeKeyDownDisabled", publicName: "onOverlayEscapeKeyDownDisabled", isSignal: true, isRequired: false, transformFunction: null }, onOverlayOutsideClickDisabled: { classPropertyName: "onOverlayOutsideClickDisabled", publicName: "onOverlayOutsideClickDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onOverlayEscapeKeyDown: "onOverlayEscapeKeyDown", onOverlayOutsideClick: "onOverlayOutsideClick", onOpen: "onOpen", onClosed: "onClosed" }, hostDirectives: [{ directive: i1.CdkConnectedOverlay }], ngImport: i0 }); }
288
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
289
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.5", type: RdxPopoverContentDirective, isStandalone: true, selector: "[rdxPopoverContent]", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, alignOffset: { classPropertyName: "alignOffset", publicName: "alignOffset", isSignal: true, isRequired: false, transformFunction: null }, alternatePositionsDisabled: { classPropertyName: "alternatePositionsDisabled", publicName: "alternatePositionsDisabled", isSignal: true, isRequired: false, transformFunction: null }, onOverlayEscapeKeyDownDisabled: { classPropertyName: "onOverlayEscapeKeyDownDisabled", publicName: "onOverlayEscapeKeyDownDisabled", isSignal: true, isRequired: false, transformFunction: null }, onOverlayOutsideClickDisabled: { classPropertyName: "onOverlayOutsideClickDisabled", publicName: "onOverlayOutsideClickDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onOverlayEscapeKeyDown: "onOverlayEscapeKeyDown", onOverlayOutsideClick: "onOverlayOutsideClick", onOpen: "onOpen", onClosed: "onClosed" }, hostDirectives: [{ directive: i1.CdkConnectedOverlay }], ngImport: i0 }); }
490
290
  }
491
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverContentDirective, decorators: [{
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverContentDirective, decorators: [{
492
292
  type: Directive,
493
293
  args: [{
494
294
  selector: '[rdxPopoverContent]',
@@ -514,10 +314,10 @@ class RdxPopoverTriggerDirective {
514
314
  click() {
515
315
  this.popoverRoot.handleToggle();
516
316
  }
517
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
518
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxPopoverTriggerDirective, isStandalone: true, selector: "[rdxPopoverTrigger]", host: { attributes: { "type": "button" }, listeners: { "click": "click()" }, properties: { "attr.id": "name()", "attr.aria-haspopup": "\"dialog\"", "attr.aria-expanded": "popoverRoot.isOpen()", "attr.aria-controls": "popoverRoot.popoverContentDirective().name()", "attr.data-state": "popoverRoot.state()" } }, hostDirectives: [{ directive: i1.CdkOverlayOrigin }], ngImport: i0 }); }
317
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
318
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: RdxPopoverTriggerDirective, isStandalone: true, selector: "[rdxPopoverTrigger]", host: { attributes: { "type": "button" }, listeners: { "click": "click()" }, properties: { "attr.id": "name()", "attr.aria-haspopup": "\"dialog\"", "attr.aria-expanded": "popoverRoot.isOpen()", "attr.aria-controls": "popoverRoot.popoverContentDirective().name()", "attr.data-state": "popoverRoot.state()" } }, hostDirectives: [{ directive: i1.CdkOverlayOrigin }], ngImport: i0 }); }
519
319
  }
520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverTriggerDirective, decorators: [{
320
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverTriggerDirective, decorators: [{
521
321
  type: Directive,
522
322
  args: [{
523
323
  selector: '[rdxPopoverTrigger]',
@@ -543,11 +343,12 @@ function eventTypeAsPrimitiveConfigKey(eventType) {
543
343
  class RdxCdkEventService {
544
344
  #clickDomRootEventCallbacks;
545
345
  constructor() {
546
- this.document = inject(DOCUMENT);
346
+ this.document = injectDocument();
547
347
  this.destroyRef = inject(DestroyRef);
548
348
  this.ngZone = inject(NgZone);
549
349
  this.renderer2 = inject(Renderer2);
550
- this.onDestroyCallbacks = new Set([deleteRdxCdkEventServiceWindowKey]);
350
+ this.window = injectWindow();
351
+ this.onDestroyCallbacks = new Set([() => deleteRdxCdkEventServiceWindowKey(this.window)]);
551
352
  this.#clickDomRootEventCallbacks = new Set();
552
353
  this.#listenToClickDomRootEvent();
553
354
  this.#registerOnDestroyCallbacks();
@@ -655,21 +456,22 @@ class RdxCdkEventService {
655
456
  }
656
457
  this.onDestroyCallbacks.add(destroyClickDomRootEventListener);
657
458
  }
658
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxCdkEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
659
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxCdkEventService }); }
459
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxCdkEventService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
460
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxCdkEventService }); }
660
461
  }
661
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxCdkEventService, decorators: [{
462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxCdkEventService, decorators: [{
662
463
  type: Injectable
663
464
  }], ctorParameters: () => [] });
664
465
  const RdxCdkEventServiceToken = new InjectionToken('RdxCdkEventServiceToken');
665
466
  const existsErrorMessage = 'RdxCdkEventService should be provided only once!';
666
- const deleteRdxCdkEventServiceWindowKey = () => {
467
+ const deleteRdxCdkEventServiceWindowKey = (window) => {
667
468
  delete window[RdxCdkEventServiceWindowKey];
668
469
  };
669
470
  const getProvider = (throwWhenExists = true) => ({
670
471
  provide: RdxCdkEventServiceToken,
671
472
  useFactory: () => {
672
473
  isDevMode() && console.log('providing RdxCdkEventService...');
474
+ const window = injectWindow();
673
475
  if (window[RdxCdkEventServiceWindowKey]) {
674
476
  if (throwWhenExists) {
675
477
  throw Error(existsErrorMessage);
@@ -984,10 +786,10 @@ class RdxPopoverRootDirective {
984
786
  });
985
787
  });
986
788
  }
987
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
988
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "18.2.11", type: RdxPopoverRootDirective, isStandalone: true, selector: "[rdxPopoverRoot]", inputs: { anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, externalControl: { classPropertyName: "externalControl", publicName: "externalControl", isSignal: true, isRequired: false, transformFunction: null }, cssAnimation: { classPropertyName: "cssAnimation", publicName: "cssAnimation", isSignal: true, isRequired: false, transformFunction: null }, cssOpeningAnimation: { classPropertyName: "cssOpeningAnimation", publicName: "cssOpeningAnimation", isSignal: true, isRequired: false, transformFunction: null }, cssClosingAnimation: { classPropertyName: "cssClosingAnimation", publicName: "cssClosingAnimation", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "popoverContentDirective", first: true, predicate: RdxPopoverContentDirective, descendants: true, isSignal: true }, { propertyName: "popoverTriggerDirective", first: true, predicate: RdxPopoverTriggerDirective, descendants: true, isSignal: true }, { propertyName: "popoverArrowDirective", first: true, predicate: RdxPopoverArrowToken, descendants: true, isSignal: true }, { propertyName: "popoverCloseDirective", first: true, predicate: RdxPopoverCloseToken, descendants: true, isSignal: true }, { propertyName: "popoverContentAttributesComponent", first: true, predicate: RdxPopoverContentAttributesToken, descendants: true, isSignal: true }, { propertyName: "internalPopoverAnchorDirective", first: true, predicate: RdxPopoverAnchorToken, descendants: true, isSignal: true }], exportAs: ["rdxPopoverRoot"], ngImport: i0 }); }
789
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
790
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.0.5", type: RdxPopoverRootDirective, isStandalone: true, selector: "[rdxPopoverRoot]", inputs: { anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, externalControl: { classPropertyName: "externalControl", publicName: "externalControl", isSignal: true, isRequired: false, transformFunction: null }, cssAnimation: { classPropertyName: "cssAnimation", publicName: "cssAnimation", isSignal: true, isRequired: false, transformFunction: null }, cssOpeningAnimation: { classPropertyName: "cssOpeningAnimation", publicName: "cssOpeningAnimation", isSignal: true, isRequired: false, transformFunction: null }, cssClosingAnimation: { classPropertyName: "cssClosingAnimation", publicName: "cssClosingAnimation", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "popoverContentDirective", first: true, predicate: RdxPopoverContentDirective, descendants: true, isSignal: true }, { propertyName: "popoverTriggerDirective", first: true, predicate: RdxPopoverTriggerDirective, descendants: true, isSignal: true }, { propertyName: "popoverArrowDirective", first: true, predicate: RdxPopoverArrowToken, descendants: true, isSignal: true }, { propertyName: "popoverCloseDirective", first: true, predicate: RdxPopoverCloseToken, descendants: true, isSignal: true }, { propertyName: "popoverContentAttributesComponent", first: true, predicate: RdxPopoverContentAttributesToken, descendants: true, isSignal: true }, { propertyName: "internalPopoverAnchorDirective", first: true, predicate: RdxPopoverAnchorToken, descendants: true, isSignal: true }], exportAs: ["rdxPopoverRoot"], ngImport: i0 }); }
989
791
  }
990
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverRootDirective, decorators: [{
792
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverRootDirective, decorators: [{
991
793
  type: Directive,
992
794
  args: [{
993
795
  selector: '[rdxPopoverRoot]',
@@ -1014,7 +816,7 @@ class RdxPopoverAnchorDirective {
1014
816
  /** @ignore */
1015
817
  this.overlayOrigin = inject(CdkOverlayOrigin);
1016
818
  /** @ignore */
1017
- this.document = inject(DOCUMENT);
819
+ this.document = injectDocument();
1018
820
  /** @ignore */
1019
821
  this.name = computed(() => `rdx-popover-external-anchor-${this.popoverRoot?.uniqueId()}`);
1020
822
  }
@@ -1039,15 +841,15 @@ class RdxPopoverAnchorDirective {
1039
841
  });
1040
842
  this.popoverRoot?.popoverTriggerDirective().elementRef.nativeElement.dispatchEvent(clickEvent);
1041
843
  }
1042
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1043
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxPopoverAnchorDirective, isStandalone: true, selector: "[rdxPopoverAnchor]", host: { attributes: { "type": "button" }, listeners: { "click": "click()" }, properties: { "attr.id": "name()", "attr.aria-haspopup": "\"dialog\"" } }, providers: [
844
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverAnchorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
845
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: RdxPopoverAnchorDirective, isStandalone: true, selector: "[rdxPopoverAnchor]", host: { attributes: { "type": "button" }, listeners: { "click": "click()" }, properties: { "attr.id": "name()", "attr.aria-haspopup": "\"dialog\"" } }, providers: [
1044
846
  {
1045
847
  provide: RdxPopoverAnchorToken,
1046
848
  useExisting: forwardRef(() => RdxPopoverAnchorDirective)
1047
849
  }
1048
850
  ], exportAs: ["rdxPopoverAnchor"], hostDirectives: [{ directive: i1.CdkOverlayOrigin }], ngImport: i0 }); }
1049
851
  }
1050
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverAnchorDirective, decorators: [{
852
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverAnchorDirective, decorators: [{
1051
853
  type: Directive,
1052
854
  args: [{
1053
855
  selector: '[rdxPopoverAnchor]',
@@ -1105,25 +907,27 @@ class RdxPopoverArrowDirective {
1105
907
  this.currentArrowSvgElement = signal(void 0);
1106
908
  /** @ignore */
1107
909
  this.position = toSignal(this.popoverRoot.popoverContentDirective().positionChange());
910
+ afterNextRender({
911
+ write: () => {
912
+ if (this.elementRef.nativeElement.parentElement) {
913
+ this.renderer.setStyle(this.elementRef.nativeElement.parentElement, 'position', 'relative');
914
+ }
915
+ this.renderer.setStyle(this.elementRef.nativeElement, 'position', 'absolute');
916
+ this.renderer.setStyle(this.elementRef.nativeElement, 'boxSizing', '');
917
+ this.renderer.setStyle(this.elementRef.nativeElement, 'fontSize', '0px');
918
+ }
919
+ });
1108
920
  this.onArrowSvgElementChangeEffect();
1109
- this.onContentPositionChangeEffect();
921
+ this.onContentPositionAndArrowDimensionsChangeEffect();
1110
922
  }
1111
923
  /** @ignore */
1112
- ngAfterViewInit() {
1113
- if (this.elementRef.nativeElement.parentElement) {
1114
- this.renderer.setStyle(this.elementRef.nativeElement.parentElement, 'position', 'relative');
1115
- }
1116
- this.renderer.setStyle(this.elementRef.nativeElement, 'position', 'absolute');
1117
- this.renderer.setStyle(this.elementRef.nativeElement, 'boxSizing', '');
1118
- this.renderer.setStyle(this.elementRef.nativeElement, 'fontSize', '0px');
1119
- }
1120
924
  setAnchorOrTriggerRect() {
1121
925
  this.anchorOrTriggerRect = (this.popoverRoot.popoverAnchorDirective() ?? this.popoverRoot.popoverTriggerDirective()).elementRef.nativeElement.getBoundingClientRect();
1122
926
  }
1123
927
  /** @ignore */
1124
- setPosition(position) {
928
+ setPosition(position, arrowDimensions) {
1125
929
  this.setAnchorOrTriggerRect();
1126
- const posParams = getArrowPositionParams(getSideAndAlignFromAllPossibleConnectedPositions(position.connectionPair), { width: this.width(), height: this.height() }, { width: this.anchorOrTriggerRect.width, height: this.anchorOrTriggerRect.height });
930
+ const posParams = getArrowPositionParams(getSideAndAlignFromAllPossibleConnectedPositions(position.connectionPair), { width: arrowDimensions.width, height: arrowDimensions.height }, { width: this.anchorOrTriggerRect.width, height: this.anchorOrTriggerRect.height });
1127
931
  this.renderer.setStyle(this.elementRef.nativeElement, 'top', posParams.top);
1128
932
  this.renderer.setStyle(this.elementRef.nativeElement, 'bottom', '');
1129
933
  this.renderer.setStyle(this.elementRef.nativeElement, 'left', posParams.left);
@@ -1147,26 +951,27 @@ class RdxPopoverArrowDirective {
1147
951
  });
1148
952
  }
1149
953
  /** @ignore */
1150
- onContentPositionChangeEffect() {
954
+ onContentPositionAndArrowDimensionsChangeEffect() {
1151
955
  effect(() => {
1152
956
  const position = this.position();
957
+ const arrowDimensions = { width: this.width(), height: this.height() };
1153
958
  untracked(() => {
1154
959
  if (!position) {
1155
960
  return;
1156
961
  }
1157
- this.setPosition(position);
962
+ this.setPosition(position, arrowDimensions);
1158
963
  });
1159
964
  });
1160
965
  }
1161
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverArrowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1162
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxPopoverArrowDirective, isStandalone: true, selector: "[rdxPopoverArrow]", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
966
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverArrowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
967
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.5", type: RdxPopoverArrowDirective, isStandalone: true, selector: "[rdxPopoverArrow]", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
1163
968
  {
1164
969
  provide: RdxPopoverArrowToken,
1165
970
  useExisting: forwardRef(() => RdxPopoverArrowDirective)
1166
971
  }
1167
972
  ], ngImport: i0 }); }
1168
973
  }
1169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverArrowDirective, decorators: [{
974
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverArrowDirective, decorators: [{
1170
975
  type: Directive,
1171
976
  args: [{
1172
977
  selector: '[rdxPopoverArrow]',
@@ -1199,15 +1004,15 @@ class RdxPopoverCloseDirective {
1199
1004
  });
1200
1005
  });
1201
1006
  }
1202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1203
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxPopoverCloseDirective, isStandalone: true, selector: "[rdxPopoverClose]", host: { attributes: { "type": "button" }, listeners: { "click": "popoverRoot.handleClose()" } }, providers: [
1007
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1008
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: RdxPopoverCloseDirective, isStandalone: true, selector: "[rdxPopoverClose]", host: { attributes: { "type": "button" }, listeners: { "click": "popoverRoot.handleClose()" } }, providers: [
1204
1009
  {
1205
1010
  provide: RdxPopoverCloseToken,
1206
1011
  useExisting: forwardRef(() => RdxPopoverCloseDirective)
1207
1012
  }
1208
1013
  ], ngImport: i0 }); }
1209
1014
  }
1210
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverCloseDirective, decorators: [{
1015
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverCloseDirective, decorators: [{
1211
1016
  type: Directive,
1212
1017
  args: [{
1213
1018
  selector: '[rdxPopoverClose]',
@@ -1252,8 +1057,8 @@ class RdxPopoverContentAttributesComponent {
1252
1057
  ((this.popoverRoot.cssOpeningAnimation() && this.popoverRoot.state() === RdxPopoverState.OPEN) ||
1253
1058
  (this.popoverRoot.cssClosingAnimation() && this.popoverRoot.state() === RdxPopoverState.CLOSED)));
1254
1059
  }
1255
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverContentAttributesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1256
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: RdxPopoverContentAttributesComponent, isStandalone: true, selector: "[rdxPopoverContentAttributes]", host: { listeners: { "animationstart": "onAnimationStart($event)", "animationend": "onAnimationEnd($event)" }, properties: { "attr.role": "\"dialog\"", "attr.id": "name()", "attr.data-state": "popoverRoot.state()", "attr.data-side": "popoverRoot.popoverContentDirective().side()", "attr.data-align": "popoverRoot.popoverContentDirective().align()", "style": "disableAnimation() ? {animation: \"none !important\"} : null" } }, providers: [
1060
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverContentAttributesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1061
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: RdxPopoverContentAttributesComponent, isStandalone: true, selector: "[rdxPopoverContentAttributes]", host: { listeners: { "animationstart": "onAnimationStart($event)", "animationend": "onAnimationEnd($event)" }, properties: { "attr.role": "\"dialog\"", "attr.id": "name()", "attr.data-state": "popoverRoot.state()", "attr.data-side": "popoverRoot.popoverContentDirective().side()", "attr.data-align": "popoverRoot.popoverContentDirective().align()", "style": "disableAnimation() ? {animation: \"none !important\"} : null" } }, providers: [
1257
1062
  {
1258
1063
  provide: RdxPopoverContentAttributesToken,
1259
1064
  useExisting: forwardRef(() => RdxPopoverContentAttributesComponent)
@@ -1262,7 +1067,7 @@ class RdxPopoverContentAttributesComponent {
1262
1067
  <ng-content />
1263
1068
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1264
1069
  }
1265
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverContentAttributesComponent, decorators: [{
1070
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverContentAttributesComponent, decorators: [{
1266
1071
  type: Component,
1267
1072
  args: [{
1268
1073
  selector: '[rdxPopoverContentAttributes]',
@@ -1300,8 +1105,8 @@ const _imports = [
1300
1105
  RdxPopoverContentAttributesComponent
1301
1106
  ];
1302
1107
  class RdxPopoverModule {
1303
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1304
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverModule, imports: [RdxPopoverArrowDirective,
1108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1109
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverModule, imports: [RdxPopoverArrowDirective,
1305
1110
  RdxPopoverCloseDirective,
1306
1111
  RdxPopoverContentDirective,
1307
1112
  RdxPopoverTriggerDirective,
@@ -1314,9 +1119,9 @@ class RdxPopoverModule {
1314
1119
  RdxPopoverRootDirective,
1315
1120
  RdxPopoverAnchorDirective,
1316
1121
  RdxPopoverContentAttributesComponent] }); }
1317
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverModule }); }
1122
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverModule }); }
1318
1123
  }
1319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxPopoverModule, decorators: [{
1124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: RdxPopoverModule, decorators: [{
1320
1125
  type: NgModule,
1321
1126
  args: [{
1322
1127
  imports: [..._imports],
@@ -1328,5 +1133,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImpo
1328
1133
  * Generated bundle index. Do not edit.
1329
1134
  */
1330
1135
 
1331
- export { RdxPopoverAlign, RdxPopoverAnchorDirective, RdxPopoverAnimationStatus, RdxPopoverArrowDirective, RdxPopoverAttachDetachEvent, RdxPopoverCloseDirective, RdxPopoverContentAttributesComponent, RdxPopoverContentDirective, RdxPopoverModule, RdxPopoverRootDirective, RdxPopoverSide, RdxPopoverState, RdxPopoverTriggerDirective };
1136
+ export { RdxPopoverAnchorDirective, RdxPopoverArrowDirective, RdxPopoverCloseDirective, RdxPopoverContentAttributesComponent, RdxPopoverContentDirective, RdxPopoverModule, RdxPopoverRootDirective, RdxPopoverTriggerDirective };
1332
1137
  //# sourceMappingURL=radix-ng-primitives-popover.mjs.map