primeng 11.2.2 → 11.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/avatar/primeng-avatar.metadata.json +1 -1
- package/bundles/primeng-avatar.umd.js +1 -1
- package/bundles/primeng-avatar.umd.min.js +1 -1
- package/bundles/primeng-avatar.umd.min.js.map +1 -1
- package/bundles/primeng-confirmdialog.umd.js +1 -1
- package/bundles/primeng-confirmdialog.umd.min.js +1 -1
- package/bundles/primeng-confirmdialog.umd.min.js.map +1 -1
- package/bundles/primeng-dialog.umd.js +1 -1
- package/bundles/primeng-dialog.umd.min.js +1 -1
- package/bundles/primeng-dialog.umd.min.js.map +1 -1
- package/bundles/primeng-dynamicdialog.umd.js +1 -1
- package/bundles/primeng-dynamicdialog.umd.min.js +1 -1
- package/bundles/primeng-dynamicdialog.umd.min.js.map +1 -1
- package/bundles/primeng-inputmask.umd.js +5 -2
- package/bundles/primeng-inputmask.umd.js.map +1 -1
- package/bundles/primeng-inputmask.umd.min.js +1 -1
- package/bundles/primeng-inputmask.umd.min.js.map +1 -1
- package/bundles/primeng-inputnumber.umd.js +16 -2
- package/bundles/primeng-inputnumber.umd.js.map +1 -1
- package/bundles/primeng-inputnumber.umd.min.js +1 -1
- package/bundles/primeng-inputnumber.umd.min.js.map +1 -1
- package/bundles/primeng-lightbox.umd.js +1 -1
- package/bundles/primeng-lightbox.umd.min.js +1 -1
- package/bundles/primeng-lightbox.umd.min.js.map +1 -1
- package/bundles/primeng-slider.umd.js +1 -0
- package/bundles/primeng-slider.umd.js.map +1 -1
- package/bundles/primeng-slider.umd.min.js +1 -1
- package/bundles/primeng-slider.umd.min.js.map +1 -1
- package/bundles/primeng-table.umd.js +15 -8
- package/bundles/primeng-table.umd.js.map +1 -1
- package/bundles/primeng-table.umd.min.js +2 -2
- package/bundles/primeng-table.umd.min.js.map +1 -1
- package/confirmdialog/primeng-confirmdialog.metadata.json +1 -1
- package/dialog/primeng-dialog.metadata.json +1 -1
- package/dynamicdialog/primeng-dynamicdialog.metadata.json +1 -1
- package/esm2015/avatar/avatar.js +1 -1
- package/esm2015/confirmdialog/confirmdialog.js +1 -1
- package/esm2015/dialog/dialog.js +1 -1
- package/esm2015/dynamicdialog/dynamicdialog.js +1 -1
- package/esm2015/inputmask/inputmask.js +6 -3
- package/esm2015/inputnumber/inputnumber.js +13 -3
- package/esm2015/lightbox/lightbox.js +1 -1
- package/esm2015/slider/slider.js +2 -1
- package/esm2015/table/table.js +16 -9
- package/fesm2015/primeng-avatar.js +1 -1
- package/fesm2015/primeng-confirmdialog.js +1 -1
- package/fesm2015/primeng-dialog.js +1 -1
- package/fesm2015/primeng-dynamicdialog.js +1 -1
- package/fesm2015/primeng-inputmask.js +5 -2
- package/fesm2015/primeng-inputmask.js.map +1 -1
- package/fesm2015/primeng-inputnumber.js +12 -2
- package/fesm2015/primeng-inputnumber.js.map +1 -1
- package/fesm2015/primeng-lightbox.js +1 -1
- package/fesm2015/primeng-slider.js +1 -0
- package/fesm2015/primeng-slider.js.map +1 -1
- package/fesm2015/primeng-table.js +15 -8
- package/fesm2015/primeng-table.js.map +1 -1
- package/inputmask/inputmask.d.ts +2 -1
- package/inputmask/primeng-inputmask.metadata.json +1 -1
- package/inputnumber/inputnumber.d.ts +3 -1
- package/inputnumber/primeng-inputnumber.metadata.json +1 -1
- package/lightbox/primeng-lightbox.metadata.json +1 -1
- package/package.json +1 -1
- package/resources/components/avatar/avatar.css +3 -2
- package/resources/components/dialog/dialog.css +2 -0
- package/slider/primeng-slider.metadata.json +1 -1
- package/table/primeng-table.metadata.json +1 -1
- package/table/table.d.ts +4 -1
@@ -1 +1 @@
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"Avatar":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"p-avatar","template":"\n <div [ngClass]=\"containerClass()\" [class]=\"styleClass\" [ngStyle]=\"style\">\n <ng-content></ng-content>\n <span class=\"p-avatar-text\" *ngIf=\"label; else iconTemplate\">{{label}}</span>\n <ng-template #iconTemplate><span [class]=\"icon\" [ngClass]=\"'p-avatar-icon'\" *ngIf=\"icon; else imageTemplate\"></span></ng-template>\n <ng-template #imageTemplate><img [src]=\"image\" *ngIf=\"image\"></ng-template>\n </div>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":13,"character":21},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":14,"character":19},"member":"None"},"styles":[".p-avatar{align-items:center;display:inline-flex;font-size:1rem;height:2rem;justify-content:center;width:2rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"Avatar":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"p-avatar","template":"\n <div [ngClass]=\"containerClass()\" [class]=\"styleClass\" [ngStyle]=\"style\">\n <ng-content></ng-content>\n <span class=\"p-avatar-text\" *ngIf=\"label; else iconTemplate\">{{label}}</span>\n <ng-template #iconTemplate><span [class]=\"icon\" [ngClass]=\"'p-avatar-icon'\" *ngIf=\"icon; else imageTemplate\"></span></ng-template>\n <ng-template #imageTemplate><img [src]=\"image\" *ngIf=\"image\"></ng-template>\n </div>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":13,"character":21},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":14,"character":19},"member":"None"},"styles":[".p-avatar{align-items:center;display:inline-flex;font-size:1rem;height:2rem;justify-content:center;width:2rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50%;overflow:hidden}.p-avatar .p-avatar-icon{font-size:1rem}.p-avatar img{height:100%;width:100%}"]}]}],"members":{"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":5}}]}],"icon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":5}}]}],"image":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":5}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":5}}]}],"shape":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":5}}]}],"styleClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":5}}]}],"containerClass":[{"__symbolic":"method"}]}},"AvatarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":44,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":45,"character":14}],"exports":[{"__symbolic":"reference","name":"Avatar"}],"declarations":[{"__symbolic":"reference","name":"Avatar"}]}]}],"members":{}}},"origins":{"Avatar":"./avatar","AvatarModule":"./avatar"},"importAs":"primeng/avatar"}
|
@@ -26,7 +26,7 @@
|
|
26
26
|
template: "\n <div [ngClass]=\"containerClass()\" [class]=\"styleClass\" [ngStyle]=\"style\">\n <ng-content></ng-content>\n <span class=\"p-avatar-text\" *ngIf=\"label; else iconTemplate\">{{label}}</span>\n <ng-template #iconTemplate><span [class]=\"icon\" [ngClass]=\"'p-avatar-icon'\" *ngIf=\"icon; else imageTemplate\"></span></ng-template>\n <ng-template #imageTemplate><img [src]=\"image\" *ngIf=\"image\"></ng-template>\n </div>\n ",
|
27
27
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
28
28
|
encapsulation: core.ViewEncapsulation.None,
|
29
|
-
styles: [".p-avatar{align-items:center;display:inline-flex;font-size:1rem;height:2rem;justify-content:center;width:2rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50
|
29
|
+
styles: [".p-avatar{align-items:center;display:inline-flex;font-size:1rem;height:2rem;justify-content:center;width:2rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50%;overflow:hidden}.p-avatar .p-avatar-icon{font-size:1rem}.p-avatar img{height:100%;width:100%}"]
|
30
30
|
},] }
|
31
31
|
];
|
32
32
|
Avatar.propDecorators = {
|
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("primeng/avatar",["exports","@angular/core","@angular/common"],a):a(((e="undefined"!=typeof globalThis?globalThis:e||self).primeng=e.primeng||{},e.primeng.avatar={}),e.ng.core,e.ng.common)}(this,(function(e,a,t){"use strict";var n=function(){function e(){this.size="normal",this.shape="square"}return e.prototype.containerClass=function(){return{"p-avatar p-component":!0,"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}},e}();n.decorators=[{type:a.Component,args:[{selector:"p-avatar",template:'\n <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style">\n <ng-content></ng-content>\n <span class="p-avatar-text" *ngIf="label; else iconTemplate">{{label}}</span>\n <ng-template #iconTemplate><span [class]="icon" [ngClass]="\'p-avatar-icon\'" *ngIf="icon; else imageTemplate"></span></ng-template>\n <ng-template #imageTemplate><img [src]="image" *ngIf="image"></ng-template>\n </div>\n ',changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None,styles:[".p-avatar{align-items:center;display:inline-flex;font-size:1rem;height:2rem;justify-content:center;width:2rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50
|
1
|
+
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("primeng/avatar",["exports","@angular/core","@angular/common"],a):a(((e="undefined"!=typeof globalThis?globalThis:e||self).primeng=e.primeng||{},e.primeng.avatar={}),e.ng.core,e.ng.common)}(this,(function(e,a,t){"use strict";var n=function(){function e(){this.size="normal",this.shape="square"}return e.prototype.containerClass=function(){return{"p-avatar p-component":!0,"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}},e}();n.decorators=[{type:a.Component,args:[{selector:"p-avatar",template:'\n <div [ngClass]="containerClass()" [class]="styleClass" [ngStyle]="style">\n <ng-content></ng-content>\n <span class="p-avatar-text" *ngIf="label; else iconTemplate">{{label}}</span>\n <ng-template #iconTemplate><span [class]="icon" [ngClass]="\'p-avatar-icon\'" *ngIf="icon; else imageTemplate"></span></ng-template>\n <ng-template #imageTemplate><img [src]="image" *ngIf="image"></ng-template>\n </div>\n ',changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None,styles:[".p-avatar{align-items:center;display:inline-flex;font-size:1rem;height:2rem;justify-content:center;width:2rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50%;overflow:hidden}.p-avatar .p-avatar-icon{font-size:1rem}.p-avatar img{height:100%;width:100%}"]}]}],n.propDecorators={label:[{type:a.Input}],icon:[{type:a.Input}],image:[{type:a.Input}],size:[{type:a.Input}],shape:[{type:a.Input}],style:[{type:a.Input}],styleClass:[{type:a.Input}]};var r=function(){};r.decorators=[{type:a.NgModule,args:[{imports:[t.CommonModule],exports:[n],declarations:[n]}]}],e.Avatar=n,e.AvatarModule=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
2
2
|
//# sourceMappingURL=primeng-avatar.umd.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/app/components/avatar/avatar.ts"],"names":["Avatar","this","size","shape","prototype","containerClass","p-avatar p-component","p-avatar-image","image","p-avatar-circle","p-avatar-lg","p-avatar-xl","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","NgModule","imports","CommonModule","exports","declarations"],"mappings":"kaAGA,SAAAA,IAsBaC,KAAAC,KAAe,SAEfD,KAAAE,MAAgB,gBAMzBH,EAAAI,UAAAC,eAAA,WACI,MAAO,CACHC,wBAAwB,EACxBC,iBAAgC,MAAdN,KAAKO,MACvBC,kBAAkC,WAAfR,KAAKE,MACxBO,cAA6B,UAAdT,KAAKC,KACpBS,cAA6B,WAAdV,KAAKC,gCApC/BU,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,WACVC,SAAU,ydAQVC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,
|
1
|
+
{"version":3,"sources":["../../src/app/components/avatar/avatar.ts"],"names":["Avatar","this","size","shape","prototype","containerClass","p-avatar p-component","p-avatar-image","image","p-avatar-circle","p-avatar-lg","p-avatar-xl","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","Input","NgModule","imports","CommonModule","exports","declarations"],"mappings":"kaAGA,SAAAA,IAsBaC,KAAAC,KAAe,SAEfD,KAAAE,MAAgB,gBAMzBH,EAAAI,UAAAC,eAAA,WACI,MAAO,CACHC,wBAAwB,EACxBC,iBAAgC,MAAdN,KAAKO,MACvBC,kBAAkC,WAAfR,KAAKE,MACxBO,cAA6B,UAAdT,KAAKC,KACpBS,cAA6B,WAAdV,KAAKC,gCApC/BU,EAAAA,UAASC,KAAA,CAAC,CACPC,SAAU,WACVC,SAAU,ydAQVC,gBAAiBC,EAAAA,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,iWAKhCC,EAAAA,oBAEAA,EAAAA,qBAEAA,EAAAA,oBAEAA,EAAAA,qBAEAA,EAAAA,qBAEAA,EAAAA,0BAEAA,EAAAA,eAkBL,iCALCC,EAAAA,SAAQV,KAAA,CAAC,CACNW,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC1B,GACV2B,aAAc,CAAC3B","sourcesContent":["import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@Component({\n selector: 'p-avatar',\n template: `\n <div [ngClass]=\"containerClass()\" [class]=\"styleClass\" [ngStyle]=\"style\">\n <ng-content></ng-content>\n <span class=\"p-avatar-text\" *ngIf=\"label; else iconTemplate\">{{label}}</span>\n <ng-template #iconTemplate><span [class]=\"icon\" [ngClass]=\"'p-avatar-icon'\" *ngIf=\"icon; else imageTemplate\"></span></ng-template>\n <ng-template #imageTemplate><img [src]=\"image\" *ngIf=\"image\"></ng-template>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./avatar.css']\n})\nexport class Avatar {\n\n @Input() label: string;\n\n @Input() icon: string;\n\n @Input() image: string;\n\n @Input() size: string = \"normal\";\n\n @Input() shape: string = \"square\";\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n containerClass() {\n return {\n 'p-avatar p-component': true,\n 'p-avatar-image': this.image != null,\n 'p-avatar-circle': this.shape === 'circle',\n 'p-avatar-lg': this.size === 'large',\n 'p-avatar-xl': this.size === 'xlarge'\n };\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Avatar],\n declarations: [Avatar]\n})\nexport class AvatarModule { }\n"]}
|
@@ -344,7 +344,7 @@
|
|
344
344
|
],
|
345
345
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
346
346
|
encapsulation: core.ViewEncapsulation.None,
|
347
|
-
styles: [".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;max-height:100%;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]
|
347
|
+
styles: [".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;left:0!important;max-height:100%;top:0!important;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]
|
348
348
|
},] }
|
349
349
|
];
|
350
350
|
ConfirmDialog.ctorParameters = function () { return [
|
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/animations"),require("@angular/common"),require("primeng/dom"),require("primeng/api"),require("primeng/button")):"function"==typeof define&&define.amd?define("primeng/confirmdialog",["exports","@angular/core","@angular/animations","@angular/common","primeng/dom","primeng/api","primeng/button"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).primeng=t.primeng||{},t.primeng.confirmdialog={}),t.ng.core,t.ng.animations,t.ng.common,t.primeng.dom,t.primeng.api,t.primeng.button)}(this,(function(t,e,n,i,o,a,s){"use strict";var r=n.animation([n.style({transform:"{{transform}}",opacity:0}),n.animate("{{transition}}",n.style({transform:"none",opacity:1}))]),c=n.animation([n.animate("{{transition}}",n.style({transform:"{{transform}}",opacity:0}))]),l=function(){function t(t,n,i,o,a,s){var r=this;this.el=t,this.renderer=n,this.confirmationService=i,this.zone=o,this.cd=a,this.config=s,this.acceptIcon="pi pi-check",this.acceptVisible=!0,this.rejectIcon="pi pi-times",this.rejectVisible=!0,this.closeOnEscape=!0,this.blockScroll=!0,this.closable=!0,this.autoZIndex=!0,this.baseZIndex=0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.focusTrap=!0,this.defaultFocus="accept",this.onHide=new e.EventEmitter,this._position="center",this.transformOptions="scale(0.7)",this.subscription=this.confirmationService.requireConfirmation$.subscribe((function(t){t?t.key===r.key&&(r.confirmation=t,r.confirmationOptions={message:r.confirmation.message||r.message,icon:r.confirmation.icon||r.icon,header:r.confirmation.header||r.header,rejectVisible:null==r.confirmation.rejectVisible?r.rejectVisible:r.confirmation.rejectVisible,acceptVisible:null==r.confirmation.acceptVisible?r.acceptVisible:r.confirmation.acceptVisible,acceptLabel:r.confirmation.acceptLabel||r.acceptLabel,rejectLabel:r.confirmation.rejectLabel||r.rejectLabel,acceptIcon:r.confirmation.acceptIcon||r.acceptIcon,rejectIcon:r.confirmation.rejectIcon||r.rejectIcon,acceptButtonStyleClass:r.confirmation.acceptButtonStyleClass||r.acceptButtonStyleClass,rejectButtonStyleClass:r.confirmation.rejectButtonStyleClass||r.rejectButtonStyleClass,defaultFocus:r.confirmation.defaultFocus||r.defaultFocus,blockScroll:!1===r.confirmation.blockScroll||!0===r.confirmation.blockScroll?r.confirmation.blockScroll:r.blockScroll,closeOnEscape:!1===r.confirmation.closeOnEscape||!0===r.confirmation.closeOnEscape?r.confirmation.closeOnEscape:r.closeOnEscape,dismissableMask:!1===r.confirmation.dismissableMask||!0===r.confirmation.dismissableMask?r.confirmation.dismissableMask:r.dismissableMask},r.confirmation.accept&&(r.confirmation.acceptEvent=new e.EventEmitter,r.confirmation.acceptEvent.subscribe(r.confirmation.accept)),r.confirmation.reject&&(r.confirmation.rejectEvent=new e.EventEmitter,r.confirmation.rejectEvent.subscribe(r.confirmation.reject)),r.visible=!0):r.hide()}))}return Object.defineProperty(t.prototype,"visible",{get:function(){return this._visible},set:function(t){this._visible=t,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){switch(this._position=t,t){case"top-left":case"bottom-left":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"top-right":case"bottom-right":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.templates.forEach((function(e){switch(e.getType()){case"footerTemplate":t.footerTemplate=e.template}}))},t.prototype.option=function(t){var e=this.confirmationOptions||this;if(e.hasOwnProperty(t))return e[t]},t.prototype.onAnimationStart=function(t){switch(t.toState){case"visible":this.container=t.element,this.wrapper=this.container.parentElement,this.contentContainer=o.DomHandler.findSingle(this.container,".p-dialog-content");var e=this.getElementToFocus();e&&e.focus(),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.enableModality()}},t.prototype.onAnimationEnd=function(t){switch(t.toState){case"void":this.onOverlayHide()}},t.prototype.getElementToFocus=function(){switch(this.option("defaultFocus")){case"accept":return o.DomHandler.findSingle(this.container,".p-confirm-dialog-accept");case"reject":return o.DomHandler.findSingle(this.container,".p-confirm-dialog-reject");case"close":return o.DomHandler.findSingle(this.container,".p-dialog-header-close");case"none":return null;default:return o.DomHandler.findSingle(this.container,".p-confirm-dialog-accept")}},t.prototype.appendContainer=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):o.DomHandler.appendChild(this.wrapper,this.appendTo))},t.prototype.restoreAppend=function(){this.wrapper&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)},t.prototype.enableModality=function(){var t=this;this.option("blockScroll")&&o.DomHandler.addClass(document.body,"p-overflow-hidden"),this.option("dismissableMask")&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(function(e){t.wrapper&&t.wrapper.isSameNode(e.target)&&t.close(e)})))},t.prototype.disableModality=function(){this.maskVisible=!1,this.option("blockScroll")&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.dismissableMask&&this.unbindMaskClickListener(),this.container&&!this.cd.destroyed&&this.cd.detectChanges()},t.prototype.close=function(t){this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(a.ConfirmEventType.CANCEL),this.hide(a.ConfirmEventType.CANCEL),t.preventDefault()},t.prototype.hide=function(t){this.onHide.emit(t),this.visible=!1,this.confirmation=null,this.confirmationOptions=null},t.prototype.moveOnTop=function(){this.autoZIndex&&(this.container.style.zIndex=String(this.baseZIndex+ ++o.DomHandler.zindex),this.wrapper.style.zIndex=String(this.baseZIndex+(o.DomHandler.zindex-1)))},t.prototype.getMaskClass=function(){var t={"p-dialog-mask p-component-overlay":!0,"p-dialog-mask-scrollblocker":this.blockScroll};return t[this.getPositionClass().toString()]=!0,t},t.prototype.getPositionClass=function(){var t=this,e=["left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"].find((function(e){return e===t.position}));return e?"p-dialog-"+e:""},t.prototype.bindGlobalListeners=function(){var t=this;if(this.option("closeOnEscape")&&this.closable||this.focusTrap&&!this.documentEscapeListener){var e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",(function(e){if(27==e.which&&t.option("closeOnEscape")&&t.closable&&parseInt(t.container.style.zIndex)===o.DomHandler.zindex+t.baseZIndex&&t.visible&&t.close(e),9===e.which&&t.focusTrap){e.preventDefault();var n=o.DomHandler.getFocusableElements(t.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){var i=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==i||0===i?n[n.length-1].focus():n[i-1].focus():-1==i||i===n.length-1?n[0].focus():n[i+1].focus()}else n[0].focus()}}))}},t.prototype.unbindGlobalListeners=function(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)},t.prototype.unbindMaskClickListener=function(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)},t.prototype.onOverlayHide=function(){this.disableModality(),this.unbindGlobalListeners(),this.container=null},t.prototype.ngOnDestroy=function(){this.restoreAppend(),this.onOverlayHide(),this.subscription.unsubscribe()},t.prototype.accept=function(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(a.ConfirmEventType.ACCEPT)},t.prototype.reject=function(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(a.ConfirmEventType.REJECT),this.hide(a.ConfirmEventType.REJECT)},Object.defineProperty(t.prototype,"acceptButtonLabel",{get:function(){return this.option("acceptLabel")||this.config.getTranslation(a.TranslationKeys.ACCEPT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rejectButtonLabel",{get:function(){return this.option("rejectLabel")||this.config.getTranslation(a.TranslationKeys.REJECT)},enumerable:!1,configurable:!0}),t}();l.decorators=[{type:e.Component,args:[{selector:"p-confirmDialog",template:'\n <div [class]="maskStyleClass" [ngClass]="getMaskClass()" *ngIf="maskVisible">\n <div [ngClass]="{\'p-dialog p-confirm-dialog p-component\':true,\'p-dialog-rtl\':rtl}" [ngStyle]="style" [class]="styleClass" (mousedown)="moveOnTop()"\n [@animation]="{value: \'visible\', params: {transform: transformOptions, transition: transitionOptions}}" (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" *ngIf="visible">\n <div class="p-dialog-header">\n <span class="p-dialog-title" *ngIf="option(\'header\')">{{option(\'header\')}}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="closable" type="button" [ngClass]="{\'p-dialog-header-icon p-dialog-header-close p-link\':true}" (click)="close($event)" (keydown.enter)="close($event)">\n <span class="pi pi-times"></span>\n </button>\n </div>\n </div>\n <div #content class="p-dialog-content">\n <i [ngClass]="\'p-confirm-dialog-icon\'" [class]="option(\'icon\')" *ngIf="option(\'icon\')"></i>\n <span class="p-confirm-dialog-message" [innerHTML]="option(\'message\')"></span>\n </div>\n <div class="p-dialog-footer" *ngIf="footer || footerTemplate">\n <ng-content select="p-footer"></ng-content>\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n <div class="p-dialog-footer" *ngIf="!footer">\n <button type="button" pButton [icon]="option(\'rejectIcon\')" [label]="rejectButtonLabel" (click)="reject()" [ngClass]="\'p-confirm-dialog-reject\'" [class]="option(\'rejectButtonStyleClass\')" *ngIf="option(\'rejectVisible\')" [attr.aria-label]="rejectAriaLabel"></button>\n <button type="button" pButton [icon]="option(\'acceptIcon\')" [label]="acceptButtonLabel" (click)="accept()" [ngClass]="\'p-confirm-dialog-accept\'" [class]="option(\'acceptButtonStyleClass\')" *ngIf="option(\'acceptVisible\')" [attr.aria-label]="acceptAriaLabel"></button>\n </div>\n </div>\n </div>\n ',animations:[n.trigger("animation",[n.transition("void => visible",[n.useAnimation(r)]),n.transition("visible => void",[n.useAnimation(c)])])],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,styles:[".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;max-height:100%;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]}]}],l.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:a.ConfirmationService},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:a.PrimeNGConfig}]},l.propDecorators={header:[{type:e.Input}],icon:[{type:e.Input}],message:[{type:e.Input}],style:[{type:e.Input}],styleClass:[{type:e.Input}],maskStyleClass:[{type:e.Input}],acceptIcon:[{type:e.Input}],acceptLabel:[{type:e.Input}],acceptAriaLabel:[{type:e.Input}],acceptVisible:[{type:e.Input}],rejectIcon:[{type:e.Input}],rejectLabel:[{type:e.Input}],rejectAriaLabel:[{type:e.Input}],rejectVisible:[{type:e.Input}],acceptButtonStyleClass:[{type:e.Input}],rejectButtonStyleClass:[{type:e.Input}],closeOnEscape:[{type:e.Input}],dismissableMask:[{type:e.Input}],blockScroll:[{type:e.Input}],rtl:[{type:e.Input}],closable:[{type:e.Input}],appendTo:[{type:e.Input}],key:[{type:e.Input}],autoZIndex:[{type:e.Input}],baseZIndex:[{type:e.Input}],transitionOptions:[{type:e.Input}],focusTrap:[{type:e.Input}],defaultFocus:[{type:e.Input}],visible:[{type:e.Input}],position:[{type:e.Input}],onHide:[{type:e.Output}],footer:[{type:e.ContentChild,args:[a.Footer]}],contentViewChild:[{type:e.ViewChild,args:["content"]}],templates:[{type:e.ContentChildren,args:[a.PrimeTemplate]}]};var p=function(){};p.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,s.ButtonModule],exports:[l,s.ButtonModule,a.SharedModule],declarations:[l]}]}],t.ConfirmDialog=l,t.ConfirmDialogModule=p,Object.defineProperty(t,"__esModule",{value:!0})}));
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/animations"),require("@angular/common"),require("primeng/dom"),require("primeng/api"),require("primeng/button")):"function"==typeof define&&define.amd?define("primeng/confirmdialog",["exports","@angular/core","@angular/animations","@angular/common","primeng/dom","primeng/api","primeng/button"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).primeng=t.primeng||{},t.primeng.confirmdialog={}),t.ng.core,t.ng.animations,t.ng.common,t.primeng.dom,t.primeng.api,t.primeng.button)}(this,(function(t,e,n,i,o,a,s){"use strict";var r=n.animation([n.style({transform:"{{transform}}",opacity:0}),n.animate("{{transition}}",n.style({transform:"none",opacity:1}))]),c=n.animation([n.animate("{{transition}}",n.style({transform:"{{transform}}",opacity:0}))]),l=function(){function t(t,n,i,o,a,s){var r=this;this.el=t,this.renderer=n,this.confirmationService=i,this.zone=o,this.cd=a,this.config=s,this.acceptIcon="pi pi-check",this.acceptVisible=!0,this.rejectIcon="pi pi-times",this.rejectVisible=!0,this.closeOnEscape=!0,this.blockScroll=!0,this.closable=!0,this.autoZIndex=!0,this.baseZIndex=0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.focusTrap=!0,this.defaultFocus="accept",this.onHide=new e.EventEmitter,this._position="center",this.transformOptions="scale(0.7)",this.subscription=this.confirmationService.requireConfirmation$.subscribe((function(t){t?t.key===r.key&&(r.confirmation=t,r.confirmationOptions={message:r.confirmation.message||r.message,icon:r.confirmation.icon||r.icon,header:r.confirmation.header||r.header,rejectVisible:null==r.confirmation.rejectVisible?r.rejectVisible:r.confirmation.rejectVisible,acceptVisible:null==r.confirmation.acceptVisible?r.acceptVisible:r.confirmation.acceptVisible,acceptLabel:r.confirmation.acceptLabel||r.acceptLabel,rejectLabel:r.confirmation.rejectLabel||r.rejectLabel,acceptIcon:r.confirmation.acceptIcon||r.acceptIcon,rejectIcon:r.confirmation.rejectIcon||r.rejectIcon,acceptButtonStyleClass:r.confirmation.acceptButtonStyleClass||r.acceptButtonStyleClass,rejectButtonStyleClass:r.confirmation.rejectButtonStyleClass||r.rejectButtonStyleClass,defaultFocus:r.confirmation.defaultFocus||r.defaultFocus,blockScroll:!1===r.confirmation.blockScroll||!0===r.confirmation.blockScroll?r.confirmation.blockScroll:r.blockScroll,closeOnEscape:!1===r.confirmation.closeOnEscape||!0===r.confirmation.closeOnEscape?r.confirmation.closeOnEscape:r.closeOnEscape,dismissableMask:!1===r.confirmation.dismissableMask||!0===r.confirmation.dismissableMask?r.confirmation.dismissableMask:r.dismissableMask},r.confirmation.accept&&(r.confirmation.acceptEvent=new e.EventEmitter,r.confirmation.acceptEvent.subscribe(r.confirmation.accept)),r.confirmation.reject&&(r.confirmation.rejectEvent=new e.EventEmitter,r.confirmation.rejectEvent.subscribe(r.confirmation.reject)),r.visible=!0):r.hide()}))}return Object.defineProperty(t.prototype,"visible",{get:function(){return this._visible},set:function(t){this._visible=t,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){switch(this._position=t,t){case"top-left":case"bottom-left":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"top-right":case"bottom-right":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.templates.forEach((function(e){switch(e.getType()){case"footerTemplate":t.footerTemplate=e.template}}))},t.prototype.option=function(t){var e=this.confirmationOptions||this;if(e.hasOwnProperty(t))return e[t]},t.prototype.onAnimationStart=function(t){switch(t.toState){case"visible":this.container=t.element,this.wrapper=this.container.parentElement,this.contentContainer=o.DomHandler.findSingle(this.container,".p-dialog-content");var e=this.getElementToFocus();e&&e.focus(),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.enableModality()}},t.prototype.onAnimationEnd=function(t){switch(t.toState){case"void":this.onOverlayHide()}},t.prototype.getElementToFocus=function(){switch(this.option("defaultFocus")){case"accept":return o.DomHandler.findSingle(this.container,".p-confirm-dialog-accept");case"reject":return o.DomHandler.findSingle(this.container,".p-confirm-dialog-reject");case"close":return o.DomHandler.findSingle(this.container,".p-dialog-header-close");case"none":return null;default:return o.DomHandler.findSingle(this.container,".p-confirm-dialog-accept")}},t.prototype.appendContainer=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):o.DomHandler.appendChild(this.wrapper,this.appendTo))},t.prototype.restoreAppend=function(){this.wrapper&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)},t.prototype.enableModality=function(){var t=this;this.option("blockScroll")&&o.DomHandler.addClass(document.body,"p-overflow-hidden"),this.option("dismissableMask")&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(function(e){t.wrapper&&t.wrapper.isSameNode(e.target)&&t.close(e)})))},t.prototype.disableModality=function(){this.maskVisible=!1,this.option("blockScroll")&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.dismissableMask&&this.unbindMaskClickListener(),this.container&&!this.cd.destroyed&&this.cd.detectChanges()},t.prototype.close=function(t){this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(a.ConfirmEventType.CANCEL),this.hide(a.ConfirmEventType.CANCEL),t.preventDefault()},t.prototype.hide=function(t){this.onHide.emit(t),this.visible=!1,this.confirmation=null,this.confirmationOptions=null},t.prototype.moveOnTop=function(){this.autoZIndex&&(this.container.style.zIndex=String(this.baseZIndex+ ++o.DomHandler.zindex),this.wrapper.style.zIndex=String(this.baseZIndex+(o.DomHandler.zindex-1)))},t.prototype.getMaskClass=function(){var t={"p-dialog-mask p-component-overlay":!0,"p-dialog-mask-scrollblocker":this.blockScroll};return t[this.getPositionClass().toString()]=!0,t},t.prototype.getPositionClass=function(){var t=this,e=["left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"].find((function(e){return e===t.position}));return e?"p-dialog-"+e:""},t.prototype.bindGlobalListeners=function(){var t=this;if(this.option("closeOnEscape")&&this.closable||this.focusTrap&&!this.documentEscapeListener){var e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",(function(e){if(27==e.which&&t.option("closeOnEscape")&&t.closable&&parseInt(t.container.style.zIndex)===o.DomHandler.zindex+t.baseZIndex&&t.visible&&t.close(e),9===e.which&&t.focusTrap){e.preventDefault();var n=o.DomHandler.getFocusableElements(t.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){var i=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==i||0===i?n[n.length-1].focus():n[i-1].focus():-1==i||i===n.length-1?n[0].focus():n[i+1].focus()}else n[0].focus()}}))}},t.prototype.unbindGlobalListeners=function(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)},t.prototype.unbindMaskClickListener=function(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)},t.prototype.onOverlayHide=function(){this.disableModality(),this.unbindGlobalListeners(),this.container=null},t.prototype.ngOnDestroy=function(){this.restoreAppend(),this.onOverlayHide(),this.subscription.unsubscribe()},t.prototype.accept=function(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(a.ConfirmEventType.ACCEPT)},t.prototype.reject=function(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(a.ConfirmEventType.REJECT),this.hide(a.ConfirmEventType.REJECT)},Object.defineProperty(t.prototype,"acceptButtonLabel",{get:function(){return this.option("acceptLabel")||this.config.getTranslation(a.TranslationKeys.ACCEPT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rejectButtonLabel",{get:function(){return this.option("rejectLabel")||this.config.getTranslation(a.TranslationKeys.REJECT)},enumerable:!1,configurable:!0}),t}();l.decorators=[{type:e.Component,args:[{selector:"p-confirmDialog",template:'\n <div [class]="maskStyleClass" [ngClass]="getMaskClass()" *ngIf="maskVisible">\n <div [ngClass]="{\'p-dialog p-confirm-dialog p-component\':true,\'p-dialog-rtl\':rtl}" [ngStyle]="style" [class]="styleClass" (mousedown)="moveOnTop()"\n [@animation]="{value: \'visible\', params: {transform: transformOptions, transition: transitionOptions}}" (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" *ngIf="visible">\n <div class="p-dialog-header">\n <span class="p-dialog-title" *ngIf="option(\'header\')">{{option(\'header\')}}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="closable" type="button" [ngClass]="{\'p-dialog-header-icon p-dialog-header-close p-link\':true}" (click)="close($event)" (keydown.enter)="close($event)">\n <span class="pi pi-times"></span>\n </button>\n </div>\n </div>\n <div #content class="p-dialog-content">\n <i [ngClass]="\'p-confirm-dialog-icon\'" [class]="option(\'icon\')" *ngIf="option(\'icon\')"></i>\n <span class="p-confirm-dialog-message" [innerHTML]="option(\'message\')"></span>\n </div>\n <div class="p-dialog-footer" *ngIf="footer || footerTemplate">\n <ng-content select="p-footer"></ng-content>\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n <div class="p-dialog-footer" *ngIf="!footer">\n <button type="button" pButton [icon]="option(\'rejectIcon\')" [label]="rejectButtonLabel" (click)="reject()" [ngClass]="\'p-confirm-dialog-reject\'" [class]="option(\'rejectButtonStyleClass\')" *ngIf="option(\'rejectVisible\')" [attr.aria-label]="rejectAriaLabel"></button>\n <button type="button" pButton [icon]="option(\'acceptIcon\')" [label]="acceptButtonLabel" (click)="accept()" [ngClass]="\'p-confirm-dialog-accept\'" [class]="option(\'acceptButtonStyleClass\')" *ngIf="option(\'acceptVisible\')" [attr.aria-label]="acceptAriaLabel"></button>\n </div>\n </div>\n </div>\n ',animations:[n.trigger("animation",[n.transition("void => visible",[n.useAnimation(r)]),n.transition("visible => void",[n.useAnimation(c)])])],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,styles:[".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;left:0!important;max-height:100%;top:0!important;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]}]}],l.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:a.ConfirmationService},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:a.PrimeNGConfig}]},l.propDecorators={header:[{type:e.Input}],icon:[{type:e.Input}],message:[{type:e.Input}],style:[{type:e.Input}],styleClass:[{type:e.Input}],maskStyleClass:[{type:e.Input}],acceptIcon:[{type:e.Input}],acceptLabel:[{type:e.Input}],acceptAriaLabel:[{type:e.Input}],acceptVisible:[{type:e.Input}],rejectIcon:[{type:e.Input}],rejectLabel:[{type:e.Input}],rejectAriaLabel:[{type:e.Input}],rejectVisible:[{type:e.Input}],acceptButtonStyleClass:[{type:e.Input}],rejectButtonStyleClass:[{type:e.Input}],closeOnEscape:[{type:e.Input}],dismissableMask:[{type:e.Input}],blockScroll:[{type:e.Input}],rtl:[{type:e.Input}],closable:[{type:e.Input}],appendTo:[{type:e.Input}],key:[{type:e.Input}],autoZIndex:[{type:e.Input}],baseZIndex:[{type:e.Input}],transitionOptions:[{type:e.Input}],focusTrap:[{type:e.Input}],defaultFocus:[{type:e.Input}],visible:[{type:e.Input}],position:[{type:e.Input}],onHide:[{type:e.Output}],footer:[{type:e.ContentChild,args:[a.Footer]}],contentViewChild:[{type:e.ViewChild,args:["content"]}],templates:[{type:e.ContentChildren,args:[a.PrimeTemplate]}]};var p=function(){};p.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,s.ButtonModule],exports:[l,s.ButtonModule,a.SharedModule],declarations:[l]}]}],t.ConfirmDialog=l,t.ConfirmDialogModule=p,Object.defineProperty(t,"__esModule",{value:!0})}));
|
2
2
|
//# sourceMappingURL=primeng-confirmdialog.umd.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/app/components/confirmdialog/confirmdialog.ts"],"names":["showAnimation","animation","style","transform","opacity","animate","hideAnimation","ConfirmDialog","el","renderer","confirmationService","zone","cd","config","_this","this","acceptIcon","acceptVisible","rejectIcon","rejectVisible","closeOnEscape","blockScroll","closable","autoZIndex","baseZIndex","transitionOptions","focusTrap","defaultFocus","onHide","EventEmitter","_position","transformOptions","subscription","requireConfirmation$","subscribe","confirmation","key","confirmationOptions","message","icon","header","acceptLabel","rejectLabel","acceptButtonStyleClass","rejectButtonStyleClass","dismissableMask","accept","acceptEvent","reject","rejectEvent","visible","hide","Object","defineProperty","prototype","_visible","value","maskVisible","markForCheck","ngAfterContentInit","templates","forEach","item","getType","footerTemplate","template","option","name","source","hasOwnProperty","onAnimationStart","event","toState","container","element","wrapper","parentElement","contentContainer","DomHandler","findSingle","getElementToFocus","focus","appendContainer","moveOnTop","bindGlobalListeners","enableModality","onAnimationEnd","onOverlayHide","appendTo","document","body","appendChild","restoreAppend","nativeElement","addClass","maskClickListener","listen","isSameNode","target","close","disableModality","removeClass","unbindMaskClickListener","detectChanges","emit","ConfirmEventType","CANCEL","preventDefault","type","zIndex","String","zindex","getMaskClass","maskClass","p-dialog-mask p-component-overlay","p-dialog-mask-scrollblocker","getPositionClass","toString","pos","find","position","documentEscapeListener","documentTarget","ownerDocument","which","parseInt","focusableElements","getFocusableElements","length","activeElement","focusedIndex","indexOf","shiftKey","unbindGlobalListeners","ngOnDestroy","unsubscribe","ACCEPT","REJECT","getTranslation","TranslationKeys","Component","args","selector","animations","trigger","transition","useAnimation","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","ElementRef","Renderer2","ConfirmationService","NgZone","ChangeDetectorRef","PrimeNGConfig","Input","Output","ContentChild","Footer","ViewChild","ContentChildren","PrimeTemplate","NgModule","imports","CommonModule","ButtonModule","exports","SharedModule","declarations"],"mappings":"8oBAUA,IAAMA,EAAgBC,EAAAA,UAAU,CAC5BC,EAAAA,MAAM,CAAEC,UAAW,gBAAiBC,QAAS,IAC7CC,EAAAA,QAAQ,iBAAkBH,EAAAA,MAAM,CAAEC,UAAW,OAAQC,QAAS,OAG5DE,EAAgBL,EAAAA,UAAU,CAC5BI,EAAAA,QAAQ,iBAAkBH,EAAAA,MAAM,CAAEC,UAAW,gBAAiBC,QAAS,oBAiMvE,SAAAG,EAAmBC,EAAuBC,EAA6BC,EAAiDC,EAAsBC,EAA8BC,GAA5K,IAAAC,EAAAC,KAAmBA,KAAAP,GAAAA,EAAuBO,KAAAN,SAAAA,EAA6BM,KAAAL,oBAAAA,EAAiDK,KAAAJ,KAAAA,EAAsBI,KAAAH,GAAAA,EAA8BG,KAAAF,OAAAA,EArInKE,KAAAC,WAAqB,cAMrBD,KAAAE,eAAyB,EAEzBF,KAAAG,WAAqB,cAMrBH,KAAAI,eAAyB,EAMzBJ,KAAAK,eAAyB,EAIzBL,KAAAM,aAAuB,EAIvBN,KAAAO,UAAoB,EAMpBP,KAAAQ,YAAsB,EAEtBR,KAAAS,WAAqB,EAErBT,KAAAU,kBAA4B,mCAE5BV,KAAAW,WAAqB,EAErBX,KAAAY,aAAuB,SA6CtBZ,KAAAa,OAA4B,IAAIC,EAAAA,aAwC1Cd,KAAAe,UAAoB,SAEpBf,KAAAgB,iBAAwB,aAKpBhB,KAAKiB,aAAejB,KAAKL,oBAAoBuB,qBAAqBC,WAAU,SAAAC,GACnEA,EAK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AA,wBAaAA,EAAAA,sBA8BAC,EAAAA,uBAEAC,EAAAA,aAAYpB,KAAA,CAACqB,EAAAA,kCAEbC,EAAAA,UAAStB,KAAA,CAAC,8BAEVuB,EAAAA,gBAAevB,KAAA,CAACwB,EAAAA,wBA6TrB,iCALCC,EAAAA,SAAQzB,KAAA,CAAC,CACN0B,QAAS,CAACC,EAAAA,aAAaC,EAAAA,cACvBC,QAAS,CAACnK,EAAckK,EAAAA,aAAaE,EAAAA,cACrCC,aAAc,CAACrK","sourcesContent":["import {NgModule,Component,ElementRef,OnDestroy,Input,EventEmitter,Renderer2,ContentChild,NgZone,ViewChild,ChangeDetectorRef,ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, QueryList, TemplateRef, AfterContentInit, Output} from '@angular/core';\nimport {trigger,style,transition,animate,AnimationEvent, useAnimation, animation} from '@angular/animations';\nimport {CommonModule} from '@angular/common';\nimport {DomHandler} from 'primeng/dom';\nimport {Footer,SharedModule, PrimeTemplate, PrimeNGConfig, TranslationKeys, ConfirmEventType} from 'primeng/api';\nimport {ButtonModule} from 'primeng/button';\nimport {Confirmation} from 'primeng/api';\nimport {ConfirmationService} from 'primeng/api';\nimport {Subscription} from 'rxjs';\n\nconst showAnimation = animation([\n style({ transform: '{{transform}}', opacity: 0 }),\n animate('{{transition}}', style({ transform: 'none', opacity: 1 }))\n]);\n\nconst hideAnimation = animation([\n animate('{{transition}}', style({ transform: '{{transform}}', opacity: 0 }))\n]);\n\n@Component({\n selector: 'p-confirmDialog',\n template: `\n <div [class]=\"maskStyleClass\" [ngClass]=\"getMaskClass()\" *ngIf=\"maskVisible\">\n <div [ngClass]=\"{'p-dialog p-confirm-dialog p-component':true,'p-dialog-rtl':rtl}\" [ngStyle]=\"style\" [class]=\"styleClass\" (mousedown)=\"moveOnTop()\"\n [@animation]=\"{value: 'visible', params: {transform: transformOptions, transition: transitionOptions}}\" (@animation.start)=\"onAnimationStart($event)\" (@animation.done)=\"onAnimationEnd($event)\" *ngIf=\"visible\">\n <div class=\"p-dialog-header\">\n <span class=\"p-dialog-title\" *ngIf=\"option('header')\">{{option('header')}}</span>\n <div class=\"p-dialog-header-icons\">\n <button *ngIf=\"closable\" type=\"button\" [ngClass]=\"{'p-dialog-header-icon p-dialog-header-close p-link':true}\" (click)=\"close($event)\" (keydown.enter)=\"close($event)\">\n <span class=\"pi pi-times\"></span>\n </button>\n </div>\n </div>\n <div #content class=\"p-dialog-content\">\n <i [ngClass]=\"'p-confirm-dialog-icon'\" [class]=\"option('icon')\" *ngIf=\"option('icon')\"></i>\n <span class=\"p-confirm-dialog-message\" [innerHTML]=\"option('message')\"></span>\n </div>\n <div class=\"p-dialog-footer\" *ngIf=\"footer || footerTemplate\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n <div class=\"p-dialog-footer\" *ngIf=\"!footer\">\n <button type=\"button\" pButton [icon]=\"option('rejectIcon')\" [label]=\"rejectButtonLabel\" (click)=\"reject()\" [ngClass]=\"'p-confirm-dialog-reject'\" [class]=\"option('rejectButtonStyleClass')\" *ngIf=\"option('rejectVisible')\" [attr.aria-label]=\"rejectAriaLabel\"></button>\n <button type=\"button\" pButton [icon]=\"option('acceptIcon')\" [label]=\"acceptButtonLabel\" (click)=\"accept()\" [ngClass]=\"'p-confirm-dialog-accept'\" [class]=\"option('acceptButtonStyleClass')\" *ngIf=\"option('acceptVisible')\" [attr.aria-label]=\"acceptAriaLabel\"></button>\n </div>\n </div>\n </div>\n `,\n animations: [\n trigger('animation', [\n transition('void => visible', [\n useAnimation(showAnimation)\n ]),\n transition('visible => void', [\n useAnimation(hideAnimation)\n ])\n ])\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['../dialog/dialog.css']\n})\nexport class ConfirmDialog implements AfterContentInit,OnDestroy {\n\n @Input() header: string;\n\n @Input() icon: string;\n\n @Input() message: string;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @Input() maskStyleClass: string;\n\n @Input() acceptIcon: string = 'pi pi-check';\n\n @Input() acceptLabel: string;\n\n @Input() acceptAriaLabel: string;\n\n @Input() acceptVisible: boolean = true;\n\n @Input() rejectIcon: string = 'pi pi-times';\n\n @Input() rejectLabel: string;\n\n @Input() rejectAriaLabel: string;\n\n @Input() rejectVisible: boolean = true;\n\n @Input() acceptButtonStyleClass: string;\n\n @Input() rejectButtonStyleClass: string;\n\n @Input() closeOnEscape: boolean = true;\n\n @Input() dismissableMask: boolean;\n\n @Input() blockScroll: boolean = true;\n\n @Input() rtl: boolean;\n\n @Input() closable: boolean = true;\n\n @Input() appendTo: any;\n\n @Input() key: string;\n\n @Input() autoZIndex: boolean = true;\n\n @Input() baseZIndex: number = 0;\n\n @Input() transitionOptions: string = '150ms cubic-bezier(0, 0, 0.2, 1)';\n\n @Input() focusTrap: boolean = true;\n\n @Input() defaultFocus: string = 'accept';\n\n @Input() get visible(): any {\n return this._visible;\n }\n set visible(value:any) {\n this._visible = value;\n\n if (this._visible && !this.maskVisible) {\n this.maskVisible = true;\n }\n\n this.cd.markForCheck();\n }\n\n @Input() get position(): string {\n return this._position;\n };\n\n set position(value: string) {\n this._position = value;\n\n switch (value) {\n case 'top-left':\n case 'bottom-left':\n case 'left':\n this.transformOptions = \"translate3d(-100%, 0px, 0px)\";\n break;\n case 'top-right':\n case 'bottom-right':\n case 'right':\n this.transformOptions = \"translate3d(100%, 0px, 0px)\";\n break;\n case 'bottom':\n this.transformOptions = \"translate3d(0px, 100%, 0px)\";\n break;\n case 'top':\n this.transformOptions = \"translate3d(0px, -100%, 0px)\";\n break;\n default:\n this.transformOptions = \"scale(0.7)\";\n break;\n }\n }\n\n @Output() onHide: EventEmitter<any> = new EventEmitter();\n\n @ContentChild(Footer) footer;\n\n @ViewChild('content') contentViewChild: ElementRef;\n\n @ContentChildren(PrimeTemplate) templates: QueryList<any>;\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch(item.getType()) {\n case 'footerTemplate':\n this.footerTemplate = item.template;\n break;\n }\n });\n }\n\n footerTemplate: TemplateRef<any>;\n\n confirmation: Confirmation;\n\n _visible: boolean;\n\n maskVisible: boolean;\n\n documentEscapeListener: any;\n\n container: HTMLDivElement;\n\n wrapper: HTMLElement;\n\n contentContainer: HTMLDivElement;\n\n subscription: Subscription;\n\n maskClickListener: Function;\n\n preWidth: number;\n\n _position: string = \"center\";\n\n transformOptions: any = \"scale(0.7)\";\n\n confirmationOptions: Confirmation;\n\n constructor(public el: ElementRef, public renderer: Renderer2, private confirmationService: ConfirmationService, public zone: NgZone, private cd: ChangeDetectorRef, public config: PrimeNGConfig) {\n this.subscription = this.confirmationService.requireConfirmation$.subscribe(confirmation => {\n if (!confirmation) {\n this.hide();\n return;\n }\n\n if (confirmation.key === this.key) {\n this.confirmation = confirmation;\n this.confirmationOptions = {\n message: this.confirmation.message||this.message,\n icon: this.confirmation.icon||this.icon,\n header: this.confirmation.header||this.header,\n rejectVisible: this.confirmation.rejectVisible == null ? this.rejectVisible : this.confirmation.rejectVisible,\n acceptVisible: this.confirmation.acceptVisible == null ? this.acceptVisible : this.confirmation.acceptVisible,\n acceptLabel: this.confirmation.acceptLabel||this.acceptLabel,\n rejectLabel: this.confirmation.rejectLabel||this.rejectLabel,\n acceptIcon: this.confirmation.acceptIcon || this.acceptIcon,\n rejectIcon: this.confirmation.rejectIcon || this.rejectIcon,\n acceptButtonStyleClass: this.confirmation.acceptButtonStyleClass || this.acceptButtonStyleClass,\n rejectButtonStyleClass: this.confirmation.rejectButtonStyleClass || this.rejectButtonStyleClass,\n defaultFocus: this.confirmation.defaultFocus || this.defaultFocus,\n blockScroll: (this.confirmation.blockScroll === false || this.confirmation.blockScroll === true) ? this.confirmation.blockScroll : this.blockScroll,\n closeOnEscape: (this.confirmation.closeOnEscape === false || this.confirmation.closeOnEscape === true) ? this.confirmation.closeOnEscape : this.closeOnEscape,\n dismissableMask: (this.confirmation.dismissableMask === false || this.confirmation.dismissableMask === true) ? this.confirmation.dismissableMask : this.dismissableMask\n };\n\n if (this.confirmation.accept) {\n this.confirmation.acceptEvent = new EventEmitter();\n this.confirmation.acceptEvent.subscribe(this.confirmation.accept);\n }\n\n if (this.confirmation.reject) {\n this.confirmation.rejectEvent = new EventEmitter();\n this.confirmation.rejectEvent.subscribe(this.confirmation.reject);\n }\n\n this.visible = true;\n }\n });\n }\n\n option(name: string) {\n const source = this.confirmationOptions || this;\n if (source.hasOwnProperty(name)) {\n return source[name];\n }\n return undefined;\n }\n\n onAnimationStart(event: AnimationEvent) {\n switch(event.toState) {\n case 'visible':\n this.container = event.element;\n this.wrapper = this.container.parentElement;\n this.contentContainer = DomHandler.findSingle(this.container, '.p-dialog-content');\n\n const element = this.getElementToFocus();\n if (element) {\n element.focus();\n }\n\n this.appendContainer();\n this.moveOnTop();\n this.bindGlobalListeners();\n this.enableModality();\n break;\n }\n }\n\n onAnimationEnd(event: AnimationEvent) {\n switch(event.toState) {\n case 'void':\n this.onOverlayHide();\n break;\n }\n }\n\n getElementToFocus() {\n switch(this.option('defaultFocus')) {\n case 'accept':\n return DomHandler.findSingle(this.container, '.p-confirm-dialog-accept');\n\n case 'reject':\n return DomHandler.findSingle(this.container, '.p-confirm-dialog-reject');\n\n case 'close':\n return DomHandler.findSingle(this.container, '.p-dialog-header-close');\n\n case 'none':\n return null;\n\n //backward compatibility\n default:\n return DomHandler.findSingle(this.container, '.p-confirm-dialog-accept');\n }\n }\n\n appendContainer() {\n if (this.appendTo) {\n if (this.appendTo === 'body')\n document.body.appendChild(this.wrapper);\n else\n DomHandler.appendChild(this.wrapper, this.appendTo);\n }\n }\n\n restoreAppend() {\n if (this.wrapper && this.appendTo) {\n this.el.nativeElement.appendChild(this.wrapper);\n }\n }\n\n enableModality() {\n if (this.option('blockScroll')) {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n }\n\n if (this.option('dismissableMask')) {\n this.maskClickListener = this.renderer.listen(this.wrapper, 'mousedown', (event: any) => {\n if (this.wrapper && this.wrapper.isSameNode(event.target)) {\n this.close(event);\n }\n });\n }\n }\n\n disableModality() {\n this.maskVisible = false;\n\n if (this.option('blockScroll')) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n\n if (this.dismissableMask) {\n this.unbindMaskClickListener();\n }\n\n if (this.container && !this.cd['destroyed']) {\n this.cd.detectChanges();\n }\n }\n\n close(event: Event) {\n if (this.confirmation.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.CANCEL);\n }\n\n this.hide(ConfirmEventType.CANCEL);\n event.preventDefault();\n }\n\n hide(type?) {\n this.onHide.emit(type);\n this.visible = false;\n this.confirmation = null;\n this.confirmationOptions = null;\n }\n\n moveOnTop() {\n if (this.autoZIndex) {\n this.container.style.zIndex = String(this.baseZIndex + (++DomHandler.zindex));\n this.wrapper.style.zIndex = String(this.baseZIndex + (DomHandler.zindex - 1));\n }\n }\n\n getMaskClass() {\n let maskClass = {'p-dialog-mask p-component-overlay': true, 'p-dialog-mask-scrollblocker': this.blockScroll};\n maskClass[this.getPositionClass().toString()] = true;\n return maskClass;\n }\n\n getPositionClass() {\n const positions = ['left', 'right', 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right'];\n const pos = positions.find(item => item === this.position);\n\n return pos ? `p-dialog-${pos}` : '';\n }\n\n bindGlobalListeners() {\n if ((this.option('closeOnEscape') && this.closable) || this.focusTrap && !this.documentEscapeListener) {\n const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : 'document';\n\n this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', (event) => {\n if (event.which == 27 && (this.option('closeOnEscape') && this.closable)) {\n if (parseInt(this.container.style.zIndex) === (DomHandler.zindex + this.baseZIndex) && this.visible) {\n this.close(event);\n }\n }\n\n if (event.which === 9 && this.focusTrap) {\n event.preventDefault();\n\n let focusableElements = DomHandler.getFocusableElements(this.container);\n\n if (focusableElements && focusableElements.length > 0) {\n if (!focusableElements[0].ownerDocument.activeElement) {\n focusableElements[0].focus();\n }\n else {\n let focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);\n\n if (event.shiftKey) {\n if (focusedIndex == -1 || focusedIndex === 0)\n focusableElements[focusableElements.length - 1].focus();\n else\n focusableElements[focusedIndex - 1].focus();\n }\n else {\n if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))\n focusableElements[0].focus();\n else\n focusableElements[focusedIndex + 1].focus();\n }\n }\n }\n }\n });\n }\n }\n\n unbindGlobalListeners() {\n if (this.documentEscapeListener) {\n this.documentEscapeListener();\n this.documentEscapeListener = null;\n }\n }\n\n unbindMaskClickListener() {\n if (this.maskClickListener) {\n this.maskClickListener();\n this.maskClickListener = null;\n }\n }\n\n onOverlayHide() {\n this.disableModality();\n this.unbindGlobalListeners();\n this.container = null;\n }\n\n ngOnDestroy() {\n this.restoreAppend();\n this.onOverlayHide();\n this.subscription.unsubscribe();\n }\n\n accept() {\n if (this.confirmation && this.confirmation.acceptEvent) {\n this.confirmation.acceptEvent.emit();\n }\n\n this.hide(ConfirmEventType.ACCEPT);\n }\n\n reject() {\n if (this.confirmation && this.confirmation.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.REJECT);\n }\n\n this.hide(ConfirmEventType.REJECT);\n }\n\n get acceptButtonLabel(): string {\n return this.option('acceptLabel') || this.config.getTranslation(TranslationKeys.ACCEPT);\n }\n\n get rejectButtonLabel(): string {\n return this.option('rejectLabel') || this.config.getTranslation(TranslationKeys.REJECT);\n }\n}\n\n@NgModule({\n imports: [CommonModule,ButtonModule],\n exports: [ConfirmDialog,ButtonModule,SharedModule],\n declarations: [ConfirmDialog]\n})\nexport class ConfirmDialogModule { }\n"]}
|
1
|
+
{"version":3,"sources":["../../src/app/components/confirmdialog/confirmdialog.ts"],"names":["showAnimation","animation","style","transform","opacity","animate","hideAnimation","ConfirmDialog","el","renderer","confirmationService","zone","cd","config","_this","this","acceptIcon","acceptVisible","rejectIcon","rejectVisible","closeOnEscape","blockScroll","closable","autoZIndex","baseZIndex","transitionOptions","focusTrap","defaultFocus","onHide","EventEmitter","_position","transformOptions","subscription","requireConfirmation$","subscribe","confirmation","key","confirmationOptions","message","icon","header","acceptLabel","rejectLabel","acceptButtonStyleClass","rejectButtonStyleClass","dismissableMask","accept","acceptEvent","reject","rejectEvent","visible","hide","Object","defineProperty","prototype","_visible","value","maskVisible","markForCheck","ngAfterContentInit","templates","forEach","item","getType","footerTemplate","template","option","name","source","hasOwnProperty","onAnimationStart","event","toState","container","element","wrapper","parentElement","contentContainer","DomHandler","findSingle","getElementToFocus","focus","appendContainer","moveOnTop","bindGlobalListeners","enableModality","onAnimationEnd","onOverlayHide","appendTo","document","body","appendChild","restoreAppend","nativeElement","addClass","maskClickListener","listen","isSameNode","target","close","disableModality","removeClass","unbindMaskClickListener","detectChanges","emit","ConfirmEventType","CANCEL","preventDefault","type","zIndex","String","zindex","getMaskClass","maskClass","p-dialog-mask p-component-overlay","p-dialog-mask-scrollblocker","getPositionClass","toString","pos","find","position","documentEscapeListener","documentTarget","ownerDocument","which","parseInt","focusableElements","getFocusableElements","length","activeElement","focusedIndex","indexOf","shiftKey","unbindGlobalListeners","ngOnDestroy","unsubscribe","ACCEPT","REJECT","getTranslation","TranslationKeys","Component","args","selector","animations","trigger","transition","useAnimation","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","ElementRef","Renderer2","ConfirmationService","NgZone","ChangeDetectorRef","PrimeNGConfig","Input","Output","ContentChild","Footer","ViewChild","ContentChildren","PrimeTemplate","NgModule","imports","CommonModule","ButtonModule","exports","SharedModule","declarations"],"mappings":"8oBAUA,IAAMA,EAAgBC,EAAAA,UAAU,CAC5BC,EAAAA,MAAM,CAAEC,UAAW,gBAAiBC,QAAS,IAC7CC,EAAAA,QAAQ,iBAAkBH,EAAAA,MAAM,CAAEC,UAAW,OAAQC,QAAS,OAG5DE,EAAgBL,EAAAA,UAAU,CAC5BI,EAAAA,QAAQ,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EAAAA,WAAW,kBAAmB,CAC1BC,EAAAA,aAAalJ,KAEjBiJ,EAAAA,WAAW,kBAAmB,CAC1BC,EAAAA,aAAa5I,QAIzB6I,gBAAiBC,EAAAA,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,k7DA3DVC,EAAAA,kBAAwCC,EAAAA,iBAO3DC,EAAAA,2BAPkFC,EAAAA,cAAiBC,EAAAA,yBAI/DC,EAAAA,iDA4DvCC,EAAAA,oBAEAA,EAAAA,uBAEAA,EAAAA,qBAEAA,EAAAA,0BAEAA,EAAAA,8BAEAA,EAAAA,0BAEAA,EAAAA,2BAEAA,EAAAA,+BAEAA,EAAAA,6BAEAA,EAAAA,0BAEAA,EAAAA,2BAEAA,EAAAA,+BAEAA,EAAAA,6BAEAA,EAAAA,sCAEAA,EAAAA,sCAEAA,EAAAA,6BAEAA,EAAAA,+BAEAA,EAAAA,2BAEAA,EAAAA,mBAEAA,EAAAA,wBAEAA,EAAAA,wBAEAA,EAAAA,mBAEAA,EAAAA,0BAEAA,EAAAA,0BAEAA,EAAAA,iCAEAA,EAAAA,yBAEAA,EAAAA,4BAEAA,EAAAA,uBAEAA,EAAAA,wBAaAA,EAAAA,sBA8BAC,EAAAA,uBAEAC,EAAAA,aAAYpB,KAAA,CAACqB,EAAAA,kCAEbC,EAAAA,UAAStB,KAAA,CAAC,8BAEVuB,EAAAA,gBAAevB,KAAA,CAACwB,EAAAA,wBA6TrB,iCALCC,EAAAA,SAAQzB,KAAA,CAAC,CACN0B,QAAS,CAACC,EAAAA,aAAaC,EAAAA,cACvBC,QAAS,CAACnK,EAAckK,EAAAA,aAAaE,EAAAA,cACrCC,aAAc,CAACrK","sourcesContent":["import {NgModule,Component,ElementRef,OnDestroy,Input,EventEmitter,Renderer2,ContentChild,NgZone,ViewChild,ChangeDetectorRef,ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, QueryList, TemplateRef, AfterContentInit, Output} from '@angular/core';\nimport {trigger,style,transition,animate,AnimationEvent, useAnimation, animation} from '@angular/animations';\nimport {CommonModule} from '@angular/common';\nimport {DomHandler} from 'primeng/dom';\nimport {Footer,SharedModule, PrimeTemplate, PrimeNGConfig, TranslationKeys, ConfirmEventType} from 'primeng/api';\nimport {ButtonModule} from 'primeng/button';\nimport {Confirmation} from 'primeng/api';\nimport {ConfirmationService} from 'primeng/api';\nimport {Subscription} from 'rxjs';\n\nconst showAnimation = animation([\n style({ transform: '{{transform}}', opacity: 0 }),\n animate('{{transition}}', style({ transform: 'none', opacity: 1 }))\n]);\n\nconst hideAnimation = animation([\n animate('{{transition}}', style({ transform: '{{transform}}', opacity: 0 }))\n]);\n\n@Component({\n selector: 'p-confirmDialog',\n template: `\n <div [class]=\"maskStyleClass\" [ngClass]=\"getMaskClass()\" *ngIf=\"maskVisible\">\n <div [ngClass]=\"{'p-dialog p-confirm-dialog p-component':true,'p-dialog-rtl':rtl}\" [ngStyle]=\"style\" [class]=\"styleClass\" (mousedown)=\"moveOnTop()\"\n [@animation]=\"{value: 'visible', params: {transform: transformOptions, transition: transitionOptions}}\" (@animation.start)=\"onAnimationStart($event)\" (@animation.done)=\"onAnimationEnd($event)\" *ngIf=\"visible\">\n <div class=\"p-dialog-header\">\n <span class=\"p-dialog-title\" *ngIf=\"option('header')\">{{option('header')}}</span>\n <div class=\"p-dialog-header-icons\">\n <button *ngIf=\"closable\" type=\"button\" [ngClass]=\"{'p-dialog-header-icon p-dialog-header-close p-link':true}\" (click)=\"close($event)\" (keydown.enter)=\"close($event)\">\n <span class=\"pi pi-times\"></span>\n </button>\n </div>\n </div>\n <div #content class=\"p-dialog-content\">\n <i [ngClass]=\"'p-confirm-dialog-icon'\" [class]=\"option('icon')\" *ngIf=\"option('icon')\"></i>\n <span class=\"p-confirm-dialog-message\" [innerHTML]=\"option('message')\"></span>\n </div>\n <div class=\"p-dialog-footer\" *ngIf=\"footer || footerTemplate\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n <div class=\"p-dialog-footer\" *ngIf=\"!footer\">\n <button type=\"button\" pButton [icon]=\"option('rejectIcon')\" [label]=\"rejectButtonLabel\" (click)=\"reject()\" [ngClass]=\"'p-confirm-dialog-reject'\" [class]=\"option('rejectButtonStyleClass')\" *ngIf=\"option('rejectVisible')\" [attr.aria-label]=\"rejectAriaLabel\"></button>\n <button type=\"button\" pButton [icon]=\"option('acceptIcon')\" [label]=\"acceptButtonLabel\" (click)=\"accept()\" [ngClass]=\"'p-confirm-dialog-accept'\" [class]=\"option('acceptButtonStyleClass')\" *ngIf=\"option('acceptVisible')\" [attr.aria-label]=\"acceptAriaLabel\"></button>\n </div>\n </div>\n </div>\n `,\n animations: [\n trigger('animation', [\n transition('void => visible', [\n useAnimation(showAnimation)\n ]),\n transition('visible => void', [\n useAnimation(hideAnimation)\n ])\n ])\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['../dialog/dialog.css']\n})\nexport class ConfirmDialog implements AfterContentInit,OnDestroy {\n\n @Input() header: string;\n\n @Input() icon: string;\n\n @Input() message: string;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @Input() maskStyleClass: string;\n\n @Input() acceptIcon: string = 'pi pi-check';\n\n @Input() acceptLabel: string;\n\n @Input() acceptAriaLabel: string;\n\n @Input() acceptVisible: boolean = true;\n\n @Input() rejectIcon: string = 'pi pi-times';\n\n @Input() rejectLabel: string;\n\n @Input() rejectAriaLabel: string;\n\n @Input() rejectVisible: boolean = true;\n\n @Input() acceptButtonStyleClass: string;\n\n @Input() rejectButtonStyleClass: string;\n\n @Input() closeOnEscape: boolean = true;\n\n @Input() dismissableMask: boolean;\n\n @Input() blockScroll: boolean = true;\n\n @Input() rtl: boolean;\n\n @Input() closable: boolean = true;\n\n @Input() appendTo: any;\n\n @Input() key: string;\n\n @Input() autoZIndex: boolean = true;\n\n @Input() baseZIndex: number = 0;\n\n @Input() transitionOptions: string = '150ms cubic-bezier(0, 0, 0.2, 1)';\n\n @Input() focusTrap: boolean = true;\n\n @Input() defaultFocus: string = 'accept';\n\n @Input() get visible(): any {\n return this._visible;\n }\n set visible(value:any) {\n this._visible = value;\n\n if (this._visible && !this.maskVisible) {\n this.maskVisible = true;\n }\n\n this.cd.markForCheck();\n }\n\n @Input() get position(): string {\n return this._position;\n };\n\n set position(value: string) {\n this._position = value;\n\n switch (value) {\n case 'top-left':\n case 'bottom-left':\n case 'left':\n this.transformOptions = \"translate3d(-100%, 0px, 0px)\";\n break;\n case 'top-right':\n case 'bottom-right':\n case 'right':\n this.transformOptions = \"translate3d(100%, 0px, 0px)\";\n break;\n case 'bottom':\n this.transformOptions = \"translate3d(0px, 100%, 0px)\";\n break;\n case 'top':\n this.transformOptions = \"translate3d(0px, -100%, 0px)\";\n break;\n default:\n this.transformOptions = \"scale(0.7)\";\n break;\n }\n }\n\n @Output() onHide: EventEmitter<any> = new EventEmitter();\n\n @ContentChild(Footer) footer;\n\n @ViewChild('content') contentViewChild: ElementRef;\n\n @ContentChildren(PrimeTemplate) templates: QueryList<any>;\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch(item.getType()) {\n case 'footerTemplate':\n this.footerTemplate = item.template;\n break;\n }\n });\n }\n\n footerTemplate: TemplateRef<any>;\n\n confirmation: Confirmation;\n\n _visible: boolean;\n\n maskVisible: boolean;\n\n documentEscapeListener: any;\n\n container: HTMLDivElement;\n\n wrapper: HTMLElement;\n\n contentContainer: HTMLDivElement;\n\n subscription: Subscription;\n\n maskClickListener: Function;\n\n preWidth: number;\n\n _position: string = \"center\";\n\n transformOptions: any = \"scale(0.7)\";\n\n confirmationOptions: Confirmation;\n\n constructor(public el: ElementRef, public renderer: Renderer2, private confirmationService: ConfirmationService, public zone: NgZone, private cd: ChangeDetectorRef, public config: PrimeNGConfig) {\n this.subscription = this.confirmationService.requireConfirmation$.subscribe(confirmation => {\n if (!confirmation) {\n this.hide();\n return;\n }\n\n if (confirmation.key === this.key) {\n this.confirmation = confirmation;\n this.confirmationOptions = {\n message: this.confirmation.message||this.message,\n icon: this.confirmation.icon||this.icon,\n header: this.confirmation.header||this.header,\n rejectVisible: this.confirmation.rejectVisible == null ? this.rejectVisible : this.confirmation.rejectVisible,\n acceptVisible: this.confirmation.acceptVisible == null ? this.acceptVisible : this.confirmation.acceptVisible,\n acceptLabel: this.confirmation.acceptLabel||this.acceptLabel,\n rejectLabel: this.confirmation.rejectLabel||this.rejectLabel,\n acceptIcon: this.confirmation.acceptIcon || this.acceptIcon,\n rejectIcon: this.confirmation.rejectIcon || this.rejectIcon,\n acceptButtonStyleClass: this.confirmation.acceptButtonStyleClass || this.acceptButtonStyleClass,\n rejectButtonStyleClass: this.confirmation.rejectButtonStyleClass || this.rejectButtonStyleClass,\n defaultFocus: this.confirmation.defaultFocus || this.defaultFocus,\n blockScroll: (this.confirmation.blockScroll === false || this.confirmation.blockScroll === true) ? this.confirmation.blockScroll : this.blockScroll,\n closeOnEscape: (this.confirmation.closeOnEscape === false || this.confirmation.closeOnEscape === true) ? this.confirmation.closeOnEscape : this.closeOnEscape,\n dismissableMask: (this.confirmation.dismissableMask === false || this.confirmation.dismissableMask === true) ? this.confirmation.dismissableMask : this.dismissableMask\n };\n\n if (this.confirmation.accept) {\n this.confirmation.acceptEvent = new EventEmitter();\n this.confirmation.acceptEvent.subscribe(this.confirmation.accept);\n }\n\n if (this.confirmation.reject) {\n this.confirmation.rejectEvent = new EventEmitter();\n this.confirmation.rejectEvent.subscribe(this.confirmation.reject);\n }\n\n this.visible = true;\n }\n });\n }\n\n option(name: string) {\n const source = this.confirmationOptions || this;\n if (source.hasOwnProperty(name)) {\n return source[name];\n }\n return undefined;\n }\n\n onAnimationStart(event: AnimationEvent) {\n switch(event.toState) {\n case 'visible':\n this.container = event.element;\n this.wrapper = this.container.parentElement;\n this.contentContainer = DomHandler.findSingle(this.container, '.p-dialog-content');\n\n const element = this.getElementToFocus();\n if (element) {\n element.focus();\n }\n\n this.appendContainer();\n this.moveOnTop();\n this.bindGlobalListeners();\n this.enableModality();\n break;\n }\n }\n\n onAnimationEnd(event: AnimationEvent) {\n switch(event.toState) {\n case 'void':\n this.onOverlayHide();\n break;\n }\n }\n\n getElementToFocus() {\n switch(this.option('defaultFocus')) {\n case 'accept':\n return DomHandler.findSingle(this.container, '.p-confirm-dialog-accept');\n\n case 'reject':\n return DomHandler.findSingle(this.container, '.p-confirm-dialog-reject');\n\n case 'close':\n return DomHandler.findSingle(this.container, '.p-dialog-header-close');\n\n case 'none':\n return null;\n\n //backward compatibility\n default:\n return DomHandler.findSingle(this.container, '.p-confirm-dialog-accept');\n }\n }\n\n appendContainer() {\n if (this.appendTo) {\n if (this.appendTo === 'body')\n document.body.appendChild(this.wrapper);\n else\n DomHandler.appendChild(this.wrapper, this.appendTo);\n }\n }\n\n restoreAppend() {\n if (this.wrapper && this.appendTo) {\n this.el.nativeElement.appendChild(this.wrapper);\n }\n }\n\n enableModality() {\n if (this.option('blockScroll')) {\n DomHandler.addClass(document.body, 'p-overflow-hidden');\n }\n\n if (this.option('dismissableMask')) {\n this.maskClickListener = this.renderer.listen(this.wrapper, 'mousedown', (event: any) => {\n if (this.wrapper && this.wrapper.isSameNode(event.target)) {\n this.close(event);\n }\n });\n }\n }\n\n disableModality() {\n this.maskVisible = false;\n\n if (this.option('blockScroll')) {\n DomHandler.removeClass(document.body, 'p-overflow-hidden');\n }\n\n if (this.dismissableMask) {\n this.unbindMaskClickListener();\n }\n\n if (this.container && !this.cd['destroyed']) {\n this.cd.detectChanges();\n }\n }\n\n close(event: Event) {\n if (this.confirmation.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.CANCEL);\n }\n\n this.hide(ConfirmEventType.CANCEL);\n event.preventDefault();\n }\n\n hide(type?) {\n this.onHide.emit(type);\n this.visible = false;\n this.confirmation = null;\n this.confirmationOptions = null;\n }\n\n moveOnTop() {\n if (this.autoZIndex) {\n this.container.style.zIndex = String(this.baseZIndex + (++DomHandler.zindex));\n this.wrapper.style.zIndex = String(this.baseZIndex + (DomHandler.zindex - 1));\n }\n }\n\n getMaskClass() {\n let maskClass = {'p-dialog-mask p-component-overlay': true, 'p-dialog-mask-scrollblocker': this.blockScroll};\n maskClass[this.getPositionClass().toString()] = true;\n return maskClass;\n }\n\n getPositionClass() {\n const positions = ['left', 'right', 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right'];\n const pos = positions.find(item => item === this.position);\n\n return pos ? `p-dialog-${pos}` : '';\n }\n\n bindGlobalListeners() {\n if ((this.option('closeOnEscape') && this.closable) || this.focusTrap && !this.documentEscapeListener) {\n const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : 'document';\n\n this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', (event) => {\n if (event.which == 27 && (this.option('closeOnEscape') && this.closable)) {\n if (parseInt(this.container.style.zIndex) === (DomHandler.zindex + this.baseZIndex) && this.visible) {\n this.close(event);\n }\n }\n\n if (event.which === 9 && this.focusTrap) {\n event.preventDefault();\n\n let focusableElements = DomHandler.getFocusableElements(this.container);\n\n if (focusableElements && focusableElements.length > 0) {\n if (!focusableElements[0].ownerDocument.activeElement) {\n focusableElements[0].focus();\n }\n else {\n let focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);\n\n if (event.shiftKey) {\n if (focusedIndex == -1 || focusedIndex === 0)\n focusableElements[focusableElements.length - 1].focus();\n else\n focusableElements[focusedIndex - 1].focus();\n }\n else {\n if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))\n focusableElements[0].focus();\n else\n focusableElements[focusedIndex + 1].focus();\n }\n }\n }\n }\n });\n }\n }\n\n unbindGlobalListeners() {\n if (this.documentEscapeListener) {\n this.documentEscapeListener();\n this.documentEscapeListener = null;\n }\n }\n\n unbindMaskClickListener() {\n if (this.maskClickListener) {\n this.maskClickListener();\n this.maskClickListener = null;\n }\n }\n\n onOverlayHide() {\n this.disableModality();\n this.unbindGlobalListeners();\n this.container = null;\n }\n\n ngOnDestroy() {\n this.restoreAppend();\n this.onOverlayHide();\n this.subscription.unsubscribe();\n }\n\n accept() {\n if (this.confirmation && this.confirmation.acceptEvent) {\n this.confirmation.acceptEvent.emit();\n }\n\n this.hide(ConfirmEventType.ACCEPT);\n }\n\n reject() {\n if (this.confirmation && this.confirmation.rejectEvent) {\n this.confirmation.rejectEvent.emit(ConfirmEventType.REJECT);\n }\n\n this.hide(ConfirmEventType.REJECT);\n }\n\n get acceptButtonLabel(): string {\n return this.option('acceptLabel') || this.config.getTranslation(TranslationKeys.ACCEPT);\n }\n\n get rejectButtonLabel(): string {\n return this.option('rejectLabel') || this.config.getTranslation(TranslationKeys.REJECT);\n }\n}\n\n@NgModule({\n imports: [CommonModule,ButtonModule],\n exports: [ConfirmDialog,ButtonModule,SharedModule],\n declarations: [ConfirmDialog]\n})\nexport class ConfirmDialogModule { }\n"]}
|
@@ -530,7 +530,7 @@
|
|
530
530
|
],
|
531
531
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
532
532
|
encapsulation: core.ViewEncapsulation.None,
|
533
|
-
styles: [".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;max-height:100%;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]
|
533
|
+
styles: [".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;left:0!important;max-height:100%;top:0!important;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]
|
534
534
|
},] }
|
535
535
|
];
|
536
536
|
Dialog.ctorParameters = function () { return [
|
@@ -1,2 +1,2 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("@angular/common"),require("primeng/dom"),require("primeng/api"),require("primeng/focustrap"),require("primeng/ripple")):"function"==typeof define&&define.amd?define("primeng/dialog",["exports","@angular/core","@angular/animations","@angular/common","primeng/dom","primeng/api","primeng/focustrap","primeng/ripple"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).primeng=e.primeng||{},e.primeng.dialog={}),e.ng.core,e.ng.animations,e.ng.common,e.primeng.dom,e.primeng.api,e.primeng.focustrap,e.primeng.ripple)}(this,(function(e,t,i,n,o,s,a,r){"use strict";var p=0,l=i.animation([i.style({transform:"{{transform}}",opacity:0}),i.animate("{{transition}}")]),d=i.animation([i.animate("{{transition}}",i.style({transform:"{{transform}}",opacity:0}))]),c=function(){function e(e,i,n,o){this.el=e,this.renderer=i,this.zone=n,this.cd=o,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new t.EventEmitter,this.onHide=new t.EventEmitter,this.visibleChange=new t.EventEmitter,this.onResizeInit=new t.EventEmitter,this.onResizeEnd=new t.EventEmitter,this.onDragEnd=new t.EventEmitter,this.onMaximize=new t.EventEmitter,this.id="p-dialog-"+p++,this._style={},this._position="center",this.transformOptions="scale(0.7)"}return Object.defineProperty(e.prototype,"positionLeft",{get:function(){return 0},set:function(e){console.log("positionLeft property is deprecated.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionTop",{get:function(){return 0},set:function(e){console.log("positionTop property is deprecated.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){return!1},set:function(e){console.log("Responsive property is deprecated.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakpoint",{get:function(){return 649},set:function(e){console.log("Breakpoint property is not utilized and deprecated, use CSS media queries instead.")},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.templates.forEach((function(t){switch(t.getType()){case"header":e.headerTemplate=t.template;break;case"content":e.contentTemplate=t.template;break;case"footer":e.footerTemplate=t.template;break;default:e.contentTemplate=t.template}}))},Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(e){e&&(this._style=Object.assign({},e),this.originalStyle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}},enumerable:!1,configurable:!0}),e.prototype.focus=function(){var e=o.DomHandler.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular((function(){setTimeout((function(){return e.focus()}),5)}))},e.prototype.close=function(e){this.visibleChange.emit(!1),e.preventDefault()},e.prototype.enableModality=function(){var e=this;this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(function(t){e.wrapper&&e.wrapper.isSameNode(t.target)&&e.close(t)}))),this.modal&&o.DomHandler.addClass(document.body,"p-overflow-hidden")},e.prototype.disableModality=function(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())},e.prototype.maximize=function(){this.maximized=!this.maximized,this.modal||this.blockScroll||(this.maximized?o.DomHandler.addClass(document.body,"p-overflow-hidden"):o.DomHandler.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})},e.prototype.unbindMaskClickListener=function(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)},e.prototype.moveOnTop=function(){this.autoZIndex&&(this.container.style.zIndex=String(this.baseZIndex+ ++o.DomHandler.zindex),this.wrapper.style.zIndex=String(this.baseZIndex+(o.DomHandler.zindex-1)))},e.prototype.initDrag=function(e){o.DomHandler.hasClass(e.target,"p-dialog-header-icon")||o.DomHandler.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",o.DomHandler.addClass(document.body,"p-unselectable-text"))},e.prototype.onKeydown=function(e){if(this.focusTrap&&9===e.which){e.preventDefault();var t=o.DomHandler.getFocusableElements(this.container);if(t&&t.length>0)if(t[0].ownerDocument.activeElement){var i=t.indexOf(t[0].ownerDocument.activeElement);e.shiftKey?-1==i||0===i?t[t.length-1].focus():t[i-1].focus():-1==i||i===t.length-1?t[0].focus():t[i+1].focus()}else t[0].focus()}},e.prototype.onDrag=function(e){if(this.dragging){var t=o.DomHandler.getOuterWidth(this.container),i=o.DomHandler.getOuterHeight(this.container),n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,a=o.DomHandler.getOffset(this.container),r=a.left+n,p=a.top+s,l=o.DomHandler.getViewport();this.container.style.position="fixed",this.keepInViewport?(r>=this.minX&&r+t<l.width&&(this._style.left=r+"px",this.lastPageX=e.pageX,this.container.style.left=r+"px"),p>=this.minY&&p+i<l.height&&(this._style.top=p+"px",this.lastPageY=e.pageY,this.container.style.top=p+"px")):(this.lastPageX=e.pageX,this.container.style.left=r+"px",this.lastPageY=e.pageY,this.container.style.top=p+"px")}},e.prototype.endDrag=function(e){this.dragging&&(this.dragging=!1,o.DomHandler.removeClass(document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))},e.prototype.resetPosition=function(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""},e.prototype.center=function(){this.resetPosition()},e.prototype.initResize=function(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,o.DomHandler.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))},e.prototype.onResize=function(e){if(this.resizing){var t=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,n=o.DomHandler.getOuterWidth(this.container),s=o.DomHandler.getOuterHeight(this.container),a=o.DomHandler.getOuterHeight(this.contentViewChild.nativeElement),r=n+t,p=s+i,l=this.container.style.minWidth,d=this.container.style.minHeight,c=o.DomHandler.getOffset(this.container),m=o.DomHandler.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(r+=t,p+=i),(!l||r>parseInt(l))&&c.left+r<m.width&&(this._style.width=r+"px",this.container.style.width=this._style.width),(!d||p>parseInt(d))&&c.top+p<m.height&&(this.contentViewChild.nativeElement.style.height=a+p-s+"px",this._style.height&&(this._style.height=p+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}},e.prototype.resizeEnd=function(e){this.resizing&&(this.resizing=!1,o.DomHandler.removeClass(document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))},e.prototype.bindGlobalListeners=function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()},e.prototype.unbindGlobalListeners=function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()},e.prototype.bindDocumentDragListener=function(){var e=this;this.zone.runOutsideAngular((function(){e.documentDragListener=e.onDrag.bind(e),window.document.addEventListener("mousemove",e.documentDragListener)}))},e.prototype.unbindDocumentDragListener=function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},e.prototype.bindDocumentDragEndListener=function(){var e=this;this.zone.runOutsideAngular((function(){e.documentDragEndListener=e.endDrag.bind(e),window.document.addEventListener("mouseup",e.documentDragEndListener)}))},e.prototype.unbindDocumentDragEndListener=function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)},e.prototype.bindDocumentResizeListeners=function(){var e=this;this.zone.runOutsideAngular((function(){e.documentResizeListener=e.onResize.bind(e),e.documentResizeEndListener=e.resizeEnd.bind(e),window.document.addEventListener("mousemove",e.documentResizeListener),window.document.addEventListener("mouseup",e.documentResizeEndListener)}))},e.prototype.unbindDocumentResizeListeners=function(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)},e.prototype.bindDocumentEscapeListener=function(){var e=this,t=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(t,"keydown",(function(t){27==t.which&&parseInt(e.container.style.zIndex)===o.DomHandler.zindex+e.baseZIndex&&e.close(t)}))},e.prototype.unbindDocumentEscapeListener=function(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)},e.prototype.appendContainer=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):o.DomHandler.appendChild(this.wrapper,this.appendTo))},e.prototype.restoreAppend=function(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)},e.prototype.onAnimationStart=function(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&o.DomHandler.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus()}},e.prototype.onAnimationEnd=function(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({});break;case"visible":this.onShow.emit({})}},e.prototype.onContainerDestroy=function(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.container=null,this.wrapper=null,this._style=this.originalStyle?Object.assign({},this.originalStyle):{}},e.prototype.ngOnDestroy=function(){this.container&&(this.restoreAppend(),this.onContainerDestroy())},e}();c.decorators=[{type:t.Component,args:[{selector:"p-dialog",template:'\n <div *ngIf="maskVisible" [class]="maskStyleClass"\n [ngClass]="{\'p-dialog-mask\': true, \'p-component-overlay\': this.modal, \'p-dialog-mask-scrollblocker\': this.modal || this.blockScroll,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'}">\n <div #container [ngClass]="{\'p-dialog p-component\':true, \'p-dialog-rtl\':rtl,\'p-dialog-draggable\':draggable,\'p-dialog-resizable\':resizable, \'p-dialog-maximized\': maximized}"\n [ngStyle]="style" [class]="styleClass" *ngIf="visible" pFocusTrap [pFocusTrapDisabled]="focusTrap === false"\n [@animation]="{value: \'visible\', params: {transform: transformOptions, transition: transitionOptions}}" (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" role="dialog" [attr.aria-labelledby]="id + \'-label\'">\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="showHeader">\n <span [attr.id]="id + \'-label\'" class="p-dialog-title" *ngIf="header">{{header}}</span>\n <span [attr.id]="id + \'-label\'" class="p-dialog-title" *ngIf="headerFacet">\n <ng-content select="p-header"></ng-content>\n </span>\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n <div class="p-dialog-header-icons">\n <button *ngIf="maximizable" type="button" [ngClass]="{\'p-dialog-header-icon p-dialog-header-maximize p-link\':true}" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n </button>\n <button *ngIf="closable" type="button" [ngClass]="{\'p-dialog-header-icon p-dialog-header-close p-link\':true}" (click)="close($event)" (keydown.enter)="close($event)" tabindex="-1" pRipple>\n <span class="p-dialog-header-close-icon" [ngClass]="closeIcon"></span>\n </button>\n </div>\n </div>\n <div #content [ngClass]="\'p-dialog-content\'" [ngStyle]="contentStyle" [class]="contentStyleClass">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="footerFacet || footerTemplate">\n <ng-content select="p-footer"></ng-content>\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n <div *ngIf="resizable" class="p-resizable-handle" style="z-index: 90;" (mousedown)="initResize($event)"></div>\n </div>\n </div>\n ',animations:[i.trigger("animation",[i.transition("void => visible",[i.useAnimation(l)]),i.transition("visible => void",[i.useAnimation(d)])])],changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:[".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;max-height:100%;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]}]}],c.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:t.NgZone},{type:t.ChangeDetectorRef}]},c.propDecorators={header:[{type:t.Input}],draggable:[{type:t.Input}],resizable:[{type:t.Input}],positionLeft:[{type:t.Input}],positionTop:[{type:t.Input}],contentStyle:[{type:t.Input}],contentStyleClass:[{type:t.Input}],modal:[{type:t.Input}],closeOnEscape:[{type:t.Input}],dismissableMask:[{type:t.Input}],rtl:[{type:t.Input}],closable:[{type:t.Input}],responsive:[{type:t.Input}],appendTo:[{type:t.Input}],styleClass:[{type:t.Input}],maskStyleClass:[{type:t.Input}],showHeader:[{type:t.Input}],breakpoint:[{type:t.Input}],blockScroll:[{type:t.Input}],autoZIndex:[{type:t.Input}],baseZIndex:[{type:t.Input}],minX:[{type:t.Input}],minY:[{type:t.Input}],focusOnShow:[{type:t.Input}],maximizable:[{type:t.Input}],keepInViewport:[{type:t.Input}],focusTrap:[{type:t.Input}],transitionOptions:[{type:t.Input}],closeIcon:[{type:t.Input}],minimizeIcon:[{type:t.Input}],maximizeIcon:[{type:t.Input}],headerFacet:[{type:t.ContentChild,args:[s.Header]}],footerFacet:[{type:t.ContentChild,args:[s.Footer]}],templates:[{type:t.ContentChildren,args:[s.PrimeTemplate]}],headerViewChild:[{type:t.ViewChild,args:["titlebar"]}],contentViewChild:[{type:t.ViewChild,args:["content"]}],footerViewChild:[{type:t.ViewChild,args:["footer"]}],onShow:[{type:t.Output}],onHide:[{type:t.Output}],visibleChange:[{type:t.Output}],onResizeInit:[{type:t.Output}],onResizeEnd:[{type:t.Output}],onDragEnd:[{type:t.Output}],onMaximize:[{type:t.Output}],visible:[{type:t.Input}],style:[{type:t.Input}],position:[{type:t.Input}]};var m=function(){};m.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,a.FocusTrapModule,r.RippleModule],exports:[c,s.SharedModule],declarations:[c]}]}],e.Dialog=c,e.DialogModule=m,Object.defineProperty(e,"__esModule",{value:!0})}));
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/animations"),require("@angular/common"),require("primeng/dom"),require("primeng/api"),require("primeng/focustrap"),require("primeng/ripple")):"function"==typeof define&&define.amd?define("primeng/dialog",["exports","@angular/core","@angular/animations","@angular/common","primeng/dom","primeng/api","primeng/focustrap","primeng/ripple"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).primeng=e.primeng||{},e.primeng.dialog={}),e.ng.core,e.ng.animations,e.ng.common,e.primeng.dom,e.primeng.api,e.primeng.focustrap,e.primeng.ripple)}(this,(function(e,t,i,n,o,s,a,r){"use strict";var p=0,l=i.animation([i.style({transform:"{{transform}}",opacity:0}),i.animate("{{transition}}")]),d=i.animation([i.animate("{{transition}}",i.style({transform:"{{transform}}",opacity:0}))]),c=function(){function e(e,i,n,o){this.el=e,this.renderer=i,this.zone=n,this.cd=o,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new t.EventEmitter,this.onHide=new t.EventEmitter,this.visibleChange=new t.EventEmitter,this.onResizeInit=new t.EventEmitter,this.onResizeEnd=new t.EventEmitter,this.onDragEnd=new t.EventEmitter,this.onMaximize=new t.EventEmitter,this.id="p-dialog-"+p++,this._style={},this._position="center",this.transformOptions="scale(0.7)"}return Object.defineProperty(e.prototype,"positionLeft",{get:function(){return 0},set:function(e){console.log("positionLeft property is deprecated.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionTop",{get:function(){return 0},set:function(e){console.log("positionTop property is deprecated.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){return!1},set:function(e){console.log("Responsive property is deprecated.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakpoint",{get:function(){return 649},set:function(e){console.log("Breakpoint property is not utilized and deprecated, use CSS media queries instead.")},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.templates.forEach((function(t){switch(t.getType()){case"header":e.headerTemplate=t.template;break;case"content":e.contentTemplate=t.template;break;case"footer":e.footerTemplate=t.template;break;default:e.contentTemplate=t.template}}))},Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(e){e&&(this._style=Object.assign({},e),this.originalStyle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}},enumerable:!1,configurable:!0}),e.prototype.focus=function(){var e=o.DomHandler.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular((function(){setTimeout((function(){return e.focus()}),5)}))},e.prototype.close=function(e){this.visibleChange.emit(!1),e.preventDefault()},e.prototype.enableModality=function(){var e=this;this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(function(t){e.wrapper&&e.wrapper.isSameNode(t.target)&&e.close(t)}))),this.modal&&o.DomHandler.addClass(document.body,"p-overflow-hidden")},e.prototype.disableModality=function(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())},e.prototype.maximize=function(){this.maximized=!this.maximized,this.modal||this.blockScroll||(this.maximized?o.DomHandler.addClass(document.body,"p-overflow-hidden"):o.DomHandler.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})},e.prototype.unbindMaskClickListener=function(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)},e.prototype.moveOnTop=function(){this.autoZIndex&&(this.container.style.zIndex=String(this.baseZIndex+ ++o.DomHandler.zindex),this.wrapper.style.zIndex=String(this.baseZIndex+(o.DomHandler.zindex-1)))},e.prototype.initDrag=function(e){o.DomHandler.hasClass(e.target,"p-dialog-header-icon")||o.DomHandler.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",o.DomHandler.addClass(document.body,"p-unselectable-text"))},e.prototype.onKeydown=function(e){if(this.focusTrap&&9===e.which){e.preventDefault();var t=o.DomHandler.getFocusableElements(this.container);if(t&&t.length>0)if(t[0].ownerDocument.activeElement){var i=t.indexOf(t[0].ownerDocument.activeElement);e.shiftKey?-1==i||0===i?t[t.length-1].focus():t[i-1].focus():-1==i||i===t.length-1?t[0].focus():t[i+1].focus()}else t[0].focus()}},e.prototype.onDrag=function(e){if(this.dragging){var t=o.DomHandler.getOuterWidth(this.container),i=o.DomHandler.getOuterHeight(this.container),n=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,a=o.DomHandler.getOffset(this.container),r=a.left+n,p=a.top+s,l=o.DomHandler.getViewport();this.container.style.position="fixed",this.keepInViewport?(r>=this.minX&&r+t<l.width&&(this._style.left=r+"px",this.lastPageX=e.pageX,this.container.style.left=r+"px"),p>=this.minY&&p+i<l.height&&(this._style.top=p+"px",this.lastPageY=e.pageY,this.container.style.top=p+"px")):(this.lastPageX=e.pageX,this.container.style.left=r+"px",this.lastPageY=e.pageY,this.container.style.top=p+"px")}},e.prototype.endDrag=function(e){this.dragging&&(this.dragging=!1,o.DomHandler.removeClass(document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))},e.prototype.resetPosition=function(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""},e.prototype.center=function(){this.resetPosition()},e.prototype.initResize=function(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,o.DomHandler.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(e))},e.prototype.onResize=function(e){if(this.resizing){var t=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,n=o.DomHandler.getOuterWidth(this.container),s=o.DomHandler.getOuterHeight(this.container),a=o.DomHandler.getOuterHeight(this.contentViewChild.nativeElement),r=n+t,p=s+i,l=this.container.style.minWidth,d=this.container.style.minHeight,c=o.DomHandler.getOffset(this.container),m=o.DomHandler.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(r+=t,p+=i),(!l||r>parseInt(l))&&c.left+r<m.width&&(this._style.width=r+"px",this.container.style.width=this._style.width),(!d||p>parseInt(d))&&c.top+p<m.height&&(this.contentViewChild.nativeElement.style.height=a+p-s+"px",this._style.height&&(this._style.height=p+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}},e.prototype.resizeEnd=function(e){this.resizing&&(this.resizing=!1,o.DomHandler.removeClass(document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))},e.prototype.bindGlobalListeners=function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()},e.prototype.unbindGlobalListeners=function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()},e.prototype.bindDocumentDragListener=function(){var e=this;this.zone.runOutsideAngular((function(){e.documentDragListener=e.onDrag.bind(e),window.document.addEventListener("mousemove",e.documentDragListener)}))},e.prototype.unbindDocumentDragListener=function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},e.prototype.bindDocumentDragEndListener=function(){var e=this;this.zone.runOutsideAngular((function(){e.documentDragEndListener=e.endDrag.bind(e),window.document.addEventListener("mouseup",e.documentDragEndListener)}))},e.prototype.unbindDocumentDragEndListener=function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)},e.prototype.bindDocumentResizeListeners=function(){var e=this;this.zone.runOutsideAngular((function(){e.documentResizeListener=e.onResize.bind(e),e.documentResizeEndListener=e.resizeEnd.bind(e),window.document.addEventListener("mousemove",e.documentResizeListener),window.document.addEventListener("mouseup",e.documentResizeEndListener)}))},e.prototype.unbindDocumentResizeListeners=function(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)},e.prototype.bindDocumentEscapeListener=function(){var e=this,t=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(t,"keydown",(function(t){27==t.which&&parseInt(e.container.style.zIndex)===o.DomHandler.zindex+e.baseZIndex&&e.close(t)}))},e.prototype.unbindDocumentEscapeListener=function(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)},e.prototype.appendContainer=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):o.DomHandler.appendChild(this.wrapper,this.appendTo))},e.prototype.restoreAppend=function(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)},e.prototype.onAnimationStart=function(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&o.DomHandler.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus()}},e.prototype.onAnimationEnd=function(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({});break;case"visible":this.onShow.emit({})}},e.prototype.onContainerDestroy=function(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&o.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.container=null,this.wrapper=null,this._style=this.originalStyle?Object.assign({},this.originalStyle):{}},e.prototype.ngOnDestroy=function(){this.container&&(this.restoreAppend(),this.onContainerDestroy())},e}();c.decorators=[{type:t.Component,args:[{selector:"p-dialog",template:'\n <div *ngIf="maskVisible" [class]="maskStyleClass"\n [ngClass]="{\'p-dialog-mask\': true, \'p-component-overlay\': this.modal, \'p-dialog-mask-scrollblocker\': this.modal || this.blockScroll,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'}">\n <div #container [ngClass]="{\'p-dialog p-component\':true, \'p-dialog-rtl\':rtl,\'p-dialog-draggable\':draggable,\'p-dialog-resizable\':resizable, \'p-dialog-maximized\': maximized}"\n [ngStyle]="style" [class]="styleClass" *ngIf="visible" pFocusTrap [pFocusTrapDisabled]="focusTrap === false"\n [@animation]="{value: \'visible\', params: {transform: transformOptions, transition: transitionOptions}}" (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" role="dialog" [attr.aria-labelledby]="id + \'-label\'">\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="showHeader">\n <span [attr.id]="id + \'-label\'" class="p-dialog-title" *ngIf="header">{{header}}</span>\n <span [attr.id]="id + \'-label\'" class="p-dialog-title" *ngIf="headerFacet">\n <ng-content select="p-header"></ng-content>\n </span>\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n <div class="p-dialog-header-icons">\n <button *ngIf="maximizable" type="button" [ngClass]="{\'p-dialog-header-icon p-dialog-header-maximize p-link\':true}" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n </button>\n <button *ngIf="closable" type="button" [ngClass]="{\'p-dialog-header-icon p-dialog-header-close p-link\':true}" (click)="close($event)" (keydown.enter)="close($event)" tabindex="-1" pRipple>\n <span class="p-dialog-header-close-icon" [ngClass]="closeIcon"></span>\n </button>\n </div>\n </div>\n <div #content [ngClass]="\'p-dialog-content\'" [ngStyle]="contentStyle" [class]="contentStyleClass">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="footerFacet || footerTemplate">\n <ng-content select="p-footer"></ng-content>\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n <div *ngIf="resizable" class="p-resizable-handle" style="z-index: 90;" (mousedown)="initResize($event)"></div>\n </div>\n </div>\n ',animations:[i.trigger("animation",[i.transition("void => visible",[i.useAnimation(l)]),i.transition("visible => void",[i.useAnimation(d)])])],changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:[".p-dialog-mask{align-items:center;background-color:transparent;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition-property:background-color;width:100%}.p-dialog,.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;max-height:90%;position:relative;transform:scale(1)}.p-dialog-content{overflow-y:auto}.p-dialog-header{align-items:center;display:flex;flex-shrink:0;justify-content:space-between}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{align-items:center;display:flex}.p-dialog .p-dialog-header-icon{align-items:center;display:flex;justify-content:center;overflow:hidden;position:relative}.p-dialog-mask.p-dialog-mask-leave{background-color:transparent}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-top .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{height:100%;left:0!important;max-height:100%;top:0!important;transform:none;transition:none;width:100vw!important}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top,.p-dialog-top-left{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start}.p-dialog-top-right{align-items:flex-start;justify-content:flex-end}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{align-items:flex-end;justify-content:flex-start}.p-dialog-bottom-right{align-items:flex-end;justify-content:flex-end}.p-dialog .p-resizable-handle{bottom:1px;cursor:se-resize;display:block;font-size:.1px;height:12px;position:absolute;right:1px;width:12px}.p-confirm-dialog .p-dialog-content{align-items:center;display:flex}"]}]}],c.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:t.NgZone},{type:t.ChangeDetectorRef}]},c.propDecorators={header:[{type:t.Input}],draggable:[{type:t.Input}],resizable:[{type:t.Input}],positionLeft:[{type:t.Input}],positionTop:[{type:t.Input}],contentStyle:[{type:t.Input}],contentStyleClass:[{type:t.Input}],modal:[{type:t.Input}],closeOnEscape:[{type:t.Input}],dismissableMask:[{type:t.Input}],rtl:[{type:t.Input}],closable:[{type:t.Input}],responsive:[{type:t.Input}],appendTo:[{type:t.Input}],styleClass:[{type:t.Input}],maskStyleClass:[{type:t.Input}],showHeader:[{type:t.Input}],breakpoint:[{type:t.Input}],blockScroll:[{type:t.Input}],autoZIndex:[{type:t.Input}],baseZIndex:[{type:t.Input}],minX:[{type:t.Input}],minY:[{type:t.Input}],focusOnShow:[{type:t.Input}],maximizable:[{type:t.Input}],keepInViewport:[{type:t.Input}],focusTrap:[{type:t.Input}],transitionOptions:[{type:t.Input}],closeIcon:[{type:t.Input}],minimizeIcon:[{type:t.Input}],maximizeIcon:[{type:t.Input}],headerFacet:[{type:t.ContentChild,args:[s.Header]}],footerFacet:[{type:t.ContentChild,args:[s.Footer]}],templates:[{type:t.ContentChildren,args:[s.PrimeTemplate]}],headerViewChild:[{type:t.ViewChild,args:["titlebar"]}],contentViewChild:[{type:t.ViewChild,args:["content"]}],footerViewChild:[{type:t.ViewChild,args:["footer"]}],onShow:[{type:t.Output}],onHide:[{type:t.Output}],visibleChange:[{type:t.Output}],onResizeInit:[{type:t.Output}],onResizeEnd:[{type:t.Output}],onDragEnd:[{type:t.Output}],onMaximize:[{type:t.Output}],visible:[{type:t.Input}],style:[{type:t.Input}],position:[{type:t.Input}]};var m=function(){};m.decorators=[{type:t.NgModule,args:[{imports:[n.CommonModule,a.FocusTrapModule,r.RippleModule],exports:[c,s.SharedModule],declarations:[c]}]}],e.Dialog=c,e.DialogModule=m,Object.defineProperty(e,"__esModule",{value:!0})}));
|
2
2
|
//# sourceMappingURL=primeng-dialog.umd.min.js.map
|