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

1 line
34 KiB
Plaintext
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
{"version":3,"file":"primeng-toast.mjs","sources":["../../src/app/components/toast/toast.ts","../../src/app/components/toast/primeng-toast.ts"],"sourcesContent":["import { AnimationEvent, animate, animateChild, query, state, style, transition, trigger } from '@angular/animations';\nimport { CommonModule, DOCUMENT } 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 NgZone,\n OnDestroy,\n OnInit,\n Output,\n QueryList,\n Renderer2,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute\n} from '@angular/core';\nimport { Message, MessageService, PrimeNGConfig, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { ExclamationTriangleIcon } from 'primeng/icons/exclamationtriangle';\nimport { InfoCircleIcon } from 'primeng/icons/infocircle';\nimport { TimesIcon } from 'primeng/icons/times';\nimport { TimesCircleIcon } from 'primeng/icons/timescircle';\nimport { RippleModule } from 'primeng/ripple';\nimport { ObjectUtils, UniqueComponentId, ZIndexUtils } from 'primeng/utils';\nimport { Subscription } from 'rxjs';\nimport { ToastCloseEvent, ToastItemCloseEvent, ToastPositionType } from './toast.interface';\n\n@Component({\n selector: 'p-toastItem',\n template: `\n <div\n #container\n [attr.id]=\"message?.id\"\n [class]=\"message?.styleClass\"\n [ngClass]=\"['p-toast-message-' + message?.severity, 'p-toast-message']\"\n [@messageState]=\"{ value: 'visible', params: { showTransformParams: showTransformOptions, hideTransformParams: hideTransformOptions, showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave()\"\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n [attr.data-pc-name]=\"'toast'\"\n [attr.data-pc-section]=\"'root'\"\n >\n <ng-container *ngIf=\"headlessTemplate; else notHeadless\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate; context: { $implicit: message, closeFn: onCloseIconClick }\"></ng-container>\n </ng-container>\n <ng-template #notHeadless>\n <div class=\"p-toast-message-content\" [ngClass]=\"message?.contentStyleClass\" [attr.data-pc-section]=\"'content'\">\n <ng-container *ngIf=\"!template\">\n <span *ngIf=\"message.icon\" [class]=\"'p-toast-message-icon pi ' + message.icon\"></span>\n <span class=\"p-toast-message-icon\" *ngIf=\"!message.icon\" [attr.aria-hidden]=\"true\" [attr.data-pc-section]=\"'icon'\">\n <ng-container>\n <CheckIcon *ngIf=\"message.severity === 'success'\" [attr.aria-hidden]=\"true\" [attr.data-pc-section]=\"'icon'\" />\n <InfoCircleIcon *ngIf=\"message.severity === 'info'\" [attr.aria-hidden]=\"true\" [attr.data-pc-section]=\"'icon'\" />\n <TimesCircleIcon *ngIf=\"message.severity === 'error'\" [attr.aria-hidden]=\"true\" [attr.data-pc-section]=\"'icon'\" />\n <ExclamationTriangleIcon *ngIf=\"message.severity === 'warn'\" [attr.aria-hidden]=\"true\" [attr.data-pc-section]=\"'icon'\" />\n </ng-container>\n </span>\n <div class=\"p-toast-message-text\" [attr.data-pc-section]=\"'text'\">\n <div class=\"p-toast-summary\" [attr.data-pc-section]=\"'summary'\">{{ message.summary }}</div>\n <div class=\"p-toast-detail\" [attr.data-pc-section]=\"'detail'\">{{ message.detail }}</div>\n </di