@synergy-design-system/components 2.4.2 → 2.4.3
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 +5 -1
- package/dist/chunks/{chunk.4UZBHZB7.js → chunk.2BKN4SVL.js} +2 -2
- package/dist/chunks/{chunk.XXWU2N6Z.js → chunk.2BVNVTCJ.js} +2 -2
- package/dist/chunks/{chunk.7J3ICWNG.js → chunk.2FHYURSV.js} +2 -2
- package/dist/chunks/{chunk.5LL426KP.js → chunk.4H3F5YVU.js} +2 -2
- package/dist/chunks/{chunk.T3KEPARA.js → chunk.4HBNKWDI.js} +2 -2
- package/dist/chunks/{chunk.MI6OSBNZ.js → chunk.4HSU3RZA.js} +2 -2
- package/dist/chunks/{chunk.E5Q4S6J5.js → chunk.4UGAAIOV.js} +2 -2
- package/dist/chunks/{chunk.LIQFEI76.js → chunk.4ZAIWKYK.js} +2 -2
- package/dist/chunks/{chunk.AGX3EDVR.js → chunk.5BUBL7JY.js} +2 -2
- package/dist/chunks/{chunk.PLEO5ZHI.js → chunk.5C2N3OG3.js} +2 -2
- package/dist/chunks/{chunk.YA3UERHI.js → chunk.5CL6DHME.js} +2 -2
- package/dist/chunks/{chunk.N3MYRPRM.js → chunk.5KE7YYYL.js} +2 -2
- package/dist/chunks/{chunk.CKB73XBB.js → chunk.5UWGWBIX.js} +2 -2
- package/dist/chunks/{chunk.SAKDWMDC.js → chunk.6JHUWKC2.js} +3 -3
- package/dist/chunks/{chunk.MBWZTWQ3.js → chunk.7MRLMCDG.js} +5 -5
- package/dist/chunks/{chunk.5UBU4JQJ.js → chunk.A54YJOJZ.js} +2 -2
- package/dist/chunks/{chunk.QN4VTDCL.js → chunk.AD7URUHH.js} +2 -2
- package/dist/chunks/{chunk.ZDIP5E5M.js → chunk.AVNL6XBJ.js} +3 -3
- package/dist/chunks/{chunk.T4V4ARKQ.js → chunk.B4PYRXCV.js} +3 -3
- package/dist/chunks/{chunk.GLQRGWLN.js → chunk.BCREP7HQ.js} +2 -2
- package/dist/chunks/{chunk.MP6GCBDQ.js → chunk.CN4QRO22.js} +2 -2
- package/dist/chunks/{chunk.ZG6RQJZT.js → chunk.DCILBP5O.js} +2 -2
- package/dist/chunks/{chunk.BRQJBVSR.js → chunk.DFR3UNMT.js} +3 -3
- package/dist/chunks/{chunk.I5GHSBBB.js → chunk.DNYMFI4T.js} +2 -2
- package/dist/chunks/{chunk.X4BO4K4B.js → chunk.DOHCZXOF.js} +2 -2
- package/dist/chunks/{chunk.CX6BVBUN.js → chunk.DXNSNACZ.js} +2 -2
- package/dist/chunks/{chunk.HXW47ZEU.js → chunk.EHZE3CKH.js} +6 -6
- package/dist/chunks/{chunk.I7T6CYDB.js → chunk.F5LLLIE5.js} +3 -3
- package/dist/chunks/{chunk.5KKWOVVC.js → chunk.FO3NV7MY.js} +3 -3
- package/dist/chunks/{chunk.VVYBWDVV.js → chunk.FZKUXUK6.js} +3 -3
- package/dist/chunks/{chunk.XBUFNX4L.js → chunk.GCI7QWTQ.js} +2 -2
- package/dist/chunks/{chunk.KM4XNOFN.js → chunk.GJPZZH76.js} +2 -2
- package/dist/chunks/{chunk.3H2H5FNB.js → chunk.H4EFGKKT.js} +2 -2
- package/dist/chunks/{chunk.JSGXW7HG.js → chunk.IUBRJUHB.js} +2 -2
- package/dist/chunks/{chunk.YLOY6MCX.js → chunk.J47HF5GZ.js} +3 -3
- package/dist/chunks/{chunk.PJYYK2T7.js → chunk.JBSLSPA4.js} +2 -2
- package/dist/chunks/{chunk.3FSNN2LA.js → chunk.JBW7QDPF.js} +2 -2
- package/dist/chunks/{chunk.AL5JOFXG.js → chunk.KBUOEYFD.js} +2 -2
- package/dist/chunks/{chunk.WX7OJEBN.js → chunk.KDBBMF6R.js} +5 -5
- package/dist/chunks/{chunk.KEZEYBVJ.js → chunk.KOZGQJ42.js} +2 -2
- package/dist/chunks/{chunk.XJBZVH65.js → chunk.KP7ABNMV.js} +4 -4
- package/dist/chunks/{chunk.3F4PA2RJ.js → chunk.KU3GIITB.js} +2 -2
- package/dist/chunks/{chunk.ICJERNQU.js → chunk.LITNZ5UP.js} +2 -2
- package/dist/chunks/{chunk.YLOGCYYH.js → chunk.LLNHJVT6.js} +2 -2
- package/dist/chunks/{chunk.IPKUHOKD.js → chunk.LVMOATGP.js} +3 -3
- package/dist/chunks/{chunk.RVQ3X7WC.js → chunk.MIF4NFFN.js} +2 -2
- package/dist/chunks/{chunk.RVQ3X7WC.js.map → chunk.MIF4NFFN.js.map} +1 -1
- package/dist/chunks/{chunk.YYWFJREC.js → chunk.MLTJKLDB.js} +2 -2
- package/dist/chunks/{chunk.JKNV2DRD.js → chunk.MQMVF4PW.js} +3 -3
- package/dist/chunks/{chunk.LOVGEUYP.js → chunk.MVZJDKSR.js} +3 -3
- package/dist/chunks/{chunk.LOVGEUYP.js.map → chunk.MVZJDKSR.js.map} +1 -1
- package/dist/chunks/{chunk.3JFJNUVB.js → chunk.NCS3KNSS.js} +2 -2
- package/dist/chunks/{chunk.NATMLGVF.js → chunk.NH5UF5W4.js} +4 -4
- package/dist/chunks/{chunk.A7HLSENR.js → chunk.NMM47RXC.js} +2 -2
- package/dist/chunks/{chunk.6BAQMGDG.js → chunk.NUHI5YB7.js} +5 -5
- package/dist/chunks/{chunk.BJEVUOBO.js → chunk.OPAVUSG6.js} +3 -3
- package/dist/chunks/{chunk.OPOK7CZS.js → chunk.PD4GEYPT.js} +2 -2
- package/dist/chunks/{chunk.JJ6N7OHW.js → chunk.PVBLEKYQ.js} +2 -2
- package/dist/chunks/{chunk.6NWT6L3K.js → chunk.Q63T23NX.js} +2 -2
- package/dist/chunks/{chunk.DCR5ERAC.js → chunk.QGODDF6V.js} +2 -2
- package/dist/chunks/{chunk.OSLTEHUP.js → chunk.QH5LWFIU.js} +2 -2
- package/dist/chunks/{chunk.MMG5DA2N.js → chunk.R2MO73SN.js} +2 -2
- package/dist/chunks/{chunk.22E7SPMA.js → chunk.R7FWD6IV.js} +2 -2
- package/dist/chunks/{chunk.A2Z57FBZ.js → chunk.RILCNQ7U.js} +2 -2
- package/dist/chunks/{chunk.BALZJ5OU.js → chunk.SMPYVOTL.js} +2 -2
- package/dist/chunks/{chunk.GFUY2Z3E.js → chunk.STPTOC6W.js} +2 -2
- package/dist/chunks/{chunk.SBRYVEQN.js → chunk.SW3NDC4L.js} +2 -2
- package/dist/chunks/{chunk.YKKAQLY3.js → chunk.TFC66SL6.js} +5 -4
- package/dist/chunks/chunk.TFC66SL6.js.map +7 -0
- package/dist/chunks/{chunk.4O3MCCWE.js → chunk.TJADLTCQ.js} +9 -9
- package/dist/chunks/{chunk.KGXWML3K.js → chunk.TQMD3CRX.js} +2 -2
- package/dist/chunks/{chunk.FCS3RTNQ.js → chunk.UWNJQDZP.js} +3 -3
- package/dist/chunks/{chunk.3PATCZJL.js → chunk.VA5J6CGG.js} +2 -2
- package/dist/chunks/{chunk.TYKSQSYN.js → chunk.VHASVP7B.js} +3 -3
- package/dist/chunks/{chunk.6WF7O7RF.js → chunk.VNQF6LEZ.js} +2 -2
- package/dist/chunks/{chunk.3GS7GYS7.js → chunk.W2S2MTUW.js} +2 -2
- package/dist/chunks/{chunk.HYSKDMI3.js → chunk.WM3ZKNS4.js} +2 -2
- package/dist/chunks/{chunk.5Z23XOZH.js → chunk.XHVDKQO2.js} +2 -2
- package/dist/chunks/{chunk.ODDKTIMC.js → chunk.XMS3V7AX.js} +3 -3
- package/dist/chunks/{chunk.2RROJC65.js → chunk.XRRZVMQT.js} +2 -2
- package/dist/chunks/{chunk.QODDLPTZ.js → chunk.XVFSTDCI.js} +2 -2
- package/dist/chunks/{chunk.W67OQ7TE.js → chunk.Y4LO5L6L.js} +2 -2
- package/dist/chunks/{chunk.5QBWRU76.js → chunk.YLRQUWVH.js} +2 -2
- package/dist/chunks/{chunk.D4YRKGVK.js → chunk.Z2XKAE7D.js} +3 -3
- package/dist/chunks/{chunk.YCT4K4JT.js → chunk.ZBJXFMXI.js} +8 -6
- package/dist/chunks/{chunk.YCT4K4JT.js.map → chunk.ZBJXFMXI.js.map} +2 -2
- package/dist/chunks/{chunk.6GNLD5GO.js → chunk.ZBYQDVMH.js} +3 -3
- package/dist/components/accordion/accordion.component.js +3 -3
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.component.js +5 -5
- package/dist/components/alert/alert.js +6 -6
- package/dist/components/badge/badge.component.js +2 -2
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
- package/dist/components/breadcrumb/breadcrumb.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +4 -4
- package/dist/components/button/button.js +5 -5
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +3 -3
- package/dist/components/checkbox/checkbox.js +4 -4
- package/dist/components/details/details.component.js +3 -3
- package/dist/components/details/details.js +4 -4
- package/dist/components/dialog/dialog.component.js +4 -4
- package/dist/components/dialog/dialog.js +5 -5
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +4 -4
- package/dist/components/drawer/drawer.js +5 -5
- package/dist/components/dropdown/dropdown.component.js +3 -3
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/header/header.component.js +4 -4
- package/dist/components/header/header.js +5 -5
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -3
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/input/input.component.js +4 -4
- package/dist/components/input/input.js +5 -5
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +5 -5
- package/dist/components/menu-item/menu-item.js +6 -6
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/nav-item/nav-item.component.js +3 -3
- package/dist/components/nav-item/nav-item.js +4 -4
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +3 -3
- package/dist/components/option/option.js +4 -4
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/prio-nav/prio-nav.component.js +8 -8
- package/dist/components/prio-nav/prio-nav.js +9 -9
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/radio/radio.component.js +3 -3
- package/dist/components/radio/radio.js +4 -4
- package/dist/components/radio-button/radio-button.component.js +2 -2
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-group/radio-group.component.js +3 -3
- package/dist/components/radio-group/radio-group.js +4 -4
- package/dist/components/select/select.component.js +6 -6
- package/dist/components/select/select.js +7 -7
- package/dist/components/side-nav/side-nav.component.js +6 -6
- package/dist/components/side-nav/side-nav.js +7 -7
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.js +2 -2
- package/dist/components/switch/switch.js +3 -3
- package/dist/components/tab/tab.component.js +4 -4
- package/dist/components/tab/tab.js +5 -5
- package/dist/components/tab-group/tab-group.component.js +4 -4
- package/dist/components/tab-group/tab-group.js +5 -5
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.js +4 -4
- package/dist/components/tag/tag.js +5 -5
- package/dist/components/textarea/textarea.component.js +2 -2
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.component.js +3 -3
- package/dist/components/tooltip/tooltip.js +4 -4
- package/dist/custom-elements.json +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +87 -87
- package/package.json +3 -3
- package/dist/chunks/chunk.YKKAQLY3.js.map +0 -7
- /package/dist/chunks/{chunk.4UZBHZB7.js.map → chunk.2BKN4SVL.js.map} +0 -0
- /package/dist/chunks/{chunk.XXWU2N6Z.js.map → chunk.2BVNVTCJ.js.map} +0 -0
- /package/dist/chunks/{chunk.7J3ICWNG.js.map → chunk.2FHYURSV.js.map} +0 -0
- /package/dist/chunks/{chunk.5LL426KP.js.map → chunk.4H3F5YVU.js.map} +0 -0
- /package/dist/chunks/{chunk.T3KEPARA.js.map → chunk.4HBNKWDI.js.map} +0 -0
- /package/dist/chunks/{chunk.MI6OSBNZ.js.map → chunk.4HSU3RZA.js.map} +0 -0
- /package/dist/chunks/{chunk.E5Q4S6J5.js.map → chunk.4UGAAIOV.js.map} +0 -0
- /package/dist/chunks/{chunk.LIQFEI76.js.map → chunk.4ZAIWKYK.js.map} +0 -0
- /package/dist/chunks/{chunk.AGX3EDVR.js.map → chunk.5BUBL7JY.js.map} +0 -0
- /package/dist/chunks/{chunk.PLEO5ZHI.js.map → chunk.5C2N3OG3.js.map} +0 -0
- /package/dist/chunks/{chunk.YA3UERHI.js.map → chunk.5CL6DHME.js.map} +0 -0
- /package/dist/chunks/{chunk.N3MYRPRM.js.map → chunk.5KE7YYYL.js.map} +0 -0
- /package/dist/chunks/{chunk.CKB73XBB.js.map → chunk.5UWGWBIX.js.map} +0 -0
- /package/dist/chunks/{chunk.SAKDWMDC.js.map → chunk.6JHUWKC2.js.map} +0 -0
- /package/dist/chunks/{chunk.MBWZTWQ3.js.map → chunk.7MRLMCDG.js.map} +0 -0
- /package/dist/chunks/{chunk.5UBU4JQJ.js.map → chunk.A54YJOJZ.js.map} +0 -0
- /package/dist/chunks/{chunk.QN4VTDCL.js.map → chunk.AD7URUHH.js.map} +0 -0
- /package/dist/chunks/{chunk.ZDIP5E5M.js.map → chunk.AVNL6XBJ.js.map} +0 -0
- /package/dist/chunks/{chunk.T4V4ARKQ.js.map → chunk.B4PYRXCV.js.map} +0 -0
- /package/dist/chunks/{chunk.GLQRGWLN.js.map → chunk.BCREP7HQ.js.map} +0 -0
- /package/dist/chunks/{chunk.MP6GCBDQ.js.map → chunk.CN4QRO22.js.map} +0 -0
- /package/dist/chunks/{chunk.ZG6RQJZT.js.map → chunk.DCILBP5O.js.map} +0 -0
- /package/dist/chunks/{chunk.BRQJBVSR.js.map → chunk.DFR3UNMT.js.map} +0 -0
- /package/dist/chunks/{chunk.I5GHSBBB.js.map → chunk.DNYMFI4T.js.map} +0 -0
- /package/dist/chunks/{chunk.X4BO4K4B.js.map → chunk.DOHCZXOF.js.map} +0 -0
- /package/dist/chunks/{chunk.CX6BVBUN.js.map → chunk.DXNSNACZ.js.map} +0 -0
- /package/dist/chunks/{chunk.HXW47ZEU.js.map → chunk.EHZE3CKH.js.map} +0 -0
- /package/dist/chunks/{chunk.I7T6CYDB.js.map → chunk.F5LLLIE5.js.map} +0 -0
- /package/dist/chunks/{chunk.5KKWOVVC.js.map → chunk.FO3NV7MY.js.map} +0 -0
- /package/dist/chunks/{chunk.VVYBWDVV.js.map → chunk.FZKUXUK6.js.map} +0 -0
- /package/dist/chunks/{chunk.XBUFNX4L.js.map → chunk.GCI7QWTQ.js.map} +0 -0
- /package/dist/chunks/{chunk.KM4XNOFN.js.map → chunk.GJPZZH76.js.map} +0 -0
- /package/dist/chunks/{chunk.3H2H5FNB.js.map → chunk.H4EFGKKT.js.map} +0 -0
- /package/dist/chunks/{chunk.JSGXW7HG.js.map → chunk.IUBRJUHB.js.map} +0 -0
- /package/dist/chunks/{chunk.YLOY6MCX.js.map → chunk.J47HF5GZ.js.map} +0 -0
- /package/dist/chunks/{chunk.PJYYK2T7.js.map → chunk.JBSLSPA4.js.map} +0 -0
- /package/dist/chunks/{chunk.3FSNN2LA.js.map → chunk.JBW7QDPF.js.map} +0 -0
- /package/dist/chunks/{chunk.AL5JOFXG.js.map → chunk.KBUOEYFD.js.map} +0 -0
- /package/dist/chunks/{chunk.WX7OJEBN.js.map → chunk.KDBBMF6R.js.map} +0 -0
- /package/dist/chunks/{chunk.KEZEYBVJ.js.map → chunk.KOZGQJ42.js.map} +0 -0
- /package/dist/chunks/{chunk.XJBZVH65.js.map → chunk.KP7ABNMV.js.map} +0 -0
- /package/dist/chunks/{chunk.3F4PA2RJ.js.map → chunk.KU3GIITB.js.map} +0 -0
- /package/dist/chunks/{chunk.ICJERNQU.js.map → chunk.LITNZ5UP.js.map} +0 -0
- /package/dist/chunks/{chunk.YLOGCYYH.js.map → chunk.LLNHJVT6.js.map} +0 -0
- /package/dist/chunks/{chunk.IPKUHOKD.js.map → chunk.LVMOATGP.js.map} +0 -0
- /package/dist/chunks/{chunk.YYWFJREC.js.map → chunk.MLTJKLDB.js.map} +0 -0
- /package/dist/chunks/{chunk.JKNV2DRD.js.map → chunk.MQMVF4PW.js.map} +0 -0
- /package/dist/chunks/{chunk.3JFJNUVB.js.map → chunk.NCS3KNSS.js.map} +0 -0
- /package/dist/chunks/{chunk.NATMLGVF.js.map → chunk.NH5UF5W4.js.map} +0 -0
- /package/dist/chunks/{chunk.A7HLSENR.js.map → chunk.NMM47RXC.js.map} +0 -0
- /package/dist/chunks/{chunk.6BAQMGDG.js.map → chunk.NUHI5YB7.js.map} +0 -0
- /package/dist/chunks/{chunk.BJEVUOBO.js.map → chunk.OPAVUSG6.js.map} +0 -0
- /package/dist/chunks/{chunk.OPOK7CZS.js.map → chunk.PD4GEYPT.js.map} +0 -0
- /package/dist/chunks/{chunk.JJ6N7OHW.js.map → chunk.PVBLEKYQ.js.map} +0 -0
- /package/dist/chunks/{chunk.6NWT6L3K.js.map → chunk.Q63T23NX.js.map} +0 -0
- /package/dist/chunks/{chunk.DCR5ERAC.js.map → chunk.QGODDF6V.js.map} +0 -0
- /package/dist/chunks/{chunk.OSLTEHUP.js.map → chunk.QH5LWFIU.js.map} +0 -0
- /package/dist/chunks/{chunk.MMG5DA2N.js.map → chunk.R2MO73SN.js.map} +0 -0
- /package/dist/chunks/{chunk.22E7SPMA.js.map → chunk.R7FWD6IV.js.map} +0 -0
- /package/dist/chunks/{chunk.A2Z57FBZ.js.map → chunk.RILCNQ7U.js.map} +0 -0
- /package/dist/chunks/{chunk.BALZJ5OU.js.map → chunk.SMPYVOTL.js.map} +0 -0
- /package/dist/chunks/{chunk.GFUY2Z3E.js.map → chunk.STPTOC6W.js.map} +0 -0
- /package/dist/chunks/{chunk.SBRYVEQN.js.map → chunk.SW3NDC4L.js.map} +0 -0
- /package/dist/chunks/{chunk.4O3MCCWE.js.map → chunk.TJADLTCQ.js.map} +0 -0
- /package/dist/chunks/{chunk.KGXWML3K.js.map → chunk.TQMD3CRX.js.map} +0 -0
- /package/dist/chunks/{chunk.FCS3RTNQ.js.map → chunk.UWNJQDZP.js.map} +0 -0
- /package/dist/chunks/{chunk.3PATCZJL.js.map → chunk.VA5J6CGG.js.map} +0 -0
- /package/dist/chunks/{chunk.TYKSQSYN.js.map → chunk.VHASVP7B.js.map} +0 -0
- /package/dist/chunks/{chunk.6WF7O7RF.js.map → chunk.VNQF6LEZ.js.map} +0 -0
- /package/dist/chunks/{chunk.3GS7GYS7.js.map → chunk.W2S2MTUW.js.map} +0 -0
- /package/dist/chunks/{chunk.HYSKDMI3.js.map → chunk.WM3ZKNS4.js.map} +0 -0
- /package/dist/chunks/{chunk.5Z23XOZH.js.map → chunk.XHVDKQO2.js.map} +0 -0
- /package/dist/chunks/{chunk.ODDKTIMC.js.map → chunk.XMS3V7AX.js.map} +0 -0
- /package/dist/chunks/{chunk.2RROJC65.js.map → chunk.XRRZVMQT.js.map} +0 -0
- /package/dist/chunks/{chunk.QODDLPTZ.js.map → chunk.XVFSTDCI.js.map} +0 -0
- /package/dist/chunks/{chunk.W67OQ7TE.js.map → chunk.Y4LO5L6L.js.map} +0 -0
- /package/dist/chunks/{chunk.5QBWRU76.js.map → chunk.YLRQUWVH.js.map} +0 -0
- /package/dist/chunks/{chunk.D4YRKGVK.js.map → chunk.Z2XKAE7D.js.map} +0 -0
- /package/dist/chunks/{chunk.6GNLD5GO.js.map → chunk.ZBYQDVMH.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynSpinner
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NCS3KNSS.js";
|
|
4
4
|
|
|
5
5
|
// src/components/spinner/spinner.ts
|
|
6
6
|
var spinner_default = SynSpinner;
|
|
@@ -9,4 +9,4 @@ SynSpinner.define("syn-spinner");
|
|
|
9
9
|
export {
|
|
10
10
|
spinner_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.RILCNQ7U.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTabPanel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4ZAIWKYK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tab-panel/tab-panel.ts
|
|
6
6
|
var tab_panel_default = SynTabPanel;
|
|
@@ -9,4 +9,4 @@ SynTabPanel.define("syn-tab-panel");
|
|
|
9
9
|
export {
|
|
10
10
|
tab_panel_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.SMPYVOTL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.4H3F5YVU.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-button/radio-button.ts
|
|
6
6
|
var radio_button_default = SynRadioButton;
|
|
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.STPTOC6W.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTooltip
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ZBYQDVMH.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tooltip/tooltip.ts
|
|
6
6
|
var tooltip_default = SynTooltip;
|
|
@@ -9,4 +9,4 @@ SynTooltip.define("syn-tooltip");
|
|
|
9
9
|
export {
|
|
10
10
|
tooltip_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.SW3NDC4L.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk.MSUX23ZJ.js";
|
|
17
17
|
import {
|
|
18
18
|
SynIcon
|
|
19
|
-
} from "./chunk.
|
|
19
|
+
} from "./chunk.4UGAAIOV.js";
|
|
20
20
|
import {
|
|
21
21
|
LocalizeController
|
|
22
22
|
} from "./chunk.E3KW3KQM.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
SynergyElement,
|
|
28
28
|
component_styles_default
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.MIF4NFFN.js";
|
|
30
30
|
import {
|
|
31
31
|
__decorateClass
|
|
32
32
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -63,8 +63,9 @@ var SynDetails = class extends SynergyElement {
|
|
|
63
63
|
this.detailsObserver.observe(this.details, { attributes: true });
|
|
64
64
|
}
|
|
65
65
|
disconnectedCallback() {
|
|
66
|
+
var _a;
|
|
66
67
|
super.disconnectedCallback();
|
|
67
|
-
this.detailsObserver.disconnect();
|
|
68
|
+
(_a = this.detailsObserver) == null ? void 0 : _a.disconnect();
|
|
68
69
|
}
|
|
69
70
|
handleSummaryClick(event) {
|
|
70
71
|
event.preventDefault();
|
|
@@ -236,4 +237,4 @@ setDefaultAnimation("details.hide", {
|
|
|
236
237
|
export {
|
|
237
238
|
SynDetails
|
|
238
239
|
};
|
|
239
|
-
//# sourceMappingURL=chunk.
|
|
240
|
+
//# sourceMappingURL=chunk.TFC66SL6.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/details/details.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 { animateTo, shimKeyframesHeightAuto, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query } from 'lit/decorators.js';\nimport { waitForEvent } from '../../internal/event.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 './details.styles.js';\nimport customStyles from './details.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Details show a brief summary and expand to show additional content.\n * @documentation https://synergy.style/components/details\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The details' main content.\n * @slot summary - The details' summary. Alternatively, you can use the `summary` attribute.\n * @slot expand-icon - Optional expand icon to use instead of the default. Works best with `<syn-icon>`.\n * @slot collapse-icon - Optional collapse icon to use instead of the default. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the details opens.\n * @event syn-after-show - Emitted after the details opens and all animations are complete.\n * @event syn-hide - Emitted when the details closes.\n * @event syn-after-hide - Emitted after the details closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart header - The header that wraps both the summary and the expand/collapse icon.\n * @csspart summary - The container that wraps the summary.\n * @csspart summary-icon - The container that wraps the expand/collapse icons.\n * @csspart content - The details content.\n *\n * @animation details.show - The animation to use when showing details. You can use `height: auto` with this animation.\n * @animation details.hide - The animation to use when hiding details. You can use `height: auto` with this animation.\n */\nexport default class SynDetails extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n\n static dependencies = {\n 'syn-icon': SynIcon\n };\n\n private readonly localize = new LocalizeController(this);\n\n @query('.details') details: HTMLDetailsElement;\n @query('.details__header') header: HTMLElement;\n @query('.details__body') body: HTMLElement;\n @query('.details__expand-icon-slot') expandIconSlot: HTMLSlotElement;\n\n detailsObserver: MutationObserver;\n\n /**\n * Indicates whether or not the details is open. You can toggle this attribute to show and hide the details, or you\n * can use the `show()` and `hide()` methods and this attribute will reflect the details' open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** The summary to show in the header. If you need to display HTML, use the `summary` slot instead. */\n @property() summary: string;\n\n /** Disables the details so it can't be toggled. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the details as contained element. */\n @property({ type: Boolean, reflect: true }) contained = false;\n\n /** The details's size. */\n @property({ reflect: true }) size: 'medium' | 'large' = 'medium';\n\n firstUpdated() {\n this.body.style.height = this.open ? 'auto' : '0';\n if (this.open) {\n this.details.open = true;\n }\n\n this.detailsObserver = new MutationObserver(changes => {\n for (const change of changes) {\n if (change.type === 'attributes' && change.attributeName === 'open') {\n if (this.details.open) {\n this.show();\n } else {\n this.hide();\n }\n }\n }\n });\n this.detailsObserver.observe(this.details, { attributes: true });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.detailsObserver?.disconnect();\n }\n\n private handleSummaryClick(event: MouseEvent) {\n event.preventDefault();\n\n if (!this.disabled) {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n this.header.focus();\n }\n }\n\n private handleSummaryKeyDown(event: KeyboardEvent) {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n\n if (this.open) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.hide();\n }\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {\n event.preventDefault();\n this.show();\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n this.details.open = true;\n // Show\n const slShow = this.emit('syn-show', { cancelable: true });\n if (slShow.defaultPrevented) {\n this.open = false;\n this.details.open = false;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.show', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.emit('syn-after-show');\n } else {\n // Hide\n const slHide = this.emit('syn-hide', { cancelable: true });\n if (slHide.defaultPrevented) {\n this.details.open = true;\n this.open = true;\n return;\n }\n\n await stopAnimations(this.body);\n\n const { keyframes, options } = getAnimation(this, 'details.hide', { dir: this.localize.dir() });\n await animateTo(this.body, shimKeyframesHeightAuto(keyframes, this.body.scrollHeight), options);\n this.body.style.height = 'auto';\n\n this.details.open = false;\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the details. */\n async show() {\n if (this.open || this.disabled) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the details */\n async hide() {\n if (!this.open || this.disabled) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n render() {\n return html`\n <details\n part=\"base\"\n class=${classMap({\n details: true,\n 'details--size-medium': this.size === 'medium',\n 'details--size-large': this.size === 'large',\n 'details--open': this.open,\n 'details--disabled': this.disabled,\n 'details--contained': this.contained,\n })}\n >\n <summary\n part=\"header\"\n id=\"header\"\n class=\"details__header\"\n role=\"button\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-controls=\"content\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n tabindex=${this.disabled ? '-1' : '0'}\n @click=${this.handleSummaryClick}\n @keydown=${this.handleSummaryKeyDown}\n >\n <slot name=\"summary\" part=\"summary\" class=\"details__summary\">${this.summary}</slot>\n\n <span part=\"summary-icon\" class=\"details__summary-icon\">\n <slot name=\"expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n <slot name=\"collapse-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </span>\n </summary>\n\n <div class=\"details__body\" role=\"region\" aria-labelledby=\"header\">\n <slot part=\"content\" id=\"content\" class=\"details__content\"></slot>\n </div>\n </details>\n `;\n }\n}\n\nsetDefaultAnimation('details.show', {\n keyframes: [\n { height: '0', opacity: '0' },\n { height: 'auto', opacity: '1' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n\nsetDefaultAnimation('details.hide', {\n keyframes: [\n { height: 'auto', opacity: '1' },\n { height: '0', opacity: '0' }\n ],\n options: { duration: 250, easing: 'linear' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AAErB,SAAS,UAAU,aAAa;AAqChC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAAvD;AAAA;AAOE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAaX,gBAAO;AAMP,oBAAW;AAGX,qBAAY;AAG3B,gBAA2B;AAAA;AAAA,EAExD,eAAe;AACb,SAAK,KAAK,MAAM,SAAS,KAAK,OAAO,SAAS;AAC9C,QAAI,KAAK,MAAM;AACb,WAAK,QAAQ,OAAO;AAAA,IACtB;AAEA,SAAK,kBAAkB,IAAI,iBAAiB,aAAW;AACrD,iBAAW,UAAU,SAAS;AAC5B,YAAI,OAAO,SAAS,gBAAgB,OAAO,kBAAkB,QAAQ;AACnE,cAAI,KAAK,QAAQ,MAAM;AACrB,iBAAK,KAAK;AAAA,UACZ,OAAO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AAED,oBAAoB,gBAAgB;AAAA,EAClC,WAAW;AAAA,IACT,EAAE,QAAQ,QAAQ,SAAS,IAAI;AAAA,IAC/B,EAAE,QAAQ,KAAK,SAAS,IAAI;AAAA,EAC9B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,SAAS;AAC7C,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.F5LLLIE5.js";
|
|
4
4
|
import {
|
|
5
5
|
animateTo,
|
|
6
6
|
stopAnimations,
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
LocalizeController
|
|
18
18
|
} from "./chunk.E3KW3KQM.js";
|
|
19
|
-
import {
|
|
20
|
-
watch
|
|
21
|
-
} from "./chunk.QJMO7V5R.js";
|
|
22
|
-
import {
|
|
23
|
-
SynergyElement,
|
|
24
|
-
component_styles_default
|
|
25
|
-
} from "./chunk.RVQ3X7WC.js";
|
|
26
19
|
import {
|
|
27
20
|
alert_custom_styles_default
|
|
28
21
|
} from "./chunk.JRYXECAY.js";
|
|
29
22
|
import {
|
|
30
23
|
alert_styles_default
|
|
31
24
|
} from "./chunk.KG73YUXI.js";
|
|
25
|
+
import {
|
|
26
|
+
watch
|
|
27
|
+
} from "./chunk.QJMO7V5R.js";
|
|
28
|
+
import {
|
|
29
|
+
SynergyElement,
|
|
30
|
+
component_styles_default
|
|
31
|
+
} from "./chunk.MIF4NFFN.js";
|
|
32
32
|
import {
|
|
33
33
|
__decorateClass
|
|
34
34
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -214,4 +214,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
214
214
|
export {
|
|
215
215
|
SynAlert
|
|
216
216
|
};
|
|
217
|
-
//# sourceMappingURL=chunk.
|
|
217
|
+
//# sourceMappingURL=chunk.TJADLTCQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.F5LLLIE5.js";
|
|
4
4
|
|
|
5
5
|
// src/components/icon-button/icon-button.ts
|
|
6
6
|
var icon_button_default = SynIconButton;
|
|
@@ -9,4 +9,4 @@ SynIconButton.define("syn-icon-button");
|
|
|
9
9
|
export {
|
|
10
10
|
icon_button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.TQMD3CRX.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.S22BO5SF.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.4UGAAIOV.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.E3KW3KQM.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.MIF4NFFN.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -89,4 +89,4 @@ __decorateClass([
|
|
|
89
89
|
export {
|
|
90
90
|
SynBreadcrumb
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk.
|
|
92
|
+
//# sourceMappingURL=chunk.UWNJQDZP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynPopup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KOZGQJ42.js";
|
|
4
4
|
|
|
5
5
|
// src/components/popup/popup.ts
|
|
6
6
|
var popup_default = SynPopup;
|
|
@@ -9,4 +9,4 @@ SynPopup.define("syn-popup");
|
|
|
9
9
|
export {
|
|
10
10
|
popup_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.VA5J6CGG.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk.B6R3IVGO.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.F5LLLIE5.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.E3KW3KQM.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.MIF4NFFN.js";
|
|
17
17
|
import {
|
|
18
18
|
__decorateClass
|
|
19
19
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -76,4 +76,4 @@ __decorateClass([
|
|
|
76
76
|
export {
|
|
77
77
|
SynTag
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk.
|
|
79
|
+
//# sourceMappingURL=chunk.VHASVP7B.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynNavItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LVMOATGP.js";
|
|
4
4
|
|
|
5
5
|
// src/components/nav-item/nav-item.ts
|
|
6
6
|
var nav_item_default = SynNavItem;
|
|
@@ -9,4 +9,4 @@ SynNavItem.define("syn-nav-item");
|
|
|
9
9
|
export {
|
|
10
10
|
nav_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.VNQF6LEZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynInput
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NH5UF5W4.js";
|
|
4
4
|
|
|
5
5
|
// src/components/input/input.ts
|
|
6
6
|
var input_default = SynInput;
|
|
@@ -9,4 +9,4 @@ SynInput.define("syn-input");
|
|
|
9
9
|
export {
|
|
10
10
|
input_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.W2S2MTUW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadio
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.AVNL6XBJ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio/radio.ts
|
|
6
6
|
var radio_default = SynRadio;
|
|
@@ -9,4 +9,4 @@ SynRadio.define("syn-radio");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.WM3ZKNS4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCheckbox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.DFR3UNMT.js";
|
|
4
4
|
|
|
5
5
|
// src/components/checkbox/checkbox.ts
|
|
6
6
|
var checkbox_default = SynCheckbox;
|
|
@@ -9,4 +9,4 @@ SynCheckbox.define("syn-checkbox");
|
|
|
9
9
|
export {
|
|
10
10
|
checkbox_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.XHVDKQO2.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.KG52EHDB.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.5CL6DHME.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.WVVQK5TE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.QJMO7V5R.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.MIF4NFFN.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -93,4 +93,4 @@ __decorateClass([
|
|
|
93
93
|
export {
|
|
94
94
|
SynOptgroup
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=chunk.
|
|
96
|
+
//# sourceMappingURL=chunk.XMS3V7AX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTab
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OPAVUSG6.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tab/tab.ts
|
|
6
6
|
var tab_default = SynTab;
|
|
@@ -9,4 +9,4 @@ SynTab.define("syn-tab");
|
|
|
9
9
|
export {
|
|
10
10
|
tab_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.XRRZVMQT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynMenuLabel
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6JHUWKC2.js";
|
|
4
4
|
|
|
5
5
|
// src/components/menu-label/menu-label.ts
|
|
6
6
|
var menu_label_default = SynMenuLabel;
|
|
@@ -9,4 +9,4 @@ SynMenuLabel.define("syn-menu-label");
|
|
|
9
9
|
export {
|
|
10
10
|
menu_label_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.XVFSTDCI.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement,
|
|
15
15
|
component_styles_default
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.MIF4NFFN.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.Y4LO5L6L.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VHASVP7B.js";
|
|
4
4
|
|
|
5
5
|
// src/components/tag/tag.ts
|
|
6
6
|
var tag_default = SynTag;
|
|
@@ -9,4 +9,4 @@ SynTag.define("syn-tag");
|
|
|
9
9
|
export {
|
|
10
10
|
tag_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.YLRQUWVH.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk.RX7A4EQ2.js";
|
|
14
14
|
import {
|
|
15
15
|
SynIconButton
|
|
16
|
-
} from "./chunk.
|
|
16
|
+
} from "./chunk.F5LLLIE5.js";
|
|
17
17
|
import {
|
|
18
18
|
animateTo,
|
|
19
19
|
stopAnimations,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
import {
|
|
36
36
|
SynergyElement,
|
|
37
37
|
component_styles_default
|
|
38
|
-
} from "./chunk.
|
|
38
|
+
} from "./chunk.MIF4NFFN.js";
|
|
39
39
|
import {
|
|
40
40
|
__decorateClass
|
|
41
41
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -391,4 +391,4 @@ setDefaultAnimation("drawer.overlay.hide", {
|
|
|
391
391
|
export {
|
|
392
392
|
SynDrawer
|
|
393
393
|
};
|
|
394
|
-
//# sourceMappingURL=chunk.
|
|
394
|
+
//# sourceMappingURL=chunk.Z2XKAE7D.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.ONW45GQI.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDrawer
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.Z2XKAE7D.js";
|
|
7
7
|
import {
|
|
8
8
|
unlockBodyScrolling
|
|
9
9
|
} from "./chunk.RX7A4EQ2.js";
|
|
10
10
|
import {
|
|
11
11
|
SynDivider
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.5CL6DHME.js";
|
|
13
13
|
import {
|
|
14
14
|
waitForEvent
|
|
15
15
|
} from "./chunk.PYLHI2JQ.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
SynergyElement,
|
|
32
32
|
component_styles_default
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.MIF4NFFN.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass
|
|
36
36
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -189,8 +189,10 @@ var SynSideNav = class extends SynergyElement {
|
|
|
189
189
|
}
|
|
190
190
|
disconnectedCallback() {
|
|
191
191
|
super.disconnectedCallback();
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
if (this.drawer) {
|
|
193
|
+
unlockBodyScrolling(this.drawer);
|
|
194
|
+
this.drawer.modal.deactivate();
|
|
195
|
+
}
|
|
194
196
|
}
|
|
195
197
|
render() {
|
|
196
198
|
const isTouch = window.navigator.maxTouchPoints > 0 || !!("ontouchstart" in window);
|
|
@@ -306,4 +308,4 @@ setDefaultAnimation("sideNav.overlay.hide", {
|
|
|
306
308
|
export {
|
|
307
309
|
SynSideNav
|
|
308
310
|
};
|
|
309
|
-
//# sourceMappingURL=chunk.
|
|
311
|
+
//# sourceMappingURL=chunk.ZBJXFMXI.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/components/side-nav/side-nav.component.ts"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport type { CSSResultGroup } from 'lit';\nimport { html } from 'lit/static-html.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './side-nav.styles.js';\nimport SynDrawer from '../drawer/drawer.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport { getAnimation, setAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { unlockBodyScrolling } from '../../internal/scroll.js';\n\n/**\n * @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.\n * It can be used to group multiple navigation items (<syn-nav-item />s) together.\n *\n * @example\n * <syn-side-nav open>\n * <syn-nav-item >Item 1</syn-nav-item>\n * <syn-nav-item divider>Item 2</syn-nav-item>\n * </syn-side-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n * @dependency syn-drawer\n *\n * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.\n * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.\n * Please avoid having to many nav-items as it can massively influence the user experience.\n *\n * @event syn-show - Emitted when the side-nav opens.\n * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.\n * @event syn-hide - Emitted when the side-nav closes.\n * @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.\n *\n * @csspart base - The components base wrapper\n * @csspart drawer - The drawer that is used under the hood for creating the side-nav\n * @csspart content-container - The components main content container\n * @csspart content - The components main content\n * @csspart footer-container - The components footer content container\n * @csspart footer-divider - The components footer divider\n * @csspart footer - The components footer content\n * @csspart overlay - The overlay that covers the screen behind the side-nav.\n *\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\n *\n * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.\n * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.\n * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.\n * @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.\n * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.\n * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.\n */\nexport default class SynSideNav extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-divider': SynDivider,\n 'syn-drawer': SynDrawer,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'footer');\n\n private readonly localize = new LocalizeController(this);\n\n private timeout: NodeJS.Timeout;\n\n /**\n * Current animation active state\n */\n @state() private isAnimationActive = false;\n\n /**\n * Reference to the drawer\n */\n @query('.side-nav__drawer') private drawer: SynDrawer;\n\n /**\n * Indicates whether or not the side-nav is open.\n * You can toggle this attribute to show and hide the side-nav, or you can use the `show()` and\n * `hide()` methods and this attribute will reflect the side-nav's open state.\n *\n * Depending if the rail attribute is set or not, the behavior will differ.\n *\n * __Non rail__:\n * With `open` will show the side-nav.\n * Without `open`, the side-nav will be hidden.\n *\n * __Rail__:\n * With `open` will show the whole side-nav with an overlay for touch devices\n * or without an overlay for non-touch devices.\n * Without `open`, the side-nav will only show the prefix of nav-item's.\n *\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Use the rail attribute to only show the prefix of navigation items in closed state.\n * This will open on hover on the rail navigation.\n * On touch devices the navigation opens on click and shows an overlay.\n *\n * Note: The Rail is only an option if all Navigation Items on the first level have an Icon.\n * If this is not the case you should use a burger navigation.\n */\n @property({ reflect: true, type: Boolean }) rail = false;\n\n /**\n * By default, the side-nav traps the focus if in non-rail mode and open.\n * To disable the focus trapping, set this attribute.\n */\n @property({ attribute: 'no-focus-trapping', reflect: true, type: Boolean }) noFocusTrapping = false;\n\n private setDelayedCallback(callback: () => void) {\n clearTimeout(this.timeout);\n this.timeout = setTimeout(callback, 100);\n }\n\n private handleMouseEnter() {\n // Debounce mouse events, to avoid infinite loop of open / closing in rail mode\n this.setDelayedCallback(() => {\n this.open = true;\n });\n }\n\n private handleMouseLeave() {\n // Debounce mouse events, to avoid infinite loop of open / closing in rail mode\n this.setDelayedCallback(() => {\n this.open = false;\n });\n }\n\n private handleRequestClose() {\n if (this.open) {\n this.open = false;\n }\n }\n\n private addMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private removeMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private setDrawerVisibility(isVisible: boolean) {\n (this.drawer.shadowRoot!.querySelector('.drawer') as HTMLElement).hidden = !isVisible;\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.setAttribute('aria-hidden', isVisible ? 'false' : 'true');\n }\n\n private forceDrawerVisibilityForRailMode() {\n return waitForEvent(this, 'syn-after-hide').then(() => {\n this.setDrawerVisibility(true);\n this.isAnimationActive = false;\n });\n }\n\n private setDrawerAnimations() {\n const showAnimation = getAnimation(this, `sideNav.show${this.rail ? 'Rail' : 'NonRail'}`, { dir: this.localize.dir() });\n const hideAnimation = getAnimation(this, `sideNav.hide${this.rail ? 'Rail' : 'NonRail'}`, { dir: this.localize.dir() });\n const hideOverlay = getAnimation(this, 'sideNav.overlay.hide', { dir: this.localize.dir() });\n const showOverlay = getAnimation(this, 'sideNav.overlay.show', { dir: this.localize.dir() });\n\n setAnimation(this.drawer, 'drawer.showStart', showAnimation);\n setAnimation(this.drawer, 'drawer.hideStart', hideAnimation);\n setAnimation(this.drawer, 'drawer.overlay.hide', hideOverlay);\n setAnimation(this.drawer, 'drawer.overlay.show', showOverlay);\n }\n\n @watch('rail', { waitUntilFirstUpdate: true })\n handleModeChange() {\n this.setDrawerAnimations();\n\n if (this.rail) {\n this.addMouseListener();\n // Force drawer visibility for rail mode\n this.setDrawerVisibility(true);\n } else {\n this.removeMouseListener();\n // Remove forcing of drawer visibility for rail mode if not open\n if (!this.open) {\n this.setDrawerVisibility(false);\n }\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n handleOpenChange() {\n if (this.rail) {\n this.isAnimationActive = true;\n\n if (!this.open) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.forceDrawerVisibilityForRailMode();\n } else {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForEvent(this.drawer, 'syn-after-show').then(() => {\n this.isAnimationActive = false;\n });\n }\n }\n }\n\n @watch('noFocusTrapping', { waitUntilFirstUpdate: true })\n handleFocusTrapping() {\n if (!this.rail) {\n if (this.noFocusTrapping) {\n this.drawer.modal.activateExternal();\n } else {\n this.drawer.modal.deactivateExternal();\n }\n }\n }\n\n /** Shows the side-nav. */\n async show() {\n if (this.open) {\n return undefined;\n }\n this.open = true;\n\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the side-nav */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n\n return waitForEvent(this, 'syn-after-hide');\n }\n\n constructor() {\n super();\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n this.addEventListener('syn-initial-focus', (event) => {\n if (this.rail) {\n // We need to do this, to stop the drawer from giving focus to the panel\n event.preventDefault();\n\n // The originalTrigger needs to be removed, otherwise when closing the drawer,\n // the first focused nav-item is focused again...\n // eslint-disable-next-line @typescript-eslint/dot-notation\n this.drawer['originalTrigger'] = null;\n }\n });\n\n this.addEventListener('focusin', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n // Open the side-nav if it`s in rail mode, closed and the focused element is a nav-item\n if (targetTag === 'syn-nav-item' && this.rail && !this.open) {\n this.open = true;\n }\n });\n\n this.addEventListener('focusout', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n const relatedTargetTag = (event.relatedTarget as HTMLElement)?.tagName.toLowerCase();\n\n // Close the side-nav, if it`s in rail mode, open and the next focused element\n // is no longer a nav-item\n if (targetTag === 'syn-nav-item' && relatedTargetTag !== 'syn-nav-item' && this.rail && this.open) {\n this.open = false;\n }\n });\n }\n\n /**\n * Initial setup for first render like special rail mode handling and drawer animations.\n * */\n firstUpdated() {\n this.setDrawerAnimations();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n // change tabindex of drawer to make only nav-items focusable and not the panel of the drawer\n (this.drawer.shadowRoot!.querySelector('.drawer__panel') as HTMLElement).tabIndex = -1;\n });\n\n if (this.rail) {\n // Wait for the drawer`s update to be completed\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n this.addMouseListener();\n // set initial visibility of drawer for rail mode\n this.setDrawerVisibility(true);\n });\n } else if (this.noFocusTrapping) {\n // Disable the focus trapping of the modal\n this.drawer.modal.activateExternal();\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove modal listeners\n unlockBodyScrolling(this.drawer);\n this.drawer.modal.deactivate();\n }\n\n render() {\n const isTouch = window.navigator.maxTouchPoints > 0 || !!('ontouchstart' in window);\n const hasFooter = this.hasSlotController.test('footer');\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <nav\n class=${classMap({\n 'side-nav': true,\n 'side-nav--animation': this.isAnimationActive,\n 'side-nav--fix': !this.rail,\n 'side-nav--has-footer': hasFooter,\n 'side-nav--open': this.open,\n 'side-nav--rail': this.rail,\n 'side-nav--touch': isTouch,\n })}\n part=\"base\"\n >\n \n <syn-drawer\n class=\"side-nav__drawer\"\n ?contained=${this.rail}\n exportparts=\"overlay\"\n label=${this.localize.term('sideNav')}\n no-header\n ?open=${this.open}\n part=\"drawer\"\n placement=\"start\"\n @syn-request-close=${this.handleRequestClose} \n >\n <div part=\"content-container\" class=\"side-nav__content-container\">\n <slot part=\"content\" ></slot>\n </div>\n \n <footer class=\"side-nav__footer\" part=\"footer-container\" slot=\"footer\"> \n\n ${hasFooter ? html`<syn-divider part=\"footer-divider\" class=\"side-nav__footer-divider\"></syn-divider>` : ''}\n <slot name=\"footer\" part=\"footer\" ></slot> \n \n </footer>\n\n </syn-drawer>\n\n </nav>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n\n// Show animations\nsetDefaultAnimation('sideNav.showRail', {\n keyframes: [\n { width: 'var(--side-nav-rail-width)' },\n { width: 'var(--side-nav-open-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.showNonRail', {\n keyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Hide animations\nsetDefaultAnimation('sideNav.hideNonRail', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.hideRail', {\n keyframes: [\n { width: 'var(--side-nav-open-width)' },\n { width: 'var(--side-nav-rail-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Overlay animations\nsetDefaultAnimation('sideNav.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 },\n});\n\nsetDefaultAnimation('sideNav.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 },\n});\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,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AAO,eAAe,KAAK,MAAM;AAEpC,MAAC,KAAK,OAAO,WAAY,cAAc,gBAAgB,EAAkB,WAAW;AAAA,IACtF,CAAC;AAED,QAAI,KAAK,MAAM;AAIb,WAAK,OAAO,eAAe,KAAK,MAAM;AACpC,aAAK,iBAAiB;AAEtB,aAAK,oBAAoB,IAAI;AAAA,MAC/B,CAAC;AAAA,IACH,WAAW,KAAK,iBAAiB;AAE/B,WAAK,OAAO,MAAM,iBAAiB;AAAA,IACrC;AAAA,EACF;AAAA,EAEA,uBAAuB;AACrB,UAAM,qBAAqB;AAG3B,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/unbound-method */\nimport { classMap } from 'lit/directives/class-map.js';\nimport type { CSSResultGroup } from 'lit';\nimport { html } from 'lit/static-html.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport styles from './side-nav.styles.js';\nimport SynDrawer from '../drawer/drawer.component.js';\nimport SynDivider from '../divider/divider.component.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport { getAnimation, setAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { unlockBodyScrolling } from '../../internal/scroll.js';\n\n/**\n * @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.\n * It can be used to group multiple navigation items (<syn-nav-item />s) together.\n *\n * @example\n * <syn-side-nav open>\n * <syn-nav-item >Item 1</syn-nav-item>\n * <syn-nav-item divider>Item 2</syn-nav-item>\n * </syn-side-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n * @dependency syn-drawer\n *\n * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.\n * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.\n * Please avoid having to many nav-items as it can massively influence the user experience.\n *\n * @event syn-show - Emitted when the side-nav opens.\n * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.\n * @event syn-hide - Emitted when the side-nav closes.\n * @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.\n *\n * @csspart base - The components base wrapper\n * @csspart drawer - The drawer that is used under the hood for creating the side-nav\n * @csspart content-container - The components main content container\n * @csspart content - The components main content\n * @csspart footer-container - The components footer content container\n * @csspart footer-divider - The components footer divider\n * @csspart footer - The components footer content\n * @csspart overlay - The overlay that covers the screen behind the side-nav.\n *\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\n *\n * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.\n * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.\n * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.\n * @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.\n * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.\n * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.\n */\nexport default class SynSideNav extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-divider': SynDivider,\n 'syn-drawer': SynDrawer,\n };\n\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'footer');\n\n private readonly localize = new LocalizeController(this);\n\n private timeout: NodeJS.Timeout;\n\n /**\n * Current animation active state\n */\n @state() private isAnimationActive = false;\n\n /**\n * Reference to the drawer\n */\n @query('.side-nav__drawer') private drawer: SynDrawer;\n\n /**\n * Indicates whether or not the side-nav is open.\n * You can toggle this attribute to show and hide the side-nav, or you can use the `show()` and\n * `hide()` methods and this attribute will reflect the side-nav's open state.\n *\n * Depending if the rail attribute is set or not, the behavior will differ.\n *\n * __Non rail__:\n * With `open` will show the side-nav.\n * Without `open`, the side-nav will be hidden.\n *\n * __Rail__:\n * With `open` will show the whole side-nav with an overlay for touch devices\n * or without an overlay for non-touch devices.\n * Without `open`, the side-nav will only show the prefix of nav-item's.\n *\n */\n @property({ reflect: true, type: Boolean }) open = false;\n\n /**\n * Use the rail attribute to only show the prefix of navigation items in closed state.\n * This will open on hover on the rail navigation.\n * On touch devices the navigation opens on click and shows an overlay.\n *\n * Note: The Rail is only an option if all Navigation Items on the first level have an Icon.\n * If this is not the case you should use a burger navigation.\n */\n @property({ reflect: true, type: Boolean }) rail = false;\n\n /**\n * By default, the side-nav traps the focus if in non-rail mode and open.\n * To disable the focus trapping, set this attribute.\n */\n @property({ attribute: 'no-focus-trapping', reflect: true, type: Boolean }) noFocusTrapping = false;\n\n private setDelayedCallback(callback: () => void) {\n clearTimeout(this.timeout);\n this.timeout = setTimeout(callback, 100);\n }\n\n private handleMouseEnter() {\n // Debounce mouse events, to avoid infinite loop of open / closing in rail mode\n this.setDelayedCallback(() => {\n this.open = true;\n });\n }\n\n private handleMouseLeave() {\n // Debounce mouse events, to avoid infinite loop of open / closing in rail mode\n this.setDelayedCallback(() => {\n this.open = false;\n });\n }\n\n private handleRequestClose() {\n if (this.open) {\n this.open = false;\n }\n }\n\n private addMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.addEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private removeMouseListener() {\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseenter', this.handleMouseEnter);\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.removeEventListener('mouseleave', this.handleMouseLeave);\n }\n\n private setDrawerVisibility(isVisible: boolean) {\n (this.drawer.shadowRoot!.querySelector('.drawer') as HTMLElement).hidden = !isVisible;\n this.drawer.shadowRoot!.querySelector('.drawer__panel')?.setAttribute('aria-hidden', isVisible ? 'false' : 'true');\n }\n\n private forceDrawerVisibilityForRailMode() {\n return waitForEvent(this, 'syn-after-hide').then(() => {\n this.setDrawerVisibility(true);\n this.isAnimationActive = false;\n });\n }\n\n private setDrawerAnimations() {\n const showAnimation = getAnimation(this, `sideNav.show${this.rail ? 'Rail' : 'NonRail'}`, { dir: this.localize.dir() });\n const hideAnimation = getAnimation(this, `sideNav.hide${this.rail ? 'Rail' : 'NonRail'}`, { dir: this.localize.dir() });\n const hideOverlay = getAnimation(this, 'sideNav.overlay.hide', { dir: this.localize.dir() });\n const showOverlay = getAnimation(this, 'sideNav.overlay.show', { dir: this.localize.dir() });\n\n setAnimation(this.drawer, 'drawer.showStart', showAnimation);\n setAnimation(this.drawer, 'drawer.hideStart', hideAnimation);\n setAnimation(this.drawer, 'drawer.overlay.hide', hideOverlay);\n setAnimation(this.drawer, 'drawer.overlay.show', showOverlay);\n }\n\n @watch('rail', { waitUntilFirstUpdate: true })\n handleModeChange() {\n this.setDrawerAnimations();\n\n if (this.rail) {\n this.addMouseListener();\n // Force drawer visibility for rail mode\n this.setDrawerVisibility(true);\n } else {\n this.removeMouseListener();\n // Remove forcing of drawer visibility for rail mode if not open\n if (!this.open) {\n this.setDrawerVisibility(false);\n }\n }\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n handleOpenChange() {\n if (this.rail) {\n this.isAnimationActive = true;\n\n if (!this.open) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.forceDrawerVisibilityForRailMode();\n } else {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForEvent(this.drawer, 'syn-after-show').then(() => {\n this.isAnimationActive = false;\n });\n }\n }\n }\n\n @watch('noFocusTrapping', { waitUntilFirstUpdate: true })\n handleFocusTrapping() {\n if (!this.rail) {\n if (this.noFocusTrapping) {\n this.drawer.modal.activateExternal();\n } else {\n this.drawer.modal.deactivateExternal();\n }\n }\n }\n\n /** Shows the side-nav. */\n async show() {\n if (this.open) {\n return undefined;\n }\n this.open = true;\n\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the side-nav */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n\n return waitForEvent(this, 'syn-after-hide');\n }\n\n constructor() {\n super();\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n this.addEventListener('syn-initial-focus', (event) => {\n if (this.rail) {\n // We need to do this, to stop the drawer from giving focus to the panel\n event.preventDefault();\n\n // The originalTrigger needs to be removed, otherwise when closing the drawer,\n // the first focused nav-item is focused again...\n // eslint-disable-next-line @typescript-eslint/dot-notation\n this.drawer['originalTrigger'] = null;\n }\n });\n\n this.addEventListener('focusin', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n // Open the side-nav if it`s in rail mode, closed and the focused element is a nav-item\n if (targetTag === 'syn-nav-item' && this.rail && !this.open) {\n this.open = true;\n }\n });\n\n this.addEventListener('focusout', (event) => {\n const targetTag = (event.target as HTMLElement).tagName.toLowerCase();\n const relatedTargetTag = (event.relatedTarget as HTMLElement)?.tagName.toLowerCase();\n\n // Close the side-nav, if it`s in rail mode, open and the next focused element\n // is no longer a nav-item\n if (targetTag === 'syn-nav-item' && relatedTargetTag !== 'syn-nav-item' && this.rail && this.open) {\n this.open = false;\n }\n });\n }\n\n /**\n * Initial setup for first render like special rail mode handling and drawer animations.\n * */\n firstUpdated() {\n this.setDrawerAnimations();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n // change tabindex of drawer to make only nav-items focusable and not the panel of the drawer\n (this.drawer.shadowRoot!.querySelector('.drawer__panel') as HTMLElement).tabIndex = -1;\n });\n\n if (this.rail) {\n // Wait for the drawer`s update to be completed\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.drawer.updateComplete.then(() => {\n this.addMouseListener();\n // set initial visibility of drawer for rail mode\n this.setDrawerVisibility(true);\n });\n } else if (this.noFocusTrapping) {\n // Disable the focus trapping of the modal\n this.drawer.modal.activateExternal();\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n\n // Remove modal listeners\n if (this.drawer) {\n unlockBodyScrolling(this.drawer);\n this.drawer.modal.deactivate();\n }\n }\n\n render() {\n const isTouch = window.navigator.maxTouchPoints > 0 || !!('ontouchstart' in window);\n const hasFooter = this.hasSlotController.test('footer');\n\n /* eslint-disable lit/no-invalid-html */\n /* eslint-disable @typescript-eslint/unbound-method */\n return html`\n <nav\n class=${classMap({\n 'side-nav': true,\n 'side-nav--animation': this.isAnimationActive,\n 'side-nav--fix': !this.rail,\n 'side-nav--has-footer': hasFooter,\n 'side-nav--open': this.open,\n 'side-nav--rail': this.rail,\n 'side-nav--touch': isTouch,\n })}\n part=\"base\"\n >\n \n <syn-drawer\n class=\"side-nav__drawer\"\n ?contained=${this.rail}\n exportparts=\"overlay\"\n label=${this.localize.term('sideNav')}\n no-header\n ?open=${this.open}\n part=\"drawer\"\n placement=\"start\"\n @syn-request-close=${this.handleRequestClose} \n >\n <div part=\"content-container\" class=\"side-nav__content-container\">\n <slot part=\"content\" ></slot>\n </div>\n \n <footer class=\"side-nav__footer\" part=\"footer-container\" slot=\"footer\"> \n\n ${hasFooter ? html`<syn-divider part=\"footer-divider\" class=\"side-nav__footer-divider\"></syn-divider>` : ''}\n <slot name=\"footer\" part=\"footer\" ></slot> \n \n </footer>\n\n </syn-drawer>\n\n </nav>\n `;\n /* eslint-enable lit/no-invalid-html */\n /* eslint-enable @typescript-eslint/unbound-method */\n }\n}\n\n// Show animations\nsetDefaultAnimation('sideNav.showRail', {\n keyframes: [\n { width: 'var(--side-nav-rail-width)' },\n { width: 'var(--side-nav-open-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.showNonRail', {\n keyframes: [\n { opacity: 0, translate: '-100%' },\n { opacity: 1, translate: '0' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Hide animations\nsetDefaultAnimation('sideNav.hideNonRail', {\n keyframes: [\n { opacity: 1, translate: '0' },\n { opacity: 0, translate: '-100%' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\nsetDefaultAnimation('sideNav.hideRail', {\n keyframes: [\n { width: 'var(--side-nav-open-width)' },\n { width: 'var(--side-nav-rail-width)' },\n ],\n options: { duration: 250, easing: 'ease' },\n});\n\n// Overlay animations\nsetDefaultAnimation('sideNav.overlay.show', {\n keyframes: [{ opacity: 0 }, { opacity: 1 }],\n options: { duration: 250 },\n});\n\nsetDefaultAnimation('sideNav.overlay.hide', {\n keyframes: [{ opacity: 1 }, { opacity: 0 }],\n options: { duration: 250 },\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,UAAU,OAAO,aAAa;AAyDvC,IAAqB,aAArB,cAAwC,eAAe;AAAA,EAwLrD,cAAc;AACZ,UAAM;AAjLR,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,QAAQ;AAEtF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAO9C,SAAQ,oBAAoB;AAwBO,gBAAO;AAUP,gBAAO;AAMyB,2BAAkB;AAiI5F,SAAK,mBAAmB,KAAK,iBAAiB,KAAK,IAAI;AACvD,SAAK,mBAAmB,KAAK,iBAAiB,KAAK,IAAI;AACvD,SAAK,iBAAiB,qBAAqB,CAAC,UAAU;AACpD,UAAI,KAAK,MAAM;AAEb,cAAM,eAAe;AAKrB,aAAK,OAAO,iBAAiB,IAAI;AAAA,MACnC;AAAA,IACF,CAAC;AAED,SAAK,iBAAiB,WAAW,CAAC,UAAU;AAC1C,YAAM,YAAa,MAAM,OAAuB,QAAQ,YAAY;AAEpE,UAAI,cAAc,kBAAkB,KAAK,QAAQ,CAAC,KAAK,MAAM;AAC3D,aAAK,OAAO;AAAA,MACd;AAAA,IACF,CAAC;AAED,SAAK,iBAAiB,YAAY,CAAC,UAAU;AA7QjD;AA8QM,YAAM,YAAa,MAAM,OAAuB,QAAQ,YAAY;AACpE,YAAM,oBAAoB,WAAM,kBAAN,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C,CAAC;AAED,oBAAoB,uBAAuB;AAAA,EACzC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,WAAW,QAAQ;AAAA,IACjC,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,EAC/B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,uBAAuB;AAAA,EACzC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,WAAW,IAAI;AAAA,IAC7B,EAAE,SAAS,GAAG,WAAW,QAAQ;AAAA,EACnC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,oBAAoB;AAAA,EACtC,WAAW;AAAA,IACT,EAAE,OAAO,6BAA6B;AAAA,IACtC,EAAE,OAAO,6BAA6B;AAAA,EACxC;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAGD,oBAAoB,wBAAwB;AAAA,EAC1C,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;AAED,oBAAoB,wBAAwB;AAAA,EAC1C,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAAA,EAC1C,SAAS,EAAE,UAAU,IAAI;AAC3B,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.4X3HY2V5.js";
|
|
7
7
|
import {
|
|
8
8
|
SynPopup
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.KOZGQJ42.js";
|
|
10
10
|
import {
|
|
11
11
|
animateTo,
|
|
12
12
|
parseDuration,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
SynergyElement,
|
|
28
28
|
component_styles_default
|
|
29
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.MIF4NFFN.js";
|
|
30
30
|
import {
|
|
31
31
|
__decorateClass
|
|
32
32
|
} from "./chunk.QNDC5KWA.js";
|
|
@@ -270,4 +270,4 @@ setDefaultAnimation("tooltip.hide", {
|
|
|
270
270
|
export {
|
|
271
271
|
SynTooltip
|
|
272
272
|
};
|
|
273
|
-
//# sourceMappingURL=chunk.
|
|
273
|
+
//# sourceMappingURL=chunk.ZBYQDVMH.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynAccordion
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.WNUZ6LH4.js";
|
|
3
|
+
} from "../../chunks/chunk.KDBBMF6R.js";
|
|
5
4
|
import "../../chunks/chunk.QJMO7V5R.js";
|
|
6
|
-
import "../../chunks/chunk.
|
|
5
|
+
import "../../chunks/chunk.MIF4NFFN.js";
|
|
6
|
+
import "../../chunks/chunk.WNUZ6LH4.js";
|
|
7
7
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
8
8
|
export {
|
|
9
9
|
SynAccordion as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
accordion_default
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.WNUZ6LH4.js";
|
|
3
|
+
} from "../../chunks/chunk.QGODDF6V.js";
|
|
4
|
+
import "../../chunks/chunk.KDBBMF6R.js";
|
|
6
5
|
import "../../chunks/chunk.QJMO7V5R.js";
|
|
7
|
-
import "../../chunks/chunk.
|
|
6
|
+
import "../../chunks/chunk.MIF4NFFN.js";
|
|
7
|
+
import "../../chunks/chunk.WNUZ6LH4.js";
|
|
8
8
|
import "../../chunks/chunk.QNDC5KWA.js";
|
|
9
9
|
export {
|
|
10
10
|
accordion_default as default
|