[59329aa] | 1 | import { NgModule, Component, Input, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, ViewChild, Output, EventEmitter } from '@angular/core';
|
---|
| 2 | import { CommonModule } from '@angular/common';
|
---|
| 3 | import { ZIndexUtils } from 'primeng/utils';
|
---|
| 4 | import { PrimeTemplate } from 'primeng/api';
|
---|
| 5 | import { RouterModule } from '@angular/router';
|
---|
| 6 | import { RippleModule } from 'primeng/ripple';
|
---|
| 7 | import { TooltipModule } from 'primeng/tooltip';
|
---|
| 8 | import * as i0 from "@angular/core";
|
---|
| 9 | import * as i1 from "@angular/common";
|
---|
| 10 | import * as i2 from "primeng/tooltip";
|
---|
| 11 | import * as i3 from "primeng/ripple";
|
---|
| 12 | import * as i4 from "@angular/router";
|
---|
| 13 | import * as i5 from "primeng/api";
|
---|
| 14 | export class MenubarSub {
|
---|
| 15 | constructor(el, renderer, cd) {
|
---|
| 16 | this.el = el;
|
---|
| 17 | this.renderer = renderer;
|
---|
| 18 | this.cd = cd;
|
---|
| 19 | this.autoZIndex = true;
|
---|
| 20 | this.baseZIndex = 0;
|
---|
| 21 | this.leafClick = new EventEmitter();
|
---|
| 22 | this.menuHoverActive = false;
|
---|
| 23 | }
|
---|
| 24 | get parentActive() {
|
---|
| 25 | return this._parentActive;
|
---|
| 26 | }
|
---|
| 27 | set parentActive(value) {
|
---|
| 28 | if (!this.root) {
|
---|
| 29 | this._parentActive = value;
|
---|
| 30 | if (!value)
|
---|
| 31 | this.activeItem = null;
|
---|
| 32 | }
|
---|
| 33 | }
|
---|
| 34 | onItemClick(event, item) {
|
---|
| 35 | if (item.disabled) {
|
---|
| 36 | event.preventDefault();
|
---|
| 37 | return;
|
---|
| 38 | }
|
---|
| 39 | if (!item.url && !item.routerLink) {
|
---|
| 40 | event.preventDefault();
|
---|
| 41 | }
|
---|
| 42 | if (item.command) {
|
---|
| 43 | item.command({
|
---|
| 44 | originalEvent: event,
|
---|
| 45 | item: item
|
---|
| 46 | });
|
---|
| 47 | }
|
---|
| 48 | if (item.items) {
|
---|
| 49 | if (this.activeItem && item === this.activeItem) {
|
---|
| 50 | this.activeItem = null;
|
---|
| 51 | this.unbindDocumentClickListener();
|
---|
| 52 | }
|
---|
| 53 | else {
|
---|
| 54 | this.activeItem = item;
|
---|
| 55 | if (this.root) {
|
---|
| 56 | this.bindDocumentClickListener();
|
---|
| 57 | }
|
---|
| 58 | }
|
---|
| 59 | }
|
---|
| 60 | if (!item.items) {
|
---|
| 61 | this.onLeafClick();
|
---|
| 62 | }
|
---|
| 63 | }
|
---|
| 64 | onItemMouseEnter(event, item) {
|
---|
| 65 | if (item.disabled || this.mobileActive) {
|
---|
| 66 | event.preventDefault();
|
---|
| 67 | return;
|
---|
| 68 | }
|
---|
| 69 | if (this.root) {
|
---|
| 70 | if (this.activeItem || this.autoDisplay) {
|
---|
| 71 | this.activeItem = item;
|
---|
| 72 | this.bindDocumentClickListener();
|
---|
| 73 | }
|
---|
| 74 | }
|
---|
| 75 | else {
|
---|
| 76 | this.activeItem = item;
|
---|
| 77 | this.bindDocumentClickListener();
|
---|
| 78 | }
|
---|
| 79 | }
|
---|
| 80 | onLeafClick() {
|
---|
| 81 | this.activeItem = null;
|
---|
| 82 | if (this.root) {
|
---|
| 83 | this.unbindDocumentClickListener();
|
---|
| 84 | }
|
---|
| 85 | this.leafClick.emit();
|
---|
| 86 | }
|
---|
| 87 | bindDocumentClickListener() {
|
---|
| 88 | if (!this.documentClickListener) {
|
---|
| 89 | this.documentClickListener = (event) => {
|
---|
| 90 | if (this.el && !this.el.nativeElement.contains(event.target)) {
|
---|
| 91 | this.activeItem = null;
|
---|
| 92 | this.cd.markForCheck();
|
---|
| 93 | this.unbindDocumentClickListener();
|
---|
| 94 | }
|
---|
| 95 | };
|
---|
| 96 | document.addEventListener('click', this.documentClickListener);
|
---|
| 97 | }
|
---|
| 98 | }
|
---|
| 99 | unbindDocumentClickListener() {
|
---|
| 100 | if (this.documentClickListener) {
|
---|
| 101 | document.removeEventListener('click', this.documentClickListener);
|
---|
| 102 | this.documentClickListener = null;
|
---|
| 103 | }
|
---|
| 104 | }
|
---|
| 105 | ngOnDestroy() {
|
---|
| 106 | this.unbindDocumentClickListener();
|
---|
| 107 | }
|
---|
| 108 | }
|
---|
| 109 | MenubarSub.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MenubarSub, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
---|
| 110 | MenubarSub.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: MenubarSub, selector: "p-menubarSub", inputs: { item: "item", root: "root", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", mobileActive: "mobileActive", autoDisplay: "autoDisplay", parentActive: "parentActive" }, outputs: { leafClick: "leafClick" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
|
---|
| 111 | <ul [ngClass]="{'p-submenu-list': !root, 'p-menubar-root-list': root}" [attr.role]="root ? 'menubar' : 'menu'">
|
---|
| 112 | <ng-template ngFor let-child [ngForOf]="(root ? item : item.items)">
|
---|
| 113 | <li *ngIf="child.separator" class="p-menu-separator" [ngClass]="{'p-hidden': child.visible === false}" role="separator">
|
---|
| 114 | <li *ngIf="!child.separator" #listItem [ngClass]="{'p-menuitem':true, 'p-menuitem-active': child === activeItem, 'p-hidden': child.visible === false}" [ngStyle]="child.style" [class]="child.styleClass" role="none" pTooltip [tooltipOptions]="child.tooltipOptions">
|
---|
| 115 | <a *ngIf="!child.routerLink" [attr.href]="child.url" [attr.data-automationid]="child.automationId" [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id" role="menuitem"
|
---|
| 116 | (click)="onItemClick($event, child)" (mouseenter)="onItemMouseEnter($event,child)"
|
---|
| 117 | [ngClass]="{'p-menuitem-link':true,'p-disabled':child.disabled}" [attr.tabindex]="child.disabled ? null : '0'" [attr.aria-haspopup]="item.items != null" [attr.aria-expanded]="item === activeItem" pRipple>
|
---|
| 118 | <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
|
---|
| 119 | <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlLabel">{{child.label}}</span>
|
---|
| 120 | <ng-template #htmlLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
|
---|
| 121 | <span class="p-submenu-icon pi" *ngIf="child.items" [ngClass]="{'pi-angle-down':root,'pi-angle-right':!root}"></span>
|
---|
| 122 | </a>
|
---|
| 123 | <a *ngIf="child.routerLink" [routerLink]="child.routerLink" [attr.data-automationid]="child.automationId" [queryParams]="child.queryParams" [routerLinkActive]="'p-menuitem-link-active'" [routerLinkActiveOptions]="child.routerLinkActiveOptions||{exact:false}"
|
---|
| 124 | [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id" [attr.tabindex]="child.disabled ? null : '0'" role="menuitem"
|
---|
| 125 | (click)="onItemClick($event, child)" (mouseenter)="onItemMouseEnter($event,child)"
|
---|
| 126 | [ngClass]="{'p-menuitem-link':true,'p-disabled':child.disabled}"
|
---|
| 127 | [fragment]="child.fragment" [queryParamsHandling]="child.queryParamsHandling" [preserveFragment]="child.preserveFragment" [skipLocationChange]="child.skipLocationChange" [replaceUrl]="child.replaceUrl" [state]="child.state" pRipple>
|
---|
| 128 | <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
|
---|
| 129 | <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlRouteLabel">{{child.label}}</span>
|
---|
| 130 | <ng-template #htmlRouteLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
|
---|
| 131 | <span class="p-submenu-icon pi" *ngIf="child.items" [ngClass]="{'pi-angle-down':root,'pi-angle-right':!root}"></span>
|
---|
| 132 | </a>
|
---|
| 133 | <p-menubarSub [parentActive]="child === activeItem" [item]="child" *ngIf="child.items" [mobileActive]="mobileActive" [autoDisplay]="autoDisplay" (leafClick)="onLeafClick()"></p-menubarSub>
|
---|
| 134 | </li>
|
---|
| 135 | </ng-template>
|
---|
| 136 | </ul>
|
---|
| 137 | `, isInline: true, components: [{ type: MenubarSub, selector: "p-menubarSub", inputs: ["item", "root", "autoZIndex", "baseZIndex", "mobileActive", "autoDisplay", "parentActive"], outputs: ["leafClick"] }], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.Ripple, selector: "[pRipple]" }, { type: i4.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { type: i4.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], encapsulation: i0.ViewEncapsulation.None });
|
---|
| 138 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MenubarSub, decorators: [{
|
---|
| 139 | type: Component,
|
---|
| 140 | args: [{
|
---|
| 141 | selector: 'p-menubarSub',
|
---|
| 142 | template: `
|
---|
| 143 | <ul [ngClass]="{'p-submenu-list': !root, 'p-menubar-root-list': root}" [attr.role]="root ? 'menubar' : 'menu'">
|
---|
| 144 | <ng-template ngFor let-child [ngForOf]="(root ? item : item.items)">
|
---|
| 145 | <li *ngIf="child.separator" class="p-menu-separator" [ngClass]="{'p-hidden': child.visible === false}" role="separator">
|
---|
| 146 | <li *ngIf="!child.separator" #listItem [ngClass]="{'p-menuitem':true, 'p-menuitem-active': child === activeItem, 'p-hidden': child.visible === false}" [ngStyle]="child.style" [class]="child.styleClass" role="none" pTooltip [tooltipOptions]="child.tooltipOptions">
|
---|
| 147 | <a *ngIf="!child.routerLink" [attr.href]="child.url" [attr.data-automationid]="child.automationId" [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id" role="menuitem"
|
---|
| 148 | (click)="onItemClick($event, child)" (mouseenter)="onItemMouseEnter($event,child)"
|
---|
| 149 | [ngClass]="{'p-menuitem-link':true,'p-disabled':child.disabled}" [attr.tabindex]="child.disabled ? null : '0'" [attr.aria-haspopup]="item.items != null" [attr.aria-expanded]="item === activeItem" pRipple>
|
---|
| 150 | <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
|
---|
| 151 | <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlLabel">{{child.label}}</span>
|
---|
| 152 | <ng-template #htmlLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
|
---|
| 153 | <span class="p-submenu-icon pi" *ngIf="child.items" [ngClass]="{'pi-angle-down':root,'pi-angle-right':!root}"></span>
|
---|
| 154 | </a>
|
---|
| 155 | <a *ngIf="child.routerLink" [routerLink]="child.routerLink" [attr.data-automationid]="child.automationId" [queryParams]="child.queryParams" [routerLinkActive]="'p-menuitem-link-active'" [routerLinkActiveOptions]="child.routerLinkActiveOptions||{exact:false}"
|
---|
| 156 | [attr.target]="child.target" [attr.title]="child.title" [attr.id]="child.id" [attr.tabindex]="child.disabled ? null : '0'" role="menuitem"
|
---|
| 157 | (click)="onItemClick($event, child)" (mouseenter)="onItemMouseEnter($event,child)"
|
---|
| 158 | [ngClass]="{'p-menuitem-link':true,'p-disabled':child.disabled}"
|
---|
| 159 | [fragment]="child.fragment" [queryParamsHandling]="child.queryParamsHandling" [preserveFragment]="child.preserveFragment" [skipLocationChange]="child.skipLocationChange" [replaceUrl]="child.replaceUrl" [state]="child.state" pRipple>
|
---|
| 160 | <span class="p-menuitem-icon" *ngIf="child.icon" [ngClass]="child.icon"></span>
|
---|
| 161 | <span class="p-menuitem-text" *ngIf="child.escape !== false; else htmlRouteLabel">{{child.label}}</span>
|
---|
| 162 | <ng-template #htmlRouteLabel><span class="p-menuitem-text" [innerHTML]="child.label"></span></ng-template>
|
---|
| 163 | <span class="p-submenu-icon pi" *ngIf="child.items" [ngClass]="{'pi-angle-down':root,'pi-angle-right':!root}"></span>
|
---|
| 164 | </a>
|
---|
| 165 | <p-menubarSub [parentActive]="child === activeItem" [item]="child" *ngIf="child.items" [mobileActive]="mobileActive" [autoDisplay]="autoDisplay" (leafClick)="onLeafClick()"></p-menubarSub>
|
---|
| 166 | </li>
|
---|
| 167 | </ng-template>
|
---|
| 168 | </ul>
|
---|
| 169 | `,
|
---|
| 170 | encapsulation: ViewEncapsulation.None,
|
---|
| 171 | host: {
|
---|
| 172 | 'class': 'p-element'
|
---|
| 173 | }
|
---|
| 174 | }]
|
---|
| 175 | }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { item: [{
|
---|
| 176 | type: Input
|
---|
| 177 | }], root: [{
|
---|
| 178 | type: Input
|
---|
| 179 | }], autoZIndex: [{
|
---|
| 180 | type: Input
|
---|
| 181 | }], baseZIndex: [{
|
---|
| 182 | type: Input
|
---|
| 183 | }], mobileActive: [{
|
---|
| 184 | type: Input
|
---|
| 185 | }], autoDisplay: [{
|
---|
| 186 | type: Input
|
---|
| 187 | }], parentActive: [{
|
---|
| 188 | type: Input
|
---|
| 189 | }], leafClick: [{
|
---|
| 190 | type: Output
|
---|
| 191 | }] } });
|
---|
| 192 | export class Menubar {
|
---|
| 193 | constructor(el, renderer, cd, config) {
|
---|
| 194 | this.el = el;
|
---|
| 195 | this.renderer = renderer;
|
---|
| 196 | this.cd = cd;
|
---|
| 197 | this.config = config;
|
---|
| 198 | this.autoZIndex = true;
|
---|
| 199 | this.baseZIndex = 0;
|
---|
| 200 | }
|
---|
| 201 | ngAfterContentInit() {
|
---|
| 202 | this.templates.forEach((item) => {
|
---|
| 203 | switch (item.getType()) {
|
---|
| 204 | case 'start':
|
---|
| 205 | this.startTemplate = item.template;
|
---|
| 206 | break;
|
---|
| 207 | case 'end':
|
---|
| 208 | this.endTemplate = item.template;
|
---|
| 209 | break;
|
---|
| 210 | }
|
---|
| 211 | });
|
---|
| 212 | }
|
---|
| 213 | toggle(event) {
|
---|
| 214 | if (this.mobileActive) {
|
---|
| 215 | this.hide();
|
---|
| 216 | ZIndexUtils.clear(this.rootmenu.el.nativeElement);
|
---|
| 217 | }
|
---|
| 218 | else {
|
---|
| 219 | this.mobileActive = true;
|
---|
| 220 | ZIndexUtils.set('menu', this.rootmenu.el.nativeElement, this.config.zIndex.menu);
|
---|
| 221 | }
|
---|
| 222 | this.bindOutsideClickListener();
|
---|
| 223 | event.preventDefault();
|
---|
| 224 | }
|
---|
| 225 | bindOutsideClickListener() {
|
---|
| 226 | if (!this.outsideClickListener) {
|
---|
| 227 | this.outsideClickListener = (event) => {
|
---|
| 228 | if (this.mobileActive && this.rootmenu.el.nativeElement !== event.target && !this.rootmenu.el.nativeElement.contains(event.target)
|
---|
| 229 | && this.menubutton.nativeElement !== event.target && !this.menubutton.nativeElement.contains(event.target)) {
|
---|
| 230 | this.hide();
|
---|
| 231 | }
|
---|
| 232 | };
|
---|
| 233 | document.addEventListener('click', this.outsideClickListener);
|
---|
| 234 | }
|
---|
| 235 | }
|
---|
| 236 | hide() {
|
---|
| 237 | this.mobileActive = false;
|
---|
| 238 | this.cd.markForCheck();
|
---|
| 239 | ZIndexUtils.clear(this.rootmenu.el.nativeElement);
|
---|
| 240 | this.unbindOutsideClickListener();
|
---|
| 241 | }
|
---|
| 242 | onLeafClick() {
|
---|
| 243 | this.hide();
|
---|
| 244 | }
|
---|
| 245 | unbindOutsideClickListener() {
|
---|
| 246 | if (this.outsideClickListener) {
|
---|
| 247 | document.removeEventListener('click', this.outsideClickListener);
|
---|
| 248 | this.outsideClickListener = null;
|
---|
| 249 | }
|
---|
| 250 | }
|
---|
| 251 | ngOnDestroy() {
|
---|
| 252 | this.unbindOutsideClickListener();
|
---|
| 253 | }
|
---|
| 254 | }
|
---|
| 255 | Menubar.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Menubar, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i5.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
|
---|
| 256 | Menubar.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Menubar, selector: "p-menubar", inputs: { model: "model", style: "style", styleClass: "styleClass", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", autoDisplay: "autoDisplay" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "menubutton", first: true, predicate: ["menubutton"], descendants: true }, { propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true }], ngImport: i0, template: `
|
---|
| 257 | <div [ngClass]="{'p-menubar p-component':true, 'p-menubar-mobile-active': mobileActive}" [class]="styleClass" [ngStyle]="style">
|
---|
| 258 | <div class="p-menubar-start" *ngIf="startTemplate">
|
---|
| 259 | <ng-container *ngTemplateOutlet="startTemplate"></ng-container>
|
---|
| 260 | </div>
|
---|
| 261 | <a #menubutton tabindex="0" class="p-menubar-button" (click)="toggle($event)">
|
---|
| 262 | <i class="pi pi-bars"></i>
|
---|
| 263 | </a>
|
---|
| 264 | <p-menubarSub #rootmenu [item]="model" root="root" [baseZIndex]="baseZIndex" (leafClick)="onLeafClick()" [autoZIndex]="autoZIndex" [mobileActive]="mobileActive" [autoDisplay]="autoDisplay"></p-menubarSub>
|
---|
| 265 | <div class="p-menubar-end" *ngIf="endTemplate; else legacy">
|
---|
| 266 | <ng-container *ngTemplateOutlet="endTemplate"></ng-container>
|
---|
| 267 | </div>
|
---|
| 268 | <ng-template #legacy>
|
---|
| 269 | <div class="p-menubar-end">
|
---|
| 270 | <ng-content></ng-content>
|
---|
| 271 | </div>
|
---|
| 272 | </ng-template>
|
---|
| 273 | </div>
|
---|
| 274 | `, isInline: true, styles: [".p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:1}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}\n"], components: [{ type: MenubarSub, selector: "p-menubarSub", inputs: ["item", "root", "autoZIndex", "baseZIndex", "mobileActive", "autoDisplay", "parentActive"], outputs: ["leafClick"] }], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
---|
| 275 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Menubar, decorators: [{
|
---|
| 276 | type: Component,
|
---|
| 277 | args: [{ selector: 'p-menubar', template: `
|
---|
| 278 | <div [ngClass]="{'p-menubar p-component':true, 'p-menubar-mobile-active': mobileActive}" [class]="styleClass" [ngStyle]="style">
|
---|
| 279 | <div class="p-menubar-start" *ngIf="startTemplate">
|
---|
| 280 | <ng-container *ngTemplateOutlet="startTemplate"></ng-container>
|
---|
| 281 | </div>
|
---|
| 282 | <a #menubutton tabindex="0" class="p-menubar-button" (click)="toggle($event)">
|
---|
| 283 | <i class="pi pi-bars"></i>
|
---|
| 284 | </a>
|
---|
| 285 | <p-menubarSub #rootmenu [item]="model" root="root" [baseZIndex]="baseZIndex" (leafClick)="onLeafClick()" [autoZIndex]="autoZIndex" [mobileActive]="mobileActive" [autoDisplay]="autoDisplay"></p-menubarSub>
|
---|
| 286 | <div class="p-menubar-end" *ngIf="endTemplate; else legacy">
|
---|
| 287 | <ng-container *ngTemplateOutlet="endTemplate"></ng-container>
|
---|
| 288 | </div>
|
---|
| 289 | <ng-template #legacy>
|
---|
| 290 | <div class="p-menubar-end">
|
---|
| 291 | <ng-content></ng-content>
|
---|
| 292 | </div>
|
---|
| 293 | </ng-template>
|
---|
| 294 | </div>
|
---|
| 295 | `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
---|
| 296 | 'class': 'p-element'
|
---|
| 297 | }, styles: [".p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:1}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}\n"] }]
|
---|
| 298 | }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i5.PrimeNGConfig }]; }, propDecorators: { model: [{
|
---|
| 299 | type: Input
|
---|
| 300 | }], style: [{
|
---|
| 301 | type: Input
|
---|
| 302 | }], styleClass: [{
|
---|
| 303 | type: Input
|
---|
| 304 | }], autoZIndex: [{
|
---|
| 305 | type: Input
|
---|
| 306 | }], baseZIndex: [{
|
---|
| 307 | type: Input
|
---|
| 308 | }], autoDisplay: [{
|
---|
| 309 | type: Input
|
---|
| 310 | }], templates: [{
|
---|
| 311 | type: ContentChildren,
|
---|
| 312 | args: [PrimeTemplate]
|
---|
| 313 | }], menubutton: [{
|
---|
| 314 | type: ViewChild,
|
---|
| 315 | args: ['menubutton']
|
---|
| 316 | }], rootmenu: [{
|
---|
| 317 | type: ViewChild,
|
---|
| 318 | args: ['rootmenu']
|
---|
| 319 | }] } });
|
---|
| 320 | export class MenubarModule {
|
---|
| 321 | }
|
---|
| 322 | MenubarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MenubarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
---|
| 323 | MenubarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MenubarModule, declarations: [Menubar, MenubarSub], imports: [CommonModule, RouterModule, RippleModule, TooltipModule], exports: [Menubar, RouterModule, TooltipModule] });
|
---|
| 324 | MenubarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MenubarModule, imports: [[CommonModule, RouterModule, RippleModule, TooltipModule], RouterModule, TooltipModule] });
|
---|
| 325 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MenubarModule, decorators: [{
|
---|
| 326 | type: NgModule,
|
---|
| 327 | args: [{
|
---|
| 328 | imports: [CommonModule, RouterModule, RippleModule, TooltipModule],
|
---|
| 329 | exports: [Menubar, RouterModule, TooltipModule],
|
---|
| 330 | declarations: [Menubar, MenubarSub]
|
---|
| 331 | }]
|
---|
| 332 | }] });
|
---|
| 333 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudWJhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9tZW51YmFyL21lbnViYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQWMsS0FBSyxFQUEwQyx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBb0IsZUFBZSxFQUEwQixTQUFTLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2UCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM1QyxPQUFPLEVBQTJCLGFBQWEsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUNyRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzlDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7Ozs7OztB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AgICAgICAgIGlmICghdmFsdWUpXG4gICAgICAgICAgICAgICAgdGhpcy5hY3RpdmVJdGVtID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIEBPdXRwdXQoKSBsZWFmQ2xpY2s6IEV2ZW50RW1pdHRlcjxhbnk+ID0gbmV3IEV2ZW50RW1pdHRlcigpO1xuXG4gICAgX3BhcmVudEFjdGl2ZTogYm9vbGVhbjtcblxuICAgIGRvY3VtZW50Q2xpY2tMaXN0ZW5lcjogYW55O1xuXG4gICAgbWVudUhvdmVyQWN0aXZlOiBib29sZWFuID0gZmFsc2U7XG5cbiAgICBhY3RpdmVJdGVtOiBhbnk7XG5cbiAgICBjb25zdHJ1Y3RvcihwdWJsaWMgZWw6IEVsZW1lbnRSZWYsIHB1YmxpYyByZW5kZXJlcjogUmVuZGVyZXIyLCBwcml2YXRlIGNkOiBDaGFuZ2VEZXRlY3RvclJlZikgeyB9XG5cbiAgICBvbkl0ZW1DbGljayhldmVudCwgaXRlbSkge1xuICAgICAgICBpZiAoaXRlbS5kaXNhYmxlZCkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghaXRlbS51cmwgJiYgIWl0ZW0ucm91dGVyTGluaykge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChpdGVtLmNvbW1hbmQpIHtcbiAgICAgICAgICAgIGl0ZW0uY29tbWFuZCh7XG4gICAgICAgICAgICAgICAgb3JpZ2luYWxFdmVudDogZXZlbnQsXG4gICAgICAgICAgICAgICAgaXRlbTogaXRlbVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoaXRlbS5pdGVtcykge1xuICAgICAgICAgICAgaWYgKHRoaXMuYWN0aXZlSXRlbSAmJiBpdGVtID09PSB0aGlzLmFjdGl2ZUl0ZW0pIHtcbiAgICAgICAgICAgICAgICB0aGlzLmFjdGl2ZUl0ZW0gPSBudWxsO1xuICAgICAgICAgICAgICAgIHRoaXMudW5iaW5kRG9jdW1lbnRDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLmFjdGl2ZUl0ZW0gPSBpdGVtO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLnJvb3QpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iaW5kRG9jdW1lbnRDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCFpdGVtLml0ZW1zKSB7XG4gICAgICAgICAgICB0aGlzLm9uTGVhZkNsaWNrKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkl0ZW1Nb3VzZUVudGVyKGV2ZW50LCBpdGVtKSB7XG4gICAgICAgIGlmIChpdGVtLmRpc2FibGVkIHx8IHRoaXMubW9iaWxlQWN0aXZlKSB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMucm9vdCkge1xuICAgICAgICAgICAgaWYgKHRoaXMuYWN0aXZlSXRlbSB8fCB0aGlzLmF1dG9EaXNwbGF5KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5hY3RpdmVJdGVtID0gaXRlbTtcbiAgICAgICAgICAgICAgICB0aGlzLmJpbmREb2N1bWVudENsaWNrTGlzdGVuZXIoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuYWN0aXZlSXRlbSA9IGl0ZW07XG4gICAgICAgICAgICB0aGlzLmJpbmREb2N1bWVudENsaWNrTGlzdGVuZXIoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uTGVhZkNsaWNrKCkge1xuICAgICAgICB0aGlzLmFjdGl2ZUl0ZW0gPSBudWxsO1xuICAgICAgICBpZiAodGhpcy5yb290KSB7XG4gICAgICAgICAgICB0aGlzLnVuYmluZERvY3VtZW50Q2xpY2tMaXN0ZW5lcigpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5sZWFmQ2xpY2suZW1pdCgpO1xuICAgIH1cblxuICAgIGJpbmREb2N1bWVudENsaWNrTGlzdGVuZXIoKSB7XG4gICAgICAgIGlmICghdGhpcy5kb2N1bWVudENsaWNrTGlzdGVuZXIpIHtcbiAgICAgICAgICAgIHRoaXMuZG9jdW1lbnRDbGlja0xpc3RlbmVyID0gKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZWwgJiYgIXRoaXMuZWwubmF0aXZlRWxlbWVudC5jb250YWlucyhldmVudC50YXJnZXQpKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYWN0aXZlSXRlbSA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2QubWFya0ZvckNoZWNrKCk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudW5iaW5kRG9jdW1lbnRDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignY2xpY2snLCB0aGlzLmRvY3VtZW50Q2xpY2tMaXN0ZW5lcik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB1bmJpbmREb2N1bWVudENsaWNrTGlzdGVuZXIoKSB7XG4gICAgICAgIGlmICh0aGlzLmRvY3VtZW50Q2xpY2tMaXN0ZW5lcikge1xuICAgICAgICAgICAgZG9jdW1lbnQucmVtb3ZlRXZlbnRMaXN0ZW5lcignY2xpY2snLCB0aGlzLmRvY3VtZW50Q2xpY2t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gICAgICAgIHRoaXMuZW5kVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICB0b2dnbGUoZXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMubW9iaWxlQWN0aXZlKSB7XG4gICAgICAgICAgICB0aGlzLmhpZGUoKTtcbiAgICAgICAgICAgIFpJbmRleFV0aWxzLmNsZWFyKHRoaXMucm9vdG1lbnUuZWwubmF0aXZlRWxlbWVudCk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICB0aGlzLm1vYmlsZUFjdGl2ZSA9IHRydWU7XG4gICAgICAgICAgICBaSW5kZXhVdGlscy5zZXQoJ21lbnUnLCB0aGlzLnJvb3RtZW51LmVsLm5hdGl2ZUVsZW1lbnQsIHRoaXMuY29uZmlnLnpJbmRleC5tZW51KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuYmluZE91dHNpZGVDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgfVxuXG4gICAgYmluZE91dHNpZGVDbGlja0xpc3RlbmVyKCkge1xuICAgICAgICBpZiAoIXRoaXMub3V0c2lkZUNsaWNrTGlzdGVuZXIpIHtcbiAgICAgICAgICAgIHRoaXMub3V0c2lkZUNsaWNrTGlzdGVuZXIgPSAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5tb2JpbGVBY3RpdmUgJiYgdGhpcy5yb290bWVudS5lbC5uYXRpdmVFbGVtZW50ICE9PSBldmVudC50YXJnZXQgJiYgIXRoaXMucm9vdG1lbnUuZWwubmF0aXZlRWxlbWVudC5jb250YWlucyhldmVudC50YXJnZXQpXG4gICAgICAgICAgICAgICAgICAgICYmIHRoaXMubWVudWJ1dHRvbi5uYXRpdmVFbGVtZW50ICE9PSBldmV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