@synergy-design-system/components 2.20.0-settings.0 → 2.20.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/LICENSE +9 -0
- package/dist/chunks/{chunk.PLSOGFSX.js → chunk.2BXFJQKK.js} +2 -2
- package/dist/chunks/{chunk.UYGCYMDS.js → chunk.2E3ZOJRL.js} +2 -2
- package/dist/chunks/{chunk.SYWSXUHZ.js → chunk.2EOIEVIL.js} +2 -2
- package/dist/chunks/{chunk.IBQDKFYH.js → chunk.2IBYHTBO.js} +48 -43
- package/dist/chunks/chunk.2IBYHTBO.js.map +7 -0
- package/dist/chunks/{chunk.POGMEL53.js → chunk.2MDGY2UP.js} +10 -3
- package/dist/chunks/chunk.2MDGY2UP.js.map +7 -0
- package/dist/chunks/{chunk.A2JLMFJ4.js → chunk.2QBVB4AK.js} +2 -2
- package/dist/chunks/{chunk.VLE3Q74Y.js → chunk.32O62HLM.js} +2 -2
- package/dist/chunks/{chunk.YTMSHKEA.js → chunk.35G32AHP.js} +10 -10
- package/dist/chunks/{chunk.7EYHNKMM.js → chunk.422MCLO6.js} +3 -3
- package/dist/chunks/{chunk.XDM6VD32.js → chunk.4WRP75PK.js} +2 -2
- package/dist/chunks/{chunk.WMUMEYQJ.js → chunk.4YKN4LFN.js} +6 -6
- package/dist/chunks/{chunk.SXFIFBVM.js → chunk.5HYYHX6O.js} +4 -10
- package/dist/chunks/chunk.5HYYHX6O.js.map +7 -0
- package/dist/chunks/{chunk.2QFNK7XL.js → chunk.5VV5IENH.js} +2 -2
- package/dist/chunks/{chunk.JNAG6IBY.js → chunk.63VP3QC2.js} +2 -2
- package/dist/chunks/{chunk.EMU2E2VE.js → chunk.67HUHWCS.js} +3 -9
- package/dist/chunks/{chunk.EMU2E2VE.js.map → chunk.67HUHWCS.js.map} +2 -2
- package/dist/chunks/{chunk.JHPSR3AP.js → chunk.6DDMOSWQ.js} +2 -2
- package/dist/chunks/{chunk.WLHRVKAR.js → chunk.6IUDE6QS.js} +2 -2
- package/dist/chunks/{chunk.WLYLSH3H.js → chunk.6XCVIKBS.js} +2 -2
- package/dist/chunks/{chunk.XSS62TBI.js → chunk.6XXJJ2ZV.js} +2 -2
- package/dist/chunks/{chunk.P5XIUYNV.js → chunk.7FSW6QRP.js} +2 -2
- package/dist/chunks/{chunk.QMVBPAZF.js → chunk.7U5KG6IM.js} +2 -2
- package/dist/chunks/{chunk.VL74BJLP.js → chunk.7V6QWLDJ.js} +2 -2
- package/dist/chunks/{chunk.S7PAQRVY.js → chunk.7WYVXV4D.js} +7 -7
- package/dist/chunks/{chunk.IFWSRMUK.js → chunk.7Z6YNI76.js} +2 -2
- package/dist/chunks/{chunk.E72GLNXI.js → chunk.7ZICOAJW.js} +2 -2
- package/dist/chunks/{chunk.HNVPPNYZ.js → chunk.AJPSUGWO.js} +2 -2
- package/dist/chunks/{chunk.MGET4VXP.js → chunk.AYWO4ZTF.js} +2 -2
- package/dist/chunks/{chunk.BO7VIZR3.js → chunk.BAZYPBAX.js} +8 -14
- package/dist/chunks/chunk.BAZYPBAX.js.map +7 -0
- package/dist/chunks/{chunk.T53XYA43.js → chunk.BQEV2WZL.js} +2 -8
- package/dist/chunks/chunk.BQEV2WZL.js.map +7 -0
- package/dist/chunks/{chunk.53THUSDO.js → chunk.C2R6PG7G.js} +2 -2
- package/dist/chunks/{chunk.NM5EI7ZH.js → chunk.COZMPK5M.js} +2 -2
- package/dist/chunks/{chunk.UY5AOQHP.js → chunk.CT726D3H.js} +2 -2
- package/dist/chunks/{chunk.DERBT2MN.js → chunk.DGKMCOEP.js} +8 -14
- package/dist/chunks/chunk.DGKMCOEP.js.map +7 -0
- package/dist/chunks/{chunk.QWMAKCAT.js → chunk.DRS6KUJI.js} +2 -2
- package/dist/chunks/{chunk.7NZ7JAEV.js → chunk.E36EA2A5.js} +2 -2
- package/dist/chunks/{chunk.BJTRYICX.js → chunk.EIXX5VVK.js} +2 -2
- package/dist/chunks/{chunk.24DN2XDS.js → chunk.EQ2Y7FV7.js} +7 -13
- package/dist/chunks/chunk.EQ2Y7FV7.js.map +7 -0
- package/dist/chunks/{chunk.VOOMTA4X.js → chunk.FTMPDQQE.js} +2 -2
- package/dist/chunks/{chunk.Z2PVOPJK.js → chunk.FWHNNPQB.js} +3 -9
- package/dist/chunks/chunk.FWHNNPQB.js.map +7 -0
- package/dist/chunks/{chunk.7XMTQ7P7.js → chunk.GQM7WKPT.js} +3 -3
- package/dist/chunks/{chunk.NL4FKYIJ.js → chunk.HATBOXY7.js} +2 -2
- package/dist/chunks/{chunk.XMSHEZ3R.js → chunk.HC2NGMC6.js} +2 -2
- package/dist/chunks/{chunk.JBLFNOCX.js → chunk.HZZFKI43.js} +37 -35
- package/dist/chunks/chunk.HZZFKI43.js.map +7 -0
- package/dist/chunks/{chunk.SNHVIH7F.js → chunk.IC67TRRK.js} +2 -2
- package/dist/chunks/{chunk.VKRMYKYH.js → chunk.II2KA3OR.js} +10 -4
- package/dist/chunks/chunk.II2KA3OR.js.map +7 -0
- package/dist/chunks/{chunk.FAREQGAK.js → chunk.IIFZLC7B.js} +2 -2
- package/dist/chunks/{chunk.3HW4J22U.js → chunk.IKU5BGLU.js} +5 -5
- package/dist/chunks/{chunk.7Y7O45CM.js → chunk.IYU6UKJA.js} +2 -8
- package/dist/chunks/chunk.IYU6UKJA.js.map +7 -0
- package/dist/chunks/{chunk.HCMNEIRN.js → chunk.JA7VVPRB.js} +6 -6
- package/dist/chunks/{chunk.XCILIICJ.js → chunk.JC7CNIYQ.js} +8 -14
- package/dist/chunks/chunk.JC7CNIYQ.js.map +7 -0
- package/dist/chunks/{chunk.AIQ3EJZY.js → chunk.JEQA2WEB.js} +2 -8
- package/dist/chunks/chunk.JEQA2WEB.js.map +7 -0
- package/dist/chunks/{chunk.SWUXKALS.js → chunk.JETTTJ6N.js} +2 -2
- package/dist/chunks/{chunk.BWESHYBN.js → chunk.K7GZ5QMI.js} +2 -2
- package/dist/chunks/{chunk.EMGPXY5T.js → chunk.KBVDCXR5.js} +2 -2
- package/dist/chunks/{chunk.LHNUNBCA.js → chunk.KTYGJOB7.js} +2 -2
- package/dist/chunks/{chunk.Q33XUREM.js → chunk.LAM67JAY.js} +2 -2
- package/dist/chunks/{chunk.LYNLLR54.js → chunk.LCZGMJAR.js} +9 -9
- package/dist/chunks/{chunk.YQLTFWYX.js → chunk.LU2V7HEH.js} +2 -2
- package/dist/chunks/{chunk.O7JPMKUW.js → chunk.LVJHLQNE.js} +8 -14
- package/dist/chunks/chunk.LVJHLQNE.js.map +7 -0
- package/dist/chunks/{chunk.LZ27X5R6.js → chunk.LY5A7C5T.js} +2 -2
- package/dist/chunks/{chunk.TL5RQ2KH.js → chunk.NIRC7MWB.js} +2 -2
- package/dist/chunks/{chunk.24C4XJAI.js → chunk.NIS7LNOO.js} +3 -9
- package/dist/chunks/chunk.NIS7LNOO.js.map +7 -0
- package/dist/chunks/{chunk.EBYGA33B.js → chunk.NK2YET6D.js} +2 -2
- package/dist/chunks/{chunk.AQS4YK7Q.js → chunk.NT7NV7FR.js} +2 -2
- package/dist/chunks/{chunk.BPZOCAHJ.js → chunk.NY3YYGVR.js} +2 -2
- package/dist/chunks/{chunk.EVECGQOP.js → chunk.O5JCDSMK.js} +4 -10
- package/dist/chunks/chunk.O5JCDSMK.js.map +7 -0
- package/dist/chunks/{chunk.742PBV5R.js → chunk.OCQOKX2B.js} +8 -14
- package/dist/chunks/chunk.OCQOKX2B.js.map +7 -0
- package/dist/chunks/{chunk.R2HFUCJI.js → chunk.OEQ54OHW.js} +18 -24
- package/dist/chunks/chunk.OEQ54OHW.js.map +7 -0
- package/dist/chunks/{chunk.Y334QFFZ.js → chunk.OQE7E7O7.js} +7 -7
- package/dist/chunks/{chunk.AS3TB27D.js → chunk.PAVNUMET.js} +7 -7
- package/dist/chunks/{chunk.PDAOZ7HN.js → chunk.PDBM2LXE.js} +2 -2
- package/dist/chunks/{chunk.NN73HBIU.js → chunk.PGIUXB4S.js} +6 -6
- package/dist/chunks/{chunk.NN73HBIU.js.map → chunk.PGIUXB4S.js.map} +2 -2
- package/dist/chunks/{chunk.ST3V3ZVP.js → chunk.PRHLRJO4.js} +2 -2
- package/dist/chunks/{chunk.HPQBH3O2.js → chunk.QX2UR7HH.js} +2 -2
- package/dist/chunks/{chunk.TXQLKFUU.js → chunk.RDUBSHZP.js} +3 -9
- package/dist/chunks/chunk.RDUBSHZP.js.map +7 -0
- package/dist/chunks/{chunk.J53UXHXV.js → chunk.RP4GNFAE.js} +2 -2
- package/dist/chunks/{chunk.ZDIDYG6H.js → chunk.SLXWCODG.js} +2 -2
- package/dist/chunks/{chunk.4ZPJSGD5.js → chunk.SSLNSSM4.js} +2 -2
- package/dist/chunks/{chunk.UXHC3W5U.js → chunk.TKNTSPTY.js} +6 -6
- package/dist/chunks/{chunk.XP47Y2SU.js → chunk.U5TBC2KB.js} +2 -2
- package/dist/chunks/{chunk.5EGFFSLN.js → chunk.UBS3CSG4.js} +2 -2
- package/dist/chunks/{chunk.5EGFFSLN.js.map → chunk.UBS3CSG4.js.map} +1 -1
- package/dist/chunks/{chunk.HZ3S4J3T.js → chunk.UWAFXL5K.js} +2 -2
- package/dist/chunks/{chunk.NUCBTPTS.js → chunk.V66XL2Y2.js} +8 -14
- package/dist/chunks/chunk.V66XL2Y2.js.map +7 -0
- package/dist/chunks/{chunk.MKQXTHWU.js → chunk.VCAVMNGP.js} +2 -2
- package/dist/chunks/{chunk.MKQXTHWU.js.map → chunk.VCAVMNGP.js.map} +1 -1
- package/dist/chunks/{chunk.LYMHXGME.js → chunk.W7YYZVAU.js} +2 -2
- package/dist/chunks/{chunk.BA7XLIED.js → chunk.WJUCYEMY.js} +3 -9
- package/dist/chunks/{chunk.BA7XLIED.js.map → chunk.WJUCYEMY.js.map} +2 -2
- package/dist/chunks/{chunk.XY3WHMD7.js → chunk.WRFFXTJZ.js} +2 -2
- package/dist/chunks/{chunk.B2WOBIWW.js → chunk.WS42S4IF.js} +2 -2
- package/dist/chunks/{chunk.7LASULTQ.js → chunk.X3BO2BOQ.js} +2 -2
- package/dist/chunks/{chunk.SKA5Y7HA.js → chunk.XU3L4ULT.js} +3 -3
- package/dist/chunks/{chunk.OFA3YJLS.js → chunk.XXSXKUD3.js} +2 -2
- package/dist/chunks/{chunk.N54SVWTA.js → chunk.XYTIQJOT.js} +2 -2
- package/dist/chunks/{chunk.DYUCTKM6.js → chunk.XZ2OTPUE.js} +2 -2
- package/dist/chunks/{chunk.FLB37Q2Y.js → chunk.Y2PPRV2Z.js} +6 -6
- package/dist/chunks/{chunk.Z4OFLKEQ.js → chunk.YJZO356D.js} +2 -2
- package/dist/chunks/{chunk.Y4EGILWE.js → chunk.YNHBOYDI.js} +2 -2
- package/dist/chunks/{chunk.4AKA2QRO.js → chunk.YTI4FD6I.js} +2 -2
- package/dist/chunks/{chunk.7467Z6PG.js → chunk.Z2DBY4DB.js} +2 -2
- package/dist/chunks/{chunk.MDG7KZFO.js → chunk.Z4AAMNVO.js} +2 -2
- package/dist/components/accordion/accordion.component.js +3 -6
- package/dist/components/accordion/accordion.js +4 -7
- package/dist/components/alert/alert.component.d.ts +2 -0
- package/dist/components/alert/alert.component.js +9 -12
- package/dist/components/alert/alert.js +10 -13
- package/dist/components/badge/badge.component.js +4 -7
- package/dist/components/badge/badge.js +5 -8
- package/dist/components/breadcrumb/breadcrumb.component.js +7 -7
- package/dist/components/breadcrumb/breadcrumb.js +8 -8
- package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
- package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
- package/dist/components/button/button.component.js +8 -11
- package/dist/components/button/button.custom.styles.js +1 -1
- package/dist/components/button/button.js +9 -12
- package/dist/components/button-group/button-group.component.js +2 -2
- package/dist/components/button-group/button-group.js +3 -3
- package/dist/components/card/card.component.js +2 -2
- package/dist/components/card/card.js +3 -3
- package/dist/components/checkbox/checkbox.component.js +5 -8
- package/dist/components/checkbox/checkbox.js +6 -9
- package/dist/components/combobox/combobox.component.js +10 -13
- package/dist/components/combobox/combobox.js +11 -14
- package/dist/components/details/details.component.js +6 -9
- package/dist/components/details/details.js +7 -10
- package/dist/components/dialog/dialog.component.js +10 -13
- package/dist/components/dialog/dialog.js +11 -14
- package/dist/components/divider/divider.component.js +2 -2
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.component.js +9 -12
- package/dist/components/drawer/drawer.js +10 -13
- package/dist/components/dropdown/dropdown.component.js +5 -5
- package/dist/components/dropdown/dropdown.js +6 -6
- package/dist/components/file/file.component.js +9 -12
- package/dist/components/file/file.js +10 -13
- package/dist/components/header/header.component.js +7 -7
- package/dist/components/header/header.js +8 -8
- package/dist/components/icon/icon.component.js +2 -2
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon-button/icon-button.component.js +3 -6
- package/dist/components/icon-button/icon-button.js +4 -7
- package/dist/components/input/input.component.js +8 -11
- package/dist/components/input/input.custom.styles.js +1 -1
- package/dist/components/input/input.js +9 -12
- package/dist/components/menu/menu.component.js +2 -2
- package/dist/components/menu/menu.js +3 -3
- package/dist/components/menu-item/menu-item.component.js +8 -8
- package/dist/components/menu-item/menu-item.js +9 -9
- package/dist/components/menu-label/menu-label.component.js +3 -3
- package/dist/components/menu-label/menu-label.js +4 -4
- package/dist/components/nav-item/nav-item.component.js +3 -3
- package/dist/components/nav-item/nav-item.js +4 -4
- package/dist/components/optgroup/optgroup.component.js +3 -3
- package/dist/components/optgroup/optgroup.js +4 -4
- package/dist/components/option/option.component.js +5 -5
- package/dist/components/option/option.js +6 -6
- package/dist/components/popup/popup.component.js +2 -2
- package/dist/components/popup/popup.js +3 -3
- package/dist/components/prio-nav/prio-nav.component.js +12 -12
- package/dist/components/prio-nav/prio-nav.js +13 -13
- package/dist/components/progress-bar/progress-bar.component.js +2 -2
- package/dist/components/progress-bar/progress-bar.js +3 -3
- package/dist/components/progress-ring/progress-ring.component.js +2 -2
- package/dist/components/progress-ring/progress-ring.js +3 -3
- package/dist/components/radio/radio.component.js +3 -6
- package/dist/components/radio/radio.js +4 -7
- package/dist/components/radio-button/radio-button.component.js +2 -5
- package/dist/components/radio-button/radio-button.js +3 -6
- package/dist/components/radio-group/radio-group.component.js +3 -6
- package/dist/components/radio-group/radio-group.js +4 -7
- package/dist/components/range/range.component.js +5 -8
- package/dist/components/range/range.js +6 -9
- package/dist/components/range-tick/range-tick.component.js +2 -2
- package/dist/components/range-tick/range-tick.js +3 -3
- package/dist/components/resize-observer/resize-observer.component.js +2 -2
- package/dist/components/select/select.component.js +9 -12
- package/dist/components/select/select.js +10 -13
- package/dist/components/side-nav/side-nav.component.js +11 -14
- package/dist/components/side-nav/side-nav.js +12 -15
- package/dist/components/spinner/spinner.component.js +2 -2
- package/dist/components/spinner/spinner.js +3 -3
- package/dist/components/switch/switch.component.js +2 -5
- package/dist/components/switch/switch.js +3 -6
- package/dist/components/tab/tab.component.js +6 -9
- package/dist/components/tab/tab.js +7 -10
- package/dist/components/tab-group/tab-group.component.js +7 -10
- package/dist/components/tab-group/tab-group.js +8 -11
- package/dist/components/tab-panel/tab-panel.component.js +2 -2
- package/dist/components/tab-panel/tab-panel.js +3 -3
- package/dist/components/tag/tag.component.js +6 -9
- package/dist/components/tag/tag.js +7 -10
- package/dist/components/textarea/textarea.component.js +2 -5
- package/dist/components/textarea/textarea.js +3 -6
- package/dist/components/tooltip/tooltip.component.js +4 -4
- package/dist/components/tooltip/tooltip.js +5 -5
- package/dist/components/validate/utility.js +2 -2
- package/dist/components/validate/validate.component.js +11 -14
- package/dist/components/validate/validate.js +12 -15
- package/dist/custom-elements.json +249 -233
- package/dist/events/events.d.ts +0 -1
- package/dist/styles/index.css +1 -1
- package/dist/synergy.d.ts +0 -1
- package/dist/synergy.js +129 -145
- package/dist/vscode.html-custom-data.json +49 -49
- package/package.json +37 -38
- package/dist/chunks/chunk.24C4XJAI.js.map +0 -7
- package/dist/chunks/chunk.24DN2XDS.js.map +0 -7
- package/dist/chunks/chunk.742PBV5R.js.map +0 -7
- package/dist/chunks/chunk.7Y7O45CM.js.map +0 -7
- package/dist/chunks/chunk.AIQ3EJZY.js.map +0 -7
- package/dist/chunks/chunk.BO7VIZR3.js.map +0 -7
- package/dist/chunks/chunk.DERBT2MN.js.map +0 -7
- package/dist/chunks/chunk.EVECGQOP.js.map +0 -7
- package/dist/chunks/chunk.IBQDKFYH.js.map +0 -7
- package/dist/chunks/chunk.JBLFNOCX.js.map +0 -7
- package/dist/chunks/chunk.JSEL4YPW.js +0 -147
- package/dist/chunks/chunk.JSEL4YPW.js.map +0 -7
- package/dist/chunks/chunk.NUCBTPTS.js.map +0 -7
- package/dist/chunks/chunk.O7JPMKUW.js.map +0 -7
- package/dist/chunks/chunk.OLCT57R5.js +0 -69
- package/dist/chunks/chunk.OLCT57R5.js.map +0 -7
- package/dist/chunks/chunk.POGMEL53.js.map +0 -7
- package/dist/chunks/chunk.R2HFUCJI.js.map +0 -7
- package/dist/chunks/chunk.RSCUHBW3.js +0 -1
- package/dist/chunks/chunk.RSCUHBW3.js.map +0 -7
- package/dist/chunks/chunk.SXFIFBVM.js.map +0 -7
- package/dist/chunks/chunk.T53XYA43.js.map +0 -7
- package/dist/chunks/chunk.TXQLKFUU.js.map +0 -7
- package/dist/chunks/chunk.UPDPVGHT.js +0 -59
- package/dist/chunks/chunk.UPDPVGHT.js.map +0 -7
- package/dist/chunks/chunk.VKRMYKYH.js.map +0 -7
- package/dist/chunks/chunk.XCILIICJ.js.map +0 -7
- package/dist/chunks/chunk.Z2PVOPJK.js.map +0 -7
- package/dist/events/syn-default-settings-changed.d.ts +0 -16
- package/dist/utilities/defaultSettings/base.d.ts +0 -87
- package/dist/utilities/defaultSettings/base.js +0 -10
- package/dist/utilities/defaultSettings/base.js.map +0 -7
- package/dist/utilities/defaultSettings/decorator.d.ts +0 -12
- package/dist/utilities/defaultSettings/decorator.js +0 -10
- package/dist/utilities/defaultSettings/decorator.js.map +0 -7
- package/dist/utilities/defaultSettings/functions.d.ts +0 -41
- package/dist/utilities/defaultSettings/functions.js +0 -21
- package/dist/utilities/defaultSettings/functions.js.map +0 -7
- package/dist/utilities/defaultSettings/index.d.ts +0 -3
- package/dist/utilities/defaultSettings/index.js +0 -20
- package/dist/utilities/defaultSettings/index.js.map +0 -7
- /package/dist/chunks/{chunk.PLSOGFSX.js.map → chunk.2BXFJQKK.js.map} +0 -0
- /package/dist/chunks/{chunk.UYGCYMDS.js.map → chunk.2E3ZOJRL.js.map} +0 -0
- /package/dist/chunks/{chunk.SYWSXUHZ.js.map → chunk.2EOIEVIL.js.map} +0 -0
- /package/dist/chunks/{chunk.A2JLMFJ4.js.map → chunk.2QBVB4AK.js.map} +0 -0
- /package/dist/chunks/{chunk.VLE3Q74Y.js.map → chunk.32O62HLM.js.map} +0 -0
- /package/dist/chunks/{chunk.YTMSHKEA.js.map → chunk.35G32AHP.js.map} +0 -0
- /package/dist/chunks/{chunk.7EYHNKMM.js.map → chunk.422MCLO6.js.map} +0 -0
- /package/dist/chunks/{chunk.XDM6VD32.js.map → chunk.4WRP75PK.js.map} +0 -0
- /package/dist/chunks/{chunk.WMUMEYQJ.js.map → chunk.4YKN4LFN.js.map} +0 -0
- /package/dist/chunks/{chunk.2QFNK7XL.js.map → chunk.5VV5IENH.js.map} +0 -0
- /package/dist/chunks/{chunk.JNAG6IBY.js.map → chunk.63VP3QC2.js.map} +0 -0
- /package/dist/chunks/{chunk.JHPSR3AP.js.map → chunk.6DDMOSWQ.js.map} +0 -0
- /package/dist/chunks/{chunk.WLHRVKAR.js.map → chunk.6IUDE6QS.js.map} +0 -0
- /package/dist/chunks/{chunk.WLYLSH3H.js.map → chunk.6XCVIKBS.js.map} +0 -0
- /package/dist/chunks/{chunk.XSS62TBI.js.map → chunk.6XXJJ2ZV.js.map} +0 -0
- /package/dist/chunks/{chunk.P5XIUYNV.js.map → chunk.7FSW6QRP.js.map} +0 -0
- /package/dist/chunks/{chunk.QMVBPAZF.js.map → chunk.7U5KG6IM.js.map} +0 -0
- /package/dist/chunks/{chunk.VL74BJLP.js.map → chunk.7V6QWLDJ.js.map} +0 -0
- /package/dist/chunks/{chunk.S7PAQRVY.js.map → chunk.7WYVXV4D.js.map} +0 -0
- /package/dist/chunks/{chunk.IFWSRMUK.js.map → chunk.7Z6YNI76.js.map} +0 -0
- /package/dist/chunks/{chunk.E72GLNXI.js.map → chunk.7ZICOAJW.js.map} +0 -0
- /package/dist/chunks/{chunk.HNVPPNYZ.js.map → chunk.AJPSUGWO.js.map} +0 -0
- /package/dist/chunks/{chunk.MGET4VXP.js.map → chunk.AYWO4ZTF.js.map} +0 -0
- /package/dist/chunks/{chunk.53THUSDO.js.map → chunk.C2R6PG7G.js.map} +0 -0
- /package/dist/chunks/{chunk.NM5EI7ZH.js.map → chunk.COZMPK5M.js.map} +0 -0
- /package/dist/chunks/{chunk.UY5AOQHP.js.map → chunk.CT726D3H.js.map} +0 -0
- /package/dist/chunks/{chunk.QWMAKCAT.js.map → chunk.DRS6KUJI.js.map} +0 -0
- /package/dist/chunks/{chunk.7NZ7JAEV.js.map → chunk.E36EA2A5.js.map} +0 -0
- /package/dist/chunks/{chunk.BJTRYICX.js.map → chunk.EIXX5VVK.js.map} +0 -0
- /package/dist/chunks/{chunk.VOOMTA4X.js.map → chunk.FTMPDQQE.js.map} +0 -0
- /package/dist/chunks/{chunk.7XMTQ7P7.js.map → chunk.GQM7WKPT.js.map} +0 -0
- /package/dist/chunks/{chunk.NL4FKYIJ.js.map → chunk.HATBOXY7.js.map} +0 -0
- /package/dist/chunks/{chunk.XMSHEZ3R.js.map → chunk.HC2NGMC6.js.map} +0 -0
- /package/dist/chunks/{chunk.SNHVIH7F.js.map → chunk.IC67TRRK.js.map} +0 -0
- /package/dist/chunks/{chunk.FAREQGAK.js.map → chunk.IIFZLC7B.js.map} +0 -0
- /package/dist/chunks/{chunk.3HW4J22U.js.map → chunk.IKU5BGLU.js.map} +0 -0
- /package/dist/chunks/{chunk.HCMNEIRN.js.map → chunk.JA7VVPRB.js.map} +0 -0
- /package/dist/chunks/{chunk.SWUXKALS.js.map → chunk.JETTTJ6N.js.map} +0 -0
- /package/dist/chunks/{chunk.BWESHYBN.js.map → chunk.K7GZ5QMI.js.map} +0 -0
- /package/dist/chunks/{chunk.EMGPXY5T.js.map → chunk.KBVDCXR5.js.map} +0 -0
- /package/dist/chunks/{chunk.LHNUNBCA.js.map → chunk.KTYGJOB7.js.map} +0 -0
- /package/dist/chunks/{chunk.Q33XUREM.js.map → chunk.LAM67JAY.js.map} +0 -0
- /package/dist/chunks/{chunk.LYNLLR54.js.map → chunk.LCZGMJAR.js.map} +0 -0
- /package/dist/chunks/{chunk.YQLTFWYX.js.map → chunk.LU2V7HEH.js.map} +0 -0
- /package/dist/chunks/{chunk.LZ27X5R6.js.map → chunk.LY5A7C5T.js.map} +0 -0
- /package/dist/chunks/{chunk.TL5RQ2KH.js.map → chunk.NIRC7MWB.js.map} +0 -0
- /package/dist/chunks/{chunk.EBYGA33B.js.map → chunk.NK2YET6D.js.map} +0 -0
- /package/dist/chunks/{chunk.AQS4YK7Q.js.map → chunk.NT7NV7FR.js.map} +0 -0
- /package/dist/chunks/{chunk.BPZOCAHJ.js.map → chunk.NY3YYGVR.js.map} +0 -0
- /package/dist/chunks/{chunk.Y334QFFZ.js.map → chunk.OQE7E7O7.js.map} +0 -0
- /package/dist/chunks/{chunk.AS3TB27D.js.map → chunk.PAVNUMET.js.map} +0 -0
- /package/dist/chunks/{chunk.PDAOZ7HN.js.map → chunk.PDBM2LXE.js.map} +0 -0
- /package/dist/chunks/{chunk.ST3V3ZVP.js.map → chunk.PRHLRJO4.js.map} +0 -0
- /package/dist/chunks/{chunk.HPQBH3O2.js.map → chunk.QX2UR7HH.js.map} +0 -0
- /package/dist/chunks/{chunk.J53UXHXV.js.map → chunk.RP4GNFAE.js.map} +0 -0
- /package/dist/chunks/{chunk.ZDIDYG6H.js.map → chunk.SLXWCODG.js.map} +0 -0
- /package/dist/chunks/{chunk.4ZPJSGD5.js.map → chunk.SSLNSSM4.js.map} +0 -0
- /package/dist/chunks/{chunk.UXHC3W5U.js.map → chunk.TKNTSPTY.js.map} +0 -0
- /package/dist/chunks/{chunk.XP47Y2SU.js.map → chunk.U5TBC2KB.js.map} +0 -0
- /package/dist/chunks/{chunk.HZ3S4J3T.js.map → chunk.UWAFXL5K.js.map} +0 -0
- /package/dist/chunks/{chunk.LYMHXGME.js.map → chunk.W7YYZVAU.js.map} +0 -0
- /package/dist/chunks/{chunk.XY3WHMD7.js.map → chunk.WRFFXTJZ.js.map} +0 -0
- /package/dist/chunks/{chunk.B2WOBIWW.js.map → chunk.WS42S4IF.js.map} +0 -0
- /package/dist/chunks/{chunk.7LASULTQ.js.map → chunk.X3BO2BOQ.js.map} +0 -0
- /package/dist/chunks/{chunk.SKA5Y7HA.js.map → chunk.XU3L4ULT.js.map} +0 -0
- /package/dist/chunks/{chunk.OFA3YJLS.js.map → chunk.XXSXKUD3.js.map} +0 -0
- /package/dist/chunks/{chunk.N54SVWTA.js.map → chunk.XYTIQJOT.js.map} +0 -0
- /package/dist/chunks/{chunk.DYUCTKM6.js.map → chunk.XZ2OTPUE.js.map} +0 -0
- /package/dist/chunks/{chunk.FLB37Q2Y.js.map → chunk.Y2PPRV2Z.js.map} +0 -0
- /package/dist/chunks/{chunk.Z4OFLKEQ.js.map → chunk.YJZO356D.js.map} +0 -0
- /package/dist/chunks/{chunk.Y4EGILWE.js.map → chunk.YNHBOYDI.js.map} +0 -0
- /package/dist/chunks/{chunk.4AKA2QRO.js.map → chunk.YTI4FD6I.js.map} +0 -0
- /package/dist/chunks/{chunk.7467Z6PG.js.map → chunk.Z2DBY4DB.js.map} +0 -0
- /package/dist/chunks/{chunk.MDG7KZFO.js.map → chunk.Z4AAMNVO.js.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/checkbox/checkbox.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 { defaultValue } from '../../internal/default-value.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.js';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { property, query, state } from 'lit/decorators.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 styles from './checkbox.styles.js';\nimport customStyles from './checkbox.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\n\n/**\n * @summary Checkboxes allow the user to toggle an option on or off.\n * @documentation https://synergy.style/components/checkbox\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The checkbox's label.\n * @slot help-text - Text that describes how to use the checkbox. Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-blur - Emitted when the checkbox loses focus.\n * @event syn-change - Emitted when the checked state changes.\n * @event syn-focus - Emitted when the checkbox gains focus.\n * @event syn-input - Emitted when the checkbox receives input.\n * @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The square container that wraps the checkbox's checked state.\n * @csspart control--checked - Matches the control part when the checkbox is checked.\n * @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart indeterminate-icon - The indeterminate icon, an `<syn-icon>` element.\n * @csspart label - The container that wraps the checkbox's label.\n * @csspart form-control-help-text - The help text's wrapper.\n */\nexport default class SynCheckbox extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [componentStyles, formControlStyles, styles, formControlCustomStyles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n private readonly formControlController = new FormControlController(this, {\n value: (control: SynCheckbox) => (control.checked ? control.value || 'on' : undefined),\n defaultValue: (control: SynCheckbox) => control.defaultChecked,\n setValue: (control: SynCheckbox, checked: boolean) => (control.checked = checked)\n });\n private readonly hasSlotController = new HasSlotController(this, 'help-text');\n\n @query('input[type=\"checkbox\"]') input: HTMLInputElement;\n\n @state() private hasFocus = false;\n\n @property() title = ''; // make reactive to pass through\n\n /** The name of the checkbox, submitted as a name/value pair with form data. */\n @property() name = '';\n\n /** The current value of the checkbox, submitted as a name/value pair with form data. */\n @property() value: string;\n\n /** The checkbox's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the checkbox. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Draws the checkbox in a checked state. */\n @property({ type: Boolean, reflect: true }) checked = false;\n\n /**\n * Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\n * all/none\" behavior when associated checkboxes have a mix of checked and unchecked states.\n */\n @property({ type: Boolean, reflect: true }) indeterminate = false;\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue('checked') defaultChecked = false;\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 /** Makes the checkbox a required field. */\n @property({ type: Boolean, reflect: true }) required = false;\n\n /** The checkbox's help text. If you need to display HTML, use the `help-text` slot instead. */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n firstUpdated() {\n this.formControlController.updateValidity();\n }\n\n private handleClick() {\n this.checked = !this.checked;\n this.indeterminate = false;\n this.emit('syn-change');\n }\n\n private handleBlur() {\n this.hasFocus = false;\n this.emit('syn-blur');\n }\n\n private handleInput() {\n this.emit('syn-input');\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleFocus() {\n this.hasFocus = true;\n this.emit('syn-focus');\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch(['checked', 'indeterminate'], { waitUntilFirstUpdate: true })\n handleStateChange() {\n this.input.checked = this.checked; // force a sync update\n this.input.indeterminate = this.indeterminate; // force a sync update\n this.formControlController.updateValidity();\n }\n\n /** Simulates a click on the checkbox. */\n click() {\n this.input.click();\n }\n\n /** Sets focus on the checkbox. */\n focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n blur() {\n this.input.blur();\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.input.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.input.reportValidity();\n }\n\n /**\n * Sets a custom validation message. The value provided will be shown to the user when the form is submitted. To clear\n * the custom validation message, call this method with an empty string.\n */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n render() {\n const hasHelpTextSlot = this.hasSlotController.test('help-text');\n const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;\n\n //\n // NOTE: we use a <div> around the label slot because of this Chrome bug.\n //\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1413733\n //\n return html`\n <div\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-help-text': hasHelpText\n })}\n >\n <label\n part=\"base\"\n class=${classMap({\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--indeterminate': this.indeterminate,\n 'checkbox--small': this.size === 'small',\n 'checkbox--medium': this.size === 'medium',\n 'checkbox--large': this.size === 'large'\n })}\n >\n <input\n class=\"checkbox__input\"\n type=\"checkbox\"\n title=${this.title /* An empty title prevents browser validation tooltips from appearing on hover */}\n name=${this.name}\n value=${ifDefined(this.value)}\n .indeterminate=${live(this.indeterminate)}\n .checked=${live(this.checked)}\n .disabled=${this.disabled}\n .required=${this.required}\n aria-checked=${this.checked ? 'true' : 'false'}\n aria-describedby=\"help-text\"\n @click=${this.handleClick}\n @input=${this.handleInput}\n @invalid=${this.handleInvalid}\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n />\n\n <span\n part=\"control${this.checked ? ' control--checked' : ''}${this.indeterminate\n ? ' control--indeterminate'\n : ''}\"\n class=\"checkbox__control\"\n >\n ${this.checked\n ? html`\n <syn-icon part=\"checked-icon\" class=\"checkbox__checked-icon\" library=\"system\" name=\"check\"></syn-icon>\n `\n : ''}\n ${!this.checked && this.indeterminate\n ? html`\n <syn-icon\n part=\"indeterminate-icon\"\n class=\"checkbox__indeterminate-icon\"\n library=\"system\"\n name=\"indeterminate\"\n ></syn-icon>\n `\n : ''}\n </span>\n\n <div part=\"label\" class=\"checkbox__label\">\n <slot></slot>\n </div>\n </label>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n </div>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AAIzB,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,S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AA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA3BvB,YA2ByB;AAGA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GA9BvB,YA8ByB;AAMA;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GApCvB,YAoCyB;AAGnB;AAAA,EAAxB,aAAa,SAAS;AAAA,GAvCJ,YAuCM;AAOI;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GA9CR,YA8CU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAjDvB,YAiDyB;AAGN;AAAA,EAArC,SAAS,EAAE,WAAW,YAAY,CAAC;AAAA,GApDjB,YAoDmB;AA0CtC;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA7F9B,YA8FnB;AAMA;AAAA,EADC,MAAM,CAAC,WAAW,eAAe,GAAG,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAnGhD,YAoGnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.VCAVMNGP.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -120,4 +120,4 @@ __decorateClass([
|
|
|
120
120
|
export {
|
|
121
121
|
SynBreadcrumbItem
|
|
122
122
|
};
|
|
123
|
-
//# sourceMappingURL=chunk.
|
|
123
|
+
//# sourceMappingURL=chunk.DRS6KUJI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OCQOKX2B.js";
|
|
4
4
|
|
|
5
5
|
// src/components/button/button.ts
|
|
6
6
|
var button_default = SynButton;
|
|
@@ -9,4 +9,4 @@ SynButton.define("syn-button");
|
|
|
9
9
|
export {
|
|
10
10
|
button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.E36EA2A5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.67HUHWCS.js";
|
|
4
4
|
|
|
5
5
|
// src/components/icon-button/icon-button.ts
|
|
6
6
|
var icon_button_default = SynIconButton;
|
|
@@ -9,4 +9,4 @@ SynIconButton.define("syn-icon-button");
|
|
|
9
9
|
export {
|
|
10
10
|
icon_button_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.EIXX5VVK.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk.FKKJBKYL.js";
|
|
11
11
|
import {
|
|
12
12
|
SynButton
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.OCQOKX2B.js";
|
|
14
14
|
import {
|
|
15
15
|
FormControlController
|
|
16
16
|
} from "./chunk.AMIQC3O7.js";
|
|
@@ -21,27 +21,24 @@ import {
|
|
|
21
21
|
getAnimation,
|
|
22
22
|
setDefaultAnimation
|
|
23
23
|
} from "./chunk.HQ6QUSK7.js";
|
|
24
|
-
import {
|
|
25
|
-
SynIcon
|
|
26
|
-
} from "./chunk.SWUXKALS.js";
|
|
27
24
|
import {
|
|
28
25
|
HasSlotController
|
|
29
26
|
} from "./chunk.WVVQK5TE.js";
|
|
30
27
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./chunk.
|
|
28
|
+
SynIcon
|
|
29
|
+
} from "./chunk.JETTTJ6N.js";
|
|
33
30
|
import {
|
|
34
31
|
watch
|
|
35
32
|
} from "./chunk.74IOULXM.js";
|
|
36
33
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./chunk.
|
|
34
|
+
LocalizeController
|
|
35
|
+
} from "./chunk.GIU3H3J3.js";
|
|
39
36
|
import {
|
|
40
37
|
component_styles_default
|
|
41
38
|
} from "./chunk.NLYVOJGK.js";
|
|
42
39
|
import {
|
|
43
40
|
SynergyElement
|
|
44
|
-
} from "./chunk.
|
|
41
|
+
} from "./chunk.VCAVMNGP.js";
|
|
45
42
|
import {
|
|
46
43
|
__decorateClass
|
|
47
44
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -505,9 +502,6 @@ __decorateClass([
|
|
|
505
502
|
__decorateClass([
|
|
506
503
|
watch("value", { waitUntilFirstUpdate: true })
|
|
507
504
|
], SynFile.prototype, "handleValueChange", 1);
|
|
508
|
-
SynFile = __decorateClass([
|
|
509
|
-
enableDefaultSettings("SynFile")
|
|
510
|
-
], SynFile);
|
|
511
505
|
setDefaultAnimation("file.iconDrop", {
|
|
512
506
|
keyframes: [
|
|
513
507
|
{ scale: 1 },
|
|
@@ -534,4 +528,4 @@ setDefaultAnimation("file.text.appear", {
|
|
|
534
528
|
export {
|
|
535
529
|
SynFile
|
|
536
530
|
};
|
|
537
|
-
//# sourceMappingURL=chunk.
|
|
531
|
+
//# sourceMappingURL=chunk.EQ2Y7FV7.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/file/file.component.ts"],
|
|
4
|
+
"sourcesContent": ["import { classMap } from 'lit/directives/class-map.js';\nimport { property, query, state } from 'lit/decorators.js';\nimport type { CSSResultGroup } from 'lit';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { defaultValue } from '../../internal/default-value.js';\nimport { watch } from '../../internal/watch.js';\nimport type { SynergyFormControl } from '../../internal/synergy-element.js';\nimport { LocalizeController } from '../../utilities/localize.js';\nimport { FormControlController } from '../../internal/form.js';\nimport { HasSlotController } from '../../internal/slot.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 SynButton from '../button/button.component.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './file.styles.js';\nimport { getAnimation, setDefaultAnimation } from '../../utilities/animation-registry.js';\nimport { animateTo } from '../../internal/animate.js';\n\n/**\n * @summary File controls allow selecting an arbitrary number of files for uploading.\n * @status stable\n *\n * @dependency syn-button\n * @dependency syn-icon\n *\n * @slot label - The file control's label. Alternatively, you can use the `label` attribute.\n * @slot help-text - Text that describes how to use the file control.\n * Alternatively, you can use the `help-text` attribute.\n * @slot droparea-icon - Optional droparea icon to use instead of the default.\n * Works best with `<syn-icon>`.\n * @slot trigger - Optional content to be used as trigger instead of the default content.\n * Opening the file dialog on click and as well as drag and drop will work for this content.\n * Following attributes will no longer work: *label*, *droparea*, *help-text*, *size*,\n * *hide-value*. Also if using the disabled attribute, the disabled styling will not be\n * applied and must be taken care of yourself.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event syn-error - Emitted when multiple files are selected via drag and drop, without\n * the `multiple` property being set.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-input - Emitted when the control receives input.\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 input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart button-wrapper - The wrapper around the button and text value.\n * @csspart button - The syn-button acting as a file input.\n * @csspart button__base - The syn-button's exported `base` part.\n * @csspart value - The chosen files or placeholder text for the file input.\n * @csspart droparea - The element wrapping the drop zone.\n * @csspart droparea-background - The background of the drop zone.\n * @csspart droparea-icon - The container that wraps the icon for the drop zone.\n * @csspart droparea-value - The text for the drop zone.\n * @csspart trigger - The container that wraps the trigger.\n *\n * @animation file.iconDrop - The animation to use for the file icon\n * when a file is dropped\n * @animation file.text.disappear - The disappear animation to use for the file placeholder text\n * when a file is dropped\n * @animation file.text.appear - The appear animation to use for the file placeholder text\n * when a file is dropped\n */\nexport default class SynFile extends SynergyElement implements SynergyFormControl {\n static styles: CSSResultGroup = [\n componentStyles,\n formControlStyles,\n formControlCustomStyles,\n styles,\n ];\n\n static dependencies = {\n 'syn-button': SynButton,\n 'syn-icon': SynIcon,\n };\n\n private readonly formControlController = new FormControlController(this, {\n assumeInteractionOn: ['syn-change'],\n // This makes sure the value sent in formdata events is always the files object\n // @see internals/form.ts #handleFormData for more information\n value: (el: SynFile) => el.files,\n });\n\n private readonly hasSlotController = new HasSlotController(this, 'help-text', 'label');\n\n private readonly localize = new LocalizeController(this);\n\n @state() private userIsDragging = false;\n\n /**\n * The selected files as a FileList object containing a list of File objects.\n * The FileList behaves like an array, so you can get the number of selected files\n * via its length property.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#getting_information_on_selected_files)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#getting_information_on_selected_files\n */\n @property({ type: Object })\n set files(v: FileList | null) {\n if (this.input) {\n this.input.files = v;\n }\n }\n\n get files() {\n return this.input?.files;\n }\n\n /** The name of the file control, submitted as a name/value pair with form data. */\n @property({ type: String }) name = '';\n\n /**\n * The current value of the input, submitted as a name/value pair with form data.\n * Beware that the only valid value when setting a file input is an empty string!\n */\n\n /**\n * The value of the file control contains a string that represents the path of the selected file.\n * If multiple files are selected, the value represents the first file in the list.\n * If no file is selected, the value is an empty string.\n * Beware that the only valid value when setting a file control is an empty string!\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#value)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#value\n */\n @property({ type: String })\n set value(v: string) {\n if (this.input) {\n this.input.value = v;\n }\n }\n\n get value() {\n return this.input?.value;\n }\n\n /** The default value of the form control. Primarily used for resetting the form control. */\n @defaultValue() defaultValue = '';\n\n /** The file control's size. */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The file control's label. If you need to display HTML, use the `label` slot instead. */\n @property() label = '';\n\n /**\n * The file control's help text.\n * If you need to display HTML, use the `help-text` slot instead.\n */\n @property({ attribute: 'help-text' }) helpText = '';\n\n /** Disables the file control. */\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n /** Draw the file control as a drop area */\n @property({ type: Boolean }) droparea = false;\n\n /**\n * Comma separated list of supported file types\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept\n * @example <syn-file accept=\".jpg,.jpeg,.png,.gif,text/plain,image/*\"></syn-file>\n */\n @property({ type: String }) accept = '';\n\n /**\n * Specifies the types of files that the server accepts.\n * Can be set either to user or environment.\n * Works only when not using a droparea!\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture\n */\n @property({ type: String }) capture: 'user' | 'environment';\n\n /**\n * Indicates whether the user can select more than one file.\n * Has no effect if webkitdirectory is set.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#multiple\n */\n @property({ reflect: true, type: Boolean }) multiple = false;\n\n /**\n * Indicates that the file control should let the user select directories instead of files.\n * When a directory is selected, the directory and its entire hierarchy of contents are included\n * in the set of selected items.\n * Note: This is a non-standard attribute but is supported in the major browsers.\n * [see MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory\n */\n @property({ reflect: true, type: Boolean }) webkitdirectory = false;\n\n /**\n * By default, form controls are associated with the nearest containing `<form>` element.\n * This attribute allows you to place the form control outside of a form and associate it\n * with the form that has this `id`. The form must be in the same document\n * or shadow root for this to work.\n */\n @property({ reflect: true }) form = '';\n\n /** Makes the input a required field. */\n @property({ reflect: true, type: Boolean }) required = false;\n\n /** Suppress the value from being displayed in the file control */\n @property({ attribute: 'hide-value', type: Boolean }) hideValue = false;\n\n @query('.input__control') input: HTMLInputElement;\n\n @query('.button') button: SynButton;\n\n @query('.droparea') dropareaWrapper: HTMLDivElement;\n\n @query('.droparea__icon') dropareaIcon: HTMLSpanElement;\n\n @query('.input__value') inputChosen: HTMLSpanElement;\n\n /** Gets the validity state object */\n get validity() {\n return this.input.validity;\n }\n\n /** Gets the validation message */\n get validationMessage() {\n return this.input.validationMessage;\n }\n\n /**\n * Checks for validity but does not show a validation message.\n * Returns `true` when valid and `false` when invalid.\n */\n checkValidity() {\n return this.input.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.input.reportValidity();\n }\n\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.formControlController.updateValidity();\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n // Disabled form controls are always valid\n this.formControlController.setValidity(this.disabled);\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n async handleValueChange() {\n await this.updateComplete;\n this.formControlController.updateValidity();\n }\n\n /** Sets focus on the button or droparea. */\n focus(options?: FocusOptions) {\n if (this.droparea) {\n this.dropareaWrapper?.focus(options);\n return;\n }\n\n this.button?.focus(options);\n }\n\n /** Removes focus from the button or droparea. */\n blur() {\n if (this.droparea) {\n this.dropareaWrapper?.blur();\n return;\n }\n\n this.button?.blur();\n }\n\n private handleInvalid(event: Event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\n }\n\n private handleFiles(files: FileList | null) {\n if (!files) {\n this.value = '';\n return;\n }\n this.files = files;\n }\n\n private async handleTransferItems(items: DataTransferItemList | null): Promise<FileList> {\n if (!items) {\n this.value = '';\n return new Promise((_resolve, reject) => { reject(new Error('No proper items found')); });\n }\n\n const entries = Array\n .from(items)\n .map(item => item.webkitGetAsEntry());\n\n const filesPromises = entries.map(entry => this.getFilesFromEntry(entry));\n const filesArray = await Promise.all(filesPromises);\n const files = filesArray.flat();\n\n const dataTransfer = new DataTransfer();\n Array.from(files).forEach(f => dataTransfer.items.add(f));\n return dataTransfer.files;\n }\n\n private async getFilesFromEntry(entry: FileSystemEntry | null): Promise<File[]> {\n if (!entry) {\n return [];\n }\n if (entry.isFile) {\n return new Promise<File[]>((resolve, reject) => {\n (entry as FileSystemFileEntry).file(file => resolve([file]), reject);\n });\n }\n if (entry.isDirectory) {\n return new Promise<File[]>((resolve, reject) => {\n const dirReader = (entry as FileSystemDirectoryEntry).createReader();\n dirReader.readEntries((entries) => {\n Promise.all(entries.map(e => this.getFilesFromEntry(e)))\n .then((files) => { resolve(files.flat()); })\n .catch(reject);\n });\n });\n }\n return [];\n }\n\n private handleClick(e: Event) {\n e.preventDefault();\n this.input.click();\n }\n\n /** Handles the change event of the native input */\n private handleChange(e: Event) {\n e.preventDefault();\n e.stopPropagation();\n\n this.emit('syn-input');\n this.emit('syn-change');\n }\n\n private handleDragOver(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n this.userIsDragging = true;\n }\n\n private handleDragLeave(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n this.userIsDragging = false;\n }\n\n // eslint-disable-next-line complexity\n private async handleDrop(e: DragEvent) {\n e.preventDefault();\n e.stopPropagation();\n\n if (!e.dataTransfer) {\n return;\n }\n\n const files = await this.handleTransferItems(e.dataTransfer?.items);\n\n this.userIsDragging = false;\n\n if (!files) {\n return;\n }\n\n // webkitdirectory also allows multiple files\n if (!this.multiple && !this.webkitdirectory && files.length > 1) {\n this.emit('syn-error');\n return;\n }\n\n // Use the transferred file list from the drag drop interface\n const hasTrigger = this.hasSlotController.test('trigger');\n if (!hasTrigger) {\n const disappearAnimation = getAnimation(this.inputChosen, 'file.text.disappear', { dir: this.localize.dir() });\n const appearAnimation = getAnimation(this.inputChosen, 'file.text.appear', { dir: this.localize.dir() });\n\n if (this.droparea) {\n const dropIconAnimation = getAnimation(this.dropareaIcon, 'file.iconDrop', { dir: this.localize.dir() });\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n animateTo(this.dropareaIcon, dropIconAnimation.keyframes, dropIconAnimation.options);\n }\n // eslint-disable-next-line max-len\n await animateTo(this.inputChosen, disappearAnimation.keyframes, disappearAnimation.options);\n this.handleFiles(files);\n await animateTo(this.inputChosen, appearAnimation.keyframes, appearAnimation.options);\n } else {\n this.handleFiles(files);\n }\n\n this.input.dispatchEvent(new Event('change'));\n }\n\n /**\n * Handle the focus of the droparea and emit focus event\n */\n private handleFocus() {\n this.emit('syn-focus');\n }\n\n /**\n * Handle the blur of the droparea and emit blur event\n */\n private handleBlur() {\n this.emit('syn-blur');\n }\n\n private renderValue() {\n let hasFiles = false;\n let fileChosenLabel = this.localize.term('numFilesSelected', 0, this.webkitdirectory);\n\n if (this.files && this.files?.length > 0) {\n hasFiles = true;\n fileChosenLabel = this.files.length === 1\n ? this.files[0].name\n : this.localize.term('numFilesSelected', this.files.length, this.webkitdirectory);\n }\n\n return html`\n <span\n class=${classMap({\n input__value: true,\n 'input__value--hidden': this.hideValue,\n 'input__value--placeholder': !hasFiles,\n })}\n part=\"value\"\n >\n ${fileChosenLabel}\n </span>\n `;\n }\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderDroparea() {\n return html`\n <div\n class=\"droparea\"\n @click=${this.handleClick}\n @keypress=${this.handleClick}\n @focus=${this.handleFocus}\n @blur=${this.handleBlur}\n tabindex=${this.disabled ? -1 : 0}\n part=\"droparea\"\n >\n <div\n class=\"droparea__background\"\n part=\"droparea-background\"\n >\n <span part=\"droparea-icon\" class=\"droparea__icon\">\n <slot name=\"droparea-icon\">\n <syn-icon name=\"upload-file\" library=\"system\" ></syn-icon>\n </slot>\n </span>\n <p\n class=\"droparea__text\"\n part=\"droparea-value\"\n >\n <strong>${this.localize.term(this.webkitdirectory ? 'folderDragDrop' : 'fileDragDrop')}</strong>\n ${this.renderValue()}\n </p>\n </div>\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n private renderButton() {\n let buttonText = this.localize.term('fileButtonText');\n if (this.multiple) {\n buttonText = this.localize.term('fileButtonTextMultiple');\n }\n if (this.webkitdirectory) {\n buttonText = this.localize.term('folderButtonText');\n }\n\n return html`\n <div\n class=\"button__wrapper\"\n part=\"button-wrapper\"\n >\n <syn-button\n class=\"button\"\n @click=${this.handleClick}\n ?disabled=${this.disabled}\n exportparts=\"base:button__base\"\n part=\"button\"\n size=${this.size}\n variant=\"outline\"\n >\n ${buttonText}\n </syn-button>\n ${this.renderValue()}\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n\n /* eslint-disable @typescript-eslint/unbound-method */\n // eslint-disable-next-line complexity\n render() {\n const hasLabel = this.label || !!this.hasSlotController.test('label');\n const hasHelpText = this.helpText ? true : !!this.hasSlotController.test('help-text');\n const hasTrigger = !!this.hasSlotController.test('trigger');\n\n return html`\n <div\n class=${classMap({\n 'form-control': true,\n 'form-control--droparea': this.droparea,\n 'form-control--has-help-text': hasHelpText,\n 'form-control--has-label': hasLabel,\n 'form-control--large': this.size === 'large',\n 'form-control--medium': this.size === 'medium',\n 'form-control--small': this.size === 'small',\n 'form-control--user-dragging': this.userIsDragging,\n })}\n @dragenter=${this.handleDragOver}\n @dragleave=${this.handleDragLeave}\n @dragover=${this.handleDragOver}\n @drop=${this.handleDrop}\n part=\"form-control\"\n >\n ${\n hasTrigger\n ? html`\n <slot \n @click=${this.handleClick}\n @keypress=${this.handleClick}\n name=\"trigger\"\n part=\"trigger\"\n ></slot>\n `\n : html`\n <label\n aria-hidden=${hasLabel ? 'false' : 'true'}\n class=\"form-control__label\"\n for=\"input\"\n part=\"form-control-label\"\n >\n <slot name=\"label\">${this.label}</slot>\n </label>\n\n <div\n class=\"form-control-input\"\n part=\"form-control-input\"\n >\n\n ${this.droparea ? this.renderDroparea() : this.renderButton()}\n </div>\n\n <div\n aria-hidden=${hasHelpText ? 'false' : 'true'}\n class=\"form-control__help-text\"\n id=\"help-text\"\n part=\"form-control-help-text\"\n >\n <slot name=\"help-text\">${this.helpText}</slot>\n </div>\n `\n }\n <input\n accept=${this.accept}\n aria-describedby=\"help-text\"\n @change=${this.handleChange}\n class=\"input__control\"\n ?disabled=${this.disabled}\n id=\"input\"\n @invalid=${this.handleInvalid}\n ?multiple=${this.multiple}\n name=${ifDefined(this.name)}\n ?required=${this.required}\n type=\"file\"\n tabindex=\"-1\"\n ?webkitdirectory=${this.webkitdirectory}\n >\n </div>\n `;\n }\n /* eslint-enable @typescript-eslint/unbound-method */\n}\n\nsetDefaultAnimation('file.iconDrop', {\n keyframes: [\n { scale: 1 },\n { scale: 0.7 },\n { scale: 1 },\n ],\n options: { duration: 600, easing: 'ease-out' },\n});\n\nsetDefaultAnimation('file.text.disappear', {\n keyframes: [\n { opacity: 1 },\n { opacity: 0, transform: 'translateY(-40%)' },\n ],\n options: { duration: 300, easing: 'cubic-bezier(0.45, 1.45, 0.8, 1)' },\n});\n\nsetDefaultAnimation('file.text.appear', {\n keyframes: [\n { opacity: 0, transform: 'translateY(40%)' },\n { opacity: 1 },\n ],\n options: { duration: 300, easing: 'cubic-bezier(0.45, 1.45, 0.8, 1)' },\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,gBAAgB;AACzB,SAAS,UAAU,OAAO,aAAa;AAEvC,SAAS,YAAY;AACrB,SAAS,iBAAiB;AA+D1B,IAAqB,UAAr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@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDetails
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.JC7CNIYQ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/details/details.ts
|
|
6
6
|
var details_default = SynDetails;
|
|
@@ -9,4 +9,4 @@ SynDetails.define("syn-details");
|
|
|
9
9
|
export {
|
|
10
10
|
details_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.FTMPDQQE.js.map
|
|
@@ -6,19 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk.EHSNF4SS.js";
|
|
7
7
|
import {
|
|
8
8
|
SynIcon
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.JETTTJ6N.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.74IOULXM.js";
|
|
13
|
-
import {
|
|
14
|
-
enableDefaultSettings
|
|
15
|
-
} from "./chunk.OLCT57R5.js";
|
|
16
13
|
import {
|
|
17
14
|
component_styles_default
|
|
18
15
|
} from "./chunk.NLYVOJGK.js";
|
|
19
16
|
import {
|
|
20
17
|
SynergyElement
|
|
21
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.VCAVMNGP.js";
|
|
22
19
|
import {
|
|
23
20
|
__decorateClass
|
|
24
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -113,11 +110,8 @@ __decorateClass([
|
|
|
113
110
|
__decorateClass([
|
|
114
111
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
115
112
|
], SynRadio.prototype, "handleDisabledChange", 1);
|
|
116
|
-
SynRadio = __decorateClass([
|
|
117
|
-
enableDefaultSettings("SynRadio")
|
|
118
|
-
], SynRadio);
|
|
119
113
|
|
|
120
114
|
export {
|
|
121
115
|
SynRadio
|
|
122
116
|
};
|
|
123
|
-
//# sourceMappingURL=chunk.
|
|
117
|
+
//# sourceMappingURL=chunk.FWHNNPQB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/radio/radio.component.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * ---------------------------------------------------------------------\n * \uD83D\uDD12 AUTOGENERATED BY VENDORISM\n * Removing this comment will prevent it from being managed by it.\n * ---------------------------------------------------------------------\n */\n\n/* eslint-disable */\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIcon from '../icon/icon.component.js';\nimport styles from './radio.styles.js';\nimport customStyles from './radio.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Radios allow the user to select a single option from a group.\n * @documentation https://synergy.style/components/radio\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The radio's label.\n *\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-focus - Emitted when the control gains focus.\n *\n * @csspart base - The component's base wrapper.\n * @csspart control - The circular container that wraps the radio's checked state.\n * @csspart control--checked - The radio control when the radio is checked.\n * @csspart checked-icon - The checked icon, an `<syn-icon>` element.\n * @csspart label - The container that wraps the radio's label.\n */\nexport default class SynRadio extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon': SynIcon };\n\n @state() checked = false;\n @state() protected hasFocus = false;\n\n /** The radio's value. When selected, the radio group will receive this value. */\n @property() value: string;\n\n /**\n * The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this\n * attribute can typically be omitted.\n */\n @property({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Disables the radio. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n constructor() {\n super();\n this.addEventListener('blur', this.handleBlur);\n this.addEventListener('click', this.handleClick);\n this.addEventListener('focus', this.handleFocus);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.setInitialAttributes();\n }\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.emit('syn-blur');\n };\n\n private handleClick = () => {\n if (!this.disabled) {\n this.checked = true;\n }\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.emit('syn-focus');\n };\n\n private setInitialAttributes() {\n this.setAttribute('role', 'radio');\n this.setAttribute('tabindex', '-1');\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n @watch('checked')\n handleCheckedChange() {\n this.setAttribute('aria-checked', this.checked ? 'true' : 'false');\n this.setAttribute('tabindex', this.checked ? '0' : '-1');\n }\n\n @watch('disabled', { waitUntilFirstUpdate: true })\n handleDisabledChange() {\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n render() {\n return html`\n <span\n part=\"base\"\n class=${classMap({\n radio: true,\n 'radio--checked': this.checked,\n 'radio--disabled': this.disabled,\n 'radio--focused': this.hasFocus,\n 'radio--small': this.size === 'small',\n 'radio--medium': this.size === 'medium',\n 'radio--large': this.size === 'large'\n })}\n >\n <span part=\"${`control${this.checked ? ' control--checked' : ''}`}\" class=\"radio__control\">\n ${this.checked\n ? html` <syn-icon part=\"checked-icon\" class=\"radio__checked-icon\" library=\"system\" name=\"radio\"></syn-icon> `\n : ''}\n </span>\n\n <slot part=\"label\" class=\"radio__label\"></slot>\n </span>\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,gBAAgB;AACzB,SAAS,YAAY;AACrB,SAAS,UAAU,aAAa;AA4BhC,IAAqB,WAArB,cAAsC,eAAe;AAAA,EAmBnD,cAAc;AACZ,UAAM;AAhBC,mBAAU;AACV,SAAU,WAAW;AASD,gBAAqC;AAGtB,oBAAW;AAcvD,SAAQ,aAAa,MAAM;AACzB,WAAK,WAAW;AAChB,WAAK,KAAK,UAAU;AAAA,IACtB;AAEA,SAAQ,cAAc,MAAM;AAC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nC;AAAA,EAAR,MAAM;AAAA,GAJY,SAIV;AACU;AAAA,EAAlB,MAAM;AAAA,GALY,SAKA;AAGP;AAAA,EAAX,SAAS;AAAA,GARS,SAQP;AAMiB;AAAA,EAA5B,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAdR,SAcU;AAGe;AAAA,EAA3C,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAjBvB,SAiByB;AAqC5C;AAAA,EADC,MAAM,SAAS;AAAA,GArDG,SAsDnB;AAMA;AAAA,EADC,MAAM,YAAY,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA3D9B,SA4DnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.SHCZO4KK.js";
|
|
4
4
|
import {
|
|
5
5
|
SynDivider
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.KBVDCXR5.js";
|
|
7
7
|
import {
|
|
8
8
|
HasSlotController
|
|
9
9
|
} from "./chunk.WVVQK5TE.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk.NLYVOJGK.js";
|
|
16
16
|
import {
|
|
17
17
|
SynergyElement
|
|
18
|
-
} from "./chunk.
|
|
18
|
+
} from "./chunk.VCAVMNGP.js";
|
|
19
19
|
import {
|
|
20
20
|
__decorateClass
|
|
21
21
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -339,4 +339,4 @@ __decorateClass([
|
|
|
339
339
|
export {
|
|
340
340
|
SynNavItem
|
|
341
341
|
};
|
|
342
|
-
//# sourceMappingURL=chunk.
|
|
342
|
+
//# sourceMappingURL=chunk.GQM7WKPT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynOption
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PGIUXB4S.js";
|
|
4
4
|
|
|
5
5
|
// src/components/option/option.ts
|
|
6
6
|
var option_default = SynOption;
|
|
@@ -9,4 +9,4 @@ SynOption.define("syn-option");
|
|
|
9
9
|
export {
|
|
10
10
|
option_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.HATBOXY7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynDialog
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.35G32AHP.js";
|
|
4
4
|
|
|
5
5
|
// src/components/dialog/dialog.ts
|
|
6
6
|
var dialog_default = SynDialog;
|
|
@@ -9,4 +9,4 @@ SynDialog.define("syn-dialog");
|
|
|
9
9
|
export {
|
|
10
10
|
dialog_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.HC2NGMC6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynIconButton
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.67HUHWCS.js";
|
|
4
4
|
import {
|
|
5
5
|
waitForEvent
|
|
6
6
|
} from "./chunk.C2ENQBPM.js";
|
|
@@ -16,26 +16,23 @@ import {
|
|
|
16
16
|
HasSlotController
|
|
17
17
|
} from "./chunk.WVVQK5TE.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./chunk.
|
|
19
|
+
alert_custom_styles_default
|
|
20
|
+
} from "./chunk.JRYXECAY.js";
|
|
21
|
+
import {
|
|
22
|
+
alert_styles_default
|
|
23
|
+
} from "./chunk.IFXKIEOU.js";
|
|
21
24
|
import {
|
|
22
25
|
watch
|
|
23
26
|
} from "./chunk.74IOULXM.js";
|
|
24
27
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./chunk.
|
|
28
|
+
LocalizeController
|
|
29
|
+
} from "./chunk.GIU3H3J3.js";
|
|
27
30
|
import {
|
|
28
31
|
component_styles_default
|
|
29
32
|
} from "./chunk.NLYVOJGK.js";
|
|
30
33
|
import {
|
|
31
34
|
SynergyElement
|
|
32
|
-
} from "./chunk.
|
|
33
|
-
import {
|
|
34
|
-
alert_custom_styles_default
|
|
35
|
-
} from "./chunk.JRYXECAY.js";
|
|
36
|
-
import {
|
|
37
|
-
alert_styles_default
|
|
38
|
-
} from "./chunk.IFXKIEOU.js";
|
|
35
|
+
} from "./chunk.VCAVMNGP.js";
|
|
39
36
|
import {
|
|
40
37
|
__decorateClass
|
|
41
38
|
} from "./chunk.2GFK6XTO.js";
|
|
@@ -44,8 +41,7 @@ import {
|
|
|
44
41
|
import { classMap } from "lit/directives/class-map.js";
|
|
45
42
|
import { html } from "lit";
|
|
46
43
|
import { property, query, state } from "lit/decorators.js";
|
|
47
|
-
var
|
|
48
|
-
var SynAlert = class extends SynergyElement {
|
|
44
|
+
var _SynAlert = class _SynAlert extends SynergyElement {
|
|
49
45
|
constructor() {
|
|
50
46
|
super(...arguments);
|
|
51
47
|
this.hasSlotController = new HasSlotController(this, "icon", "suffix");
|
|
@@ -56,6 +52,14 @@ var SynAlert = class extends SynergyElement {
|
|
|
56
52
|
this.duration = Infinity;
|
|
57
53
|
this.remainingTime = this.duration;
|
|
58
54
|
}
|
|
55
|
+
static get toastStack() {
|
|
56
|
+
if (!this.currentToastStack) {
|
|
57
|
+
this.currentToastStack = Object.assign(document.createElement("div"), {
|
|
58
|
+
className: "syn-toast-stack"
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return this.currentToastStack;
|
|
62
|
+
}
|
|
59
63
|
firstUpdated() {
|
|
60
64
|
this.base.hidden = !this.open;
|
|
61
65
|
}
|
|
@@ -150,10 +154,10 @@ var SynAlert = class extends SynergyElement {
|
|
|
150
154
|
async toast() {
|
|
151
155
|
return new Promise((resolve) => {
|
|
152
156
|
this.handleCountdownChange();
|
|
153
|
-
if (toastStack.parentElement === null) {
|
|
154
|
-
document.body.append(toastStack);
|
|
157
|
+
if (_SynAlert.toastStack.parentElement === null) {
|
|
158
|
+
document.body.append(_SynAlert.toastStack);
|
|
155
159
|
}
|
|
156
|
-
toastStack.appendChild(this);
|
|
160
|
+
_SynAlert.toastStack.appendChild(this);
|
|
157
161
|
requestAnimationFrame(() => {
|
|
158
162
|
this.clientWidth;
|
|
159
163
|
this.show();
|
|
@@ -161,10 +165,10 @@ var SynAlert = class extends SynergyElement {
|
|
|
161
165
|
this.addEventListener(
|
|
162
166
|
"syn-after-hide",
|
|
163
167
|
() => {
|
|
164
|
-
toastStack.removeChild(this);
|
|
168
|
+
_SynAlert.toastStack.removeChild(this);
|
|
165
169
|
resolve();
|
|
166
|
-
if (toastStack.querySelector("syn-alert") === null) {
|
|
167
|
-
toastStack.remove();
|
|
170
|
+
if (_SynAlert.toastStack.querySelector("syn-alert") === null) {
|
|
171
|
+
_SynAlert.toastStack.remove();
|
|
168
172
|
}
|
|
169
173
|
},
|
|
170
174
|
{ once: true }
|
|
@@ -227,38 +231,36 @@ var SynAlert = class extends SynergyElement {
|
|
|
227
231
|
`;
|
|
228
232
|
}
|
|
229
233
|
};
|
|
230
|
-
|
|
231
|
-
|
|
234
|
+
_SynAlert.styles = [component_styles_default, alert_styles_default, alert_custom_styles_default];
|
|
235
|
+
_SynAlert.dependencies = { "syn-icon-button": SynIconButton };
|
|
232
236
|
__decorateClass([
|
|
233
237
|
query('[part~="base"]')
|
|
234
|
-
],
|
|
238
|
+
], _SynAlert.prototype, "base", 2);
|
|
235
239
|
__decorateClass([
|
|
236
240
|
query(".alert__countdown-elapsed")
|
|
237
|
-
],
|
|
241
|
+
], _SynAlert.prototype, "countdownElement", 2);
|
|
238
242
|
__decorateClass([
|
|
239
243
|
property({ type: Boolean, reflect: true })
|
|
240
|
-
],
|
|
244
|
+
], _SynAlert.prototype, "open", 2);
|
|
241
245
|
__decorateClass([
|
|
242
246
|
property({ type: Boolean, reflect: true })
|
|
243
|
-
],
|
|
247
|
+
], _SynAlert.prototype, "closable", 2);
|
|
244
248
|
__decorateClass([
|
|
245
249
|
property({ reflect: true })
|
|
246
|
-
],
|
|
250
|
+
], _SynAlert.prototype, "variant", 2);
|
|
247
251
|
__decorateClass([
|
|
248
252
|
property({ type: Number })
|
|
249
|
-
],
|
|
253
|
+
], _SynAlert.prototype, "duration", 2);
|
|
250
254
|
__decorateClass([
|
|
251
255
|
state()
|
|
252
|
-
],
|
|
256
|
+
], _SynAlert.prototype, "remainingTime", 2);
|
|
253
257
|
__decorateClass([
|
|
254
258
|
watch("open", { waitUntilFirstUpdate: true })
|
|
255
|
-
],
|
|
259
|
+
], _SynAlert.prototype, "handleOpenChange", 1);
|
|
256
260
|
__decorateClass([
|
|
257
261
|
watch("duration")
|
|
258
|
-
],
|
|
259
|
-
SynAlert =
|
|
260
|
-
enableDefaultSettings("SynAlert")
|
|
261
|
-
], SynAlert);
|
|
262
|
+
], _SynAlert.prototype, "handleDurationChange", 1);
|
|
263
|
+
var SynAlert = _SynAlert;
|
|
262
264
|
setDefaultAnimation("alert.show", {
|
|
263
265
|
keyframes: [
|
|
264
266
|
{ opacity: 0, scale: 0.8 },
|
|
@@ -277,4 +279,4 @@ setDefaultAnimation("alert.hide", {
|
|
|
277
279
|
export {
|
|
278
280
|
SynAlert
|
|
279
281
|
};
|
|
280
|
-
//# sourceMappingURL=chunk.
|
|
282
|
+
//# sourceMappingURL=chunk.HZZFKI43.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/alert/alert.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 { 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 { waitForEvent } from '../../internal/event.js';\nimport { watch } from '../../internal/watch.js';\nimport componentStyles from '../../styles/component.styles.js';\nimport SynergyElement from '../../internal/synergy-element.js';\nimport SynIconButton from '../icon-button/icon-button.component.js';\nimport styles from './alert.styles.js';\nimport customStyles from './alert.custom.styles.js';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Alerts are used to display important messages inline or as toast notifications.\n * @documentation https://synergy.style/components/alert\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The alert's main content.\n * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the alert opens.\n * @event syn-after-show - Emitted after the alert opens and all animations are complete.\n * @event syn-hide - Emitted when the alert closes.\n * @event syn-after-hide - Emitted after the alert closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The container that wraps the optional icon.\n * @csspart message - The container that wraps the alert's main content.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n *\n * @animation alert.show - The animation to use when showing the alert.\n * @animation alert.hide - The animation to use when hiding the alert.\n */\nexport default class SynAlert extends SynergyElement {\n static styles: CSSResultGroup = [componentStyles, styles, customStyles];\n static dependencies = { 'syn-icon-button': SynIconButton };\n\n private autoHideTimeout: number;\n private remainingTimeInterval: number;\n private countdownAnimation?: Animation;\n private readonly hasSlotController = new HasSlotController(this, 'icon', 'suffix');\n private readonly localize = new LocalizeController(this);\n\n private static currentToastStack: HTMLDivElement;\n\n private static get toastStack() {\n if (!this.currentToastStack) {\n this.currentToastStack = Object.assign(document.createElement('div'), {\n className: 'syn-toast-stack'\n });\n }\n return this.currentToastStack;\n }\n\n @query('[part~=\"base\"]') base: HTMLElement;\n\n @query('.alert__countdown-elapsed') countdownElement: HTMLElement;\n\n /**\n * Indicates whether or not the alert is open. You can toggle this attribute to show and hide the alert, or you can\n * use the `show()` and `hide()` methods and this attribute will reflect the alert's open state.\n */\n @property({ type: Boolean, reflect: true }) open = false;\n\n /** Enables a close button that allows the user to dismiss the alert. */\n @property({ type: Boolean, reflect: true }) closable = false;\n\n /** The alert's theme variant. */\n @property({ reflect: true }) variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with\n * the alert before it closes (e.g. moves the mouse over it), the timer will restart. Defaults to `Infinity`, meaning\n * the alert will not close on its own.\n */\n @property({ type: Number }) duration = Infinity;\n\n /**\n * Enables a countdown that indicates the remaining time the alert will be displayed.\n * Typically used to indicate the remaining time before a whole app refresh.\n */\n private countdown? : 'rtl' | 'ltr';\n\n @state() private remainingTime = this.duration;\n\n firstUpdated() {\n this.base.hidden = !this.open;\n }\n\n private restartAutoHide() {\n this.handleCountdownChange();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n this.remainingTime = this.duration;\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n }\n }\n\n private pauseAutoHide() {\n this.countdownAnimation?.pause();\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n }\n\n private resumeAutoHide() {\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.remainingTime);\n this.remainingTimeInterval = window.setInterval(() => {\n this.remainingTime -= 100;\n }, 100);\n this.countdownAnimation?.play();\n }\n }\n\n private handleCountdownChange() {\n if (this.open && this.duration < Infinity && this.countdown) {\n const { countdownElement } = this;\n const start = '100%';\n const end = '0';\n this.countdownAnimation = countdownElement.animate([{ width: start }, { width: end }], {\n duration: this.duration,\n easing: 'linear'\n });\n }\n }\n\n private handleCloseClick() {\n this.hide();\n }\n\n @watch('open', { waitUntilFirstUpdate: true })\n async handleOpenChange() {\n if (this.open) {\n // Show\n this.emit('syn-show');\n\n if (this.duration < Infinity) {\n this.restartAutoHide();\n }\n\n await stopAnimations(this.base);\n this.base.hidden = false;\n const { keyframes, options } = getAnimation(this, 'alert.show', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n\n this.emit('syn-after-show');\n } else {\n // Hide\n this.emit('syn-hide');\n\n clearTimeout(this.autoHideTimeout);\n clearInterval(this.remainingTimeInterval);\n\n await stopAnimations(this.base);\n const { keyframes, options } = getAnimation(this, 'alert.hide', { dir: this.localize.dir() });\n await animateTo(this.base, keyframes, options);\n this.base.hidden = true;\n\n this.emit('syn-after-hide');\n }\n }\n\n @watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Shows the alert. */\n async show() {\n if (this.open) {\n return undefined;\n }\n\n this.open = true;\n return waitForEvent(this, 'syn-after-show');\n }\n\n /** Hides the alert */\n async hide() {\n if (!this.open) {\n return undefined;\n }\n\n this.open = false;\n return waitForEvent(this, 'syn-after-hide');\n }\n\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n */\n async toast() {\n return new Promise<void>(resolve => {\n this.handleCountdownChange();\n if (SynAlert.toastStack.parentElement === null) {\n document.body.append(SynAlert.toastStack);\n }\n\n SynAlert.toastStack.appendChild(this);\n\n // Wait for the toast stack to render\n requestAnimationFrame(() => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions -- force a reflow for the initial transition\n this.clientWidth;\n this.show();\n });\n\n this.addEventListener(\n 'syn-after-hide',\n () => {\n SynAlert.toastStack.removeChild(this);\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (SynAlert.toastStack.querySelector('syn-alert') === null) {\n SynAlert.toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n alert: true,\n 'alert--open': this.open,\n 'alert--closable': this.closable,\n 'alert--has-icon': this.hasSlotController.test('icon'),\n 'alert--primary': this.variant === 'primary',\n 'alert--success': this.variant === 'success',\n 'alert--neutral': this.variant === 'neutral',\n 'alert--warning': this.variant === 'warning',\n 'alert--danger': this.variant === 'danger'\n })}\n role=\"alert\"\n aria-hidden=${this.open ? 'false' : 'true'}\n @mouseenter=${this.pauseAutoHide}\n @mouseleave=${this.resumeAutoHide}\n >\n <div part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\"></slot>\n </div>\n\n <div part=\"message\" class=\"alert__message\" aria-live=\"polite\">\n <slot></slot>\n </div>\n\n ${this.closable\n ? html`\n <syn-icon-button\n part=\"close-button\"\n exportparts=\"base:close-button__base\"\n class=\"alert__close-button\"\n name=\"x-lg\"\n library=\"system\"\n label=${this.localize.term('close')}\n @click=${this.handleCloseClick}\n ></syn-icon-button>\n `\n : ''}\n\n <div role=\"timer\" class=\"alert__timer\">${this.remainingTime}</div>\n\n ${this.countdown\n ? html`\n <div\n class=${classMap({\n alert__countdown: true,\n 'alert__countdown--ltr': this.countdown === 'ltr'\n })}\n >\n <div class=\"alert__countdown-elapsed\"></div>\n </div>\n `\n : ''}\n </div>\n `;\n }\n}\n\nsetDefaultAnimation('alert.show', {\n keyframes: [\n { opacity: 0, scale: 0.8 },\n { opacity: 1, scale: 1 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n\nsetDefaultAnimation('alert.hide', {\n keyframes: [\n { opacity: 1, scale: 1 },\n { opacity: 0, scale: 0.8 }\n ],\n options: { duration: 250, easing: 'ease' }\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,gBAAgB;AAGzB,SAAS,YAAY;AAErB,SAAS,UAAU,OAAO,aAAa;AAmCvC,IAAqB,YAArB,MAAqB,kBAAiB,eAAe;AAAA,EAArD;AAAA;AAOE,SAAiB,oBAAoB,IAAI,kBAA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ED,oBAAoB,cAAc;AAAA,EAChC,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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SynInput
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.V66XL2Y2.js";
|
|
4
4
|
|
|
5
5
|
// src/components/input/input.ts
|
|
6
6
|
var input_default = SynInput;
|
|
@@ -9,4 +9,4 @@ SynInput.define("syn-input");
|
|
|
9
9
|
export {
|
|
10
10
|
input_default
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk.
|
|
12
|
+
//# sourceMappingURL=chunk.IC67TRRK.js.map
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
// src/components/input/input.custom.styles.ts
|
|
2
2
|
import { css } from "lit";
|
|
3
3
|
var input_custom_styles_default = css`
|
|
4
|
+
/**
|
|
5
|
+
* Fixes overflowing of the syn-input in flex and grid containers with fix width (https://github.com/synergy-design-system/synergy-design-system/issues/761)
|
|
6
|
+
*/
|
|
7
|
+
.input__control {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
4
10
|
|
|
5
11
|
/**
|
|
6
12
|
* Min-width size adjusted for each size so 2 full digits are shown for type number
|
|
7
13
|
*/
|
|
8
14
|
|
|
9
|
-
:host([size="small"]) {
|
|
15
|
+
:host([size="small"][type="number"]:not([no-spin-buttons])) {
|
|
10
16
|
min-width: calc(var(--syn-input-font-size-small)*8.3);
|
|
11
17
|
}
|
|
12
18
|
|
|
13
|
-
:host([size="medium"]) {
|
|
19
|
+
:host([size="medium"][type="number"]:not([no-spin-buttons])) {
|
|
14
20
|
min-width: calc(var(--syn-input-font-size-medium)*9.4);
|
|
15
21
|
}
|
|
16
22
|
|
|
17
|
-
:host([size="large"]) {
|
|
23
|
+
:host([size="large"][type="number"]:not([no-spin-buttons])) {
|
|
18
24
|
min-width: calc(var(--syn-input-font-size-large)*10);
|
|
19
25
|
}
|
|
20
26
|
|
|
@@ -258,4 +264,4 @@ var input_custom_styles_default = css`
|
|
|
258
264
|
export {
|
|
259
265
|
input_custom_styles_default
|
|
260
266
|
};
|
|
261
|
-
//# sourceMappingURL=chunk.
|
|
267
|
+
//# sourceMappingURL=chunk.II2KA3OR.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/input/input.custom.styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { css } from 'lit';\n\nexport default css`\n /**\n * Fixes overflowing of the syn-input in flex and grid containers with fix width (https://github.com/synergy-design-system/synergy-design-system/issues/761)\n */\n .input__control {\n width: 100%;\n }\n\n /**\n * Min-width size adjusted for each size so 2 full digits are shown for type number\n */ \n \n :host([size=\"small\"][type=\"number\"]:not([no-spin-buttons])) {\n min-width: calc(var(--syn-input-font-size-small)*8.3);\n }\n\n :host([size=\"medium\"][type=\"number\"]:not([no-spin-buttons])) {\n min-width: calc(var(--syn-input-font-size-medium)*9.4);\n }\n\n :host([size=\"large\"][type=\"number\"]:not([no-spin-buttons])) {\n min-width: calc(var(--syn-input-font-size-large)*10);\n }\n\n /**\n * Clearable + Password Toggle\n */\n .input__clear {\n color: var(--syn-input-icon-icon-clearable-color);\n }\n\n .input--small .input__clear,\n .input--small .input__password-toggle {\n font-size: var(--syn-font-size-medium);\n padding-left: var(--syn-spacing-x-small);\n padding-right: var(--syn-spacing-small);\n width: auto;\n }\n\n .input--medium .input__clear,\n .input--medium .input__password-toggle {\n font-size: var(--syn-font-size-x-large);\n padding-left: var(--syn-spacing-small);\n padding-right: var(--syn-spacing-medium);\n width: auto;\n }\n\n .input--large .input__clear,\n .input--large .input__password-toggle {\n font-size: var(--syn-font-size-2x-large);\n padding-left: var(--syn-spacing-medium);\n padding-right: var(--syn-spacing-large);\n width: auto;\n }\n\n /* Prefix / Suffix color */\n .input__prefix ::slotted(*),\n .input__suffix ::slotted(*) {\n color: var(--syn-input-icon-color);\n }\n\n\n /* PADDINGS */\n .input--small .input__control {\n padding: var(--syn-spacing-3x-small) var(--syn-input-spacing-small);\n }\n\n .input--medium .input__control {\n padding: var(--syn-spacing-x-small) var(--syn-input-spacing-medium);\n }\n\n .input--large .input__control {\n padding: var(--syn-input-spacing-small) var(--syn-input-spacing-large);\n }\n\n .input--small .input__prefix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-small) var(--syn-spacing-x-small);\n }\n\n .input--medium .input__prefix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-medium) var(--syn-input-spacing-small);\n }\n\n .input--large .input__prefix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-large) var(--syn-input-spacing-medium);\n }\n\n .input--small .input__suffix ::slotted(*) {\n margin-inline: var(--syn-spacing-x-small) var(--syn-input-spacing-small);\n }\n\n .input--medium .input__suffix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-small) var(--syn-input-spacing-medium);\n }\n\n .input--large .input__suffix ::slotted(*) {\n margin-inline: var(--syn-input-spacing-medium) var(--syn-input-spacing-large);\n }\n\n .input__clear + .input__suffix ::slotted(*),\n .input__password-toggle + .input__suffix ::slotted(*) {\n margin-inline-start: 0; \n }\n\n .input--small .input__clear + .input__password-toggle {\n padding-left: var(--syn-spacing-2x-small);\n }\n\n .input--medium .input__clear + .input__password-toggle {\n padding-left: calc(var(--syn-spacing-2x-small) + var(--syn-spacing-3x-small));\n }\n\n .input--large .input__clear + .input__password-toggle {\n padding-left: var(--syn-spacing-x-small);\n }\n\n .input--small .input__clear:has(+ .input__password-toggle) {\n padding-right: var(--syn-spacing-2x-small);\n }\n\n .input--medium .input__clear:has(+ .input__password-toggle) {\n padding-right: calc(var(--syn-spacing-2x-small) + var(--syn-spacing-3x-small));\n }\n\n .input--large .input__clear:has(+ .input__password-toggle) {\n padding-right: var(--syn-spacing-x-small);\n }\n\n .form-control--has-suffix .input--large .input__clear:has(+ .input__suffix),\n .form-control--has-suffix .input--large .input__password-toggle:has(+ .input__suffix) {\n padding-right: var(--syn-spacing-medium);\n }\n\n .form-control--has-suffix .input--small .input__clear:has(+ .input__suffix),\n .form-control--has-suffix .input--small .input__password-toggle:has(+ .input__suffix) {\n padding-right: var(--syn-spacing-x-small);\n }\n\n .form-control--has-suffix .input--medium .input__clear:has(+ .input__suffix),\n .form-control--has-suffix .input--medium .input__password-toggle:has(+ .input__suffix) {\n padding-right: var(--syn-spacing-small);\n }\n\n :host([type='number']) .input--large:not(.input--no-spin-buttons) .input__clear,\n :host([type='number']) .input--large:not(.input--no-spin-buttons) .input__password-toggle {\n padding-right: var(--syn-spacing-medium);\n }\n\n /* ICONS SIZE */\n .input--small .input__prefix ::slotted(syn-icon),\n .input--small .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-medium);\n }\n\n .input--medium .input__prefix ::slotted(syn-icon),\n .input--medium .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-x-large);\n }\n\n .input--large .input__prefix ::slotted(syn-icon),\n .input--large .input__suffix ::slotted(syn-icon) {\n font-size: var(--syn-font-size-2x-large);\n }\n\n :host([data-user-invalid]) .input--standard {\n border-color: var(--syn-input-border-color-focus-error);\n }\n\n :host([data-user-invalid]) .input--standard.input--focused:not(.input--disabled) {\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 .input--standard.input--disabled .input__suffix, \n .input--standard.input--disabled .input__prefix {\n cursor: not-allowed;\n } \n\n\n /**\n * Number stepper\n */\n .input__number-stepper {\n align-items: center;\n display: flex;\n }\n\n .input--small .input__number-stepper {\n margin-left: var(--syn-spacing-2x-small);\n }\n\n .input--medium .input__number-stepper {\n margin-right: var(--syn-spacing-2x-small);\n }\n\n .input--large .input__number-stepper {\n margin-right: var(--syn-spacing-x-small);\n }\n\n\n /**\n * Number stepper buttons\n */\n .input__number-stepper-button {\n align-items: center;\n background: none;\n border: none;\n color: var(--syn-color-primary-600);\n cursor: pointer;\n display: flex;\n padding: var(--syn-spacing-x-small);\n transition: var(--syn-transition-x-fast) color;\n }\n\n .input--small .input__number-stepper-button {\n font-size: var(--syn-font-size-medium);\n }\n\n .input--medium .input__number-stepper-button {\n font-size: var(--syn-font-size-x-large);\n }\n\n .input--large .input__number-stepper-button {\n font-size: var(--syn-font-size-2x-large);\n }\n\n .input__number-stepper-button:hover:not([disabled]) {\n color: var(--syn-color-primary-900)\n }\n\n .input__number-stepper-button:active:not([disabled]) {\n color: var(--syn-color-primary-950)\n }\n\n .input__number-stepper-button[disabled] {\n color: var(--syn-color-neutral-400);\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n\n\n /**\n * Number stepper divider\n */\n .input--small .input__number-divider {\n height: var(--syn-font-size-medium);\n margin: 0;\n }\n\n .input--medium .input__number-divider {\n height: var(--syn-font-size-x-large);\n margin: 0 var(--syn-spacing-2x-small);\n }\n\n .input--large .input__number-divider {\n height: var(--syn-font-size-2x-large);\n margin: 0 var(--syn-spacing-x-small);\n }\n`;\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAO,8BAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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