{"version":3,"file":"primeng-contextmenu.mjs","sources":["../../src/app/components/contextmenu/contextmenu.ts","../../src/app/components/contextmenu/primeng-contextmenu.ts"],"sourcesContent":["import { NgModule,Component,ElementRef,AfterViewInit,OnDestroy,Input,Output,Renderer2,Inject,forwardRef,ViewChild,NgZone,EventEmitter,ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DomHandler } from 'primeng/dom';\nimport { MenuItem, ContextMenuService, PrimeNGConfig } from 'primeng/api';\nimport { RippleModule } from 'primeng/ripple';\nimport { ZIndexUtils } from 'primeng/utils';\nimport { RouterModule } from '@angular/router';\nimport { Subject, Subscription } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { TooltipModule } from 'primeng/tooltip';\n\n@Component({\n selector: 'p-contextMenuSub',\n template: `\n \n `,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'p-element'\n }\n})\nexport class ContextMenuSub {\n\n @Input() item: MenuItem;\n\n @Input() root: boolean;\n\n @Input() parentItemKey: any;\n\n @Output() leafClick: EventEmitter = new EventEmitter();\n\n @ViewChild('sublist') sublistViewChild: ElementRef;\n\n @ViewChild('menuitem') menuitemViewChild: ElementRef;\n\n contextMenu: ContextMenu;\n\n activeItemKey: string;\n\n hideTimeout: any;\n\n activeItemKeyChangeSubscription: Subscription;\n\n constructor(@Inject(forwardRef(() => ContextMenu)) contextMenu) {\n this.contextMenu = contextMenu as ContextMenu;\n }\n\n ngOnInit() {\n this.activeItemKeyChangeSubscription = this.contextMenu.contextMenuService.activeItemKeyChange$.pipe(takeUntil(this.contextMenu.ngDestroy$)).subscribe((activeItemKey) => {\n this.activeItemKey = activeItemKey;\n\n if (this.isActive(this.parentItemKey) && DomHandler.hasClass(this.sublistViewChild.nativeElement, 'p-submenu-list-active')) {\n this.contextMenu.positionSubmenu(this.sublistViewChild.nativeElement);\n }\n\n this.contextMenu.cd.markForCheck();\n });\n }\n\n onItemMouseEnter(event, item, key) {\n if (this.hideTimeout) {\n clearTimeout(this.hideTimeout);\n this.hideTimeout = null;\n }\n\n if (item.disabled) {\n return;\n }\n\n if (item.items) {\n let childSublist = DomHandler.findSingle(event.currentTarget, '.p-submenu-list');\n DomHandler.addClass(childSublist, 'p-submenu-list-active');\n }\n\n this.contextMenu.contextMenuService.changeKey(key);\n }\n\n onItemMouseLeave(event, item) {\n if (item.disabled) {\n return;\n }\n\n if (this.contextMenu.el.nativeElement.contains( event.toElement)) {\n if (item.items) {\n this.contextMenu.removeActiveFromSubLists(event.currentTarget);\n }\n\n if (!this.root) {\n this.contextMenu.contextMenuService.changeKey(this.parentItemKey);\n }\n }\n }\n\n onItemClick(event, item, menuitem, key) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url && !item.routerLink) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n if (item.items) {\n let childSublist = DomHandler.findSingle(menuitem, '.p-submenu-list');\n\n if (childSublist) {\n if (this.isActive(key) && DomHandler.hasClass(childSublist, 'p-submenu-list-active')) {\n this.contextMenu.removeActiveFromSubLists(menuitem);\n }\n else {\n DomHandler.addClass(childSublist, 'p-submenu-list-active');\n }\n\n this.contextMenu.contextMenuService.changeKey(key);\n }\n }\n\n if (!item.items) {\n this.onLeafClick();\n }\n }\n\n onLeafClick() {\n if (this.root) {\n this.contextMenu.hide();\n }\n\n this.leafClick.emit();\n }\n\n getKey(index) {\n return this.root ? String(index) : this.parentItemKey + '_' + index;\n }\n\n isActive(key) {\n return (this.activeItemKey &&(this.activeItemKey.startsWith(key + '_') || this.activeItemKey === key));\n }\n}\n\n@Component({\n selector: 'p-contextMenu',\n template: `\n
\n \n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./contextmenu.css'],\n host: {\n 'class': 'p-element'\n }\n})\nexport class ContextMenu implements AfterViewInit, OnDestroy {\n\n @Input() model: MenuItem[];\n\n @Input() global: boolean;\n\n @Input() target: any;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @Input() appendTo: any;\n\n @Input() autoZIndex: boolean = true;\n\n @Input() baseZIndex: number = 0;\n\n @Input() triggerEvent: string = 'contextmenu';\n\n @Output() onShow: EventEmitter = new EventEmitter();\n\n @Output() onHide: EventEmitter = new EventEmitter();\n\n @ViewChild('container') containerViewChild: ElementRef;\n\n documentClickListener: any;\n\n documentKeydownListener: any;\n\n windowResizeListener: any;\n\n triggerEventListener: any;\n\n ngDestroy$ = new Subject();\n\n constructor(public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public zone: NgZone, public contextMenuService: ContextMenuService, private config: PrimeNGConfig) { }\n\n ngAfterViewInit() {\n if (this.global) {\n const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : 'document';\n\n this.triggerEventListener = this.renderer.listen(documentTarget, this.triggerEvent, (event) => {\n this.show(event);\n event.preventDefault();\n });\n }\n else if (this.target) {\n this.triggerEventListener = this.renderer.listen(this.target, this.triggerEvent, (event) => {\n this.show(event);\n event.preventDefault();\n event.stopPropagation();\n });\n }\n\n if (this.appendTo) {\n if (this.appendTo === 'body')\n document.body.appendChild(this.containerViewChild.nativeElement);\n else\n DomHandler.appendChild(this.containerViewChild.nativeElement, this.appendTo);\n }\n }\n\n show(event?: MouseEvent) {\n this.clearActiveItem();\n this.position(event);\n this.moveOnTop();\n this.containerViewChild.nativeElement.style.display = 'block';\n DomHandler.fadeIn(this.containerViewChild.nativeElement, 250);\n this.bindGlobalListeners();\n\n if (event) {\n event.preventDefault();\n }\n\n this.onShow.emit();\n }\n\n hide() {\n this.containerViewChild.nativeElement.style.display = 'none';\n\n if (this.autoZIndex) {\n ZIndexUtils.clear(this.containerViewChild.nativeElement);\n }\n\n this.unbindGlobalListeners();\n this.onHide.emit();\n }\n\n moveOnTop() {\n if (this.autoZIndex && this.containerViewChild && this.containerViewChild.nativeElement.style.display !== 'block') {\n ZIndexUtils.set('menu', this.containerViewChild.nativeElement, this.baseZIndex + this.config.zIndex.menu);\n }\n }\n\n toggle(event?: MouseEvent) {\n if (this.containerViewChild.nativeElement.offsetParent)\n this.hide();\n else\n this.show(event);\n }\n\n position(event?: MouseEvent) {\n if (event) {\n let left = event.pageX + 1;\n let top = event.pageY + 1;\n let width = this.containerViewChild.nativeElement.offsetParent ? this.containerViewChild.nativeElement.offsetWidth : DomHandler.getHiddenElementOuterWidth(this.containerViewChild.nativeElement);\n let height = this.containerViewChild.nativeElement.offsetParent ? this.containerViewChild.nativeElement.offsetHeight : DomHandler.getHiddenElementOuterHeight(this.containerViewChild.nativeElement);\n let viewport = DomHandler.getViewport();\n\n //flip\n if (left + width - document.body.scrollLeft > viewport.width) {\n left -= width;\n }\n\n //flip\n if (top + height - document.body.scrollTop > viewport.height) {\n top -= height;\n }\n\n //fit\n if (left < document.body.scrollLeft) {\n left = document.body.scrollLeft;\n }\n\n //fit\n if (top < document.body.scrollTop) {\n top = document.body.scrollTop;\n }\n\n this.containerViewChild.nativeElement.style.left = left + 'px';\n this.containerViewChild.nativeElement.style.top = top + 'px';\n }\n }\n\n positionSubmenu(sublist) {\n let parentMenuItem = sublist.parentElement.parentElement;\n let viewport = DomHandler.getViewport();\n let sublistWidth = sublist.offsetParent ? sublist.offsetWidth : DomHandler.getHiddenElementOuterWidth(sublist);\n let sublistHeight = sublist.offsetHeight ? sublist.offsetHeight : DomHandler.getHiddenElementOuterHeight(sublist);\n let itemOuterWidth = DomHandler.getOuterWidth(parentMenuItem.children[0]);\n let itemOuterHeight = DomHandler.getOuterHeight(parentMenuItem.children[0]);\n let containerOffset = DomHandler.getOffset(parentMenuItem.parentElement);\n\n sublist.style.zIndex = ++DomHandler.zindex;\n\n if ((parseInt(containerOffset.top) + itemOuterHeight + sublistHeight) > (viewport.height - DomHandler.calculateScrollbarHeight())) {\n sublist.style.removeProperty('top');\n sublist.style.bottom = '0px';\n }\n else {\n sublist.style.removeProperty('bottom');\n sublist.style.top = '0px';\n }\n\n if ((parseInt(containerOffset.left) + itemOuterWidth + sublistWidth) > (viewport.width - DomHandler.calculateScrollbarWidth())) {\n sublist.style.left = -sublistWidth + 'px';\n }\n else {\n sublist.style.left = itemOuterWidth + 'px';\n }\n }\n\n isItemMatched(menuitem) {\n return DomHandler.hasClass(menuitem, 'p-menuitem') && !DomHandler.hasClass(menuitem.children[0], 'p-disabled');\n }\n\n findNextItem(menuitem, isRepeated?) {\n let nextMenuitem = menuitem.nextElementSibling;\n\n if (nextMenuitem) {\n return this.isItemMatched(nextMenuitem) ? nextMenuitem : this.findNextItem(nextMenuitem, isRepeated);\n }\n else {\n let firstItem = menuitem.parentElement.children[0];\n\n return this.isItemMatched(firstItem) ? firstItem : (!isRepeated ? this.findNextItem(firstItem, true) : null);\n }\n }\n\n findPrevItem(menuitem, isRepeated?) {\n let prevMenuitem = menuitem.previousElementSibling;\n\n if (prevMenuitem) {\n return this.isItemMatched(prevMenuitem) ? prevMenuitem : this.findPrevItem(prevMenuitem, isRepeated);\n }\n else {\n let lastItem = menuitem.parentElement.children[menuitem.parentElement.children.length - 1];\n\n return this.isItemMatched(lastItem) ? lastItem : (!isRepeated ? this.findPrevItem(lastItem, true) : null);\n }\n }\n\n getActiveItem() {\n let activeItemKey = this.contextMenuService.activeItemKey;\n\n return activeItemKey == null ? null : DomHandler.findSingle(this.containerViewChild.nativeElement, '.p-menuitem[data-ik=\"' + activeItemKey + '\"]');\n }\n\n clearActiveItem() {\n if (this.contextMenuService.activeItemKey) {\n this.removeActiveFromSubLists(this.containerViewChild.nativeElement);\n this.contextMenuService.reset();\n }\n }\n\n removeActiveFromSubLists(el) {\n let sublists = DomHandler.find(el, '.p-submenu-list-active');\n\n for (let sublist of sublists) {\n DomHandler.removeClass(sublist, 'p-submenu-list-active');\n }\n }\n\n removeActiveFromSublist(menuitem) {\n if (menuitem) {\n let sublist = DomHandler.findSingle(menuitem, '.p-submenu-list');\n\n if (sublist && DomHandler.hasClass(menuitem, 'p-submenu-list-active')) {\n DomHandler.removeClass(menuitem, 'p-submenu-list-active');\n }\n }\n }\n\n bindGlobalListeners() {\n if (!this.documentClickListener) {\n const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : 'document';\n\n this.documentClickListener = this.renderer.listen(documentTarget, 'click', (event) => {\n if (this.containerViewChild.nativeElement.offsetParent && this.isOutsideClicked(event) && !event.ctrlKey && event.button !== 2) {\n this.hide();\n }\n });\n }\n\n this.zone.runOutsideAngular(() => {\n if (!this.windowResizeListener) {\n this.windowResizeListener = this.onWindowResize.bind(this);\n window.addEventListener('resize', this.windowResizeListener);\n }\n });\n\n if (!this.documentKeydownListener) {\n const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : 'document';\n\n this.documentKeydownListener = this.renderer.listen(documentTarget, 'keydown', (event) => {\n let activeItem = this.getActiveItem();\n\n switch (event.key) {\n case 'ArrowDown':\n if (activeItem) {\n this.removeActiveFromSublist(activeItem);\n activeItem = this.findNextItem(activeItem);\n }\n else {\n let firstItem = DomHandler.findSingle(this.containerViewChild.nativeElement, '.p-menuitem-link').parentElement;\n activeItem = this.isItemMatched(firstItem) ? firstItem : this.findNextItem(firstItem);\n }\n\n if (activeItem) {\n this.contextMenuService.changeKey(activeItem.getAttribute('data-ik'));\n }\n\n event.preventDefault();\n break;\n\n case 'ArrowUp':\n if (activeItem) {\n this.removeActiveFromSublist(activeItem);\n activeItem = this.findPrevItem(activeItem);\n }\n else {\n let sublist = DomHandler.findSingle(this.containerViewChild.nativeElement, 'ul');\n let lastItem = sublist.children[sublist.children.length - 1];\n activeItem = this.isItemMatched(lastItem) ? lastItem : this.findPrevItem(lastItem);\n }\n\n if (activeItem) {\n this.contextMenuService.changeKey(activeItem.getAttribute('data-ik'));\n }\n\n event.preventDefault();\n break;\n\n case 'ArrowRight':\n if (activeItem) {\n let sublist = DomHandler.findSingle(activeItem, '.p-submenu-list');\n\n if (sublist) {\n DomHandler.addClass(sublist, 'p-submenu-list-active');\n\n activeItem = DomHandler.findSingle(sublist, '.p-menuitem-link:not(.p-disabled)').parentElement;\n\n if (activeItem) {\n this.contextMenuService.changeKey(activeItem.getAttribute('data-ik'));\n }\n }\n }\n\n event.preventDefault();\n break;\n\n case 'ArrowLeft':\n if (activeItem) {\n let sublist = activeItem.parentElement;\n\n if (sublist && DomHandler.hasClass(sublist, 'p-submenu-list-active')) {\n DomHandler.removeClass(sublist, 'p-submenu-list-active');\n\n activeItem = sublist.parentElement.parentElement;\n\n if (activeItem) {\n this.contextMenuService.changeKey(activeItem.getAttribute('data-ik'));\n }\n }\n }\n\n event.preventDefault();\n break;\n\n case 'Escape':\n this.hide();\n event.preventDefault();\n\n break;\n\n case 'Enter':\n if (activeItem) {\n this.handleItemClick(event, this.findModelItemFromKey(this.contextMenuService.activeItemKey), activeItem);\n }\n\n event.preventDefault();\n break;\n\n default:\n break;\n }\n });\n }\n }\n\n findModelItemFromKey(key) {\n if (key == null || !this.model) {\n return null;\n }\n\n let indexes = key.split('_');\n return indexes.reduce((item, currentIndex) => {\n return item ? item.items[currentIndex] : this.model[currentIndex];\n }, null);\n }\n\n handleItemClick(event, item, menuitem) {\n if (!item || item.disabled) {\n return;\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n if (item.items) {\n let childSublist = DomHandler.findSingle(menuitem, '.p-submenu-list');\n\n if (childSublist) {\n if (DomHandler.hasClass(childSublist, 'p-submenu-list-active')) {\n this.removeActiveFromSubLists(menuitem);\n }\n else {\n DomHandler.addClass(childSublist, 'p-submenu-list-active');\n this.positionSubmenu(childSublist);\n }\n }\n }\n\n if (!item.items) {\n this.hide();\n }\n }\n\n unbindGlobalListeners() {\n if (this.documentClickListener) {\n this.documentClickListener();\n this.documentClickListener = null;\n }\n\n if (this.windowResizeListener) {\n window.removeEventListener('resize', this.windowResizeListener);\n this.windowResizeListener = null;\n }\n\n if (this.documentKeydownListener) {\n this.documentKeydownListener();\n this.documentKeydownListener = null;\n }\n }\n\n onWindowResize(event) {\n if (this.containerViewChild.nativeElement.offsetParent) {\n this.hide();\n }\n }\n\n isOutsideClicked(event: Event) {\n return !(this.containerViewChild.nativeElement.isSameNode(event.target) || this.containerViewChild.nativeElement.contains(event.target));\n }\n\n ngOnDestroy() {\n this.unbindGlobalListeners();\n\n if (this.triggerEventListener) {\n this.triggerEventListener();\n }\n\n if (this.containerViewChild && this.autoZIndex) {\n ZIndexUtils.clear(this.containerViewChild.nativeElement);\n }\n\n if (this.appendTo) {\n this.el.nativeElement.appendChild(this.containerViewChild.nativeElement);\n }\n\n this.ngDestroy$.next(true);\n this.ngDestroy$.complete();\n }\n\n}\n\n@NgModule({\n imports: [CommonModule,RouterModule,RippleModule,TooltipModule],\n exports: [ContextMenu,RouterModule,TooltipModule],\n declarations: [ContextMenu,ContextMenuSub],\n providers: [ContextMenuService]\n})\nexport class ContextMenuModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MA8Ca,cAAc;IAsBvB,YAAmD,WAAW;QAdpD,cAAS,GAAsB,IAAI,YAAY,EAAE,CAAC;QAexD,IAAI,CAAC,WAAW,GAAG,WAA0B,CAAC;KACjD;IAED,QAAQ;QACJ,IAAI,CAAC,+BAA+B,GAAG,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa;YACjK,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YAEnC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,uBAAuB,CAAC,EAAE;gBACxH,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;aACzE;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