{"version":3,"file":"primeng-slidemenu.umd.js","sources":["../../src/app/components/slidemenu/slidemenu.ts","../../src/app/components/slidemenu/primeng-slidemenu.ts"],"sourcesContent":["import {NgModule,Component,ElementRef,AfterViewChecked,OnDestroy,Input,Renderer2,Inject,forwardRef,ViewChild,Output,EventEmitter,ChangeDetectorRef,ChangeDetectionStrategy, ViewEncapsulation} from '@angular/core';\nimport {trigger,state,style,transition,animate,AnimationEvent} from '@angular/animations';\nimport {CommonModule} from '@angular/common';\nimport {DomHandler, ConnectedOverlayScrollHandler} from 'primeng/dom';\nimport {MenuItem} from 'primeng/api';\nimport {RouterModule} from '@angular/router';\n\n@Component({\n selector: 'p-slideMenuSub',\n template: `\n
\n `,\n encapsulation: ViewEncapsulation.None\n})\nexport class SlideMenuSub implements OnDestroy {\n\n @Input() item: MenuItem;\n\n @Input() root: boolean;\n\n @Input() backLabel: string = 'Back';\n\n @Input() menuWidth: number;\n\n @Input() effectDuration: any;\n\n @Input() easing: string = 'ease-out';\n\n @Input() index: number;\n\n slideMenu: SlideMenu;\n\n constructor(@Inject(forwardRef(() => SlideMenu)) slideMenu) {\n this.slideMenu = slideMenu as SlideMenu;\n }\n\n activeItem: any;\n\n itemClick(event, item: MenuItem, listitem: any) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\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 && !this.slideMenu.animating) {\n this.slideMenu.left -= this.slideMenu.menuWidth;\n\n this.activeItem = listitem;\n this.slideMenu.animating = true;\n setTimeout(() => this.slideMenu.animating = false, this.effectDuration);\n }\n\n if (!item.items && this.slideMenu.popup) {\n this.slideMenu.hide();\n }\n }\n\n ngOnDestroy() {\n this.activeItem = null;\n }\n}\n\n@Component({\n selector: 'p-slideMenu',\n template: `\n