{"version":3,"file":"primeng-overlay.mjs","sources":["../../src/app/components/overlay/overlay.ts","../../src/app/components/overlay/primeng-overlay.ts"],"sourcesContent":["import { animate, animation, AnimationEvent, style, transition, trigger, useAnimation } from '@angular/animations';\nimport { CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgModule,\n NgZone,\n OnDestroy,\n Output,\n PLATFORM_ID,\n QueryList,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { OverlayModeType, OverlayOptions, OverlayService, PrimeNGConfig, PrimeTemplate, ResponsiveOverlayOptions, SharedModule } from 'primeng/api';\nimport { ConnectedOverlayScrollHandler, DomHandler } from 'primeng/dom';\nimport { ObjectUtils, ZIndexUtils } from 'primeng/utils';\n\nexport const OVERLAY_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Overlay),\n multi: true\n};\n\nconst showOverlayContentAnimation = animation([style({ transform: '{{transform}}', opacity: 0 }), animate('{{showTransitionParams}}')]);\n\nconst hideOverlayContentAnimation = animation([animate('{{hideTransitionParams}}', style({ transform: '{{transform}}', opacity: 0 }))]);\n\n@Component({\n selector: 'p-overlay',\n template: `\n \n \n \n \n \n \n `,\n animations: [trigger('overlayContentAnimation', [transition(':enter', [useAnimation(showOverlayContentAnimation)]), transition(':leave', [useAnimation(hideOverlayContentAnimation)])])],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [OVERLAY_VALUE_ACCESSOR],\n styleUrls: ['./overlay.css'],\n host: {\n class: 'p-element'\n }\n})\nexport class Overlay implements AfterContentInit, OnDestroy {\n @Input() get visible(): boolean {\n return this._visible;\n }\n set visible(value: boolean) {\n this._visible = value;\n\n if (this._visible && !this.modalVisible) {\n this.modalVisible = true;\n }\n }\n\n @Input() get mode(): OverlayModeType | string {\n return this._mode || this.overlayOptions?.mode;\n }\n set mode(value: OverlayModeType | string) {\n this._mode = value;\n }\n\n @Input() get style(): any {\n return ObjectUtils.merge(this._style, this.modal ? this.overlayResponsiveOptions?.style : this.overlayOptions?.style);\n }\n set style(value: any) {\n this._style = value;\n }\n\n @Input() get styleClass(): string {\n return ObjectUtils.merge(this._styleClass, this.modal ? this.overlayResponsiveOptions?.styleClass : this.overlayOptions?.styleClass);\n }\n set styleClass(value: string) {\n this._styleClass = value;\n }\n\n @Input() get contentStyle(): any {\n return ObjectUtils.merge(this._contentStyle, this.modal ? this.overlayResponsiveOptions?.contentStyle : this.overlayOptions?.contentStyle);\n }\n set contentStyle(value: any) {\n this._contentStyle = value;\n }\n\n @Input() get contentStyleClass(): string {\n return ObjectUtils.merge(this._contentStyleClass, this.modal ? this.overlayResponsiveOptions?.contentStyleClass : this.overlayOptions?.contentStyleClass);\n }\n set contentStyleClass(value: string) {\n this._contentStyleClass = value;\n }\n\n @Input() get target(): any {\n const value = this._target || this.overlayOptions?.target;\n return value === undefined ? '@prev' : value;\n }\n set target(value: any) {\n this._target = value;\n }\n\n @Input() get appendTo(): any {\n return this._appendTo || this.overlayOptions?.appendTo;\n }\n set appendTo(value: any) {\n this._appendTo = value;\n }\n\n @Input() get autoZIndex(): boolean {\n const value = this._autoZIndex || this.overlayOptions?.autoZIndex;\n return value === undefined ? true : value;\n }\n set autoZIndex(value: boolean) {\n this._autoZIndex = value;\n }\n\n @Input() get baseZIndex(): number {\n const value = this._baseZIndex || this.overlayOptions?.baseZIndex;\n return value === undefined ? 0 : value;\n }\n set baseZIndex(value: number) {\n this._baseZIndex = value;\n }\n\n @Input() get showTransitionOptions(): string {\n const value = this._showTransitionOptions || this.overlayOptions?.showTransitionOptions;\n return value === undefined ? '.12s cubic-bezier(0, 0, 0.2, 1)' : value;\n }\n set showTransitionOptions(value: string) {\n this._showTransitionOptions = value;\n }\n\n @Input() get hideTransitionOptions(): string {\n const value = this._hideTransitionOptions || this.overlayOptions?.hideTransitionOptions;\n return value === undefined ? '.1s linear' : value;\n }\n set hideTransitionOptions(value: string) {\n this._hideTransitionOptions = value;\n }\n\n @Input() get listener(): any {\n return this._listener || this.overlayOptions?.listener;\n }\n set listener(value: any) {\n this._listener = value;\n }\n\n @Input() get responsive(): ResponsiveOverlayOptions | undefined {\n return this._responsive || this.overlayOptions?.responsive;\n }\n set responsive(val: ResponsiveOverlayOptions | undefined) {\n this._responsive = val;\n }\n\n @Input() get options(): OverlayOptions | undefined {\n return this._options;\n }\n set options(val: OverlayOptions | undefined) {\n this._options = val;\n }\n\n @Output() visibleChange: EventEmitter = new EventEmitter();\n\n @Output() onBeforeShow: EventEmitter = new EventEmitter();\n\n @Output() onShow: EventEmitter = new EventEmitter();\n\n @Output() onBeforeHide: EventEmitter = new EventEmitter();\n\n @Output() onHide: EventEmitter = new EventEmitter();\n\n @Output() onAnimationStart: EventEmitter = new EventEmitter();\n\n @Output() onAnimationDone: EventEmitter = new EventEmitter();\n\n @ContentChildren(PrimeTemplate) templates: QueryList | undefined;\n\n @ViewChild('overlay') overlayViewChild: ElementRef | undefined;\n\n @ViewChild('content') contentViewChild: ElementRef | undefined;\n\n contentTemplate: TemplateRef | undefined;\n\n _visible: boolean = false;\n\n _mode: OverlayModeType | string;\n\n _style: any;\n\n _styleClass: string | undefined;\n\n _contentStyle: any;\n\n _contentStyleClass: string | undefined;\n\n _target: any;\n\n _appendTo: 'body' | HTMLElement | undefined;\n\n _autoZIndex: boolean | undefined;\n\n _baseZIndex: number | undefined;\n\n _showTransitionOptions: string | undefined;\n\n _hideTransitionOptions: string | undefined;\n\n _listener: any;\n\n _responsive: ResponsiveOverlayOptions | undefined;\n\n _options: OverlayOptions | undefined;\n\n modalVisible: boolean = false;\n\n isOverlayClicked: boolean = false;\n\n isOverlayContentClicked: boolean = false;\n\n scrollHandler: any;\n\n documentClickListener: any;\n\n documentResizeListener: any;\n\n private documentKeyboardListener: VoidFunction | null;\n\n private window: Window | null;\n\n protected transformOptions: any = {\n default: 'scaleY(0.8)',\n center: 'scale(0.7)',\n top: 'translate3d(0px, -100%, 0px)',\n 'top-start': 'translate3d(0px, -100%, 0px)',\n 'top-end': 'translate3d(0px, -100%, 0px)',\n bottom: 'translate3d(0px, 100%, 0px)',\n 'bottom-start': 'translate3d(0px, 100%, 0px)',\n 'bottom-end': 'translate3d(0px, 100%, 0px)',\n left: 'translate3d(-100%, 0px, 0px)',\n 'left-start': 'translate3d(-100%, 0px, 0px)',\n 'left-end': 'translate3d(-100%, 0px, 0px)',\n right: 'translate3d(100%, 0px, 0px)',\n 'right-start': 'translate3d(100%, 0px, 0px)',\n 'right-end': 'translate3d(100%, 0px, 0px)'\n };\n\n get modal() {\n if (isPlatformBrowser(this.platformId)) {\n return this.mode === 'modal' || (this.overlayResponsiveOptions && this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace('@media', '') || `(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches);\n }\n }\n\n get overlayMode() {\n return this.mode || (this.modal ? 'modal' : 'overlay');\n }\n\n get overlayOptions(): OverlayOptions {\n return { ...this.config?.overlayOptions, ...this.options }; // TODO: Improve performance\n }\n\n get overlayResponsiveOptions(): ResponsiveOverlayOptions {\n return { ...this.overlayOptions?.responsive, ...this.responsive }; // TODO: Improve performance\n }\n\n get overlayResponsiveDirection() {\n return this.overlayResponsiveOptions?.direction || 'center';\n }\n\n get overlayEl() {\n return this.overlayViewChild?.nativeElement;\n }\n\n get contentEl() {\n return this.contentViewChild?.nativeElement;\n }\n\n get targetEl() {\n return DomHandler.getTargetElement(this.target, this.el?.nativeElement);\n }\n\n constructor(\n @Inject(DOCUMENT) private document: Document,\n @Inject(PLATFORM_ID) private platformId: any,\n public el: ElementRef,\n public renderer: Renderer2,\n private config: PrimeNGConfig,\n public overlayService: OverlayService,\n private zone: NgZone\n ) {\n this.window = this.document.defaultView;\n }\n\n ngAfterContentInit() {\n this.templates?.forEach((item) => {\n switch (item.getType()) {\n case 'content':\n this.contentTemplate = item.template;\n break;\n // TODO: new template types may be added.\n default:\n this.contentTemplate = item.template;\n break;\n }\n });\n }\n\n show(overlay?: HTMLElement, isFocus: boolean = false) {\n this.onVisibleChange(true);\n this.handleEvents('onShow', { overlay: overlay || this.overlayEl, target: this.targetEl, mode: this.overlayMode });\n\n isFocus && DomHandler.focus(this.targetEl);\n this.modal && DomHandler.addClass(this.document?.body, 'p-overflow-hidden');\n }\n\n hide(overlay?: HTMLElement, isFocus: boolean = false) {\n if (!this.visible) {\n return;\n } else {\n this.onVisibleChange(false);\n this.handleEvents('onHide', { overlay: overlay || this.overlayEl, target: this.targetEl, mode: this.overlayMode });\n isFocus && DomHandler.focus(this.targetEl);\n this.modal && DomHandler.removeClass(this.document?.body, 'p-overflow-hidden');\n }\n }\n\n alignOverlay() {\n !this.modal && DomHandler.alignOverlay(this.overlayEl, this.targetEl, this.appendTo);\n }\n\n onVisibleChange(visible: boolean) {\n this._visible = visible;\n this.visibleChange.emit(visible);\n }\n\n onOverlayClick(event) {\n this.isOverlayClicked = true;\n }\n\n onOverlayContentClick(event: MouseEvent) {\n this.overlayService.add({\n originalEvent: event,\n target: this.targetEl\n });\n\n this.isOverlayContentClicked = true;\n }\n\n onOverlayContentAnimationStart(event: AnimationEvent) {\n switch (event.toState) {\n case 'visible':\n this.handleEvents('onBeforeShow', { overlay: this.overlayEl, target: this.targetEl, mode: this.overlayMode });\n\n if (this.autoZIndex) {\n ZIndexUtils.set(this.overlayMode, this.overlayEl, this.baseZIndex + this.config?.zIndex[this.overlayMode]);\n }\n\n DomHandler.appendOverlay(this.overlayEl, this.appendTo === 'body' ? this.document.body : this.appendTo, this.appendTo);\n this.alignOverlay();\n\n break;\n\n case 'void':\n this.handleEvents('onBeforeHide', { overlay: this.overlayEl, target: this.targetEl, mode: this.overlayMode });\n\n this.modal && DomHandler.addClass(this.overlayEl, 'p-component-overlay-leave');\n\n break;\n }\n\n this.handleEvents('onAnimationStart', event);\n }\n\n onOverlayContentAnimationDone(event: AnimationEvent) {\n const container = this.overlayEl || event.element.parentElement;\n\n switch (event.toState) {\n case 'visible':\n this.show(container, true);\n this.bindListeners();\n\n break;\n\n case 'void':\n this.hide(container, true);\n this.unbindListeners();\n\n DomHandler.appendOverlay(this.overlayEl, this.targetEl, this.appendTo);\n ZIndexUtils.clear(container);\n this.modalVisible = false;\n\n break;\n }\n\n this.handleEvents('onAnimationDone', event);\n }\n\n handleEvents(name: string, params: any) {\n (this as any)[name].emit(params);\n this.options && (this.options as any)[name] && (this.options as any)[name](params);\n this.config?.overlayOptions && (this.config?.overlayOptions as any)[name] && (this.config?.overlayOptions as any)[name](params);\n }\n\n bindListeners() {\n this.bindScrollListener();\n this.bindDocumentClickListener();\n this.bindDocumentResizeListener();\n this.bindDocumentKeyboardListener();\n }\n\n unbindListeners() {\n this.unbindScrollListener();\n this.unbindDocumentClickListener();\n this.unbindDocumentResizeListener();\n this.unbindDocumentKeyboardListener();\n }\n\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.targetEl, (event: any) => {\n const valid = this.listener ? this.listener(event, { type: 'scroll', mode: this.overlayMode, valid: true }) : true;\n\n valid && this.hide(event, true);\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n\n bindDocumentClickListener() {\n if (!this.documentClickListener) {\n this.documentClickListener = this.renderer.listen(this.document, 'click', (event) => {\n const isTargetClicked = this.targetEl && (this.targetEl.isSameNode(event.target) || (!this.isOverlayClicked && this.targetEl.contains(event.target)));\n const isOutsideClicked = !isTargetClicked && !this.isOverlayContentClicked;\n const valid = this.listener ? this.listener(event, { type: 'outside', mode: this.overlayMode, valid: event.which !== 3 && isOutsideClicked }) : isOutsideClicked;\n\n valid && this.hide(event);\n this.isOverlayClicked = this.isOverlayContentClicked = false;\n });\n }\n }\n\n unbindDocumentClickListener() {\n if (this.documentClickListener) {\n this.documentClickListener();\n this.documentClickListener = null;\n }\n }\n\n bindDocumentResizeListener() {\n if (!this.documentResizeListener) {\n this.documentResizeListener = this.renderer.listen(this.window, 'resize', (event) => {\n const valid = this.listener ? this.listener(event, { type: 'resize', mode: this.overlayMode, valid: !DomHandler.isTouchDevice() }) : !DomHandler.isTouchDevice();\n\n valid && this.hide(event, true);\n });\n }\n }\n\n unbindDocumentResizeListener() {\n if (this.documentResizeListener) {\n this.documentResizeListener();\n this.documentResizeListener = null;\n }\n }\n\n bindDocumentKeyboardListener(): void {\n if (this.documentKeyboardListener) {\n return;\n }\n\n this.zone.runOutsideAngular(() => {\n this.documentKeyboardListener = this.renderer.listen(this.window, 'keydown', (event) => {\n if (!this.overlayOptions.hideOnEscape || event.keyCode !== 27) {\n return;\n }\n\n const valid = this.listener ? this.listener(event, { type: 'keydown', mode: this.overlayMode, valid: !DomHandler.isTouchDevice() }) : !DomHandler.isTouchDevice();\n\n if (valid) {\n this.zone.run(() => {\n this.hide(event, true);\n });\n }\n });\n });\n }\n\n unbindDocumentKeyboardListener(): void {\n if (this.documentKeyboardListener) {\n this.documentKeyboardListener();\n this.documentKeyboardListener = null;\n }\n }\n\n ngOnDestroy() {\n this.hide(this.overlayEl, true);\n\n if (this.overlayEl) {\n DomHandler.appendOverlay(this.overlayEl, this.targetEl, this.appendTo);\n ZIndexUtils.clear(this.overlayEl);\n }\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.unbindListeners();\n }\n}\n\n@NgModule({\n imports: [CommonModule, SharedModule],\n exports: [Overlay, SharedModule],\n declarations: [Overlay]\n})\nexport class OverlayModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AA4Ba,MAAA,sBAAsB,GAAQ;AACvC,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA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