@synergy-design-system/components 3.5.0 → 3.6.1
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/dist/chunks/{chunk.V6TCG5BQ.js → chunk.2A5ZKU32.js} +7 -7
- package/dist/chunks/{chunk.CV7OGSN7.js → chunk.2IVMHEQ6.js} +7 -7
- package/dist/chunks/{chunk.5T4HS4EI.js → chunk.2PPN6KVK.js} +2 -2
- package/dist/chunks/{chunk.DEJAPNIZ.js → chunk.3334XOIY.js} +25 -17
- package/dist/chunks/chunk.3334XOIY.js.map +7 -0
- package/dist/chunks/{chunk.CPC3JTDA.js → chunk.34DCXKYT.js} +7 -7
- package/dist/chunks/{chunk.XCFOLSPD.js → chunk.36JGEYPF.js} +2 -2
- package/dist/chunks/{chunk.IFEFFC3Q.js → chunk.3NWL4AL3.js} +19 -19
- package/dist/chunks/{chunk.EAEQ3AGO.js → chunk.3WVDHGXC.js} +5 -5
- package/dist/chunks/{chunk.OY6ZX6TH.js → chunk.3XZMOCG6.js} +80 -14
- package/dist/chunks/chunk.3XZMOCG6.js.map +7 -0
- package/dist/chunks/{chunk.WEOHOC3C.js → chunk.4GDY7NEK.js} +37 -3
- package/dist/chunks/chunk.4GDY7NEK.js.map +7 -0
- package/dist/chunks/{chunk.RHL3SPJO.js → chunk.4ZWPK4JG.js} +9 -9
- package/dist/chunks/{chunk.RSTYXHB5.js → chunk.57A42NLG.js} +2 -2
- package/dist/chunks/{chunk.EUQYBYAZ.js → chunk.5QUHHGOD.js} +2 -2
- package/dist/chunks/{chunk.XQZR2X4X.js → chunk.6LMYTIGS.js} +2 -2
- package/dist/chunks/{chunk.KT6MHQM6.js → chunk.6VJY3TRA.js} +15 -13
- package/dist/chunks/chunk.6VJY3TRA.js.map +7 -0
- package/dist/chunks/{chunk.UCRA4FZW.js → chunk.A2AYJJ7H.js} +2 -2
- package/dist/chunks/{chunk.BZMKXI2L.js → chunk.AHX2WNRS.js} +2 -2
- package/dist/chunks/{chunk.GIEAMHSU.js → chunk.AOOC5ALQ.js} +4 -7
- package/dist/chunks/chunk.AOOC5ALQ.js.map +7 -0
- package/dist/chunks/{chunk.UNYO3GI7.js → chunk.CAEBFUZN.js} +143 -50
- package/dist/chunks/chunk.CAEBFUZN.js.map +7 -0
- package/dist/chunks/{chunk.OZ3LPRZE.js → chunk.CVUNFQUG.js} +2 -2
- package/dist/chunks/{chunk.UOEHTGNM.js → chunk.D5UFMTUH.js} +2 -2
- package/dist/chunks/{chunk.AVH3ZNCM.js → chunk.DFMLUH2N.js} +2 -2
- package/dist/chunks/{chunk.5RI2MXEU.js → chunk.E3U7WNRA.js} +8 -11
- package/dist/chunks/chunk.E3U7WNRA.js.map +7 -0
- package/dist/chunks/{chunk.MZJLG4BF.js → chunk.EA2ED5LW.js} +2 -2
- package/dist/chunks/{chunk.UE2OCWAE.js → chunk.EJTQEUF4.js} +2 -2
- package/dist/chunks/{chunk.X4NXSNI6.js → chunk.EPMUBNXV.js} +2 -2
- package/dist/chunks/{chunk.YOFWLXEH.js → chunk.EQUDFX74.js} +16 -10
- package/dist/chunks/chunk.EQUDFX74.js.map +7 -0
- package/dist/chunks/{chunk.EX4R7WUE.js → chunk.FDOTWE5Q.js} +5 -5
- package/dist/chunks/{chunk.BQ7JABKS.js → chunk.HBXMQ7PF.js} +5 -5
- package/dist/chunks/{chunk.3XQ5VLXY.js → chunk.HINYMLWI.js} +2 -2
- package/dist/chunks/{chunk.7J4TXMXH.js → chunk.HSSW752S.js} +2 -2
- package/dist/chunks/{chunk.FFAHZBAJ.js → chunk.HZ74RYOQ.js} +2 -2
- package/dist/chunks/{chunk.MCKS4JLW.js → chunk.IKGD2H5A.js} +3 -3
- package/dist/chunks/{chunk.V4GFOKBI.js → chunk.IUFTAV2I.js} +2 -2
- package/dist/chunks/{chunk.V4GFOKBI.js.map → chunk.IUFTAV2I.js.map} +1 -1
- package/dist/chunks/{chunk.KGECDG22.js → chunk.J2QD6WCF.js} +2 -2
- package/dist/chunks/{chunk.XUAUB2UI.js → chunk.J37FDI7L.js} +2 -2
- package/dist/chunks/{chunk.GZVYO3UJ.js → chunk.JHE7UVMI.js} +2 -2
- package/dist/chunks/{chunk.LKMV5MVK.js → chunk.JKA6KBXT.js} +6 -6
- package/dist/chunks/{chunk.K5OSYXNU.js → chunk.JWA6M5ZZ.js} +2 -2
- package/dist/chunks/{chunk.PODVUIE6.js → chunk.JXKV4DYA.js} +2 -2
- package/dist/chunks/{chunk.FKVCNOHV.js → chunk.KC4VEV4Y.js} +4 -4
- package/dist/chunks/{chunk.STHUTCU7.js → chunk.KURP6IS6.js} +8 -8
- package/dist/chunks/{chunk.YGMDIJUQ.js → chunk.L6H7CHLC.js} +2 -2
- package/dist/chunks/{chunk.TBZAI6T6.js → chunk.LJNMLUJK.js} +3 -3
- package/dist/chunks/{chunk.3AZ6O5UW.js → chunk.LWIAMY4V.js} +3 -3
- package/dist/chunks/{chunk.JJ2K4ORZ.js → chunk.MAKIWTSE.js} +10 -13
- package/dist/chunks/chunk.MAKIWTSE.js.map +7 -0
- package/dist/chunks/{chunk.DFS7LPJO.js → chunk.N2P6JGTF.js} +2 -2
- package/dist/chunks/{chunk.RZ3REQWL.js → chunk.N5ZE6OSY.js} +2 -2
- package/dist/chunks/{chunk.VH6SKOPX.js → chunk.NEHYBY5N.js} +2 -2
- package/dist/chunks/{chunk.YUUXCVT2.js → chunk.NMBIRUQU.js} +2 -2
- package/dist/chunks/{chunk.2BATB6NO.js → chunk.NMWM3BP7.js} +4 -4
- package/dist/chunks/{chunk.THNHZ3LC.js → chunk.NUNQOP7A.js} +2 -2
- package/dist/chunks/{chunk.BJUQE5YL.js → chunk.NWNEDOFO.js} +2 -2
- package/dist/chunks/{chunk.3IQ2QEPZ.js → chunk.NXIQ25W4.js} +21 -13
- package/dist/chunks/chunk.NXIQ25W4.js.map +7 -0
- package/dist/chunks/{chunk.JCWTUOY2.js → chunk.O5STVMJZ.js} +11 -11
- package/dist/chunks/{chunk.MCAB6KY5.js → chunk.OEGAZKUI.js} +2 -2
- package/dist/chunks/{chunk.Q7G25NQW.js → chunk.P4ZXNQQ4.js} +2 -2
- package/dist/chunks/{chunk.G7UFPFQ2.js → chunk.PDOQLAYW.js} +3 -3
- package/dist/chunks/{chunk.MJA5HEFN.js → chunk.PDVI2IPR.js} +2 -2
- package/dist/chunks/{chunk.SWMV7T2O.js → chunk.PIKKRGFU.js} +6 -6
- package/dist/chunks/{chunk.Y5XMLHNP.js → chunk.PLIBKR5J.js} +2 -2
- package/dist/chunks/{chunk.JHJFFBNL.js → chunk.Q3XZRHS6.js} +5 -5
- package/dist/chunks/{chunk.UNTUMNPO.js → chunk.Q7TOL5PH.js} +6 -6
- package/dist/chunks/{chunk.UUECFETB.js → chunk.Q7VKIJC3.js} +2 -2
- package/dist/chunks/{chunk.GZHQAHOL.js → chunk.QKRQEB4F.js} +11 -4
- package/dist/chunks/chunk.QKRQEB4F.js.map +7 -0
- package/dist/chunks/{chunk.FKDUVEOP.js → chunk.QOBJ2NX5.js} +3 -3
- package/dist/chunks/{chunk.7TPOI264.js → chunk.QTVJRWRP.js} +10 -10
- package/dist/chunks/{chunk.O7OELAMY.js → chunk.R4FKW3GX.js} +8 -8
- package/dist/chunks/{chunk.J3GDNLNN.js → chunk.RCI5CCXX.js} +2 -2
- package/dist/chunks/{chunk.CMCJB5AA.js → chunk.RU2RT37T.js} +6 -6
- package/dist/chunks/{chunk.6A2AHHWZ.js → chunk.RXRHPQ7D.js} +2 -2
- package/dist/chunks/{chunk.BVFTZ3AB.js → chunk.S2IHOYLF.js} +2 -2
- package/dist/chunks/{chunk.7RZ27FQL.js → chunk.SBAXRTPJ.js} +5 -8
- package/dist/chunks/chunk.SBAXRTPJ.js.map +7 -0
- package/dist/chunks/{chunk.DYE6F2Y6.js → chunk.SCKEUIIF.js} +2 -2
- package/dist/chunks/{chunk.TDWLNFH4.js → chunk.SCMER6XQ.js} +2 -2
- package/dist/chunks/{chunk.6L4RCUNM.js → chunk.SSOL4LVM.js} +10 -13
- package/dist/chunks/chunk.SSOL4LVM.js.map +7 -0
- package/dist/chunks/{chunk.WUKKH3NE.js → chunk.SYMEFYEK.js} +2 -2
- package/dist/chunks/{chunk.IPWLCVHW.js → chunk.TASXJ4ZX.js} +2 -2
- package/dist/chunks/{chunk.SKQK3F66.js → chunk.TB237H74.js} +2 -2
- package/dist/chunks/{chunk.TVVJTCGG.js → chunk.TUSN4AOP.js} +4 -5
- package/dist/chunks/chunk.TUSN4AOP.js.map +7 -0
- package/dist/chunks/{chunk.ZJ6JMFVP.js → chunk.TVSMRXAW.js} +2 -2
- package/dist/chunks/{chunk.TSWB7UFK.js → chunk.UA5B6CPN.js} +82 -15
- package/dist/chunks/chunk.UA5B6CPN.js.map +7 -0
- package/dist/chunks/{chunk.SBLP34SQ.js → chunk.UCXZFEKY.js} +2 -2
- package/dist/chunks/{chunk.NTBDBGG7.js → chunk.UEMDEZX6.js} +2 -2
- package/dist/chunks/{chunk.CJLZ3QMG.js → chunk.VCJQ6DPU.js} +9 -9
- package/dist/chunks/{chunk.FOH4KP4A.js → chunk.VEIXDC5G.js} +6 -6
- package/dist/chunks/{chunk.XLYCEJU4.js → chunk.VU6FOBTQ.js} +2 -2
- package/dist/chunks/{chunk.SFBSB7EM.js → chunk.WBOHZGDF.js} +5 -5
- package/dist/chunks/{chunk.N4Y2OUEA.js → chunk.WM6M3IWG.js} +2 -2
- package/dist/chunks/{chunk.XWUVIVOV.js → chunk.WOUHL4WE.js} +2 -2
- package/dist/chunks/{chunk.H63OT7RB.js → chunk.X5VH7MID.js} +4 -7
- package/dist/chunks/chunk.X5VH7MID.js.map +7 -0
- package/dist/chunks/{chunk.2YBC7C2K.js → chunk.XAXHRDXN.js} +5 -5
- package/dist/chunks/{chunk.VHCBBPBS.js → chunk.XBDUDOPF.js} +8 -8
- package/dist/chunks/{chunk.XZ7DDRXL.js → chunk.XIO6NVNU.js} +6 -6
- package/dist/chunks/{chunk.KUTXV7RO.js → chunk.XO7VQMVX.js} +2 -2
- package/dist/chunks/{chunk.SN2VEGTZ.js → chunk.XVXJDFUK.js} +2 -2
- package/dist/chunks/{chunk.GCISSJZP.js → chunk.XYDE666E.js} +2 -2
- package/dist/chunks/{chunk.BBPFCDZW.js → chunk.YSWL6IJW.js} +2 -2
- package/dist/chunks/{chunk.UQ65IBBL.js → chunk.YYCO33PM.js} +2 -2
- package/dist/chunks/{chunk.GT6WAUZ7.js → chunk.Z7JE3NFJ.js} +2 -2
- package/dist/chunks/{chunk.CKADV3OI.js → chunk.ZJSALTLL.js} +6 -6
- package/dist/chunks/{chunk.3DCW4HDA.js → chunk.ZOW7OV2U.js} +2 -2
- package/dist/chunks/{chunk.QGLCODBD.js → chunk.ZQJTGEHX.js} +2 -2
- package/dist/chunks/{chunk.LALGMGC2.js → chunk.ZS2RODX4.js} +2 -2
- package/dist/components/accordion/accordion.component.js +3 -3
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.component.js +9 -10
- package/dist/components/alert/alert.js +10 -11
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +4 -4
- package/dist/components/badge/badge.js +5 -5
- package/dist/components/breadcrumb/breadcrumb.component.js +9 -9
- package/dist/components/breadcrumb/breadcrumb.js +10 -10
- 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 +8 -8
- package/dist/components/button/button.js +9 -9
- 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 +6 -6
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/combobox/combobox.component.js +14 -15
- package/dist/components/combobox/combobox.js +15 -16
- package/dist/components/details/details.component.js +7 -7
- package/dist/components/details/details.js +8 -8
- package/dist/components/dialog/dialog.component.js +8 -8
- package/dist/components/dialog/dialog.js +9 -9
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +8 -8
- package/dist/components/drawer/drawer.js +9 -9
- package/dist/components/dropdown/dropdown.component.js +6 -8
- package/dist/components/dropdown/dropdown.js +7 -9
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/file/file.component.js +9 -9
- package/dist/components/file/file.js +10 -10
- package/dist/components/header/header.component.js +8 -8
- package/dist/components/header/header.js +9 -9
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/library.js +2 -2
- package/dist/components/icon/library.migration.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +6 -6
- package/dist/components/icon-button/icon-button.js +7 -7
- package/dist/components/input/input.component.js +9 -9
- package/dist/components/input/input.js +10 -10
- package/dist/components/menu/menu.component.js +3 -4
- package/dist/components/menu/menu.js +4 -5
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.js +11 -13
- package/dist/components/menu-item/menu-item.js +12 -14
- package/dist/components/menu-item/menu-item.styles.js +1 -1
- package/dist/components/menu-label/menu-label.component.js +4 -5
- package/dist/components/menu-label/menu-label.js +5 -6
- 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 +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +8 -8
- package/dist/components/option/option.js +9 -9
- package/dist/components/popup/popup.component.js +3 -4
- package/dist/components/popup/popup.js +4 -5
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +17 -20
- package/dist/components/prio-nav/prio-nav.js +18 -21
- 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 +6 -6
- package/dist/components/radio/radio.js +7 -7
- package/dist/components/radio-button/radio-button.component.js +3 -3
- package/dist/components/radio-button/radio-button.js +4 -4
- package/dist/components/radio-group/radio-group.component.js +4 -4
- package/dist/components/radio-group/radio-group.js +5 -5
- package/dist/components/range/range.component.js +7 -9
- package/dist/components/range/range.js +8 -10
- package/dist/components/range-tick/range-tick.component.js +2 -2
- package/dist/components/range-tick/range-tick.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/select/select.component.js +11 -12
- package/dist/components/select/select.js +12 -13
- package/dist/components/side-nav/side-nav.component.js +13 -13
- package/dist/components/side-nav/side-nav.js +14 -14
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.js +3 -3
- package/dist/components/switch/switch.js +4 -4
- package/dist/components/tab/tab.component.js +8 -8
- package/dist/components/tab/tab.js +9 -9
- package/dist/components/tab-group/tab-group.component.js +9 -9
- package/dist/components/tab-group/tab-group.js +10 -10
- 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 +8 -8
- package/dist/components/tag/tag.js +9 -9
- package/dist/components/textarea/textarea.component.js +3 -3
- package/dist/components/textarea/textarea.js +4 -4
- package/dist/components/tooltip/tooltip.component.d.ts +6 -0
- package/dist/components/tooltip/tooltip.component.js +6 -8
- package/dist/components/tooltip/tooltip.js +7 -9
- package/dist/components/tooltip/tooltip.styles.js +1 -1
- package/dist/components/validate/utility.d.ts +11 -0
- package/dist/components/validate/utility.js +4 -2
- package/dist/components/validate/validate.component.d.ts +21 -2
- package/dist/components/validate/validate.component.js +15 -12
- package/dist/components/validate/validate.js +16 -13
- package/dist/custom-elements.json +142 -84
- package/dist/styles/index.css +1 -1
- package/dist/synergy.js +164 -171
- package/dist/utilities/icon-library.js +2 -2
- package/dist/vscode.html-custom-data.json +30 -26
- package/package.json +4 -4
- package/dist/chunks/chunk.2KYFCKCK.js +0 -10
- package/dist/chunks/chunk.2KYFCKCK.js.map +0 -7
- package/dist/chunks/chunk.36EHOOOO.js +0 -23
- package/dist/chunks/chunk.36EHOOOO.js.map +0 -7
- package/dist/chunks/chunk.3IQ2QEPZ.js.map +0 -7
- package/dist/chunks/chunk.5RI2MXEU.js.map +0 -7
- package/dist/chunks/chunk.6L4RCUNM.js.map +0 -7
- package/dist/chunks/chunk.7RZ27FQL.js.map +0 -7
- package/dist/chunks/chunk.CCY6IYFD.js +0 -107
- package/dist/chunks/chunk.CCY6IYFD.js.map +0 -7
- package/dist/chunks/chunk.DEJAPNIZ.js.map +0 -7
- package/dist/chunks/chunk.E7LBPRDC.js +0 -18
- package/dist/chunks/chunk.E7LBPRDC.js.map +0 -7
- package/dist/chunks/chunk.GIEAMHSU.js.map +0 -7
- package/dist/chunks/chunk.GZHQAHOL.js.map +0 -7
- package/dist/chunks/chunk.H63OT7RB.js.map +0 -7
- package/dist/chunks/chunk.JILCM7FD.js +0 -26
- package/dist/chunks/chunk.JILCM7FD.js.map +0 -7
- package/dist/chunks/chunk.JJ2K4ORZ.js.map +0 -7
- package/dist/chunks/chunk.KT6MHQM6.js.map +0 -7
- package/dist/chunks/chunk.N7HN275B.js +0 -161
- package/dist/chunks/chunk.N7HN275B.js.map +0 -7
- package/dist/chunks/chunk.OY6ZX6TH.js.map +0 -7
- package/dist/chunks/chunk.TSWB7UFK.js.map +0 -7
- package/dist/chunks/chunk.TVVJTCGG.js.map +0 -7
- package/dist/chunks/chunk.UNYO3GI7.js.map +0 -7
- package/dist/chunks/chunk.V37RYGE7.js +0 -24
- package/dist/chunks/chunk.V37RYGE7.js.map +0 -7
- package/dist/chunks/chunk.WEOHOC3C.js.map +0 -7
- package/dist/chunks/chunk.YOFWLXEH.js.map +0 -7
- package/dist/components/alert/alert.custom.styles.d.ts +0 -2
- package/dist/components/alert/alert.custom.styles.js +0 -8
- package/dist/components/alert/alert.custom.styles.js.map +0 -7
- package/dist/components/dropdown/dropdown.custom.styles.d.ts +0 -2
- package/dist/components/dropdown/dropdown.custom.styles.js +0 -8
- package/dist/components/dropdown/dropdown.custom.styles.js.map +0 -7
- package/dist/components/menu/menu.custom.styles.d.ts +0 -2
- package/dist/components/menu/menu.custom.styles.js +0 -8
- package/dist/components/menu/menu.custom.styles.js.map +0 -7
- package/dist/components/menu-item/menu-item.custom.styles.d.ts +0 -2
- package/dist/components/menu-item/menu-item.custom.styles.js +0 -8
- package/dist/components/menu-item/menu-item.custom.styles.js.map +0 -7
- package/dist/components/menu-label/menu-label.custom.styles.d.ts +0 -2
- package/dist/components/menu-label/menu-label.custom.styles.js +0 -8
- package/dist/components/menu-label/menu-label.custom.styles.js.map +0 -7
- package/dist/components/popup/popup.custom.styles.d.ts +0 -2
- package/dist/components/popup/popup.custom.styles.js +0 -8
- package/dist/components/popup/popup.custom.styles.js.map +0 -7
- package/dist/components/tooltip/tooltip.custom.styles.d.ts +0 -2
- package/dist/components/tooltip/tooltip.custom.styles.js +0 -8
- package/dist/components/tooltip/tooltip.custom.styles.js.map +0 -7
- /package/dist/chunks/{chunk.V6TCG5BQ.js.map → chunk.2A5ZKU32.js.map} +0 -0
- /package/dist/chunks/{chunk.CV7OGSN7.js.map → chunk.2IVMHEQ6.js.map} +0 -0
- /package/dist/chunks/{chunk.5T4HS4EI.js.map → chunk.2PPN6KVK.js.map} +0 -0
- /package/dist/chunks/{chunk.CPC3JTDA.js.map → chunk.34DCXKYT.js.map} +0 -0
- /package/dist/chunks/{chunk.XCFOLSPD.js.map → chunk.36JGEYPF.js.map} +0 -0
- /package/dist/chunks/{chunk.IFEFFC3Q.js.map → chunk.3NWL4AL3.js.map} +0 -0
- /package/dist/chunks/{chunk.EAEQ3AGO.js.map → chunk.3WVDHGXC.js.map} +0 -0
- /package/dist/chunks/{chunk.RHL3SPJO.js.map → chunk.4ZWPK4JG.js.map} +0 -0
- /package/dist/chunks/{chunk.RSTYXHB5.js.map → chunk.57A42NLG.js.map} +0 -0
- /package/dist/chunks/{chunk.EUQYBYAZ.js.map → chunk.5QUHHGOD.js.map} +0 -0
- /package/dist/chunks/{chunk.XQZR2X4X.js.map → chunk.6LMYTIGS.js.map} +0 -0
- /package/dist/chunks/{chunk.UCRA4FZW.js.map → chunk.A2AYJJ7H.js.map} +0 -0
- /package/dist/chunks/{chunk.BZMKXI2L.js.map → chunk.AHX2WNRS.js.map} +0 -0
- /package/dist/chunks/{chunk.OZ3LPRZE.js.map → chunk.CVUNFQUG.js.map} +0 -0
- /package/dist/chunks/{chunk.UOEHTGNM.js.map → chunk.D5UFMTUH.js.map} +0 -0
- /package/dist/chunks/{chunk.AVH3ZNCM.js.map → chunk.DFMLUH2N.js.map} +0 -0
- /package/dist/chunks/{chunk.MZJLG4BF.js.map → chunk.EA2ED5LW.js.map} +0 -0
- /package/dist/chunks/{chunk.UE2OCWAE.js.map → chunk.EJTQEUF4.js.map} +0 -0
- /package/dist/chunks/{chunk.X4NXSNI6.js.map → chunk.EPMUBNXV.js.map} +0 -0
- /package/dist/chunks/{chunk.EX4R7WUE.js.map → chunk.FDOTWE5Q.js.map} +0 -0
- /package/dist/chunks/{chunk.BQ7JABKS.js.map → chunk.HBXMQ7PF.js.map} +0 -0
- /package/dist/chunks/{chunk.3XQ5VLXY.js.map → chunk.HINYMLWI.js.map} +0 -0
- /package/dist/chunks/{chunk.7J4TXMXH.js.map → chunk.HSSW752S.js.map} +0 -0
- /package/dist/chunks/{chunk.FFAHZBAJ.js.map → chunk.HZ74RYOQ.js.map} +0 -0
- /package/dist/chunks/{chunk.MCKS4JLW.js.map → chunk.IKGD2H5A.js.map} +0 -0
- /package/dist/chunks/{chunk.KGECDG22.js.map → chunk.J2QD6WCF.js.map} +0 -0
- /package/dist/chunks/{chunk.XUAUB2UI.js.map → chunk.J37FDI7L.js.map} +0 -0
- /package/dist/chunks/{chunk.GZVYO3UJ.js.map → chunk.JHE7UVMI.js.map} +0 -0
- /package/dist/chunks/{chunk.LKMV5MVK.js.map → chunk.JKA6KBXT.js.map} +0 -0
- /package/dist/chunks/{chunk.K5OSYXNU.js.map → chunk.JWA6M5ZZ.js.map} +0 -0
- /package/dist/chunks/{chunk.PODVUIE6.js.map → chunk.JXKV4DYA.js.map} +0 -0
- /package/dist/chunks/{chunk.FKVCNOHV.js.map → chunk.KC4VEV4Y.js.map} +0 -0
- /package/dist/chunks/{chunk.STHUTCU7.js.map → chunk.KURP6IS6.js.map} +0 -0
- /package/dist/chunks/{chunk.YGMDIJUQ.js.map → chunk.L6H7CHLC.js.map} +0 -0
- /package/dist/chunks/{chunk.TBZAI6T6.js.map → chunk.LJNMLUJK.js.map} +0 -0
- /package/dist/chunks/{chunk.3AZ6O5UW.js.map → chunk.LWIAMY4V.js.map} +0 -0
- /package/dist/chunks/{chunk.DFS7LPJO.js.map → chunk.N2P6JGTF.js.map} +0 -0
- /package/dist/chunks/{chunk.RZ3REQWL.js.map → chunk.N5ZE6OSY.js.map} +0 -0
- /package/dist/chunks/{chunk.VH6SKOPX.js.map → chunk.NEHYBY5N.js.map} +0 -0
- /package/dist/chunks/{chunk.YUUXCVT2.js.map → chunk.NMBIRUQU.js.map} +0 -0
- /package/dist/chunks/{chunk.2BATB6NO.js.map → chunk.NMWM3BP7.js.map} +0 -0
- /package/dist/chunks/{chunk.THNHZ3LC.js.map → chunk.NUNQOP7A.js.map} +0 -0
- /package/dist/chunks/{chunk.BJUQE5YL.js.map → chunk.NWNEDOFO.js.map} +0 -0
- /package/dist/chunks/{chunk.JCWTUOY2.js.map → chunk.O5STVMJZ.js.map} +0 -0
- /package/dist/chunks/{chunk.MCAB6KY5.js.map → chunk.OEGAZKUI.js.map} +0 -0
- /package/dist/chunks/{chunk.Q7G25NQW.js.map → chunk.P4ZXNQQ4.js.map} +0 -0
- /package/dist/chunks/{chunk.G7UFPFQ2.js.map → chunk.PDOQLAYW.js.map} +0 -0
- /package/dist/chunks/{chunk.MJA5HEFN.js.map → chunk.PDVI2IPR.js.map} +0 -0
- /package/dist/chunks/{chunk.SWMV7T2O.js.map → chunk.PIKKRGFU.js.map} +0 -0
- /package/dist/chunks/{chunk.Y5XMLHNP.js.map → chunk.PLIBKR5J.js.map} +0 -0
- /package/dist/chunks/{chunk.JHJFFBNL.js.map → chunk.Q3XZRHS6.js.map} +0 -0
- /package/dist/chunks/{chunk.UNTUMNPO.js.map → chunk.Q7TOL5PH.js.map} +0 -0
- /package/dist/chunks/{chunk.UUECFETB.js.map → chunk.Q7VKIJC3.js.map} +0 -0
- /package/dist/chunks/{chunk.FKDUVEOP.js.map → chunk.QOBJ2NX5.js.map} +0 -0
- /package/dist/chunks/{chunk.7TPOI264.js.map → chunk.QTVJRWRP.js.map} +0 -0
- /package/dist/chunks/{chunk.O7OELAMY.js.map → chunk.R4FKW3GX.js.map} +0 -0
- /package/dist/chunks/{chunk.J3GDNLNN.js.map → chunk.RCI5CCXX.js.map} +0 -0
- /package/dist/chunks/{chunk.CMCJB5AA.js.map → chunk.RU2RT37T.js.map} +0 -0
- /package/dist/chunks/{chunk.6A2AHHWZ.js.map → chunk.RXRHPQ7D.js.map} +0 -0
- /package/dist/chunks/{chunk.BVFTZ3AB.js.map → chunk.S2IHOYLF.js.map} +0 -0
- /package/dist/chunks/{chunk.DYE6F2Y6.js.map → chunk.SCKEUIIF.js.map} +0 -0
- /package/dist/chunks/{chunk.TDWLNFH4.js.map → chunk.SCMER6XQ.js.map} +0 -0
- /package/dist/chunks/{chunk.WUKKH3NE.js.map → chunk.SYMEFYEK.js.map} +0 -0
- /package/dist/chunks/{chunk.IPWLCVHW.js.map → chunk.TASXJ4ZX.js.map} +0 -0
- /package/dist/chunks/{chunk.SKQK3F66.js.map → chunk.TB237H74.js.map} +0 -0
- /package/dist/chunks/{chunk.ZJ6JMFVP.js.map → chunk.TVSMRXAW.js.map} +0 -0
- /package/dist/chunks/{chunk.SBLP34SQ.js.map → chunk.UCXZFEKY.js.map} +0 -0
- /package/dist/chunks/{chunk.NTBDBGG7.js.map → chunk.UEMDEZX6.js.map} +0 -0
- /package/dist/chunks/{chunk.CJLZ3QMG.js.map → chunk.VCJQ6DPU.js.map} +0 -0
- /package/dist/chunks/{chunk.FOH4KP4A.js.map → chunk.VEIXDC5G.js.map} +0 -0
- /package/dist/chunks/{chunk.XLYCEJU4.js.map → chunk.VU6FOBTQ.js.map} +0 -0
- /package/dist/chunks/{chunk.SFBSB7EM.js.map → chunk.WBOHZGDF.js.map} +0 -0
- /package/dist/chunks/{chunk.N4Y2OUEA.js.map → chunk.WM6M3IWG.js.map} +0 -0
- /package/dist/chunks/{chunk.XWUVIVOV.js.map → chunk.WOUHL4WE.js.map} +0 -0
- /package/dist/chunks/{chunk.2YBC7C2K.js.map → chunk.XAXHRDXN.js.map} +0 -0
- /package/dist/chunks/{chunk.VHCBBPBS.js.map → chunk.XBDUDOPF.js.map} +0 -0
- /package/dist/chunks/{chunk.XZ7DDRXL.js.map → chunk.XIO6NVNU.js.map} +0 -0
- /package/dist/chunks/{chunk.KUTXV7RO.js.map → chunk.XO7VQMVX.js.map} +0 -0
- /package/dist/chunks/{chunk.SN2VEGTZ.js.map → chunk.XVXJDFUK.js.map} +0 -0
- /package/dist/chunks/{chunk.GCISSJZP.js.map → chunk.XYDE666E.js.map} +0 -0
- /package/dist/chunks/{chunk.BBPFCDZW.js.map → chunk.YSWL6IJW.js.map} +0 -0
- /package/dist/chunks/{chunk.UQ65IBBL.js.map → chunk.YYCO33PM.js.map} +0 -0
- /package/dist/chunks/{chunk.GT6WAUZ7.js.map → chunk.Z7JE3NFJ.js.map} +0 -0
- /package/dist/chunks/{chunk.CKADV3OI.js.map → chunk.ZJSALTLL.js.map} +0 -0
- /package/dist/chunks/{chunk.3DCW4HDA.js.map → chunk.ZOW7OV2U.js.map} +0 -0
- /package/dist/chunks/{chunk.QGLCODBD.js.map → chunk.ZQJTGEHX.js.map} +0 -0
- /package/dist/chunks/{chunk.LALGMGC2.js.map → chunk.ZS2RODX4.js.map} +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
// src/components/menu-item/menu-item.
|
|
1
|
+
// src/components/menu-item/menu-item.styles.ts
|
|
2
2
|
import { css } from "lit";
|
|
3
|
-
var
|
|
3
|
+
var menu_item_styles_default = css`
|
|
4
|
+
/* stylelint-disable no-descending-specificity */
|
|
4
5
|
:host {
|
|
6
|
+
--submenu-offset: -2px;
|
|
7
|
+
|
|
5
8
|
/* Custom override for hiding the checkmark in menus it is not needed */
|
|
6
9
|
--display-checkmark: flex;
|
|
7
10
|
|
|
@@ -16,6 +19,12 @@ var menu_item_custom_styles_default = css`
|
|
|
16
19
|
--menuitem-padding: var(--syn-input-spacing-medium);
|
|
17
20
|
--menuitem-font-size: var(--syn-input-font-size-medium);
|
|
18
21
|
--menuitem-icon-size: var(--syn-spacing-large);
|
|
22
|
+
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([inert]) {
|
|
27
|
+
display: none;
|
|
19
28
|
}
|
|
20
29
|
|
|
21
30
|
.menu-item {
|
|
@@ -32,29 +41,77 @@ var menu_item_custom_styles_default = css`
|
|
|
32
41
|
border-radius: calc(var(--syn-focus-ring-border-radius) + var(--menuitem-inset-border-vertical));
|
|
33
42
|
border-width: var(--menuitem-inset-border-horizontal) var(--menuitem-inset-border-vertical);
|
|
34
43
|
color: var(--syn-option-color);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
display: flex;
|
|
46
|
+
font-family: var(--syn-font-sans);
|
|
35
47
|
font-size: var(--menuitem-font-size);
|
|
48
|
+
font-weight: var(--syn-font-weight-normal);
|
|
49
|
+
letter-spacing: var(--syn-letter-spacing-normal);
|
|
50
|
+
line-height: var(--syn-line-height-normal);
|
|
36
51
|
|
|
37
|
-
/* Height is dependent on line-height of .option__label, which does not fit
|
|
52
|
+
/* Height is dependent on line-height of .option__label, which does not fit the layout completely */
|
|
38
53
|
min-height: var(--menuitem-min-height, var(--syn-input-height-medium));
|
|
39
54
|
padding: 0 calc(var(--menuitem-padding) - var(--menuitem-inset-border-vertical));
|
|
55
|
+
position: relative;
|
|
56
|
+
transition: var(--syn-transition-fast) fill;
|
|
57
|
+
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
58
|
+
-webkit-user-select: none;
|
|
59
|
+
user-select: none;
|
|
60
|
+
white-space: nowrap;
|
|
40
61
|
}
|
|
41
62
|
|
|
42
|
-
|
|
43
|
-
|
|
63
|
+
.menu-item.menu-item--disabled {
|
|
64
|
+
cursor: not-allowed;
|
|
65
|
+
|
|
66
|
+
/** #429: Use token for opacity */
|
|
67
|
+
opacity: var(--syn-opacity-50);
|
|
68
|
+
outline: none;
|
|
44
69
|
}
|
|
45
70
|
|
|
46
|
-
|
|
47
|
-
|
|
71
|
+
.menu-item.menu-item--loading {
|
|
72
|
+
cursor: wait;
|
|
73
|
+
outline: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.menu-item.menu-item--loading *:not(syn-spinner) {
|
|
48
77
|
opacity: var(--syn-opacity-50);
|
|
49
78
|
}
|
|
50
79
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
80
|
+
.menu-item--loading syn-spinner {
|
|
81
|
+
--indicator-color: currentColor;
|
|
82
|
+
--track-width: 2px;
|
|
83
|
+
|
|
84
|
+
color: var(--syn-interactive-emphasis-color);
|
|
85
|
+
font-size: var(--syn-font-size-medium);
|
|
86
|
+
left: calc(var(--menuitem-padding) - var(--menuitem-inset-border-vertical));
|
|
87
|
+
opacity: 1;
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: calc(50% - 0.5em);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.menu-item .menu-item__label {
|
|
93
|
+
display: inline-block;
|
|
94
|
+
flex: 1 1 auto;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.menu-item .menu-item__prefix {
|
|
100
|
+
align-items: center;
|
|
101
|
+
display: flex;
|
|
102
|
+
flex: 0 0 auto;
|
|
103
|
+
}
|
|
104
|
+
|
|
54
105
|
.menu-item .menu-item__prefix::slotted(*) {
|
|
55
106
|
margin-inline-end: var(--syn-spacing-small);
|
|
56
107
|
}
|
|
57
108
|
|
|
109
|
+
.menu-item .menu-item__suffix {
|
|
110
|
+
align-items: center;
|
|
111
|
+
display: flex;
|
|
112
|
+
flex: 0 0 auto;
|
|
113
|
+
}
|
|
114
|
+
|
|
58
115
|
.menu-item .menu-item__suffix::slotted(*) {
|
|
59
116
|
margin-inline-start: var(--syn-spacing-small);
|
|
60
117
|
}
|
|
@@ -68,8 +125,11 @@ var menu_item_custom_styles_default = css`
|
|
|
68
125
|
font-size: var(--syn-font-size-x-large);
|
|
69
126
|
}
|
|
70
127
|
|
|
71
|
-
|
|
72
|
-
|
|
128
|
+
/**
|
|
129
|
+
* #1194: Make sure hover is only done on non disabled items
|
|
130
|
+
*/
|
|
131
|
+
:host(:hover) .menu-item:not(.menu-item--disabled) .menu-item__prefix::slotted(syn-icon),
|
|
132
|
+
:host(:hover) .menu-item:not(.menu-item--disabled) .menu-item__suffix::slotted(syn-icon) {
|
|
73
133
|
color: var(--syn-option-icon-color-hover);
|
|
74
134
|
}
|
|
75
135
|
|
|
@@ -78,25 +138,52 @@ var menu_item_custom_styles_default = css`
|
|
|
78
138
|
color: var(--syn-option-icon-color-active);
|
|
79
139
|
}
|
|
80
140
|
|
|
81
|
-
/*
|
|
82
|
-
|
|
83
|
-
|
|
141
|
+
/* Safe triangle */
|
|
142
|
+
.menu-item--submenu-expanded::after {
|
|
143
|
+
clip-path: polygon(
|
|
144
|
+
var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0),
|
|
145
|
+
var(--safe-triangle-submenu-start-x, 0) var(--safe-triangle-submenu-start-y, 0),
|
|
146
|
+
var(--safe-triangle-submenu-end-x, 0) var(--safe-triangle-submenu-end-y, 0)
|
|
147
|
+
);
|
|
148
|
+
content: '';
|
|
149
|
+
inset: 0;
|
|
150
|
+
position: fixed;
|
|
151
|
+
z-index: calc(var(--syn-z-index-dropdown) - 1);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host(:focus-visible) {
|
|
155
|
+
outline: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host(:hover:not([aria-disabled='true']):not(:focus-visible)) .menu-item,
|
|
84
159
|
.menu-item--submenu-expanded {
|
|
85
160
|
background-color: var(--syn-option-background-color-hover);
|
|
86
161
|
color: var(--syn-option-color-hover);
|
|
87
162
|
}
|
|
88
|
-
/* stylelint-enable selector-not-notation, plugin/no-unsupported-browser-features */
|
|
89
163
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
164
|
+
:host(:focus-visible) .menu-item {
|
|
165
|
+
background-color: var(--syn-option-background-color-active);
|
|
166
|
+
color: var(--syn-color-neutral-0);
|
|
167
|
+
opacity: 1;
|
|
168
|
+
outline: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.menu-item .menu-item__check,
|
|
172
|
+
.menu-item .menu-item__chevron {
|
|
173
|
+
align-items: center;
|
|
95
174
|
display: var(--display-checkmark);
|
|
175
|
+
flex: 0 0 auto;
|
|
96
176
|
font-size: var(--syn-font-size-x-large);
|
|
177
|
+
justify-content: center;
|
|
178
|
+
visibility: hidden;
|
|
97
179
|
width: var(--syn-font-size-x-large);
|
|
98
180
|
}
|
|
99
181
|
|
|
182
|
+
.menu-item .menu-item__check {
|
|
183
|
+
color: var(--syn-option-check-color);
|
|
184
|
+
margin-inline-end: var(--syn-spacing-small);
|
|
185
|
+
}
|
|
186
|
+
|
|
100
187
|
/**
|
|
101
188
|
* This makes sure the chevron does not take any space if we do not have children
|
|
102
189
|
*/
|
|
@@ -105,9 +192,16 @@ var menu_item_custom_styles_default = css`
|
|
|
105
192
|
margin-inline-start: var(--syn-spacing-small);
|
|
106
193
|
}
|
|
107
194
|
|
|
108
|
-
.menu-item .menu-item__check
|
|
109
|
-
|
|
110
|
-
|
|
195
|
+
.menu-item--checked .menu-item__check,
|
|
196
|
+
.menu-item--has-submenu .menu-item__chevron {
|
|
197
|
+
visibility: visible;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Make sure to show the chevron if there are children
|
|
202
|
+
*/
|
|
203
|
+
.menu-item--has-submenu .menu-item__chevron {
|
|
204
|
+
display: flex;
|
|
111
205
|
}
|
|
112
206
|
|
|
113
207
|
/**
|
|
@@ -124,7 +218,7 @@ var menu_item_custom_styles_default = css`
|
|
|
124
218
|
color: var(--syn-option-check-color-active);
|
|
125
219
|
}
|
|
126
220
|
|
|
127
|
-
:host(:hover) .menu-item--checked .menu-item__check {
|
|
221
|
+
:host(:hover) .menu-item--checked:not(.menu-item--disabled) .menu-item__check {
|
|
128
222
|
color: var(--syn-option-check-color-hover);
|
|
129
223
|
}
|
|
130
224
|
|
|
@@ -142,28 +236,6 @@ var menu_item_custom_styles_default = css`
|
|
|
142
236
|
transform: rotate(90deg);
|
|
143
237
|
}
|
|
144
238
|
|
|
145
|
-
.menu-item.menu-item--loading *:not(syn-spinner) {
|
|
146
|
-
opacity: var(--syn-opacity-50);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Make sure to show the chevron if there are children
|
|
151
|
-
*/
|
|
152
|
-
.menu-item--has-submenu .menu-item__chevron {
|
|
153
|
-
display: flex;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Adjustments for the spinner in loading state
|
|
158
|
-
*/
|
|
159
|
-
.menu-item--loading syn-spinner {
|
|
160
|
-
--track-width: 2px;
|
|
161
|
-
|
|
162
|
-
color: var(--syn-interactive-emphasis-color);
|
|
163
|
-
font-size: var(--syn-font-size-medium);
|
|
164
|
-
left: calc(var(--menuitem-padding) - var(--menuitem-inset-border-vertical));
|
|
165
|
-
}
|
|
166
|
-
|
|
167
239
|
/**
|
|
168
240
|
* Highlight checked items
|
|
169
241
|
*/
|
|
@@ -176,9 +248,17 @@ var menu_item_custom_styles_default = css`
|
|
|
176
248
|
min-height: var(--syn-font-size-x-large);
|
|
177
249
|
}
|
|
178
250
|
|
|
179
|
-
/*
|
|
251
|
+
/* Add elevation and z-index to submenus */
|
|
180
252
|
syn-popup::part(popup) {
|
|
253
|
+
/* #1131: Make sure that slotted menus do show the correct border radius */
|
|
181
254
|
border-radius: var(--syn-input-border-radius-medium);
|
|
255
|
+
box-shadow: var(--syn-shadow-large);
|
|
256
|
+
margin-left: var(--submenu-offset);
|
|
257
|
+
z-index: var(--syn-z-index-dropdown);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.menu-item--rtl syn-popup::part(popup) {
|
|
261
|
+
margin-left: calc(-1 * var(--submenu-offset));
|
|
182
262
|
}
|
|
183
263
|
|
|
184
264
|
/**
|
|
@@ -189,9 +269,22 @@ var menu_item_custom_styles_default = css`
|
|
|
189
269
|
syn-popup[data-current-placement^="left"]::part(popup) {
|
|
190
270
|
margin-left: calc(-1 * var(--submenu-offset));
|
|
191
271
|
}
|
|
272
|
+
|
|
273
|
+
@media (forced-colors: active) {
|
|
274
|
+
:host(:hover:not([aria-disabled='true'])) .menu-item,
|
|
275
|
+
:host(:focus-visible) .menu-item {
|
|
276
|
+
outline: dashed 1px SelectedItem;
|
|
277
|
+
outline-offset: -1px;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
::slotted(syn-menu) {
|
|
282
|
+
max-height: var(--auto-size-available-height) !important;
|
|
283
|
+
max-width: var(--auto-size-available-width) !important;
|
|
284
|
+
}
|
|
192
285
|
`;
|
|
193
286
|
|
|
194
287
|
export {
|
|
195
|
-
|
|
288
|
+
menu_item_styles_default
|
|
196
289
|
};
|
|
197
|
-
//# sourceMappingURL=chunk.
|
|
290
|
+
//# sourceMappingURL=chunk.CAEBFUZN.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/menu-item/menu-item.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* stylelint-disable no-descending-specificity */\n :host {\n --submenu-offset: -2px;\n\n /* Custom override for hiding the checkmark in menus it is not needed */\n --display-checkmark: flex;\n\n /**\n * Default size settings for menu-item\n * This prepares the custom sizes that we will add later on\n * @see https://github.com/synergy-design-system/design/issues/277\n */\n --menuitem-inset-border-horizontal: var(--syn-spacing-2x-small);\n --menuitem-inset-border-vertical: calc(var(--syn-spacing-x-small) - 1px);\n --menuitem-min-height: var(--syn-input-height-medium);\n --menuitem-padding: var(--syn-input-spacing-medium);\n --menuitem-font-size: var(--syn-input-font-size-medium);\n --menuitem-icon-size: var(--syn-spacing-large);\n\n display: block;\n }\n\n :host([inert]) {\n display: none;\n }\n\n .menu-item {\n align-items: center;\n\n /*\n * #1127: Brand2025 defines a small gap between options\n * and rounded corners. We achieve that using an border\n * that simulates the gap using the menu background color.\n */\n border: solid var(--syn-panel-background-color);\n\n /* Border Radius needs to be increased to cover the outline */\n border-radius: calc(var(--syn-focus-ring-border-radius) + var(--menuitem-inset-border-vertical));\n border-width: var(--menuitem-inset-border-horizontal) var(--menuitem-inset-border-vertical);\n color: var(--syn-option-color);\n cursor: pointer;\n display: flex;\n font-family: var(--syn-font-sans);\n font-size: var(--menuitem-font-size);\n font-weight: var(--syn-font-weight-normal);\n letter-spacing: var(--syn-letter-spacing-normal);\n line-height: var(--syn-line-height-normal);\n\n /* Height is dependent on line-height of .option__label, which does not fit the layout completely */\n min-height: var(--menuitem-min-height, var(--syn-input-height-medium));\n padding: 0 calc(var(--menuitem-padding) - var(--menuitem-inset-border-vertical));\n position: relative;\n transition: var(--syn-transition-fast) fill;\n /* stylelint-disable-next-line property-no-vendor-prefix */\n -webkit-user-select: none;\n user-select: none;\n white-space: nowrap;\n }\n\n .menu-item.menu-item--disabled {\n cursor: not-allowed;\n\n /** #429: Use token for opacity */\n opacity: var(--syn-opacity-50);\n outline: none;\n }\n\n .menu-item.menu-item--loading {\n cursor: wait;\n outline: none;\n }\n\n .menu-item.menu-item--loading *:not(syn-spinner) {\n opacity: var(--syn-opacity-50);\n }\n\n .menu-item--loading syn-spinner {\n --indicator-color: currentColor;\n --track-width: 2px;\n\n color: var(--syn-interactive-emphasis-color);\n font-size: var(--syn-font-size-medium);\n left: calc(var(--menuitem-padding) - var(--menuitem-inset-border-vertical));\n opacity: 1;\n position: absolute;\n top: calc(50% - 0.5em);\n }\n\n .menu-item .menu-item__label {\n display: inline-block;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .menu-item .menu-item__prefix {\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n }\n\n .menu-item .menu-item__prefix::slotted(*) {\n margin-inline-end: var(--syn-spacing-small);\n }\n\n .menu-item .menu-item__suffix {\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n }\n\n .menu-item .menu-item__suffix::slotted(*) {\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /**\n * Set the default font size to make icons appear correct\n */\n .menu-item .menu-item__prefix::slotted(syn-icon),\n .menu-item .menu-item__suffix::slotted(syn-icon) {\n color: var(--syn-option-icon-color);\n font-size: var(--syn-font-size-x-large);\n }\n\n /**\n * #1194: Make sure hover is only done on non disabled items\n */\n :host(:hover) .menu-item:not(.menu-item--disabled) .menu-item__prefix::slotted(syn-icon),\n :host(:hover) .menu-item:not(.menu-item--disabled) .menu-item__suffix::slotted(syn-icon) {\n color: var(--syn-option-icon-color-hover);\n }\n\n :host(:focus-visible) .menu-item .menu-item__prefix::slotted(syn-icon),\n :host(:focus-visible) .menu-item .menu-item__suffix::slotted(syn-icon) {\n color: var(--syn-option-icon-color-active);\n }\n\n /* Safe triangle */\n .menu-item--submenu-expanded::after {\n clip-path: polygon(\n var(--safe-triangle-cursor-x, 0) var(--safe-triangle-cursor-y, 0),\n var(--safe-triangle-submenu-start-x, 0) var(--safe-triangle-submenu-start-y, 0),\n var(--safe-triangle-submenu-end-x, 0) var(--safe-triangle-submenu-end-y, 0)\n );\n content: '';\n inset: 0;\n position: fixed;\n z-index: calc(var(--syn-z-index-dropdown) - 1);\n }\n\n :host(:focus-visible) {\n outline: none;\n }\n\n :host(:hover:not([aria-disabled='true']):not(:focus-visible)) .menu-item,\n .menu-item--submenu-expanded {\n background-color: var(--syn-option-background-color-hover);\n color: var(--syn-option-color-hover);\n }\n\n :host(:focus-visible) .menu-item {\n background-color: var(--syn-option-background-color-active);\n color: var(--syn-color-neutral-0);\n opacity: 1;\n outline: none;\n }\n\n .menu-item .menu-item__check,\n .menu-item .menu-item__chevron {\n align-items: center;\n display: var(--display-checkmark);\n flex: 0 0 auto;\n font-size: var(--syn-font-size-x-large);\n justify-content: center;\n visibility: hidden;\n width: var(--syn-font-size-x-large);\n }\n\n .menu-item .menu-item__check {\n color: var(--syn-option-check-color);\n margin-inline-end: var(--syn-spacing-small);\n }\n\n /**\n * This makes sure the chevron does not take any space if we do not have children\n */\n .menu-item .menu-item__chevron {\n display: none;\n margin-inline-start: var(--syn-spacing-small);\n }\n\n .menu-item--checked .menu-item__check,\n .menu-item--has-submenu .menu-item__chevron {\n visibility: visible;\n }\n\n /**\n * Make sure to show the chevron if there are children\n */\n .menu-item--has-submenu .menu-item__chevron {\n display: flex;\n }\n\n /**\n * When in loading state, do not show the checkmark as it would bleed through\n */\n .menu-item--loading .menu-item__check {\n visibility: hidden;\n }\n\n /**\n * Make sure the checkbox is also visible when the item is active\n */\n :host(:focus-visible) .menu-item--checked .menu-item__check {\n color: var(--syn-option-check-color-active);\n }\n\n :host(:hover) .menu-item--checked:not(.menu-item--disabled) .menu-item__check { \n color: var(--syn-option-check-color-hover);\n }\n\n /**\n * Special handling for the submenu chevron:\n * We are using the \"chevron-down\" icon per default as\n * we do not want all chevrons to be part of the bundle\n * Therefore, we have to transform it into the right direction\n */\n .menu-item .menu-item__chevron syn-icon {\n transform: rotate(-90deg);\n }\n\n .menu-item--rtl .menu-item__chevron syn-icon {\n transform: rotate(90deg);\n }\n\n /**\n * Highlight checked items\n */\n .menu-item--checked .menu-item__label {\n font-weight: var(--syn-font-weight-semibold);\n }\n\n /* Needed if we do not show the checkmark */\n :host(:not([type=\"checkmark\"]):not([loading])) .menu-item__label {\n min-height: var(--syn-font-size-x-large);\n }\n\n /* Add elevation and z-index to submenus */\n syn-popup::part(popup) {\n /* #1131: Make sure that slotted menus do show the correct border radius */\n border-radius: var(--syn-input-border-radius-medium);\n box-shadow: var(--syn-shadow-large);\n margin-left: var(--submenu-offset);\n z-index: var(--syn-z-index-dropdown);\n }\n\n .menu-item--rtl syn-popup::part(popup) {\n margin-left: calc(-1 * var(--submenu-offset));\n }\n\n /**\n * #1009: Adjust the position for submenus when they are opened to the left, too.\n * This works because the data-current-placement attribute is set on the popup accordingly.\n * We do not use the actual placement attribute, because it does not update when the placement changes\n */\n syn-popup[data-current-placement^=\"left\"]::part(popup) {\n margin-left: calc(-1 * var(--submenu-offset));\n }\n\n @media (forced-colors: active) {\n :host(:hover:not([aria-disabled='true'])) .menu-item,\n :host(:focus-visible) .menu-item {\n outline: dashed 1px SelectedItem;\n outline-offset: -1px;\n }\n }\n\n ::slotted(syn-menu) {\n max-height: var(--auto-size-available-height) !important;\n max-width: var(--auto-size-available-width) !important;\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,2BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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AA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynHeader
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XBDUDOPF.js";
|
|
4
4
|
|
|
5
5
|
// src/components/header/header.ts
|
|
6
6
|
var header_default = SynHeader;
|
|
@@ -9,4 +9,4 @@ SynHeader.define("syn-header");
|
|
|
9
9
|
export {
|
|
10
10
|
header_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.CVUNFQUG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynCheckbox
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XIO6NVNU.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.D5UFMTUH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressRing
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.EA2ED5LW.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress-ring/progress-ring.ts
|
|
6
6
|
var progress_ring_default = SynProgressRing;
|
|
@@ -9,4 +9,4 @@ SynProgressRing.define("syn-progress-ring");
|
|
|
9
9
|
export {
|
|
10
10
|
progress_ring_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.DFMLUH2N.js.map
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
dropdown_custom_styles_default
|
|
3
|
-
} from "./chunk.2KYFCKCK.js";
|
|
4
1
|
import {
|
|
5
2
|
dropdown_styles_default
|
|
6
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.TUSN4AOP.js";
|
|
7
4
|
import {
|
|
8
5
|
getDeepestActiveElement,
|
|
9
6
|
getTabbableBoundary
|
|
10
7
|
} from "./chunk.XRSLCQH3.js";
|
|
11
8
|
import {
|
|
12
9
|
SynPopup
|
|
13
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.AOOC5ALQ.js";
|
|
14
11
|
import {
|
|
15
12
|
waitForEvent
|
|
16
13
|
} from "./chunk.LQDIH4Z5.js";
|
|
@@ -22,18 +19,18 @@ import {
|
|
|
22
19
|
getAnimation,
|
|
23
20
|
setDefaultAnimation
|
|
24
21
|
} from "./chunk.RJUVM6NO.js";
|
|
25
|
-
import {
|
|
26
|
-
LocalizeController
|
|
27
|
-
} from "./chunk.QLETXF4A.js";
|
|
28
22
|
import {
|
|
29
23
|
watch
|
|
30
24
|
} from "./chunk.SMIMHADA.js";
|
|
25
|
+
import {
|
|
26
|
+
LocalizeController
|
|
27
|
+
} from "./chunk.QLETXF4A.js";
|
|
31
28
|
import {
|
|
32
29
|
component_styles_default
|
|
33
30
|
} from "./chunk.2NT3B5WJ.js";
|
|
34
31
|
import {
|
|
35
32
|
SynergyElement
|
|
36
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.IUFTAV2I.js";
|
|
37
34
|
import {
|
|
38
35
|
__decorateClass
|
|
39
36
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -324,7 +321,7 @@ var SynDropdown = class extends SynergyElement {
|
|
|
324
321
|
`;
|
|
325
322
|
}
|
|
326
323
|
};
|
|
327
|
-
SynDropdown.styles = [component_styles_default, dropdown_styles_default
|
|
324
|
+
SynDropdown.styles = [component_styles_default, dropdown_styles_default];
|
|
328
325
|
SynDropdown.dependencies = { "syn-popup": SynPopup };
|
|
329
326
|
__decorateClass([
|
|
330
327
|
query(".dropdown")
|
|
@@ -380,4 +377,4 @@ setDefaultAnimation("dropdown.hide", {
|
|
|
380
377
|
export {
|
|
381
378
|
SynDropdown
|
|
382
379
|
};
|
|
383
|
-
//# sourceMappingURL=chunk.
|
|
380
|
+
//# sourceMappingURL=chunk.E3U7WNRA.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/dropdown/dropdown.component.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable */\nimport { animateTo, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { getDeepestActiveElement } from '../../internal/active-elements.js';\nimport { getTabbableBoundary } from '../../internal/tabbable.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\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 SynPopup from '../popup/popup.component.js';\nimport styles from './dropdown.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynSelectEvent } from '../../events/syn-select.js';\nimport type SynButton from '../button/button.js';\nimport type SynIconButton from '../icon-button/icon-button.js';\nimport type SynMenu from '../menu/menu.js';\n\n/**\n * @summary Dropdowns expose additional content that \"drops down\" in a panel.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-dropdown--docs\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The dropdown's main content.\n * @slot trigger - The dropdown's trigger, usually a `<syn-button>` element.\n *\n * @event syn-show - Emitted when the dropdown opens.\n * @event syn-after-show - Emitted after the dropdown opens and all animations are complete.\n * @event syn-hide - Emitted when the dropdown closes.\n * @event syn-after-hide - Emitted after the dropdown closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper, an `<syn-popup>` element.\n * @csspart base__popup - The popup's exported `popup` part. Use this to target the tooltip's popup container.\n * @csspart trigger - The container that wraps the trigger.\n * @csspart panel - The panel that gets shown when the dropdown is open.\n *\n * @animation dropdown.show - The animation to use when showing the dropdown.\n * @animation dropdown.hide - The animation to use when hiding the dropdown.\n */\nexport default class SynDropdown extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n static dependencies = { 'syn-popup': SynPopup };\n\n @query('.dropdown') popup: SynPopup;\n @query('.dropdown__trigger') trigger: HTMLSlotElement;\n @query('.dropdown__panel') panel: HTMLSlotElement;\n\n private readonly localize = new LocalizeController(this);\n private closeWatcher: CloseWatcher | null;\n\n /**\n * Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\n * can use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\n * inside of the viewport.\n */\n @property({ reflect: true }) placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'bottom-start';\n\n /** Disables the dropdown so the panel will not open. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\n * dropdowns that allow for multiple interactions.\n */\n @property({ attribute: 'stay-open-on-select', type: Boolean, reflect: true }) stayOpenOnSelect = false;\n\n /**\n * The dropdown will close when the user interacts outside of this element (e.g. clicking). Useful for composing other\n * components that use a dropdown internally.\n */\n @property({ attribute: false }) containingElement?: HTMLElement;\n\n /** The distance in pixels from which to offset the panel away from its trigger. */\n @property({ type: Number }) distance = 0;\n\n /** The distance in pixels from which to offset the panel along its trigger. */\n @property({ type: Number }) skidding = 0;\n\n /**\n * Syncs the popup width or height to that of the trigger element.\n */\n @property({ reflect: true }) sync: 'width' | 'height' | 'both' | undefined = undefined;\n\n connectedCallback() {\n super.connectedCallback();\n\n if (!this.containingElement) {\n this.containingElement = this;\n }\n }\n\n firstUpdated() {\n this.panel.hidden = !this.open;\n\n // If the dropdown is visible on init, update its position\n if (this.open) {\n this.addOpenListeners();\n this.popup.active = true;\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeOpenListeners();\n this.hide();\n }\n\n focusOnTrigger() {\n const trigger = this.trigger.assignedElements({ flatten: true })[0] as HTMLElement | undefined;\n if (typeof trigger?.focus === 'function') {\n trigger.focus();\n }\n }\n\n getMenu() {\n return this.panel.assignedElements({ flatten: true }).find(el => el.tagName.toLowerCase() === 'syn-menu') as\n | SynMenu\n | undefined;\n }\n\n private handleKeyDown = (event: KeyboardEvent) => {\n // Close when escape is pressed inside an open dropdown. We need to listen on the panel itself and stop propagation\n // in case any ancestors are also listening for this key.\n if (this.open && event.key === 'Escape') {\n event.stopPropagation();\n this.hide();\n this.focusOnTrigger();\n }\n };\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n // Close when escape or tab is pressed\n if (event.key === 'Escape' && this.open && !this.closeWatcher) {\n event.stopPropagation();\n this.focusOnTrigger();\n this.hide();\n return;\n }\n\n // Handle tabbing\n if (event.key === 'Tab') {\n // Tabbing within an open menu should close the dropdown and refocus the trigger\n if (this.open && document.activeElement?.tagName.toLowerCase() === 'syn-menu-item') {\n event.preventDefault();\n this.hide();\n this.focusOnTrigger();\n return;\n }\n\n const computeClosestContaining = (element: Element | null | undefined, tagName: string): Element | null => {\n if (!element) return null;\n\n const closest = element.closest(tagName);\n if (closest) return closest;\n\n const rootNode = element.getRootNode();\n if (rootNode instanceof ShadowRoot) {\n return computeClosestContaining(rootNode.host, tagName);\n }\n\n return null;\n };\n\n // Tabbing outside of the containing element closes the panel\n //\n // If the dropdown is used within a shadow DOM, we need to obtain the activeElement within that shadowRoot,\n // otherwise `document.activeElement` will only return the name of the parent shadow DOM element.\n setTimeout(() => {\n const activeElement =\n this.containingElement?.getRootNode() instanceof ShadowRoot\n ? getDeepestActiveElement()\n : document.activeElement;\n\n if (\n !this.containingElement ||\n computeClosestContaining(activeElement, this.containingElement.tagName.toLowerCase()) !==\n this.containingElement\n ) {\n this.hide();\n }\n });\n }\n };\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the containing element\n const path = event.composedPath();\n if (this.containingElement && !path.includes(this.containingElement)) {\n this.hide();\n }\n };\n\n private handlePanelSelect = (event: SynSelectEvent) => {\n const target = event.target as HTMLElement;\n\n // Hide the dropdown when a menu item is selected\n if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === 'syn-menu') {\n this.hide();\n this.focusOnTrigger();\n }\n };\n\n handleTriggerClick() {\n if (this.open) {\n this.hide();\n } else {\n this.show();\n this.focusOnTrigger();\n }\n }\n\n async handleTriggerKeyDown(event: KeyboardEvent) {\n // When spacebar/enter is pressed, show the panel but don't focus on the menu. This let's the user press the same\n // key again to hide the menu in case they don't want to make a selection.\n if ([' ', 'Enter'].includes(event.key)) {\n event.preventDefault();\n this.handleTriggerClick();\n return;\n }\n\n const menu = this.getMenu();\n\n if (menu) {\n const menuItems = menu.getAllItems();\n const firstMenuItem = menuItems[0];\n const lastMenuItem = menuItems[menuItems.length - 1];\n\n // When up/down is pressed, we make the assumption that the user is familiar with the menu and plans to make a\n // selection. Rather than toggle the panel, we focus on the menu (if one exists) and activate the first item for\n // faster navigation.\n if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n event.preventDefault();\n\n // Show the menu if it's not already open\n if (!this.open) {\n this.show();\n\n // Wait for the dropdown to open before focusing, but not the animation\n await this.updateComplete;\n }\n\n if (menuItems.length > 0) {\n // Focus on the first/last menu item after showing\n this.updateComplete.then(() => {\n if (event.key === 'ArrowDown' || event.key === 'Home') {\n menu.setCurrentItem(firstMenuItem);\n firstMenuItem.focus();\n }\n\n if (event.key === 'ArrowUp' || event.key === 'End') {\n menu.setCurrentItem(lastMenuItem);\n lastMenuItem.focus();\n }\n });\n }\n }\n }\n }\n\n handleTriggerKeyUp(event: KeyboardEvent) {\n // Prevent space from triggering a click event in Firefox\n if (event.key === ' ') {\n event.preventDefault();\n }\n }\n\n handleTriggerSlotChange() {\n this.updateAccessibleTrigger();\n }\n\n //\n // Slotted triggers can be arbitrary content, but we need to link them to the dropdown panel with `aria-haspopup` and\n // `aria-expanded`. These must be applied to the \"accessible trigger\" (the tabbable portion of the trigger element\n // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,\n // a child of the slotted element, or an element in the slotted element's shadow root.\n //\n // For example, the accessible trigger of an <syn-button> is a <button> located inside its shadow root.\n //\n // To determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n //\n updateAccessibleTrigger() {\n const assignedElements = this.trigger.assignedElements({ flatten: true }) as HTMLElement[];\n const accessibleTrigger = assignedElements.find(el => getTabbableBoundary(el).start);\n let target: HTMLElement;\n\n if (accessibleTrigger) {\n switch (accessibleTrigger.tagName.toLowerCase()) {\n // Synergy buttons have to update the internal button so it's announced correctly by screen readers\n case 'syn-button':\n case 'syn-icon-button':\n target = (accessibleTrigger as SynButton | SynIconButton).button;\n break;\n\n default:\n target = accessibleTrigger;\n }\n\n target.setAttribute('aria-haspopup', 'true');\n target.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n }\n\n /** Shows the dropdown panel. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the dropdown panel */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\n * is activated.\n */\n reposition() {\n this.popup.reposition();\n }\n\n addOpenListeners() {\n this.panel.addEventListener('syn-select', this.handlePanelSelect);\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n this.hide();\n this.focusOnTrigger();\n };\n } else {\n this.panel.addEventListener('keydown', this.handleKeyDown);\n }\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n }\n\n removeOpenListeners() {\n if (this.panel) {\n this.panel.removeEventListener('syn-select', this.handlePanelSelect);\n this.panel.removeEventListener('keydown', this.handleKeyDown);\n }\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n this.closeWatcher?.destroy();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.disabled) {\n this.open = false;\n return;\n }\n\n this.updateAccessibleTrigger();\n\n if (this.open) {\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n\n await stopAnimations(this);\n this.panel.hidden = false;\n this.popup.active = true;\n const { keyframes, options } = getAnimation(this, 'dropdown.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n this.removeOpenListeners();\n\n await stopAnimations(this);\n const { keyframes, options } = getAnimation(this, 'dropdown.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.panel.hidden = true;\n this.popup.active = false;\n\n this.emit('syn-after-hide');\n }\n }\n\n render() {\n return html`\n <syn-popup\n part=\"base\"\n exportparts=\"popup:base__popup\"\n id=\"dropdown\"\n placement=${this.placement}\n distance=${this.distance}\n skidding=${this.skidding}\n flip\n shift\n auto-size=\"vertical\"\n auto-size-padding=\"10\"\n sync=${ifDefined(this.sync ? this.sync : undefined)}\n class=${classMap({\n dropdown: true,\n 'dropdown--open': this.open\n })}\n >\n <slot\n name=\"trigger\"\n slot=\"anchor\"\n part=\"trigger\"\n class=\"dropdown__trigger\"\n @click=${this.handleTriggerClick}\n @keydown=${this.handleTriggerKeyDown}\n @keyup=${this.handleTriggerKeyUp}\n @slotchange=${this.handleTriggerSlotChange}\n ></slot>\n\n <div aria-hidden=${this.open ? 'false' : 'true'} aria-labelledby=\"dropdown\">\n <slot part=\"panel\" class=\"dropdown__panel\"></slot>\n </div>\n </syn-popup>\n `;\n }\n}\n\nsetDefaultAnimation('dropdown.show', {\n keyframes: [\n { opacity: 0, scale: 0.9 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n\nsetDefaultAnimation('dropdown.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.9 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAE1B,SAAS,UAAU,aAAa;AAqChC,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAQE,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AAOX,gBAAO;AAMtB,qBAYZ;AAG2B,oBAAW;AAMuB,4BAAmB;AASrE,oBAAW;AAGX,oBAAW;AAKV,gBAAgD;AAuC7E,SAAQ,gBAAgB,CAAC,UAAyB;AAGhD,UAAI,KAAK,QAAQ,MAAM,QAAQ,UAAU;AACvC,cAAM,gBAAgB;AACtB,aAAK,KAAK;AACV,aAAK,eAAe;AAAA,MACtB;AAAA,IACF;AAEA,SAAQ,wBAAwB,CAAC,UAAyB;AA1J5D;AA4JI,UAAI,MAAM,QAAQ,YAAY,KAAK,QAAQ,CAAC,KAAK,cAAc;AAC7D,cAAM,gBAAgB;AACtB,a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C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GApCvB,YAoCyB;AAMkC;AAAA,EAA7E,SAAS,EAAE,WAAW,uBAAuB,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA1CzD,YA0C2D;AAM9C;AAAA,EAA/B,SAAS,EAAE,WAAW,MAAM,CAAC;AAAA,GAhDX,YAgDa;AAGJ;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAnDP,YAmDS;AAGA;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAtDP,YAsDS;AAKC;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA3DR,YA2DU;AAoRvB;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA9U1B,YA+Ub;AAyER,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,IACzB,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,EACzB;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;AAED,oBAAoB,iBAAiB;AAAA,EACnC,WAAW;AAAA,IACT,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,IACvB,EAAE,SAAS,GAAG,OAAO,IAAI;AAAA,EAC3B;AAAA,EACA,SAAS,EAAE,UAAU,KAAK,QAAQ,OAAO;AAC3C,CAAC;",
|
|
6
|
+
"names": ["_a"]
|
|
7
|
+
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk.2NT3B5WJ.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.IUFTAV2I.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
18
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -76,4 +76,4 @@ __decorateClass([
|
|
|
76
76
|
export {
|
|
77
77
|
SynProgressRing
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=chunk.
|
|
79
|
+
//# sourceMappingURL=chunk.EA2ED5LW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDropdown
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.E3U7WNRA.js";
|
|
4
4
|
|
|
5
5
|
// src/components/dropdown/dropdown.ts
|
|
6
6
|
var dropdown_default = SynDropdown;
|
|
@@ -9,4 +9,4 @@ SynDropdown.define("syn-dropdown");
|
|
|
9
9
|
export {
|
|
10
10
|
dropdown_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.EJTQEUF4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBadge
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.KURP6IS6.js";
|
|
4
4
|
|
|
5
5
|
// src/components/badge/badge.ts
|
|
6
6
|
var badge_default = SynBadge;
|
|
@@ -9,4 +9,4 @@ SynBadge.define("syn-badge");
|
|
|
9
9
|
export {
|
|
10
10
|
badge_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.EPMUBNXV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/components/tooltip/tooltip.styles.ts
|
|
2
2
|
import { css } from "lit";
|
|
3
3
|
var tooltip_styles_default = css`
|
|
4
|
-
|
|
4
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
5
5
|
:host {
|
|
6
6
|
--max-width: 20rem;
|
|
7
7
|
--hide-delay: 0ms;
|
|
@@ -10,6 +10,11 @@ var tooltip_styles_default = css`
|
|
|
10
10
|
display: contents;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/** #640: Adjust the zIndex of the arrow to make sure the box-shadow above does not bleed out */
|
|
14
|
+
:host ::part(arrow) {
|
|
15
|
+
z-index: 0 !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
.tooltip {
|
|
14
19
|
--arrow-size: var(--syn-tooltip-arrow-size);
|
|
15
20
|
--arrow-color: var(--syn-tooltip-background-color);
|
|
@@ -36,26 +41,27 @@ var tooltip_styles_default = css`
|
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.tooltip__body {
|
|
39
|
-
display: block;
|
|
40
|
-
width: max-content;
|
|
41
|
-
max-width: var(--max-width);
|
|
42
|
-
border-radius: var(--syn-tooltip-border-radius);
|
|
43
44
|
background-color: var(--syn-tooltip-background-color);
|
|
45
|
+
border-radius: var(--syn-tooltip-border-radius);
|
|
46
|
+
box-shadow: var(--syn-shadow-large);
|
|
47
|
+
color: var(--syn-tooltip-color);
|
|
48
|
+
display: block;
|
|
44
49
|
font-family: var(--syn-tooltip-font-family);
|
|
45
50
|
font-size: var(--syn-tooltip-font-size);
|
|
46
51
|
font-weight: var(--syn-tooltip-font-weight);
|
|
47
52
|
line-height: var(--syn-tooltip-line-height);
|
|
48
|
-
|
|
49
|
-
white-space: normal;
|
|
50
|
-
color: var(--syn-tooltip-color);
|
|
53
|
+
max-width: var(--max-width);
|
|
51
54
|
padding: var(--syn-tooltip-padding);
|
|
52
55
|
pointer-events: none;
|
|
53
|
-
|
|
56
|
+
text-align: start;
|
|
54
57
|
-webkit-user-select: none;
|
|
58
|
+
user-select: none;
|
|
59
|
+
white-space: normal;
|
|
60
|
+
width: max-content;
|
|
55
61
|
}
|
|
56
62
|
`;
|
|
57
63
|
|
|
58
64
|
export {
|
|
59
65
|
tooltip_styles_default
|
|
60
66
|
};
|
|
61
|
-
//# sourceMappingURL=chunk.
|
|
67
|
+
//# sourceMappingURL=chunk.EQUDFX74.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/tooltip/tooltip.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* stylelint-disable property-no-vendor-prefix */\n :host {\n --max-width: 20rem;\n --hide-delay: 0ms;\n --show-delay: 150ms;\n\n display: contents;\n }\n\n /** #640: Adjust the zIndex of the arrow to make sure the box-shadow above does not bleed out */\n :host ::part(arrow) {\n z-index: 0 !important;\n }\n\n .tooltip {\n --arrow-size: var(--syn-tooltip-arrow-size);\n --arrow-color: var(--syn-tooltip-background-color);\n }\n\n .tooltip::part(popup) {\n z-index: var(--syn-z-index-tooltip);\n }\n\n .tooltip[placement^='top']::part(popup) {\n transform-origin: bottom;\n }\n\n .tooltip[placement^='bottom']::part(popup) {\n transform-origin: top;\n }\n\n .tooltip[placement^='left']::part(popup) {\n transform-origin: right;\n }\n\n .tooltip[placement^='right']::part(popup) {\n transform-origin: left;\n }\n\n .tooltip__body {\n background-color: var(--syn-tooltip-background-color);\n border-radius: var(--syn-tooltip-border-radius);\n box-shadow: var(--syn-shadow-large);\n color: var(--syn-tooltip-color);\n display: block;\n font-family: var(--syn-tooltip-font-family);\n font-size: var(--syn-tooltip-font-size);\n font-weight: var(--syn-tooltip-font-weight);\n line-height: var(--syn-tooltip-line-height);\n max-width: var(--max-width);\n padding: var(--syn-tooltip-padding);\n pointer-events: none;\n text-align: start;\n -webkit-user-select: none;\n user-select: none;\n white-space: normal;\n width: max-content;\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,yBAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
HasSlotController
|
|
15
15
|
} from "./chunk.CHFWLQN5.js";
|
|
16
|
-
import {
|
|
17
|
-
enableDefaultSettings
|
|
18
|
-
} from "./chunk.YACUYJZN.js";
|
|
19
16
|
import {
|
|
20
17
|
watch
|
|
21
18
|
} from "./chunk.SMIMHADA.js";
|
|
19
|
+
import {
|
|
20
|
+
enableDefaultSettings
|
|
21
|
+
} from "./chunk.YACUYJZN.js";
|
|
22
22
|
import {
|
|
23
23
|
component_styles_default
|
|
24
24
|
} from "./chunk.2NT3B5WJ.js";
|
|
25
25
|
import {
|
|
26
26
|
SynergyElement
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.IUFTAV2I.js";
|
|
28
28
|
import {
|
|
29
29
|
__decorateClass
|
|
30
30
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -264,4 +264,4 @@ SynSwitch = __decorateClass([
|
|
|
264
264
|
export {
|
|
265
265
|
SynSwitch
|
|
266
266
|
};
|
|
267
|
-
//# sourceMappingURL=chunk.
|
|
267
|
+
//# sourceMappingURL=chunk.FDOTWE5Q.js.map
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
HasSlotController
|
|
15
15
|
} from "./chunk.CHFWLQN5.js";
|
|
16
|
-
import {
|
|
17
|
-
enableDefaultSettings
|
|
18
|
-
} from "./chunk.YACUYJZN.js";
|
|
19
16
|
import {
|
|
20
17
|
watch
|
|
21
18
|
} from "./chunk.SMIMHADA.js";
|
|
19
|
+
import {
|
|
20
|
+
enableDefaultSettings
|
|
21
|
+
} from "./chunk.YACUYJZN.js";
|
|
22
22
|
import {
|
|
23
23
|
component_styles_default
|
|
24
24
|
} from "./chunk.2NT3B5WJ.js";
|
|
25
25
|
import {
|
|
26
26
|
SynergyElement
|
|
27
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.IUFTAV2I.js";
|
|
28
28
|
import {
|
|
29
29
|
__decorateClass
|
|
30
30
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -379,4 +379,4 @@ SynTextarea = __decorateClass([
|
|
|
379
379
|
export {
|
|
380
380
|
SynTextarea
|
|
381
381
|
};
|
|
382
|
-
//# sourceMappingURL=chunk.
|
|
382
|
+
//# sourceMappingURL=chunk.HBXMQ7PF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTextarea
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.HBXMQ7PF.js";
|
|
4
4
|
|
|
5
5
|
// src/components/textarea/textarea.ts
|
|
6
6
|
var textarea_default = SynTextarea;
|
|
@@ -9,4 +9,4 @@ SynTextarea.define("syn-textarea");
|
|
|
9
9
|
export {
|
|
10
10
|
textarea_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.HINYMLWI.js.map
|