@skill-map/cli 0.52.0 → 0.53.0
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/dist/cli/tutorial/sm-tutorial/SKILL.md +239 -1659
- package/dist/cli/tutorial/sm-tutorial/references/_core.md +332 -0
- package/dist/cli/tutorial/sm-tutorial/references/_manifest.yml +175 -0
- package/dist/cli/tutorial/sm-tutorial/references/fixtures.md +251 -0
- package/dist/cli/tutorial/{sm-master/references/tour-authoring.md → sm-tutorial/references/part-authoring.md} +14 -15
- package/dist/cli/tutorial/sm-tutorial/references/part-cli.md +267 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-connect-harness.md +180 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-fundamentals.md +424 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-live-site.md +156 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-maintain.md +286 -0
- package/dist/cli/tutorial/sm-tutorial/references/part-mcp.md +78 -0
- package/dist/cli/tutorial/{sm-master/references/tour-plugins.md → sm-tutorial/references/part-plugins.md} +11 -11
- package/dist/cli/tutorial/sm-tutorial/references/part-project-kickoff.md +186 -0
- package/dist/cli/tutorial/{sm-master/references/tour-settings.md → sm-tutorial/references/part-settings.md} +22 -24
- package/dist/cli.js +1213 -550
- package/dist/index.d.ts +1 -1
- package/dist/index.js +334 -207
- package/dist/kernel/index.d.ts +320 -15
- package/dist/kernel/index.js +334 -207
- package/dist/migrations/001_initial.sql +36 -0
- package/dist/ui/chunk-EQ72PEHT.js +1 -0
- package/dist/ui/chunk-GBKHMJ4B.js +1110 -0
- package/dist/ui/chunk-GEI6INVH.js +515 -0
- package/dist/ui/chunk-JXRIGHET.js +552 -0
- package/dist/ui/{chunk-WQMZOINB.js → chunk-K2MAVAHG.js} +1 -1
- package/dist/ui/{chunk-BV323KTK.js → chunk-KHARMPTZ.js} +1 -1
- package/dist/ui/chunk-L4NIF75A.js +2 -0
- package/dist/ui/chunk-LCOYSPKE.js +1 -0
- package/dist/ui/chunk-OFDQMBSJ.js +1 -0
- package/dist/ui/chunk-P2DAPRK7.js +2 -0
- package/dist/ui/chunk-Q2A6FWC7.js +4 -0
- package/dist/ui/{chunk-ZNDMBION.js → chunk-TXTY24G4.js} +28 -30
- package/dist/ui/chunk-UBQUCSQ4.js +1 -0
- package/dist/ui/chunk-WFLPMCK4.js +392 -0
- package/dist/ui/chunk-YQFIXHKM.js +123 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/{main-2DWVSRRX.js → main-OYITFJ7B.js} +3 -3
- package/dist/ui/{styles-QBTVKEVX.css → styles-Q4NCOJQY.css} +1 -1
- package/migrations/001_initial.sql +36 -0
- package/package.json +10 -8
- package/dist/cli/tutorial/sm-master/SKILL.md +0 -688
- package/dist/cli/tutorial/sm-master/references/fixture-templates.md +0 -212
- package/dist/ui/chunk-5MCXQKRN.js +0 -1066
- package/dist/ui/chunk-6B5EAHIM.js +0 -1110
- package/dist/ui/chunk-AEA5GIA7.js +0 -1
- package/dist/ui/chunk-AQN27TN2.js +0 -123
- package/dist/ui/chunk-CAJ7ZI44.js +0 -1
- package/dist/ui/chunk-E2XO4JVD.js +0 -1
- package/dist/ui/chunk-VJ57LHDR.js +0 -4
- package/dist/ui/chunk-WMGW2UAL.js +0 -2
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import{A as hi,C as ui,D as Ft,E as ot,F as fi,G as st,I as Te,J as _i,M as gi,N as ue,O as yi,P as vi,Q as bi,a as ye,f as di,g as ft,i as He,j as G,k as Ge,l as he,o as ci,u as ne,v as J,w as L,x as De,y as pi,z as mi}from"./chunk-GBKHMJ4B.js";import{f as Ut,h as dt,i as Oe,j as $e,k as Me,l as se,p as Ie}from"./chunk-LCOYSPKE.js";import{A as pt,C as mt,E as qe,G as Ot,I as oi,J as Qe,K as ht,N as si,O as Mt,P as Dt,Q as Lt,R as li,T as ut,U as Je,V as ai,X as Vt,a as Yt,b as Xe,ca as ri,d as Ne,fa as zt,g as Xt,h as St,k as Jt,l as Et,m as it,n as ei,o as ti,p as nt,r as ii,u as Pe,v as me,w as ni,x as ct,y as je}from"./chunk-4SG4352Z.js";import{$a as p,Ab as A,Bb as N,Eb as Q,Ec as b,Fb as Ze,Fc as Ae,Gb as P,Gc as wt,Ha as d,Ib as r,J as qt,Jb as _e,K as ae,Kb as pe,L as re,Lb as Fe,Mb as ke,N as ee,Nb as u,Ob as f,P as w,Qa as Ve,Sb as fe,Tb as Ue,V as C,Vb as xe,W as x,Wa as F,Wb as y,X as H,Xa as de,Xb as Ee,Ya as ze,Yb as Re,Za as ce,Zb as It,_ as Qt,_a as M,ac as Kt,ba as S,bc as Wt,ca as Le,cc as Zt,ga as te,gc as ie,hc as Ye,ia as We,ic as q,jb as k,jc as Be,ka as E,mb as be,nb as Ce,pa as Gt,pc as Y,rc as Tt,sb as a,sc as K,tb as v,tc as X,ub as I,uc as m,vb as Z,wb as we,xb as Se,yb as U,zb as B}from"./chunk-Q2A6FWC7.js";import{a as j,b as tt}from"./chunk-WCABR6TI.js";var Ci=`
|
|
2
|
+
.p-iconfield {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: block;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.p-inputicon {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 50%;
|
|
10
|
+
margin-top: calc(-1 * (dt('icon.size') / 2));
|
|
11
|
+
color: dt('iconfield.icon.color');
|
|
12
|
+
line-height: 1;
|
|
13
|
+
z-index: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.p-iconfield .p-inputicon:first-child {
|
|
17
|
+
inset-inline-start: dt('form.field.padding.x');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.p-iconfield .p-inputicon:last-child {
|
|
21
|
+
inset-inline-end: dt('form.field.padding.x');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.p-iconfield .p-inputtext:not(:first-child),
|
|
25
|
+
.p-iconfield .p-inputwrapper:not(:first-child) .p-inputtext {
|
|
26
|
+
padding-inline-start: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.p-iconfield .p-inputtext:not(:last-child) {
|
|
30
|
+
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.p-iconfield:has(.p-inputfield-sm) .p-inputicon {
|
|
34
|
+
font-size: dt('form.field.sm.font.size');
|
|
35
|
+
width: dt('form.field.sm.font.size');
|
|
36
|
+
height: dt('form.field.sm.font.size');
|
|
37
|
+
margin-top: calc(-1 * (dt('form.field.sm.font.size') / 2));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.p-iconfield:has(.p-inputfield-lg) .p-inputicon {
|
|
41
|
+
font-size: dt('form.field.lg.font.size');
|
|
42
|
+
width: dt('form.field.lg.font.size');
|
|
43
|
+
height: dt('form.field.lg.font.size');
|
|
44
|
+
margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
|
|
45
|
+
}
|
|
46
|
+
`;var pn=["*"],mn={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},xi=(()=>{class t extends he{name="iconfield";style=Ci;classes=mn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var Ii=new ee("ICONFIELD_INSTANCE"),kt=(()=>{class t extends J{componentName="IconField";hostName="";_componentStyle=w(xi);$pcIconField=w(Ii,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=w(L,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(i,n){i&2&&y(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[ie([xi,{provide:Ii,useExisting:t},{provide:ne,useExisting:t}]),ce([L]),M],ngContentSelectors:pn,decls:1,vars:0,template:function(i,n){i&1&&(_e(),pe(0))},dependencies:[se,De],encapsulation:2,changeDetection:0})}return t})(),pa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=de({type:t});static \u0275inj=re({imports:[kt]})}return t})();var hn=["*"],un={root:"p-inputicon"},Ti=(()=>{class t extends he{name="inputicon";classes=un;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),wi=new ee("INPUTICON_INSTANCE"),Bt=(()=>{class t extends J{componentName="InputIcon";hostName="";styleClass;_componentStyle=w(Ti);$pcInputIcon=w(wi,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=w(L,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(i,n){i&2&&y(n.cn(n.cx("root"),n.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[ie([Ti,{provide:wi,useExisting:t},{provide:ne,useExisting:t}]),ce([L]),M],ngContentSelectors:hn,decls:1,vars:0,template:function(i,n){i&1&&(_e(),pe(0))},dependencies:[se,G,De],encapsulation:2,changeDetection:0})}return t})(),wa=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=de({type:t});static \u0275inj=re({imports:[Bt,G,G]})}return t})();var fn=["data-p-icon","blank"],Si=(()=>{class t extends ue{static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["","data-p-icon","blank"]],features:[M],attrs:fn,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&(H(),U(0,"rect",0))},encapsulation:2})}return t})();var _n=["data-p-icon","check"],Ei=(()=>{class t extends ue{static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["","data-p-icon","check"]],features:[M],attrs:_n,decls:1,vars:0,consts:[["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,n){i&1&&(H(),U(0,"path",0))},encapsulation:2})}return t})();var gn=["data-p-icon","chevron-down"],Oi=(()=>{class t extends ue{static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["","data-p-icon","chevron-down"]],features:[M],attrs:gn,decls:1,vars:0,consts:[["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,n){i&1&&(H(),U(0,"path",0))},encapsulation:2})}return t})();var yn=["data-p-icon","search"],Mi=(()=>{class t extends ue{pathId;onInit(){this.pathId="url(#"+ye()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["","data-p-icon","search"]],features:[M],attrs:yn,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(H(),we(0,"g"),U(1,"path",0),Se(),we(2,"defs")(3,"clipPath",1),U(4,"rect",2),Se()()),i&2&&(k("clip-path",n.pathId),d(3),Ze("id",n.pathId))},encapsulation:2})}return t})();var vn=["data-p-icon","times"],_t=(()=>{class t extends ue{static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["","data-p-icon","times"]],features:[M],attrs:vn,decls:1,vars:0,consts:[["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,n){i&1&&(H(),U(0,"path",0))},encapsulation:2})}return t})();var bn=["data-p-icon","window-maximize"],Di=(()=>{class t extends ue{pathId;onInit(){this.pathId="url(#"+ye()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[M],attrs:bn,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(H(),we(0,"g"),U(1,"path",0),Se(),we(2,"defs")(3,"clipPath",1),U(4,"rect",2),Se()()),i&2&&(k("clip-path",n.pathId),d(3),Ze("id",n.pathId))},encapsulation:2})}return t})();var Cn=["data-p-icon","window-minimize"],Li=(()=>{class t extends ue{pathId;onInit(){this.pathId="url(#"+ye()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[M],attrs:Cn,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,n){i&1&&(H(),we(0,"g"),U(1,"path",0),Se(),we(2,"defs")(3,"clipPath",1),U(4,"rect",2),Se()()),i&2&&(k("clip-path",n.pathId),d(3),Ze("id",n.pathId))},encapsulation:2})}return t})();var Vi=(()=>{class t extends J{pFocusTrapDisabled=!1;platformId=w(Gt);document=w(Qt);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){Ie(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&Ie(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let i=n=>ii("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:n?.bind(this)});this.firstHiddenFocusableElement=i(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=i(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:i,relatedTarget:n}=e,o=n===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(n)?ct(i.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;me(o)}onLastHiddenElementFocus(e){let{currentTarget:i,relatedTarget:n}=e,o=n===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(n)?pt(i.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;me(o)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275dir=ze({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",b]},features:[M]})}return t})();var xn=Object.defineProperty,zi=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Fi=(t,l,e)=>l in t?xn(t,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[l]=e,ki=(t,l)=>{for(var e in l||(l={}))In.call(l,e)&&Fi(t,e,l[e]);if(zi)for(var e of zi(l))Tn.call(l,e)&&Fi(t,e,l[e]);return t},wn=(t,l,e)=>new Promise((i,n)=>{var o=_=>{try{c(e.next(_))}catch(g){n(g)}},s=_=>{try{c(e.throw(_))}catch(g){n(g)}},c=_=>_.done?i(_.value):Promise.resolve(_.value).then(o,s);c((e=e.apply(t,l)).next())}),gt="animation",lt="transition";function Sn(t){return t?t.disabled||!!(t.safe&&oi()):!1}function En(t,l){return t?ki(ki({},t),Object.entries(l).reduce((e,[i,n])=>{var o;return e[i]=(o=t[i])!=null?o:n,e},{})):l}function On(t){let{name:l,enterClass:e,leaveClass:i}=t||{};return{enter:{from:e?.from||`${l}-enter-from`,to:e?.to||`${l}-enter-to`,active:e?.active||`${l}-enter-active`},leave:{from:i?.from||`${l}-leave-from`,to:i?.to||`${l}-leave-to`,active:i?.active||`${l}-leave-active`}}}function Mn(t){return{enter:{onBefore:t?.onBeforeEnter,onStart:t?.onEnter,onAfter:t?.onAfterEnter,onCancelled:t?.onEnterCancelled},leave:{onBefore:t?.onBeforeLeave,onStart:t?.onLeave,onAfter:t?.onAfterLeave,onCancelled:t?.onLeaveCancelled}}}function Dn(t,l){let e=window.getComputedStyle(t),i=V=>{let $=e[`${V}Delay`],W=e[`${V}Duration`];return[$.split(", ").map(zt),W.split(", ").map(zt)]},[n,o]=i(lt),[s,c]=i(gt),_=Math.max(...o.map((V,$)=>V+n[$])),g=Math.max(...c.map((V,$)=>V+s[$])),h,O=0,T=0;return l===lt?_>0&&(h=lt,O=_,T=o.length):l===gt?g>0&&(h=gt,O=g,T=c.length):(O=Math.max(_,g),h=O>0?_>g?lt:gt:void 0,T=h?h===lt?o.length:c.length:0),{type:h,timeout:O,count:T}}function yt(t,l){return typeof t=="number"?t:typeof t=="object"&&t[l]!=null?t[l]:null}function Ln(t,l=!0,e=!1){if(!l&&!e)return;let i=Xt(t);l&&Dt(t,"--pui-motion-height",i.height+"px"),e&&Dt(t,"--pui-motion-width",i.width+"px")}var Vn={name:"p",safe:!0,disabled:!1,enter:!0,leave:!0,autoHeight:!0,autoWidth:!1};function At(t,l){if(!t)throw new Error("Element is required.");let e={},i=!1,n={},o=null,s={},c=h=>{if(Object.assign(e,En(h,Vn)),!e.enter&&!e.leave)throw new Error("Enter or leave must be true.");s=Mn(e),i=Sn(e),n=On(e),o=null},_=h=>wn(null,null,function*(){o?.();let{onBefore:O,onStart:T,onAfter:V,onCancelled:$}=s[h]||{},W={element:t};if(i){O?.(W),T?.(W),V?.(W);return}let{from:D,active:z,to:R}=n[h]||{};return Ln(t,e.autoHeight,e.autoWidth),O?.(W),Xe(t,D),Xe(t,z),t.offsetHeight,Ne(t,D),Xe(t,R),T?.(W),new Promise(le=>{let ge=yt(e.duration,h),ve=()=>{Ne(t,[R,z]),o=null},Ke=()=>{ve(),V?.(W),le()};o=()=>{ve(),$?.(W),le()},Fn(t,e.type,ge,Ke)})});c(l);let g={enter:()=>e.enter?_("enter"):Promise.resolve(),leave:()=>e.leave?_("leave"):Promise.resolve(),cancel:()=>{o?.(),o=null},update:(h,O)=>{if(!h)throw new Error("Element is required.");t=h,g.cancel(),c(O)}};return e.appear&&g.enter(),g}var zn=0;function Fn(t,l,e,i){let n=t._motionEndId=++zn,o=()=>{n===t._motionEndId&&i()};if(e!=null)return setTimeout(o,e);let{type:s,timeout:c,count:_}=Dn(t,l);if(!s){i();return}let g=s+"end",h=0,O=()=>{t.removeEventListener(g,T,!0),o()},T=V=>{V.target===t&&++h>=_&&O()};t.addEventListener(g,T,{capture:!0,once:!0}),setTimeout(()=>{h<_&&O()},c+1)}var kn=["*"];function Bn(t,l){t&1&&pe(0)}var vt=new WeakMap;function at(t,l){if(t)switch(vt.has(t)||vt.set(t,{display:t.style.display,visibility:t.style.visibility,maxHeight:t.style.maxHeight,overflow:t.style.overflow}),l){case"display":t.style.display="none";break;case"visibility":t.style.visibility="hidden",t.style.maxHeight="0",t.style.overflow="hidden";break}}function bt(t,l){if(!t)return;let e=vt.get(t)??t.style;switch(l){case"display":t.style.display=e?.display||"";break;case"visibility":t.style.visibility=e?.visibility||"",t.style.maxHeight=e?.maxHeight||"",t.style.overflow=e?.overflow||"";break}vt.delete(t)}var An=`
|
|
47
|
+
.p-motion {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
`,Nn={root:"p-motion"},Nt=(()=>{class t extends he{name="motion";style=An;classes=Nn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var Bi=new ee("MOTION_INSTANCE"),Pt=(()=>{class t extends J{$pcMotion=w(Bi,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=w(L,{self:!0});onAfterViewChecked(){let i=this.options()?.root||{};this.bindDirectiveInstance.setAttrs(j(j({},this.ptms(["host","root"])),i))}_componentStyle=w(Nt);visible=m(!1);mountOnEnter=m(!0);unmountOnLeave=m(!0);name=m(void 0);type=m(void 0);safe=m(void 0);disabled=m(!1);appear=m(!1);enter=m(!0);leave=m(!0);duration=m(void 0);hideStrategy=m("display");enterFromClass=m(void 0);enterToClass=m(void 0);enterActiveClass=m(void 0);leaveFromClass=m(void 0);leaveToClass=m(void 0);leaveActiveClass=m(void 0);options=m({});onBeforeEnter=X();onEnter=X();onAfterEnter=X();onEnterCancelled=X();onBeforeLeave=X();onLeave=X();onAfterLeave=X();onLeaveCancelled=X();motionOptions=K(()=>{let e=this.options();return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;rendered=te(!1);handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),We(()=>{let e=this.hideStrategy();this.isInitialMount?(at(this.$el,e),this.rendered.set(this.visible()&&this.mountOnEnter()||!this.mountOnEnter())):this.visible()&&!this.rendered()&&(at(this.$el,e),this.rendered.set(!0))}),We(()=>{this.motion||(this.motion=At(this.$el,this.motionOptions()))}),wt(async()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),i=this.hideStrategy();this.visible()?(await ht(),bt(this.$el,i),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount||(await ht(),this.applyMotionDuration("leave"),this.motion?.leave()?.then(async()=>{this.$el&&!this.cancelled&&!this.visible()&&(at(this.$el,i),this.unmountOnLeave()&&(await ht(),this.cancelled||this.rendered.set(!1)))})),this.isInitialMount=!1})}applyMotionDuration(e){let i=Tt(this.motionOptions),n=yt(i.duration,e);if(n==null||!this.$el)return;let o=this.$el,s=`${n}ms`;i.type==="transition"?o.style.transitionDuration=s:o.style.animationDuration=s}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,bt(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=F({type:t,selectors:[["p-motion"]],hostVars:2,hostBindings:function(i,n){i&2&&y(n.cx("root"))},inputs:{visible:[1,"visible"],mountOnEnter:[1,"mountOnEnter"],unmountOnLeave:[1,"unmountOnLeave"],name:[1,"name"],type:[1,"type"],safe:[1,"safe"],disabled:[1,"disabled"],appear:[1,"appear"],enter:[1,"enter"],leave:[1,"leave"],duration:[1,"duration"],hideStrategy:[1,"hideStrategy"],enterFromClass:[1,"enterFromClass"],enterToClass:[1,"enterToClass"],enterActiveClass:[1,"enterActiveClass"],leaveFromClass:[1,"leaveFromClass"],leaveToClass:[1,"leaveToClass"],leaveActiveClass:[1,"leaveActiveClass"],options:[1,"options"]},outputs:{onBeforeEnter:"onBeforeEnter",onEnter:"onEnter",onAfterEnter:"onAfterEnter",onEnterCancelled:"onEnterCancelled",onBeforeLeave:"onBeforeLeave",onLeave:"onLeave",onAfterLeave:"onAfterLeave",onLeaveCancelled:"onLeaveCancelled"},features:[ie([Nt,{provide:Bi,useExisting:t},{provide:ne,useExisting:t}]),ce([L]),M],ngContentSelectors:kn,decls:1,vars:1,template:function(i,n){i&1&&(_e(),be(0,Bn,1,0)),i&2&&Ce(n.rendered()?0:-1)},dependencies:[se,De],encapsulation:2})}return t})(),Ai=new ee("MOTION_DIRECTIVE_INSTANCE"),Ni=(()=>{class t extends J{$pcMotionDirective=w(Ai,{optional:!0,skipSelf:!0})??void 0;visible=m(!1,{alias:"pMotion"});name=m(void 0,{alias:"pMotionName"});type=m(void 0,{alias:"pMotionType"});safe=m(void 0,{alias:"pMotionSafe"});disabled=m(!1,{alias:"pMotionDisabled"});appear=m(!1,{alias:"pMotionAppear"});enter=m(!0,{alias:"pMotionEnter"});leave=m(!0,{alias:"pMotionLeave"});duration=m(void 0,{alias:"pMotionDuration"});hideStrategy=m("display",{alias:"pMotionHideStrategy"});enterFromClass=m(void 0,{alias:"pMotionEnterFromClass"});enterToClass=m(void 0,{alias:"pMotionEnterToClass"});enterActiveClass=m(void 0,{alias:"pMotionEnterActiveClass"});leaveFromClass=m(void 0,{alias:"pMotionLeaveFromClass"});leaveToClass=m(void 0,{alias:"pMotionLeaveToClass"});leaveActiveClass=m(void 0,{alias:"pMotionLeaveActiveClass"});options=m({},{alias:"pMotionOptions"});onBeforeEnter=X({alias:"pMotionOnBeforeEnter"});onEnter=X({alias:"pMotionOnEnter"});onAfterEnter=X({alias:"pMotionOnAfterEnter"});onEnterCancelled=X({alias:"pMotionOnEnterCancelled"});onBeforeLeave=X({alias:"pMotionOnBeforeLeave"});onLeave=X({alias:"pMotionOnLeave"});onAfterLeave=X({alias:"pMotionOnAfterLeave"});onLeaveCancelled=X({alias:"pMotionOnLeaveCancelled"});motionOptions=K(()=>{let e=this.options()??{};return{name:e.name??this.name(),type:e.type??this.type(),safe:e.safe??this.safe(),disabled:e.disabled??this.disabled(),appear:!1,enter:e.enter??this.enter(),leave:e.leave??this.leave(),duration:e.duration??this.duration(),enterClass:{from:e.enterClass?.from??(e.name?void 0:this.enterFromClass()),to:e.enterClass?.to??(e.name?void 0:this.enterToClass()),active:e.enterClass?.active??(e.name?void 0:this.enterActiveClass())},leaveClass:{from:e.leaveClass?.from??(e.name?void 0:this.leaveFromClass()),to:e.leaveClass?.to??(e.name?void 0:this.leaveToClass()),active:e.leaveClass?.active??(e.name?void 0:this.leaveActiveClass())},onBeforeEnter:e.onBeforeEnter??this.handleBeforeEnter,onEnter:e.onEnter??this.handleEnter,onAfterEnter:e.onAfterEnter??this.handleAfterEnter,onEnterCancelled:e.onEnterCancelled??this.handleEnterCancelled,onBeforeLeave:e.onBeforeLeave??this.handleBeforeLeave,onLeave:e.onLeave??this.handleLeave,onAfterLeave:e.onAfterLeave??this.handleAfterLeave,onLeaveCancelled:e.onLeaveCancelled??this.handleLeaveCancelled}});motion;isInitialMount=!0;cancelled=!1;destroyed=!1;handleBeforeEnter=e=>!this.destroyed&&this.onBeforeEnter.emit(e);handleEnter=e=>!this.destroyed&&this.onEnter.emit(e);handleAfterEnter=e=>!this.destroyed&&this.onAfterEnter.emit(e);handleEnterCancelled=e=>!this.destroyed&&this.onEnterCancelled.emit(e);handleBeforeLeave=e=>!this.destroyed&&this.onBeforeLeave.emit(e);handleLeave=e=>!this.destroyed&&this.onLeave.emit(e);handleAfterLeave=e=>!this.destroyed&&this.onAfterLeave.emit(e);handleLeaveCancelled=e=>!this.destroyed&&this.onLeaveCancelled.emit(e);constructor(){super(),We(()=>{this.motion||(this.motion=At(this.$el,this.motionOptions()))}),wt(()=>{if(!this.$el)return;let e=this.isInitialMount&&this.visible()&&this.appear(),i=this.hideStrategy();this.visible()?(bt(this.$el,i),(e||!this.isInitialMount)&&(this.applyMotionDuration("enter"),this.motion?.enter())):this.isInitialMount?at(this.$el,i):(this.applyMotionDuration("leave"),this.motion?.leave()?.then(()=>{this.$el&&!this.cancelled&&!this.visible()&&at(this.$el,i)})),this.isInitialMount=!1})}applyMotionDuration(e){let i=Tt(this.motionOptions),n=yt(i.duration,e);if(n==null||!this.$el)return;let o=this.$el,s=`${n}ms`;i.type==="transition"?o.style.transitionDuration=s:o.style.animationDuration=s}onDestroy(){this.destroyed=!0,this.cancelled=!0,this.motion?.cancel(),this.motion=void 0,bt(this.$el,this.hideStrategy()),this.$el?.remove(),this.isInitialMount=!0}static \u0275fac=function(i){return new(i||t)};static \u0275dir=ze({type:t,selectors:[["","pMotion",""]],inputs:{visible:[1,"pMotion","visible"],name:[1,"pMotionName","name"],type:[1,"pMotionType","type"],safe:[1,"pMotionSafe","safe"],disabled:[1,"pMotionDisabled","disabled"],appear:[1,"pMotionAppear","appear"],enter:[1,"pMotionEnter","enter"],leave:[1,"pMotionLeave","leave"],duration:[1,"pMotionDuration","duration"],hideStrategy:[1,"pMotionHideStrategy","hideStrategy"],enterFromClass:[1,"pMotionEnterFromClass","enterFromClass"],enterToClass:[1,"pMotionEnterToClass","enterToClass"],enterActiveClass:[1,"pMotionEnterActiveClass","enterActiveClass"],leaveFromClass:[1,"pMotionLeaveFromClass","leaveFromClass"],leaveToClass:[1,"pMotionLeaveToClass","leaveToClass"],leaveActiveClass:[1,"pMotionLeaveActiveClass","leaveActiveClass"],options:[1,"pMotionOptions","options"]},outputs:{onBeforeEnter:"pMotionOnBeforeEnter",onEnter:"pMotionOnEnter",onAfterEnter:"pMotionOnAfterEnter",onEnterCancelled:"pMotionOnEnterCancelled",onBeforeLeave:"pMotionOnBeforeLeave",onLeave:"pMotionOnLeave",onAfterLeave:"pMotionOnAfterLeave",onLeaveCancelled:"pMotionOnLeaveCancelled"},features:[ie([Nt,{provide:Ai,useExisting:t},{provide:ne,useExisting:t}]),M]})}return t})(),Ct=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=de({type:t});static \u0275inj=re({imports:[Pt]})}return t})();var Hi=`
|
|
51
|
+
.p-dialog {
|
|
52
|
+
max-height: 90%;
|
|
53
|
+
transform: scale(1);
|
|
54
|
+
border-radius: dt('dialog.border.radius');
|
|
55
|
+
box-shadow: dt('dialog.shadow');
|
|
56
|
+
background: dt('dialog.background');
|
|
57
|
+
border: 1px solid dt('dialog.border.color');
|
|
58
|
+
color: dt('dialog.color');
|
|
59
|
+
will-change: transform;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.p-dialog-content {
|
|
63
|
+
overflow-y: auto;
|
|
64
|
+
padding: dt('dialog.content.padding');
|
|
65
|
+
flex-grow: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-dialog-header {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
padding: dt('dialog.header.padding');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.p-dialog-title {
|
|
77
|
+
font-weight: dt('dialog.title.font.weight');
|
|
78
|
+
font-size: dt('dialog.title.font.size');
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.p-dialog-footer {
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
padding: dt('dialog.footer.padding');
|
|
84
|
+
display: flex;
|
|
85
|
+
justify-content: flex-end;
|
|
86
|
+
gap: dt('dialog.footer.gap');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.p-dialog-header-actions {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: dt('dialog.header.gap');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.p-dialog-top .p-dialog,
|
|
96
|
+
.p-dialog-bottom .p-dialog,
|
|
97
|
+
.p-dialog-left .p-dialog,
|
|
98
|
+
.p-dialog-right .p-dialog,
|
|
99
|
+
.p-dialog-topleft .p-dialog,
|
|
100
|
+
.p-dialog-topright .p-dialog,
|
|
101
|
+
.p-dialog-bottomleft .p-dialog,
|
|
102
|
+
.p-dialog-bottomright .p-dialog {
|
|
103
|
+
margin: 1rem;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.p-dialog-maximized {
|
|
107
|
+
width: 100vw !important;
|
|
108
|
+
height: 100vh !important;
|
|
109
|
+
top: 0px !important;
|
|
110
|
+
left: 0px !important;
|
|
111
|
+
max-height: 100%;
|
|
112
|
+
height: 100%;
|
|
113
|
+
border-radius: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.p-dialog .p-resizable-handle {
|
|
117
|
+
position: absolute;
|
|
118
|
+
font-size: 0.1px;
|
|
119
|
+
display: block;
|
|
120
|
+
cursor: se-resize;
|
|
121
|
+
width: 12px;
|
|
122
|
+
height: 12px;
|
|
123
|
+
right: 1px;
|
|
124
|
+
bottom: 1px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.p-dialog-enter-active {
|
|
128
|
+
animation: p-animate-dialog-enter 300ms cubic-bezier(.19,1,.22,1);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.p-dialog-leave-active {
|
|
132
|
+
animation: p-animate-dialog-leave 300ms cubic-bezier(.19,1,.22,1);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@keyframes p-animate-dialog-enter {
|
|
136
|
+
from {
|
|
137
|
+
opacity: 0;
|
|
138
|
+
transform: scale(0.93);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@keyframes p-animate-dialog-leave {
|
|
143
|
+
to {
|
|
144
|
+
opacity: 0;
|
|
145
|
+
transform: scale(0.93);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`;var Pn=["header"],Ri=["content"],$i=["footer"],Hn=["closeicon"],Rn=["maximizeicon"],$n=["minimizeicon"],jn=["headless"],qn=["titlebar"],Qn=["*",[["p-footer"]]],Gn=["*","p-footer"],Kn=t=>({ariaLabelledBy:t});function Wn(t,l){t&1&&N(0)}function Zn(t,l){if(t&1&&(B(0),p(1,Wn,1,0,"ng-container",11),A()),t&2){let e=r(3);d(),a("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Un(t,l){if(t&1){let e=Q();v(0,"div",16),P("mousedown",function(n){C(e);let o=r(4);return x(o.initResize(n))}),I()}if(t&2){let e=r(4);y(e.cx("resizeHandle")),Ue("z-index",90),a("pBind",e.ptm("resizeHandle"))}}function Yn(t,l){if(t&1&&(v(0,"span",21),Ee(1),I()),t&2){let e=r(5);y(e.cx("title")),a("id",e.ariaLabelledBy)("pBind",e.ptm("title")),d(),Re(e.header)}}function Xn(t,l){t&1&&N(0)}function Jn(t,l){if(t&1&&Z(0,"span",25),t&2){let e=r(7);a("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function eo(t,l){t&1&&(H(),Z(0,"svg",28))}function to(t,l){t&1&&(H(),Z(0,"svg",29))}function io(t,l){if(t&1&&(B(0),p(1,eo,1,0,"svg",26)(2,to,1,0,"svg",27),A()),t&2){let e=r(7);d(),a("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),d(),a("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function no(t,l){}function oo(t,l){t&1&&p(0,no,0,0,"ng-template")}function so(t,l){if(t&1&&(B(0),p(1,oo,1,0,null,11),A()),t&2){let e=r(7);d(),a("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function lo(t,l){}function ao(t,l){t&1&&p(0,lo,0,0,"ng-template")}function ro(t,l){if(t&1&&(B(0),p(1,ao,1,0,null,11),A()),t&2){let e=r(7);d(),a("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function co(t,l){if(t&1&&p(0,Jn,1,1,"span",23)(1,io,3,2,"ng-container",24)(2,so,2,1,"ng-container",24)(3,ro,2,1,"ng-container",24),t&2){let e=r(6);a("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),d(),a("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),d(),a("ngIf",!e.maximized),d(),a("ngIf",e.maximized)}}function po(t,l){if(t&1){let e=Q();v(0,"p-button",22),P("onClick",function(){C(e);let n=r(5);return x(n.maximize())})("keydown.enter",function(){C(e);let n=r(5);return x(n.maximize())}),p(1,co,4,4,"ng-template",null,4,Y),I()}if(t&2){let e=r(5);a("pt",e.ptm("pcMaximizeButton"))("styleClass",e.cx("pcMaximizeButton"))("ariaLabel",e.maximized?e.minimizeLabel:e.maximizeLabel)("tabindex",e.maximizable?"0":"-1")("buttonProps",e.maximizeButtonProps)("unstyled",e.unstyled()),k("data-pc-group-section","headericon")}}function mo(t,l){if(t&1&&Z(0,"span"),t&2){let e=r(8);y(e.closeIcon)}}function ho(t,l){t&1&&(H(),Z(0,"svg",32))}function uo(t,l){if(t&1&&(B(0),p(1,mo,1,2,"span",30)(2,ho,1,0,"svg",31),A()),t&2){let e=r(7);d(),a("ngIf",e.closeIcon),d(),a("ngIf",!e.closeIcon)}}function fo(t,l){}function _o(t,l){t&1&&p(0,fo,0,0,"ng-template")}function go(t,l){if(t&1&&(v(0,"span"),p(1,_o,1,0,null,11),I()),t&2){let e=r(7);d(),a("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function yo(t,l){if(t&1&&p(0,uo,3,2,"ng-container",24)(1,go,2,1,"span",24),t&2){let e=r(6);a("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),d(),a("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function vo(t,l){if(t&1){let e=Q();v(0,"p-button",22),P("onClick",function(n){C(e);let o=r(5);return x(o.close(n))})("keydown.enter",function(n){C(e);let o=r(5);return x(o.close(n))}),p(1,yo,2,2,"ng-template",null,4,Y),I()}if(t&2){let e=r(5);a("pt",e.ptm("pcCloseButton"))("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)("unstyled",e.unstyled()),k("data-pc-group-section","headericon")}}function bo(t,l){if(t&1){let e=Q();v(0,"div",16,3),P("mousedown",function(n){C(e);let o=r(4);return x(o.initDrag(n))}),p(2,Yn,2,5,"span",17)(3,Xn,1,0,"ng-container",18),v(4,"div",19),p(5,po,3,7,"p-button",20)(6,vo,3,7,"p-button",20),I()()}if(t&2){let e=r(4);y(e.cx("header")),a("pBind",e.ptm("header")),d(2),a("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),d(),a("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT)("ngTemplateOutletContext",q(11,Kn,e.ariaLabelledBy)),d(),y(e.cx("headerActions")),a("pBind",e.ptm("headerActions")),d(),a("ngIf",e.maximizable),d(),a("ngIf",e.closable)}}function Co(t,l){t&1&&N(0)}function xo(t,l){t&1&&N(0)}function Io(t,l){if(t&1&&(v(0,"div",19,5),pe(2,1),p(3,xo,1,0,"ng-container",11),I()),t&2){let e=r(4);y(e.cx("footer")),a("pBind",e.ptm("footer")),d(3),a("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function To(t,l){if(t&1&&(p(0,Un,1,5,"div",12)(1,bo,7,13,"div",13),v(2,"div",14,2),pe(4),p(5,Co,1,0,"ng-container",11),I(),p(6,Io,4,4,"div",15)),t&2){let e=r(3);a("ngIf",e.resizable),d(),a("ngIf",e.showHeader),d(),y(e.cn(e.cx("content"),e.contentStyleClass)),a("ngStyle",e.contentStyle)("pBind",e.ptm("content")),d(3),a("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),d(),a("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function wo(t,l){if(t&1){let e=Q();v(0,"div",9,0),P("pMotionOnBeforeEnter",function(n){C(e);let o=r(2);return x(o.onBeforeEnter(n))})("pMotionOnAfterEnter",function(n){C(e);let o=r(2);return x(o.onAfterEnter(n))})("pMotionOnBeforeLeave",function(n){C(e);let o=r(2);return x(o.onBeforeLeave(n))})("pMotionOnAfterLeave",function(n){C(e);let o=r(2);return x(o.onAfterLeave(n))}),p(2,Zn,2,1,"ng-container",10)(3,To,7,8,"ng-template",null,1,Y),I()}if(t&2){let e=fe(4),i=r(2);xe(i.sx("root")),y(i.cn(i.cx("root"),i.styleClass)),a("ngStyle",i.style)("pBind",i.ptm("root"))("pFocusTrapDisabled",i.focusTrap===!1)("pMotion",i.visible)("pMotionAppear",!0)("pMotionName","p-dialog")("pMotionOptions",i.computedMotionOptions()),k("role",i.role)("aria-labelledby",i.ariaLabelledBy)("aria-modal",!0)("data-p",i.dataP),d(2),a("ngIf",i._headlessTemplate||i.headlessTemplate||i.headlessT)("ngIfElse",e)}}function So(t,l){if(t&1){let e=Q();v(0,"div",7),P("pMotionOnAfterLeave",function(){C(e);let n=r();return x(n.onMaskAfterLeave())}),be(1,wo,5,17,"div",8),I()}if(t&2){let e=r();xe(e.sx("mask")),y(e.cn(e.cx("mask"),e.maskStyleClass)),a("ngStyle",e.maskStyle)("pBind",e.ptm("mask"))("pMotion",e.maskVisible)("pMotionAppear",!0)("pMotionEnterActiveClass",e.modal?"p-overlay-mask-enter-active":"")("pMotionLeaveActiveClass",e.modal?"p-overlay-mask-leave-active":"")("pMotionOptions",e.computedMaskMotionOptions()),k("data-p-scrollblocker-active",e.modal||e.blockScroll)("data-p",e.dataP),d(),Ce(e.renderDialog()?1:-1)}}var Eo={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},Oo={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===t.position);return["p-dialog-mask",{"p-overlay-mask":t.modal},e?`p-dialog-${e}`:""]},root:({instance:t})=>["p-dialog p-component",{"p-dialog-maximized":t.maximizable&&t.maximized}],header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:()=>["p-dialog-content"],footer:"p-dialog-footer"},ji=(()=>{class t extends he{name="dialog";style=Hi;classes=Oo;inlineStyles=Eo;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var qi=new ee("DIALOG_INSTANCE"),Mo=(()=>{class t extends J{componentName="Dialog";hostName="";$pcDialog=w(qi,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=w(L,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;draggable=!0;resizable=!0;contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";maskMotionOptions=m(void 0);computedMaskMotionOptions=K(()=>j(j({},this.ptm("maskMotion")),this.maskMotionOptions()));motionOptions=m(void 0);computedMotionOptions=K(()=>j(j({},this.ptm("motion")),this.motionOptions()));closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",variant:"text",rounded:!0};maximizeButtonProps={severity:"secondary",variant:"text",rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0,this.renderMask.set(!0),this.renderDialog.set(!0))}get style(){return this._style}set style(e){e&&(this._style=j({},e),this.originalStyle=e)}position;role="dialog";appendTo=m(void 0);onShow=new S;onHide=new S;visibleChange=new S;onResizeInit=new S;onResizeEnd=new S;onDragEnd=new S;onMaximize=new S;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;$appendTo=K(()=>this.appendTo()||this.config.overlayAppendTo());renderMask=te(!1);renderDialog=te(!1);_visible=!1;maskVisible;container=te(null);wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=ye("pn_id_");_style={};originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=w(ji);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;zIndexForLayering;get maximizeLabel(){return this.config.getTranslation(Ge.ARIA).maximizeLabel}get minimizeLabel(){return this.config.getTranslation(Ge.ARIA).minimizeLabel}zone=w(Le);overlayService=w(ft);get maskClass(){let i=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===this.position);return{"p-dialog-mask":!0,"p-overlay-mask":this.modal||this.dismissableMask,[`p-dialog-${i}`]:i}}onInit(){this.breakpoints&&this.createStyle()}templates;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?ye("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let i=/([\d\.]+)(ms|s)\b/g,n=0,o;for(;(o=i.exec(e))!==null;){let s=parseFloat(o[1]),c=o[2];c==="ms"?n+=s:c==="s"&&(n+=s*1e3)}if(n!==0)return n}_focus(e){if(e){let i=this.parseDurationToMilliseconds(this.transitionOptions),n=ui.getFocusableElements(e);if(n&&n.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>n[0].focus(),i||5)}),!0}return!1}focus(e=this.contentViewChild?.nativeElement){let i=this._focus(e);i||(i=this._focus(this.footerViewChild?.nativeElement),i||(i=this._focus(this.headerViewChild?.nativeElement),i||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visible=!1,this.visibleChange.emit(this.visible),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Ft()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll('[data-p-scrollblocker-active="true"]');this.modal&&e&&e.length==1&&ot(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Ft():ot()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex?(Te.set("modal",this.container(),this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container().style.zIndex,10)-1)):this.zIndexForLayering=Te.generateZIndex("modal",(this.baseZIndex??0)+this.config.zIndex.modal)}createStyle(){if(Ie(this.platformId)&&!this.styleElement&&!this.$unstyled()){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",Mt(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let i in this.breakpoints)e+=`
|
|
149
|
+
@media screen and (max-width: ${i}) {
|
|
150
|
+
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
|
|
151
|
+
width: ${this.breakpoints[i]} !important;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
`;this.renderer.setProperty(this.styleElement,"innerHTML",e),Mt(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){e.target.closest("div")?.getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container().style.margin="0",this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Et(this.document.body,{"user-select":"none"}))}onDrag(e){if(this.dragging&&this.container()){let i=it(this.container()),n=mt(this.container()),o=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,c=this.container().getBoundingClientRect(),_=getComputedStyle(this.container()),g=parseFloat(_.marginLeft),h=parseFloat(_.marginTop),O=c.left+o-g,T=c.top+s-h,V=St();this.container().style.position="fixed",this.keepInViewport?(O>=this.minX&&O+i<V.width&&(this._style.left=`${O}px`,this.lastPageX=e.pageX,this.container().style.left=`${O}px`),T>=this.minY&&T+n<V.height&&(this._style.top=`${T}px`,this.lastPageY=e.pageY,this.container().style.top=`${T}px`)):(this.lastPageX=e.pageX,this.container().style.left=`${O}px`,this.lastPageY=e.pageY,this.container().style.top=`${T}px`),this.overlayService.emitParentDrag(this.container())}}endDrag(e){this.dragging&&(this.dragging=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container().style.position="",this.container().style.left="",this.container().style.top="",this.container().style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Et(this.document.body,{"user-select":"none"}),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let i=e.pageX-this.lastPageX,n=e.pageY-this.lastPageY,o=it(this.container()),s=mt(this.container()),c=mt(this.contentViewChild?.nativeElement),_=o+i,g=s+n,h=this.container().style.minWidth,O=this.container().style.minHeight,T=this.container().getBoundingClientRect(),V=St();(!parseInt(this.container().style.top)||!parseInt(this.container().style.left))&&(_+=i,g+=n),(!h||_>parseInt(h))&&T.left+_<V.width&&(this._style.width=_+"px",this.container().style.width=this._style.width),(!O||g>parseInt(O))&&T.top+g<V.height&&(this.contentViewChild.nativeElement.style.height=c+g-s+"px",this._style.height&&(this._style.height=g+"px",this.container().style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",i=>{if(i.key=="Escape"){let n=this.container();if(!n)return;let o=Te.getCurrent();(parseInt(n.style.zIndex)==o||this.zIndexForLayering==o)&&this.close(i)}})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.$appendTo()!=="self"&&nt(this.document.body,this.wrapper)}restoreAppend(){this.container()&&this.$appendTo()!=="self"&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onBeforeEnter(e){this.container.set(e.element),this.wrapper=this.container()?.parentElement,this.$attrSelector&&this.container()?.setAttribute(this.$attrSelector,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container()?.setAttribute(this.id,""),this.modal&&this.enableModality()}onAfterEnter(){this.focusOnShow&&this.focus(),this.onShow.emit({})}onBeforeLeave(){this.modal&&(this.maskVisible=!1)}onAfterLeave(){this.onContainerDestroy(),this.renderDialog.set(!1),this.modal?this.renderMask.set(!1):this.maskVisible=!1,this.onHide.emit({}),this.cd.markForCheck()}onMaskAfterLeave(){this.renderDialog()||this.renderMask.set(!1)}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maximized&&(Ne(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),Yt(this.document.body,"p-overflow-hidden")&&Ne(this.document.body,"p-overflow-hidden"),this.container()&&this.autoZIndex&&Te.clear(this.container()),this.zIndexForLayering&&Te.revertZIndex(this.zIndexForLayering),this.container.set(null),this.wrapper=null,this._style=this.originalStyle?j({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}onDestroy(){this.container()&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}get dataP(){return this.cn({maximized:this.maximized,modal:this.modal})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["p-dialog"]],contentQueries:function(i,n,o){if(i&1&&Fe(o,Pn,4)(o,Ri,4)(o,$i,4)(o,Hn,4)(o,Rn,4)(o,$n,4)(o,jn,4)(o,He,4),i&2){let s;u(s=f())&&(n._headerTemplate=s.first),u(s=f())&&(n._contentTemplate=s.first),u(s=f())&&(n._footerTemplate=s.first),u(s=f())&&(n._closeiconTemplate=s.first),u(s=f())&&(n._maximizeiconTemplate=s.first),u(s=f())&&(n._minimizeiconTemplate=s.first),u(s=f())&&(n._headlessTemplate=s.first),u(s=f())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&ke(qn,5)(Ri,5)($i,5),i&2){let o;u(o=f())&&(n.headerViewChild=o.first),u(o=f())&&(n.contentViewChild=o.first),u(o=f())&&(n.footerViewChild=o.first)}},inputs:{hostName:"hostName",header:"header",draggable:[2,"draggable","draggable",b],resizable:[2,"resizable","resizable",b],contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",b],closeOnEscape:[2,"closeOnEscape","closeOnEscape",b],dismissableMask:[2,"dismissableMask","dismissableMask",b],rtl:[2,"rtl","rtl",b],closable:[2,"closable","closable",b],breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",b],blockScroll:[2,"blockScroll","blockScroll",b],autoZIndex:[2,"autoZIndex","autoZIndex",b],baseZIndex:[2,"baseZIndex","baseZIndex",Ae],minX:[2,"minX","minX",Ae],minY:[2,"minY","minY",Ae],focusOnShow:[2,"focusOnShow","focusOnShow",b],maximizable:[2,"maximizable","maximizable",b],keepInViewport:[2,"keepInViewport","keepInViewport",b],focusTrap:[2,"focusTrap","focusTrap",b],transitionOptions:"transitionOptions",maskMotionOptions:[1,"maskMotionOptions"],motionOptions:[1,"motionOptions"],closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",appendTo:[1,"appendTo"],headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[ie([ji,{provide:qi,useExisting:t},{provide:ne,useExisting:t}]),ce([L]),M],ngContentSelectors:Gn,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"class","style","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],[3,"pMotionOnAfterLeave","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],["pFocusTrap","",3,"class","style","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],["pFocusTrap","",3,"pMotionOnBeforeEnter","pMotionOnAfterEnter","pMotionOnBeforeLeave","pMotionOnAfterLeave","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"class","pBind","z-index","mousedown",4,"ngIf"],[3,"class","pBind","mousedown",4,"ngIf"],[3,"ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"mousedown","pBind"],[3,"id","class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[3,"pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled","onClick","keydown.enter",4,"ngIf"],[3,"id","pBind"],[3,"onClick","keydown.enter","pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["data-p-icon","window-maximize",4,"ngIf"],["data-p-icon","window-minimize",4,"ngIf"],["data-p-icon","window-maximize"],["data-p-icon","window-minimize"],[3,"class",4,"ngIf"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(i,n){i&1&&(_e(Qn),be(0,So,2,14,"div",6)),i&2&&Ce(n.renderMask()?0:-1)},dependencies:[se,Ut,Oe,Me,$e,bi,Vi,_t,Di,Li,G,L,Ct,Ni],encapsulation:2,changeDetection:0})}return t})(),Nr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=de({type:t});static \u0275inj=re({imports:[Mo,G,G]})}return t})();var Qi=(()=>{class t extends pi{required=m(void 0,{transform:b});invalid=m(void 0,{transform:b});disabled=m(void 0,{transform:b});name=m();_disabled=te(!1);$disabled=K(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,i){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275dir=ze({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[M]})}return t})();var Gi=(()=>{class t extends Qi{pcFluid=w(mi,{optional:!0,host:!0,skipSelf:!0});fluid=m(void 0,{transform:b});variant=m();size=m();inputSize=m();pattern=m();min=m();max=m();step=m();minlength=m();maxlength=m();$variant=K(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275dir=ze({type:t,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[M]})}return t})();var Ki=["content"],Lo=["overlay"],Wi=["*","*"],Vo=()=>({mode:null}),Yi=t=>({$implicit:t}),zo=t=>({mode:t});function Fo(t,l){t&1&&N(0)}function ko(t,l){if(t&1&&(pe(0),p(1,Fo,1,0,"ng-container",3)),t&2){let e=r();d(),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",q(3,Yi,Ye(2,Vo)))}}function Bo(t,l){t&1&&N(0)}function Ao(t,l){if(t&1){let e=Q();v(0,"div",5,0),P("click",function(){C(e);let n=r(2);return x(n.onOverlayClick())}),v(2,"p-motion",6),P("onBeforeEnter",function(n){C(e);let o=r(2);return x(o.onOverlayBeforeEnter(n))})("onEnter",function(n){C(e);let o=r(2);return x(o.onOverlayEnter(n))})("onAfterEnter",function(n){C(e);let o=r(2);return x(o.onOverlayAfterEnter(n))})("onBeforeLeave",function(n){C(e);let o=r(2);return x(o.onOverlayBeforeLeave(n))})("onLeave",function(n){C(e);let o=r(2);return x(o.onOverlayLeave(n))})("onAfterLeave",function(n){C(e);let o=r(2);return x(o.onOverlayAfterLeave(n))}),v(3,"div",5,1),P("click",function(n){C(e);let o=r(2);return x(o.onOverlayContentClick(n))}),pe(5,1),p(6,Bo,1,0,"ng-container",3),I()()()}if(t&2){let e=r(2);xe(e.sx("root")),y(e.cn(e.cx("root"),e.styleClass)),a("pBind",e.ptm("root")),d(2),a("visible",e.visible)("appear",!0)("options",e.computedMotionOptions()),d(),y(e.cn(e.cx("content"),e.contentStyleClass)),a("pBind",e.ptm("content")),d(3),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",q(15,Yi,q(13,zo,e.overlayMode)))}}function No(t,l){if(t&1&&p(0,Ao,7,17,"div",4),t&2){let e=r();a("ngIf",e.modalVisible)}}var Po={root:()=>({position:"absolute",top:"0"})},Ho=`
|
|
155
|
+
.p-overlay-modal {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
position: fixed;
|
|
160
|
+
top: 0;
|
|
161
|
+
left: 0;
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: 100%;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.p-overlay-content {
|
|
167
|
+
transform-origin: inherit;
|
|
168
|
+
will-change: transform;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Github Issue #18560 */
|
|
172
|
+
.p-component-overlay.p-component {
|
|
173
|
+
position: relative;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.p-overlay-modal > .p-overlay-content {
|
|
177
|
+
z-index: 1;
|
|
178
|
+
width: 90%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Position */
|
|
182
|
+
/* top */
|
|
183
|
+
.p-overlay-top {
|
|
184
|
+
align-items: flex-start;
|
|
185
|
+
}
|
|
186
|
+
.p-overlay-top-start {
|
|
187
|
+
align-items: flex-start;
|
|
188
|
+
justify-content: flex-start;
|
|
189
|
+
}
|
|
190
|
+
.p-overlay-top-end {
|
|
191
|
+
align-items: flex-start;
|
|
192
|
+
justify-content: flex-end;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* bottom */
|
|
196
|
+
.p-overlay-bottom {
|
|
197
|
+
align-items: flex-end;
|
|
198
|
+
}
|
|
199
|
+
.p-overlay-bottom-start {
|
|
200
|
+
align-items: flex-end;
|
|
201
|
+
justify-content: flex-start;
|
|
202
|
+
}
|
|
203
|
+
.p-overlay-bottom-end {
|
|
204
|
+
align-items: flex-end;
|
|
205
|
+
justify-content: flex-end;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* left */
|
|
209
|
+
.p-overlay-left {
|
|
210
|
+
justify-content: flex-start;
|
|
211
|
+
}
|
|
212
|
+
.p-overlay-left-start {
|
|
213
|
+
justify-content: flex-start;
|
|
214
|
+
align-items: flex-start;
|
|
215
|
+
}
|
|
216
|
+
.p-overlay-left-end {
|
|
217
|
+
justify-content: flex-start;
|
|
218
|
+
align-items: flex-end;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* right */
|
|
222
|
+
.p-overlay-right {
|
|
223
|
+
justify-content: flex-end;
|
|
224
|
+
}
|
|
225
|
+
.p-overlay-right-start {
|
|
226
|
+
justify-content: flex-end;
|
|
227
|
+
align-items: flex-start;
|
|
228
|
+
}
|
|
229
|
+
.p-overlay-right-end {
|
|
230
|
+
justify-content: flex-end;
|
|
231
|
+
align-items: flex-end;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.p-overlay-content ~ .p-overlay-content {
|
|
235
|
+
display: none;
|
|
236
|
+
}
|
|
237
|
+
`,Ro={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter-active":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},Zi=(()=>{class t extends he{name="overlay";style=Ho;classes=Ro;inlineStyles=Po;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})(),Ui=new ee("OVERLAY_INSTANCE"),Xi=(()=>{class t extends J{overlayService;zone;componentName="Overlay";$pcOverlay=w(Ui,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return st.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return st.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return st.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return st.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}appendTo=m(void 0);inline=m(!1);motionOptions=m(void 0);computedMotionOptions=K(()=>j(j({},this.ptm("motion")),this.motionOptions()||this.overlayOptions?.motionOptions));visibleChange=new S;onBeforeShow=new S;onShow=new S;onBeforeHide=new S;onHide=new S;onAnimationStart=new S;onAnimationDone=new S;onBeforeEnter=new S;onEnter=new S;onAfterEnter=new S;onBeforeLeave=new S;onLeave=new S;onAfterLeave=new S;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=m();$appendTo=K(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=w(Zi);bindDirectiveInstance=w(L,{self:!0});documentKeyboardListener;parentDragSubscription=null;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(Ie(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return j(j({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return j(j({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return ti(this.target,this.el?.nativeElement)}constructor(e,i){super(),this.overlayService=e,this.zone=i}onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this._contentTemplate=e.template:this._contentTemplate=e.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&me(this.targetEl),this.modal&&Xe(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&me(this.targetEl),this.modal&&Ne(this.document?.body,"p-overflow-hidden");else return}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}container=te(void 0);onOverlayBeforeEnter(e){this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.container.set(this.overlayEl||e.element),this.show(this.overlayEl,!0),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),this.appendOverlay(),this.alignOverlay(),this.bindParentDragListener(),this.setZIndex(),this.handleEvents("onBeforeEnter",e)}onOverlayEnter(e){this.handleEvents("onEnter",e)}onOverlayAfterEnter(e){this.bindListeners(),this.handleEvents("onAfterEnter",e)}onOverlayBeforeLeave(e){this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.handleEvents("onBeforeLeave",e)}onOverlayLeave(e){this.handleEvents("onLeave",e)}onOverlayAfterLeave(e){this.hide(this.overlayEl,!0),this.container.set(null),this.unbindListeners(),this.appendOverlay(),Te.clear(this.overlayEl),this.modalVisible=!1,this.cd.markForCheck(),this.handleEvents("onAfterLeave",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}setZIndex(){this.autoZIndex&&Te.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode])}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?nt(this.document.body,this.overlayEl):nt(this.$appendTo(),this.overlayEl))}alignOverlay(){this.modal||this.overlayEl&&this.targetEl&&(this.overlayEl.style.minWidth=it(this.targetEl)+"px",this.$appendTo()==="self"?ei(this.overlayEl,this.targetEl):Jt(this.overlayEl,this.targetEl))}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener(),this.unbindParentDragListener()}bindParentDragListener(){!this.parentDragSubscription&&this.$appendTo()!=="self"&&this.targetEl&&(this.parentDragSubscription=this.overlayService.parentDragObservable.subscribe(e=>{e.contains(this.targetEl)&&this.hide(this.overlayEl,!0)}))}unbindParentDragListener(){this.parentDragSubscription&&(this.parentDragSubscription.unsubscribe(),this.parentDragSubscription=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new fi(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let n=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&n}):n)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!Qe()}):!Qe())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!Qe()}):!Qe())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),Te.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(Ve(ft),Ve(Le))};static \u0275cmp=F({type:t,selectors:[["p-overlay"]],contentQueries:function(i,n,o){if(i&1&&Fe(o,Ki,4)(o,He,4),i&2){let s;u(s=f())&&(n.contentTemplate=s.first),u(s=f())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&ke(Lo,5)(Ki,5),i&2){let o;u(o=f())&&(n.overlayViewChild=o.first),u(o=f())&&(n.contentViewChild=o.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],inline:[1,"inline"],motionOptions:[1,"motionOptions"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone",onBeforeEnter:"onBeforeEnter",onEnter:"onEnter",onAfterEnter:"onAfterEnter",onBeforeLeave:"onBeforeLeave",onLeave:"onLeave",onAfterLeave:"onAfterLeave"},features:[ie([Zi,{provide:Ui,useExisting:t},{provide:ne,useExisting:t}]),ce([L]),M],ngContentSelectors:Wi,decls:2,vars:1,consts:[["overlay",""],["content",""],[3,"class","style","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","style","pBind","click",4,"ngIf"],[3,"click","pBind"],["name","p-anchored-overlay",3,"onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave","visible","appear","options"]],template:function(i,n){i&1&&(_e(Wi),be(0,ko,2,5)(1,No,1,1,"div",2)),i&2&&Ce(n.inline()?0:1)},dependencies:[se,Oe,Me,G,L,Ct,Pt],encapsulation:2,changeDetection:0})}return t})();var Ji=["content"],$o=["item"],jo=["loader"],qo=["loadericon"],Qo=["element"],Go=["*"],Rt=(t,l)=>({$implicit:t,options:l}),Ko=t=>({numCols:t}),nn=t=>({options:t}),Wo=()=>({styleClass:"p-virtualscroller-loading-icon"}),Zo=(t,l)=>({rows:t,columns:l});function Uo(t,l){t&1&&N(0)}function Yo(t,l){if(t&1&&(B(0),p(1,Uo,1,0,"ng-container",10),A()),t&2){let e=r(2);d(),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Be(2,Rt,e.loadedItems,e.getContentOptions()))}}function Xo(t,l){t&1&&N(0)}function Jo(t,l){if(t&1&&(B(0),p(1,Xo,1,0,"ng-container",10),A()),t&2){let e=l.$implicit,i=l.index,n=r(3);d(),a("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",Be(2,Rt,e,n.getOptions(i)))}}function es(t,l){if(t&1&&(v(0,"div",11,3),p(2,Jo,2,5,"ng-container",12),I()),t&2){let e=r(2);xe(e.contentStyle),y(e.cn(e.cx("content"),e.contentStyleClass)),a("pBind",e.ptm("content")),d(2),a("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function ts(t,l){if(t&1&&Z(0,"div",13),t&2){let e=r(2);y(e.cx("spacer")),a("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function is(t,l){t&1&&N(0)}function ns(t,l){if(t&1&&(B(0),p(1,is,1,0,"ng-container",10),A()),t&2){let e=l.index,i=r(4);d(),a("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",q(4,nn,i.getLoaderOptions(e,i.both&&q(2,Ko,i.numItemsInViewport.cols))))}}function os(t,l){if(t&1&&(B(0),p(1,ns,2,6,"ng-container",14),A()),t&2){let e=r(3);d(),a("ngForOf",e.loaderArr)}}function ss(t,l){t&1&&N(0)}function ls(t,l){if(t&1&&(B(0),p(1,ss,1,0,"ng-container",10),A()),t&2){let e=r(4);d(),a("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",q(3,nn,Ye(2,Wo)))}}function as(t,l){if(t&1&&(H(),Z(0,"svg",15)),t&2){let e=r(4);y(e.cx("loadingIcon")),a("spin",!0)("pBind",e.ptm("loadingIcon"))}}function rs(t,l){if(t&1&&p(0,ls,2,5,"ng-container",6)(1,as,1,4,"ng-template",null,5,Y),t&2){let e=fe(2),i=r(3);a("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function ds(t,l){if(t&1&&(v(0,"div",11),p(1,os,2,1,"ng-container",6)(2,rs,3,2,"ng-template",null,4,Y),I()),t&2){let e=fe(3),i=r(2);y(i.cx("loader")),a("pBind",i.ptm("loader")),d(),a("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function cs(t,l){if(t&1){let e=Q();B(0),v(1,"div",7,1),P("scroll",function(n){C(e);let o=r();return x(o.onContainerScroll(n))}),p(3,Yo,2,5,"ng-container",6)(4,es,3,7,"ng-template",null,2,Y)(6,ts,1,4,"div",8)(7,ds,4,5,"div",9),I(),A()}if(t&2){let e=fe(5),i=r();d(),y(i.cn(i.cx("root"),i.styleClass)),a("ngStyle",i._style)("pBind",i.ptm("root")),k("id",i._id)("tabindex",i.tabindex),d(2),a("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),d(3),a("ngIf",i._showSpacer),d(),a("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function ps(t,l){t&1&&N(0)}function ms(t,l){if(t&1&&(B(0),p(1,ps,1,0,"ng-container",10),A()),t&2){let e=r(2);d(),a("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Be(5,Rt,e.items,Be(2,Zo,e._items,e.loadedColumns)))}}function hs(t,l){if(t&1&&(pe(0),p(1,ms,2,8,"ng-container",16)),t&2){let e=r();d(),a("ngIf",e.contentTemplate||e._contentTemplate)}}var us=`
|
|
238
|
+
.p-virtualscroller {
|
|
239
|
+
position: relative;
|
|
240
|
+
overflow: auto;
|
|
241
|
+
contain: strict;
|
|
242
|
+
transform: translateZ(0);
|
|
243
|
+
will-change: scroll-position;
|
|
244
|
+
outline: 0 none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.p-virtualscroller-content {
|
|
248
|
+
position: absolute;
|
|
249
|
+
top: 0;
|
|
250
|
+
left: 0;
|
|
251
|
+
min-height: 100%;
|
|
252
|
+
min-width: 100%;
|
|
253
|
+
will-change: transform;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.p-virtualscroller-spacer {
|
|
257
|
+
position: absolute;
|
|
258
|
+
top: 0;
|
|
259
|
+
left: 0;
|
|
260
|
+
height: 1px;
|
|
261
|
+
width: 1px;
|
|
262
|
+
transform-origin: 0 0;
|
|
263
|
+
pointer-events: none;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.p-virtualscroller-loader {
|
|
267
|
+
position: sticky;
|
|
268
|
+
top: 0;
|
|
269
|
+
left: 0;
|
|
270
|
+
width: 100%;
|
|
271
|
+
height: 100%;
|
|
272
|
+
background: dt('virtualscroller.loader.mask.background');
|
|
273
|
+
color: dt('virtualscroller.loader.mask.color');
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.p-virtualscroller-loader-mask {
|
|
277
|
+
display: flex;
|
|
278
|
+
align-items: center;
|
|
279
|
+
justify-content: center;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.p-virtualscroller-loading-icon {
|
|
283
|
+
font-size: dt('virtualscroller.loader.icon.size');
|
|
284
|
+
width: dt('virtualscroller.loader.icon.size');
|
|
285
|
+
height: dt('virtualscroller.loader.icon.size');
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.p-virtualscroller-horizontal > .p-virtualscroller-content {
|
|
289
|
+
display: flex;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.p-virtualscroller-inline .p-virtualscroller-content {
|
|
293
|
+
position: static;
|
|
294
|
+
}
|
|
295
|
+
`,fs={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},en=(()=>{class t extends he{name="virtualscroller";css=us;classes=fs;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var tn=new ee("SCROLLER_INSTANCE"),$t=(()=>{class t extends J{zone;componentName="VirtualScroller";bindDirectiveInstance=w(L,{self:!0});$pcScroller=w(tn,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([i,n])=>this[`_${i}`]!==n&&(this[`_${i}`]=n)),Object.entries(e).forEach(([i,n])=>this[`${i}`]!==n&&(this[`${i}`]=n)))}onLazyLoad=new S;onScroll=new S;onScrollIndexChange=new S;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=w(en);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let i=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:n,currentValue:o}=e.loading;this.lazy&&n!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:n,currentValue:o}=e.numToleratedItems;n!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:n,currentValue:o}=e.options;this.lazy&&n?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),n?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init()}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Ie(this.platformId)&&!this.initialized&&Ot(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=qe(this.elementViewChild?.nativeElement),this.defaultHeight=je(this.elementViewChild?.nativeElement),this.defaultContentWidth=qe(this.contentEl),this.defaultContentHeight=je(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.calculateAutoSize(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||Pe(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:c=0}=this.elementViewChild?.nativeElement,{numToleratedItems:_}=this.calculateNumItems(),g=this.getContentPosition(),h=this.itemSize,O=(z=0,R)=>z<=R?0:z,T=(z,R,le)=>z*R+le,V=(z=0,R=0)=>this.scrollTo({left:z,top:R,behavior:i}),$=this.both?{rows:0,cols:0}:0,W=!1,D=!1;this.both?($={rows:O(e[0],_[0]),cols:O(e[1],_[1])},V(T($.cols,h[1],g.left),T($.rows,h[0],g.top)),D=this.lastScrollPos.top!==s||this.lastScrollPos.left!==c,W=$.rows!==o.rows||$.cols!==o.cols):($=O(e,_),this.horizontal?V(T($,h,g.left),s):V(c,T($,h,g.top)),D=this.lastScrollPos!==(this.horizontal?c:s),W=$!==o),this.isRangeChanged=W,D&&(this.first=$)}}scrollInView(e,i,n="auto"){if(i){let{first:o,viewport:s}=this.getRenderedRange(),c=(h=0,O=0)=>this.scrollTo({left:h,top:O,behavior:n}),_=i==="to-start",g=i==="to-end";if(_){if(this.both)s.first.rows-o.rows>e[0]?c(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&c((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let h=(s.first-1)*this._itemSize;this.horizontal?c(h,0):c(0,h)}}else if(g){if(this.both)s.last.rows-o.rows<=e[0]+1?c(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&c((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let h=(s.first+1)*this._itemSize;this.horizontal?c(h,0):c(0,h)}}}else this.scrollToIndex(e,n)}getRenderedRange(){let e=(o,s)=>s||o?Math.floor(o/(s||o)):0,i=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},n={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let c=this.horizontal?s:o;i=e(c,this._itemSize),n=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:n}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(g,h)=>h||g?Math.ceil(g/(h||g)):0,s=g=>Math.ceil(g/2),c=this.both?{rows:o(n,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:n,this._itemSize),_=this.d_numToleratedItems||(this.both?[s(c.rows),s(c.cols)]:s(c));return{numItemsInViewport:c,numToleratedItems:_}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),n=(c,_,g,h=!1)=>this.getLast(c+_+(c<g?2:3)*g,h),o=this.first,s=this.both?{rows:n(this.first.rows,e.rows,i[0]),cols:n(this.first.cols,e.cols,i[1],!0)}:n(this.first,e,i);this.last=s,this.numItemsInViewport=e,this.d_numToleratedItems=i,this._showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,i]=[qe(this.contentEl),je(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,o]=[qe(this.elementViewChild.nativeElement),je(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=o<this.defaultHeight?o+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),i=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),n=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),s=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:n,top:o,bottom:s,x:i+n,y:o+s}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement,i=e.parentElement?.parentElement,n=e.offsetWidth,o=i?.offsetWidth||0,s=this._scrollWidth||`${n||o}px`,c=e.offsetHeight,_=i?.offsetHeight||0,g=this._scrollHeight||`${c||_}px`,h=(O,T)=>e.style[O]=T;this.both||this.horizontal?(h("height",g),h("width",s)):h("height",g)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),i=(n,o,s,c=0)=>this.spacerStyle=tt(j({},this.spacerStyle),{[`${n}`]:(o||[]).length*s+c+"px"});this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,n=(s,c)=>s*c,o=(s=0,c=0)=>this.contentStyle=tt(j({},this.contentStyle),{transform:`translate3d(${s}px, ${c}px, 0)`});if(this.both)o(n(i.cols,this._itemSize[1]),n(i.rows,this._itemSize[0]));else{let s=n(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let i=e.target;if(!i)throw new Error("Event target is null");let n=this.getContentPosition(),o=(D,z)=>D?D>z?D-z:D:0,s=(D,z)=>z||D?Math.floor(D/(z||D)):0,c=(D,z,R,le,ge,ve)=>D<=ge?ge:ve?R-le-ge:z+ge-1,_=(D,z,R,le,ge,ve,Ke)=>D<=ve?0:Math.max(0,Ke?D<z?R:D-ve:D>z?R:D-2*ve),g=(D,z,R,le,ge,ve=!1)=>{let Ke=z+le+2*ge;return D>=ge&&(Ke+=ge+1),this.getLast(Ke,ve)},h=o(i.scrollTop,n.top),O=o(i.scrollLeft,n.left),T=this.both?{rows:0,cols:0}:0,V=this.last,$=!1,W=this.lastScrollPos;if(this.both){let D=this.lastScrollPos.top<=h,z=this.lastScrollPos.left<=O;if(!this._appendOnly||this._appendOnly&&(D||z)){let R={rows:s(h,this._itemSize[0]),cols:s(O,this._itemSize[1])},le={rows:c(R.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],D),cols:c(R.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],z)};T={rows:_(R.rows,le.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],D),cols:_(R.cols,le.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],z)},V={rows:g(R.rows,T.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:g(R.cols,T.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},$=T.rows!==this.first.rows||V.rows!==this.last.rows||T.cols!==this.first.cols||V.cols!==this.last.cols||this.isRangeChanged,W={top:h,left:O}}}else{let D=this.horizontal?O:h,z=this.lastScrollPos<=D;if(!this._appendOnly||this._appendOnly&&z){let R=s(D,this._itemSize),le=c(R,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,z);T=_(R,le,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,z),V=g(R,T,this.last,this.numItemsInViewport,this.d_numToleratedItems),$=T!==this.first||V!==this.last||this.isRangeChanged,W=D}}return{first:T,last:V,isRangeChanged:$,scrollPos:W}}onScrollChange(e){let{first:i,last:n,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let c={first:i,last:n};if(this.setContentPosition(c),this.first=i,this.last=n,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",c),this._lazy&&this.isPageChanged(i)){let _={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this._items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:n,this._items.length)};(this.lazyLoadState.first!==_.first||this.lazyLoadState.last!==_.last)&&this.handleEvents("onLazyLoad",_),this.lazyLoadState=_}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){Ie(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,i=Qe()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Ot(this.elementViewChild?.nativeElement)){let[e,i]=[qe(this.elementViewChild?.nativeElement),je(this.elementViewChild?.nativeElement)],[n,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?n||o:this.horizontal?n:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=qe(this.contentEl),this.defaultContentHeight=je(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let i=(this._items||[]).length,n=this.both?this.first.rows+e:this.first+e;return{index:n,count:i,first:n===0,last:n===i-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(e,i){let n=this.loaderArr.length;return j({index:e,count:n,first:e===0,last:e===n-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},i)}static \u0275fac=function(i){return new(i||t)(Ve(Le))};static \u0275cmp=F({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,n,o){if(i&1&&Fe(o,Ji,4)(o,$o,4)(o,jo,4)(o,qo,4)(o,He,4),i&2){let s;u(s=f())&&(n.contentTemplate=s.first),u(s=f())&&(n.itemTemplate=s.first),u(s=f())&&(n.loaderTemplate=s.first),u(s=f())&&(n.loaderIconTemplate=s.first),u(s=f())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&ke(Qo,5)(Ji,5),i&2){let o;u(o=f())&&(n.elementViewChild=o.first),u(o=f())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&2&&Ue("height",n.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[ie([en,{provide:tn,useExisting:t},{provide:ne,useExisting:t}]),ce([L]),M],ngContentSelectors:Go,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(i,n){if(i&1&&(_e(),p(0,cs,8,10,"ng-container",6)(1,hs,2,1,"ng-template",null,0,Y)),i&2){let o=fe(2);a("ngIf",!n._disabled)("ngIfElse",o)}},dependencies:[se,dt,Oe,Me,$e,yi,G,L],encapsulation:2})}return t})(),Nd=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=de({type:t});static \u0275inj=re({imports:[$t,G,G]})}return t})();var on=`
|
|
296
|
+
.p-select {
|
|
297
|
+
display: inline-flex;
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
position: relative;
|
|
300
|
+
user-select: none;
|
|
301
|
+
background: dt('select.background');
|
|
302
|
+
border: 1px solid dt('select.border.color');
|
|
303
|
+
transition:
|
|
304
|
+
background dt('select.transition.duration'),
|
|
305
|
+
color dt('select.transition.duration'),
|
|
306
|
+
border-color dt('select.transition.duration'),
|
|
307
|
+
outline-color dt('select.transition.duration'),
|
|
308
|
+
box-shadow dt('select.transition.duration');
|
|
309
|
+
border-radius: dt('select.border.radius');
|
|
310
|
+
outline-color: transparent;
|
|
311
|
+
box-shadow: dt('select.shadow');
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.p-select:not(.p-disabled):hover {
|
|
315
|
+
border-color: dt('select.hover.border.color');
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.p-select:not(.p-disabled).p-focus {
|
|
319
|
+
border-color: dt('select.focus.border.color');
|
|
320
|
+
box-shadow: dt('select.focus.ring.shadow');
|
|
321
|
+
outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');
|
|
322
|
+
outline-offset: dt('select.focus.ring.offset');
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.p-select.p-variant-filled {
|
|
326
|
+
background: dt('select.filled.background');
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.p-select.p-variant-filled:not(.p-disabled):hover {
|
|
330
|
+
background: dt('select.filled.hover.background');
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.p-select.p-variant-filled:not(.p-disabled).p-focus {
|
|
334
|
+
background: dt('select.filled.focus.background');
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.p-select.p-invalid {
|
|
338
|
+
border-color: dt('select.invalid.border.color');
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.p-select.p-disabled {
|
|
342
|
+
opacity: 1;
|
|
343
|
+
background: dt('select.disabled.background');
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.p-select-clear-icon {
|
|
347
|
+
align-self: center;
|
|
348
|
+
color: dt('select.clear.icon.color');
|
|
349
|
+
inset-inline-end: dt('select.dropdown.width');
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.p-select-dropdown {
|
|
353
|
+
display: flex;
|
|
354
|
+
align-items: center;
|
|
355
|
+
justify-content: center;
|
|
356
|
+
flex-shrink: 0;
|
|
357
|
+
background: transparent;
|
|
358
|
+
color: dt('select.dropdown.color');
|
|
359
|
+
width: dt('select.dropdown.width');
|
|
360
|
+
border-start-end-radius: dt('select.border.radius');
|
|
361
|
+
border-end-end-radius: dt('select.border.radius');
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.p-select-label {
|
|
365
|
+
display: block;
|
|
366
|
+
white-space: nowrap;
|
|
367
|
+
overflow: hidden;
|
|
368
|
+
flex: 1 1 auto;
|
|
369
|
+
width: 1%;
|
|
370
|
+
padding: dt('select.padding.y') dt('select.padding.x');
|
|
371
|
+
text-overflow: ellipsis;
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
color: dt('select.color');
|
|
374
|
+
background: transparent;
|
|
375
|
+
border: 0 none;
|
|
376
|
+
outline: 0 none;
|
|
377
|
+
font-size: 1rem;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.p-select-label.p-placeholder {
|
|
381
|
+
color: dt('select.placeholder.color');
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.p-select.p-invalid .p-select-label.p-placeholder {
|
|
385
|
+
color: dt('select.invalid.placeholder.color');
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.p-select.p-disabled .p-select-label {
|
|
389
|
+
color: dt('select.disabled.color');
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.p-select-label-empty {
|
|
393
|
+
overflow: hidden;
|
|
394
|
+
opacity: 0;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
input.p-select-label {
|
|
398
|
+
cursor: default;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.p-select-overlay {
|
|
402
|
+
position: absolute;
|
|
403
|
+
top: 0;
|
|
404
|
+
left: 0;
|
|
405
|
+
background: dt('select.overlay.background');
|
|
406
|
+
color: dt('select.overlay.color');
|
|
407
|
+
border: 1px solid dt('select.overlay.border.color');
|
|
408
|
+
border-radius: dt('select.overlay.border.radius');
|
|
409
|
+
box-shadow: dt('select.overlay.shadow');
|
|
410
|
+
min-width: 100%;
|
|
411
|
+
transform-origin: inherit;
|
|
412
|
+
will-change: transform;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.p-select-header {
|
|
416
|
+
padding: dt('select.list.header.padding');
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.p-select-filter {
|
|
420
|
+
width: 100%;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.p-select-list-container {
|
|
424
|
+
overflow: auto;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.p-select-option-group {
|
|
428
|
+
cursor: auto;
|
|
429
|
+
margin: 0;
|
|
430
|
+
padding: dt('select.option.group.padding');
|
|
431
|
+
background: dt('select.option.group.background');
|
|
432
|
+
color: dt('select.option.group.color');
|
|
433
|
+
font-weight: dt('select.option.group.font.weight');
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.p-select-list {
|
|
437
|
+
margin: 0;
|
|
438
|
+
padding: 0;
|
|
439
|
+
list-style-type: none;
|
|
440
|
+
padding: dt('select.list.padding');
|
|
441
|
+
gap: dt('select.list.gap');
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: column;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.p-select-option {
|
|
447
|
+
cursor: pointer;
|
|
448
|
+
font-weight: normal;
|
|
449
|
+
white-space: nowrap;
|
|
450
|
+
position: relative;
|
|
451
|
+
overflow: hidden;
|
|
452
|
+
display: flex;
|
|
453
|
+
align-items: center;
|
|
454
|
+
padding: dt('select.option.padding');
|
|
455
|
+
border: 0 none;
|
|
456
|
+
color: dt('select.option.color');
|
|
457
|
+
background: transparent;
|
|
458
|
+
transition:
|
|
459
|
+
background dt('select.transition.duration'),
|
|
460
|
+
color dt('select.transition.duration'),
|
|
461
|
+
border-color dt('select.transition.duration'),
|
|
462
|
+
box-shadow dt('select.transition.duration'),
|
|
463
|
+
outline-color dt('select.transition.duration');
|
|
464
|
+
border-radius: dt('select.option.border.radius');
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
|
|
468
|
+
background: dt('select.option.focus.background');
|
|
469
|
+
color: dt('select.option.focus.color');
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.p-select-option:not(.p-select-option-selected):not(.p-disabled):hover {
|
|
473
|
+
background: dt('select.option.focus.background');
|
|
474
|
+
color: dt('select.option.focus.color');
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.p-select-option.p-select-option-selected {
|
|
478
|
+
background: dt('select.option.selected.background');
|
|
479
|
+
color: dt('select.option.selected.color');
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.p-select-option.p-select-option-selected.p-focus {
|
|
483
|
+
background: dt('select.option.selected.focus.background');
|
|
484
|
+
color: dt('select.option.selected.focus.color');
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.p-select-option-blank-icon {
|
|
488
|
+
flex-shrink: 0;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.p-select-option-check-icon {
|
|
492
|
+
position: relative;
|
|
493
|
+
flex-shrink: 0;
|
|
494
|
+
margin-inline-start: dt('select.checkmark.gutter.start');
|
|
495
|
+
margin-inline-end: dt('select.checkmark.gutter.end');
|
|
496
|
+
color: dt('select.checkmark.color');
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.p-select-empty-message {
|
|
500
|
+
padding: dt('select.empty.message.padding');
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.p-select-fluid {
|
|
504
|
+
display: flex;
|
|
505
|
+
width: 100%;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.p-select-sm .p-select-label {
|
|
509
|
+
font-size: dt('select.sm.font.size');
|
|
510
|
+
padding-block: dt('select.sm.padding.y');
|
|
511
|
+
padding-inline: dt('select.sm.padding.x');
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.p-select-sm .p-select-dropdown .p-icon {
|
|
515
|
+
font-size: dt('select.sm.font.size');
|
|
516
|
+
width: dt('select.sm.font.size');
|
|
517
|
+
height: dt('select.sm.font.size');
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.p-select-lg .p-select-label {
|
|
521
|
+
font-size: dt('select.lg.font.size');
|
|
522
|
+
padding-block: dt('select.lg.padding.y');
|
|
523
|
+
padding-inline: dt('select.lg.padding.x');
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.p-select-lg .p-select-dropdown .p-icon {
|
|
527
|
+
font-size: dt('select.lg.font.size');
|
|
528
|
+
width: dt('select.lg.font.size');
|
|
529
|
+
height: dt('select.lg.font.size');
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.p-floatlabel-in .p-select-filter {
|
|
533
|
+
padding-block-start: dt('select.padding.y');
|
|
534
|
+
padding-block-end: dt('select.padding.y');
|
|
535
|
+
}
|
|
536
|
+
`;var rt=t=>({height:t}),jt=t=>({$implicit:t});function _s(t,l){if(t&1&&(H(),Z(0,"svg",6)),t&2){let e=r(2);y(e.cx("optionCheckIcon")),a("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function gs(t,l){if(t&1&&(H(),Z(0,"svg",7)),t&2){let e=r(2);y(e.cx("optionBlankIcon")),a("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function ys(t,l){if(t&1&&(B(0),p(1,_s,1,3,"svg",4)(2,gs,1,3,"svg",5),A()),t&2){let e=r();d(),a("ngIf",e.selected),d(),a("ngIf",!e.selected)}}function vs(t,l){if(t&1&&(v(0,"span",8),Ee(1),I()),t&2){let e=r();a("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),d(),Re(e.label??"empty")}}function bs(t,l){t&1&&N(0)}var Cs=["item"],xs=["group"],Is=["loader"],Ts=["selectedItem"],ws=["header"],sn=["filter"],Ss=["footer"],Es=["emptyfilter"],Os=["empty"],Ms=["dropdownicon"],Ds=["loadingicon"],Ls=["clearicon"],Vs=["filtericon"],zs=["onicon"],Fs=["officon"],ks=["cancelicon"],Bs=["focusInput"],As=["editableInput"],Ns=["items"],Ps=["scroller"],Hs=["overlay"],Rs=["firstHiddenFocusableEl"],$s=["lastHiddenFocusableEl"],ln=t=>({class:t}),an=t=>({options:t}),rn=(t,l)=>({$implicit:t,options:l}),js=()=>({});function qs(t,l){if(t&1&&(B(0),Ee(1),A()),t&2){let e=r(2);d(),Re(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Qs(t,l){if(t&1&&N(0,24),t&2){let e=r(2);a("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",q(2,jt,e.selectedOption))}}function Gs(t,l){if(t&1&&(v(0,"span"),Ee(1),I()),t&2){let e=r(3);d(),Re(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Ks(t,l){if(t&1&&p(0,Gs,2,1,"span",18),t&2){let e=r(2);a("ngIf",e.isSelectedOptionEmpty())}}function Ws(t,l){if(t&1){let e=Q();v(0,"span",22,3),P("focus",function(n){C(e);let o=r();return x(o.onInputFocus(n))})("blur",function(n){C(e);let o=r();return x(o.onInputBlur(n))})("keydown",function(n){C(e);let o=r();return x(o.onKeyDown(n))}),p(2,qs,2,1,"ng-container",20)(3,Qs,1,4,"ng-container",23)(4,Ks,1,1,"ng-template",null,4,Y),I()}if(t&2){let e=fe(5),i=r();y(i.cx("label")),a("pBind",i.ptm("label"))("pTooltip",i.tooltip)("pTooltipUnstyled",i.unstyled())("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),k("aria-disabled",i.$disabled())("id",i.inputId)("aria-label",i.ariaLabel||(i.label()==="p-emptylabel"?void 0:i.label()))("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.$disabled()?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-required",i.required())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0)("data-p",i.labelDataP),d(2),a("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate)("ngIfElse",e),d(),a("ngIf",(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function Zs(t,l){if(t&1){let e=Q();v(0,"input",25,5),P("input",function(n){C(e);let o=r();return x(o.onEditableInput(n))})("keydown",function(n){C(e);let o=r();return x(o.onKeyDown(n))})("focus",function(n){C(e);let o=r();return x(o.onInputFocus(n))})("blur",function(n){C(e);let o=r();return x(o.onInputBlur(n))}),I()}if(t&2){let e=r();y(e.cx("label")),a("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),k("id",e.inputId)("aria-haspopup","listbox")("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)("data-p",e.labelDataP)}}function Us(t,l){if(t&1){let e=Q();H(),v(0,"svg",28),P("click",function(n){C(e);let o=r(2);return x(o.clear(n))}),I()}if(t&2){let e=r(2);y(e.cx("clearIcon")),a("pBind",e.ptm("clearIcon")),k("data-pc-section","clearicon")}}function Ys(t,l){}function Xs(t,l){t&1&&p(0,Ys,0,0,"ng-template")}function Js(t,l){if(t&1){let e=Q();v(0,"span",29),P("click",function(n){C(e);let o=r(2);return x(o.clear(n))}),p(1,Xs,1,0,null,30),I()}if(t&2){let e=r(2);y(e.cx("clearIcon")),a("pBind",e.ptm("clearIcon")),k("data-pc-section","clearicon"),d(),a("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",q(6,ln,e.cx("clearIcon")))}}function el(t,l){if(t&1&&(B(0),p(1,Us,1,4,"svg",26)(2,Js,2,8,"span",27),A()),t&2){let e=r();d(),a("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),d(),a("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function tl(t,l){t&1&&N(0)}function il(t,l){if(t&1&&(B(0),p(1,tl,1,0,"ng-container",31),A()),t&2){let e=r(2);d(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function nl(t,l){if(t&1&&Z(0,"span",33),t&2){let e=r(3);y(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),a("pBind",e.ptm("loadingIcon"))}}function ol(t,l){if(t&1&&Z(0,"span",33),t&2){let e=r(3);y(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),a("pBind",e.ptm("loadingIcon"))}}function sl(t,l){if(t&1&&(B(0),p(1,nl,1,3,"span",32)(2,ol,1,3,"span",32),A()),t&2){let e=r(2);d(),a("ngIf",e.loadingIcon),d(),a("ngIf",!e.loadingIcon)}}function ll(t,l){if(t&1&&(B(0),p(1,il,2,1,"ng-container",18)(2,sl,3,2,"ng-container",18),A()),t&2){let e=r();d(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),d(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function al(t,l){if(t&1&&Z(0,"span",36),t&2){let e=r(3);y(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),a("pBind",e.ptm("dropdownIcon"))}}function rl(t,l){if(t&1&&(H(),Z(0,"svg",37)),t&2){let e=r(3);y(e.cx("dropdownIcon")),a("pBind",e.ptm("dropdownIcon"))}}function dl(t,l){if(t&1&&(B(0),p(1,al,1,3,"span",34)(2,rl,1,3,"svg",35),A()),t&2){let e=r(2);d(),a("ngIf",e.dropdownIcon),d(),a("ngIf",!e.dropdownIcon)}}function cl(t,l){}function pl(t,l){t&1&&p(0,cl,0,0,"ng-template")}function ml(t,l){if(t&1&&(v(0,"span",36),p(1,pl,1,0,null,30),I()),t&2){let e=r(2);y(e.cx("dropdownIcon")),a("pBind",e.ptm("dropdownIcon")),d(),a("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",q(5,ln,e.cx("dropdownIcon")))}}function hl(t,l){if(t&1&&p(0,dl,3,2,"ng-container",18)(1,ml,2,7,"span",34),t&2){let e=r();a("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),d(),a("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function ul(t,l){t&1&&N(0)}function fl(t,l){t&1&&N(0)}function _l(t,l){if(t&1&&(B(0),p(1,fl,1,0,"ng-container",30),A()),t&2){let e=r(3);d(),a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",q(2,an,e.filterOptions))}}function gl(t,l){if(t&1&&(H(),Z(0,"svg",45)),t&2){let e=r(4);a("pBind",e.ptm("filterIcon"))}}function yl(t,l){}function vl(t,l){t&1&&p(0,yl,0,0,"ng-template")}function bl(t,l){if(t&1&&(v(0,"span",36),p(1,vl,1,0,null,31),I()),t&2){let e=r(4);a("pBind",e.ptm("filterIcon")),d(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Cl(t,l){if(t&1){let e=Q();v(0,"p-iconfield",41)(1,"input",42,10),P("input",function(n){C(e);let o=r(3);return x(o.onFilterInputChange(n))})("keydown",function(n){C(e);let o=r(3);return x(o.onFilterKeyDown(n))})("blur",function(n){C(e);let o=r(3);return x(o.onFilterBlur(n))}),I(),v(3,"p-inputicon",41),p(4,gl,1,1,"svg",43)(5,bl,2,2,"span",44),I()()}if(t&2){let e=r(3);a("pt",e.ptm("pcFilterContainer"))("unstyled",e.unstyled()),d(),y(e.cx("pcFilter")),a("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter"))("unstyled",e.unstyled()),k("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),d(2),a("pt",e.ptm("pcFilterIconContainer"))("unstyled",e.unstyled()),d(),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),d(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function xl(t,l){if(t&1&&(v(0,"div",29),P("click",function(i){return i.stopPropagation()}),p(1,_l,2,4,"ng-container",20)(2,Cl,6,17,"ng-template",null,9,Y),I()),t&2){let e=fe(3),i=r(2);y(i.cx("header")),a("pBind",i.ptm("header")),d(),a("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function Il(t,l){t&1&&N(0)}function Tl(t,l){if(t&1&&p(0,Il,1,0,"ng-container",30),t&2){let e=l.$implicit,i=l.options;r(2);let n=fe(9);a("ngTemplateOutlet",n)("ngTemplateOutletContext",Be(2,rn,e,i))}}function wl(t,l){t&1&&N(0)}function Sl(t,l){if(t&1&&p(0,wl,1,0,"ng-container",30),t&2){let e=l.options,i=r(4);a("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",q(2,an,e))}}function El(t,l){t&1&&(B(0),p(1,Sl,1,4,"ng-template",null,12,Y),A())}function Ol(t,l){if(t&1){let e=Q();v(0,"p-scroller",46,11),P("onLazyLoad",function(n){C(e);let o=r(2);return x(o.onLazyLoad.emit(n))}),p(2,Tl,1,5,"ng-template",null,2,Y)(4,El,3,0,"ng-container",18),I()}if(t&2){let e=r(2);xe(q(9,rt,e.scrollHeight)),a("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),d(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Ml(t,l){t&1&&N(0)}function Dl(t,l){if(t&1&&(B(0),p(1,Ml,1,0,"ng-container",30),A()),t&2){r();let e=fe(9),i=r();d(),a("ngTemplateOutlet",e)("ngTemplateOutletContext",Be(3,rn,i.visibleOptions(),Ye(2,js)))}}function Ll(t,l){if(t&1&&(v(0,"span",36),Ee(1),I()),t&2){let e=r(2).$implicit,i=r(3);y(i.cx("optionGroupLabel")),a("pBind",i.ptm("optionGroupLabel")),d(),Re(i.getOptionGroupLabel(e.optionGroup))}}function Vl(t,l){t&1&&N(0)}function zl(t,l){if(t&1&&(B(0),v(1,"li",50),p(2,Ll,2,4,"span",34)(3,Vl,1,0,"ng-container",30),I(),A()),t&2){let e=r(),i=e.$implicit,n=e.index,o=r().options,s=r(2);d(),y(s.cx("optionGroup")),a("ngStyle",q(8,rt,o.itemSize+"px"))("pBind",s.ptm("optionGroup")),k("id",s.id+"_"+s.getOptionIndex(n,o)),d(),a("ngIf",!s.groupTemplate&&!s._groupTemplate),d(),a("ngTemplateOutlet",s.groupTemplate||s._groupTemplate)("ngTemplateOutletContext",q(10,jt,i.optionGroup))}}function Fl(t,l){if(t&1){let e=Q();B(0),v(1,"p-selectItem",51),P("onClick",function(n){C(e);let o=r().$implicit,s=r(3);return x(s.onOptionSelect(n,o))})("onMouseEnter",function(n){C(e);let o=r().index,s=r().options,c=r(2);return x(c.onOptionMouseEnter(n,c.getOptionIndex(o,s)))}),I(),A()}if(t&2){let e=r(),i=e.$implicit,n=e.index,o=r().options,s=r(2);d(),a("id",s.id+"_"+s.getOptionIndex(n,o))("option",i)("checkmark",s.checkmark)("selected",s.isSelected(i))("label",s.getOptionLabel(i))("disabled",s.isOptionDisabled(i))("template",s.itemTemplate||s._itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(n,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(n,o)))("ariaSetSize",s.ariaSetSize)("index",n)("unstyled",s.unstyled())("scrollerOptions",o)}}function kl(t,l){if(t&1&&p(0,zl,4,12,"ng-container",18)(1,Fl,2,13,"ng-container",18),t&2){let e=l.$implicit,i=r(3);a("ngIf",i.isOptionGroup(e)),d(),a("ngIf",!i.isOptionGroup(e))}}function Bl(t,l){if(t&1&&Ee(0),t&2){let e=r(4);It(" ",e.emptyFilterMessageLabel," ")}}function Al(t,l){t&1&&N(0,null,14)}function Nl(t,l){if(t&1&&p(0,Al,2,0,"ng-container",31),t&2){let e=r(4);a("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function Pl(t,l){if(t&1&&(v(0,"li",50),be(1,Bl,1,1)(2,Nl,1,1,"ng-container"),I()),t&2){let e=r().options,i=r(2);y(i.cx("emptyMessage")),a("ngStyle",q(5,rt,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),d(),Ce(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate?1:2)}}function Hl(t,l){if(t&1&&Ee(0),t&2){let e=r(4);It(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function Rl(t,l){t&1&&N(0,null,15)}function $l(t,l){if(t&1&&p(0,Rl,2,0,"ng-container",31),t&2){let e=r(4);a("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function jl(t,l){if(t&1&&(v(0,"li",50),be(1,Hl,1,1)(2,$l,1,1,"ng-container"),I()),t&2){let e=r().options,i=r(2);y(i.cx("emptyMessage")),a("ngStyle",q(5,rt,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),d(),Ce(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function ql(t,l){if(t&1&&(v(0,"ul",47,13),p(2,kl,2,2,"ng-template",48)(3,Pl,3,7,"li",49)(4,jl,3,7,"li",49),I()),t&2){let e=l.$implicit,i=l.options,n=r(2);xe(i.contentStyle),y(n.cn(n.cx("list"),i.contentStyleClass)),a("pBind",n.ptm("list")),k("id",n.id+"_list")("aria-label",n.listLabel),d(2),a("ngForOf",e),d(),a("ngIf",n.filterValue&&n.isEmpty()),d(),a("ngIf",!n.filterValue&&n.isEmpty())}}function Ql(t,l){t&1&&N(0)}function Gl(t,l){if(t&1){let e=Q();v(0,"div",38)(1,"span",39,6),P("focus",function(n){C(e);let o=r();return x(o.onFirstHiddenFocus(n))}),I(),p(3,ul,1,0,"ng-container",31)(4,xl,4,5,"div",27),v(5,"div",36),p(6,Ol,5,11,"p-scroller",40)(7,Dl,2,6,"ng-container",18)(8,ql,5,10,"ng-template",null,7,Y),I(),p(10,Ql,1,0,"ng-container",31),v(11,"span",39,8),P("focus",function(n){C(e);let o=r();return x(o.onLastHiddenFocus(n))}),I()()}if(t&2){let e=r();y(e.cn(e.cx("overlay"),e.panelStyleClass)),a("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),k("data-p",e.overlayDataP),d(),a("pBind",e.ptm("hiddenFirstFocusableEl")),k("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),d(2),a("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),d(),a("ngIf",e.filter),d(),y(e.cx("listContainer")),Ue("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),a("pBind",e.ptm("listContainer")),d(),a("ngIf",e.virtualScroll),d(),a("ngIf",!e.virtualScroll),d(3),a("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),d(),a("pBind",e.ptm("hiddenLastFocusableEl")),k("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Kl=`
|
|
537
|
+
${on}
|
|
538
|
+
|
|
539
|
+
/* For PrimeNG */
|
|
540
|
+
.p-select-label.p-placeholder {
|
|
541
|
+
color: dt('select.placeholder.color');
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.p-select.ng-invalid.ng-dirty {
|
|
545
|
+
border-color: dt('select.invalid.border.color');
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,
|
|
549
|
+
.p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
|
|
550
|
+
color: dt('select.invalid.placeholder.color');
|
|
551
|
+
}
|
|
552
|
+
`,Wl={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},xt=(()=>{class t extends he{name="select";style=Kl;classes=Wl;static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var dn=new ee("SELECT_INSTANCE"),Zl=new ee("SELECT_ITEM_INSTANCE"),Ul={provide:ci,useExisting:qt(()=>cn),multi:!0},Yl=(()=>{class t extends J{hostName="select";$pcSelectItem=w(Zl,{optional:!0,skipSelf:!0})??void 0;$pcSelect=w(dn,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new S;onMouseEnter=new S;_componentStyle=w(xt);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=E(t)))(n||t)}})();static \u0275cmp=F({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",b],focused:[2,"focused","focused",b],label:"label",disabled:[2,"disabled","disabled",b],visible:[2,"visible","visible",b],itemSize:[2,"itemSize","itemSize",Ae],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",b],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[ie([xt,{provide:ne,useExisting:t}]),M],decls:4,vars:21,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(i,n){i&1&&(v(0,"li",0),P("click",function(s){return n.onOptionClick(s)})("mouseenter",function(s){return n.onOptionMouseEnter(s)}),p(1,ys,3,2,"ng-container",1)(2,vs,2,2,"span",2)(3,bs,1,0,"ng-container",3),I()),i&2&&(y(n.cx("option")),a("id",n.id)("pBind",n.getPTOptions())("ngStyle",q(17,rt,(n.scrollerOptions==null?null:n.scrollerOptions.itemSize)+"px")),k("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-selected",n.selected)("data-p-disabled",n.disabled),d(),a("ngIf",n.checkmark),d(),a("ngIf",!n.template),d(),a("ngTemplateOutlet",n.template)("ngTemplateOutletContext",q(19,jt,n.option)))},dependencies:[se,Oe,Me,$e,G,vi,Ei,Si,De,L],encapsulation:2})}return t})(),cn=(()=>{class t extends Gi{zone;filterService;componentName="Select";bindDirectiveInstance=w(L,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){li(e,this._options())||this._options.set(e)}appendTo=m(void 0);motionOptions=m(void 0);onChange=new S;onFilter=new S;onFocus=new S;onBlur=new S;onClick=new S;onShow=new S;onHide=new S;onClear=new S;onLazyLoad=new S;_componentStyle=w(xt);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=K(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=te(null);_placeholder=te(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=te(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=te(-1);labelId;listId;clicked=te(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Ge.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Ge.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(Ge.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=K(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let n=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(c=>{let g=this.getOptionGroupChildren(c).filter(h=>n?.includes(h));g.length>0&&s.push(tt(j({},c),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...g]}))}),this.flatOptions(s)}return n}return e});label=K(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(n=>this.isOptionValueEqualsModelValue(n));if(i!==-1){let n=e[i];return this.getOptionLabel(n)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,We(()=>{let n=this.modelValue(),o=this.visibleOptions();if(o&&ut(o)){let s=this.findSelectedOptionIndex();if(s!==-1||n===void 0||typeof n=="string"&&n.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[s];else{let c=o.findIndex(_=>this.isSelected(_));c!==-1&&(this.selectedOption=o[c])}}Lt(o)&&(n===void 0||this.isModelValueNotSet())&&ut(this.selectedOption)&&(this.selectedOption=null),n!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||ye("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=Pe(this.overlayViewChild?.overlayViewChild?.nativeElement,'li[data-p-selected="true"]');e&&si(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let s=this.getOptionGroupChildren(n);return s&&s.forEach(c=>i.push(c)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,n=!0,o=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let s=this.getOptionValue(i);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}n&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&ai(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){let n=e.querySelector("label");n&&this._placeholder.set(n.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?Je(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?Je(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,n,o){return this.ptm(o,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return Lt(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?Je(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?Je(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?Je(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&ut(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&me(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=Pe(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-section="listcontainer"]'),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&setTimeout(()=>{this.scroller?.scrollToIndex(i)},10)}else{let i=Pe(this.itemsWrapper,'[data-p-selected="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}onOverlayAfterLeave(e){this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e)}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&ot(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&me(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&me(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&ri(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let n=this.visibleOptions()[i];this.onOptionSelect(e,n,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=Pe(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?Vt(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastOptionIndex(){return Vt(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide()}else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;e.shiftKey?n.setSelectionRange(0,n.value.length):(n.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;if(e.shiftKey)n.setSelectionRange(0,n.value.length);else{let o=n.value.length;n.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())me(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ct(this.overlayViewChild?.el?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;me(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?pt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;me(i)}hasFocusableElements(){return ni(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return n=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,n)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?Pe(this.el.nativeElement,'[data-pc-section="label"]').focus():me(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}get containerDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",[this.size()]:this.size()})}get labelDataP(){return this.cn({placeholder:this.label===this.placeholder,clearable:this.showClear,disabled:this.$disabled(),[this.size()]:this.size(),empty:!this.editable&&!this.selectedItemTemplate&&(!this.label?.()||this.label()==="p-emptylabel"||this.label()?.length===0)})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.$appendTo()]:"overlay-"+this.$appendTo()})}static \u0275fac=function(i){return new(i||t)(Ve(Le),Ve(di))};static \u0275cmp=F({type:t,selectors:[["p-select"]],contentQueries:function(i,n,o){if(i&1&&Fe(o,Cs,4)(o,xs,4)(o,Is,4)(o,Ts,4)(o,ws,4)(o,sn,4)(o,Ss,4)(o,Es,4)(o,Os,4)(o,Ms,4)(o,Ds,4)(o,Ls,4)(o,Vs,4)(o,zs,4)(o,Fs,4)(o,ks,4)(o,He,4),i&2){let s;u(s=f())&&(n.itemTemplate=s.first),u(s=f())&&(n.groupTemplate=s.first),u(s=f())&&(n.loaderTemplate=s.first),u(s=f())&&(n.selectedItemTemplate=s.first),u(s=f())&&(n.headerTemplate=s.first),u(s=f())&&(n.filterTemplate=s.first),u(s=f())&&(n.footerTemplate=s.first),u(s=f())&&(n.emptyFilterTemplate=s.first),u(s=f())&&(n.emptyTemplate=s.first),u(s=f())&&(n.dropdownIconTemplate=s.first),u(s=f())&&(n.loadingIconTemplate=s.first),u(s=f())&&(n.clearIconTemplate=s.first),u(s=f())&&(n.filterIconTemplate=s.first),u(s=f())&&(n.onIconTemplate=s.first),u(s=f())&&(n.offIconTemplate=s.first),u(s=f())&&(n.cancelIconTemplate=s.first),u(s=f())&&(n.templates=s)}},viewQuery:function(i,n){if(i&1&&ke(sn,5)(Bs,5)(As,5)(Ns,5)(Ps,5)(Hs,5)(Rs,5)($s,5),i&2){let o;u(o=f())&&(n.filterViewChild=o.first),u(o=f())&&(n.focusInputViewChild=o.first),u(o=f())&&(n.editableInputViewChild=o.first),u(o=f())&&(n.itemsViewChild=o.first),u(o=f())&&(n.scroller=o.first),u(o=f())&&(n.overlayViewChild=o.first),u(o=f())&&(n.firstHiddenFocusableElementOnOverlay=o.first),u(o=f())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&P("click",function(s){return n.onContainerClick(s)}),i&2&&(k("id",n.id)("data-p",n.containerDataP),y(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",b],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",b],editable:[2,"editable","editable",b],tabindex:[2,"tabindex","tabindex",Ae],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",b],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",b],checkmark:[2,"checkmark","checkmark",b],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",b],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",b],showClear:[2,"showClear","showClear",b],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",b],virtualScroll:[2,"virtualScroll","virtualScroll",b],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Ae],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",b],selectOnFocus:[2,"selectOnFocus","selectOnFocus",b],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",b],autofocusFilter:[2,"autofocusFilter","autofocusFilter",b],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[ie([Ul,xt,{provide:dn,useExisting:t},{provide:ne,useExisting:t}]),ce([L]),M],decls:11,vars:18,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","unstyled","scrollerOptions"]],template:function(i,n){if(i&1){let o=Q();p(0,Ws,6,25,"span",16)(1,Zs,2,20,"input",17)(2,el,3,2,"ng-container",18),v(3,"div",19),p(4,ll,3,2,"ng-container",20)(5,hl,2,2,"ng-template",null,0,Y),I(),v(7,"p-overlay",21,1),Zt("visibleChange",function(c){return C(o),Wt(n.overlayVisible,c)||(n.overlayVisible=c),x(c)}),P("onBeforeEnter",function(c){return n.onOverlayBeforeEnter(c)})("onAfterLeave",function(c){return n.onOverlayAfterLeave(c)})("onHide",function(){return n.hide()}),p(9,Gl,13,23,"ng-template",null,2,Y),I()}if(i&2){let o=fe(6);a("ngIf",!n.editable),d(),a("ngIf",n.editable),d(),a("ngIf",n.isVisibleClearIcon),d(),y(n.cx("dropdown")),a("pBind",n.ptm("dropdown")),k("aria-expanded",n.overlayVisible??!1)("data-pc-section","trigger"),d(),a("ngIf",n.loading)("ngIfElse",o),d(3),a("hostAttrSelector",n.$attrSelector),Kt("visible",n.overlayVisible),a("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("unstyled",n.unstyled())("pt",n.ptm("pcOverlay"))("motionOptions",n.motionOptions())}},dependencies:[se,dt,Oe,Me,$e,Yl,Xi,_i,gi,_t,Oi,Mi,hi,kt,Bt,$t,G,De,L],encapsulation:2,changeDetection:0})}return t})(),vc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=de({type:t});static \u0275inj=re({imports:[cn,G,G]})}return t})();export{kt as a,pa as b,Bt as c,wa as d,Ei as e,Oi as f,_t as g,Qi as h,Gi as i,Pt as j,Ni as k,Ct as l,Xi as m,$t as n,Nd as o,cn as p,vc as q,Mo as r,Nr as s};
|