1 line
28 KiB
Plaintext
1 line
28 KiB
Plaintext
|
{"version":3,"file":"primeng-confirmpopup.mjs","sources":["../../src/app/components/confirmpopup/confirmpopup.ts","../../src/app/components/confirmpopup/primeng-confirmpopup.ts"],"sourcesContent":["import { AnimationEvent, animate, state, style, transition, trigger } from '@angular/animations';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostListener,\n Inject,\n Input,\n NgModule,\n OnDestroy,\n QueryList,\n Renderer2,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute\n} from '@angular/core';\nimport { Confirmation, ConfirmationService, OverlayService, PrimeNGConfig, PrimeTemplate, SharedModule, TranslationKeys } from 'primeng/api';\nimport { ButtonModule } from 'primeng/button';\nimport { ConnectedOverlayScrollHandler, DomHandler } from 'primeng/dom';\nimport { Nullable, VoidListener } from 'primeng/ts-helpers';\nimport { ZIndexUtils } from 'primeng/utils';\nimport { Subscription } from 'rxjs';\n/**\n * ConfirmPopup displays a confirmation overlay displayed relatively to its target.\n * @group Components\n */\n@Component({\n selector: 'p-confirmPopup',\n template: `\n <div\n *ngIf=\"visible\"\n [ngClass]=\"'p-confirm-popup p-component'\"\n [ngStyle]=\"style\"\n [class]=\"styleClass\"\n role=\"alertdialog\"\n (click)=\"onOverlayClick($event)\"\n [@animation]=\"{ value: 'open', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }\"\n (@animation.start)=\"onAnimationStart($event)\"\n (@animation.done)=\"onAnimationEnd($event)\"\n >\n <ng-container *ngIf=\"headlessTemplate; else notHeadless\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate; context: { $implicit: confirmation }\"></ng-container>\n </ng-container>\n <ng-template #notHeadless>\n <div #content class=\"p-confirm-popup-content\">\n <ng-container *ngIf=\"contentTemplate; else withoutContentTemplate\">\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: confirmation }\"></ng-container>\n </ng-container>\n <ng-template #withoutContentTemplate>\n <i [ngClass]=\"'p-confirm-popup-icon'\" [class]=\"confirmation?.icon\" *ngIf=\"confirmation?.icon\"></i>\n <span class=\"p-confirm-popup-message\">{{ confirmation?.message }}</span>\n </ng-template>\n </div>\n <div class=\"p-confirm-popup-footer\">\n <button\n type=\"button\"\n pButton\n [label]=\"rejectButtonLabel\"\n (click)=\"reject()\"\n [ngClass]=\"'p-confirm-popup-reject p-button-sm'\"\n [class]=\"confirmation?.rejectButtonStyleClass || 'p-button-text'\"\n *ngIf=\"confirmation?.rejectVisible !== false\"\n [attr.aria-label]=\"rejectButtonLabel\"\n >\n <i [class]=\"confirmation?.rejectIcon\" *ngIf=\"confirmation?.rejectIcon; else rejecticon\"></i>\n <ng-template #rejecticon *ngTemplateOutlet=\"rejectIconTemplate\"></ng-template>\n </button>\n <button\n type=\"button\"\n pButton\n [label]=\"acceptButtonLabel\"\n (click)=\"accept()\"\n [ngClass]=\"'p-confirm-popup-accept p-button-sm'\"\n [class]=\"confirmation?.acceptButtonStyleClass\"\n *ngIf=\"confirmation?.acceptVisible !== false\"\n
|