@synergy-design-system/components 3.4.1 → 3.6.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.HYDHTZQK.js → chunk.2DWIAD22.js} +3 -3
- package/dist/chunks/{chunk.CDOWFAH2.js → chunk.2ECWEEUO.js} +21 -4
- package/dist/chunks/{chunk.CDOWFAH2.js.map → chunk.2ECWEEUO.js.map} +2 -2
- package/dist/chunks/{chunk.FXJLG622.js → chunk.2NT3B5WJ.js} +1 -2
- package/dist/chunks/chunk.2NT3B5WJ.js.map +7 -0
- package/dist/chunks/chunk.32WNHWXJ.js +256 -0
- package/dist/chunks/chunk.32WNHWXJ.js.map +7 -0
- package/dist/chunks/{chunk.DEJAPNIZ.js → chunk.3334XOIY.js} +25 -17
- package/dist/chunks/chunk.3334XOIY.js.map +7 -0
- package/dist/chunks/{chunk.ZJIPUBF4.js → chunk.34I3S3Q5.js} +2 -2
- package/dist/chunks/{chunk.PTRCO527.js → chunk.34WYIU4C.js} +11 -36
- package/dist/chunks/chunk.34WYIU4C.js.map +7 -0
- package/dist/chunks/{chunk.LYR5DVRN.js → chunk.3UJMEQUN.js} +81 -15
- package/dist/chunks/chunk.3UJMEQUN.js.map +7 -0
- package/dist/chunks/chunk.432DTUIX.js +184 -0
- package/dist/chunks/chunk.432DTUIX.js.map +7 -0
- package/dist/chunks/{chunk.O2SN266T.js → chunk.44VIEEDD.js} +7 -7
- package/dist/chunks/{chunk.6USNG4EL.js → chunk.45MATNO2.js} +39 -6
- package/dist/chunks/chunk.45MATNO2.js.map +7 -0
- package/dist/chunks/{chunk.YACUYJZN.js → chunk.4BEGBAQD.js} +2 -2
- package/dist/chunks/{chunk.TBWTMCIZ.js → chunk.4OMS443H.js} +8 -8
- package/dist/chunks/chunk.4P4UJDDZ.js +401 -0
- package/dist/chunks/chunk.4P4UJDDZ.js.map +7 -0
- package/dist/chunks/{chunk.FBCN4FKK.js → chunk.4Y6OKSYI.js} +2 -2
- package/dist/chunks/{chunk.F3ISPVCF.js → chunk.5WQAKFFK.js} +2 -2
- package/dist/chunks/{chunk.FXBKSVUT.js → chunk.5YRNPDSI.js} +2 -2
- package/dist/chunks/{chunk.K6ZF6MXW.js → chunk.63IQVXUD.js} +2 -2
- package/dist/chunks/{chunk.XRABXAPU.js → chunk.6EHTMWUQ.js} +2 -2
- package/dist/chunks/{chunk.T5IJK23O.js → chunk.6EWCMDOQ.js} +55 -37
- package/dist/chunks/chunk.6EWCMDOQ.js.map +7 -0
- package/dist/chunks/{chunk.3BNYHBTW.js → chunk.6GMIINJO.js} +8 -8
- package/dist/chunks/{chunk.TCIRIOFE.js → chunk.6VYVMXVV.js} +2 -2
- package/dist/chunks/chunk.7DRFKCFD.js +388 -0
- package/dist/chunks/chunk.7DRFKCFD.js.map +7 -0
- package/dist/chunks/{chunk.QZ3BISVP.js → chunk.7GX46BNP.js} +2 -2
- package/dist/chunks/{chunk.6BKPVIJB.js → chunk.7WQVBHRS.js} +2 -2
- package/dist/chunks/{chunk.JUL2CRYY.js → chunk.A7YINQHA.js} +2 -2
- package/dist/chunks/{chunk.D74ABFPR.js → chunk.AD4WKLKY.js} +2 -2
- package/dist/chunks/{chunk.GIRTTUXE.js → chunk.B4UA7LU7.js} +4 -4
- package/dist/chunks/{chunk.SQ5WOO45.js → chunk.BIGAPOOQ.js} +2 -2
- package/dist/chunks/{chunk.I4H7DRDG.js → chunk.BLS5NMGM.js} +2 -2
- package/dist/chunks/{chunk.7J4L4QJD.js → chunk.BWNWEGKQ.js} +2 -2
- package/dist/chunks/{chunk.WYNTVNZN.js → chunk.BYGCAEBC.js} +3 -3
- package/dist/chunks/{chunk.TJGW3F7V.js → chunk.DHCEQX56.js} +3 -3
- package/dist/chunks/{chunk.A2WIAKI6.js → chunk.DQIPVU4J.js} +3 -3
- package/dist/chunks/{chunk.BLXDFVSN.js → chunk.E3J4FZS3.js} +2 -2
- package/dist/chunks/{chunk.OLGJ7TFN.js → chunk.EEVLMRYA.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.WBNYPYL7.js → chunk.ESXNQJQU.js} +2 -2
- package/dist/chunks/{chunk.5OM5JMIS.js → chunk.EX2D55AB.js} +2 -2
- package/dist/chunks/{chunk.IPCLZSAG.js → chunk.FGF4ENWR.js} +10 -10
- package/dist/chunks/{chunk.RY3ZM7MQ.js → chunk.FQ6KKYNN.js} +4 -4
- package/dist/chunks/{chunk.BYE5W5XF.js → chunk.FUWJV6FF.js} +2 -2
- package/dist/chunks/{chunk.BYE5W5XF.js.map → chunk.FUWJV6FF.js.map} +1 -1
- package/dist/chunks/{chunk.XSGOTME6.js → chunk.GI3MHRT5.js} +22 -23
- package/dist/chunks/chunk.GI3MHRT5.js.map +7 -0
- package/dist/chunks/{chunk.ENOYY3IT.js → chunk.GKWU7STM.js} +5 -5
- package/dist/chunks/{chunk.M56PSVI2.js → chunk.HQQFUCQ6.js} +2 -2
- package/dist/chunks/{chunk.CZ37RPEW.js → chunk.HXZVWZL3.js} +2 -2
- package/dist/chunks/{chunk.S4VV4PW6.js → chunk.IPLC773L.js} +2 -2
- package/dist/chunks/{chunk.RFZFX5DB.js → chunk.IR3P3QGG.js} +44 -36
- package/dist/chunks/chunk.IR3P3QGG.js.map +7 -0
- package/dist/chunks/{chunk.UHLDAGGC.js → chunk.IV3FR4CG.js} +26 -16
- package/dist/chunks/chunk.IV3FR4CG.js.map +7 -0
- package/dist/chunks/{chunk.NG6MPQXW.js → chunk.JBNR3EZZ.js} +5 -8
- package/dist/chunks/chunk.JBNR3EZZ.js.map +7 -0
- package/dist/chunks/{chunk.SFAXS422.js → chunk.JXCCMLXD.js} +2 -2
- package/dist/chunks/{chunk.ZZPMWJEV.js → chunk.K7FUMJK2.js} +3 -3
- package/dist/chunks/{chunk.SJKOVTL7.js → chunk.KD57IQV6.js} +24 -14
- package/dist/chunks/chunk.KD57IQV6.js.map +7 -0
- package/dist/chunks/{chunk.IM54DI3K.js → chunk.KEO5PHF2.js} +28 -4
- package/dist/chunks/{chunk.IM54DI3K.js.map → chunk.KEO5PHF2.js.map} +2 -2
- package/dist/chunks/{chunk.6AGTA23Z.js → chunk.KHL5C52A.js} +2 -2
- package/dist/chunks/{chunk.Q52OTVVQ.js → chunk.KO63GPHO.js} +14 -15
- package/dist/chunks/chunk.KO63GPHO.js.map +7 -0
- package/dist/chunks/{chunk.GDUWM3IU.js → chunk.KOYEOD56.js} +2 -2
- package/dist/chunks/{chunk.5SCUGJ6B.js → chunk.KXTBRSLW.js} +2 -2
- package/dist/chunks/{chunk.X64WPXGV.js → chunk.KZJR6HZD.js} +13 -13
- package/dist/chunks/{chunk.UJJS5NUR.js → chunk.LA2QMOXI.js} +2 -2
- package/dist/chunks/{chunk.DEBFHR7L.js → chunk.LGSQ6DML.js} +8 -8
- package/dist/chunks/{chunk.4KKHRDXV.js → chunk.LJYCM7V2.js} +9 -9
- package/dist/chunks/{chunk.XCIMZW5A.js → chunk.LYQYSN3L.js} +11 -11
- package/dist/chunks/{chunk.PJSYITAJ.js → chunk.M4LSKQMC.js} +2 -2
- package/dist/chunks/{chunk.5KP4LNRA.js → chunk.MHSMXQPS.js} +10 -10
- package/dist/chunks/{chunk.PMUJUBRK.js → chunk.MNS3RHQ3.js} +10 -10
- package/dist/chunks/{chunk.OVW5OJ5D.js → chunk.MOGC7VFU.js} +3 -3
- package/dist/chunks/{chunk.FIRUUZ72.js → chunk.MTRKCZX4.js} +16 -14
- package/dist/chunks/chunk.MTRKCZX4.js.map +7 -0
- package/dist/chunks/{chunk.SK3OOBSU.js → chunk.N25AMXDL.js} +2 -2
- package/dist/chunks/{chunk.LAS6ZMG3.js → chunk.N2YN3NX6.js} +12 -15
- package/dist/chunks/chunk.N2YN3NX6.js.map +7 -0
- package/dist/chunks/{chunk.ZWIJDTHA.js → chunk.NB2UOW3O.js} +9 -9
- package/dist/chunks/{chunk.KPHDBL43.js → chunk.NDJJVGQL.js} +56 -27
- package/dist/chunks/chunk.NDJJVGQL.js.map +7 -0
- package/dist/chunks/{chunk.Q7TVQOF4.js → chunk.NIQMC4FW.js} +7 -7
- package/dist/chunks/{chunk.LCFMN5P6.js → chunk.O34OXLGO.js} +2 -2
- package/dist/chunks/{chunk.YAKMH4QL.js → chunk.OF4BZKDQ.js} +5 -5
- package/dist/chunks/{chunk.REYQATVI.js → chunk.OK2D4PQ6.js} +9 -13
- package/dist/chunks/chunk.OK2D4PQ6.js.map +7 -0
- package/dist/chunks/{chunk.2BNFOMES.js → chunk.OK2D5LNY.js} +24 -18
- package/dist/chunks/chunk.OK2D5LNY.js.map +7 -0
- package/dist/chunks/{chunk.RQW6TIU3.js → chunk.P7LAZVIX.js} +2 -2
- package/dist/chunks/{chunk.WB7AZHAU.js → chunk.PMRBUT43.js} +2 -2
- package/dist/chunks/{chunk.RE6C7TN4.js → chunk.POUKY545.js} +10 -10
- package/dist/chunks/{chunk.KY4TLUU7.js → chunk.PQDMVEQ5.js} +2 -2
- package/dist/chunks/{chunk.Z624JZ3J.js → chunk.Q2K7NQCB.js} +3 -3
- package/dist/chunks/{chunk.YDGDQPP5.js → chunk.SEGXW66J.js} +7 -7
- package/dist/chunks/{chunk.CU6PP445.js → chunk.SRVAU77I.js} +12 -12
- package/dist/chunks/{chunk.VRADHZYJ.js → chunk.SSFAGBRV.js} +8 -8
- package/dist/chunks/{chunk.E7XVQIGU.js → chunk.STXZTZMY.js} +2 -2
- package/dist/chunks/{chunk.ZB5HHICG.js → chunk.SUFEDTS2.js} +2 -2
- package/dist/chunks/{chunk.FYMB6WRK.js → chunk.T7XTHFR7.js} +2 -2
- package/dist/chunks/{chunk.HKAVJBBB.js → chunk.TGTVJBXC.js} +2 -2
- package/dist/chunks/{chunk.UDN55TWV.js → chunk.TPS2SF3S.js} +37 -27
- package/dist/chunks/chunk.TPS2SF3S.js.map +7 -0
- package/dist/chunks/{chunk.NQ4QB2MM.js → chunk.TSRZZOKK.js} +2 -2
- package/dist/chunks/{chunk.HMHNDXAC.js → chunk.U6SWVYGR.js} +7 -7
- package/dist/chunks/{chunk.TSWB7UFK.js → chunk.UA5B6CPN.js} +82 -15
- package/dist/chunks/chunk.UA5B6CPN.js.map +7 -0
- package/dist/chunks/{chunk.KRFWZXI7.js → chunk.VLCNIRQP.js} +6 -6
- package/dist/chunks/{chunk.FESJPZKL.js → chunk.VO4T33T2.js} +2 -2
- package/dist/chunks/chunk.VOUZJK5T.js +187 -0
- package/dist/chunks/chunk.VOUZJK5T.js.map +7 -0
- package/dist/chunks/{chunk.CKCAQK4L.js → chunk.W4UYS7NY.js} +2 -2
- package/dist/chunks/{chunk.3XGSZICI.js → chunk.WAFGHUVD.js} +2 -2
- package/dist/chunks/{chunk.XJTZAA2Z.js → chunk.WDW65L3W.js} +2 -2
- package/dist/chunks/{chunk.CRK3CDIA.js → chunk.WVO75K4L.js} +3 -3
- package/dist/chunks/{chunk.FAHK4E5U.js → chunk.XHZZLHOD.js} +2 -2
- package/dist/chunks/{chunk.NK4LRKZH.js → chunk.XJSWRSR5.js} +2 -2
- package/dist/chunks/{chunk.JRG45QJG.js → chunk.YFDRVJUV.js} +3 -3
- package/dist/chunks/{chunk.LWPDGLHA.js → chunk.YFETCWLT.js} +6 -6
- package/dist/chunks/{chunk.TMIMLIC2.js → chunk.ZBHF3VT7.js} +2 -2
- package/dist/chunks/{chunk.YWLPEZQC.js → chunk.ZCUQMK2T.js} +2 -2
- package/dist/chunks/{chunk.MCD4BAD3.js → chunk.ZEBIZ2UZ.js} +6 -6
- package/dist/chunks/{chunk.VTL7TKW3.js → chunk.ZKCT75DI.js} +3 -3
- package/dist/chunks/{chunk.XEWNW7X7.js → chunk.ZNEQLWGZ.js} +37 -3
- package/dist/chunks/chunk.ZNEQLWGZ.js.map +7 -0
- package/dist/chunks/{chunk.Y5CDCBLE.js → chunk.ZRA73PRW.js} +2 -2
- package/dist/chunks/{chunk.V4C7IECK.js → chunk.ZZAW2A7F.js} +23 -14
- package/dist/chunks/chunk.ZZAW2A7F.js.map +7 -0
- package/dist/components/accordion/accordion.component.js +7 -7
- package/dist/components/accordion/accordion.js +8 -8
- package/dist/components/alert/alert.component.js +14 -15
- package/dist/components/alert/alert.js +15 -16
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/badge/badge.component.js +8 -8
- package/dist/components/badge/badge.js +9 -9
- package/dist/components/breadcrumb/breadcrumb.component.js +10 -10
- package/dist/components/breadcrumb/breadcrumb.js +11 -11
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +3 -3
- package/dist/components/breadcrumb-item/breadcrumb-item.js +4 -4
- package/dist/components/button/button.component.js +13 -13
- package/dist/components/button/button.js +14 -14
- package/dist/components/button-group/button-group.component.js +6 -6
- package/dist/components/button-group/button-group.js +7 -7
- package/dist/components/card/card.component.js +3 -3
- package/dist/components/card/card.js +4 -4
- package/dist/components/checkbox/checkbox.component.d.ts +2 -1
- package/dist/components/checkbox/checkbox.component.js +12 -13
- package/dist/components/checkbox/checkbox.js +13 -14
- package/dist/components/checkbox/checkbox.styles.js +1 -1
- package/dist/components/combobox/combobox.component.d.ts +3 -0
- package/dist/components/combobox/combobox.component.js +22 -24
- package/dist/components/combobox/combobox.js +23 -25
- package/dist/components/combobox/combobox.styles.js +2 -1
- package/dist/components/details/details.component.js +11 -11
- package/dist/components/details/details.js +12 -12
- package/dist/components/dialog/dialog.component.js +14 -14
- package/dist/components/dialog/dialog.js +15 -15
- package/dist/components/divider/divider.component.js +3 -3
- package/dist/components/divider/divider.js +4 -4
- package/dist/components/drawer/drawer.component.js +14 -14
- package/dist/components/drawer/drawer.js +15 -15
- package/dist/components/dropdown/dropdown.component.js +6 -7
- package/dist/components/dropdown/dropdown.js +7 -8
- package/dist/components/file/file.component.d.ts +2 -0
- package/dist/components/file/file.component.js +16 -16
- package/dist/components/file/file.js +17 -17
- package/dist/components/file/file.styles.js +1 -1
- package/dist/components/header/header.component.js +9 -9
- package/dist/components/header/header.js +10 -10
- package/dist/components/icon/icon.component.js +5 -5
- package/dist/components/icon/icon.js +6 -6
- package/dist/components/icon-button/icon-button.component.js +11 -11
- package/dist/components/icon-button/icon-button.js +12 -12
- package/dist/components/input/input.component.js +14 -14
- package/dist/components/input/input.js +15 -15
- package/dist/components/menu/menu.component.js +3 -3
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/menu-item/menu-item.component.js +13 -14
- package/dist/components/menu-item/menu-item.js +14 -15
- package/dist/components/menu-label/menu-label.component.js +5 -5
- package/dist/components/menu-label/menu-label.js +6 -6
- package/dist/components/nav-item/nav-item.component.js +7 -7
- package/dist/components/nav-item/nav-item.js +8 -8
- package/dist/components/optgroup/optgroup.component.js +4 -4
- package/dist/components/optgroup/optgroup.js +5 -5
- package/dist/components/option/option.component.js +12 -12
- package/dist/components/option/option.js +13 -13
- package/dist/components/popup/popup.component.js +4 -5
- package/dist/components/popup/popup.js +5 -6
- package/dist/components/popup/popup.styles.js +1 -1
- package/dist/components/prio-nav/prio-nav.component.js +16 -17
- package/dist/components/prio-nav/prio-nav.js +17 -18
- package/dist/components/progress-bar/progress-bar.component.js +3 -3
- package/dist/components/progress-bar/progress-bar.js +4 -4
- package/dist/components/progress-ring/progress-ring.component.js +3 -3
- package/dist/components/progress-ring/progress-ring.js +4 -4
- package/dist/components/radio/radio.component.d.ts +3 -1
- package/dist/components/radio/radio.component.js +11 -12
- package/dist/components/radio/radio.js +12 -13
- package/dist/components/radio/radio.styles.js +1 -1
- package/dist/components/radio-button/radio-button.component.js +7 -7
- package/dist/components/radio-button/radio-button.js +8 -8
- package/dist/components/radio-group/radio-group.component.d.ts +1 -1
- package/dist/components/radio-group/radio-group.component.js +10 -11
- package/dist/components/radio-group/radio-group.js +11 -12
- package/dist/components/radio-group/radio-group.styles.js +1 -1
- package/dist/components/range/range.component.d.ts +2 -0
- package/dist/components/range/range.component.js +13 -15
- package/dist/components/range/range.js +14 -16
- package/dist/components/range/range.styles.js +1 -1
- package/dist/components/range-tick/range-tick.component.js +3 -3
- package/dist/components/range-tick/range-tick.js +4 -4
- package/dist/components/resize-observer/resize-observer.component.js +3 -3
- package/dist/components/select/select.component.d.ts +3 -0
- package/dist/components/select/select.component.js +18 -20
- package/dist/components/select/select.js +19 -21
- package/dist/components/select/select.styles.js +2 -1
- package/dist/components/side-nav/side-nav.component.js +19 -19
- package/dist/components/side-nav/side-nav.js +20 -20
- package/dist/components/spinner/spinner.component.js +4 -4
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/switch/switch.component.d.ts +2 -0
- package/dist/components/switch/switch.component.js +9 -10
- package/dist/components/switch/switch.js +10 -11
- package/dist/components/switch/switch.styles.js +1 -1
- package/dist/components/tab/tab.component.js +13 -13
- package/dist/components/tab/tab.js +14 -14
- package/dist/components/tab-group/tab-group.component.js +14 -14
- package/dist/components/tab-group/tab-group.js +15 -15
- package/dist/components/tab-panel/tab-panel.component.js +3 -3
- package/dist/components/tab-panel/tab-panel.js +4 -4
- package/dist/components/tag/tag.component.js +13 -13
- package/dist/components/tag/tag.js +14 -14
- package/dist/components/textarea/textarea.component.js +9 -10
- package/dist/components/textarea/textarea.js +10 -11
- package/dist/components/textarea/textarea.styles.js +1 -1
- package/dist/components/tooltip/tooltip.component.d.ts +6 -0
- package/dist/components/tooltip/tooltip.component.js +7 -9
- package/dist/components/tooltip/tooltip.js +8 -10
- 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 +20 -17
- package/dist/components/validate/validate.js +21 -18
- package/dist/custom-elements.json +234 -19
- package/dist/styles/index.css +8 -10
- package/dist/styles/utility.css +6 -11
- package/dist/synergy.js +177 -187
- package/dist/utilities/defaultSettings/decorator.js +3 -3
- package/dist/utilities/defaultSettings/functions.js +2 -2
- package/dist/utilities/defaultSettings/index.js +3 -3
- package/dist/vscode.html-custom-data.json +42 -3
- package/package.json +3 -3
- package/dist/chunks/chunk.2BNFOMES.js.map +0 -7
- package/dist/chunks/chunk.2IL4PA6Q.js +0 -130
- package/dist/chunks/chunk.2IL4PA6Q.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.6AT5JL7A.js +0 -374
- package/dist/chunks/chunk.6AT5JL7A.js.map +0 -7
- package/dist/chunks/chunk.6USNG4EL.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.F7LCJU4M.js +0 -183
- package/dist/chunks/chunk.F7LCJU4M.js.map +0 -7
- package/dist/chunks/chunk.FIRUUZ72.js.map +0 -7
- package/dist/chunks/chunk.FXJLG622.js.map +0 -7
- package/dist/chunks/chunk.GPP4D4HH.js +0 -313
- package/dist/chunks/chunk.GPP4D4HH.js.map +0 -7
- package/dist/chunks/chunk.IZRTF5EM.js +0 -91
- package/dist/chunks/chunk.IZRTF5EM.js.map +0 -7
- package/dist/chunks/chunk.KPHDBL43.js.map +0 -7
- package/dist/chunks/chunk.LAS6ZMG3.js.map +0 -7
- package/dist/chunks/chunk.LYR5DVRN.js.map +0 -7
- package/dist/chunks/chunk.NG6MPQXW.js.map +0 -7
- package/dist/chunks/chunk.PTRCO527.js.map +0 -7
- package/dist/chunks/chunk.Q52OTVVQ.js.map +0 -7
- package/dist/chunks/chunk.REYQATVI.js.map +0 -7
- package/dist/chunks/chunk.RFZFX5DB.js.map +0 -7
- package/dist/chunks/chunk.SHIPVO7H.js +0 -53
- package/dist/chunks/chunk.SHIPVO7H.js.map +0 -7
- package/dist/chunks/chunk.SJKOVTL7.js.map +0 -7
- package/dist/chunks/chunk.SLDFB2O3.js +0 -146
- package/dist/chunks/chunk.SLDFB2O3.js.map +0 -7
- package/dist/chunks/chunk.T5IJK23O.js.map +0 -7
- package/dist/chunks/chunk.TSWB7UFK.js.map +0 -7
- package/dist/chunks/chunk.UDN55TWV.js.map +0 -7
- package/dist/chunks/chunk.UHLDAGGC.js.map +0 -7
- package/dist/chunks/chunk.V4C7IECK.js.map +0 -7
- package/dist/chunks/chunk.X323W6VB.js +0 -174
- package/dist/chunks/chunk.X323W6VB.js.map +0 -7
- package/dist/chunks/chunk.XEWNW7X7.js.map +0 -7
- package/dist/chunks/chunk.XSGOTME6.js.map +0 -7
- package/dist/chunks/chunk.YITQ6NLI.js +0 -121
- package/dist/chunks/chunk.YITQ6NLI.js.map +0 -7
- package/dist/chunks/chunk.YOFWLXEH.js.map +0 -7
- package/dist/chunks/chunk.YOJL35VB.js +0 -91
- package/dist/chunks/chunk.YOJL35VB.js.map +0 -7
- package/dist/chunks/chunk.YPYFEST2.js +0 -41
- package/dist/chunks/chunk.YPYFEST2.js.map +0 -7
- package/dist/chunks/chunk.ZC3GXTWV.js +0 -127
- package/dist/chunks/chunk.ZC3GXTWV.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/checkbox/checkbox.custom.styles.d.ts +0 -2
- package/dist/components/checkbox/checkbox.custom.styles.js +0 -8
- package/dist/components/checkbox/checkbox.custom.styles.js.map +0 -7
- package/dist/components/combobox/combobox.custom.styles.d.ts +0 -2
- package/dist/components/combobox/combobox.custom.styles.js +0 -9
- package/dist/components/combobox/combobox.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/radio/radio.custom.styles.d.ts +0 -2
- package/dist/components/radio/radio.custom.styles.js +0 -8
- package/dist/components/radio/radio.custom.styles.js.map +0 -7
- package/dist/components/radio-group/radio-group.custom.styles.d.ts +0 -2
- package/dist/components/radio-group/radio-group.custom.styles.js +0 -8
- package/dist/components/radio-group/radio-group.custom.styles.js.map +0 -7
- package/dist/components/select/select.custom.styles.d.ts +0 -2
- package/dist/components/select/select.custom.styles.js +0 -9
- package/dist/components/select/select.custom.styles.js.map +0 -7
- package/dist/components/switch/switch.custom.styles.d.ts +0 -2
- package/dist/components/switch/switch.custom.styles.js +0 -8
- package/dist/components/switch/switch.custom.styles.js.map +0 -7
- package/dist/components/textarea/textarea.custom.styles.d.ts +0 -2
- package/dist/components/textarea/textarea.custom.styles.js +0 -8
- package/dist/components/textarea/textarea.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/styles/form-control.custom.styles.d.ts +0 -2
- /package/dist/chunks/{chunk.HYDHTZQK.js.map → chunk.2DWIAD22.js.map} +0 -0
- /package/dist/chunks/{chunk.ZJIPUBF4.js.map → chunk.34I3S3Q5.js.map} +0 -0
- /package/dist/chunks/{chunk.O2SN266T.js.map → chunk.44VIEEDD.js.map} +0 -0
- /package/dist/chunks/{chunk.YACUYJZN.js.map → chunk.4BEGBAQD.js.map} +0 -0
- /package/dist/chunks/{chunk.TBWTMCIZ.js.map → chunk.4OMS443H.js.map} +0 -0
- /package/dist/chunks/{chunk.FBCN4FKK.js.map → chunk.4Y6OKSYI.js.map} +0 -0
- /package/dist/chunks/{chunk.F3ISPVCF.js.map → chunk.5WQAKFFK.js.map} +0 -0
- /package/dist/chunks/{chunk.FXBKSVUT.js.map → chunk.5YRNPDSI.js.map} +0 -0
- /package/dist/chunks/{chunk.K6ZF6MXW.js.map → chunk.63IQVXUD.js.map} +0 -0
- /package/dist/chunks/{chunk.XRABXAPU.js.map → chunk.6EHTMWUQ.js.map} +0 -0
- /package/dist/chunks/{chunk.3BNYHBTW.js.map → chunk.6GMIINJO.js.map} +0 -0
- /package/dist/chunks/{chunk.TCIRIOFE.js.map → chunk.6VYVMXVV.js.map} +0 -0
- /package/dist/chunks/{chunk.QZ3BISVP.js.map → chunk.7GX46BNP.js.map} +0 -0
- /package/dist/chunks/{chunk.6BKPVIJB.js.map → chunk.7WQVBHRS.js.map} +0 -0
- /package/dist/chunks/{chunk.JUL2CRYY.js.map → chunk.A7YINQHA.js.map} +0 -0
- /package/dist/chunks/{chunk.D74ABFPR.js.map → chunk.AD4WKLKY.js.map} +0 -0
- /package/dist/chunks/{chunk.GIRTTUXE.js.map → chunk.B4UA7LU7.js.map} +0 -0
- /package/dist/chunks/{chunk.SQ5WOO45.js.map → chunk.BIGAPOOQ.js.map} +0 -0
- /package/dist/chunks/{chunk.I4H7DRDG.js.map → chunk.BLS5NMGM.js.map} +0 -0
- /package/dist/chunks/{chunk.7J4L4QJD.js.map → chunk.BWNWEGKQ.js.map} +0 -0
- /package/dist/chunks/{chunk.WYNTVNZN.js.map → chunk.BYGCAEBC.js.map} +0 -0
- /package/dist/chunks/{chunk.TJGW3F7V.js.map → chunk.DHCEQX56.js.map} +0 -0
- /package/dist/chunks/{chunk.A2WIAKI6.js.map → chunk.DQIPVU4J.js.map} +0 -0
- /package/dist/chunks/{chunk.BLXDFVSN.js.map → chunk.E3J4FZS3.js.map} +0 -0
- /package/dist/chunks/{chunk.OLGJ7TFN.js.map → chunk.EEVLMRYA.js.map} +0 -0
- /package/dist/chunks/{chunk.WBNYPYL7.js.map → chunk.ESXNQJQU.js.map} +0 -0
- /package/dist/chunks/{chunk.5OM5JMIS.js.map → chunk.EX2D55AB.js.map} +0 -0
- /package/dist/chunks/{chunk.IPCLZSAG.js.map → chunk.FGF4ENWR.js.map} +0 -0
- /package/dist/chunks/{chunk.RY3ZM7MQ.js.map → chunk.FQ6KKYNN.js.map} +0 -0
- /package/dist/chunks/{chunk.ENOYY3IT.js.map → chunk.GKWU7STM.js.map} +0 -0
- /package/dist/chunks/{chunk.M56PSVI2.js.map → chunk.HQQFUCQ6.js.map} +0 -0
- /package/dist/chunks/{chunk.CZ37RPEW.js.map → chunk.HXZVWZL3.js.map} +0 -0
- /package/dist/chunks/{chunk.S4VV4PW6.js.map → chunk.IPLC773L.js.map} +0 -0
- /package/dist/chunks/{chunk.SFAXS422.js.map → chunk.JXCCMLXD.js.map} +0 -0
- /package/dist/chunks/{chunk.ZZPMWJEV.js.map → chunk.K7FUMJK2.js.map} +0 -0
- /package/dist/chunks/{chunk.6AGTA23Z.js.map → chunk.KHL5C52A.js.map} +0 -0
- /package/dist/chunks/{chunk.GDUWM3IU.js.map → chunk.KOYEOD56.js.map} +0 -0
- /package/dist/chunks/{chunk.5SCUGJ6B.js.map → chunk.KXTBRSLW.js.map} +0 -0
- /package/dist/chunks/{chunk.X64WPXGV.js.map → chunk.KZJR6HZD.js.map} +0 -0
- /package/dist/chunks/{chunk.UJJS5NUR.js.map → chunk.LA2QMOXI.js.map} +0 -0
- /package/dist/chunks/{chunk.DEBFHR7L.js.map → chunk.LGSQ6DML.js.map} +0 -0
- /package/dist/chunks/{chunk.4KKHRDXV.js.map → chunk.LJYCM7V2.js.map} +0 -0
- /package/dist/chunks/{chunk.XCIMZW5A.js.map → chunk.LYQYSN3L.js.map} +0 -0
- /package/dist/chunks/{chunk.PJSYITAJ.js.map → chunk.M4LSKQMC.js.map} +0 -0
- /package/dist/chunks/{chunk.5KP4LNRA.js.map → chunk.MHSMXQPS.js.map} +0 -0
- /package/dist/chunks/{chunk.PMUJUBRK.js.map → chunk.MNS3RHQ3.js.map} +0 -0
- /package/dist/chunks/{chunk.OVW5OJ5D.js.map → chunk.MOGC7VFU.js.map} +0 -0
- /package/dist/chunks/{chunk.SK3OOBSU.js.map → chunk.N25AMXDL.js.map} +0 -0
- /package/dist/chunks/{chunk.ZWIJDTHA.js.map → chunk.NB2UOW3O.js.map} +0 -0
- /package/dist/chunks/{chunk.Q7TVQOF4.js.map → chunk.NIQMC4FW.js.map} +0 -0
- /package/dist/chunks/{chunk.LCFMN5P6.js.map → chunk.O34OXLGO.js.map} +0 -0
- /package/dist/chunks/{chunk.YAKMH4QL.js.map → chunk.OF4BZKDQ.js.map} +0 -0
- /package/dist/chunks/{chunk.RQW6TIU3.js.map → chunk.P7LAZVIX.js.map} +0 -0
- /package/dist/chunks/{chunk.WB7AZHAU.js.map → chunk.PMRBUT43.js.map} +0 -0
- /package/dist/chunks/{chunk.RE6C7TN4.js.map → chunk.POUKY545.js.map} +0 -0
- /package/dist/chunks/{chunk.KY4TLUU7.js.map → chunk.PQDMVEQ5.js.map} +0 -0
- /package/dist/chunks/{chunk.Z624JZ3J.js.map → chunk.Q2K7NQCB.js.map} +0 -0
- /package/dist/chunks/{chunk.YDGDQPP5.js.map → chunk.SEGXW66J.js.map} +0 -0
- /package/dist/chunks/{chunk.CU6PP445.js.map → chunk.SRVAU77I.js.map} +0 -0
- /package/dist/chunks/{chunk.VRADHZYJ.js.map → chunk.SSFAGBRV.js.map} +0 -0
- /package/dist/chunks/{chunk.E7XVQIGU.js.map → chunk.STXZTZMY.js.map} +0 -0
- /package/dist/chunks/{chunk.ZB5HHICG.js.map → chunk.SUFEDTS2.js.map} +0 -0
- /package/dist/chunks/{chunk.FYMB6WRK.js.map → chunk.T7XTHFR7.js.map} +0 -0
- /package/dist/chunks/{chunk.HKAVJBBB.js.map → chunk.TGTVJBXC.js.map} +0 -0
- /package/dist/chunks/{chunk.NQ4QB2MM.js.map → chunk.TSRZZOKK.js.map} +0 -0
- /package/dist/chunks/{chunk.HMHNDXAC.js.map → chunk.U6SWVYGR.js.map} +0 -0
- /package/dist/chunks/{chunk.KRFWZXI7.js.map → chunk.VLCNIRQP.js.map} +0 -0
- /package/dist/chunks/{chunk.FESJPZKL.js.map → chunk.VO4T33T2.js.map} +0 -0
- /package/dist/chunks/{chunk.CKCAQK4L.js.map → chunk.W4UYS7NY.js.map} +0 -0
- /package/dist/chunks/{chunk.3XGSZICI.js.map → chunk.WAFGHUVD.js.map} +0 -0
- /package/dist/chunks/{chunk.XJTZAA2Z.js.map → chunk.WDW65L3W.js.map} +0 -0
- /package/dist/chunks/{chunk.CRK3CDIA.js.map → chunk.WVO75K4L.js.map} +0 -0
- /package/dist/chunks/{chunk.FAHK4E5U.js.map → chunk.XHZZLHOD.js.map} +0 -0
- /package/dist/chunks/{chunk.NK4LRKZH.js.map → chunk.XJSWRSR5.js.map} +0 -0
- /package/dist/chunks/{chunk.JRG45QJG.js.map → chunk.YFDRVJUV.js.map} +0 -0
- /package/dist/chunks/{chunk.LWPDGLHA.js.map → chunk.YFETCWLT.js.map} +0 -0
- /package/dist/chunks/{chunk.TMIMLIC2.js.map → chunk.ZBHF3VT7.js.map} +0 -0
- /package/dist/chunks/{chunk.YWLPEZQC.js.map → chunk.ZCUQMK2T.js.map} +0 -0
- /package/dist/chunks/{chunk.MCD4BAD3.js.map → chunk.ZEBIZ2UZ.js.map} +0 -0
- /package/dist/chunks/{chunk.VTL7TKW3.js.map → chunk.ZKCT75DI.js.map} +0 -0
- /package/dist/chunks/{chunk.Y5CDCBLE.js.map → chunk.ZRA73PRW.js.map} +0 -0
|
@@ -1,37 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
2
|
alertSizeForInput,
|
|
3
|
+
getActualInputElement,
|
|
3
4
|
getEventNameForElement,
|
|
4
5
|
isBlurEvent,
|
|
5
6
|
isInvalidEvent,
|
|
6
7
|
isSynergyElement,
|
|
7
8
|
normalizeEventAttribute
|
|
8
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.ZNEQLWGZ.js";
|
|
9
10
|
import {
|
|
10
11
|
validate_styles_default
|
|
11
12
|
} from "./chunk.MVM3NN6Y.js";
|
|
13
|
+
import {
|
|
14
|
+
SynTooltip
|
|
15
|
+
} from "./chunk.MTRKCZX4.js";
|
|
12
16
|
import {
|
|
13
17
|
SynAlert
|
|
14
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.N2YN3NX6.js";
|
|
19
|
+
import {
|
|
20
|
+
enableDefaultSettings
|
|
21
|
+
} from "./chunk.4BEGBAQD.js";
|
|
15
22
|
import {
|
|
16
23
|
watch
|
|
17
24
|
} from "./chunk.SMIMHADA.js";
|
|
18
|
-
import {
|
|
19
|
-
enableDefaultSettings
|
|
20
|
-
} from "./chunk.YACUYJZN.js";
|
|
21
25
|
import {
|
|
22
26
|
component_styles_default
|
|
23
|
-
} from "./chunk.
|
|
27
|
+
} from "./chunk.2NT3B5WJ.js";
|
|
24
28
|
import {
|
|
25
29
|
SynergyElement
|
|
26
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.FUWJV6FF.js";
|
|
27
31
|
import {
|
|
28
32
|
__decorateClass
|
|
29
33
|
} from "./chunk.MO2GTRUM.js";
|
|
30
34
|
|
|
31
35
|
// src/components/validate/validate.component.ts
|
|
32
36
|
import { html } from "lit";
|
|
33
|
-
import {
|
|
37
|
+
import {
|
|
38
|
+
property,
|
|
39
|
+
query,
|
|
40
|
+
queryAssignedElements,
|
|
41
|
+
state
|
|
42
|
+
} from "lit/decorators.js";
|
|
34
43
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
44
|
+
var renderDefaultSlot = () => html`
|
|
45
|
+
<slot
|
|
46
|
+
class="validate__input-wrapper"
|
|
47
|
+
part="input-wrapper"
|
|
48
|
+
></slot>
|
|
49
|
+
`;
|
|
35
50
|
var SynValidate = class extends SynergyElement {
|
|
36
51
|
constructor() {
|
|
37
52
|
super(...arguments);
|
|
@@ -40,6 +55,7 @@ var SynValidate = class extends SynergyElement {
|
|
|
40
55
|
this.eagerFirstMount = true;
|
|
41
56
|
this.isInternalTriggeredInvalid = false;
|
|
42
57
|
this.isValid = true;
|
|
58
|
+
this.hasFocus = false;
|
|
43
59
|
this.variant = "native";
|
|
44
60
|
this.hideIcon = false;
|
|
45
61
|
this.on = "";
|
|
@@ -56,6 +72,15 @@ var SynValidate = class extends SynergyElement {
|
|
|
56
72
|
this.validationMessage = "";
|
|
57
73
|
}
|
|
58
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* Handle focus/blur events for tooltip variant
|
|
77
|
+
*/
|
|
78
|
+
this.handleInputFocus = () => {
|
|
79
|
+
this.hasFocus = true;
|
|
80
|
+
};
|
|
81
|
+
this.handleInputBlur = () => {
|
|
82
|
+
this.hasFocus = false;
|
|
83
|
+
};
|
|
59
84
|
/**
|
|
60
85
|
* Triggers a validation run, showing the validation message if needed.
|
|
61
86
|
*/
|
|
@@ -177,6 +202,14 @@ var SynValidate = class extends SynergyElement {
|
|
|
177
202
|
signal: this.controller.signal
|
|
178
203
|
});
|
|
179
204
|
}
|
|
205
|
+
const focusEvent = getEventNameForElement(input, "focus");
|
|
206
|
+
const blurEvent = getEventNameForElement(input, "blur");
|
|
207
|
+
input.addEventListener(focusEvent, this.handleInputFocus, {
|
|
208
|
+
signal: this.controller.signal
|
|
209
|
+
});
|
|
210
|
+
input.addEventListener(blurEvent, this.handleInputBlur, {
|
|
211
|
+
signal: this.controller.signal
|
|
212
|
+
});
|
|
180
213
|
}
|
|
181
214
|
setValidationMessage(input) {
|
|
182
215
|
const { customValidationMessage } = this;
|
|
@@ -276,6 +309,23 @@ var SynValidate = class extends SynergyElement {
|
|
|
276
309
|
(_a = this == null ? void 0 : this.observer) == null ? void 0 : _a.disconnect();
|
|
277
310
|
(_b = this == null ? void 0 : this.sizeObserver) == null ? void 0 : _b.disconnect();
|
|
278
311
|
}
|
|
312
|
+
updated(changedProperties) {
|
|
313
|
+
super.updated(changedProperties);
|
|
314
|
+
if (this.variant !== "tooltip") {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
const tooltip = this.tooltipElement;
|
|
318
|
+
if (!tooltip) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
const shouldShowTooltip = !this.isValid && this.validationMessage && this.hasFocus;
|
|
322
|
+
if (shouldShowTooltip) {
|
|
323
|
+
tooltip.content = this.validationMessage;
|
|
324
|
+
tooltip.show();
|
|
325
|
+
} else {
|
|
326
|
+
tooltip.hide();
|
|
327
|
+
}
|
|
328
|
+
}
|
|
279
329
|
renderInlineValidation() {
|
|
280
330
|
if (this.variant !== "inline" || !this.validationMessage) {
|
|
281
331
|
return "";
|
|
@@ -294,16 +344,25 @@ var SynValidate = class extends SynergyElement {
|
|
|
294
344
|
`;
|
|
295
345
|
}
|
|
296
346
|
render() {
|
|
347
|
+
var _a;
|
|
348
|
+
const slotContent = this.variant === "tooltip" ? html`
|
|
349
|
+
<syn-tooltip
|
|
350
|
+
.anchor=${(_a = getActualInputElement(this.getInput())) != null ? _a : void 0}
|
|
351
|
+
exportparts="base:tooltip__base,base__popup:tooltip__popup,base__arrow:tooltip__arrow,body:tooltip__body"
|
|
352
|
+
.open=${this.eager ? !this.isValid && this.validationMessage.length > 0 : false}
|
|
353
|
+
part="tooltip"
|
|
354
|
+
placement="bottom"
|
|
355
|
+
trigger="manual"
|
|
356
|
+
>
|
|
357
|
+
${renderDefaultSlot()}
|
|
358
|
+
</syn-tooltip>
|
|
359
|
+
` : renderDefaultSlot();
|
|
297
360
|
return html`
|
|
298
361
|
<div
|
|
299
362
|
class="validate"
|
|
300
363
|
part="base"
|
|
301
364
|
>
|
|
302
|
-
|
|
303
|
-
class="validate__input-wrapper"
|
|
304
|
-
part="input-wrapper"
|
|
305
|
-
></slot>
|
|
306
|
-
|
|
365
|
+
${slotContent}
|
|
307
366
|
${this.renderInlineValidation()}
|
|
308
367
|
</div>
|
|
309
368
|
`;
|
|
@@ -311,11 +370,15 @@ var SynValidate = class extends SynergyElement {
|
|
|
311
370
|
};
|
|
312
371
|
SynValidate.styles = [component_styles_default, validate_styles_default];
|
|
313
372
|
SynValidate.dependencies = {
|
|
314
|
-
"syn-alert": SynAlert
|
|
373
|
+
"syn-alert": SynAlert,
|
|
374
|
+
"syn-tooltip": SynTooltip
|
|
315
375
|
};
|
|
316
376
|
__decorateClass([
|
|
317
377
|
queryAssignedElements()
|
|
318
378
|
], SynValidate.prototype, "slottedChildren", 2);
|
|
379
|
+
__decorateClass([
|
|
380
|
+
query("syn-tooltip")
|
|
381
|
+
], SynValidate.prototype, "tooltipElement", 2);
|
|
319
382
|
__decorateClass([
|
|
320
383
|
state()
|
|
321
384
|
], SynValidate.prototype, "validationMessage", 2);
|
|
@@ -331,6 +394,9 @@ __decorateClass([
|
|
|
331
394
|
__decorateClass([
|
|
332
395
|
state()
|
|
333
396
|
], SynValidate.prototype, "alertSize", 2);
|
|
397
|
+
__decorateClass([
|
|
398
|
+
state()
|
|
399
|
+
], SynValidate.prototype, "hasFocus", 2);
|
|
334
400
|
__decorateClass([
|
|
335
401
|
property({ reflect: true })
|
|
336
402
|
], SynValidate.prototype, "variant", 2);
|
|
@@ -362,4 +428,4 @@ SynValidate = __decorateClass([
|
|
|
362
428
|
export {
|
|
363
429
|
SynValidate
|
|
364
430
|
};
|
|
365
|
-
//# sourceMappingURL=chunk.
|
|
431
|
+
//# sourceMappingURL=chunk.3UJMEQUN.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/validate/validate.component.ts"],
|
|
4
|
+
"sourcesContent": ["import type { CSSResultGroup, PropertyValues } from 'lit';\nimport { html } from 'lit';\nimport {\n property,\n query,\n queryAssignedElements,\n state,\n} from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport type SynInput from '../input/input.component.js';\nimport { watch } from '../../internal/watch.js';\nimport SynAlert from '../alert/alert.component.js';\nimport SynTooltip from '../tooltip/tooltip.component.js';\nimport {\n alertSizeForInput,\n getActualInputElement,\n getEventNameForElement,\n isBlurEvent,\n isInvalidEvent,\n isSynergyElement,\n normalizeEventAttribute,\n} from './utility.js';\nimport styles from './validate.styles.js';\nimport { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';\n\n/**\n * Utility function that renders the default slot content.\n * This is needed to avoid code duplication when rendering the default slot in both the tooltip and the regular render function.\n */\nconst renderDefaultSlot = () => html`\n <slot\n class=\"validate__input-wrapper\"\n part=\"input-wrapper\"\n ></slot>\n`;\n\n/**\n * @summary Validate provides form field validation messages in a unified way.\n * It does this by using [the native browser validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and showing the validation message in a consistent, user defined way.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-validate--docs\n * @dependency syn-alert\n * @dependency syn-tooltip\n *\n * @slot - The form field that should be validated.\n * Avoid slotting in more than one element, as subsequent ones will be ignored.\n *\n * @csspart base - The component's base wrapper.\n * @csspart input-wrapper - The container that wraps the form field.\n *\n * @csspart alert - The syn-alert that is shown when the variant is set to \"inline\".\n * @csspart alert__base - The container that wraps the alert.\n * @csspart alert__message - The container that wraps the alert message.\n * @csspart alert__icon - The container that wraps the alert icon.\n *\n * @csspart tooltip - The syn-tooltip that is shown when the variant is set to \"tooltip\".\n * @csspart tooltip__base - The container that wraps the tooltip.\n * @csspart tooltip__popup - The container that wraps the tooltip popup.\n * @csspart tooltip__arrow - The container that wraps the tooltip arrow.\n * @csspart tooltip__body - The container that wraps the tooltip body.\n*/\n@enableDefaultSettings('SynValidate')\nexport default class SynValidate extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles];\n\n static dependencies = {\n 'syn-alert': SynAlert,\n 'syn-tooltip': SynTooltip,\n };\n\n controller = new AbortController();\n\n observer: MutationObserver;\n\n sizeObserver: MutationObserver;\n\n @queryAssignedElements() private slottedChildren: HTMLElement[];\n\n @query('syn-tooltip') private tooltipElement?: SynTooltip;\n\n @state() validationMessage = '';\n\n @state() eagerFirstMount = true;\n\n @state() isInternalTriggeredInvalid = false;\n\n @state() isValid = true;\n\n @state() alertSize?: SynInput['size'];\n\n @state() hasFocus = false;\n\n /**\n * The variant that should be used to show validation alerts.\n *\n * The following variants are supported:\n * - **native** (default): Uses the native browser validation, usually a browser tooltip.\n * - **tooltip**: Show the validation message as a tooltip using a `<syn-tooltip>`.\n * - **inline**: Show the validation message underneath the element, using a `<syn-alert>`\n */\n @property({ reflect: true }) variant: 'native' | 'tooltip' | 'inline' = 'native';\n\n /** Do not show the error icon when using the inline variant validation */\n @property({ attribute: 'hide-icon', reflect: true, type: Boolean }) hideIcon = false;\n\n /**\n * Defines the events that trigger the validation.\n * `invalid` will always automatically be included.\n * You may also use the `live` keyword to validate on every input change.\n * `live` will make sure to listen to the `invalid`, `input` and `blur` events.\n *\n * Please have a look at the [documentation for native form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n * and [the use of form invalid events](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event) for further information.\n *\n * @example ```html\n * <!-- Validate on invalid and change events (invalid, change) -->\n * <syn-validate on=\"invalid change\"></syn-validate>\n *\n * <!-- Validate on live events (invalid, blur, input)-->\n * <syn-validate on=\"live\"></syn-validate>\n *\n * <!-- Validate on live and custom events (invalid, blur, input, focus, change) -->\n * <syn-validate on=\"live focus change\"></syn-validate>\n * ```\n */\n @property({ reflect: true }) on: string = '';\n\n /**\n * Custom validation message to be displayed when the input is invalid.\n * Will override the default browser validation message.\n * Set to an empty string to reset the validation message.\n */\n @property({ attribute: 'custom-validation-message', type: String }) customValidationMessage = '';\n\n /**\n * Set this to true to validate the input immediately when it is rendered.\n * Best used with a `variant` of `inline`.\n * When setting eager, the input will not be focused automatically.\n *\n * When using a `variant` of `native` the browser will focus\n * the last eager field as it is using a tooltip.\n * In this case it is better to just provide one eager field.\n */\n @property({ type: Boolean }) eager = false;\n\n // Automatically refresh all event listeners when the on property changes.\n @watch('on', { waitUntilFirstUpdate: true })\n handleListenerChange() {\n this.updateEvents();\n }\n\n @watch('eager', { waitUntilFirstUpdate: false })\n async handleEagerChange() {\n if (this.eager) {\n const input = this.getInput();\n await this.updateComplete;\n input?.reportValidity();\n this.eagerFirstMount = true;\n } else {\n this.eagerFirstMount = false;\n }\n }\n\n // Synchronize the validation message on the wrapped input with the custom message\n @watch('customValidationMessage', { waitUntilFirstUpdate: true })\n handleCustomValidationMessageChange() {\n const input = this.getInput();\n if (input) {\n this.setCustomValidationMessage(input);\n this.setValidationMessage(input);\n }\n }\n\n /**\n * Returns the validity state of the input component.\n * `true` for valid and `false` for invalid.\n */\n getValidity() {\n return this.isValid;\n }\n\n /**\n * Get the input element to validate. Defined as the first slotted element\n * @returns The input element or undefined if not found\n */\n private getInput() {\n const input = this.slottedChildren[0];\n return input ? input as HTMLInputElement : undefined;\n }\n\n private setAlertSize() {\n this.alertSize = alertSizeForInput(this.getInput());\n }\n\n /**\n * Get the event names to listen for.\n * If the input is a synergy element, will use syn- prefixes.\n * @returns The event names to listen for\n */\n // eslint-disable-next-line complexity\n private getUsedEventNames() {\n const input = this.getInput();\n\n // If there is no input, skip before doing any harm\n if (!input) {\n return [];\n }\n\n // Make sure to always use an array of events\n // This is needed because on may be a special value like \"live\"\n const on = normalizeEventAttribute(this.on);\n\n // Filter makes sure to remove empty values, e.g.\n // <syn-validate on=\"\"></syn-validate>\n const [...events] = on.filter(Boolean);\n\n // Make sure to always have an invalid event\n if (!events.includes('invalid')) {\n events.push('invalid');\n }\n\n // Special handling for the live keyword:\n // live always means on input and blur\n if (events.includes('live')) {\n events.push('input');\n events.push('blur');\n }\n\n // Make sure to remove duplicated events and the live property\n // and map the events to the correct event names\n return Array.from(new Set(\n events\n .filter(e => e !== 'live')\n .map(e => getEventNameForElement(input, e)),\n ));\n }\n\n /**\n * Update the events on the input element.\n */\n private updateEvents() {\n this.controller.abort();\n this.controller = new AbortController();\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const events = this.getUsedEventNames();\n events.forEach(eventName => {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n input.addEventListener(eventName, this.validate, {\n capture: isInvalidEvent(eventName),\n signal: this.controller.signal,\n });\n });\n\n // If the change event is not included,\n // make sure to attach a custom listener that resets the validation message\n // This is needed as the custom message may be set on change\n const usedChangeEvent = getEventNameForElement(input, 'change');\n if (!events.includes(usedChangeEvent)) {\n input.addEventListener(usedChangeEvent, this.internalRevalidate, {\n signal: this.controller.signal,\n });\n }\n\n // #664: Add focus/blur listeners specifically for tooltip variant\n // This is needed because we want to show the tooltip on focus and hide it on blur, but only when using the tooltip variant.\n // Otherwise, this would interfere with the native validation tooltip, which also relies on focus and blur events.\n const focusEvent = getEventNameForElement(input, 'focus');\n const blurEvent = getEventNameForElement(input, 'blur');\n\n input.addEventListener(focusEvent, this.handleInputFocus, {\n signal: this.controller.signal,\n });\n\n input.addEventListener(blurEvent, this.handleInputBlur, {\n signal: this.controller.signal,\n });\n }\n\n private setValidationMessage(input: HTMLInputElement) {\n const { customValidationMessage } = this;\n const validationMessage = customValidationMessage || input.validationMessage;\n this.validationMessage = validationMessage;\n }\n\n /**\n * Set the custom validation message to the input. This will make sure to either:\n * - use the custom message if one is set or\n * - use the default message if the custom message is empty\n */\n private setCustomValidationMessage(input: HTMLInputElement) {\n // Set the custom validation message on the input only once, when the customValidationMessage\n // is changed. Otherwise there could be problems with `variant=\"native\"` and `on=\"live\"` or\n // `on=\"blur\"`, because the browser popup will never disappear even if clicking somewhere else.\n input.setCustomValidity(this.customValidationMessage);\n }\n\n /**\n * Set the validation message from the input element\n * @param e The event that was received\n */\n private internalRevalidate = (e: Event) => {\n const input = e.currentTarget as HTMLInputElement;\n if (input.validity?.valid) {\n this.validationMessage = '';\n }\n };\n\n /**\n * Handle focus/blur events for tooltip variant\n */\n private handleInputFocus = () => {\n this.hasFocus = true;\n };\n\n private handleInputBlur = () => {\n this.hasFocus = false;\n };\n\n /**\n * Handle the blur event during validation\n */\n // eslint-disable-next-line class-methods-use-this\n private handleFocus(input: HTMLInputElement) {\n const activeElement = document.activeElement! as HTMLInputElement;\n const activeElementIsWrapped = activeElement.closest('syn-validate');\n\n if (!activeElement.validity?.valid && activeElementIsWrapped) {\n // The active element is invalid do not scroll\n return;\n }\n\n input.scrollIntoView({ block: 'nearest' });\n input.focus();\n }\n\n /**\n * Triggers a validation run, showing the validation message if needed.\n */\n // eslint-disable-next-line complexity\n private validate = async (e: Event) => {\n // Make sure to stop the validate component from going into an endless cycle of triggering\n if (isInvalidEvent(e.type) && this.variant === 'native' && this.isInternalTriggeredInvalid === true) {\n this.isInternalTriggeredInvalid = false;\n return;\n }\n\n // Make sure to always prevent the invalid event when not using native validation\n if (isInvalidEvent(e.type) && this.variant !== 'native') {\n e.preventDefault();\n e.stopPropagation();\n }\n\n const input = e.currentTarget as HTMLInputElement;\n if (isSynergyElement(input)) {\n // When using a synergy element, we need to wait for it to be ready!\n // This is needed as the validity state of the element may not be set yet.\n await input.updateComplete;\n }\n this.isValid = input.validity?.valid;\n\n // When we are using eager, make sure to skip focus on the first mount\n if (this.eager && this.eagerFirstMount) {\n this.eagerFirstMount = false;\n this.setValidationMessage(input);\n return;\n }\n\n // If the active element that has focus is placed in a validate component,\n // make sure to not loose focus.\n if (!this.isValid && !isBlurEvent(e.type)) {\n this.handleFocus(input);\n }\n\n this.setValidationMessage(input);\n\n // Trigger reportValidity when using native validation, so the browser popup is also shown\n // for other events than `invalid`. All events except the blur event, should trigger this.\n if (!isBlurEvent(e.type) && this.variant === 'native') {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.updateComplete.then(() => {\n this.isInternalTriggeredInvalid = true;\n input.reportValidity();\n });\n }\n };\n\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n async firstUpdated(changedProperties: PropertyValues) {\n super.firstUpdated(changedProperties);\n this.updateEvents();\n\n // #713: Make sure to set the custom validation message on mount\n // When we have a custom element, we need to wait for it to be ready!\n const input = this.getInput();\n\n if (this.customValidationMessage) {\n if (isSynergyElement(input)) {\n await input.updateComplete;\n }\n input?.setCustomValidity(this.customValidationMessage);\n }\n\n // Make sure to run validation on mount if eager is set\n if (this.eager) {\n await this.updateComplete;\n this.isValid = input?.validity?.valid ?? false;\n input?.reportValidity();\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n\n // #1119: Update alert size when the input size changes\n // Note that we need to create our own observer here,\n // as the size attribute may be changed on the input element directly,\n // which would not be captured by the synergy-element observer.\n this.sizeObserver = new MutationObserver(entries => {\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n const hasSizeChanged = entries\n .filter(({ target }) => target === input)\n .every(\n entry => entry.attributeName === 'size',\n );\n\n if (hasSizeChanged) {\n this.setAlertSize();\n }\n });\n\n this.sizeObserver.observe(this, {\n attributeFilter: ['size'],\n attributes: true,\n subtree: true,\n });\n\n // #717: Make sure to remove to rerun validation when\n // disabled or readonly properties change on the input\n this.observer = new MutationObserver(entries => {\n const input = this.getInput();\n\n if (!input) {\n return;\n }\n\n // Check if the input is disabled or readonly\n const hasDisabledOrReadonly = entries\n .filter(({ target }) => target === input)\n .every(entry => {\n const target = entry.target as HTMLInputElement;\n return target.hasAttribute('disabled') || target.hasAttribute('readonly');\n });\n\n if (hasDisabledOrReadonly) {\n this.isValid = true;\n this.validationMessage = '';\n } else {\n // When using a synergy element, we need to check the validity after the element is updated,\n // as we cannot rely on the validity state of the element itself.\n // Unfortunately, this depends on used browser :(.\n const waitForPromise = isSynergyElement(input)\n ? input.updateComplete\n : Promise.resolve();\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n waitForPromise.then(() => {\n this.isValid = input?.validity?.valid ?? false;\n this.validationMessage = input?.validationMessage ?? '';\n });\n }\n });\n\n this.observer.observe(this, {\n attributeFilter: ['disabled', 'readonly'],\n attributes: true,\n subtree: true,\n });\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.controller.abort();\n this?.observer?.disconnect();\n this?.sizeObserver?.disconnect();\n }\n\n updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n\n // #664: Make sure to update the syn-tooltip if the validation state changes when using the tooltip variant\n if (this.variant !== 'tooltip') {\n return;\n }\n\n const tooltip = this.tooltipElement;\n\n if (!tooltip) {\n return;\n }\n\n // When we have a valid tooltip,\n // we need to update the content and show or hide it based on the validation state and focus state.\n // We have to do this manually, as there is a problem when updating open and content at the same time.\n // The order is critical: fill before showing, don\u00B4t update the content during hide.\n const shouldShowTooltip = !this.isValid && this.validationMessage && this.hasFocus;\n\n if (shouldShowTooltip) {\n tooltip.content = this.validationMessage;\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n tooltip.show();\n } else {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n tooltip.hide();\n }\n }\n\n private renderInlineValidation() {\n if (this.variant !== 'inline' || !this.validationMessage) {\n return '';\n }\n\n return html`\n <syn-alert\n open\n exportparts=\"base:alert__base,message:alert__message,icon:alert__icon\"\n part=\"alert\"\n size=${ifDefined(this.alertSize)}\n variant=\"danger\"\n >\n ${!this.hideIcon\n ? html`<syn-icon slot=\"icon\" name=\"status-error\" library=\"system\"></syn-icon>`\n : ''\n }\n ${this.validationMessage}\n </syn-alert>\n `;\n }\n\n render() {\n // #664: When using the tooltip variant, we need to wrap the default slot in a tooltip when the input is invalid and has a validation message.\n const slotContent = this.variant === 'tooltip'\n ? html`\n <syn-tooltip\n .anchor=${getActualInputElement(this.getInput()) as Element ?? undefined}\n exportparts=\"base:tooltip__base,base__popup:tooltip__popup,base__arrow:tooltip__arrow,body:tooltip__body\"\n .open=${this.eager ? !this.isValid && this.validationMessage.length > 0 : false}\n part=\"tooltip\"\n placement=\"bottom\"\n trigger=\"manual\"\n >\n ${renderDefaultSlot()}\n </syn-tooltip>\n ` : renderDefaultSlot();\n\n return html`\n <div\n class=\"validate\"\n part=\"base\"\n >\n ${slotContent}\n ${this.renderInlineValidation()}\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,YAAY;AACrB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAuB1B,IAAM,oBAAoB,MAAM;AA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,CAAC;AAAA,GA/DR,YA+DU;AAOuC;AAAA,EAAnE,SAAS,EAAE,WAAW,6BAA6B,MAAM,OAAO,CAAC;AAAA,GAtE/C,YAsEiD;AAWvC;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAjFR,YAiFU;AAI7B;AAAA,EADC,MAAM,MAAM,EAAE,sBAAsB,KAAK,CAAC;AAAA,GApFxB,YAqFnB;AAKM;AAAA,EADL,MAAM,SAAS,EAAE,sBAAsB,MAAM,CAAC;AAAA,GAzF5B,YA0Fb;AAaN;AAAA,EADC,MAAM,2BAA2B,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAtG7C,YAuGnB;AAvGmB,cAArB;AAAA,EADC,sBAAsB,aAAa;AAAA,GACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
// src/components/radio/radio.styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var radio_styles_default = css`
|
|
4
|
+
/* stylelint-disable no-descending-specificity */
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host(:focus-visible) {
|
|
10
|
+
outline: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.radio {
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
color: var(--syn-input-label-color);
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
font-family: var(--syn-input-font-family);
|
|
19
|
+
font-size: var(--syn-input-font-size-medium);
|
|
20
|
+
font-weight: var(--syn-input-font-weight);
|
|
21
|
+
vertical-align: middle;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.radio--small {
|
|
25
|
+
--toggle-size: var(--syn-toggle-size-small);
|
|
26
|
+
|
|
27
|
+
font-size: var(--syn-input-font-size-small);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.radio--medium {
|
|
31
|
+
--toggle-size: var(--syn-toggle-size-medium);
|
|
32
|
+
|
|
33
|
+
font-size: var(--syn-input-font-size-medium);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.radio--large {
|
|
37
|
+
--toggle-size: var(--syn-toggle-size-large);
|
|
38
|
+
|
|
39
|
+
font-size: var(--syn-input-font-size-large);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.radio__checked-icon {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
height: var(--toggle-size);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* #920: The new icons are instances in figma.
|
|
48
|
+
* The width of the system icon is 12px x 12px, so there is no inner padding.
|
|
49
|
+
* To accommodate for this, we need to set the width and height of the icon to 50% to get the same result as before.
|
|
50
|
+
*/
|
|
51
|
+
scale: 0.5;
|
|
52
|
+
width: var(--toggle-size);
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.radio__control {
|
|
57
|
+
align-items: center;
|
|
58
|
+
background-color: var(--syn-input-background-color);
|
|
59
|
+
border: solid var(--syn-input-border-width) var(--syn-input-border-color);
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
color: transparent;
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
flex: 0 0 auto;
|
|
64
|
+
height: var(--toggle-size);
|
|
65
|
+
justify-content: center;
|
|
66
|
+
position: relative;
|
|
67
|
+
transition:
|
|
68
|
+
var(--syn-transition-fast) border-color,
|
|
69
|
+
var(--syn-transition-fast) background-color,
|
|
70
|
+
var(--syn-transition-fast) color,
|
|
71
|
+
var(--syn-transition-fast) box-shadow;
|
|
72
|
+
width: var(--toggle-size);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.radio__input {
|
|
76
|
+
margin: 0;
|
|
77
|
+
opacity: 0;
|
|
78
|
+
padding: 0;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
position: absolute;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Hover */
|
|
84
|
+
.radio:not(.radio--checked):not(.radio--disabled):not(.radio--readonly):hover .radio__control {
|
|
85
|
+
border-color: var(--syn-input-border-color-hover);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Checked */
|
|
89
|
+
.radio--checked .radio__control {
|
|
90
|
+
background-color: var(--syn-interactive-emphasis-color);
|
|
91
|
+
border-color: var(--syn-interactive-emphasis-color);
|
|
92
|
+
color: var(--syn-color-neutral-0);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Checked + hover */
|
|
96
|
+
.radio.radio--checked:not(.radio--disabled):not(.radio--readonly):hover .radio__control {
|
|
97
|
+
background-color: var(--syn-interactive-emphasis-color-hover);
|
|
98
|
+
border-color: var(--syn-interactive-emphasis-color-hover);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Checked + active */
|
|
102
|
+
.radio.radio--checked:not(.radio--disabled):not(.radio--readonly):active .radio__control {
|
|
103
|
+
background-color: var(--syn-interactive-emphasis-color-active);
|
|
104
|
+
border-color: var(--syn-interactive-emphasis-color-active);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Not-Checked + active */
|
|
108
|
+
.radio:not(.radio--checked):not(.radio--disabled):not(.radio--readonly):active .radio__control {
|
|
109
|
+
border-color: var(--syn-input-border-color-active);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Checked + focus */
|
|
113
|
+
:host(:focus-visible) .radio__control {
|
|
114
|
+
outline: var(--syn-focus-ring);
|
|
115
|
+
outline-offset: var(--syn-focus-ring-width);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.radio--disabled {
|
|
119
|
+
cursor: not-allowed;
|
|
120
|
+
|
|
121
|
+
/** #429: Use token for opacity */
|
|
122
|
+
opacity: var(--syn-input-disabled-opacity);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* When the control isn't checked, hide the circle for Windows High Contrast mode a11y */
|
|
126
|
+
.radio:not(.radio--checked) svg circle {
|
|
127
|
+
opacity: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Fix#456: Multi line radio fixes */
|
|
131
|
+
.radio__label {
|
|
132
|
+
align-self: center;
|
|
133
|
+
color: var(--syn-input-label-color);
|
|
134
|
+
display: inline-block;
|
|
135
|
+
line-height: var(--toggle-size);
|
|
136
|
+
margin-inline-start: var(--syn-spacing-x-small);
|
|
137
|
+
margin-top: -1px;
|
|
138
|
+
user-select: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.radio--small .radio__label {
|
|
142
|
+
font: var(--syn-body-small-regular);
|
|
143
|
+
margin-inline-start: var(--syn-spacing-x-small);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.radio--medium .radio__label {
|
|
147
|
+
font: var(--syn-body-medium-regular);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.radio--large .radio__label {
|
|
151
|
+
font: var(--syn-body-large-regular);
|
|
152
|
+
margin-inline-start: var(--syn-spacing-x-small);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* /Fix#456 */
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* #1174: Readonly state
|
|
159
|
+
*/
|
|
160
|
+
.radio.radio--readonly {
|
|
161
|
+
cursor: default;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.radio.radio--readonly .radio__label {
|
|
165
|
+
user-select: auto;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.radio.radio--readonly .radio__control {
|
|
169
|
+
background: var(--syn-input-readonly-background-color);
|
|
170
|
+
border-color: var(--syn-input-readonly-background-color);
|
|
171
|
+
color: var(--syn-readonly-indicator-color);
|
|
172
|
+
cursor: default;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
:host(:focus) .radio--readonly .radio__control {
|
|
176
|
+
outline: var(--syn-focus-ring);
|
|
177
|
+
outline-offset: var(--syn-focus-ring-width);
|
|
178
|
+
}
|
|
179
|
+
`;
|
|
180
|
+
|
|
181
|
+
export {
|
|
182
|
+
radio_styles_default
|
|
183
|
+
};
|
|
184
|
+
//# sourceMappingURL=chunk.432DTUIX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/radio/radio.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /* stylelint-disable no-descending-specificity */\n :host {\n display: block;\n }\n\n :host(:focus-visible) {\n outline: 0;\n }\n\n .radio {\n align-items: flex-start;\n color: var(--syn-input-label-color);\n cursor: pointer;\n display: inline-flex;\n font-family: var(--syn-input-font-family);\n font-size: var(--syn-input-font-size-medium);\n font-weight: var(--syn-input-font-weight);\n vertical-align: middle;\n }\n\n .radio--small {\n --toggle-size: var(--syn-toggle-size-small);\n\n font-size: var(--syn-input-font-size-small);\n }\n\n .radio--medium {\n --toggle-size: var(--syn-toggle-size-medium);\n\n font-size: var(--syn-input-font-size-medium);\n }\n\n .radio--large {\n --toggle-size: var(--syn-toggle-size-large);\n\n font-size: var(--syn-input-font-size-large);\n }\n\n .radio__checked-icon {\n display: inline-flex;\n height: var(--toggle-size);\n\n /**\n * #920: The new icons are instances in figma.\n * The width of the system icon is 12px x 12px, so there is no inner padding.\n * To accommodate for this, we need to set the width and height of the icon to 50% to get the same result as before.\n */\n scale: 0.5;\n width: var(--toggle-size);\n\n }\n\n .radio__control {\n align-items: center;\n background-color: var(--syn-input-background-color);\n border: solid var(--syn-input-border-width) var(--syn-input-border-color);\n border-radius: 50%;\n color: transparent;\n display: inline-flex;\n flex: 0 0 auto;\n height: var(--toggle-size);\n justify-content: center;\n position: relative;\n transition:\n var(--syn-transition-fast) border-color,\n var(--syn-transition-fast) background-color,\n var(--syn-transition-fast) color,\n var(--syn-transition-fast) box-shadow;\n width: var(--toggle-size);\n }\n\n .radio__input {\n margin: 0;\n opacity: 0;\n padding: 0;\n pointer-events: none;\n position: absolute;\n }\n\n /* Hover */\n .radio:not(.radio--checked):not(.radio--disabled):not(.radio--readonly):hover .radio__control {\n border-color: var(--syn-input-border-color-hover);\n }\n\n /* Checked */\n .radio--checked .radio__control {\n background-color: var(--syn-interactive-emphasis-color);\n border-color: var(--syn-interactive-emphasis-color);\n color: var(--syn-color-neutral-0);\n }\n\n /* Checked + hover */\n .radio.radio--checked:not(.radio--disabled):not(.radio--readonly):hover .radio__control {\n background-color: var(--syn-interactive-emphasis-color-hover);\n border-color: var(--syn-interactive-emphasis-color-hover);\n }\n\n /* Checked + active */\n .radio.radio--checked:not(.radio--disabled):not(.radio--readonly):active .radio__control {\n background-color: var(--syn-interactive-emphasis-color-active);\n border-color: var(--syn-interactive-emphasis-color-active);\n }\n\n /* Not-Checked + active */\n .radio:not(.radio--checked):not(.radio--disabled):not(.radio--readonly):active .radio__control {\n border-color: var(--syn-input-border-color-active);\n }\n\n /* Checked + focus */\n :host(:focus-visible) .radio__control {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-width);\n }\n\n .radio--disabled {\n cursor: not-allowed;\n\n /** #429: Use token for opacity */\n opacity: var(--syn-input-disabled-opacity);\n }\n\n /* When the control isn't checked, hide the circle for Windows High Contrast mode a11y */\n .radio:not(.radio--checked) svg circle {\n opacity: 0;\n }\n\n /* Fix#456: Multi line radio fixes */\n .radio__label {\n align-self: center;\n color: var(--syn-input-label-color);\n display: inline-block;\n line-height: var(--toggle-size);\n margin-inline-start: var(--syn-spacing-x-small);\n margin-top: -1px;\n user-select: none;\n }\n\n .radio--small .radio__label {\n font: var(--syn-body-small-regular);\n margin-inline-start: var(--syn-spacing-x-small);\n }\n\n .radio--medium .radio__label {\n font: var(--syn-body-medium-regular);\n }\n\n .radio--large .radio__label {\n font: var(--syn-body-large-regular);\n margin-inline-start: var(--syn-spacing-x-small);\n }\n\n /* /Fix#456 */\n\n /**\n * #1174: Readonly state\n */\n .radio.radio--readonly {\n cursor: default;\n }\n\n .radio.radio--readonly .radio__label {\n user-select: auto;\n }\n\n .radio.radio--readonly .radio__control {\n background: var(--syn-input-readonly-background-color);\n border-color: var(--syn-input-readonly-background-color);\n color: var(--syn-readonly-indicator-color);\n cursor: default;\n }\n\n :host(:focus) .radio--readonly .radio__control {\n outline: var(--syn-focus-ring);\n outline-offset: var(--syn-focus-ring-width);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,uBAAQ;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;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
|
+
}
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
} from "./chunk.JDYQ7EFG.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIconButton
|
|
9
|
-
} from "./chunk.
|
|
10
|
-
import {
|
|
11
|
-
watch
|
|
12
|
-
} from "./chunk.SMIMHADA.js";
|
|
9
|
+
} from "./chunk.LGSQ6DML.js";
|
|
13
10
|
import {
|
|
14
11
|
LocalizeController
|
|
15
12
|
} from "./chunk.QLETXF4A.js";
|
|
13
|
+
import {
|
|
14
|
+
watch
|
|
15
|
+
} from "./chunk.SMIMHADA.js";
|
|
16
16
|
import {
|
|
17
17
|
component_styles_default
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.2NT3B5WJ.js";
|
|
19
19
|
import {
|
|
20
20
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.FUWJV6FF.js";
|
|
22
22
|
import {
|
|
23
23
|
__decorateClass
|
|
24
24
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -118,4 +118,4 @@ __decorateClass([
|
|
|
118
118
|
export {
|
|
119
119
|
SynTab
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk.
|
|
121
|
+
//# sourceMappingURL=chunk.44VIEEDD.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
// src/components/radio-group/radio-group.
|
|
1
|
+
// src/components/radio-group/radio-group.styles.ts
|
|
2
2
|
import { css } from "lit";
|
|
3
|
-
var
|
|
3
|
+
var radio_group_styles_default = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
:host([data-user-invalid]) {
|
|
5
9
|
--syn-input-border-color: var(--syn-input-border-color-focus-error);
|
|
6
10
|
--syn-input-border-color-hover: var(--syn-input-border-color-focus-error);
|
|
@@ -13,8 +17,33 @@ var radio_group_custom_styles_default = css`
|
|
|
13
17
|
--syn-interactive-emphasis-color-active: var(--syn-input-border-color-focus-error);
|
|
14
18
|
}
|
|
15
19
|
|
|
16
|
-
.form-control
|
|
17
|
-
|
|
20
|
+
.form-control {
|
|
21
|
+
border: none;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.form-control__label {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.radio-group--required .radio-group__label::after {
|
|
32
|
+
content: var(--syn-input-required-content);
|
|
33
|
+
margin-inline-start: var(--syn-input-required-content-offset);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.visually-hidden {
|
|
37
|
+
border: 0;
|
|
38
|
+
/* stylelint-disable-next-line property-no-deprecated */
|
|
39
|
+
clip: rect(0, 0, 0, 0);
|
|
40
|
+
height: 1px;
|
|
41
|
+
margin: -1px;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
padding: 0;
|
|
44
|
+
position: absolute;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
width: 1px;
|
|
18
47
|
}
|
|
19
48
|
|
|
20
49
|
.form-control-input {
|
|
@@ -22,9 +51,13 @@ var radio_group_custom_styles_default = css`
|
|
|
22
51
|
flex-direction: column;
|
|
23
52
|
gap: var(--syn-spacing-x-small);
|
|
24
53
|
}
|
|
54
|
+
|
|
55
|
+
.form-control--has-help-text.form-control--radio-group .form-control__help-text {
|
|
56
|
+
margin-top: var(--syn-spacing-x-small);
|
|
57
|
+
}
|
|
25
58
|
`;
|
|
26
59
|
|
|
27
60
|
export {
|
|
28
|
-
|
|
61
|
+
radio_group_styles_default
|
|
29
62
|
};
|
|
30
|
-
//# sourceMappingURL=chunk.
|
|
63
|
+
//# sourceMappingURL=chunk.45MATNO2.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/radio-group/radio-group.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n :host {\n display: block;\n }\n\n :host([data-user-invalid]) {\n --syn-input-border-color: var(--syn-input-border-color-focus-error);\n --syn-input-border-color-hover: var(--syn-input-border-color-focus-error);\n --syn-color-primary-600: var(--syn-input-border-color-focus-error);\n --syn-color-primary-900: var(--syn-color-error-900);\n --syn-color-primary-950: var(--syn-color-error-950);\n --syn-color-neutral-1000: var(--syn-input-border-color-focus-error);\n --syn-interactive-emphasis-color: var(--syn-input-border-color-focus-error);\n --syn-interactive-emphasis-color-hover: var(--syn-input-border-color-focus-error);\n --syn-interactive-emphasis-color-active: var(--syn-input-border-color-focus-error);\n }\n\n .form-control {\n border: none;\n margin: 0;\n padding: 0;\n position: relative;\n }\n\n .form-control__label {\n padding: 0;\n }\n\n .radio-group--required .radio-group__label::after {\n content: var(--syn-input-required-content);\n margin-inline-start: var(--syn-input-required-content-offset);\n }\n\n .visually-hidden {\n border: 0;\n /* stylelint-disable-next-line property-no-deprecated */\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n\n .form-control-input {\n display: flex;\n flex-direction: column;\n gap: var(--syn-spacing-x-small);\n }\n\n .form-control--has-help-text.form-control--radio-group .form-control__help-text {\n margin-top: var(--syn-spacing-x-small);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,6BAAQ;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
|
+
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addGlobalEventNotification,
|
|
3
3
|
extractDefaultSettingsForElement,
|
|
4
4
|
removeGlobalEventNotification
|
|
5
|
-
} from "./chunk.
|
|
5
|
+
} from "./chunk.FQ6KKYNN.js";
|
|
6
6
|
import {
|
|
7
7
|
__privateAdd,
|
|
8
8
|
__privateGet,
|
|
@@ -83,4 +83,4 @@ function enableDefaultSettings(name) {
|
|
|
83
83
|
export {
|
|
84
84
|
enableDefaultSettings
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk.
|
|
86
|
+
//# sourceMappingURL=chunk.4BEGBAQD.js.map
|
|
@@ -15,22 +15,22 @@ import {
|
|
|
15
15
|
} from "./chunk.RJUVM6NO.js";
|
|
16
16
|
import {
|
|
17
17
|
SynIcon
|
|
18
|
-
} from "./chunk.
|
|
19
|
-
import {
|
|
20
|
-
watch
|
|
21
|
-
} from "./chunk.SMIMHADA.js";
|
|
18
|
+
} from "./chunk.6GMIINJO.js";
|
|
22
19
|
import {
|
|
23
20
|
LocalizeController
|
|
24
21
|
} from "./chunk.QLETXF4A.js";
|
|
25
22
|
import {
|
|
26
23
|
enableDefaultSettings
|
|
27
|
-
} from "./chunk.
|
|
24
|
+
} from "./chunk.4BEGBAQD.js";
|
|
25
|
+
import {
|
|
26
|
+
watch
|
|
27
|
+
} from "./chunk.SMIMHADA.js";
|
|
28
28
|
import {
|
|
29
29
|
component_styles_default
|
|
30
|
-
} from "./chunk.
|
|
30
|
+
} from "./chunk.2NT3B5WJ.js";
|
|
31
31
|
import {
|
|
32
32
|
SynergyElement
|
|
33
|
-
} from "./chunk.
|
|
33
|
+
} from "./chunk.FUWJV6FF.js";
|
|
34
34
|
import {
|
|
35
35
|
__decorateClass
|
|
36
36
|
} from "./chunk.MO2GTRUM.js";
|
|
@@ -245,4 +245,4 @@ setDefaultAnimation("details.hide", {
|
|
|
245
245
|
export {
|
|
246
246
|
SynDetails
|
|
247
247
|
};
|
|
248
|
-
//# sourceMappingURL=chunk.
|
|
248
|
+
//# sourceMappingURL=chunk.4OMS443H.js.map
|