1 line
52 KiB
Plaintext
1 line
52 KiB
Plaintext
|
{"version":3,"file":"primeng-menu.mjs","sources":["../../src/app/components/menu/menu.ts","../../src/app/components/menu/primeng-menu.ts"],"sourcesContent":["import { AnimationEvent, animate, style, transition, trigger } from '@angular/animations';\nimport { CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n NgModule,\n OnDestroy,\n Output,\n PLATFORM_ID,\n Pipe,\n PipeTransform,\n QueryList,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n ViewRef,\n booleanAttribute,\n computed,\n effect,\n forwardRef,\n numberAttribute,\n signal\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { RouterModule } from '@angular/router';\nimport { MenuItem, OverlayService, PrimeNGConfig, PrimeTemplate } from 'primeng/api';\nimport { ConnectedOverlayScrollHandler, DomHandler } from 'primeng/dom';\nimport { RippleModule } from 'primeng/ripple';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { Nullable, VoidListener } from 'primeng/ts-helpers';\nimport { UniqueComponentId, ZIndexUtils } from 'primeng/utils';\n\n@Pipe({\n name: 'safeHtml'\n})\nexport class SafeHtmlPipe implements PipeTransform {\n constructor(@Inject(PLATFORM_ID) private readonly platformId: any, private readonly sanitizer: DomSanitizer) {}\n\n public transform(value: string): SafeHtml {\n if (!value || !isPlatformBrowser(this.platformId)) {\n return value;\n }\n\n return this.sanitizer.bypassSecurityTrustHtml(value);\n }\n}\n\n@Component({\n selector: '[pMenuItemContent]',\n template: `\n <div [attr.data-pc-section]=\"'content'\" class=\"p-menuitem-content\" (click)=\"onItemClick($event, item)\">\n <ng-container *ngIf=\"!itemTemplate\">\n <a\n *ngIf=\"!item?.routerLink\"\n [attr.title]=\"item.title\"\n [attr.href]=\"item.url || null\"\n [attr.data-automationid]=\"item.automationId\"\n [attr.tabindex]=\"-1\"\n [attr.data-pc-section]=\"'action'\"\n [attr.aria-hidden]=\"true\"\n class=\"p-menuitem-link\"\n [target]=\"item.target\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n pRipple\n >\n <ng-container *ngTemplateOutlet=\"itemContent; context: { $implicit: item }\"></ng-container>\n </a>\n <a\n *ngIf=\"item?.routerLink\"\n [routerLink]=\"item.routerLink\"\n [attr.data-automationid]=\"item.automationId\"\n [attr.tabindex]=\"-1\"\n [attr.data-pc-section]=\"'action'\"\n [attr.aria-hidden]=\"true\"\n [attr.title]=\"item.title\"\n [queryParams]=\"item.queryParams\"\n routerLinkActive=\"p-menuitem-link-active\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n class=\"p-menuitem-link\"\n [target]=\"item.target\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n [fragment]=\"item.fragment\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [preserveFragment]=\"item.preserveFragment\"\n [skipLocationChange]=\"item.skipLocationChange\"\n [replaceUrl]=\"item.replaceUrl\"\n [state]=\"item.state\"\n pRipple\n >\n <ng-container *ngTemplateOutlet=\"itemContent; context: { $implicit: item }\"></ng-container>\n </a>\n </ng-container>\n\n <ng-containe
|