{"version":3,"file":"ng-primitives-popover.mjs","sources":["../../../../packages/ng-primitives/popover/src/config/popover-config.ts","../../../../packages/ng-primitives/popover/src/popover-arrow/popover-arrow-state.ts","../../../../packages/ng-primitives/popover/src/popover-arrow/popover-arrow.ts","../../../../packages/ng-primitives/popover/src/popover-trigger/popover-trigger-state.ts","../../../../packages/ng-primitives/popover/src/popover-trigger/popover-trigger.ts","../../../../packages/ng-primitives/popover/src/popover/popover-state.ts","../../../../packages/ng-primitives/popover/src/popover/popover.ts","../../../../packages/ng-primitives/popover/src/ng-primitives-popover.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\nimport { NgpDismissGuard, NgpFlip, NgpOffset, NgpPlacement, NgpShift } from 'ng-primitives/portal';\n\nexport interface NgpPopoverConfig {\n  /**\n   * Define the offset of the popover relative to the trigger.\n   * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis.\n   * @default 4\n   */\n  offset: NgpOffset;\n\n  /**\n   * Define the placement of the popover relative to the trigger.\n   * @default 'bottom'\n   */\n  placement: NgpPlacement;\n\n  /**\n   * Define the delay before the popover is shown.\n   * @default 0\n   */\n  showDelay: number;\n\n  /**\n   * Define the delay before the popover is hidden.\n   * @default 0\n   */\n  hideDelay: number;\n\n  /**\n   * Define whether the popover should flip when there is not enough space for the popover.\n   * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options.\n   * @default true\n   */\n  flip: NgpFlip;\n\n  /**\n   * Define the container element or selector in to which the popover should be attached.\n   * @default 'body'\n   */\n  container: HTMLElement | string | null;\n\n  /**\n   * Define whether the popover should close when clicking outside of it, or a guard function.\n   * @default true\n   */\n  closeOnOutsideClick: NgpDismissGuard<Element>;\n\n  /**\n   * Define whether the popover should close when the escape key is pressed, or a guard function.\n   * @default true\n   */\n  closeOnEscape: NgpDismissGuard<KeyboardEvent>;\n\n  /**\n   * Defines how the popover behaves when the window is scrolled.\n   * @default scroll\n   */\n  scrollBehavior: 'reposition' | 'block' | 'close';\n\n  /**\n   * Configure shift behavior to keep the popover in view.\n   * Can be a boolean to enable/disable, or an object with padding and limiter options.\n   * @default undefined (enabled by default in overlay)\n   */\n  shift: NgpShift;\n\n  /**\n   * Whether to track the trigger element position on every animation frame.\n   * Useful for moving elements like slider thumbs.\n   * @default false\n   */\n  trackPosition: boolean;\n\n  /**\n   * Cooldown duration in milliseconds.\n   * When moving from one popover to another within this duration,\n   * the showDelay is skipped for the new popover.\n   * @default 0\n   */\n  cooldown: number;\n\n  /**\n   * When true, hiding the popover removes its content from the DOM but keeps the\n   * underlying component/view instance alive in memory instead of destroying it - a\n   * later show reuses the same instance rather than creating a new one, so the content\n   * is not re-instantiated and any one-time setup (e.g. a network fetch) is not repeated.\n   * The kept-alive view stays attached to change detection while it is hidden.\n   * @default false\n   */\n  keepMounted: boolean;\n}\n\nexport const defaultPopoverConfig: NgpPopoverConfig = {\n  offset: 4,\n  placement: 'bottom',\n  showDelay: 0,\n  hideDelay: 0,\n  flip: true,\n  container: 'body',\n  closeOnOutsideClick: true,\n  closeOnEscape: true,\n  scrollBehavior: 'reposition',\n  shift: undefined,\n  trackPosition: false,\n  cooldown: 0,\n  keepMounted: false,\n};\n\nexport const NgpPopoverConfigToken = new InjectionToken<NgpPopoverConfig>('NgpPopoverConfigToken');\n\n/**\n * Provide the default Popover configuration\n * @param config The Popover configuration\n * @returns The provider\n */\nexport function providePopoverConfig(config: Partial<NgpPopoverConfig>): Provider[] {\n  return [\n    {\n      provide: NgpPopoverConfigToken,\n      useValue: { ...defaultPopoverConfig, ...config },\n    },\n  ];\n}\n\n/**\n * Inject the Popover configuration\n * @returns The global Popover configuration\n */\nexport function injectPopoverConfig(): NgpPopoverConfig {\n  return inject(NgpPopoverConfigToken, { optional: true }) ?? defaultPopoverConfig;\n}\n","import { NgpOverlayArrowProps, NgpOverlayArrowState, ngpOverlayArrow } from 'ng-primitives/portal';\nimport { createPrimitive } from 'ng-primitives/state';\n\n// Re-export types with popover-specific aliases\nexport { NgpOverlayArrowProps as NgpPopoverArrowProps };\nexport { NgpOverlayArrowState as NgpPopoverArrowState };\n\nexport const [\n  NgpPopoverArrowStateToken,\n  ngpPopoverArrow,\n  injectPopoverArrowState,\n  providePopoverArrowState,\n] = createPrimitive(\n  'NgpPopoverArrow',\n  ({ padding }: NgpOverlayArrowProps): NgpOverlayArrowState => {\n    return ngpOverlayArrow({ padding });\n  },\n);\n","import { NumberInput } from '@angular/cdk/coercion';\nimport { Directive, input, numberAttribute } from '@angular/core';\nimport { ngpPopoverArrow, providePopoverArrowState } from './popover-arrow-state';\n\n@Directive({\n  selector: '[ngpPopoverArrow]',\n  exportAs: 'ngpPopoverArrow',\n  providers: [providePopoverArrowState()],\n})\nexport class NgpPopoverArrow {\n  /**\n   * Padding between the arrow and the edges of the popover.\n   * This prevents the arrow from overflowing the rounded corners.\n   */\n  readonly padding = input<number | undefined, NumberInput>(undefined, {\n    alias: 'ngpPopoverArrowPadding',\n    transform: numberAttribute,\n  });\n\n  private readonly state = ngpPopoverArrow({ padding: this.padding });\n\n  /**\n   * Set the padding between the arrow and the edges of the popover.\n   * @param value The padding value in pixels\n   */\n  setPadding(value: number | undefined): void {\n    this.state.setPadding(value);\n  }\n}\n","import { FocusOrigin } from '@angular/cdk/a11y';\nimport {\n  computed,\n  ElementRef,\n  inject,\n  Injector,\n  signal,\n  Signal,\n  ViewContainerRef,\n  WritableSignal,\n} from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport {\n  createOverlay,\n  NgpDismissGuard,\n  NgpFlip,\n  NgpOffset,\n  NgpOverlay,\n  NgpOverlayConfig,\n  NgpOverlayContent,\n  NgpPlacement,\n  NgpShift,\n} from 'ng-primitives/portal';\nimport {\n  attrBinding,\n  controlled,\n  createPrimitive,\n  dataBinding,\n  deprecatedSetter,\n  listener,\n  onDestroy,\n  StateInjectionOptions,\n} from 'ng-primitives/state';\n\nexport interface NgpPopoverTriggerState<T> {\n  /** Access the trigger element. */\n  readonly elementRef: ElementRef;\n  /** Access the popover template ref. */\n  readonly popover: WritableSignal<NgpOverlayContent<T> | undefined>;\n  /**\n   * Define if the trigger should be disabled.\n   * @default false\n   */\n  readonly disabled: WritableSignal<boolean>;\n  /**\n   * Define the placement of the popover relative to the trigger.\n   * @default 'bottom'\n   */\n  readonly placement: WritableSignal<NgpPlacement>;\n  /**\n   * Define the offset of the popover relative to the trigger.\n   * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis.\n   * @default 4\n   */\n  readonly offset: WritableSignal<NgpOffset>;\n  /**\n   * Define the delay before the popover is displayed.\n   * @default 0\n   */\n  readonly showDelay: WritableSignal<number>;\n  /**\n   * Define the delay before the popover is hidden.\n   * @default 0\n   */\n  readonly hideDelay: WritableSignal<number>;\n  /**\n   * Define whether the popover should flip when there is not enough space for the popover.\n   * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options.\n   * @default true\n   */\n  readonly flip: WritableSignal<NgpFlip>;\n  /**\n   * Configure shift behavior to keep the popover in view.\n   * Can be a boolean to enable/disable, or an object with padding and limiter options.\n   * @default undefined (enabled by default in overlay)\n   */\n  readonly shift: WritableSignal<NgpShift>;\n  /**\n   * Define the container in which the popover should be attached.\n   * @default document.body\n   */\n  readonly container: WritableSignal<HTMLElement | string | null>;\n  /**\n   * Define whether the popover should close when clicking outside of it, or a guard function.\n   * @default true\n   */\n  readonly closeOnOutsideClick: WritableSignal<NgpDismissGuard<Element>>;\n  /**\n   * Define whether the popover should close when the escape key is pressed, or a guard function.\n   * @default true\n   */\n  readonly closeOnEscape: WritableSignal<NgpDismissGuard<KeyboardEvent>>;\n  /**\n   * Defines how the popover behaves when the window is scrolled.\n   * @default 'reposition'\n   */\n  readonly scrollBehavior: WritableSignal<'reposition' | 'block' | 'close'>;\n  /**\n   * Provide context to the popover. This can be used to pass data to the popover content.\n   */\n  readonly context: WritableSignal<T | undefined>;\n  /**\n   * Define an anchor element for positioning the popover.\n   * If provided, the popover will be positioned relative to this element instead of the trigger.\n   */\n  readonly anchor: WritableSignal<HTMLElement | null>;\n  /**\n   * Define whether to track the trigger element position on every animation frame.\n   * Useful for moving elements like slider thumbs.\n   * @default false\n   */\n  readonly trackPosition: WritableSignal<boolean>;\n  /**\n   * Define the cooldown duration in milliseconds.\n   * When moving from one popover to another within this duration,\n   * the showDelay is skipped for the new popover.\n   * @default 0\n   */\n  readonly cooldown: WritableSignal<number>;\n  /**\n   * When true, hiding the popover removes its content from the DOM but keeps the\n   * underlying component/view instance alive in memory instead of destroying it - a\n   * later show reuses the same instance rather than creating a new one, so the content\n   * is not re-instantiated and any one-time setup (e.g. a network fetch) is not repeated.\n   * The kept-alive view stays attached to change detection while it is hidden.\n   * @default false\n   */\n  readonly keepMounted: Signal<boolean>;\n  /**\n   * The overlay that manages the popover\n   * @internal\n   */\n  readonly overlay: Signal<NgpOverlay<T> | null>;\n  /**\n   * The open state of the popover.\n   * @internal\n   */\n  readonly open: Signal<boolean>;\n  /** Set the popover content. */\n  setPopover: (popover: NgpOverlayContent<T> | undefined) => void;\n  /** Set whether the trigger is disabled. */\n  setDisabled: (disabled: boolean) => void;\n  /** Set the placement of the popover relative to the trigger. */\n  setPlacement: (placement: NgpPlacement) => void;\n  /** Set the offset of the popover relative to the trigger. */\n  setOffset: (offset: NgpOffset) => void;\n  /** Set the delay before the popover is displayed. */\n  setShowDelay: (showDelay: number) => void;\n  /** Set the delay before the popover is hidden. */\n  setHideDelay: (hideDelay: number) => void;\n  /** Set the flip behaviour. */\n  setFlip: (flip: NgpFlip) => void;\n  /** Set the shift behaviour. */\n  setShift: (shift: NgpShift) => void;\n  /** Set the container in which the popover should be attached. */\n  setContainer: (container: HTMLElement | string | null) => void;\n  /** Set whether the popover closes when clicking outside of it, or a guard function. */\n  setCloseOnOutsideClick: (closeOnOutsideClick: NgpDismissGuard<Element>) => void;\n  /** Set whether the popover closes when the escape key is pressed, or a guard function. */\n  setCloseOnEscape: (closeOnEscape: NgpDismissGuard<KeyboardEvent>) => void;\n  /** Set how the popover behaves when the window is scrolled. */\n  setScrollBehavior: (scrollBehavior: 'reposition' | 'block' | 'close') => void;\n  /** Set the context passed to the popover content. */\n  setContext: (context: T | undefined) => void;\n  /** Set the anchor element the popover is positioned against. */\n  setAnchor: (anchor: HTMLElement | null) => void;\n  /** Set whether the trigger position is tracked on every animation frame. */\n  setTrackPosition: (trackPosition: boolean) => void;\n  /** Set the cooldown duration in milliseconds. */\n  setCooldown: (cooldown: number) => void;\n  /** Set whether hiding the popover keeps its content mounted instead of destroying it. */\n  setKeepMounted: (keepMounted: boolean) => void;\n  /**\n   * Show the popover.\n   * @returns A promise that resolves when the popover has been shown\n   */\n  show: () => Promise<void>;\n  /**\n   * @internal\n   * Hide the popover.\n   * @returns A promise that resolves when the popover has been hidden\n   */\n  hide: (origin?: FocusOrigin) => Promise<void>;\n}\n\nexport interface NgpPopoverTriggerProps<T> {\n  /** Access the popover template ref. */\n  readonly popover?: Signal<NgpOverlayContent<T> | undefined>;\n  /**\n   * Define if the trigger should be disabled.\n   * @default false\n   */\n  readonly disabled?: Signal<boolean>;\n  /**\n   * Define the placement of the popover relative to the trigger.\n   * @default 'bottom'\n   */\n  readonly placement?: Signal<NgpPlacement>;\n  /**\n   * Define the offset of the popover relative to the trigger.\n   * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis.\n   * @default 4\n   */\n  readonly offset?: Signal<NgpOffset>;\n  /**\n   * Define the delay before the popover is displayed.\n   * @default 0\n   */\n  readonly showDelay?: Signal<number>;\n  /**\n   * Define the delay before the popover is hidden.\n   * @default 0\n   */\n  readonly hideDelay?: Signal<number>;\n  /**\n   * Define whether the popover should flip when there is not enough space for the popover.\n   * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options.\n   * @default true\n   */\n  readonly flip?: Signal<NgpFlip>;\n  /**\n   * Configure shift behavior to keep the popover in view.\n   * Can be a boolean to enable/disable, or an object with padding and limiter options.\n   * @default undefined (enabled by default in overlay)\n   */\n  readonly shift?: Signal<NgpShift>;\n  /**\n   * Define the container in which the popover should be attached.\n   * @default document.body\n   */\n  readonly container?: Signal<HTMLElement | string | null>;\n  /**\n   * Define whether the popover should close when clicking outside of it, or a guard function.\n   * @default true\n   */\n  readonly closeOnOutsideClick?: Signal<NgpDismissGuard<Element>>;\n  /**\n   * Define whether the popover should close when the escape key is pressed, or a guard function.\n   * @default true\n   */\n  readonly closeOnEscape?: Signal<NgpDismissGuard<KeyboardEvent>>;\n  /**\n   * Defines how the popover behaves when the window is scrolled.\n   * @default 'reposition'\n   */\n  readonly scrollBehavior?: Signal<'reposition' | 'block' | 'close'>;\n  /**\n   * Provide context to the popover. This can be used to pass data to the popover content.\n   */\n  readonly context?: Signal<T | undefined>;\n  /**\n   * Define an anchor element for positioning the popover.\n   * If provided, the popover will be positioned relative to this element instead of the trigger.\n   */\n  readonly anchor?: Signal<HTMLElement | null>;\n  /**\n   * Define whether to track the trigger element position on every animation frame.\n   * Useful for moving elements like slider thumbs.\n   * @default false\n   */\n  readonly trackPosition?: Signal<boolean>;\n  /**\n   * Define the cooldown duration in milliseconds.\n   * When moving from one popover to another within this duration,\n   * the showDelay is skipped for the new popover.\n   * @default 0\n   */\n  readonly cooldown?: Signal<number>;\n  /**\n   * When true, hiding the popover removes its content from the DOM but keeps the\n   * underlying component/view instance alive in memory instead of destroying it - a\n   * later show reuses the same instance rather than creating a new one, so the content\n   * is not re-instantiated and any one-time setup (e.g. a network fetch) is not repeated.\n   * The kept-alive view stays attached to change detection while it is hidden.\n   * @default false\n   */\n  readonly keepMounted?: Signal<boolean>;\n  /** Callback fired when the open state changes.  */\n  readonly onOpenChange?: (value: boolean) => void;\n}\n\nexport const [\n  NgpPopoverTriggerStateToken,\n  ngpPopoverTrigger,\n  _injectPopoverTriggerState,\n  providePopoverTriggerState,\n] = createPrimitive(\n  'NgpPopoverTrigger',\n  <T>({\n    popover: _popover,\n    disabled: _disabled,\n    placement: _placement,\n    offset: _offset,\n    showDelay: _showDelay,\n    hideDelay: _hideDelay,\n    flip: _flip,\n    shift: _shift,\n    container: _container,\n    closeOnOutsideClick: _closeOnOutsideClick,\n    closeOnEscape: _closeOnEscape,\n    scrollBehavior: _scrollBehavior,\n    context: _context,\n    anchor: _anchor,\n    trackPosition: _trackPosition,\n    cooldown: _cooldown,\n    keepMounted: _keepMounted,\n    onOpenChange,\n  }: NgpPopoverTriggerProps<T>): NgpPopoverTriggerState<T> => {\n    const elementRef = injectElementRef<HTMLElement>();\n    const viewContainerRef = inject(ViewContainerRef);\n    const injector = inject(Injector);\n\n    // Every input is wrapped so the state can expose a setter for it - see the\n    // setter block at the bottom of the factory.\n    const popover = controlled<NgpOverlayContent<T> | undefined>(_popover, undefined);\n    const disabled = controlled(_disabled, false);\n    const placement = controlled<NgpPlacement>(_placement, 'bottom');\n    const offset = controlled<NgpOffset>(_offset, 4);\n    const showDelay = controlled(_showDelay, 0);\n    const hideDelay = controlled(_hideDelay, 0);\n    const flip = controlled<NgpFlip>(_flip, true);\n    const shift = controlled<NgpShift>(_shift, undefined);\n    const container = controlled<HTMLElement | string | null>(_container, 'body');\n    const closeOnOutsideClick = controlled<NgpDismissGuard<Element>>(_closeOnOutsideClick, true);\n    const closeOnEscape = controlled<NgpDismissGuard<KeyboardEvent>>(_closeOnEscape, true);\n    const scrollBehavior = controlled<'reposition' | 'block' | 'close'>(\n      _scrollBehavior,\n      'reposition',\n    );\n    const context = controlled<T | undefined>(_context, undefined);\n    const anchor = controlled<HTMLElement | null>(_anchor, null);\n    const trackPosition = controlled(_trackPosition, false);\n    const cooldown = controlled(_cooldown, 0);\n    const keepMounted = controlled(_keepMounted, false);\n\n    const overlay = signal<NgpOverlay<T> | null>(null);\n    const open = computed(() => overlay()?.isOpen() ?? false);\n\n    // Two show() calls inside the show delay both settle when that single open\n    // completes, so track what has been announced rather than what was open per call.\n    let announcedOpen = false;\n\n    // Host binding\n    attrBinding(elementRef, 'aria-expanded', () => (open() ? 'true' : 'false'));\n    // the popover is a focus-trapped, dialog-like overlay, so advertise the popup type\n    attrBinding(elementRef, 'aria-haspopup', 'dialog');\n    attrBinding(elementRef, 'aria-describedby', () => overlay()?.ariaDescribedBy());\n    // reference the controlled popover by id while it is open (it does not exist when closed)\n    attrBinding(elementRef, 'aria-controls', () => (open() ? (overlay()?.id() ?? null) : null));\n    dataBinding(elementRef, 'data-open', open);\n    dataBinding(elementRef, 'data-placement', placement);\n    dataBinding(elementRef, 'data-disabled', disabled);\n\n    // Event listener\n    listener(elementRef, 'click', toggle);\n\n    // Tearing the overlay down closes it, but a destroyed directive can no longer\n    // emit through `openChange` (Angular NG0953), so skip the notification.\n    let destroyed = false;\n\n    onDestroy(() => {\n      destroyed = true;\n      overlay()?.destroy();\n    });\n\n    function createOverlayInstance(): void {\n      const popoverInstance = popover();\n\n      if (!popoverInstance) {\n        throw new Error('Popover must be either a TemplateRef or a ComponentType');\n      }\n\n      // Create config for the overlay\n      const config: NgpOverlayConfig<T> = {\n        content: popover,\n        triggerElement: elementRef.nativeElement,\n        anchorElement: anchor,\n        injector: injector,\n        context: context,\n        container,\n        placement: placement,\n        offset: offset(),\n        flip: flip(),\n        shift: shift(),\n        showDelay: showDelay(),\n        hideDelay: hideDelay(),\n        closeOnOutsideClick: closeOnOutsideClick(),\n        closeOnEscape: closeOnEscape(),\n        restoreFocus: true,\n        scrollBehaviour: scrollBehavior(),\n        viewContainerRef: viewContainerRef,\n        trackPosition: trackPosition(),\n        overlayType: 'popover',\n        cooldown: cooldown(),\n        keepMounted: keepMounted,\n        onClose: () => {\n          announcedOpen = false;\n          if (!destroyed) {\n            onOpenChange?.(false);\n          }\n        },\n      };\n\n      overlay.set(createOverlay(config));\n    }\n\n    function toggle(event: MouseEvent): void {\n      // if the trigger is disabled then do not toggle the popover\n      if (disabled()) {\n        return;\n      }\n\n      // determine the origin of the event, 0 is keyboard, 1 is mouse\n      const origin: FocusOrigin = event.detail === 0 ? 'keyboard' : 'mouse';\n\n      // if the popover is open then hide it\n      if (open()) {\n        hide(origin);\n      } else {\n        show();\n      }\n    }\n\n    async function show(): Promise<void> {\n      // If the trigger is disabled, don't show the popover\n      if (disabled()) {\n        return;\n      }\n\n      // Create the overlay if it doesn't exist yet\n      if (!overlay()) {\n        createOverlayInstance();\n      }\n\n      // Show the overlay\n      await overlay()?.show();\n\n      // Only announce an actual transition - show() also resolves when the popover was\n      // already open, or when a concurrent call opened it first.\n      if (open() && !announcedOpen) {\n        announcedOpen = true;\n        onOpenChange?.(true);\n      }\n    }\n\n    async function hide(origin: FocusOrigin = 'program'): Promise<void> {\n      // If the trigger is disabled or the popover is not open, do nothing\n      if (disabled() || !open()) {\n        return;\n      }\n\n      // Hide the overlay\n      await overlay()?.hide({ origin });\n    }\n\n    function setPopover(newPopover: NgpOverlayContent<T> | undefined): void {\n      popover.set(newPopover);\n    }\n\n    function setDisabled(isDisabled: boolean): void {\n      disabled.set(isDisabled);\n    }\n\n    function setPlacement(newPlacement: NgpPlacement): void {\n      placement.set(newPlacement);\n    }\n\n    function setOffset(newOffset: NgpOffset): void {\n      offset.set(newOffset);\n    }\n\n    function setShowDelay(delay: number): void {\n      showDelay.set(delay);\n    }\n\n    function setHideDelay(delay: number): void {\n      hideDelay.set(delay);\n    }\n\n    function setFlip(shouldFlip: NgpFlip): void {\n      flip.set(shouldFlip);\n    }\n\n    function setShift(shouldShift: NgpShift): void {\n      shift.set(shouldShift);\n    }\n\n    function setContainer(newContainer: HTMLElement | string | null): void {\n      container.set(newContainer);\n    }\n\n    function setCloseOnOutsideClick(guard: NgpDismissGuard<Element>): void {\n      closeOnOutsideClick.set(guard);\n    }\n\n    function setCloseOnEscape(guard: NgpDismissGuard<KeyboardEvent>): void {\n      closeOnEscape.set(guard);\n    }\n\n    function setScrollBehavior(behavior: 'reposition' | 'block' | 'close'): void {\n      scrollBehavior.set(behavior);\n    }\n\n    function setContext(newContext: T | undefined): void {\n      context.set(newContext);\n    }\n\n    function setAnchor(newAnchor: HTMLElement | null): void {\n      anchor.set(newAnchor);\n    }\n\n    function setTrackPosition(shouldTrack: boolean): void {\n      trackPosition.set(shouldTrack);\n    }\n\n    function setCooldown(duration: number): void {\n      cooldown.set(duration);\n    }\n\n    function setKeepMounted(shouldKeepMounted: boolean): void {\n      keepMounted.set(shouldKeepMounted);\n    }\n\n    return {\n      elementRef,\n      popover: deprecatedSetter(popover, 'setPopover', setPopover),\n      disabled: deprecatedSetter(disabled, 'setDisabled', setDisabled),\n      placement: deprecatedSetter(placement, 'setPlacement', setPlacement),\n      offset: deprecatedSetter(offset, 'setOffset', setOffset),\n      showDelay: deprecatedSetter(showDelay, 'setShowDelay', setShowDelay),\n      hideDelay: deprecatedSetter(hideDelay, 'setHideDelay', setHideDelay),\n      flip: deprecatedSetter(flip, 'setFlip', setFlip),\n      shift: deprecatedSetter(shift, 'setShift', setShift),\n      container: deprecatedSetter(container, 'setContainer', setContainer),\n      closeOnOutsideClick: deprecatedSetter(\n        closeOnOutsideClick,\n        'setCloseOnOutsideClick',\n        setCloseOnOutsideClick,\n      ),\n      closeOnEscape: deprecatedSetter(closeOnEscape, 'setCloseOnEscape', setCloseOnEscape),\n      scrollBehavior: deprecatedSetter(scrollBehavior, 'setScrollBehavior', setScrollBehavior),\n      context: deprecatedSetter(context, 'setContext', setContext),\n      anchor: deprecatedSetter(anchor, 'setAnchor', setAnchor),\n      trackPosition: deprecatedSetter(trackPosition, 'setTrackPosition', setTrackPosition),\n      cooldown: deprecatedSetter(cooldown, 'setCooldown', setCooldown),\n      keepMounted,\n      overlay,\n      open,\n      setPopover,\n      setDisabled,\n      setPlacement,\n      setOffset,\n      setShowDelay,\n      setHideDelay,\n      setFlip,\n      setShift,\n      setContainer,\n      setCloseOnOutsideClick,\n      setCloseOnEscape,\n      setScrollBehavior,\n      setContext,\n      setAnchor,\n      setTrackPosition,\n      setCooldown,\n      setKeepMounted,\n      show,\n      hide,\n    } satisfies NgpPopoverTriggerState<T>;\n  },\n);\n\nexport function injectPopoverTriggerState<T>(\n  options?: StateInjectionOptions,\n): Signal<NgpPopoverTriggerState<T>> {\n  return _injectPopoverTriggerState(options) as Signal<NgpPopoverTriggerState<T>>;\n}\n\n/**\n * Where the popover is placed relative to its trigger.\n * @deprecated Identical to `NgpPlacement` from `ng-primitives/portal` - use that instead.\n * Will be removed in a future major.\n */\nexport type NgpPopoverPlacement = NgpPlacement;\n","import { FocusOrigin } from '@angular/cdk/a11y';\nimport { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input, numberAttribute, output } from '@angular/core';\nimport {\n  coerceFlip,\n  dismissGuardAttribute,\n  NgpDismissGuard,\n  NgpDismissGuardInput,\n  NgpFlip,\n  NgpFlipInput,\n  NgpOverlayContent,\n  NgpPlacement,\n  coerceOffset,\n  NgpOffset,\n  NgpOffsetInput,\n  coerceShift,\n  NgpShift,\n  NgpShiftInput,\n} from 'ng-primitives/portal';\nimport { injectPopoverConfig } from '../config/popover-config';\nimport { ngpPopoverTrigger, providePopoverTriggerState } from './popover-trigger-state';\n\n/**\n * Apply the `ngpPopoverTrigger` directive to an element that triggers the popover to show.\n */\n@Directive({\n  selector: '[ngpPopoverTrigger]',\n  exportAs: 'ngpPopoverTrigger',\n  providers: [providePopoverTriggerState({ inherit: false })],\n})\nexport class NgpPopoverTrigger<T = null> {\n  /**\n   * Access the global popover configuration.\n   */\n  private readonly config = injectPopoverConfig();\n\n  /**\n   * Access the popover template ref.\n   */\n  readonly popover = input<NgpOverlayContent<T>>(undefined, {\n    alias: 'ngpPopoverTrigger',\n  });\n\n  /**\n   * Define if the trigger should be disabled.\n   * @default false\n   */\n  readonly disabled = input<boolean, BooleanInput>(false, {\n    alias: 'ngpPopoverTriggerDisabled',\n    transform: booleanAttribute,\n  });\n\n  /**\n   * Define the placement of the popover relative to the trigger.\n   * @default 'top'\n   */\n  readonly placement = input<NgpPlacement>(this.config.placement, {\n    alias: 'ngpPopoverTriggerPlacement',\n  });\n\n  /**\n   * Define the offset of the popover relative to the trigger.\n   * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis.\n   * @default 0\n   */\n  readonly offset = input<NgpOffset, NgpOffsetInput>(this.config.offset, {\n    alias: 'ngpPopoverTriggerOffset',\n    transform: coerceOffset,\n  });\n\n  /**\n   * Define the delay before the popover is displayed.\n   * @default 0\n   */\n  readonly showDelay = input<number, NumberInput>(this.config.showDelay, {\n    alias: 'ngpPopoverTriggerShowDelay',\n    transform: numberAttribute,\n  });\n\n  /**\n   * Define the delay before the popover is hidden.\n   * @default 0\n   */\n  readonly hideDelay = input<number, NumberInput>(this.config.hideDelay, {\n    alias: 'ngpPopoverTriggerHideDelay',\n    transform: numberAttribute,\n  });\n\n  /**\n   * Define whether the popover should flip when there is not enough space for the popover.\n   * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options.\n   * @default true\n   */\n  readonly flip = input<NgpFlip, NgpFlipInput>(this.config.flip, {\n    alias: 'ngpPopoverTriggerFlip',\n    transform: coerceFlip,\n  });\n\n  /**\n   * Configure shift behavior to keep the popover in view.\n   * Can be a boolean to enable/disable, or an object with padding and limiter options.\n   * @default undefined (enabled by default in overlay)\n   */\n  readonly shift = input<NgpShift, NgpShiftInput>(this.config.shift, {\n    alias: 'ngpPopoverTriggerShift',\n    transform: coerceShift,\n  });\n\n  /**\n   * Define the container in which the popover should be attached.\n   * @default document.body\n   */\n  readonly container = input<HTMLElement | string | null>(this.config.container, {\n    alias: 'ngpPopoverTriggerContainer',\n  });\n\n  /**\n   * Define whether the popover should close when clicking outside of it, or a guard function.\n   * @default true\n   */\n  readonly closeOnOutsideClick = input<NgpDismissGuard<Element>, NgpDismissGuardInput<Element>>(\n    this.config.closeOnOutsideClick,\n    {\n      alias: 'ngpPopoverTriggerCloseOnOutsideClick',\n      transform: dismissGuardAttribute,\n    },\n  );\n\n  /**\n   * Define whether the popover should close when the escape key is pressed, or a guard function.\n   * @default true\n   */\n  readonly closeOnEscape = input<\n    NgpDismissGuard<KeyboardEvent>,\n    NgpDismissGuardInput<KeyboardEvent>\n  >(this.config.closeOnEscape, {\n    alias: 'ngpPopoverTriggerCloseOnEscape',\n    transform: dismissGuardAttribute,\n  });\n\n  /**\n   * Defines how the popover behaves when the window is scrolled.\n   * @default 'reposition'\n   */\n  readonly scrollBehavior = input<'reposition' | 'block' | 'close'>(this.config.scrollBehavior, {\n    alias: 'ngpPopoverTriggerScrollBehavior',\n  });\n\n  /**\n   * Provide context to the popover. This can be used to pass data to the popover content.\n   */\n  readonly context = input<T>(undefined, {\n    alias: 'ngpPopoverTriggerContext',\n  });\n\n  /**\n   * Define an anchor element for positioning the popover.\n   * If provided, the popover will be positioned relative to this element instead of the trigger.\n   *\n   * The anchor is live, so rebinding it moves an open popover.\n   *\n   * An input only reaches this directive on the next change detection pass, which a press\n   * can outrun - use `setAnchor()` instead when the anchor is claimed during one.\n   */\n  readonly anchor = input<HTMLElement | null>(null, {\n    alias: 'ngpPopoverTriggerAnchor',\n  });\n\n  /**\n   * Define whether to track the trigger element position on every animation frame.\n   * Useful for moving elements like slider thumbs.\n   * @default false\n   */\n  readonly trackPosition = input<boolean, BooleanInput>(this.config.trackPosition, {\n    alias: 'ngpPopoverTriggerTrackPosition',\n    transform: booleanAttribute,\n  });\n\n  /**\n   * Define the cooldown duration in milliseconds.\n   * When moving from one popover to another within this duration,\n   * the showDelay is skipped for the new popover.\n   * @default 0\n   */\n  readonly cooldown = input<number, NumberInput>(this.config.cooldown, {\n    alias: 'ngpPopoverTriggerCooldown',\n    transform: numberAttribute,\n  });\n\n  /**\n   * When true, hiding the popover removes its content from the DOM but keeps the\n   * underlying component/view instance alive in memory instead of destroying it - a\n   * later show reuses the same instance rather than creating a new one, so the content\n   * is not re-instantiated and any one-time setup (e.g. a network fetch) is not repeated.\n   * The kept-alive view stays attached to change detection while it is hidden.\n   * @default false\n   */\n  readonly keepMounted = input<boolean, BooleanInput>(this.config.keepMounted, {\n    alias: 'ngpPopoverTriggerKeepMounted',\n    transform: booleanAttribute,\n  });\n\n  /**\n   * Event emitted when the popover open state changes.\n   */\n  readonly openChange = output<boolean>({\n    alias: 'ngpPopoverTriggerOpenChange',\n  });\n\n  /**\n   * The popover trigger state.\n   */\n  protected readonly state = ngpPopoverTrigger({\n    popover: this.popover,\n    disabled: this.disabled,\n    placement: this.placement,\n    offset: this.offset,\n    showDelay: this.showDelay,\n    hideDelay: this.hideDelay,\n    flip: this.flip,\n    shift: this.shift,\n    container: this.container,\n    closeOnOutsideClick: this.closeOnOutsideClick,\n    closeOnEscape: this.closeOnEscape,\n    scrollBehavior: this.scrollBehavior,\n    context: this.context,\n    anchor: this.anchor,\n    trackPosition: this.trackPosition,\n    cooldown: this.cooldown,\n    keepMounted: this.keepMounted,\n    onOpenChange: (value: boolean) => this.openChange.emit(value),\n  });\n\n  /**\n   * Show the popover.\n   * @returns A promise that resolves when the popover has been shown\n   */\n  show(): Promise<void> {\n    return this.state.show();\n  }\n\n  /**\n   * @internal\n   * Hide the popover.\n   * @returns A promise that resolves when the popover has been hidden\n   */\n  hide(origin: FocusOrigin = 'program'): Promise<void> {\n    return this.state.hide(origin);\n  }\n\n  /**\n   * Set the anchor the popover is positioned against, taking effect immediately rather than\n   * on the next change detection pass.\n   *\n   * Reach for this over `ngpPopoverTriggerAnchor` when the anchor is claimed during a press.\n   * Outside-press dismissal is decided on a capture-phase `mouseup`, which a fast tap can\n   * deliver in the same frame as the `pointerdown` that claimed the anchor - before the\n   * binding has reached this directive, so the press dismisses the popover instead of moving\n   * it. Writing the anchor here is visible to that check straight away.\n   * @param anchor - The new anchor element\n   */\n  setAnchor(anchor: HTMLElement | null): void {\n    this.state.setAnchor(anchor);\n  }\n}\n","import { signal, Signal } from '@angular/core';\nimport { explicitEffect, injectElementRef } from 'ng-primitives/internal';\nimport { injectOverlay } from 'ng-primitives/portal';\nimport {\n  attrBinding,\n  controlled,\n  createPrimitive,\n  dataBinding,\n  styleBinding,\n} from 'ng-primitives/state';\n\nexport interface NgpPopoverState {\n  /** The unique id of the tooltip. */\n  readonly id: Signal<string>;\n}\n\nexport interface NgpPopoverProps {\n  /** The unique id of the tooltip. */\n  readonly id?: Signal<string>;\n}\n\nexport const [NgpPopoverStateToken, ngpPopover, injectPopoverState, providePopoverState] =\n  createPrimitive('NgpPopover', ({ id: _id = signal<string>('') }: NgpPopoverProps) => {\n    const elementRef = injectElementRef<HTMLElement>();\n\n    const overlay = injectOverlay();\n    const id = controlled(_id);\n\n    // Register this element as the overlay outlet so floating-ui positions it correctly,\n    // even when this directive is on a nested child component rather than the portal root.\n    overlay.registerOutletElement(elementRef.nativeElement);\n    overlay.registerAvailableSizePrefix('--ngp-popover');\n\n    id.set(overlay.id());\n\n    // Host binding\n    attrBinding(elementRef, 'role', 'dialog');\n    attrBinding(elementRef, 'id', id);\n    styleBinding(elementRef, 'left.px', () => overlay.position().x ?? null);\n    styleBinding(elementRef, 'top.px', () => overlay.position().y ?? null);\n    styleBinding(elementRef, '--ngp-popover-trigger-width.px', () => overlay.triggerWidth());\n    styleBinding(elementRef, '--ngp-popover-transform-origin', () => overlay.transformOrigin());\n    styleBinding(elementRef, '--ngp-popover-available-width.px', () => overlay.availableWidth());\n    styleBinding(elementRef, '--ngp-popover-available-height.px', () => overlay.availableHeight());\n    dataBinding(elementRef, 'data-placement', () => overlay.finalPlacement() ?? null);\n    dataBinding(elementRef, 'data-overlay', '');\n\n    // Effect handle\n    explicitEffect([id], ([id]) => overlay.id.set(id));\n\n    return {\n      id,\n    } satisfies NgpPopoverState;\n  });\n","import { Directive, input } from '@angular/core';\nimport { NgpFocusTrap } from 'ng-primitives/focus-trap';\nimport { provideControlContainerIsolation } from 'ng-primitives/portal';\nimport { ngpPopover, providePopoverState } from './popover-state';\n\n/**\n * Apply the `ngpPopover` directive to an element that represents the popover. This typically would be a `div` inside an `ng-template`.\n */\n@Directive({\n  selector: '[ngpPopover]',\n  exportAs: 'ngpPopover',\n  hostDirectives: [NgpFocusTrap],\n  providers: [providePopoverState(), provideControlContainerIsolation()],\n})\nexport class NgpPopover {\n  /**\n   * The unique id of the tooltip.\n   */\n  readonly id = input('');\n\n  protected readonly state = ngpPopover({\n    id: this.id,\n  });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA6FO,MAAM,oBAAoB,GAAqB;AACpD,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,SAAS,EAAE,QAAQ;AACnB,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,mBAAmB,EAAE,IAAI;AACzB,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,cAAc,EAAE,YAAY;AAC5B,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,QAAQ,EAAE,CAAC;AACX,IAAA,WAAW,EAAE,KAAK;CACnB;AAEM,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAmB,uBAAuB,CAAC;AAElG;;;;AAIG;AACG,SAAU,oBAAoB,CAAC,MAAiC,EAAA;IACpE,OAAO;AACL,QAAA;AACE,YAAA,OAAO,EAAE,qBAAqB;AAC9B,YAAA,QAAQ,EAAE,EAAE,GAAG,oBAAoB,EAAE,GAAG,MAAM,EAAE;AACjD,SAAA;KACF;AACH;AAEA;;;AAGG;SACa,mBAAmB,GAAA;AACjC,IAAA,OAAO,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,oBAAoB;AAClF;;MC5Ha,CACX,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,GAAG,eAAe,CACjB,iBAAiB,EACjB,CAAC,EAAE,OAAO,EAAwB,KAA0B;AAC1D,IAAA,OAAO,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC;;MCPU,eAAe,CAAA;AAL5B,IAAA,WAAA,GAAA;AAME;;;AAGG;AACM,QAAA,IAAA,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