@synergy-design-system/components 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/chunk.236RSW67.js +29 -0
- package/dist/chunks/chunk.236RSW67.js.map +7 -0
- package/dist/chunks/chunk.277APOW3.js +277 -0
- package/dist/chunks/chunk.277APOW3.js.map +7 -0
- package/dist/chunks/chunk.2DWAWNCX.js +12 -0
- package/dist/chunks/chunk.2DWAWNCX.js.map +7 -0
- package/dist/chunks/{chunk.QNDC5KWA.js → chunk.2GFK6XTO.js} +17 -13
- package/dist/chunks/{chunk.DCWG25RX.js → chunk.2H5VZMM6.js} +6 -6
- package/dist/chunks/{chunk.5BDQUWIH.js → chunk.2RCFWUMX.js} +10 -10
- package/dist/chunks/{chunk.SNLPFVBC.js → chunk.35V3TAOT.js} +11 -2
- package/dist/chunks/{chunk.SNLPFVBC.js.map → chunk.35V3TAOT.js.map} +2 -2
- package/dist/chunks/{chunk.HPWFMICA.js → chunk.3BYNCSYI.js} +10 -8
- package/dist/chunks/chunk.3BYNCSYI.js.map +7 -0
- package/dist/chunks/{chunk.SN6A7VBJ.js → chunk.3TAWE2BI.js} +2 -2
- package/dist/chunks/{chunk.SOVF26GR.js → chunk.3TEIFNRP.js} +9 -9
- package/dist/chunks/{chunk.CZISOWFR.js → chunk.4WDBHKEV.js} +9 -12
- package/dist/chunks/{chunk.CZISOWFR.js.map → chunk.4WDBHKEV.js.map} +1 -1
- package/dist/chunks/{chunk.GCVGZHJK.js → chunk.4ZABXKYI.js} +2 -2
- package/dist/chunks/{chunk.RX7A4EQ2.js → chunk.5732DMBC.js} +9 -1
- package/dist/chunks/chunk.5732DMBC.js.map +7 -0
- package/dist/chunks/{chunk.POXDBLOS.js → chunk.5WTYMY7E.js} +6 -6
- package/dist/chunks/{chunk.3442R447.js → chunk.6I4QZHQ6.js} +4 -4
- package/dist/chunks/{chunk.3442R447.js.map → chunk.6I4QZHQ6.js.map} +2 -2
- package/dist/chunks/{chunk.26PVORV4.js → chunk.6OCJR2YI.js} +5 -5
- package/dist/chunks/{chunk.6UAOF7WN.js → chunk.72HIKLQG.js} +24 -3
- package/dist/chunks/chunk.72HIKLQG.js.map +7 -0
- package/dist/chunks/{chunk.REXNHEPD.js → chunk.72KEPLD4.js} +2 -2
- package/dist/chunks/{chunk.QJMO7V5R.js → chunk.74IOULXM.js} +2 -2
- package/dist/chunks/{chunk.7TOZAZTA.js → chunk.7B5QDYTK.js} +11 -15
- package/dist/chunks/chunk.7B5QDYTK.js.map +7 -0
- package/dist/chunks/{chunk.XY7PAA7K.js → chunk.7GVODRHO.js} +2 -2
- package/dist/chunks/{chunk.BZ7DXEKT.js → chunk.7I5Q3H5W.js} +2 -2
- package/dist/chunks/{chunk.2LACXU5F.js → chunk.7J54DP5U.js} +2 -2
- package/dist/chunks/{chunk.APPDW65F.js → chunk.7YRTMCIL.js} +21 -21
- package/dist/chunks/chunk.7YRTMCIL.js.map +7 -0
- package/dist/chunks/{chunk.MLOZ4D3V.js → chunk.A3OYJILJ.js} +2 -2
- package/dist/chunks/{chunk.VCCPDP5S.js → chunk.A7S3RARM.js} +2 -2
- package/dist/chunks/{chunk.QBVLTYU7.js → chunk.BBNQVEPD.js} +3 -4
- package/dist/chunks/{chunk.QBVLTYU7.js.map → chunk.BBNQVEPD.js.map} +1 -1
- package/dist/chunks/{chunk.U7YAV7S3.js → chunk.BBUFEDXF.js} +5 -5
- package/dist/chunks/{chunk.U7YAV7S3.js.map → chunk.BBUFEDXF.js.map} +1 -1
- package/dist/chunks/{chunk.4VJLNO6Y.js → chunk.BHYMSPYR.js} +5 -5
- package/dist/chunks/{chunk.VI6PYB5C.js → chunk.CHG7CKU3.js} +6 -6
- package/dist/chunks/{chunk.IOTJRIT5.js → chunk.CSEYI4PC.js} +2 -2
- package/dist/chunks/{chunk.A45QGUNM.js → chunk.D23EOBAA.js} +2 -2
- package/dist/chunks/{chunk.7INB3LU4.js → chunk.D5J4VTCV.js} +2 -2
- package/dist/chunks/{chunk.OP4WTQ2R.js → chunk.DGSAPH64.js} +8 -8
- package/dist/chunks/{chunk.CG7HK3HS.js → chunk.DKGNY4YS.js} +12 -12
- package/dist/chunks/chunk.DKGNY4YS.js.map +7 -0
- package/dist/chunks/{chunk.W2474HMX.js → chunk.DRLBTO2U.js} +4 -6
- package/dist/chunks/{chunk.W2474HMX.js.map → chunk.DRLBTO2U.js.map} +1 -1
- package/dist/chunks/{chunk.HLRZHIBP.js → chunk.DVF5JNGN.js} +2 -2
- package/dist/chunks/{chunk.SIADSRVP.js → chunk.DZSCTRUT.js} +2 -2
- package/dist/chunks/{chunk.XBHV2RZS.js → chunk.ECTOUABW.js} +7 -7
- package/dist/chunks/{chunk.ZTEMBLJH.js → chunk.ESQAXAFE.js} +2 -2
- package/dist/chunks/{chunk.ZTEMBLJH.js.map → chunk.ESQAXAFE.js.map} +1 -1
- package/dist/chunks/{chunk.MO5THLW3.js → chunk.EUQCLKVZ.js} +5 -5
- package/dist/chunks/{chunk.MO5THLW3.js.map → chunk.EUQCLKVZ.js.map} +1 -1
- package/dist/chunks/{chunk.HVJGBGHT.js → chunk.EZRPX4D7.js} +4 -4
- package/dist/chunks/{chunk.EG23UW3V.js → chunk.FK6MAJIJ.js} +4 -4
- package/dist/chunks/{chunk.HLE65RI4.js → chunk.FKKJBKYL.js} +2 -4
- package/dist/chunks/{chunk.HLE65RI4.js.map → chunk.FKKJBKYL.js.map} +2 -2
- package/dist/chunks/{chunk.RSPZU72C.js → chunk.FP4J6SI7.js} +3 -3
- package/dist/chunks/{chunk.TCGQ6I55.js → chunk.FPIGVZSR.js} +4 -4
- package/dist/chunks/{chunk.MLP2VIC7.js → chunk.FSWTBNSI.js} +6 -1
- package/dist/chunks/{chunk.MLP2VIC7.js.map → chunk.FSWTBNSI.js.map} +2 -2
- package/dist/chunks/{chunk.JSPLWE2A.js → chunk.GHGGBS4N.js} +6 -7
- package/dist/chunks/{chunk.JSPLWE2A.js.map → chunk.GHGGBS4N.js.map} +2 -2
- package/dist/chunks/{chunk.445GTYI7.js → chunk.GWQWHDLF.js} +3 -3
- package/dist/chunks/{chunk.MSUX23ZJ.js → chunk.HQ6QUSK7.js} +2 -2
- package/dist/chunks/{chunk.R6VT7GM5.js → chunk.HTRLN6MZ.js} +2 -2
- package/dist/chunks/{chunk.P7GNMVZ4.js → chunk.HY4Y3IF2.js} +4 -4
- package/dist/chunks/chunk.I6YARDHH.js +39 -0
- package/dist/chunks/chunk.I6YARDHH.js.map +7 -0
- package/dist/chunks/{chunk.36WNAWGH.js → chunk.IGLR5WAI.js} +2 -2
- package/dist/chunks/{chunk.OZ7PQTHB.js → chunk.IL3FC72M.js} +11 -11
- package/dist/chunks/{chunk.ML6NOYHV.js → chunk.IMXRJ3YT.js} +2 -2
- package/dist/chunks/{chunk.RUUKH7KZ.js → chunk.J6AAV3AV.js} +2 -2
- package/dist/chunks/chunk.JGJFNG7J.js +636 -0
- package/dist/chunks/chunk.JGJFNG7J.js.map +7 -0
- package/dist/chunks/{chunk.U2OMGNNZ.js → chunk.JNP34M27.js} +7 -6
- package/dist/chunks/chunk.JNP34M27.js.map +7 -0
- package/dist/chunks/{chunk.EPEJDXFO.js → chunk.JS5QB2ZL.js} +8 -8
- package/dist/chunks/{chunk.BWVISANJ.js → chunk.JTYYYMG2.js} +9 -5
- package/dist/chunks/{chunk.BWVISANJ.js.map → chunk.JTYYYMG2.js.map} +2 -2
- package/dist/chunks/{chunk.ZHDP4GU5.js → chunk.JWDKROBJ.js} +2 -2
- package/dist/chunks/{chunk.TVIXZRR6.js → chunk.KSPAGGI2.js} +3 -3
- package/dist/chunks/{chunk.RQ6PQ76D.js → chunk.LBU676EZ.js} +4 -4
- package/dist/chunks/{chunk.TD2KXBBJ.js → chunk.LO6TVTD5.js} +2 -2
- package/dist/chunks/{chunk.C66PDYUI.js → chunk.LXRYPCRA.js} +2 -2
- package/dist/chunks/chunk.LYDJ5XK6.js +49 -0
- package/dist/chunks/chunk.LYDJ5XK6.js.map +7 -0
- package/dist/chunks/{chunk.MAWKXH6T.js → chunk.M322AHXQ.js} +5 -5
- package/dist/chunks/{chunk.4VP6SOMT.js → chunk.MJIGVGWT.js} +2 -2
- package/dist/chunks/{chunk.UKK7UB66.js → chunk.MJODVYOU.js} +2 -2
- package/dist/chunks/{chunk.AUQVJZEW.js → chunk.NRKWWLOJ.js} +2 -2
- package/dist/chunks/{chunk.3YMWLLPP.js → chunk.O644HRW3.js} +3 -1
- package/dist/chunks/{chunk.3YMWLLPP.js.map → chunk.O644HRW3.js.map} +2 -2
- package/dist/chunks/{chunk.LQZJ6SLT.js → chunk.OGY5SV3K.js} +2 -2
- package/dist/chunks/{chunk.Y4PC4NYJ.js → chunk.ORSZM73W.js} +2 -2
- package/dist/chunks/{chunk.VNOGO2PS.js → chunk.PCNJFBUE.js} +2 -2
- package/dist/chunks/{chunk.MQH2OOTN.js → chunk.PLD6HW4G.js} +2 -2
- package/dist/chunks/{chunk.OAD4GL57.js → chunk.QTUPZKVS.js} +2 -2
- package/dist/chunks/{chunk.BCM6GF47.js → chunk.R2WZYDE2.js} +2 -2
- package/dist/chunks/{chunk.JD6HMTL2.js → chunk.R67XSTNW.js} +9 -9
- package/dist/chunks/{chunk.HRU52NH5.js → chunk.RFJ2QHB5.js} +2 -2
- package/dist/chunks/{chunk.GZQPS6JH.js → chunk.RKZLWXOJ.js} +4 -4
- package/dist/chunks/{chunk.PGDHCGHK.js → chunk.RQA3KF7H.js} +12 -6
- package/dist/chunks/chunk.RQA3KF7H.js.map +7 -0
- package/dist/chunks/{chunk.VREBZRBU.js → chunk.TLNHPNZP.js} +2 -2
- package/dist/chunks/{chunk.THRSQDCW.js → chunk.TNX42WV4.js} +2 -2
- package/dist/chunks/chunk.TOMRCFI4.js +12 -0
- package/dist/chunks/chunk.TOMRCFI4.js.map +7 -0
- package/dist/chunks/{chunk.COI5VNKC.js → chunk.TQCA6Q6L.js} +4 -4
- package/dist/chunks/{chunk.QVULMTSN.js → chunk.TWPYJVSU.js} +8 -8
- package/dist/chunks/{chunk.M4PJZ2KX.js → chunk.TYV5CM4I.js} +56 -28
- package/dist/chunks/chunk.TYV5CM4I.js.map +7 -0
- package/dist/chunks/{chunk.A3TUOOXV.js → chunk.UANQP7UZ.js} +2 -2
- package/dist/chunks/{chunk.MZO2W4AG.js → chunk.UXGBQPTV.js} +2 -2
- package/dist/chunks/{chunk.BCAT6PJO.js → chunk.V5VKAR7I.js} +2 -2
- package/dist/chunks/{chunk.FAAETEJ2.js → chunk.VGEA67UG.js} +7 -4
- package/dist/chunks/{chunk.FAAETEJ2.js.map → chunk.VGEA67UG.js.map} +2 -2
- package/dist/chunks/{chunk.2JGMDXJX.js → chunk.VQNVZMWW.js} +8 -10
- package/dist/chunks/{chunk.2JGMDXJX.js.map → chunk.VQNVZMWW.js.map} +1 -1
- package/dist/chunks/{chunk.KPEDDAR4.js → chunk.VQWI7RF7.js} +18 -18
- package/dist/chunks/chunk.VQWI7RF7.js.map +7 -0
- package/dist/chunks/{chunk.AA7ETQ6Z.js → chunk.W4DRGBOX.js} +10 -10
- package/dist/chunks/{chunk.6ZMQFRAK.js → chunk.WJG5I5EW.js} +2 -2
- package/dist/chunks/{chunk.CCBYOE35.js → chunk.X5ZOIEXZ.js} +2 -2
- package/dist/chunks/{chunk.PMC3VAD6.js → chunk.XDM6VD32.js} +6 -10
- package/dist/chunks/{chunk.PMC3VAD6.js.map → chunk.XDM6VD32.js.map} +1 -1
- package/dist/chunks/{chunk.OUSXEKQG.js → chunk.XNGZHSRO.js} +8 -12
- package/dist/chunks/{chunk.OUSXEKQG.js.map → chunk.XNGZHSRO.js.map} +1 -1
- package/dist/chunks/{chunk.6N5IAYT2.js → chunk.XOSZV7Y4.js} +2 -2
- package/dist/chunks/{chunk.6EHHOHBG.js → chunk.Y5BGNU6P.js} +2 -2
- package/dist/chunks/{chunk.S2UI5DQ6.js → chunk.YARCDSSP.js} +2 -2
- package/dist/chunks/{chunk.QVNMCS3Y.js → chunk.YGBYTIEC.js} +2 -2
- package/dist/chunks/{chunk.WEUMPGAL.js → chunk.YMC6ML2J.js} +2 -2
- package/dist/chunks/{chunk.ZXLXQMJJ.js → chunk.YVPJSA6G.js} +4 -4
- package/dist/chunks/{chunk.4U4U4WYP.js → chunk.YXKAU762.js} +2 -2
- package/dist/chunks/{chunk.GOXWNSOG.js → chunk.Z2AJQ6S4.js} +4 -5
- package/dist/chunks/{chunk.GOXWNSOG.js.map → chunk.Z2AJQ6S4.js.map} +2 -2
- package/dist/chunks/{chunk.XD3FB2XT.js → chunk.ZIJ6OGAT.js} +8 -8
- package/dist/chunks/{chunk.T4MHUMBJ.js → chunk.ZRQDODBI.js} +9 -9
- package/dist/chunks/{chunk.OE4RXQU2.js → chunk.ZW75HBAK.js} +3 -3
- package/dist/chunks/chunk.ZW75HBAK.js.map +7 -0
- package/dist/chunks/{chunk.LAKJ5MK2.js → chunk.ZWKWTOIU.js} +3 -3
- package/dist/components/accordion/accordion.component.js +4 -4
- package/dist/components/accordion/accordion.js +5 -5
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.component.js +10 -10
- package/dist/components/alert/alert.custom.styles.js +1 -1
- package/dist/components/alert/alert.js +11 -11
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +5 -5
- package/dist/components/badge/badge.custom.styles.js +1 -1
- package/dist/components/badge/badge.js +6 -6
- package/dist/components/badge/badge.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.custom.styles.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +8 -8
- package/dist/components/breadcrumb/breadcrumb.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +4 -4
- package/dist/components/breadcrumb-item/breadcrumb-item.custom.styles.js +1 -1
- package/dist/components/breadcrumb-item/breadcrumb-item.js +5 -5
- package/dist/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
- package/dist/components/button/button.component.js +9 -9
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +10 -10
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/button-group/button-group.component.js +3 -3
- package/dist/components/button-group/button-group.js +4 -4
- package/dist/components/button-group/button-group.styles.js +1 -1
- package/dist/components/card/card.component.js +3 -3
- package/dist/components/card/card.custom.styles.js +1 -1
- package/dist/components/card/card.js +4 -4
- package/dist/components/card/card.styles.js +1 -1
- package/dist/components/checkbox/checkbox.component.js +7 -7
- package/dist/components/checkbox/checkbox.custom.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +8 -8
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/details/details.component.js +9 -9
- package/dist/components/details/details.custom.styles.js +1 -1
- package/dist/components/details/details.js +10 -10
- package/dist/components/details/details.styles.js +1 -1
- package/dist/components/dialog/dialog.component.js +12 -12
- package/dist/components/dialog/dialog.custom.styles.js +1 -1
- package/dist/components/dialog/dialog.js +13 -13
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/divider/divider.component.js +4 -4
- package/dist/components/divider/divider.custom.styles.js +1 -1
- package/dist/components/divider/divider.js +5 -5
- package/dist/components/divider/divider.styles.js +1 -1
- package/dist/components/drawer/drawer.component.js +12 -12
- package/dist/components/drawer/drawer.custom.styles.js +1 -1
- package/dist/components/drawer/drawer.js +13 -13
- package/dist/components/drawer/drawer.styles.js +1 -1
- package/dist/components/dropdown/dropdown.component.d.ts +2 -1
- package/dist/components/dropdown/dropdown.component.js +9 -9
- package/dist/components/dropdown/dropdown.custom.styles.js +1 -1
- package/dist/components/dropdown/dropdown.js +10 -10
- package/dist/components/dropdown/dropdown.styles.js +1 -1
- package/dist/components/file/file.component.js +13 -13
- package/dist/components/file/file.js +14 -14
- package/dist/components/file/file.styles.js +1 -1
- package/dist/components/header/header.component.js +8 -8
- package/dist/components/header/header.js +9 -9
- package/dist/components/header/header.styles.js +1 -1
- package/dist/components/icon/icon.component.js +4 -4
- package/dist/components/icon/icon.custom.styles.js +1 -1
- package/dist/components/icon/icon.js +5 -5
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.js +1 -1
- package/dist/components/icon/library.system.js +1 -1
- package/dist/components/icon-button/icon-button.component.js +5 -5
- package/dist/components/icon-button/icon-button.custom.styles.js +1 -1
- package/dist/components/icon-button/icon-button.js +6 -6
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.component.js +10 -10
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +11 -11
- package/dist/components/input/input.styles.js +1 -1
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.custom.styles.js +1 -1
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu/menu.styles.js +1 -1
- package/dist/components/menu-item/menu-item.component.d.ts +0 -1
- package/dist/components/menu-item/menu-item.component.js +11 -11
- package/dist/components/menu-item/menu-item.custom.styles.js +1 -1
- package/dist/components/menu-item/menu-item.js +12 -12
- package/dist/components/menu-item/menu-item.styles.js +2 -2
- package/dist/components/menu-item/submenu-controller.d.ts +1 -3
- package/dist/components/menu-item/submenu-controller.js +2 -4
- package/dist/components/menu-label/menu-label.component.js +5 -5
- package/dist/components/menu-label/menu-label.custom.styles.js +1 -1
- package/dist/components/menu-label/menu-label.js +6 -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/nav-item/nav-item.styles.js +2 -2
- package/dist/components/optgroup/optgroup.component.js +5 -5
- package/dist/components/optgroup/optgroup.js +6 -6
- package/dist/components/optgroup/optgroup.styles.js +1 -1
- package/dist/components/option/option.component.js +7 -7
- package/dist/components/option/option.custom.styles.js +1 -1
- package/dist/components/option/option.js +8 -8
- package/dist/components/option/option.styles.js +1 -1
- package/dist/components/popup/popup.component.js +3 -3
- package/dist/components/popup/popup.js +4 -4
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +15 -15
- package/dist/components/prio-nav/prio-nav.js +16 -16
- package/dist/components/prio-nav/prio-nav.styles.js +1 -1
- package/dist/components/prio-nav/utils.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +5 -5
- package/dist/components/progress-bar/progress-bar.custom.styles.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +6 -6
- package/dist/components/progress-bar/progress-bar.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.component.js +5 -5
- package/dist/components/progress-ring/progress-ring.custom.styles.js +1 -1
- package/dist/components/progress-ring/progress-ring.js +6 -6
- package/dist/components/progress-ring/progress-ring.styles.js +1 -1
- package/dist/components/radio/radio.component.d.ts +0 -5
- package/dist/components/radio/radio.component.js +5 -5
- package/dist/components/radio/radio.custom.styles.js +1 -1
- package/dist/components/radio/radio.js +6 -6
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +4 -4
- package/dist/components/radio-button/radio-button.js +5 -5
- package/dist/components/radio-button/radio-button.styles.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +7 -7
- package/dist/components/radio-group/radio-group.custom.styles.js +1 -1
- package/dist/components/radio-group/radio-group.js +8 -8
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.d.ts +125 -0
- package/dist/components/range/range.component.js +26 -0
- package/dist/components/range/range.component.js.map +7 -0
- package/dist/components/range/range.d.ts +8 -0
- package/dist/components/range/range.js +27 -0
- package/dist/components/range/range.js.map +7 -0
- package/dist/components/range/range.styles.d.ts +2 -0
- package/dist/components/range/range.styles.js +8 -0
- package/dist/components/range/range.styles.js.map +7 -0
- package/dist/components/range/utility.d.ts +9 -0
- package/dist/components/range/utility.js +12 -0
- package/dist/components/range/utility.js.map +7 -0
- package/dist/components/range-tick/range-tick.component.d.ts +24 -0
- package/dist/components/range-tick/range-tick.component.js +10 -0
- package/dist/components/range-tick/range-tick.component.js.map +7 -0
- package/dist/components/range-tick/range-tick.d.ts +8 -0
- package/dist/components/range-tick/range-tick.js +11 -0
- package/dist/components/range-tick/range-tick.js.map +7 -0
- package/dist/components/range-tick/range-tick.styles.d.ts +2 -0
- package/dist/components/range-tick/range-tick.styles.js +8 -0
- package/dist/components/range-tick/range-tick.styles.js.map +7 -0
- package/dist/components/select/select.component.d.ts +3 -1
- package/dist/components/select/select.component.js +17 -17
- package/dist/components/select/select.custom.styles.js +2 -2
- package/dist/components/select/select.js +18 -18
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/side-nav/side-nav.component.js +14 -14
- package/dist/components/side-nav/side-nav.js +15 -15
- package/dist/components/side-nav/side-nav.styles.js +1 -1
- package/dist/components/spinner/spinner.component.js +5 -5
- package/dist/components/spinner/spinner.custom.styles.js +1 -1
- package/dist/components/spinner/spinner.js +6 -6
- package/dist/components/spinner/spinner.styles.js +1 -1
- package/dist/components/switch/switch.component.js +6 -6
- package/dist/components/switch/switch.custom.styles.js +1 -1
- package/dist/components/switch/switch.js +7 -7
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.d.ts +5 -4
- package/dist/components/tab/tab.component.js +10 -10
- package/dist/components/tab/tab.custom.styles.js +2 -2
- package/dist/components/tab/tab.js +11 -11
- package/dist/components/tab/tab.styles.js +2 -2
- package/dist/components/tab-group/tab-group.component.d.ts +2 -0
- package/dist/components/tab-group/tab-group.component.js +9 -9
- package/dist/components/tab-group/tab-group.custom.styles.js +1 -1
- package/dist/components/tab-group/tab-group.js +10 -10
- package/dist/components/tab-group/tab-group.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +4 -4
- package/dist/components/tab-panel/tab-panel.custom.styles.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +5 -5
- package/dist/components/tab-panel/tab-panel.styles.js +1 -1
- package/dist/components/tag/tag.component.js +8 -8
- package/dist/components/tag/tag.custom.styles.js +1 -1
- package/dist/components/tag/tag.js +9 -9
- package/dist/components/tag/tag.styles.js +1 -1
- package/dist/components/textarea/textarea.component.js +6 -6
- package/dist/components/textarea/textarea.custom.styles.js +1 -1
- package/dist/components/textarea/textarea.js +7 -7
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +10 -10
- package/dist/components/tooltip/tooltip.custom.styles.js +1 -1
- package/dist/components/tooltip/tooltip.js +11 -11
- package/dist/components/tooltip/tooltip.styles.js +2 -2
- package/dist/custom-elements.json +1050 -205
- package/dist/events/events.d.ts +1 -0
- package/dist/events/syn-move.d.ts +9 -0
- package/dist/internal/animate.d.ts +3 -3
- package/dist/internal/longpress.d.ts +0 -1
- package/dist/styles/fouc.css +2 -0
- package/dist/styles/index.css +7 -2
- package/dist/styles/utility.css +4 -1
- package/dist/synergy-autoloader.js +1 -1
- package/dist/synergy.d.ts +2 -0
- package/dist/synergy.js +128 -115
- package/dist/translations/de.js +8 -9
- package/dist/translations/de.js.map +2 -2
- package/dist/translations/en.js +2 -2
- package/dist/utilities/animation-registry.js +2 -2
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/form.js +3 -3
- package/dist/utilities/icon-library.js +1 -1
- package/dist/utilities/localize.d.ts +2 -0
- package/dist/utilities/localize.js +3 -3
- package/dist/vscode.html-custom-data.json +95 -3
- package/package.json +33 -33
- package/dist/chunks/chunk.6UAOF7WN.js.map +0 -7
- package/dist/chunks/chunk.7TOZAZTA.js.map +0 -7
- package/dist/chunks/chunk.APPDW65F.js.map +0 -7
- package/dist/chunks/chunk.CG7HK3HS.js.map +0 -7
- package/dist/chunks/chunk.HPWFMICA.js.map +0 -7
- package/dist/chunks/chunk.KPEDDAR4.js.map +0 -7
- package/dist/chunks/chunk.M4PJZ2KX.js.map +0 -7
- package/dist/chunks/chunk.OE4RXQU2.js.map +0 -7
- package/dist/chunks/chunk.PGDHCGHK.js.map +0 -7
- package/dist/chunks/chunk.RX7A4EQ2.js.map +0 -7
- package/dist/chunks/chunk.U2OMGNNZ.js.map +0 -7
- /package/dist/chunks/{chunk.QNDC5KWA.js.map → chunk.2GFK6XTO.js.map} +0 -0
- /package/dist/chunks/{chunk.DCWG25RX.js.map → chunk.2H5VZMM6.js.map} +0 -0
- /package/dist/chunks/{chunk.5BDQUWIH.js.map → chunk.2RCFWUMX.js.map} +0 -0
- /package/dist/chunks/{chunk.SN6A7VBJ.js.map → chunk.3TAWE2BI.js.map} +0 -0
- /package/dist/chunks/{chunk.SOVF26GR.js.map → chunk.3TEIFNRP.js.map} +0 -0
- /package/dist/chunks/{chunk.GCVGZHJK.js.map → chunk.4ZABXKYI.js.map} +0 -0
- /package/dist/chunks/{chunk.POXDBLOS.js.map → chunk.5WTYMY7E.js.map} +0 -0
- /package/dist/chunks/{chunk.26PVORV4.js.map → chunk.6OCJR2YI.js.map} +0 -0
- /package/dist/chunks/{chunk.REXNHEPD.js.map → chunk.72KEPLD4.js.map} +0 -0
- /package/dist/chunks/{chunk.QJMO7V5R.js.map → chunk.74IOULXM.js.map} +0 -0
- /package/dist/chunks/{chunk.XY7PAA7K.js.map → chunk.7GVODRHO.js.map} +0 -0
- /package/dist/chunks/{chunk.BZ7DXEKT.js.map → chunk.7I5Q3H5W.js.map} +0 -0
- /package/dist/chunks/{chunk.2LACXU5F.js.map → chunk.7J54DP5U.js.map} +0 -0
- /package/dist/chunks/{chunk.MLOZ4D3V.js.map → chunk.A3OYJILJ.js.map} +0 -0
- /package/dist/chunks/{chunk.VCCPDP5S.js.map → chunk.A7S3RARM.js.map} +0 -0
- /package/dist/chunks/{chunk.4VJLNO6Y.js.map → chunk.BHYMSPYR.js.map} +0 -0
- /package/dist/chunks/{chunk.VI6PYB5C.js.map → chunk.CHG7CKU3.js.map} +0 -0
- /package/dist/chunks/{chunk.IOTJRIT5.js.map → chunk.CSEYI4PC.js.map} +0 -0
- /package/dist/chunks/{chunk.A45QGUNM.js.map → chunk.D23EOBAA.js.map} +0 -0
- /package/dist/chunks/{chunk.7INB3LU4.js.map → chunk.D5J4VTCV.js.map} +0 -0
- /package/dist/chunks/{chunk.OP4WTQ2R.js.map → chunk.DGSAPH64.js.map} +0 -0
- /package/dist/chunks/{chunk.HLRZHIBP.js.map → chunk.DVF5JNGN.js.map} +0 -0
- /package/dist/chunks/{chunk.SIADSRVP.js.map → chunk.DZSCTRUT.js.map} +0 -0
- /package/dist/chunks/{chunk.XBHV2RZS.js.map → chunk.ECTOUABW.js.map} +0 -0
- /package/dist/chunks/{chunk.HVJGBGHT.js.map → chunk.EZRPX4D7.js.map} +0 -0
- /package/dist/chunks/{chunk.EG23UW3V.js.map → chunk.FK6MAJIJ.js.map} +0 -0
- /package/dist/chunks/{chunk.RSPZU72C.js.map → chunk.FP4J6SI7.js.map} +0 -0
- /package/dist/chunks/{chunk.TCGQ6I55.js.map → chunk.FPIGVZSR.js.map} +0 -0
- /package/dist/chunks/{chunk.445GTYI7.js.map → chunk.GWQWHDLF.js.map} +0 -0
- /package/dist/chunks/{chunk.MSUX23ZJ.js.map → chunk.HQ6QUSK7.js.map} +0 -0
- /package/dist/chunks/{chunk.R6VT7GM5.js.map → chunk.HTRLN6MZ.js.map} +0 -0
- /package/dist/chunks/{chunk.P7GNMVZ4.js.map → chunk.HY4Y3IF2.js.map} +0 -0
- /package/dist/chunks/{chunk.36WNAWGH.js.map → chunk.IGLR5WAI.js.map} +0 -0
- /package/dist/chunks/{chunk.OZ7PQTHB.js.map → chunk.IL3FC72M.js.map} +0 -0
- /package/dist/chunks/{chunk.ML6NOYHV.js.map → chunk.IMXRJ3YT.js.map} +0 -0
- /package/dist/chunks/{chunk.RUUKH7KZ.js.map → chunk.J6AAV3AV.js.map} +0 -0
- /package/dist/chunks/{chunk.EPEJDXFO.js.map → chunk.JS5QB2ZL.js.map} +0 -0
- /package/dist/chunks/{chunk.ZHDP4GU5.js.map → chunk.JWDKROBJ.js.map} +0 -0
- /package/dist/chunks/{chunk.TVIXZRR6.js.map → chunk.KSPAGGI2.js.map} +0 -0
- /package/dist/chunks/{chunk.RQ6PQ76D.js.map → chunk.LBU676EZ.js.map} +0 -0
- /package/dist/chunks/{chunk.TD2KXBBJ.js.map → chunk.LO6TVTD5.js.map} +0 -0
- /package/dist/chunks/{chunk.C66PDYUI.js.map → chunk.LXRYPCRA.js.map} +0 -0
- /package/dist/chunks/{chunk.MAWKXH6T.js.map → chunk.M322AHXQ.js.map} +0 -0
- /package/dist/chunks/{chunk.4VP6SOMT.js.map → chunk.MJIGVGWT.js.map} +0 -0
- /package/dist/chunks/{chunk.UKK7UB66.js.map → chunk.MJODVYOU.js.map} +0 -0
- /package/dist/chunks/{chunk.AUQVJZEW.js.map → chunk.NRKWWLOJ.js.map} +0 -0
- /package/dist/chunks/{chunk.LQZJ6SLT.js.map → chunk.OGY5SV3K.js.map} +0 -0
- /package/dist/chunks/{chunk.Y4PC4NYJ.js.map → chunk.ORSZM73W.js.map} +0 -0
- /package/dist/chunks/{chunk.VNOGO2PS.js.map → chunk.PCNJFBUE.js.map} +0 -0
- /package/dist/chunks/{chunk.MQH2OOTN.js.map → chunk.PLD6HW4G.js.map} +0 -0
- /package/dist/chunks/{chunk.OAD4GL57.js.map → chunk.QTUPZKVS.js.map} +0 -0
- /package/dist/chunks/{chunk.BCM6GF47.js.map → chunk.R2WZYDE2.js.map} +0 -0
- /package/dist/chunks/{chunk.JD6HMTL2.js.map → chunk.R67XSTNW.js.map} +0 -0
- /package/dist/chunks/{chunk.HRU52NH5.js.map → chunk.RFJ2QHB5.js.map} +0 -0
- /package/dist/chunks/{chunk.GZQPS6JH.js.map → chunk.RKZLWXOJ.js.map} +0 -0
- /package/dist/chunks/{chunk.VREBZRBU.js.map → chunk.TLNHPNZP.js.map} +0 -0
- /package/dist/chunks/{chunk.THRSQDCW.js.map → chunk.TNX42WV4.js.map} +0 -0
- /package/dist/chunks/{chunk.COI5VNKC.js.map → chunk.TQCA6Q6L.js.map} +0 -0
- /package/dist/chunks/{chunk.QVULMTSN.js.map → chunk.TWPYJVSU.js.map} +0 -0
- /package/dist/chunks/{chunk.A3TUOOXV.js.map → chunk.UANQP7UZ.js.map} +0 -0
- /package/dist/chunks/{chunk.MZO2W4AG.js.map → chunk.UXGBQPTV.js.map} +0 -0
- /package/dist/chunks/{chunk.BCAT6PJO.js.map → chunk.V5VKAR7I.js.map} +0 -0
- /package/dist/chunks/{chunk.AA7ETQ6Z.js.map → chunk.W4DRGBOX.js.map} +0 -0
- /package/dist/chunks/{chunk.6ZMQFRAK.js.map → chunk.WJG5I5EW.js.map} +0 -0
- /package/dist/chunks/{chunk.CCBYOE35.js.map → chunk.X5ZOIEXZ.js.map} +0 -0
- /package/dist/chunks/{chunk.6N5IAYT2.js.map → chunk.XOSZV7Y4.js.map} +0 -0
- /package/dist/chunks/{chunk.6EHHOHBG.js.map → chunk.Y5BGNU6P.js.map} +0 -0
- /package/dist/chunks/{chunk.S2UI5DQ6.js.map → chunk.YARCDSSP.js.map} +0 -0
- /package/dist/chunks/{chunk.QVNMCS3Y.js.map → chunk.YGBYTIEC.js.map} +0 -0
- /package/dist/chunks/{chunk.WEUMPGAL.js.map → chunk.YMC6ML2J.js.map} +0 -0
- /package/dist/chunks/{chunk.ZXLXQMJJ.js.map → chunk.YVPJSA6G.js.map} +0 -0
- /package/dist/chunks/{chunk.4U4U4WYP.js.map → chunk.YXKAU762.js.map} +0 -0
- /package/dist/chunks/{chunk.XD3FB2XT.js.map → chunk.ZIJ6OGAT.js.map} +0 -0
- /package/dist/chunks/{chunk.T4MHUMBJ.js.map → chunk.ZRQDODBI.js.map} +0 -0
- /package/dist/chunks/{chunk.LAKJ5MK2.js.map → chunk.ZWKWTOIU.js.map} +0 -0
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk.KG52EHDB.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.EZRPX4D7.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.WVVQK5TE.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.74IOULXM.js";
|
|
13
13
|
import {
|
|
14
14
|
SynergyElement
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.JTYYYMG2.js";
|
|
16
16
|
import {
|
|
17
17
|
__decorateClass
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.2GFK6XTO.js";
|
|
19
19
|
|
|
20
20
|
// src/components/optgroup/optgroup.component.ts
|
|
21
21
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -93,4 +93,4 @@ __decorateClass([
|
|
|
93
93
|
export {
|
|
94
94
|
SynOptgroup
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=chunk.
|
|
96
|
+
//# sourceMappingURL=chunk.6OCJR2YI.js.map
|
|
@@ -20,6 +20,14 @@ var select_custom_styles_default = css`
|
|
|
20
20
|
font-size: var(--syn-spacing-large);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.select--small .select__clear {
|
|
24
|
+
font-size: var(--syn-spacing-medium);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.select--large .select__clear {
|
|
28
|
+
font-size: var(--syn-spacing-x-large);
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
.select--medium .select__clear {
|
|
24
32
|
margin-inline-start: var(--syn-spacing-small);
|
|
25
33
|
}
|
|
@@ -37,22 +45,35 @@ var select_custom_styles_default = css`
|
|
|
37
45
|
border-color: var(--syn-input-color-hover);
|
|
38
46
|
}
|
|
39
47
|
|
|
40
|
-
/* Prefix */
|
|
48
|
+
/* Prefix and Suffix */
|
|
41
49
|
|
|
42
50
|
/* Small */
|
|
43
51
|
.select--small .select__prefix::slotted(*) {
|
|
44
52
|
margin-inline-end: var(--syn-spacing-x-small);
|
|
45
53
|
}
|
|
46
54
|
|
|
55
|
+
.select--small .select__suffix::slotted(*) {
|
|
56
|
+
margin-inline-start: var(--syn-spacing-x-small);
|
|
57
|
+
}
|
|
58
|
+
|
|
47
59
|
.select--medium .select__prefix::slotted(*) {
|
|
48
60
|
margin-inline-end: var(--syn-input-spacing-small);
|
|
49
61
|
}
|
|
50
62
|
|
|
63
|
+
.select--medium .select__suffix::slotted(*) {
|
|
64
|
+
margin-inline-start: var(--syn-input-spacing-small);
|
|
65
|
+
}
|
|
66
|
+
|
|
51
67
|
.select--large .select__prefix::slotted(*) {
|
|
52
68
|
margin-inline-end: var(--syn-input-spacing-medium);
|
|
53
69
|
}
|
|
54
70
|
|
|
55
|
-
.
|
|
71
|
+
.select--large .select__suffix::slotted(*) {
|
|
72
|
+
margin-inline-start: var(--syn-input-spacing-medium);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.select__prefix,
|
|
76
|
+
.select__suffix {
|
|
56
77
|
color: var(--syn-input-help-text-color);
|
|
57
78
|
}
|
|
58
79
|
|
|
@@ -93,4 +114,4 @@ var select_custom_styles_default = css`
|
|
|
93
114
|
export {
|
|
94
115
|
select_custom_styles_default
|
|
95
116
|
};
|
|
96
|
-
//# sourceMappingURL=chunk.
|
|
117
|
+
//# sourceMappingURL=chunk.72HIKLQG.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/select/select.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /**\n * Invalid user data\n */\n :host([data-user-invalid]) .select__combobox {\n border-color: var(--syn-input-border-color-focus-error);\n }\n\n :host([data-user-invalid]) .select--standard:not(.select--disabled).select--open .select__combobox,\n :host([data-user-invalid]) .select--standard:not(.select--disabled).select--focused .select__combobox {\n border-color: var(--syn-input-border-color-focus-error);\n box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);\n }\n\n /* Clear button */\n .select__clear {\n color: var(--syn-input-icon-icon-clearable-color);\n font-size: var(--syn-spacing-large);\n }\n\n .select--small .select__clear {\n font-size: var(--syn-spacing-medium);\n }\n\n .select--large .select__clear {\n font-size: var(--syn-spacing-x-large);\n }\n\n .select--medium .select__clear {\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /* Expand icon */\n .select__expand-icon {\n color: var(--syn-color-neutral-950);\n font-size: var(--syn-spacing-large);\n margin-inline-start: var(--syn-spacing-small);\n }\n\n /* Change select border on hover */\n /* stylelint-disable-next-line no-descending-specificity */\n .select:not(.select--disabled):hover .select__combobox {\n border-color: var(--syn-input-color-hover);\n }\n\n /* Prefix and Suffix */\n\n /* Small */\n .select--small .select__prefix::slotted(*) {\n margin-inline-end: var(--syn-spacing-x-small);\n }\n\n .select--small .select__suffix::slotted(*) {\n margin-inline-start: var(--syn-spacing-x-small);\n }\n\n .select--medium .select__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-small);\n }\n\n .select--medium .select__suffix::slotted(*) {\n margin-inline-start: var(--syn-input-spacing-small);\n }\n\n .select--large .select__prefix::slotted(*) {\n margin-inline-end: var(--syn-input-spacing-medium);\n }\n\n .select--large .select__suffix::slotted(*) {\n margin-inline-start: var(--syn-input-spacing-medium);\n }\n\n .select__prefix,\n .select__suffix {\n color: var(--syn-input-help-text-color);\n }\n\n /* Multi Select */\n .select__tags {\n margin-inline-start: var(--syn-spacing-medium);\n }\n\n .select--small .select__tags {\n gap: var(--syn-spacing-2x-small);\n }\n\n .select--medium .select__tags {\n gap: var(--syn-spacing-x-small);\n }\n\n .select--large .select__tags {\n gap: var(--syn-spacing-small);\n }\n\n /* Listbox */\n .select__listbox {\n /* @todo: Should be --syn-border-radius-medium, which should be set to 0 */\n border-radius: 0;\n box-shadow: var(--syn-shadow-medium);\n }\n\n /**\n * Make sure to hide the syn-divider for the first syn-optgroup\n * Note! ::slotted does currently not work with ::part, so we\n * opted for using a css variable here.\n */\n .select__listbox ::slotted(syn-optgroup:first-of-type) {\n --display-divider: none;\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,+BAAQ;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;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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynPopup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.6I4QZHQ6.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.72KEPLD4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadValues
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2GFK6XTO.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/watch.ts
|
|
6
6
|
function watch(propertyName, options) {
|
|
@@ -31,4 +31,4 @@ function watch(propertyName, options) {
|
|
|
31
31
|
export {
|
|
32
32
|
watch
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chunk.
|
|
34
|
+
//# sourceMappingURL=chunk.74IOULXM.js.map
|
|
@@ -3,36 +3,33 @@ import {
|
|
|
3
3
|
} from "./chunk.OOABXWCW.js";
|
|
4
4
|
import {
|
|
5
5
|
menu_item_styles_default
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.FSWTBNSI.js";
|
|
7
7
|
import {
|
|
8
8
|
SubmenuController
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.JNP34M27.js";
|
|
10
10
|
import {
|
|
11
11
|
SynPopup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.6I4QZHQ6.js";
|
|
13
13
|
import {
|
|
14
14
|
SynSpinner
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.KSPAGGI2.js";
|
|
16
16
|
import {
|
|
17
17
|
HasSlotController,
|
|
18
18
|
getTextContent
|
|
19
19
|
} from "./chunk.WVVQK5TE.js";
|
|
20
20
|
import {
|
|
21
21
|
SynIcon
|
|
22
|
-
} from "./chunk.
|
|
23
|
-
import {
|
|
24
|
-
LocalizeController
|
|
25
|
-
} from "./chunk.ZTEMBLJH.js";
|
|
22
|
+
} from "./chunk.XNGZHSRO.js";
|
|
26
23
|
import {
|
|
27
24
|
watch
|
|
28
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.74IOULXM.js";
|
|
29
26
|
import {
|
|
30
27
|
SynergyElement,
|
|
31
28
|
component_styles_default
|
|
32
|
-
} from "./chunk.
|
|
29
|
+
} from "./chunk.JTYYYMG2.js";
|
|
33
30
|
import {
|
|
34
31
|
__decorateClass
|
|
35
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.2GFK6XTO.js";
|
|
36
33
|
|
|
37
34
|
// src/components/menu-item/menu-item.component.ts
|
|
38
35
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -46,9 +43,8 @@ var SynMenuItem = class extends SynergyElement {
|
|
|
46
43
|
this.value = "";
|
|
47
44
|
this.loading = false;
|
|
48
45
|
this.disabled = false;
|
|
49
|
-
this.localize = new LocalizeController(this);
|
|
50
46
|
this.hasSlotController = new HasSlotController(this, "submenu");
|
|
51
|
-
this.submenuController = new SubmenuController(this, this.hasSlotController
|
|
47
|
+
this.submenuController = new SubmenuController(this, this.hasSlotController);
|
|
52
48
|
this.handleHostClick = (event) => {
|
|
53
49
|
if (this.disabled) {
|
|
54
50
|
event.preventDefault();
|
|
@@ -113,7 +109,7 @@ var SynMenuItem = class extends SynergyElement {
|
|
|
113
109
|
return this.hasSlotController.test("submenu");
|
|
114
110
|
}
|
|
115
111
|
render() {
|
|
116
|
-
const isRtl = this.
|
|
112
|
+
const isRtl = this.matches(":dir(rtl)");
|
|
117
113
|
const isSubmenuExpanded = this.submenuController.isExpanded();
|
|
118
114
|
return html`
|
|
119
115
|
<div
|
|
@@ -191,4 +187,4 @@ __decorateClass([
|
|
|
191
187
|
export {
|
|
192
188
|
SynMenuItem
|
|
193
189
|
};
|
|
194
|
-
//# sourceMappingURL=chunk.
|
|
190
|
+
//# sourceMappingURL=chunk.7B5QDYTK.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/menu-item/menu-item.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { getTextContent, HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { SubmenuController } from './submenu-controller.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 SynPopup from '../popup/popup.component.js';\nimport SynSpinner from '../spinner/spinner.component.js';\nimport styles from './menu-item.styles.js';\nimport customStyles from './menu-item.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Menu items provide options for the user to pick from in a menu.\n * @documentation https://synergy.style/components/menu-item\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-popup\n * @dependency syn-spinner\n *\n * @slot - The menu item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n * @slot submenu - Used to denote a nested menu.\n *\n * @csspart base - The component's base wrapper.\n * @csspart checked-icon - The checked icon, which is only visible when the menu item is checked.\n * @csspart prefix - The prefix container.\n * @csspart label - The menu item label.\n * @csspart suffix - The suffix container.\n * @csspart spinner - The spinner that shows when the menu item is in the loading state.\n * @csspart spinner__base - The spinner's base part.\n * @csspart submenu-icon - The submenu icon, visible only when the menu item has a submenu (not yet implemented).\n *\n * @cssproperty [--submenu-offset=-2px] - The distance submenus shift to overlap the parent menu.\n */\nexport default class SynMenuItem extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-popup': SynPopup,\n 'syn-spinner': SynSpinner\n };\n\n private cachedTextLabel: string;\n\n @query('slot:not([name])') defaultSlot: HTMLSlotElement;\n @query('.menu-item') menuItem: HTMLElement;\n\n /** The type of menu item to render. To use `checked`, this value must be set to `checkbox`. */\n @property() type: 'normal' | 'checkbox' = 'normal';\n\n /** Draws the item in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */\n @property() value = '';\n\n /** Draws the menu item in a loading state. */\n @property({ type: Boolean, reflect: true }) loading = false;\n\n /** Draws the menu item in a disabled state, preventing selection. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n private readonly hasSlotController = new HasSlotController(this, 'submenu');\n private submenuController: SubmenuController = new SubmenuController(this, this.hasSlotController);\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('click', this.handleHostClick);\n this.addEventListener('mouseover', this.handleMouseOver);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.handleHostClick);\n this.removeEventListener('mouseover', this.handleMouseOver);\n }\n\n private handleDefaultSlotChange() {\n const textLabel = this.getTextLabel();\n\n // Ignore the first time the label is set\n if (typeof this.cachedTextLabel === 'undefined') {\n this.cachedTextLabel = textLabel;\n return;\n }\n\n // When the label changes, emit a slotchange event so parent controls see it\n if (textLabel !== this.cachedTextLabel) {\n this.cachedTextLabel = textLabel;\n this.emit('slotchange', { bubbles: true, composed: false, cancelable: false });\n }\n }\n\n private handleHostClick = (event: MouseEvent) => {\n // Prevent the click event from being emitted when the button is disabled or loading\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n\n private handleMouseOver = (event: MouseEvent) => {\n this.focus();\n event.stopPropagation();\n };\n\n @watch('checked')\n handleCheckedChange() {\n // For proper accessibility, users have to use type=\"checkbox\" to use the checked attribute\n if (this.checked && this.type !== 'checkbox') {\n this.checked = false;\n console.error('The checked attribute can only be used on menu items with type=\"checkbox\"', this);\n return;\n }\n\n // Only checkbox types can receive the aria-checked attribute\n if (this.type === 'checkbox') {\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n } else {\n this.removeAttribute('aria-checked');\n }\n }\n\n @watch('disabled')\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n @watch('type')\n handleTypeChange() {\n if (this.type === 'checkbox') {\n this.setAttribute('role', 'menuitemcheckbox');\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n } else {\n this.setAttribute('role', 'menuitem');\n this.removeAttribute('aria-checked');\n }\n }\n\n /** Returns a text label based on the contents of the menu item's default slot. */\n getTextLabel() {\n return getTextContent(this.defaultSlot);\n }\n\n isSubmenu() {\n return this.hasSlotController.test('submenu');\n }\n\n render() {\n const isRtl = this.matches(':dir(rtl)');\n const isSubmenuExpanded = this.submenuController.isExpanded();\n\n return html`\n <div\n id=\"anchor\"\n part=\"base\"\n class=${classMap({\n 'menu-item': true,\n 'menu-item--rtl': isRtl,\n 'menu-item--checked': this.checked,\n 'menu-item--disabled': this.disabled,\n 'menu-item--loading': this.loading,\n 'menu-item--has-submenu': this.isSubmenu(),\n 'menu-item--submenu-expanded': isSubmenuExpanded\n })}\n ?aria-haspopup=\"${this.isSubmenu()}\"\n ?aria-expanded=\"${isSubmenuExpanded ? true : false}\"\n >\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <syn-icon name=\"check\" library=\"system\" aria-hidden=\"true\"></syn-icon>\n </span>\n\n <slot name=\"prefix\" part=\"prefix\" class=\"menu-item__prefix\"></slot>\n\n <slot part=\"label\" class=\"menu-item__label\" @slotchange=${this.handleDefaultSlotChange}></slot>\n\n <slot name=\"suffix\" part=\"suffix\" class=\"menu-item__suffix\"></slot>\n\n <span part=\"submenu-icon\" class=\"menu-item__chevron\">\n <syn-icon name=\"chevron-down\" library=\"system\" aria-hidden=\"true\"></syn-icon>\n </span>\n\n ${this.submenuController.renderSubmenu()}\n ${this.loading ? html` <syn-spinner part=\"spinner\" exportparts=\"base:spinner__base\"></syn-spinner> ` : ''}\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAEzB,SAAS,YAAY;AACrB,SAAS,UAAU,aAAa;AAsChC,IAAqB,cAArB,cAAyC,eAAe;AAAA,EAAxD;AAAA;AAcc,gBAA8B;AAGE,mBAAU;AAG1C,iBAAQ;AAGwB,mBAAU;AAGV,oBAAW;AAEvD,SAAiB,oBAAoB,IA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GAdS,YAcP;AAGgC;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAjBvB,YAiByB;AAGhC;AAAA,EAAX,SAAS;AAAA,GApBS,YAoBP;AAGgC;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAvBvB,YAuByB;AAGA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA1BvB,YA0ByB;AA+C5C;AAAA,EADC,MAAM,SAAS;AAAA,GAxEG,YAyEnB;AAiBA;AAAA,EADC,MAAM,UAAU;AAAA,GAzFE,YA0FnB;AAKA;AAAA,EADC,MAAM,MAAM;AAAA,GA9FM,YA+FnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynRadioGroup
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.DKGNY4YS.js";
|
|
4
4
|
|
|
5
5
|
// src/components/radio-group/radio-group.ts
|
|
6
6
|
var radio_group_default = SynRadioGroup;
|
|
@@ -9,4 +9,4 @@ SynRadioGroup.define("syn-radio-group");
|
|
|
9
9
|
export {
|
|
10
10
|
radio_group_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.7GVODRHO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynBreadcrumbItem
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.YVPJSA6G.js";
|
|
4
4
|
|
|
5
5
|
// src/components/breadcrumb-item/breadcrumb-item.ts
|
|
6
6
|
var breadcrumb_item_default = SynBreadcrumbItem;
|
|
@@ -9,4 +9,4 @@ SynBreadcrumbItem.define("syn-breadcrumb-item");
|
|
|
9
9
|
export {
|
|
10
10
|
breadcrumb_item_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.7I5Q3H5W.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynFile
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.IL3FC72M.js";
|
|
4
4
|
|
|
5
5
|
// src/components/file/file.ts
|
|
6
6
|
var file_default = SynFile;
|
|
@@ -9,4 +9,4 @@ SynFile.define("syn-file");
|
|
|
9
9
|
export {
|
|
10
10
|
file_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.7J54DP5U.js.map
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynTag
|
|
3
|
-
} from "./chunk.
|
|
4
|
-
import {
|
|
5
|
-
select_styles_default
|
|
6
|
-
} from "./chunk.SNLPFVBC.js";
|
|
3
|
+
} from "./chunk.M322AHXQ.js";
|
|
7
4
|
import {
|
|
8
5
|
select_custom_styles_default
|
|
9
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.72HIKLQG.js";
|
|
7
|
+
import {
|
|
8
|
+
select_styles_default
|
|
9
|
+
} from "./chunk.35V3TAOT.js";
|
|
10
10
|
import {
|
|
11
11
|
SynPopup
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.6I4QZHQ6.js";
|
|
13
13
|
import {
|
|
14
14
|
scrollIntoView
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.5732DMBC.js";
|
|
16
16
|
import {
|
|
17
17
|
defaultValue
|
|
18
18
|
} from "./chunk.RBG37CD4.js";
|
|
19
19
|
import {
|
|
20
20
|
form_control_custom_styles_default,
|
|
21
21
|
form_control_styles_default
|
|
22
|
-
} from "./chunk.
|
|
22
|
+
} from "./chunk.FKKJBKYL.js";
|
|
23
23
|
import {
|
|
24
24
|
FormControlController
|
|
25
|
-
} from "./chunk.
|
|
25
|
+
} from "./chunk.BBNQVEPD.js";
|
|
26
26
|
import {
|
|
27
27
|
waitForEvent
|
|
28
28
|
} from "./chunk.C2ENQBPM.js";
|
|
29
29
|
import {
|
|
30
30
|
animateTo,
|
|
31
31
|
stopAnimations
|
|
32
|
-
} from "./chunk.
|
|
32
|
+
} from "./chunk.A3OYJILJ.js";
|
|
33
33
|
import {
|
|
34
34
|
getAnimation,
|
|
35
35
|
setDefaultAnimation
|
|
36
|
-
} from "./chunk.
|
|
36
|
+
} from "./chunk.HQ6QUSK7.js";
|
|
37
37
|
import {
|
|
38
38
|
HasSlotController
|
|
39
39
|
} from "./chunk.WVVQK5TE.js";
|
|
40
40
|
import {
|
|
41
41
|
SynIcon
|
|
42
|
-
} from "./chunk.
|
|
42
|
+
} from "./chunk.XNGZHSRO.js";
|
|
43
43
|
import {
|
|
44
44
|
LocalizeController
|
|
45
|
-
} from "./chunk.
|
|
45
|
+
} from "./chunk.ESQAXAFE.js";
|
|
46
46
|
import {
|
|
47
47
|
watch
|
|
48
|
-
} from "./chunk.
|
|
48
|
+
} from "./chunk.74IOULXM.js";
|
|
49
49
|
import {
|
|
50
50
|
SynergyElement,
|
|
51
51
|
component_styles_default
|
|
52
|
-
} from "./chunk.
|
|
52
|
+
} from "./chunk.JTYYYMG2.js";
|
|
53
53
|
import {
|
|
54
54
|
__decorateClass
|
|
55
|
-
} from "./chunk.
|
|
55
|
+
} from "./chunk.2GFK6XTO.js";
|
|
56
56
|
|
|
57
57
|
// src/components/select/select.component.ts
|
|
58
58
|
import { classMap } from "lit/directives/class-map.js";
|
|
@@ -161,12 +161,10 @@ var SynSelect = class extends SynergyElement {
|
|
|
161
161
|
}
|
|
162
162
|
if (event.key === "ArrowDown") {
|
|
163
163
|
newIndex = currentIndex + 1;
|
|
164
|
-
if (newIndex > allOptions.length - 1)
|
|
165
|
-
newIndex = 0;
|
|
164
|
+
if (newIndex > allOptions.length - 1) newIndex = 0;
|
|
166
165
|
} else if (event.key === "ArrowUp") {
|
|
167
166
|
newIndex = currentIndex - 1;
|
|
168
|
-
if (newIndex < 0)
|
|
169
|
-
newIndex = allOptions.length - 1;
|
|
167
|
+
if (newIndex < 0) newIndex = allOptions.length - 1;
|
|
170
168
|
} else if (event.key === "Home") {
|
|
171
169
|
newIndex = 0;
|
|
172
170
|
} else if (event.key === "End") {
|
|
@@ -616,6 +614,8 @@ var SynSelect = class extends SynergyElement {
|
|
|
616
614
|
</button>
|
|
617
615
|
` : ""}
|
|
618
616
|
|
|
617
|
+
<slot name="suffix" part="suffix" class="select__suffix"></slot>
|
|
618
|
+
|
|
619
619
|
<slot name="expand-icon" part="expand-icon" class="select__expand-icon">
|
|
620
620
|
<syn-icon library="system" name="chevron-down"></syn-icon>
|
|
621
621
|
</slot>
|
|
@@ -766,4 +766,4 @@ setDefaultAnimation("select.hide", {
|
|
|
766
766
|
export {
|
|
767
767
|
SynSelect
|
|
768
768
|
};
|
|
769
|
-
//# sourceMappingURL=chunk.
|
|
769
|
+
//# sourceMappingURL=chunk.7YRTMCIL.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/select/select.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, stopAnimations } from '../../internal/animate.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport { scrollIntoView } from '../../internal/scroll.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport formControlStyles from '../../styles/form-control.styles.js';\nimport formControlCustomStyles from '../../styles/form-control.custom.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport SynPopup from '../popup/popup.component.js';\nimport SynTag from '../tag/tag.component.js';\nimport styles from './select.styles.js';\nimport customStyles from './select.custom.styles.js';\nimport type { CSSResultGroup, TemplateResult } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport type { SynRemoveEvent } from '../../events/syn-remove.js';\nimport type SynOption from '../option/option.component.js';\n\n/**\n * @summary Selects allow you to choose items from a menu of predefined options.\n * @documentation https://synergy.style/components/select\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-popup\n * @dependency syn-tag\n *\n * @slot - The listbox options. Must be `<syn-option>` elements. You can use `<syn-divider>` to group items visually.\n * @slot label - The input's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.\n * @slot suffix - Used to append a presentational icon or similar element to the combobox.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot expand-icon - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the control's value changes.\n * @event syn-clear - Emitted when the control's value is cleared.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-show - Emitted when the select's menu opens.\n * @event syn-after-show - Emitted after the select's menu opens and all animations are complete.\n * @event syn-hide - Emitted when the select's menu closes.\n * @event syn-after-hide - Emitted after the select's menu closes and all animations are complete.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The select's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart combobox - The container the wraps the prefix, suffix, combobox, clear icon, and expand button.\n * @csspart prefix - The container that wraps the prefix slot.\n * @csspart suffix - The container that wraps the suffix slot.\n * @csspart display-input - The element that displays the selected option's label, an `<input>` element.\n * @csspart listbox - The listbox container where options are slotted.\n * @csspart tags - The container that houses option tags when `multiselect` is used.\n * @csspart tag - The individual tags that represent each multiselect option.\n * @csspart tag__base - The tag's base part.\n * @csspart tag__content - The tag's content part.\n * @csspart tag__remove-button - The tag's remove button.\n * @csspart tag__remove-button__base - The tag's remove button base part.\n * @csspart clear-button - The clear button.\n * @csspart expand-icon - The container that wraps the expand icon.\n */\nexport default class SynSelect extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n static dependencies = {\n 'syn-icon': SynIcon,\n 'syn-popup': SynPopup,\n 'syn-tag': SynTag\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-blur', 'syn-input']\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n private readonly localize = new LocalizeController(this);\n private typeToSelectString = '';\n private typeToSelectTimeout: number;\n private closeWatcher: CloseWatcher | null;\n\n @query('.select') popup: SynPopup;\n @query('.select__combobox') combobox: HTMLSlotElement;\n @query('.select__display-input') displayInput: HTMLInputElement;\n @query('.select__value-input') valueInput: HTMLInputElement;\n @query('.select__listbox') listbox: HTMLSlotElement;\n\n @state() private hasFocus = false;\n @state() displayLabel = '';\n @state() currentOption: SynOption;\n @state() selectedOptions: SynOption[] = [];\n\n /** The name of the select, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /**\n * The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\n * value attribute will be a space-delimited list of values based on the options selected, and the value property will\n * be an array. **For this reason, values must not contain spaces.**\n */\n @property({\n converter: {\n fromAttribute: (value: string) => value.split(' '),\n toAttribute: (value: string[]) => value.join(' ')\n }\n })\n value: string | string[] = '';\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue: string | string[] = '';\n\n /** The select's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Placeholder text to show as a hint when the select is empty. */\n @property() placeholder = '';\n\n /** Allows more than one option to be selected. */\n @property({ type: Boolean, reflect: true }) multiple = false;\n\n /**\n * The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\n * indicate the number of additional items that are selected. Set to 0 to remove the limit.\n */\n @property({ attribute: 'max-options-visible', type: Number }) maxOptionsVisible = 3;\n\n /** Disables the select control. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Adds a clear button when the select is not empty. */\n @property({ type: Boolean }) clearable = false;\n\n /**\n * Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /**\n * Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n */\n @property({ type: Boolean }) hoist = false;\n\n /** The select's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /**\n * The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\n * inside of the viewport.\n */\n @property({ reflect: true }) placement: 'top' | 'bottom' = 'bottom';\n\n /** The select's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** The select's required attribute. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /**\n * A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second\n * is the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at\n * the specified value.\n */\n @property() getTag: (option: SynOption, index: number) => TemplateResult | string | HTMLElement = option => {\n return html`\n <syn-tag\n part=\"tag\"\n exportparts=\"\n base:tag__base,\n content:tag__content,\n remove-button:tag__remove-button,\n remove-button__base:tag__remove-button__base\n \"\n size=${this.size}\n removable\n @syn-remove=${(event: SynRemoveEvent) => this.handleTagRemove(event, option)}\n >\n ${option.getTextLabel()}\n </syn-tag>\n `;\n };\n\n /** Gets the validity state object */\n get validity() {\n return this.valueInput.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.valueInput.validationMessage;\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // Because this is a form control, it shouldn't be opened initially\n this.open = false;\n }\n\n private addOpenListeners() {\n //\n // Listen on the root node instead of the document in case the elements are inside a shadow root\n //\n // https://github.com/synergy-design-system/synergy/issues/1763\n //\n document.addEventListener('focusin', this.handleDocumentFocusIn);\n document.addEventListener('keydown', this.handleDocumentKeyDown);\n document.addEventListener('mousedown', this.handleDocumentMouseDown);\n\n // If the component is rendered in a shadow root, we need to attach the focusin listener there too\n if (this.getRootNode() !== document) {\n this.getRootNode().addEventListener('focusin', this.handleDocumentFocusIn);\n }\n\n if ('CloseWatcher' in window) {\n this.closeWatcher?.destroy();\n this.closeWatcher = new CloseWatcher();\n this.closeWatcher.onclose = () => {\n if (this.open) {\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n };\n }\n }\n\n private removeOpenListeners() {\n document.removeEventListener('focusin', this.handleDocumentFocusIn);\n document.removeEventListener('keydown', this.handleDocumentKeyDown);\n document.removeEventListener('mousedown', this.handleDocumentMouseDown);\n\n if (this.getRootNode() !== document) {\n this.getRootNode().removeEventListener('focusin', this.handleDocumentFocusIn);\n }\n\n this.closeWatcher?.destroy();\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.displayInput.setSelectionRange(0, 0);\n this.emit('syn-focus');\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleDocumentFocusIn = (event: KeyboardEvent) => {\n // Close when focusing out of the select\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n this.hide();\n }\n };\n\n private handleDocumentKeyDown = (event: KeyboardEvent) => {\n const target = event.target as HTMLElement;\n const isClearButton = target.closest('.select__clear') !== null;\n const isIconButton = target.closest('syn-icon-button') !== null;\n\n // Ignore presses when the target is an icon button (e.g. the remove button in <syn-tag>)\n if (isClearButton || isIconButton) {\n return;\n }\n\n // Close when pressing escape\n if (event.key === 'Escape' && this.open && !this.closeWatcher) {\n event.preventDefault();\n event.stopPropagation();\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n\n // Handle enter and space. When pressing space, we allow for type to select behaviors so if there's anything in the\n // buffer we _don't_ close it.\n if (event.key === 'Enter' || (event.key === ' ' && this.typeToSelectString === '')) {\n event.preventDefault();\n event.stopImmediatePropagation();\n\n // If it's not open, open it\n if (!this.open) {\n this.show();\n return;\n }\n\n // If it is open, update the value based on the current selection and close it\n if (this.currentOption && !this.currentOption.disabled) {\n if (this.multiple) {\n this.toggleOptionSelection(this.currentOption);\n } else {\n this.setSelectedOptions(this.currentOption);\n }\n\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n\n if (!this.multiple) {\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n }\n\n return;\n }\n\n // Navigate options\n if (['ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) {\n const allOptions = this.getAllOptions();\n const currentIndex = allOptions.indexOf(this.currentOption);\n let newIndex = Math.max(0, currentIndex);\n\n // Prevent scrolling\n event.preventDefault();\n\n // Open it\n if (!this.open) {\n this.show();\n\n // If an option is already selected, stop here because we want that one to remain highlighted when the listbox\n // opens for the first time\n if (this.currentOption) {\n return;\n }\n }\n\n if (event.key === 'ArrowDown') {\n newIndex = currentIndex + 1;\n if (newIndex > allOptions.length - 1) newIndex = 0;\n } else if (event.key === 'ArrowUp') {\n newIndex = currentIndex - 1;\n if (newIndex < 0) newIndex = allOptions.length - 1;\n } else if (event.key === 'Home') {\n newIndex = 0;\n } else if (event.key === 'End') {\n newIndex = allOptions.length - 1;\n }\n\n this.setCurrentOption(allOptions[newIndex]);\n }\n\n // All other \"printable\" keys trigger type to select\n if (event.key.length === 1 || event.key === 'Backspace') {\n const allOptions = this.getAllOptions();\n\n // Don't block important key combos like CMD+R\n if (event.metaKey || event.ctrlKey || event.altKey) {\n return;\n }\n\n // Open, unless the key that triggered is backspace\n if (!this.open) {\n if (event.key === 'Backspace') {\n return;\n }\n\n this.show();\n }\n\n event.stopPropagation();\n event.preventDefault();\n\n clearTimeout(this.typeToSelectTimeout);\n this.typeToSelectTimeout = window.setTimeout(() => (this.typeToSelectString = ''), 1000);\n\n if (event.key === 'Backspace') {\n this.typeToSelectString = this.typeToSelectString.slice(0, -1);\n } else {\n this.typeToSelectString += event.key.toLowerCase();\n }\n\n for (const option of allOptions) {\n const label = option.getTextLabel().toLowerCase();\n\n if (label.startsWith(this.typeToSelectString)) {\n this.setCurrentOption(option);\n break;\n }\n }\n }\n };\n\n private handleDocumentMouseDown = (event: MouseEvent) => {\n // Close when clicking outside of the select\n const path = event.composedPath();\n if (this && !path.includes(this)) {\n this.hide();\n }\n };\n\n private handleLabelClick() {\n this.displayInput.focus();\n }\n\n private handleComboboxMouseDown(event: MouseEvent) {\n const path = event.composedPath();\n const isIconButton = path.some(el => el instanceof Element && el.tagName.toLowerCase() === 'syn-icon-button');\n\n // Ignore disabled controls and clicks on tags (remove buttons)\n if (this.disabled || isIconButton) {\n return;\n }\n\n event.preventDefault();\n this.displayInput.focus({ preventScroll: true });\n this.open = !this.open;\n }\n\n private handleComboboxKeyDown(event: KeyboardEvent) {\n if (event.key === 'Tab') {\n return;\n }\n\n event.stopPropagation();\n this.handleDocumentKeyDown(event);\n }\n\n private handleClearClick(event: MouseEvent) {\n event.stopPropagation();\n\n if (this.value !== '') {\n this.setSelectedOptions([]);\n this.displayInput.focus({ preventScroll: true });\n\n // Emit after update\n this.updateComplete.then(() => {\n this.emit('syn-clear');\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n private handleClearMouseDown(event: MouseEvent) {\n // Don't lose focus or propagate events when clicking the clear button\n event.stopPropagation();\n event.preventDefault();\n }\n\n private handleOptionClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const option = target.closest('syn-option');\n const oldValue = this.value;\n\n if (option && !option.disabled) {\n if (this.multiple) {\n this.toggleOptionSelection(option);\n } else {\n this.setSelectedOptions(option);\n }\n\n // Set focus after updating so the value is announced by screen readers\n this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));\n\n if (this.value !== oldValue) {\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n\n if (!this.multiple) {\n this.hide();\n this.displayInput.focus({ preventScroll: true });\n }\n }\n }\n\n private handleDefaultSlotChange() {\n const allOptions = this.getAllOptions();\n const value = Array.isArray(this.value) ? this.value : [this.value];\n const values: string[] = [];\n\n // Check for duplicate values in menu items\n if (customElements.get('syn-option')) {\n allOptions.forEach(option => values.push(option.value));\n\n // Select only the options that match the new value\n this.setSelectedOptions(allOptions.filter(el => value.includes(el.value)));\n } else {\n // Rerun this handler when <syn-option> is registered\n customElements.whenDefined('syn-option').then(() => this.handleDefaultSlotChange());\n }\n }\n\n private handleTagRemove(event: SynRemoveEvent, option: SynOption) {\n event.stopPropagation();\n\n if (!this.disabled) {\n this.toggleOptionSelection(option, false);\n\n // Emit after updating\n this.updateComplete.then(() => {\n this.emit('syn-input');\n this.emit('syn-change');\n });\n }\n }\n\n // Gets an array of all <syn-option> elements\n private getAllOptions() {\n return [...this.querySelectorAll<SynOption>('syn-option')];\n }\n\n // Gets the first <syn-option> element\n private getFirstOption() {\n return this.querySelector<SynOption>('syn-option');\n }\n\n // Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one\n // option may be \"current\" at a time.\n private setCurrentOption(option: SynOption | null) {\n const allOptions = this.getAllOptions();\n\n // Clear selection\n allOptions.forEach(el => {\n el.current = false;\n el.tabIndex = -1;\n });\n\n // Select the target option\n if (option) {\n this.currentOption = option;\n option.current = true;\n option.tabIndex = 0;\n option.focus();\n }\n }\n\n // Sets the selected option(s)\n private setSelectedOptions(option: SynOption | SynOption[]) {\n const allOptions = this.getAllOptions();\n const newSelectedOptions = Array.isArray(option) ? option : [option];\n\n // Clear existing selection\n allOptions.forEach(el => (el.selected = false));\n\n // Set the new selection\n if (newSelectedOptions.length) {\n newSelectedOptions.forEach(el => (el.selected = true));\n }\n\n // Update selection, value, and display label\n this.selectionChanged();\n }\n\n // Toggles an option's selected state\n private toggleOptionSelection(option: SynOption, force?: boolean) {\n if (force === true || force === false) {\n option.selected = force;\n } else {\n option.selected = !option.selected;\n }\n\n this.selectionChanged();\n }\n\n // This method must be called whenever the selection changes. It will update the selected options cache, the current\n // value, and the display value\n private selectionChanged() {\n // Update selected options cache\n this.selectedOptions = this.getAllOptions().filter(el => el.selected);\n\n // Update the value and display label\n if (this.multiple) {\n this.value = this.selectedOptions.map(el => el.value);\n\n if (this.placeholder && this.value.length === 0) {\n // When no items are selected, keep the value empty so the placeholder shows\n this.displayLabel = '';\n } else {\n this.displayLabel = this.localize.term('numOptionsSelected', this.selectedOptions.length);\n }\n } else {\n this.value = this.selectedOptions[0]?.value ?? '';\n this.displayLabel = this.selectedOptions[0]?.getTextLabel() ?? '';\n }\n\n // Update validity\n this.updateComplete.then(() => {\n this.formControlController.updateValidity();\n });\n }\n protected get tags() {\n return this.selectedOptions.map((option, index) => {\n if (index < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {\n const tag = this.getTag(option, index);\n // Wrap so we can handle the remove\n return html`<div @syn-remove=${(e: SynRemoveEvent) => this.handleTagRemove(e, option)}>\n ${typeof tag === 'string' ? unsafeHTML(tag) : tag}\n </div>`;\n } else if (index === this.maxOptionsVisible) {\n // Hit tag limit\n return html`<syn-tag size=${this.size}>+${this.selectedOptions.length - index}</syn-tag>`;\n }\n return html``;\n });\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Close the listbox when the control is disabled\n if (this.disabled) {\n this.open = false;\n this.handleOpenChange();\n }\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n handleValueChange() {\n const allOptions = this.getAllOptions();\n const value = Array.isArray(this.value) ? this.value : [this.value];\n\n // Select only the options that match the new value\n this.setSelectedOptions(allOptions.filter(el => value.includes(el.value)));\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open && !this.disabled) {\n // Reset the current option\n this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption());\n\n // Show\n this.emit('syn-show');\n this.addOpenListeners();\n\n await stopAnimations(this);\n this.listbox.hidden = false;\n this.popup.active = true;\n\n // Select the appropriate option based on value after the listbox opens\n requestAnimationFrame(() => {\n this.setCurrentOption(this.currentOption);\n });\n\n const { keyframes, options } = getAnimation(this, 'select.show', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n\n // Make sure the current option is scrolled into view (required for Safari)\n if (this.currentOption) {\n scrollIntoView(this.currentOption, this.listbox, 'vertical', 'auto');\n }\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, 'select.hide', { dir: this.localize.dir() });\n await animateTo(this.popup.popup, keyframes, options);\n this.listbox.hidden = true;\n this.popup.active = false;\n\n this.emit('syn-after-hide');\n }\n }\n\n /** Shows the listbox. */\n async show() {\n if (this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the listbox. */\n async hide() {\n if (!this.open || this.disabled) {\n this.open = false;\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */\n checkValidity() {\n return this.valueInput.checkValidity();\n }\n\n /** Gets the associated form, if one exists. */\n getForm(): HTMLFormElement | null {\n return this.formControlController.getForm();\n }\n\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n return this.valueInput.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.valueInput.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the control. */\n focus(options?: FocusOptions) {\n this.displayInput.focus(options);\n }\n\n /** Removes focus from the control. */\n blur() {\n this.displayInput.blur();\n }\n\n render() {\n const hasLabelSlot = this.hasSlotController.test('label');\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasLabel = this.label ? true : !!hasLabelSlot;\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n const hasClearIcon = this.clearable && !this.disabled && this.value.length > 0;\n const isPlaceholderVisible = this.placeholder && this.value.length === 0;\n\n return html`\n <div\n part=\"form-control\"\n class=${classMap({\n 'form-control': true,\n 'form-control--small': this.size === 'small',\n 'form-control--medium': this.size === 'medium',\n 'form-control--large': this.size === 'large',\n 'form-control--has-label': hasLabel,\n 'form-control--has-help-text': hasHelpText\n })}\n >\n <label\n id=\"label\"\n part=\"form-control-label\"\n class=\"form-control__label\"\n aria-hidden=${hasLabel ? 'false' : 'true'}\n @click=${this.handleLabelClick}\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div part=\"form-control-input\" class=\"form-control-input\">\n <syn-popup\n class=${classMap({\n select: true,\n 'select--standard': true,\n 'select--open': this.open,\n 'select--disabled': this.disabled,\n 'select--multiple': this.multiple,\n 'select--focused': this.hasFocus,\n 'select--placeholder-visible': isPlaceholderVisible,\n 'select--top': this.placement === 'top',\n 'select--bottom': this.placement === 'bottom',\n 'select--small': this.size === 'small',\n 'select--medium': this.size === 'medium',\n 'select--large': this.size === 'large'\n })}\n placement=${this.placement}\n strategy=${this.hoist ? 'fixed' : 'absolute'}\n flip\n shift\n sync=\"width\"\n auto-size=\"vertical\"\n auto-size-padding=\"10\"\n >\n <div\n part=\"combobox\"\n class=\"select__combobox\"\n slot=\"anchor\"\n @keydown=${this.handleComboboxKeyDown}\n @mousedown=${this.handleComboboxMouseDown}\n >\n <slot part=\"prefix\" name=\"prefix\" class=\"select__prefix\"></slot>\n\n <input\n part=\"display-input\"\n class=\"select__display-input\"\n type=\"text\"\n placeholder=${this.placeholder}\n .disabled=${this.disabled}\n .value=${this.displayLabel}\n autocomplete=\"off\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n readonly\n aria-controls=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-haspopup=\"listbox\"\n aria-labelledby=\"label\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n role=\"combobox\"\n tabindex=\"0\"\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n />\n\n ${this.multiple ? html`<div part=\"tags\" class=\"select__tags\">${this.tags}</div>` : ''}\n\n <input\n class=\"select__value-input\"\n type=\"text\"\n ?disabled=${this.disabled}\n ?required=${this.required}\n .value=${Array.isArray(this.value) ? this.value.join(', ') : this.value}\n tabindex=\"-1\"\n aria-hidden=\"true\"\n @focus=${() => this.focus()}\n @invalid=${this.handleInvalid}\n />\n\n ${hasClearIcon\n ? html`\n <button\n part=\"clear-button\"\n class=\"select__clear\"\n type=\"button\"\n aria-label=${this.localize.term('clearEntry')}\n @mousedown=${this.handleClearMouseDown}\n @click=${this.handleClearClick}\n tabindex=\"-1\"\n >\n <slot name=\"clear-icon\">\n <syn-icon name=\"x-circle-fill\" library=\"system\"></syn-icon>\n </slot>\n </button>\n `\n : ''}\n\n <slot name=\"suffix\" part=\"suffix\" class=\"select__suffix\"></slot>\n\n <slot name=\"expand-icon\" part=\"expand-icon\" class=\"select__expand-icon\">\n <syn-icon library=\"system\" name=\"chevron-down\"></syn-icon>\n </slot>\n </div>\n\n <div\n id=\"listbox\"\n role=\"listbox\"\n aria-expanded=${this.open ? 'true' : 'false'}\n aria-multiselectable=${this.multiple ? 'true' : 'false'}\n aria-labelledby=\"label\"\n part=\"listbox\"\n class=\"select__listbox\"\n tabindex=\"-1\"\n @mouseup=${this.handleOptionClick}\n @slotchange=${this.handleDefaultSlotChange}\n >\n <slot></slot>\n </div>\n </syn-popup>\n </div>\n\n <div\n part=\"form-control-help-text\"\n id=\"help-text\"\n class=\"form-control__help-text\"\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('select.show', {\n keyframes: [\n { opacity: 0, scale: 0.9 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 100, easing: 'ease' }\n});\n\nsetDefaultAnimation('select.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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAKzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAEvC,SAAS,kBAAkB;AAgE3B,IAAqB,YAArB,cAAuC,eAA6C;AAAA,EAApF;AAAA;AAQE,SAAiB,wBAAwB,IAAI,sBAAsB,MAAM;AAAA,MACvE,qBAAqB,CAAC,YAAY,WAAW;AAAA,IAC/C,CAAC;AACD,SAAiB,oBAAoB,IAAI,kBAAkB,MAAM,aAAa,OAAO;AACrF,SAAiB,WAAW,IAAI,mBAAmB,IAAI;AACvD,SAAQ,qBAAqB;AAUpB,SAAQ,WAAW;AACnB,wBAAe;AAEf,2BAA+B,CAAC;AAG7B,gBAAO;AAanB,iBAA2B;AAGX,wBAAkC;AAGrB,gBAAqC;AAGtD,uBA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jGR,UAiGU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GApGvB,UAoGyB;AAOhC;AAAA,EAAX,SAAS;AAAA,GA3GS,UA2GP;AA+bZ;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAziB9B,UA0iBnB;AASA;AAAA,EADC,MAAM,SAAS,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAljB3B,UAmjBnB;AASM;AAAA,EADL,MAAM,QAAQ,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA3jB1B,UA4jBb;AA0PR,oBAAoB,eAAe;AAAA,EACjC,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,eAAe;AAAA,EACjC,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": []
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadProps,
|
|
3
3
|
__spreadValues
|
|
4
|
-
} from "./chunk.
|
|
4
|
+
} from "./chunk.2GFK6XTO.js";
|
|
5
5
|
|
|
6
6
|
// src/internal/animate.ts
|
|
7
7
|
function animateTo(el, keyframes, options) {
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
stopAnimations,
|
|
53
53
|
shimKeyframesHeightAuto
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk.
|
|
55
|
+
//# sourceMappingURL=chunk.A3OYJILJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynProgressRing
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LBU676EZ.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.A7S3RARM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadProps,
|
|
3
3
|
__spreadValues
|
|
4
|
-
} from "./chunk.
|
|
4
|
+
} from "./chunk.2GFK6XTO.js";
|
|
5
5
|
|
|
6
6
|
// src/internal/form.ts
|
|
7
7
|
var formCollections = /* @__PURE__ */ new WeakMap();
|
|
@@ -167,8 +167,7 @@ var FormControlController = class {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
detachForm() {
|
|
170
|
-
if (!this.form)
|
|
171
|
-
return;
|
|
170
|
+
if (!this.form) return;
|
|
172
171
|
const formCollection = formCollections.get(this.form);
|
|
173
172
|
if (!formCollection) {
|
|
174
173
|
return;
|
|
@@ -308,4 +307,4 @@ export {
|
|
|
308
307
|
valueMissingValidityState,
|
|
309
308
|
customErrorValidityState
|
|
310
309
|
};
|
|
311
|
-
//# sourceMappingURL=chunk.
|
|
310
|
+
//# sourceMappingURL=chunk.BBNQVEPD.js.map
|