marketplacepos 5.48.6 → 5.50.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 +214 -214
- package/Marketplace/{chunk-SHUYFOQI.js → chunk-24KZDZKS.js} +1 -1
- package/Marketplace/{chunk-7JQEF4XX.js → chunk-27DIE2YS.js} +1 -1
- package/Marketplace/chunk-2AXBEVQ7.js +4 -0
- package/Marketplace/chunk-2K5AP6IZ.js +1 -0
- package/Marketplace/{chunk-4RG5YR7N.js → chunk-2NRHX6CZ.js} +2 -2
- package/Marketplace/{chunk-ZTHO6JJM.js → chunk-2ST3DMR6.js} +1 -1
- package/Marketplace/chunk-34ZZ4GCS.js +1 -0
- package/Marketplace/chunk-35N7HHLQ.js +1 -0
- package/Marketplace/{chunk-5X2E3W32.js → chunk-3HME327V.js} +1 -1
- package/Marketplace/chunk-3NAMEVOB.js +1 -0
- package/Marketplace/{chunk-AFIF6VRM.js → chunk-3SCX7IMW.js} +1 -1
- package/Marketplace/chunk-47JP6ZSE.js +1 -0
- package/Marketplace/chunk-47Q5JJIA.js +1 -0
- package/Marketplace/chunk-4KGXKQPG.js +1 -0
- package/Marketplace/chunk-4ORO4H6Z.js +266 -0
- package/Marketplace/chunk-4PG2EBJQ.js +1 -0
- package/Marketplace/chunk-4Q4I4JG4.js +5 -0
- package/Marketplace/{chunk-QFSA7CU4.js → chunk-4S4BOPUV.js} +2 -2
- package/Marketplace/{chunk-KTLMPVSK.js → chunk-4XENFCCZ.js} +1 -1
- package/Marketplace/chunk-52YCKO3Z.js +1 -0
- package/Marketplace/chunk-55E6VHIU.js +2 -0
- package/Marketplace/{chunk-5BSPSA4O.js → chunk-5C24BA5F.js} +1 -1
- package/Marketplace/{chunk-PMVDQ2OP.js → chunk-5QDH4ZNS.js} +1 -1
- package/Marketplace/{chunk-ZETUYNFJ.js → chunk-5UFP37GQ.js} +1 -1
- package/Marketplace/{chunk-PDCVMSLL.js → chunk-5WQ3LCWP.js} +1 -1
- package/Marketplace/chunk-5WT456T7.js +3 -0
- package/Marketplace/chunk-5ZS5MEG7.js +1 -0
- package/Marketplace/chunk-654AVLKM.js +1 -0
- package/Marketplace/chunk-6C4UBIZK.js +10 -0
- package/Marketplace/{chunk-ZKIO2ZQ6.js → chunk-6F62N7RZ.js} +2 -2
- package/Marketplace/chunk-6NS3D6KQ.js +5 -0
- package/Marketplace/chunk-7E53IHXI.js +1 -0
- package/Marketplace/{chunk-RQQWNLDZ.js → chunk-7HRL6MHY.js} +1 -1
- package/Marketplace/{chunk-LEUBNBGC.js → chunk-7IOQ6VVF.js} +1 -1
- package/Marketplace/chunk-7QP3VZ6H.js +1 -0
- package/Marketplace/chunk-7R2D2JZ6.js +3 -0
- package/Marketplace/{chunk-5MV3UFJQ.js → chunk-7X4B2T6C.js} +2 -2
- package/Marketplace/chunk-A2RTZANN.js +1 -0
- package/Marketplace/chunk-A53NYS6S.js +1 -0
- package/Marketplace/chunk-AHMFSCTX.js +2 -0
- package/Marketplace/chunk-ALLZQ6Y3.js +1 -0
- package/Marketplace/chunk-AQVMOA6Z.js +1 -0
- package/Marketplace/chunk-AUEWKPWQ.js +1 -0
- package/Marketplace/chunk-B5ZK5TGW.js +1 -0
- package/Marketplace/chunk-BAW6PICI.js +2 -0
- package/Marketplace/{chunk-DTAHV4GM.js → chunk-BC6LHZWP.js} +1 -1
- package/Marketplace/chunk-BKZIKCX7.js +1 -0
- package/Marketplace/chunk-BL6MPO6D.js +2 -0
- package/Marketplace/{chunk-GPHNPV7O.js → chunk-BMOMTOEW.js} +2 -2
- package/Marketplace/chunk-BUMWMFHU.js +2 -0
- package/Marketplace/chunk-BYL4N2KB.js +1 -0
- package/Marketplace/chunk-BYX6HZW7.js +1 -0
- package/Marketplace/{chunk-6KWG6O5L.js → chunk-C2LAQOUW.js} +1 -1
- package/Marketplace/chunk-CC7KUBNZ.js +1 -0
- package/Marketplace/chunk-CZWUOW55.js +1 -0
- package/Marketplace/{chunk-L7WZ6U4T.js → chunk-DDFP4CNP.js} +1 -1
- package/Marketplace/chunk-DI2VKA4Z.js +1 -0
- package/Marketplace/{chunk-6OJQRHIZ.js → chunk-DLHIDOS3.js} +1 -1
- package/Marketplace/chunk-DPB2343S.js +1 -0
- package/Marketplace/chunk-EBXGQWOL.js +1 -0
- package/Marketplace/{chunk-IM5M2CAI.js → chunk-EH3PIGLJ.js} +1 -1
- package/Marketplace/chunk-EHND5PFE.js +1 -0
- package/Marketplace/{chunk-2J7P6ENI.js → chunk-F26O6FCO.js} +1 -1
- package/Marketplace/chunk-FEQXCPQI.js +2 -0
- package/Marketplace/chunk-FFJXYPVA.js +1 -0
- package/Marketplace/chunk-FJU2CZTJ.js +1 -0
- package/Marketplace/chunk-FLNIURLD.js +1 -0
- package/Marketplace/{chunk-4ILDFTIG.js → chunk-FOKLBUX6.js} +1 -1
- package/Marketplace/chunk-FTIUJUXI.js +1 -0
- package/Marketplace/{chunk-WNUTNP6I.js → chunk-G3B6ETBU.js} +5 -5
- package/Marketplace/{chunk-VWX2IX64.js → chunk-G4T4VM5E.js} +1 -1
- package/Marketplace/{chunk-OQM7K2EA.js → chunk-G6O6VFLS.js} +1 -1
- package/Marketplace/chunk-GG3X4R7G.js +1 -0
- package/Marketplace/chunk-GVJLKDIO.js +1 -0
- package/Marketplace/chunk-HFGQAVIU.js +1 -0
- package/Marketplace/{chunk-N5AE5WMQ.js → chunk-HO2TMGLM.js} +1 -1
- package/Marketplace/chunk-HORS2MKK.js +1 -0
- package/Marketplace/chunk-IBE5KBZU.js +1 -0
- package/Marketplace/chunk-IDGK6BMG.js +1 -0
- package/Marketplace/chunk-IF7EJSQG.js +1 -0
- package/Marketplace/chunk-IKC5WEP5.js +1 -0
- package/Marketplace/{chunk-3L7Y6LG6.js → chunk-IM7YH54S.js} +1 -1
- package/Marketplace/{chunk-63I3I3MX.js → chunk-IVKFEOCB.js} +1 -1
- package/Marketplace/chunk-J3QDFXZ7.js +1 -0
- package/Marketplace/chunk-J6HA4ZHH.js +1 -0
- package/Marketplace/chunk-JM3NLPH4.js +9 -0
- package/Marketplace/chunk-JNRCB7N3.js +2 -0
- package/Marketplace/chunk-JSQ7SYYK.js +1 -0
- package/Marketplace/chunk-JV4F6ZYF.js +1 -0
- package/Marketplace/chunk-JWDQVXQP.js +1 -0
- package/Marketplace/chunk-JYSOUJ42.js +1 -0
- package/Marketplace/chunk-JZ3E5MLG.js +1 -0
- package/Marketplace/chunk-K5WSFDNA.js +1 -0
- package/Marketplace/chunk-KDIXLH2S.js +1 -0
- package/Marketplace/chunk-KR6UNAIL.js +3 -0
- package/Marketplace/chunk-KSRL7Y2J.js +2 -0
- package/Marketplace/{chunk-3664K4KH.js → chunk-LAMGWNDE.js} +19 -19
- package/Marketplace/chunk-LKJCOEGO.js +1 -0
- package/Marketplace/chunk-LQPY6AYJ.js +1 -0
- package/Marketplace/{chunk-FULVA6QB.js → chunk-LR2YCE6M.js} +1 -1
- package/Marketplace/{chunk-DXYMG6QK.js → chunk-LUJ3SHSP.js} +1 -1
- package/Marketplace/{chunk-J6CZKQ53.js → chunk-M3DUXHYE.js} +4 -4
- package/Marketplace/{chunk-6PW6S7MI.js → chunk-MAQQQB3T.js} +1 -1
- package/Marketplace/chunk-MM7SAZOU.js +1 -0
- package/Marketplace/{chunk-CM3B2UZ7.js → chunk-MPFJ7FBJ.js} +1 -1
- package/Marketplace/{chunk-SJ5MC42H.js → chunk-MT3CWRVG.js} +2 -2
- package/Marketplace/chunk-MTVUPPAN.js +149 -0
- package/Marketplace/{chunk-WHHW4IZT.js → chunk-N3E43QWK.js} +2 -2
- package/Marketplace/{chunk-AFDI4TD4.js → chunk-NIJCYMZM.js} +3 -3
- package/Marketplace/chunk-NMFPLAWN.js +1 -0
- package/Marketplace/chunk-NQLMPUSB.js +1 -0
- package/Marketplace/chunk-NQVNAQCL.js +1 -0
- package/Marketplace/{chunk-DUXKDRDP.js → chunk-NRSDIDOP.js} +1 -1
- package/Marketplace/{chunk-3JRUKSV3.js → chunk-NVPT5BF2.js} +2 -2
- package/Marketplace/chunk-NY2YBW66.js +1 -0
- package/Marketplace/chunk-O4D64GHO.js +2 -0
- package/Marketplace/{chunk-UH5C5HXK.js → chunk-O4U34AC7.js} +1 -1
- package/Marketplace/chunk-OCXIDX74.js +1 -0
- package/Marketplace/chunk-OGF4VFSK.js +1 -0
- package/Marketplace/chunk-OHGMB7HJ.js +4 -0
- package/Marketplace/chunk-OIWQSDTS.js +1 -0
- package/Marketplace/chunk-OSGPJXJZ.js +1 -0
- package/Marketplace/chunk-P3XVM6DH.js +1 -0
- package/Marketplace/{chunk-ODLI42YV.js → chunk-P6RAMHDB.js} +1 -1
- package/Marketplace/chunk-PBAFAOKJ.js +1 -0
- package/Marketplace/chunk-PGX5ZJ6P.js +1 -0
- package/Marketplace/{chunk-IGKMJFKP.js → chunk-PN3KM4M4.js} +2 -2
- package/Marketplace/chunk-PSJVP2XO.js +1 -0
- package/Marketplace/chunk-PUCIZX6E.js +1 -0
- package/Marketplace/chunk-PWCN6GJX.js +5 -0
- package/Marketplace/{chunk-L76NLJD7.js → chunk-PWOKOWVV.js} +2 -2
- package/Marketplace/chunk-QJ55WDGL.js +1 -0
- package/Marketplace/chunk-QJCYEP2A.js +1 -0
- package/Marketplace/{chunk-4RLWHMI6.js → chunk-QMHG3QTI.js} +1 -1
- package/Marketplace/chunk-QMIL5QUX.js +1 -0
- package/Marketplace/chunk-QMQCIH3X.js +7 -0
- package/Marketplace/chunk-QQF5ZMGS.js +2 -0
- package/Marketplace/{chunk-6XDT56RT.js → chunk-R3WIWDSP.js} +2 -2
- package/Marketplace/{chunk-LOWGZOML.js → chunk-RBZU7OVM.js} +1 -1
- package/Marketplace/chunk-RM6ZXD3O.js +1 -0
- package/Marketplace/chunk-RN5CI3LE.js +1 -0
- package/Marketplace/chunk-ROS2QMKF.js +1 -0
- package/Marketplace/{chunk-YTHY4IFS.js → chunk-RQUCYFCB.js} +1 -1
- package/Marketplace/chunk-RTLTTFZ7.js +1 -0
- package/Marketplace/chunk-RUYX7KTP.js +1 -0
- package/Marketplace/{chunk-5PMKN6PM.js → chunk-RXC5D64C.js} +2 -2
- package/Marketplace/chunk-RZ5N5JLA.js +1 -0
- package/Marketplace/chunk-S4JKTHY2.js +1 -0
- package/Marketplace/chunk-SABMHH6B.js +1 -0
- package/Marketplace/{chunk-TXOZULMZ.js → chunk-SIPZP62B.js} +1 -1
- package/Marketplace/{chunk-6CM22SKR.js → chunk-SMZOSLIK.js} +1 -1
- package/Marketplace/chunk-SPLGZRGH.js +5 -0
- package/Marketplace/chunk-SS6PBSX7.js +1 -0
- package/Marketplace/chunk-SZ33XJ4F.js +1 -0
- package/Marketplace/chunk-TBVMCNS2.js +1 -0
- package/Marketplace/{chunk-3WRXJBHF.js → chunk-TDMNVEUU.js} +3 -3
- package/Marketplace/{chunk-RUBV3KX2.js → chunk-TKZ74HJD.js} +1 -1
- package/Marketplace/chunk-TOK5EWN4.js +1 -0
- package/Marketplace/{chunk-7GY4O2UX.js → chunk-TYQYNICX.js} +3 -3
- package/Marketplace/{chunk-VX75I7HA.js → chunk-TZTW72NT.js} +1 -1
- package/Marketplace/{chunk-AZOCRKXK.js → chunk-UB62TZOI.js} +1 -1
- package/Marketplace/{chunk-L22SKCLL.js → chunk-UE2QO2Y4.js} +1 -1
- package/Marketplace/chunk-UE5E7JXK.js +1 -0
- package/Marketplace/chunk-UMLV2ZUF.js +1 -0
- package/Marketplace/{chunk-JBEKD57G.js → chunk-UPRDDI4K.js} +1 -1
- package/Marketplace/{chunk-MDP2SGJI.js → chunk-V6QH3IVL.js} +1 -1
- package/Marketplace/chunk-VH7JZJ2B.js +1 -0
- package/Marketplace/chunk-VOONKP66.js +1 -0
- package/Marketplace/chunk-VP3XO25X.js +2 -0
- package/Marketplace/chunk-VVTBM3Z5.js +1 -0
- package/Marketplace/chunk-VWMEDVEG.js +1 -0
- package/Marketplace/{chunk-NWB7EVME.js → chunk-W33M7S2S.js} +1 -1
- package/Marketplace/{chunk-L3W6SG2T.js → chunk-WAXAIL2I.js} +1 -1
- package/Marketplace/{chunk-HK5FXZE4.js → chunk-WIRBYT7F.js} +1 -1
- package/Marketplace/chunk-WQHFRJZZ.js +1 -0
- package/Marketplace/{chunk-KJE5GRQ4.js → chunk-WVA5LYVE.js} +1 -1
- package/Marketplace/chunk-X35EOX3B.js +1 -0
- package/Marketplace/chunk-X52ZT4MU.js +1 -0
- package/Marketplace/chunk-XLQGQESJ.js +2 -0
- package/Marketplace/chunk-XPA7U45N.js +1 -0
- package/Marketplace/{chunk-6Q6L5NUD.js → chunk-XUDE7VBC.js} +1 -1
- package/Marketplace/{chunk-DHPNXR6E.js → chunk-Y3O22N4P.js} +1 -1
- package/Marketplace/{chunk-Q2QX5AAJ.js → chunk-YABJCAAL.js} +4 -4
- package/Marketplace/{chunk-WFVK32EW.js → chunk-YAWT3CLI.js} +1 -1
- package/Marketplace/chunk-YD6BNJ2B.js +1 -0
- package/Marketplace/{chunk-FHER4TFY.js → chunk-YKKHSYDW.js} +1 -1
- package/Marketplace/chunk-YLQU53ID.js +1 -0
- package/Marketplace/chunk-YNL43MLU.js +1 -0
- package/Marketplace/chunk-YQZHIZHO.js +6 -0
- package/Marketplace/chunk-YX65R6YJ.js +1 -0
- package/Marketplace/chunk-YYV4FSYQ.js +1 -0
- package/Marketplace/{chunk-EYT2YJGK.js → chunk-Z2XRGVGT.js} +1 -1
- package/Marketplace/chunk-Z6LN3X5Q.js +1 -0
- package/Marketplace/{chunk-HPINZVE4.js → chunk-ZC526ERX.js} +1 -1
- package/Marketplace/{chunk-M4ZE35XK.js → chunk-ZDBFIPDM.js} +1 -1
- package/Marketplace/{chunk-RNWHARPK.js → chunk-ZGIYCORM.js} +1 -1
- package/Marketplace/chunk-ZMQQVXQU.js +1 -0
- package/Marketplace/chunk-ZQHOCT7I.js +1 -0
- package/Marketplace/chunk-ZVNZGCYO.js +1 -0
- package/Marketplace/{chunk-ITGVXYDV.js → chunk-ZWUYPYHD.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-IQOLSEWV.js +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2B5DXBBJ.js +0 -1
- package/Marketplace/chunk-2F4DTZCZ.js +0 -2
- package/Marketplace/chunk-2MEVIFIA.js +0 -1
- package/Marketplace/chunk-2USFVKEX.js +0 -1
- package/Marketplace/chunk-36U7D4LI.js +0 -1
- package/Marketplace/chunk-4JDI3AL5.js +0 -1
- package/Marketplace/chunk-4LQREJ6J.js +0 -1
- package/Marketplace/chunk-4YCSITNV.js +0 -1
- package/Marketplace/chunk-5A3P2NB3.js +0 -1
- package/Marketplace/chunk-6EORXONU.js +0 -4
- package/Marketplace/chunk-6LRZDPE5.js +0 -1
- package/Marketplace/chunk-6UOPF4ZP.js +0 -1
- package/Marketplace/chunk-7Z5X4HRT.js +0 -1
- package/Marketplace/chunk-A7PUMY67.js +0 -1
- package/Marketplace/chunk-BQEBDVGB.js +0 -7
- package/Marketplace/chunk-BXYXVBXP.js +0 -1
- package/Marketplace/chunk-C4VD7LDS.js +0 -266
- package/Marketplace/chunk-C6JVY2ER.js +0 -1
- package/Marketplace/chunk-C7N6EI73.js +0 -1
- package/Marketplace/chunk-CBD25LAJ.js +0 -5
- package/Marketplace/chunk-CT6UFONR.js +0 -1
- package/Marketplace/chunk-D2J64VUP.js +0 -1
- package/Marketplace/chunk-DAUML5UD.js +0 -2
- package/Marketplace/chunk-DDV2A3Y2.js +0 -1
- package/Marketplace/chunk-E32KODU7.js +0 -1
- package/Marketplace/chunk-E3EBAWLJ.js +0 -1
- package/Marketplace/chunk-E66QUDQF.js +0 -1
- package/Marketplace/chunk-E6AMKEQR.js +0 -149
- package/Marketplace/chunk-E6ZWL77N.js +0 -1
- package/Marketplace/chunk-EDEZ3JLR.js +0 -4
- package/Marketplace/chunk-ESXDXSQ3.js +0 -1
- package/Marketplace/chunk-FCEXPGTK.js +0 -5
- package/Marketplace/chunk-FKGKMEDE.js +0 -2
- package/Marketplace/chunk-FKPDG4AM.js +0 -1
- package/Marketplace/chunk-GG3MDS4C.js +0 -1
- package/Marketplace/chunk-GURSK3ZV.js +0 -1
- package/Marketplace/chunk-HNFW4VQS.js +0 -1
- package/Marketplace/chunk-HSQHQZV7.js +0 -1
- package/Marketplace/chunk-I3R7CC6J.js +0 -1
- package/Marketplace/chunk-I7C6W3RB.js +0 -1
- package/Marketplace/chunk-ICE4DSEP.js +0 -1
- package/Marketplace/chunk-ILW6ZFFV.js +0 -1
- package/Marketplace/chunk-JW7NES7L.js +0 -1
- package/Marketplace/chunk-JWK3HR6P.js +0 -1
- package/Marketplace/chunk-K2BII75W.js +0 -15
- package/Marketplace/chunk-KSR5TQDN.js +0 -1
- package/Marketplace/chunk-KUBWQQZK.js +0 -1
- package/Marketplace/chunk-KUNITWR6.js +0 -1
- package/Marketplace/chunk-KVDREHOE.js +0 -1
- package/Marketplace/chunk-LNJUGHOX.js +0 -2
- package/Marketplace/chunk-LY32FUZ4.js +0 -2
- package/Marketplace/chunk-M2BYW5SR.js +0 -1
- package/Marketplace/chunk-MTPSSM64.js +0 -2
- package/Marketplace/chunk-N5VHHR26.js +0 -1
- package/Marketplace/chunk-NBCUYSP7.js +0 -1
- package/Marketplace/chunk-NCKPMA6Q.js +0 -1
- package/Marketplace/chunk-NH6QGSVC.js +0 -1
- package/Marketplace/chunk-O2YF5VGD.js +0 -2
- package/Marketplace/chunk-O4EO3YBL.js +0 -1
- package/Marketplace/chunk-OBF4XVU7.js +0 -1
- package/Marketplace/chunk-ONPG3DER.js +0 -2
- package/Marketplace/chunk-OPXITNRF.js +0 -1
- package/Marketplace/chunk-OXWPYJNB.js +0 -1
- package/Marketplace/chunk-Q4TAOZ73.js +0 -1
- package/Marketplace/chunk-Q56RJPES.js +0 -1
- package/Marketplace/chunk-R2XT5M5F.js +0 -3
- package/Marketplace/chunk-RI7L4QSY.js +0 -5
- package/Marketplace/chunk-RWVVRZJY.js +0 -1
- package/Marketplace/chunk-S5R6MCNP.js +0 -5
- package/Marketplace/chunk-S7CKRTJV.js +0 -2
- package/Marketplace/chunk-STYL7ETF.js +0 -3
- package/Marketplace/chunk-T5IUZ6UD.js +0 -1
- package/Marketplace/chunk-TAITBX62.js +0 -1
- package/Marketplace/chunk-TJYYRHZZ.js +0 -1
- package/Marketplace/chunk-TYQY4WPY.js +0 -1
- package/Marketplace/chunk-UQK5JNU2.js +0 -1
- package/Marketplace/chunk-XLIPGDSC.js +0 -2
- package/Marketplace/chunk-ZLBPUHTQ.js +0 -1
- package/Marketplace/chunk-ZME22WYI.js +0 -1
- package/Marketplace/chunk-ZW2TMVZP.js +0 -10
- package/Marketplace/chunk-ZYJ6LAJ3.js +0 -4
- package/Marketplace/main-K3MDOIIF.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as xe}from"./chunk-MTVUPPAN.js";import{b as gt}from"./chunk-2NRHX6CZ.js";import{a as rt,b as dt,c as mt,d as ft}from"./chunk-NIJCYMZM.js";import{a as ct}from"./chunk-UMLV2ZUF.js";import{a as ht}from"./chunk-7X4B2T6C.js";import{b as _t}from"./chunk-PN3KM4M4.js";import{a as ot,c as st,d as pt,e as ut}from"./chunk-ZWUYPYHD.js";import{b as at}from"./chunk-WVA5LYVE.js";import{a as lt}from"./chunk-ZDBFIPDM.js";import{a as tt,c as it,e as nt}from"./chunk-DDFP4CNP.js";import{b as $e,c as Je,d as Xe,e as Y,f as et}from"./chunk-RBZU7OVM.js";import{D as ze,R as Ke,T as P,U as H,V as q,X as U,aa as Ne,ca as Qe,ga as Ge,ia as qe,ja as Ue,ka as je,la as We,ma as j,na as W,u as ne,ua as Ye,v as D,x as He,y as Re}from"./chunk-RXC5D64C.js";import{A as ye,a as Ze,h as ge,m as be}from"./chunk-WAXAIL2I.js";import{A as fe,q as Ae,s as De,t as _e,u as Pe,v as he}from"./chunk-JNRCB7N3.js";import{$c as me,Aa as K,Ab as J,Ac as pe,Bc as I,Cc as k,Dc as m,Ec as _,Fd as b,Gd as G,Hb as re,Ia as B,Ib as we,Ic as N,Jc as de,Lb as ce,Lc as te,Mb as Ve,Mc as g,Nb as p,Nc as E,Oc as R,Pa as se,Pc as ie,Rc as ke,Sc as Ee,Tc as Fe,_b as T,_c as ue,ac as X,ad as F,bd as Q,cc as ee,cd as Le,hc as a,ic as u,jc as h,kc as A,la as Se,ld as M,ma as Te,na as Ce,ob as c,oc as v,pa as ae,pc as S,pd as z,qc as w,qd as Be,ra as L,rc as V,tb as O,ub as Oe,ud as $,wc as C,ya as y,yc as r,za as x,zc as Me}from"./chunk-OHGMB7HJ.js";import{a as Ie,b as ve}from"./chunk-66YHNWRR.js";var bt=`
|
|
2
2
|
.p-multiselect {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
cursor: pointer;
|
|
@@ -254,4 +254,4 @@ import{a as rt,b as dt,c as mt,d as ft}from"./chunk-AFDI4TD4.js";import{b as gt}
|
|
|
254
254
|
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
|
|
255
255
|
color: dt('multiselect.invalid.placeholder.color');
|
|
256
256
|
}
|
|
257
|
-
`,En={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},Fn={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size()==="small","p-multiselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},le=(()=>{class t extends qe{name="multiselect";style=kn;classes=Fn;inlineStyles=En;static \u0275fac=(()=>{let e;return function(i){return(e||(e=se(t)))(i||t)}})();static \u0275prov=Te({token:t,factory:t.\u0275fac})}return t})();var yt=new ae("MULTISELECT_INSTANCE"),Ln=new ae("MULTISELECT_ITEM_INSTANCE"),Bn={provide:He,useExisting:Se(()=>St),multi:!0},An=(()=>{class t extends Xe{$pcMultiSelectItem=L(Ln,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new O;onMouseEnter=new O;_componentStyle=L(le);onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=se(t)))(i||t)}})();static \u0275cmp=re({type:t,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:12,hostBindings:function(n,i){n&1&&C("click",function(o){return i.onOptionClick(o)})("mouseenter",function(o){return i.onOptionMouseEnter(o)}),n&2&&(T("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled)("aria-checked",i.selected),g(i.cx("option")),de("height",i.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",b],label:"label",disabled:[2,"disabled","disabled",b],itemSize:[2,"itemSize","itemSize",G],focused:[2,"focused","focused",b],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",b]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[ue([le]),ce],attrs:Ct,decls:4,vars:12,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(u(0,"p-checkbox",1),p(1,kt,3,0,"ng-container",2),h(),p(2,Et,2,1,"span",2)(3,Ft,1,0,"ng-container",3)),n&2&&(a("ngModel",i.selected)("binary",!0)("tabindex",-1)("variant",i.variant)("ariaLabel",i.label)("pt",i.getPTOptions("pcOptionCheckbox")),c(),a("ngIf",i.itemCheckboxIconTemplate),c(),a("ngIf",!i.template),c(),a("ngTemplateOutlet",i.template)("ngTemplateOutletContext",F(10,xt,i.option)))},dependencies:[fe,_e,he,xe,ye,ge,be,j],encapsulation:2})}return t})(),St=(()=>{class t extends at{zone;filterService;overlayService;id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e||0}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){Ne(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=$();variant=$();fluid=$(void 0,{transform:b});appendTo=$(void 0);onChange=new O;onFilter=new O;onFocus=new O;onBlur=new O;onClick=new O;onClear=new O;onPanelShow=new O;onPanelHide=new O;onLazyLoad=new O;onRemove=new O;onSelectAllChange=new O;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=L(le);bindDirectiveInstance=L(Y,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=B(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=z(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=z(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=L(yt,{optional:!0,skipSelf:!0})??void 0;pcFluid=L(st,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=B(null);_filterValue=B(null);_options=B([]);startRangeIndex=B(-1);focusedOptionIndex=B(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(W.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(W.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&P(this.modelValue())&&this.showClear&&!this.$disabled()&&!this.readonly&&this.$filled()}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get listLabel(){return this.config.getTranslation(W.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=z(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=Qe(e)&&nt.isObject(e[0]);if(this._filterValue()){let i;if(n?i=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):i=e.filter(l=>l.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let l=this.options||[],o=[];return l.forEach(d=>{let Z=this.getOptionGroupChildren(d).filter(Tt=>i.includes(Tt));Z.length>0&&o.push(ve(Ie({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...Z]}))}),this.flatOptions(o)}return i}return e});label=z(()=>{let e,n=this.modelValue();if(n&&n?.length&&this.displaySelectedLabel){if(P(this.maxSelectedLabels)&&n?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let i=0;i<n.length;i++)i!==0&&(e+=", "),e+=this.getLabelByValue(n[i])}else e=this.placeholder()||"";return e});chipSelectedItems=z(()=>P(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,i){super(),this.zone=e,this.filterService=n,this.overlayService=i,Be(()=>{let l=this.modelValue(),o=this.getAllVisibleAndNonVisibleOptions();o&&P(o)&&(this.optionValue&&this.optionLabel&&l?this.selectedOptions=o.filter(d=>l.includes(d[this.optionLabel])||l.includes(d[this.optionValue])):this.selectedOptions=l,this.cd.markForCheck())})}onInit(){this.id=this.id||Ge("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,i,l)=>{n.push({optionGroup:i,group:!0,index:l});let o=this.getOptionGroupChildren(i);return o&&o.forEach(d=>n.push(d)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,i=-1){let{originalEvent:l,option:o}=e;if(this.$disabled()||this.isOptionDisabled(o))return;let d=this.isSelected(o),f=[];d?f=this.modelValue().filter(Z=>!q(Z,this.getOptionValue(o),this.equalityKey()||"")):f=[...this.modelValue()||[],this.getOptionValue(o)],this.updateModel(f,l),i!==-1&&this.focusedOptionIndex.set(i),n&&D(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:f,itemValue:o})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,n=-1,i=-1){if(n===-1&&(n=this.findNearestSelectedOptionIndex(i,!0)),i===-1&&(i=this.findNearestSelectedOptionIndex(n)),n!==-1&&i!==-1){let l=Math.min(n,i),o=Math.max(n,i),d=this.visibleOptions().slice(l,o+1).filter(f=>this.isValidOption(f)).map(f=>this.getOptionValue(f));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,n=!1){let i=-1;return this.hasSelectedOption()&&(n?(i=this.findPrevSelectedOptionIndex(e),i=i===-1?this.findNextSelectedOptionIndex(e):i):(i=this.findNextSelectedOptionIndex(e),i=i===-1?this.findPrevSelectedOptionIndex(e):i)),i>-1?i:e}findPrevSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e>0?U(this.visibleOptions().slice(0,e),i=>this.isValidSelectedOption(i)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidSelectedOption(i)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return P(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?H(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let n=this.getOptionValue(e);return(this.modelValue()||[]).some(i=>q(i,n,this.equalityKey()||""))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let i=(this.group?this.flatOptions(this._options()):this._options()||[]).find(l=>!this.isOptionGroup(l)&&q(this.getOptionValue(l),e,this.equalityKey()||""));return i?this.getOptionLabel(i):null}getSelectedItemsLabel(){let e=/{(.*?)}/,n=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(W.SELECTION_MESSAGE);return e.test(n)?n.replace(n.match(e)[0],this.modelValue().length+""):n}getOptionLabel(e){return this.optionLabel?H(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?H(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?H(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?H(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&n){let i=this.visibleOptions().filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(i,e),e.preventDefault();break}!n&&$e(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,i,this.startRangeIndex()),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(0,e.shiftKey?l:0),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findFirstOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(e.shiftKey?0:l,l),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findLastFocusedOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,this.startRangeIndex(),o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.stopPropagation(),e.preventDefault())}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())D(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(i)&&this.onOptionSelect({originalEvent:e,option:i})}this.overlayVisible&&this.hide(this.filter)}}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.$disabled()||this.loading||this.readonly||e.target?.isSameNode?.(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?ze(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;D(n)}onInputFocus(e){this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ke(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;D(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onToggleAll(e){if(!(this.$disabled()||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let n=this.getAllVisibleAndNonVisibleOptions().filter(f=>this.isSelected(f)&&(this.optionDisabled?H(f,this.optionDisabled):f&&f.disabled!==void 0?f.disabled:!1)),i=this.allSelected()?this.visibleOptions().filter(f=>!this.isValidOption(f)&&this.isSelected(f)):this.visibleOptions().filter(f=>this.isSelected(f)||this.isValidOption(f)),o=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(f=>this.isSelected(f)&&this.isValidOption(f)):[],...n,...i].map(f=>this.getOptionValue(f)),d=[...new Set(o)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),tt.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=ne(this.itemsViewChild.nativeElement,`li[id="${n}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}allSelected(){return this.selectAll!==null?this.selectAll:P(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<(this.options?.length||0)}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(n),e&&D(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&it(),e&&D(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=ne(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=ne(this.itemsWrapper,'[data-p-highlight="true"]');n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e))}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,n){let i=this.modelValue().filter(l=>!q(l,e,this.equalityKey()||""));this.updateModel(i,n),this.onChange.emit({originalEvent:n,value:i,itemValue:e}),this.onRemove.emit({newValue:i,removed:e}),n&&n.stopPropagation()}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?U(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?U(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return U(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,l=!1;return this.focusedOptionIndex()!==-1?(i=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)),i=i===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)):i+this.focusedOptionIndex()):i=this.visibleOptions().findIndex(o=>this.isOptionMatched(o)),i!==-1&&(l=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),l}hasFocusableElements(){return Re(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}writeControlValue(e,n){this.value=e,n(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,n,i,l){return this.ptm(l,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,n),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(n){return new(n||t)(J(Oe),J(Ue),J(je))};static \u0275cmp=re({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(n,i,l){if(n&1&&(I(l,Ye,5),I(l,We,5),I(l,Lt,4),I(l,Bt,4),I(l,At,4),I(l,Dt,4),I(l,Pt,4),I(l,Ht,4),I(l,Rt,4),I(l,zt,4),I(l,Kt,4),I(l,Nt,4),I(l,Qt,4),I(l,$t,4),I(l,Gt,4),I(l,qt,4),I(l,Ut,4),I(l,jt,4),I(l,Wt,4),I(l,Ze,4)),n&2){let o;m(o=_())&&(i.footerFacet=o.first),m(o=_())&&(i.headerFacet=o.first),m(o=_())&&(i.itemTemplate=o.first),m(o=_())&&(i.groupTemplate=o.first),m(o=_())&&(i.loaderTemplate=o.first),m(o=_())&&(i.headerTemplate=o.first),m(o=_())&&(i.filterTemplate=o.first),m(o=_())&&(i.footerTemplate=o.first),m(o=_())&&(i.emptyFilterTemplate=o.first),m(o=_())&&(i.emptyTemplate=o.first),m(o=_())&&(i.selectedItemsTemplate=o.first),m(o=_())&&(i.loadingIconTemplate=o.first),m(o=_())&&(i.filterIconTemplate=o.first),m(o=_())&&(i.removeTokenIconTemplate=o.first),m(o=_())&&(i.chipIconTemplate=o.first),m(o=_())&&(i.clearIconTemplate=o.first),m(o=_())&&(i.dropdownIconTemplate=o.first),m(o=_())&&(i.itemCheckboxIconTemplate=o.first),m(o=_())&&(i.headerCheckboxIconTemplate=o.first),m(o=_())&&(i.templates=o)}},viewQuery:function(n,i){if(n&1&&(k(Yt,5),k(Zt,5),k(Jt,5),k(Xt,5),k(ei,5),k(ti,5),k(ii,5),k(ni,5)),n&2){let l;m(l=_())&&(i.overlayViewChild=l.first),m(l=_())&&(i.filterInputChild=l.first),m(l=_())&&(i.focusInputViewChild=l.first),m(l=_())&&(i.itemsViewChild=l.first),m(l=_())&&(i.scroller=l.first),m(l=_())&&(i.lastHiddenFocusableElementOnOverlay=l.first),m(l=_())&&(i.firstHiddenFocusableElementOnOverlay=l.first),m(l=_())&&(i.headerCheckboxViewChild=l.first)}},hostVars:5,hostBindings:function(n,i){n&1&&C("click",function(o){return i.onContainerClick(o)}),n&2&&(T("id",i.id),te(i.sx("root")),g(i.cn(i.cx("root"),i.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",b],group:[2,"group","group",b],filter:[2,"filter","filter",b],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",b],tabindex:[2,"tabindex","tabindex",G],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",G],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",b],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",b],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",b],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",b],virtualScroll:[2,"virtualScroll","virtualScroll",b],loading:[2,"loading","loading",b],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",G],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",b],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",b],autofocus:[2,"autofocus","autofocus",b],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",b],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",b],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",b],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",b],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[ue([Bn,le,{provide:yt,useExisting:t},{provide:Je,useExisting:t}]),Ve([Y]),ce],ngContentSelectors:oi,decls:16,vars:46,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","visible","options","target","appendTo","pt"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","onChange",4,"ngIf"],[3,"pt","class",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt"]],template:function(n,i){if(n&1){let l=V();Me(li),u(0,"div",16)(1,"input",17,0),C("focus",function(d){return y(l),x(i.onInputFocus(d))})("blur",function(d){return y(l),x(i.onInputBlur(d))})("keydown",function(d){return y(l),x(i.onKeyDown(d))}),h()(),u(3,"div",18),C("mouseleave",function(){return y(l),x(i.labelContainerMouseLeave())}),u(4,"div",19),p(5,Ii,3,2,"ng-container",20)(6,Ti,3,6,"ng-container",20),h()(),p(7,Mi,3,2,"ng-container",20),u(8,"div",19),p(9,Ai,3,2,"ng-container",21)(10,Ni,2,2,"ng-template",null,1,M),h(),u(12,"p-overlay",22,2),Fe("visibleChange",function(d){return y(l),Ee(i.overlayVisible,d)||(i.overlayVisible=d),x(d)}),C("onAnimationStart",function(d){return y(l),x(i.onOverlayAnimationStart(d))})("onHide",function(d){return y(l),x(i.onOverlayHide(d))}),p(14,Mn,13,23,"ng-template",null,3,M),h()}if(n&2){let l=N(11);a("pBind",i.ptm("hiddenInputContainer")),T("data-p-hidden-accessible",!0),c(),a("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus)("pBind",i.ptm("hiddenInput")),T("aria-disabled",i.$disabled())("id",i.inputId)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.$disabled()?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("value",i.modelValue())("name",i.name())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0),c(2),g(i.cx("labelContainer")),a("pBind",i.ptm("labelContainer"))("pTooltip",i.tooltip)("tooltipDisabled",i._disableTooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass),c(),g(i.cx("label")),a("pBind",i.ptm("label")),c(),a("ngIf",!i.selectedItemsTemplate&&!i._selectedItemsTemplate),c(),a("ngIf",i.selectedItemsTemplate||i._selectedItemsTemplate),c(),a("ngIf",i.isVisibleClearIcon),c(),g(i.cx("dropdown")),a("pBind",i.ptm("dropdown")),c(),a("ngIf",i.loading)("ngIfElse",l),c(3),a("hostAttrSelector",i.$attrSelector),ke("visible",i.overlayVisible),a("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())("pt",i.ptm("pcOverlay"))}},dependencies:[fe,Ae,De,_e,he,Pe,An,ht,j,lt,ft,ot,ct,dt,ut,pt,rt,mt,_t,gt,xe,ye,ge,be,et,Y],encapsulation:2,changeDetection:0})}return t})(),Il=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=we({type:t});static \u0275inj=Ce({imports:[St,j,j]})}return t})();export{St as a,Il as b};
|
|
257
|
+
`,En={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},Fn={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size()==="small","p-multiselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},le=(()=>{class t extends Ye{name="multiselect";style=kn;classes=Fn;inlineStyles=En;static \u0275fac=(()=>{let e;return function(i){return(e||(e=se(t)))(i||t)}})();static \u0275prov=Te({token:t,factory:t.\u0275fac})}return t})();var yt=new ae("MULTISELECT_INSTANCE"),Ln=new ae("MULTISELECT_ITEM_INSTANCE"),Bn={provide:Ze,useExisting:Se(()=>St),multi:!0},An=(()=>{class t extends Xe{$pcMultiSelectItem=L(Ln,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new O;onMouseEnter=new O;_componentStyle=L(le);onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=se(t)))(i||t)}})();static \u0275cmp=re({type:t,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:12,hostBindings:function(n,i){n&1&&C("click",function(o){return i.onOptionClick(o)})("mouseenter",function(o){return i.onOptionMouseEnter(o)}),n&2&&(T("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled)("aria-checked",i.selected),g(i.cx("option")),de("height",i.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",b],label:"label",disabled:[2,"disabled","disabled",b],itemSize:[2,"itemSize","itemSize",G],focused:[2,"focused","focused",b],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",b]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[ue([le]),ce],attrs:Ct,decls:4,vars:12,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(u(0,"p-checkbox",1),p(1,kt,3,0,"ng-container",2),h(),p(2,Et,2,1,"span",2)(3,Ft,1,0,"ng-container",3)),n&2&&(a("ngModel",i.selected)("binary",!0)("tabindex",-1)("variant",i.variant)("ariaLabel",i.label)("pt",i.getPTOptions("pcOptionCheckbox")),c(),a("ngIf",i.itemCheckboxIconTemplate),c(),a("ngIf",!i.template),c(),a("ngTemplateOutlet",i.template)("ngTemplateOutletContext",F(10,xt,i.option)))},dependencies:[fe,_e,he,xe,ye,ge,be,j],encapsulation:2})}return t})(),St=(()=>{class t extends at{zone;filterService;overlayService;id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e||0}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){Ke(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=$();variant=$();fluid=$(void 0,{transform:b});appendTo=$(void 0);onChange=new O;onFilter=new O;onFocus=new O;onBlur=new O;onClick=new O;onClear=new O;onPanelShow=new O;onPanelHide=new O;onLazyLoad=new O;onRemove=new O;onSelectAllChange=new O;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=L(le);bindDirectiveInstance=L(Y,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=B(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=z(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=z(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=L(yt,{optional:!0,skipSelf:!0})??void 0;pcFluid=L(st,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=B(null);_filterValue=B(null);_options=B([]);startRangeIndex=B(-1);focusedOptionIndex=B(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(W.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(W.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&P(this.modelValue())&&this.showClear&&!this.$disabled()&&!this.readonly&&this.$filled()}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get listLabel(){return this.config.getTranslation(W.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=z(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=Ne(e)&&nt.isObject(e[0]);if(this._filterValue()){let i;if(n?i=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):i=e.filter(l=>l.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let l=this.options||[],o=[];return l.forEach(d=>{let Z=this.getOptionGroupChildren(d).filter(Tt=>i.includes(Tt));Z.length>0&&o.push(ve(Ie({},d),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...Z]}))}),this.flatOptions(o)}return i}return e});label=z(()=>{let e,n=this.modelValue();if(n&&n?.length&&this.displaySelectedLabel){if(P(this.maxSelectedLabels)&&n?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let i=0;i<n.length;i++)i!==0&&(e+=", "),e+=this.getLabelByValue(n[i])}else e=this.placeholder()||"";return e});chipSelectedItems=z(()=>P(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,i){super(),this.zone=e,this.filterService=n,this.overlayService=i,Be(()=>{let l=this.modelValue(),o=this.getAllVisibleAndNonVisibleOptions();o&&P(o)&&(this.optionValue&&this.optionLabel&&l?this.selectedOptions=o.filter(d=>l.includes(d[this.optionLabel])||l.includes(d[this.optionValue])):this.selectedOptions=l,this.cd.markForCheck())})}onInit(){this.id=this.id||$e("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,i,l)=>{n.push({optionGroup:i,group:!0,index:l});let o=this.getOptionGroupChildren(i);return o&&o.forEach(d=>n.push(d)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,i=-1){let{originalEvent:l,option:o}=e;if(this.$disabled()||this.isOptionDisabled(o))return;let d=this.isSelected(o),f=[];d?f=this.modelValue().filter(Z=>!q(Z,this.getOptionValue(o),this.equalityKey()||"")):f=[...this.modelValue()||[],this.getOptionValue(o)],this.updateModel(f,l),i!==-1&&this.focusedOptionIndex.set(i),n&&D(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:f,itemValue:o})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,n=-1,i=-1){if(n===-1&&(n=this.findNearestSelectedOptionIndex(i,!0)),i===-1&&(i=this.findNearestSelectedOptionIndex(n)),n!==-1&&i!==-1){let l=Math.min(n,i),o=Math.max(n,i),d=this.visibleOptions().slice(l,o+1).filter(f=>this.isValidOption(f)).map(f=>this.getOptionValue(f));this.updateModel(d,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,n=!1){let i=-1;return this.hasSelectedOption()&&(n?(i=this.findPrevSelectedOptionIndex(e),i=i===-1?this.findNextSelectedOptionIndex(e):i):(i=this.findNextSelectedOptionIndex(e),i=i===-1?this.findPrevSelectedOptionIndex(e):i)),i>-1?i:e}findPrevSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e>0?U(this.visibleOptions().slice(0,e),i=>this.isValidSelectedOption(i)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidSelectedOption(i)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return P(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?H(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let n=this.getOptionValue(e);return(this.modelValue()||[]).some(i=>q(i,n,this.equalityKey()||""))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let i=(this.group?this.flatOptions(this._options()):this._options()||[]).find(l=>!this.isOptionGroup(l)&&q(this.getOptionValue(l),e,this.equalityKey()||""));return i?this.getOptionLabel(i):null}getSelectedItemsLabel(){let e=/{(.*?)}/,n=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(W.SELECTION_MESSAGE);return e.test(n)?n.replace(n.match(e)[0],this.modelValue().length+""):n}getOptionLabel(e){return this.optionLabel?H(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?H(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?H(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?H(e,this.optionGroupChildren):e.items:[]}onKeyDown(e){if(this.$disabled()){e.preventDefault();return}let n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&n){let i=this.visibleOptions().filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(i,e),e.preventDefault();break}!n&&Qe(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,i,this.startRangeIndex()),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(0,e.shiftKey?l:0),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findFirstOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(e.shiftKey?0:l,l),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findLastFocusedOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,this.startRangeIndex(),o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.stopPropagation(),e.preventDefault())}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())D(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(i)&&this.onOptionSelect({originalEvent:e,option:i})}this.overlayVisible&&this.hide(this.filter)}}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.$disabled()||this.loading||this.readonly||e.target?.isSameNode?.(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?Re(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;D(n)}onInputFocus(e){this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?ze(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;D(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onToggleAll(e){if(!(this.$disabled()||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let n=this.getAllVisibleAndNonVisibleOptions().filter(f=>this.isSelected(f)&&(this.optionDisabled?H(f,this.optionDisabled):f&&f.disabled!==void 0?f.disabled:!1)),i=this.allSelected()?this.visibleOptions().filter(f=>!this.isValidOption(f)&&this.isSelected(f)):this.visibleOptions().filter(f=>this.isSelected(f)||this.isValidOption(f)),o=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(f=>this.isSelected(f)&&this.isValidOption(f)):[],...n,...i].map(f=>this.getOptionValue(f)),d=[...new Set(o)];this.updateModel(d,e),(!d.length||d.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!d.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),tt.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=ne(this.itemsViewChild.nativeElement,`li[id="${n}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}allSelected(){return this.selectAll!==null?this.selectAll:P(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<(this.options?.length||0)}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(n),e&&D(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&it(),e&&D(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=ne(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=ne(this.itemsWrapper,'[data-p-highlight="true"]');n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e))}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,n){let i=this.modelValue().filter(l=>!q(l,e,this.equalityKey()||""));this.updateModel(i,n),this.onChange.emit({originalEvent:n,value:i,itemValue:e}),this.onRemove.emit({newValue:i,removed:e}),n&&n.stopPropagation()}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?U(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?U(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return U(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,l=!1;return this.focusedOptionIndex()!==-1?(i=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)),i=i===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)):i+this.focusedOptionIndex()):i=this.visibleOptions().findIndex(o=>this.isOptionMatched(o)),i!==-1&&(l=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),l}hasFocusableElements(){return He(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}writeControlValue(e,n){this.value=e,n(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,n,i,l){return this.ptm(l,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,n),disabled:this.isOptionDisabled(e)}})}static \u0275fac=function(n){return new(n||t)(J(Oe),J(Ge),J(qe))};static \u0275cmp=re({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(n,i,l){if(n&1&&(I(l,je,5),I(l,Ue,5),I(l,Lt,4),I(l,Bt,4),I(l,At,4),I(l,Dt,4),I(l,Pt,4),I(l,Ht,4),I(l,Rt,4),I(l,zt,4),I(l,Kt,4),I(l,Nt,4),I(l,Qt,4),I(l,$t,4),I(l,Gt,4),I(l,qt,4),I(l,Ut,4),I(l,jt,4),I(l,Wt,4),I(l,We,4)),n&2){let o;m(o=_())&&(i.footerFacet=o.first),m(o=_())&&(i.headerFacet=o.first),m(o=_())&&(i.itemTemplate=o.first),m(o=_())&&(i.groupTemplate=o.first),m(o=_())&&(i.loaderTemplate=o.first),m(o=_())&&(i.headerTemplate=o.first),m(o=_())&&(i.filterTemplate=o.first),m(o=_())&&(i.footerTemplate=o.first),m(o=_())&&(i.emptyFilterTemplate=o.first),m(o=_())&&(i.emptyTemplate=o.first),m(o=_())&&(i.selectedItemsTemplate=o.first),m(o=_())&&(i.loadingIconTemplate=o.first),m(o=_())&&(i.filterIconTemplate=o.first),m(o=_())&&(i.removeTokenIconTemplate=o.first),m(o=_())&&(i.chipIconTemplate=o.first),m(o=_())&&(i.clearIconTemplate=o.first),m(o=_())&&(i.dropdownIconTemplate=o.first),m(o=_())&&(i.itemCheckboxIconTemplate=o.first),m(o=_())&&(i.headerCheckboxIconTemplate=o.first),m(o=_())&&(i.templates=o)}},viewQuery:function(n,i){if(n&1&&(k(Yt,5),k(Zt,5),k(Jt,5),k(Xt,5),k(ei,5),k(ti,5),k(ii,5),k(ni,5)),n&2){let l;m(l=_())&&(i.overlayViewChild=l.first),m(l=_())&&(i.filterInputChild=l.first),m(l=_())&&(i.focusInputViewChild=l.first),m(l=_())&&(i.itemsViewChild=l.first),m(l=_())&&(i.scroller=l.first),m(l=_())&&(i.lastHiddenFocusableElementOnOverlay=l.first),m(l=_())&&(i.firstHiddenFocusableElementOnOverlay=l.first),m(l=_())&&(i.headerCheckboxViewChild=l.first)}},hostVars:5,hostBindings:function(n,i){n&1&&C("click",function(o){return i.onContainerClick(o)}),n&2&&(T("id",i.id),te(i.sx("root")),g(i.cn(i.cx("root"),i.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",b],group:[2,"group","group",b],filter:[2,"filter","filter",b],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",b],tabindex:[2,"tabindex","tabindex",G],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",G],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",b],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",b],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",b],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",b],virtualScroll:[2,"virtualScroll","virtualScroll",b],loading:[2,"loading","loading",b],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",G],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",b],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",b],autofocus:[2,"autofocus","autofocus",b],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",b],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",b],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",b],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",b],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[ue([Bn,le,{provide:yt,useExisting:t},{provide:Je,useExisting:t}]),Ve([Y]),ce],ngContentSelectors:oi,decls:16,vars:46,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","visible","options","target","appendTo","pt"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","onChange",4,"ngIf"],[3,"pt","class",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt"]],template:function(n,i){if(n&1){let l=V();Me(li),u(0,"div",16)(1,"input",17,0),C("focus",function(d){return y(l),x(i.onInputFocus(d))})("blur",function(d){return y(l),x(i.onInputBlur(d))})("keydown",function(d){return y(l),x(i.onKeyDown(d))}),h()(),u(3,"div",18),C("mouseleave",function(){return y(l),x(i.labelContainerMouseLeave())}),u(4,"div",19),p(5,Ii,3,2,"ng-container",20)(6,Ti,3,6,"ng-container",20),h()(),p(7,Mi,3,2,"ng-container",20),u(8,"div",19),p(9,Ai,3,2,"ng-container",21)(10,Ni,2,2,"ng-template",null,1,M),h(),u(12,"p-overlay",22,2),Fe("visibleChange",function(d){return y(l),Ee(i.overlayVisible,d)||(i.overlayVisible=d),x(d)}),C("onAnimationStart",function(d){return y(l),x(i.onOverlayAnimationStart(d))})("onHide",function(d){return y(l),x(i.onOverlayHide(d))}),p(14,Mn,13,23,"ng-template",null,3,M),h()}if(n&2){let l=N(11);a("pBind",i.ptm("hiddenInputContainer")),T("data-p-hidden-accessible",!0),c(),a("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus)("pBind",i.ptm("hiddenInput")),T("aria-disabled",i.$disabled())("id",i.inputId)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.$disabled()?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("value",i.modelValue())("name",i.name())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0),c(2),g(i.cx("labelContainer")),a("pBind",i.ptm("labelContainer"))("pTooltip",i.tooltip)("tooltipDisabled",i._disableTooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass),c(),g(i.cx("label")),a("pBind",i.ptm("label")),c(),a("ngIf",!i.selectedItemsTemplate&&!i._selectedItemsTemplate),c(),a("ngIf",i.selectedItemsTemplate||i._selectedItemsTemplate),c(),a("ngIf",i.isVisibleClearIcon),c(),g(i.cx("dropdown")),a("pBind",i.ptm("dropdown")),c(),a("ngIf",i.loading)("ngIfElse",l),c(3),a("hostAttrSelector",i.$attrSelector),ke("visible",i.overlayVisible),a("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())("pt",i.ptm("pcOverlay"))}},dependencies:[fe,Ae,De,_e,he,Pe,An,ht,j,lt,ft,ot,ct,dt,ut,pt,rt,mt,_t,gt,xe,ye,ge,be,et,Y],encapsulation:2,changeDetection:0})}return t})(),Il=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=we({type:t});static \u0275inj=Ce({imports:[St,j,j]})}return t})();export{St as a,Il as b};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import{a as le}from"./chunk-UMLV2ZUF.js";import{b as de}from"./chunk-WVA5LYVE.js";import{a as se}from"./chunk-FOKLBUX6.js";import{c as re,e as x,f as ae}from"./chunk-RBZU7OVM.js";import{V as ee,W as ne,la as oe,ma as B,ua as te}from"./chunk-RXC5D64C.js";import{a as ie,g as ce}from"./chunk-WAXAIL2I.js";import{A as Y,q as Z,t as J,v as W}from"./chunk-JNRCB7N3.js";import{Aa as p,Bc as F,Cc as q,Dc as I,Ec as w,Fd as k,Gd as U,Hb as v,Ia as L,Ib as Q,Lb as C,Lc as G,Mb as $,Mc as s,Nb as b,Pa as u,_b as V,_c as P,bd as K,hc as c,ic as M,jc as T,kc as y,la as z,ma as D,na as A,nc as j,ob as d,oc as E,pa as O,pc as S,pd as X,ra as m,rc as H,tb as _,ud as N,wc as R,ya as f,yc as l,za as g}from"./chunk-OHGMB7HJ.js";var me=["data-p-icon","minus"],he=(()=>{class e extends se{static \u0275fac=(()=>{let o;return function(n){return(o||(o=u(e)))(n||e)}})();static \u0275cmp=v({type:e,selectors:[["","data-p-icon","minus"]],features:[C],attrs:me,decls:1,vars:0,consts:[["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(t,n){t&1&&(p(),j(0,"path",0))},encapsulation:2})}return e})();var pe=`
|
|
2
|
+
.p-checkbox {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
user-select: none;
|
|
6
|
+
vertical-align: bottom;
|
|
7
|
+
width: dt('checkbox.width');
|
|
8
|
+
height: dt('checkbox.height');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-checkbox-input {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
appearance: none;
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset-block-start: 0;
|
|
16
|
+
inset-inline-start: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
outline: 0 none;
|
|
24
|
+
border: 1px solid transparent;
|
|
25
|
+
border-radius: dt('checkbox.border.radius');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.p-checkbox-box {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
border-radius: dt('checkbox.border.radius');
|
|
33
|
+
border: 1px solid dt('checkbox.border.color');
|
|
34
|
+
background: dt('checkbox.background');
|
|
35
|
+
width: dt('checkbox.width');
|
|
36
|
+
height: dt('checkbox.height');
|
|
37
|
+
transition:
|
|
38
|
+
background dt('checkbox.transition.duration'),
|
|
39
|
+
color dt('checkbox.transition.duration'),
|
|
40
|
+
border-color dt('checkbox.transition.duration'),
|
|
41
|
+
box-shadow dt('checkbox.transition.duration'),
|
|
42
|
+
outline-color dt('checkbox.transition.duration');
|
|
43
|
+
outline-color: transparent;
|
|
44
|
+
box-shadow: dt('checkbox.shadow');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.p-checkbox-icon {
|
|
48
|
+
transition-duration: dt('checkbox.transition.duration');
|
|
49
|
+
color: dt('checkbox.icon.color');
|
|
50
|
+
font-size: dt('checkbox.icon.size');
|
|
51
|
+
width: dt('checkbox.icon.size');
|
|
52
|
+
height: dt('checkbox.icon.size');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
56
|
+
border-color: dt('checkbox.hover.border.color');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.p-checkbox-checked .p-checkbox-box {
|
|
60
|
+
border-color: dt('checkbox.checked.border.color');
|
|
61
|
+
background: dt('checkbox.checked.background');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.p-checkbox-checked .p-checkbox-icon {
|
|
65
|
+
color: dt('checkbox.icon.checked.color');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
69
|
+
background: dt('checkbox.checked.hover.background');
|
|
70
|
+
border-color: dt('checkbox.checked.hover.border.color');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
|
|
74
|
+
color: dt('checkbox.icon.checked.hover.color');
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
78
|
+
border-color: dt('checkbox.focus.border.color');
|
|
79
|
+
box-shadow: dt('checkbox.focus.ring.shadow');
|
|
80
|
+
outline: dt('checkbox.focus.ring.width') dt('checkbox.focus.ring.style') dt('checkbox.focus.ring.color');
|
|
81
|
+
outline-offset: dt('checkbox.focus.ring.offset');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
|
|
85
|
+
border-color: dt('checkbox.checked.focus.border.color');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.p-checkbox.p-invalid > .p-checkbox-box {
|
|
89
|
+
border-color: dt('checkbox.invalid.border.color');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.p-checkbox.p-variant-filled .p-checkbox-box {
|
|
93
|
+
background: dt('checkbox.filled.background');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.p-checkbox-checked.p-variant-filled .p-checkbox-box {
|
|
97
|
+
background: dt('checkbox.checked.background');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
|
|
101
|
+
background: dt('checkbox.checked.hover.background');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.p-checkbox.p-disabled {
|
|
105
|
+
opacity: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.p-checkbox.p-disabled .p-checkbox-box {
|
|
109
|
+
background: dt('checkbox.disabled.background');
|
|
110
|
+
border-color: dt('checkbox.checked.disabled.border.color');
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
|
|
114
|
+
color: dt('checkbox.icon.disabled.color');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-checkbox-sm,
|
|
118
|
+
.p-checkbox-sm .p-checkbox-box {
|
|
119
|
+
width: dt('checkbox.sm.width');
|
|
120
|
+
height: dt('checkbox.sm.height');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.p-checkbox-sm .p-checkbox-icon {
|
|
124
|
+
font-size: dt('checkbox.icon.sm.size');
|
|
125
|
+
width: dt('checkbox.icon.sm.size');
|
|
126
|
+
height: dt('checkbox.icon.sm.size');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.p-checkbox-lg,
|
|
130
|
+
.p-checkbox-lg .p-checkbox-box {
|
|
131
|
+
width: dt('checkbox.lg.width');
|
|
132
|
+
height: dt('checkbox.lg.height');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.p-checkbox-lg .p-checkbox-icon {
|
|
136
|
+
font-size: dt('checkbox.icon.lg.size');
|
|
137
|
+
width: dt('checkbox.icon.lg.size');
|
|
138
|
+
height: dt('checkbox.icon.lg.size');
|
|
139
|
+
}
|
|
140
|
+
`;var fe=["icon"],ge=["input"],_e=(e,a)=>({checked:e,class:a});function ve(e,a){if(e&1&&y(0,"span",8),e&2){let o=l(3);s(o.cx("icon")),c("ngClass",o.checkboxIcon)("pBind",o.ptm("icon"))}}function Ce(e,a){if(e&1&&(p(),y(0,"svg",9)),e&2){let o=l(3);s(o.cx("icon")),c("pBind",o.ptm("icon"))}}function ye(e,a){if(e&1&&(E(0),b(1,ve,1,4,"span",6)(2,Ce,1,3,"svg",7),S()),e&2){let o=l(2);d(),c("ngIf",o.checkboxIcon),d(),c("ngIf",!o.checkboxIcon)}}function Ie(e,a){if(e&1&&(p(),y(0,"svg",10)),e&2){let o=l(2);s(o.cx("icon")),c("pBind",o.ptm("icon"))}}function we(e,a){if(e&1&&(E(0),b(1,ye,3,2,"ng-container",3)(2,Ie,1,3,"svg",5),S()),e&2){let o=l();d(),c("ngIf",o.checked),d(),c("ngIf",o._indeterminate())}}function Be(e,a){}function Ve(e,a){e&1&&b(0,Be,0,0,"ng-template")}var Me=`
|
|
141
|
+
${pe}
|
|
142
|
+
|
|
143
|
+
/* For PrimeNG */
|
|
144
|
+
p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
|
|
145
|
+
p-check-box.ng-invalid.ng-dirty .p-checkbox-box,
|
|
146
|
+
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
|
|
147
|
+
border-color: dt('checkbox.invalid.border.color');
|
|
148
|
+
}
|
|
149
|
+
`,Te={root:({instance:e})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":e.checked,"p-disabled":e.$disabled(),"p-invalid":e.invalid(),"p-variant-filled":e.$variant()==="filled","p-checkbox-sm p-inputfield-sm":e.size()==="small","p-checkbox-lg p-inputfield-lg":e.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},ue=(()=>{class e extends te{name="checkbox";style=Me;classes=Te;static \u0275fac=(()=>{let o;return function(n){return(o||(o=u(e)))(n||e)}})();static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();var be=new O("CHECKBOX_INSTANCE"),Ee={provide:ie,useExisting:z(()=>ke),multi:!0},ke=(()=>{class e extends de{hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=N();size=N();onChange=new _;onFocus=new _;onBlur=new _;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:ne(this.value,this.modelValue())}_indeterminate=L(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=m(ue);bindDirectiveInstance=m(x,{self:!0});$pcCheckbox=m(be,{optional:!0,skipSelf:!0})??void 0;$variant=X(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(o=>{switch(o.getType()){case"icon":this._checkboxIconTemplate=o.template;break;case"checkboxicon":this._checkboxIconTemplate=o.template;break}})}onChanges(o){o.indeterminate&&this._indeterminate.set(o.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(o){let t,n=this.injector.get(ce,null,{optional:!0,self:!0}),i=n&&!this.formControl?n.value:this.modelValue();this.binary?(t=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(t),this.onModelChange(t)):(this.checked||this._indeterminate()?t=i.filter(r=>!ee(r,this.value)):t=i?[...i,this.value]:[this.value],this.onModelChange(t),this.writeModelValue(t),this.formControl&&this.formControl.setValue(t)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:t,originalEvent:o})}handleChange(o){this.readonly||this.updateModel(o)}onInputFocus(o){this.focused=!0,this.onFocus.emit(o)}onInputBlur(o){this.focused=!1,this.onBlur.emit(o),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(o,t){t(o),this.cd.markForCheck()}static \u0275fac=(()=>{let o;return function(n){return(o||(o=u(e)))(n||e)}})();static \u0275cmp=v({type:e,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(t,n,i){if(t&1&&(F(i,fe,4),F(i,oe,4)),t&2){let r;I(r=w())&&(n.checkboxIconTemplate=r.first),I(r=w())&&(n.templates=r)}},viewQuery:function(t,n){if(t&1&&q(ge,5),t&2){let i;I(i=w())&&(n.inputViewChild=i.first)}},hostVars:5,hostBindings:function(t,n){t&2&&(V("data-p-highlight",n.checked)("data-p-checked",n.checked)("data-p-disabled",n.$disabled()),s(n.cn(n.cx("root"),n.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",k],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",U],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",k],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",k],autofocus:[2,"autofocus","autofocus",k],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[P([Ee,ue,{provide:be,useExisting:e},{provide:re,useExisting:e}]),$([x]),C],decls:5,vars:24,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(t,n){if(t&1){let i=H();M(0,"input",1,0),R("focus",function(h){return f(i),g(n.onInputFocus(h))})("blur",function(h){return f(i),g(n.onInputBlur(h))})("change",function(h){return f(i),g(n.handleChange(h))}),T(),M(2,"div",2),b(3,we,3,2,"ng-container",3)(4,Ve,1,0,null,4),T()}t&2&&(G(n.inputStyle),s(n.cn(n.cx("input"),n.inputClass)),c("checked",n.checked)("pBind",n.ptm("input")),V("id",n.inputId)("value",n.value)("name",n.name())("tabindex",n.tabindex)("required",n.required()?"":void 0)("readonly",n.readonly?"":void 0)("disabled",n.$disabled()?"":void 0)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel),d(2),s(n.cx("box")),c("pBind",n.ptm("box")),d(),c("ngIf",!n.checkboxIconTemplate&&!n._checkboxIconTemplate),d(),c("ngTemplateOutlet",n.checkboxIconTemplate||n._checkboxIconTemplate)("ngTemplateOutletContext",K(21,_e,n.checked,n.cx("icon"))))},dependencies:[Y,Z,J,W,B,le,he,ae,x],encapsulation:2,changeDetection:0})}return e})(),cn=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=Q({type:e});static \u0275inj=A({imports:[ke,B,B]})}return e})();export{ke as a,cn as b};
|