marketplacepos 5.46.6 → 5.48.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 +104 -52
- package/Marketplace/chunk-222IOSGU.js +2 -0
- package/Marketplace/chunk-2FSRCK7Y.js +1 -0
- package/Marketplace/chunk-2J7P6ENI.js +1 -0
- package/Marketplace/chunk-2LCP6ZFH.js +1 -0
- package/Marketplace/chunk-34UF36YY.js +1 -0
- package/Marketplace/chunk-37NOSLQL.js +2 -0
- package/Marketplace/chunk-3I2V337G.js +2 -0
- package/Marketplace/chunk-3JRUKSV3.js +251 -0
- package/Marketplace/chunk-3LU2SFN4.js +7 -0
- package/Marketplace/chunk-3WRXJBHF.js +380 -0
- package/Marketplace/chunk-3YDWTOSL.js +1 -0
- package/Marketplace/chunk-44URQXRM.js +1 -0
- package/Marketplace/chunk-465DKI6M.js +1 -0
- package/Marketplace/chunk-46IROEMV.js +2 -0
- package/Marketplace/chunk-4ILDFTIG.js +34 -0
- package/Marketplace/chunk-4R746B4G.js +1 -0
- package/Marketplace/chunk-4RG5YR7N.js +54 -0
- package/Marketplace/chunk-4RLWHMI6.js +1 -0
- package/Marketplace/chunk-4VNQYYVV.js +1 -0
- package/Marketplace/chunk-55BTWXFX.js +2 -0
- package/Marketplace/{chunk-7TI3OR34.js → chunk-56BH43Y7.js} +3 -3
- package/Marketplace/chunk-573EEV7X.js +1 -0
- package/Marketplace/chunk-5MV3UFJQ.js +88 -0
- package/Marketplace/chunk-5O33CV4F.js +7 -0
- package/Marketplace/chunk-5PMKN6PM.js +151 -0
- package/Marketplace/chunk-5S7ONNKP.js +1 -0
- package/Marketplace/chunk-5YBWBAQS.js +1 -0
- package/Marketplace/chunk-63I3I3MX.js +5 -0
- package/Marketplace/chunk-6KWG6O5L.js +2 -0
- package/Marketplace/{chunk-6L7TD5DW.js → chunk-6Q6L5NUD.js} +1 -1
- package/Marketplace/chunk-6XT3JSG5.js +1 -0
- package/Marketplace/chunk-6ZEQRKBC.js +1 -0
- package/Marketplace/chunk-74JHI4MS.js +39 -0
- package/Marketplace/chunk-76CPUGUB.js +149 -0
- package/Marketplace/chunk-7HVOZWYY.js +1 -0
- package/Marketplace/chunk-7JQEF4XX.js +1 -0
- package/Marketplace/chunk-7U32FNM2.js +2 -0
- package/Marketplace/chunk-7VRLCSNB.js +1 -0
- package/Marketplace/chunk-7Y2L4CNS.js +1 -0
- package/Marketplace/chunk-A6QXXKPR.js +1 -0
- package/Marketplace/chunk-A7YRNCQP.js +2 -0
- package/Marketplace/chunk-AFDI4TD4.js +104 -0
- package/Marketplace/chunk-AL5RTE5M.js +1 -0
- package/Marketplace/chunk-AXC6LM6T.js +1 -0
- package/Marketplace/chunk-AZOCRKXK.js +1 -0
- package/Marketplace/chunk-B4QCGMST.js +1 -0
- package/Marketplace/chunk-BHGEKKCM.js +1 -0
- package/Marketplace/chunk-BKR7YPEW.js +1 -0
- package/Marketplace/chunk-BLHKSSK6.js +1 -0
- package/Marketplace/chunk-BXOHTPGP.js +1 -0
- package/Marketplace/chunk-CEXUETT6.js +1 -0
- package/Marketplace/{chunk-RNNH3EZC.js → chunk-CM3B2UZ7.js} +1 -1
- package/Marketplace/chunk-CNTLG54D.js +1 -0
- package/Marketplace/chunk-DLXWO2XC.js +1 -0
- package/Marketplace/chunk-DPQMNLFO.js +1 -0
- package/Marketplace/chunk-DQOO5YZC.js +1 -0
- package/Marketplace/{chunk-LS7AO6KP.js → chunk-DRTRU4DB.js} +1 -1
- package/Marketplace/chunk-DYQ3BWPB.js +1 -0
- package/Marketplace/chunk-E5JZCOHZ.js +1 -0
- package/Marketplace/chunk-E6AMKEQR.js +149 -0
- package/Marketplace/chunk-E7FHMF3J.js +1 -0
- package/Marketplace/chunk-EMLE4JDW.js +1 -0
- package/Marketplace/chunk-EYT2YJGK.js +1 -0
- package/Marketplace/chunk-FFTZPZOW.js +5 -0
- package/Marketplace/chunk-FHZNWINZ.js +1 -0
- package/Marketplace/{chunk-HVCIQI7B.js → chunk-FULVA6QB.js} +1 -1
- package/Marketplace/chunk-G6P2UZU4.js +1 -0
- package/Marketplace/chunk-GLMM3CVD.js +1 -0
- package/Marketplace/chunk-GQCDEPDY.js +1 -0
- package/Marketplace/chunk-GV3NEJJ6.js +2 -0
- package/Marketplace/chunk-GZLXMT7F.js +1 -0
- package/Marketplace/chunk-HERBJRWM.js +1 -0
- package/Marketplace/chunk-HG4R6CUP.js +1 -0
- package/Marketplace/chunk-HK5FXZE4.js +40 -0
- package/Marketplace/{chunk-W3JTS22H.js → chunk-HPINZVE4.js} +1 -1
- package/Marketplace/chunk-HU7LMMZJ.js +1 -0
- package/Marketplace/chunk-I3IA6MAD.js +1 -0
- package/Marketplace/chunk-IGKMJFKP.js +90 -0
- package/Marketplace/chunk-IM5M2CAI.js +1 -0
- package/Marketplace/chunk-IO2TWJDO.js +2 -0
- package/Marketplace/chunk-ISMIPSYN.js +1 -0
- package/Marketplace/chunk-ITGVXYDV.js +1 -0
- package/Marketplace/chunk-IZZQQW5G.js +5 -0
- package/Marketplace/{chunk-63ANFYRV.js → chunk-J2BPOHP6.js} +3 -3
- package/Marketplace/chunk-J5BZDPXE.js +1 -0
- package/Marketplace/chunk-J7FL3VT4.js +1 -0
- package/Marketplace/chunk-JLVWTKDH.js +1 -0
- package/Marketplace/chunk-JOKDW6WD.js +1 -0
- package/Marketplace/chunk-JUO4RKIH.js +1 -0
- package/Marketplace/chunk-KJE5GRQ4.js +1 -0
- package/Marketplace/chunk-KKB4B7FU.js +157 -0
- package/Marketplace/chunk-KWNXPX2M.js +1 -0
- package/Marketplace/chunk-L2GMXVN6.js +1 -0
- package/Marketplace/chunk-L3W6SG2T.js +1 -0
- package/Marketplace/chunk-L7WZ6U4T.js +15 -0
- package/Marketplace/chunk-LNJUGHOX.js +2 -0
- package/Marketplace/chunk-LOWGZOML.js +1 -0
- package/Marketplace/chunk-M4ZE35XK.js +61 -0
- package/Marketplace/chunk-M7U5T2ZP.js +1 -0
- package/Marketplace/chunk-MAMCOUZ6.js +1 -0
- package/Marketplace/chunk-MEER4VNV.js +1 -0
- package/Marketplace/chunk-MQXW3UAW.js +2 -0
- package/Marketplace/chunk-N26QQL77.js +1 -0
- package/Marketplace/chunk-N3WBRUNI.js +2 -0
- package/Marketplace/{chunk-JVNHFIYT.js → chunk-N5AE5WMQ.js} +1 -1
- package/Marketplace/chunk-NECWUPZQ.js +4 -0
- package/Marketplace/chunk-NLSVMXR7.js +2 -0
- package/Marketplace/chunk-NOIKC7TF.js +1 -0
- package/Marketplace/chunk-NWB7EVME.js +112 -0
- package/Marketplace/chunk-NYJPPKGX.js +1 -0
- package/Marketplace/chunk-O4HOLA7Y.js +1 -0
- package/Marketplace/chunk-ODQVHQPB.js +15 -0
- package/Marketplace/chunk-ONU4O7N2.js +2 -0
- package/Marketplace/chunk-OPXITNRF.js +1 -0
- package/Marketplace/chunk-OROFEDQN.js +5 -0
- package/Marketplace/chunk-OXWPYJNB.js +1 -0
- package/Marketplace/chunk-P6TDS7UT.js +1 -0
- package/Marketplace/chunk-PE7QBBA6.js +1 -0
- package/Marketplace/chunk-PGR6BEOA.js +1 -0
- package/Marketplace/chunk-PNUEO4J2.js +1 -0
- package/Marketplace/chunk-PQEXTCFW.js +1413 -0
- package/Marketplace/chunk-PS43OK3J.js +1 -0
- package/Marketplace/{chunk-QS22J2SC.js → chunk-PZB3GQWT.js} +2 -2
- package/Marketplace/chunk-Q2QX5AAJ.js +1130 -0
- package/Marketplace/chunk-QXRG5XYP.js +1 -0
- package/Marketplace/chunk-R6SCDZGW.js +1 -0
- package/Marketplace/chunk-RJFFTIAO.js +2 -0
- package/Marketplace/chunk-RNWHARPK.js +92 -0
- package/Marketplace/chunk-RUBV3KX2.js +149 -0
- package/Marketplace/{chunk-TGMCGROM.js → chunk-RXLMJGUY.js} +3 -3
- package/Marketplace/chunk-S32PEKW5.js +1 -0
- package/Marketplace/chunk-SILAIDPV.js +3 -0
- package/Marketplace/chunk-SJ5MC42H.js +257 -0
- package/Marketplace/chunk-SNSROU6N.js +1 -0
- package/Marketplace/chunk-SUTHLGCO.js +266 -0
- package/Marketplace/chunk-TCWEUEBR.js +264 -0
- package/Marketplace/chunk-TDCMI7YC.js +2 -0
- package/Marketplace/chunk-TUJHFVOP.js +1 -0
- package/Marketplace/chunk-UH5C5HXK.js +1 -0
- package/Marketplace/chunk-UI5ITL7Z.js +4 -0
- package/Marketplace/chunk-UNGNRJ2B.js +1 -0
- package/Marketplace/chunk-UW3UCIOY.js +10 -0
- package/Marketplace/chunk-VZSHSSQZ.js +2 -0
- package/Marketplace/chunk-W7YZT7CH.js +1 -0
- package/Marketplace/chunk-WFMAM73Y.js +1 -0
- package/Marketplace/chunk-WW7F6LSG.js +1 -0
- package/Marketplace/chunk-XBDQR2BA.js +1 -0
- package/Marketplace/chunk-XBIHN6D3.js +1 -0
- package/Marketplace/chunk-XFIUNEOU.js +1 -0
- package/Marketplace/chunk-XRLXIT7I.js +1 -0
- package/Marketplace/chunk-XUBQATMN.js +3 -0
- package/Marketplace/chunk-XW2CGM4G.js +5 -0
- package/Marketplace/chunk-Y6WFE3L2.js +1 -0
- package/Marketplace/chunk-YJTPDV4D.js +1 -0
- package/Marketplace/chunk-YKEAAH3N.js +2 -0
- package/Marketplace/chunk-YTHY4IFS.js +1 -0
- package/Marketplace/chunk-YTUPRTC2.js +1 -0
- package/Marketplace/chunk-ZAUKG4R6.js +2 -0
- package/Marketplace/chunk-ZETUYNFJ.js +1 -0
- package/Marketplace/chunk-ZS465QKM.js +2 -0
- package/Marketplace/chunk-ZSUWHVKX.js +1 -0
- package/Marketplace/chunk-ZV7EHPNJ.js +1 -0
- package/Marketplace/chunk-ZYJ6LAJ3.js +4 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-NBCLYU5Y.js +1 -0
- package/Marketplace/{polyfills-BUUDEW7V.js → polyfills-5FDKUQTZ.js} +1 -1
- package/Marketplace/scripts-2STIAS5P.js +5 -0
- package/Marketplace/styles-3SQUCHWS.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-22ARBR7W.js +0 -1
- package/Marketplace/chunk-2BV7ZXRB.js +0 -1
- package/Marketplace/chunk-2DLU2LJJ.js +0 -1
- package/Marketplace/chunk-3GDM5JNY.js +0 -2
- package/Marketplace/chunk-3PPLPXAX.js +0 -222
- package/Marketplace/chunk-4G7SG2H6.js +0 -1
- package/Marketplace/chunk-4HOZLG47.js +0 -1
- package/Marketplace/chunk-4NEKWRL7.js +0 -1
- package/Marketplace/chunk-4YRBARG2.js +0 -1
- package/Marketplace/chunk-5BHSTOJT.js +0 -1
- package/Marketplace/chunk-5CKVZBHM.js +0 -102
- package/Marketplace/chunk-5DTUHJSS.js +0 -1
- package/Marketplace/chunk-5EIQGYTB.js +0 -1
- package/Marketplace/chunk-5KUKIH4H.js +0 -1
- package/Marketplace/chunk-5PS6ZS3N.js +0 -1
- package/Marketplace/chunk-5Z5Y537T.js +0 -1
- package/Marketplace/chunk-67HPC5Y3.js +0 -2
- package/Marketplace/chunk-6H2KAYSB.js +0 -1088
- package/Marketplace/chunk-6OMSPZZC.js +0 -2
- package/Marketplace/chunk-7G6GQTSH.js +0 -33
- package/Marketplace/chunk-7WY57PVD.js +0 -1
- package/Marketplace/chunk-7Y7SPMGZ.js +0 -1
- package/Marketplace/chunk-A6PXM4YX.js +0 -1
- package/Marketplace/chunk-ABYG6YZT.js +0 -2
- package/Marketplace/chunk-ACIMXBIC.js +0 -1
- package/Marketplace/chunk-AGZCB65X.js +0 -1
- package/Marketplace/chunk-AWNZSJSP.js +0 -1
- package/Marketplace/chunk-B2ZWLW3F.js +0 -1
- package/Marketplace/chunk-BKRCW7SH.js +0 -79
- package/Marketplace/chunk-BMYBLBSP.js +0 -3
- package/Marketplace/chunk-CBQUB3KW.js +0 -1
- package/Marketplace/chunk-CGOB6Y3X.js +0 -1
- package/Marketplace/chunk-CRD4OUSG.js +0 -1
- package/Marketplace/chunk-CT73GC7O.js +0 -1
- package/Marketplace/chunk-CVM573KF.js +0 -1
- package/Marketplace/chunk-D2TELRO7.js +0 -1
- package/Marketplace/chunk-DAXM2MPK.js +0 -1
- package/Marketplace/chunk-DXPLB6OB.js +0 -252
- package/Marketplace/chunk-EFB55SZR.js +0 -1
- package/Marketplace/chunk-EHBCYQSG.js +0 -1
- package/Marketplace/chunk-EHUVS2VB.js +0 -1
- package/Marketplace/chunk-ELZBUFG5.js +0 -1
- package/Marketplace/chunk-EPBVNII2.js +0 -51
- package/Marketplace/chunk-ERXVXBTU.js +0 -1
- package/Marketplace/chunk-EU2KAMEK.js +0 -1
- package/Marketplace/chunk-EUYQST7Q.js +0 -1
- package/Marketplace/chunk-EXSI44LD.js +0 -33
- package/Marketplace/chunk-EYONZQ2W.js +0 -1
- package/Marketplace/chunk-F2XHUFJC.js +0 -157
- package/Marketplace/chunk-F3GLNINI.js +0 -1
- package/Marketplace/chunk-FGRPTNDB.js +0 -234
- package/Marketplace/chunk-FHNST4Y7.js +0 -1
- package/Marketplace/chunk-FKQ7ZVGD.js +0 -1
- package/Marketplace/chunk-FOT5AJYX.js +0 -2
- package/Marketplace/chunk-FXQKRJWU.js +0 -2
- package/Marketplace/chunk-GCECFUOP.js +0 -1
- package/Marketplace/chunk-GH5FTODR.js +0 -1
- package/Marketplace/chunk-GHVAGYK3.js +0 -2
- package/Marketplace/chunk-GRYGUILI.js +0 -2
- package/Marketplace/chunk-GSVFDIM6.js +0 -1
- package/Marketplace/chunk-GZKOMS4T.js +0 -2
- package/Marketplace/chunk-GZS2MOSK.js +0 -1
- package/Marketplace/chunk-HERZ7KEM.js +0 -1
- package/Marketplace/chunk-HIC5QC3Y.js +0 -1
- package/Marketplace/chunk-HJXYT6MI.js +0 -4
- package/Marketplace/chunk-IHSGQFDX.js +0 -2
- package/Marketplace/chunk-IITU3NV6.js +0 -1
- package/Marketplace/chunk-JAWWMIGP.js +0 -1
- package/Marketplace/chunk-JBT7GBCM.js +0 -5
- package/Marketplace/chunk-JGEU4EJT.js +0 -1
- package/Marketplace/chunk-JUJFPAAU.js +0 -1
- package/Marketplace/chunk-JZDOMET2.js +0 -1
- package/Marketplace/chunk-KS7ACI26.js +0 -10
- package/Marketplace/chunk-KSHWHTCH.js +0 -2
- package/Marketplace/chunk-KTB223SK.js +0 -1
- package/Marketplace/chunk-KWHVCPX2.js +0 -1
- package/Marketplace/chunk-LBMUKJV5.js +0 -1
- package/Marketplace/chunk-LDL3A7NM.js +0 -1
- package/Marketplace/chunk-LLHPMXKP.js +0 -2
- package/Marketplace/chunk-LXXEN7OV.js +0 -1
- package/Marketplace/chunk-LYPHZP72.js +0 -2
- package/Marketplace/chunk-MFQQEEHJ.js +0 -3
- package/Marketplace/chunk-MGLOTL2T.js +0 -1
- package/Marketplace/chunk-MO53T3IK.js +0 -1
- package/Marketplace/chunk-MX5SR3SR.js +0 -94
- package/Marketplace/chunk-MZWTCBAF.js +0 -15
- package/Marketplace/chunk-NDBC2CS6.js +0 -1
- package/Marketplace/chunk-NFGFM7TW.js +0 -1
- package/Marketplace/chunk-NNOI3AG4.js +0 -1
- package/Marketplace/chunk-O2YNPIYM.js +0 -5
- package/Marketplace/chunk-OGJMVAEL.js +0 -5
- package/Marketplace/chunk-OJMQBH6T.js +0 -7
- package/Marketplace/chunk-OO2CSDGF.js +0 -1
- package/Marketplace/chunk-OXWPLJEW.js +0 -93
- package/Marketplace/chunk-OZ7LWNOK.js +0 -15
- package/Marketplace/chunk-P2AADVEN.js +0 -3
- package/Marketplace/chunk-P2IQLBGG.js +0 -1
- package/Marketplace/chunk-PE5AFID4.js +0 -1
- package/Marketplace/chunk-PFY5UG5D.js +0 -4
- package/Marketplace/chunk-PGP3WHIS.js +0 -397
- package/Marketplace/chunk-PHUHUFYL.js +0 -2
- package/Marketplace/chunk-PIBVGTHJ.js +0 -1
- package/Marketplace/chunk-PTNJ3YC5.js +0 -1
- package/Marketplace/chunk-PYXL7UF7.js +0 -2
- package/Marketplace/chunk-Q4N2QUV6.js +0 -30
- package/Marketplace/chunk-QOP7KZK7.js +0 -1
- package/Marketplace/chunk-QREUIGWW.js +0 -1
- package/Marketplace/chunk-QW4EOJRM.js +0 -1
- package/Marketplace/chunk-QWISVEBT.js +0 -141
- package/Marketplace/chunk-RAQRGWCZ.js +0 -2
- package/Marketplace/chunk-RC5PUUVM.js +0 -193
- package/Marketplace/chunk-RGAKHXPF.js +0 -1
- package/Marketplace/chunk-RGAWEFPQ.js +0 -1
- package/Marketplace/chunk-RGY4FVTG.js +0 -1
- package/Marketplace/chunk-RHHHL4OR.js +0 -5
- package/Marketplace/chunk-S3FZRSRP.js +0 -1
- package/Marketplace/chunk-SLEJQAL7.js +0 -1
- package/Marketplace/chunk-T27ABFCP.js +0 -1
- package/Marketplace/chunk-T2OSIFLN.js +0 -78
- package/Marketplace/chunk-TI67Q3JR.js +0 -5
- package/Marketplace/chunk-TMKLT3K2.js +0 -1
- package/Marketplace/chunk-TWOIWWMO.js +0 -2
- package/Marketplace/chunk-UGYIOLBR.js +0 -1
- package/Marketplace/chunk-UMP6ZMEJ.js +0 -1
- package/Marketplace/chunk-URGPZLCB.js +0 -1
- package/Marketplace/chunk-USBIAIK6.js +0 -1
- package/Marketplace/chunk-UYFUJBC4.js +0 -2
- package/Marketplace/chunk-UZWED4UK.js +0 -137
- package/Marketplace/chunk-V3USB3ZU.js +0 -1
- package/Marketplace/chunk-V3ZRQKJA.js +0 -158
- package/Marketplace/chunk-VFATXJRG.js +0 -1
- package/Marketplace/chunk-W3DTXPRM.js +0 -1
- package/Marketplace/chunk-WGCIF2R4.js +0 -257
- package/Marketplace/chunk-WN5DZGA4.js +0 -1
- package/Marketplace/chunk-WRJFUNM3.js +0 -1
- package/Marketplace/chunk-X4B2FYY3.js +0 -7
- package/Marketplace/chunk-X52QA4QU.js +0 -1
- package/Marketplace/chunk-XHAXYWZ7.js +0 -1
- package/Marketplace/chunk-XLWWNO5M.js +0 -1
- package/Marketplace/chunk-XONEJSCE.js +0 -1
- package/Marketplace/chunk-XPCRS7AL.js +0 -1
- package/Marketplace/chunk-XXT6F2ZS.js +0 -5
- package/Marketplace/chunk-Y4XF2TXJ.js +0 -1
- package/Marketplace/chunk-YEDXFYTD.js +0 -1
- package/Marketplace/chunk-YERZ6W22.js +0 -1
- package/Marketplace/chunk-YF4XELSP.js +0 -1
- package/Marketplace/chunk-YFDFIBAG.js +0 -1
- package/Marketplace/chunk-YQLOB7IQ.js +0 -70
- package/Marketplace/chunk-YTCIQBSO.js +0 -2
- package/Marketplace/chunk-YU2SDRUC.js +0 -1
- package/Marketplace/chunk-Z3ITXK3D.js +0 -1
- package/Marketplace/chunk-ZYQD6SBV.js +0 -1235
- package/Marketplace/main-YKZPM7WW.js +0 -1
- package/Marketplace/scripts-BTEOQWVQ.js +0 -5
- package/Marketplace/styles-EW2SXTVD.css +0 -1
- /package/Marketplace/{chunk-SDUUFQUI.js → chunk-D2J64VUP.js} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{a as P,b as v}from"./chunk-34UF36YY.js";import{i as I}from"./chunk-5O33CV4F.js";import{a as f}from"./chunk-YJTPDV4D.js";import{b as m,e as g}from"./chunk-OXWPYJNB.js";import{c as i}from"./chunk-BLHKSSK6.js";import{J as h,ea as l,ma as C,qa as u,r as c,ra as S}from"./chunk-ZYJ6LAJ3.js";var R=(()=>{let o=class o{constructor(t,e,n){this.httpService=t,this.toastrService=e,this.notificationService=n,this.authService=S(I),this.scanChannelToastr=S(P),this.channelOptions=this.authService.getChannels()}loader(t=i.GuidEMpty){return this.httpService.post("/api/product/Load",{ID:t})}LoadInPOS(t=i.GuidEMpty){return this.httpService.post("/api/product/LoadInPOS",{ID:t})}filterChannelByTypeId(t,e){return t.filter(n=>e.findIndex(a=>n.TypeID==a)!==-1)}getProductStatistic(){return this.httpService.post("/api/product/ProductStatistic",{})}getTotalProductLive(t){let e={ID:t};return this.httpService.post("/api/product/TotalProductLive",e)}clearCacheChannel(t){let e={ID:t};return this.httpService.post("/api/Channel/ClearCacheChannel",e)}detachProduct(t){return this.httpService.post("/api/product/Detach",t)}uploadSingleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleChannel",n).pipe(l(a=>{this.showToastrSuccessUploadSingle(a,t[0])}),h(a=>(this.showToastErrorUploadSingle(a,t[0]),c(()=>new Error(a)))))}uploadMultipleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleProductAndMultipleChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a.Message)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}uploadNotInChannel(t,e){let n={Products:t,Channel:e};return this.httpService.post("/api/product/UploadProductNotInChannelToChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}scanSingle(t,e){let n={ID:t,SKU:e};return this.httpService.post("/api/product/ScanSingle",n)}scanNotInChannel(t){let e={ID:t};return this.httpService.post("/api/product/ScanNotinChannel",e)}findAllSoldInChannel(t){return this.httpService.post("/api/product/GetSoldInChannel",t)}scanAll(t,e,n,a=!1){let s={ID:t,ScanFull:e,UpdatedProduct:n,Async:a};return this.httpService.post("/api/product/ScanOptimized",s)}scanAsyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!0};return this.httpService.post(f.ScanAsyncProductV2,a).pipe(l(s=>{this.notificationService.subscribeToJobGroup(s.JobID)}))}scanSyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!1};return this.httpService.post(f.ScanSyncProductV2,a)}scanProductV2(t,e,n,a=!1){let s=this.findChannelById(t,this.channelOptions);return a?this.scanAsyncProductV2(t,e,n).pipe(l(r=>{this.scanChannelToastr.showToast({text:"Scan Job Started",detail:`JobID: ${r.JobID}`,severity:"info",data:{channelName:s.Name,channelTypeId:s.TypeID,jobId:r.JobID}})})):this.scanSyncProductV2(t,e,n).pipe(l(r=>{this.successToastrScanAllProduct(r,s,!n)}))}scanCompareToPos(t){return this.httpService.post("/api/product/CompareMarketplaceToPOS",t)}getVariantCodesProduct(t){return(t.Variants||[]).map(a=>a.Code)}downloadMultipleProduct(t){let e=t.map(n=>({ChannelItemID:n.ChannelItemID,ChannelID:n.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",e).pipe(l(n=>{this.toastrService.success(`${n.Count} products downloaded to POS`,"Download Complete")}))}downloadProduct(t){let e={ChannelItemID:t.ChannelItemID,ChannelID:t.ChannelID};return this.httpService.post("/api/product/DownloadProductFromChannel",e).pipe(l(()=>{this.toastrService.success("Product successfully downloaded to POS","Download Complete")}))}getVariantCodesProducts(t=[]){let e=[];return t.forEach(n=>{n.Variants.forEach(a=>{e=[...e,a.Code]})}),e}filterUnselectedChannel(t,e){let n=[];t.forEach(s=>{n=[...n,...s.Channel]});let a;if(!n||n.length==0)a=e;else{let s=[];a=e.filter(r=>(s=n.filter(d=>d.ChannelID==r.ID),s.length!==t.length))}return a}findChannelById(t,e){return e.find(n=>n.ID==t)}sortChannel(t=[]){return t.sort((e,n)=>e.TypeID<n.TypeID?1:e.TypeID===n.TypeID?0:-1)}hasSelection(t=[]){return this.selectedProduct(t).length>0}selectedProduct(t=[]){return t.filter(e=>e.selected)}hasSelectionVariant(t){return this.selectedVariantProduct(t).length>0}selectedVariantProduct(t){let e=[];return t.forEach(n=>{e=[...e,...n.Variants!=null?n.Variants.filter(a=>a.selected):""]}),e}getChannelProduct(t){let e=t.Variants||[],n=[];for(let a of e)if(a.Channel!=null)for(let s of a.Channel)n.filter(r=>r.ChannelID==s.ChannelID).length==0&&n.push(s);return this.sortChannel(n)}successToastrScanAllProduct(t,e,n){let a=t.InChannel?t?.InChannel?.Product:0,s=t?.NotInPOS?.Product?t?.NotInPOS?.Product:0,r=i.IsNotEmpty(t.LastUpdate)?i.convertToReadableDate(t.LastUpdate):null;n?this.toastrService.success(`
|
|
2
|
+
${s+a} product updates in ${e.Name} </br>
|
|
3
|
+
(${a} In Channel + ${s} Not In Pos)
|
|
4
|
+
${i.IsNotEmpty(r)?"since "+r:""}
|
|
5
|
+
`,"Scan Complete!",{enableHtml:!0,timeOut:1e4}):this.toastrService.success(`${a} product updates in ${e.Name} </br>
|
|
6
|
+
(${a} In Channel + ${s} Not In Pos)
|
|
7
|
+
${i.IsNotEmpty(r)?"since "+r:""}`,"Scan Complete!",{enableHtml:!0,timeOut:1e4})}checkProductHasScanButton(t,e){let n;return t.map(a=>(a.Channel=this.getChannelProduct(a),n=this.filterUnselectedChannel([a],e),a.hasScan=n.length>0,a))}checkProductHasUploadBtn(t,e){let n;return t.map(a=>(a.Channel=this.getChannelProduct(a),n=this.filterUnselectedChannel([a],e),a.hasUpload=n.length>0,a))}showToastrUploadMultiple(t=[]){let e=[],n=[],a=this.getResponseList(t);if(t.forEach(s=>{typeof s?.Response=="string"?n=[...n,a.length>1?this.setHtmlli(s.Response):this.setHtmlli(s.Response,!1)]:(s?.Response?.Success.forEach(r=>{e=[...e,a.length>1?this.setHtmlli(`Product ${r} was <b>successfully</b> uploaded to ${s.Name}`):this.setHtmlli(`Product ${r} was <b>successfully</b> uploaded to ${s.Name}`,!1)]}),s?.Response.Fail.forEach(r=>{n=[...n,a.length>1?this.setHtmlli(r):this.setHtmlli(r,!1)]}))}),n.length>0&&e.length>0){let s=[...e,...n];this.toastrService.warning(this.concatMessage(s),"Warning!",{enableHtml:!0})}else e.length>0&&n.length==0?this.toastrService.success(this.concatMessage(e),"Success",{enableHtml:!0}):this.toastrService.error(this.concatMessage(n),"Error",{enableHtml:!0})}setHtmlli(t,e=!0){return e?`<li>${t}</li>`:t}getResponseList(t){let e=[];return t.forEach(n=>{typeof n?.Response=="string"?e=[...e,n.Response]:(n?.Response?.Success.forEach(a=>{e=[...e,n.Name]}),n?.Response.Fail.forEach(a=>{e=[...e,a]}))}),e}concatMessage(t=[]){let e="";return t.forEach(n=>{e+=n}),t.length>1?`<ol>${e}</ol>`:e}showToastrSuccessUploadSingle(t,e){let n=t.filter(r=>r.Status==!1),a=t.filter(r=>r.Status==!0),s=this.generateToastrMessage(n,a,e);this.toastrService.success(s.message,"Success",{enableHtml:!0})}showToastErrorUploadSingle(t,e){let n=t?.error?.Message.filter(r=>r.Status==!1),a=t?.error?.Message.filter(r=>r.Status==!0),s=this.generateToastrMessage(n,a,e);s.status=="WARNING"?this.toastrService.warning(s.message,"Warning!",{enableHtml:!0}):this.toastrService.error(s.message,`Error - ${t.status}`,{enableHtml:!0})}generateToastrMessage(t,e,n){let a="",s,r=[...t,...e];if(t.length==0&&e.length>0)s="SUCCESS",a=this.createSuccessResponse(e,n);else if(t.length>0&&e.length==0)s="ERROR",a=this.createErrResponse(t,n);else{s="WARNING";let d=this.createSuccessResponse(e,n),y=this.createErrResponse(t,n);a=`${d} ${y}`}return r.length>1&&(a=`<ol>${a}</ol>`),{status:s,message:a}}createErrResponse(t,e){let n="";return t.length>1?t.forEach((a,s)=>{n+=`<li>${a.Response}</li>`}):t.length==1&&(n+=`${t[0].Response}`),n}createSuccessResponse(t,e){let n="";return t.length>1?t.forEach((a,s)=>{n+=`<li>Product ${e.Name} was <b>successfully</b> uploaded to ${a.Name}</li>`}):t.length==1&&(n+=`Product ${e.Name} was <b>successfully</b> uploaded to ${t[0].Name}`),n}};o.\u0275fac=function(e){return new(e||o)(u(g),u(m),u(v))},o.\u0275prov=C({token:o,factory:o.\u0275fac,providedIn:"root"});let p=o;return p})();export{R as a};
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import{a as Xe}from"./chunk-UH5C5HXK.js";import{a as Je,b as Ze,c as tt,d as lt}from"./chunk-AFDI4TD4.js";import{b as at}from"./chunk-4RG5YR7N.js";import{a as it}from"./chunk-5MV3UFJQ.js";import{b as rt}from"./chunk-E6AMKEQR.js";import{a as we,b as nt}from"./chunk-IGKMJFKP.js";import{a as he,b as We,c as Ye,d as _e,e as et}from"./chunk-ITGVXYDV.js";import{a as ot}from"./chunk-HK5FXZE4.js";import{b as Ge}from"./chunk-KJE5GRQ4.js";import{b as qe,c as le,d as Ie,e as V,f as je}from"./chunk-LOWGZOML.js";import{D as ze,F as Qe,T as Ce,U as Ue,a as P,da as Ne,ja as ge,m as Pe,ra as fe,sa as z,t as Se,ta as $e,u as He,ua as Ke,v as $,x as oe,y as Re}from"./chunk-5PMKN6PM.js";import{A as xe,a as Be,h as Ae,m as Le}from"./chunk-L3W6SG2T.js";import{c as Oe,e as ee,f as te,g as ue,h as ne,m as ie}from"./chunk-LNJUGHOX.js";import{$b as Y,$c as A,Ac as v,Bc as k,Cc as g,Dc as f,Fd as T,Gb as W,Gd as R,Ha as se,Hb as Te,Hc as ve,Ic as be,Kb as G,Kc as U,Lb as de,Lc as u,Mb as c,Mc as q,Nc as ce,Oa as Q,Oc as pe,Qc as De,Rc as Me,Sc as Ve,Zb as w,Zc as X,ad as H,bc as J,bd as Fe,gc as r,hc as m,ic as y,jc as C,kd as D,la as re,ma as ae,na as ye,nb as d,nc as N,oc as I,od as L,pa as j,pc as E,qc as O,ra as M,sb as b,td as Z,vc as S,xa as h,xc as s,ya as _,za as B,zb as ke}from"./chunk-ZYJ6LAJ3.js";import{a as K}from"./chunk-66YHNWRR.js";var st=`
|
|
2
|
+
.p-tree {
|
|
3
|
+
display: block;
|
|
4
|
+
background: dt('tree.background');
|
|
5
|
+
color: dt('tree.color');
|
|
6
|
+
padding: dt('tree.padding');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.p-tree-root-children,
|
|
10
|
+
.p-tree-node-children {
|
|
11
|
+
display: flex;
|
|
12
|
+
list-style-type: none;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
margin: 0;
|
|
15
|
+
gap: dt('tree.gap');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p-tree-root-children {
|
|
19
|
+
padding: 0;
|
|
20
|
+
padding-block-start: dt('tree.gap');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.p-tree-node-children {
|
|
24
|
+
padding: 0;
|
|
25
|
+
padding-block-start: dt('tree.gap');
|
|
26
|
+
padding-inline-start: dt('tree.indent');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.p-tree-node {
|
|
30
|
+
padding: 0;
|
|
31
|
+
outline: 0 none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-tree-node-content {
|
|
35
|
+
border-radius: dt('tree.node.border.radius');
|
|
36
|
+
padding: dt('tree.node.padding');
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
outline-color: transparent;
|
|
40
|
+
color: dt('tree.node.color');
|
|
41
|
+
gap: dt('tree.node.gap');
|
|
42
|
+
transition:
|
|
43
|
+
background dt('tree.transition.duration'),
|
|
44
|
+
color dt('tree.transition.duration'),
|
|
45
|
+
outline-color dt('tree.transition.duration'),
|
|
46
|
+
box-shadow dt('tree.transition.duration');
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.p-tree-node-content[data-p-dragging] {
|
|
50
|
+
outline: 1px dashed dt('primary.color');
|
|
51
|
+
outline-offset: -1px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.p-tree-node-content[data-pc-section="drag-image"] {
|
|
55
|
+
background: dt('tree.background');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.p-tree-node:focus-visible > .p-tree-node-content {
|
|
59
|
+
box-shadow: dt('tree.node.focus.ring.shadow');
|
|
60
|
+
outline: dt('tree.node.focus.ring.width') dt('tree.node.focus.ring.style') dt('tree.node.focus.ring.color');
|
|
61
|
+
outline-offset: dt('tree.node.focus.ring.offset');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover {
|
|
65
|
+
background: dt('tree.node.hover.background');
|
|
66
|
+
color: dt('tree.node.hover.color');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover .p-tree-node-icon {
|
|
70
|
+
color: dt('tree.node.icon.hover.color');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-tree-node-content.p-tree-node-selected {
|
|
74
|
+
background: dt('tree.node.selected.background');
|
|
75
|
+
color: dt('tree.node.selected.color');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button {
|
|
79
|
+
color: inherit;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.p-tree-node-content.p-tree-node-dragover {
|
|
83
|
+
background: dt('tree.node.hover.background');
|
|
84
|
+
color: dt('tree.node.hover.color');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.p-tree-node-drop-point {
|
|
88
|
+
outline: 1px solid dt('primary.color');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.p-tree-node-toggle-button {
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
user-select: none;
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
position: relative;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
width: dt('tree.node.toggle.button.size');
|
|
101
|
+
height: dt('tree.node.toggle.button.size');
|
|
102
|
+
color: dt('tree.node.toggle.button.color');
|
|
103
|
+
border: 0 none;
|
|
104
|
+
background: transparent;
|
|
105
|
+
border-radius: dt('tree.node.toggle.button.border.radius');
|
|
106
|
+
transition:
|
|
107
|
+
background dt('tree.transition.duration'),
|
|
108
|
+
color dt('tree.transition.duration'),
|
|
109
|
+
border-color dt('tree.transition.duration'),
|
|
110
|
+
outline-color dt('tree.transition.duration'),
|
|
111
|
+
box-shadow dt('tree.transition.duration');
|
|
112
|
+
outline-color: transparent;
|
|
113
|
+
padding: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.p-tree-node-toggle-button:enabled:hover {
|
|
117
|
+
background: dt('tree.node.toggle.button.hover.background');
|
|
118
|
+
color: dt('tree.node.toggle.button.hover.color');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button:hover {
|
|
122
|
+
background: dt('tree.node.toggle.button.selected.hover.background');
|
|
123
|
+
color: dt('tree.node.toggle.button.selected.hover.color');
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.p-tree-root {
|
|
127
|
+
overflow: auto;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.p-tree-node-selectable {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
user-select: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.p-tree-node-leaf > .p-tree-node-content .p-tree-node-toggle-button {
|
|
136
|
+
visibility: hidden;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.p-tree-node-icon {
|
|
140
|
+
color: dt('tree.node.icon.color');
|
|
141
|
+
transition: color dt('tree.transition.duration');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.p-tree-node-content.p-tree-node-selected .p-tree-node-icon {
|
|
145
|
+
color: dt('tree.node.icon.selected.color');
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.p-tree-filter {
|
|
149
|
+
margin: dt('tree.filter.margin');
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.p-tree-filter-input {
|
|
153
|
+
width: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.p-tree-loading {
|
|
157
|
+
position: relative;
|
|
158
|
+
height: 100%;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.p-tree-loading-icon {
|
|
162
|
+
font-size: dt('tree.loading.icon.size');
|
|
163
|
+
width: dt('tree.loading.icon.size');
|
|
164
|
+
height: dt('tree.loading.icon.size');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.p-tree .p-tree-mask {
|
|
168
|
+
position: absolute;
|
|
169
|
+
z-index: 1;
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.p-tree-flex-scrollable {
|
|
176
|
+
display: flex;
|
|
177
|
+
flex: 1;
|
|
178
|
+
height: 100%;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.p-tree-flex-scrollable .p-tree-root {
|
|
183
|
+
flex: 1;
|
|
184
|
+
}
|
|
185
|
+
`;var ut=t=>({height:t}),St=(t,a)=>({$implicit:t,loading:a}),Ct=(t,a,e)=>({$implicit:t,partialSelected:a,class:e}),gt=t=>({$implicit:t});function Nt(t,a){if(t&1&&C(0,"div",9),t&2){let e=s(2);u(e.cx("dropPoint")),r("pBind",e.getPTOptions("dropPoint")),w("aria-hidden",!0)}}function It(t,a){if(t&1&&(B(),C(0,"svg",13)),t&2){let e=s(4);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function wt(t,a){if(t&1&&(B(),C(0,"svg",14)),t&2){let e=s(4);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function Et(t,a){if(t&1&&(N(0),c(1,It,1,3,"svg",11)(2,wt,1,3,"svg",12),I()),t&2){let e=s(3);d(),r("ngIf",!e.node.expanded),d(),r("ngIf",e.node.expanded)}}function kt(t,a){if(t&1&&(N(0),B(),C(1,"svg",15),I()),t&2){let e=s(3);d(),u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function Dt(t,a){if(t&1&&(N(0),c(1,Et,3,2,"ng-container",6)(2,kt,2,3,"ng-container",6),I()),t&2){let e=s(2);d(),r("ngIf",!e.node.loading),d(),r("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function Mt(t,a){}function Vt(t,a){t&1&&c(0,Mt,0,0,"ng-template")}function Ft(t,a){if(t&1&&(m(0,"span",9),c(1,Vt,1,0,null,16),y()),t&2){let e=s(2);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon")),d(),r("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",H(5,St,e.node.expanded,e.node.loading))}}function Ot(t,a){}function Bt(t,a){t&1&&c(0,Ot,0,0,"ng-template")}function At(t,a){if(t&1&&c(0,Bt,1,0,null,16),t&2){let e=s(4);r("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",Fe(2,Ct,e.isSelected(),e.node.partialSelected,e.cx("nodeCheckbox")))}}function Lt(t,a){t&1&&(N(0),c(1,At,1,6,"ng-template",null,0,D),I())}function Pt(t,a){if(t&1){let e=O();m(0,"p-checkbox",17),S("click",function(n){return h(e),_(n.preventDefault())}),c(1,Lt,3,0,"ng-container",6),y()}if(t&2){let e=s(2);r("ngModel",e.isSelected())("styleClass",e.cx("nodeCheckbox"))("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)("pt",e.getPTOptions("pcNodeCheckbox")),w("data-p-partialchecked",e.node.partialSelected),d(),r("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function Ht(t,a){if(t&1&&C(0,"span",9),t&2){let e=s(2);u(e.getIcon()),r("pBind",e.getPTOptions("nodeIcon"))}}function Rt(t,a){if(t&1&&(m(0,"span"),q(1),y()),t&2){let e=s(2);d(),ce(e.node.label)}}function zt(t,a){t&1&&E(0)}function Qt(t,a){if(t&1&&(m(0,"span"),c(1,zt,1,0,"ng-container",16),y()),t&2){let e=s(2);d(),r("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",A(2,gt,e.node))}}function Ut(t,a){if(t&1&&C(0,"div",9),t&2){let e=s(2);u(e.cx("dropPoint")),r("pBind",e.getPTOptions("dropPoint")),w("aria-hidden",!0)}}function qt(t,a){if(t&1&&C(0,"p-treeNode",20),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(3);r("node",e)("parentNode",l.node)("firstChild",i)("lastChild",n)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function $t(t,a){if(t&1&&(m(0,"ul",18),c(1,qt,1,8,"p-treeNode",19),y()),t&2){let e=s(2);u(e.cx("nodeChildren")),r("pBind",e.ptm("nodeChildren")),d(),r("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Kt(t,a){if(t&1){let e=O();m(0,"li",2),S("keydown",function(n){h(e);let o=s();return _(o.onKeyDown(n))}),Y(1,Nt,1,4,"div",3),m(2,"div",4),S("click",function(n){h(e);let o=s();return _(o.onNodeClick(n))})("contextmenu",function(n){h(e);let o=s();return _(o.onNodeRightClick(n))})("dblclick",function(n){h(e);let o=s();return _(o.onNodeDblClick(n))})("touchend",function(){h(e);let n=s();return _(n.onNodeTouchEnd())})("drop",function(n){h(e);let o=s();return _(o.onNodeDrop(n))})("dragstart",function(n){h(e);let o=s();return _(o.onNodeDragStart(n))})("dragover",function(n){h(e);let o=s();return _(o.onNodeDragOver(n))})("dragleave",function(n){h(e);let o=s();return _(o.onNodeDragLeave(n))})("dragend",function(n){h(e);let o=s();return _(o.onNodeDragEnd(n))}),m(3,"button",5),S("click",function(n){h(e);let o=s();return _(o.toggle(n))}),c(4,Dt,3,2,"ng-container",6)(5,Ft,2,8,"span",7),y(),c(6,Pt,2,10,"p-checkbox",8)(7,Ht,1,3,"span",7),m(8,"span",9),c(9,Rt,2,1,"span",6)(10,Qt,2,4,"span",6),y()(),Y(11,Ut,1,4,"div",3),c(12,$t,2,5,"ul",10),y()}if(t&2){let e=s();U(e.node.style),u(e.cn(e.cx("node"),e.node.styleClass)),r("ngStyle",A(36,ut,e.itemSize+"px"))("pBind",e.getPTOptions("node")),w("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),d(),J(e.isPrevDropPointActive()?1:-1),d(),u(e.cx("nodeContent")),be("padding-left",e.level*e.indentation+"rem"),r("draggable",e.tree.draggableNodes)("pBind",e.getPTOptions("nodeContent")),d(),u(e.cx("nodeToggleButton")),r("pBind",e.getPTOptions("nodeToggleButton")),d(),r("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),d(),r("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),d(),r("ngIf",e.tree.selectionMode=="checkbox"),d(),r("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),d(),u(e.cx("nodeLabel")),r("pBind",e.getPTOptions("nodeLabel")),d(),r("ngIf",!e.tree.getTemplateForNode(e.node)),d(),r("ngIf",e.tree.getTemplateForNode(e.node)),d(),J(e.isNextDropPointActive()?11:-1),d(),r("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded)}}var dt=["filter"],jt=["node"],Wt=["header"],Gt=["footer"],Yt=["loader"],Jt=["empty"],Xt=["togglericon"],Zt=["checkboxicon"],en=["loadingicon"],tn=["filtericon"],nn=["scroller"],on=["wrapper"],ln=["content"],rn=t=>({options:t});function an(t,a){if(t&1&&C(0,"i",11),t&2){let e=s(2);u(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),r("pBind",e.ptm("loadingIcon"))}}function sn(t,a){if(t&1&&(B(),C(0,"svg",13)),t&2){let e=s(3);u(e.cx("loadingIcon")),r("pBind",e.ptm("loadingIcon"))}}function dn(t,a){}function cn(t,a){t&1&&c(0,dn,0,0,"ng-template")}function pn(t,a){if(t&1&&(m(0,"span",11),c(1,cn,1,0,null,8),y()),t&2){let e=s(3);u(e.cx("loadingIcon")),r("pBind",e.ptm("loadingIcon")),d(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function un(t,a){if(t&1&&(N(0),c(1,sn,1,3,"svg",12)(2,pn,2,4,"span",7),I()),t&2){let e=s(2);d(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),d(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function gn(t,a){if(t&1&&(m(0,"div",11),c(1,an,1,3,"i",7)(2,un,3,2,"ng-container",10),y()),t&2){let e=s();u(e.cx("mask")),r("pBind",e.ptm("mask")),d(),r("ngIf",e.loadingIcon),d(),r("ngIf",!e.loadingIcon)}}function fn(t,a){t&1&&E(0)}function hn(t,a){t&1&&E(0)}function _n(t,a){if(t&1&&c(0,hn,1,0,"ng-container",14),t&2){let e=s();r("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",A(2,gt,e.filterOptions))}}function mn(t,a){if(t&1&&(B(),C(0,"svg",19)),t&2){let e=s(3);u(e.cx("filterIcon")),r("pBind",e.ptm("filterIcon"))}}function yn(t,a){}function Tn(t,a){t&1&&c(0,yn,0,0,"ng-template")}function vn(t,a){if(t&1&&(m(0,"span",11),c(1,Tn,1,0,null,8),y()),t&2){let e=s(3);u(e.cx("filterIcon")),r("pBind",e.ptm("filterIcon")),d(),r("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function bn(t,a){if(t&1){let e=O();m(0,"p-iconfield",16)(1,"input",17,0),S("keydown.enter",function(n){return h(e),_(n.preventDefault())})("input",function(n){h(e);let o=s(2);return _(o._filter(n.target==null?null:n.target.value))}),y(),m(3,"p-inputicon",16),c(4,mn,1,3,"svg",18)(5,vn,2,4,"span",7),y()()}if(t&2){let e=s(2);u(e.cx("pcFilterContainer")),r("pt",e.ptm("pcFilterContainer")),d(),u(e.cx("pcFilterInput")),r("pAutoFocus",e.filterInputAutoFocus)("pt",e.ptm("pcFilterInput")),w("placeholder",e.filterPlaceholder),d(2),r("pt",e.ptm("pcFilterIconContainer")),d(),r("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),d(),r("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function xn(t,a){if(t&1&&c(0,bn,6,11,"p-iconfield",15),t&2){let e=s();r("ngIf",e.filter)}}function Sn(t,a){if(t&1&&C(0,"p-treeNode",25,3),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(2).options,p=s(3);r("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",i)("lastChild",n)("index",p.getIndex(l,o))("itemSize",l.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)("pt",p.pt)}}function Cn(t,a){if(t&1&&(m(0,"ul",23,2),c(2,Sn,2,11,"p-treeNode",24),y()),t&2){let e=s(),i=e.$implicit,n=e.options,o=s(3);U(n.contentStyle),u(o.cx("rootChildren")),r("ngClass",n.contentStyleClass)("pBind",o.ptm("rootChildren")),w("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),d(2),r("ngForOf",i)("ngForTrackBy",o.trackBy)}}function Nn(t,a){if(t&1&&c(0,Cn,3,10,"ul",22),t&2){let e=a.$implicit;r("ngIf",e)}}function In(t,a){t&1&&E(0)}function wn(t,a){if(t&1&&c(0,In,1,0,"ng-container",14),t&2){let e=a.options,i=s(4);r("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",A(2,rn,e))}}function En(t,a){t&1&&(N(0),c(1,wn,1,4,"ng-template",null,4,D),I())}function kn(t,a){if(t&1){let e=O();m(0,"p-scroller",21,1),S("onScroll",function(n){h(e);let o=s(2);return _(o.onScroll.emit(n))})("onScrollIndexChange",function(n){h(e);let o=s(2);return _(o.onScrollIndexChange.emit(n))})("onLazyLoad",function(n){h(e);let o=s(2);return _(o.onLazyLoad.emit(n))}),c(2,Nn,1,1,"ng-template",null,2,D)(4,En,3,0,"ng-container",10),y()}if(t&2){let e=s(2);U(A(11,ut,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),r("items",e.serializedValue)("tabindex",-1)("styleClass",e.cx("wrapper"))("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),d(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Dn(t,a){if(t&1&&C(0,"p-treeNode",29),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(4);r("node",e)("firstChild",i)("lastChild",n)("index",o)("level",0)("loadingMode",l.loadingMode)("pt",l.pt)}}function Mn(t,a){if(t&1&&(m(0,"ul",27,2),c(2,Dn,1,7,"p-treeNode",28),y()),t&2){let e=s(3);u(e.cx("rootChildren")),r("pBind",e.ptm("rootChildren")),w("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),d(2),r("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function Vn(t,a){if(t&1&&(N(0),m(1,"div",11,5),c(3,Mn,3,7,"ul",26),y(),I()),t&2){let e=s(2);d(),u(e.cx("wrapper")),be("max-height",e.scrollHeight),r("pBind",e.ptm("wrapper")),d(2),r("ngIf",e.getRootNode())}}function Fn(t,a){if(t&1&&(N(0),c(1,kn,5,13,"p-scroller",20)(2,Vn,4,6,"ng-container",10),I()),t&2){let e=s();d(),r("ngIf",e.virtualScroll),d(),r("ngIf",!e.virtualScroll)}}function On(t,a){if(t&1&&(N(0),q(1),I()),t&2){let e=s(2);d(),pe(" ",e.emptyMessageLabel," ")}}function Bn(t,a){}function An(t,a){t&1&&c(0,Bn,0,0,"ng-template",null,6,D)}function Ln(t,a){if(t&1&&(m(0,"div",11),c(1,On,2,1,"ng-container",30)(2,An,2,0,null,8),y()),t&2){let e=s();u(e.cx("emptyMessage")),r("pBind",e.ptm("emptyMessage")),d(),r("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),d(),r("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Pn(t,a){t&1&&E(0)}var Hn={root:({instance:t})=>["p-tree p-component",{"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,"p-tree-node-selectable":t.selectable,"p-tree-node-dragover":t.isNodeDropActive(),"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",emptyMessage:"p-tree-empty-message",dropPoint:"p-tree-node-drop-point"},me=(()=>{class t extends ge{name="tree";style=st;classes=Hn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var ct=new j("TREE_INSTANCE"),pt=new j("TREENODE_INSTANCE"),Rn=(()=>{class t extends Ie{$pcTreeNode=M(pt,{optional:!0,skipSelf:!0})??void 0;static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=M(re(()=>Ee));timeout;isPrevDropPointHovered=se(!1);isNextDropPointHovered=se(!1);isNodeDropHovered=se(!1);isPrevDropPointActive=L(()=>this.isPrevDropPointHovered()&&this.isDroppable());isNextDropPointActive=L(()=>this.isNextDropPointHovered()&&this.isDroppable());isNodeDropActive=L(()=>this.isNodeDropHovered()&&this.isNodeDroppable());dropPosition=L(()=>this.isPrevDropPointActive()?-1:this.isNextDropPointActive()?1:0);_componentStyle=M(me);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 selectable(){return this.node?.selectable===!1?!1:this.tree?.selectionMode!=null}get subNodes(){return this.node?.parent?this.node.parent.children:this.tree.value}getPTOptions(e){return this.ptm(e,{context:{node:this.node,index:this.index,expanded:this.node?.expanded,selected:this.selected,checked:this.checked,partialChecked:this.node?.partialSelected,leaf:this.isLeaf()}})}onInit(){this.node.parent=this.parentNode;let i=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!i&&(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)}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"]')))}isDraggable(){return this.tree.draggableNodes}isDroppable(){return this.tree.droppableNodes&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)}isNodeDroppable(){return this.node?.droppable!==!1&&this.isDroppable()}isNodeDraggable(){return this.node?.draggable!==!1&&this.isDraggable()}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)}insertNodeOnDrop(){let{dragNode:e,dragNodeIndex:i,dragNodeSubNodes:n}=this.tree;if(!this.node||i==null||!e||!n)return;let o=this.dropPosition(),l=this.subNodes||[],p=this.index||0,x=n===l?i>p?p:p-1:p;n.splice(i,1),o<0?l.splice(x,0,e):o>0?l.splice(x+1,0,e):(this.node.children=this.node.children||[],this.node.children.push(e)),this.tree.dragDropService.stopDrag({node:e,subNodes:l,index:i})}onNodeDrop(e){if(e.preventDefault(),e.stopPropagation(),this.isDroppable()){let{dragNode:i}=this.tree,n=this.dropPosition();(n!==0||n===0&&this.isNodeDroppable())&&(this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index,accept:()=>{this.insertNodeOnDrop()}}):(this.insertNodeOnDrop(),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index})))}this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragStart(e){if(this.isNodeDraggable()){e.dataTransfer.effectAllowed="all",e.dataTransfer?.setData("text","data");let i=e.currentTarget,n=i.cloneNode(!0),o=n.querySelector('[data-pc-section="nodetogglebutton"]'),l=n.querySelector('[data-pc-name="pcnodecheckbox"]');i.setAttribute("data-p-dragging","true"),n.style.width=Pe(i)+"px",n.style.height=Qe(i)+"px",n.setAttribute("data-pc-section","drag-image"),o.style.visibility="hidden",l?.remove(),document.body.appendChild(n),e.dataTransfer?.setDragImage(n,0,0),setTimeout(()=>document.body.removeChild(n),0),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.subNodes,index:this.index,scope:this.tree.draggableScope})}else e.preventDefault()}onNodeDragOver(e){if(this.isDroppable()){e.dataTransfer.dropEffect="copy";let n=e.currentTarget.getBoundingClientRect(),o=e.clientY-parseInt(n.top);this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1),o<n.height*.25?this.isPrevDropPointHovered.set(!0):o>n.height*.75?this.isNextDropPointHovered.set(!0):this.isNodeDroppable()&&this.isNodeDropHovered.set(!0)}else e.dataTransfer.dropEffect="none";this.tree.droppableNodes&&(e.preventDefault(),e.stopPropagation())}onNodeDragLeave(){this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragEnd(e){e.currentTarget?.removeAttribute("data-p-dragging"),this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.subNodes,index:this.index})}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 i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target.parentElement;if(i?.previousElementSibling)this.focusRowChange(i,i.previousElementSibling,this.findLastVisibleDescendant(i.previousElementSibling));else{let n=this.getParentNodeElement(i);n&&this.focusRowChange(i,n)}e.preventDefault()}onArrowDown(e){let i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target,n=i?.children[1];if(n&&n.children.length>0)this.focusRowChange(i,n.children[0]);else if(i?.parentElement?.nextElementSibling)this.focusRowChange(i,i.parentElement.nextElementSibling);else{let o=this.findNextSiblingOfAncestor(i?.parentElement);o&&this.focusRowChange(i,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 i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?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 n=this.getParentNodeElement(i?.parentElement);n&&this.focusRowChange(e.currentTarget,n),e.preventDefault()}onEnter(e){this.tree.onNodeClick(e,this.node),this.setTabIndexForSelectionMode(e,this.tree.nodeTouched),e.preventDefault()}setAllNodesTabIndexes(){let e=Se(this.tree.el.nativeElement,".p-tree-node"),i=[...e].some(n=>n.getAttribute("aria-selected")==="true"||n.getAttribute("aria-checked")==="true");if([...e].forEach(n=>{n.tabIndex=-1}),i){let n=[...e].filter(o=>o.getAttribute("aria-selected")==="true"||o.getAttribute("aria-checked")==="true");n[0].tabIndex=0;return}e.length&&([...e][0].tabIndex=0)}setTabIndexForSelectionMode(e,i){if(this.tree.selectionMode!==null){let n=[...Se(this.tree.el.nativeElement,'[role="treeitem"]')];e.currentTarget.tabIndex=i===!1?-1:0,n.every(o=>o.tabIndex===-1)&&(n[0].tabIndex=0)}}findNextSiblingOfAncestor(e){let i=this.getParentNodeElement(e);return i?i.nextElementSibling?i.nextElementSibling:this.findNextSiblingOfAncestor(i):null}findLastVisibleDescendant(e){let n=Array.from(e.children).find(o=>P(o,"p-tree-node"))?.children[1];if(n&&n.children.length>0){let o=n.children[n.children.length-1];return this.findLastVisibleDescendant(o)}else return e}getParentNodeElement(e){let i=e.parentElement?.parentElement?.parentElement;return i?.tagName==="P-TREENODE"?i:null}focusNode(e){this.tree.droppableNodes?e.children[1].focus():e.children[0].focus()}focusRowChange(e,i,n){e.tabIndex="-1",i.children[0].tabIndex="0",this.focusNode(n||i)}focusVirtualNode(){this.timeout=setTimeout(()=>{let e=He(this.tree?.contentViewChild?.nativeElement,`[data-id="${this.node?.key??this.node?.data}"]`);$(e)},1)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275cmp=W({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",T],index:[2,"index","index",R],firstChild:[2,"firstChild","firstChild",T],lastChild:[2,"lastChild","lastChild",T],level:[2,"level","level",R],indentation:[2,"indentation","indentation",R],itemSize:[2,"itemSize","itemSize",R],loadingMode:"loadingMode"},features:[X([me,{provide:pt,useExisting:t},{provide:le,useExisting:t}]),G],decls:1,vars:1,consts:[["icon",""],["role","treeitem",3,"class","ngStyle","style","pBind"],["role","treeitem",3,"keydown","ngStyle","pBind"],[3,"class","pBind"],[3,"click","contextmenu","dblclick","touchend","drop","dragstart","dragover","dragleave","dragend","draggable","pBind"],["type","button","pRipple","","tabindex","-1",3,"click","pBind"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt","click",4,"ngIf"],[3,"pBind"],["role","group",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt"],["role","group",3,"pBind"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"]],template:function(i,n){i&1&&Y(0,Kt,13,38,"li",1),i&2&&J(n.node?0:-1)},dependencies:[t,ie,ee,te,ne,ue,ot,rt,xe,Ae,Le,Xe,_e,we,z,je,V],encapsulation:2})}return t})(),Ee=(()=>{class t extends Ie{dragDropService;bindDirectiveInstance=M(V,{self:!0});$pcTree=M(ct,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}value;selectionMode;loadingMode="mask";selection;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,i)=>i;highlightOnSelect=!1;selectionChange=new b;onNodeSelect=new b;onNodeUnselect=new b;onNodeExpand=new b;onNodeCollapse=new b;onNodeContextMenuSelect=new b;onNodeDoubleClick=new b;onNodeDrop=new b;onLazyLoad=new b;onScroll=new b;onScrollIndexChange=new b;onFilter=new b;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;contentViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;onAfterContentInit(){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=M(me);handleDropEvent(e){this.onDrop(e)}handleDragOverEvent(e){this.onDragOver(e)}handleDragEnterEvent(){this.onDragEnter()}handleDragLeaveEvent(e){this.onDragLeave(e)}constructor(e){super(),this.dragDropService=e}onInit(){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}))}onChanges(e){e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild?.nativeElement?.value))}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation($e.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,i,n,o){if(i&&i.length)for(let l of i){l.parent=e;let p={node:l,parent:e,level:n,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(p),p.visible&&l.expanded&&this.serializeNodes(l,l.children,n+1,p.visible)}}onNodeClick(e,i){let n=e.target;if(!(P(n,"p-tree-toggler")||P(n,"p-tree-toggler-icon"))){if(this.selectionMode){if(i.selectable===!1){i.style="--p-focus-ring-color: none;";return}else i.style?.includes("--p-focus-ring-color")||(i.style=i.style?`${i.style}--p-focus-ring-color: var(--primary-color)`:"--p-focus-ring-color: var(--primary-color)");if(this.hasFilteredNodes()&&(i=this.getNodeWithKey(i.key,this.filteredNodes),!i))return;let o=this.findIndexInSelection(i),l=o>=0;if(this.isCheckboxSelectionMode())l?(this.propagateSelectionDown?this.propagateDown(i,!1):this.selection=this.selection.filter((p,x)=>x!=o),this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.propagateSelectionDown?this.propagateDown(i,!0):this.selection=[...this.selection||[],i],this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:i}));else if(this.nodeTouched?!1:this.metaKeySelection){let x=e.metaKey||e.ctrlKey;l&&x?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((F,Tt)=>Tt!=o),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.isMultipleSelectionMode()&&(this.selection=x?this.selection||[]:[],this.selection=[...this.selection,i],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:i}))}else this.isSingleSelectionMode()?l?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=i,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})):l?(this.selection=this.selection.filter((x,F)=>F!=o),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=[...this.selection||[],i],setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})),this.selectionChange.emit(this.selection)}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(e,i){if(this.contextMenu){let n=e.target;if(n.className&&n.className.indexOf("p-tree-toggler")===0)return;this.findIndexInSelection(i)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.selectionChange.emit([i])),this.contextMenu.show(e),this.onNodeContextMenuSelect.emit({originalEvent:e,node:i})}}onNodeDblClick(e,i){this.onNodeDoubleClick.emit({originalEvent:e,node:i})}findIndexInSelection(e){let i=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode())i=this.selection.key&&this.selection.key===e.key||this.selection==e?0:-1;else for(let n=0;n<this.selection.length;n++){let o=this.selection[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}syncNodeOption(e,i,n,o){let l=this.hasFilteredNodes()?this.getNodeWithKey(e.key,i):null;l&&(l[n]=o||e[n])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(e,i){for(let n of i){if(n.key===e)return n;if(n.children){let o=this.getNodeWithKey(e,n.children);if(o)return o}}}propagateUp(e,i){if(e.children&&e.children.length){let o=0,l=!1;for(let p of e.children)this.isSelected(p)?o++:p.partialSelected&&(l=!0);if(i&&o==e.children.length)this.selection=[...this.selection||[],e],e.partialSelected=!1;else{if(!i){let p=this.findIndexInSelection(e);p>=0&&(this.selection=this.selection.filter((x,F)=>F!=p))}l||o>0&&o!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}this.syncNodeOption(e,this.filteredNodes,"partialSelected")}let n=e.parent;n&&this.propagateUp(n,i)}propagateDown(e,i){let n=this.findIndexInSelection(e);if(i&&n==-1?this.selection=[...this.selection||[],e]:!i&&n>-1&&(this.selection=this.selection.filter((o,l)=>l!=n)),e.partialSelected=!1,this.syncNodeOption(e,this.filteredNodes,"partialSelected"),e.children&&e.children.length)for(let o of e.children)this.propagateDown(o,i)}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.allowDrop(this.dragNode,null,this.dragNodeScope)&&(e.dataTransfer.dropEffect="copy",e.preventDefault())}onDrop(e){if(this.droppableNodes){e.preventDefault();let i=this.dragNode;if(this.isSameTreeScope(this.dragNodeScope))return;if(this.allowDrop(i,null,this.dragNodeScope)){let n=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n,accept:()=>{this.processTreeDrop(i,n)}}):(this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n}),this.processTreeDrop(i,n))}}}processTreeDrop(e,i){this.dragNodeSubNodes.splice(i,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 i=e.currentTarget.getBoundingClientRect();(e.x>parseInt(i.left)+i.width||e.x<parseInt(i.left)||e.y>parseInt(i.top)+i.height||e.y<parseInt(i.top))&&(this.dragHover=!1)}}allowDrop(e,i,n){if(e)if(this.isValidDragScope(n)){let o=!0;if(i)if(e===i)o=!1;else{let l=i.parent;for(;l!=null;){if(l===e){o=!1;break}l=l.parent}}return o}else return!1;else return!1}hasCommonScope(e,i){if(typeof i=="string"){if(typeof e=="string")return i===e;if(Array.isArray(e))return e.indexOf(i)!=-1}else if(Array.isArray(i)){if(typeof e=="string")return i.indexOf(e)!=-1;if(Array.isArray(e)){for(let n of i)for(let o of e)if(n===o)return!0}}return!1}isSameTreeScope(e){return this.hasCommonScope(e,this.draggableScope)}isValidDragScope(e){let i=this.droppableScope;return i?this.hasCommonScope(e,i):!0}_filter(e){let i=e;if(i==="")this.filteredNodes=null;else{this.filteredNodes=[];let n=this.filterBy.split(","),o=Ne(i).toLocaleLowerCase(this.filterLocale),l=this.filterMode==="strict";for(let p of this.value){let x=K({},p),F={searchFields:n,filterText:o,isStrictMode:l};(l&&(this.findFilteredNodes(x,F)||this.isFilterMatched(x,F))||!l&&(this.isFilterMatched(x,F)||this.findFilteredNodes(x,F)))&&this.filteredNodes.push(x)}}this.updateSerializedValue(),this.onFilter.emit({filter:i,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,i){if(e){let n=!1;if(e.children){let o=[...e.children];e.children=[];for(let l of o){let p=K({},l);this.isFilterMatched(p,i)&&(n=!0,e.children.push(p))}}if(n)return e.expanded=!0,!0}}isFilterMatched(e,i){let{searchFields:n,filterText:o,isStrictMode:l}=i,p=!1;for(let x of n)Ne(String(Ue(e,x))).toLocaleLowerCase(this.filterLocale).indexOf(o)>-1&&(p=!0);return(!p||l&&!this.isNodeLeaf(e))&&(p=this.findFilteredNodes(e,{searchFields:n,filterText:o,isStrictMode:l})||p),p}getIndex(e,i){let n=e.getItemOptions;return n?n(i).index:i}getBlockableElement(){return this.el.nativeElement.children[0]}onDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(ke(Ke,8))};static \u0275cmp=W({type:t,selectors:[["p-tree"]],contentQueries:function(i,n,o){if(i&1&&(v(o,dt,4),v(o,jt,4),v(o,Wt,4),v(o,Gt,4),v(o,Yt,4),v(o,Jt,4),v(o,Xt,4),v(o,Zt,4),v(o,en,4),v(o,tn,4),v(o,fe,4)),i&2){let l;g(l=f())&&(n.filterTemplate=l.first),g(l=f())&&(n.nodeTemplate=l.first),g(l=f())&&(n.headerTemplate=l.first),g(l=f())&&(n.footerTemplate=l.first),g(l=f())&&(n.loaderTemplate=l.first),g(l=f())&&(n.emptyMessageTemplate=l.first),g(l=f())&&(n.togglerIconTemplate=l.first),g(l=f())&&(n.checkboxIconTemplate=l.first),g(l=f())&&(n.loadingIconTemplate=l.first),g(l=f())&&(n.filterIconTemplate=l.first),g(l=f())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(dt,5),k(nn,5),k(on,5),k(ln,5)),i&2){let o;g(o=f())&&(n.filterViewChild=o.first),g(o=f())&&(n.scroller=o.first),g(o=f())&&(n.wrapperViewChild=o.first),g(o=f())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&1&&S("drop",function(l){return n.handleDropEvent(l)})("dragover",function(l){return n.handleDragOverEvent(l)})("dragenter",function(){return n.handleDragEnterEvent()})("dragleave",function(l){return n.handleDragLeaveEvent(l)}),i&2&&u(n.cn(n.cx("root"),n.styleClass))},inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",styleClass:"styleClass",contextMenu:"contextMenu",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[2,"draggableNodes","draggableNodes",T],droppableNodes:[2,"droppableNodes","droppableNodes",T],metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],loading:[2,"loading","loading",T],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",T],filter:[2,"filter","filter",T],filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",T],virtualScroll:[2,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",R],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",R],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",T]},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([me,{provide:ct,useExisting:t},{provide:le,useExisting:t}]),de([V]),G],decls:7,vars:6,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"class","pt"],[4,"ngIf"],[3,"pBind"],["data-p-icon","spinner","spin","",3,"class","pBind",4,"ngIf"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pt",4,"ngIf"],[3,"pt"],["pInputText","","type","search","autocomplete","off",3,"keydown.enter","input","pAutoFocus","pt"],["data-p-icon","search",3,"class","pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","tree",3,"items","tabindex","styleClass","style","scrollHeight","itemSize","lazy","options","pt","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["hostName","tree",3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","styleClass","scrollHeight","itemSize","lazy","options","pt"],["role","tree",3,"class","ngClass","style","pBind",4,"ngIf"],["role","tree",3,"ngClass","pBind"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt"],["role","tree",3,"class","pBind",4,"ngIf"],["role","tree",3,"pBind"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt"],[4,"ngIf","ngIfElse"]],template:function(i,n){if(i&1&&(c(0,gn,3,5,"div",7)(1,fn,1,0,"ng-container",8),Y(2,_n,1,4,"ng-container")(3,xn,1,1,"p-iconfield",9),c(4,Fn,3,2,"ng-container",10)(5,Ln,3,6,"div",7)(6,Pn,1,0,"ng-container",8)),i&2){let o;r("ngIf",n.loading&&n.loadingMode==="mask"),d(),r("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),d(),J(n.filterTemplate||n._filterTemplate?2:3),d(2),r("ngIf",(o=n.getRootNode())==null?null:o.length),d(),r("ngIf",!n.loading&&(n.getRootNode()==null||n.getRootNode().length===0)),d(),r("ngTemplateOutlet",n.footerTemplate||n._footerTemplate)}},dependencies:[ie,Oe,ee,te,ne,lt,z,Ze,we,nt,xe,Je,tt,Rn,We,he,V],encapsulation:2,changeDetection:0})}return t})();var ft=`
|
|
186
|
+
.p-treeselect {
|
|
187
|
+
display: inline-flex;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
position: relative;
|
|
190
|
+
user-select: none;
|
|
191
|
+
background: dt('treeselect.background');
|
|
192
|
+
border: 1px solid dt('treeselect.border.color');
|
|
193
|
+
transition:
|
|
194
|
+
background dt('treeselect.transition.duration'),
|
|
195
|
+
color dt('treeselect.transition.duration'),
|
|
196
|
+
border-color dt('treeselect.transition.duration'),
|
|
197
|
+
outline-color dt('treeselect.transition.duration'),
|
|
198
|
+
box-shadow dt('treeselect.transition.duration');
|
|
199
|
+
border-radius: dt('treeselect.border.radius');
|
|
200
|
+
outline-color: transparent;
|
|
201
|
+
box-shadow: dt('treeselect.shadow');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.p-treeselect:not(.p-disabled):hover {
|
|
205
|
+
border-color: dt('treeselect.hover.border.color');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.p-treeselect:not(.p-disabled).p-focus {
|
|
209
|
+
border-color: dt('treeselect.focus.border.color');
|
|
210
|
+
box-shadow: dt('treeselect.focus.ring.shadow');
|
|
211
|
+
outline: dt('treeselect.focus.ring.width') dt('treeselect.focus.ring.style') dt('treeselect.focus.ring.color');
|
|
212
|
+
outline-offset: dt('treeselect.focus.ring.offset');
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.p-treeselect.p-variant-filled {
|
|
216
|
+
background: dt('treeselect.filled.background');
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.p-treeselect.p-variant-filled:not(.p-disabled):hover {
|
|
220
|
+
background: dt('treeselect.filled.hover.background');
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.p-treeselect.p-variant-filled.p-focus {
|
|
224
|
+
background: dt('treeselect.filled.focus.background');
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.p-treeselect.p-invalid {
|
|
228
|
+
border-color: dt('treeselect.invalid.border.color');
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.p-treeselect.p-disabled {
|
|
232
|
+
opacity: 1;
|
|
233
|
+
background: dt('treeselect.disabled.background');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.p-treeselect-clear-icon {
|
|
237
|
+
align-self: center;
|
|
238
|
+
color: dt('treeselect.clear.icon.color');
|
|
239
|
+
inset-inline-end: dt('treeselect.dropdown.width');
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.p-treeselect-dropdown {
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: center;
|
|
246
|
+
flex-shrink: 0;
|
|
247
|
+
background: transparent;
|
|
248
|
+
color: dt('treeselect.dropdown.color');
|
|
249
|
+
width: dt('treeselect.dropdown.width');
|
|
250
|
+
border-start-end-radius: dt('border.radius.md');
|
|
251
|
+
border-end-end-radius: dt('border.radius.md');
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.p-treeselect-label-container {
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
flex: 1 1 auto;
|
|
257
|
+
cursor: pointer;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.p-treeselect-label {
|
|
261
|
+
display: flex;
|
|
262
|
+
align-items: center;
|
|
263
|
+
gap: calc(dt('treeselect.padding.y') / 2);
|
|
264
|
+
white-space: nowrap;
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
overflow: hidden;
|
|
267
|
+
text-overflow: ellipsis;
|
|
268
|
+
padding: dt('treeselect.padding.y') dt('treeselect.padding.x');
|
|
269
|
+
color: dt('treeselect.color');
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.p-treeselect-label.p-placeholder {
|
|
273
|
+
color: dt('treeselect.placeholder.color');
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.p-treeselect.p-invalid .p-treeselect-label.p-placeholder {
|
|
277
|
+
color: dt('treeselect.invalid.placeholder.color');
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.p-treeselect:has(.p-select-clear-icon) .p-treeselect-label {
|
|
281
|
+
padding-inline-end: dt('treeselect.padding.x');
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.p-treeselect.p-disabled .p-treeselect-label {
|
|
285
|
+
color: dt('treeselect.disabled.color');
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.p-treeselect-label-empty {
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
visibility: hidden;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.p-treeselect-overlay {
|
|
294
|
+
position: absolute;
|
|
295
|
+
top: 0;
|
|
296
|
+
left: 0;
|
|
297
|
+
background: dt('treeselect.overlay.background');
|
|
298
|
+
color: dt('treeselect.overlay.color');
|
|
299
|
+
border: 1px solid dt('treeselect.overlay.border.color');
|
|
300
|
+
border-radius: dt('treeselect.overlay.border.radius');
|
|
301
|
+
box-shadow: dt('treeselect.overlay.shadow');
|
|
302
|
+
overflow: hidden;
|
|
303
|
+
min-width: 100%;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.p-treeselect-tree-container {
|
|
307
|
+
overflow: auto;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.p-treeselect-empty-message {
|
|
311
|
+
padding: dt('treeselect.empty.message.padding');
|
|
312
|
+
background: transparent;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.p-treeselect-fluid {
|
|
316
|
+
display: flex;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.p-treeselect-overlay .p-tree {
|
|
320
|
+
padding: dt('treeselect.tree.padding');
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.p-treeselect-overlay .p-tree-loading {
|
|
324
|
+
min-height: 3rem;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.p-treeselect-label .p-chip {
|
|
328
|
+
padding-block-start: calc(dt('treeselect.padding.y') / 2);
|
|
329
|
+
padding-block-end: calc(dt('treeselect.padding.y') / 2);
|
|
330
|
+
border-radius: dt('treeselect.chip.border.radius');
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.p-treeselect-label:has(.p-chip) {
|
|
334
|
+
padding: calc(dt('treeselect.padding.y') / 2) calc(dt('treeselect.padding.x') / 2);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.p-treeselect-sm .p-treeselect-label {
|
|
338
|
+
font-size: dt('treeselect.sm.font.size');
|
|
339
|
+
padding-block: dt('treeselect.sm.padding.y');
|
|
340
|
+
padding-inline: dt('treeselect.sm.padding.x');
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.p-treeselect-sm .p-treeselect-dropdown .p-icon {
|
|
344
|
+
font-size: dt('treeselect.sm.font.size');
|
|
345
|
+
width: dt('treeselect.sm.font.size');
|
|
346
|
+
height: dt('treeselect.sm.font.size');
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.p-treeselect-lg .p-treeselect-label {
|
|
350
|
+
font-size: dt('treeselect.lg.font.size');
|
|
351
|
+
padding-block: dt('treeselect.lg.padding.y');
|
|
352
|
+
padding-inline: dt('treeselect.lg.padding.x');
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.p-treeselect-lg .p-treeselect-dropdown .p-icon {
|
|
356
|
+
font-size: dt('treeselect.lg.font.size');
|
|
357
|
+
width: dt('treeselect.lg.font.size');
|
|
358
|
+
height: dt('treeselect.lg.font.size');
|
|
359
|
+
}
|
|
360
|
+
`;var zn=["value"],Qn=["header"],Un=["empty"],qn=["footer"],$n=["clearicon"],Kn=["triggericon"],jn=["dropdownicon"],Wn=["filtericon"],Gn=["closeicon"],Yn=["itemtogglericon"],Jn=["itemcheckboxicon"],Xn=["itemloadingicon"],Zn=["focusInput"],ei=["filter"],ti=["tree"],ni=["panel"],ii=["overlay"],oi=["firstHiddenFocusableEl"],li=["lastHiddenFocusableEl"],ri=(t,a)=>({$implicit:t,placeholder:a}),ht=(t,a)=>({$implicit:t,options:a}),ai=t=>({"max-height":t}),si=t=>({$implicit:t}),di=(t,a)=>({$implicit:t,partialSelected:a});function ci(t,a){t&1&&E(0)}function pi(t,a){if(t&1&&(N(0),c(1,ci,1,0,"ng-container",23),I()),t&2){let e=s();d(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",H(2,ri,e.value,e.placeholder))}}function ui(t,a){if(t&1&&(N(0),q(1),I()),t&2){let e=s(2);d(),pe(" ",e.label||"empty"," ")}}function gi(t,a){if(t&1&&(m(0,"div",15),C(1,"p-chip",25),y()),t&2){let e=a.$implicit,i=s(3);u(i.cx("chipItem")),r("pBind",i.ptm("chipItem")),d(),u(i.cx("pcChip")),r("label",e.label)("pt",i.ptm("pcChip"))}}function fi(t,a){if(t&1&&(N(0),q(1),I()),t&2){let e=s(3);d(),ce(e.placeholder||"empty")}}function hi(t,a){if(t&1&&c(0,gi,2,7,"div",24)(1,fi,2,1,"ng-container",18),t&2){let e=s(2);r("ngForOf",e.value),d(),r("ngIf",e.emptyValue)}}function _i(t,a){if(t&1&&c(0,ui,2,1,"ng-container",17)(1,hi,2,2,"ng-template",null,4,D),t&2){let e=ve(2),i=s();r("ngIf",i.display==="comma")("ngIfElse",e)}}function mi(t,a){if(t&1){let e=O();B(),m(0,"svg",28),S("click",function(n){h(e);let o=s(2);return _(o.clear(n))}),y()}if(t&2){let e=s(2);u(e.cx("clearIcon")),r("pBind",e.ptm("clearIcon"))}}function yi(t,a){}function Ti(t,a){t&1&&c(0,yi,0,0,"ng-template")}function vi(t,a){if(t&1){let e=O();m(0,"span",29),S("click",function(n){h(e);let o=s(2);return _(o.clear(n))}),c(1,Ti,1,0,null,30),y()}if(t&2){let e=s(2);u(e.cx("clearIcon")),r("pBind",e.ptm("clearIcon")),d(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function bi(t,a){if(t&1&&(N(0),c(1,mi,1,3,"svg",26)(2,vi,2,4,"span",27),I()),t&2){let e=s();d(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),d(),r("ngIf",e.clearIconTemplate||e.clearIconTemplate)}}function xi(t,a){if(t&1&&(B(),C(0,"svg",31)),t&2){let e=s();u(e.cx("dropdownIcon")),r("pBind",e.ptm("dropdownIcon"))}}function Si(t,a){}function Ci(t,a){t&1&&c(0,Si,0,0,"ng-template")}function Ni(t,a){if(t&1&&(m(0,"span",15),c(1,Ci,1,0,null,30),y()),t&2){let e=s();u(e.cx("dropdownIcon")),r("pBind",e.ptm("dropdownIcon")),d(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate||e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Ii(t,a){t&1&&E(0)}function wi(t,a){t&1&&E(0)}function Ei(t,a){if(t&1&&c(0,wi,1,0,"ng-container",30),t&2){let e=s(3);r("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function ki(t,a){t&1&&(N(0),c(1,Ei,1,1,"ng-template",null,9,D),I())}function Di(t,a){t&1&&E(0)}function Mi(t,a){if(t&1&&c(0,Di,1,0,"ng-container",23),t&2){let e=a.$implicit,i=s(3);r("ngTemplateOutlet",i.itemTogglerIconTemplate||i._itemTogglerIconTemplate)("ngTemplateOutletContext",A(2,si,e))}}function Vi(t,a){t&1&&c(0,Mi,1,4,"ng-template",null,10,D)}function Fi(t,a){t&1&&E(0)}function Oi(t,a){if(t&1&&c(0,Fi,1,0,"ng-container",23),t&2){let e=a.$implicit,i=a.partialSelected,n=s(3);r("ngTemplateOutlet",n.itemCheckboxIconTemplate||n._itemCheckboxIconTemplate)("ngTemplateOutletContext",H(2,di,e,i))}}function Bi(t,a){t&1&&c(0,Oi,1,5,"ng-template",null,11,D)}function Ai(t,a){t&1&&E(0)}function Li(t,a){if(t&1&&c(0,Ai,1,0,"ng-container",30),t&2){let e=s(3);r("ngTemplateOutlet",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate)}}function Pi(t,a){t&1&&c(0,Li,1,1,"ng-template",null,12,D)}function Hi(t,a){t&1&&E(0)}function Ri(t,a){if(t&1){let e=O();m(0,"div",16,5)(2,"span",32,6),S("focus",function(n){h(e);let o=s();return _(o.onFirstHiddenFocus(n))}),y(),c(4,Ii,1,0,"ng-container",23),m(5,"div",16)(6,"p-tree",33,7),S("selectionChange",function(n){h(e);let o=s();return _(o.onSelectionChange(n))})("onNodeExpand",function(n){h(e);let o=s();return _(o.nodeExpand(n))})("onNodeCollapse",function(n){h(e);let o=s();return _(o.nodeCollapse(n))})("onNodeSelect",function(n){h(e);let o=s();return _(o.onSelect(n))})("onNodeUnselect",function(n){h(e);let o=s();return _(o.onUnselect(n))}),c(8,ki,3,0,"ng-container",18)(9,Vi,2,0,null,18)(10,Bi,2,0,null,18)(11,Pi,2,0,null,18),y()(),c(12,Hi,1,0,"ng-container",23),m(13,"span",32,8),S("focus",function(n){h(e);let o=s();return _(o.onLastHiddenFocus(n))}),y()()}if(t&2){let e=s();u(e.cn(e.cx("panel"),e.panelStyleClass,e.panelClass)),r("ngStyle",e.panelStyle)("pBind",e.ptm("panel")),w("id",e.listId),d(2),r("pBind",e.ptm("hiddenFirstFocusableEl")),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),d(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",H(45,ht,e.value,e.options)),d(),u(e.cx("treeContainer")),r("ngStyle",A(48,ai,e.scrollHeight))("pBind",e.ptm("treeContainer")),d(),r("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)("pt",e.ptm("pcTree")),d(2),r("ngIf",e.emptyTemplate||e._emptyTemplate),d(),r("ngIf",e.itemTogglerIconTemplate||e._itemTogglerIconTemplate),d(),r("ngIf",e.itemCheckboxIconTemplate||e._itemCheckboxIconTemplate),d(),r("ngIf",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate),d(),r("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",H(50,ht,e.value,e.options)),d(),r("pBind",e.ptm("hiddenLastFocusableEl")),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var zi=`
|
|
361
|
+
${ft}
|
|
362
|
+
|
|
363
|
+
/* For PrimeNG */
|
|
364
|
+
|
|
365
|
+
.p-treeselect.ng-invalid.ng-dirty {
|
|
366
|
+
border-color: dt('treeselect.invalid.border.color');
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
p-treeselect.ng-invalid.ng-dirty.p-focus {
|
|
370
|
+
border-color: dt('treeselect.focus.border.color');
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
p-treeselect.ng-invalid.ng-dirty .p-treeselect-label.p-placeholder {
|
|
374
|
+
color: dt('treeselect.invalid.placeholder.color');
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.p-treeselect-clear-icon.p-icon {
|
|
378
|
+
flex-shrink: 0;
|
|
379
|
+
}
|
|
380
|
+
`,Qi={root:({instance:t})=>K({position:t.$appendTo()==="self"?"relative":void 0},t.containerStyle)},Ui={root:({instance:t})=>["p-treeselect p-component p-inputwrapper",{"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","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",{"p-placeholder":t.label===t.placeholder,"p-treeselect-label-empty":!t.placeholder&&t.emptyValue}],clearIcon:"p-treeselect-clear-icon",chip:"p-treeselect-chip-item",pcChip:"p-treeselect-chip",dropdown:"p-treeselect-dropdown",dropdownIcon:"p-treeselect-dropdown-icon",panel:"p-treeselect-overlay p-component-overlay p-component",treeContainer:"p-treeselect-tree-container",emptyMessage:"p-treeselect-empty-message"},_t=(()=>{class t extends ge{name="treeselect";style=zi;classes=Ui;inlineStyles=Qi;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var qi={provide:Be,useExisting:re(()=>yt),multi:!0},mt=new j("TREESELECT_INSTANCE"),yt=(()=>{class t extends Ge{$pcTreeSelect=M(mt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=M(V,{self:!0});_componentStyle=M(_t);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}inputId;scrollHeight="400px";metaKeySelection=!1;display="comma";selectionMode="single";tabindex="0";ariaLabel;ariaLabelledBy;placeholder;panelClass;panelStyle;panelStyleClass;containerStyle;containerStyleClass;labelStyle;labelStyleClass;overlayOptions;emptyMessage="";filter=!1;filterBy="label";filterMode="lenient";filterPlaceholder;filterLocale;filterInputAutoFocus=!0;propagateSelectionDown=!0;propagateSelectionUp=!0;showClear=!1;resetFilterOnHide=!0;virtualScroll;virtualScrollItemSize;virtualScrollOptions;autofocus;get options(){return this._options}set options(e){this._options=e,this.updateTreeState()}loading;size=Z();variant=Z();fluid=Z(void 0,{transform:T});appendTo=Z(void 0);onNodeExpand=new b;onNodeCollapse=new b;onShow=new b;onHide=new b;onClear=new b;onFilter=new b;onFocus=new b;onBlur=new b;onNodeUnselect=new b;onNodeSelect=new b;$appendTo=L(()=>this.appendTo()||this.config.overlayAppendTo());focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;$variant=L(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());pcFluid=M(Ye,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}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;value;expandedNodes=[];_options;templateMap;listId="";onHostClick(e){this.onClick(e)}onInit(){this.listId=qe("pn_id_")+"_list",this.updateTreeState()}onAfterContentInit(){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)Ce(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let i=oe(this.panelEl?.nativeElement);i&&i.length>0&&i[0].focus()}break}}onOverlayBeforeHide(e){let i=oe(this.el.nativeElement);i&&i.length>0&&i[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)&&!P(e.target,"p-treeselect-close")&&!P(e.target,"p-checkbox-box")&&!P(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 i=oe(this.panelEl.nativeElement,".p-tree-node");i&&i.length>0&&i[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?Re(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;$(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?ze(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;$(i)}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&&Ce(this.value)}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?($(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return oe(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,i,n){if(e){if(this.isSelected(e)&&(this.expandPath(i),n.splice(n.indexOf(e),1)),n.length>0&&e.children)for(let o of e.children)this.updateTreeBranchState(o,[...i,e],n)}else for(let o of this.options)this.updateTreeBranchState(o,[],n)}expandPath(e){for(let i of e)i.expanded=!0;this.expandedNodes=[...e]}nodeExpand(e){this.onNodeExpand.emit(e),this.expandedNodes.push(e.node),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}nodeCollapse(e){this.onNodeCollapse.emit(e),this.expandedNodes.splice(this.expandedNodes.indexOf(e.node),1),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}resetExpandedNodes(){for(let e of this.expandedNodes)e.expanded=!1;this.expandedNodes=[]}resetPartialSelected(e=this.options){if(e)for(let i of e)i.partialSelected=!1,i.children&&i.children?.length>0&&this.resetPartialSelected(i.children)}findSelectedNodes(e,i,n){if(e){if(this.isSelected(e)&&(n.push(e),delete i[e.key]),Object.keys(i).length&&e.children)for(let o of e.children)this.findSelectedNodes(o,i,n)}else for(let o of this.options)this.findSelectedNodes(o,i,n)}isSelected(e){return this.findIndexInSelection(e)!=-1}findIndexInSelection(e){let i=-1;if(this.value)if(this.selectionMode==="single")i=this.value.key&&this.value.key===e.key||this.value==e?0:-1;else for(let n=0;n<this.value.length;n++){let o=this.value[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}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()}writeControlValue(e){this.value=e,this.updateTreeState(),this.cd.markForCheck()}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(i=>i.label).join(", "):this.selectionMode==="single"&&this.value?e.label:this.placeholder}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275cmp=W({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(i,n,o){if(i&1&&(v(o,zn,4),v(o,Qn,4),v(o,Un,4),v(o,qn,4),v(o,$n,4),v(o,Kn,4),v(o,jn,4),v(o,Wn,4),v(o,Gn,4),v(o,Yn,4),v(o,Jn,4),v(o,Xn,4),v(o,fe,4)),i&2){let l;g(l=f())&&(n.valueTemplate=l.first),g(l=f())&&(n.headerTemplate=l.first),g(l=f())&&(n.emptyTemplate=l.first),g(l=f())&&(n.footerTemplate=l.first),g(l=f())&&(n.clearIconTemplate=l.first),g(l=f())&&(n.triggerIconTemplate=l.first),g(l=f())&&(n.dropdownIconTemplate=l.first),g(l=f())&&(n.filterIconTemplate=l.first),g(l=f())&&(n.closeIconTemplate=l.first),g(l=f())&&(n.itemTogglerIconTemplate=l.first),g(l=f())&&(n.itemCheckboxIconTemplate=l.first),g(l=f())&&(n.itemLoadingIconTemplate=l.first),g(l=f())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(Zn,5),k(ei,5),k(ti,5),k(ni,5),k(ii,5),k(oi,5),k(li,5)),i&2){let o;g(o=f())&&(n.focusInput=o.first),g(o=f())&&(n.filterViewChild=o.first),g(o=f())&&(n.treeViewChild=o.first),g(o=f())&&(n.panelEl=o.first),g(o=f())&&(n.overlayViewChild=o.first),g(o=f())&&(n.firstHiddenFocusableElementOnOverlay=o.first),g(o=f())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&S("click",function(l){return n.onHostClick(l)}),i&2&&(U(n.sx("root")),u(n.cn(n.cx("root"),n.containerStyleClass)))},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],display:"display",selectionMode:"selectionMode",tabindex:"tabindex",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",placeholder:"placeholder",panelClass:"panelClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",containerStyle:"containerStyle",containerStyleClass:"containerStyleClass",labelStyle:"labelStyle",labelStyleClass:"labelStyleClass",overlayOptions:"overlayOptions",emptyMessage:"emptyMessage",filter:[2,"filter","filter",T],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],showClear:[2,"showClear","showClear",T],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",T],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",T],options:"options",loading:[2,"loading","loading",T],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"]},outputs:{onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onShow:"onShow",onHide:"onHide",onClear:"onClear",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onNodeUnselect:"onNodeUnselect",onNodeSelect:"onNodeSelect"},features:[X([qi,_t,{provide:mt,useExisting:t},{provide:le,useExisting:t}]),de([V]),G],decls:16,vars:35,consts:[["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[1,"p-hidden-accessible",3,"pBind"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","pAutoFocus","pBind"],[3,"pBind"],[3,"ngStyle","pBind"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree",3,"pBind"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","hostAttrSelector","visible","options","target","appendTo","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind",4,"ngFor","ngForOf"],[3,"label","pt"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["data-p-icon","chevron-down",3,"pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[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","pt"]],template:function(i,n){if(i&1){let o=O();m(0,"div",13)(1,"input",14,0),S("focus",function(p){return h(o),_(n.onInputFocus(p))})("blur",function(p){return h(o),_(n.onInputBlur(p))})("keydown",function(p){return h(o),_(n.onKeyDown(p))}),y()(),m(3,"div",15)(4,"div",16),c(5,pi,2,5,"ng-container",17)(6,_i,3,2,"ng-template",null,1,D),y()(),c(8,bi,3,2,"ng-container",18),m(9,"div",19),c(10,xi,1,3,"svg",20)(11,Ni,2,4,"span",21),y(),m(12,"p-overlay",22,2),Ve("visibleChange",function(p){return h(o),Me(n.overlayVisible,p)||(n.overlayVisible=p),_(p)}),S("onAnimationStart",function(p){return h(o),_(n.onOverlayAnimationStart(p))})("onBeforeHide",function(p){return h(o),_(n.onOverlayBeforeHide(p))})("onShow",function(p){return h(o),_(n.onShow.emit(p))})("onHide",function(p){return h(o),_(n.hide(p))}),c(14,Ri,15,53,"ng-template",null,3,D),y()}if(i&2){let o=ve(7);r("pBind",n.ptm("hiddenInputContainer")),w("data-p-hidden-accessible",!0),d(),r("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),w("id",n.inputId)("disabled",n.$disabled()?"":void 0)("tabindex",n.$disabled()?-1:n.tabindex)("aria-controls",n.overlayVisible?n.listId:null)("aria-haspopup","tree")("aria-expanded",n.overlayVisible??!1)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel||(n.label==="p-emptylabel"?void 0:n.label)),d(2),u(n.cx("labelContainer")),r("pBind",n.ptm("labelContainer")),d(),u(n.cn(n.cx("label"),n.labelStyleClass)),r("ngStyle",n.labelStyle)("pBind",n.ptm("label")),d(),r("ngIf",n.valueTemplate||n._valueTemplate)("ngIfElse",o),d(3),r("ngIf",n.checkValue()&&!n.$disabled()&&n.showClear),d(),u(n.cx("dropdown")),r("pBind",n.ptm("dropdown")),w("aria-expanded",n.overlayVisible??!1)("aria-label","treeselect trigger"),d(),r("ngIf",!n.triggerIconTemplate&&!n._triggerIconTemplate&&!n.dropdownIconTemplate&&!n._dropdownIconTemplate),d(),r("ngIf",n.triggerIconTemplate||n._triggerIconTemplate||n.dropdownIconTemplate||n._dropdownIconTemplate),d(),r("hostAttrSelector",n.$attrSelector),De("visible",n.overlayVisible),r("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("pt",n.ptm("pcOverlay"))}},dependencies:[ie,ee,te,ne,ue,it,z,Ee,he,et,_e,at,V],encapsulation:2,changeDetection:0})}return t})(),nl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Te({type:t});static \u0275inj=ye({imports:[yt,z,z]})}return t})();export{yt as a,nl as b};
|