@raintonic/formaui 0.2.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 (240) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +145 -0
  3. package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs +806 -0
  4. package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs.map +1 -0
  5. package/fesm2022/raintonic-formaui-cdk-form-field.mjs +86 -0
  6. package/fesm2022/raintonic-formaui-cdk-form-field.mjs.map +1 -0
  7. package/fesm2022/raintonic-formaui-cdk-overlay.mjs +1757 -0
  8. package/fesm2022/raintonic-formaui-cdk-overlay.mjs.map +1 -0
  9. package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs +287 -0
  10. package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs.map +1 -0
  11. package/fesm2022/raintonic-formaui-components-accordion.mjs +217 -0
  12. package/fesm2022/raintonic-formaui-components-accordion.mjs.map +1 -0
  13. package/fesm2022/raintonic-formaui-components-alert.mjs +161 -0
  14. package/fesm2022/raintonic-formaui-components-alert.mjs.map +1 -0
  15. package/fesm2022/raintonic-formaui-components-autocomplete.mjs +726 -0
  16. package/fesm2022/raintonic-formaui-components-autocomplete.mjs.map +1 -0
  17. package/fesm2022/raintonic-formaui-components-avatar.mjs +92 -0
  18. package/fesm2022/raintonic-formaui-components-avatar.mjs.map +1 -0
  19. package/fesm2022/raintonic-formaui-components-badge.mjs +107 -0
  20. package/fesm2022/raintonic-formaui-components-badge.mjs.map +1 -0
  21. package/fesm2022/raintonic-formaui-components-big-menu.mjs +68 -0
  22. package/fesm2022/raintonic-formaui-components-big-menu.mjs.map +1 -0
  23. package/fesm2022/raintonic-formaui-components-breadcrumb.mjs +55 -0
  24. package/fesm2022/raintonic-formaui-components-breadcrumb.mjs.map +1 -0
  25. package/fesm2022/raintonic-formaui-components-button-group.mjs +103 -0
  26. package/fesm2022/raintonic-formaui-components-button-group.mjs.map +1 -0
  27. package/fesm2022/raintonic-formaui-components-button.mjs +241 -0
  28. package/fesm2022/raintonic-formaui-components-button.mjs.map +1 -0
  29. package/fesm2022/raintonic-formaui-components-card.mjs +270 -0
  30. package/fesm2022/raintonic-formaui-components-card.mjs.map +1 -0
  31. package/fesm2022/raintonic-formaui-components-checkbox.mjs +295 -0
  32. package/fesm2022/raintonic-formaui-components-checkbox.mjs.map +1 -0
  33. package/fesm2022/raintonic-formaui-components-data-table.mjs +631 -0
  34. package/fesm2022/raintonic-formaui-components-data-table.mjs.map +1 -0
  35. package/fesm2022/raintonic-formaui-components-date-picker.mjs +1331 -0
  36. package/fesm2022/raintonic-formaui-components-date-picker.mjs.map +1 -0
  37. package/fesm2022/raintonic-formaui-components-divider.mjs +41 -0
  38. package/fesm2022/raintonic-formaui-components-divider.mjs.map +1 -0
  39. package/fesm2022/raintonic-formaui-components-drawer.mjs +190 -0
  40. package/fesm2022/raintonic-formaui-components-drawer.mjs.map +1 -0
  41. package/fesm2022/raintonic-formaui-components-dynamic-form.mjs +266 -0
  42. package/fesm2022/raintonic-formaui-components-dynamic-form.mjs.map +1 -0
  43. package/fesm2022/raintonic-formaui-components-empty-state.mjs +33 -0
  44. package/fesm2022/raintonic-formaui-components-empty-state.mjs.map +1 -0
  45. package/fesm2022/raintonic-formaui-components-file-upload.mjs +246 -0
  46. package/fesm2022/raintonic-formaui-components-file-upload.mjs.map +1 -0
  47. package/fesm2022/raintonic-formaui-components-form-field.mjs +482 -0
  48. package/fesm2022/raintonic-formaui-components-form-field.mjs.map +1 -0
  49. package/fesm2022/raintonic-formaui-components-icon.mjs +117 -0
  50. package/fesm2022/raintonic-formaui-components-icon.mjs.map +1 -0
  51. package/fesm2022/raintonic-formaui-components-input.mjs +327 -0
  52. package/fesm2022/raintonic-formaui-components-input.mjs.map +1 -0
  53. package/fesm2022/raintonic-formaui-components-list.mjs +149 -0
  54. package/fesm2022/raintonic-formaui-components-list.mjs.map +1 -0
  55. package/fesm2022/raintonic-formaui-components-menu.mjs +896 -0
  56. package/fesm2022/raintonic-formaui-components-menu.mjs.map +1 -0
  57. package/fesm2022/raintonic-formaui-components-number-input.mjs +345 -0
  58. package/fesm2022/raintonic-formaui-components-number-input.mjs.map +1 -0
  59. package/fesm2022/raintonic-formaui-components-paginator.mjs +139 -0
  60. package/fesm2022/raintonic-formaui-components-paginator.mjs.map +1 -0
  61. package/fesm2022/raintonic-formaui-components-password-input.mjs +306 -0
  62. package/fesm2022/raintonic-formaui-components-password-input.mjs.map +1 -0
  63. package/fesm2022/raintonic-formaui-components-popover.mjs +451 -0
  64. package/fesm2022/raintonic-formaui-components-popover.mjs.map +1 -0
  65. package/fesm2022/raintonic-formaui-components-progressbar.mjs +148 -0
  66. package/fesm2022/raintonic-formaui-components-progressbar.mjs.map +1 -0
  67. package/fesm2022/raintonic-formaui-components-radio.mjs +260 -0
  68. package/fesm2022/raintonic-formaui-components-radio.mjs.map +1 -0
  69. package/fesm2022/raintonic-formaui-components-select.mjs +1011 -0
  70. package/fesm2022/raintonic-formaui-components-select.mjs.map +1 -0
  71. package/fesm2022/raintonic-formaui-components-side-panel.mjs +150 -0
  72. package/fesm2022/raintonic-formaui-components-side-panel.mjs.map +1 -0
  73. package/fesm2022/raintonic-formaui-components-sidebar.mjs +257 -0
  74. package/fesm2022/raintonic-formaui-components-sidebar.mjs.map +1 -0
  75. package/fesm2022/raintonic-formaui-components-skeleton.mjs +50 -0
  76. package/fesm2022/raintonic-formaui-components-skeleton.mjs.map +1 -0
  77. package/fesm2022/raintonic-formaui-components-slider.mjs +347 -0
  78. package/fesm2022/raintonic-formaui-components-slider.mjs.map +1 -0
  79. package/fesm2022/raintonic-formaui-components-spinner.mjs +63 -0
  80. package/fesm2022/raintonic-formaui-components-spinner.mjs.map +1 -0
  81. package/fesm2022/raintonic-formaui-components-stepper.mjs +317 -0
  82. package/fesm2022/raintonic-formaui-components-stepper.mjs.map +1 -0
  83. package/fesm2022/raintonic-formaui-components-tab.mjs +197 -0
  84. package/fesm2022/raintonic-formaui-components-tab.mjs.map +1 -0
  85. package/fesm2022/raintonic-formaui-components-tag.mjs +78 -0
  86. package/fesm2022/raintonic-formaui-components-tag.mjs.map +1 -0
  87. package/fesm2022/raintonic-formaui-components-time-picker.mjs +644 -0
  88. package/fesm2022/raintonic-formaui-components-time-picker.mjs.map +1 -0
  89. package/fesm2022/raintonic-formaui-components-toggle.mjs +171 -0
  90. package/fesm2022/raintonic-formaui-components-toggle.mjs.map +1 -0
  91. package/fesm2022/raintonic-formaui-components-toolbar.mjs +140 -0
  92. package/fesm2022/raintonic-formaui-components-toolbar.mjs.map +1 -0
  93. package/fesm2022/raintonic-formaui-components-tooltip.mjs +555 -0
  94. package/fesm2022/raintonic-formaui-components-tooltip.mjs.map +1 -0
  95. package/fesm2022/raintonic-formaui-components-tree-select.mjs +314 -0
  96. package/fesm2022/raintonic-formaui-components-tree-select.mjs.map +1 -0
  97. package/fesm2022/raintonic-formaui-components-tree-table.mjs +103 -0
  98. package/fesm2022/raintonic-formaui-components-tree-table.mjs.map +1 -0
  99. package/fesm2022/raintonic-formaui-components-tree.mjs +430 -0
  100. package/fesm2022/raintonic-formaui-components-tree.mjs.map +1 -0
  101. package/fesm2022/raintonic-formaui-core.mjs +62 -0
  102. package/fesm2022/raintonic-formaui-core.mjs.map +1 -0
  103. package/fesm2022/raintonic-formaui-services-dialog.mjs +798 -0
  104. package/fesm2022/raintonic-formaui-services-dialog.mjs.map +1 -0
  105. package/fesm2022/raintonic-formaui-services-notification.mjs +391 -0
  106. package/fesm2022/raintonic-formaui-services-notification.mjs.map +1 -0
  107. package/fesm2022/raintonic-formaui-services-theme.mjs +248 -0
  108. package/fesm2022/raintonic-formaui-services-theme.mjs.map +1 -0
  109. package/fesm2022/raintonic-formaui-test-utils.mjs +66 -0
  110. package/fesm2022/raintonic-formaui-test-utils.mjs.map +1 -0
  111. package/fesm2022/raintonic-formaui.mjs +15 -0
  112. package/fesm2022/raintonic-formaui.mjs.map +1 -0
  113. package/llms-full.txt +1627 -0
  114. package/llms.txt +60 -0
  115. package/package.json +251 -0
  116. package/styles/_fonts-entry.scss +3 -0
  117. package/styles/fonts/dm-mono-400-latin.woff2 +0 -0
  118. package/styles/fonts/inter-tight-latin-italic.woff2 +0 -0
  119. package/styles/fonts/inter-tight-latin.woff2 +0 -0
  120. package/styles/index.scss +127 -0
  121. package/styles/partials/_constants.scss +29 -0
  122. package/styles/partials/_fonts.scss +36 -0
  123. package/styles/partials/_grid.scss +171 -0
  124. package/styles/partials/_mixins.scss +145 -0
  125. package/styles/partials/_motion.scss +252 -0
  126. package/styles/partials/_theme.scss +275 -0
  127. package/styles/partials/_typography.scss +112 -0
  128. package/styles/partials/_utilities.scss +480 -0
  129. package/styles/partials/themes/_dark.scss +254 -0
  130. package/styles/partials/themes/_light.scss +254 -0
  131. package/types/raintonic-formaui-cdk-drag-drop.d.ts +196 -0
  132. package/types/raintonic-formaui-cdk-drag-drop.d.ts.map +1 -0
  133. package/types/raintonic-formaui-cdk-form-field.d.ts +62 -0
  134. package/types/raintonic-formaui-cdk-form-field.d.ts.map +1 -0
  135. package/types/raintonic-formaui-cdk-overlay.d.ts +843 -0
  136. package/types/raintonic-formaui-cdk-overlay.d.ts.map +1 -0
  137. package/types/raintonic-formaui-cdk-virtual-scroll.d.ts +112 -0
  138. package/types/raintonic-formaui-cdk-virtual-scroll.d.ts.map +1 -0
  139. package/types/raintonic-formaui-components-accordion.d.ts +124 -0
  140. package/types/raintonic-formaui-components-accordion.d.ts.map +1 -0
  141. package/types/raintonic-formaui-components-alert.d.ts +143 -0
  142. package/types/raintonic-formaui-components-alert.d.ts.map +1 -0
  143. package/types/raintonic-formaui-components-autocomplete.d.ts +193 -0
  144. package/types/raintonic-formaui-components-autocomplete.d.ts.map +1 -0
  145. package/types/raintonic-formaui-components-avatar.d.ts +52 -0
  146. package/types/raintonic-formaui-components-avatar.d.ts.map +1 -0
  147. package/types/raintonic-formaui-components-badge.d.ts +47 -0
  148. package/types/raintonic-formaui-components-badge.d.ts.map +1 -0
  149. package/types/raintonic-formaui-components-big-menu.d.ts +62 -0
  150. package/types/raintonic-formaui-components-big-menu.d.ts.map +1 -0
  151. package/types/raintonic-formaui-components-breadcrumb.d.ts +26 -0
  152. package/types/raintonic-formaui-components-breadcrumb.d.ts.map +1 -0
  153. package/types/raintonic-formaui-components-button-group.d.ts +61 -0
  154. package/types/raintonic-formaui-components-button-group.d.ts.map +1 -0
  155. package/types/raintonic-formaui-components-button.d.ts +116 -0
  156. package/types/raintonic-formaui-components-button.d.ts.map +1 -0
  157. package/types/raintonic-formaui-components-card.d.ts +191 -0
  158. package/types/raintonic-formaui-components-card.d.ts.map +1 -0
  159. package/types/raintonic-formaui-components-checkbox.d.ts +132 -0
  160. package/types/raintonic-formaui-components-checkbox.d.ts.map +1 -0
  161. package/types/raintonic-formaui-components-data-table.d.ts +368 -0
  162. package/types/raintonic-formaui-components-data-table.d.ts.map +1 -0
  163. package/types/raintonic-formaui-components-date-picker.d.ts +341 -0
  164. package/types/raintonic-formaui-components-date-picker.d.ts.map +1 -0
  165. package/types/raintonic-formaui-components-divider.d.ts +21 -0
  166. package/types/raintonic-formaui-components-divider.d.ts.map +1 -0
  167. package/types/raintonic-formaui-components-drawer.d.ts +48 -0
  168. package/types/raintonic-formaui-components-drawer.d.ts.map +1 -0
  169. package/types/raintonic-formaui-components-dynamic-form.d.ts +412 -0
  170. package/types/raintonic-formaui-components-dynamic-form.d.ts.map +1 -0
  171. package/types/raintonic-formaui-components-empty-state.d.ts +14 -0
  172. package/types/raintonic-formaui-components-empty-state.d.ts.map +1 -0
  173. package/types/raintonic-formaui-components-file-upload.d.ts +77 -0
  174. package/types/raintonic-formaui-components-file-upload.d.ts.map +1 -0
  175. package/types/raintonic-formaui-components-form-field.d.ts +271 -0
  176. package/types/raintonic-formaui-components-form-field.d.ts.map +1 -0
  177. package/types/raintonic-formaui-components-icon.d.ts +61 -0
  178. package/types/raintonic-formaui-components-icon.d.ts.map +1 -0
  179. package/types/raintonic-formaui-components-input.d.ts +149 -0
  180. package/types/raintonic-formaui-components-input.d.ts.map +1 -0
  181. package/types/raintonic-formaui-components-list.d.ts +48 -0
  182. package/types/raintonic-formaui-components-list.d.ts.map +1 -0
  183. package/types/raintonic-formaui-components-menu.d.ts +403 -0
  184. package/types/raintonic-formaui-components-menu.d.ts.map +1 -0
  185. package/types/raintonic-formaui-components-number-input.d.ts +127 -0
  186. package/types/raintonic-formaui-components-number-input.d.ts.map +1 -0
  187. package/types/raintonic-formaui-components-paginator.d.ts +37 -0
  188. package/types/raintonic-formaui-components-paginator.d.ts.map +1 -0
  189. package/types/raintonic-formaui-components-password-input.d.ts +111 -0
  190. package/types/raintonic-formaui-components-password-input.d.ts.map +1 -0
  191. package/types/raintonic-formaui-components-popover.d.ts +131 -0
  192. package/types/raintonic-formaui-components-popover.d.ts.map +1 -0
  193. package/types/raintonic-formaui-components-progressbar.d.ts +111 -0
  194. package/types/raintonic-formaui-components-progressbar.d.ts.map +1 -0
  195. package/types/raintonic-formaui-components-radio.d.ts +95 -0
  196. package/types/raintonic-formaui-components-radio.d.ts.map +1 -0
  197. package/types/raintonic-formaui-components-select.d.ts +307 -0
  198. package/types/raintonic-formaui-components-select.d.ts.map +1 -0
  199. package/types/raintonic-formaui-components-side-panel.d.ts +51 -0
  200. package/types/raintonic-formaui-components-side-panel.d.ts.map +1 -0
  201. package/types/raintonic-formaui-components-sidebar.d.ts +174 -0
  202. package/types/raintonic-formaui-components-sidebar.d.ts.map +1 -0
  203. package/types/raintonic-formaui-components-skeleton.d.ts +20 -0
  204. package/types/raintonic-formaui-components-skeleton.d.ts.map +1 -0
  205. package/types/raintonic-formaui-components-slider.d.ts +108 -0
  206. package/types/raintonic-formaui-components-slider.d.ts.map +1 -0
  207. package/types/raintonic-formaui-components-spinner.d.ts +42 -0
  208. package/types/raintonic-formaui-components-spinner.d.ts.map +1 -0
  209. package/types/raintonic-formaui-components-stepper.d.ts +126 -0
  210. package/types/raintonic-formaui-components-stepper.d.ts.map +1 -0
  211. package/types/raintonic-formaui-components-tab.d.ts +96 -0
  212. package/types/raintonic-formaui-components-tab.d.ts.map +1 -0
  213. package/types/raintonic-formaui-components-tag.d.ts +34 -0
  214. package/types/raintonic-formaui-components-tag.d.ts.map +1 -0
  215. package/types/raintonic-formaui-components-time-picker.d.ts +172 -0
  216. package/types/raintonic-formaui-components-time-picker.d.ts.map +1 -0
  217. package/types/raintonic-formaui-components-toggle.d.ts +70 -0
  218. package/types/raintonic-formaui-components-toggle.d.ts.map +1 -0
  219. package/types/raintonic-formaui-components-toolbar.d.ts +128 -0
  220. package/types/raintonic-formaui-components-toolbar.d.ts.map +1 -0
  221. package/types/raintonic-formaui-components-tooltip.d.ts +268 -0
  222. package/types/raintonic-formaui-components-tooltip.d.ts.map +1 -0
  223. package/types/raintonic-formaui-components-tree-select.d.ts +80 -0
  224. package/types/raintonic-formaui-components-tree-select.d.ts.map +1 -0
  225. package/types/raintonic-formaui-components-tree-table.d.ts +90 -0
  226. package/types/raintonic-formaui-components-tree-table.d.ts.map +1 -0
  227. package/types/raintonic-formaui-components-tree.d.ts +104 -0
  228. package/types/raintonic-formaui-components-tree.d.ts.map +1 -0
  229. package/types/raintonic-formaui-core.d.ts +115 -0
  230. package/types/raintonic-formaui-core.d.ts.map +1 -0
  231. package/types/raintonic-formaui-services-dialog.d.ts +451 -0
  232. package/types/raintonic-formaui-services-dialog.d.ts.map +1 -0
  233. package/types/raintonic-formaui-services-notification.d.ts +221 -0
  234. package/types/raintonic-formaui-services-notification.d.ts.map +1 -0
  235. package/types/raintonic-formaui-services-theme.d.ts +126 -0
  236. package/types/raintonic-formaui-services-theme.d.ts.map +1 -0
  237. package/types/raintonic-formaui-test-utils.d.ts +24 -0
  238. package/types/raintonic-formaui-test-utils.d.ts.map +1 -0
  239. package/types/raintonic-formaui.d.ts +4 -0
  240. package/types/raintonic-formaui.d.ts.map +1 -0
