ng-primitives 0.121.0 → 0.122.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ng-primitives-toast.mjs","sources":["../../../../packages/ng-primitives/toast/src/config/toast-config.ts","../../../../packages/ng-primitives/toast/src/toast/toast-context.ts","../../../../packages/ng-primitives/toast/src/toast/toast-options.ts","../../../../packages/ng-primitives/toast/src/toast/toast-manager.ts","../../../../packages/ng-primitives/toast/src/toast/toast-timer.ts","../../../../packages/ng-primitives/toast/src/toast/toast.ts","../../../../packages/ng-primitives/toast/src/ng-primitives-toast.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\nimport { NgpToastPlacement, NgpToastSwipeDirection } from '../toast/toast';\n\nexport interface NgpToastConfig {\n /**\n * The position of the toast.\n */\n placement: NgpToastPlacement;\n\n /**\n * The duration of each toast.\n */\n duration: number;\n\n /**\n * The offset from the top of the viewport in pixels.\n */\n offsetTop: number;\n\n /**\n * The offset from the bottom of the viewport in pixels.\n */\n offsetBottom: number;\n\n /**\n * The offset from the left of the viewport in pixels.\n */\n offsetLeft: number;\n\n /**\n * The offset from the right of the viewport in pixels.\n */\n offsetRight: number;\n\n /**\n * Whether a toast can be dismissed by swiping.\n */\n dismissible: boolean;\n\n /**\n * The amount a toast must be swiped before it is considered dismissed.\n */\n swipeThreshold: number;\n\n /**\n * The default swipe directions supported by the toast.\n */\n swipeDirections: NgpToastSwipeDirection[];\n\n /**\n * The maximum number of toasts that can be displayed at once.\n */\n maxToasts: number;\n\n /**\n * The aria live setting.\n */\n ariaLive: string;\n\n /**\n * The gap between each toast.\n */\n gap: number;\n\n /**\n * The z-index of the toast container.\n * This is used to ensure that the toast container is always on top of other elements.\n */\n zIndex: number;\n\n /**\n * When true, only the front toast's timer will run.\n * When a toast is dismissed, the timer will start on the next toast.\n */\n sequential: boolean;\n\n /**\n * When true, toasts will not auto-dismiss and must be dismissed explicitly.\n */\n persistent: boolean;\n}\n\nexport const defaultToastConfig: NgpToastConfig = {\n gap: 14,\n duration: 3000,\n placement: 'top-end',\n offsetTop: 24,\n offsetBottom: 24,\n offsetLeft: 24,\n offsetRight: 24,\n swipeThreshold: 45,\n swipeDirections: ['left', 'right', 'top', 'bottom'],\n dismissible: true,\n maxToasts: 3,\n zIndex: 9999999,\n ariaLive: 'polite',\n sequential: false,\n persistent: false,\n};\n\nexport const NgpToastConfigToken = new InjectionToken<NgpToastConfig>('NgpToastConfigToken');\n\n/**\n * Provide the default Toast configuration\n * @param config The Toast configuration\n * @returns The provider\n */\nexport function provideToastConfig(config: Partial<NgpToastConfig>): Provider[] {\n return [\n {\n provide: NgpToastConfigToken,\n useValue: { ...defaultToastConfig, ...config },\n },\n ];\n}\n\n/**\n * Inject the Toast configuration\n * @returns The global Toast configuration\n */\nexport function injectToastConfig(): NgpToastConfig {\n return inject(NgpToastConfigToken, { optional: true }) ?? defaultToastConfig;\n}\n","import { inject, InjectionToken, ValueProvider } from '@angular/core';\n\nconst NgpToastContext = new InjectionToken<unknown>('NgpToastContext');\n\nexport function provideToastContext<T>(context: T): ValueProvider {\n return { provide: NgpToastContext, useValue: context };\n}\n\nexport function injectToastContext<T>(): T {\n return inject(NgpToastContext) as T;\n}\n","import { inject, InjectionToken, Signal, ValueProvider } from '@angular/core';\nimport type { NgpToast, NgpToastSwipeDirection, NgpToastPlacement } from './toast';\n\nconst NgpToastOptions = new InjectionToken<NgpToastOptions>('NgpToastOptions');\n\nexport function provideToastOptions(context: NgpToastOptions): ValueProvider {\n return { provide: NgpToastOptions, useValue: context };\n}\n\nexport function injectToastOptions(): NgpToastOptions {\n return inject(NgpToastOptions);\n}\n\nexport interface NgpToastOptions {\n /**\n * The position of the toast.\n */\n placement: NgpToastPlacement;\n\n /**\n * The duration of the toast in milliseconds.\n */\n duration: number;\n\n /**\n * A function to register the toast instance with the manager.\n * @internal\n */\n register: (toast: NgpToast) => void;\n\n /**\n * Whether the toast region is expanded.\n * @internal\n */\n expanded: Signal<boolean>;\n\n /**\n * Whether the toast supports swipe dismiss.\n * @internal\n */\n dismissible: boolean;\n\n /**\n * The swipe directions supported by the toast.\n * @internal\n */\n swipeDirections: NgpToastSwipeDirection[];\n\n /**\n * When true, only the front toast's timer will run.\n * @internal\n */\n sequential: boolean;\n\n /**\n * When true, the toast will not auto-dismiss and must be dismissed explicitly.\n * @internal\n */\n persistent: boolean;\n}\n","import {\n ApplicationRef,\n computed,\n inject,\n Injectable,\n Injector,\n RendererFactory2,\n signal,\n TemplateRef,\n Type,\n ViewContainerRef,\n} from '@angular/core';\nimport { createPortal, NgpPortal } from 'ng-primitives/portal';\nimport { injectToastConfig } from '../config/toast-config';\nimport { NgpToast, NgpToastPlacement, NgpToastSwipeDirection } from './toast';\nimport { provideToastContext } from './toast-context';\nimport { provideToastOptions } from './toast-options';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class NgpToastManager {\n private readonly config = injectToastConfig();\n private readonly applicationRef = inject(ApplicationRef);\n private readonly rendererFactory = inject(RendererFactory2);\n private readonly renderer = this.rendererFactory.createRenderer(null, null);\n private readonly injector = inject(Injector);\n // Map to store containers by placement\n private readonly containers = new Map<string, HTMLElement>();\n\n readonly toasts = signal<NgpToastRecord[]>([]);\n\n /** Signal that tracks which placements are expanded */\n private readonly expanded = signal<NgpToastPlacement[]>([]);\n\n /** Show a toast notification */\n show(toast: TemplateRef<void> | Type<unknown>, options: NgpToastOptions = {}): NgpToastRef {\n // services can't access the view container directly, so this is a workaround\n const rootComponent = this.applicationRef.components[0];\n const viewContainerRef = rootComponent?.injector.get(ViewContainerRef) ?? null;\n\n let instance: NgpToast | null = null;\n const placement = options.placement ?? this.config.placement;\n const duration = options.duration ?? this.config.duration;\n const container = this.getOrCreateContainer(placement);\n\n const portal = createPortal(\n toast,\n viewContainerRef,\n Injector.create({\n parent: this.injector,\n providers: [\n provideToastContext(options.context),\n provideToastOptions({\n placement,\n duration,\n register: (toast: NgpToast) => (instance = toast),\n expanded: computed(() => this.expanded().includes(placement)),\n dismissible: options.dismissible ?? this.config.dismissible,\n swipeDirections: options.swipeDirections ?? this.config.swipeDirections,\n sequential: options.sequential ?? this.config.sequential,\n persistent: options.persistent ?? this.config.persistent,\n }),\n ],\n }),\n {\n // Hide the toast when the dismiss method is called\n dismiss: () => this.dismiss(instance!),\n context: options.context,\n },\n );\n\n portal.attach(container);\n\n // Add the toast to the list of toasts\n if (!instance) {\n throw new Error('A toast must have the NgpToast directive applied.');\n }\n\n this.toasts.update(toasts => [{ instance: instance!, portal }, ...toasts]);\n\n return {\n dismiss: () => this.dismiss(instance!),\n };\n }\n\n /** Hide a toast notification */\n async dismiss(toast: NgpToast): Promise<void> {\n const ref = this.toasts().find(t => t.instance === toast);\n\n if (ref) {\n // Detach the portal from the container\n await ref.portal.detach();\n\n // Remove the toast from the list of toasts\n this.toasts.update(toasts => toasts.filter(t => t !== ref));\n\n // if there are no more toasts, ensure the container is no longer considered expanded\n if (this.toasts().length === 0) {\n this.expanded.update(expanded => expanded.filter(p => p !== toast.options.placement));\n }\n }\n }\n\n /**\n * Lazily create or get a container for a given placement.\n */\n private getOrCreateContainer(placement: string): HTMLElement {\n if (this.containers.has(placement)) {\n return this.containers.get(placement)!;\n }\n const container = this.createContainer(placement);\n this.containers.set(placement, container);\n return container;\n }\n\n /**\n * Create a section in which toasts will be rendered for a specific placement.\n */\n private createContainer(placement: string): HTMLElement {\n const container = this.renderer.createElement('section') as HTMLElement;\n this.renderer.setAttribute(container, 'aria-live', this.config.ariaLive);\n this.renderer.setAttribute(container, 'aria-atomic', 'false');\n this.renderer.setAttribute(container, 'tabindex', '-1');\n this.renderer.setAttribute(container, 'data-ngp-toast-container', placement);\n container.style.setProperty('position', 'fixed');\n container.style.setProperty('z-index', `${this.config.zIndex}`);\n container.style.setProperty('--ngp-toast-offset-top', `${this.config.offsetTop}px`);\n container.style.setProperty('--ngp-toast-offset-bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('--ngp-toast-offset-left', `${this.config.offsetLeft}px`);\n container.style.setProperty('--ngp-toast-offset-right', `${this.config.offsetRight}px`);\n container.style.setProperty('--ngp-toast-gap', `${this.config.gap}px`);\n\n // mark the container as expanded\n this.renderer.listen(container, 'mouseenter', () =>\n this.expanded.update(expanded => [...expanded, placement as NgpToastPlacement]),\n );\n\n this.renderer.listen(container, 'mouseleave', () => {\n this.expanded.update(expanded =>\n expanded.filter(p => p !== (placement as NgpToastPlacement)),\n );\n });\n\n // Set placement styles\n switch (placement) {\n case 'top-start':\n container.style.setProperty('top', `${this.config.offsetTop}px`);\n container.style.setProperty('left', `${this.config.offsetLeft}px`);\n break;\n case 'top-center':\n container.style.setProperty('top', `${this.config.offsetTop}px`);\n container.style.setProperty('left', '50%');\n container.style.setProperty('transform', 'translateX(-50%)');\n break;\n case 'top-end':\n container.style.setProperty('top', `${this.config.offsetTop}px`);\n container.style.setProperty('right', `${this.config.offsetRight}px`);\n break;\n case 'bottom-start':\n container.style.setProperty('bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('left', `${this.config.offsetLeft}px`);\n break;\n case 'bottom-center':\n container.style.setProperty('bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('left', '50%');\n container.style.setProperty('transform', 'translateX(-50%)');\n break;\n case 'bottom-end':\n container.style.setProperty('bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('right', `${this.config.offsetRight}px`);\n break;\n default:\n throw new Error(`Unknown toast placement: ${placement}`);\n }\n\n this.renderer.appendChild(document.body, container);\n return container;\n }\n}\n\nexport interface NgpToastOptions<T = unknown> {\n /** The position of the toast */\n placement?: NgpToastPlacement;\n\n /** The duration of the toast in milliseconds */\n duration?: number;\n\n /** Whether the toast is dismissible */\n dismissible?: boolean;\n\n /** The swipe directions supported by the toast */\n swipeDirections?: NgpToastSwipeDirection[];\n\n /** The context to make available to the toast */\n context?: T;\n\n /** When enabled, only the front toast's timer will run */\n sequential?: boolean;\n\n /** When true, the toast will not auto-dismiss and must be dismissed explicitly */\n persistent?: boolean;\n}\n\ninterface NgpToastRecord {\n instance: NgpToast;\n portal: NgpPortal;\n}\n\nexport interface NgpToastRef {\n dismiss(): Promise<void>;\n}\n","class NgpToastTimer {\n private startTime: number | null = null;\n private remaining: number;\n private timeoutId: ReturnType<typeof setTimeout> | null = null;\n private isRunning = false;\n\n constructor(\n private duration: number,\n private callback: () => void,\n private readonly persistent = false,\n ) {\n this.remaining = duration;\n }\n\n start(): void {\n if (this.persistent) return;\n if (this.isRunning) return;\n\n this.isRunning = true;\n this.startTime = Date.now();\n\n this.timeoutId = setTimeout(() => {\n this.isRunning = false;\n this.callback();\n }, this.remaining);\n }\n\n pause(): void {\n if (!this.isRunning || this.startTime === null) return;\n\n this.isRunning = false;\n clearTimeout(this.timeoutId!);\n\n const elapsed = Date.now() - this.startTime;\n this.remaining -= elapsed;\n this.startTime = null;\n this.timeoutId = null;\n }\n\n stop(): void {\n this.isRunning = false;\n clearTimeout(this.timeoutId!);\n this.timeoutId = null;\n this.startTime = null;\n this.remaining = this.duration;\n }\n}\n\nexport interface NgpToastTimerOptions {\n /**\n * When true, the timer never fires. `start()`, `pause()`, and `stop()` are safe\n * to call but have no effect on the callback.\n */\n persistent?: boolean;\n}\n\nexport function toastTimer(\n duration: number,\n callback: () => void,\n options: NgpToastTimerOptions = {},\n): NgpToastTimer {\n return new NgpToastTimer(duration, callback, options.persistent);\n}\n","import { InteractivityChecker } from '@angular/cdk/a11y';\nimport {\n afterNextRender,\n computed,\n Directive,\n HostListener,\n inject,\n Injector,\n signal,\n} from '@angular/core';\nimport { explicitEffect, injectDimensions } from 'ng-primitives/internal';\nimport { injectToastConfig } from '../config/toast-config';\nimport { NgpToastManager } from './toast-manager';\nimport { injectToastOptions } from './toast-options';\nimport { toastTimer } from './toast-timer';\n\n@Directive({\n selector: '[ngpToast]',\n exportAs: 'ngpToast',\n host: {\n '[attr.data-position-x]': 'x',\n '[attr.data-position-y]': 'y',\n '[attr.data-visible]': 'visible()',\n '[attr.data-front]': 'index() === 0',\n '[attr.data-swiping]': 'swiping()',\n '[attr.data-swipe-direction]': 'swipeOutDirection()',\n '[attr.data-expanded]': 'options.expanded()',\n '[style.--ngp-toast-gap.px]': 'config.gap',\n '[style.--ngp-toast-z-index]': 'zIndex()',\n '[style.--ngp-toasts-before]': 'index()',\n '[style.--ngp-toast-index]': 'index() + 1',\n '[style.--ngp-toast-height.px]': 'dimensions().height',\n '[style.--ngp-toast-offset.px]': 'offset()',\n '[style.--ngp-toast-front-height.px]': 'frontToastHeight()',\n '[style.--ngp-toast-swipe-amount-x.px]': 'swipeAmount().x',\n '[style.--ngp-toast-swipe-amount-y.px]': 'swipeAmount().y',\n '[style.--ngp-toast-swipe-x]': 'swipeAmount().x',\n '[style.--ngp-toast-swipe-y]': 'swipeAmount().y',\n },\n})\nexport class NgpToast {\n private readonly manager = inject(NgpToastManager);\n private readonly injector = inject(Injector);\n protected readonly config = injectToastConfig();\n /** @internal */\n readonly options = injectToastOptions();\n private readonly interactivityChecker = inject(InteractivityChecker);\n private readonly isInteracting = signal(false);\n\n private pointerStartRef: { x: number; y: number } | null = null;\n private dragStartTime: Date | null = null;\n protected readonly swiping = signal(false);\n protected readonly swipeDirection = signal<'x' | 'y' | null>(null);\n protected readonly swipeAmount = signal({ x: 0, y: 0 });\n\n protected readonly swipeOutDirection = computed(() => {\n const direction = this.swipeDirection();\n if (direction === 'x') {\n return this.swipeAmount().x > 0 ? 'right' : 'left';\n } else if (direction === 'y') {\n return this.swipeAmount().y > 0 ? 'bottom' : 'top';\n }\n return null;\n });\n\n /**\n * Get all toasts that are currently being displayed in the same position.\n */\n private readonly toasts = computed(() =>\n this.manager\n .toasts()\n .filter(toast => toast.instance.options.placement === this.options.placement),\n );\n\n /**\n * The number of toasts that are currently being displayed before this toast.\n */\n protected readonly index = computed(() => {\n return this.toasts().findIndex(toast => toast.instance === this);\n });\n\n /**\n * Determine the position of the toast in the list of toasts.\n * This is the combination of the heights of all the toasts before this one, plus the gap between them.\n */\n protected readonly offset = computed(() => {\n const gap = this.config.gap;\n\n return this.toasts()\n .slice(0, this.index())\n .reduce((acc, toast) => acc + toast.instance.dimensions().height + gap, 0);\n });\n\n /**\n * Determine if this toast is visible.\n * Visible considers the maximum number of toasts that can be displayed at once, and the last x toasts that are currently being displayed.\n */\n protected readonly visible = computed(() => {\n const maxToasts = this.config.maxToasts;\n // determine if this toast is within the maximum number of toasts that can be displayed\n return this.index() < maxToasts || this.toasts().length <= maxToasts;\n });\n\n /**\n * Determine the height of the front toast.\n * This is used to determine the height of the toast when it is not expanded.\n */\n protected readonly frontToastHeight = computed(() => {\n // get the first toast in the list with height - as when a new toast is added, it may not initially have dimensions\n return (\n this.toasts()\n .find(toast => toast.instance.dimensions().height)\n ?.instance.dimensions().height || 0\n );\n });\n\n /**\n * Determine the z-index of the toast. This is the inverse of the index.\n * The first toast will have the highest z-index, and the last toast will have the lowest z-index.\n * This is used to ensure that the first toast is always on top of the others.\n */\n protected readonly zIndex = computed(() => this.toasts().length - this.index());\n\n /**\n * The height of the toast in pixels.\n */\n protected readonly dimensions = injectDimensions();\n\n /**\n * The x position of the toast.\n */\n readonly x = this.options.placement.split('-')[1] || 'end';\n\n /**\n * The y position of the toast.\n */\n readonly y = this.options.placement.split('-')[0] || 'top';\n\n /**\n * The toast timer instance.\n */\n private readonly timer = toastTimer(this.options.duration, () => this.manager.dismiss(this), {\n persistent: this.options.persistent,\n });\n\n constructor() {\n this.options.register(this);\n\n // Start the timer when the toast is created\n this.timer.start();\n\n // Pause the timer when the toast is expanded or when the user is interacting with it\n // Also pause when in sequential mode and this toast is not at the front\n explicitEffect(\n [this.options.expanded, this.isInteracting, this.index, () => this.options.sequential],\n ([expanded, interacting, index, sequential]) => {\n // If the toast is expanded, or if the user is interacting with it, pause the timer\n // In sequential mode, also pause if this toast is not at the front\n if (expanded || interacting || (sequential && index > 0)) {\n this.timer.pause();\n } else {\n this.timer.start();\n }\n },\n );\n }\n\n @HostListener('pointerdown', ['$event'])\n protected onPointerDown(event: PointerEvent): void {\n // right click should not trigger swipe and we check if the toast is dismissible\n if (event.button === 2 || !this.options.dismissible) {\n return;\n }\n\n this.isInteracting.set(true);\n\n // we need to check if the pointer is on an interactive element, if so, we should not start swiping\n if (this.interactivityChecker.isFocusable(event.target as HTMLElement)) {\n return;\n }\n\n this.dragStartTime = new Date();\n // Ensure we maintain correct pointer capture even when going outside of the toast (e.g. when swiping)\n (event.target as HTMLElement).setPointerCapture(event.pointerId);\n this.swiping.set(true);\n this.pointerStartRef = { x: event.clientX, y: event.clientY };\n }\n\n @HostListener('pointermove', ['$event'])\n protected onPointerMove(event: PointerEvent): void {\n if (!this.pointerStartRef || !this.options.dismissible) {\n return;\n }\n\n const isHighlighted = window.getSelection()?.toString().length ?? 0 > 0;\n\n if (isHighlighted) {\n return;\n }\n\n const yDelta = event.clientY - this.pointerStartRef.y;\n const xDelta = event.clientX - this.pointerStartRef.x;\n\n const swipeDirections = this.options.swipeDirections;\n\n // Determine swipe direction if not already locked\n if (!this.swipeDirection() && (Math.abs(xDelta) > 1 || Math.abs(yDelta) > 1)) {\n this.swipeDirection.set(Math.abs(xDelta) > Math.abs(yDelta) ? 'x' : 'y');\n }\n\n const swipeAmount = { x: 0, y: 0 };\n\n const getDampening = (delta: number) => {\n const factor = Math.abs(delta) / 20;\n\n return 1 / (1.5 + factor);\n };\n\n // Only apply swipe in the locked direction\n if (this.swipeDirection() === 'y') {\n // Handle vertical swipes\n if (swipeDirections.includes('top') || swipeDirections.includes('bottom')) {\n if (\n (swipeDirections.includes('top') && yDelta < 0) ||\n (swipeDirections.includes('bottom') && yDelta > 0)\n ) {\n swipeAmount.y = yDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = yDelta * getDampening(yDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.y = Math.abs(dampenedDelta) < Math.abs(yDelta) ? dampenedDelta : yDelta;\n }\n }\n } else if (this.swipeDirection() === 'x') {\n // Handle horizontal swipes\n if (swipeDirections.includes('left') || swipeDirections.includes('right')) {\n if (\n (swipeDirections.includes('left') && xDelta < 0) ||\n (swipeDirections.includes('right') && xDelta > 0)\n ) {\n swipeAmount.x = xDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = xDelta * getDampening(xDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.x = Math.abs(dampenedDelta) < Math.abs(xDelta) ? dampenedDelta : xDelta;\n }\n }\n }\n\n this.swipeAmount.set({ x: swipeAmount.x, y: swipeAmount.y });\n\n if (Math.abs(swipeAmount.x) > 0 || Math.abs(swipeAmount.y) > 0) {\n this.swiping.set(true);\n }\n }\n\n @HostListener('pointerup')\n protected onPointerUp(): void {\n this.isInteracting.set(false);\n\n if (\n !this.config.dismissible ||\n !this.pointerStartRef ||\n !this.swiping() ||\n !this.dragStartTime\n ) {\n return;\n }\n\n this.pointerStartRef = null;\n\n const swipeAmountX = this.swipeAmount().x;\n const swipeAmountY = this.swipeAmount().y;\n const timeTaken = new Date().getTime() - this.dragStartTime.getTime();\n\n const swipeAmount = this.swipeDirection() === 'x' ? swipeAmountX : swipeAmountY;\n const velocity = Math.abs(swipeAmount) / timeTaken;\n\n if (Math.abs(swipeAmount) >= this.config.swipeThreshold || velocity > 0.11) {\n afterNextRender({ write: () => this.manager.dismiss(this) }, { injector: this.injector });\n return;\n } else {\n this.swipeAmount.set({ x: 0, y: 0 });\n }\n\n // Reset swipe state\n this.swipeDirection.set(null);\n this.swiping.set(false);\n }\n}\n\nexport type NgpToastSwipeDirection = 'top' | 'right' | 'bottom' | 'left';\n\nexport type NgpToastPlacement =\n | 'top-start'\n | 'top-end'\n | 'top-center'\n | 'bottom-start'\n | 'bottom-end'\n | 'bottom-center';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAkFO,MAAM,kBAAkB,GAAmB;AAChD,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,QAAQ,EAAE,IA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AqB;AACpD,wBAAA,sBAAsB,EAAE,oBAAoB;AAC5C,wBAAA,4BAA4B,EAAE,YAAY;AAC1C,wBAAA,6BAA6B,EAAE,UAAU;AACzC,wBAAA,6BAA6B,EAAE,SAAS;AACxC,wBAAA,2BAA2B,EAAE,aAAa;AAC1C,wBAAA,+BAA+B,EAAE,qBAAqB;AACtD,wBAAA,+BAA+B,EAAE,UAAU;AAC3C,wBAAA,qCAAqC,EAAE,oBAAoB;AAC3D,wBAAA,uCAAuC,EAAE,iBAAiB;AAC1D,wBAAA,uCAAuC,EAAE,iBAAiB;AAC1D,wBAAA,6BAA6B,EAAE,iBAAiB;AAChD,wBAAA,6BAA6B,EAAE,iBAAiB;AACjD,qBAAA;AACF,iBAAA;;sBAgIE,YAAY;uBAAC,aAAa,EAAE,CAAC,QAAQ,CAAC;;sBAqBtC,YAAY;uBAAC,aAAa,EAAE,CAAC,QAAQ,CAAC;;sBAsEtC,YAAY;uBAAC,WAAW;;;AClQ3B;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-primitives-toast.mjs","sources":["../../../../packages/ng-primitives/toast/src/config/toast-config.ts","../../../../packages/ng-primitives/toast/src/toast/toast-context.ts","../../../../packages/ng-primitives/toast/src/toast/toast-options.ts","../../../../packages/ng-primitives/toast/src/toast/toast-manager.ts","../../../../packages/ng-primitives/toast/src/toast/toast-timer.ts","../../../../packages/ng-primitives/toast/src/toast/toast.ts","../../../../packages/ng-primitives/toast/src/ng-primitives-toast.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\nimport { NgpToastPlacement, NgpToastSwipeDirection } from '../toast/toast';\n\nexport interface NgpToastConfig {\n /**\n * The position of the toast.\n */\n placement: NgpToastPlacement;\n\n /**\n * The duration of each toast.\n */\n duration: number;\n\n /**\n * The offset from the top of the viewport in pixels.\n */\n offsetTop: number;\n\n /**\n * The offset from the bottom of the viewport in pixels.\n */\n offsetBottom: number;\n\n /**\n * The offset from the left of the viewport in pixels.\n */\n offsetLeft: number;\n\n /**\n * The offset from the right of the viewport in pixels.\n */\n offsetRight: number;\n\n /**\n * Whether a toast can be dismissed by swiping.\n */\n dismissible: boolean;\n\n /**\n * The amount a toast must be swiped before it is considered dismissed.\n */\n swipeThreshold: number;\n\n /**\n * The default swipe directions supported by the toast.\n */\n swipeDirections: NgpToastSwipeDirection[];\n\n /**\n * The maximum number of toasts that can be displayed at once.\n */\n maxToasts: number;\n\n /**\n * The aria live setting.\n */\n ariaLive: string;\n\n /**\n * The gap between each toast.\n */\n gap: number;\n\n /**\n * The z-index of the toast container.\n * This is used to ensure that the toast container is always on top of other elements.\n */\n zIndex: number;\n\n /**\n * When true, only the front toast's timer will run.\n * When a toast is dismissed, the timer will start on the next toast.\n */\n sequential: boolean;\n\n /**\n * When true, toasts will not auto-dismiss and must be dismissed explicitly.\n */\n persistent: boolean;\n}\n\nexport const defaultToastConfig: NgpToastConfig = {\n gap: 14,\n duration: 3000,\n placement: 'top-end',\n offsetTop: 24,\n offsetBottom: 24,\n offsetLeft: 24,\n offsetRight: 24,\n swipeThreshold: 45,\n swipeDirections: ['left', 'right', 'top', 'bottom'],\n dismissible: true,\n maxToasts: 3,\n zIndex: 9999999,\n ariaLive: 'polite',\n sequential: false,\n persistent: false,\n};\n\nexport const NgpToastConfigToken = new InjectionToken<NgpToastConfig>('NgpToastConfigToken');\n\n/**\n * Provide the default Toast configuration\n * @param config The Toast configuration\n * @returns The provider\n */\nexport function provideToastConfig(config: Partial<NgpToastConfig>): Provider[] {\n return [\n {\n provide: NgpToastConfigToken,\n useValue: { ...defaultToastConfig, ...config },\n },\n ];\n}\n\n/**\n * Inject the Toast configuration\n * @returns The global Toast configuration\n */\nexport function injectToastConfig(): NgpToastConfig {\n return inject(NgpToastConfigToken, { optional: true }) ?? defaultToastConfig;\n}\n","import { inject, InjectionToken, ValueProvider } from '@angular/core';\n\nconst NgpToastContext = new InjectionToken<unknown>('NgpToastContext');\n\nexport function provideToastContext<T>(context: T): ValueProvider {\n return { provide: NgpToastContext, useValue: context };\n}\n\nexport function injectToastContext<T>(): T {\n return inject(NgpToastContext) as T;\n}\n","import { inject, InjectionToken, Signal, ValueProvider } from '@angular/core';\nimport type { NgpToast, NgpToastSwipeDirection, NgpToastPlacement } from './toast';\n\nconst NgpToastOptions = new InjectionToken<NgpToastOptions>('NgpToastOptions');\n\nexport function provideToastOptions(context: NgpToastOptions): ValueProvider {\n return { provide: NgpToastOptions, useValue: context };\n}\n\nexport function injectToastOptions(): NgpToastOptions {\n return inject(NgpToastOptions);\n}\n\nexport interface NgpToastOptions {\n /**\n * The position of the toast.\n */\n placement: NgpToastPlacement;\n\n /**\n * The duration of the toast in milliseconds.\n */\n duration: number;\n\n /**\n * A function to register the toast instance with the manager.\n * @internal\n */\n register: (toast: NgpToast) => void;\n\n /**\n * Whether the toast region is expanded.\n * @internal\n */\n expanded: Signal<boolean>;\n\n /**\n * Whether the toast supports swipe dismiss.\n * @internal\n */\n dismissible: boolean;\n\n /**\n * The swipe directions supported by the toast.\n * @internal\n */\n swipeDirections: NgpToastSwipeDirection[];\n\n /**\n * When true, only the front toast's timer will run.\n * @internal\n */\n sequential: boolean;\n\n /**\n * When true, the toast will not auto-dismiss and must be dismissed explicitly.\n * @internal\n */\n persistent: boolean;\n}\n","import {\n ApplicationRef,\n computed,\n inject,\n Injectable,\n Injector,\n RendererFactory2,\n signal,\n TemplateRef,\n Type,\n ViewContainerRef,\n} from '@angular/core';\nimport { createPortal, NgpPortal } from 'ng-primitives/portal';\nimport { injectToastConfig } from '../config/toast-config';\nimport { NgpToast, NgpToastPlacement, NgpToastSwipeDirection } from './toast';\nimport { provideToastContext } from './toast-context';\nimport { provideToastOptions } from './toast-options';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class NgpToastManager {\n private readonly config = injectToastConfig();\n private readonly applicationRef = inject(ApplicationRef);\n private readonly rendererFactory = inject(RendererFactory2);\n private readonly renderer = this.rendererFactory.createRenderer(null, null);\n private readonly injector = inject(Injector);\n // Map to store containers by placement\n private readonly containers = new Map<string, HTMLElement>();\n\n readonly toasts = signal<NgpToastRecord[]>([]);\n\n /** Signal that tracks which placements are expanded */\n private readonly expanded = signal<NgpToastPlacement[]>([]);\n\n /** Show a toast notification */\n show(toast: TemplateRef<void> | Type<unknown>, options: NgpToastOptions = {}): NgpToastRef {\n // services can't access the view container directly, so this is a workaround\n const rootComponent = this.applicationRef.components[0];\n const viewContainerRef = rootComponent?.injector.get(ViewContainerRef) ?? null;\n\n let instance: NgpToast | null = null;\n const placement = options.placement ?? this.config.placement;\n const duration = options.duration ?? this.config.duration;\n const container = this.getOrCreateContainer(placement);\n\n const portal = createPortal(\n toast,\n viewContainerRef,\n Injector.create({\n parent: this.injector,\n providers: [\n provideToastContext(options.context),\n provideToastOptions({\n placement,\n duration,\n register: (toast: NgpToast) => (instance = toast),\n expanded: computed(() => this.expanded().includes(placement)),\n dismissible: options.dismissible ?? this.config.dismissible,\n swipeDirections: options.swipeDirections ?? this.config.swipeDirections,\n sequential: options.sequential ?? this.config.sequential,\n persistent: options.persistent ?? this.config.persistent,\n }),\n ],\n }),\n {\n // Hide the toast when the dismiss method is called\n dismiss: () => this.dismiss(instance!),\n context: options.context,\n },\n );\n\n portal.attach(container);\n\n // Add the toast to the list of toasts\n if (!instance) {\n throw new Error('A toast must have the NgpToast directive applied.');\n }\n\n this.toasts.update(toasts => [{ instance: instance!, portal }, ...toasts]);\n\n return {\n dismiss: () => this.dismiss(instance!),\n };\n }\n\n /** Hide a toast notification */\n async dismiss(toast: NgpToast): Promise<void> {\n const ref = this.toasts().find(t => t.instance === toast);\n\n if (ref) {\n // Detach the portal from the container\n await ref.portal.detach();\n\n // Remove the toast from the list of toasts\n this.toasts.update(toasts => toasts.filter(t => t !== ref));\n\n // if there are no more toasts, ensure the container is no longer considered expanded\n if (this.toasts().length === 0) {\n this.expanded.update(expanded => expanded.filter(p => p !== toast.options.placement));\n }\n }\n }\n\n /**\n * Lazily create or get a container for a given placement.\n */\n private getOrCreateContainer(placement: string): HTMLElement {\n if (this.containers.has(placement)) {\n return this.containers.get(placement)!;\n }\n const container = this.createContainer(placement);\n this.containers.set(placement, container);\n return container;\n }\n\n /**\n * Create a section in which toasts will be rendered for a specific placement.\n */\n private createContainer(placement: string): HTMLElement {\n const container = this.renderer.createElement('section') as HTMLElement;\n this.renderer.setAttribute(container, 'aria-live', this.config.ariaLive);\n this.renderer.setAttribute(container, 'aria-atomic', 'false');\n this.renderer.setAttribute(container, 'tabindex', '-1');\n this.renderer.setAttribute(container, 'data-ngp-toast-container', placement);\n container.style.setProperty('position', 'fixed');\n container.style.setProperty('z-index', `${this.config.zIndex}`);\n container.style.setProperty('--ngp-toast-offset-top', `${this.config.offsetTop}px`);\n container.style.setProperty('--ngp-toast-offset-bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('--ngp-toast-offset-left', `${this.config.offsetLeft}px`);\n container.style.setProperty('--ngp-toast-offset-right', `${this.config.offsetRight}px`);\n container.style.setProperty('--ngp-toast-gap', `${this.config.gap}px`);\n\n // mark the container as expanded\n this.renderer.listen(container, 'mouseenter', () =>\n this.expanded.update(expanded => [...expanded, placement as NgpToastPlacement]),\n );\n\n this.renderer.listen(container, 'mouseleave', () => {\n this.expanded.update(expanded =>\n expanded.filter(p => p !== (placement as NgpToastPlacement)),\n );\n });\n\n // Set placement styles\n switch (placement) {\n case 'top-start':\n container.style.setProperty('top', `${this.config.offsetTop}px`);\n container.style.setProperty('left', `${this.config.offsetLeft}px`);\n break;\n case 'top-center':\n container.style.setProperty('top', `${this.config.offsetTop}px`);\n container.style.setProperty('left', '50%');\n container.style.setProperty('transform', 'translateX(-50%)');\n break;\n case 'top-end':\n container.style.setProperty('top', `${this.config.offsetTop}px`);\n container.style.setProperty('right', `${this.config.offsetRight}px`);\n break;\n case 'bottom-start':\n container.style.setProperty('bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('left', `${this.config.offsetLeft}px`);\n break;\n case 'bottom-center':\n container.style.setProperty('bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('left', '50%');\n container.style.setProperty('transform', 'translateX(-50%)');\n break;\n case 'bottom-end':\n container.style.setProperty('bottom', `${this.config.offsetBottom}px`);\n container.style.setProperty('right', `${this.config.offsetRight}px`);\n break;\n default:\n throw new Error(`Unknown toast placement: ${placement}`);\n }\n\n this.renderer.appendChild(document.body, container);\n return container;\n }\n}\n\nexport interface NgpToastOptions<T = unknown> {\n /** The position of the toast */\n placement?: NgpToastPlacement;\n\n /** The duration of the toast in milliseconds */\n duration?: number;\n\n /** Whether the toast is dismissible */\n dismissible?: boolean;\n\n /** The swipe directions supported by the toast */\n swipeDirections?: NgpToastSwipeDirection[];\n\n /** The context to make available to the toast */\n context?: T;\n\n /** When enabled, only the front toast's timer will run */\n sequential?: boolean;\n\n /** When true, the toast will not auto-dismiss and must be dismissed explicitly */\n persistent?: boolean;\n}\n\ninterface NgpToastRecord {\n instance: NgpToast;\n portal: NgpPortal;\n}\n\nexport interface NgpToastRef {\n dismiss(): Promise<void>;\n}\n","class NgpToastTimer {\n private startTime: number | null = null;\n private remaining: number;\n private timeoutId: ReturnType<typeof setTimeout> | null = null;\n private isRunning = false;\n\n constructor(\n private duration: number,\n private callback: () => void,\n private readonly persistent = false,\n ) {\n this.remaining = duration;\n }\n\n start(): void {\n if (this.persistent) return;\n if (this.isRunning) return;\n\n this.isRunning = true;\n this.startTime = Date.now();\n\n this.timeoutId = setTimeout(() => {\n this.isRunning = false;\n this.callback();\n }, this.remaining);\n }\n\n pause(): void {\n if (!this.isRunning || this.startTime === null) return;\n\n this.isRunning = false;\n clearTimeout(this.timeoutId!);\n\n const elapsed = Date.now() - this.startTime;\n this.remaining -= elapsed;\n this.startTime = null;\n this.timeoutId = null;\n }\n\n stop(): void {\n this.isRunning = false;\n clearTimeout(this.timeoutId!);\n this.timeoutId = null;\n this.startTime = null;\n this.remaining = this.duration;\n }\n}\n\nexport interface NgpToastTimerOptions {\n /**\n * When true, the timer never fires. `start()`, `pause()`, and `stop()` are safe\n * to call but have no effect on the callback.\n */\n persistent?: boolean;\n}\n\nexport function toastTimer(\n duration: number,\n callback: () => void,\n options: NgpToastTimerOptions = {},\n): NgpToastTimer {\n return new NgpToastTimer(duration, callback, options.persistent);\n}\n","import { InteractivityChecker } from '@angular/cdk/a11y';\nimport {\n afterNextRender,\n computed,\n Directive,\n ElementRef,\n inject,\n Injector,\n signal,\n} from '@angular/core';\nimport { explicitEffect, injectDimensions } from 'ng-primitives/internal';\nimport { listener } from 'ng-primitives/state';\nimport { injectToastConfig } from '../config/toast-config';\nimport { NgpToastManager } from './toast-manager';\nimport { injectToastOptions } from './toast-options';\nimport { toastTimer } from './toast-timer';\n\n@Directive({\n selector: '[ngpToast]',\n exportAs: 'ngpToast',\n host: {\n '[attr.data-position-x]': 'x',\n '[attr.data-position-y]': 'y',\n '[attr.data-visible]': 'visible()',\n '[attr.data-front]': 'index() === 0',\n '[attr.data-swiping]': 'swiping()',\n '[attr.data-swipe-direction]': 'swipeOutDirection()',\n '[attr.data-expanded]': 'options.expanded()',\n '[style.--ngp-toast-gap.px]': 'config.gap',\n '[style.--ngp-toast-z-index]': 'zIndex()',\n '[style.--ngp-toasts-before]': 'index()',\n '[style.--ngp-toast-index]': 'index() + 1',\n '[style.--ngp-toast-height.px]': 'dimensions().height',\n '[style.--ngp-toast-offset.px]': 'offset()',\n '[style.--ngp-toast-front-height.px]': 'frontToastHeight()',\n '[style.--ngp-toast-swipe-amount-x.px]': 'swipeAmount().x',\n '[style.--ngp-toast-swipe-amount-y.px]': 'swipeAmount().y',\n '[style.--ngp-toast-swipe-x]': 'swipeAmount().x',\n '[style.--ngp-toast-swipe-y]': 'swipeAmount().y',\n },\n})\nexport class NgpToast {\n private readonly manager = inject(NgpToastManager);\n private readonly injector = inject(Injector);\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n protected readonly config = injectToastConfig();\n /** @internal */\n readonly options = injectToastOptions();\n private readonly interactivityChecker = inject(InteractivityChecker);\n private readonly isInteracting = signal(false);\n\n private pointerStartRef: { x: number; y: number } | null = null;\n private dragStartTime: Date | null = null;\n protected readonly swiping = signal(false);\n protected readonly swipeDirection = signal<'x' | 'y' | null>(null);\n protected readonly swipeAmount = signal({ x: 0, y: 0 });\n\n protected readonly swipeOutDirection = computed(() => {\n const direction = this.swipeDirection();\n if (direction === 'x') {\n return this.swipeAmount().x > 0 ? 'right' : 'left';\n } else if (direction === 'y') {\n return this.swipeAmount().y > 0 ? 'bottom' : 'top';\n }\n return null;\n });\n\n /**\n * Get all toasts that are currently being displayed in the same position.\n */\n private readonly toasts = computed(() =>\n this.manager\n .toasts()\n .filter(toast => toast.instance.options.placement === this.options.placement),\n );\n\n /**\n * The number of toasts that are currently being displayed before this toast.\n */\n protected readonly index = computed(() => {\n return this.toasts().findIndex(toast => toast.instance === this);\n });\n\n /**\n * Determine the position of the toast in the list of toasts.\n * This is the combination of the heights of all the toasts before this one, plus the gap between them.\n */\n protected readonly offset = computed(() => {\n const gap = this.config.gap;\n\n return this.toasts()\n .slice(0, this.index())\n .reduce((acc, toast) => acc + toast.instance.dimensions().height + gap, 0);\n });\n\n /**\n * Determine if this toast is visible.\n * Visible considers the maximum number of toasts that can be displayed at once, and the last x toasts that are currently being displayed.\n */\n protected readonly visible = computed(() => {\n const maxToasts = this.config.maxToasts;\n // determine if this toast is within the maximum number of toasts that can be displayed\n return this.index() < maxToasts || this.toasts().length <= maxToasts;\n });\n\n /**\n * Determine the height of the front toast.\n * This is used to determine the height of the toast when it is not expanded.\n */\n protected readonly frontToastHeight = computed(() => {\n // get the first toast in the list with height - as when a new toast is added, it may not initially have dimensions\n return (\n this.toasts()\n .find(toast => toast.instance.dimensions().height)\n ?.instance.dimensions().height || 0\n );\n });\n\n /**\n * Determine the z-index of the toast. This is the inverse of the index.\n * The first toast will have the highest z-index, and the last toast will have the lowest z-index.\n * This is used to ensure that the first toast is always on top of the others.\n */\n protected readonly zIndex = computed(() => this.toasts().length - this.index());\n\n /**\n * The height of the toast in pixels.\n */\n protected readonly dimensions = injectDimensions();\n\n /**\n * The x position of the toast.\n */\n readonly x = this.options.placement.split('-')[1] || 'end';\n\n /**\n * The y position of the toast.\n */\n readonly y = this.options.placement.split('-')[0] || 'top';\n\n /**\n * The toast timer instance.\n */\n private readonly timer = toastTimer(this.options.duration, () => this.manager.dismiss(this), {\n persistent: this.options.persistent,\n });\n\n constructor() {\n this.options.register(this);\n\n // Bind the pointer listeners outside the Angular zone via the `listener()`\n // helper. Using `@HostListener` would run every `pointermove` inside the\n // zone, triggering an application-wide change detection pass on each mouse\n // move while merely hovering a toast (#762). Registering them out-of-zone\n // means only the signal writes that occur during an actual swipe schedule\n // change detection.\n const element = this.elementRef.nativeElement;\n listener(element, 'pointerdown', event => this.onPointerDown(event));\n listener(element, 'pointermove', event => this.onPointerMove(event));\n listener(element, 'pointerup', () => this.onPointerUp());\n\n // Start the timer when the toast is created\n this.timer.start();\n\n // Pause the timer when the toast is expanded or when the user is interacting with it\n // Also pause when in sequential mode and this toast is not at the front\n explicitEffect(\n [this.options.expanded, this.isInteracting, this.index, () => this.options.sequential],\n ([expanded, interacting, index, sequential]) => {\n // If the toast is expanded, or if the user is interacting with it, pause the timer\n // In sequential mode, also pause if this toast is not at the front\n if (expanded || interacting || (sequential && index > 0)) {\n this.timer.pause();\n } else {\n this.timer.start();\n }\n },\n );\n }\n\n private onPointerDown(event: PointerEvent): void {\n // right click should not trigger swipe and we check if the toast is dismissible\n if (event.button === 2 || !this.options.dismissible) {\n return;\n }\n\n this.isInteracting.set(true);\n\n // we need to check if the pointer is on an interactive element, if so, we should not start swiping\n if (this.interactivityChecker.isFocusable(event.target as HTMLElement)) {\n return;\n }\n\n this.dragStartTime = new Date();\n // Ensure we maintain correct pointer capture even when going outside of the toast (e.g. when swiping)\n (event.target as HTMLElement).setPointerCapture(event.pointerId);\n this.swiping.set(true);\n this.pointerStartRef = { x: event.clientX, y: event.clientY };\n }\n\n private onPointerMove(event: PointerEvent): void {\n if (!this.pointerStartRef || !this.options.dismissible) {\n return;\n }\n\n const isHighlighted = window.getSelection()?.toString().length ?? 0 > 0;\n\n if (isHighlighted) {\n return;\n }\n\n const yDelta = event.clientY - this.pointerStartRef.y;\n const xDelta = event.clientX - this.pointerStartRef.x;\n\n const swipeDirections = this.options.swipeDirections;\n\n // Determine swipe direction if not already locked\n if (!this.swipeDirection() && (Math.abs(xDelta) > 1 || Math.abs(yDelta) > 1)) {\n this.swipeDirection.set(Math.abs(xDelta) > Math.abs(yDelta) ? 'x' : 'y');\n }\n\n const swipeAmount = { x: 0, y: 0 };\n\n const getDampening = (delta: number) => {\n const factor = Math.abs(delta) / 20;\n\n return 1 / (1.5 + factor);\n };\n\n // Only apply swipe in the locked direction\n if (this.swipeDirection() === 'y') {\n // Handle vertical swipes\n if (swipeDirections.includes('top') || swipeDirections.includes('bottom')) {\n if (\n (swipeDirections.includes('top') && yDelta < 0) ||\n (swipeDirections.includes('bottom') && yDelta > 0)\n ) {\n swipeAmount.y = yDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = yDelta * getDampening(yDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.y = Math.abs(dampenedDelta) < Math.abs(yDelta) ? dampenedDelta : yDelta;\n }\n }\n } else if (this.swipeDirection() === 'x') {\n // Handle horizontal swipes\n if (swipeDirections.includes('left') || swipeDirections.includes('right')) {\n if (\n (swipeDirections.includes('left') && xDelta < 0) ||\n (swipeDirections.includes('right') && xDelta > 0)\n ) {\n swipeAmount.x = xDelta;\n } else {\n // Smoothly transition to dampened movement\n const dampenedDelta = xDelta * getDampening(xDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.x = Math.abs(dampenedDelta) < Math.abs(xDelta) ? dampenedDelta : xDelta;\n }\n }\n }\n\n this.swipeAmount.set({ x: swipeAmount.x, y: swipeAmount.y });\n\n if (Math.abs(swipeAmount.x) > 0 || Math.abs(swipeAmount.y) > 0) {\n this.swiping.set(true);\n }\n }\n\n private onPointerUp(): void {\n this.isInteracting.set(false);\n\n if (\n !this.config.dismissible ||\n !this.pointerStartRef ||\n !this.swiping() ||\n !this.dragStartTime\n ) {\n return;\n }\n\n this.pointerStartRef = null;\n\n const swipeAmountX = this.swipeAmount().x;\n const swipeAmountY = this.swipeAmount().y;\n const timeTaken = new Date().getTime() - this.dragStartTime.getTime();\n\n const swipeAmount = this.swipeDirection() === 'x' ? swipeAmountX : swipeAmountY;\n const velocity = Math.abs(swipeAmount) / timeTaken;\n\n if (Math.abs(swipeAmount) >= this.config.swipeThreshold || velocity > 0.11) {\n afterNextRender({ write: () => this.manager.dismiss(this) }, { injector: this.injector });\n return;\n } else {\n this.swipeAmount.set({ x: 0, y: 0 });\n }\n\n // Reset swipe state\n this.swipeDirection.set(null);\n this.swiping.set(false);\n }\n}\n\nexport type NgpToastSwipeDirection = 'top' | 'right' | 'bottom' | 'left';\n\nexport type NgpToastPlacement =\n | 'top-start'\n | 'top-end'\n | 'top-center'\n | 'bottom-start'\n | 'bottom-end'\n | 'bottom-center';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAkFO,MAAM,kBAAkB,GAAmB;AAChD,IAAA,GAAG,EAAE,EAAE;AACP,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,SAAS,EAAE,SAAS;AACpB,IAAA,SAAS,EAAE,EAAE;AACb,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;AACnD,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,UAAU,EAAE,KAAK;CAClB;AA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ACzC,wBAAA,6BAA6B,EAAE,SAAS;AACxC,wBAAA,2BAA2B,EAAE,aAAa;AAC1C,wBAAA,+BAA+B,EAAE,qBAAqB;AACtD,wBAAA,+BAA+B,EAAE,UAAU;AAC3C,wBAAA,qCAAqC,EAAE,oBAAoB;AAC3D,wBAAA,uCAAuC,EAAE,iBAAiB;AAC1D,wBAAA,uCAAuC,EAAE,iBAAiB;AAC1D,wBAAA,6BAA6B,EAAE,iBAAiB;AAChD,wBAAA,6BAA6B,EAAE,iBAAiB;AACjD,qBAAA;AACF,iBAAA;;;ACxCD;;AAEG;;;;"}
@@ -2,7 +2,7 @@ import { ngpOverlayArrow, injectOverlay, provideControlContainerIsolation, injec
2
2
  export { injectOverlayContext as injectTooltipContext } from 'ng-primitives/portal';
3
3
  import * as i0 from '@angular/core';
4
4
  import { InjectionToken, inject, input, numberAttribute, Directive, signal, Component, Injector, ViewContainerRef, ElementRef, computed, booleanAttribute } from '@angular/core';
5
- import { createPrimitive, controlled, attrBinding, dataBinding, styleBinding, listener } from 'ng-primitives/state';
5
+ import { createPrimitive, controlled, attrBinding, dataBinding, styleBinding, listener, deprecatedSetter } from 'ng-primitives/state';
6
6
  import { injectDisposables, isString } from 'ng-primitives/utils';
7
7
  import { injectElementRef, explicitEffect, setupOverflowListener } from 'ng-primitives/internal';
8
8
  import { ngpHover } from 'ng-primitives/interactions';
@@ -214,7 +214,7 @@ function isPointInHoverBridgePolygon(point, polygon) {
214
214
  return inside;
215
215
  }
216
216
 
217
- const [NgpTooltipTriggerStateToken, ngpTooltipTrigger, _injectTooltipTriggerState, provideTooltipTriggerState,] = createPrimitive('NgpTooltipTrigger', ({ tooltip: _tooltip = signal(null), disabled = signal(false), placement = signal('top'), offset = signal(0), showDelay = signal(500), hideDelay = signal(0), flip = signal(true), shift = signal(undefined), container = signal('body'), showOnOverflow = signal(false), anchor = signal(null), context = signal(undefined), useTextContent = signal(true), trackPosition = signal(false), position = signal(null), scrollBehavior = signal('reposition'), cooldown = signal(300), hoverableContent = signal(false), }) => {
217
+ const [NgpTooltipTriggerStateToken, ngpTooltipTrigger, _injectTooltipTriggerState, provideTooltipTriggerState,] = createPrimitive('NgpTooltipTrigger', ({ tooltip: _tooltip = signal(null), disabled = signal(false), placement = signal('top'), offset = signal(0), showDelay = signal(500), hideDelay = signal(0), flip = signal(true), shift = signal(undefined), container: _container, showOnOverflow = signal(false), anchor = signal(null), context = signal(undefined), useTextContent = signal(true), trackPosition = signal(false), position = signal(null), scrollBehavior = signal('reposition'), cooldown = signal(300), hoverableContent = signal(false), }) => {
218
218
  const HOVER_BRIDGE_TIMEOUT_MS = 150;
219
219
  const elementRef = injectElementRef();
220
220
  const injector = inject(Injector);
@@ -223,6 +223,7 @@ const [NgpTooltipTriggerStateToken, ngpTooltipTrigger, _injectTooltipTriggerStat
223
223
  const tooltipTriggerState = injectTooltipTriggerState();
224
224
  const disposables = injectDisposables();
225
225
  const tooltip = controlled(_tooltip);
226
+ const container = controlled(_container, 'body');
226
227
  const tooltipId = signal(undefined, ...(ngDevMode ? [{ debugName: "tooltipId" }] : /* istanbul ignore next */ []));
227
228
  const triggerHovered = signal(false, ...(ngDevMode ? [{ debugName: "triggerHovered" }] : /* istanbul ignore next */ []));
228
229
  const contentHovered = signal(false, ...(ngDevMode ? [{ debugName: "contentHovered" }] : /* istanbul ignore next */ []));
@@ -237,7 +238,6 @@ const [NgpTooltipTriggerStateToken, ngpTooltipTrigger, _injectTooltipTriggerStat
237
238
  // Host binding
238
239
  attrBinding(elementRef, 'aria-describedby', () => overlay()?.ariaDescribedBy());
239
240
  dataBinding(elementRef, 'data-open', () => (open() ? '' : null));
240
- dataBinding(elementRef, 'data-disabled', () => (disabled() ? '' : null));
241
241
  // Listeners
242
242
  listener(elementRef, 'mouseenter', showFromInteraction);
243
243
  listener(elementRef, 'focus', showFromInteraction);
@@ -289,6 +289,9 @@ const [NgpTooltipTriggerStateToken, ngpTooltipTrigger, _injectTooltipTriggerStat
289
289
  function setTooltipId(id) {
290
290
  tooltipId.set(id);
291
291
  }
292
+ function setContainer(newContainer) {
293
+ container.set(newContainer);
294
+ }
292
295
  /**
293
296
  * Hide the tooltip from an interaction (respects disabled state).
294
297
  * @internal
@@ -463,7 +466,7 @@ const [NgpTooltipTriggerStateToken, ngpTooltipTrigger, _injectTooltipTriggerStat
463
466
  hideDelay,
464
467
  flip,
465
468
  shift,
466
- container,
469
+ container: deprecatedSetter(container, 'setContainer', setContainer),
467
470
  showOnOverflow,
468
471
  anchor,
469
472
  context,
@@ -482,6 +485,7 @@ const [NgpTooltipTriggerStateToken, ngpTooltipTrigger, _injectTooltipTriggerStat
482
485
  show,
483
486
  hide,
484
487
  setTooltipId,
488
+ setContainer,
485
489
  onTooltipHoverStart,
486
490
  onTooltipHoverEnd,
487
491
  destroy,
@@ -507,7 +511,7 @@ class NgpTooltipTrigger {
507
511
  this.tooltip = input(null, { ...(ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {}), alias: 'ngpTooltipTrigger',
508
512
  transform: (value) => (value && !isString(value) ? value : null) });
509
513
  /**
510
- * Define if the trigger should be disabled. This will prevent the tooltip from being shown or hidden from interactions.
514
+ * Whether the tooltip is disabled. This allows the tooltip to be enabled or disabled dynamically.
511
515
  * @default false
512
516
  */
513
517
  this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), alias: 'ngpTooltipTriggerDisabled',
@@ -1 +1 @@
1
- {"version":3,"file":"ng-primitives-tooltip.mjs","sources":["../../../../packages/ng-primitives/tooltip/src/config/tooltip-config.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-arrow/tooltip-arrow-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-arrow/tooltip-arrow.ts","../../../../packages/ng-primitives/tooltip/src/tooltip/tooltip-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip/tooltip.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-text-content/tooltip-text-content-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-text-content/tooltip-text-content.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-trigger/tooltip-hover-bridge.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-trigger/tooltip-trigger-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-trigger/tooltip-trigger.ts","../../../../packages/ng-primitives/tooltip/src/ng-primitives-tooltip.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\nimport { type Placement } from '@floating-ui/dom';\nimport { NgpFlip, NgpOffset, NgpShift } from 'ng-primitives/portal';\n\nexport interface NgpTooltipConfig {\n /**\n * Define the offset of the tooltip 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 tooltip relative to the trigger.\n * @default 'top'\n */\n placement: Placement;\n\n /**\n * Define the delay before the tooltip is shown.\n * @default 0\n */\n showDelay: number;\n\n /**\n * Define the delay before the tooltip is hidden.\n * @default 500\n */\n hideDelay: number;\n\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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 into which the tooltip should be attached.\n * @default 'body'\n */\n container: HTMLElement | string | null;\n\n /**\n * Whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n showOnOverflow: boolean;\n\n /**\n * Whether to use the text content of the trigger element as the tooltip content.\n * @default true\n */\n useTextContent: boolean;\n\n /**\n * Configure shift behavior to keep the tooltip 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 * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n scrollBehavior: 'reposition' | 'close';\n\n /**\n * Cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n cooldown: number;\n\n /**\n * Whether hovering the tooltip content keeps it open while moving from the trigger.\n * @default false\n */\n hoverableContent: boolean;\n}\n\nexport const defaultTooltipConfig: NgpTooltipConfig = {\n offset: 4,\n placement: 'top',\n showDelay: 0,\n hideDelay: 500,\n flip: true,\n container: 'body',\n showOnOverflow: false,\n useTextContent: true,\n shift: undefined,\n trackPosition: false,\n scrollBehavior: 'reposition',\n cooldown: 300,\n hoverableContent: false,\n};\n\nexport const NgpTooltipConfigToken = new InjectionToken<NgpTooltipConfig>('NgpTooltipConfigToken');\n\n/**\n * Provide the default Tooltip configuration\n * @param config The Tooltip configuration\n * @returns The provider\n */\nexport function provideTooltipConfig(config: Partial<NgpTooltipConfig>): Provider[] {\n return [\n {\n provide: NgpTooltipConfigToken,\n useValue: { ...defaultTooltipConfig, ...config },\n },\n ];\n}\n\n/**\n * Inject the Tooltip configuration\n * @returns The global Tooltip configuration\n */\nexport function injectTooltipConfig(): NgpTooltipConfig {\n return inject(NgpTooltipConfigToken, { optional: true }) ?? defaultTooltipConfig;\n}\n","import { NgpOverlayArrowProps, NgpOverlayArrowState, ngpOverlayArrow } from 'ng-primitives/portal';\nimport { createPrimitive } from 'ng-primitives/state';\n\n// Re-export types with tooltip-specific aliases\nexport { NgpOverlayArrowProps as NgpTooltipArrowProps };\nexport { NgpOverlayArrowState as NgpTooltipArrowState };\n\nexport const [\n NgpTooltipArrowStateToken,\n ngpTooltipArrow,\n injectTooltipArrowState,\n provideTooltipArrowState,\n] = createPrimitive(\n 'NgpTooltipArrow',\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 { ngpTooltipArrow, provideTooltipArrowState } from './tooltip-arrow-state';\n\n@Directive({\n selector: '[ngpTooltipArrow]',\n exportAs: 'ngpTooltipArrow',\n providers: [provideTooltipArrowState()],\n})\nexport class NgpTooltipArrow {\n /**\n * Padding between the arrow and the edges of the tooltip.\n * This prevents the arrow from overflowing the rounded corners.\n */\n readonly padding = input<number | undefined, NumberInput>(undefined, {\n alias: 'ngpTooltipArrowPadding',\n transform: numberAttribute,\n });\n\n protected readonly state = ngpTooltipArrow({ padding: this.padding });\n\n /**\n * Set the padding between the arrow and the edges of the tooltip.\n * @param value The padding value in pixels\n */\n setPadding(value: number | undefined): void {\n this.state.setPadding(value);\n }\n}\n","import { ElementRef, Signal, signal } from '@angular/core';\nimport { ngpHover } from 'ng-primitives/interactions';\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';\nimport { injectTooltipTriggerState } from '../tooltip-trigger/tooltip-trigger-state';\n\nexport interface NgpTooltipState {\n /** Access the element's reference. */\n readonly elementRef: ElementRef;\n /** The unique id of the tooltip. */\n readonly id: Signal<string>;\n}\n\nexport interface NgpTooltipProps {\n /** The unique id of the tooltip. */\n readonly id?: Signal<string>;\n}\n\nexport const [NgpTooltipStateToken, ngpTooltip, injectTooltipState, provideTooltipState] =\n createPrimitive('NgpTooltip', ({ id: _id = signal<string>('') }: NgpTooltipProps) => {\n const elementRef = injectElementRef();\n const tooltipTriggerState = injectTooltipTriggerState();\n const overlay = injectOverlay();\n\n const id = controlled(_id);\n\n // Seed the id with the overlay's generated unique id so the tooltip has a\n // valid id (and the trigger a valid aria-describedby) when none is provided.\n // `controlled` returns a linkedSignal, so this is only a transient default:\n // if a consumer binds `id`, that source change supersedes this seed.\n id.set(overlay.id());\n\n // Setup interactions\n ngpHover({\n onHoverStart: () => tooltipTriggerState().onTooltipHoverStart(),\n onHoverEnd: () => tooltipTriggerState().onTooltipHoverEnd(),\n });\n\n // Host binding\n attrBinding(elementRef, 'role', 'tooltip');\n attrBinding(elementRef, 'id', () => id());\n dataBinding(elementRef, 'data-overlay', '');\n dataBinding(elementRef, 'data-placement', () => overlay.finalPlacement()?.toString() ?? null);\n styleBinding(elementRef, 'left.px', () => overlay.position().x ?? null);\n styleBinding(elementRef, 'top.px', () => overlay.position().y ?? null);\n styleBinding(elementRef, '--ngp-tooltip-trigger-width.px', () => overlay.triggerWidth());\n styleBinding(elementRef, '--ngp-tooltip-transform-origin', () => overlay.transformOrigin());\n styleBinding(elementRef, '--ngp-tooltip-available-width.px', () => overlay.availableWidth());\n styleBinding(elementRef, '--ngp-tooltip-available-height.px', () => overlay.availableHeight());\n\n // Effects\n explicitEffect([id], ([id]) => overlay.id.set(id));\n\n return {\n elementRef,\n id,\n } satisfies NgpTooltipState;\n });\n","import { Directive, input } from '@angular/core';\nimport { provideControlContainerIsolation } from 'ng-primitives/portal';\nimport { ngpTooltip } from './tooltip-state';\n\n/**\n * Apply the `ngpTooltip` directive to an element that represents the tooltip. This typically would be a `div` inside an `ng-template`.\n */\n@Directive({\n selector: '[ngpTooltip]',\n exportAs: 'ngpTooltip',\n providers: [provideControlContainerIsolation()],\n})\nexport class NgpTooltip {\n /**\n * The unique id of the tooltip.\n */\n readonly id = input('');\n\n protected readonly state = ngpTooltip({\n id: this.id,\n });\n}\n","import { ElementRef, Signal } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { injectOverlayContext } from 'ng-primitives/portal';\nimport { attrBinding, createPrimitive } from 'ng-primitives/state';\n\nexport interface NgpTooltipTextContentState {\n /** Access the component's context. */\n readonly elementRef: ElementRef;\n /** The string content to display. */\n readonly content: Signal<unknown>;\n}\n\nexport interface NgpTooltipTextContentProps {}\n\nexport const [\n NgpTooltipTextContentStateToken,\n ngpTooltipTextContent,\n injectTooltipTextContentState,\n provideTooltipTextContentState,\n] = createPrimitive('NgpTooltipTextContent', ({}: NgpTooltipTextContentProps) => {\n const elementRef = injectElementRef();\n const content = injectOverlayContext();\n\n // Host bindings\n attrBinding(elementRef, 'ngpTooltip', '');\n\n return { elementRef, content } satisfies NgpTooltipTextContentState;\n});\n","import { Component } from '@angular/core';\nimport { NgpTooltip } from '../tooltip/tooltip';\nimport { ngpTooltipTextContent } from './tooltip-text-content-state';\n\n/**\n * Internal component for wrapping string content in tooltip portals\n * @internal\n */\n@Component({\n template: '{{ state.content() }}',\n hostDirectives: [NgpTooltip],\n})\nexport class NgpTooltipTextContentComponent {\n protected readonly state = ngpTooltipTextContent({});\n}\n","export interface TooltipHoverBridgePoint {\n x: number;\n y: number;\n}\n\ninterface CreateTooltipHoverBridgePolygonOptions {\n triggerRect: DOMRect | null;\n tooltipRect: DOMRect | null;\n exitPoint: TooltipHoverBridgePoint;\n corridorHalfSize?: number;\n}\n\n/**\n * Builds a pointer grace polygon between the trigger exit point and the tooltip.\n * The polygon is intentionally directional so moving away from the tooltip exits quickly.\n */\nexport function createTooltipHoverBridgePolygon({\n triggerRect,\n tooltipRect,\n exitPoint,\n corridorHalfSize = 8,\n}: CreateTooltipHoverBridgePolygonOptions): TooltipHoverBridgePoint[] | null {\n if (!triggerRect || !tooltipRect) {\n return null;\n }\n\n const triggerCenterX = triggerRect.left + triggerRect.width / 2;\n const triggerCenterY = triggerRect.top + triggerRect.height / 2;\n const tooltipCenterX = tooltipRect.left + tooltipRect.width / 2;\n const tooltipCenterY = tooltipRect.top + tooltipRect.height / 2;\n\n const dx = tooltipCenterX - triggerCenterX;\n const dy = tooltipCenterY - triggerCenterY;\n const horizontalDominant = Math.abs(dx) >= Math.abs(dy);\n\n if (horizontalDominant) {\n const targetX = dx >= 0 ? tooltipRect.left : tooltipRect.right;\n return [\n { x: exitPoint.x, y: exitPoint.y - corridorHalfSize },\n { x: exitPoint.x, y: exitPoint.y + corridorHalfSize },\n { x: targetX, y: tooltipRect.bottom + corridorHalfSize },\n { x: targetX, y: tooltipRect.top - corridorHalfSize },\n ];\n }\n\n const targetY = dy >= 0 ? tooltipRect.top : tooltipRect.bottom;\n return [\n { x: exitPoint.x - corridorHalfSize, y: exitPoint.y },\n { x: exitPoint.x + corridorHalfSize, y: exitPoint.y },\n { x: tooltipRect.right + corridorHalfSize, y: targetY },\n { x: tooltipRect.left - corridorHalfSize, y: targetY },\n ];\n}\n\n/**\n * Returns true when the point lies inside the provided polygon.\n */\nexport function isPointInHoverBridgePolygon(\n point: TooltipHoverBridgePoint,\n polygon: TooltipHoverBridgePoint[],\n): boolean {\n let inside = false;\n\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n\n const intersects =\n yi > point.y !== yj > point.y &&\n point.x < ((xj - xi) * (point.y - yi)) / (yj - yi || Number.EPSILON) + xi;\n if (intersects) {\n inside = !inside;\n }\n }\n\n return inside;\n}\n","import {\n signal,\n Signal,\n WritableSignal,\n Injector,\n inject,\n ViewContainerRef,\n computed,\n ElementRef,\n} from '@angular/core';\nimport { injectElementRef, setupOverflowListener } from 'ng-primitives/internal';\nimport {\n createOverlay,\n NgpFlip,\n NgpOffset,\n NgpOverlay,\n NgpOverlayConfig,\n NgpOverlayContent,\n NgpPosition,\n NgpShift,\n} from 'ng-primitives/portal';\nimport {\n attrBinding,\n controlled,\n createPrimitive,\n dataBinding,\n listener,\n StateInjectionOptions,\n} from 'ng-primitives/state';\nimport { injectDisposables, isString } from 'ng-primitives/utils';\nimport { NgpTooltipTextContentComponent } from '../tooltip-text-content/tooltip-text-content';\nimport {\n createTooltipHoverBridgePolygon,\n isPointInHoverBridgePolygon,\n TooltipHoverBridgePoint,\n} from './tooltip-hover-bridge';\n\nexport interface NgpTooltipTriggerState<T> {\n /** Access the tooltip template ref. */\n readonly tooltip: WritableSignal<NgpOverlayContent<T> | string | null>;\n /**\n * Define if the trigger should be disabled. This will prevent the tooltip from being shown or hidden from interactions.\n * @default false\n */\n readonly disabled: Signal<boolean>;\n /**\n * Define the placement of the tooltip relative to the trigger.\n * @default 'top'\n */\n readonly placement: Signal<NgpTooltipPlacement>;\n /**\n * Define the offset of the tooltip 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: Signal<NgpOffset>;\n /**\n * Define the delay before the tooltip is displayed.\n * @default 500\n */\n readonly showDelay: Signal<number>;\n /**\n * Define the delay before the tooltip is hidden.\n * @default 0\n */\n readonly hideDelay: Signal<number>;\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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 tooltip 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 tooltip should be attached.\n * @default document.body\n */\n readonly container: Signal<HTMLElement | string | null>;\n /**\n * Define whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n readonly showOnOverflow: Signal<boolean>;\n /**\n * Define an anchor element for positioning the tooltip.\n * If provided, the tooltip will be positioned relative to this element instead of the trigger.\n */\n readonly anchor: Signal<HTMLElement | null>;\n /**\n * Provide context to the tooltip. This can be used to pass data to the tooltip content.\n */\n readonly context: Signal<T | undefined>;\n /**\n * Define whether to use the text content of the trigger element as the tooltip content.\n * When enabled, the tooltip will display the text content of the trigger element.\n * @default true\n */\n readonly useTextContent: Signal<boolean>;\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 * Programmatic position for the tooltip. When provided, the tooltip\n * will be positioned at these coordinates instead of the trigger element.\n * Use with trackPosition=\"true\" for smooth cursor following.\n */\n readonly position: Signal<NgpPosition | null>;\n /**\n * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n readonly scrollBehavior: Signal<'reposition' | 'close'>;\n /**\n * Define the cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n readonly cooldown: Signal<number>;\n /**\n * Whether hovering tooltip content keeps the tooltip open.\n * @default false\n */\n readonly hoverableContent: Signal<boolean>;\n /**\n * The overlay that manages the tooltip\n * @internal\n */\n readonly overlay: WritableSignal<NgpOverlay<T | string> | null>;\n /**\n * The unique id of the tooltip.\n */\n readonly tooltipId: Signal<string | undefined>;\n /**\n * The open state of the tooltip.\n * @internal\n */\n readonly open: Signal<boolean>;\n /**\n * Determine if the trigger element has overflow.\n */\n readonly hasOverflow: Signal<boolean>;\n /**\n * Tracks whether pointer is currently over tooltip content.\n */\n readonly contentHovered: Signal<boolean>;\n /**\n * Current pointer grace polygon used while crossing trigger -> tooltip.\n */\n readonly hoverBridgePolygon: Signal<TooltipHoverBridgePoint[] | null>;\n /**\n * Show the tooltip programmatically (skips cooldown so multiple tooltips can coexist).\n */\n show: () => void;\n /**\n * Hide the tooltip.\n */\n hide: () => void;\n /**\n * Set the tooltip id.\n */\n setTooltipId: (id: string) => void;\n /**\n * Called by tooltip content when pointer enters the tooltip.\n * @internal\n */\n onTooltipHoverStart: () => void;\n /**\n * Called by tooltip content when pointer leaves the tooltip.\n * @internal\n */\n onTooltipHoverEnd: () => void;\n destroy: () => void;\n}\n\nexport interface NgpTooltipTriggerProps<T> {\n /** Access the tooltip template ref. */\n readonly tooltip?: Signal<NgpOverlayContent<T> | string | null>;\n /**\n * Define if the trigger should be disabled. This will prevent the tooltip from being shown or hidden from interactions.\n * @default false\n */\n readonly disabled?: Signal<boolean>;\n /**\n * Define the placement of the tooltip relative to the trigger.\n * @default 'top'\n */\n readonly placement?: Signal<NgpTooltipPlacement>;\n /**\n * Define the offset of the tooltip 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?: Signal<NgpOffset>;\n /**\n * Define the delay before the tooltip is displayed.\n * @default 500\n */\n readonly showDelay?: Signal<number>;\n /**\n * Define the delay before the tooltip is hidden.\n * @default 0\n */\n readonly hideDelay?: Signal<number>;\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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 tooltip 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 tooltip should be attached.\n * @default document.body\n */\n readonly container?: Signal<HTMLElement | string | null>;\n /**\n * Define whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n readonly showOnOverflow?: Signal<boolean>;\n /**\n * Define an anchor element for positioning the tooltip.\n * If provided, the tooltip will be positioned relative to this element instead of the trigger.\n */\n readonly anchor?: Signal<HTMLElement | null>;\n /**\n * Provide context to the tooltip. This can be used to pass data to the tooltip content.\n */\n readonly context?: Signal<T | undefined>;\n /**\n * Define whether to use the text content of the trigger element as the tooltip content.\n * When enabled, the tooltip will display the text content of the trigger element.\n * @default true\n */\n readonly useTextContent?: Signal<boolean>;\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 * Programmatic position for the tooltip. When provided, the tooltip\n * will be positioned at these coordinates instead of the trigger element.\n * Use with trackPosition=\"true\" for smooth cursor following.\n */\n readonly position?: Signal<NgpPosition | null>;\n /**\n * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n readonly scrollBehavior?: Signal<'reposition' | 'close'>;\n /**\n * Define the cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n readonly cooldown?: Signal<number>;\n /**\n * Whether hovering tooltip content keeps the tooltip open.\n * @default false\n */\n readonly hoverableContent?: Signal<boolean>;\n}\n\nexport const [\n NgpTooltipTriggerStateToken,\n ngpTooltipTrigger,\n _injectTooltipTriggerState,\n provideTooltipTriggerState,\n] = createPrimitive(\n 'NgpTooltipTrigger',\n <T>({\n tooltip: _tooltip = signal<NgpOverlayContent<T> | string | null>(null),\n disabled = signal<boolean>(false),\n placement = signal<NgpTooltipPlacement>('top'),\n offset = signal<NgpOffset>(0),\n showDelay = signal<number>(500),\n hideDelay = signal<number>(0),\n flip = signal<NgpFlip>(true),\n shift = signal<NgpShift | undefined>(undefined),\n container = signal<HTMLElement | string | null>('body'),\n showOnOverflow = signal<boolean>(false),\n anchor = signal<HTMLElement | null>(null),\n context = signal<T | undefined>(undefined),\n useTextContent = signal<boolean>(true),\n trackPosition = signal<boolean>(false),\n position = signal<NgpPosition | null>(null),\n scrollBehavior = signal<'reposition' | 'close'>('reposition'),\n cooldown = signal<number>(300),\n hoverableContent = signal<boolean>(false),\n }: NgpTooltipTriggerProps<T>) => {\n const HOVER_BRIDGE_TIMEOUT_MS = 150;\n const elementRef = injectElementRef();\n const injector = inject(Injector);\n const viewContainerRef = inject(ViewContainerRef);\n const trigger = inject(ElementRef<HTMLElement>);\n const tooltipTriggerState = injectTooltipTriggerState<T>();\n const disposables = injectDisposables();\n\n const tooltip = controlled(_tooltip);\n\n const tooltipId = signal<string | undefined>(undefined);\n const triggerHovered = signal<boolean>(false);\n const contentHovered = signal<boolean>(false);\n const hoverBridgePolygon = signal<TooltipHoverBridgePoint[] | null>(null);\n const overlay = signal<NgpOverlay<T | string> | null>(null);\n const hasOverflow = setupOverflowListener(trigger.nativeElement, {\n disabled: computed(() => !showOnOverflow()),\n });\n\n let removePointerMoveListener: (() => void) | undefined = undefined;\n let clearHoverBridgeTimeout: (() => void) | undefined = undefined;\n\n const open = computed(() => overlay()?.isOpen() ?? false);\n\n // Host binding\n attrBinding(elementRef, 'aria-describedby', () => overlay()?.ariaDescribedBy());\n dataBinding(elementRef, 'data-open', () => (open() ? '' : null));\n dataBinding(elementRef, 'data-disabled', () => (disabled() ? '' : null));\n\n // Listeners\n listener(elementRef, 'mouseenter', showFromInteraction);\n listener(elementRef, 'focus', showFromInteraction);\n listener(elementRef, 'mouseleave', hideFromInteraction);\n listener(elementRef, 'blur', () => hideFromInteraction());\n\n function destroy(): void {\n clearHoverBridge();\n overlay()?.destroy();\n }\n\n function show(): void {\n performShow(true);\n }\n\n function hide(): void {\n clearHoverBridge();\n overlay()?.hide();\n }\n\n /**\n * Show the tooltip from an interaction (respects disabled state, uses cooldown).\n * @internal\n */\n function showFromInteraction(): void {\n if (tooltipTriggerState().disabled()) {\n return;\n }\n triggerHovered.set(true);\n clearHoverBridge();\n performShow(false);\n }\n\n /**\n * Shared show logic.\n * @param skipCooldown When true, skip cooldown registration so multiple tooltips can coexist.\n */\n function performShow(skipCooldown: boolean): void {\n // If already open, cancel any pending close\n if (open()) {\n overlay()?.cancelPendingClose();\n return;\n }\n\n // if we should only show when there is overflow, check if the trigger has overflow\n if (tooltipTriggerState().showOnOverflow() && !hasOverflow()) {\n return;\n }\n\n // Create the overlay if it doesn't exist yet\n if (!overlay()) {\n createOverlayInstance();\n }\n\n overlay()?.show({ skipCooldown });\n }\n\n function setTooltipId(id: string): void {\n tooltipId.set(id);\n }\n\n /**\n * Hide the tooltip from an interaction (respects disabled state).\n * @internal\n */\n function hideFromInteraction(event?: MouseEvent): void {\n if (tooltipTriggerState().disabled()) {\n return;\n }\n\n triggerHovered.set(false);\n\n // Blur should close regardless of hover bridge or tooltip hover state.\n if (!event) {\n contentHovered.set(false);\n clearHoverBridge();\n hide();\n return;\n }\n\n if (!tooltipTriggerState().hoverableContent()) {\n hide();\n return;\n }\n\n const tooltipElement = overlay()?.getElements()[0];\n if (!tooltipElement) {\n hide();\n return;\n }\n\n const polygon = createTooltipHoverBridgePolygon({\n triggerRect: trigger.nativeElement.getBoundingClientRect(),\n tooltipRect: tooltipElement.getBoundingClientRect(),\n exitPoint: { x: event.clientX, y: event.clientY },\n });\n\n if (!polygon) {\n hide();\n return;\n }\n\n hoverBridgePolygon.set(polygon);\n overlay()?.cancelPendingClose();\n registerPointerMoveListener();\n scheduleHoverBridgeCloseFallback();\n }\n\n /**\n * Called by tooltip content when pointer enters the tooltip.\n * @internal\n */\n function onTooltipHoverStart(): void {\n if (tooltipTriggerState().disabled() || !tooltipTriggerState().hoverableContent()) {\n return;\n }\n\n contentHovered.set(true);\n clearHoverBridge();\n overlay()?.cancelPendingClose();\n }\n\n /**\n * Called by tooltip content when pointer leaves the tooltip.\n * @internal\n */\n function onTooltipHoverEnd(): void {\n if (tooltipTriggerState().disabled() || !tooltipTriggerState().hoverableContent()) {\n return;\n }\n\n contentHovered.set(false);\n\n if (!triggerHovered()) {\n hide();\n }\n }\n\n /**\n * Create the overlay that will contain the tooltip\n */\n function createOverlayInstance(): void {\n // Determine the content and context based on useTextContent setting\n const shouldUseTextContent = tooltipTriggerState().useTextContent();\n let content = tooltip();\n let context: Signal<T | string | undefined> = tooltipTriggerState().context;\n\n if (!content) {\n if (!shouldUseTextContent) {\n if (ngDevMode) {\n console.error(\n '[ngpTooltipTrigger]: Tooltip must be a string, TemplateRef, or ComponentType. Alternatively, set useTextContent to true if none is provided.',\n );\n }\n\n return;\n }\n\n const textContent = trigger.nativeElement.textContent?.trim() || '';\n if (ngDevMode && !textContent) {\n console.warn(\n '[ngpTooltipTrigger]: useTextContent is enabled but trigger element has no text content',\n );\n return;\n }\n content = NgpTooltipTextContentComponent;\n context = signal(textContent);\n } else if (isString(content)) {\n context = signal(content);\n content = NgpTooltipTextContentComponent;\n }\n\n // Create config for the overlay\n const config: NgpOverlayConfig<T | string> = {\n content,\n triggerElement: trigger.nativeElement,\n anchorElement: anchor(),\n injector: injector,\n context,\n container: container(),\n placement: placement,\n offset: offset(),\n flip: flip(),\n shift: shift(),\n showDelay: showDelay(),\n hideDelay: hideDelay(),\n closeOnEscape: true,\n closeOnOutsideClick: true,\n viewContainerRef: viewContainerRef,\n trackPosition: trackPosition(),\n position: position,\n scrollBehaviour: scrollBehavior(),\n overlayType: 'tooltip',\n cooldown: cooldown(),\n };\n\n // Create the overlay instance\n overlay.set(createOverlay(config));\n }\n\n /**\n * Register document-level pointer tracking while crossing trigger -> tooltip.\n * @internal\n */\n function registerPointerMoveListener(): void {\n if (removePointerMoveListener) {\n return;\n }\n\n const cleanup = disposables.addEventListener(\n document,\n 'pointermove' as keyof HTMLElementEventMap,\n ((event: PointerEvent): void => {\n if (triggerHovered() || contentHovered() || !hoverBridgePolygon()) {\n clearHoverBridge();\n return;\n }\n\n const inBridge = isPointInHoverBridgePolygon(\n { x: event.clientX, y: event.clientY },\n hoverBridgePolygon()!,\n );\n\n if (!inBridge) {\n clearHoverBridge();\n hide();\n }\n }) as EventListener,\n true,\n );\n\n removePointerMoveListener = () => {\n cleanup();\n removePointerMoveListener = undefined;\n };\n }\n\n /**\n * Clear hover bridge state and global listeners.\n * @internal\n */\n function clearHoverBridge(): void {\n hoverBridgePolygon.set(null);\n clearHoverBridgeTimeout?.();\n clearHoverBridgeTimeout = undefined;\n removePointerMoveListener?.();\n }\n\n /**\n * Close if pointer leaves trigger and does not move into tooltip soon enough.\n * @internal\n */\n function scheduleHoverBridgeCloseFallback(): void {\n clearHoverBridgeTimeout?.();\n\n clearHoverBridgeTimeout = disposables.setTimeout(() => {\n clearHoverBridgeTimeout = undefined;\n\n if (!triggerHovered() && !contentHovered() && hoverBridgePolygon()) {\n clearHoverBridge();\n hide();\n }\n }, HOVER_BRIDGE_TIMEOUT_MS);\n }\n\n const state = {\n tooltip,\n disabled,\n placement,\n offset,\n showDelay,\n hideDelay,\n flip,\n shift,\n container,\n showOnOverflow,\n anchor,\n context,\n useTextContent,\n trackPosition,\n position,\n scrollBehavior,\n cooldown,\n hoverableContent,\n overlay,\n tooltipId,\n open,\n hasOverflow,\n contentHovered,\n hoverBridgePolygon,\n show,\n hide,\n setTooltipId,\n onTooltipHoverStart,\n onTooltipHoverEnd,\n destroy,\n } satisfies NgpTooltipTriggerState<T>;\n\n return state;\n },\n);\n\nexport function injectTooltipTriggerState<T>(\n options?: StateInjectionOptions,\n): Signal<NgpTooltipTriggerState<T>> {\n return _injectTooltipTriggerState(options) as Signal<NgpTooltipTriggerState<T>>;\n}\n\nexport type NgpTooltipPlacement =\n | 'top'\n | 'right'\n | 'bottom'\n | 'left'\n | 'top-start'\n | 'top-end'\n | 'right-start'\n | 'right-end'\n | 'bottom-start'\n | 'bottom-end'\n | 'left-start'\n | 'left-end';\n","import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input, numberAttribute, OnDestroy } from '@angular/core';\nimport {\n coerceFlip,\n coerceOffset,\n coerceShift,\n NgpFlip,\n NgpFlipInput,\n NgpOffset,\n NgpOffsetInput,\n NgpOverlayContent,\n NgpPosition,\n NgpShift,\n NgpShiftInput,\n} from 'ng-primitives/portal';\nimport { isString } from 'ng-primitives/utils';\nimport { injectTooltipConfig } from '../config/tooltip-config';\nimport {\n NgpTooltipPlacement,\n ngpTooltipTrigger,\n provideTooltipTriggerState,\n} from './tooltip-trigger-state';\n\ntype TooltipInput<T> = NgpOverlayContent<T> | string | null | undefined;\n\n/**\n * Apply the `ngpTooltipTrigger` directive to an element that triggers the tooltip to show.\n */\n@Directive({\n selector: '[ngpTooltipTrigger]',\n exportAs: 'ngpTooltipTrigger',\n providers: [provideTooltipTriggerState({ inherit: false })],\n})\nexport class NgpTooltipTrigger<T = null> implements OnDestroy {\n /**\n * Access the global tooltip configuration.\n */\n private readonly config = injectTooltipConfig();\n\n /**\n * Access the tooltip template ref.\n */\n readonly tooltip = input<NgpOverlayContent<T> | string | null, TooltipInput<T>>(null, {\n alias: 'ngpTooltipTrigger',\n transform: (value: TooltipInput<T>) => (value && !isString(value) ? value : null),\n });\n\n /**\n * Define if the trigger should be disabled. This will prevent the tooltip from being shown or hidden from interactions.\n * @default false\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpTooltipTriggerDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Define the placement of the tooltip relative to the trigger.\n * @default 'top'\n */\n readonly placement = input<NgpTooltipPlacement>(this.config.placement, {\n alias: 'ngpTooltipTriggerPlacement',\n });\n\n /**\n * Define the offset of the tooltip 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: 'ngpTooltipTriggerOffset',\n transform: coerceOffset,\n });\n\n /**\n * Define the delay before the tooltip is displayed.\n * @default 500\n */\n readonly showDelay = input<number, NumberInput>(this.config.showDelay, {\n alias: 'ngpTooltipTriggerShowDelay',\n transform: numberAttribute,\n });\n\n /**\n * Define the delay before the tooltip is hidden.\n * @default 0\n */\n readonly hideDelay = input<number, NumberInput>(this.config.hideDelay, {\n alias: 'ngpTooltipTriggerHideDelay',\n transform: numberAttribute,\n });\n\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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: 'ngpTooltipTriggerFlip',\n transform: coerceFlip,\n });\n\n /**\n * Configure shift behavior to keep the tooltip 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: 'ngpTooltipTriggerShift',\n transform: coerceShift,\n });\n\n /**\n * Define the container in which the tooltip should be attached.\n * @default document.body\n */\n readonly container = input<HTMLElement | string | null>(this.config.container, {\n alias: 'ngpTooltipTriggerContainer',\n });\n\n /**\n * Define whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n readonly showOnOverflow = input<boolean, BooleanInput>(this.config.showOnOverflow, {\n alias: 'ngpTooltipTriggerShowOnOverflow',\n transform: booleanAttribute,\n });\n\n /**\n * Define an anchor element for positioning the tooltip.\n * If provided, the tooltip will be positioned relative to this element instead of the trigger.\n */\n readonly anchor = input<HTMLElement | null>(null, { alias: 'ngpTooltipTriggerAnchor' });\n\n /**\n * Provide context to the tooltip. This can be used to pass data to the tooltip content.\n */\n readonly context = input<T>(undefined, {\n alias: 'ngpTooltipTriggerContext',\n });\n\n /**\n * Define whether to use the text content of the trigger element as the tooltip content.\n * When enabled, the tooltip will display the text content of the trigger element.\n * @default true\n */\n readonly useTextContent = input<boolean, BooleanInput>(this.config.useTextContent, {\n alias: 'ngpTooltipTriggerUseTextContent',\n transform: booleanAttribute,\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: 'ngpTooltipTriggerTrackPosition',\n transform: booleanAttribute,\n });\n\n /**\n * Programmatic position for the tooltip. When provided, the tooltip\n * will be positioned at these coordinates instead of the trigger element.\n * Use with trackPosition=\"true\" for smooth cursor following.\n */\n readonly position = input<NgpPosition | null>(null, {\n alias: 'ngpTooltipTriggerPosition',\n });\n\n /**\n * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n readonly scrollBehavior = input<'reposition' | 'close'>(this.config.scrollBehavior, {\n alias: 'ngpTooltipTriggerScrollBehavior',\n });\n\n /**\n * Define the cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n readonly cooldown = input<number, NumberInput>(this.config.cooldown, {\n alias: 'ngpTooltipTriggerCooldown',\n transform: numberAttribute,\n });\n\n /**\n * Whether hovering tooltip content keeps the tooltip open.\n * @default false\n */\n readonly hoverableContent = input<boolean, BooleanInput>(this.config.hoverableContent, {\n alias: 'ngpTooltipTriggerHoverableContent',\n transform: booleanAttribute,\n });\n\n protected readonly state = ngpTooltipTrigger({\n tooltip: this.tooltip,\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 showOnOverflow: this.showOnOverflow,\n anchor: this.anchor,\n context: this.context,\n useTextContent: this.useTextContent,\n trackPosition: this.trackPosition,\n position: this.position,\n scrollBehavior: this.scrollBehavior,\n cooldown: this.cooldown,\n hoverableContent: this.hoverableContent,\n });\n\n ngOnDestroy(): void {\n return this.state.destroy();\n }\n\n /**\n * Show the tooltip programmatically (skips cooldown so multiple tooltips can coexist).\n */\n show(): void {\n return this.state.show();\n }\n\n /**\n * Hide the tooltip.\n */\n hide(): void {\n return this.state.hide();\n }\n\n /**\n * Called by tooltip content when pointer enters the tooltip.\n * @internal\n */\n onTooltipHoverStart(): void {\n return this.state.onTooltipHoverStart();\n }\n\n /**\n * Called by tooltip content when pointer leaves the tooltip.\n * @internal\n */\n onTooltipHoverEnd(): void {\n return this.state.onTooltipHoverEnd();\n }\n\n /**\n * Set the tooltip id.\n */\n setTooltipId(id: string): void {\n return this.state.setTooltipId(id);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA0FO,MAAM,oBAAoB,GAAqB;AACpD,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,SAAS,EAAE,GAAG;AACd,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,SAAS,EAAE,MAAM;AACjB,IAAA,cAAc,EAAE,KAAK;AACrB,IAAA,cAAc,EAAE,IAAI;AACpB,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,cAAc,EAAE,YAAY;AAC5B,IAAA,QAAQ,EAAE,GAAG;AACb,IAAA,gBAAgB,EAAE,KAAK;CACxB;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,Y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CAAC,CAAC;AAC5D,iBAAA;;;AChCD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-primitives-tooltip.mjs","sources":["../../../../packages/ng-primitives/tooltip/src/config/tooltip-config.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-arrow/tooltip-arrow-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-arrow/tooltip-arrow.ts","../../../../packages/ng-primitives/tooltip/src/tooltip/tooltip-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip/tooltip.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-text-content/tooltip-text-content-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-text-content/tooltip-text-content.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-trigger/tooltip-hover-bridge.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-trigger/tooltip-trigger-state.ts","../../../../packages/ng-primitives/tooltip/src/tooltip-trigger/tooltip-trigger.ts","../../../../packages/ng-primitives/tooltip/src/ng-primitives-tooltip.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\nimport { type Placement } from '@floating-ui/dom';\nimport { NgpFlip, NgpOffset, NgpShift } from 'ng-primitives/portal';\n\nexport interface NgpTooltipConfig {\n /**\n * Define the offset of the tooltip 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 tooltip relative to the trigger.\n * @default 'top'\n */\n placement: Placement;\n\n /**\n * Define the delay before the tooltip is shown.\n * @default 0\n */\n showDelay: number;\n\n /**\n * Define the delay before the tooltip is hidden.\n * @default 500\n */\n hideDelay: number;\n\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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 into which the tooltip should be attached.\n * @default 'body'\n */\n container: HTMLElement | string | null;\n\n /**\n * Whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n showOnOverflow: boolean;\n\n /**\n * Whether to use the text content of the trigger element as the tooltip content.\n * @default true\n */\n useTextContent: boolean;\n\n /**\n * Configure shift behavior to keep the tooltip 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 * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n scrollBehavior: 'reposition' | 'close';\n\n /**\n * Cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n cooldown: number;\n\n /**\n * Whether hovering the tooltip content keeps it open while moving from the trigger.\n * @default false\n */\n hoverableContent: boolean;\n}\n\nexport const defaultTooltipConfig: NgpTooltipConfig = {\n offset: 4,\n placement: 'top',\n showDelay: 0,\n hideDelay: 500,\n flip: true,\n container: 'body',\n showOnOverflow: false,\n useTextContent: true,\n shift: undefined,\n trackPosition: false,\n scrollBehavior: 'reposition',\n cooldown: 300,\n hoverableContent: false,\n};\n\nexport const NgpTooltipConfigToken = new InjectionToken<NgpTooltipConfig>('NgpTooltipConfigToken');\n\n/**\n * Provide the default Tooltip configuration\n * @param config The Tooltip configuration\n * @returns The provider\n */\nexport function provideTooltipConfig(config: Partial<NgpTooltipConfig>): Provider[] {\n return [\n {\n provide: NgpTooltipConfigToken,\n useValue: { ...defaultTooltipConfig, ...config },\n },\n ];\n}\n\n/**\n * Inject the Tooltip configuration\n * @returns The global Tooltip configuration\n */\nexport function injectTooltipConfig(): NgpTooltipConfig {\n return inject(NgpTooltipConfigToken, { optional: true }) ?? defaultTooltipConfig;\n}\n","import { NgpOverlayArrowProps, NgpOverlayArrowState, ngpOverlayArrow } from 'ng-primitives/portal';\nimport { createPrimitive } from 'ng-primitives/state';\n\n// Re-export types with tooltip-specific aliases\nexport { NgpOverlayArrowProps as NgpTooltipArrowProps };\nexport { NgpOverlayArrowState as NgpTooltipArrowState };\n\nexport const [\n NgpTooltipArrowStateToken,\n ngpTooltipArrow,\n injectTooltipArrowState,\n provideTooltipArrowState,\n] = createPrimitive(\n 'NgpTooltipArrow',\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 { ngpTooltipArrow, provideTooltipArrowState } from './tooltip-arrow-state';\n\n@Directive({\n selector: '[ngpTooltipArrow]',\n exportAs: 'ngpTooltipArrow',\n providers: [provideTooltipArrowState()],\n})\nexport class NgpTooltipArrow {\n /**\n * Padding between the arrow and the edges of the tooltip.\n * This prevents the arrow from overflowing the rounded corners.\n */\n readonly padding = input<number | undefined, NumberInput>(undefined, {\n alias: 'ngpTooltipArrowPadding',\n transform: numberAttribute,\n });\n\n protected readonly state = ngpTooltipArrow({ padding: this.padding });\n\n /**\n * Set the padding between the arrow and the edges of the tooltip.\n * @param value The padding value in pixels\n */\n setPadding(value: number | undefined): void {\n this.state.setPadding(value);\n }\n}\n","import { ElementRef, Signal, signal } from '@angular/core';\nimport { ngpHover } from 'ng-primitives/interactions';\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';\nimport { injectTooltipTriggerState } from '../tooltip-trigger/tooltip-trigger-state';\n\nexport interface NgpTooltipState {\n /** Access the element's reference. */\n readonly elementRef: ElementRef;\n /** The unique id of the tooltip. */\n readonly id: Signal<string>;\n}\n\nexport interface NgpTooltipProps {\n /** The unique id of the tooltip. */\n readonly id?: Signal<string>;\n}\n\nexport const [NgpTooltipStateToken, ngpTooltip, injectTooltipState, provideTooltipState] =\n createPrimitive('NgpTooltip', ({ id: _id = signal<string>('') }: NgpTooltipProps) => {\n const elementRef = injectElementRef();\n const tooltipTriggerState = injectTooltipTriggerState();\n const overlay = injectOverlay();\n\n const id = controlled(_id);\n\n // Seed the id with the overlay's generated unique id so the tooltip has a\n // valid id (and the trigger a valid aria-describedby) when none is provided.\n // `controlled` returns a linkedSignal, so this is only a transient default:\n // if a consumer binds `id`, that source change supersedes this seed.\n id.set(overlay.id());\n\n // Setup interactions\n ngpHover({\n onHoverStart: () => tooltipTriggerState().onTooltipHoverStart(),\n onHoverEnd: () => tooltipTriggerState().onTooltipHoverEnd(),\n });\n\n // Host binding\n attrBinding(elementRef, 'role', 'tooltip');\n attrBinding(elementRef, 'id', () => id());\n dataBinding(elementRef, 'data-overlay', '');\n dataBinding(elementRef, 'data-placement', () => overlay.finalPlacement()?.toString() ?? null);\n styleBinding(elementRef, 'left.px', () => overlay.position().x ?? null);\n styleBinding(elementRef, 'top.px', () => overlay.position().y ?? null);\n styleBinding(elementRef, '--ngp-tooltip-trigger-width.px', () => overlay.triggerWidth());\n styleBinding(elementRef, '--ngp-tooltip-transform-origin', () => overlay.transformOrigin());\n styleBinding(elementRef, '--ngp-tooltip-available-width.px', () => overlay.availableWidth());\n styleBinding(elementRef, '--ngp-tooltip-available-height.px', () => overlay.availableHeight());\n\n // Effects\n explicitEffect([id], ([id]) => overlay.id.set(id));\n\n return {\n elementRef,\n id,\n } satisfies NgpTooltipState;\n });\n","import { Directive, input } from '@angular/core';\nimport { provideControlContainerIsolation } from 'ng-primitives/portal';\nimport { ngpTooltip } from './tooltip-state';\n\n/**\n * Apply the `ngpTooltip` directive to an element that represents the tooltip. This typically would be a `div` inside an `ng-template`.\n */\n@Directive({\n selector: '[ngpTooltip]',\n exportAs: 'ngpTooltip',\n providers: [provideControlContainerIsolation()],\n})\nexport class NgpTooltip {\n /**\n * The unique id of the tooltip.\n */\n readonly id = input('');\n\n protected readonly state = ngpTooltip({\n id: this.id,\n });\n}\n","import { ElementRef, Signal } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { injectOverlayContext } from 'ng-primitives/portal';\nimport { attrBinding, createPrimitive } from 'ng-primitives/state';\n\nexport interface NgpTooltipTextContentState {\n /** Access the component's context. */\n readonly elementRef: ElementRef;\n /** The string content to display. */\n readonly content: Signal<unknown>;\n}\n\nexport interface NgpTooltipTextContentProps {}\n\nexport const [\n NgpTooltipTextContentStateToken,\n ngpTooltipTextContent,\n injectTooltipTextContentState,\n provideTooltipTextContentState,\n] = createPrimitive('NgpTooltipTextContent', ({}: NgpTooltipTextContentProps) => {\n const elementRef = injectElementRef();\n const content = injectOverlayContext();\n\n // Host bindings\n attrBinding(elementRef, 'ngpTooltip', '');\n\n return { elementRef, content } satisfies NgpTooltipTextContentState;\n});\n","import { Component } from '@angular/core';\nimport { NgpTooltip } from '../tooltip/tooltip';\nimport { ngpTooltipTextContent } from './tooltip-text-content-state';\n\n/**\n * Internal component for wrapping string content in tooltip portals\n * @internal\n */\n@Component({\n template: '{{ state.content() }}',\n hostDirectives: [NgpTooltip],\n})\nexport class NgpTooltipTextContentComponent {\n protected readonly state = ngpTooltipTextContent({});\n}\n","export interface TooltipHoverBridgePoint {\n x: number;\n y: number;\n}\n\ninterface CreateTooltipHoverBridgePolygonOptions {\n triggerRect: DOMRect | null;\n tooltipRect: DOMRect | null;\n exitPoint: TooltipHoverBridgePoint;\n corridorHalfSize?: number;\n}\n\n/**\n * Builds a pointer grace polygon between the trigger exit point and the tooltip.\n * The polygon is intentionally directional so moving away from the tooltip exits quickly.\n */\nexport function createTooltipHoverBridgePolygon({\n triggerRect,\n tooltipRect,\n exitPoint,\n corridorHalfSize = 8,\n}: CreateTooltipHoverBridgePolygonOptions): TooltipHoverBridgePoint[] | null {\n if (!triggerRect || !tooltipRect) {\n return null;\n }\n\n const triggerCenterX = triggerRect.left + triggerRect.width / 2;\n const triggerCenterY = triggerRect.top + triggerRect.height / 2;\n const tooltipCenterX = tooltipRect.left + tooltipRect.width / 2;\n const tooltipCenterY = tooltipRect.top + tooltipRect.height / 2;\n\n const dx = tooltipCenterX - triggerCenterX;\n const dy = tooltipCenterY - triggerCenterY;\n const horizontalDominant = Math.abs(dx) >= Math.abs(dy);\n\n if (horizontalDominant) {\n const targetX = dx >= 0 ? tooltipRect.left : tooltipRect.right;\n return [\n { x: exitPoint.x, y: exitPoint.y - corridorHalfSize },\n { x: exitPoint.x, y: exitPoint.y + corridorHalfSize },\n { x: targetX, y: tooltipRect.bottom + corridorHalfSize },\n { x: targetX, y: tooltipRect.top - corridorHalfSize },\n ];\n }\n\n const targetY = dy >= 0 ? tooltipRect.top : tooltipRect.bottom;\n return [\n { x: exitPoint.x - corridorHalfSize, y: exitPoint.y },\n { x: exitPoint.x + corridorHalfSize, y: exitPoint.y },\n { x: tooltipRect.right + corridorHalfSize, y: targetY },\n { x: tooltipRect.left - corridorHalfSize, y: targetY },\n ];\n}\n\n/**\n * Returns true when the point lies inside the provided polygon.\n */\nexport function isPointInHoverBridgePolygon(\n point: TooltipHoverBridgePoint,\n polygon: TooltipHoverBridgePoint[],\n): boolean {\n let inside = false;\n\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n\n const intersects =\n yi > point.y !== yj > point.y &&\n point.x < ((xj - xi) * (point.y - yi)) / (yj - yi || Number.EPSILON) + xi;\n if (intersects) {\n inside = !inside;\n }\n }\n\n return inside;\n}\n","import {\n signal,\n Signal,\n WritableSignal,\n Injector,\n inject,\n ViewContainerRef,\n computed,\n ElementRef,\n} from '@angular/core';\nimport { injectElementRef, setupOverflowListener } from 'ng-primitives/internal';\nimport {\n createOverlay,\n NgpFlip,\n NgpOffset,\n NgpOverlay,\n NgpOverlayConfig,\n NgpOverlayContent,\n NgpPosition,\n NgpShift,\n} from 'ng-primitives/portal';\nimport {\n attrBinding,\n controlled,\n createPrimitive,\n dataBinding,\n deprecatedSetter,\n listener,\n StateInjectionOptions,\n} from 'ng-primitives/state';\nimport { injectDisposables, isString } from 'ng-primitives/utils';\nimport { NgpTooltipTextContentComponent } from '../tooltip-text-content/tooltip-text-content';\nimport {\n createTooltipHoverBridgePolygon,\n isPointInHoverBridgePolygon,\n TooltipHoverBridgePoint,\n} from './tooltip-hover-bridge';\n\nexport interface NgpTooltipTriggerState<T> {\n /** Access the tooltip template ref. */\n readonly tooltip: WritableSignal<NgpOverlayContent<T> | string | null>;\n /**\n * Whether the tooltip is disabled. This allows the tooltip to be enabled or disabled dynamically.\n * @default false\n */\n readonly disabled: Signal<boolean>;\n /**\n * Define the placement of the tooltip relative to the trigger.\n * @default 'top'\n */\n readonly placement: Signal<NgpTooltipPlacement>;\n /**\n * Define the offset of the tooltip 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: Signal<NgpOffset>;\n /**\n * Define the delay before the tooltip is displayed.\n * @default 500\n */\n readonly showDelay: Signal<number>;\n /**\n * Define the delay before the tooltip is hidden.\n * @default 0\n */\n readonly hideDelay: Signal<number>;\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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 tooltip 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 tooltip should be attached.\n * @default document.body\n */\n readonly container: WritableSignal<HTMLElement | string | null>;\n /**\n * Define whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n readonly showOnOverflow: Signal<boolean>;\n /**\n * Define an anchor element for positioning the tooltip.\n * If provided, the tooltip will be positioned relative to this element instead of the trigger.\n */\n readonly anchor: Signal<HTMLElement | null>;\n /**\n * Provide context to the tooltip. This can be used to pass data to the tooltip content.\n */\n readonly context: Signal<T | undefined>;\n /**\n * Define whether to use the text content of the trigger element as the tooltip content.\n * When enabled, the tooltip will display the text content of the trigger element.\n * @default true\n */\n readonly useTextContent: Signal<boolean>;\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 * Programmatic position for the tooltip. When provided, the tooltip\n * will be positioned at these coordinates instead of the trigger element.\n * Use with trackPosition=\"true\" for smooth cursor following.\n */\n readonly position: Signal<NgpPosition | null>;\n /**\n * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n readonly scrollBehavior: Signal<'reposition' | 'close'>;\n /**\n * Define the cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n readonly cooldown: Signal<number>;\n /**\n * Whether hovering tooltip content keeps the tooltip open.\n * @default false\n */\n readonly hoverableContent: Signal<boolean>;\n /**\n * The overlay that manages the tooltip\n * @internal\n */\n readonly overlay: WritableSignal<NgpOverlay<T | string> | null>;\n /**\n * The unique id of the tooltip.\n */\n readonly tooltipId: Signal<string | undefined>;\n /**\n * The open state of the tooltip.\n * @internal\n */\n readonly open: Signal<boolean>;\n /**\n * Determine if the trigger element has overflow.\n */\n readonly hasOverflow: Signal<boolean>;\n /**\n * Tracks whether pointer is currently over tooltip content.\n */\n readonly contentHovered: Signal<boolean>;\n /**\n * Current pointer grace polygon used while crossing trigger -> tooltip.\n */\n readonly hoverBridgePolygon: Signal<TooltipHoverBridgePoint[] | null>;\n /**\n * Show the tooltip programmatically (skips cooldown so multiple tooltips can coexist).\n */\n show: () => void;\n /**\n * Hide the tooltip.\n */\n hide: () => void;\n /**\n * Set the tooltip id.\n */\n setTooltipId: (id: string) => void;\n /**\n * Set the container in which the tooltip should be attached. Takes effect the\n * next time the tooltip is shown; it does not move a tooltip that is already\n * visible.\n * @param container - The new container\n */\n setContainer: (container: HTMLElement | string | null) => void;\n /**\n * Called by tooltip content when pointer enters the tooltip.\n * @internal\n */\n onTooltipHoverStart: () => void;\n /**\n * Called by tooltip content when pointer leaves the tooltip.\n * @internal\n */\n onTooltipHoverEnd: () => void;\n destroy: () => void;\n}\n\nexport interface NgpTooltipTriggerProps<T> {\n /** Access the tooltip template ref. */\n readonly tooltip?: Signal<NgpOverlayContent<T> | string | null>;\n /**\n * Whether the tooltip is disabled. This allows the tooltip to be enabled or disabled dynamically.\n * @default false\n */\n readonly disabled?: Signal<boolean>;\n /**\n * Define the placement of the tooltip relative to the trigger.\n * @default 'top'\n */\n readonly placement?: Signal<NgpTooltipPlacement>;\n /**\n * Define the offset of the tooltip 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?: Signal<NgpOffset>;\n /**\n * Define the delay before the tooltip is displayed.\n * @default 500\n */\n readonly showDelay?: Signal<number>;\n /**\n * Define the delay before the tooltip is hidden.\n * @default 0\n */\n readonly hideDelay?: Signal<number>;\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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 tooltip 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 tooltip should be attached.\n * @default document.body\n */\n readonly container?: Signal<HTMLElement | string | null>;\n /**\n * Define whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n readonly showOnOverflow?: Signal<boolean>;\n /**\n * Define an anchor element for positioning the tooltip.\n * If provided, the tooltip will be positioned relative to this element instead of the trigger.\n */\n readonly anchor?: Signal<HTMLElement | null>;\n /**\n * Provide context to the tooltip. This can be used to pass data to the tooltip content.\n */\n readonly context?: Signal<T | undefined>;\n /**\n * Define whether to use the text content of the trigger element as the tooltip content.\n * When enabled, the tooltip will display the text content of the trigger element.\n * @default true\n */\n readonly useTextContent?: Signal<boolean>;\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 * Programmatic position for the tooltip. When provided, the tooltip\n * will be positioned at these coordinates instead of the trigger element.\n * Use with trackPosition=\"true\" for smooth cursor following.\n */\n readonly position?: Signal<NgpPosition | null>;\n /**\n * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n readonly scrollBehavior?: Signal<'reposition' | 'close'>;\n /**\n * Define the cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n readonly cooldown?: Signal<number>;\n /**\n * Whether hovering tooltip content keeps the tooltip open.\n * @default false\n */\n readonly hoverableContent?: Signal<boolean>;\n}\n\nexport const [\n NgpTooltipTriggerStateToken,\n ngpTooltipTrigger,\n _injectTooltipTriggerState,\n provideTooltipTriggerState,\n] = createPrimitive(\n 'NgpTooltipTrigger',\n <T>({\n tooltip: _tooltip = signal<NgpOverlayContent<T> | string | null>(null),\n disabled = signal<boolean>(false),\n placement = signal<NgpTooltipPlacement>('top'),\n offset = signal<NgpOffset>(0),\n showDelay = signal<number>(500),\n hideDelay = signal<number>(0),\n flip = signal<NgpFlip>(true),\n shift = signal<NgpShift | undefined>(undefined),\n container: _container,\n showOnOverflow = signal<boolean>(false),\n anchor = signal<HTMLElement | null>(null),\n context = signal<T | undefined>(undefined),\n useTextContent = signal<boolean>(true),\n trackPosition = signal<boolean>(false),\n position = signal<NgpPosition | null>(null),\n scrollBehavior = signal<'reposition' | 'close'>('reposition'),\n cooldown = signal<number>(300),\n hoverableContent = signal<boolean>(false),\n }: NgpTooltipTriggerProps<T>) => {\n const HOVER_BRIDGE_TIMEOUT_MS = 150;\n const elementRef = injectElementRef();\n const injector = inject(Injector);\n const viewContainerRef = inject(ViewContainerRef);\n const trigger = inject(ElementRef<HTMLElement>);\n const tooltipTriggerState = injectTooltipTriggerState<T>();\n const disposables = injectDisposables();\n\n const tooltip = controlled(_tooltip);\n const container = controlled(_container, 'body');\n\n const tooltipId = signal<string | undefined>(undefined);\n const triggerHovered = signal<boolean>(false);\n const contentHovered = signal<boolean>(false);\n const hoverBridgePolygon = signal<TooltipHoverBridgePoint[] | null>(null);\n const overlay = signal<NgpOverlay<T | string> | null>(null);\n const hasOverflow = setupOverflowListener(trigger.nativeElement, {\n disabled: computed(() => !showOnOverflow()),\n });\n\n let removePointerMoveListener: (() => void) | undefined = undefined;\n let clearHoverBridgeTimeout: (() => void) | undefined = undefined;\n\n const open = computed(() => overlay()?.isOpen() ?? false);\n\n // Host binding\n attrBinding(elementRef, 'aria-describedby', () => overlay()?.ariaDescribedBy());\n dataBinding(elementRef, 'data-open', () => (open() ? '' : null));\n\n // Listeners\n listener(elementRef, 'mouseenter', showFromInteraction);\n listener(elementRef, 'focus', showFromInteraction);\n listener(elementRef, 'mouseleave', hideFromInteraction);\n listener(elementRef, 'blur', () => hideFromInteraction());\n\n function destroy(): void {\n clearHoverBridge();\n overlay()?.destroy();\n }\n\n function show(): void {\n performShow(true);\n }\n\n function hide(): void {\n clearHoverBridge();\n overlay()?.hide();\n }\n\n /**\n * Show the tooltip from an interaction (respects disabled state, uses cooldown).\n * @internal\n */\n function showFromInteraction(): void {\n if (tooltipTriggerState().disabled()) {\n return;\n }\n triggerHovered.set(true);\n clearHoverBridge();\n performShow(false);\n }\n\n /**\n * Shared show logic.\n * @param skipCooldown When true, skip cooldown registration so multiple tooltips can coexist.\n */\n function performShow(skipCooldown: boolean): void {\n // If already open, cancel any pending close\n if (open()) {\n overlay()?.cancelPendingClose();\n return;\n }\n\n // if we should only show when there is overflow, check if the trigger has overflow\n if (tooltipTriggerState().showOnOverflow() && !hasOverflow()) {\n return;\n }\n\n // Create the overlay if it doesn't exist yet\n if (!overlay()) {\n createOverlayInstance();\n }\n\n overlay()?.show({ skipCooldown });\n }\n\n function setTooltipId(id: string): void {\n tooltipId.set(id);\n }\n\n function setContainer(newContainer: HTMLElement | string | null): void {\n container.set(newContainer);\n }\n\n /**\n * Hide the tooltip from an interaction (respects disabled state).\n * @internal\n */\n function hideFromInteraction(event?: MouseEvent): void {\n if (tooltipTriggerState().disabled()) {\n return;\n }\n\n triggerHovered.set(false);\n\n // Blur should close regardless of hover bridge or tooltip hover state.\n if (!event) {\n contentHovered.set(false);\n clearHoverBridge();\n hide();\n return;\n }\n\n if (!tooltipTriggerState().hoverableContent()) {\n hide();\n return;\n }\n\n const tooltipElement = overlay()?.getElements()[0];\n if (!tooltipElement) {\n hide();\n return;\n }\n\n const polygon = createTooltipHoverBridgePolygon({\n triggerRect: trigger.nativeElement.getBoundingClientRect(),\n tooltipRect: tooltipElement.getBoundingClientRect(),\n exitPoint: { x: event.clientX, y: event.clientY },\n });\n\n if (!polygon) {\n hide();\n return;\n }\n\n hoverBridgePolygon.set(polygon);\n overlay()?.cancelPendingClose();\n registerPointerMoveListener();\n scheduleHoverBridgeCloseFallback();\n }\n\n /**\n * Called by tooltip content when pointer enters the tooltip.\n * @internal\n */\n function onTooltipHoverStart(): void {\n if (tooltipTriggerState().disabled() || !tooltipTriggerState().hoverableContent()) {\n return;\n }\n\n contentHovered.set(true);\n clearHoverBridge();\n overlay()?.cancelPendingClose();\n }\n\n /**\n * Called by tooltip content when pointer leaves the tooltip.\n * @internal\n */\n function onTooltipHoverEnd(): void {\n if (tooltipTriggerState().disabled() || !tooltipTriggerState().hoverableContent()) {\n return;\n }\n\n contentHovered.set(false);\n\n if (!triggerHovered()) {\n hide();\n }\n }\n\n /**\n * Create the overlay that will contain the tooltip\n */\n function createOverlayInstance(): void {\n // Determine the content and context based on useTextContent setting\n const shouldUseTextContent = tooltipTriggerState().useTextContent();\n let content = tooltip();\n let context: Signal<T | string | undefined> = tooltipTriggerState().context;\n\n if (!content) {\n if (!shouldUseTextContent) {\n if (ngDevMode) {\n console.error(\n '[ngpTooltipTrigger]: Tooltip must be a string, TemplateRef, or ComponentType. Alternatively, set useTextContent to true if none is provided.',\n );\n }\n\n return;\n }\n\n const textContent = trigger.nativeElement.textContent?.trim() || '';\n if (ngDevMode && !textContent) {\n console.warn(\n '[ngpTooltipTrigger]: useTextContent is enabled but trigger element has no text content',\n );\n return;\n }\n content = NgpTooltipTextContentComponent;\n context = signal(textContent);\n } else if (isString(content)) {\n context = signal(content);\n content = NgpTooltipTextContentComponent;\n }\n\n // Create config for the overlay\n const config: NgpOverlayConfig<T | string> = {\n content,\n triggerElement: trigger.nativeElement,\n anchorElement: anchor(),\n injector: injector,\n context,\n container: container(),\n placement: placement,\n offset: offset(),\n flip: flip(),\n shift: shift(),\n showDelay: showDelay(),\n hideDelay: hideDelay(),\n closeOnEscape: true,\n closeOnOutsideClick: true,\n viewContainerRef: viewContainerRef,\n trackPosition: trackPosition(),\n position: position,\n scrollBehaviour: scrollBehavior(),\n overlayType: 'tooltip',\n cooldown: cooldown(),\n };\n\n // Create the overlay instance\n overlay.set(createOverlay(config));\n }\n\n /**\n * Register document-level pointer tracking while crossing trigger -> tooltip.\n * @internal\n */\n function registerPointerMoveListener(): void {\n if (removePointerMoveListener) {\n return;\n }\n\n const cleanup = disposables.addEventListener(\n document,\n 'pointermove' as keyof HTMLElementEventMap,\n ((event: PointerEvent): void => {\n if (triggerHovered() || contentHovered() || !hoverBridgePolygon()) {\n clearHoverBridge();\n return;\n }\n\n const inBridge = isPointInHoverBridgePolygon(\n { x: event.clientX, y: event.clientY },\n hoverBridgePolygon()!,\n );\n\n if (!inBridge) {\n clearHoverBridge();\n hide();\n }\n }) as EventListener,\n true,\n );\n\n removePointerMoveListener = () => {\n cleanup();\n removePointerMoveListener = undefined;\n };\n }\n\n /**\n * Clear hover bridge state and global listeners.\n * @internal\n */\n function clearHoverBridge(): void {\n hoverBridgePolygon.set(null);\n clearHoverBridgeTimeout?.();\n clearHoverBridgeTimeout = undefined;\n removePointerMoveListener?.();\n }\n\n /**\n * Close if pointer leaves trigger and does not move into tooltip soon enough.\n * @internal\n */\n function scheduleHoverBridgeCloseFallback(): void {\n clearHoverBridgeTimeout?.();\n\n clearHoverBridgeTimeout = disposables.setTimeout(() => {\n clearHoverBridgeTimeout = undefined;\n\n if (!triggerHovered() && !contentHovered() && hoverBridgePolygon()) {\n clearHoverBridge();\n hide();\n }\n }, HOVER_BRIDGE_TIMEOUT_MS);\n }\n\n const state = {\n tooltip,\n disabled,\n placement,\n offset,\n showDelay,\n hideDelay,\n flip,\n shift,\n container: deprecatedSetter(container, 'setContainer', setContainer),\n showOnOverflow,\n anchor,\n context,\n useTextContent,\n trackPosition,\n position,\n scrollBehavior,\n cooldown,\n hoverableContent,\n overlay,\n tooltipId,\n open,\n hasOverflow,\n contentHovered,\n hoverBridgePolygon,\n show,\n hide,\n setTooltipId,\n setContainer,\n onTooltipHoverStart,\n onTooltipHoverEnd,\n destroy,\n } satisfies NgpTooltipTriggerState<T>;\n\n return state;\n },\n);\n\nexport function injectTooltipTriggerState<T>(\n options?: StateInjectionOptions,\n): Signal<NgpTooltipTriggerState<T>> {\n return _injectTooltipTriggerState(options) as Signal<NgpTooltipTriggerState<T>>;\n}\n\nexport type NgpTooltipPlacement =\n | 'top'\n | 'right'\n | 'bottom'\n | 'left'\n | 'top-start'\n | 'top-end'\n | 'right-start'\n | 'right-end'\n | 'bottom-start'\n | 'bottom-end'\n | 'left-start'\n | 'left-end';\n","import { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input, numberAttribute, OnDestroy } from '@angular/core';\nimport {\n coerceFlip,\n coerceOffset,\n coerceShift,\n NgpFlip,\n NgpFlipInput,\n NgpOffset,\n NgpOffsetInput,\n NgpOverlayContent,\n NgpPosition,\n NgpShift,\n NgpShiftInput,\n} from 'ng-primitives/portal';\nimport { isString } from 'ng-primitives/utils';\nimport { injectTooltipConfig } from '../config/tooltip-config';\nimport {\n NgpTooltipPlacement,\n ngpTooltipTrigger,\n provideTooltipTriggerState,\n} from './tooltip-trigger-state';\n\ntype TooltipInput<T> = NgpOverlayContent<T> | string | null | undefined;\n\n/**\n * Apply the `ngpTooltipTrigger` directive to an element that triggers the tooltip to show.\n */\n@Directive({\n selector: '[ngpTooltipTrigger]',\n exportAs: 'ngpTooltipTrigger',\n providers: [provideTooltipTriggerState({ inherit: false })],\n})\nexport class NgpTooltipTrigger<T = null> implements OnDestroy {\n /**\n * Access the global tooltip configuration.\n */\n private readonly config = injectTooltipConfig();\n\n /**\n * Access the tooltip template ref.\n */\n readonly tooltip = input<NgpOverlayContent<T> | string | null, TooltipInput<T>>(null, {\n alias: 'ngpTooltipTrigger',\n transform: (value: TooltipInput<T>) => (value && !isString(value) ? value : null),\n });\n\n /**\n * Whether the tooltip is disabled. This allows the tooltip to be enabled or disabled dynamically.\n * @default false\n */\n readonly disabled = input<boolean, BooleanInput>(false, {\n alias: 'ngpTooltipTriggerDisabled',\n transform: booleanAttribute,\n });\n\n /**\n * Define the placement of the tooltip relative to the trigger.\n * @default 'top'\n */\n readonly placement = input<NgpTooltipPlacement>(this.config.placement, {\n alias: 'ngpTooltipTriggerPlacement',\n });\n\n /**\n * Define the offset of the tooltip 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: 'ngpTooltipTriggerOffset',\n transform: coerceOffset,\n });\n\n /**\n * Define the delay before the tooltip is displayed.\n * @default 500\n */\n readonly showDelay = input<number, NumberInput>(this.config.showDelay, {\n alias: 'ngpTooltipTriggerShowDelay',\n transform: numberAttribute,\n });\n\n /**\n * Define the delay before the tooltip is hidden.\n * @default 0\n */\n readonly hideDelay = input<number, NumberInput>(this.config.hideDelay, {\n alias: 'ngpTooltipTriggerHideDelay',\n transform: numberAttribute,\n });\n\n /**\n * Define whether the tooltip should flip when there is not enough space for the tooltip.\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: 'ngpTooltipTriggerFlip',\n transform: coerceFlip,\n });\n\n /**\n * Configure shift behavior to keep the tooltip 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: 'ngpTooltipTriggerShift',\n transform: coerceShift,\n });\n\n /**\n * Define the container in which the tooltip should be attached.\n * @default document.body\n */\n readonly container = input<HTMLElement | string | null>(this.config.container, {\n alias: 'ngpTooltipTriggerContainer',\n });\n\n /**\n * Define whether the tooltip should only show when the trigger element overflows.\n * @default false\n */\n readonly showOnOverflow = input<boolean, BooleanInput>(this.config.showOnOverflow, {\n alias: 'ngpTooltipTriggerShowOnOverflow',\n transform: booleanAttribute,\n });\n\n /**\n * Define an anchor element for positioning the tooltip.\n * If provided, the tooltip will be positioned relative to this element instead of the trigger.\n */\n readonly anchor = input<HTMLElement | null>(null, { alias: 'ngpTooltipTriggerAnchor' });\n\n /**\n * Provide context to the tooltip. This can be used to pass data to the tooltip content.\n */\n readonly context = input<T>(undefined, {\n alias: 'ngpTooltipTriggerContext',\n });\n\n /**\n * Define whether to use the text content of the trigger element as the tooltip content.\n * When enabled, the tooltip will display the text content of the trigger element.\n * @default true\n */\n readonly useTextContent = input<boolean, BooleanInput>(this.config.useTextContent, {\n alias: 'ngpTooltipTriggerUseTextContent',\n transform: booleanAttribute,\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: 'ngpTooltipTriggerTrackPosition',\n transform: booleanAttribute,\n });\n\n /**\n * Programmatic position for the tooltip. When provided, the tooltip\n * will be positioned at these coordinates instead of the trigger element.\n * Use with trackPosition=\"true\" for smooth cursor following.\n */\n readonly position = input<NgpPosition | null>(null, {\n alias: 'ngpTooltipTriggerPosition',\n });\n\n /**\n * Defines how the tooltip behaves when the window is scrolled.\n * @default 'reposition'\n */\n readonly scrollBehavior = input<'reposition' | 'close'>(this.config.scrollBehavior, {\n alias: 'ngpTooltipTriggerScrollBehavior',\n });\n\n /**\n * Define the cooldown duration in milliseconds.\n * When moving from one tooltip to another within this duration,\n * the showDelay is skipped for the new tooltip.\n * @default 300\n */\n readonly cooldown = input<number, NumberInput>(this.config.cooldown, {\n alias: 'ngpTooltipTriggerCooldown',\n transform: numberAttribute,\n });\n\n /**\n * Whether hovering tooltip content keeps the tooltip open.\n * @default false\n */\n readonly hoverableContent = input<boolean, BooleanInput>(this.config.hoverableContent, {\n alias: 'ngpTooltipTriggerHoverableContent',\n transform: booleanAttribute,\n });\n\n protected readonly state = ngpTooltipTrigger({\n tooltip: this.tooltip,\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 showOnOverflow: this.showOnOverflow,\n anchor: this.anchor,\n context: this.context,\n useTextContent: this.useTextContent,\n trackPosition: this.trackPosition,\n position: this.position,\n scrollBehavior: this.scrollBehavior,\n cooldown: this.cooldown,\n hoverableContent: this.hoverableContent,\n });\n\n ngOnDestroy(): void {\n return this.state.destroy();\n }\n\n /**\n * Show the tooltip programmatically (skips cooldown so multiple tooltips can coexist).\n */\n show(): void {\n return this.state.show();\n }\n\n /**\n * Hide the tooltip.\n */\n hide(): void {\n return this.state.hide();\n }\n\n /**\n * Called by tooltip content when pointer enters the tooltip.\n * @internal\n */\n onTooltipHoverStart(): void {\n return this.state.onTooltipHoverStart();\n }\n\n /**\n * Called by tooltip content when pointer leaves the tooltip.\n * @internal\n */\n onTooltipHoverEnd(): void {\n return this.state.onTooltipHoverEnd();\n }\n\n /**\n * Set the tooltip id.\n */\n setTooltipId(id: string): void {\n return this.state.setTooltipId(id);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AA0FO,MAAM,oBAAoB,GAAqB;AAC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