@synergy-design-system/components 2.0.0 → 2.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 +56 -7
- package/dist/chunks/{chunk.C7624ITA.js → chunk.234ERFCE.js} +1 -1
- package/dist/chunks/chunk.234ERFCE.js.map +7 -0
- package/dist/chunks/{chunk.CWZ4FEAV.js → chunk.237KE22A.js} +5 -5
- package/dist/chunks/chunk.237KE22A.js.map +7 -0
- package/dist/chunks/{chunk.CZK6Y6J7.js → chunk.26ENGZ3W.js} +2 -2
- package/dist/chunks/chunk.26ENGZ3W.js.map +7 -0
- package/dist/chunks/{chunk.IKG6CMRI.js → chunk.2F7VZ6GN.js} +6 -6
- package/dist/chunks/chunk.2F7VZ6GN.js.map +7 -0
- package/dist/chunks/chunk.37QGQHZ6.js +356 -0
- package/dist/chunks/chunk.37QGQHZ6.js.map +7 -0
- package/dist/chunks/{chunk.PLYRNXO5.js → chunk.3AEYISZ3.js} +2 -2
- package/dist/chunks/chunk.3AEYISZ3.js.map +7 -0
- package/dist/chunks/{chunk.AW2HNLNP.js → chunk.3B22DBSJ.js} +1 -1
- package/dist/chunks/chunk.3B22DBSJ.js.map +7 -0
- package/dist/chunks/{chunk.7QPPPSLU.js → chunk.3JEIYX3E.js} +2 -2
- package/dist/chunks/chunk.3JEIYX3E.js.map +7 -0
- package/dist/chunks/{chunk.YHRXL2XR.js → chunk.3YMWLLPP.js} +1 -1
- package/dist/chunks/chunk.3YMWLLPP.js.map +7 -0
- package/dist/chunks/{chunk.RPBO222K.js → chunk.46LHQWYE.js} +4 -4
- package/dist/chunks/chunk.46LHQWYE.js.map +7 -0
- package/dist/chunks/{chunk.QPK7SLOE.js → chunk.4BRJ5OJE.js} +2 -2
- package/dist/chunks/chunk.4BRJ5OJE.js.map +7 -0
- package/dist/chunks/{chunk.Q47TSDLT.js → chunk.4EMBYJB5.js} +11 -11
- package/dist/chunks/chunk.4EMBYJB5.js.map +7 -0
- package/dist/chunks/{chunk.CYJIE45P.js → chunk.4MRMTDXI.js} +8 -8
- package/dist/chunks/chunk.4MRMTDXI.js.map +7 -0
- package/dist/chunks/{chunk.UMKKOHXB.js → chunk.4OLTKAXX.js} +1 -1
- package/dist/chunks/chunk.4OLTKAXX.js.map +7 -0
- package/dist/chunks/{chunk.TAO5QIIQ.js → chunk.4TB35TYG.js} +1 -1
- package/dist/chunks/chunk.4TB35TYG.js.map +7 -0
- package/dist/chunks/chunk.53BSBOGI.js +119 -0
- package/dist/chunks/chunk.53BSBOGI.js.map +7 -0
- package/dist/chunks/{chunk.XKMNFCMU.js → chunk.54XMPU42.js} +4 -4
- package/dist/chunks/chunk.54XMPU42.js.map +7 -0
- package/dist/chunks/{chunk.BO74VWXK.js → chunk.55V5DPSY.js} +9 -9
- package/dist/chunks/chunk.55V5DPSY.js.map +7 -0
- package/dist/chunks/{chunk.Q4CRAGN3.js → chunk.5SQ7NVBX.js} +1 -1
- package/dist/chunks/chunk.5SQ7NVBX.js.map +7 -0
- package/dist/chunks/{chunk.BGHK4NQA.js → chunk.6EPU7YUS.js} +1 -1
- package/dist/chunks/chunk.6EPU7YUS.js.map +7 -0
- package/dist/chunks/{chunk.JUJZBRXD.js → chunk.6EXC65JJ.js} +1 -1
- package/dist/chunks/chunk.6EXC65JJ.js.map +7 -0
- package/dist/chunks/{chunk.OF2RI2OE.js → chunk.6LN6ZNAK.js} +2 -2
- package/dist/chunks/chunk.6LN6ZNAK.js.map +7 -0
- package/dist/chunks/{chunk.NIYKFSPR.js → chunk.6OX2AX3Z.js} +1 -1
- package/dist/chunks/chunk.6OX2AX3Z.js.map +7 -0
- package/dist/chunks/{chunk.INJJNBQC.js → chunk.6QVNCLZS.js} +2 -2
- package/dist/chunks/chunk.6QVNCLZS.js.map +7 -0
- package/dist/chunks/{chunk.QWCMHMXL.js → chunk.6TF37IB7.js} +2 -2
- package/dist/chunks/chunk.6TF37IB7.js.map +7 -0
- package/dist/chunks/{chunk.GGTB5RZK.js → chunk.7BKUPXMT.js} +6 -6
- package/dist/chunks/{chunk.5POEZPXI.js → chunk.7DMCPIEI.js} +2 -2
- package/dist/chunks/{chunk.MY4UOZQR.js → chunk.7EVV2SSG.js} +10 -10
- package/dist/chunks/chunk.7EVV2SSG.js.map +7 -0
- package/dist/chunks/{chunk.66MOXMDP.js → chunk.AA54UMGR.js} +3 -3
- package/dist/chunks/chunk.AA54UMGR.js.map +7 -0
- package/dist/chunks/{chunk.YOW6LLS7.js → chunk.AP44I2RF.js} +3 -3
- package/dist/chunks/chunk.AP44I2RF.js.map +7 -0
- package/dist/chunks/{chunk.UR6LFFCN.js → chunk.AROEEADW.js} +3 -3
- package/dist/chunks/chunk.AROEEADW.js.map +7 -0
- package/dist/chunks/{chunk.MIMALEWP.js → chunk.AZ3N5IOO.js} +1 -1
- package/dist/chunks/chunk.AZ3N5IOO.js.map +7 -0
- package/dist/chunks/{chunk.B3ETIETR.js → chunk.B24ZDJ2S.js} +2 -2
- package/dist/chunks/chunk.B24ZDJ2S.js.map +7 -0
- package/dist/chunks/{chunk.GYZZGKK6.js → chunk.B6ECQBB4.js} +2 -2
- package/dist/chunks/chunk.B6ECQBB4.js.map +7 -0
- package/dist/chunks/{chunk.SH6KJA7C.js → chunk.BNDEI6JL.js} +2 -2
- package/dist/chunks/chunk.BNDEI6JL.js.map +7 -0
- package/dist/chunks/{chunk.QKQIHI54.js → chunk.BZNV5GLJ.js} +10 -10
- package/dist/chunks/{chunk.RSSY7KPD.js → chunk.C2CWYCOU.js} +1 -1
- package/dist/chunks/chunk.C2CWYCOU.js.map +7 -0
- package/dist/chunks/{chunk.GCU2ZNB2.js → chunk.C4JTZKPZ.js} +1 -1
- package/dist/chunks/chunk.C4JTZKPZ.js.map +7 -0
- package/dist/chunks/{chunk.WAW6B7ID.js → chunk.CEAH6JB6.js} +9 -9
- package/dist/chunks/chunk.CEAH6JB6.js.map +7 -0
- package/dist/chunks/{chunk.PPX62TH5.js → chunk.CQBMEYG3.js} +2 -2
- package/dist/chunks/chunk.CQBMEYG3.js.map +7 -0
- package/dist/chunks/{chunk.2EI3TNL7.js → chunk.CRA5CBMD.js} +1 -1
- package/dist/chunks/chunk.CRA5CBMD.js.map +7 -0
- package/dist/chunks/{chunk.TTL762VF.js → chunk.CX4QZVGR.js} +1 -1
- package/dist/chunks/chunk.CX4QZVGR.js.map +7 -0
- package/dist/chunks/{chunk.Q77JF7AR.js → chunk.CXQZU3UM.js} +5 -5
- package/dist/chunks/chunk.CXQZU3UM.js.map +7 -0
- package/dist/chunks/{chunk.SLCYXMHB.js → chunk.D6IIQDWJ.js} +1 -1
- package/dist/chunks/chunk.D6IIQDWJ.js.map +7 -0
- package/dist/chunks/{chunk.DSIZBV7C.js → chunk.DDBKCYG2.js} +2 -2
- package/dist/chunks/chunk.DDBKCYG2.js.map +7 -0
- package/dist/chunks/{chunk.HEJ6O4CS.js → chunk.DOETSUT5.js} +2 -2
- package/dist/chunks/chunk.DOETSUT5.js.map +7 -0
- package/dist/chunks/{chunk.LE3YHBAH.js → chunk.DQ2VNYUV.js} +2 -2
- package/dist/chunks/{chunk.NIGJFXQZ.js → chunk.DUVJPNMN.js} +8 -8
- package/dist/chunks/chunk.DUVJPNMN.js.map +7 -0
- package/dist/chunks/{chunk.LJQ7LEPV.js → chunk.DZ7YIR5N.js} +1 -1
- package/dist/chunks/chunk.DZ7YIR5N.js.map +7 -0
- package/dist/chunks/{chunk.M6WH7QEC.js → chunk.E3KW3KQM.js} +2 -2
- package/dist/chunks/chunk.E3KW3KQM.js.map +7 -0
- package/dist/chunks/{chunk.PKO6FEOM.js → chunk.EHSNF4SS.js} +1 -1
- package/dist/chunks/chunk.EHSNF4SS.js.map +7 -0
- package/dist/chunks/{chunk.APVUOX4X.js → chunk.EM4U3JXI.js} +2 -2
- package/dist/chunks/chunk.EM4U3JXI.js.map +7 -0
- package/dist/chunks/{chunk.QERISKCA.js → chunk.EQJ2E765.js} +8 -8
- package/dist/chunks/chunk.EQJ2E765.js.map +7 -0
- package/dist/chunks/{chunk.5HWI7WDT.js → chunk.FH2IZXHR.js} +2 -2
- package/dist/chunks/chunk.FH2IZXHR.js.map +7 -0
- package/dist/chunks/{chunk.ACTJFDNK.js → chunk.FSZIE7IO.js} +1 -1
- package/dist/chunks/chunk.FSZIE7IO.js.map +7 -0
- package/dist/chunks/{chunk.OD3ZRSCN.js → chunk.GLXSQA65.js} +2 -2
- package/dist/chunks/chunk.GLXSQA65.js.map +7 -0
- package/dist/chunks/chunk.GPOKWSJW.js +12 -0
- package/dist/chunks/chunk.GPOKWSJW.js.map +7 -0
- package/dist/chunks/{chunk.A7IIJ2LL.js → chunk.GRVNUIP2.js} +1 -1
- package/dist/chunks/chunk.GRVNUIP2.js.map +7 -0
- package/dist/chunks/{chunk.GJ4LHXBY.js → chunk.H6R4ZGJD.js} +2 -2
- package/dist/chunks/chunk.H6R4ZGJD.js.map +7 -0
- package/dist/chunks/{chunk.MFMME6IU.js → chunk.HUDCIINH.js} +4 -4
- package/dist/chunks/chunk.HUDCIINH.js.map +7 -0
- package/dist/chunks/{chunk.N47PW3ZF.js → chunk.HVCUYU55.js} +2 -2
- package/dist/chunks/chunk.HVCUYU55.js.map +7 -0
- package/dist/chunks/chunk.HVXG4JG6.js +24 -0
- package/dist/chunks/chunk.HVXG4JG6.js.map +7 -0
- package/dist/chunks/{chunk.JXTXMTDM.js → chunk.INRAXQM6.js} +4 -4
- package/dist/chunks/chunk.INRAXQM6.js.map +7 -0
- package/dist/chunks/{chunk.CFIQXXMW.js → chunk.IVM3BGRH.js} +1 -1
- package/dist/chunks/chunk.IVM3BGRH.js.map +7 -0
- package/dist/chunks/{chunk.3GYQCNNB.js → chunk.JBK3OEZS.js} +2 -2
- package/dist/chunks/chunk.JBK3OEZS.js.map +7 -0
- package/dist/chunks/{chunk.6SE6TKS4.js → chunk.JBLLQP2I.js} +2 -2
- package/dist/chunks/chunk.JBLLQP2I.js.map +7 -0
- package/dist/chunks/{chunk.66DXY7BX.js → chunk.JLXCLATV.js} +1 -1
- package/dist/chunks/chunk.JLXCLATV.js.map +7 -0
- package/dist/chunks/{chunk.OB3BARBF.js → chunk.JNQUUSNH.js} +5 -5
- package/dist/chunks/chunk.JNQUUSNH.js.map +7 -0
- package/dist/chunks/{chunk.X6JZ2IGM.js → chunk.JODC5632.js} +2 -2
- package/dist/chunks/chunk.JODC5632.js.map +7 -0
- package/dist/chunks/chunk.JQ47GWDL.js +192 -0
- package/dist/chunks/chunk.JQ47GWDL.js.map +7 -0
- package/dist/chunks/{chunk.XIUSSERX.js → chunk.K62NPKGN.js} +1 -1
- package/dist/chunks/chunk.K62NPKGN.js.map +7 -0
- package/dist/chunks/{chunk.PS4UJFYT.js → chunk.KG73YUXI.js} +1 -1
- package/dist/chunks/chunk.KG73YUXI.js.map +7 -0
- package/dist/chunks/{chunk.JQUADXOI.js → chunk.KKHBCEZG.js} +2 -2
- package/dist/chunks/chunk.KKHBCEZG.js.map +7 -0
- package/dist/chunks/{chunk.HQITSO5S.js → chunk.LJQL5FJU.js} +5 -5
- package/dist/chunks/chunk.LJQL5FJU.js.map +7 -0
- package/dist/chunks/{chunk.PDHVYHXD.js → chunk.MLP2VIC7.js} +1 -1
- package/dist/chunks/chunk.MLP2VIC7.js.map +7 -0
- package/dist/chunks/{chunk.LD43YPTP.js → chunk.MNX3NQBK.js} +2 -2
- package/dist/chunks/chunk.MNX3NQBK.js.map +7 -0
- package/dist/chunks/chunk.MOOEQAES.js +65 -0
- package/dist/chunks/chunk.MOOEQAES.js.map +7 -0
- package/dist/chunks/{chunk.QAUTITK3.js → chunk.MSUX23ZJ.js} +1 -1
- package/dist/chunks/chunk.MSUX23ZJ.js.map +7 -0
- package/dist/chunks/{chunk.YMICCSK6.js → chunk.MU43DZ7W.js} +1 -1
- package/dist/chunks/chunk.MU43DZ7W.js.map +7 -0
- package/dist/chunks/{chunk.GBARDV25.js → chunk.MXCWG2OM.js} +2 -2
- package/dist/chunks/chunk.MXCWG2OM.js.map +7 -0
- package/dist/chunks/{chunk.PHSJD47V.js → chunk.N7QJ54ZM.js} +1 -1
- package/dist/chunks/chunk.N7QJ54ZM.js.map +7 -0
- package/dist/chunks/chunk.NGI67WXT.js +235 -0
- package/dist/chunks/chunk.NGI67WXT.js.map +7 -0
- package/dist/chunks/{chunk.UOCGYAVP.js → chunk.NXEA2GYY.js} +2 -2
- package/dist/chunks/chunk.NXEA2GYY.js.map +7 -0
- package/dist/chunks/{chunk.KLDQHER5.js → chunk.O6ZH6AOI.js} +1 -1
- package/dist/chunks/chunk.O6ZH6AOI.js.map +7 -0
- package/dist/chunks/chunk.OE4RXQU2.js +92 -0
- package/dist/chunks/chunk.OE4RXQU2.js.map +7 -0
- package/dist/chunks/{chunk.IIB7BIYK.js → chunk.PJZAQ4CL.js} +5 -5
- package/dist/chunks/{chunk.3VIWDL7Y.js → chunk.PLXT7FHX.js} +2 -2
- package/dist/chunks/{chunk.EX6PHTKD.js → chunk.PMBSNTUJ.js} +11 -11
- package/dist/chunks/chunk.PMBSNTUJ.js.map +7 -0
- package/dist/chunks/{chunk.ITXLZUTJ.js → chunk.PMC3VAD6.js} +2 -2
- package/dist/chunks/chunk.PMC3VAD6.js.map +7 -0
- package/dist/chunks/{chunk.2QOQY4ZG.js → chunk.POGMEL53.js} +1 -1
- package/dist/chunks/chunk.POGMEL53.js.map +7 -0
- package/dist/chunks/{chunk.HXB2YFEV.js → chunk.PUYIYZM3.js} +2 -2
- package/dist/chunks/chunk.PUYIYZM3.js.map +7 -0
- package/dist/chunks/{chunk.AVTU2BGE.js → chunk.QJMO7V5R.js} +1 -1
- package/dist/chunks/chunk.QJMO7V5R.js.map +7 -0
- package/dist/chunks/{chunk.TDWPDWV4.js → chunk.QL2X22YC.js} +4 -4
- package/dist/chunks/chunk.QL2X22YC.js.map +7 -0
- package/dist/chunks/{chunk.XBUAZUNQ.js → chunk.QUM76UHV.js} +1 -1
- package/dist/chunks/chunk.QUM76UHV.js.map +7 -0
- package/dist/chunks/{chunk.6XXPHG57.js → chunk.QZNPL6WK.js} +1 -1
- package/dist/chunks/chunk.QZNPL6WK.js.map +7 -0
- package/dist/chunks/{chunk.2RTVPLA4.js → chunk.R5L4ATY2.js} +11 -11
- package/dist/chunks/chunk.R5L4ATY2.js.map +7 -0
- package/dist/chunks/{chunk.CXLU3VIF.js → chunk.R7AEDRAB.js} +2 -2
- package/dist/chunks/chunk.R7AEDRAB.js.map +7 -0
- package/dist/chunks/{chunk.3FOVDOJX.js → chunk.RAOPZXJL.js} +1 -1
- package/dist/chunks/chunk.RAOPZXJL.js.map +7 -0
- package/dist/chunks/{chunk.WFAJR3FN.js → chunk.RBG37CD4.js} +1 -1
- package/dist/chunks/chunk.RBG37CD4.js.map +7 -0
- package/dist/chunks/{chunk.45VEGVRJ.js → chunk.RMIDAEF5.js} +1 -1
- package/dist/chunks/chunk.RMIDAEF5.js.map +7 -0
- package/dist/chunks/chunk.RN7MN4MA.js +12 -0
- package/dist/chunks/chunk.RN7MN4MA.js.map +7 -0
- package/dist/chunks/{chunk.RIJKFEYZ.js → chunk.RX7A4EQ2.js} +1 -1
- package/dist/chunks/chunk.RX7A4EQ2.js.map +7 -0
- package/dist/chunks/{chunk.Z6T7VV4R.js → chunk.S22BO5SF.js} +1 -1
- package/dist/chunks/chunk.S22BO5SF.js.map +7 -0
- package/dist/chunks/{chunk.UNWDGUMS.js → chunk.S5IAO6TE.js} +2 -2
- package/dist/chunks/chunk.S5IAO6TE.js.map +7 -0
- package/dist/chunks/{chunk.K6RAJOFH.js → chunk.SA76XN5E.js} +2 -2
- package/dist/chunks/chunk.SA76XN5E.js.map +7 -0
- package/dist/chunks/{chunk.VTKIDI7N.js → chunk.SDQC32B3.js} +5 -3
- package/dist/chunks/chunk.SDQC32B3.js.map +7 -0
- package/dist/chunks/{chunk.NP6RUQHV.js → chunk.SHR2JFIQ.js} +2 -2
- package/dist/chunks/chunk.SHR2JFIQ.js.map +7 -0
- package/dist/chunks/{chunk.ODV5KTQX.js → chunk.SK2J5OBU.js} +9 -9
- package/dist/chunks/chunk.SK2J5OBU.js.map +7 -0
- package/dist/chunks/{chunk.QNQNR3RY.js → chunk.SNLPFVBC.js} +1 -1
- package/dist/chunks/chunk.SNLPFVBC.js.map +7 -0
- package/dist/chunks/{chunk.QQ6EVJKD.js → chunk.SUWJSKJY.js} +5 -5
- package/dist/chunks/{chunk.U5YGRMPN.js → chunk.TJMFAPD5.js} +15 -15
- package/dist/chunks/chunk.TJMFAPD5.js.map +7 -0
- package/dist/chunks/{chunk.VLFUE45C.js → chunk.TKKE7ZDF.js} +9 -9
- package/dist/chunks/chunk.TKKE7ZDF.js.map +7 -0
- package/dist/chunks/{chunk.NF2R6RZV.js → chunk.TR376A4H.js} +2 -2
- package/dist/chunks/chunk.TR376A4H.js.map +7 -0
- package/dist/chunks/{chunk.JDBDBGQP.js → chunk.U2OMGNNZ.js} +1 -1
- package/dist/chunks/chunk.U2OMGNNZ.js.map +7 -0
- package/dist/chunks/chunk.U7YAV7S3.js +77 -0
- package/dist/chunks/chunk.U7YAV7S3.js.map +7 -0
- package/dist/chunks/{chunk.HSJIUWQS.js → chunk.UAFGFK3T.js} +5 -5
- package/dist/chunks/chunk.UAFGFK3T.js.map +7 -0
- package/dist/chunks/{chunk.3F2OUNM2.js → chunk.UBL6PYIY.js} +4 -4
- package/dist/chunks/chunk.UBL6PYIY.js.map +7 -0
- package/dist/chunks/{chunk.QYY44FAQ.js → chunk.UPF36IJ7.js} +2 -2
- package/dist/chunks/{chunk.ZXRJ4KDL.js → chunk.UYOVYRYZ.js} +2 -2
- package/dist/chunks/chunk.UYOVYRYZ.js.map +7 -0
- package/dist/chunks/{chunk.UK6QI2YX.js → chunk.V4LT6Y75.js} +4 -4
- package/dist/chunks/chunk.V4LT6Y75.js.map +7 -0
- package/dist/chunks/{chunk.3VG7IMNM.js → chunk.VYOPQCOF.js} +7 -7
- package/dist/chunks/{chunk.OF7YXNPE.js → chunk.WEJ5VWT4.js} +4 -4
- package/dist/chunks/chunk.WEJ5VWT4.js.map +7 -0
- package/dist/chunks/{chunk.VUMY7MJT.js → chunk.WFRQCVCI.js} +5 -5
- package/dist/chunks/chunk.WFRQCVCI.js.map +7 -0
- package/dist/chunks/{chunk.EJQN3JHV.js → chunk.WMNGVSJM.js} +8 -8
- package/dist/chunks/chunk.WMNGVSJM.js.map +7 -0
- package/dist/chunks/{chunk.66WXVGAW.js → chunk.WVVQK5TE.js} +1 -1
- package/dist/chunks/chunk.WVVQK5TE.js.map +7 -0
- package/dist/chunks/chunk.XHWYGYMQ.js +13 -0
- package/dist/chunks/chunk.XHWYGYMQ.js.map +7 -0
- package/dist/chunks/{chunk.II4PANKR.js → chunk.Y5TMYX2L.js} +1 -1
- package/dist/chunks/chunk.Y5TMYX2L.js.map +7 -0
- package/dist/chunks/{chunk.XN5TDOQI.js → chunk.YQNQTLWT.js} +3 -3
- package/dist/chunks/chunk.YQNQTLWT.js.map +7 -0
- package/dist/chunks/{chunk.6C4JXZZN.js → chunk.YTEJW7IF.js} +2 -2
- package/dist/chunks/chunk.YTEJW7IF.js.map +7 -0
- package/dist/chunks/{chunk.ALA3LG2Q.js → chunk.Z32IB5ZX.js} +2 -2
- package/dist/chunks/chunk.Z32IB5ZX.js.map +7 -0
- package/dist/chunks/{chunk.2RF7KO5I.js → chunk.ZBW4ZSZ7.js} +1 -1
- package/dist/chunks/chunk.ZBW4ZSZ7.js.map +7 -0
- package/dist/chunks/chunk.ZD4HN2PI.js +12 -0
- package/dist/chunks/chunk.ZD4HN2PI.js.map +7 -0
- package/dist/chunks/{chunk.4DLDFGWQ.js → chunk.ZPQHGXON.js} +2 -2
- package/dist/chunks/chunk.ZPQHGXON.js.map +7 -0
- package/dist/chunks/{chunk.3VQUQNL2.js → chunk.ZW7TXIG5.js} +2 -2
- package/dist/components/alert/alert.component.d.ts +6 -0
- package/dist/components/alert/alert.component.js +17 -17
- package/dist/components/alert/alert.d.ts +6 -0
- package/dist/components/alert/alert.js +18 -18
- package/dist/components/alert/alert.styles.d.ts +6 -0
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.d.ts +6 -0
- package/dist/components/badge/badge.component.js +5 -5
- package/dist/components/badge/badge.d.ts +6 -0
- package/dist/components/badge/badge.js +6 -6
- package/dist/components/badge/badge.styles.d.ts +6 -0
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.d.ts +6 -0
- package/dist/components/breadcrumb/breadcrumb.component.js +12 -12
- package/dist/components/breadcrumb/breadcrumb.d.ts +6 -0
- package/dist/components/breadcrumb/breadcrumb.js +13 -13
- package/dist/components/breadcrumb/breadcrumb.styles.d.ts +6 -0
- package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.d.ts +6 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +6 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +6 -6
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.d.ts +6 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.component.d.ts +6 -0
- package/dist/components/button/button.component.js +16 -16
- package/dist/components/button/button.d.ts +6 -0
- package/dist/components/button/button.js +17 -17
- package/dist/components/button/button.styles.d.ts +6 -0
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.d.ts +6 -0
- package/dist/components/button-group/button-group.component.js +3 -3
- package/dist/components/button-group/button-group.d.ts +6 -0
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/button-group/button-group.styles.d.ts +6 -0
- package/dist/components/button-group/button-group.styles.js +1 -1
- package/dist/components/card/card.component.d.ts +6 -0
- package/dist/components/card/card.component.js +4 -4
- package/dist/components/card/card.d.ts +6 -0
- package/dist/components/card/card.js +5 -5
- package/dist/components/card/card.styles.d.ts +6 -0
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +6 -0
- package/dist/components/checkbox/checkbox.component.js +14 -14
- package/dist/components/checkbox/checkbox.d.ts +6 -0
- package/dist/components/checkbox/checkbox.js +15 -15
- package/dist/components/checkbox/checkbox.styles.d.ts +6 -0
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/dialog/dialog.component.d.ts +6 -0
- package/dist/components/dialog/dialog.component.js +20 -20
- package/dist/components/dialog/dialog.d.ts +6 -0
- package/dist/components/dialog/dialog.js +21 -21
- package/dist/components/dialog/dialog.styles.d.ts +6 -0
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/divider/divider.component.d.ts +6 -0
- package/dist/components/divider/divider.component.js +4 -4
- package/dist/components/divider/divider.d.ts +6 -0
- package/dist/components/divider/divider.js +5 -5
- package/dist/components/divider/divider.styles.d.ts +6 -0
- package/dist/components/divider/divider.styles.js +1 -1
- package/dist/components/drawer/drawer.component.d.ts +6 -0
- package/dist/components/drawer/drawer.component.js +20 -20
- package/dist/components/drawer/drawer.d.ts +6 -0
- package/dist/components/drawer/drawer.js +21 -21
- package/dist/components/drawer/drawer.styles.d.ts +6 -0
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.d.ts +6 -0
- package/dist/components/dropdown/dropdown.component.js +11 -11
- package/dist/components/dropdown/dropdown.d.ts +6 -0
- package/dist/components/dropdown/dropdown.js +12 -12
- package/dist/components/dropdown/dropdown.styles.d.ts +6 -0
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- 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 +6 -0
- package/dist/components/icon/icon.component.js +8 -8
- package/dist/components/icon/icon.d.ts +6 -0
- package/dist/components/icon/icon.js +9 -9
- package/dist/components/icon/icon.styles.d.ts +6 -0
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.d.ts +6 -0
- package/dist/components/icon/library.default.d.ts +6 -0
- package/dist/components/icon/library.default.js +2 -2
- package/dist/components/icon/library.js +4 -4
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.d.ts +6 -0
- package/dist/components/icon-button/icon-button.component.js +10 -10
- package/dist/components/icon-button/icon-button.d.ts +6 -0
- package/dist/components/icon-button/icon-button.js +11 -11
- package/dist/components/icon-button/icon-button.styles.d.ts +6 -0
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.component.d.ts +6 -0
- package/dist/components/input/input.component.js +18 -18
- package/dist/components/input/input.d.ts +6 -0
- package/dist/components/input/input.js +19 -19
- package/dist/components/input/input.styles.d.ts +6 -0
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/menu/menu.component.d.ts +6 -0
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.d.ts +6 -0
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu/menu.styles.d.ts +6 -0
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.d.ts +6 -0
- package/dist/components/menu-item/menu-item.component.js +18 -18
- package/dist/components/menu-item/menu-item.d.ts +6 -0
- package/dist/components/menu-item/menu-item.js +19 -19
- package/dist/components/menu-item/menu-item.styles.d.ts +6 -0
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-item/submenu-controller.d.ts +6 -0
- package/dist/components/menu-item/submenu-controller.js +4 -4
- package/dist/components/menu-label/menu-label.component.d.ts +6 -0
- package/dist/components/menu-label/menu-label.component.js +6 -6
- package/dist/components/menu-label/menu-label.d.ts +6 -0
- package/dist/components/menu-label/menu-label.js +7 -7
- package/dist/components/menu-label/menu-label.styles.d.ts +6 -0
- package/dist/components/menu-label/menu-label.styles.js +1 -1
- package/dist/components/nav-item/nav-item.component.js +6 -6
- package/dist/components/nav-item/nav-item.js +7 -7
- package/dist/components/optgroup/optgroup.component.js +6 -6
- package/dist/components/optgroup/optgroup.js +7 -7
- package/dist/components/option/option.component.d.ts +6 -0
- package/dist/components/option/option.component.js +12 -12
- package/dist/components/option/option.d.ts +6 -0
- package/dist/components/option/option.js +13 -13
- package/dist/components/option/option.styles.d.ts +6 -0
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/popup/popup.component.d.ts +6 -0
- package/dist/components/popup/popup.component.js +3 -3
- package/dist/components/popup/popup.d.ts +6 -0
- package/dist/components/popup/popup.js +4 -4
- package/dist/components/popup/popup.styles.d.ts +6 -0
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +24 -24
- package/dist/components/prio-nav/prio-nav.js +25 -25
- package/dist/components/progress-bar/progress-bar.component.d.ts +6 -0
- package/dist/components/progress-bar/progress-bar.component.js +5 -5
- package/dist/components/progress-bar/progress-bar.d.ts +6 -0
- package/dist/components/progress-bar/progress-bar.js +6 -6
- package/dist/components/progress-bar/progress-bar.styles.d.ts +6 -0
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.d.ts +6 -0
- package/dist/components/progress-ring/progress-ring.component.js +5 -5
- package/dist/components/progress-ring/progress-ring.d.ts +6 -0
- package/dist/components/progress-ring/progress-ring.js +6 -6
- package/dist/components/progress-ring/progress-ring.styles.d.ts +6 -0
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.component.d.ts +6 -0
- package/dist/components/radio/radio.component.js +10 -10
- package/dist/components/radio/radio.d.ts +6 -0
- package/dist/components/radio/radio.js +11 -11
- package/dist/components/radio/radio.styles.d.ts +6 -0
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.d.ts +6 -0
- package/dist/components/radio-button/radio-button.component.js +6 -6
- package/dist/components/radio-button/radio-button.d.ts +6 -0
- package/dist/components/radio-button/radio-button.js +7 -7
- package/dist/components/radio-button/radio-button.styles.d.ts +6 -0
- package/dist/components/radio-button/radio-button.styles.js +2 -2
- package/dist/components/radio-group/radio-group.component.d.ts +6 -0
- package/dist/components/radio-group/radio-group.component.js +9 -9
- package/dist/components/radio-group/radio-group.d.ts +6 -0
- package/dist/components/radio-group/radio-group.js +10 -10
- package/dist/components/radio-group/radio-group.styles.d.ts +6 -0
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/select/select.component.d.ts +6 -0
- package/dist/components/select/select.component.js +25 -25
- package/dist/components/select/select.d.ts +6 -0
- package/dist/components/select/select.js +26 -26
- package/dist/components/select/select.styles.d.ts +6 -0
- package/dist/components/select/select.styles.js +1 -1
- package/dist/components/side-nav/side-nav.component.js +23 -23
- package/dist/components/side-nav/side-nav.js +24 -24
- package/dist/components/spinner/spinner.component.d.ts +6 -0
- package/dist/components/spinner/spinner.component.js +5 -5
- package/dist/components/spinner/spinner.d.ts +6 -0
- package/dist/components/spinner/spinner.js +6 -6
- package/dist/components/spinner/spinner.styles.d.ts +6 -0
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.d.ts +6 -0
- package/dist/components/switch/switch.component.js +8 -8
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/switch/switch.js +9 -9
- package/dist/components/switch/switch.styles.d.ts +6 -0
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.d.ts +57 -0
- package/dist/components/tab/tab.component.js +24 -0
- package/dist/components/tab/tab.component.js.map +7 -0
- package/dist/components/tab/tab.custom.styles.d.ts +2 -0
- package/dist/components/tab/tab.custom.styles.js +8 -0
- package/dist/components/tab/tab.custom.styles.js.map +7 -0
- package/dist/components/tab/tab.d.ts +14 -0
- package/dist/components/tab/tab.js +25 -0
- package/dist/components/tab/tab.js.map +7 -0
- package/dist/components/tab/tab.styles.d.ts +8 -0
- package/dist/components/tab/tab.styles.js +8 -0
- package/dist/components/tab/tab.styles.js.map +7 -0
- package/dist/components/tab-group/tab-group.component.d.ts +91 -0
- package/dist/components/tab-group/tab-group.component.js +25 -0
- package/dist/components/tab-group/tab-group.component.js.map +7 -0
- package/dist/components/tab-group/tab-group.custom.styles.d.ts +2 -0
- package/dist/components/tab-group/tab-group.custom.styles.js +8 -0
- package/dist/components/tab-group/tab-group.custom.styles.js.map +7 -0
- package/dist/components/tab-group/tab-group.d.ts +14 -0
- package/dist/components/tab-group/tab-group.js +26 -0
- package/dist/components/tab-group/tab-group.js.map +7 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +8 -0
- package/dist/components/tab-group/tab-group.styles.js +8 -0
- package/dist/components/tab-group/tab-group.styles.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +32 -0
- package/dist/components/tab-panel/tab-panel.component.js +12 -0
- package/dist/components/tab-panel/tab-panel.component.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.custom.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.custom.styles.js +8 -0
- package/dist/components/tab-panel/tab-panel.custom.styles.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.d.ts +14 -0
- package/dist/components/tab-panel/tab-panel.js +13 -0
- package/dist/components/tab-panel/tab-panel.js.map +7 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.styles.js +8 -0
- package/dist/components/tab-panel/tab-panel.styles.js.map +7 -0
- package/dist/components/tag/tag.component.d.ts +6 -0
- package/dist/components/tag/tag.component.js +14 -14
- package/dist/components/tag/tag.d.ts +6 -0
- package/dist/components/tag/tag.js +15 -15
- package/dist/components/tag/tag.styles.d.ts +6 -0
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.d.ts +6 -0
- package/dist/components/textarea/textarea.component.js +8 -8
- package/dist/components/textarea/textarea.d.ts +6 -0
- package/dist/components/textarea/textarea.js +9 -9
- package/dist/components/textarea/textarea.styles.d.ts +6 -0
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.d.ts +6 -0
- package/dist/components/tooltip/tooltip.component.js +10 -10
- package/dist/components/tooltip/tooltip.d.ts +6 -0
- package/dist/components/tooltip/tooltip.js +11 -11
- package/dist/components/tooltip/tooltip.styles.d.ts +6 -0
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/custom-elements.json +852 -77
- package/dist/events/events.d.ts +3 -0
- package/dist/events/syn-after-hide.d.ts +6 -0
- package/dist/events/syn-after-show.d.ts +6 -0
- package/dist/events/syn-blur.d.ts +6 -0
- package/dist/events/syn-change.d.ts +6 -0
- package/dist/events/syn-clear.d.ts +6 -0
- package/dist/events/syn-close.d.ts +12 -0
- package/dist/events/syn-error.d.ts +6 -0
- package/dist/events/syn-focus.d.ts +6 -0
- package/dist/events/syn-hide.d.ts +6 -0
- package/dist/events/syn-initial-focus.d.ts +6 -0
- package/dist/events/syn-input.d.ts +6 -0
- package/dist/events/syn-invalid.d.ts +6 -0
- package/dist/events/syn-load.d.ts +6 -0
- package/dist/events/syn-remove.d.ts +6 -0
- package/dist/events/syn-reposition.d.ts +6 -0
- package/dist/events/syn-request-close.d.ts +6 -0
- package/dist/events/syn-select.d.ts +6 -0
- package/dist/events/syn-show.d.ts +6 -0
- package/dist/events/syn-tab-hide.d.ts +14 -0
- package/dist/events/syn-tab-show.d.ts +14 -0
- package/dist/internal/active-elements.d.ts +6 -0
- package/dist/internal/animate.d.ts +6 -0
- package/dist/internal/default-value.d.ts +6 -0
- package/dist/internal/event.d.ts +6 -0
- package/dist/internal/form.d.ts +6 -0
- package/dist/internal/modal.d.ts +6 -0
- package/dist/internal/offset.d.ts +6 -0
- package/dist/internal/scroll.d.ts +6 -0
- package/dist/internal/slot.d.ts +6 -0
- package/dist/internal/string.d.ts +6 -0
- package/dist/internal/synergy-element.d.ts +6 -0
- package/dist/internal/tabbable.d.ts +6 -0
- package/dist/internal/test/data-testid-helpers.d.ts +6 -0
- package/dist/internal/test/element-visible-overflow.d.ts +17 -0
- package/dist/internal/test/form-control-base-tests.d.ts +6 -0
- package/dist/internal/test/wait-for-scrolling.d.ts +15 -0
- package/dist/internal/test.d.ts +6 -0
- package/dist/internal/watch.d.ts +6 -0
- package/dist/styles/component.styles.d.ts +6 -0
- package/dist/styles/form-control.styles.d.ts +6 -0
- package/dist/styles/fouc.css +57 -0
- package/dist/styles/index.css +106 -0
- package/dist/{themes → styles}/utility.css +18 -8
- package/dist/synergy-autoloader.d.ts +6 -0
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy-autoloader.js.map +2 -2
- package/dist/synergy.d.ts +3 -0
- package/dist/synergy.js +148 -127
- package/dist/translations/de.d.ts +6 -0
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.d.ts +6 -0
- package/dist/translations/en.js +1 -1
- package/dist/utilities/animation-registry.d.ts +6 -0
- package/dist/utilities/animation-registry.js +1 -1
- package/dist/utilities/base-path.d.ts +6 -0
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/form.d.ts +6 -0
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.d.ts +6 -0
- package/dist/utilities/icon-library.js +4 -4
- package/dist/utilities/localize.d.ts +6 -0
- package/dist/utilities/localize.js +2 -2
- package/dist/vscode.html-custom-data.json +108 -17
- package/package.json +15 -6
- package/dist/chunks/chunk.2EI3TNL7.js.map +0 -7
- package/dist/chunks/chunk.2QOQY4ZG.js.map +0 -7
- package/dist/chunks/chunk.2RF7KO5I.js.map +0 -7
- package/dist/chunks/chunk.2RTVPLA4.js.map +0 -7
- package/dist/chunks/chunk.3F2OUNM2.js.map +0 -7
- package/dist/chunks/chunk.3FOVDOJX.js.map +0 -7
- package/dist/chunks/chunk.3GYQCNNB.js.map +0 -7
- package/dist/chunks/chunk.45VEGVRJ.js.map +0 -7
- package/dist/chunks/chunk.4DLDFGWQ.js.map +0 -7
- package/dist/chunks/chunk.5HWI7WDT.js.map +0 -7
- package/dist/chunks/chunk.66DXY7BX.js.map +0 -7
- package/dist/chunks/chunk.66MOXMDP.js.map +0 -7
- package/dist/chunks/chunk.66WXVGAW.js.map +0 -7
- package/dist/chunks/chunk.6C4JXZZN.js.map +0 -7
- package/dist/chunks/chunk.6SE6TKS4.js.map +0 -7
- package/dist/chunks/chunk.6XXPHG57.js.map +0 -7
- package/dist/chunks/chunk.7QPPPSLU.js.map +0 -7
- package/dist/chunks/chunk.A7IIJ2LL.js.map +0 -7
- package/dist/chunks/chunk.ACTJFDNK.js.map +0 -7
- package/dist/chunks/chunk.ALA3LG2Q.js.map +0 -7
- package/dist/chunks/chunk.APVUOX4X.js.map +0 -7
- package/dist/chunks/chunk.AVTU2BGE.js.map +0 -7
- package/dist/chunks/chunk.AW2HNLNP.js.map +0 -7
- package/dist/chunks/chunk.B3ETIETR.js.map +0 -7
- package/dist/chunks/chunk.BGHK4NQA.js.map +0 -7
- package/dist/chunks/chunk.BO74VWXK.js.map +0 -7
- package/dist/chunks/chunk.C7624ITA.js.map +0 -7
- package/dist/chunks/chunk.CFIQXXMW.js.map +0 -7
- package/dist/chunks/chunk.CWZ4FEAV.js.map +0 -7
- package/dist/chunks/chunk.CXLU3VIF.js.map +0 -7
- package/dist/chunks/chunk.CYJIE45P.js.map +0 -7
- package/dist/chunks/chunk.CZK6Y6J7.js.map +0 -7
- package/dist/chunks/chunk.DSIZBV7C.js.map +0 -7
- package/dist/chunks/chunk.EJQN3JHV.js.map +0 -7
- package/dist/chunks/chunk.EX6PHTKD.js.map +0 -7
- package/dist/chunks/chunk.GBARDV25.js.map +0 -7
- package/dist/chunks/chunk.GCU2ZNB2.js.map +0 -7
- package/dist/chunks/chunk.GJ4LHXBY.js.map +0 -7
- package/dist/chunks/chunk.GYZZGKK6.js.map +0 -7
- package/dist/chunks/chunk.HEJ6O4CS.js.map +0 -7
- package/dist/chunks/chunk.HQITSO5S.js.map +0 -7
- package/dist/chunks/chunk.HSJIUWQS.js.map +0 -7
- package/dist/chunks/chunk.HXB2YFEV.js.map +0 -7
- package/dist/chunks/chunk.II4PANKR.js.map +0 -7
- package/dist/chunks/chunk.IKG6CMRI.js.map +0 -7
- package/dist/chunks/chunk.INJJNBQC.js.map +0 -7
- package/dist/chunks/chunk.ITXLZUTJ.js.map +0 -7
- package/dist/chunks/chunk.JDBDBGQP.js.map +0 -7
- package/dist/chunks/chunk.JQUADXOI.js.map +0 -7
- package/dist/chunks/chunk.JUJZBRXD.js.map +0 -7
- package/dist/chunks/chunk.JXTXMTDM.js.map +0 -7
- package/dist/chunks/chunk.K6RAJOFH.js.map +0 -7
- package/dist/chunks/chunk.KLDQHER5.js.map +0 -7
- package/dist/chunks/chunk.LD43YPTP.js.map +0 -7
- package/dist/chunks/chunk.LJQ7LEPV.js.map +0 -7
- package/dist/chunks/chunk.M6WH7QEC.js.map +0 -7
- package/dist/chunks/chunk.MFMME6IU.js.map +0 -7
- package/dist/chunks/chunk.MIMALEWP.js.map +0 -7
- package/dist/chunks/chunk.MY4UOZQR.js.map +0 -7
- package/dist/chunks/chunk.N47PW3ZF.js.map +0 -7
- package/dist/chunks/chunk.NF2R6RZV.js.map +0 -7
- package/dist/chunks/chunk.NIGJFXQZ.js.map +0 -7
- package/dist/chunks/chunk.NIYKFSPR.js.map +0 -7
- package/dist/chunks/chunk.NP6RUQHV.js.map +0 -7
- package/dist/chunks/chunk.OB3BARBF.js.map +0 -7
- package/dist/chunks/chunk.OD3ZRSCN.js.map +0 -7
- package/dist/chunks/chunk.ODV5KTQX.js.map +0 -7
- package/dist/chunks/chunk.OF2RI2OE.js.map +0 -7
- package/dist/chunks/chunk.OF7YXNPE.js.map +0 -7
- package/dist/chunks/chunk.PDHVYHXD.js.map +0 -7
- package/dist/chunks/chunk.PHSJD47V.js.map +0 -7
- package/dist/chunks/chunk.PKO6FEOM.js.map +0 -7
- package/dist/chunks/chunk.PLYRNXO5.js.map +0 -7
- package/dist/chunks/chunk.PPX62TH5.js.map +0 -7
- package/dist/chunks/chunk.PS4UJFYT.js.map +0 -7
- package/dist/chunks/chunk.Q47TSDLT.js.map +0 -7
- package/dist/chunks/chunk.Q4CRAGN3.js.map +0 -7
- package/dist/chunks/chunk.Q77JF7AR.js.map +0 -7
- package/dist/chunks/chunk.QAUTITK3.js.map +0 -7
- package/dist/chunks/chunk.QERISKCA.js.map +0 -7
- package/dist/chunks/chunk.QNQNR3RY.js.map +0 -7
- package/dist/chunks/chunk.QPK7SLOE.js.map +0 -7
- package/dist/chunks/chunk.QWCMHMXL.js.map +0 -7
- package/dist/chunks/chunk.RIJKFEYZ.js.map +0 -7
- package/dist/chunks/chunk.RPBO222K.js.map +0 -7
- package/dist/chunks/chunk.RSSY7KPD.js.map +0 -7
- package/dist/chunks/chunk.SH6KJA7C.js.map +0 -7
- package/dist/chunks/chunk.SLCYXMHB.js.map +0 -7
- package/dist/chunks/chunk.TAO5QIIQ.js.map +0 -7
- package/dist/chunks/chunk.TDWPDWV4.js.map +0 -7
- package/dist/chunks/chunk.TTL762VF.js.map +0 -7
- package/dist/chunks/chunk.U5YGRMPN.js.map +0 -7
- package/dist/chunks/chunk.UK6QI2YX.js.map +0 -7
- package/dist/chunks/chunk.UMKKOHXB.js.map +0 -7
- package/dist/chunks/chunk.UNWDGUMS.js.map +0 -7
- package/dist/chunks/chunk.UOCGYAVP.js.map +0 -7
- package/dist/chunks/chunk.UR6LFFCN.js.map +0 -7
- package/dist/chunks/chunk.VLFUE45C.js.map +0 -7
- package/dist/chunks/chunk.VTKIDI7N.js.map +0 -7
- package/dist/chunks/chunk.VUMY7MJT.js.map +0 -7
- package/dist/chunks/chunk.WAW6B7ID.js.map +0 -7
- package/dist/chunks/chunk.WFAJR3FN.js.map +0 -7
- package/dist/chunks/chunk.X6JZ2IGM.js.map +0 -7
- package/dist/chunks/chunk.XBUAZUNQ.js.map +0 -7
- package/dist/chunks/chunk.XIUSSERX.js.map +0 -7
- package/dist/chunks/chunk.XKMNFCMU.js.map +0 -7
- package/dist/chunks/chunk.XN5TDOQI.js.map +0 -7
- package/dist/chunks/chunk.YHRXL2XR.js.map +0 -7
- package/dist/chunks/chunk.YMICCSK6.js.map +0 -7
- package/dist/chunks/chunk.YOW6LLS7.js.map +0 -7
- package/dist/chunks/chunk.Z6T7VV4R.js.map +0 -7
- package/dist/chunks/chunk.ZXRJ4KDL.js.map +0 -7
- /package/dist/chunks/{chunk.GGTB5RZK.js.map → chunk.7BKUPXMT.js.map} +0 -0
- /package/dist/chunks/{chunk.5POEZPXI.js.map → chunk.7DMCPIEI.js.map} +0 -0
- /package/dist/chunks/{chunk.QKQIHI54.js.map → chunk.BZNV5GLJ.js.map} +0 -0
- /package/dist/chunks/{chunk.LE3YHBAH.js.map → chunk.DQ2VNYUV.js.map} +0 -0
- /package/dist/chunks/{chunk.IIB7BIYK.js.map → chunk.PJZAQ4CL.js.map} +0 -0
- /package/dist/chunks/{chunk.3VIWDL7Y.js.map → chunk.PLXT7FHX.js.map} +0 -0
- /package/dist/chunks/{chunk.QQ6EVJKD.js.map → chunk.SUWJSKJY.js.map} +0 -0
- /package/dist/chunks/{chunk.QYY44FAQ.js.map → chunk.UPF36IJ7.js.map} +0 -0
- /package/dist/chunks/{chunk.3VG7IMNM.js.map → chunk.VYOPQCOF.js.map} +0 -0
- /package/dist/chunks/{chunk.3VQUQNL2.js.map → chunk.ZW7TXIG5.js.map} +0 -0
package/README.md
CHANGED
|
@@ -10,16 +10,67 @@ It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.styl
|
|
|
10
10
|
Run the following steps to install the required packages.
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
# Install the base library
|
|
14
|
-
npm install --save @synergy-design-system/components
|
|
13
|
+
# Install the base library
|
|
14
|
+
npm install --save @synergy-design-system/components
|
|
15
|
+
|
|
16
|
+
# Install the required design tokens
|
|
17
|
+
# (only needed if you do not install peerDeps automatically)
|
|
18
|
+
npm install --save @synergy-design-system/tokens
|
|
15
19
|
```
|
|
16
20
|
|
|
17
21
|
---
|
|
18
22
|
|
|
19
|
-
### 2. Load the design tokens
|
|
23
|
+
### 2. Load the design tokens (required) and utility classes (recommended)
|
|
20
24
|
|
|
21
25
|
The shipped components make heavy use of design tokens, which are provided via [@synergy-design-system/tokens](https://github.com/synergy-design-system/synergy-design-system/tree/main/packages/tokens). Make sure to follow the installation steps there for help on setting the tokens up. Usually it is enough to load the light or dark theme included there.
|
|
22
26
|
|
|
27
|
+
This package also comes with css utilities that are required to make synergy work.
|
|
28
|
+
You may either load all of them in one bundle (recommended) or just include the bits that you need.
|
|
29
|
+
|
|
30
|
+
> When loading custom bits, please make sure to always include `dist/styles/utility.css`!
|
|
31
|
+
> Without these utilities, fullscreen components **will** not work as intended!
|
|
32
|
+
|
|
33
|
+
##### List of available css utilities
|
|
34
|
+
|
|
35
|
+
| Utility | Required? | Path | Description |
|
|
36
|
+
| :------ | :-------: | :------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
37
|
+
| fouc | | `dist/styles/fouc.css` | Defaults for handling [Flash of Undefined Components (FOUC)](https://www.abeautifulsite.net/posts/flash-of-undefined-custom-elements/). Scoped to only target Synergy Components to make sure it does not overlap with other custom elements already defined. |
|
|
38
|
+
| utility | ✔ | `dist/styles/utility.css` | Utilities that have to be in the light DOM to make Synergy work. For example, these include scroll locking for fullscreen components. **This is required, your application layout may break if not available**! |
|
|
39
|
+
|
|
40
|
+
##### 2.1. Loading all css utilities (recommended)
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<!-- Example 1: Loading all utility functions -->
|
|
44
|
+
<!doctype html>
|
|
45
|
+
<html lang="en">
|
|
46
|
+
<head>
|
|
47
|
+
<meta charset="UTF-8" />
|
|
48
|
+
<link
|
|
49
|
+
rel="stylesheet"
|
|
50
|
+
src="../node_modules/@synergy-design-system/components/dist/styles/index.css"
|
|
51
|
+
/>
|
|
52
|
+
</head>
|
|
53
|
+
<body></body>
|
|
54
|
+
</html>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
##### 2.2. Load only parts of the utilities
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<!-- Example 2: Loading only the required utility functions -->
|
|
61
|
+
<!doctype html>
|
|
62
|
+
<html lang="en">
|
|
63
|
+
<head>
|
|
64
|
+
<meta charset="UTF-8" />
|
|
65
|
+
<link
|
|
66
|
+
rel="stylesheet"
|
|
67
|
+
src="../node_modules/@synergy-design-system/components/dist/styles/utility.css"
|
|
68
|
+
/>
|
|
69
|
+
</head>
|
|
70
|
+
<body></body>
|
|
71
|
+
</html>
|
|
72
|
+
```
|
|
73
|
+
|
|
23
74
|
---
|
|
24
75
|
|
|
25
76
|
### 3. Define the elements
|
|
@@ -61,9 +112,8 @@ When using a build system, you should load the bundle in JavaScript or TypeScrip
|
|
|
61
112
|
// Do not forget to load the design tokens!
|
|
62
113
|
import "@synergy-design-system/tokens/themes/light.css";
|
|
63
114
|
|
|
64
|
-
// Optional, but highly recommended:
|
|
65
115
|
// Add the css utility functions.
|
|
66
|
-
import "@synergy-design-system/components/
|
|
116
|
+
import "@synergy-design-system/components/index.css";
|
|
67
117
|
|
|
68
118
|
// This will load synergy.js via the exports map
|
|
69
119
|
import "@synergy-design-system/components";
|
|
@@ -102,9 +152,8 @@ When using a build system, you may also load the bundle in JavaScript or TypeScr
|
|
|
102
152
|
// Do not forget to load the design tokens!
|
|
103
153
|
import "@synergy-design-system/tokens/themes/light.css";
|
|
104
154
|
|
|
105
|
-
// Optional, but highly recommended:
|
|
106
155
|
// Add the css utility functions.
|
|
107
|
-
import "@synergy-design-system/components/
|
|
156
|
+
import "@synergy-design-system/components/index.css";
|
|
108
157
|
|
|
109
158
|
// This will only load and define the button itself
|
|
110
159
|
import "@synergy-design-system/components/components/button/button.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utilities/base-path.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nlet basePath = '';\n\n/** Sets the library's base path to the specified directory. */\nexport function setBasePath(path: string) {\n basePath = path;\n}\n\n/**\n * Gets the library's base path.\n *\n * The base path is used to load assets such as icons and images, so it needs to be set for components to work properly.\n * By default, this script will look for a script ending in synergy.js or synergy-autoloader.js and set the base path\n * to the directory that contains that file. To override this behavior, you can add the data-synergy attribute to any\n * script on the page (it probably makes the most sense to attach it to the Synergy script, but it could also be on a\n * bundle). The value can be a local folder or it can point to a CORS-enabled endpoint such as a CDN.\n *\n * <script src=\"bundle.js\" data-synergy=\"/custom/base/path\"></script>\n *\n * Alternatively, you can set the base path manually using the exported setBasePath() function.\n *\n * @param subpath - An optional path to append to the base path.\n */\nexport function getBasePath(subpath = '') {\n if (!basePath) {\n const scripts = [...document.getElementsByTagName('script')] as HTMLScriptElement[];\n const configScript = scripts.find(script => script.hasAttribute('data-synergy'));\n\n if (configScript) {\n // Use the data-synergy attribute\n setBasePath(configScript.getAttribute('data-synergy')!);\n } else {\n const fallbackScript = scripts.find(s => {\n return /synergy(\\.min)?\\.js($|\\?)/.test(s.src) || /synergy-autoloader(\\.min)?\\.js($|\\?)/.test(s.src);\n });\n let path = '';\n\n if (fallbackScript) {\n path = fallbackScript.getAttribute('src')!;\n }\n\n setBasePath(path.split('/').slice(0, -1).join('/'));\n }\n }\n\n // Return the base path without a trailing slash. If one exists, append the subpath separated by a slash.\n return basePath.replace(/\\/$/, '') + (subpath ? `/${subpath.replace(/^\\//, '')}` : ``);\n}\n"],
|
|
5
|
+
"mappings": ";AAQA,IAAI,WAAW;AAGR,SAAS,YAAY,MAAc;AACxC,aAAW;AACb;AAiBO,SAAS,YAAY,UAAU,IAAI;AACxC,MAAI,CAAC,UAAU;AACb,UAAM,UAAU,CAAC,GAAG,SAAS,qBAAqB,QAAQ,CAAC;AAC3D,UAAM,eAAe,QAAQ,KAAK,YAAU,OAAO,aAAa,cAAc,CAAC;AAE/E,QAAI,cAAc;AAEhB,kBAAY,aAAa,aAAa,cAAc,CAAE;AAAA,IACxD,OAAO;AACL,YAAM,iBAAiB,QAAQ,KAAK,OAAK;AACvC,eAAO,4BAA4B,KAAK,EAAE,GAAG,KAAK,uCAAuC,KAAK,EAAE,GAAG;AAAA,MACrG,CAAC;AACD,UAAI,OAAO;AAEX,UAAI,gBAAgB;AAClB,eAAO,eAAe,aAAa,KAAK;AAAA,MAC1C;AAEA,kBAAY,KAAK,MAAM,GAAG,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,GAAG,CAAC;AAAA,IACpD;AAAA,EACF;AAGA,SAAO,SAAS,QAAQ,OAAO,EAAE,KAAK,UAAU,IAAI,QAAQ,QAAQ,OAAO,EAAE,CAAC,KAAK;AACrF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
breadcrumb_item_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.O6ZH6AOI.js";
|
|
4
4
|
import {
|
|
5
5
|
breadcrumb_item_custom_styles_default
|
|
6
6
|
} from "./chunk.NGIGPLN2.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WVVQK5TE.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.QJMO7V5R.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.TR376A4H.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -111,4 +111,4 @@ __decorateClass([
|
|
|
111
111
|
export {
|
|
112
112
|
SynBreadcrumbItem
|
|
113
113
|
};
|
|
114
|
-
//# sourceMappingURL=chunk.
|
|
114
|
+
//# sourceMappingURL=chunk.237KE22A.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/breadcrumb-item/breadcrumb-item.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport styles from './breadcrumb-item.styles.js';\nimport customStyles from './breadcrumb-item.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Breadcrumb Items are used inside [breadcrumbs](/components/breadcrumb) to represent different links.\n * @documentation https://synergy.style/components/breadcrumb-item\n * @status stable\n * @since 2.0\n *\n * @slot - The breadcrumb item's label.\n * @slot prefix - An optional prefix, usually an icon or icon button.\n * @slot suffix - An optional suffix, usually an icon or icon button.\n * @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If\n * you want to change it for all items in the group, set the separator on `<syn-breadcrumb>` instead.\n *\n * @csspart base - The component's base wrapper.\n * @csspart label - The breadcrumb item's label.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart separator - The container that wraps the separator.\n */\nexport default class SynBreadcrumbItem extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n private readonly hasSlotController = new HasSlotController(this, 'prefix', 'suffix');\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n\n @state() private renderType: 'button' | 'link' | 'drop-down' = 'button';\n\n /**\n * Optional URL to direct the user to when the breadcrumb item is activated. When set, a link will be rendered\n * internally. When unset, a button will be rendered instead.\n */\n @property() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @property() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** The `rel` attribute to use on the link. Only used when `href` is set. */\n @property() rel = 'noreferrer noopener';\n\n private setRenderType() {\n const hasDropdown =\n this.defaultSlot.assignedElements({ flatten: true }).filter(i => i.tagName.toLowerCase() === 'syn-dropdown')\n .length > 0;\n\n this.renderType = this.href ? 'link' : hasDropdown ? 'drop-down' : 'button';\n }\n\n @watch('href', { waitUntilFirstUpdate: true })\n hrefChanged() {\n this.setRenderType();\n }\n\n handleSlotChange() {\n this.setRenderType();\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n 'breadcrumb-item': true,\n 'breadcrumb-item--has-prefix': this.hasSlotController.test('prefix'),\n 'breadcrumb-item--has-suffix': this.hasSlotController.test('suffix')\n })}\n >\n <span part=\"prefix\" class=\"breadcrumb-item__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n\n ${this.renderType === 'link'\n ? html`\n <a\n part=\"label\"\n class=\"breadcrumb-item__label breadcrumb-item__label--link\"\n href=\"${this.href!}\"\n target=\"${ifDefined(this.target ? this.target : undefined)}\"\n rel=${ifDefined(this.target ? this.rel : undefined)}\n >\n <slot @slotchange=${this.handleSlotChange}></slot>\n </a>\n `\n : ''}\n ${this.renderType === 'button' ? html`\n <button part=\"label\" type=\"button\" class=\"breadcrumb-item__label breadcrumb-item__label--button\">\n <slot @slotchange=${this.handleSlotChange}></slot>\n </button>\n ` : ''}\n\n ${this.renderType === 'drop-down'\n ? html`\n <div part=\"label\" class=\"breadcrumb-item__label breadcrumb-item__label--drop-down\">\n <slot @slotchange=${this.handleSlotChange}></slot>\n </div>\n `\n : ''}\n\n <span part=\"suffix\" class=\"breadcrumb-item__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n\n <span part=\"separator\" class=\"breadcrumb-item__separator\" aria-hidden=\"true\">\n <slot name=\"separator\"></slot>\n </span>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,UAAU,OAAO,aAAa;AA0BvC,IAAqB,oBAArB,cAA+C,eAAe;AAAA,EAA9D;AAAA;AAGE,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,UAAU,QAAQ;AAI1E,SAAQ,aAA8C;AAYnD,eAAM;AAAA;AAAA,EAEV,gBAAgB;AACtB,UAAM,cACJ,KAAK,YAAY,iBAAiB,EAAE,SAAS,KAAK,CAAC,EAAE,OAAO,OAAK,EAAE,QAAQ,YAAY,MAAM,cAAc,EACxG,SAAS;AAEd,SAAK,aAAa,KAAK,OAAO,SAAS,cAAc,cAAc;AAAA,EACrE;AAAA,EAGA,cAAc;AACZ,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,mBAAmB;AACjB,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,mBAAmB;AAAA,MACnB,+BAA+B,KAAK,kBAAkB,KAAK,QAAQ;AAAA,MACnE,+BAA+B,KAAK,kBAAkB,KAAK,QAAQ;AAAA,IACrE,CAAC,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAMA,KAAK,eAAe,SAClB;AAAA;AAAA;AAAA;AAAA,wBAIY,KAAK,IAAK;AAAA,0BACR,UAAU,KAAK,SAAS,KAAK,SAAS,MAAS,CAAC;AAAA,sBACpD,UAAU,KAAK,SAAS,KAAK,MAAM,MAAS,CAAC;AAAA;AAAA,oCAE/B,KAAK,gBAAgB;AAAA;AAAA,gBAG7C,EAAE;AAAA,YACF,KAAK,eAAe,WAAW;AAAA;AAAA,oCAEP,KAAK,gBAAgB;AAAA;AAAA,gBAEzC,EAAE;AAAA;AAAA,YAEN,KAAK,eAAe,cAClB;AAAA;AAAA,sCAEwB,KAAK,gBAAgB;AAAA;AAAA,kBAG7C,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWd;AACF;AAzFqB,kBACZ,SAAyB,CAAC,0BAAiB,gCAAQ,qCAAY;AAI3C;AAAA,EAA1B,MAAM,kBAAkB;AAAA,GALN,kBAKQ;AAEV;AAAA,EAAhB,MAAM;AAAA,GAPY,kBAOF;AAML;AAAA,EAAX,SAAS;AAAA,GAbS,kBAaP;AAGA;AAAA,EAAX,SAAS;AAAA,GAhBS,kBAgBP;AAGA;AAAA,EAAX,SAAS;AAAA,GAnBS,kBAmBP;AAWZ;AAAA,EADC,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA7B1B,kBA8BnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSwitch
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4MRMTDXI.js";
|
|
4
4
|
|
|
5
5
|
// src/components/switch/switch.ts
|
|
6
6
|
var switch_default = SynSwitch;
|
|
@@ -9,4 +9,4 @@ SynSwitch.define("syn-switch");
|
|
|
9
9
|
export {
|
|
10
10
|
switch_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.26ENGZ3W.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/switch/switch.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport SynSwitch from './switch.component.js';\n\nexport * from './switch.component.js';\nexport default SynSwitch;\n\nSynSwitch.define('syn-switch');\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'syn-switch': SynSwitch;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;AAWA,IAAO,iBAAQ;AAEf,UAAU,OAAO,YAAY;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
option_styles_default
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IVM3BGRH.js";
|
|
4
4
|
import {
|
|
5
5
|
option_custom_styles_default
|
|
6
6
|
} from "./chunk.3B24TYVN.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.UAFGFK3T.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.QJMO7V5R.js";
|
|
13
13
|
import {
|
|
14
14
|
LocalizeController
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.E3KW3KQM.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement,
|
|
18
18
|
component_styles_default
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.TR376A4H.js";
|
|
20
20
|
import {
|
|
21
21
|
__decorateClass
|
|
22
22
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -144,4 +144,4 @@ __decorateClass([
|
|
|
144
144
|
export {
|
|
145
145
|
SynOption
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=chunk.
|
|
147
|
+
//# sourceMappingURL=chunk.2F7VZ6GN.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/option/option.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './option.styles.js';\nimport customStyles from './option.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Options define the selectable items within various form controls such as [select](/components/select).\n * @documentation https://synergy.style/components/option\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The option's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n *\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart base - The component's base wrapper.\n * @csspart label - The option's label.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n */\nexport default class SynOption extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n private cachedTextLabel: string;\n // @ts-expect-error - Controller is currently unused\n private readonly localize = new LocalizeController(this);\n\n @query('.option__label') defaultSlot: HTMLSlotElement;\n\n @state() current = false; // the user has keyed into the option, but hasn't selected it yet (shows a highlight)\n @state() selected = false; // the option is selected and has aria-selected=\"true\"\n @state() hasHover = false; // we need this because Safari doesn't honor :hover styles while dragging\n\n /**\n * The option's value. When selected, the containing form control will receive this value. The value must be unique\n * from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing\n * multiple values.\n */\n @property({ reflect: true }) value = '';\n\n /** Draws the option in a disabled state, preventing selection. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'option');\n this.setAttribute('aria-selected', 'false');\n }\n\n private handleDefaultSlotChange() {\n const textLabel = this.getTextLabel();\n\n // Ignore the first time the label is set\n if (typeof this.cachedTextLabel === 'undefined') {\n this.cachedTextLabel = textLabel;\n return;\n }\n\n // When the label changes, emit a slotchange event so parent controls see it\n if (textLabel !== this.cachedTextLabel) {\n this.cachedTextLabel = textLabel;\n this.emit('slotchange', { bubbles: true, composed: false, cancelable: false });\n }\n }\n\n private handleMouseEnter() {\n this.hasHover = true;\n }\n\n private handleMouseLeave() {\n this.hasHover = false;\n }\n\n @watch('disabled')\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n @watch('selected')\n handleSelectedChange() {\n this.setAttribute('aria-selected', this.selected ? 'true' : 'false');\n }\n\n @watch('value')\n handleValueChange() {\n // Ensure the value is a string. This ensures the next line doesn't error and allows framework users to pass numbers\n // instead of requiring them to cast the value to a string.\n if (typeof this.value !== 'string') {\n this.value = String(this.value);\n }\n\n if (this.value.includes(' ')) {\n console.error(`Option values cannot include a space. All spaces have been replaced with underscores.`, this);\n this.value = this.value.replace(/ /g, '_');\n }\n }\n\n /** Returns a plain text label based on the option's content. */\n getTextLabel() {\n const nodes = this.childNodes;\n let label = '';\n\n [...nodes].forEach(node => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n if (!(node as HTMLElement).hasAttribute('slot')) {\n label += (node as HTMLElement).textContent;\n }\n }\n\n if (node.nodeType === Node.TEXT_NODE) {\n label += node.textContent;\n }\n });\n\n return label.trim();\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n option: true,\n 'option--current': this.current,\n 'option--disabled': this.disabled,\n 'option--selected': this.selected,\n 'option--hover': this.hasHover\n })}\n @mouseenter=${this.handleMouseEnter}\n @mouseleave=${this.handleMouseLeave}\n >\n <syn-icon part=\"checked-icon\" class=\"option__check\" name=\"check\" library=\"system\" aria-hidden=\"true\"></syn-icon>\n <slot part=\"prefix\" name=\"prefix\" class=\"option__prefix\"></slot>\n <slot part=\"label\" class=\"option__label\" @slotchange=${this.handleDefaultSlotChange}></slot>\n <slot part=\"suffix\" name=\"suffix\" class=\"option__suffix\"></slot>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AA2BvC,IAAqB,YAArB,cAAuC,eAAe;AAAA,EAAtD;AAAA;AAME;AAAA,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAI9C,mBAAU;AACV,oBAAW;AACX,oBAAW;AAOS,iBAAQ;AAGO,oBAAW;AAAA;AAAA,EAEvD,oBAAoB;AAClB,UAAM,kBAAkB;AACxB,SAAK,aAAa,QAAQ,QAAQ;AAClC,SAAK,aAAa,iBAAiB,OAAO;AAAA,EAC5C;AAAA,EAEQ,0BAA0B;AAChC,UAAM,YAAY,KAAK,aAAa;AAGpC,QAAI,OAAO,KAAK,oBAAoB,aAAa;AAC/C,WAAK,kBAAkB;AACvB;AAAA,IACF;AAGA,QAAI,cAAc,KAAK,iBAAiB;AACtC,WAAK,kBAAkB;AACvB,WAAK,KAAK,cAAc,EAAE,SAAS,MAAM,UAAU,OAAO,YAAY,MAAM,CAAC;AAAA,IAC/E;AAAA,EACF;AAAA,EAEQ,mBAAmB;AACzB,SAAK,WAAW;AAAA,EAClB;AAAA,EAEQ,mBAAmB;AACzB,SAAK,WAAW;AAAA,EAClB;AAAA,EAGA,uBAAuB;AACrB,SAAK,aAAa,iBAAiB,KAAK,WAAW,SAAS,OAAO;AAAA,EACrE;AAAA,EAGA,uBAAuB;AACrB,SAAK,aAAa,iBAAiB,KAAK,WAAW,SAAS,OAAO;AAAA,EACrE;AAAA,EAGA,oBAAoB;AAGlB,QAAI,OAAO,KAAK,UAAU,UAAU;AAClC,WAAK,QAAQ,OAAO,KAAK,KAAK;AAAA,IAChC;AAEA,QAAI,KAAK,MAAM,SAAS,GAAG,GAAG;AAC5B,cAAQ,MAAM,yFAAyF,IAAI;AAC3G,WAAK,QAAQ,KAAK,MAAM,QAAQ,MAAM,GAAG;AAAA,IAC3C;AAAA,EACF;AAAA;AAAA,EAGA,eAAe;AACb,UAAM,QAAQ,KAAK;AACnB,QAAI,QAAQ;AAEZ,KAAC,GAAG,KAAK,EAAE,QAAQ,UAAQ;AACzB,UAAI,KAAK,aAAa,KAAK,cAAc;AACvC,YAAI,CAAE,KAAqB,aAAa,MAAM,GAAG;AAC/C,mBAAU,KAAqB;AAAA,QACjC;AAAA,MACF;AAEA,UAAI,KAAK,aAAa,KAAK,WAAW;AACpC,iBAAS,KAAK;AAAA,MAChB;AAAA,IACF,CAAC;AAED,WAAO,MAAM,KAAK;AAAA,EACpB;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA;AAAA,gBAGK,SAAS;AAAA,MACf,QAAQ;AAAA,MACR,mBAAmB,KAAK;AAAA,MACxB,oBAAoB,KAAK;AAAA,MACzB,oBAAoB,KAAK;AAAA,MACzB,iBAAiB,KAAK;AAAA,IACxB,CAAC,CAAC;AAAA,sBACY,KAAK,gBAAgB;AAAA,sBACrB,KAAK,gBAAgB;AAAA;AAAA;AAAA;AAAA,+DAIoB,KAAK,uBAAuB;AAAA;AAAA;AAAA;AAAA,EAIzF;AACF;AAvHqB,UACZ,SAAyB,CAAC,0BAAiB,uBAAQ,4BAAY;AADnD,UAEZ,eAAe,EAAE,YAAY,QAAQ;AAMnB;AAAA,EAAxB,MAAM,gBAAgB;AAAA,GARJ,UAQM;AAEhB;AAAA,EAAR,MAAM;AAAA,GAVY,UAUV;AACA;AAAA,EAAR,MAAM;AAAA,GAXY,UAWV;AACA;AAAA,EAAR,MAAM;AAAA,GAZY,UAYV;AAOoB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAnBR,UAmBU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAtBvB,UAsByB;AAiC5C;AAAA,EADC,MAAM,UAAU;AAAA,GAtDE,UAuDnB;AAKA;AAAA,EADC,MAAM,UAAU;AAAA,GA3DE,UA4DnB;AAKA;AAAA,EADC,MAAM,OAAO;AAAA,GAhEK,UAiEnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tab_group_custom_styles_default
|
|
3
|
+
} from "./chunk.NGI67WXT.js";
|
|
4
|
+
import {
|
|
5
|
+
tab_group_styles_default
|
|
6
|
+
} from "./chunk.JQ47GWDL.js";
|
|
7
|
+
import {
|
|
8
|
+
scrollIntoView
|
|
9
|
+
} from "./chunk.RX7A4EQ2.js";
|
|
10
|
+
import {
|
|
11
|
+
SynIconButton
|
|
12
|
+
} from "./chunk.WEJ5VWT4.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.QJMO7V5R.js";
|
|
16
|
+
import {
|
|
17
|
+
LocalizeController
|
|
18
|
+
} from "./chunk.E3KW3KQM.js";
|
|
19
|
+
import {
|
|
20
|
+
SynergyElement,
|
|
21
|
+
component_styles_default
|
|
22
|
+
} from "./chunk.TR376A4H.js";
|
|
23
|
+
import {
|
|
24
|
+
__decorateClass,
|
|
25
|
+
__spreadValues
|
|
26
|
+
} from "./chunk.QNDC5KWA.js";
|
|
27
|
+
|
|
28
|
+
// src/components/tab-group/tab-group.component.ts
|
|
29
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
30
|
+
import { html } from "lit";
|
|
31
|
+
import { property, query, state } from "lit/decorators.js";
|
|
32
|
+
var SynTabGroup = class extends SynergyElement {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
this.localize = new LocalizeController(this);
|
|
36
|
+
this.tabs = [];
|
|
37
|
+
this.panels = [];
|
|
38
|
+
this.hasScrollControls = false;
|
|
39
|
+
this.placement = "top";
|
|
40
|
+
this.activation = "auto";
|
|
41
|
+
this.noScrollControls = false;
|
|
42
|
+
this.contained = false;
|
|
43
|
+
this.sharp = false;
|
|
44
|
+
}
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
const whenAllDefined = Promise.all([
|
|
47
|
+
customElements.whenDefined("syn-tab"),
|
|
48
|
+
customElements.whenDefined("syn-tab-panel")
|
|
49
|
+
]);
|
|
50
|
+
super.connectedCallback();
|
|
51
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
52
|
+
this.repositionIndicator();
|
|
53
|
+
this.updateScrollControls();
|
|
54
|
+
});
|
|
55
|
+
this.mutationObserver = new MutationObserver((mutations) => {
|
|
56
|
+
if (mutations.some((m) => !["aria-labelledby", "aria-controls"].includes(m.attributeName))) {
|
|
57
|
+
setTimeout(() => this.setAriaLabels());
|
|
58
|
+
}
|
|
59
|
+
if (mutations.some((m) => m.attributeName === "disabled")) {
|
|
60
|
+
this.syncTabsAndPanels();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
this.updateComplete.then(() => {
|
|
64
|
+
this.syncTabsAndPanels();
|
|
65
|
+
this.mutationObserver.observe(this, { attributes: true, childList: true, subtree: true });
|
|
66
|
+
this.resizeObserver.observe(this.nav);
|
|
67
|
+
whenAllDefined.then(() => {
|
|
68
|
+
const intersectionObserver = new IntersectionObserver((entries, observer) => {
|
|
69
|
+
var _a;
|
|
70
|
+
if (entries[0].intersectionRatio > 0) {
|
|
71
|
+
this.setAriaLabels();
|
|
72
|
+
this.setActiveTab((_a = this.getActiveTab()) != null ? _a : this.tabs[0], { emitEvents: false });
|
|
73
|
+
observer.unobserve(entries[0].target);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
intersectionObserver.observe(this.tabGroup);
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
disconnectedCallback() {
|
|
81
|
+
super.disconnectedCallback();
|
|
82
|
+
this.mutationObserver.disconnect();
|
|
83
|
+
this.resizeObserver.unobserve(this.nav);
|
|
84
|
+
}
|
|
85
|
+
getAllTabs(options = { includeDisabled: true }) {
|
|
86
|
+
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
87
|
+
return [...slot.assignedElements()].filter((el) => {
|
|
88
|
+
return options.includeDisabled ? el.tagName.toLowerCase() === "syn-tab" : el.tagName.toLowerCase() === "syn-tab" && !el.disabled;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
getAllPanels() {
|
|
92
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "syn-tab-panel");
|
|
93
|
+
}
|
|
94
|
+
getActiveTab() {
|
|
95
|
+
return this.tabs.find((el) => el.active);
|
|
96
|
+
}
|
|
97
|
+
handleClick(event) {
|
|
98
|
+
const target = event.target;
|
|
99
|
+
const tab = target.closest("syn-tab");
|
|
100
|
+
const tabGroup = tab == null ? void 0 : tab.closest("syn-tab-group");
|
|
101
|
+
if (tabGroup !== this) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (tab !== null) {
|
|
105
|
+
this.setActiveTab(tab, { scrollBehavior: "smooth" });
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
handleKeyDown(event) {
|
|
109
|
+
const target = event.target;
|
|
110
|
+
const tab = target.closest("syn-tab");
|
|
111
|
+
const tabGroup = tab == null ? void 0 : tab.closest("syn-tab-group");
|
|
112
|
+
if (tabGroup !== this) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (["Enter", " "].includes(event.key)) {
|
|
116
|
+
if (tab !== null) {
|
|
117
|
+
this.setActiveTab(tab, { scrollBehavior: "smooth" });
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
122
|
+
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
123
|
+
const isRtl = this.localize.dir() === "rtl";
|
|
124
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "syn-tab") {
|
|
125
|
+
let index = this.tabs.indexOf(activeEl);
|
|
126
|
+
if (event.key === "Home") {
|
|
127
|
+
index = 0;
|
|
128
|
+
} else if (event.key === "End") {
|
|
129
|
+
index = this.tabs.length - 1;
|
|
130
|
+
} else if (["top"].includes(this.placement) && event.key === (isRtl ? "ArrowRight" : "ArrowLeft") || ["start", "end"].includes(this.placement) && event.key === "ArrowUp") {
|
|
131
|
+
index--;
|
|
132
|
+
} else if (["top"].includes(this.placement) && event.key === (isRtl ? "ArrowLeft" : "ArrowRight") || ["start", "end"].includes(this.placement) && event.key === "ArrowDown") {
|
|
133
|
+
index++;
|
|
134
|
+
}
|
|
135
|
+
if (index < 0) {
|
|
136
|
+
index = this.tabs.length - 1;
|
|
137
|
+
}
|
|
138
|
+
if (index > this.tabs.length - 1) {
|
|
139
|
+
index = 0;
|
|
140
|
+
}
|
|
141
|
+
this.tabs[index].focus({ preventScroll: true });
|
|
142
|
+
if (this.activation === "auto") {
|
|
143
|
+
this.setActiveTab(this.tabs[index], { scrollBehavior: "smooth" });
|
|
144
|
+
}
|
|
145
|
+
if (["top"].includes(this.placement)) {
|
|
146
|
+
scrollIntoView(this.tabs[index], this.nav, "horizontal");
|
|
147
|
+
}
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
handleScrollToStart() {
|
|
153
|
+
this.nav.scroll({
|
|
154
|
+
left: this.localize.dir() === "rtl" ? this.nav.scrollLeft + this.nav.clientWidth : this.nav.scrollLeft - this.nav.clientWidth,
|
|
155
|
+
behavior: "smooth"
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
handleScrollToEnd() {
|
|
159
|
+
this.nav.scroll({
|
|
160
|
+
left: this.localize.dir() === "rtl" ? this.nav.scrollLeft - this.nav.clientWidth : this.nav.scrollLeft + this.nav.clientWidth,
|
|
161
|
+
behavior: "smooth"
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
setActiveTab(tab, options) {
|
|
165
|
+
options = __spreadValues({
|
|
166
|
+
emitEvents: true,
|
|
167
|
+
scrollBehavior: "auto"
|
|
168
|
+
}, options);
|
|
169
|
+
if (tab !== this.activeTab && !tab.disabled) {
|
|
170
|
+
const previousTab = this.activeTab;
|
|
171
|
+
this.activeTab = tab;
|
|
172
|
+
this.tabs.forEach((el) => el.active = el === this.activeTab);
|
|
173
|
+
this.panels.forEach((el) => {
|
|
174
|
+
var _a;
|
|
175
|
+
return el.active = el.name === ((_a = this.activeTab) == null ? void 0 : _a.panel);
|
|
176
|
+
});
|
|
177
|
+
this.syncIndicator();
|
|
178
|
+
if (["top"].includes(this.placement)) {
|
|
179
|
+
scrollIntoView(this.activeTab, this.nav, "horizontal", options.scrollBehavior);
|
|
180
|
+
}
|
|
181
|
+
if (options.emitEvents) {
|
|
182
|
+
if (previousTab) {
|
|
183
|
+
this.emit("syn-tab-hide", { detail: { name: previousTab.panel } });
|
|
184
|
+
}
|
|
185
|
+
this.emit("syn-tab-show", { detail: { name: this.activeTab.panel } });
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
setAriaLabels() {
|
|
190
|
+
this.tabs.forEach((tab) => {
|
|
191
|
+
const panel = this.panels.find((el) => el.name === tab.panel);
|
|
192
|
+
if (panel) {
|
|
193
|
+
tab.setAttribute("aria-controls", panel.getAttribute("id"));
|
|
194
|
+
panel.setAttribute("aria-labelledby", tab.getAttribute("id"));
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
repositionIndicator() {
|
|
199
|
+
const currentTab = this.getActiveTab();
|
|
200
|
+
if (!currentTab) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
const width = currentTab.clientWidth;
|
|
204
|
+
const height = currentTab.clientHeight;
|
|
205
|
+
const isRtl = this.localize.dir() === "rtl";
|
|
206
|
+
const allTabs = this.getAllTabs();
|
|
207
|
+
const precedingTabs = allTabs.slice(0, allTabs.indexOf(currentTab));
|
|
208
|
+
const offset = precedingTabs.reduce(
|
|
209
|
+
(previous, current) => ({
|
|
210
|
+
left: previous.left + current.clientWidth,
|
|
211
|
+
top: previous.top + current.clientHeight
|
|
212
|
+
}),
|
|
213
|
+
{ left: 0, top: 0 }
|
|
214
|
+
);
|
|
215
|
+
switch (this.placement) {
|
|
216
|
+
case "top":
|
|
217
|
+
this.indicator.style.width = `calc(${width}px - ${this.contained || this.sharp ? "2 * var(--syn-spacing-large)" : "0px"})`;
|
|
218
|
+
this.indicator.style.height = "auto";
|
|
219
|
+
this.indicator.style.translate = `calc(${isRtl ? "-" : ""}1 * (${offset.left}px + ${this.contained || this.sharp ? "var(--syn-spacing-large)" : "0px"}))`;
|
|
220
|
+
break;
|
|
221
|
+
case "start":
|
|
222
|
+
case "end":
|
|
223
|
+
this.indicator.style.width = "auto";
|
|
224
|
+
this.indicator.style.height = `calc(${height}px - ${this.contained || this.sharp ? "2 * var(--syn-spacing-small)" : "0px"})`;
|
|
225
|
+
this.indicator.style.translate = `0 calc(${offset.top}px + ${this.contained || this.sharp ? "var(--syn-spacing-small)" : "0px"})`;
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
// This stores tabs and panels so we can refer to a cache instead of calling querySelectorAll() multiple times.
|
|
230
|
+
syncTabsAndPanels() {
|
|
231
|
+
this.tabs = this.getAllTabs({ includeDisabled: false });
|
|
232
|
+
this.panels = this.getAllPanels();
|
|
233
|
+
this.syncIndicator();
|
|
234
|
+
this.updateComplete.then(() => this.updateScrollControls());
|
|
235
|
+
}
|
|
236
|
+
updateScrollControls() {
|
|
237
|
+
if (this.noScrollControls) {
|
|
238
|
+
this.hasScrollControls = false;
|
|
239
|
+
} else {
|
|
240
|
+
this.hasScrollControls = ["top"].includes(this.placement) && this.nav.scrollWidth > this.nav.clientWidth + 1;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
syncIndicator() {
|
|
244
|
+
const tab = this.getActiveTab();
|
|
245
|
+
if (tab) {
|
|
246
|
+
this.indicator.style.display = "block";
|
|
247
|
+
this.repositionIndicator();
|
|
248
|
+
} else {
|
|
249
|
+
this.indicator.style.display = "none";
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/** Shows the specified tab panel. */
|
|
253
|
+
show(panel) {
|
|
254
|
+
const tab = this.tabs.find((el) => el.panel === panel);
|
|
255
|
+
if (tab) {
|
|
256
|
+
this.setActiveTab(tab, { scrollBehavior: "smooth" });
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
render() {
|
|
260
|
+
return html`
|
|
261
|
+
<div
|
|
262
|
+
part="base"
|
|
263
|
+
class=${classMap({
|
|
264
|
+
"tab-group": true,
|
|
265
|
+
"tab-group--top": this.placement === "top",
|
|
266
|
+
"tab-group--start": this.placement === "start",
|
|
267
|
+
"tab-group--end": this.placement === "end",
|
|
268
|
+
"tab-group--rtl": this.localize.dir() === "rtl",
|
|
269
|
+
"tab-group--has-scroll-controls": this.hasScrollControls,
|
|
270
|
+
"tab-group--contained": this.contained,
|
|
271
|
+
"tab-group--sharp": this.sharp
|
|
272
|
+
})}
|
|
273
|
+
@click=${this.handleClick}
|
|
274
|
+
@keydown=${this.handleKeyDown}
|
|
275
|
+
>
|
|
276
|
+
<div class="tab-group__nav-container" part="nav">
|
|
277
|
+
${this.hasScrollControls ? html`
|
|
278
|
+
<syn-icon-button
|
|
279
|
+
part="scroll-button scroll-button--start"
|
|
280
|
+
exportparts="base:scroll-button__base"
|
|
281
|
+
class="tab-group__scroll-button tab-group__scroll-button--start"
|
|
282
|
+
name="chevron-right"
|
|
283
|
+
library="system"
|
|
284
|
+
label=${this.localize.term("scrollToStart")}
|
|
285
|
+
@click=${this.handleScrollToStart}
|
|
286
|
+
></syn-icon-button>
|
|
287
|
+
` : ""}
|
|
288
|
+
|
|
289
|
+
<div class="tab-group__nav">
|
|
290
|
+
<div part="tabs" class="tab-group__tabs" role="tablist">
|
|
291
|
+
<div part="active-tab-indicator" class="tab-group__indicator"></div>
|
|
292
|
+
<slot name="nav" @slotchange=${this.syncTabsAndPanels}></slot>
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
${this.hasScrollControls ? html`
|
|
297
|
+
<syn-icon-button
|
|
298
|
+
part="scroll-button scroll-button--end"
|
|
299
|
+
exportparts="base:scroll-button__base"
|
|
300
|
+
class="tab-group__scroll-button tab-group__scroll-button--end"
|
|
301
|
+
name="chevron-right"
|
|
302
|
+
library="system"
|
|
303
|
+
label=${this.localize.term("scrollToEnd")}
|
|
304
|
+
@click=${this.handleScrollToEnd}
|
|
305
|
+
></syn-icon-button>
|
|
306
|
+
` : ""}
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
<slot part="body" class="tab-group__body" @slotchange=${this.syncTabsAndPanels}></slot>
|
|
310
|
+
</div>
|
|
311
|
+
`;
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
SynTabGroup.styles = [component_styles_default, tab_group_styles_default, tab_group_custom_styles_default];
|
|
315
|
+
SynTabGroup.dependencies = { "syn-icon-button": SynIconButton };
|
|
316
|
+
__decorateClass([
|
|
317
|
+
query(".tab-group")
|
|
318
|
+
], SynTabGroup.prototype, "tabGroup", 2);
|
|
319
|
+
__decorateClass([
|
|
320
|
+
query(".tab-group__body")
|
|
321
|
+
], SynTabGroup.prototype, "body", 2);
|
|
322
|
+
__decorateClass([
|
|
323
|
+
query(".tab-group__nav")
|
|
324
|
+
], SynTabGroup.prototype, "nav", 2);
|
|
325
|
+
__decorateClass([
|
|
326
|
+
query(".tab-group__indicator")
|
|
327
|
+
], SynTabGroup.prototype, "indicator", 2);
|
|
328
|
+
__decorateClass([
|
|
329
|
+
state()
|
|
330
|
+
], SynTabGroup.prototype, "hasScrollControls", 2);
|
|
331
|
+
__decorateClass([
|
|
332
|
+
property()
|
|
333
|
+
], SynTabGroup.prototype, "placement", 2);
|
|
334
|
+
__decorateClass([
|
|
335
|
+
property()
|
|
336
|
+
], SynTabGroup.prototype, "activation", 2);
|
|
337
|
+
__decorateClass([
|
|
338
|
+
property({ attribute: "no-scroll-controls", type: Boolean })
|
|
339
|
+
], SynTabGroup.prototype, "noScrollControls", 2);
|
|
340
|
+
__decorateClass([
|
|
341
|
+
property({ type: Boolean })
|
|
342
|
+
], SynTabGroup.prototype, "contained", 2);
|
|
343
|
+
__decorateClass([
|
|
344
|
+
property({ type: Boolean })
|
|
345
|
+
], SynTabGroup.prototype, "sharp", 2);
|
|
346
|
+
__decorateClass([
|
|
347
|
+
watch("noScrollControls", { waitUntilFirstUpdate: true })
|
|
348
|
+
], SynTabGroup.prototype, "updateScrollControls", 1);
|
|
349
|
+
__decorateClass([
|
|
350
|
+
watch("placement", { waitUntilFirstUpdate: true })
|
|
351
|
+
], SynTabGroup.prototype, "syncIndicator", 1);
|
|
352
|
+
|
|
353
|
+
export {
|
|
354
|
+
SynTabGroup
|
|
355
|
+
};
|
|
356
|
+
//# sourceMappingURL=chunk.37QGQHZ6.js.map
|