@primereact/headless 11.0.0-alpha.5 → 11.0.0-alpha.6
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.
- package/carousel/index.d.ts +2 -0
- package/carousel/index.mjs +2 -0
- package/carousel/index.mjs.map +1 -0
- package/carousel/useCarousel.d.ts +23 -0
- package/carousel/useCarousel.props.d.ts +2 -0
- package/carousel/useCarousel.test.d.ts +0 -0
- package/inputnumber/index.d.ts +2 -0
- package/inputnumber/index.mjs +2 -0
- package/inputnumber/index.mjs.map +1 -0
- package/inputnumber/useInputNumber.d.ts +24 -0
- package/inputnumber/useInputNumber.props.d.ts +2 -0
- package/inputnumber/useInputNumber.test.d.ts +0 -0
- package/package.json +4 -4
- package/toast/index.css +2 -0
- package/toast/index.css.map +1 -0
- package/toast/index.d.ts +2 -0
- package/toast/index.mjs +2 -0
- package/toast/index.mjs.map +1 -0
- package/toast/item/index.css +2 -0
- package/toast/item/index.css.map +1 -0
- package/toast/item/index.d.ts +2 -0
- package/toast/item/index.mjs +2 -0
- package/toast/item/index.mjs.map +1 -0
- package/toast/item/useToastItem.d.ts +21 -0
- package/toast/item/useToastItem.props.d.ts +2 -0
- package/toast/item/useToastItem.test.d.ts +0 -0
- package/toast/useToast.d.ts +18 -0
- package/toast/useToast.props.d.ts +2 -0
- package/toast/useToast.test.d.ts +0 -0
- package/tooltip/index.mjs +1 -1
- package/tooltip/index.mjs.map +1 -1
package/tooltip/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tooltip/useTooltip.ts","../../../primereact/src/tooltip/group/TooltipGroup.tsx","../../../primereact/src/base/index.ts","../../../primereact/src/tooltip/group/TooltipGroup.context.ts","../../../primereact/src/tooltip/group/TooltipGroup.props.ts","../../src/tooltip/useTooltip.props.ts"],"sourcesContent":["import { withHeadless } from '@primereact/core/headless';\nimport { usePlacer } from '@primereact/headless/placer';\nimport { useUnmountEffect } from '@primereact/hooks/use-unmount-effect';\nimport { addStyle, isClient } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { useTooltipGroupContext } from 'primereact/tooltip/group';\nimport * as React from 'react';\nimport { defaultProps } from './useTooltip.props';\n\ntype Point = { x: number; y: number };\n\nexport const useTooltip = withHeadless({\n name: 'useTooltip',\n defaultProps,\n setup: ({ props, $primereact }) => {\n const { showDelayDuration, hideDelayDuration, autoHide, autoZIndex, baseZIndex, disabled, defaultOpen, open, onOpenChange, closeOnEscape, side, align, sideOffset, alignOffset } = props;\n const placer = usePlacer({ side, align, sideOffset, alignOffset });\n const tooltipgroup = useTooltipGroupContext();\n const [visibleState, setVisibleState] = React.useState<boolean>(false);\n const [lifeState, setLifeState] = React.useState<boolean>(false);\n const [shouldAnimateOnEnter, setShouldAnimateOnEnter] = React.useState<boolean>(false);\n const [shouldAnimateOnLeave, setShouldAnimateOnLeave] = React.useState<boolean>(false);\n const showTimeout = React.useRef<number | null>(null);\n const hideTimeout = React.useRef<number | null>(null);\n const outsideClickListener = React.useRef<((event: Event) => void) | null>(null);\n const selfClick = React.useRef<boolean>(false);\n const documentKeydownListener = React.useRef<((event: KeyboardEvent) => void) | null>(null);\n const documentScrollListener = React.useRef<((event: Event) => void) | null>(null);\n const documentResizeListener = React.useRef<((event: Event) => void) | null>(null);\n const contentRef = React.useRef<HTMLDivElement | null>(null);\n const safePolygonRef = React.useRef<Point[] | null>(null);\n\n const state = {\n visible: visibleState,\n life: lifeState,\n shouldAnimateOnEnter,\n shouldAnimateOnLeave\n };\n\n const getTrigger = () => {\n if (placer?.anchorRef?.current && placer?.anchorRef?.current instanceof HTMLElement) {\n return placer?.anchorRef?.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return placer?.anchorRef?.current?.elementRef?.current;\n };\n\n const getContainer = () => {\n if (placer?.containerRef?.current && placer?.containerRef?.current instanceof HTMLElement) {\n return placer?.containerRef?.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return placer?.containerRef?.current?.elementRef?.current;\n };\n\n const getArrow = () => {\n if (placer?.arrowRef?.current && placer?.arrowRef?.current instanceof HTMLElement) {\n return placer?.arrowRef?.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return placer?.arrowRef?.current?.elementRef?.current;\n };\n\n const getContent = () => {\n if (contentRef.current && contentRef.current instanceof HTMLElement) {\n return contentRef.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return contentRef.current?.elementRef?.current;\n };\n\n const clearTimers = () => {\n if (showTimeout.current) {\n clearTimeout(showTimeout.current);\n showTimeout.current = null;\n }\n\n if (hideTimeout.current) {\n clearTimeout(hideTimeout.current);\n hideTimeout.current = null;\n }\n };\n\n const show = (forceInstant = false) => {\n if (disabled) return;\n\n clearTimers();\n\n tooltipgroup?.clearTimers?.();\n const timeoutState = tooltipgroup?.state?.timeoutState;\n\n setShouldAnimateOnLeave(false);\n setShouldAnimateOnEnter(!forceInstant && timeoutState !== 'instant');\n\n const showDelay = timeoutState === 'instant' || timeoutState === 'normal' ? 0 : showDelayDuration || 400;\n\n if (forceInstant || showDelay === 0) {\n setVisibleState(true);\n setLifeState(true);\n onOpenChange?.({ value: true });\n } else {\n showTimeout.current = window.setTimeout(() => {\n setVisibleState(true);\n setLifeState(true);\n onOpenChange?.({ value: true });\n }, showDelay);\n }\n };\n\n const hide = (forceInstant = false) => {\n clearTimers();\n const timeoutState = tooltipgroup?.state?.timeoutState;\n\n setShouldAnimateOnEnter(false);\n setShouldAnimateOnLeave(!forceInstant && timeoutState !== 'instant');\n\n tooltipgroup?.scheduleTimeout(() => {}, getTrigger() || undefined);\n\n const hideDelay = timeoutState === 'instant' || timeoutState === 'normal' ? 0 : hideDelayDuration || 0;\n\n if (forceInstant || hideDelay === 0) {\n setVisibleState(false);\n onOpenChange?.({ value: false });\n } else {\n hideTimeout.current = window.setTimeout(() => {\n setVisibleState(false);\n onOpenChange?.({ value: false });\n }, hideDelay);\n }\n };\n\n const onTriggerClick = () => hide(true);\n const onTriggerPointerDown = () => hide(true);\n\n const onTriggerPointerEnter = () => {\n show();\n safePolygonRef.current = null;\n };\n\n const onTriggerFocus = () => show(true);\n const onTriggerBlur = () => hide();\n\n const onTriggerPointerLeave = () => {\n if (autoHide) {\n hide();\n } else {\n onPointerLeave();\n }\n };\n\n const bindTriggerListeners = () => {\n const trigger = getTrigger();\n\n if (!trigger || !isClient()) return;\n\n trigger.addEventListener('click', onTriggerClick);\n trigger.addEventListener('pointerdown', onTriggerPointerDown);\n trigger.addEventListener('pointerenter', onTriggerPointerEnter);\n trigger.addEventListener('focus', onTriggerFocus);\n trigger.addEventListener('blur', onTriggerBlur);\n trigger.addEventListener('pointerleave', onTriggerPointerLeave);\n };\n\n const unbindTriggerListeners = () => {\n const trigger = getTrigger();\n\n if (!trigger || !isClient()) return;\n\n trigger.removeEventListener('click', onTriggerClick);\n trigger.removeEventListener('pointerdown', onTriggerPointerDown);\n trigger.removeEventListener('pointerenter', onTriggerPointerEnter);\n trigger.removeEventListener('focus', onTriggerFocus);\n trigger.removeEventListener('blur', onTriggerBlur);\n trigger.removeEventListener('pointerleave', onTriggerPointerLeave);\n };\n\n const onContainerPointerEnter = () => {\n if (autoHide) return;\n\n show(true);\n safePolygonRef.current = null;\n };\n\n const onContainerFocus = () => show(true);\n const onContainerBlur = () => hide();\n\n const onContainerPointerLeave = () => {\n if (autoHide) return;\n\n onPointerLeave();\n };\n\n const bindContainerListeners = () => {\n const container = getContainer();\n\n if (!container || !isClient()) return;\n\n container.addEventListener('pointerenter', onContainerPointerEnter);\n container.addEventListener('focus', onContainerFocus);\n container.addEventListener('blur', onContainerBlur);\n container.addEventListener('pointerleave', onContainerPointerLeave);\n };\n\n const unbindContainerListeners = () => {\n const container = getContainer();\n\n if (!container || !isClient()) return;\n\n container.removeEventListener('pointerenter', onContainerPointerEnter);\n container.removeEventListener('focus', onContainerFocus);\n container.removeEventListener('blur', onContainerBlur);\n container.removeEventListener('pointerleave', onContainerPointerLeave);\n };\n\n const sortPointsClockwise = (points: Point[]): Point[] => {\n const center = {\n x: points.reduce((sum, p) => sum + p.x, 0) / points.length,\n y: points.reduce((sum, p) => sum + p.y, 0) / points.length\n };\n\n return [...points].sort((a, b) => {\n const angleA = Math.atan2(a.y - center.y, a.x - center.x);\n const angleB = Math.atan2(b.y - center.y, b.x - center.x);\n\n return angleA - angleB;\n });\n };\n\n const createSafePolygon = (): Point[] | undefined => {\n const trigger = getTrigger();\n const container = getContainer();\n\n if (!trigger || !container) return;\n\n const triggerRect = trigger.getBoundingClientRect();\n const containerRect = container.getBoundingClientRect();\n const points = [];\n\n switch (placer?.state?.effectiveSide) {\n case 'top':\n points.push({ x: triggerRect.left, y: triggerRect.top }, { x: triggerRect.right, y: triggerRect.top }, { x: containerRect.left, y: containerRect.bottom }, { x: containerRect.right, y: containerRect.bottom });\n break;\n case 'bottom':\n points.push({ x: triggerRect.left, y: triggerRect.bottom }, { x: triggerRect.right, y: triggerRect.bottom }, { x: containerRect.left, y: containerRect.top }, { x: containerRect.right, y: containerRect.top });\n break;\n case 'left':\n points.push({ x: triggerRect.left, y: triggerRect.top }, { x: triggerRect.left, y: triggerRect.bottom }, { x: containerRect.right, y: containerRect.top }, { x: containerRect.right, y: containerRect.bottom });\n break;\n case 'right':\n points.push({ x: triggerRect.right, y: triggerRect.top }, { x: triggerRect.right, y: triggerRect.bottom }, { x: containerRect.left, y: containerRect.top }, { x: containerRect.left, y: containerRect.bottom });\n break;\n }\n\n return sortPointsClockwise(points);\n };\n\n const isPointInPolygon = (point: Point, polygon: Point[] | null) => {\n if (!polygon) return false;\n\n const { x, y } = point;\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 yi = polygon[i].y;\n const xj = polygon[j].x,\n yj = polygon[j].y;\n\n const intersect = yi > y !== yj > y && x < ((xj - xi) * (y - yi)) / (yj - yi + 0.0000001) + xi;\n\n if (intersect) inside = !inside;\n }\n\n return inside;\n };\n\n const onPointerLeave = () => {\n const container = getContainer();\n\n if (!container) {\n safePolygonRef.current = null;\n hide(true);\n } else {\n safePolygonRef.current = createSafePolygon() || null;\n }\n };\n\n const onPointerMove = (event: PointerEvent) => {\n if (autoHide) return;\n\n const point = { x: event.clientX, y: event.clientY };\n const currentTarget = event.target as HTMLElement;\n const trigger = getTrigger();\n const container = getContainer();\n const arrow = getArrow();\n\n if (!trigger || !container) return;\n\n if (isPointInPolygon(point, safePolygonRef.current) || trigger.contains(currentTarget) || container.contains(currentTarget) || (arrow && arrow.contains(currentTarget))) return;\n else {\n hide();\n safePolygonRef.current = null;\n }\n };\n\n const bindDocumentListeners = () => {\n document.addEventListener('pointermove', onPointerMove);\n };\n\n const unbindDocumentListeners = () => {\n document.removeEventListener('pointermove', onPointerMove);\n };\n\n const onEnter = () => {\n const container = getContainer();\n\n if (!container) return;\n\n addStyle(container, { opacity: '' });\n };\n\n const onBeforeEnter = () => {\n const container = getContainer();\n\n if (!container) return;\n\n placer?.applyPlacement();\n bindContainerListeners();\n bindOutsideClickListener();\n bindScrollListener();\n bindResizeListener();\n bindDocumentListeners();\n\n if (autoZIndex) {\n ZIndex.set('tooltip', container, (baseZIndex ?? 0) + ($primereact.config?.zIndex?.tooltip ?? 1100));\n }\n\n if (closeOnEscape) {\n bindDocumentKeyDownListener();\n }\n };\n\n const onLeave = () => {\n unbindContainerListeners();\n unbindOutsideClickListener();\n unbindScrollListener();\n unbindResizeListener();\n unbindDocumentKeyDownListener();\n unbindDocumentListeners();\n //hide(true);\n };\n\n const onContentAfterLeave = () => {\n setLifeState(false);\n };\n\n const onContentEnter = () => {\n const content = getContent();\n\n if (!content) return;\n\n addStyle(content, { opacity: '1', transform: 'scale(1)' });\n };\n\n const onContentLeave = () => {\n const content = getContent();\n\n if (!content) return;\n\n addStyle(content, { opacity: '0', transform: 'scale(0.95)' });\n };\n\n const bindOutsideClickListener = () => {\n if (!outsideClickListener.current && isClient()) {\n outsideClickListener.current = (event: Event) => {\n const clickEvent = event as MouseEvent;\n const container = getContainer();\n\n if (visibleState && !(clickEvent.target === container || container?.contains(clickEvent.target as Node))) {\n hide(true);\n }\n\n selfClick.current = false;\n };\n\n document.addEventListener('click', outsideClickListener.current);\n }\n };\n\n const unbindOutsideClickListener = () => {\n if (outsideClickListener.current) {\n document.removeEventListener('click', outsideClickListener.current);\n outsideClickListener.current = null;\n selfClick.current = false;\n }\n };\n\n const bindDocumentKeyDownListener = () => {\n if (!documentKeydownListener.current) {\n documentKeydownListener.current = (event: KeyboardEvent) => {\n if (event.code === 'Escape' && closeOnEscape) {\n hide(true);\n }\n };\n\n window.document.addEventListener('keydown', documentKeydownListener.current);\n }\n };\n\n const unbindDocumentKeyDownListener = () => {\n if (documentKeydownListener.current) {\n window.document.removeEventListener('keydown', documentKeydownListener.current);\n documentKeydownListener.current = null;\n }\n };\n\n const bindScrollListener = () => {\n if (!documentScrollListener.current) {\n documentScrollListener.current = () => {\n if (!visibleState) return;\n\n hide(true);\n };\n\n window.document.addEventListener('scroll', documentScrollListener.current);\n }\n };\n\n const unbindScrollListener = () => {\n if (documentScrollListener.current) {\n window.document.removeEventListener('scroll', documentScrollListener.current);\n documentScrollListener.current = null;\n }\n };\n\n const bindResizeListener = () => {\n if (!documentResizeListener.current) {\n documentResizeListener.current = () => {\n if (!visibleState) return;\n\n hide(true);\n };\n\n window.document.addEventListener('resize', documentResizeListener.current);\n }\n };\n\n const unbindResizeListener = () => {\n if (documentResizeListener.current) {\n window.document.removeEventListener('resize', documentResizeListener.current);\n documentResizeListener.current = null;\n }\n };\n\n // Effects\n React.useEffect(() => {\n if (disabled) return;\n\n if (defaultOpen || open) {\n setTimeout(() => {\n show();\n }, 0);\n }\n }, [defaultOpen, open, disabled]);\n\n React.useEffect(() => {\n if (!disabled) {\n bindTriggerListeners();\n }\n }, [placer?.anchorRef?.current, disabled]);\n\n useUnmountEffect(() => {\n clearTimers();\n unbindTriggerListeners();\n unbindContainerListeners();\n\n const container = getContainer();\n\n if (autoZIndex && container) {\n ZIndex.clear(container);\n }\n });\n\n return {\n state,\n placer,\n show,\n hide,\n onEnter,\n onBeforeEnter,\n onLeave,\n onContentAfterLeave,\n onContentEnter,\n onContentLeave,\n contentRef\n };\n }\n});\n","'use client';\nimport { Component } from '@primereact/core/component';\nimport { useTooltipGroup } from '@primereact/headless/tooltip/group';\nimport { mergeProps } from '@primeuix/utils';\nimport { withComponent } from 'primereact/base';\nimport * as React from 'react';\nimport { TooltipGroupProvider } from './TooltipGroup.context';\nimport { defaultGroupProps } from './TooltipGroup.props';\n\nexport const TooltipGroup = withComponent({\n name: 'TooltipGroup',\n defaultProps: defaultGroupProps,\n setup(instance) {\n const tooltipgroup = useTooltipGroup(instance.inProps);\n\n return tooltipgroup;\n },\n render(instance) {\n const { props, ptmi } = instance;\n\n const rootProps = mergeProps(ptmi('root'));\n\n return (\n <TooltipGroupProvider value={instance}>\n <Component instance={instance} attrs={rootProps} children={props.children} />\n </TooltipGroupProvider>\n );\n }\n});\n","import { withComponent as withComponentInCore } from '@primereact/core/component';\nimport { styles as baseStyles } from '@primereact/styles/base';\nimport type { withComponentOptions } from '@primereact/types/core';\nimport type { StylesOptions } from '@primereact/types/styles';\n\nexport const withComponent = <IProps, DProps, Exposes extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>, Styles = StylesOptions, CData = Record<string, unknown>>({\n name = 'UnknownComponent',\n defaultProps,\n styles = {\n ...baseStyles,\n name: 'global'\n } as Styles,\n components,\n setup,\n render\n}: withComponentOptions<IProps, DProps, Exposes, Styles, CData>) => {\n return withComponentInCore<IProps, DProps, Exposes, Styles, CData>({\n name,\n defaultProps,\n styles,\n components,\n setup,\n render\n });\n};\n","import { createOptionalContext } from '@primereact/core/utils';\nimport type { TooltipGroupInstance } from '@primereact/types/shared/tooltip';\n\nexport const [TooltipGroupProvider, useTooltipGroupContext] = createOptionalContext<TooltipGroupInstance>();\n","import * as HeadlessTooltipGroup from '@primereact/headless/tooltip/group';\nimport type { TooltipGroupProps } from '@primereact/types/shared/tooltip';\nimport * as React from 'react';\n\nexport const defaultGroupProps: TooltipGroupProps = {\n ...HeadlessTooltipGroup.defaultProps,\n as: React.Fragment\n};\n","import type { useTooltipProps } from '@primereact/types/shared/tooltip';\n\nexport const defaultProps: useTooltipProps = {\n showDelayDuration: 700,\n hideDelayDuration: 0,\n autoZIndex: true,\n baseZIndex: 0,\n containerRef: undefined,\n triggerRef: undefined,\n open: false,\n onOpenChange: undefined,\n defaultOpen: false,\n closeOnEscape: true,\n side: 'top',\n sideOffset: 0,\n align: 'center',\n alignOffset: 0,\n autoHide: false,\n disabled: false\n};\n"],"mappings":"6bAAA,OAAS,gBAAAA,OAAoB,4BAC7B,OAAS,aAAAC,OAAiB,8BAC1B,OAAS,oBAAAC,OAAwB,uCACjC,OAAS,YAAAC,EAAU,YAAAC,MAAgB,sBACnC,OAAS,UAAAC,OAAc,yBCHvB,OAAS,aAAAC,OAAiB,6BAC1B,OAAS,mBAAAC,OAAuB,qCAChC,OAAS,cAAAC,OAAkB,kBCH3B,OAAS,iBAAiBC,OAA2B,6BACrD,OAAS,UAAUC,OAAkB,0BAI9B,IAAMC,GAAgB,CAAuJ,CAChL,KAAAC,EAAO,mBACP,aAAAC,EACA,OAAAC,EAASC,EAAAC,EAAA,GACFC,IADE,CAEL,KAAM,QACV,GACA,WAAAC,EACA,MAAAC,EACA,OAAAC,CACJ,IACWC,GAA4D,CAC/D,KAAAT,EACA,aAAAC,EACA,OAAAC,EACA,WAAAI,EACA,MAAAC,EACA,OAAAC,CACJ,CAAC,EDlBL,UAAYE,MAAW,QELvB,OAAS,yBAAAC,OAA6B,yBAG/B,GAAM,CAACC,GAAsBC,EAAsB,EAAIF,GAA4C,ECH1G,UAAYG,OAA0B,qCAEtC,UAAYC,OAAW,QAEhB,IAAMC,GAAuCC,EAAAC,EAAA,GACxB,iBADwB,CAEhD,GAAU,WACd,GHEO,IAAMC,GAAeC,GAAc,CACtC,KAAM,eACN,aAAc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,EAAY,EACZiB,GAAuB,EACvBO,GAAyB,EAEzB,IAAMD,EAAY1B,EAAa,EAE3BvC,GAAciE,GACdqC,GAAO,MAAMrC,CAAS,CAE9B,CAAC,EAEM,CACH,MAAAjC,GACA,OAAArB,EACA,KAAAgC,EACA,KAAAI,EACA,QAAAiD,GACA,cAAAE,GACA,QAAAM,GACA,oBAAAK,GACA,eAAAC,GACA,eAAAE,GACA,WAAAlF,CACJ,CACJ,CACJ,CAAC","names":["withHeadless","usePlacer","useUnmountEffect","addStyle","isClient","ZIndex","Component","useTooltipGroup","mergeProps","withComponentInCore","baseStyles","withComponent","name","defaultProps","styles","__spreadProps","__spreadValues","baseStyles","components","setup","render","withComponentInCore","React","createOptionalContext","TooltipGroupProvider","useTooltipGroupContext","HeadlessTooltipGroup","React","defaultGroupProps","__spreadProps","__spreadValues","TooltipGroup","withComponent","defaultGroupProps","instance","useTooltipGroup","props","ptmi","rootProps","mergeProps","TooltipGroupProvider","Component","React","defaultProps","useTooltip","withHeadless","defaultProps","props","$primereact","_a","showDelayDuration","hideDelayDuration","autoHide","autoZIndex","baseZIndex","disabled","defaultOpen","open","onOpenChange","closeOnEscape","side","align","sideOffset","alignOffset","placer","usePlacer","tooltipgroup","useTooltipGroupContext","visibleState","setVisibleState","lifeState","setLifeState","shouldAnimateOnEnter","setShouldAnimateOnEnter","shouldAnimateOnLeave","setShouldAnimateOnLeave","showTimeout","hideTimeout","outsideClickListener","selfClick","documentKeydownListener","documentScrollListener","documentResizeListener","contentRef","safePolygonRef","state","getTrigger","_b","_c","_d","_e","_f","getContainer","getArrow","getContent","clearTimers","show","forceInstant","timeoutState","showDelay","hide","hideDelay","onTriggerClick","onTriggerPointerDown","onTriggerPointerEnter","onTriggerFocus","onTriggerBlur","onTriggerPointerLeave","onPointerLeave","bindTriggerListeners","trigger","isClient","unbindTriggerListeners","onContainerPointerEnter","onContainerFocus","onContainerBlur","onContainerPointerLeave","bindContainerListeners","container","unbindContainerListeners","sortPointsClockwise","points","center","sum","p","a","b","angleA","angleB","createSafePolygon","triggerRect","containerRect","isPointInPolygon","point","polygon","x","y","inside","j","xi","yi","xj","yj","onPointerMove","event","currentTarget","arrow","bindDocumentListeners","unbindDocumentListeners","onEnter","addStyle","onBeforeEnter","bindOutsideClickListener","bindScrollListener","bindResizeListener","ZIndex","bindDocumentKeyDownListener","onLeave","unbindOutsideClickListener","unbindScrollListener","unbindResizeListener","unbindDocumentKeyDownListener","onContentAfterLeave","onContentEnter","content","onContentLeave","clickEvent","useUnmountEffect"]}
|
|
1
|
+
{"version":3,"sources":["../../src/tooltip/useTooltip.ts","../../../primereact/src/tooltip/group/TooltipGroup.tsx","../../../primereact/src/base/index.ts","../../../primereact/src/tooltip/group/TooltipGroup.context.ts","../../../primereact/src/tooltip/group/TooltipGroup.props.ts","../../src/tooltip/useTooltip.props.ts"],"sourcesContent":["import { withHeadless } from '@primereact/core/headless';\nimport { usePlacer } from '@primereact/headless/placer';\nimport { useUnmountEffect } from '@primereact/hooks/use-unmount-effect';\nimport { isClient } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { useTooltipGroupContext } from 'primereact/tooltip/group';\nimport * as React from 'react';\nimport { defaultProps } from './useTooltip.props';\n\ntype Point = { x: number; y: number };\n\nexport const useTooltip = withHeadless({\n name: 'useTooltip',\n defaultProps,\n setup: ({ props, $primereact }) => {\n const { showDelayDuration, hideDelayDuration, autoHide, autoZIndex, baseZIndex, disabled, defaultOpen, open, onOpenChange, closeOnEscape, side, align, sideOffset, alignOffset } = props;\n const placer = usePlacer({ side, align, sideOffset, alignOffset });\n const tooltipgroup = useTooltipGroupContext();\n const [visibleState, setVisibleState] = React.useState<boolean>(false);\n const [lifeState, setLifeState] = React.useState<boolean>(false);\n const [shouldAnimateOnEnter, setShouldAnimateOnEnter] = React.useState<boolean>(false);\n const [shouldAnimateOnLeave, setShouldAnimateOnLeave] = React.useState<boolean>(false);\n const showTimeout = React.useRef<number | null>(null);\n const hideTimeout = React.useRef<number | null>(null);\n const outsideClickListener = React.useRef<((event: Event) => void) | null>(null);\n const selfClick = React.useRef<boolean>(false);\n const documentKeydownListener = React.useRef<((event: KeyboardEvent) => void) | null>(null);\n const documentScrollListener = React.useRef<((event: Event) => void) | null>(null);\n const documentResizeListener = React.useRef<((event: Event) => void) | null>(null);\n const contentRef = React.useRef<HTMLDivElement | null>(null);\n const safePolygonRef = React.useRef<Point[] | null>(null);\n\n const state = {\n visible: visibleState,\n life: lifeState,\n shouldAnimateOnEnter,\n shouldAnimateOnLeave\n };\n\n const getTrigger = () => {\n if (placer?.anchorRef?.current && placer?.anchorRef?.current instanceof HTMLElement) {\n return placer?.anchorRef?.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return placer?.anchorRef?.current?.elementRef?.current;\n };\n\n const getContainer = () => {\n if (placer?.containerRef?.current && placer?.containerRef?.current instanceof HTMLElement) {\n return placer?.containerRef?.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return placer?.containerRef?.current?.elementRef?.current;\n };\n\n const getArrow = () => {\n if (placer?.arrowRef?.current && placer?.arrowRef?.current instanceof HTMLElement) {\n return placer?.arrowRef?.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return placer?.arrowRef?.current?.elementRef?.current;\n };\n\n const getContent = () => {\n if (contentRef.current && contentRef.current instanceof HTMLElement) {\n return contentRef.current;\n }\n\n // @ts-expect-error - Temporary fix for elementRef property access\n return contentRef.current?.elementRef?.current;\n };\n\n const clearTimers = () => {\n if (showTimeout.current) {\n clearTimeout(showTimeout.current);\n showTimeout.current = null;\n }\n\n if (hideTimeout.current) {\n clearTimeout(hideTimeout.current);\n hideTimeout.current = null;\n }\n };\n\n const show = (forceInstant = false) => {\n if (disabled) return;\n\n clearTimers();\n\n tooltipgroup?.clearTimers?.();\n const timeoutState = tooltipgroup?.state?.timeoutState;\n\n setShouldAnimateOnLeave(false);\n setShouldAnimateOnEnter(!forceInstant && timeoutState !== 'instant');\n\n const showDelay = timeoutState === 'instant' || timeoutState === 'normal' ? 0 : showDelayDuration || 400;\n\n if (forceInstant || showDelay === 0) {\n setVisibleState(true);\n setLifeState(true);\n onOpenChange?.({ value: true });\n } else {\n showTimeout.current = window.setTimeout(() => {\n setVisibleState(true);\n setLifeState(true);\n onOpenChange?.({ value: true });\n }, showDelay);\n }\n };\n\n const hide = (forceInstant = false) => {\n clearTimers();\n const timeoutState = tooltipgroup?.state?.timeoutState;\n\n setShouldAnimateOnEnter(false);\n setShouldAnimateOnLeave(!forceInstant && timeoutState !== 'instant');\n\n tooltipgroup?.scheduleTimeout(() => {}, getTrigger() || undefined);\n\n const hideDelay = timeoutState === 'instant' || timeoutState === 'normal' ? 0 : hideDelayDuration || 0;\n\n if (forceInstant || hideDelay === 0) {\n setVisibleState(false);\n onOpenChange?.({ value: false });\n } else {\n hideTimeout.current = window.setTimeout(() => {\n setVisibleState(false);\n onOpenChange?.({ value: false });\n }, hideDelay);\n }\n };\n\n const onTriggerClick = () => hide(true);\n const onTriggerPointerDown = () => hide(true);\n\n const onTriggerPointerEnter = () => {\n show();\n safePolygonRef.current = null;\n };\n\n const onTriggerFocus = () => show(true);\n const onTriggerBlur = () => hide();\n\n const onTriggerPointerLeave = () => {\n if (autoHide) {\n hide();\n } else {\n onPointerLeave();\n }\n };\n\n const bindTriggerListeners = () => {\n const trigger = getTrigger();\n\n if (!trigger || !isClient()) return;\n\n trigger.addEventListener('click', onTriggerClick);\n trigger.addEventListener('pointerdown', onTriggerPointerDown);\n trigger.addEventListener('pointerenter', onTriggerPointerEnter);\n trigger.addEventListener('focus', onTriggerFocus);\n trigger.addEventListener('blur', onTriggerBlur);\n trigger.addEventListener('pointerleave', onTriggerPointerLeave);\n };\n\n const unbindTriggerListeners = () => {\n const trigger = getTrigger();\n\n if (!trigger || !isClient()) return;\n\n trigger.removeEventListener('click', onTriggerClick);\n trigger.removeEventListener('pointerdown', onTriggerPointerDown);\n trigger.removeEventListener('pointerenter', onTriggerPointerEnter);\n trigger.removeEventListener('focus', onTriggerFocus);\n trigger.removeEventListener('blur', onTriggerBlur);\n trigger.removeEventListener('pointerleave', onTriggerPointerLeave);\n };\n\n const onContainerPointerEnter = () => {\n if (autoHide) return;\n\n show(true);\n safePolygonRef.current = null;\n };\n\n const onContainerFocus = () => show(true);\n const onContainerBlur = () => hide();\n\n const onContainerPointerLeave = () => {\n if (autoHide) return;\n\n onPointerLeave();\n };\n\n const bindContainerListeners = () => {\n const container = getContainer();\n\n if (!container || !isClient()) return;\n\n container.addEventListener('pointerenter', onContainerPointerEnter);\n container.addEventListener('focus', onContainerFocus);\n container.addEventListener('blur', onContainerBlur);\n container.addEventListener('pointerleave', onContainerPointerLeave);\n };\n\n const unbindContainerListeners = () => {\n const container = getContainer();\n\n if (!container || !isClient()) return;\n\n container.removeEventListener('pointerenter', onContainerPointerEnter);\n container.removeEventListener('focus', onContainerFocus);\n container.removeEventListener('blur', onContainerBlur);\n container.removeEventListener('pointerleave', onContainerPointerLeave);\n };\n\n const sortPointsClockwise = (points: Point[]): Point[] => {\n const center = {\n x: points.reduce((sum, p) => sum + p.x, 0) / points.length,\n y: points.reduce((sum, p) => sum + p.y, 0) / points.length\n };\n\n return [...points].sort((a, b) => {\n const angleA = Math.atan2(a.y - center.y, a.x - center.x);\n const angleB = Math.atan2(b.y - center.y, b.x - center.x);\n\n return angleA - angleB;\n });\n };\n\n const createSafePolygon = (): Point[] | undefined => {\n const trigger = getTrigger();\n const container = getContainer();\n\n if (!trigger || !container) return;\n\n const triggerRect = trigger.getBoundingClientRect();\n const containerRect = container.getBoundingClientRect();\n const points = [];\n\n switch (placer?.state?.effectiveSide) {\n case 'top':\n points.push({ x: triggerRect.left, y: triggerRect.top }, { x: triggerRect.right, y: triggerRect.top }, { x: containerRect.left, y: containerRect.bottom }, { x: containerRect.right, y: containerRect.bottom });\n break;\n case 'bottom':\n points.push({ x: triggerRect.left, y: triggerRect.bottom }, { x: triggerRect.right, y: triggerRect.bottom }, { x: containerRect.left, y: containerRect.top }, { x: containerRect.right, y: containerRect.top });\n break;\n case 'left':\n points.push({ x: triggerRect.left, y: triggerRect.top }, { x: triggerRect.left, y: triggerRect.bottom }, { x: containerRect.right, y: containerRect.top }, { x: containerRect.right, y: containerRect.bottom });\n break;\n case 'right':\n points.push({ x: triggerRect.right, y: triggerRect.top }, { x: triggerRect.right, y: triggerRect.bottom }, { x: containerRect.left, y: containerRect.top }, { x: containerRect.left, y: containerRect.bottom });\n break;\n }\n\n return sortPointsClockwise(points);\n };\n\n const isPointInPolygon = (point: Point, polygon: Point[] | null) => {\n if (!polygon) return false;\n\n const { x, y } = point;\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 yi = polygon[i].y;\n const xj = polygon[j].x,\n yj = polygon[j].y;\n\n const intersect = yi > y !== yj > y && x < ((xj - xi) * (y - yi)) / (yj - yi + 0.0000001) + xi;\n\n if (intersect) inside = !inside;\n }\n\n return inside;\n };\n\n const onPointerLeave = () => {\n const container = getContainer();\n\n if (!container) {\n safePolygonRef.current = null;\n hide(true);\n } else {\n safePolygonRef.current = createSafePolygon() || null;\n }\n };\n\n const onPointerMove = (event: PointerEvent) => {\n if (autoHide) return;\n\n const point = { x: event.clientX, y: event.clientY };\n const currentTarget = event.target as HTMLElement;\n const trigger = getTrigger();\n const container = getContainer();\n const arrow = getArrow();\n\n if (!trigger || !container) return;\n\n if (isPointInPolygon(point, safePolygonRef.current) || trigger.contains(currentTarget) || container.contains(currentTarget) || (arrow && arrow.contains(currentTarget))) return;\n else {\n hide();\n safePolygonRef.current = null;\n }\n };\n\n const bindDocumentListeners = () => {\n document.addEventListener('pointermove', onPointerMove);\n };\n\n const unbindDocumentListeners = () => {\n document.removeEventListener('pointermove', onPointerMove);\n };\n\n const onEnter = () => {\n const container = getContainer();\n\n if (!container) return;\n\n //addStyle(container, { opacity: '' });\n };\n\n const onBeforeEnter = () => {\n const container = getContainer();\n\n if (!container) return;\n\n placer?.applyPlacement();\n bindContainerListeners();\n bindOutsideClickListener();\n bindScrollListener();\n bindResizeListener();\n bindDocumentListeners();\n\n if (autoZIndex) {\n ZIndex.set('tooltip', container, (baseZIndex ?? 0) + ($primereact.config?.zIndex?.tooltip ?? 1100));\n }\n\n if (closeOnEscape) {\n bindDocumentKeyDownListener();\n }\n };\n\n const onLeave = () => {\n unbindContainerListeners();\n unbindOutsideClickListener();\n unbindScrollListener();\n unbindResizeListener();\n unbindDocumentKeyDownListener();\n unbindDocumentListeners();\n //hide(true);\n };\n\n const onContentAfterLeave = () => {\n setLifeState(false);\n };\n\n const onContentEnter = () => {\n const content = getContent();\n\n if (!content) return;\n\n //addStyle(content, { opacity: '1', transform: 'scale(1)' });\n };\n\n const onContentLeave = () => {\n const content = getContent();\n\n if (!content) return;\n\n //addStyle(content, { opacity: '0', transform: 'scale(0.95)' });\n };\n\n const bindOutsideClickListener = () => {\n if (!outsideClickListener.current && isClient()) {\n outsideClickListener.current = (event: Event) => {\n const clickEvent = event as MouseEvent;\n const container = getContainer();\n\n if (visibleState && !(clickEvent.target === container || container?.contains(clickEvent.target as Node))) {\n hide(true);\n }\n\n selfClick.current = false;\n };\n\n document.addEventListener('click', outsideClickListener.current);\n }\n };\n\n const unbindOutsideClickListener = () => {\n if (outsideClickListener.current) {\n document.removeEventListener('click', outsideClickListener.current);\n outsideClickListener.current = null;\n selfClick.current = false;\n }\n };\n\n const bindDocumentKeyDownListener = () => {\n if (!documentKeydownListener.current) {\n documentKeydownListener.current = (event: KeyboardEvent) => {\n if (event.code === 'Escape' && closeOnEscape) {\n hide(true);\n }\n };\n\n window.document.addEventListener('keydown', documentKeydownListener.current);\n }\n };\n\n const unbindDocumentKeyDownListener = () => {\n if (documentKeydownListener.current) {\n window.document.removeEventListener('keydown', documentKeydownListener.current);\n documentKeydownListener.current = null;\n }\n };\n\n const bindScrollListener = () => {\n if (!documentScrollListener.current) {\n documentScrollListener.current = () => {\n if (!visibleState) return;\n\n hide(true);\n };\n\n window.document.addEventListener('scroll', documentScrollListener.current);\n }\n };\n\n const unbindScrollListener = () => {\n if (documentScrollListener.current) {\n window.document.removeEventListener('scroll', documentScrollListener.current);\n documentScrollListener.current = null;\n }\n };\n\n const bindResizeListener = () => {\n if (!documentResizeListener.current) {\n documentResizeListener.current = () => {\n if (!visibleState) return;\n\n hide(true);\n };\n\n window.document.addEventListener('resize', documentResizeListener.current);\n }\n };\n\n const unbindResizeListener = () => {\n if (documentResizeListener.current) {\n window.document.removeEventListener('resize', documentResizeListener.current);\n documentResizeListener.current = null;\n }\n };\n\n // Effects\n React.useEffect(() => {\n if (disabled) return;\n\n if (defaultOpen || open) {\n setTimeout(() => {\n show();\n }, 0);\n }\n }, [defaultOpen, open, disabled]);\n\n React.useEffect(() => {\n if (!disabled) {\n bindTriggerListeners();\n }\n }, [placer?.anchorRef?.current, disabled]);\n\n useUnmountEffect(() => {\n clearTimers();\n unbindTriggerListeners();\n unbindContainerListeners();\n\n const container = getContainer();\n\n if (autoZIndex && container) {\n ZIndex.clear(container);\n }\n });\n\n return {\n state,\n placer,\n show,\n hide,\n onEnter,\n onBeforeEnter,\n onLeave,\n onContentAfterLeave,\n onContentEnter,\n onContentLeave,\n contentRef\n };\n }\n});\n","'use client';\nimport { Component } from '@primereact/core/component';\nimport { useTooltipGroup } from '@primereact/headless/tooltip/group';\nimport { mergeProps } from '@primeuix/utils';\nimport { withComponent } from 'primereact/base';\nimport * as React from 'react';\nimport { TooltipGroupProvider } from './TooltipGroup.context';\nimport { defaultGroupProps } from './TooltipGroup.props';\n\nexport const TooltipGroup = withComponent({\n name: 'TooltipGroup',\n defaultProps: defaultGroupProps,\n setup(instance) {\n const tooltipgroup = useTooltipGroup(instance.inProps);\n\n return tooltipgroup;\n },\n render(instance) {\n const { props, ptmi } = instance;\n\n const rootProps = mergeProps(ptmi('root'));\n\n return (\n <TooltipGroupProvider value={instance}>\n <Component instance={instance} attrs={rootProps} children={props.children} />\n </TooltipGroupProvider>\n );\n }\n});\n","import { withComponent as withComponentInCore } from '@primereact/core/component';\nimport { styles as baseStyles } from '@primereact/styles/base';\nimport type { withComponentOptions } from '@primereact/types/core';\nimport type { StylesOptions } from '@primereact/types/styles';\n\nexport const withComponent = <IProps, DProps, Exposes extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>, Styles = StylesOptions, CData = Record<string, unknown>>({\n name = 'UnknownComponent',\n defaultProps,\n styles = {\n ...baseStyles,\n name: 'global'\n } as Styles,\n components,\n setup,\n render\n}: withComponentOptions<IProps, DProps, Exposes, Styles, CData>) => {\n return withComponentInCore<IProps, DProps, Exposes, Styles, CData>({\n name,\n defaultProps,\n styles,\n components,\n setup,\n render\n });\n};\n","import { createOptionalContext } from '@primereact/core/utils';\nimport type { TooltipGroupInstance } from '@primereact/types/shared/tooltip';\n\nexport const [TooltipGroupProvider, useTooltipGroupContext] = createOptionalContext<TooltipGroupInstance>();\n","import * as HeadlessTooltipGroup from '@primereact/headless/tooltip/group';\nimport type { TooltipGroupProps } from '@primereact/types/shared/tooltip';\nimport * as React from 'react';\n\nexport const defaultGroupProps: TooltipGroupProps = {\n ...HeadlessTooltipGroup.defaultProps,\n as: React.Fragment\n};\n","import type { useTooltipProps } from '@primereact/types/shared/tooltip';\n\nexport const defaultProps: useTooltipProps = {\n showDelayDuration: 700,\n hideDelayDuration: 0,\n autoZIndex: true,\n baseZIndex: 0,\n containerRef: undefined,\n triggerRef: undefined,\n open: false,\n onOpenChange: undefined,\n defaultOpen: false,\n closeOnEscape: true,\n side: 'top',\n sideOffset: 0,\n align: 'center',\n alignOffset: 0,\n autoHide: false,\n disabled: false\n};\n"],"mappings":"6bAAA,OAAS,gBAAAA,OAAoB,4BAC7B,OAAS,aAAAC,OAAiB,8BAC1B,OAAS,oBAAAC,OAAwB,uCACjC,OAAS,YAAAC,MAAgB,sBACzB,OAAS,UAAAC,OAAc,yBCHvB,OAAS,aAAAC,OAAiB,6BAC1B,OAAS,mBAAAC,OAAuB,qCAChC,OAA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ACvB,OAAO,SAAS,oBAAoB,SAAUA,EAAuB,OAAO,EAC5EA,EAAuB,QAAU,KAEzC,EAGA,OAAM,YAAU,IAAM,CACd3B,IAEAC,GAAeC,IACf,WAAW,IAAM,CACbuC,EAAK,CACT,EAAG,CAAC,CAEZ,EAAG,CAACxC,EAAaC,EAAMF,CAAQ,CAAC,EAE1B,YAAU,IAAM,CACbA,GACDsD,GAAqB,CAE7B,EAAG,EAAC5D,GAAAe,GAAA,YAAAA,EAAQ,YAAR,YAAAf,GAAmB,QAASM,CAAQ,CAAC,EAEzC8G,GAAiB,IAAM,CACnBtE,EAAY,EACZiB,GAAuB,EACvBO,GAAyB,EAEzB,IAAMD,EAAY1B,EAAa,EAE3BvC,GAAciE,GACdoC,GAAO,MAAMpC,CAAS,CAE9B,CAAC,EAEM,CACH,MAAAjC,GACA,OAAArB,EACA,KAAAgC,EACA,KAAAI,EACA,QAAAiD,GACA,cAAAC,GACA,QAAAM,GACA,oBAAAK,GACA,eAAAC,GACA,eAAAC,GACA,WAAAhF,CACJ,CACJ,CACJ,CAAC","names":["withHeadless","usePlacer","useUnmountEffect","isClient","ZIndex","Component","useTooltipGroup","mergeProps","withComponentInCore","baseStyles","withComponent","name","defaultProps","styles","__spreadProps","__spreadValues","baseStyles","components","setup","render","withComponentInCore","React","createOptionalContext","TooltipGroupProvider","useTooltipGroupContext","HeadlessTooltipGroup","React","defaultGroupProps","__spreadProps","__spreadValues","TooltipGroup","withComponent","defaultGroupProps","instance","useTooltipGroup","props","ptmi","rootProps","mergeProps","TooltipGroupProvider","Component","React","defaultProps","useTooltip","withHeadless","defaultProps","props","$primereact","_a","showDelayDuration","hideDelayDuration","autoHide","autoZIndex","baseZIndex","disabled","defaultOpen","open","onOpenChange","closeOnEscape","side","align","sideOffset","alignOffset","placer","usePlacer","tooltipgroup","useTooltipGroupContext","visibleState","setVisibleState","lifeState","setLifeState","shouldAnimateOnEnter","setShouldAnimateOnEnter","shouldAnimateOnLeave","setShouldAnimateOnLeave","showTimeout","hideTimeout","outsideClickListener","selfClick","documentKeydownListener","documentScrollListener","documentResizeListener","contentRef","safePolygonRef","state","getTrigger","_b","_c","_d","_e","_f","getContainer","getArrow","getContent","clearTimers","show","forceInstant","timeoutState","showDelay","hide","hideDelay","onTriggerClick","onTriggerPointerDown","onTriggerPointerEnter","onTriggerFocus","onTriggerBlur","onTriggerPointerLeave","onPointerLeave","bindTriggerListeners","trigger","isClient","unbindTriggerListeners","onContainerPointerEnter","onContainerFocus","onContainerBlur","onContainerPointerLeave","bindContainerListeners","container","unbindContainerListeners","sortPointsClockwise","points","center","sum","p","a","b","angleA","angleB","createSafePolygon","triggerRect","containerRect","isPointInPolygon","point","polygon","x","y","inside","j","xi","yi","xj","yj","onPointerMove","event","currentTarget","arrow","bindDocumentListeners","unbindDocumentListeners","onEnter","onBeforeEnter","bindOutsideClickListener","bindScrollListener","bindResizeListener","ZIndex","bindDocumentKeyDownListener","onLeave","unbindOutsideClickListener","unbindScrollListener","unbindResizeListener","unbindDocumentKeyDownListener","onContentAfterLeave","onContentEnter","onContentLeave","clickEvent","useUnmountEffect"]}
|