{"version":3,"file":"primeng-menubar.mjs","sources":["../../src/app/components/menubar/menubar.ts","../../src/app/components/menubar/primeng-menubar.ts"],"sourcesContent":["import { CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Injectable,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Output,\n PLATFORM_ID,\n QueryList,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { LicenseManager, MenuItem, PrimeNGConfig, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { AngleDownIcon } from 'primeng/icons/angledown';\nimport { AngleRightIcon } from 'primeng/icons/angleright';\nimport { BarsIcon } from 'primeng/icons/bars';\nimport { RippleModule } from 'primeng/ripple';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { ZIndexUtils } from 'primeng/utils';\nimport { Subject, Subscription, interval } from 'rxjs';\nimport { debounce, filter } from 'rxjs/operators';\n\n@Injectable()\nexport class MenubarService {\n autoHide: boolean;\n\n autoHideDelay: number;\n\n readonly mouseLeaves = new Subject();\n\n readonly mouseLeft$ = this.mouseLeaves.pipe(\n debounce(() => interval(this.autoHideDelay)),\n filter((mouseLeft) => this.autoHide && mouseLeft)\n );\n}\n\n@Component({\n selector: 'p-menubarSub',\n template: `\n \n `,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'p-element'\n }\n})\nexport class MenubarSub implements OnInit, OnDestroy {\n @Input() item: MenuItem;\n\n @Input() root: boolean;\n\n @Input() autoZIndex: boolean = true;\n\n @Input() baseZIndex: number = 0;\n\n @Input() mobileActive: boolean;\n\n @Input() autoDisplay: boolean;\n\n @Input() get parentActive(): boolean {\n return this._parentActive;\n }\n set parentActive(value) {\n if (!this.root) {\n this._parentActive = value;\n\n if (!value) this.activeItem = null;\n }\n }\n\n @Output() leafClick: EventEmitter = new EventEmitter();\n\n _parentActive: boolean;\n\n documentClickListener: (event?: Event) => void | null;\n\n menuHoverActive: boolean = false;\n\n activeItem: any;\n\n mouseLeaveSubscriber: Subscription;\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 cd: ChangeDetectorRef,\n private menubarService: MenubarService,\n private menubar: Menubar\n ) {}\n\n ngOnInit() {\n this.mouseLeaveSubscriber = this.menubarService.mouseLeft$.subscribe(() => {\n this.activeItem = null;\n this.cd.markForCheck();\n this.unbindDocumentClickListener();\n });\n }\n\n onItemClick(event, item) {\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 if (this.activeItem && item === this.activeItem) {\n this.activeItem = null;\n this.unbindDocumentClickListener();\n } else {\n this.activeItem = item;\n if (this.root) {\n this.bindDocumentClickListener();\n }\n }\n }\n\n if (!item.items) {\n this.onLeafClick();\n }\n }\n\n onItemMouseLeave(event, item) {\n this.menubarService.mouseLeaves.next(true);\n }\n\n onItemMouseEnter(event, item) {\n this.menubarService.mouseLeaves.next(false);\n\n if (item.disabled || this.mobileActive) {\n event.preventDefault();\n return;\n }\n\n if (this.root) {\n if (this.activeItem || this.autoDisplay) {\n this.activeItem = item;\n this.bindDocumentClickListener();\n }\n } else {\n this.activeItem = item;\n this.bindDocumentClickListener();\n }\n }\n\n onLeafClick() {\n this.activeItem = null;\n if (this.root) {\n this.unbindDocumentClickListener();\n }\n\n this.leafClick.emit();\n }\n\n bindDocumentClickListener() {\n if (isPlatformBrowser(this.platformId)) {\n if (!this.documentClickListener) {\n this.documentClickListener = this.renderer.listen(this.document, 'click', (event) => {\n if (this.el && !this.el.nativeElement.contains(event.target)) {\n this.activeItem = null;\n this.cd.markForCheck();\n this.unbindDocumentClickListener();\n }\n });\n }\n }\n }\n\n unbindDocumentClickListener() {\n if (this.documentClickListener) {\n this.documentClickListener();\n this.documentClickListener = null;\n }\n }\n\n ngOnDestroy() {\n this.mouseLeaveSubscriber.unsubscribe();\n this.unbindDocumentClickListener();\n }\n}\n\n@Component({\n selector: 'p-menubar',\n template: `\n
\n
\n \n
\n 0\" class=\"p-menubar-button\" (click)=\"toggle($event)\">\n \n \n \n \n
\n \n
\n \n
\n \n
\n
\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./menubar.css'],\n host: {\n class: 'p-element'\n },\n providers: [MenubarService]\n})\nexport class Menubar implements AfterContentInit, OnDestroy, AfterViewInit, OnInit {\n @Input() model: MenuItem[];\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @Input() autoZIndex: boolean = true;\n\n @Input() baseZIndex: number = 0;\n\n @Input() autoDisplay: boolean;\n\n @Input() autoHide: boolean;\n\n @Input() autoHideDelay: number = 100;\n\n @ContentChildren(PrimeTemplate) templates: QueryList;\n\n @ViewChild('menubutton') menubutton: ElementRef;\n\n @ViewChild('rootmenu') rootmenu: MenubarSub;\n\n startTemplate: TemplateRef;\n\n endTemplate: TemplateRef;\n\n menuIconTemplate: TemplateRef;\n\n submenuIconTemplate: TemplateRef;\n\n mobileActive: boolean;\n\n outsideClickListener: (event?: Event) => void | null;\n\n mouseLeaveSubscriber: Subscription;\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 public cd: ChangeDetectorRef,\n public config: PrimeNGConfig,\n private menubarService: MenubarService\n ) {}\n\n ngOnInit(): void {\n this.menubarService.autoHide = this.autoHide;\n this.menubarService.autoHideDelay = this.autoHideDelay;\n this.mouseLeaveSubscriber = this.menubarService.mouseLeft$.subscribe(() => this.unbindOutsideClickListener());\n }\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch (item.getType()) {\n case 'start':\n this.startTemplate = item.template;\n break;\n\n case 'end':\n this.endTemplate = item.template;\n break;\n\n case 'menuicon':\n this.menuIconTemplate = item.template;\n break;\n\n case 'submenuicon':\n this.submenuIconTemplate = item.template;\n break;\n }\n });\n }\n\n ngAfterViewInit() {\n LicenseManager.check();\n }\n\n toggle(event) {\n if (this.mobileActive) {\n this.hide();\n ZIndexUtils.clear(this.rootmenu.el.nativeElement);\n } else {\n this.mobileActive = true;\n ZIndexUtils.set('menu', this.rootmenu.el.nativeElement, this.config.zIndex.menu);\n }\n\n this.bindOutsideClickListener();\n event.preventDefault();\n }\n\n bindOutsideClickListener() {\n if (isPlatformBrowser(this.platformId)) {\n if (!this.outsideClickListener) {\n this.outsideClickListener = this.renderer.listen(this.document, 'click', (event) => {\n if (\n this.mobileActive &&\n this.rootmenu.el.nativeElement !== event.target &&\n !this.rootmenu.el.nativeElement.contains(event.target) &&\n this.menubutton.nativeElement !== event.target &&\n !this.menubutton.nativeElement.contains(event.target)\n ) {\n this.hide();\n }\n });\n }\n }\n }\n\n hide() {\n this.mobileActive = false;\n this.cd.markForCheck();\n ZIndexUtils.clear(this.rootmenu.el.nativeElement);\n this.unbindOutsideClickListener();\n }\n\n onLeafClick() {\n this.hide();\n }\n\n unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n this.outsideClickListener();\n this.outsideClickListener = null;\n }\n }\n\n ngOnDestroy() {\n this.mouseLeaveSubscriber.unsubscribe();\n this.unbindOutsideClickListener();\n }\n}\n\n@NgModule({\n imports: [CommonModule, RouterModule, RippleModule, TooltipModule, SharedModule, BarsIcon, AngleDownIcon, AngleRightIcon],\n exports: [Menubar, RouterModule, TooltipModule, SharedModule],\n declarations: [Menubar, MenubarSub]\n})\nexport class MenubarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;MAoCa,cAAc,CAAA;AAD3B,IAAA,WAAA,GAAA;AAM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