marketplacepos 5.41.3 → 5.43.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/Marketplace/3rdpartylicenses.txt +123 -123
- package/Marketplace/chunk-24DT5FN2.js +1 -0
- package/Marketplace/{chunk-5MRT2EFE.js → chunk-25OT4I3W.js} +1 -1
- package/Marketplace/chunk-2BUABOHG.js +1 -0
- package/Marketplace/{chunk-7GQIIDFF.js → chunk-2DJWDXTZ.js} +1 -1
- package/Marketplace/chunk-2EL3WEWS.js +1 -0
- package/Marketplace/chunk-2SXRC4IG.js +1 -0
- package/Marketplace/{chunk-KXZCGKQW.js → chunk-2TZBEYNY.js} +1 -1
- package/Marketplace/chunk-2ZTDLZVZ.js +1 -0
- package/Marketplace/chunk-33IXC6UG.js +1 -0
- package/Marketplace/chunk-3Y6LJS2H.js +1 -0
- package/Marketplace/{chunk-7477X7LJ.js → chunk-4CTORK4F.js} +1 -1
- package/Marketplace/{chunk-BUFEIJAI.js → chunk-4M63ID5T.js} +1 -1
- package/Marketplace/chunk-4PZ5Q3HI.js +1 -0
- package/Marketplace/{chunk-RVYGL22E.js → chunk-55OI2SUF.js} +1 -1
- package/Marketplace/chunk-5DIRXS7I.js +1 -0
- package/Marketplace/chunk-5EQNOCXP.js +1 -0
- package/Marketplace/chunk-5QAURMZF.js +222 -0
- package/Marketplace/{chunk-V2OJQHE3.js → chunk-5XI7HWS5.js} +2 -2
- package/Marketplace/chunk-66YHNWRR.js +1 -0
- package/Marketplace/chunk-6BFXOKCB.js +1 -0
- package/Marketplace/chunk-6DZKFXDF.js +1 -0
- package/Marketplace/chunk-6IFZ2TO6.js +1 -0
- package/Marketplace/{chunk-Q72ZXPDP.js → chunk-6LH7FSOW.js} +1 -1
- package/Marketplace/chunk-6LULIB2P.js +2 -0
- package/Marketplace/{chunk-OLSC6KHB.js → chunk-6MPSYC77.js} +1 -1
- package/Marketplace/chunk-6QGSDBR7.js +1 -0
- package/Marketplace/{chunk-BIQHA7UA.js → chunk-6X2OBNJQ.js} +4 -4
- package/Marketplace/chunk-736E275F.js +1 -0
- package/Marketplace/{chunk-IYYVZ6B6.js → chunk-A2YNWIX6.js} +1 -1
- package/Marketplace/chunk-A4F37V57.js +1 -0
- package/Marketplace/{chunk-NMJGLMWI.js → chunk-ABQG3LB5.js} +1 -1
- package/Marketplace/{chunk-77IUCPIQ.js → chunk-ACIMXBIC.js} +1 -1
- package/Marketplace/chunk-AGRVVEIR.js +397 -0
- package/Marketplace/chunk-ALKC77XL.js +78 -0
- package/Marketplace/chunk-ARZ2S6YD.js +1 -0
- package/Marketplace/chunk-AVEGIEYT.js +193 -0
- package/Marketplace/chunk-AVVPZ3NI.js +1 -0
- package/Marketplace/chunk-AZ2FLWCK.js +266 -0
- package/Marketplace/chunk-BAYW2AHI.js +1 -0
- package/Marketplace/chunk-BCM6WRZR.js +5 -0
- package/Marketplace/chunk-BQTUAYGY.js +1 -0
- package/Marketplace/chunk-CFC5CQ3V.js +1 -0
- package/Marketplace/chunk-CLDURV35.js +2 -0
- package/Marketplace/chunk-CRZOIZUQ.js +1 -0
- package/Marketplace/chunk-CSSG7NAJ.js +1 -0
- package/Marketplace/chunk-D66XCOBY.js +1 -0
- package/Marketplace/chunk-DIUEZVRG.js +1 -0
- package/Marketplace/chunk-DJILLV4M.js +1 -0
- package/Marketplace/chunk-DLSU35PZ.js +5 -0
- package/Marketplace/chunk-DMW4DWIM.js +1 -0
- package/Marketplace/{chunk-ZD5LURJS.js → chunk-E2CS7ZMC.js} +1 -1
- package/Marketplace/chunk-ECN3QRMT.js +1 -0
- package/Marketplace/chunk-EU2KAMEK.js +1 -0
- package/Marketplace/chunk-F4GMWHYJ.js +33 -0
- package/Marketplace/chunk-F4HFUSVI.js +1 -0
- package/Marketplace/{chunk-RGR34QZ3.js → chunk-FBZW4Y3J.js} +1 -1
- package/Marketplace/{chunk-6NNAICJE.js → chunk-FWG4H3QG.js} +1 -1
- package/Marketplace/chunk-G4OF4YLE.js +2 -0
- package/Marketplace/chunk-GCECFUOP.js +1 -0
- package/Marketplace/{chunk-UBMI3NQH.js → chunk-GHBGGQNM.js} +1 -1
- package/Marketplace/chunk-GMGCY3OL.js +1 -0
- package/Marketplace/chunk-GOS4RIF2.js +1 -0
- package/Marketplace/{chunk-IEYFOHME.js → chunk-GPC4DECX.js} +1 -1
- package/Marketplace/chunk-GZXQUJKX.js +1 -0
- package/Marketplace/{chunk-TMFFA26Y.js → chunk-HFKKITEW.js} +1 -1
- package/Marketplace/{chunk-KHWTOD6H.js → chunk-HPYTL6TX.js} +1 -1
- package/Marketplace/chunk-HTQJCQ32.js +1 -0
- package/Marketplace/chunk-I5IZPTXZ.js +1 -0
- package/Marketplace/{chunk-GBABJLPQ.js → chunk-IKPRRD5D.js} +1 -1
- package/Marketplace/chunk-IR5OMZTZ.js +1 -0
- package/Marketplace/chunk-ITTTKW6F.js +1 -0
- package/Marketplace/chunk-IUWXRFDI.js +1 -0
- package/Marketplace/{chunk-EGTYAIU5.js → chunk-JOBWFOGC.js} +1 -1
- package/Marketplace/{chunk-PPDHTO44.js → chunk-JRWFZQ5K.js} +1 -1
- package/Marketplace/chunk-JRXB6762.js +252 -0
- package/Marketplace/chunk-JS55A2RS.js +7 -0
- package/Marketplace/chunk-JV4MMNGD.js +79 -0
- package/Marketplace/chunk-K654EZ3I.js +1 -0
- package/Marketplace/chunk-KC3C62UO.js +4 -0
- package/Marketplace/{chunk-GBXNTL4E.js → chunk-KQQCKHF3.js} +1 -1
- package/Marketplace/chunk-KR2UT3GA.js +1 -0
- package/Marketplace/chunk-KWQS4KX7.js +1 -0
- package/Marketplace/{chunk-COBHWPGI.js → chunk-KX5AWR75.js} +1 -1
- package/Marketplace/chunk-KXS76PRS.js +70 -0
- package/Marketplace/chunk-KYIY3VQ6.js +141 -0
- package/Marketplace/{chunk-J7AGLBPL.js → chunk-LHD7CYML.js} +1 -1
- package/Marketplace/chunk-LR4UZ2OS.js +30 -0
- package/Marketplace/{chunk-M3SJUKTG.js → chunk-LSXUXG54.js} +1 -1
- package/Marketplace/chunk-LWSRD5LF.js +1 -0
- package/Marketplace/{chunk-Q2OEJFVT.js → chunk-M5IQRAHV.js} +1 -1
- package/Marketplace/chunk-MKOJVMRR.js +1 -0
- package/Marketplace/chunk-MMT3VFZZ.js +1 -0
- package/Marketplace/{chunk-RIHLYYZU.js → chunk-MQXPOHBV.js} +1 -1
- package/Marketplace/chunk-MTUIRWOB.js +2 -0
- package/Marketplace/chunk-MZI5AYCE.js +1 -0
- package/Marketplace/chunk-NB5XHM62.js +1 -0
- package/Marketplace/{chunk-JBKHY4HH.js → chunk-NRCXYGO3.js} +5 -5
- package/Marketplace/chunk-NTW6FBP5.js +1 -0
- package/Marketplace/chunk-NZA4BEER.js +102 -0
- package/Marketplace/chunk-O55KM5KY.js +1 -0
- package/Marketplace/chunk-O6U5QCHJ.js +1 -0
- package/Marketplace/chunk-OJWFYXZX.js +1 -0
- package/Marketplace/{chunk-G6EG5QJS.js → chunk-OKAPL3YZ.js} +1 -1
- package/Marketplace/chunk-OTFACGUB.js +1 -0
- package/Marketplace/{chunk-WAW37FIG.js → chunk-OZ77CAJD.js} +1 -1
- package/Marketplace/chunk-OZ7LWNOK.js +15 -0
- package/Marketplace/chunk-PB2SJSML.js +1 -0
- package/Marketplace/chunk-PE5AFID4.js +1 -0
- package/Marketplace/{chunk-7TWBIV3T.js → chunk-PO7JVKK3.js} +1 -1
- package/Marketplace/chunk-PW42BQIY.js +1 -0
- package/Marketplace/chunk-PZ4PSWYM.js +3 -0
- package/Marketplace/chunk-QACWANJT.js +1 -0
- package/Marketplace/chunk-QUXUEWEF.js +1 -0
- package/Marketplace/chunk-R22TUWCL.js +15 -0
- package/Marketplace/{chunk-75BDXSG3.js → chunk-R76V3PTN.js} +10 -10
- package/Marketplace/chunk-RCRPQNNW.js +1 -0
- package/Marketplace/chunk-SACERVTF.js +1 -0
- package/Marketplace/chunk-SDKAJBVB.js +1 -0
- package/Marketplace/{chunk-VGXQU74M.js → chunk-SH7KN2AS.js} +1 -1
- package/Marketplace/{chunk-CH2MLZU7.js → chunk-SIYMMMKQ.js} +1 -1
- package/Marketplace/chunk-SLQA5QBT.js +1 -0
- package/Marketplace/chunk-SMCI6XBO.js +1 -0
- package/Marketplace/chunk-SNDG7727.js +1 -0
- package/Marketplace/{chunk-QCZIDOKW.js → chunk-SXLKJLAE.js} +1 -1
- package/Marketplace/{chunk-6IAGGRZN.js → chunk-SYENQYR7.js} +1 -1
- package/Marketplace/chunk-T2IGESWD.js +1 -0
- package/Marketplace/chunk-T3Z5OMIZ.js +1 -0
- package/Marketplace/{chunk-V5WYSCVT.js → chunk-TGMCGROM.js} +1 -1
- package/Marketplace/chunk-TGN4NMQY.js +1 -0
- package/Marketplace/{chunk-OE2JYQHN.js → chunk-TNKPTRB3.js} +1 -1
- package/Marketplace/{chunk-DRSUXHAY.js → chunk-UBB6E4VL.js} +1 -1
- package/Marketplace/chunk-UDIAPGRB.js +1 -0
- package/Marketplace/chunk-UEWZXE4O.js +1 -0
- package/Marketplace/chunk-UF4FKEE7.js +93 -0
- package/Marketplace/chunk-UJYSVGLV.js +1 -0
- package/Marketplace/{chunk-5GX2GLRY.js → chunk-UMY6NG57.js} +1 -1
- package/Marketplace/{chunk-YXFTLQ5M.js → chunk-UPYS4A4M.js} +1 -1
- package/Marketplace/chunk-VRI3CYGG.js +1 -0
- package/Marketplace/{chunk-6XFYITUD.js → chunk-WGXUKTYP.js} +1 -1
- package/Marketplace/{chunk-ZZVNB72Q.js → chunk-WHZ44BAL.js} +1 -1
- package/Marketplace/chunk-WXQDF2MX.js +1 -0
- package/Marketplace/chunk-X5DJBQUZ.js +1 -0
- package/Marketplace/{chunk-MNFHFW3E.js → chunk-XEMNZHW6.js} +1 -1
- package/Marketplace/chunk-XENOOCI4.js +1 -0
- package/Marketplace/{chunk-J3P46Z53.js → chunk-XQGRC7V2.js} +1 -1
- package/Marketplace/{chunk-YR2WEZDG.js → chunk-YPVYJUXS.js} +1 -1
- package/Marketplace/{chunk-VWFLNITX.js → chunk-YR3PNRLA.js} +1 -1
- package/Marketplace/chunk-Z3ITXK3D.js +1 -0
- package/Marketplace/chunk-ZAVDOMSW.js +1 -0
- package/Marketplace/{chunk-GSPHYK6J.js → chunk-ZDYYX736.js} +11 -11
- package/Marketplace/chunk-ZFDUVL4I.js +1 -0
- package/Marketplace/{chunk-GHQH62TZ.js → chunk-ZIOAOUAM.js} +1 -1
- package/Marketplace/chunk-ZNDU44GH.js +51 -0
- package/Marketplace/{chunk-7FUVW73P.js → chunk-ZR5IXNXB.js} +1 -1
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-OO7ZEZW4.js +1 -0
- package/Marketplace/{styles-NJFTKO3E.css → styles-X3FXEB7T.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-26DZ5AMC.js +0 -1
- package/Marketplace/chunk-2BBMPSAE.js +0 -93
- package/Marketplace/chunk-2G6NLWKN.js +0 -1
- package/Marketplace/chunk-3E5FYRN4.js +0 -1
- package/Marketplace/chunk-3PNMJUYQ.js +0 -15
- package/Marketplace/chunk-4AMQ66FW.js +0 -1
- package/Marketplace/chunk-4ASUM4N5.js +0 -1
- package/Marketplace/chunk-4G3QN54S.js +0 -193
- package/Marketplace/chunk-4NRAXW65.js +0 -1
- package/Marketplace/chunk-4RTZASVJ.js +0 -1
- package/Marketplace/chunk-4XMCJ7I5.js +0 -1
- package/Marketplace/chunk-5KMCSNS6.js +0 -2
- package/Marketplace/chunk-5S6SIKR7.js +0 -1
- package/Marketplace/chunk-62PFQNHJ.js +0 -1
- package/Marketplace/chunk-6AKFGBPY.js +0 -4
- package/Marketplace/chunk-6ALHX2I4.js +0 -1
- package/Marketplace/chunk-7XREAR3H.js +0 -1
- package/Marketplace/chunk-AMXLXRQK.js +0 -1
- package/Marketplace/chunk-AWDLMHBL.js +0 -1
- package/Marketplace/chunk-CHZLFJFI.js +0 -3
- package/Marketplace/chunk-CMCNEAGC.js +0 -1
- package/Marketplace/chunk-CPAHXWMO.js +0 -1
- package/Marketplace/chunk-CTN7GW4H.js +0 -1
- package/Marketplace/chunk-CYZQNZDB.js +0 -1
- package/Marketplace/chunk-D54NUPYF.js +0 -153
- package/Marketplace/chunk-DI4V7KMK.js +0 -1
- package/Marketplace/chunk-DPLEMBB4.js +0 -1
- package/Marketplace/chunk-DZ2EE5MV.js +0 -1
- package/Marketplace/chunk-E3HMIPER.js +0 -2
- package/Marketplace/chunk-GJOCO2OS.js +0 -2
- package/Marketplace/chunk-GPEVUTDI.js +0 -2
- package/Marketplace/chunk-GSH5BYZ6.js +0 -1
- package/Marketplace/chunk-HKYVBAMV.js +0 -1
- package/Marketplace/chunk-IIJMZKPL.js +0 -1
- package/Marketplace/chunk-JDEKWXPV.js +0 -1
- package/Marketplace/chunk-JFJCXZD3.js +0 -1
- package/Marketplace/chunk-K2H6WANG.js +0 -1
- package/Marketplace/chunk-KQOYVGBL.js +0 -1
- package/Marketplace/chunk-KVP6OL4J.js +0 -2
- package/Marketplace/chunk-LPXBSHUI.js +0 -180
- package/Marketplace/chunk-MATSRG2L.js +0 -447
- package/Marketplace/chunk-PJ72KMDS.js +0 -1
- package/Marketplace/chunk-PVUSCHKJ.js +0 -1
- package/Marketplace/chunk-PXB4YEY3.js +0 -1
- package/Marketplace/chunk-Q2R4GEW5.js +0 -1
- package/Marketplace/chunk-RBC7ADJF.js +0 -1
- package/Marketplace/chunk-REFJUWLL.js +0 -5
- package/Marketplace/chunk-RIYAYANU.js +0 -1
- package/Marketplace/chunk-T5ONJF63.js +0 -7
- package/Marketplace/chunk-T6QOFDEE.js +0 -1
- package/Marketplace/chunk-U5VX6JLT.js +0 -1
- package/Marketplace/chunk-VAU6MFH7.js +0 -1
- package/Marketplace/chunk-VETHPEVU.js +0 -1
- package/Marketplace/chunk-VJKFHBPN.js +0 -5
- package/Marketplace/chunk-VSEWXNVC.js +0 -291
- package/Marketplace/chunk-X3LH2IJE.js +0 -1
- package/Marketplace/chunk-XM6GN4VF.js +0 -1
- package/Marketplace/chunk-YIUQQGOQ.js +0 -1
- package/Marketplace/chunk-ZHUHOS5T.js +0 -1
- package/Marketplace/main-CCWBPZQH.js +0 -1
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
import{b as Ye}from"./chunk-V2OJQHE3.js";import{a as Be}from"./chunk-6XFYITUD.js";import{a as Ue,c as He,d as Ke,e as We,f as Ze}from"./chunk-LPXBSHUI.js";import{a as W,d as ge,e as Qe,f as Pe,g as he,h as Ce,i as qe,j as je,o as Ge}from"./chunk-D54NUPYF.js";import{$ as Re,J as Te,K as Ae,R as ve,S as ue,Y as te,Z as z,_ as _e,a as U,ea as ie,o as ye,p as $e,q as ee,r as le,s as Le,v as ze}from"./chunk-4G3QN54S.js";import{a as Me,h as Fe,m as Oe,y as me}from"./chunk-DPLEMBB4.js";import{d as H,f as oe,g as q,h as re,i as K,n as j}from"./chunk-GPEVUTDI.js";import{Aa as Se,Ac as m,Ca as M,Dc as ne,Eb as $,Ec as R,Fb as pe,Fc as J,Gc as de,Ib as L,Ic as ke,Jc as Ve,Ka as v,Kb as p,Kc as De,Oc as X,Qc as F,Rc as Q,Vb as C,Wb as a,Xb as Z,Zb as Y,_b as w,ad as k,bc as fe,gc as g,hc as h,ia as ae,ic as x,ja as G,jc as S,ka as se,kc as I,lc as V,mc as E,md as y,nd as B,ob as Ie,pa as P,qb as c,rc as b,sc as s,tc as we,uc as Ee,wb as Ne,xa as ce,xc as T,ya as d,yc as D,za as u,zc as f}from"./chunk-T5ONJF63.js";import{a as A}from"./chunk-K2H6WANG.js";var Je=(()=>{class t extends Pe{pathId;ngOnInit(){this.pathId="url(#"+ue()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=M(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["TimesCircleIcon"]],features:[L],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(Se(),g(0,"svg",0)(1,"g"),x(2,"path",1),h(),g(3,"defs")(4,"clipPath",2),x(5,"rect",3),h()()()),n&2&&(w(i.getClassNames()),C("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),c(),C("clip-path",i.pathId),c(3),a("id",i.pathId))},encapsulation:2})}return t})();var dt=["removeicon"],ut=["*"];function _t(t,r){if(t&1){let e=E();g(0,"img",4),b("error",function(i){d(e);let o=s();return u(o.imageError(i))}),h()}if(t&2){let e=s();a("src",e.image,Ie)("alt",e.alt)}}function gt(t,r){if(t&1&&x(0,"span",6),t&2){let e=s(2);w(e.icon),a("ngClass","p-chip-icon"),C("data-pc-section","icon")}}function ht(t,r){if(t&1&&p(0,gt,1,4,"span",5),t&2){let e=s();a("ngIf",e.icon)}}function ft(t,r){if(t&1&&(g(0,"div",7),R(1),h()),t&2){let e=s();C("data-pc-section","label"),c(),J(e.label)}}function mt(t,r){if(t&1){let e=E();g(0,"span",11),b("click",function(i){d(e);let o=s(3);return u(o.close(i))})("keydown",function(i){d(e);let o=s(3);return u(o.onKeydown(i))}),h()}if(t&2){let e=s(3);w(e.removeIcon),a("ngClass","p-chip-remove-icon"),C("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function yt(t,r){if(t&1){let e=E();g(0,"TimesCircleIcon",12),b("click",function(i){d(e);let o=s(3);return u(o.close(i))})("keydown",function(i){d(e);let o=s(3);return u(o.onKeydown(i))}),h()}if(t&2){let e=s(3);w("p-chip-remove-icon"),C("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function Tt(t,r){if(t&1&&(S(0),p(1,mt,1,5,"span",9)(2,yt,1,4,"TimesCircleIcon",10),I()),t&2){let e=s(2);c(),a("ngIf",e.removeIcon),c(),a("ngIf",!e.removeIcon)}}function vt(t,r){}function Ct(t,r){t&1&&p(0,vt,0,0,"ng-template")}function bt(t,r){if(t&1){let e=E();g(0,"span",13),b("click",function(i){d(e);let o=s(2);return u(o.close(i))})("keydown",function(i){d(e);let o=s(2);return u(o.onKeydown(i))}),p(1,Ct,1,0,null,14),h()}if(t&2){let e=s(2);C("data-pc-section","removeicon")("aria-label",e.removeAriaLabel),c(),a("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function xt(t,r){if(t&1&&(S(0),p(1,Tt,3,2,"ng-container",3)(2,bt,2,3,"span",8),I()),t&2){let e=s();c(),a("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),c(),a("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var St=({dt:t})=>`
|
|
2
|
-
.p-chip {
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
background: ${t("chip.background")};
|
|
6
|
-
color: ${t("chip.color")};
|
|
7
|
-
border-radius: ${t("chip.border.radius")};
|
|
8
|
-
padding: ${t("chip.padding.y")} ${t("chip.padding.x")};
|
|
9
|
-
gap: ${t("chip.gap")};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.p-chip-icon {
|
|
13
|
-
color: ${t("chip.icon.color")};
|
|
14
|
-
font-size: ${t("chip.icon.font.size")};
|
|
15
|
-
width: ${t("chip.icon.size")};
|
|
16
|
-
height: ${t("chip.icon.size")};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.p-chip-image {
|
|
20
|
-
border-radius: 50%;
|
|
21
|
-
width: ${t("chip.image.width")};
|
|
22
|
-
height: ${t("chip.image.height")};
|
|
23
|
-
margin-left: calc(-1 * ${t("chip.padding.y")});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-chip:has(.p-chip-remove-icon) {
|
|
27
|
-
padding-inline-end: ${t("chip.padding.y")};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-chip:has(.p-chip-image) {
|
|
31
|
-
padding-top: calc(${t("chip.padding.y")} / 2);
|
|
32
|
-
padding-bottom: calc(${t("chip.padding.y")} / 2);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-chip-remove-icon {
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
font-size: ${t("chip.remove.icon.font.size")};
|
|
38
|
-
width: ${t("chip.remove.icon.size")};
|
|
39
|
-
height: ${t("chip.remove.icon.size")};
|
|
40
|
-
color: ${t("chip.remove.icon.color")};
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
transition: outline-color ${t("chip.transition.duration")}, box-shadow ${t("chip.transition.duration")};
|
|
43
|
-
outline-color: transparent;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.p-chip-remove-icon:focus-visible {
|
|
47
|
-
box-shadow: ${t("chip.remove.icon.focus.ring.shadow")};
|
|
48
|
-
outline: ${t("chip.remove.icon.focus.ring.width")} ${t("chip.remove.icon.focus.ring.style")} ${t("chip.remove.icon.focus.ring.color")};
|
|
49
|
-
outline-offset: ${t("chip.remove.icon.focus.ring.offset")};
|
|
50
|
-
}
|
|
51
|
-
`,It={root:"p-chip p-component",image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},Xe=(()=>{class t extends ie{name="chip";theme=St;classes=It;static \u0275fac=(()=>{let e;return function(i){return(e||(e=M(t)))(i||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var tt=(()=>{class t extends W{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new v;onImageError=new v;visible=!0;get removeAriaLabel(){return this.config.getTranslation(_e.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([n,i])=>this[`_${n}`]!==i&&(this[`_${n}`]=i))}_chipProps;_componentStyle=P(Xe);removeIconTemplate;templates;_removeIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"removeicon":this._removeIconTemplate=e.template;break;default:this._removeIconTemplate=e.template;break}})}ngOnChanges(e){if(super.ngOnChanges(e),e.chipProps&&e.chipProps.currentValue){let{currentValue:n}=e.chipProps;n.label!==void 0&&(this.label=n.label),n.icon!==void 0&&(this.icon=n.icon),n.image!==void 0&&(this.image=n.image),n.alt!==void 0&&(this.alt=n.alt),n.style!==void 0&&(this.style=n.style),n.styleClass!==void 0&&(this.styleClass=n.styleClass),n.removable!==void 0&&(this.removable=n.removable),n.removeIcon!==void 0&&(this.removeIcon=n.removeIcon)}}containerClass(){let e="p-chip p-component";return this.styleClass&&(e+=` ${this.styleClass}`),e}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=M(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-chip"]],contentQueries:function(n,i,o){if(n&1&&(T(o,dt,4),T(o,te,4)),n&2){let l;f(l=m())&&(i.removeIconTemplate=l.first),f(l=m())&&(i.templates=l)}},hostVars:9,hostBindings:function(n,i){n&2&&(C("data-pc-name","chip")("aria-label",i.label)("data-pc-section","root"),Y(i.style),w(i.containerClass()),Z("display",!i.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",y],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[X([Xe]),L,ce],ngContentSelectors:ut,decls:6,vars:4,consts:[["iconTemplate",""],["class","p-chip-image",3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-label",4,"ngIf"],[4,"ngIf"],[1,"p-chip-image",3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-label"],["tabindex","0","class","p-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"p-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(n,i){if(n&1&&(we(),Ee(0),p(1,_t,1,2,"img",1)(2,ht,1,1,"ng-template",null,0,k)(4,ft,2,2,"div",2)(5,xt,3,2,"ng-container",3)),n&2){let o=ne(3);c(),a("ngIf",i.image)("ngIfElse",o),c(3),a("ngIf",i.label),c(),a("ngIf",i.removable)}},dependencies:[j,H,q,K,Je,z],encapsulation:2,changeDetection:0})}return t})();var ot=t=>({height:t}),rt=t=>({"p-tree-node-droppoint-active":t}),Nt=(t,r)=>({$implicit:t,loading:r}),wt=(t,r)=>({$implicit:t,partialSelected:r,class:"p-tree-node-checkbox"}),lt=t=>({$implicit:t});function Et(t,r){if(t&1){let e=E();g(0,"li",11),b("drop",function(i){d(e);let o=s(2);return u(o.onDropPoint(i,-1))})("dragover",function(i){d(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){d(e);let o=s(2);return u(o.onDropPointDragEnter(i,-1))})("dragleave",function(i){d(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),h()}if(t&2){let e=s(2);a("ngClass",F(2,rt,e.draghoverPrev)),C("aria-hidden",!0)}}function kt(t,r){t&1&&x(0,"ChevronRightIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Vt(t,r){t&1&&x(0,"ChevronDownIcon",13),t&2&&a("styleClass","p-tree-node-toggle-icon")}function Dt(t,r){if(t&1&&(S(0),p(1,kt,1,1,"ChevronRightIcon",12)(2,Vt,1,1,"ChevronDownIcon",12),I()),t&2){let e=s(3);c(),a("ngIf",!e.node.expanded),c(),a("ngIf",e.node.expanded)}}function Mt(t,r){t&1&&(S(0),x(1,"SpinnerIcon",13),I()),t&2&&(c(),a("styleClass","pi-spin p-tree-node-toggle-icon"))}function Ft(t,r){if(t&1&&(S(0),p(1,Dt,3,2,"ng-container",5)(2,Mt,2,1,"ng-container",5),I()),t&2){let e=s(2);c(),a("ngIf",!e.node.loading),c(),a("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function Ot(t,r){}function $t(t,r){t&1&&p(0,Ot,0,0,"ng-template")}function Lt(t,r){if(t&1&&(g(0,"span",14),p(1,$t,1,0,null,15),h()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",Q(2,Nt,e.node.expanded,e.node.loading))}}function zt(t,r){}function At(t,r){t&1&&p(0,zt,0,0,"ng-template")}function Rt(t,r){if(t&1&&p(0,At,1,0,null,15),t&2){let e=s(4);a("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",Q(2,wt,e.isSelected(),e.node.partialSelected))}}function Qt(t,r){t&1&&(S(0),p(1,Rt,1,5,"ng-template",null,0,k),I())}function Ut(t,r){if(t&1){let e=E();g(0,"p-checkbox",16),b("click",function(i){return d(e),u(i.preventDefault())}),p(1,Qt,3,0,"ng-container",5),h()}if(t&2){let e=s(2);a("ngModel",e.isSelected())("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1),C("data-p-partialchecked",e.node.partialSelected),c(),a("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function Pt(t,r){if(t&1&&x(0,"span"),t&2){let e=s(2);w(e.getIcon())}}function Bt(t,r){if(t&1&&(g(0,"span"),R(1),h()),t&2){let e=s(2);c(),J(e.node.label)}}function Ht(t,r){t&1&&V(0)}function qt(t,r){if(t&1&&(g(0,"span"),p(1,Ht,1,0,"ng-container",15),h()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",F(2,lt,e.node))}}function Kt(t,r){if(t&1&&x(0,"p-treeNode",19),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(3);a("node",e)("parentNode",l.node)("firstChild",n)("lastChild",i)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function jt(t,r){if(t&1&&(g(0,"ul",17),p(1,Kt,1,8,"p-treeNode",18),h()),t&2){let e=s(2);Z("display",e.node.expanded?"flex":"none"),c(),a("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Wt(t,r){if(t&1){let e=E();g(0,"li",11),b("drop",function(i){d(e);let o=s(2);return u(o.onDropPoint(i,1))})("dragover",function(i){d(e);let o=s(2);return u(o.onDropPointDragOver(i))})("dragenter",function(i){d(e);let o=s(2);return u(o.onDropPointDragEnter(i,1))})("dragleave",function(i){d(e);let o=s(2);return u(o.onDropPointDragLeave(i))}),h()}if(t&2){let e=s(2);a("ngClass",F(2,rt,e.draghoverNext)),C("aria-hidden",!0)}}function Gt(t,r){if(t&1){let e=E();p(0,Et,1,4,"li",1),g(1,"li",2),b("keydown",function(i){d(e);let o=s();return u(o.onKeyDown(i))}),g(2,"div",3),b("click",function(i){d(e);let o=s();return u(o.onNodeClick(i))})("contextmenu",function(i){d(e);let o=s();return u(o.onNodeRightClick(i))})("dblclick",function(i){d(e);let o=s();return u(o.onNodeDblClick(i))})("touchend",function(){d(e);let i=s();return u(i.onNodeTouchEnd())})("drop",function(i){d(e);let o=s();return u(o.onDropNode(i))})("dragover",function(i){d(e);let o=s();return u(o.onDropNodeDragOver(i))})("dragenter",function(i){d(e);let o=s();return u(o.onDropNodeDragEnter(i))})("dragleave",function(i){d(e);let o=s();return u(o.onDropNodeDragLeave(i))})("dragstart",function(i){d(e);let o=s();return u(o.onDragStart(i))})("dragend",function(i){d(e);let o=s();return u(o.onDragStop(i))}),g(3,"button",4),b("click",function(i){d(e);let o=s();return u(o.toggle(i))}),p(4,Ft,3,2,"ng-container",5)(5,Lt,2,5,"span",6),h(),p(6,Ut,2,8,"p-checkbox",7)(7,Pt,1,2,"span",8),g(8,"span",9),p(9,Bt,2,1,"span",5)(10,qt,2,4,"span",5),h()(),p(11,jt,2,4,"ul",10),h(),p(12,Wt,1,4,"li",1)}if(t&2){let e=s();a("ngIf",e.tree.droppableNodes),c(),Y(e.node.style),w(e.node.styleClass),a("ngClass",e.nodeClass)("ngStyle",F(29,ot,e.itemSize+"px")),C("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),c(),Z("padding-left",e.level*e.indentation+"rem"),a("ngClass",e.nodeContentClass)("draggable",e.tree.draggableNodes),c(),C("data-pc-section","toggler"),c(),a("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.selectionMode=="checkbox"),c(),a("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(2),a("ngIf",!e.tree.getTemplateForNode(e.node)),c(),a("ngIf",e.tree.getTemplateForNode(e.node)),c(),a("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded),c(),a("ngIf",e.tree.droppableNodes&&e.lastChild)}}var it=["filter"],Zt=["node"],Yt=["header"],Jt=["footer"],Xt=["loader"],ei=["empty"],ti=["togglericon"],ii=["checkboxicon"],ni=["loadingicon"],oi=["filtericon"],ri=["scroller"],li=["wrapper"],ai=t=>({options:t});function si(t,r){if(t&1&&x(0,"i"),t&2){let e=s(2);w("p-tree-loading-icon pi-spin "+e.loadingIcon)}}function ci(t,r){t&1&&x(0,"SpinnerIcon",16),t&2&&a("spin",!0)("styleClass","p-tree-loading-icon")}function pi(t,r){}function di(t,r){t&1&&p(0,pi,0,0,"ng-template")}function ui(t,r){if(t&1&&(g(0,"span",17),p(1,di,1,0,null,9),h()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function _i(t,r){if(t&1&&(S(0),p(1,ci,1,2,"SpinnerIcon",14)(2,ui,2,1,"span",15),I()),t&2){let e=s(2);c(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function gi(t,r){if(t&1&&(g(0,"div",12),p(1,si,1,2,"i",13)(2,_i,3,2,"ng-container",10),h()),t&2){let e=s();c(),a("ngIf",e.loadingIcon),c(),a("ngIf",!e.loadingIcon)}}function hi(t,r){t&1&&V(0)}function fi(t,r){t&1&&V(0)}function mi(t,r){if(t&1&&p(0,fi,1,0,"ng-container",18),t&2){let e=s();a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",F(2,lt,e.filterOptions))}}function yi(t,r){t&1&&x(0,"SearchIcon",21)}function Ti(t,r){}function vi(t,r){t&1&&p(0,Ti,0,0,"ng-template")}function Ci(t,r){if(t&1&&(g(0,"span"),p(1,vi,1,0,null,9),h()),t&2){let e=s(3);c(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function bi(t,r){if(t&1){let e=E();g(0,"p-iconField")(1,"input",19,0),b("keydown.enter",function(i){return d(e),u(i.preventDefault())})("input",function(i){d(e);let o=s(2);return u(o._filter(i.target.value))}),h(),g(3,"p-inputIcon"),p(4,yi,1,0,"SearchIcon",20)(5,Ci,2,1,"span",10),h()()}if(t&2){let e=s(2);c(),a("pAutoFocus",e.filterInputAutoFocus),C("placeholder",e.filterPlaceholder),c(3),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function xi(t,r){if(t&1&&p(0,bi,6,4,"p-iconField",10),t&2){let e=s();a("ngIf",e.filter)}}function Si(t,r){if(t&1&&x(0,"p-treeNode",27,3),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(2).options,_=s(3);a("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",n)("lastChild",i)("index",_.getIndex(l,o))("itemSize",l.itemSize)("indentation",_.indentation)("loadingMode",_.loadingMode)}}function Ii(t,r){if(t&1&&(g(0,"ul",25),p(1,Si,2,10,"p-treeNode",26),h()),t&2){let e=s(),n=e.$implicit,i=e.options,o=s(3);Y(i.contentStyle),a("ngClass",i.contentStyleClass),C("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(),a("ngForOf",n)("ngForTrackBy",o.trackBy)}}function Ni(t,r){if(t&1&&p(0,Ii,2,7,"ul",24),t&2){let e=r.$implicit;a("ngIf",e)}}function wi(t,r){t&1&&V(0)}function Ei(t,r){if(t&1&&p(0,wi,1,0,"ng-container",18),t&2){let e=r.options,n=s(4);a("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",F(2,ai,e))}}function ki(t,r){t&1&&(S(0),p(1,Ei,1,4,"ng-template",null,4,k),I())}function Vi(t,r){if(t&1){let e=E();g(0,"p-scroller",23,1),b("onScroll",function(i){d(e);let o=s(2);return u(o.onScroll.emit(i))})("onScrollIndexChange",function(i){d(e);let o=s(2);return u(o.onScrollIndexChange.emit(i))})("onLazyLoad",function(i){d(e);let o=s(2);return u(o.onLazyLoad.emit(i))}),p(2,Ni,1,1,"ng-template",null,2,k)(4,ki,3,0,"ng-container",10),h()}if(t&2){let e=s(2);Y(F(9,ot,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),a("items",e.serializedValue)("tabindex",-1)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualNodeHeight)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Di(t,r){if(t&1&&x(0,"p-treeNode",32),t&2){let e=r.$implicit,n=r.first,i=r.last,o=r.index,l=s(4);a("node",e)("firstChild",n)("lastChild",i)("index",o)("level",0)("loadingMode",l.loadingMode)}}function Mi(t,r){if(t&1&&(g(0,"ul",30),p(1,Di,1,6,"p-treeNode",31),h()),t&2){let e=s(3);C("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(),a("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function Fi(t,r){if(t&1&&(S(0),g(1,"div",28,5),p(3,Mi,2,4,"ul",29),h(),I()),t&2){let e=s(2);c(),Z("max-height",e.scrollHeight),c(2),a("ngIf",e.getRootNode())}}function Oi(t,r){if(t&1&&(S(0),p(1,Vi,5,11,"p-scroller",22)(2,Fi,4,3,"ng-container",10),I()),t&2){let e=s();c(),a("ngIf",e.virtualScroll),c(),a("ngIf",!e.virtualScroll)}}function $i(t,r){if(t&1&&(S(0),R(1),I()),t&2){let e=s(2);c(),de(" ",e.emptyMessageLabel," ")}}function Li(t,r){}function zi(t,r){t&1&&p(0,Li,0,0,"ng-template",null,6,k)}function Ai(t,r){if(t&1&&(g(0,"div",33),p(1,$i,2,1,"ng-container",34)(2,zi,2,0,null,9),h()),t&2){let e=s();c(),a("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),a("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Ri(t,r){t&1&&V(0)}var Qi=({dt:t})=>`
|
|
52
|
-
.p-tree {
|
|
53
|
-
background: ${t("tree.background")};
|
|
54
|
-
color: ${t("tree.color")};
|
|
55
|
-
padding: ${t("tree.padding")};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.p-tree-root-children,
|
|
59
|
-
.p-tree-node-children {
|
|
60
|
-
display: flex;
|
|
61
|
-
list-style-type: none;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
margin: 0;
|
|
64
|
-
gap: ${t("tree.gap")};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.p-tree-root-children {
|
|
68
|
-
padding: 0;
|
|
69
|
-
padding-block-start: ${t("tree.gap")};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.p-tree-node-children {
|
|
73
|
-
padding-block-start: ${t("tree.gap")};
|
|
74
|
-
padding-inline-start: ${t("tree.indent")};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.p-tree-node {
|
|
78
|
-
padding: 0;
|
|
79
|
-
outline: 0 none;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.p-tree-node-content {
|
|
83
|
-
border-radius: ${t("tree.node.border.radius")};
|
|
84
|
-
padding: ${t("tree.node.padding")};
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
outline-color: transparent;
|
|
88
|
-
color: ${t("tree.node.color")};
|
|
89
|
-
gap: ${t("tree.node.gap")};
|
|
90
|
-
transition: background ${t("tree.transition.duration")}, color ${t("tree.transition.duration")}, outline-color ${t("tree.transition.duration")}, box-shadow ${t("tree.transition.duration")};
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.p-tree-node:focus-visible > .p-tree-node-content {
|
|
94
|
-
box-shadow: ${t("tree.node.focus.ring.shadow")};
|
|
95
|
-
outline: ${t("tree.node.focus.ring.width")} ${t("tree.node.focus.ring.style")} ${t("tree.node.focus.ring.color")};
|
|
96
|
-
outline-offset: ${t("tree.node.focus.ring.offset")};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover {
|
|
100
|
-
background: ${t("tree.node.hover.background")};
|
|
101
|
-
color: ${t("tree.node.hover.color")};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover .p-tree-node-icon {
|
|
105
|
-
color: ${t("tree.node.icon.hover.color")};
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.p-tree-node-content.p-tree-node-selected {
|
|
109
|
-
background: ${t("tree.node.selected.background")};
|
|
110
|
-
color: ${t("tree.node.selected.color")};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button {
|
|
114
|
-
color: inherit;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.p-tree-node-toggle-button {
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
user-select: none;
|
|
120
|
-
display: inline-flex;
|
|
121
|
-
align-items: center;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
overflow: hidden;
|
|
124
|
-
position: relative;
|
|
125
|
-
flex-shrink: 0;
|
|
126
|
-
width: ${t("tree.node.toggle.button.size")};
|
|
127
|
-
height: ${t("tree.node.toggle.button.size")};
|
|
128
|
-
color: ${t("tree.node.toggle.button.color")};
|
|
129
|
-
border: 0 none;
|
|
130
|
-
background: transparent;
|
|
131
|
-
border-radius: ${t("tree.node.toggle.button.border.radius")};
|
|
132
|
-
transition: background ${t("tree.transition.duration")}, color ${t("tree.transition.duration")}, border-color ${t("tree.transition.duration")}, outline-color ${t("tree.transition.duration")}, box-shadow ${t("tree.transition.duration")};
|
|
133
|
-
outline-color: transparent;
|
|
134
|
-
padding: 0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.p-tree-node-toggle-button:enabled:hover {
|
|
138
|
-
background: ${t("tree.node.toggle.button.hover.background")};
|
|
139
|
-
color: ${t("tree.node.toggle.button.hover.color")};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button:hover {
|
|
143
|
-
background: ${t("tree.node.toggle.button.selected.hover.background")};
|
|
144
|
-
color: ${t("tree.node.toggle.button.selected.hover.color")};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.p-tree-root {
|
|
148
|
-
overflow: auto;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.p-tree-node-selectable {
|
|
152
|
-
cursor: pointer;
|
|
153
|
-
user-select: none;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.p-tree-node-leaf > .p-tree-node-content .p-tree-node-toggle-button {
|
|
157
|
-
visibility: hidden;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.p-tree-node-icon {
|
|
161
|
-
color: ${t("tree.node.icon.color")};
|
|
162
|
-
transition: color ${t("tree.transition.duration")};
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.p-tree-node-content.p-tree-node-selected .p-tree-node-icon {
|
|
166
|
-
color: ${t("tree.node.icon.selected.color")};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.p-tree-filter-input {
|
|
170
|
-
width: 100%;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.p-tree-loading {
|
|
174
|
-
position: relative;
|
|
175
|
-
height: 100%;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.p-tree-loading-icon {
|
|
179
|
-
font-size: ${t("tree.loading.icon.size")};
|
|
180
|
-
width: ${t("tree.loading.icon.size")};
|
|
181
|
-
height: ${t("tree.loading.icon.size")};
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.p-tree .p-tree-mask {
|
|
185
|
-
position: absolute;
|
|
186
|
-
z-index: 1;
|
|
187
|
-
display: flex;
|
|
188
|
-
align-items: center;
|
|
189
|
-
justify-content: center;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.p-tree-flex-scrollable {
|
|
193
|
-
display: flex;
|
|
194
|
-
flex: 1;
|
|
195
|
-
height: 100%;
|
|
196
|
-
flex-direction: column;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.p-tree-flex-scrollable .p-tree-root {
|
|
200
|
-
flex: 1;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/* For PrimeNG */
|
|
204
|
-
.p-tree .p-tree-node-droppoint {
|
|
205
|
-
height: 4px;
|
|
206
|
-
list-style-type: none;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.p-tree .p-tree-node-droppoint-active {
|
|
210
|
-
border: 0 none;
|
|
211
|
-
background-color: ${t("primary.color")};
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.p-tree-node-content.p-tree-node-dragover {
|
|
215
|
-
background: ${t("tree.node.hover.background")};
|
|
216
|
-
color: ${t("tree.node.hover.color")};
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.p-tree-node-content.p-tree-node-dragover .p-tree-node-icon {
|
|
220
|
-
color: ${t("tree.node.icon.hover.color")};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.p-tree-horizontal {
|
|
224
|
-
width: auto;
|
|
225
|
-
padding-inline-start: 0;
|
|
226
|
-
padding-inline-end: 0;
|
|
227
|
-
overflow: auto;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.p-tree.p-tree-horizontal table,
|
|
231
|
-
.p-tree.p-tree-horizontal tr,
|
|
232
|
-
.p-tree.p-tree-horizontal td {
|
|
233
|
-
border-collapse: collapse;
|
|
234
|
-
margin: 0;
|
|
235
|
-
padding: 0;
|
|
236
|
-
vertical-align: middle;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.p-tree-horizontal .p-tree-node-content {
|
|
240
|
-
font-weight: normal;
|
|
241
|
-
padding: 0.4em 1em 0.4em 0.2em;
|
|
242
|
-
display: flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.p-tree-horizontal .p-tree-node-parent .p-tree-node-content {
|
|
247
|
-
font-weight: normal;
|
|
248
|
-
white-space: nowrap;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.p-tree.p-tree-horizontal .p-tree-node.p-tree-node-leaf,
|
|
252
|
-
.p-tree.p-tree-horizontal .p-tree-node.p-tree-node-collapsed {
|
|
253
|
-
padding-inline-end: 0;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.p-tree.p-tree-horizontal .p-tree-node-children {
|
|
257
|
-
padding: 0;
|
|
258
|
-
margin: 0;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.p-tree.p-tree-horizontal .p-tree-node-connector {
|
|
262
|
-
width: 1px;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.p-tree.p-tree-horizontal .p-tree-node-connector-table {
|
|
266
|
-
height: 100%;
|
|
267
|
-
width: 1px;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.p-tree.p-tree-horizontal table {
|
|
271
|
-
height: 0;
|
|
272
|
-
}
|
|
273
|
-
`,Ui={root:({instance:t})=>({"p-tree p-component":!0,"p-tree-selectable":t.selectionMode!=null,"p-tree-loading":t.loading,"p-tree-flex-scrollable":t.scrollHeight==="flex","p-tree-node-dragover":t.dragHover}),mask:"p-tree-mask p-overlay-mask",loadingIcon:"p-tree-loading-icon",pcFilterInput:"p-tree-filter-input",wrapper:"p-tree-root",rootChildren:"p-tree-root-children",node:({instance:t})=>({"p-tree-node":!0,"p-tree-node-leaf":t.isLeaf()}),nodeContent:({instance:t})=>({"p-tree-node-content":!0,[t.styleClass]:!!t.styleClass,"p-tree-node-selectable":t.selectable,"p-tree-node-dragover":t.draghoverNode,"p-tree-node-selected":t.selectionMode==="checkbox"&&t.tree.highlightOnSelect?t.checked:t.selected}),nodeToggleButton:"p-tree-node-toggle-button",nodeToggleIcon:"p-tree-node-toggle-icon",nodeCheckbox:"p-tree-node-checkbox",nodeIcon:"p-tree-node-icon",nodeLabel:"p-tree-node-label",nodeChildren:"p-tree-node-children"},nt=(()=>{class t extends ie{name="tree";theme=Qi;classes=Ui;static \u0275fac=(()=>{let e;return function(i){return(e||(e=M(t)))(i||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var Pi=(()=>{class t extends W{static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=P(ae(()=>xe));timeout;draghoverPrev;draghoverNext;draghoverNode;get selected(){return this.tree.selectionMode==="single"||this.tree.selectionMode==="multiple"?this.isSelected():void 0}get checked(){return this.tree.selectionMode==="checkbox"?this.isSelected():void 0}get nodeClass(){return this.tree._componentStyle.classes.node({instance:this})}get nodeContentClass(){return this.tree._componentStyle.classes.nodeContent({instance:this})}get selectable(){return this.node.selectable===!1?!1:this.tree.selectionMode!=null}ngOnInit(){super.ngOnInit(),this.node.parent=this.parentNode;let n=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!n&&(this.setAllNodesTabIndexes(),this.tree.syncNodeOption(this.node,this.tree.value,"parent",this.tree.getNodeWithKey(this.parentNode.key,this.tree.value)))}getIcon(){let e;return this.node.icon?e=this.node.icon:e=this.node.expanded&&this.node.children&&this.node.children?.length?this.node.expandedIcon:this.node.collapsedIcon,t.ICON_CLASS+" "+e+" p-tree-node-icon"}isLeaf(){return this.tree.isNodeLeaf(this.node)}toggle(e){this.node.expanded?this.collapse(e):this.expand(e),e.stopPropagation()}expand(e){this.node.expanded=!0,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeExpand.emit({originalEvent:e,node:this.node})}collapse(e){this.node.expanded=!1,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeCollapse.emit({originalEvent:e,node:this.node})}onNodeClick(e){this.tree.onNodeClick(e,this.node)}onNodeKeydown(e){e.key==="Enter"&&this.tree.onNodeClick(e,this.node)}onNodeTouchEnd(){this.tree.onNodeTouchEnd()}onNodeRightClick(e){this.tree.onNodeRightClick(e,this.node)}onNodeDblClick(e){this.tree.onNodeDblClick(e,this.node)}isSelected(){return this.tree.isSelected(this.node)}isSameNode(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}onDropPoint(e,n){e.preventDefault();let i=this.tree.dragNode,o=this.tree.dragNodeIndex,l=this.tree.dragNodeScope,_=this.tree.dragNodeTree===this.tree?n===1||o!==this.index-1:!0;if(this.tree.allowDrop(i,this.node,l)&&_){let N=A({},this.createDropPointEventMetadata(n));this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index,accept:()=>{this.processPointDrop(N)}}):(this.processPointDrop(N),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index}))}this.draghoverPrev=!1,this.draghoverNext=!1}processPointDrop(e){let n=e.dropNode.parent?e.dropNode.parent.children:this.tree.value;e.dragNodeSubNodes.splice(e.dragNodeIndex,1);let i=this.index;e.position<0?(i=e.dragNodeSubNodes===n?e.dragNodeIndex>e.index?e.index:e.index-1:e.index,n.splice(i,0,e.dragNode)):(i=n.length,n.push(e.dragNode)),this.tree.dragDropService.stopDrag({node:e.dragNode,subNodes:e.dropNode.parent?e.dropNode.parent.children:this.tree.value,index:e.dragNodeIndex})}createDropPointEventMetadata(e){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node,index:this.index,position:e}}onDropPointDragOver(e){e.dataTransfer.dropEffect="move",e.preventDefault()}onDropPointDragEnter(e,n){this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(n<0?this.draghoverPrev=!0:this.draghoverNext=!0)}onDropPointDragLeave(e){this.draghoverPrev=!1,this.draghoverNext=!1}onDragStart(e){this.tree.draggableNodes&&this.node.draggable!==!1?(e.dataTransfer.setData("text","data"),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index,scope:this.tree.draggableScope})):e.preventDefault()}onDragStop(e){this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index})}onDropNodeDragOver(e){e.dataTransfer.dropEffect="move",this.tree.droppableNodes&&(e.preventDefault(),e.stopPropagation())}onDropNode(e){if(this.tree.droppableNodes&&this.node?.droppable!==!1){let n=this.tree.dragNode;if(this.tree.allowDrop(n,this.node,this.tree.dragNodeScope)){let i=A({},this.createDropNodeEventMetadata());this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:this.node,index:this.index,accept:()=>{this.processNodeDrop(i)}}):(this.processNodeDrop(i),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:this.node,index:this.index}))}}e.preventDefault(),e.stopPropagation(),this.draghoverNode=!1}createDropNodeEventMetadata(){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node}}processNodeDrop(e){let n=e.dragNodeIndex;e.dragNodeSubNodes.splice(n,1),e.dropNode.children?e.dropNode.children.push(e.dragNode):e.dropNode.children=[e.dragNode],this.tree.dragDropService.stopDrag({node:e.dragNode,subNodes:e.dropNode.parent?e.dropNode.parent.children:this.tree.value,index:n})}onDropNodeDragEnter(e){this.tree.droppableNodes&&this.node?.droppable!==!1&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(this.draghoverNode=!0)}onDropNodeDragLeave(e){if(this.tree.droppableNodes){let n=e.currentTarget.getBoundingClientRect();(e.x>n.left+n.width||e.x<n.left||e.y>=Math.floor(n.top+n.height)||e.y<n.top)&&(this.draghoverNode=!1)}}onKeyDown(e){if(!(!this.isSameNode(e)||this.tree.contextMenu&&this.tree.contextMenu.containerViewChild?.nativeElement.style.display==="block"))switch(e.code){case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"Space":case"NumpadEnter":this.onEnter(e);break;case"Tab":this.setAllNodesTabIndexes();break;default:break}}onArrowUp(e){let n=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target.parentElement;if(n.previousElementSibling)this.focusRowChange(n,n.previousElementSibling,this.findLastVisibleDescendant(n.previousElementSibling));else{let i=this.getParentNodeElement(n);i&&this.focusRowChange(n,i)}e.preventDefault()}onArrowDown(e){let n=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target,i=n.children[1];if(i&&i.children.length>0)this.focusRowChange(n,i.children[0]);else if(n.parentElement.nextElementSibling)this.focusRowChange(n,n.parentElement.nextElementSibling);else{let o=this.findNextSiblingOfAncestor(n.parentElement);o&&this.focusRowChange(n,o)}e.preventDefault()}onArrowRight(e){!this.node?.expanded&&!this.tree.isNodeLeaf(this.node)&&(this.expand(e),e.currentTarget.tabIndex=-1,setTimeout(()=>{this.onArrowDown(e)},1)),e.preventDefault()}onArrowLeft(e){let n=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target;if(this.level===0&&!this.node?.expanded)return!1;if(this.node?.expanded){this.collapse(e);return}let i=this.getParentNodeElement(n.parentElement);i&&this.focusRowChange(e.currentTarget,i),e.preventDefault()}onEnter(e){this.tree.onNodeClick(e,this.node),this.setTabIndexForSelectionMode(e,this.tree.nodeTouched),e.preventDefault()}setAllNodesTabIndexes(){let e=ye(this.tree.el.nativeElement,".p-tree-node"),n=[...e].some(i=>i.getAttribute("aria-selected")==="true"||i.getAttribute("aria-checked")==="true");if([...e].forEach(i=>{i.tabIndex=-1}),n){let i=[...e].filter(o=>o.getAttribute("aria-selected")==="true"||o.getAttribute("aria-checked")==="true");i[0].tabIndex=0;return}e.length&&([...e][0].tabIndex=0)}setTabIndexForSelectionMode(e,n){if(this.tree.selectionMode!==null){let i=[...ye(this.tree.el.nativeElement,'[role="treeitem"]')];e.currentTarget.tabIndex=n===!1?-1:0,i.every(o=>o.tabIndex===-1)&&(i[0].tabIndex=0)}}findNextSiblingOfAncestor(e){let n=this.getParentNodeElement(e);return n?n.nextElementSibling?n.nextElementSibling:this.findNextSiblingOfAncestor(n):null}findLastVisibleDescendant(e){let i=Array.from(e.children).find(o=>U(o,"p-tree-node"))?.children[1];if(i&&i.children.length>0){let o=i.children[i.children.length-1];return this.findLastVisibleDescendant(o)}else return e}getParentNodeElement(e){let n=e.parentElement?.parentElement?.parentElement;return n?.tagName==="P-TREENODE"?n:null}focusNode(e){this.tree.droppableNodes?e.children[1].focus():e.children[0].focus()}focusRowChange(e,n,i){e.tabIndex="-1",n.children[0].tabIndex="0",this.focusNode(i||n)}focusVirtualNode(){this.timeout=setTimeout(()=>{let e=$e(document.body,`[data-id="${this.node?.key??this.node?.data}"]`);ee(e)},1)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=M(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",y],index:[2,"index","index",B],firstChild:[2,"firstChild","firstChild",y],lastChild:[2,"lastChild","lastChild",y],level:[2,"level","level",B],indentation:[2,"indentation","indentation",B],itemSize:[2,"itemSize","itemSize",B],loadingMode:"loadingMode"},features:[L],decls:1,vars:1,consts:[["icon",""],["class","p-tree-node-droppoint",3,"ngClass","drop","dragover","dragenter","dragleave",4,"ngIf"],["role","treeitem",3,"keydown","ngClass","ngStyle"],[3,"click","contextmenu","dblclick","touchend","drop","dragover","dragenter","dragleave","dragstart","dragend","ngClass","draggable"],["type","button","pRipple","","tabindex","-1",1,"p-tree-node-toggle-button",3,"click"],[4,"ngIf"],["class","p-tree-node-toggle-icon",4,"ngIf"],["styleClass","p-tree-node-checkbox",3,"ngModel","binary","indeterminate","disabled","variant","tabindex","click",4,"ngIf"],[3,"class",4,"ngIf"],[1,"p-tree-node-label"],["class","p-tree-node-children","style","display: none;","role","group",3,"display",4,"ngIf"],[1,"p-tree-node-droppoint",3,"drop","dragover","dragenter","dragleave","ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-tree-node-toggle-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-tree-node-checkbox",3,"click","ngModel","binary","indeterminate","disabled","variant","tabindex"],["role","group",1,"p-tree-node-children",2,"display","none"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"]],template:function(n,i){n&1&&p(0,Gt,13,31),n&2&&fe(i.node?0:-1)},dependencies:[t,j,H,oe,q,K,re,Ge,Ye,me,Fe,Oe,Be,he,Ce,z],encapsulation:2})}return t})(),xe=(()=>{class t extends W{dragDropService;value;selectionMode;loadingMode="mask";selection;style;styleClass;contextMenu;draggableScope;droppableScope;draggableNodes;droppableNodes;metaKeySelection=!1;propagateSelectionUp=!0;propagateSelectionDown=!0;loading;loadingIcon;emptyMessage="";ariaLabel;togglerAriaLabel;ariaLabelledBy;validateDrop;filter;filterInputAutoFocus=!1;filterBy="label";filterMode="lenient";filterOptions;filterPlaceholder;filteredNodes;filterLocale;scrollHeight;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;indentation=1.5;_templateMap;trackBy=(e,n)=>n;highlightOnSelect=!1;_virtualNodeHeight;get virtualNodeHeight(){return this._virtualNodeHeight}set virtualNodeHeight(e){this._virtualNodeHeight=e,console.log("The virtualNodeHeight property is deprecated, use virtualScrollItemSize property instead.")}selectionChange=new v;onNodeSelect=new v;onNodeUnselect=new v;onNodeExpand=new v;onNodeCollapse=new v;onNodeContextMenuSelect=new v;onNodeDoubleClick=new v;onNodeDrop=new v;onLazyLoad=new v;onScroll=new v;onScrollIndexChange=new v;onFilter=new v;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;ngAfterContentInit(){this.templates.length&&(this._templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"empty":this._emptyMessageTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"togglericon":this._togglerIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;default:this._templateMap[e.name]=e.template;break}})}serializedValue;nodeTouched;dragNodeTree;dragNode;dragNodeSubNodes;dragNodeIndex;dragNodeScope;dragHover;dragStartSubscription;dragStopSubscription;_componentStyle=P(nt);constructor(e){super(),this.dragDropService=e}ngOnInit(){super.ngOnInit(),this.filterBy&&(this.filterOptions={filter:e=>this._filter(e),reset:()=>this.resetFilter()}),this.droppableNodes&&(this.dragStartSubscription=this.dragDropService.dragStart$.subscribe(e=>{this.dragNodeTree=e.tree,this.dragNode=e.node,this.dragNodeSubNodes=e.subNodes,this.dragNodeIndex=e.index,this.dragNodeScope=e.scope}),this.dragStopSubscription=this.dragDropService.dragStop$.subscribe(e=>{this.dragNodeTree=null,this.dragNode=null,this.dragNodeSubNodes=null,this.dragNodeIndex=null,this.dragNodeScope=null,this.dragHover=!1}))}ngOnChanges(e){super.ngOnChanges(e),e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild.nativeElement.value))}get containerClass(){return this._componentStyle.classes.root({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(_e.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,n,i,o){if(n&&n.length)for(let l of n){l.parent=e;let _={node:l,parent:e,level:i,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(_),_.visible&&l.expanded&&this.serializeNodes(l,l.children,i+1,_.visible)}}onNodeClick(e,n){let i=e.target;if(!(U(i,"p-tree-toggler")||U(i,"p-tree-toggler-icon"))){if(this.selectionMode){if(n.selectable===!1){n.style="--p-focus-ring-color: none;";return}else n.style?.includes("--p-focus-ring-color")||(n.style=n.style?`${n.style}--p-focus-ring-color: var(--primary-color)`:"--p-focus-ring-color: var(--primary-color)");if(this.hasFilteredNodes()&&(n=this.getNodeWithKey(n.key,this.filteredNodes),!n))return;let o=this.findIndexInSelection(n),l=o>=0;if(this.isCheckboxSelectionMode())l?(this.propagateSelectionDown?this.propagateDown(n,!1):this.selection=this.selection.filter((_,N)=>N!=o),this.propagateSelectionUp&&n.parent&&this.propagateUp(n.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.propagateSelectionDown?this.propagateDown(n,!0):this.selection=[...this.selection||[],n],this.propagateSelectionUp&&n.parent&&this.propagateUp(n.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:n}));else if(this.nodeTouched?!1:this.metaKeySelection){let N=e.metaKey||e.ctrlKey;l&&N?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((O,pt)=>pt!=o),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.isSingleSelectionMode()?this.selectionChange.emit(n):this.isMultipleSelectionMode()&&(this.selection=N?this.selection||[]:[],this.selection=[...this.selection,n],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:n}))}else this.isSingleSelectionMode()?l?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.selection=n,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:n})})):l?(this.selection=this.selection.filter((N,O)=>O!=o),this.onNodeUnselect.emit({originalEvent:e,node:n})):(this.selection=[...this.selection||[],n],setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:n})})),this.selectionChange.emit(this.selection)}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(e,n){if(this.contextMenu){let i=e.target;if(i.className&&i.className.indexOf("p-tree-toggler")===0)return;this.findIndexInSelection(n)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(n):this.selectionChange.emit([n])),this.contextMenu.show(e),this.onNodeContextMenuSelect.emit({originalEvent:e,node:n})}}onNodeDblClick(e,n){this.onNodeDoubleClick.emit({originalEvent:e,node:n})}findIndexInSelection(e){let n=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode())n=this.selection.key&&this.selection.key===e.key||this.selection==e?0:-1;else for(let i=0;i<this.selection.length;i++){let o=this.selection[i];if(o.key&&o.key===e.key||o==e){n=i;break}}return n}syncNodeOption(e,n,i,o){let l=this.hasFilteredNodes()?this.getNodeWithKey(e.key,n):null;l&&(l[i]=o||e[i])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(e,n){for(let i of n){if(i.key===e)return i;if(i.children){let o=this.getNodeWithKey(e,i.children);if(o)return o}}}propagateUp(e,n){if(e.children&&e.children.length){let o=0,l=!1;for(let _ of e.children)this.isSelected(_)?o++:_.partialSelected&&(l=!0);if(n&&o==e.children.length)this.selection=[...this.selection||[],e],e.partialSelected=!1;else{if(!n){let _=this.findIndexInSelection(e);_>=0&&(this.selection=this.selection.filter((N,O)=>O!=_))}l||o>0&&o!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}this.syncNodeOption(e,this.filteredNodes,"partialSelected")}let i=e.parent;i&&this.propagateUp(i,n)}propagateDown(e,n){let i=this.findIndexInSelection(e);if(n&&i==-1?this.selection=[...this.selection||[],e]:!n&&i>-1&&(this.selection=this.selection.filter((o,l)=>l!=i)),e.partialSelected=!1,this.syncNodeOption(e,this.filteredNodes,"partialSelected"),e.children&&e.children.length)for(let o of e.children)this.propagateDown(o,n)}isSelected(e){return this.findIndexInSelection(e)!=-1}isSingleSelectionMode(){return this.selectionMode&&this.selectionMode=="single"}isMultipleSelectionMode(){return this.selectionMode&&this.selectionMode=="multiple"}isCheckboxSelectionMode(){return this.selectionMode&&this.selectionMode=="checkbox"}isNodeLeaf(e){return e.leaf==!1?!1:!(e.children&&e.children.length)}getRootNode(){return this.filteredNodes?this.filteredNodes:this.value}getTemplateForNode(e){return this._templateMap?e.type?this._templateMap[e.type]:this._templateMap.default:null}onDragOver(e){this.droppableNodes&&(!this.value||this.value.length===0)&&(e.dataTransfer.dropEffect="move",e.preventDefault())}onDrop(e){if(this.droppableNodes&&(!this.value||this.value.length===0)){e.preventDefault();let n=this.dragNode;if(this.allowDrop(n,null,this.dragNodeScope)){let i=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:null,index:i,accept:()=>{this.processTreeDrop(n,i)}}):(this.onNodeDrop.emit({originalEvent:e,dragNode:n,dropNode:null,index:i}),this.processTreeDrop(n,i))}}}processTreeDrop(e,n){this.dragNodeSubNodes.splice(n,1),this.value.push(e),this.dragDropService.stopDrag({node:e})}onDragEnter(){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0)}onDragLeave(e){if(this.droppableNodes){let n=e.currentTarget.getBoundingClientRect();(e.x>n.left+n.width||e.x<n.left||e.y>n.top+n.height||e.y<n.top)&&(this.dragHover=!1)}}allowDrop(e,n,i){if(e)if(this.isValidDragScope(i)){let o=!0;if(n)if(e===n)o=!1;else{let l=n.parent;for(;l!=null;){if(l===e){o=!1;break}l=l.parent}}return o}else return!1;else return!1}isValidDragScope(e){let n=this.droppableScope;if(n){if(typeof n=="string"){if(typeof e=="string")return n===e;if(Array.isArray(e))return e.indexOf(n)!=-1}else if(Array.isArray(n)){if(typeof e=="string")return n.indexOf(e)!=-1;if(Array.isArray(e)){for(let i of n)for(let o of e)if(i===o)return!0}}return!1}else return!0}_filter(e){let n=e;if(n==="")this.filteredNodes=null;else{this.filteredNodes=[];let i=this.filterBy.split(","),o=ve(n).toLocaleLowerCase(this.filterLocale),l=this.filterMode==="strict";for(let _ of this.value){let N=A({},_),O={searchFields:i,filterText:o,isStrictMode:l};(l&&(this.findFilteredNodes(N,O)||this.isFilterMatched(N,O))||!l&&(this.isFilterMatched(N,O)||this.findFilteredNodes(N,O)))&&this.filteredNodes.push(N)}}this.updateSerializedValue(),this.onFilter.emit({filter:n,filteredValue:this.filteredNodes})}resetFilter(){this.filteredNodes=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}scrollToVirtualIndex(e){this.virtualScroll&&this.scroller?.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}findFilteredNodes(e,n){if(e){let i=!1;if(e.children){let o=[...e.children];e.children=[];for(let l of o){let _=A({},l);this.isFilterMatched(_,n)&&(i=!0,e.children.push(_))}}if(i)return e.expanded=!0,!0}}isFilterMatched(e,n){let{searchFields:i,filterText:o,isStrictMode:l}=n,_=!1;for(let N of i)ve(String(Ae(e,N))).toLocaleLowerCase(this.filterLocale).indexOf(o)>-1&&(_=!0);return(!_||l&&!this.isNodeLeaf(e))&&(_=this.findFilteredNodes(e,{searchFields:i,filterText:o,isStrictMode:l})||_),_}getIndex(e,n){let i=e.getItemOptions;return i?i(n).index:n}getBlockableElement(){return this.el.nativeElement.children[0]}ngOnDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(n){return new(n||t)(Ne(Re,8))};static \u0275cmp=$({type:t,selectors:[["p-tree"]],contentQueries:function(n,i,o){if(n&1&&(T(o,it,4),T(o,Zt,4),T(o,Yt,4),T(o,Jt,4),T(o,Xt,4),T(o,ei,4),T(o,ti,4),T(o,ii,4),T(o,ni,4),T(o,oi,4),T(o,te,4)),n&2){let l;f(l=m())&&(i.filterTemplate=l.first),f(l=m())&&(i.nodeTemplate=l.first),f(l=m())&&(i.headerTemplate=l.first),f(l=m())&&(i.footerTemplate=l.first),f(l=m())&&(i.loaderTemplate=l.first),f(l=m())&&(i.emptyMessageTemplate=l.first),f(l=m())&&(i.togglerIconTemplate=l.first),f(l=m())&&(i.checkboxIconTemplate=l.first),f(l=m())&&(i.loadingIconTemplate=l.first),f(l=m())&&(i.filterIconTemplate=l.first),f(l=m())&&(i.templates=l)}},viewQuery:function(n,i){if(n&1&&(D(it,5),D(ri,5),D(li,5)),n&2){let o;f(o=m())&&(i.filterViewChild=o.first),f(o=m())&&(i.scroller=o.first),f(o=m())&&(i.wrapperViewChild=o.first)}},inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",style:"style",styleClass:"styleClass",contextMenu:"contextMenu",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[2,"draggableNodes","draggableNodes",y],droppableNodes:[2,"droppableNodes","droppableNodes",y],metaKeySelection:[2,"metaKeySelection","metaKeySelection",y],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",y],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",y],loading:[2,"loading","loading",y],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",y],filter:[2,"filter","filter",y],filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",y],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",y],virtualScroll:[2,"virtualScroll","virtualScroll",y],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",B],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",B],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",y],virtualNodeHeight:"virtualNodeHeight"},outputs:{selectionChange:"selectionChange",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onNodeContextMenuSelect:"onNodeContextMenuSelect",onNodeDoubleClick:"onNodeDoubleClick",onNodeDrop:"onNodeDrop",onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange",onFilter:"onFilter"},features:[X([nt]),L,ce],decls:8,vars:10,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"drop","dragover","dragenter","dragleave","ngClass","ngStyle"],["class","p-tree-mask p-overlay-mask",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-tree-empty-message",4,"ngIf"],[1,"p-tree-mask","p-overlay-mask"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-tree-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-tree-loading-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pInputText","","type","search","autocomplete","off",1,"p-tree-filter-input",3,"keydown.enter","input","pAutoFocus"],["class","p-tree-filter-icon",4,"ngIf"],[1,"p-tree-filter-icon"],["styleClass","p-tree-root",3,"items","tabindex","style","scrollHeight","itemSize","lazy","options","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["styleClass","p-tree-root",3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","scrollHeight","itemSize","lazy","options"],["class","p-tree-root-children","role","tree",3,"ngClass","style",4,"ngIf"],["role","tree",1,"p-tree-root-children",3,"ngClass"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode"],[1,"p-tree-root"],["class","p-tree-root-children","role","tree",4,"ngIf"],["role","tree",1,"p-tree-root-children"],[3,"node","firstChild","lastChild","index","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode"],[1,"p-tree-empty-message"],[4,"ngIf","ngIfElse"]],template:function(n,i){if(n&1&&(g(0,"div",7),b("drop",function(l){return i.onDrop(l)})("dragover",function(l){return i.onDragOver(l)})("dragenter",function(){return i.onDragEnter()})("dragleave",function(l){return i.onDragLeave(l)}),p(1,gi,3,2,"div",8)(2,hi,1,0,"ng-container",9)(3,mi,1,4,"ng-container")(4,xi,1,1,"p-iconField")(5,Oi,3,2,"ng-container",10)(6,Ai,3,3,"div",11)(7,Ri,1,0,"ng-container",9),h()),n&2){let o;w(i.styleClass),a("ngClass",i.containerClass)("ngStyle",i.style),c(),a("ngIf",i.loading&&i.loadingMode==="mask"),c(),a("ngTemplateOutlet",i.headerTemplate||i._headerTemplate),c(),fe(i.filterTemplate||i._filterTemplate?3:4),c(2),a("ngIf",(o=i.getRootNode())==null?null:o.length),c(),a("ngIf",!i.loading&&(i.getRootNode()==null||i.getRootNode().length===0)),c(),a("ngTemplateOutlet",i.footerTemplate||i._footerTemplate)}},dependencies:[j,H,oe,q,K,re,Ze,z,He,Ce,je,me,Ue,Ke,Pi,Qe,ge],encapsulation:2})}return t})();var Bi=["value"],Hi=["header"],qi=["empty"],Ki=["footer"],ji=["clearicon"],Wi=["triggericon"],Gi=["dropdownicon"],Zi=["filtericon"],Yi=["closeicon"],Ji=["itemtogglericon"],Xi=["itemcheckboxicon"],en=["itemloadingicon"],tn=["container"],nn=["focusInput"],on=["filter"],rn=["tree"],ln=["panel"],an=["overlay"],sn=["firstHiddenFocusableEl"],cn=["lastHiddenFocusableEl"],pn=(t,r)=>({$implicit:t,placeholder:r}),at=(t,r)=>({$implicit:t,options:r}),dn=t=>({"max-height":t}),un=t=>({$implicit:t}),_n=(t,r)=>({$implicit:t,partialSelected:r});function gn(t,r){t&1&&V(0)}function hn(t,r){if(t&1&&(S(0),p(1,gn,1,0,"ng-container",25),I()),t&2){let e=s();c(),a("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Q(2,pn,e.value,e.placeholder))}}function fn(t,r){if(t&1&&(S(0),R(1),I()),t&2){let e=s(2);c(),de(" ",e.label||"empty"," ")}}function mn(t,r){if(t&1&&(g(0,"div",27),x(1,"p-chip",28),h()),t&2){let e=r.$implicit;c(),a("label",e.label)}}function yn(t,r){if(t&1&&(S(0),R(1),I()),t&2){let e=s(3);c(),J(e.placeholder||"empty")}}function Tn(t,r){if(t&1&&p(0,mn,2,1,"div",26)(1,yn,2,1,"ng-container",20),t&2){let e=s(2);a("ngForOf",e.value),c(),a("ngIf",e.emptyValue)}}function vn(t,r){if(t&1&&p(0,fn,2,1,"ng-container",19)(1,Tn,2,2,"ng-template",null,5,k),t&2){let e=ne(2),n=s();a("ngIf",n.display==="comma")("ngIfElse",e)}}function Cn(t,r){if(t&1){let e=E();g(0,"TimesIcon",31),b("click",function(i){d(e);let o=s(2);return u(o.clear(i))}),h()}t&2&&w("p-treeselect-clear-icon")}function bn(t,r){}function xn(t,r){t&1&&p(0,bn,0,0,"ng-template")}function Sn(t,r){if(t&1){let e=E();g(0,"span",32),b("click",function(i){d(e);let o=s(2);return u(o.clear(i))}),p(1,xn,1,0,null,33),h()}if(t&2){let e=s(2);c(),a("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function In(t,r){if(t&1&&(S(0),p(1,Cn,1,2,"TimesIcon",29)(2,Sn,2,1,"span",30),I()),t&2){let e=s();c(),a("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),a("ngIf",e.clearIconTemplate||e.clearIconTemplate)}}function Nn(t,r){t&1&&x(0,"ChevronDownIcon",34),t&2&&a("styleClass","p-treeselect-dropdown-icon")}function wn(t,r){}function En(t,r){t&1&&p(0,wn,0,0,"ng-template")}function kn(t,r){if(t&1&&(g(0,"span",35),p(1,En,1,0,null,33),h()),t&2){let e=s();c(),a("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate||e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Vn(t,r){t&1&&V(0)}function Dn(t,r){t&1&&V(0)}function Mn(t,r){if(t&1&&p(0,Dn,1,0,"ng-container",33),t&2){let e=s(3);a("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Fn(t,r){t&1&&(S(0),p(1,Mn,1,1,"ng-template",null,10,k),I())}function On(t,r){t&1&&V(0)}function $n(t,r){if(t&1&&p(0,On,1,0,"ng-container",25),t&2){let e=r.$implicit,n=s(3);a("ngTemplateOutlet",n.itemTogglerIconTemplate||n._itemTogglerIconTemplate)("ngTemplateOutletContext",F(2,un,e))}}function Ln(t,r){t&1&&p(0,$n,1,4,"ng-template",null,11,k)}function zn(t,r){t&1&&V(0)}function An(t,r){if(t&1&&p(0,zn,1,0,"ng-container",25),t&2){let e=r.$implicit,n=r.partialSelected,i=s(3);a("ngTemplateOutlet",i.itemCheckboxIconTemplate||i._itemCheckboxIconTemplate)("ngTemplateOutletContext",Q(2,_n,e,n))}}function Rn(t,r){t&1&&p(0,An,1,5,"ng-template",null,12,k)}function Qn(t,r){t&1&&V(0)}function Un(t,r){if(t&1&&p(0,Qn,1,0,"ng-container",33),t&2){let e=s(3);a("ngTemplateOutlet",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate)}}function Pn(t,r){t&1&&p(0,Un,1,1,"ng-template",null,13,k)}function Bn(t,r){t&1&&V(0)}function Hn(t,r){if(t&1){let e=E();g(0,"div",36,6)(2,"span",37,7),b("focus",function(i){d(e);let o=s();return u(o.onFirstHiddenFocus(i))}),h(),p(4,Vn,1,0,"ng-container",25),g(5,"div",38)(6,"p-tree",39,8),b("selectionChange",function(i){d(e);let o=s();return u(o.onSelectionChange(i))})("onNodeExpand",function(i){d(e);let o=s();return u(o.nodeExpand(i))})("onNodeCollapse",function(i){d(e);let o=s();return u(o.nodeCollapse(i))})("onNodeSelect",function(i){d(e);let o=s();return u(o.onSelect(i))})("onNodeUnselect",function(i){d(e);let o=s();return u(o.onUnselect(i))}),p(8,Fn,3,0,"ng-container",20)(9,Ln,2,0,null,20)(10,Rn,2,0,null,20)(11,Pn,2,0,null,20),h()(),p(12,Bn,1,0,"ng-container",25),g(13,"span",37,9),b("focus",function(i){d(e);let o=s();return u(o.onLastHiddenFocus(i))}),h()()}if(t&2){let e=s();w(e.panelStyleClass),a("ngStyle",e.panelStyle)("ngClass",e.panelClass),C("id",e.listId),c(2),C("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),a("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",Q(39,at,e.value,e.options)),c(),a("ngStyle",F(42,dn,e.scrollHeight)),c(),a("value",e.options)("propagateSelectionDown",e.propagateSelectionDown)("propagateSelectionUp",e.propagateSelectionUp)("selectionMode",e.selectionMode)("selection",e.value)("metaKeySelection",e.metaKeySelection)("emptyMessage",e.emptyMessage)("filter",e.filter)("filterBy",e.filterBy)("filterMode",e.filterMode)("filterPlaceholder",e.filterPlaceholder)("filterLocale",e.filterLocale)("filteredNodes",e.filteredNodes)("virtualScroll",e.virtualScroll)("virtualScrollItemSize",e.virtualScrollItemSize)("virtualScrollOptions",e.virtualScrollOptions)("_templateMap",e.templateMap)("loading",e.loading)("filterInputAutoFocus",e.filterInputAutoFocus),c(2),a("ngIf",e.emptyTemplate||e._emptyTemplate),c(),a("ngIf",e.itemTogglerIconTemplate||e._itemTogglerIconTemplate),c(),a("ngIf",e.itemCheckboxIconTemplate||e._itemCheckboxIconTemplate),c(),a("ngIf",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate),c(),a("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",Q(44,at,e.value,e.options)),c(),C("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var qn=({dt:t})=>`
|
|
274
|
-
.p-treeselect {
|
|
275
|
-
display: inline-flex;
|
|
276
|
-
cursor: pointer;
|
|
277
|
-
position: relative;
|
|
278
|
-
user-select: none;
|
|
279
|
-
background: ${t("treeselect.background")};
|
|
280
|
-
border: 1px solid ${t("treeselect.border.color")};
|
|
281
|
-
transition: background ${t("treeselect.transition.duration")}, color ${t("treeselect.transition.duration")}, border-color ${t("treeselect.transition.duration")}, outline-color ${t("treeselect.transition.duration")}, box-shadow ${t("treeselect.transition.duration")};
|
|
282
|
-
border-radius: ${t("treeselect.border.radius")};
|
|
283
|
-
outline-color: transparent;
|
|
284
|
-
box-shadow: ${t("treeselect.shadow")};
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
p-treeSelect.ng-invalid.ng-dirty .p-treeselect,
|
|
288
|
-
p-tree-select.ng-invalid.ng-dirty .p-treeselect,
|
|
289
|
-
p-treeselect.ng-invalid.ng-dirty .p-treeselect {
|
|
290
|
-
border-color: ${t("treeselect.invalid.border.color")};
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
p-treeSelect.ng-invalid.ng-dirty .p-treeselect.p-focus,
|
|
294
|
-
p-tree-select.ng-invalid.ng-dirty .p-treeselect.p-focus,
|
|
295
|
-
p-treeselect.ng-invalid.ng-dirty .p-treeselect.p-focus {
|
|
296
|
-
border-color: ${t("treeselect.focus.border.color")};
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.p-treeselect:not(.p-disabled):hover {
|
|
300
|
-
border-color: ${t("treeselect.hover.border.color")};
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.p-treeselect:not(.p-disabled).p-focus {
|
|
304
|
-
border-color: ${t("treeselect.focus.border.color")};
|
|
305
|
-
box-shadow: ${t("treeselect.focus.ring.shadow")};
|
|
306
|
-
outline: ${t("treeselect.focus.ring.width")} ${t("treeselect.focus.ring.style")} ${t("treeselect.focus.ring.color")};
|
|
307
|
-
outline-offset: ${t("treeselect.focus.ring.offset")};
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.p-treeselect.p-variant-filled {
|
|
311
|
-
background: ${t("treeselect.filled.background")};
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.p-treeselect.p-variant-filled:not(.p-disabled):hover {
|
|
315
|
-
background: ${t("treeselect.filled.hover.background")};
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.p-treeselect.p-variant-filled.p-focus {
|
|
319
|
-
background: ${t("treeselect.filled.focus.background")};
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.p-treeselect.p-disabled {
|
|
323
|
-
opacity: 1;
|
|
324
|
-
background: ${t("treeselect.disabled.background")};
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.p-treeselect-dropdown {
|
|
328
|
-
display: flex;
|
|
329
|
-
align-items: center;
|
|
330
|
-
justify-content: center;
|
|
331
|
-
flex-shrink: 0;
|
|
332
|
-
background: transparent;
|
|
333
|
-
color: ${t("treeselect.dropdown.color")};
|
|
334
|
-
width: ${t("treeselect.dropdown.width")};
|
|
335
|
-
border-start-end-radius: ${t("border.radius.md")};
|
|
336
|
-
border-end-end-radius: ${t("border.radius.md")};
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.p-treeselect-label-container {
|
|
340
|
-
overflow: hidden;
|
|
341
|
-
flex: 1 1 auto;
|
|
342
|
-
cursor: pointer;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.p-treeselect-label {
|
|
346
|
-
display: flex;
|
|
347
|
-
align-items-center;
|
|
348
|
-
gap: calc(${t("treeselect.padding.y")} / 2);
|
|
349
|
-
white-space: nowrap;
|
|
350
|
-
cursor: pointer;
|
|
351
|
-
overflow: hidden;
|
|
352
|
-
text-overflow: ellipsis;
|
|
353
|
-
padding: ${t("treeselect.padding.y")} ${t("treeselect.padding.x")};
|
|
354
|
-
color: ${t("treeselect.color")};
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.p-treeselect-label.p-placeholder {
|
|
358
|
-
color: ${t("treeselect.placeholder.color")};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
p-treeselect.ng-invalid.ng-dirty .p-treeselect-label.p-placeholder {
|
|
362
|
-
color: ${t("treeselect.invalid.placeholder.color")};
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.p-treeselect.p-disabled .p-treeselect-label {
|
|
366
|
-
color: ${t("treeselect.disabled.color")};
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.p-treeselect-label-empty {
|
|
370
|
-
overflow: hidden;
|
|
371
|
-
visibility: hidden;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.p-treeselect .p-treeselect-overlay {
|
|
375
|
-
min-width: 100%;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.p-treeselect-overlay {
|
|
379
|
-
background: ${t("treeselect.overlay.background")};
|
|
380
|
-
color: ${t("treeselect.overlay.color")};
|
|
381
|
-
border: 1px solid ${t("treeselect.overlay.border.color")};
|
|
382
|
-
border-radius: ${t("treeselect.overlay.border.radius")};
|
|
383
|
-
box-shadow: ${t("treeselect.overlay.shadow")};
|
|
384
|
-
overflow: hidden;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
.p-treeselect-tree-container {
|
|
389
|
-
overflow: auto;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.p-treeselect-empty-message {
|
|
393
|
-
padding: ${t("treeselect.empty.message.padding")};
|
|
394
|
-
background: transparent;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.p-treeselect-fluid {
|
|
398
|
-
display: flex;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.p-treeselect-overlay .p-tree {
|
|
402
|
-
padding: ${t("treeselect.tree.padding")};
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.p-treeselect-label .p-chip {
|
|
406
|
-
padding-top: calc(${t("treeselect.padding.y")} / 2);
|
|
407
|
-
padding-bottom: calc(${t("treeselect.padding.y")} / 2);
|
|
408
|
-
border-radius: ${t("treeselect.chip.border.radius")};
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.p-treeselect-label:has(.p-chip) {
|
|
412
|
-
padding: calc(${t("treeselect.padding.y")} / 2) calc(${t("treeselect.padding.x")} / 2);
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.p-treeselect-sm .p-treeselect-label {
|
|
416
|
-
font-size: ${t("treeselect.sm.font.size")};
|
|
417
|
-
padding-block: ${t("treeselect.sm.padding.y")};
|
|
418
|
-
padding-inline: ${t("treeselect.sm.padding.x")};
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.p-treeselect-sm .p-treeselect-dropdown .p-icon {
|
|
422
|
-
font-size: ${t("treeselect.sm.font.size")};
|
|
423
|
-
width: ${t("treeselect.sm.font.size")};
|
|
424
|
-
height: ${t("treeselect.sm.font.size")};
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.p-treeselect-lg .p-treeselect-label {
|
|
428
|
-
font-size: ${t("treeselect.lg.font.size")};
|
|
429
|
-
padding-block: ${t("treeselect.lg.padding.y")};
|
|
430
|
-
padding-inline: ${t("treeselect.lg.padding.x")};
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.p-treeselect-lg .p-treeselect-dropdown .p-icon {
|
|
434
|
-
font-size: ${t("treeselect.lg.font.size")};
|
|
435
|
-
width: ${t("treeselect.lg.font.size")};
|
|
436
|
-
height: ${t("treeselect.lg.font.size")};
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.p-treeselect-clear-icon {
|
|
440
|
-
cursor: pointer;
|
|
441
|
-
display: flex;
|
|
442
|
-
align-items: center;
|
|
443
|
-
justify-content: center;
|
|
444
|
-
flex-shrink: 0;
|
|
445
|
-
background: transparent;
|
|
446
|
-
color: ${t("treeselect.clear.icon.color")};
|
|
447
|
-
}`,Kn={root:({instance:t})=>({position:t.appendTo==="self"?"relative":void 0})},jn={root:({instance:t})=>({"p-treeselect p-component p-inputwrapper":!0,"p-treeselect-display-chip":t.display==="chip","p-disabled":t.disabled,"p-invalid":t.invalid,"p-focus":t.focused,"p-variant-filled":t.variant==="filled"||t.config.inputVariant()==="filled"||t.config.inputStyle()==="filled","p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-treeselect-open":t.overlayVisible,"p-treeselect-clearable":t.showClear,"p-treeselect-fluid":t.hasFluid,"p-treeselect-sm p-inputfield-sm":t.size==="small","p-treeselect-lg p-inputfield-lg":t.size==="large"}),labelContainer:"p-treeselect-label-container",label:({instance:t})=>({"p-treeselect-label":!0,"p-placeholder":t.label===t.placeholder,"p-treeselect-label-empty":!t.placeholder&&t.emptyValue}),chip:"p-treeselect-chip-item",pcChip:"p-treeselect-chip",dropdown:"p-treeselect-dropdown",dropdownIcon:"p-treeselect-dropdown-icon",panel:"p-treeselect-overlay p-component",treeContainer:"p-treeselect-tree-container",emptyMessage:"p-treeselect-empty-message"},st=(()=>{class t extends ie{name="treeselect";theme=qn;classes=jn;inlineStyles=Kn;static \u0275fac=(()=>{let e;return function(i){return(e||(e=M(t)))(i||t)}})();static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})();var Wn={provide:Me,useExisting:ae(()=>ct),multi:!0},ct=(()=>{class t extends W{inputId;scrollHeight="400px";disabled;metaKeySelection=!1;variant;display="comma";selectionMode="single";tabindex="0";ariaLabel;ariaLabelledBy;placeholder;panelClass;panelStyle;fluid=!1;panelStyleClass;set containerStyle(e){let n=this._componentStyle.inlineStyles.root({instance:this});this._containerStyle=A(A({},n),e)}get containerStyle(){return this._containerStyle}_containerStyle;containerStyleClass;labelStyle;labelStyleClass;overlayOptions;emptyMessage="";appendTo;filter=!1;filterBy="label";filterMode="lenient";filterPlaceholder;filterLocale;filterInputAutoFocus=!0;propagateSelectionDown=!0;propagateSelectionUp=!0;showClear=!1;resetFilterOnHide=!0;virtualScroll;virtualScrollItemSize;size;virtualScrollOptions;autofocus;get options(){return this._options}set options(e){this._options=e,this.updateTreeState()}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}loading;onNodeExpand=new v;onNodeCollapse=new v;onShow=new v;onHide=new v;onClear=new v;onFilter=new v;onFocus=new v;onBlur=new v;onNodeUnselect=new v;onNodeSelect=new v;_showTransitionOptions;_hideTransitionOptions;containerEl;focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;filteredNodes;filterValue=null;serializedValue;valueTemplate;headerTemplate;emptyTemplate;footerTemplate;clearIconTemplate;triggerIconTemplate;dropdownIconTemplate;filterIconTemplate;closeIconTemplate;itemTogglerIconTemplate;itemCheckboxIconTemplate;itemLoadingIconTemplate;templates;_valueTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_clearIconTemplate;_triggerIconTemplate;_filterIconTemplate;_closeIconTemplate;_itemTogglerIconTemplate;_itemCheckboxIconTemplate;_itemLoadingIconTemplate;_dropdownIconTemplate;focused;overlayVisible;selfChange;value;expandedNodes=[];_options;templateMap;onModelChange=()=>{};onModelTouched=()=>{};listId="";_componentStyle=P(st);ngOnInit(){super.ngOnInit(),this.listId=ue("pn_id_")+"_list",this.updateTreeState()}ngAfterContentInit(){this.templates.length&&(this.templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"value":this._valueTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"itemtogglericon":this._itemTogglerIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemloadingicon":this._itemLoadingIconTemplate=e.template;break;default:e.name?this.templateMap[e.name]=e.template:this.valueTemplate=e.template;break}})}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.filter)Te(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let n=le(this.panelEl.nativeElement);n&&n.length>0&&n[0].focus()}break}}onOverlayBeforeHide(e){let n=le(this.containerEl.nativeElement);n&&n.length>0&&n[0].focus()}onSelectionChange(e){this.value=e,this.onModelChange(this.value),this.cd.markForCheck()}onClick(e){this.disabled||!this.overlayViewChild?.el?.nativeElement?.contains(e.target)&&!U(e.target,"p-treeselect-close")&&!U(e.target,"p-checkbox-box")&&!U(e.target,"p-checkbox-icon")&&(this.overlayVisible?this.hide():this.show(),this.focusInput?.nativeElement.focus())}onKeyDown(e){switch(e.code){case"ArrowDown":this.overlayVisible||(this.show(),e.preventDefault()),this.onArrowDown(e),e.preventDefault();break;case"Space":case"Enter":this.overlayVisible||(this.show(),e.preventDefault());break;case"Escape":this.overlayVisible&&(this.hide(),this.focusInput?.nativeElement.focus(),e.preventDefault());break;case"Tab":this.onTabKey(e);break;default:break}}onFilterInput(e){this.filterValue=e.target.value,this.treeViewChild?._filter(this.filterValue),this.onFilter.emit({filter:this.filterValue,filteredValue:this.treeViewChild?.filteredNodes}),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onArrowDown(e){if(this.overlayVisible&&this.panelEl?.nativeElement){let n=le(this.panelEl.nativeElement,".p-tree-node");n&&n.length>0&&n[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInput?.nativeElement?Le(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;ee(n)}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInput?.nativeElement?ze(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;ee(n)}show(){this.overlayVisible=!0}hide(e){this.overlayVisible=!1,this.resetFilter(),this.onHide.emit(e),this.cd.markForCheck()}clear(e){this.value=null,this.resetExpandedNodes(),this.resetPartialSelected(),this.onModelChange(this.value),this.onClear.emit(),e.stopPropagation()}checkValue(){return this.value!==null&&Te(this.value)}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(ee(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return le(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}resetFilter(){this.filter&&!this.resetFilterOnHide?(this.filteredNodes=this.treeViewChild?.filteredNodes,this.treeViewChild?.resetFilter()):this.filterValue=null}updateTreeState(){if(this.value){let e=this.selectionMode==="single"?[this.value]:[...this.value];this.resetExpandedNodes(),this.resetPartialSelected(),e&&this.options&&this.updateTreeBranchState(null,null,e)}}updateTreeBranchState(e,n,i){if(e){if(this.isSelected(e)&&(this.expandPath(n),i.splice(i.indexOf(e),1)),i.length>0&&e.children)for(let o of e.children)this.updateTreeBranchState(o,[...n,e],i)}else for(let o of this.options)this.updateTreeBranchState(o,[],i)}expandPath(e){for(let n of e)n.expanded=!0;this.expandedNodes=[...e]}nodeExpand(e){this.onNodeExpand.emit(e),this.expandedNodes.push(e.node)}nodeCollapse(e){this.onNodeCollapse.emit(e),this.expandedNodes.splice(this.expandedNodes.indexOf(e.node),1)}resetExpandedNodes(){for(let e of this.expandedNodes)e.expanded=!1;this.expandedNodes=[]}resetPartialSelected(e=this.options){if(e)for(let n of e)n.partialSelected=!1,n.children&&n.children?.length>0&&this.resetPartialSelected(n.children)}findSelectedNodes(e,n,i){if(e){if(this.isSelected(e)&&(i.push(e),delete n[e.key]),Object.keys(n).length&&e.children)for(let o of e.children)this.findSelectedNodes(o,n,i)}else for(let o of this.options)this.findSelectedNodes(o,n,i)}isSelected(e){return this.findIndexInSelection(e)!=-1}findIndexInSelection(e){let n=-1;if(this.value)if(this.selectionMode==="single")n=this.value.key&&this.value.key===e.key||this.value==e?0:-1;else for(let i=0;i<this.value.length;i++){let o=this.value[i];if(o.key&&o.key===e.key||o==e){n=i;break}}return n}onSelect(e){this.onNodeSelect.emit(e),this.selectionMode==="single"&&(this.hide(),this.focusInput?.nativeElement.focus())}onUnselect(e){this.onNodeUnselect.emit(e)}onInputFocus(e){this.disabled||(this.focused=!0,this.onFocus.emit(e))}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}writeValue(e){this.value=e,this.updateTreeState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){setTimeout(()=>{this.disabled=e,this.cd.markForCheck()})}get containerClass(){return this._componentStyle.classes.root({instance:this})}get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyValue(){return!this.value||Object.keys(this.value).length===0}get emptyOptions(){return!this.options||this.options.length===0}get label(){let e=this.value||[];return e.length?e.map(n=>n.label).join(", "):this.selectionMode==="single"&&this.value?e.label:this.placeholder}static \u0275fac=(()=>{let e;return function(i){return(e||(e=M(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(n,i,o){if(n&1&&(T(o,Bi,4),T(o,Hi,4),T(o,qi,4),T(o,Ki,4),T(o,ji,4),T(o,Wi,4),T(o,Gi,4),T(o,Zi,4),T(o,Yi,4),T(o,Ji,4),T(o,Xi,4),T(o,en,4),T(o,te,4)),n&2){let l;f(l=m())&&(i.valueTemplate=l.first),f(l=m())&&(i.headerTemplate=l.first),f(l=m())&&(i.emptyTemplate=l.first),f(l=m())&&(i.footerTemplate=l.first),f(l=m())&&(i.clearIconTemplate=l.first),f(l=m())&&(i.triggerIconTemplate=l.first),f(l=m())&&(i.dropdownIconTemplate=l.first),f(l=m())&&(i.filterIconTemplate=l.first),f(l=m())&&(i.closeIconTemplate=l.first),f(l=m())&&(i.itemTogglerIconTemplate=l.first),f(l=m())&&(i.itemCheckboxIconTemplate=l.first),f(l=m())&&(i.itemLoadingIconTemplate=l.first),f(l=m())&&(i.templates=l)}},viewQuery:function(n,i){if(n&1&&(D(tn,5),D(nn,5),D(on,5),D(rn,5),D(ln,5),D(an,5),D(sn,5),D(cn,5)),n&2){let o;f(o=m())&&(i.containerEl=o.first),f(o=m())&&(i.focusInput=o.first),f(o=m())&&(i.filterViewChild=o.first),f(o=m())&&(i.treeViewChild=o.first),f(o=m())&&(i.panelEl=o.first),f(o=m())&&(i.overlayViewChild=o.first),f(o=m())&&(i.firstHiddenFocusableElementOnOverlay=o.first),f(o=m())&&(i.lastHiddenFocusableElementOnOverlay=o.first)}},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",disabled:[2,"disabled","disabled",y],metaKeySelection:[2,"metaKeySelection","metaKeySelection",y],variant:"variant",display:"display",selectionMode:"selectionMode",tabindex:"tabindex",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",placeholder:"placeholder",panelClass:"panelClass",panelStyle:"panelStyle",fluid:[2,"fluid","fluid",y],panelStyleClass:"panelStyleClass",containerStyle:"containerStyle",containerStyleClass:"containerStyleClass",labelStyle:"labelStyle",labelStyleClass:"labelStyleClass",overlayOptions:"overlayOptions",emptyMessage:"emptyMessage",appendTo:"appendTo",filter:[2,"filter","filter",y],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",y],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",y],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",y],showClear:[2,"showClear","showClear",y],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",y],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",size:"size",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",y],options:"options",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",loading:[2,"loading","loading",y]},outputs:{onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onShow:"onShow",onHide:"onHide",onClear:"onClear",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onNodeUnselect:"onNodeUnselect",onNodeSelect:"onNodeSelect"},features:[X([Wn,st]),L],decls:18,vars:30,consts:[["container",""],["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[3,"click","ngClass","ngStyle"],[1,"p-hidden-accessible"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","disabled","pAutoFocus"],[1,"p-treeselect-label-container"],[3,"ngClass","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree",1,"p-treeselect-dropdown"],[3,"styleClass",4,"ngIf"],["class","p-treeselect-dropdown-icon",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-treeselect-chip-item",4,"ngFor","ngForOf"],[1,"p-treeselect-chip-item"],["styleClass","p-treeselect-chip",3,"label"],[3,"class","click",4,"ngIf"],["class","p-treeselect-clear-icon",3,"click",4,"ngIf"],[3,"click"],[1,"p-treeselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-treeselect-dropdown-icon"],[1,"p-treeselect-overlay","p-component",3,"ngStyle","ngClass"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],[1,"p-treeselect-tree-container",3,"ngStyle"],[3,"selectionChange","onNodeExpand","onNodeCollapse","onNodeSelect","onNodeUnselect","value","propagateSelectionDown","propagateSelectionUp","selectionMode","selection","metaKeySelection","emptyMessage","filter","filterBy","filterMode","filterPlaceholder","filterLocale","filteredNodes","virtualScroll","virtualScrollItemSize","virtualScrollOptions","_templateMap","loading","filterInputAutoFocus"]],template:function(n,i){if(n&1){let o=E();g(0,"div",14,0),b("click",function(_){return d(o),u(i.onClick(_))}),g(2,"div",15)(3,"input",16,1),b("focus",function(_){return d(o),u(i.onInputFocus(_))})("blur",function(_){return d(o),u(i.onInputBlur(_))})("keydown",function(_){return d(o),u(i.onKeyDown(_))}),h()(),g(5,"div",17)(6,"div",18),p(7,hn,2,5,"ng-container",19)(8,vn,3,2,"ng-template",null,2,k),h()(),p(10,In,3,2,"ng-container",20),g(11,"div",21),p(12,Nn,1,1,"ChevronDownIcon",22)(13,kn,2,1,"span",23),h(),g(14,"p-overlay",24,3),De("visibleChange",function(_){return d(o),Ve(i.overlayVisible,_)||(i.overlayVisible=_),u(_)}),b("onAnimationStart",function(_){return d(o),u(i.onOverlayAnimationStart(_))})("onBeforeHide",function(_){return d(o),u(i.onOverlayBeforeHide(_))})("onShow",function(_){return d(o),u(i.onShow.emit(_))})("onHide",function(_){return d(o),u(i.hide(_))}),p(16,Hn,15,47,"ng-template",null,4,k),h()()}if(n&2){let o,l,_=ne(9);w(i.containerStyleClass),a("ngClass",i.containerClass)("ngStyle",i.containerStyle),c(3),a("disabled",i.disabled)("pAutoFocus",i.autofocus),C("id",i.inputId)("tabindex",i.disabled?-1:i.tabindex)("aria-controls",i.overlayVisible?i.listId:null)("aria-haspopup","tree")("aria-expanded",(o=i.overlayVisible)!==null&&o!==void 0?o:!1)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label)),c(3),w(i.labelStyleClass),a("ngClass",i.labelClass)("ngStyle",i.labelStyle),c(),a("ngIf",i.valueTemplate||i._valueTemplate)("ngIfElse",_),c(3),a("ngIf",i.checkValue()&&!i.disabled&&i.showClear),c(),C("aria-expanded",(l=i.overlayVisible)!==null&&l!==void 0?l:!1)("aria-label","treeselect trigger"),c(),a("ngIf",!i.triggerIconTemplate&&!i._triggerIconTemplate&&!i.dropdownIconTemplate&&!i._dropdownIconTemplate),c(),a("ngIf",i.triggerIconTemplate||i._triggerIconTemplate||i.dropdownIconTemplate||i._dropdownIconTemplate),c(),ke("visible",i.overlayVisible),a("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[j,H,oe,q,K,re,We,z,xe,ge,qe,he,tt],encapsulation:2,changeDetection:0})}return t})(),gr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=pe({type:t});static \u0275inj=se({imports:[ct,z,z]})}return t})();export{ct as a,gr as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Y}from"./chunk-NMJGLMWI.js";import{e as J}from"./chunk-6IAGGRZN.js";import{j as H}from"./chunk-CHZLFJFI.js";import{b as j,e as F}from"./chunk-BUFEIJAI.js";import"./chunk-K5XRGNWG.js";import"./chunk-V5WYSCVT.js";import{l as G,m as U}from"./chunk-BIQHA7UA.js";import"./chunk-TMFFA26Y.js";import"./chunk-WAW37FIG.js";import{c as B,h as D,m as I,y as R}from"./chunk-DPLEMBB4.js";import"./chunk-PXB4YEY3.js";import{j as P,l as W,n as k}from"./chunk-GPEVUTDI.js";import{Eb as x,Ec as i,Fc as E,Ic as C,Jc as b,Kb as M,Kc as _,Lc as T,Mc as V,Nc as v,Qa as h,Wb as f,Z as y,Zc as S,_c as w,bc as O,gc as e,hc as t,ic as A,mc as L,pa as u,qb as d,rc as g,sc as N,ya as s,za as m}from"./chunk-T5ONJF63.js";import"./chunk-K2H6WANG.js";function z(n,q){if(n&1&&(e(0,"pre",21),i(1),S(2,"json"),t()),n&2){N();let l=v(25);d(),E(w(2,1,l))}}function K(n,q){n&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ce=(()=>{class n{constructor(){this.httpService=u(F),this.toastr=u(j),this.selectedChannel=h(null),this.orderNumber=h(null)}fetchLog(){if(!this.selectedChannel()||!this.orderNumber()){this.toastr.warning("Please select a channel and enter an order number","Warning");return}this.orderLog$=this.httpService.post(H.GetOrderApiLog,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(y(1))}copyToClipboard(l){if(!l)return;let p=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(p),this.toastr.success("Copied to clipboard!","Success")}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=x({type:n,selectors:[["app-order-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Order Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","orderLogText"],[1,"text-center","my-12","text-muted"]],template:function(p,r){if(p&1){let a=L();e(0,"mainpanel",0)(1,"actions")(2,"button",1),g("click",function(){return s(a),m(r.fetchLog())}),A(3,"i",2),i(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),i(12,"Channel"),t(),e(13,"p",8),i(14," View logs related to Order API activities. "),t()(),e(15,"div",9)(16,"channel-select-options",10),_("ngModelChange",function(o){return s(a),b(r.selectedChannel,o)||(r.selectedChannel=o),m(o)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Order Number"),t(),e(21,"p",8),i(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),_("ngModelChange",function(o){return s(a),b(r.orderNumber,o)||(r.orderNumber=o),m(o)}),t()()()()(),T(25),S(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),i(32,"Response"),t(),e(33,"button",17),g("click",function(){s(a);let o=v(25);return m(r.copyToClipboard(o))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),M(38,z,3,3,"pre",21)(39,K,2,0,"p",22),t()()()()()()()()()}if(p&2){f("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),C("ngModel",r.selectedChannel),d(8),C("ngModel",r.orderNumber),d();let a=V(w(26,6,r.orderLog$));d(8),f("disabled",!a),d(5),O(a?38:39)}},dependencies:[k,P,W,U,G,J,R,B,D,I,Y],encapsulation:2})}}return n})();export{ce as OrderApiComponent};
|