@synergy-design-system/components 3.1.0 → 3.2.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/README.md +0 -61
- package/dist/chunks/{chunk.4PUQDU4T.js → chunk.26QTFTWA.js} +5 -5
- package/dist/chunks/chunk.26QTFTWA.js.map +7 -0
- package/dist/chunks/{chunk.VA26EAEP.js → chunk.2BJPTG2Q.js} +1 -1
- package/dist/chunks/chunk.2BJPTG2Q.js.map +7 -0
- package/dist/chunks/{chunk.5732DMBC.js → chunk.2DT3C6WE.js} +1 -1
- package/dist/chunks/chunk.2DT3C6WE.js.map +7 -0
- package/dist/chunks/{chunk.ZJHL23CU.js → chunk.2EZFBKDU.js} +2 -2
- package/dist/chunks/chunk.2EZFBKDU.js.map +7 -0
- package/dist/chunks/chunk.2IL4PA6Q.js +130 -0
- package/dist/chunks/chunk.2IL4PA6Q.js.map +7 -0
- package/dist/chunks/{chunk.3PWAIWL5.js → chunk.2J5ARXAO.js} +7 -7
- package/dist/chunks/{chunk.FSZIE7IO.js → chunk.34A453XJ.js} +1 -1
- package/dist/chunks/chunk.34A453XJ.js.map +7 -0
- package/dist/chunks/{chunk.BIRYJHTO.js → chunk.3GSHQV5Q.js} +2 -2
- package/dist/chunks/{chunk.3NXKLKWH.js → chunk.3JDUKQRN.js} +1 -1
- package/dist/chunks/chunk.3JDUKQRN.js.map +7 -0
- package/dist/chunks/{chunk.AQITYSQX.js → chunk.4K5KFEYL.js} +9 -9
- package/dist/chunks/chunk.4K5KFEYL.js.map +7 -0
- package/dist/chunks/{chunk.ZBW4ZSZ7.js → chunk.4XZTYPIY.js} +1 -1
- package/dist/chunks/chunk.4XZTYPIY.js.map +7 -0
- package/dist/chunks/{chunk.KIY5IDWY.js → chunk.4ZMYXIBW.js} +2 -2
- package/dist/chunks/chunk.4ZMYXIBW.js.map +7 -0
- package/dist/chunks/{chunk.IBWQFVMJ.js → chunk.52USEUTP.js} +2 -2
- package/dist/chunks/chunk.52USEUTP.js.map +7 -0
- package/dist/chunks/{chunk.IVM3BGRH.js → chunk.5FVNGR5M.js} +1 -1
- package/dist/chunks/chunk.5FVNGR5M.js.map +7 -0
- package/dist/chunks/{chunk.2QDRZ3C6.js → chunk.5ICJ7VWS.js} +2 -2
- package/dist/chunks/chunk.5ICJ7VWS.js.map +7 -0
- package/dist/chunks/{chunk.OI3HOOCT.js → chunk.5KL2GWNQ.js} +1 -1
- package/dist/chunks/chunk.5KL2GWNQ.js.map +7 -0
- package/dist/chunks/{chunk.QS53GZR4.js → chunk.5QMMVRAY.js} +2 -2
- package/dist/chunks/chunk.5QMMVRAY.js.map +7 -0
- package/dist/chunks/{chunk.QWHBUNGK.js → chunk.5QYKBLQ4.js} +7 -7
- package/dist/chunks/chunk.5QYKBLQ4.js.map +7 -0
- package/dist/chunks/{chunk.NVT2EKF6.js → chunk.5RIU5X7Z.js} +2 -2
- package/dist/chunks/chunk.5RIU5X7Z.js.map +7 -0
- package/dist/chunks/{chunk.FD2CG2HT.js → chunk.6AT5JL7A.js} +1 -29
- package/dist/chunks/chunk.6AT5JL7A.js.map +7 -0
- package/dist/chunks/{chunk.6WFPHCIK.js → chunk.6EHOI2BO.js} +16 -16
- package/dist/chunks/{chunk.OEOU5X7P.js → chunk.6F7L74P2.js} +2 -2
- package/dist/chunks/chunk.6F7L74P2.js.map +7 -0
- package/dist/chunks/{chunk.PAM2UCZU.js → chunk.6GU7PVLX.js} +2 -2
- package/dist/chunks/chunk.6GU7PVLX.js.map +7 -0
- package/dist/chunks/{chunk.6GWSQWLE.js → chunk.6JDKH43H.js} +539 -133
- package/dist/chunks/chunk.6JDKH43H.js.map +7 -0
- package/dist/chunks/{chunk.HVXG4JG6.js → chunk.6KIX3PER.js} +1 -1
- package/dist/chunks/chunk.6KIX3PER.js.map +7 -0
- package/dist/chunks/{chunk.75RQ52LL.js → chunk.6ND5EQHX.js} +2 -2
- package/dist/chunks/chunk.6ND5EQHX.js.map +7 -0
- package/dist/chunks/{chunk.OAIHDW7S.js → chunk.6PRXWBZE.js} +2 -2
- package/dist/chunks/{chunk.YARPBFC7.js → chunk.6TVTDKLK.js} +2 -2
- package/dist/chunks/chunk.6TVTDKLK.js.map +7 -0
- package/dist/chunks/{chunk.U7O7432Y.js → chunk.6UWGX2XK.js} +2 -2
- package/dist/chunks/chunk.6UWGX2XK.js.map +7 -0
- package/dist/chunks/{chunk.KY3YPRYR.js → chunk.7G6N24FO.js} +2 -2
- package/dist/chunks/{chunk.SM4ANWX6.js → chunk.7UHGS3KI.js} +2 -2
- package/dist/chunks/chunk.7UHGS3KI.js.map +7 -0
- package/dist/chunks/{chunk.JLXCLATV.js → chunk.7V7XEBE2.js} +1 -1
- package/dist/chunks/chunk.7V7XEBE2.js.map +7 -0
- package/dist/chunks/{chunk.VGI7V7OS.js → chunk.B45BLWF7.js} +15 -15
- package/dist/chunks/chunk.B45BLWF7.js.map +7 -0
- package/dist/chunks/{chunk.KW5TWA5Y.js → chunk.BC532CB6.js} +1 -1
- package/dist/chunks/chunk.BC532CB6.js.map +7 -0
- package/dist/chunks/{chunk.X7XPEYAM.js → chunk.BHJVE26D.js} +2 -3
- package/dist/chunks/chunk.BHJVE26D.js.map +7 -0
- package/dist/chunks/{chunk.W66D3Q4F.js → chunk.BIAB7B7S.js} +2 -2
- package/dist/chunks/chunk.BIAB7B7S.js.map +7 -0
- package/dist/chunks/{chunk.RATZ2RGX.js → chunk.BJVWQ3LR.js} +2 -2
- package/dist/chunks/{chunk.VXC77KXR.js → chunk.BQTSV4AJ.js} +6 -6
- package/dist/chunks/chunk.BQTSV4AJ.js.map +7 -0
- package/dist/chunks/{chunk.BXY667C7.js → chunk.CCY6IYFD.js} +1 -1
- package/dist/chunks/chunk.CCY6IYFD.js.map +7 -0
- package/dist/chunks/{chunk.WP3FQE65.js → chunk.CEP5JF3B.js} +2 -2
- package/dist/chunks/{chunk.4K75N3WR.js → chunk.CGHRPSUK.js} +2 -2
- package/dist/chunks/chunk.CGHRPSUK.js.map +7 -0
- package/dist/chunks/{chunk.WVVQK5TE.js → chunk.CHFWLQN5.js} +1 -1
- package/dist/chunks/chunk.CHFWLQN5.js.map +7 -0
- package/dist/chunks/{chunk.7DBSMJLB.js → chunk.CJMW4UVM.js} +15 -15
- package/dist/chunks/chunk.CJMW4UVM.js.map +7 -0
- package/dist/chunks/{chunk.Y5TMYX2L.js → chunk.CMOZ4SCN.js} +1 -1
- package/dist/chunks/chunk.CMOZ4SCN.js.map +7 -0
- package/dist/chunks/{chunk.GRVNUIP2.js → chunk.CX7IEDUW.js} +1 -1
- package/dist/chunks/chunk.CX7IEDUW.js.map +7 -0
- package/dist/chunks/{chunk.BJIZS3FU.js → chunk.D43HKTYD.js} +5 -5
- package/dist/chunks/chunk.D43HKTYD.js.map +7 -0
- package/dist/chunks/{chunk.DU3L7OGA.js → chunk.D47LGG4N.js} +5 -5
- package/dist/chunks/chunk.D47LGG4N.js.map +7 -0
- package/dist/chunks/{chunk.DZ7YIR5N.js → chunk.DAIQ5WRI.js} +1 -1
- package/dist/chunks/chunk.DAIQ5WRI.js.map +7 -0
- package/dist/chunks/{chunk.AZ3N5IOO.js → chunk.DEJAPNIZ.js} +1 -1
- package/dist/chunks/chunk.DEJAPNIZ.js.map +7 -0
- package/dist/chunks/{chunk.J2JXNOZY.js → chunk.DQVEBDUM.js} +2 -2
- package/dist/chunks/chunk.DQVEBDUM.js.map +7 -0
- package/dist/chunks/{chunk.FBQ7NUNW.js → chunk.ECNXEYTN.js} +2 -2
- package/dist/chunks/chunk.ECNXEYTN.js.map +7 -0
- package/dist/chunks/{chunk.XCNXSFFB.js → chunk.EZ722KZU.js} +2 -2
- package/dist/chunks/chunk.EZ722KZU.js.map +7 -0
- package/dist/chunks/{chunk.M7VZBJK4.js → chunk.FBYEVEZ6.js} +5 -5
- package/dist/chunks/chunk.FBYEVEZ6.js.map +7 -0
- package/dist/chunks/{chunk.YYZLHE7T.js → chunk.FKIDTC5A.js} +5 -5
- package/dist/chunks/chunk.FKIDTC5A.js.map +7 -0
- package/dist/chunks/{chunk.WBHDD3UR.js → chunk.FUYMXIMF.js} +4 -4
- package/dist/chunks/{chunk.BWTMFHNM.js → chunk.FVIRHFY6.js} +5 -3
- package/dist/chunks/{chunk.BWTMFHNM.js.map → chunk.FVIRHFY6.js.map} +2 -2
- package/dist/chunks/{chunk.NLYVOJGK.js → chunk.FXJLG622.js} +1 -1
- package/dist/chunks/chunk.FXJLG622.js.map +7 -0
- package/dist/chunks/{chunk.KCLOTN4Z.js → chunk.GEMZSFPA.js} +5 -5
- package/dist/chunks/chunk.GEMZSFPA.js.map +7 -0
- package/dist/chunks/{chunk.P3W7SDQW.js → chunk.GFD645IU.js} +5 -5
- package/dist/chunks/chunk.GFD645IU.js.map +7 -0
- package/dist/chunks/{chunk.KY52MMTX.js → chunk.GOAMFSM4.js} +10 -10
- package/dist/chunks/{chunk.XTWO6ZZW.js → chunk.GPP4D4HH.js} +1 -1
- package/dist/chunks/chunk.GPP4D4HH.js.map +7 -0
- package/dist/chunks/{chunk.FM6IAWK2.js → chunk.H5WUQAD7.js} +2 -2
- package/dist/chunks/chunk.H5WUQAD7.js.map +7 -0
- package/dist/chunks/{chunk.DY7AWH4R.js → chunk.H647D2ZB.js} +5 -5
- package/dist/chunks/chunk.H647D2ZB.js.map +7 -0
- package/dist/chunks/{chunk.UT3DWYFM.js → chunk.H6EHQYZA.js} +2 -2
- package/dist/chunks/chunk.H6EHQYZA.js.map +7 -0
- package/dist/chunks/{chunk.QU47WZOK.js → chunk.I5ABAZLK.js} +6 -6
- package/dist/chunks/chunk.I5ABAZLK.js.map +7 -0
- package/dist/chunks/{chunk.5E5HEAZN.js → chunk.IJIRSZXP.js} +2 -2
- package/dist/chunks/chunk.IJIRSZXP.js.map +7 -0
- package/dist/chunks/{chunk.7ZHTDECG.js → chunk.IQ45XDXM.js} +2 -2
- package/dist/chunks/chunk.IQ45XDXM.js.map +7 -0
- package/dist/chunks/{chunk.U5757NSE.js → chunk.J3GDDM6Q.js} +1 -1
- package/dist/chunks/chunk.J3GDDM6Q.js.map +7 -0
- package/dist/chunks/{chunk.43YNZAWL.js → chunk.JDYQ7EFG.js} +1 -1
- package/dist/chunks/chunk.JDYQ7EFG.js.map +7 -0
- package/dist/chunks/{chunk.L7GQHKZX.js → chunk.JFAN6AQH.js} +15 -15
- package/dist/chunks/chunk.JFAN6AQH.js.map +7 -0
- package/dist/chunks/{chunk.RAOPZXJL.js → chunk.JILCM7FD.js} +1 -1
- package/dist/chunks/chunk.JILCM7FD.js.map +7 -0
- package/dist/chunks/{chunk.7GJ6YOL7.js → chunk.K2HZDQMS.js} +19 -19
- package/dist/chunks/chunk.K2HZDQMS.js.map +7 -0
- package/dist/chunks/{chunk.Q6XDV7O7.js → chunk.KHRQ5VI4.js} +6 -6
- package/dist/chunks/chunk.KHRQ5VI4.js.map +7 -0
- package/dist/chunks/{chunk.BMHWOQRC.js → chunk.KIVJSZWU.js} +12 -12
- package/dist/chunks/chunk.KIVJSZWU.js.map +7 -0
- package/dist/chunks/{chunk.IAS6MLT6.js → chunk.KLL2SVR7.js} +2 -1
- package/dist/chunks/chunk.KLL2SVR7.js.map +7 -0
- package/dist/chunks/{chunk.7QGJAPLH.js → chunk.KOKPJSO2.js} +16 -16
- package/dist/chunks/{chunk.FQWBH6B3.js → chunk.KPHDBL43.js} +1 -1
- package/dist/chunks/chunk.KPHDBL43.js.map +7 -0
- package/dist/chunks/{chunk.BIXA6XPE.js → chunk.KRR2BTZW.js} +2 -2
- package/dist/chunks/{chunk.W4NRUZSV.js → chunk.KT7OGMZP.js} +4 -4
- package/dist/chunks/chunk.KT7OGMZP.js.map +7 -0
- package/dist/chunks/{chunk.I4TQPMB7.js → chunk.L3PVKJP6.js} +8 -8
- package/dist/chunks/chunk.L3PVKJP6.js.map +7 -0
- package/dist/chunks/{chunk.MPSNGSXQ.js → chunk.LFRJ623K.js} +2 -2
- package/dist/chunks/chunk.LFRJ623K.js.map +7 -0
- package/dist/chunks/{chunk.C2ENQBPM.js → chunk.LQDIH4Z5.js} +1 -1
- package/dist/chunks/chunk.LQDIH4Z5.js.map +7 -0
- package/dist/chunks/{chunk.DZSZDFCN.js → chunk.LZTCTUDK.js} +13 -13
- package/dist/chunks/chunk.LZTCTUDK.js.map +7 -0
- package/dist/chunks/{chunk.YR4NKYMG.js → chunk.MFLXKYBR.js} +13 -13
- package/dist/chunks/chunk.MFLXKYBR.js.map +7 -0
- package/dist/chunks/{chunk.YIQSTAST.js → chunk.MP5AW7KH.js} +2 -2
- package/dist/chunks/{chunk.4M4LRUZD.js → chunk.MUYFKDTO.js} +14 -8
- package/dist/chunks/chunk.MUYFKDTO.js.map +7 -0
- package/dist/chunks/{chunk.FSWTBNSI.js → chunk.N7HN275B.js} +1 -1
- package/dist/chunks/chunk.N7HN275B.js.map +7 -0
- package/dist/chunks/{chunk.34V3QOIQ.js → chunk.NMWM3BP7.js} +2 -2
- package/dist/chunks/chunk.NMWM3BP7.js.map +7 -0
- package/dist/chunks/{chunk.UOQ4AOFC.js → chunk.O6TRAUHQ.js} +2 -2
- package/dist/chunks/{chunk.O6ZH6AOI.js → chunk.OFKOVRHG.js} +1 -1
- package/dist/chunks/chunk.OFKOVRHG.js.map +7 -0
- package/dist/chunks/{chunk.K3WSJSRV.js → chunk.OUZ7W2PK.js} +2 -2
- package/dist/chunks/chunk.OUZ7W2PK.js.map +7 -0
- package/dist/chunks/{chunk.AXFQGZJC.js → chunk.OYDK7VLV.js} +24 -24
- package/dist/chunks/chunk.OYDK7VLV.js.map +7 -0
- package/dist/chunks/{chunk.JKSFECFA.js → chunk.P4JFVVSO.js} +2 -2
- package/dist/chunks/chunk.P4JFVVSO.js.map +7 -0
- package/dist/chunks/{chunk.RMIDAEF5.js → chunk.PB6IANE7.js} +1 -1
- package/dist/chunks/chunk.PB6IANE7.js.map +7 -0
- package/dist/chunks/{chunk.5ORVYCVV.js → chunk.PDY32KGV.js} +11 -11
- package/dist/chunks/chunk.PDY32KGV.js.map +7 -0
- package/dist/chunks/{chunk.XAQKFEHH.js → chunk.PHFTXPIT.js} +1 -1
- package/dist/chunks/chunk.PHFTXPIT.js.map +7 -0
- package/dist/chunks/{chunk.234ERFCE.js → chunk.PLV4PZYX.js} +1 -1
- package/dist/chunks/chunk.PLV4PZYX.js.map +7 -0
- package/dist/chunks/{chunk.QCAMWDPP.js → chunk.PN5GCUMW.js} +9 -9
- package/dist/chunks/chunk.PN5GCUMW.js.map +7 -0
- package/dist/chunks/{chunk.MU43DZ7W.js → chunk.PN64BR66.js} +1 -1
- package/dist/chunks/chunk.PN64BR66.js.map +7 -0
- package/dist/chunks/{chunk.O24WNQ4W.js → chunk.PNCX23JO.js} +11 -11
- package/dist/chunks/chunk.PNCX23JO.js.map +7 -0
- package/dist/chunks/{chunk.IZX2QAKU.js → chunk.PNEINJI2.js} +2 -2
- package/dist/chunks/chunk.PNEINJI2.js.map +7 -0
- package/dist/chunks/{chunk.G4URZQCL.js → chunk.PTRCO527.js} +1 -1
- package/dist/chunks/chunk.PTRCO527.js.map +7 -0
- package/dist/chunks/{chunk.ERWB2FQ7.js → chunk.Q2XJ7NJC.js} +12 -12
- package/dist/chunks/chunk.Q2XJ7NJC.js.map +7 -0
- package/dist/chunks/{chunk.PKYC7QF3.js → chunk.Q5EKPQBR.js} +1 -1
- package/dist/chunks/chunk.Q5EKPQBR.js.map +7 -0
- package/dist/chunks/{chunk.6EKUFYET.js → chunk.Q6HZ4JXR.js} +1 -1
- package/dist/chunks/chunk.Q6HZ4JXR.js.map +7 -0
- package/dist/chunks/{chunk.A7WDJ7EI.js → chunk.QG5SKZKD.js} +2 -2
- package/dist/chunks/chunk.QG5SKZKD.js.map +7 -0
- package/dist/chunks/{chunk.OAQRCZOO.js → chunk.QLETXF4A.js} +2 -2
- package/dist/chunks/chunk.QLETXF4A.js.map +7 -0
- package/dist/chunks/{chunk.K2Y3Q3B4.js → chunk.QRPDILBH.js} +2 -2
- package/dist/chunks/chunk.QRPDILBH.js.map +7 -0
- package/dist/chunks/{chunk.IEPQIQCD.js → chunk.QWIUHODV.js} +2 -2
- package/dist/chunks/{chunk.C4JTZKPZ.js → chunk.R3SMKUIL.js} +1 -1
- package/dist/chunks/chunk.R3SMKUIL.js.map +7 -0
- package/dist/chunks/{chunk.SIX2VPOZ.js → chunk.RBDBPRCS.js} +2 -2
- package/dist/chunks/chunk.RBDBPRCS.js.map +7 -0
- package/dist/chunks/{chunk.4VOWXLEZ.js → chunk.RH63RIHH.js} +12 -12
- package/dist/chunks/chunk.RH63RIHH.js.map +7 -0
- package/dist/chunks/{chunk.ADSEQZBF.js → chunk.RJUVM6NO.js} +1 -1
- package/dist/chunks/chunk.RJUVM6NO.js.map +7 -0
- package/dist/chunks/{chunk.WENMEQB3.js → chunk.RO6WY67Q.js} +2 -2
- package/dist/chunks/chunk.RO6WY67Q.js.map +7 -0
- package/dist/chunks/{chunk.YTEJW7IF.js → chunk.RODNHT5C.js} +2 -2
- package/dist/chunks/chunk.RODNHT5C.js.map +7 -0
- package/dist/chunks/{chunk.KOLE63RX.js → chunk.RRYH72O7.js} +2 -2
- package/dist/chunks/chunk.RRYH72O7.js.map +7 -0
- package/dist/chunks/{chunk.7GUK7OKG.js → chunk.RXBJIQCC.js} +2 -2
- package/dist/chunks/chunk.RXBJIQCC.js.map +7 -0
- package/dist/chunks/{chunk.2WOSSTKK.js → chunk.RY3ZM7MQ.js} +2 -2
- package/dist/chunks/{chunk.QZ3PTBET.js → chunk.S7JH7R5W.js} +8 -8
- package/dist/chunks/{chunk.ELWMR5SE.js → chunk.SEYPIVFM.js} +2 -2
- package/dist/chunks/chunk.SEYPIVFM.js.map +7 -0
- package/dist/chunks/{chunk.JE5Y2YD7.js → chunk.SMIMHADA.js} +1 -1
- package/dist/chunks/chunk.SMIMHADA.js.map +7 -0
- package/dist/chunks/{chunk.QUKSQV3V.js → chunk.SNYUENL4.js} +13 -13
- package/dist/chunks/chunk.SNYUENL4.js.map +7 -0
- package/dist/chunks/{chunk.6BGHUVA7.js → chunk.T23XHCUI.js} +9 -9
- package/dist/chunks/{chunk.DGU5AZZG.js → chunk.T5GCLOJ6.js} +15 -15
- package/dist/chunks/chunk.T5GCLOJ6.js.map +7 -0
- package/dist/chunks/{chunk.KTBISG3Q.js → chunk.TNT5GH3Y.js} +5 -5
- package/dist/chunks/chunk.TNT5GH3Y.js.map +7 -0
- package/dist/chunks/{chunk.D6IIQDWJ.js → chunk.TVVJTCGG.js} +1 -1
- package/dist/chunks/chunk.TVVJTCGG.js.map +7 -0
- package/dist/chunks/{chunk.5SQ7NVBX.js → chunk.UB4EPKCP.js} +1 -1
- package/dist/chunks/chunk.UB4EPKCP.js.map +7 -0
- package/dist/chunks/{chunk.V53NJJ67.js → chunk.UJRM7HDU.js} +2 -2
- package/dist/chunks/chunk.UJRM7HDU.js.map +7 -0
- package/dist/chunks/{chunk.WLWQYPRE.js → chunk.UOOCDAPN.js} +3 -3
- package/dist/chunks/{chunk.N7QJ54ZM.js → chunk.UORFJFA2.js} +1 -1
- package/dist/chunks/chunk.UORFJFA2.js.map +7 -0
- package/dist/chunks/{chunk.XRDJZQBY.js → chunk.UW35P23G.js} +2 -2
- package/dist/chunks/chunk.UW35P23G.js.map +7 -0
- package/dist/chunks/{chunk.QAKD2SMK.js → chunk.UWMO4OOX.js} +2 -2
- package/dist/chunks/{chunk.C2CWYCOU.js → chunk.V37RYGE7.js} +1 -1
- package/dist/chunks/chunk.V37RYGE7.js.map +7 -0
- package/dist/chunks/{chunk.FLJJ2OCR.js → chunk.VL3GX6WV.js} +5 -1
- package/dist/chunks/chunk.VL3GX6WV.js.map +7 -0
- package/dist/chunks/{chunk.QUM76UHV.js → chunk.VPL7U5EC.js} +1 -1
- package/dist/chunks/chunk.VPL7U5EC.js.map +7 -0
- package/dist/chunks/{chunk.JX55XGPA.js → chunk.VQ2RY6WP.js} +2 -2
- package/dist/chunks/chunk.VQ2RY6WP.js.map +7 -0
- package/dist/chunks/{chunk.WFKDRXA5.js → chunk.WHDNCE4Q.js} +9 -9
- package/dist/chunks/{chunk.YVTRDHMM.js → chunk.WNUAJF2S.js} +7 -7
- package/dist/chunks/{chunk.CUJDP53J.js → chunk.WPAX3KY7.js} +12 -12
- package/dist/chunks/chunk.WPAX3KY7.js.map +7 -0
- package/dist/chunks/{chunk.S22BO5SF.js → chunk.WRPQ3635.js} +1 -1
- package/dist/chunks/chunk.WRPQ3635.js.map +7 -0
- package/dist/chunks/{chunk.4TB35TYG.js → chunk.X323W6VB.js} +1 -1
- package/dist/chunks/chunk.X323W6VB.js.map +7 -0
- package/dist/chunks/{chunk.6EPU7YUS.js → chunk.X5NFOV5A.js} +1 -1
- package/dist/chunks/chunk.X5NFOV5A.js.map +7 -0
- package/dist/chunks/{chunk.CBQRADQA.js → chunk.X5TIKPLJ.js} +2 -2
- package/dist/chunks/chunk.X5TIKPLJ.js.map +7 -0
- package/dist/chunks/{chunk.3PGJQYXW.js → chunk.X6WKPXTG.js} +2 -2
- package/dist/chunks/chunk.X6WKPXTG.js.map +7 -0
- package/dist/chunks/{chunk.I64H5F6D.js → chunk.XGBJ2PGD.js} +5 -5
- package/dist/chunks/chunk.XGBJ2PGD.js.map +7 -0
- package/dist/chunks/{chunk.DQKV5FSY.js → chunk.XRSLCQH3.js} +1 -1
- package/dist/chunks/chunk.XRSLCQH3.js.map +7 -0
- package/dist/chunks/{chunk.PSO3VL25.js → chunk.XYTR2GHP.js} +9 -9
- package/dist/chunks/chunk.XYTR2GHP.js.map +7 -0
- package/dist/chunks/{chunk.MLILJGXQ.js → chunk.YACUYJZN.js} +2 -2
- package/dist/chunks/{chunk.EHSNF4SS.js → chunk.YITQ6NLI.js} +1 -1
- package/dist/chunks/chunk.YITQ6NLI.js.map +7 -0
- package/dist/chunks/{chunk.O644HRW3.js → chunk.YOFWLXEH.js} +1 -1
- package/dist/chunks/chunk.YOFWLXEH.js.map +7 -0
- package/dist/chunks/{chunk.K62NPKGN.js → chunk.YPYFEST2.js} +1 -1
- package/dist/chunks/chunk.YPYFEST2.js.map +7 -0
- package/dist/chunks/{chunk.KLUICBMV.js → chunk.YSKOI4OG.js} +4 -4
- package/dist/chunks/{chunk.TFBMLDBM.js → chunk.YUK555QP.js} +2 -2
- package/dist/chunks/{chunk.KUAYRSLT.js → chunk.YZMG6OGY.js} +2 -2
- package/dist/chunks/{chunk.ATRUHDOS.js → chunk.ZA7XD4RH.js} +13 -13
- package/dist/chunks/chunk.ZA7XD4RH.js.map +7 -0
- package/dist/chunks/{chunk.6OX2AX3Z.js → chunk.ZC3GXTWV.js} +1 -1
- package/dist/chunks/chunk.ZC3GXTWV.js.map +7 -0
- package/dist/chunks/{chunk.UIRABJTT.js → chunk.ZNM2KW2N.js} +2 -2
- package/dist/chunks/chunk.ZNM2KW2N.js.map +7 -0
- package/dist/chunks/{chunk.4BRJ5OJE.js → chunk.ZXEPSSXQ.js} +2 -2
- package/dist/chunks/chunk.ZXEPSSXQ.js.map +7 -0
- package/dist/components/accordion/accordion.component.js +7 -7
- package/dist/components/accordion/accordion.js +8 -8
- package/dist/components/alert/alert.component.d.ts +0 -6
- package/dist/components/alert/alert.component.js +22 -22
- package/dist/components/alert/alert.d.ts +0 -6
- package/dist/components/alert/alert.js +23 -23
- package/dist/components/alert/alert.styles.d.ts +0 -6
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.d.ts +0 -6
- package/dist/components/badge/badge.component.js +10 -10
- package/dist/components/badge/badge.d.ts +0 -6
- package/dist/components/badge/badge.js +11 -11
- package/dist/components/badge/badge.styles.d.ts +0 -6
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +0 -6
- package/dist/components/breadcrumb/breadcrumb.component.js +13 -13
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -6
- package/dist/components/breadcrumb/breadcrumb.js +14 -14
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts +0 -6
- package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +0 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +6 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +0 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.js +7 -7
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +0 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.component.d.ts +0 -6
- package/dist/components/button/button.component.js +19 -19
- package/dist/components/button/button.d.ts +0 -6
- package/dist/components/button/button.js +20 -20
- package/dist/components/button/button.styles.d.ts +0 -6
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.d.ts +0 -6
- package/dist/components/button-group/button-group.component.js +7 -7
- package/dist/components/button-group/button-group.d.ts +0 -6
- package/dist/components/button-group/button-group.js +8 -8
- package/dist/components/button-group/button-group.styles.d.ts +0 -6
- package/dist/components/button-group/button-group.styles.js +1 -1
- package/dist/components/card/card.component.d.ts +0 -6
- package/dist/components/card/card.component.js +5 -5
- package/dist/components/card/card.d.ts +0 -6
- package/dist/components/card/card.js +6 -6
- package/dist/components/card/card.styles.d.ts +0 -6
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +0 -6
- package/dist/components/checkbox/checkbox.component.js +17 -17
- package/dist/components/checkbox/checkbox.d.ts +0 -6
- package/dist/components/checkbox/checkbox.js +18 -18
- package/dist/components/checkbox/checkbox.styles.d.ts +0 -6
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/combobox/combobox.component.d.ts +125 -17
- package/dist/components/combobox/combobox.component.js +36 -30
- package/dist/components/combobox/combobox.custom.styles.js +1 -1
- package/dist/components/combobox/combobox.js +37 -31
- package/dist/components/combobox/combobox.styles.d.ts +0 -6
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/combobox/option-renderer.js +1 -1
- package/dist/components/combobox/utils.d.ts +8 -1
- package/dist/components/combobox/utils.js +3 -1
- package/dist/components/details/details.component.d.ts +0 -6
- package/dist/components/details/details.component.js +18 -18
- package/dist/components/details/details.d.ts +0 -6
- package/dist/components/details/details.js +19 -19
- package/dist/components/details/details.styles.d.ts +0 -6
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.d.ts +0 -6
- package/dist/components/dialog/dialog.component.js +24 -24
- package/dist/components/dialog/dialog.d.ts +0 -6
- package/dist/components/dialog/dialog.js +25 -25
- package/dist/components/dialog/dialog.styles.d.ts +0 -6
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/divider/divider.component.d.ts +0 -6
- package/dist/components/divider/divider.component.js +5 -5
- package/dist/components/divider/divider.d.ts +0 -6
- package/dist/components/divider/divider.js +6 -6
- package/dist/components/divider/divider.styles.d.ts +0 -6
- package/dist/components/divider/divider.styles.js +1 -1
- package/dist/components/drawer/drawer.component.d.ts +0 -6
- package/dist/components/drawer/drawer.component.js +24 -24
- package/dist/components/drawer/drawer.d.ts +0 -6
- package/dist/components/drawer/drawer.js +25 -25
- package/dist/components/drawer/drawer.styles.d.ts +0 -6
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.d.ts +0 -6
- package/dist/components/dropdown/dropdown.component.js +13 -13
- package/dist/components/dropdown/dropdown.d.ts +0 -6
- package/dist/components/dropdown/dropdown.js +14 -14
- package/dist/components/dropdown/dropdown.styles.d.ts +0 -6
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/file/file.component.js +24 -24
- package/dist/components/file/file.js +25 -25
- package/dist/components/header/header.component.js +13 -13
- package/dist/components/header/header.js +14 -14
- package/dist/components/icon/icon.component.d.ts +0 -6
- package/dist/components/icon/icon.component.js +8 -8
- package/dist/components/icon/icon.d.ts +0 -6
- package/dist/components/icon/icon.js +9 -9
- package/dist/components/icon/icon.styles.d.ts +0 -6
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.d.ts +0 -6
- package/dist/components/icon/library.default.d.ts +0 -6
- package/dist/components/icon/library.default.js +2 -2
- package/dist/components/icon/library.js +3 -3
- package/dist/components/icon/library.migration.js +4 -4
- package/dist/components/icon-button/icon-button.component.d.ts +0 -6
- package/dist/components/icon-button/icon-button.component.js +13 -13
- package/dist/components/icon-button/icon-button.d.ts +0 -6
- package/dist/components/icon-button/icon-button.js +14 -14
- package/dist/components/icon-button/icon-button.styles.d.ts +0 -6
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.component.d.ts +0 -6
- package/dist/components/input/input.component.js +21 -21
- package/dist/components/input/input.d.ts +0 -6
- package/dist/components/input/input.js +22 -22
- package/dist/components/input/input.styles.d.ts +0 -6
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/menu/menu.component.d.ts +0 -6
- package/dist/components/menu/menu.component.js +4 -4
- package/dist/components/menu/menu.d.ts +0 -6
- package/dist/components/menu/menu.js +5 -5
- package/dist/components/menu/menu.styles.d.ts +0 -6
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.d.ts +0 -6
- package/dist/components/menu-item/menu-item.component.js +18 -18
- package/dist/components/menu-item/menu-item.d.ts +0 -6
- package/dist/components/menu-item/menu-item.js +19 -19
- package/dist/components/menu-item/menu-item.styles.d.ts +0 -6
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-item/submenu-controller.d.ts +0 -6
- package/dist/components/menu-item/submenu-controller.js +2 -2
- package/dist/components/menu-label/menu-label.component.d.ts +0 -6
- package/dist/components/menu-label/menu-label.component.js +7 -7
- package/dist/components/menu-label/menu-label.d.ts +0 -6
- package/dist/components/menu-label/menu-label.js +8 -8
- package/dist/components/menu-label/menu-label.styles.d.ts +0 -6
- package/dist/components/menu-label/menu-label.styles.js +1 -1
- package/dist/components/nav-item/nav-item.component.js +12 -12
- package/dist/components/nav-item/nav-item.js +13 -13
- package/dist/components/optgroup/optgroup.component.js +7 -7
- package/dist/components/optgroup/optgroup.js +8 -8
- package/dist/components/option/option.component.d.ts +0 -6
- package/dist/components/option/option.component.js +17 -12
- package/dist/components/option/option.d.ts +0 -6
- package/dist/components/option/option.js +18 -13
- package/dist/components/option/option.styles.d.ts +0 -6
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/popup/popup.component.d.ts +0 -6
- package/dist/components/popup/popup.component.js +6 -6
- package/dist/components/popup/popup.d.ts +0 -6
- package/dist/components/popup/popup.js +7 -7
- package/dist/components/popup/popup.styles.d.ts +0 -6
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +25 -25
- package/dist/components/prio-nav/prio-nav.js +26 -26
- package/dist/components/progress-bar/progress-bar.component.d.ts +0 -6
- package/dist/components/progress-bar/progress-bar.component.js +6 -6
- package/dist/components/progress-bar/progress-bar.d.ts +0 -6
- package/dist/components/progress-bar/progress-bar.js +7 -7
- package/dist/components/progress-bar/progress-bar.styles.d.ts +0 -6
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.d.ts +0 -6
- package/dist/components/progress-ring/progress-ring.component.js +6 -6
- package/dist/components/progress-ring/progress-ring.d.ts +0 -6
- package/dist/components/progress-ring/progress-ring.js +7 -7
- package/dist/components/progress-ring/progress-ring.styles.d.ts +0 -6
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.component.d.ts +0 -6
- package/dist/components/radio/radio.component.js +13 -13
- package/dist/components/radio/radio.d.ts +0 -6
- package/dist/components/radio/radio.js +14 -14
- package/dist/components/radio/radio.styles.d.ts +0 -6
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.d.ts +0 -6
- package/dist/components/radio-button/radio-button.component.js +10 -10
- package/dist/components/radio-button/radio-button.d.ts +0 -6
- package/dist/components/radio-button/radio-button.js +11 -11
- package/dist/components/radio-button/radio-button.styles.d.ts +0 -6
- package/dist/components/radio-button/radio-button.styles.js +2 -2
- package/dist/components/radio-group/radio-group.component.d.ts +0 -6
- package/dist/components/radio-group/radio-group.component.js +13 -13
- package/dist/components/radio-group/radio-group.d.ts +0 -6
- package/dist/components/radio-group/radio-group.js +14 -14
- package/dist/components/radio-group/radio-group.styles.d.ts +0 -6
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.js +20 -20
- package/dist/components/range/range.js +21 -21
- package/dist/components/range-tick/range-tick.component.js +3 -3
- package/dist/components/range-tick/range-tick.js +4 -4
- package/dist/components/resize-observer/resize-observer.component.d.ts +0 -6
- package/dist/components/resize-observer/resize-observer.component.js +5 -5
- package/dist/components/resize-observer/resize-observer.styles.d.ts +0 -6
- package/dist/components/resize-observer/resize-observer.styles.js +1 -1
- package/dist/components/select/select.component.d.ts +0 -6
- package/dist/components/select/select.component.js +29 -29
- package/dist/components/select/select.d.ts +0 -6
- package/dist/components/select/select.js +30 -30
- package/dist/components/select/select.styles.d.ts +0 -6
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/side-nav/side-nav.component.js +28 -28
- package/dist/components/side-nav/side-nav.js +29 -29
- package/dist/components/spinner/spinner.component.d.ts +0 -6
- package/dist/components/spinner/spinner.component.js +6 -6
- package/dist/components/spinner/spinner.d.ts +0 -6
- package/dist/components/spinner/spinner.js +7 -7
- package/dist/components/spinner/spinner.styles.d.ts +0 -6
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.d.ts +0 -6
- package/dist/components/switch/switch.component.js +12 -12
- package/dist/components/switch/switch.d.ts +0 -6
- package/dist/components/switch/switch.js +13 -13
- package/dist/components/switch/switch.styles.d.ts +0 -6
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.d.ts +0 -6
- package/dist/components/tab/tab.component.js +17 -17
- package/dist/components/tab/tab.d.ts +0 -6
- package/dist/components/tab/tab.js +18 -18
- package/dist/components/tab/tab.styles.d.ts +0 -6
- package/dist/components/tab/tab.styles.js +1 -1
- package/dist/components/tab-group/tab-group.component.d.ts +0 -6
- package/dist/components/tab-group/tab-group.component.js +20 -20
- package/dist/components/tab-group/tab-group.d.ts +0 -6
- package/dist/components/tab-group/tab-group.js +21 -21
- package/dist/components/tab-group/tab-group.styles.d.ts +0 -6
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.d.ts +0 -6
- package/dist/components/tab-panel/tab-panel.component.js +5 -5
- package/dist/components/tab-panel/tab-panel.d.ts +0 -6
- package/dist/components/tab-panel/tab-panel.js +6 -6
- package/dist/components/tab-panel/tab-panel.styles.d.ts +0 -6
- package/dist/components/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/tag/tag.component.d.ts +0 -6
- package/dist/components/tag/tag.component.js +17 -17
- package/dist/components/tag/tag.d.ts +0 -6
- package/dist/components/tag/tag.js +18 -18
- package/dist/components/tag/tag.styles.d.ts +0 -6
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.d.ts +0 -6
- package/dist/components/textarea/textarea.component.js +12 -12
- package/dist/components/textarea/textarea.d.ts +0 -6
- package/dist/components/textarea/textarea.js +13 -13
- package/dist/components/textarea/textarea.styles.d.ts +0 -6
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.d.ts +0 -6
- package/dist/components/tooltip/tooltip.component.js +12 -12
- package/dist/components/tooltip/tooltip.d.ts +0 -6
- package/dist/components/tooltip/tooltip.js +13 -13
- package/dist/components/tooltip/tooltip.styles.d.ts +0 -6
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.js +24 -24
- package/dist/components/validate/validate.js +25 -25
- package/dist/custom-elements.json +288 -54
- package/dist/events/syn-after-hide.d.ts +0 -6
- package/dist/events/syn-after-show.d.ts +0 -6
- package/dist/events/syn-blur.d.ts +0 -6
- package/dist/events/syn-change.d.ts +0 -6
- package/dist/events/syn-clear.d.ts +0 -6
- package/dist/events/syn-close.d.ts +0 -6
- package/dist/events/syn-error.d.ts +0 -6
- package/dist/events/syn-focus.d.ts +0 -6
- package/dist/events/syn-hide.d.ts +0 -6
- package/dist/events/syn-initial-focus.d.ts +0 -6
- package/dist/events/syn-input.d.ts +0 -6
- package/dist/events/syn-invalid.d.ts +0 -6
- package/dist/events/syn-load.d.ts +0 -6
- package/dist/events/syn-remove.d.ts +0 -6
- package/dist/events/syn-reposition.d.ts +0 -6
- package/dist/events/syn-request-close.d.ts +0 -6
- package/dist/events/syn-resize.d.ts +0 -6
- package/dist/events/syn-select.d.ts +0 -6
- package/dist/events/syn-show.d.ts +0 -6
- package/dist/events/syn-tab-hide.d.ts +0 -6
- package/dist/events/syn-tab-show.d.ts +0 -6
- package/dist/internal/active-elements.d.ts +0 -6
- package/dist/internal/animate.d.ts +0 -6
- package/dist/internal/default-value.d.ts +0 -6
- package/dist/internal/event.d.ts +0 -6
- package/dist/internal/form.d.ts +0 -6
- package/dist/internal/modal.d.ts +0 -6
- package/dist/internal/offset.d.ts +0 -6
- package/dist/internal/scroll.d.ts +0 -6
- package/dist/internal/scrollend-polyfill.d.ts +0 -6
- package/dist/internal/slot.d.ts +0 -6
- package/dist/internal/string.d.ts +0 -6
- package/dist/internal/synergy-element.d.ts +0 -6
- package/dist/internal/tabbable.d.ts +0 -6
- package/dist/internal/test/data-testid-helpers.d.ts +0 -6
- package/dist/internal/test/element-visible-overflow.d.ts +0 -6
- package/dist/internal/test/form-control-base-tests.d.ts +0 -6
- package/dist/internal/test/wait-for-scrolling.d.ts +0 -6
- package/dist/internal/test.d.ts +0 -6
- package/dist/internal/watch.d.ts +0 -6
- package/dist/styles/component.styles.d.ts +0 -6
- package/dist/styles/form-control.styles.d.ts +0 -6
- package/dist/styles/index.css +1 -7
- package/dist/styles/utility.css +0 -6
- package/dist/synergy-autoloader.d.ts +0 -6
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy-autoloader.js.map +2 -2
- package/dist/synergy.js +172 -172
- package/dist/translations/de.d.ts +0 -6
- package/dist/translations/de.js +3 -4
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.d.ts +0 -6
- package/dist/translations/en.js +1 -1
- package/dist/utilities/animation-registry.d.ts +0 -6
- package/dist/utilities/animation-registry.js +1 -1
- package/dist/utilities/base-path.d.ts +0 -6
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/defaultSettings/base.d.ts +4 -1
- package/dist/utilities/defaultSettings/base.js +1 -1
- package/dist/utilities/defaultSettings/decorator.js +3 -3
- package/dist/utilities/defaultSettings/functions.js +2 -2
- package/dist/utilities/defaultSettings/index.js +3 -3
- package/dist/utilities/form.d.ts +0 -6
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.d.ts +0 -6
- package/dist/utilities/icon-library.js +3 -3
- package/dist/utilities/localize.d.ts +0 -6
- package/dist/utilities/localize.js +2 -2
- package/dist/vscode.html-custom-data.json +30 -7
- package/package.json +3 -8
- package/dist/chunks/chunk.234ERFCE.js.map +0 -7
- package/dist/chunks/chunk.2QDRZ3C6.js.map +0 -7
- package/dist/chunks/chunk.34V3QOIQ.js.map +0 -7
- package/dist/chunks/chunk.3NXKLKWH.js.map +0 -7
- package/dist/chunks/chunk.3PGJQYXW.js.map +0 -7
- package/dist/chunks/chunk.43YNZAWL.js.map +0 -7
- package/dist/chunks/chunk.4BRJ5OJE.js.map +0 -7
- package/dist/chunks/chunk.4K75N3WR.js.map +0 -7
- package/dist/chunks/chunk.4M4LRUZD.js.map +0 -7
- package/dist/chunks/chunk.4PUQDU4T.js.map +0 -7
- package/dist/chunks/chunk.4TB35TYG.js.map +0 -7
- package/dist/chunks/chunk.4VOWXLEZ.js.map +0 -7
- package/dist/chunks/chunk.5732DMBC.js.map +0 -7
- package/dist/chunks/chunk.5E5HEAZN.js.map +0 -7
- package/dist/chunks/chunk.5ORVYCVV.js.map +0 -7
- package/dist/chunks/chunk.5SQ7NVBX.js.map +0 -7
- package/dist/chunks/chunk.6EKUFYET.js.map +0 -7
- package/dist/chunks/chunk.6EPU7YUS.js.map +0 -7
- package/dist/chunks/chunk.6GWSQWLE.js.map +0 -7
- package/dist/chunks/chunk.6OX2AX3Z.js.map +0 -7
- package/dist/chunks/chunk.75RQ52LL.js.map +0 -7
- package/dist/chunks/chunk.7DBSMJLB.js.map +0 -7
- package/dist/chunks/chunk.7GJ6YOL7.js.map +0 -7
- package/dist/chunks/chunk.7GUK7OKG.js.map +0 -7
- package/dist/chunks/chunk.7ZHTDECG.js.map +0 -7
- package/dist/chunks/chunk.A7WDJ7EI.js.map +0 -7
- package/dist/chunks/chunk.ADSEQZBF.js.map +0 -7
- package/dist/chunks/chunk.AQITYSQX.js.map +0 -7
- package/dist/chunks/chunk.ATRUHDOS.js.map +0 -7
- package/dist/chunks/chunk.AXFQGZJC.js.map +0 -7
- package/dist/chunks/chunk.AZ3N5IOO.js.map +0 -7
- package/dist/chunks/chunk.BIJTSOZF.js +0 -43
- package/dist/chunks/chunk.BIJTSOZF.js.map +0 -7
- package/dist/chunks/chunk.BJIZS3FU.js.map +0 -7
- package/dist/chunks/chunk.BMHWOQRC.js.map +0 -7
- package/dist/chunks/chunk.BXY667C7.js.map +0 -7
- package/dist/chunks/chunk.C2CWYCOU.js.map +0 -7
- package/dist/chunks/chunk.C2ENQBPM.js.map +0 -7
- package/dist/chunks/chunk.C4JTZKPZ.js.map +0 -7
- package/dist/chunks/chunk.CBQRADQA.js.map +0 -7
- package/dist/chunks/chunk.CUJDP53J.js.map +0 -7
- package/dist/chunks/chunk.D6IIQDWJ.js.map +0 -7
- package/dist/chunks/chunk.DGU5AZZG.js.map +0 -7
- package/dist/chunks/chunk.DQKV5FSY.js.map +0 -7
- package/dist/chunks/chunk.DU3L7OGA.js.map +0 -7
- package/dist/chunks/chunk.DY7AWH4R.js.map +0 -7
- package/dist/chunks/chunk.DZ7YIR5N.js.map +0 -7
- package/dist/chunks/chunk.DZSZDFCN.js.map +0 -7
- package/dist/chunks/chunk.EHSNF4SS.js.map +0 -7
- package/dist/chunks/chunk.ELWMR5SE.js.map +0 -7
- package/dist/chunks/chunk.ERWB2FQ7.js.map +0 -7
- package/dist/chunks/chunk.FBQ7NUNW.js.map +0 -7
- package/dist/chunks/chunk.FD2CG2HT.js.map +0 -7
- package/dist/chunks/chunk.FLJJ2OCR.js.map +0 -7
- package/dist/chunks/chunk.FM6IAWK2.js.map +0 -7
- package/dist/chunks/chunk.FQWBH6B3.js.map +0 -7
- package/dist/chunks/chunk.FSWTBNSI.js.map +0 -7
- package/dist/chunks/chunk.FSZIE7IO.js.map +0 -7
- package/dist/chunks/chunk.G4URZQCL.js.map +0 -7
- package/dist/chunks/chunk.GRVNUIP2.js.map +0 -7
- package/dist/chunks/chunk.HVXG4JG6.js.map +0 -7
- package/dist/chunks/chunk.I4TQPMB7.js.map +0 -7
- package/dist/chunks/chunk.I64H5F6D.js.map +0 -7
- package/dist/chunks/chunk.IAS6MLT6.js.map +0 -7
- package/dist/chunks/chunk.IBWQFVMJ.js.map +0 -7
- package/dist/chunks/chunk.IVM3BGRH.js.map +0 -7
- package/dist/chunks/chunk.IZX2QAKU.js.map +0 -7
- package/dist/chunks/chunk.J2JXNOZY.js.map +0 -7
- package/dist/chunks/chunk.JE5Y2YD7.js.map +0 -7
- package/dist/chunks/chunk.JKSFECFA.js.map +0 -7
- package/dist/chunks/chunk.JLXCLATV.js.map +0 -7
- package/dist/chunks/chunk.JX55XGPA.js.map +0 -7
- package/dist/chunks/chunk.K2Y3Q3B4.js.map +0 -7
- package/dist/chunks/chunk.K3WSJSRV.js.map +0 -7
- package/dist/chunks/chunk.K62NPKGN.js.map +0 -7
- package/dist/chunks/chunk.KCLOTN4Z.js.map +0 -7
- package/dist/chunks/chunk.KIY5IDWY.js.map +0 -7
- package/dist/chunks/chunk.KOLE63RX.js.map +0 -7
- package/dist/chunks/chunk.KTBISG3Q.js.map +0 -7
- package/dist/chunks/chunk.KW5TWA5Y.js.map +0 -7
- package/dist/chunks/chunk.L7GQHKZX.js.map +0 -7
- package/dist/chunks/chunk.M7VZBJK4.js.map +0 -7
- package/dist/chunks/chunk.MPSNGSXQ.js.map +0 -7
- package/dist/chunks/chunk.MU43DZ7W.js.map +0 -7
- package/dist/chunks/chunk.N7QJ54ZM.js.map +0 -7
- package/dist/chunks/chunk.NLYVOJGK.js.map +0 -7
- package/dist/chunks/chunk.NVT2EKF6.js.map +0 -7
- package/dist/chunks/chunk.O24WNQ4W.js.map +0 -7
- package/dist/chunks/chunk.O644HRW3.js.map +0 -7
- package/dist/chunks/chunk.O6ZH6AOI.js.map +0 -7
- package/dist/chunks/chunk.OAQRCZOO.js.map +0 -7
- package/dist/chunks/chunk.OEOU5X7P.js.map +0 -7
- package/dist/chunks/chunk.OI3HOOCT.js.map +0 -7
- package/dist/chunks/chunk.P3W7SDQW.js.map +0 -7
- package/dist/chunks/chunk.PAM2UCZU.js.map +0 -7
- package/dist/chunks/chunk.PKYC7QF3.js.map +0 -7
- package/dist/chunks/chunk.PSO3VL25.js.map +0 -7
- package/dist/chunks/chunk.Q6XDV7O7.js.map +0 -7
- package/dist/chunks/chunk.QCAMWDPP.js.map +0 -7
- package/dist/chunks/chunk.QS53GZR4.js.map +0 -7
- package/dist/chunks/chunk.QU47WZOK.js.map +0 -7
- package/dist/chunks/chunk.QUKSQV3V.js.map +0 -7
- package/dist/chunks/chunk.QUM76UHV.js.map +0 -7
- package/dist/chunks/chunk.QWHBUNGK.js.map +0 -7
- package/dist/chunks/chunk.RAOPZXJL.js.map +0 -7
- package/dist/chunks/chunk.RMIDAEF5.js.map +0 -7
- package/dist/chunks/chunk.S22BO5SF.js.map +0 -7
- package/dist/chunks/chunk.SIX2VPOZ.js.map +0 -7
- package/dist/chunks/chunk.SM4ANWX6.js.map +0 -7
- package/dist/chunks/chunk.U5757NSE.js.map +0 -7
- package/dist/chunks/chunk.U7O7432Y.js.map +0 -7
- package/dist/chunks/chunk.UIRABJTT.js.map +0 -7
- package/dist/chunks/chunk.UT3DWYFM.js.map +0 -7
- package/dist/chunks/chunk.V53NJJ67.js.map +0 -7
- package/dist/chunks/chunk.VA26EAEP.js.map +0 -7
- package/dist/chunks/chunk.VGI7V7OS.js.map +0 -7
- package/dist/chunks/chunk.VXC77KXR.js.map +0 -7
- package/dist/chunks/chunk.W4NRUZSV.js.map +0 -7
- package/dist/chunks/chunk.W66D3Q4F.js.map +0 -7
- package/dist/chunks/chunk.WENMEQB3.js.map +0 -7
- package/dist/chunks/chunk.WVVQK5TE.js.map +0 -7
- package/dist/chunks/chunk.X7XPEYAM.js.map +0 -7
- package/dist/chunks/chunk.XAQKFEHH.js.map +0 -7
- package/dist/chunks/chunk.XCNXSFFB.js.map +0 -7
- package/dist/chunks/chunk.XRDJZQBY.js.map +0 -7
- package/dist/chunks/chunk.XTWO6ZZW.js.map +0 -7
- package/dist/chunks/chunk.Y5TMYX2L.js.map +0 -7
- package/dist/chunks/chunk.YARPBFC7.js.map +0 -7
- package/dist/chunks/chunk.YR4NKYMG.js.map +0 -7
- package/dist/chunks/chunk.YTEJW7IF.js.map +0 -7
- package/dist/chunks/chunk.YYZLHE7T.js.map +0 -7
- package/dist/chunks/chunk.ZBW4ZSZ7.js.map +0 -7
- package/dist/chunks/chunk.ZJHL23CU.js.map +0 -7
- /package/dist/chunks/{chunk.3PWAIWL5.js.map → chunk.2J5ARXAO.js.map} +0 -0
- /package/dist/chunks/{chunk.BIRYJHTO.js.map → chunk.3GSHQV5Q.js.map} +0 -0
- /package/dist/chunks/{chunk.6WFPHCIK.js.map → chunk.6EHOI2BO.js.map} +0 -0
- /package/dist/chunks/{chunk.OAIHDW7S.js.map → chunk.6PRXWBZE.js.map} +0 -0
- /package/dist/chunks/{chunk.KY3YPRYR.js.map → chunk.7G6N24FO.js.map} +0 -0
- /package/dist/chunks/{chunk.RATZ2RGX.js.map → chunk.BJVWQ3LR.js.map} +0 -0
- /package/dist/chunks/{chunk.WP3FQE65.js.map → chunk.CEP5JF3B.js.map} +0 -0
- /package/dist/chunks/{chunk.WBHDD3UR.js.map → chunk.FUYMXIMF.js.map} +0 -0
- /package/dist/chunks/{chunk.KY52MMTX.js.map → chunk.GOAMFSM4.js.map} +0 -0
- /package/dist/chunks/{chunk.7QGJAPLH.js.map → chunk.KOKPJSO2.js.map} +0 -0
- /package/dist/chunks/{chunk.BIXA6XPE.js.map → chunk.KRR2BTZW.js.map} +0 -0
- /package/dist/chunks/{chunk.YIQSTAST.js.map → chunk.MP5AW7KH.js.map} +0 -0
- /package/dist/chunks/{chunk.UOQ4AOFC.js.map → chunk.O6TRAUHQ.js.map} +0 -0
- /package/dist/chunks/{chunk.IEPQIQCD.js.map → chunk.QWIUHODV.js.map} +0 -0
- /package/dist/chunks/{chunk.2WOSSTKK.js.map → chunk.RY3ZM7MQ.js.map} +0 -0
- /package/dist/chunks/{chunk.QZ3PTBET.js.map → chunk.S7JH7R5W.js.map} +0 -0
- /package/dist/chunks/{chunk.6BGHUVA7.js.map → chunk.T23XHCUI.js.map} +0 -0
- /package/dist/chunks/{chunk.WLWQYPRE.js.map → chunk.UOOCDAPN.js.map} +0 -0
- /package/dist/chunks/{chunk.QAKD2SMK.js.map → chunk.UWMO4OOX.js.map} +0 -0
- /package/dist/chunks/{chunk.WFKDRXA5.js.map → chunk.WHDNCE4Q.js.map} +0 -0
- /package/dist/chunks/{chunk.YVTRDHMM.js.map → chunk.WNUAJF2S.js.map} +0 -0
- /package/dist/chunks/{chunk.MLILJGXQ.js.map → chunk.YACUYJZN.js.map} +0 -0
- /package/dist/chunks/{chunk.KLUICBMV.js.map → chunk.YSKOI4OG.js.map} +0 -0
- /package/dist/chunks/{chunk.TFBMLDBM.js.map → chunk.YUK555QP.js.map} +0 -0
- /package/dist/chunks/{chunk.KUAYRSLT.js.map → chunk.YZMG6OGY.js.map} +0 -0
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynTag
|
|
3
|
+
} from "./chunk.5QYKBLQ4.js";
|
|
4
|
+
import {
|
|
5
|
+
compareValues,
|
|
6
|
+
isAllowedValue
|
|
7
|
+
} from "./chunk.VECCQZP5.js";
|
|
1
8
|
import {
|
|
2
9
|
SynOption
|
|
3
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.MUYFKDTO.js";
|
|
4
11
|
import {
|
|
5
12
|
SynPopup
|
|
6
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.GFD645IU.js";
|
|
7
14
|
import {
|
|
8
15
|
defaultOptionRenderer
|
|
9
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.KLL2SVR7.js";
|
|
10
17
|
import {
|
|
11
18
|
checkValueBelongsToOption,
|
|
12
19
|
createOptionFromDifferentTypes,
|
|
@@ -14,59 +21,57 @@ import {
|
|
|
14
21
|
getAllOptions,
|
|
15
22
|
getAssignedElementsForSlot,
|
|
16
23
|
getValueFromOption,
|
|
24
|
+
getValuesFromOptions,
|
|
17
25
|
normalizeString
|
|
18
|
-
} from "./chunk.
|
|
26
|
+
} from "./chunk.FVIRHFY6.js";
|
|
19
27
|
import {
|
|
20
28
|
scrollIntoView
|
|
21
|
-
} from "./chunk.
|
|
22
|
-
import {
|
|
23
|
-
defaultValue
|
|
24
|
-
} from "./chunk.3NXKLKWH.js";
|
|
29
|
+
} from "./chunk.2DT3C6WE.js";
|
|
25
30
|
import {
|
|
26
31
|
form_control_custom_styles_default,
|
|
27
32
|
form_control_styles_default
|
|
28
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.PTRCO527.js";
|
|
29
34
|
import {
|
|
30
35
|
combobox_custom_styles_default
|
|
31
|
-
} from "./chunk.
|
|
36
|
+
} from "./chunk.2IL4PA6Q.js";
|
|
32
37
|
import {
|
|
33
38
|
combobox_styles_default
|
|
34
|
-
} from "./chunk.
|
|
39
|
+
} from "./chunk.6AT5JL7A.js";
|
|
35
40
|
import {
|
|
36
41
|
FormControlController
|
|
37
|
-
} from "./chunk.
|
|
42
|
+
} from "./chunk.J3GDDM6Q.js";
|
|
38
43
|
import {
|
|
39
44
|
waitForEvent
|
|
40
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.LQDIH4Z5.js";
|
|
41
46
|
import {
|
|
42
47
|
animateTo,
|
|
43
48
|
stopAnimations
|
|
44
|
-
} from "./chunk.
|
|
49
|
+
} from "./chunk.Q6HZ4JXR.js";
|
|
45
50
|
import {
|
|
46
51
|
getAnimation,
|
|
47
52
|
setDefaultAnimation
|
|
48
|
-
} from "./chunk.
|
|
53
|
+
} from "./chunk.RJUVM6NO.js";
|
|
49
54
|
import {
|
|
50
55
|
HasSlotController
|
|
51
|
-
} from "./chunk.
|
|
56
|
+
} from "./chunk.CHFWLQN5.js";
|
|
52
57
|
import {
|
|
53
58
|
SynIcon
|
|
54
|
-
} from "./chunk.
|
|
59
|
+
} from "./chunk.KHRQ5VI4.js";
|
|
60
|
+
import {
|
|
61
|
+
watch
|
|
62
|
+
} from "./chunk.SMIMHADA.js";
|
|
55
63
|
import {
|
|
56
64
|
LocalizeController
|
|
57
|
-
} from "./chunk.
|
|
65
|
+
} from "./chunk.QLETXF4A.js";
|
|
58
66
|
import {
|
|
59
67
|
enableDefaultSettings
|
|
60
|
-
} from "./chunk.
|
|
61
|
-
import {
|
|
62
|
-
watch
|
|
63
|
-
} from "./chunk.JE5Y2YD7.js";
|
|
68
|
+
} from "./chunk.YACUYJZN.js";
|
|
64
69
|
import {
|
|
65
70
|
component_styles_default
|
|
66
|
-
} from "./chunk.
|
|
71
|
+
} from "./chunk.FXJLG622.js";
|
|
67
72
|
import {
|
|
68
73
|
SynergyElement
|
|
69
|
-
} from "./chunk.
|
|
74
|
+
} from "./chunk.ECNXEYTN.js";
|
|
70
75
|
import {
|
|
71
76
|
__decorateClass
|
|
72
77
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -75,6 +80,7 @@ import {
|
|
|
75
80
|
import { classMap } from "lit/directives/class-map.js";
|
|
76
81
|
import { html } from "lit";
|
|
77
82
|
import { property, query, state } from "lit/decorators.js";
|
|
83
|
+
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
78
84
|
var SynCombobox = class extends SynergyElement {
|
|
79
85
|
constructor() {
|
|
80
86
|
super(...arguments);
|
|
@@ -83,15 +89,27 @@ var SynCombobox = class extends SynergyElement {
|
|
|
83
89
|
});
|
|
84
90
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
85
91
|
this.localize = new LocalizeController(this);
|
|
86
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Cache of the last syn-options that were selected by user interaction (click or keyboard navigation).
|
|
94
|
+
* Used to track user selections and maintain selection state during value changes.
|
|
95
|
+
*/
|
|
96
|
+
this.lastOptions = [];
|
|
87
97
|
this.isInitialized = false;
|
|
98
|
+
/**
|
|
99
|
+
* Flag to prevent infinite loops when the option renderer programmatically updates options.
|
|
100
|
+
* Set to true during option rendering to ignore slot change events triggered by our own updates.
|
|
101
|
+
*/
|
|
102
|
+
this.isOptionRendererTriggered = false;
|
|
88
103
|
this.hasFocus = false;
|
|
89
104
|
this.isUserInput = false;
|
|
90
105
|
this.displayLabel = "";
|
|
106
|
+
this.selectedOptions = [];
|
|
91
107
|
this.numberFilteredOptions = 0;
|
|
92
108
|
this.cachedOptions = [];
|
|
109
|
+
this.valueHasChanged = false;
|
|
110
|
+
this.hideOptions = false;
|
|
93
111
|
this.name = "";
|
|
94
|
-
this.
|
|
112
|
+
this._value = "";
|
|
95
113
|
this.defaultValue = "";
|
|
96
114
|
this.size = "medium";
|
|
97
115
|
this.placeholder = "";
|
|
@@ -104,8 +122,10 @@ var SynCombobox = class extends SynergyElement {
|
|
|
104
122
|
this.form = "";
|
|
105
123
|
this.required = false;
|
|
106
124
|
this.restricted = false;
|
|
125
|
+
this.multiple = false;
|
|
107
126
|
this.getOption = defaultOptionRenderer;
|
|
108
127
|
this.filter = (option, queryStr) => {
|
|
128
|
+
var _a;
|
|
109
129
|
let content = (option == null ? void 0 : option.textContent) || "";
|
|
110
130
|
if (option instanceof SynOption) {
|
|
111
131
|
content = option.getTextLabel();
|
|
@@ -115,7 +135,33 @@ var SynCombobox = class extends SynergyElement {
|
|
|
115
135
|
if (normalizedOption.includes(normalizedQuery)) {
|
|
116
136
|
return true;
|
|
117
137
|
}
|
|
118
|
-
return (option == null ? void 0 : option.value) === queryStr;
|
|
138
|
+
return ((_a = option == null ? void 0 : option.value) == null ? void 0 : _a.toString()) === queryStr;
|
|
139
|
+
};
|
|
140
|
+
this.delimiter = " ";
|
|
141
|
+
this.maxOptionsVisible = 3;
|
|
142
|
+
this.getTag = (option) => html`
|
|
143
|
+
<syn-tag
|
|
144
|
+
part="tag"
|
|
145
|
+
exportparts="
|
|
146
|
+
base:tag__base,
|
|
147
|
+
content:tag__content,
|
|
148
|
+
remove-button:tag__remove-button,
|
|
149
|
+
remove-button__base:tag__remove-button__base
|
|
150
|
+
"
|
|
151
|
+
size=${this.size}
|
|
152
|
+
removable
|
|
153
|
+
@syn-remove=${(event) => this.handleTagRemove(event, option)}
|
|
154
|
+
>
|
|
155
|
+
${option.getTextLabel()}
|
|
156
|
+
</syn-tag>
|
|
157
|
+
`;
|
|
158
|
+
this.calculateTagMaxWidth = (entries) => {
|
|
159
|
+
const input = entries.at(0);
|
|
160
|
+
if (!input || !this.tagContainer) return;
|
|
161
|
+
const inputWidth = input.contentRect.width;
|
|
162
|
+
const tagsWidth = this.tagContainer.getBoundingClientRect().width;
|
|
163
|
+
const availableTagSpace = Math.max(85, tagsWidth + inputWidth - 48);
|
|
164
|
+
this.tagContainer.style.setProperty("--syn-select-tag-max-width", `${availableTagSpace}px`);
|
|
119
165
|
};
|
|
120
166
|
this.handleDocumentFocusIn = (event) => {
|
|
121
167
|
const path = event.composedPath();
|
|
@@ -138,7 +184,11 @@ var SynCombobox = class extends SynergyElement {
|
|
|
138
184
|
this.hide();
|
|
139
185
|
this.displayInput.focus({ preventScroll: true });
|
|
140
186
|
} else if (!this.open) {
|
|
141
|
-
this.
|
|
187
|
+
if (this.multiple) {
|
|
188
|
+
this.clearInputField();
|
|
189
|
+
} else {
|
|
190
|
+
this.clearCombobox();
|
|
191
|
+
}
|
|
142
192
|
}
|
|
143
193
|
}
|
|
144
194
|
if (event.key === "Enter") {
|
|
@@ -156,17 +206,29 @@ var SynCombobox = class extends SynergyElement {
|
|
|
156
206
|
return;
|
|
157
207
|
}
|
|
158
208
|
if (currentOption) {
|
|
159
|
-
|
|
160
|
-
this.
|
|
161
|
-
|
|
162
|
-
|
|
209
|
+
this.isUserInput = true;
|
|
210
|
+
this.valueHasChanged = true;
|
|
211
|
+
const oldValue = this.lastOptions ? getValuesFromOptions(this.lastOptions) : [];
|
|
212
|
+
if (this.multiple) {
|
|
213
|
+
this.toggleOptionSelection(currentOption);
|
|
214
|
+
} else {
|
|
215
|
+
this.setSelectedOptions(currentOption);
|
|
216
|
+
}
|
|
217
|
+
this.selectionChanged();
|
|
218
|
+
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
219
|
+
this.updateComplete.then(() => {
|
|
220
|
+
this.isUserInput = false;
|
|
221
|
+
});
|
|
222
|
+
if (!compareValues(oldValue, value)) {
|
|
163
223
|
this.updateComplete.then(() => {
|
|
164
224
|
this.emit("syn-input");
|
|
165
225
|
this.emit("syn-change");
|
|
166
226
|
});
|
|
167
227
|
}
|
|
168
228
|
}
|
|
169
|
-
this.
|
|
229
|
+
if (!this.multiple) {
|
|
230
|
+
this.hide();
|
|
231
|
+
}
|
|
170
232
|
this.displayInput.focus({ preventScroll: true });
|
|
171
233
|
return;
|
|
172
234
|
}
|
|
@@ -185,8 +247,8 @@ var SynCombobox = class extends SynergyElement {
|
|
|
185
247
|
this.displayInput.setSelectionRange(0, 0);
|
|
186
248
|
} else if (event.key === "End") {
|
|
187
249
|
this.displayInput.setSelectionRange(
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
250
|
+
this.displayLabel.length,
|
|
251
|
+
this.displayLabel.length
|
|
190
252
|
);
|
|
191
253
|
}
|
|
192
254
|
}
|
|
@@ -199,6 +261,23 @@ var SynCombobox = class extends SynergyElement {
|
|
|
199
261
|
}
|
|
200
262
|
};
|
|
201
263
|
}
|
|
264
|
+
get value() {
|
|
265
|
+
return this._value;
|
|
266
|
+
}
|
|
267
|
+
set value(val) {
|
|
268
|
+
if (this.multiple) {
|
|
269
|
+
if (!Array.isArray(val)) {
|
|
270
|
+
val = typeof val === "string" ? val.split(this.delimiter) : [val].filter(isAllowedValue);
|
|
271
|
+
}
|
|
272
|
+
} else {
|
|
273
|
+
val = Array.isArray(val) ? val.join(this.delimiter) : val;
|
|
274
|
+
}
|
|
275
|
+
if (compareValues(this._value, val)) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
this.valueHasChanged = true;
|
|
279
|
+
this._value = val;
|
|
280
|
+
}
|
|
202
281
|
/** Gets the validity state object */
|
|
203
282
|
get validity() {
|
|
204
283
|
return this.valueInput.validity;
|
|
@@ -207,24 +286,109 @@ var SynCombobox = class extends SynergyElement {
|
|
|
207
286
|
get validationMessage() {
|
|
208
287
|
return this.valueInput.validationMessage;
|
|
209
288
|
}
|
|
289
|
+
enableResizeObserver() {
|
|
290
|
+
if (!this.multiple) return;
|
|
291
|
+
if (!this.resizeObserver) {
|
|
292
|
+
this.resizeObserver = new ResizeObserver(this.calculateTagMaxWidth);
|
|
293
|
+
}
|
|
294
|
+
this.resizeObserver.observe(this.displayInput);
|
|
295
|
+
}
|
|
210
296
|
connectedCallback() {
|
|
211
297
|
super.connectedCallback();
|
|
298
|
+
this.mutationObserver = new MutationObserver((entries) => {
|
|
299
|
+
const hasRelevantValueChange = entries.some((entry) => {
|
|
300
|
+
if (!(entry.target instanceof SynOption)) {
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
if (entry.type !== "attributes" || entry.attributeName !== "value") {
|
|
304
|
+
return false;
|
|
305
|
+
}
|
|
306
|
+
const currentValue = entry.target.getAttribute("value");
|
|
307
|
+
return entry.oldValue !== currentValue && !!currentValue;
|
|
308
|
+
});
|
|
309
|
+
if (hasRelevantValueChange) {
|
|
310
|
+
this.handleSlotContentChange();
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
this.mutationObserver.observe(this, {
|
|
314
|
+
attributeFilter: ["value"],
|
|
315
|
+
attributeOldValue: true,
|
|
316
|
+
attributes: true,
|
|
317
|
+
childList: true,
|
|
318
|
+
subtree: true
|
|
319
|
+
});
|
|
320
|
+
setTimeout(() => {
|
|
321
|
+
this.handleSlotContentChange();
|
|
322
|
+
});
|
|
212
323
|
this.open = false;
|
|
213
324
|
}
|
|
325
|
+
disconnectedCallback() {
|
|
326
|
+
var _a, _b;
|
|
327
|
+
super.disconnectedCallback();
|
|
328
|
+
(_a = this.resizeObserver) == null ? void 0 : _a.disconnect();
|
|
329
|
+
(_b = this.mutationObserver) == null ? void 0 : _b.disconnect();
|
|
330
|
+
this.removeOpenListeners();
|
|
331
|
+
}
|
|
214
332
|
firstUpdated() {
|
|
215
333
|
this.isInitialized = true;
|
|
216
334
|
this.formControlController.updateValidity();
|
|
217
335
|
}
|
|
336
|
+
updated(changedProperties) {
|
|
337
|
+
var _a;
|
|
338
|
+
super.updated(changedProperties);
|
|
339
|
+
if (changedProperties.has("multiple")) {
|
|
340
|
+
if (!this.multiple) {
|
|
341
|
+
(_a = this.resizeObserver) == null ? void 0 : _a.disconnect();
|
|
342
|
+
} else {
|
|
343
|
+
this.enableResizeObserver();
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
// eslint-disable-next-line complexity
|
|
218
348
|
willUpdate(changedProperties) {
|
|
219
349
|
super.willUpdate(changedProperties);
|
|
220
|
-
|
|
221
|
-
|
|
350
|
+
const isDefaultValueEmpty = this.defaultValue == null || this.defaultValue === "" || Array.isArray(this.defaultValue) && this.defaultValue.length === 0;
|
|
351
|
+
if (changedProperties.has("value") && isDefaultValueEmpty && this.value && !this.isUserInput) {
|
|
352
|
+
if (this.multiple && Array.isArray(this.value)) {
|
|
353
|
+
this.defaultValue = this.value.join(this.delimiter);
|
|
354
|
+
} else {
|
|
355
|
+
this.defaultValue = this.value;
|
|
356
|
+
}
|
|
357
|
+
this.valueHasChanged = false;
|
|
358
|
+
}
|
|
359
|
+
if (!this.isInitialized && changedProperties.has("value") && this.value !== void 0 && changedProperties.has("multiple") && this.multiple) {
|
|
360
|
+
if (!Array.isArray(this.defaultValue)) {
|
|
361
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
362
|
+
this.value = typeof this.defaultValue === "string" ? this.defaultValue.split(this.delimiter) : [this.defaultValue].filter(isAllowedValue);
|
|
363
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
364
|
+
}
|
|
222
365
|
}
|
|
223
366
|
}
|
|
367
|
+
attributeChangedCallback(name, oldVal, newVal) {
|
|
368
|
+
super.attributeChangedCallback(name, oldVal, newVal);
|
|
369
|
+
if (name === "value") {
|
|
370
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
371
|
+
this.value = this.defaultValue;
|
|
372
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
get tags() {
|
|
376
|
+
return this.selectedOptions.map((option, index) => {
|
|
377
|
+
if (index < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
|
|
378
|
+
const tag = this.getTag(option, index);
|
|
379
|
+
return html`<div @syn-remove=${(e) => this.handleTagRemove(e, option)}>
|
|
380
|
+
${typeof tag === "string" ? unsafeHTML(tag) : tag}
|
|
381
|
+
</div>`;
|
|
382
|
+
}
|
|
383
|
+
if (index === this.maxOptionsVisible) {
|
|
384
|
+
return html`<syn-tag size=${this.size}>+${this.selectedOptions.length - index}</syn-tag>`;
|
|
385
|
+
}
|
|
386
|
+
return html``;
|
|
387
|
+
});
|
|
388
|
+
}
|
|
224
389
|
addOpenListeners() {
|
|
225
390
|
var _a;
|
|
226
391
|
document.addEventListener("focusin", this.handleDocumentFocusIn);
|
|
227
|
-
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
228
392
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
229
393
|
if (this.getRootNode() !== document) {
|
|
230
394
|
this.getRootNode().addEventListener("focusin", this.handleDocumentFocusIn);
|
|
@@ -243,7 +407,6 @@ var SynCombobox = class extends SynergyElement {
|
|
|
243
407
|
removeOpenListeners() {
|
|
244
408
|
var _a;
|
|
245
409
|
document.removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
246
|
-
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
247
410
|
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
248
411
|
if (this.getRootNode() !== document) {
|
|
249
412
|
this.getRootNode().removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
@@ -261,8 +424,22 @@ var SynCombobox = class extends SynergyElement {
|
|
|
261
424
|
handleLabelClick() {
|
|
262
425
|
this.displayInput.focus();
|
|
263
426
|
}
|
|
427
|
+
handleTagRemove(event, option) {
|
|
428
|
+
event.stopPropagation();
|
|
429
|
+
this.valueHasChanged = true;
|
|
430
|
+
if (!this.disabled) {
|
|
431
|
+
this.toggleOptionSelection(option, false);
|
|
432
|
+
this.selectionChanged();
|
|
433
|
+
this.updateComplete.then(() => {
|
|
434
|
+
this.emit("syn-input");
|
|
435
|
+
this.emit("syn-change");
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}
|
|
264
439
|
handleComboboxMouseDown(event) {
|
|
265
|
-
|
|
440
|
+
const path = event.composedPath();
|
|
441
|
+
const isIconButton = path.some((el) => el instanceof Element && el.tagName.toLowerCase() === "syn-icon-button");
|
|
442
|
+
if (this.disabled || isIconButton) {
|
|
266
443
|
return;
|
|
267
444
|
}
|
|
268
445
|
const toggleListboxOpen = () => this.open ? this.hide() : this.show();
|
|
@@ -281,14 +458,26 @@ var SynCombobox = class extends SynergyElement {
|
|
|
281
458
|
event.stopPropagation();
|
|
282
459
|
this.clearCombobox();
|
|
283
460
|
}
|
|
461
|
+
clearInputField() {
|
|
462
|
+
if (this.displayLabel !== "") {
|
|
463
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
464
|
+
this.value = getValuesFromOptions(this.selectedOptions);
|
|
465
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
466
|
+
this.displayInput.focus({ preventScroll: true });
|
|
467
|
+
this.updateComplete.then(() => {
|
|
468
|
+
this.emit("syn-input");
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}
|
|
284
472
|
clearCombobox() {
|
|
473
|
+
this.valueHasChanged = true;
|
|
285
474
|
if (this.value !== "") {
|
|
286
475
|
this.value = "";
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
476
|
+
this.displayLabel = "";
|
|
477
|
+
this.lastOptions = [];
|
|
478
|
+
this.setSelectedOptions([]);
|
|
479
|
+
this.selectionChanged();
|
|
290
480
|
this.displayInput.focus({ preventScroll: true });
|
|
291
|
-
this.setSelectedOptionToSelected();
|
|
292
481
|
this.updateComplete.then(() => {
|
|
293
482
|
this.emit("syn-clear");
|
|
294
483
|
this.emit("syn-input");
|
|
@@ -305,19 +494,31 @@ var SynCombobox = class extends SynergyElement {
|
|
|
305
494
|
handleOptionClick(event) {
|
|
306
495
|
const target = event.target;
|
|
307
496
|
const option = target.closest("syn-option");
|
|
308
|
-
const oldValue = this.
|
|
497
|
+
const oldValue = this.lastOptions ? getValuesFromOptions(this.lastOptions) : [];
|
|
309
498
|
if (option && !option.disabled) {
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
if (this.
|
|
313
|
-
this.
|
|
499
|
+
this.isUserInput = true;
|
|
500
|
+
this.valueHasChanged = true;
|
|
501
|
+
if (this.multiple) {
|
|
502
|
+
this.toggleOptionSelection(option);
|
|
503
|
+
} else {
|
|
504
|
+
this.setSelectedOptions(option);
|
|
505
|
+
}
|
|
506
|
+
this.selectionChanged();
|
|
507
|
+
this.updateComplete.then(() => {
|
|
508
|
+
this.displayInput.focus({ preventScroll: true });
|
|
509
|
+
this.isUserInput = false;
|
|
510
|
+
});
|
|
511
|
+
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
512
|
+
if (!compareValues(oldValue, value)) {
|
|
314
513
|
this.updateComplete.then(() => {
|
|
315
514
|
this.emit("syn-input");
|
|
316
515
|
this.emit("syn-change");
|
|
317
516
|
});
|
|
318
517
|
}
|
|
319
|
-
this.
|
|
320
|
-
|
|
518
|
+
if (!this.multiple) {
|
|
519
|
+
this.hide();
|
|
520
|
+
this.displayInput.focus({ preventScroll: true });
|
|
521
|
+
}
|
|
321
522
|
}
|
|
322
523
|
}
|
|
323
524
|
/* eslint-enable @typescript-eslint/no-floating-promises */
|
|
@@ -345,6 +546,37 @@ var SynCombobox = class extends SynergyElement {
|
|
|
345
546
|
this.setCurrentOption(filteredOptions[newIndex]);
|
|
346
547
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
347
548
|
}
|
|
549
|
+
// Toggles an option's selected state
|
|
550
|
+
// eslint-disable-next-line class-methods-use-this
|
|
551
|
+
toggleOptionSelection(option, force) {
|
|
552
|
+
if (force === true || force === false) {
|
|
553
|
+
option.selected = force;
|
|
554
|
+
} else {
|
|
555
|
+
option.selected = !option.selected;
|
|
556
|
+
}
|
|
557
|
+
const cachedOption = this.cachedOptions.find((opt) => opt.id === option.id);
|
|
558
|
+
if (cachedOption) {
|
|
559
|
+
cachedOption.selected = option.selected;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
// Sets the selected option(s)
|
|
563
|
+
setSelectedOptions(option) {
|
|
564
|
+
const newSelectedOptions = Array.isArray(option) ? option : [option];
|
|
565
|
+
if (!this.multiple && newSelectedOptions.length > 1) {
|
|
566
|
+
newSelectedOptions.splice(1);
|
|
567
|
+
}
|
|
568
|
+
const slottedOptions = this.getSlottedOptions();
|
|
569
|
+
slottedOptions.forEach((opt) => {
|
|
570
|
+
opt.selected = newSelectedOptions.some(
|
|
571
|
+
(selectedOpt) => selectedOpt.id === opt.id
|
|
572
|
+
);
|
|
573
|
+
});
|
|
574
|
+
this.cachedOptions.forEach((opt) => {
|
|
575
|
+
opt.selected = newSelectedOptions.some(
|
|
576
|
+
(selectedOpt) => selectedOpt.id === opt.id
|
|
577
|
+
);
|
|
578
|
+
});
|
|
579
|
+
}
|
|
348
580
|
getAllFilteredOptions() {
|
|
349
581
|
return this.getSlottedOptions().filter((option) => !option.hidden);
|
|
350
582
|
}
|
|
@@ -367,41 +599,67 @@ var SynCombobox = class extends SynergyElement {
|
|
|
367
599
|
}
|
|
368
600
|
}
|
|
369
601
|
/**
|
|
370
|
-
* Updates the
|
|
602
|
+
* Updates the component state after selection changes.
|
|
603
|
+
*
|
|
604
|
+
* This method synchronizes:
|
|
605
|
+
* 1. The selectedOptions cache with currently selected options
|
|
606
|
+
* 2. The component's value property (string or array)
|
|
607
|
+
* 3. The display label shown in the input
|
|
608
|
+
* 4. Form validation state
|
|
609
|
+
*
|
|
610
|
+
* **Validation Logic:**
|
|
611
|
+
* - In restricted mode, invalid values trigger a reset to last valid state
|
|
612
|
+
* - Multiple mode requires all values to correspond to existing options
|
|
613
|
+
* - Single mode allows free text input when not restricted
|
|
371
614
|
*/
|
|
372
615
|
// eslint-disable-next-line complexity
|
|
373
|
-
|
|
374
|
-
|
|
616
|
+
selectionChanged() {
|
|
617
|
+
const options = this.getSlottedOptions();
|
|
618
|
+
this.selectedOptions = options.filter((opt) => opt.selected);
|
|
619
|
+
if (this.selectedOptions.length === 0) {
|
|
620
|
+
this.displayLabel = Array.isArray(this.value) ? this.value.join(", ") : String(this.value);
|
|
621
|
+
}
|
|
375
622
|
let optionValue;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
623
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
624
|
+
if (this.multiple) {
|
|
625
|
+
this.value = this.selectedOptions.map((opt) => getValueFromOption(opt));
|
|
626
|
+
if (this.value.length === 0 && this.selectedOptions.length !== 0) {
|
|
627
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
628
|
+
this.resetToLastValidValue();
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
631
|
+
} else {
|
|
632
|
+
if (this.selectedOptions.length !== 0) {
|
|
633
|
+
optionValue = getValueFromOption(this.selectedOptions[0]);
|
|
634
|
+
} else if (this.restricted && !this.isValidValue(this.displayLabel) && this.displayLabel !== "" && !this.isUserInput) {
|
|
635
|
+
this.resetToLastValidValue();
|
|
636
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
637
|
+
return;
|
|
638
|
+
}
|
|
639
|
+
this.value = optionValue != null ? optionValue : this.displayLabel;
|
|
382
640
|
}
|
|
383
|
-
this.
|
|
641
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
642
|
+
this.lastOptions = [...this.selectedOptions];
|
|
384
643
|
this.updateComplete.then(() => {
|
|
385
644
|
var _a, _b;
|
|
386
|
-
this.displayLabel = (_b = (_a = this.
|
|
645
|
+
this.displayLabel = this.multiple ? "" : (_b = (_a = this.selectedOptions[0]) == null ? void 0 : _a.getTextLabel()) != null ? _b : this.displayLabel;
|
|
387
646
|
this.formControlController.updateValidity();
|
|
388
647
|
});
|
|
389
648
|
}
|
|
390
|
-
setSelectedOptionToSelected() {
|
|
391
|
-
const slottedOptions = this.getSlottedOptions();
|
|
392
|
-
slottedOptions.forEach((opt) => {
|
|
393
|
-
opt.selected = false;
|
|
394
|
-
});
|
|
395
|
-
if (this.selectedOption) {
|
|
396
|
-
this.selectedOption.selected = true;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
649
|
handleInvalid(event) {
|
|
400
650
|
this.formControlController.setValidity(false);
|
|
401
651
|
this.formControlController.emitInvalidEvent(event);
|
|
402
652
|
}
|
|
403
653
|
handlePropertiesChange() {
|
|
404
|
-
this.createComboboxOptionsFromQuery(this.
|
|
654
|
+
this.createComboboxOptionsFromQuery(this.displayLabel);
|
|
655
|
+
if (this.open) {
|
|
656
|
+
this.updateComplete.then(() => {
|
|
657
|
+
this.open = this.multiple || this.restricted || this.numberFilteredOptions > 0;
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
handleDisplayInputValueChange() {
|
|
662
|
+
this.createComboboxOptionsFromQuery(this.displayLabel);
|
|
405
663
|
}
|
|
406
664
|
handleDisabledChange() {
|
|
407
665
|
this.formControlController.setValidity(this.disabled);
|
|
@@ -410,13 +668,22 @@ var SynCombobox = class extends SynergyElement {
|
|
|
410
668
|
this.handleOpenChange();
|
|
411
669
|
}
|
|
412
670
|
}
|
|
671
|
+
handleDelimiterChange() {
|
|
672
|
+
this.getSlottedOptions().forEach((option) => {
|
|
673
|
+
option.delimiter = this.delimiter;
|
|
674
|
+
});
|
|
675
|
+
}
|
|
413
676
|
handleValueChange() {
|
|
677
|
+
if (!this.valueHasChanged) {
|
|
678
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
679
|
+
this.value = this.defaultValue;
|
|
680
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
681
|
+
}
|
|
414
682
|
this.updateSelectedOptionFromValue();
|
|
415
|
-
this.setCurrentOption(null);
|
|
416
683
|
}
|
|
417
684
|
async handleOpenChange() {
|
|
418
685
|
if (this.open && !this.disabled) {
|
|
419
|
-
if (this.numberFilteredOptions === 0 && !this.restricted) {
|
|
686
|
+
if (this.numberFilteredOptions === 0 && !this.restricted && !this.multiple) {
|
|
420
687
|
this.open = false;
|
|
421
688
|
this.emit("syn-error");
|
|
422
689
|
return;
|
|
@@ -491,6 +758,21 @@ var SynCombobox = class extends SynergyElement {
|
|
|
491
758
|
blur() {
|
|
492
759
|
this.displayInput.blur();
|
|
493
760
|
}
|
|
761
|
+
/**
|
|
762
|
+
* Updates the visibility and rendering of options based on the current query string.
|
|
763
|
+
*
|
|
764
|
+
* This method performs several critical tasks:
|
|
765
|
+
* 1. **Option Filtering**: Uses the `filter` function to determine which options should be visible
|
|
766
|
+
* 2. **Custom Rendering**: Applies the `getOption` function to customize option appearance
|
|
767
|
+
* 3. **Optgroup Management**: Shows/hides optgroups based on their visible children
|
|
768
|
+
* 4. **Counts visible options**: Tracks the number of visible options for UI logic
|
|
769
|
+
*
|
|
770
|
+
* **Performance Considerations:**
|
|
771
|
+
* - Uses cached options to avoid repeated DOM queries
|
|
772
|
+
* - Prevents infinite loops during option updates with `isOptionRendererTriggered`
|
|
773
|
+
*
|
|
774
|
+
* @param queryString - The current user input to filter and highlight options with
|
|
775
|
+
*/
|
|
494
776
|
/* eslint-disable no-param-reassign, @typescript-eslint/no-floating-promises */
|
|
495
777
|
createComboboxOptionsFromQuery(queryString) {
|
|
496
778
|
var _a;
|
|
@@ -522,37 +804,57 @@ var SynCombobox = class extends SynergyElement {
|
|
|
522
804
|
(_a = visibleOptgroups[0]) == null ? void 0 : _a.style.setProperty("--display-divider", "none");
|
|
523
805
|
setTimeout(() => {
|
|
524
806
|
this.isOptionRendererTriggered = false;
|
|
525
|
-
}
|
|
807
|
+
});
|
|
526
808
|
}
|
|
527
809
|
/* eslint-enable no-param-reassign, @typescript-eslint/no-floating-promises */
|
|
810
|
+
// eslint-disable-next-line complexity
|
|
528
811
|
async handleInput() {
|
|
529
812
|
const inputValue = this.displayInput.value;
|
|
530
|
-
|
|
813
|
+
this.displayLabel = inputValue;
|
|
814
|
+
const cachedLastOption = this.lastOptions;
|
|
531
815
|
this.isUserInput = true;
|
|
532
|
-
this.
|
|
816
|
+
if (!this.multiple) {
|
|
817
|
+
this.selectedOptions = [];
|
|
818
|
+
}
|
|
819
|
+
if (this.multiple) {
|
|
820
|
+
const validValues = getValuesFromOptions(this.selectedOptions);
|
|
821
|
+
this.value = [...validValues, inputValue];
|
|
822
|
+
} else {
|
|
823
|
+
this.value = inputValue;
|
|
824
|
+
}
|
|
533
825
|
await this.updateComplete;
|
|
534
826
|
this.isUserInput = false;
|
|
535
|
-
this.
|
|
536
|
-
this.open = this.restricted || this.numberFilteredOptions > 0;
|
|
537
|
-
this.selectedOption = void 0;
|
|
827
|
+
this.lastOptions = cachedLastOption;
|
|
828
|
+
this.open = this.multiple || this.restricted || this.numberFilteredOptions > 0;
|
|
538
829
|
this.formControlController.updateValidity();
|
|
539
830
|
this.emit("syn-input");
|
|
540
831
|
}
|
|
541
832
|
/**
|
|
542
|
-
* Checks if the
|
|
833
|
+
* Checks if the value is available in the options list.
|
|
543
834
|
* This is used to determine if the value is valid when the combobox is restricted.
|
|
544
|
-
*
|
|
835
|
+
* @param value - The value to check for validity.
|
|
545
836
|
* @returns `true` if the current value is available in the options list,
|
|
546
837
|
* otherwise `false`.
|
|
547
838
|
*/
|
|
548
|
-
isValidValue() {
|
|
839
|
+
isValidValue(value) {
|
|
549
840
|
const isValid = this.cachedOptions.some(
|
|
550
|
-
(option) =>
|
|
841
|
+
(option) => checkValueBelongsToOption(value, option)
|
|
551
842
|
);
|
|
552
843
|
return isValid;
|
|
553
844
|
}
|
|
554
|
-
|
|
555
|
-
|
|
845
|
+
getOptionsFromValue() {
|
|
846
|
+
const value = this.valueHasChanged ? this.value : this.defaultValue;
|
|
847
|
+
let convertedValue;
|
|
848
|
+
if (Array.isArray(value)) {
|
|
849
|
+
convertedValue = value;
|
|
850
|
+
} else if (value === void 0 || value == null) {
|
|
851
|
+
convertedValue = [];
|
|
852
|
+
} else if (this.multiple && typeof value === "string") {
|
|
853
|
+
convertedValue = value.split(this.delimiter);
|
|
854
|
+
} else {
|
|
855
|
+
convertedValue = [value];
|
|
856
|
+
}
|
|
857
|
+
return convertedValue.map((val) => this.cachedOptions.find((option) => checkValueBelongsToOption(val, option))).filter((opt) => opt !== void 0);
|
|
556
858
|
}
|
|
557
859
|
/**
|
|
558
860
|
* Resets the value to the last valid value or to an empty string.
|
|
@@ -560,10 +862,12 @@ var SynCombobox = class extends SynergyElement {
|
|
|
560
862
|
resetToLastValidValue() {
|
|
561
863
|
var _a, _b, _c, _d;
|
|
562
864
|
let label = "";
|
|
563
|
-
let value =
|
|
564
|
-
if (this.
|
|
565
|
-
value =
|
|
566
|
-
|
|
865
|
+
let value = [];
|
|
866
|
+
if (this.lastOptions.length !== 0) {
|
|
867
|
+
value = getValuesFromOptions(this.lastOptions);
|
|
868
|
+
if (!this.multiple) {
|
|
869
|
+
label = this.lastOptions[0].getTextLabel();
|
|
870
|
+
}
|
|
567
871
|
}
|
|
568
872
|
const popupAnimations = (_d = (_c = (_b = (_a = this.popup) == null ? void 0 : _a.popup) == null ? void 0 : _b.getAnimations) == null ? void 0 : _c.call(_b)) != null ? _d : [];
|
|
569
873
|
const waitForAnimations = popupAnimations.length ? Promise.all(
|
|
@@ -571,30 +875,54 @@ var SynCombobox = class extends SynergyElement {
|
|
|
571
875
|
animation.addEventListener("finish", () => resolve(), { once: true });
|
|
572
876
|
}))
|
|
573
877
|
) : Promise.resolve();
|
|
878
|
+
this.hideOptions = true;
|
|
574
879
|
waitForAnimations.then(() => {
|
|
575
|
-
this.
|
|
576
|
-
this.displayInput.value = label;
|
|
577
|
-
this.formControlController.updateValidity();
|
|
880
|
+
this.hideOptions = false;
|
|
578
881
|
});
|
|
882
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
883
|
+
this.value = value;
|
|
884
|
+
this.displayLabel = label;
|
|
885
|
+
this.formControlController.updateValidity();
|
|
886
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
579
887
|
}
|
|
888
|
+
// eslint-disable-next-line complexity
|
|
580
889
|
handleChange() {
|
|
581
|
-
|
|
890
|
+
const isSameSelection = this.selectedOptions.length !== 0 && this.selectedOptions.length === this.getOptionsFromValue().length;
|
|
891
|
+
let values;
|
|
892
|
+
if (Array.isArray(this.value)) {
|
|
893
|
+
values = this.value;
|
|
894
|
+
} else if (typeof this.value === "string") {
|
|
895
|
+
values = this.value.split(this.delimiter);
|
|
896
|
+
} else {
|
|
897
|
+
values = [this.value];
|
|
898
|
+
}
|
|
899
|
+
const allValuesValid = values.every((val) => this.isValidValue(val));
|
|
900
|
+
const isMultipleAndUserInput = this.multiple && isSameSelection && allValuesValid;
|
|
901
|
+
const isNonMultipleAndUserInput = !this.multiple && this.selectedOptions.length > 0;
|
|
902
|
+
if (isNonMultipleAndUserInput || isMultipleAndUserInput) {
|
|
582
903
|
return;
|
|
583
904
|
}
|
|
584
|
-
|
|
905
|
+
const oldValue = this.lastOptions ? getValuesFromOptions(this.lastOptions) : [];
|
|
906
|
+
if ((this.restricted || this.multiple) && !this.isValidValue(this.displayLabel) && this.displayLabel !== "") {
|
|
585
907
|
this.resetToLastValidValue();
|
|
586
908
|
return;
|
|
587
909
|
}
|
|
588
|
-
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
910
|
+
const options = this.getOptionsFromValue();
|
|
911
|
+
this.setSelectedOptions(options);
|
|
912
|
+
this.selectionChanged();
|
|
913
|
+
this.lastOptions = [...options];
|
|
591
914
|
this.updateComplete.then(() => {
|
|
592
915
|
this.formControlController.updateValidity();
|
|
593
916
|
});
|
|
594
|
-
this.
|
|
595
|
-
|
|
917
|
+
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
918
|
+
if (!compareValues(oldValue, value)) {
|
|
919
|
+
this.emit("syn-change");
|
|
920
|
+
}
|
|
596
921
|
}
|
|
597
922
|
getSlottedOptions() {
|
|
923
|
+
if (!this.defaultSlot) {
|
|
924
|
+
return [];
|
|
925
|
+
}
|
|
598
926
|
return getAllOptions(getAssignedElementsForSlot(this.defaultSlot)).flat();
|
|
599
927
|
}
|
|
600
928
|
getSlottedOptGroups() {
|
|
@@ -614,41 +942,86 @@ var SynCombobox = class extends SynergyElement {
|
|
|
614
942
|
}
|
|
615
943
|
/* eslint-enable no-param-reassign */
|
|
616
944
|
updateSelectedOptionFromValue() {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
this.
|
|
945
|
+
if (!this.isUserInput) {
|
|
946
|
+
const options = this.getOptionsFromValue();
|
|
947
|
+
this.setSelectedOptions(options);
|
|
948
|
+
this.selectionChanged();
|
|
620
949
|
}
|
|
621
|
-
|
|
622
|
-
|
|
950
|
+
let queryString = "";
|
|
951
|
+
if (this.multiple) {
|
|
952
|
+
queryString = this.displayLabel;
|
|
953
|
+
} else {
|
|
954
|
+
queryString = Array.isArray(this.value) ? this.value.join(", ") : String(this.value);
|
|
955
|
+
}
|
|
956
|
+
this.createComboboxOptionsFromQuery(queryString);
|
|
623
957
|
}
|
|
624
|
-
|
|
625
|
-
|
|
958
|
+
/**
|
|
959
|
+
* Synchronizes the internal component state with changes to slotted options.
|
|
960
|
+
*
|
|
961
|
+
* This method is automatically triggered by:
|
|
962
|
+
* - MutationObserver when option 'value' attributes change
|
|
963
|
+
* - Initial component setup during connectedCallback (after timeout)
|
|
964
|
+
* - Default slot changes (via handleDefaultSlotChange)
|
|
965
|
+
* - Custom element registration completion for syn-option (deferred execution)
|
|
966
|
+
*
|
|
967
|
+
* The synchronization process:
|
|
968
|
+
* 1. Waits for syn-option custom elements to be registered before processing
|
|
969
|
+
* 2. Updates delimiter settings on all slotted options
|
|
970
|
+
* 3. Refreshes the internal cache of options and optgroups
|
|
971
|
+
* 4. Synchronizes selected options based on current component value
|
|
972
|
+
* 5. Auto-opens listbox if component has focus, has value, and is currently closed
|
|
973
|
+
*
|
|
974
|
+
* This ensures the component's internal state stays consistent with the slotted
|
|
975
|
+
* DOM content after options are added, removed, or their values change.
|
|
976
|
+
*
|
|
977
|
+
*/
|
|
978
|
+
/* eslint-disable @typescript-eslint/no-floating-promises */
|
|
979
|
+
handleSlotContentChange() {
|
|
980
|
+
if (!customElements.get("syn-option")) {
|
|
981
|
+
customElements.whenDefined("syn-option").then(() => this.handleSlotContentChange());
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
this.handleDelimiterChange();
|
|
985
|
+
this.cacheSlottedOptionsAndOptgroups();
|
|
986
|
+
this.updateSelectedOptionFromValue();
|
|
987
|
+
let hasValue;
|
|
988
|
+
if (Array.isArray(this.value)) {
|
|
989
|
+
hasValue = this.value.length > 0;
|
|
990
|
+
} else if (typeof this.value === "string") {
|
|
991
|
+
hasValue = this.value.length > 0;
|
|
992
|
+
} else {
|
|
993
|
+
hasValue = this.value !== void 0 && this.value !== null;
|
|
994
|
+
}
|
|
995
|
+
if (this.hasFocus && hasValue && !this.open) {
|
|
996
|
+
this.show();
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
/* eslint-enable @typescript-eslint/no-floating-promises */
|
|
626
1000
|
handleDefaultSlotChange() {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
const cachedOptionsLength = this.cachedOptions.length;
|
|
630
|
-
if (!this.isOptionRendererTriggered || cachedOptionsLength !== optionsLength) {
|
|
631
|
-
if (!customElements.get("syn-option")) {
|
|
632
|
-
customElements.whenDefined("syn-option").then(() => this.handleDefaultSlotChange());
|
|
633
|
-
return;
|
|
634
|
-
}
|
|
635
|
-
this.cacheSlottedOptionsAndOptgroups();
|
|
636
|
-
this.updateSelectedOptionFromValue();
|
|
637
|
-
if (this.hasFocus && this.value.length > 0 && !this.open) {
|
|
638
|
-
this.show();
|
|
639
|
-
}
|
|
1001
|
+
if (this.isOptionRendererTriggered) {
|
|
1002
|
+
return;
|
|
640
1003
|
}
|
|
1004
|
+
this.handleSlotContentChange();
|
|
641
1005
|
}
|
|
642
|
-
/* eslint-enable @typescript-eslint/no-floating-promises, complexity */
|
|
643
1006
|
/* eslint-disable @typescript-eslint/unbound-method */
|
|
644
1007
|
// eslint-disable-next-line complexity
|
|
645
1008
|
render() {
|
|
1009
|
+
var _a;
|
|
646
1010
|
const hasLabelSlot = this.hasSlotController.test("label");
|
|
647
1011
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
648
1012
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
649
1013
|
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
650
|
-
|
|
651
|
-
|
|
1014
|
+
let hasValue;
|
|
1015
|
+
if (Array.isArray(this.value)) {
|
|
1016
|
+
hasValue = this.value.length > 0;
|
|
1017
|
+
} else if (typeof this.value === "string") {
|
|
1018
|
+
hasValue = this.value.length > 0;
|
|
1019
|
+
} else {
|
|
1020
|
+
hasValue = this.value !== void 0 && this.value !== null && typeof this.value === "number";
|
|
1021
|
+
}
|
|
1022
|
+
const hasClearIcon = this.clearable && !this.disabled && hasValue;
|
|
1023
|
+
const isPlaceholderVisible = this.placeholder && !hasValue;
|
|
1024
|
+
const tagsVisible = this.multiple && this.selectedOptions.length > 0;
|
|
652
1025
|
return html`
|
|
653
1026
|
<div
|
|
654
1027
|
part="form-control"
|
|
@@ -680,10 +1053,12 @@ var SynCombobox = class extends SynergyElement {
|
|
|
680
1053
|
"combobox--focused": this.hasFocus,
|
|
681
1054
|
"combobox--large": this.size === "large",
|
|
682
1055
|
"combobox--medium": this.size === "medium",
|
|
1056
|
+
"combobox--multiple": this.multiple,
|
|
683
1057
|
"combobox--open": this.open,
|
|
684
1058
|
"combobox--placeholder-visible": isPlaceholderVisible,
|
|
685
1059
|
"combobox--small": this.size === "small",
|
|
686
1060
|
"combobox--standard": true,
|
|
1061
|
+
"combobox--tags-visible": tagsVisible,
|
|
687
1062
|
"combobox--top": this.placement === "top"
|
|
688
1063
|
})}
|
|
689
1064
|
placement=${`${this.placement}-start`}
|
|
@@ -703,6 +1078,8 @@ var SynCombobox = class extends SynergyElement {
|
|
|
703
1078
|
>
|
|
704
1079
|
<slot part="prefix" name="prefix" class="combobox__prefix"></slot>
|
|
705
1080
|
|
|
1081
|
+
${this.multiple ? html`<div part="tags" class="combobox__tags">${this.tags}</div>` : ""}
|
|
1082
|
+
|
|
706
1083
|
<input
|
|
707
1084
|
part="display-input"
|
|
708
1085
|
class="combobox__display-input"
|
|
@@ -735,7 +1112,7 @@ var SynCombobox = class extends SynergyElement {
|
|
|
735
1112
|
type="text"
|
|
736
1113
|
?disabled=${this.disabled}
|
|
737
1114
|
?required=${this.required}
|
|
738
|
-
.value=${this.value}
|
|
1115
|
+
.value=${Array.isArray(this.value) ? this.value.join(", ") : (_a = this.value) == null ? void 0 : _a.toString()}
|
|
739
1116
|
tabindex="-1"
|
|
740
1117
|
aria-hidden="true"
|
|
741
1118
|
@focus=${() => this.focus()}
|
|
@@ -770,6 +1147,7 @@ var SynCombobox = class extends SynergyElement {
|
|
|
770
1147
|
role="listbox"
|
|
771
1148
|
aria-expanded=${this.open ? "true" : "false"}
|
|
772
1149
|
aria-labelledby="label"
|
|
1150
|
+
aria-multiselectable=${this.multiple ? "true" : "false"}
|
|
773
1151
|
part="listbox"
|
|
774
1152
|
class="combobox__listbox"
|
|
775
1153
|
tabindex="-1"
|
|
@@ -777,13 +1155,13 @@ var SynCombobox = class extends SynergyElement {
|
|
|
777
1155
|
@mouseup=${this.handleOptionClick}
|
|
778
1156
|
>
|
|
779
1157
|
<div class="listbox__options" part="filtered-listbox">
|
|
780
|
-
${this.numberFilteredOptions === 0 ? html`<span
|
|
1158
|
+
${this.hideOptions || this.numberFilteredOptions === 0 ? html`<span
|
|
781
1159
|
class="listbox__no-results"
|
|
782
1160
|
aria-hidden="true"
|
|
783
1161
|
part="no-results"
|
|
784
1162
|
>${this.localize.term("noResults")}</span
|
|
785
1163
|
>` : ""}
|
|
786
|
-
<slot @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
1164
|
+
<slot class=${classMap({ options__hide: this.hideOptions })} @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
787
1165
|
</div>
|
|
788
1166
|
</div>
|
|
789
1167
|
</syn-popup>
|
|
@@ -811,7 +1189,8 @@ SynCombobox.styles = [
|
|
|
811
1189
|
];
|
|
812
1190
|
SynCombobox.dependencies = {
|
|
813
1191
|
"syn-icon": SynIcon,
|
|
814
|
-
"syn-popup": SynPopup
|
|
1192
|
+
"syn-popup": SynPopup,
|
|
1193
|
+
"syn-tag": SynTag
|
|
815
1194
|
};
|
|
816
1195
|
__decorateClass([
|
|
817
1196
|
query(".combobox")
|
|
@@ -831,6 +1210,9 @@ __decorateClass([
|
|
|
831
1210
|
__decorateClass([
|
|
832
1211
|
query("slot:not([name])")
|
|
833
1212
|
], SynCombobox.prototype, "defaultSlot", 2);
|
|
1213
|
+
__decorateClass([
|
|
1214
|
+
query(".combobox__tags")
|
|
1215
|
+
], SynCombobox.prototype, "tagContainer", 2);
|
|
834
1216
|
__decorateClass([
|
|
835
1217
|
state()
|
|
836
1218
|
], SynCombobox.prototype, "hasFocus", 2);
|
|
@@ -842,21 +1224,27 @@ __decorateClass([
|
|
|
842
1224
|
], SynCombobox.prototype, "displayLabel", 2);
|
|
843
1225
|
__decorateClass([
|
|
844
1226
|
state()
|
|
845
|
-
], SynCombobox.prototype, "
|
|
1227
|
+
], SynCombobox.prototype, "selectedOptions", 2);
|
|
846
1228
|
__decorateClass([
|
|
847
1229
|
state()
|
|
848
1230
|
], SynCombobox.prototype, "numberFilteredOptions", 2);
|
|
849
1231
|
__decorateClass([
|
|
850
1232
|
state()
|
|
851
1233
|
], SynCombobox.prototype, "cachedOptions", 2);
|
|
1234
|
+
__decorateClass([
|
|
1235
|
+
state()
|
|
1236
|
+
], SynCombobox.prototype, "valueHasChanged", 2);
|
|
1237
|
+
__decorateClass([
|
|
1238
|
+
state()
|
|
1239
|
+
], SynCombobox.prototype, "hideOptions", 2);
|
|
852
1240
|
__decorateClass([
|
|
853
1241
|
property()
|
|
854
1242
|
], SynCombobox.prototype, "name", 2);
|
|
855
1243
|
__decorateClass([
|
|
856
|
-
|
|
857
|
-
], SynCombobox.prototype, "value",
|
|
1244
|
+
state()
|
|
1245
|
+
], SynCombobox.prototype, "value", 1);
|
|
858
1246
|
__decorateClass([
|
|
859
|
-
|
|
1247
|
+
property({ attribute: "value" })
|
|
860
1248
|
], SynCombobox.prototype, "defaultValue", 2);
|
|
861
1249
|
__decorateClass([
|
|
862
1250
|
property({ reflect: true })
|
|
@@ -891,20 +1279,38 @@ __decorateClass([
|
|
|
891
1279
|
__decorateClass([
|
|
892
1280
|
property({ reflect: true, type: Boolean })
|
|
893
1281
|
], SynCombobox.prototype, "restricted", 2);
|
|
1282
|
+
__decorateClass([
|
|
1283
|
+
property({ reflect: true, type: Boolean })
|
|
1284
|
+
], SynCombobox.prototype, "multiple", 2);
|
|
894
1285
|
__decorateClass([
|
|
895
1286
|
property()
|
|
896
1287
|
], SynCombobox.prototype, "getOption", 2);
|
|
897
1288
|
__decorateClass([
|
|
898
1289
|
property()
|
|
899
1290
|
], SynCombobox.prototype, "filter", 2);
|
|
1291
|
+
__decorateClass([
|
|
1292
|
+
property()
|
|
1293
|
+
], SynCombobox.prototype, "delimiter", 2);
|
|
1294
|
+
__decorateClass([
|
|
1295
|
+
property({ attribute: "max-options-visible", type: Number })
|
|
1296
|
+
], SynCombobox.prototype, "maxOptionsVisible", 2);
|
|
1297
|
+
__decorateClass([
|
|
1298
|
+
property()
|
|
1299
|
+
], SynCombobox.prototype, "getTag", 2);
|
|
900
1300
|
__decorateClass([
|
|
901
1301
|
watch(["filter", "getOption"], { waitUntilFirstUpdate: true })
|
|
902
1302
|
], SynCombobox.prototype, "handlePropertiesChange", 1);
|
|
1303
|
+
__decorateClass([
|
|
1304
|
+
watch("displayLabel", { waitUntilFirstUpdate: true })
|
|
1305
|
+
], SynCombobox.prototype, "handleDisplayInputValueChange", 1);
|
|
903
1306
|
__decorateClass([
|
|
904
1307
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
905
1308
|
], SynCombobox.prototype, "handleDisabledChange", 1);
|
|
906
1309
|
__decorateClass([
|
|
907
|
-
watch("
|
|
1310
|
+
watch("delimiter")
|
|
1311
|
+
], SynCombobox.prototype, "handleDelimiterChange", 1);
|
|
1312
|
+
__decorateClass([
|
|
1313
|
+
watch(["defaultValue", "value", "delimiter", "multiple", "restricted"], { waitUntilFirstUpdate: true })
|
|
908
1314
|
], SynCombobox.prototype, "handleValueChange", 1);
|
|
909
1315
|
__decorateClass([
|
|
910
1316
|
watch("open", { waitUntilFirstUpdate: true })
|
|
@@ -930,4 +1336,4 @@ setDefaultAnimation("combobox.hide", {
|
|
|
930
1336
|
export {
|
|
931
1337
|
SynCombobox
|
|
932
1338
|
};
|
|
933
|
-
//# sourceMappingURL=chunk.
|
|
1339
|
+
//# sourceMappingURL=chunk.6JDKH43H.js.map
|