@@ -0,0 +1,451 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, numberAttribute, booleanAttribute, output, signal, inject, ElementRef, effect, HostListener, Directive } from '@angular/core';
3
+ import { FuiOverlayService } from '@raintonic/formaui/cdk/overlay';
4
+
5
+ /**
6
+ * # FuiPopoverComponent
7
+ *
8
+ * Internal popover container component rendered inside the overlay.
9
+ * Provides a styled panel with optional arrow indicator.
10
+ *
11
+ * ## Usage
12
+ * This component is not used directly. Use the `[fuiPopoverTrigger]` directive instead.
13
+ */
14
+ class FuiPopoverComponent {
15
+ /** Whether to show the arrow indicator */
16
+ hasArrow = input(true, ...(ngDevMode ? [{ debugName: "hasArrow" }] : /* istanbul ignore next */ []));
17
+ /** Position of the popover relative to the trigger element, used for arrow calculation */
18
+ position = input('bottom', ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
19
+ /** Computed CSS classes for the popover */
20
+ computedClasses = computed(() => {
21
+ const classes = ['fui-popover', `fui-popover--${this.position()}`];
22
+ if (this.hasArrow()) {
23
+ classes.push('fui-popover--with-arrow');
24
+ }
25
+ return classes.join(' ');
26
+ }, ...(ngDevMode ? [{ debugName: "computedClasses" }] : /* istanbul ignore next */ []));
27
+ /** Computed arrow classes based on position */
28
+ arrowClasses = computed(() => {
29
+ const position = this.position();
30
+ const baseClass = 'fui-popover__arrow';
31
+ if (position.startsWith('top')) {
32
+ return `${baseClass} ${baseClass}--bottom`;
33
+ }
34
+ else if (position.startsWith('bottom')) {
35
+ return `${baseClass} ${baseClass}--top`;
36
+ }
37
+ else if (position.startsWith('left')) {
38
+ return `${baseClass} ${baseClass}--right`;
39
+ }
40
+ else if (position.startsWith('right')) {
41
+ return `${baseClass} ${baseClass}--left`;
42
+ }
43
+ return baseClass;
44
+ }, ...(ngDevMode ? [{ debugName: "arrowClasses" }] : /* istanbul ignore next */ []));
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
46
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: FuiPopoverComponent, isStandalone: true, selector: "fui-popover", inputs: { hasArrow: { classPropertyName: "hasArrow", publicName: "hasArrow", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "computedClasses()" }, classAttribute: "fui-popover" }, ngImport: i0, template: "<div class=\"fui-popover__panel\" role=\"dialog\">\n @if (hasArrow()) {\n <div class=\"fui-popover__arrow\" [class]=\"arrowClasses()\"></div>\n }\n <div class=\"fui-popover__content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: ["@keyframes fui-skeleton-pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes fui-spin{to{transform:rotate(360deg)}}@keyframes fui-shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-2px)}20%,40%,60%,80%{transform:translate(2px)}}.fui-motion-fade-in{transition:opacity var(--fui-duration-fast-02) var(--fui-ease-entrance) 0ms}.fui-motion-fade-out{transition:opacity var(--fui-duration-fast-01) var(--fui-ease-exit) 0ms}.fui-motion-slide-in-bottom{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-bottom.fui-motion-entering{transform:translateY(1rem)}.fui-motion-slide-in-top{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-top.fui-motion-entering{transform:translateY(-1rem)}.fui-motion-scale-in{transition:transform,opacity var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:scale(1);opacity:1}.fui-motion-scale-in.fui-motion-entering{transform:scale(.95);opacity:0}.fui-no-motion{transition:none!important;animation:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@keyframes fui-pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}@keyframes fui-slide-in{0%{transform:translate(120%)}to{transform:translate(0)}}.fui-slide-in{animation:fui-slide-in var(--fui-duration-moderate-01) var(--fui-ease-entrance)}::ng-deep .fui-popover{--fui-popover-border-radius: var(--fui-border-radius-md);--fui-popover-shadow: var(--fui-shadow-03);--fui-popover-padding: var(--fui-spacing-04);--fui-popover-background: var(--fui-surface-card);--fui-popover-border-color: var(--fui-border-color);--fui-popover-text-color: var(--fui-text-primary);z-index:var(--fui-z-popover, 1050);display:block;font-family:var(--fui-font-family-sans);font-weight:var(--fui-font-weight-regular);line-height:var(--fui-line-height-body);color:var(--fui-popover-text-color);opacity:0;animation:fui-popover-fade-in var(--fui-duration-fast-02) var(--fui-ease-entrance) forwards}::ng-deep .fui-popover__panel{position:relative;background-color:var(--fui-popover-background);border:1px solid var(--fui-popover-border-color);border-radius:var(--fui-popover-border-radius);box-shadow:var(--fui-popover-shadow)}::ng-deep .fui-popover__content{padding:var(--fui-popover-padding)}::ng-deep .fui-popover__arrow{position:absolute;width:0;height:0;border-style:solid;border-color:transparent;--arrow-size: 6px}::ng-deep .fui-popover__arrow--top{bottom:100%;left:50%;transform:translate(-50%);border-width:0 var(--arrow-size) var(--arrow-size) var(--arrow-size);border-bottom-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--top:before{content:\"\";position:absolute;bottom:-1px;left:50%;transform:translate(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:0 calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px);border-bottom-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover__arrow--bottom{top:100%;left:50%;transform:translate(-50%);border-width:var(--arrow-size) var(--arrow-size) 0 var(--arrow-size);border-top-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--bottom:before{content:\"\";position:absolute;top:-1px;left:50%;transform:translate(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) 0 calc(var(--arrow-size) + 1px);border-top-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover__arrow--left{right:100%;top:50%;transform:translateY(-50%);border-width:var(--arrow-size) var(--arrow-size) var(--arrow-size) 0;border-right-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--left:before{content:\"\";position:absolute;right:-1px;top:50%;transform:translateY(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) 0;border-right-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover__arrow--right{left:100%;top:50%;transform:translateY(-50%);border-width:var(--arrow-size) 0 var(--arrow-size) var(--arrow-size);border-left-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--right:before{content:\"\";position:absolute;left:-1px;top:50%;transform:translateY(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:calc(var(--arrow-size) + 1px) 0 calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px);border-left-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover--top-start .fui-popover__arrow,::ng-deep .fui-popover--bottom-start .fui-popover__arrow{left:var(--fui-spacing-04);transform:none}::ng-deep .fui-popover--top-end .fui-popover__arrow,::ng-deep .fui-popover--bottom-end .fui-popover__arrow{right:var(--fui-spacing-04);left:auto;transform:none}::ng-deep .fui-popover--left-start .fui-popover__arrow,::ng-deep .fui-popover--right-start .fui-popover__arrow{top:var(--fui-spacing-04);transform:none}::ng-deep .fui-popover--left-end .fui-popover__arrow,::ng-deep .fui-popover--right-end .fui-popover__arrow{bottom:var(--fui-spacing-04);top:auto;transform:none}@media(prefers-contrast:more){::ng-deep .fui-popover .fui-popover__panel{border:2px solid var(--fui-text-primary);box-shadow:var(--fui-shadow-04)}}@media(prefers-reduced-motion:reduce){::ng-deep .fui-popover{animation:none;opacity:1}}@media print{::ng-deep .fui-popover{display:none!important}}@keyframes fui-popover-fade-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiPopoverComponent, decorators: [{
49
+ type: Component,
50
+ args: [{ selector: 'fui-popover', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
51
+ class: 'fui-popover',
52
+ '[class]': 'computedClasses()',
53
+ }, template: "<div class=\"fui-popover__panel\" role=\"dialog\">\n @if (hasArrow()) {\n <div class=\"fui-popover__arrow\" [class]=\"arrowClasses()\"></div>\n }\n <div class=\"fui-popover__content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: ["@keyframes fui-skeleton-pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes fui-spin{to{transform:rotate(360deg)}}@keyframes fui-shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-2px)}20%,40%,60%,80%{transform:translate(2px)}}.fui-motion-fade-in{transition:opacity var(--fui-duration-fast-02) var(--fui-ease-entrance) 0ms}.fui-motion-fade-out{transition:opacity var(--fui-duration-fast-01) var(--fui-ease-exit) 0ms}.fui-motion-slide-in-bottom{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-bottom.fui-motion-entering{transform:translateY(1rem)}.fui-motion-slide-in-top{transition:transform var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:translateY(0)}.fui-motion-slide-in-top.fui-motion-entering{transform:translateY(-1rem)}.fui-motion-scale-in{transition:transform,opacity var(--fui-duration-moderate-01) var(--fui-ease-entrance) 0ms;transform:scale(1);opacity:1}.fui-motion-scale-in.fui-motion-entering{transform:scale(.95);opacity:0}.fui-no-motion{transition:none!important;animation:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@keyframes fui-pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}@keyframes fui-slide-in{0%{transform:translate(120%)}to{transform:translate(0)}}.fui-slide-in{animation:fui-slide-in var(--fui-duration-moderate-01) var(--fui-ease-entrance)}::ng-deep .fui-popover{--fui-popover-border-radius: var(--fui-border-radius-md);--fui-popover-shadow: var(--fui-shadow-03);--fui-popover-padding: var(--fui-spacing-04);--fui-popover-background: var(--fui-surface-card);--fui-popover-border-color: var(--fui-border-color);--fui-popover-text-color: var(--fui-text-primary);z-index:var(--fui-z-popover, 1050);display:block;font-family:var(--fui-font-family-sans);font-weight:var(--fui-font-weight-regular);line-height:var(--fui-line-height-body);color:var(--fui-popover-text-color);opacity:0;animation:fui-popover-fade-in var(--fui-duration-fast-02) var(--fui-ease-entrance) forwards}::ng-deep .fui-popover__panel{position:relative;background-color:var(--fui-popover-background);border:1px solid var(--fui-popover-border-color);border-radius:var(--fui-popover-border-radius);box-shadow:var(--fui-popover-shadow)}::ng-deep .fui-popover__content{padding:var(--fui-popover-padding)}::ng-deep .fui-popover__arrow{position:absolute;width:0;height:0;border-style:solid;border-color:transparent;--arrow-size: 6px}::ng-deep .fui-popover__arrow--top{bottom:100%;left:50%;transform:translate(-50%);border-width:0 var(--arrow-size) var(--arrow-size) var(--arrow-size);border-bottom-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--top:before{content:\"\";position:absolute;bottom:-1px;left:50%;transform:translate(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:0 calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px);border-bottom-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover__arrow--bottom{top:100%;left:50%;transform:translate(-50%);border-width:var(--arrow-size) var(--arrow-size) 0 var(--arrow-size);border-top-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--bottom:before{content:\"\";position:absolute;top:-1px;left:50%;transform:translate(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) 0 calc(var(--arrow-size) + 1px);border-top-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover__arrow--left{right:100%;top:50%;transform:translateY(-50%);border-width:var(--arrow-size) var(--arrow-size) var(--arrow-size) 0;border-right-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--left:before{content:\"\";position:absolute;right:-1px;top:50%;transform:translateY(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px) 0;border-right-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover__arrow--right{left:100%;top:50%;transform:translateY(-50%);border-width:var(--arrow-size) 0 var(--arrow-size) var(--arrow-size);border-left-color:var(--fui-popover-background)}::ng-deep .fui-popover__arrow--right:before{content:\"\";position:absolute;left:-1px;top:50%;transform:translateY(-50%);width:0;height:0;border-style:solid;border-color:transparent;border-width:calc(var(--arrow-size) + 1px) 0 calc(var(--arrow-size) + 1px) calc(var(--arrow-size) + 1px);border-left-color:var(--fui-popover-border-color);z-index:-1}::ng-deep .fui-popover--top-start .fui-popover__arrow,::ng-deep .fui-popover--bottom-start .fui-popover__arrow{left:var(--fui-spacing-04);transform:none}::ng-deep .fui-popover--top-end .fui-popover__arrow,::ng-deep .fui-popover--bottom-end .fui-popover__arrow{right:var(--fui-spacing-04);left:auto;transform:none}::ng-deep .fui-popover--left-start .fui-popover__arrow,::ng-deep .fui-popover--right-start .fui-popover__arrow{top:var(--fui-spacing-04);transform:none}::ng-deep .fui-popover--left-end .fui-popover__arrow,::ng-deep .fui-popover--right-end .fui-popover__arrow{bottom:var(--fui-spacing-04);top:auto;transform:none}@media(prefers-contrast:more){::ng-deep .fui-popover .fui-popover__panel{border:2px solid var(--fui-text-primary);box-shadow:var(--fui-shadow-04)}}@media(prefers-reduced-motion:reduce){::ng-deep .fui-popover{animation:none;opacity:1}}@media print{::ng-deep .fui-popover{display:none!important}}@keyframes fui-popover-fade-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}\n"] }]
54
+ }], propDecorators: { hasArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasArrow", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }] } });
55
+
56
+ const POPOVER_POSITIONS = [
57
+ 'top',
58
+ 'bottom',
59
+ 'left',
60
+ 'right',
61
+ 'top-start',
62
+ 'top-end',
63
+ 'bottom-start',
64
+ 'bottom-end',
65
+ 'left-start',
66
+ 'left-end',
67
+ 'right-start',
68
+ 'right-end',
69
+ ];
70
+ const POPOVER_TRIGGER_MODES = ['click', 'hover', 'focus', 'manual'];
71
+
72
+ /**
73
+ * # PopoverTrigger Directive
74
+ *
75
+ * A directive that triggers a popover overlay anchored to the host element.
76
+ * Supports click, hover, focus, and manual trigger modes with configurable
77
+ * positioning, delays, and arrow indicators.
78
+ *
79
+ * ## Usage
80
+ *
81
+ * ### Basic Click Popover
82
+ * ```html
83
+ * <ng-template #popoverContent>
84
+ * <p>Popover content here</p>
85
+ * </ng-template>
86
+ *
87
+ * <button [fuiPopoverTrigger]="popoverContent">Open Popover</button>
88
+ * ```
89
+ *
90
+ * ### Hover with Position
91
+ * ```html
92
+ * <button [fuiPopoverTrigger]="popoverContent"
93
+ * fuiPopoverTriggerOn="hover"
94
+ * fuiPopoverPosition="top">
95
+ * Hover Me
96
+ * </button>
97
+ * ```
98
+ *
99
+ * ### Manual Control
100
+ * ```html
101
+ * <button [fuiPopoverTrigger]="popoverContent"
102
+ * fuiPopoverTriggerOn="manual"
103
+ * [fuiPopoverOpen]="isOpen">
104
+ * Manual Popover
105
+ * </button>
106
+ * ```
107
+ */
108
+ class FuiPopoverTriggerDirective {
109
+ /** Template ref for the popover content */
110
+ fuiPopoverTrigger = input.required(...(ngDevMode ? [{ debugName: "fuiPopoverTrigger" }] : /* istanbul ignore next */ []));
111
+ /** Position of the popover relative to the trigger element */
112
+ fuiPopoverPosition = input('bottom', { ...(ngDevMode ? { debugName: "fuiPopoverPosition" } : /* istanbul ignore next */ {}), transform: (v) => (POPOVER_POSITIONS.includes(v) ? v : 'bottom') });
113
+ /** Trigger mode for showing/hiding the popover */
114
+ fuiPopoverTriggerOn = input('click', { ...(ngDevMode ? { debugName: "fuiPopoverTriggerOn" } : /* istanbul ignore next */ {}), transform: (v) => (POPOVER_TRIGGER_MODES.includes(v) ? v : 'click') });
115
+ /** Delay before showing the popover (in milliseconds) */
116
+ fuiPopoverShowDelay = input(0, { ...(ngDevMode ? { debugName: "fuiPopoverShowDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
117
+ /** Delay before hiding the popover (in milliseconds) */
118
+ fuiPopoverHideDelay = input(0, { ...(ngDevMode ? { debugName: "fuiPopoverHideDelay" } : /* istanbul ignore next */ {}), transform: numberAttribute });
119
+ /** Whether to show the arrow indicator */
120
+ fuiPopoverHasArrow = input(true, { ...(ngDevMode ? { debugName: "fuiPopoverHasArrow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
121
+ /** Whether to close on outside click */
122
+ fuiPopoverCloseOnOutsideClick = input(true, { ...(ngDevMode ? { debugName: "fuiPopoverCloseOnOutsideClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
123
+ /** Whether the popover trigger is disabled */
124
+ fuiPopoverDisabled = input(false, { ...(ngDevMode ? { debugName: "fuiPopoverDisabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
125
+ /** Manual control for showing/hiding the popover (only works with trigger="manual") */
126
+ fuiPopoverOpen = input(false, { ...(ngDevMode ? { debugName: "fuiPopoverOpen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
127
+ /** Emits when the popover is opened */
128
+ fuiPopoverOpened = output();
129
+ /** Emits when the popover is closed */
130
+ fuiPopoverClosed = output();
131
+ // Internal state
132
+ _isOpen = signal(false, ...(ngDevMode ? [{ debugName: "_isOpen" }] : /* istanbul ignore next */ []));
133
+ _overlayRef = null;
134
+ _embeddedViewRef = null;
135
+ _showTimeout = null;
136
+ _hideTimeout = null;
137
+ _subscriptions = [];
138
+ // Injected dependencies
139
+ _elementRef = inject(ElementRef);
140
+ _overlayService = inject(FuiOverlayService);
141
+ constructor() {
142
+ // Handle manual control
143
+ effect(() => {
144
+ if (this.fuiPopoverTriggerOn() === 'manual') {
145
+ if (this.fuiPopoverOpen()) {
146
+ this._showPopover();
147
+ }
148
+ else {
149
+ this._hidePopover();
150
+ }
151
+ }
152
+ });
153
+ // Handle disabled state
154
+ effect(() => {
155
+ if (this.fuiPopoverDisabled() && this._isOpen()) {
156
+ this._hidePopover();
157
+ }
158
+ });
159
+ }
160
+ ngOnDestroy() {
161
+ this._clearTimeouts();
162
+ this._destroyPopover();
163
+ }
164
+ onHostClick() {
165
+ if (this.fuiPopoverTriggerOn() === 'click' && !this.fuiPopoverDisabled()) {
166
+ if (this._isOpen()) {
167
+ this._hidePopover();
168
+ }
169
+ else {
170
+ this._showPopover();
171
+ }
172
+ }
173
+ }
174
+ onMouseEnter() {
175
+ if (this.fuiPopoverTriggerOn() === 'hover' && !this.fuiPopoverDisabled()) {
176
+ this._scheduleShow();
177
+ }
178
+ }
179
+ onMouseLeave() {
180
+ if (this.fuiPopoverTriggerOn() === 'hover' && !this.fuiPopoverDisabled()) {
181
+ this._scheduleHide();
182
+ }
183
+ }
184
+ onFocus() {
185
+ if (this.fuiPopoverTriggerOn() === 'focus' && !this.fuiPopoverDisabled()) {
186
+ this._scheduleShow();
187
+ }
188
+ }
189
+ onBlur() {
190
+ if (this.fuiPopoverTriggerOn() === 'focus' && !this.fuiPopoverDisabled()) {
191
+ this._scheduleHide();
192
+ }
193
+ }
194
+ onKeydown(event) {
195
+ if (event.key === 'Escape' && this._isOpen()) {
196
+ this._hidePopover();
197
+ event.preventDefault();
198
+ }
199
+ }
200
+ /** Programmatically show the popover */
201
+ show() {
202
+ if (!this.fuiPopoverDisabled()) {
203
+ this._showPopover();
204
+ }
205
+ }
206
+ /** Programmatically hide the popover */
207
+ hide() {
208
+ this._hidePopover();
209
+ }
210
+ /** Toggle popover visibility */
211
+ toggle() {
212
+ if (this._isOpen()) {
213
+ this.hide();
214
+ }
215
+ else {
216
+ this.show();
217
+ }
218
+ }
219
+ _scheduleShow() {
220
+ this._clearTimeouts();
221
+ if (this.fuiPopoverShowDelay() > 0) {
222
+ this._showTimeout = window.setTimeout(() => {
223
+ this._showPopover();
224
+ }, this.fuiPopoverShowDelay());
225
+ }
226
+ else {
227
+ this._showPopover();
228
+ }
229
+ }
230
+ _scheduleHide() {
231
+ this._clearTimeouts();
232
+ if (this.fuiPopoverHideDelay() > 0) {
233
+ this._hideTimeout = window.setTimeout(() => {
234
+ this._hidePopover();
235
+ }, this.fuiPopoverHideDelay());
236
+ }
237
+ else {
238
+ this._hidePopover();
239
+ }
240
+ }
241
+ _previouslyFocusedElement = null;
242
+ _showPopover() {
243
+ if (this._isOpen() || this.fuiPopoverDisabled()) {
244
+ return;
245
+ }
246
+ // Save the currently focused element for focus restoration
247
+ this._previouslyFocusedElement = document.activeElement;
248
+ this._createPopover();
249
+ this._isOpen.set(true);
250
+ this.fuiPopoverOpened.emit();
251
+ // Add click outside listener for click trigger
252
+ if (this.fuiPopoverCloseOnOutsideClick()) {
253
+ setTimeout(() => {
254
+ document.addEventListener('click', this._onDocumentClick, true);
255
+ });
256
+ }
257
+ // Focus the first focusable element within the popover
258
+ setTimeout(() => {
259
+ this._focusFirstInOverlay();
260
+ });
261
+ }
262
+ _hidePopover() {
263
+ if (!this._isOpen()) {
264
+ return;
265
+ }
266
+ this._isOpen.set(false);
267
+ this._destroyPopover();
268
+ this.fuiPopoverClosed.emit();
269
+ document.removeEventListener('click', this._onDocumentClick, true);
270
+ // Restore focus to the trigger element
271
+ if (this._previouslyFocusedElement) {
272
+ this._previouslyFocusedElement.focus();
273
+ this._previouslyFocusedElement = null;
274
+ }
275
+ }
276
+ _focusFirstInOverlay() {
277
+ const overlay = this._overlayRef?.overlayElement;
278
+ if (!overlay)
279
+ return;
280
+ const focusable = overlay.querySelector('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');
281
+ if (focusable) {
282
+ focusable.focus();
283
+ }
284
+ }
285
+ _createPopover() {
286
+ if (this._overlayRef) {
287
+ return;
288
+ }
289
+ const positions = this._getPositions(this.fuiPopoverPosition());
290
+ const positionStrategy = this._overlayService
291
+ .position()
292
+ .connectedTo(this._elementRef, positions)
293
+ .withPush(true)
294
+ .withViewportMargin(8);
295
+ this._overlayRef = this._overlayService.create({
296
+ positionStrategy,
297
+ scrollStrategy: this._overlayService.scrollStrategies.reposition(20),
298
+ panelClass: 'fui-popover-panel',
299
+ });
300
+ // Attach the template to the overlay
301
+ this._overlayRef.attach(this.fuiPopoverTrigger());
302
+ // Subscribe to keydown events for ESC
303
+ const keydownSub = this._overlayRef.keydownEvents.subscribe((event) => {
304
+ if (event.key === 'Escape') {
305
+ this._hidePopover();
306
+ event.preventDefault();
307
+ }
308
+ });
309
+ this._subscriptions.push(keydownSub);
310
+ // Set up hover events on the overlay for hover trigger persistence
311
+ if (this.fuiPopoverTriggerOn() === 'hover') {
312
+ const overlayElement = this._overlayRef.overlayElement;
313
+ overlayElement.addEventListener('mouseenter', this._onOverlayMouseEnter);
314
+ overlayElement.addEventListener('mouseleave', this._onOverlayMouseLeave);
315
+ }
316
+ }
317
+ _getPositions(pos) {
318
+ const offset = 8;
319
+ const positionMap = {
320
+ top: [
321
+ { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetY: -offset },
322
+ { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetY: offset },
323
+ ],
324
+ 'top-start': [
325
+ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },
326
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },
327
+ ],
328
+ 'top-end': [
329
+ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -offset },
330
+ { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: offset },
331
+ ],
332
+ bottom: [
333
+ { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetY: offset },
334
+ { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetY: -offset },
335
+ ],
336
+ 'bottom-start': [
337
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },
338
+ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },
339
+ ],
340
+ 'bottom-end': [
341
+ { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: offset },
342
+ { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -offset },
343
+ ],
344
+ left: [
345
+ { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -offset },
346
+ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: offset },
347
+ ],
348
+ 'left-start': [
349
+ { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top', offsetX: -offset },
350
+ { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: offset },
351
+ ],
352
+ 'left-end': [
353
+ { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom', offsetX: -offset },
354
+ { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'bottom', offsetX: offset },
355
+ ],
356
+ right: [
357
+ { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: offset },
358
+ { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -offset },
359
+ ],
360
+ 'right-start': [
361
+ { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: offset },
362
+ { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top', offsetX: -offset },
363
+ ],
364
+ 'right-end': [
365
+ { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'bottom', offsetX: offset },
366
+ { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom', offsetX: -offset },
367
+ ],
368
+ };
369
+ return positionMap[pos] || positionMap.bottom;
370
+ }
371
+ _destroyPopover() {
372
+ // Clean up subscriptions
373
+ this._subscriptions.forEach((sub) => {
374
+ sub.unsubscribe();
375
+ });
376
+ this._subscriptions = [];
377
+ // Remove hover listeners from overlay
378
+ if (this._overlayRef) {
379
+ const overlayElement = this._overlayRef.overlayElement;
380
+ overlayElement.removeEventListener('mouseenter', this._onOverlayMouseEnter);
381
+ overlayElement.removeEventListener('mouseleave', this._onOverlayMouseLeave);
382
+ this._overlayRef.dispose();
383
+ this._overlayRef = null;
384
+ }
385
+ this._embeddedViewRef = null;
386
+ }
387
+ _clearTimeouts() {
388
+ if (this._showTimeout) {
389
+ clearTimeout(this._showTimeout);
390
+ this._showTimeout = null;
391
+ }
392
+ if (this._hideTimeout) {
393
+ clearTimeout(this._hideTimeout);
394
+ this._hideTimeout = null;
395
+ }
396
+ }
397
+ _onDocumentClick = (event) => {
398
+ const target = event.target;
399
+ const triggerElement = this._elementRef.nativeElement;
400
+ const overlayElement = this._overlayRef?.overlayElement;
401
+ if (target && !triggerElement.contains(target) && !overlayElement?.contains(target)) {
402
+ this._hidePopover();
403
+ }
404
+ };
405
+ _onOverlayMouseEnter = () => {
406
+ this._clearTimeouts();
407
+ };
408
+ _onOverlayMouseLeave = () => {
409
+ if (this.fuiPopoverTriggerOn() === 'hover') {
410
+ this._scheduleHide();
411
+ }
412
+ };
413
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiPopoverTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
414
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.6", type: FuiPopoverTriggerDirective, isStandalone: true, selector: "[fuiPopoverTrigger]", inputs: { fuiPopoverTrigger: { classPropertyName: "fuiPopoverTrigger", publicName: "fuiPopoverTrigger", isSignal: true, isRequired: true, transformFunction: null }, fuiPopoverPosition: { classPropertyName: "fuiPopoverPosition", publicName: "fuiPopoverPosition", isSignal: true, isRequired: false, transformFunction: null }, fuiPopoverTriggerOn: { classPropertyName: "fuiPopoverTriggerOn", publicName: "fuiPopoverTriggerOn", isSignal: true, isRequired: false, transformFunction: null }, fuiPopoverShowDelay: { classPropertyName: "fuiPopoverShowDelay", publicName: "fuiPopoverShowDelay", isSignal: true, isRequired: false, transformFunction: null }, fuiPopoverHideDelay: { classPropertyName: "fuiPopoverHideDelay", publicName: "fuiPopoverHideDelay", isSignal: true, isRequired: false, transformFunction: null }, fuiPopoverHasArrow: { classPropertyName: "fuiPopoverHasArrow", publicName: "fuiPopoverHasArrow", isSignal: true, isRequired: false, transformFunction: null }, fuiPopoverCloseOnOutsideClick: { classPropertyName: "fuiPopoverCloseOnOutsideClick", publicName: "fuiPopoverCloseOnOutsideClick", isSignal: true, isRequired: false, transformFunction: null }, fuiPopoverDisabled: { classPropertyName: "fuiPopoverDisabled", publicName: "fuiPopoverDisabled", isSignal: true, isRequired: false, transformFunction: null }, fuiPopoverOpen: { classPropertyName: "fuiPopoverOpen", publicName: "fuiPopoverOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fuiPopoverOpened: "fuiPopoverOpened", fuiPopoverClosed: "fuiPopoverClosed" }, host: { listeners: { "click": "onHostClick()", "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "focus": "onFocus()", "blur": "onBlur()", "keydown": "onKeydown($event)" }, properties: { "attr.aria-haspopup": "\"dialog\"", "attr.aria-expanded": "_isOpen() ? \"true\" : \"false\"" } }, ngImport: i0 });
415
+ }
416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: FuiPopoverTriggerDirective, decorators: [{
417
+ type: Directive,
418
+ args: [{
419
+ selector: '[fuiPopoverTrigger]',
420
+ standalone: true,
421
+ host: {
422
+ '[attr.aria-haspopup]': '"dialog"',
423
+ '[attr.aria-expanded]': '_isOpen() ? "true" : "false"',
424
+ },
425
+ }]
426
+ }], ctorParameters: () => [], propDecorators: { fuiPopoverTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverTrigger", required: true }] }], fuiPopoverPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverPosition", required: false }] }], fuiPopoverTriggerOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverTriggerOn", required: false }] }], fuiPopoverShowDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverShowDelay", required: false }] }], fuiPopoverHideDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverHideDelay", required: false }] }], fuiPopoverHasArrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverHasArrow", required: false }] }], fuiPopoverCloseOnOutsideClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverCloseOnOutsideClick", required: false }] }], fuiPopoverDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverDisabled", required: false }] }], fuiPopoverOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fuiPopoverOpen", required: false }] }], fuiPopoverOpened: [{ type: i0.Output, args: ["fuiPopoverOpened"] }], fuiPopoverClosed: [{ type: i0.Output, args: ["fuiPopoverClosed"] }], onHostClick: [{
427
+ type: HostListener,
428
+ args: ['click']
429
+ }], onMouseEnter: [{
430
+ type: HostListener,
431
+ args: ['mouseenter']
432
+ }], onMouseLeave: [{
433
+ type: HostListener,
434
+ args: ['mouseleave']
435
+ }], onFocus: [{
436
+ type: HostListener,
437
+ args: ['focus']
438
+ }], onBlur: [{
439
+ type: HostListener,
440
+ args: ['blur']
441
+ }], onKeydown: [{
442
+ type: HostListener,
443
+ args: ['keydown', ['$event']]
444
+ }] } });
445
+
446
+ /**
447
+ * Generated bundle index. Do not edit.
448
+ */
449
+
450
+ export { FuiPopoverComponent, FuiPopoverTriggerDirective, POPOVER_POSITIONS, POPOVER_TRIGGER_MODES };
451
+ //# sourceMappingURL=raintonic-formaui-components-popover.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raintonic-formaui-components-popover.mjs","sources":["../../../lib/components/popover/popover.component.ts","../../../lib/components/popover/popover.component.html","../../../lib/components/popover/popover.types.ts","../../../lib/components/popover/popover-trigger.directive.ts","../../../lib/components/popover/raintonic-formaui-components-popover.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewEncapsulation, input, computed, Signal } from '@angular/core';\nimport { PopoverPosition } from './popover.types';\n\n/**\n * # FuiPopoverComponent\n *\n * Internal popover container component rendered inside the overlay.\n * Provides a styled panel with optional arrow indicator.\n *\n * ## Usage\n * This component is not used directly. Use the `[fuiPopoverTrigger]` directive instead.\n */\n@Component({\n selector: 'fui-popover',\n standalone: true,\n imports: [],\n templateUrl: './popover.component.html',\n styleUrl: './popover.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'fui-popover',\n '[class]': 'computedClasses()',\n },\n})\nexport class FuiPopoverComponent {\n /** Whether to show the arrow indicator */\n readonly hasArrow = input(true);\n\n /** Position of the popover relative to the trigger element, used for arrow calculation */\n readonly position = input<PopoverPosition>('bottom');\n\n /** Computed CSS classes for the popover */\n readonly computedClasses: Signal<string> = computed(() => {\n const classes: string[] = ['fui-popover', `fui-popover--${this.position()}`];\n\n if (this.hasArrow()) {\n classes.push('fui-popover--with-arrow');\n }\n\n return classes.join(' ');\n });\n\n /** Computed arrow classes based on position */\n readonly arrowClasses: Signal<string> = computed(() => {\n const position = this.position();\n const baseClass = 'fui-popover__arrow';\n\n if (position.startsWith('top')) {\n return `${baseClass} ${baseClass}--bottom`;\n } else if (position.startsWith('bottom')) {\n return `${baseClass} ${baseClass}--top`;\n } else if (position.startsWith('left')) {\n return `${baseClass} ${baseClass}--right`;\n } else if (position.startsWith('right')) {\n return `${baseClass} ${baseClass}--left`;\n }\n\n return baseClass;\n });\n}\n","<div class=\"fui-popover__panel\" role=\"dialog\">\n @if (hasArrow()) {\n <div class=\"fui-popover__arrow\" [class]=\"arrowClasses()\"></div>\n }\n <div class=\"fui-popover__content\">\n <ng-content></ng-content>\n </div>\n</div>\n","export type PopoverTriggerMode = 'click' | 'hover' | 'focus' | 'manual';\nexport type PopoverPosition =\n | 'top'\n | 'bottom'\n | 'left'\n | 'right'\n | 'top-start'\n | 'top-end'\n | 'bottom-start'\n | 'bottom-end'\n | 'left-start'\n | 'left-end'\n | 'right-start'\n | 'right-end';\n\nexport const POPOVER_POSITIONS = [\n 'top',\n 'bottom',\n 'left',\n 'right',\n 'top-start',\n 'top-end',\n 'bottom-start',\n 'bottom-end',\n 'left-start',\n 'left-end',\n 'right-start',\n 'right-end',\n] as const;\n\nexport const POPOVER_TRIGGER_MODES = ['click', 'hover', 'focus', 'manual'] as const;\n","import {\n Directive,\n ElementRef,\n input,\n output,\n effect,\n HostListener,\n inject,\n OnDestroy,\n booleanAttribute,\n numberAttribute,\n TemplateRef,\n EmbeddedViewRef,\n signal,\n WritableSignal,\n} from '@angular/core';\nimport { PopoverPosition, PopoverTriggerMode, POPOVER_POSITIONS, POPOVER_TRIGGER_MODES } from './popover.types';\nimport { FuiOverlayService, FuiOverlayRef, FuiConnectedPosition } from '@raintonic/formaui/cdk/overlay';\nimport { Subscription } from 'rxjs';\n\n/**\n * # PopoverTrigger Directive\n *\n * A directive that triggers a popover overlay anchored to the host element.\n * Supports click, hover, focus, and manual trigger modes with configurable\n * positioning, delays, and arrow indicators.\n *\n * ## Usage\n *\n * ### Basic Click Popover\n * ```html\n * <ng-template #popoverContent>\n * <p>Popover content here</p>\n * </ng-template>\n *\n * <button [fuiPopoverTrigger]=\"popoverContent\">Open Popover</button>\n * ```\n *\n * ### Hover with Position\n * ```html\n * <button [fuiPopoverTrigger]=\"popoverContent\"\n * fuiPopoverTriggerOn=\"hover\"\n * fuiPopoverPosition=\"top\">\n * Hover Me\n * </button>\n * ```\n *\n * ### Manual Control\n * ```html\n * <button [fuiPopoverTrigger]=\"popoverContent\"\n * fuiPopoverTriggerOn=\"manual\"\n * [fuiPopoverOpen]=\"isOpen\">\n * Manual Popover\n * </button>\n * ```\n */\n@Directive({\n selector: '[fuiPopoverTrigger]',\n standalone: true,\n host: {\n '[attr.aria-haspopup]': '\"dialog\"',\n '[attr.aria-expanded]': '_isOpen() ? \"true\" : \"false\"',\n },\n})\nexport class FuiPopoverTriggerDirective implements OnDestroy {\n /** Template ref for the popover content */\n readonly fuiPopoverTrigger = input.required<TemplateRef<unknown>>();\n\n /** Position of the popover relative to the trigger element */\n readonly fuiPopoverPosition = input<PopoverPosition, PopoverPosition | string>('bottom', {\n transform: (v) => ((POPOVER_POSITIONS as readonly string[]).includes(v) ? (v as PopoverPosition) : 'bottom'),\n });\n\n /** Trigger mode for showing/hiding the popover */\n readonly fuiPopoverTriggerOn = input<PopoverTriggerMode, PopoverTriggerMode | string>('click', {\n transform: (v) => ((POPOVER_TRIGGER_MODES as readonly string[]).includes(v) ? (v as PopoverTriggerMode) : 'click'),\n });\n\n /** Delay before showing the popover (in milliseconds) */\n readonly fuiPopoverShowDelay = input<number, unknown>(0, { transform: numberAttribute });\n\n /** Delay before hiding the popover (in milliseconds) */\n readonly fuiPopoverHideDelay = input<number, unknown>(0, { transform: numberAttribute });\n\n /** Whether to show the arrow indicator */\n readonly fuiPopoverHasArrow = input<boolean, unknown>(true, { transform: booleanAttribute });\n\n /** Whether to close on outside click */\n readonly fuiPopoverCloseOnOutsideClick = input<boolean, unknown>(true, { transform: booleanAttribute });\n\n /** Whether the popover trigger is disabled */\n readonly fuiPopoverDisabled = input<boolean, unknown>(false, { transform: booleanAttribute });\n\n /** Manual control for showing/hiding the popover (only works with trigger=\"manual\") */\n readonly fuiPopoverOpen = input<boolean, unknown>(false, { transform: booleanAttribute });\n\n /** Emits when the popover is opened */\n readonly fuiPopoverOpened = output();\n\n /** Emits when the popover is closed */\n readonly fuiPopoverClosed = output();\n\n // Internal state\n readonly _isOpen: WritableSignal<boolean> = signal(false);\n private _overlayRef: FuiOverlayRef | null = null;\n private _embeddedViewRef: EmbeddedViewRef<unknown> | null = null;\n private _showTimeout: number | null = null;\n private _hideTimeout: number | null = null;\n private _subscriptions: Subscription[] = [];\n\n // Injected dependencies\n private readonly _elementRef: ElementRef<HTMLElement> = inject(ElementRef);\n private readonly _overlayService: FuiOverlayService = inject(FuiOverlayService);\n\n constructor() {\n // Handle manual control\n effect(() => {\n if (this.fuiPopoverTriggerOn() === 'manual') {\n if (this.fuiPopoverOpen()) {\n this._showPopover();\n } else {\n this._hidePopover();\n }\n }\n });\n\n // Handle disabled state\n effect(() => {\n if (this.fuiPopoverDisabled() && this._isOpen()) {\n this._hidePopover();\n }\n });\n }\n\n ngOnDestroy(): void {\n this._clearTimeouts();\n this._destroyPopover();\n }\n\n @HostListener('click')\n onHostClick(): void {\n if (this.fuiPopoverTriggerOn() === 'click' && !this.fuiPopoverDisabled()) {\n if (this._isOpen()) {\n this._hidePopover();\n } else {\n this._showPopover();\n }\n }\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (this.fuiPopoverTriggerOn() === 'hover' && !this.fuiPopoverDisabled()) {\n this._scheduleShow();\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n if (this.fuiPopoverTriggerOn() === 'hover' && !this.fuiPopoverDisabled()) {\n this._scheduleHide();\n }\n }\n\n @HostListener('focus')\n onFocus(): void {\n if (this.fuiPopoverTriggerOn() === 'focus' && !this.fuiPopoverDisabled()) {\n this._scheduleShow();\n }\n }\n\n @HostListener('blur')\n onBlur(): void {\n if (this.fuiPopoverTriggerOn() === 'focus' && !this.fuiPopoverDisabled()) {\n this._scheduleHide();\n }\n }\n\n @HostListener('keydown', ['$event'])\n onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this._isOpen()) {\n this._hidePopover();\n event.preventDefault();\n }\n }\n\n /** Programmatically show the popover */\n show(): void {\n if (!this.fuiPopoverDisabled()) {\n this._showPopover();\n }\n }\n\n /** Programmatically hide the popover */\n hide(): void {\n this._hidePopover();\n }\n\n /** Toggle popover visibility */\n toggle(): void {\n if (this._isOpen()) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n private _scheduleShow(): void {\n this._clearTimeouts();\n\n if (this.fuiPopoverShowDelay() > 0) {\n this._showTimeout = window.setTimeout(() => {\n this._showPopover();\n }, this.fuiPopoverShowDelay());\n } else {\n this._showPopover();\n }\n }\n\n private _scheduleHide(): void {\n this._clearTimeouts();\n\n if (this.fuiPopoverHideDelay() > 0) {\n this._hideTimeout = window.setTimeout(() => {\n this._hidePopover();\n }, this.fuiPopoverHideDelay());\n } else {\n this._hidePopover();\n }\n }\n\n private _previouslyFocusedElement: HTMLElement | null = null;\n\n private _showPopover(): void {\n if (this._isOpen() || this.fuiPopoverDisabled()) {\n return;\n }\n\n // Save the currently focused element for focus restoration\n this._previouslyFocusedElement = document.activeElement as HTMLElement;\n\n this._createPopover();\n this._isOpen.set(true);\n this.fuiPopoverOpened.emit();\n\n // Add click outside listener for click trigger\n if (this.fuiPopoverCloseOnOutsideClick()) {\n setTimeout(() => {\n document.addEventListener('click', this._onDocumentClick, true);\n });\n }\n\n // Focus the first focusable element within the popover\n setTimeout(() => {\n this._focusFirstInOverlay();\n });\n }\n\n private _hidePopover(): void {\n if (!this._isOpen()) {\n return;\n }\n\n this._isOpen.set(false);\n this._destroyPopover();\n this.fuiPopoverClosed.emit();\n document.removeEventListener('click', this._onDocumentClick, true);\n\n // Restore focus to the trigger element\n if (this._previouslyFocusedElement) {\n this._previouslyFocusedElement.focus();\n this._previouslyFocusedElement = null;\n }\n }\n\n private _focusFirstInOverlay(): void {\n const overlay = this._overlayRef?.overlayElement;\n if (!overlay) return;\n\n const focusable = overlay.querySelector<HTMLElement>(\n 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])',\n );\n\n if (focusable) {\n focusable.focus();\n }\n }\n\n private _createPopover(): void {\n if (this._overlayRef) {\n return;\n }\n\n const positions = this._getPositions(this.fuiPopoverPosition());\n const positionStrategy = this._overlayService\n .position()\n .connectedTo(this._elementRef, positions)\n .withPush(true)\n .withViewportMargin(8);\n\n this._overlayRef = this._overlayService.create({\n positionStrategy,\n scrollStrategy: this._overlayService.scrollStrategies.reposition(20),\n panelClass: 'fui-popover-panel',\n });\n\n // Attach the template to the overlay\n this._overlayRef.attach(this.fuiPopoverTrigger());\n\n // Subscribe to keydown events for ESC\n const keydownSub = this._overlayRef.keydownEvents.subscribe((event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this._hidePopover();\n event.preventDefault();\n }\n });\n this._subscriptions.push(keydownSub);\n\n // Set up hover events on the overlay for hover trigger persistence\n if (this.fuiPopoverTriggerOn() === 'hover') {\n const overlayElement = this._overlayRef.overlayElement;\n overlayElement.addEventListener('mouseenter', this._onOverlayMouseEnter);\n overlayElement.addEventListener('mouseleave', this._onOverlayMouseLeave);\n }\n }\n\n private _getPositions(pos: PopoverPosition): FuiConnectedPosition[] {\n const offset = 8;\n const positionMap: Record<PopoverPosition, FuiConnectedPosition[]> = {\n top: [\n { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetY: -offset },\n { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetY: offset },\n ],\n 'top-start': [\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },\n ],\n 'top-end': [\n { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -offset },\n { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: offset },\n ],\n bottom: [\n { originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetY: offset },\n { originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetY: -offset },\n ],\n 'bottom-start': [\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: offset },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -offset },\n ],\n 'bottom-end': [\n { originX: 'end', originY: 'bottom', overlayX: 'end', overlayY: 'top', offsetY: offset },\n { originX: 'end', originY: 'top', overlayX: 'end', overlayY: 'bottom', offsetY: -offset },\n ],\n left: [\n { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -offset },\n { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: offset },\n ],\n 'left-start': [\n { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top', offsetX: -offset },\n { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: offset },\n ],\n 'left-end': [\n { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom', offsetX: -offset },\n { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'bottom', offsetX: offset },\n ],\n right: [\n { originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: offset },\n { originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -offset },\n ],\n 'right-start': [\n { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: offset },\n { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top', offsetX: -offset },\n ],\n 'right-end': [\n { originX: 'end', originY: 'bottom', overlayX: 'start', overlayY: 'bottom', offsetX: offset },\n { originX: 'start', originY: 'bottom', overlayX: 'end', overlayY: 'bottom', offsetX: -offset },\n ],\n };\n\n return positionMap[pos] || positionMap.bottom;\n }\n\n private _destroyPopover(): void {\n // Clean up subscriptions\n this._subscriptions.forEach((sub) => {\n sub.unsubscribe();\n });\n this._subscriptions = [];\n\n // Remove hover listeners from overlay\n if (this._overlayRef) {\n const overlayElement = this._overlayRef.overlayElement;\n overlayElement.removeEventListener('mouseenter', this._onOverlayMouseEnter);\n overlayElement.removeEventListener('mouseleave', this._onOverlayMouseLeave);\n\n this._overlayRef.dispose();\n this._overlayRef = null;\n }\n\n this._embeddedViewRef = null;\n }\n\n private _clearTimeouts(): void {\n if (this._showTimeout) {\n clearTimeout(this._showTimeout);\n this._showTimeout = null;\n }\n if (this._hideTimeout) {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = null;\n }\n }\n\n private readonly _onDocumentClick = (event: Event): void => {\n const target = event.target as HTMLElement;\n const triggerElement = this._elementRef.nativeElement;\n const overlayElement = this._overlayRef?.overlayElement;\n\n if (target && !triggerElement.contains(target) && !overlayElement?.contains(target)) {\n this._hidePopover();\n }\n };\n\n private readonly _onOverlayMouseEnter = (): void => {\n this._clearTimeouts();\n };\n\n private readonly _onOverlayMouseLeave = (): void => {\n if (this.fuiPopoverTriggerOn() === 'hover') {\n this._scheduleHide();\n }\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;AAQG;MAcU,mBAAmB,CAAA;;AAErB,IAAA,QAAQ,GAAG,KAAK,CAAC,IAAI,+EAAC;;AAGtB,IAAA,QAAQ,GAAG,KAAK,CAAkB,QAAQ,+EAAC;;AAG3C,IAAA,eAAe,GAAmB,QAAQ,CAAC,MAAK;AACvD,QAAA,MAAM,OAAO,GAAa,CAAC,aAAa,EAAE,CAAA,aAAA,EAAgB,IAAI,CAAC,QAAQ,EAAE,CAAA,CAAE,CAAC;AAE5E,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;AACnB,YAAA,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC;QACzC;AAEA,QAAA,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC;A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