Icard/angular-clarity-master(work.../node_modules/primeng/fesm2022/primeng-speeddial.mjs.map

1 line
46 KiB
Plaintext
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
{"version":3,"file":"primeng-speeddial.mjs","sources":["../../src/app/components/speeddial/speeddial.ts","../../src/app/components/speeddial/primeng-speeddial.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 Input,\n NgModule,\n OnDestroy,\n Output,\n PLATFORM_ID,\n QueryList,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute,\n signal\n} from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { MenuItem, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { ButtonModule } from 'primeng/button';\nimport { DomHandler } from 'primeng/dom';\nimport { PlusIcon } from 'primeng/icons/plus';\nimport { RippleModule } from 'primeng/ripple';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { UniqueComponentId } from 'primeng/utils';\nimport { asapScheduler } from 'rxjs';\n\n/**\n * When pressed, a floating action button can display multiple primary actions that can be performed on a page.\n * @group Components\n */\n@Component({\n selector: 'p-speedDial',\n template: `\n <div #container [ngClass]=\"containerClass()\" [class]=\"className\" [ngStyle]=\"style\" [attr.data-pc-name]=\"'speeddial'\" [attr.data-pc-section]=\"'root'\">\n <button\n pRipple\n pButton\n class=\"p-button-icon-only\"\n [style]=\"buttonStyle\"\n [icon]=\"buttonIconClass\"\n [ngClass]=\"buttonClass()\"\n [disabled]=\"disabled\"\n [attr.aria-expanded]=\"visible\"\n [attr.aria-haspopup]=\"true\"\n [attr.aria-controls]=\"id + '_list'\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n (click)=\"onButtonClick($event)\"\n (keydown)=\"onTogglerKeydown($event)\"\n [attr.data-pc-name]=\"'button'\"\n >\n <PlusIcon *ngIf=\"!showIcon && !buttonTemplate\" />\n <ng-container *ngIf=\"buttonTemplate\">\n <ng-container *ngTemplateOutlet=\"buttonTemplate\"></ng-container>\n </ng-container>\n </button>\n <ul\n #list\n class=\"p-speeddial-list\"\n role=\"menu\"\n [id]=\"id + '_list'\"\n (focus)=\"onFocus($event)\"\n (focusout)=\"onBlur($event)\"\n (keydown)=\"onKeyDown($event)\"\n [attr.aria-activedescendant]=\"focused ? focusedOptionId : undefined\"\n [tabindex]=\"-1\"\n [attr.data-pc-section]=\"'menu'\"\n >\n <li\n *ngFor=\"let item of model; let i = index\"\n [ngStyle]=\"getItemStyle(i)\"\n class=\"p-speeddial-item\"\n pTooltip\n [tooltipOptions]=\"item.tooltipOptions\"\n [ngClass]=\"{ 'p-hidden': item.visible === false, 'p-focus': focusedOptionId == id + '_' + i }\"\n [id]=\"id + '_' + i\"\n [attr.aria-controls]=\"id + '_item'\"\n role=\"menuitem\"\n [attr.data-pc-section]=\"'menuitem'\"\n >\n <ng-container *ngIf=\"itemTemplate\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, index: i }\"></ng-container>\n </ng-container>\n <ng-container *ngIf=\"!itemTemplate\">\n <a\n *ngIf=\"isClickableRouterLink(item); else elseBlock\"\n pRipple\n [routerLink]=\"item.