scu-web-components 0.0.13 → 0.0.16
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.J4652OYR.js → chunk.24V5767A.js} +2 -2
- package/dist/chunks/{chunk.J4652OYR.js.map → chunk.24V5767A.js.map} +0 -0
- package/dist/chunks/chunk.25CFFZIW.js +2 -0
- package/dist/chunks/{chunk.K5EGUHA7.js.map → chunk.25CFFZIW.js.map} +0 -0
- package/dist/chunks/chunk.2JGLMQBO.js +17 -0
- package/dist/chunks/chunk.2JGLMQBO.js.map +7 -0
- package/dist/chunks/chunk.2OGLBG6V.js +2 -0
- package/dist/chunks/chunk.2OGLBG6V.js.map +7 -0
- package/dist/chunks/chunk.2YPNWI6A.js +2 -0
- package/dist/chunks/{chunk.NV7WKBSI.js.map → chunk.2YPNWI6A.js.map} +0 -0
- package/dist/chunks/chunk.3LZ2QEZD.js +2 -0
- package/dist/chunks/chunk.3LZ2QEZD.js.map +7 -0
- package/dist/chunks/{chunk.6XBWUFHU.js → chunk.3VX5S2EF.js} +2 -2
- package/dist/chunks/{chunk.6XBWUFHU.js.map → chunk.3VX5S2EF.js.map} +0 -0
- package/dist/chunks/chunk.3XFY5V3W.js +2 -0
- package/dist/chunks/chunk.3XFY5V3W.js.map +7 -0
- package/dist/chunks/chunk.42T5K4LW.js +2 -0
- package/dist/chunks/chunk.42T5K4LW.js.map +7 -0
- package/dist/chunks/chunk.45IXZHTR.js +2 -0
- package/dist/chunks/{chunk.UXU6F5B7.js.map → chunk.45IXZHTR.js.map} +0 -0
- package/dist/chunks/chunk.4LETPOO6.js +17 -0
- package/dist/chunks/chunk.4LETPOO6.js.map +7 -0
- package/dist/chunks/chunk.4TPUL4UC.js +248 -0
- package/dist/chunks/chunk.4TPUL4UC.js.map +7 -0
- package/dist/chunks/chunk.4X3BTEJ5.js +2 -0
- package/dist/chunks/{chunk.VBLITHNX.js.map → chunk.4X3BTEJ5.js.map} +0 -0
- package/dist/chunks/chunk.5HFTCC2U.js +248 -0
- package/dist/chunks/chunk.5HFTCC2U.js.map +7 -0
- package/dist/chunks/chunk.5IS6RKXJ.js +2 -0
- package/dist/chunks/chunk.5IS6RKXJ.js.map +7 -0
- package/dist/chunks/chunk.5RNXQTNO.js +4 -0
- package/dist/chunks/{chunk.GWTC6GAS.js.map → chunk.5RNXQTNO.js.map} +1 -1
- package/dist/chunks/chunk.5WHRZ32E.js +2 -0
- package/dist/chunks/chunk.5WHRZ32E.js.map +7 -0
- package/dist/chunks/chunk.6EMPXCD2.js +2 -0
- package/dist/chunks/{chunk.MBDUC2JR.js.map → chunk.6EMPXCD2.js.map} +0 -0
- package/dist/chunks/chunk.6MEYURY5.js +17 -0
- package/dist/chunks/chunk.6MEYURY5.js.map +7 -0
- package/dist/chunks/chunk.6OM5IIEW.js +17 -0
- package/dist/chunks/chunk.6OM5IIEW.js.map +7 -0
- package/dist/chunks/chunk.6XFPEKI6.js +2 -0
- package/dist/chunks/chunk.6XFPEKI6.js.map +7 -0
- package/dist/chunks/chunk.72WKCCIK.js +2 -0
- package/dist/chunks/chunk.72WKCCIK.js.map +7 -0
- package/dist/chunks/chunk.7FPJHYYG.js +2 -0
- package/dist/chunks/chunk.7FPJHYYG.js.map +7 -0
- package/dist/chunks/chunk.7OLAPDNG.js +2 -0
- package/dist/chunks/chunk.7OLAPDNG.js.map +7 -0
- package/dist/chunks/chunk.7PVCEEH4.js +17 -0
- package/dist/chunks/chunk.7PVCEEH4.js.map +7 -0
- package/dist/chunks/chunk.7QLJ2WVO.js +4 -0
- package/dist/chunks/chunk.7QLJ2WVO.js.map +7 -0
- package/dist/chunks/{chunk.3PCUWNFQ.js → chunk.7WQZG5J4.js} +2 -2
- package/dist/chunks/chunk.7WQZG5J4.js.map +7 -0
- package/dist/chunks/chunk.A3L3HAIU.js +17 -0
- package/dist/chunks/chunk.A3L3HAIU.js.map +7 -0
- package/dist/chunks/chunk.A4CPTDR2.js +2 -0
- package/dist/chunks/chunk.A4CPTDR2.js.map +7 -0
- package/dist/chunks/{chunk.D3GWUZIF.js → chunk.A63K246D.js} +2 -2
- package/dist/chunks/{chunk.D3GWUZIF.js.map → chunk.A63K246D.js.map} +1 -1
- package/dist/chunks/{chunk.4F73JEPV.js → chunk.AFNXRHI4.js} +2 -2
- package/dist/chunks/{chunk.4F73JEPV.js.map → chunk.AFNXRHI4.js.map} +1 -1
- package/dist/chunks/chunk.AJNSUUTO.js +2 -0
- package/dist/chunks/chunk.AJNSUUTO.js.map +7 -0
- package/dist/chunks/chunk.ALWGDFKP.js +256 -0
- package/dist/chunks/chunk.ALWGDFKP.js.map +7 -0
- package/dist/chunks/chunk.AVHM62UB.js +2 -0
- package/dist/chunks/chunk.AVHM62UB.js.map +7 -0
- package/dist/chunks/chunk.B62UDWOE.js +2 -0
- package/dist/chunks/{chunk.BKAUBCSN.js.map → chunk.B62UDWOE.js.map} +0 -0
- package/dist/chunks/chunk.B7OPL7SY.js +2 -0
- package/dist/chunks/{chunk.2FOV3UTP.js.map → chunk.B7OPL7SY.js.map} +0 -0
- package/dist/chunks/chunk.BD5VVC7K.js +2 -0
- package/dist/chunks/chunk.BD5VVC7K.js.map +7 -0
- package/dist/chunks/chunk.BJKRRAIV.js +2 -0
- package/dist/chunks/chunk.BJKRRAIV.js.map +7 -0
- package/dist/chunks/chunk.BQFFP6YO.js +2 -0
- package/dist/chunks/chunk.BQFFP6YO.js.map +7 -0
- package/dist/chunks/chunk.BS63UGCN.js +2 -0
- package/dist/chunks/chunk.BS63UGCN.js.map +7 -0
- package/dist/chunks/chunk.BXFW7QFX.js +4 -0
- package/dist/chunks/chunk.BXFW7QFX.js.map +7 -0
- package/dist/chunks/chunk.BXNLDFIF.js +17 -0
- package/dist/chunks/chunk.BXNLDFIF.js.map +7 -0
- package/dist/chunks/chunk.BXQ2YYTJ.js +248 -0
- package/dist/chunks/chunk.BXQ2YYTJ.js.map +7 -0
- package/dist/chunks/chunk.C7HVESZZ.js +4 -0
- package/dist/chunks/chunk.C7HVESZZ.js.map +7 -0
- package/dist/chunks/chunk.C7YDEBNB.js +2 -0
- package/dist/chunks/chunk.C7YDEBNB.js.map +7 -0
- package/dist/chunks/chunk.CIHOF2AT.js +4 -0
- package/dist/chunks/chunk.CIHOF2AT.js.map +7 -0
- package/dist/chunks/chunk.CWNIRMSQ.js +2 -0
- package/dist/chunks/chunk.CWNIRMSQ.js.map +7 -0
- package/dist/chunks/chunk.D3NKZAQX.js +4 -0
- package/dist/chunks/chunk.D3NKZAQX.js.map +7 -0
- package/dist/chunks/chunk.DJT4JFAM.js +2 -0
- package/dist/chunks/chunk.DJT4JFAM.js.map +7 -0
- package/dist/chunks/chunk.DM37HC2Z.js +248 -0
- package/dist/chunks/chunk.DM37HC2Z.js.map +7 -0
- package/dist/chunks/chunk.DOB7NEBD.js +17 -0
- package/dist/chunks/chunk.DOB7NEBD.js.map +7 -0
- package/dist/chunks/chunk.DSURZFO6.js +17 -0
- package/dist/chunks/chunk.DSURZFO6.js.map +7 -0
- package/dist/chunks/chunk.DWQBU2W3.js +2 -0
- package/dist/chunks/chunk.DWQBU2W3.js.map +7 -0
- package/dist/chunks/chunk.EGOU5NNX.js +256 -0
- package/dist/chunks/chunk.EGOU5NNX.js.map +7 -0
- package/dist/chunks/chunk.EJN24JDG.js +4 -0
- package/dist/chunks/chunk.EJN24JDG.js.map +7 -0
- package/dist/chunks/chunk.EQU3VQAH.js +256 -0
- package/dist/chunks/{chunk.3PCUWNFQ.js.map → chunk.EQU3VQAH.js.map} +1 -1
- package/dist/chunks/chunk.ERS2LHPX.js +2 -0
- package/dist/chunks/chunk.ERS2LHPX.js.map +7 -0
- package/dist/chunks/chunk.FARGBWSO.js +2 -0
- package/dist/chunks/chunk.FARGBWSO.js.map +7 -0
- package/dist/chunks/chunk.FMESUIDM.js +248 -0
- package/dist/chunks/chunk.FMESUIDM.js.map +7 -0
- package/dist/chunks/chunk.FOYMD2Z3.js +248 -0
- package/dist/chunks/chunk.FOYMD2Z3.js.map +7 -0
- package/dist/chunks/chunk.FPIOHJIV.js +248 -0
- package/dist/chunks/chunk.FPIOHJIV.js.map +7 -0
- package/dist/chunks/chunk.FTGUVK33.js +2 -0
- package/dist/chunks/chunk.FTGUVK33.js.map +7 -0
- package/dist/chunks/chunk.FZVMLSWI.js +2 -0
- package/dist/chunks/chunk.FZVMLSWI.js.map +7 -0
- package/dist/chunks/chunk.GBRGIUR7.js +2 -0
- package/dist/chunks/chunk.GBRGIUR7.js.map +7 -0
- package/dist/chunks/{chunk.2AYSTJEB.js → chunk.GJCUUTXA.js} +2 -2
- package/dist/chunks/{chunk.2AYSTJEB.js.map → chunk.GJCUUTXA.js.map} +1 -1
- package/dist/chunks/chunk.GO5DFO25.js +17 -0
- package/dist/chunks/chunk.GO5DFO25.js.map +7 -0
- package/dist/chunks/chunk.GSAHIC5A.js +2 -0
- package/dist/chunks/chunk.GSAHIC5A.js.map +7 -0
- package/dist/chunks/chunk.GU6KITXR.js +4 -0
- package/dist/chunks/chunk.GU6KITXR.js.map +7 -0
- package/dist/chunks/chunk.H2FIZPAI.js +2 -0
- package/dist/chunks/{chunk.LGE4PCTK.js.map → chunk.H2FIZPAI.js.map} +0 -0
- package/dist/chunks/chunk.HO5WDOW7.js +4 -0
- package/dist/chunks/chunk.HO5WDOW7.js.map +7 -0
- package/dist/chunks/chunk.HQVBB74W.js +248 -0
- package/dist/chunks/chunk.HQVBB74W.js.map +7 -0
- package/dist/chunks/chunk.HUYDLW34.js +2 -0
- package/dist/chunks/{chunk.2VWN4TWK.js.map → chunk.HUYDLW34.js.map} +0 -0
- package/dist/chunks/chunk.IJYTCKBX.js +256 -0
- package/dist/chunks/chunk.IJYTCKBX.js.map +7 -0
- package/dist/chunks/chunk.JR7VHEBV.js +2 -0
- package/dist/chunks/chunk.JR7VHEBV.js.map +7 -0
- package/dist/chunks/chunk.JVWZSBDQ.js +2 -0
- package/dist/chunks/chunk.JVWZSBDQ.js.map +7 -0
- package/dist/chunks/{chunk.FYTBJA75.js → chunk.K3V3AEZG.js} +2 -2
- package/dist/chunks/{chunk.FYTBJA75.js.map → chunk.K3V3AEZG.js.map} +0 -0
- package/dist/chunks/chunk.K5K6KLKL.js +2 -0
- package/dist/chunks/chunk.K5K6KLKL.js.map +7 -0
- package/dist/chunks/chunk.KDQDIARJ.js +4 -0
- package/dist/chunks/chunk.KDQDIARJ.js.map +7 -0
- package/dist/chunks/chunk.KRXR5GLU.js +2 -0
- package/dist/chunks/chunk.KRXR5GLU.js.map +7 -0
- package/dist/chunks/{chunk.WTFXFTGO.js → chunk.LMHSSYLE.js} +2 -2
- package/dist/chunks/{chunk.WTFXFTGO.js.map → chunk.LMHSSYLE.js.map} +1 -1
- package/dist/chunks/chunk.LXVYLELY.js +256 -0
- package/dist/chunks/chunk.LXVYLELY.js.map +7 -0
- package/dist/chunks/chunk.LYU6SWCY.js +2 -0
- package/dist/chunks/chunk.LYU6SWCY.js.map +7 -0
- package/dist/chunks/chunk.M2RJBEKH.js +17 -0
- package/dist/chunks/chunk.M2RJBEKH.js.map +7 -0
- package/dist/chunks/chunk.M326OSG5.js +2 -0
- package/dist/chunks/chunk.M326OSG5.js.map +7 -0
- package/dist/chunks/chunk.MDBRRL2K.js +2 -0
- package/dist/chunks/chunk.MDBRRL2K.js.map +7 -0
- package/dist/chunks/chunk.MRG6GDNO.js +256 -0
- package/dist/chunks/chunk.MRG6GDNO.js.map +7 -0
- package/dist/chunks/chunk.MXLEDBOH.js +2 -0
- package/dist/chunks/chunk.MXLEDBOH.js.map +7 -0
- package/dist/chunks/chunk.NCGTJPXB.js +2 -0
- package/dist/chunks/chunk.NCGTJPXB.js.map +7 -0
- package/dist/chunks/chunk.NKEEMWC7.js +2 -0
- package/dist/chunks/chunk.NKEEMWC7.js.map +7 -0
- package/dist/chunks/chunk.NO662DMX.js +2 -0
- package/dist/chunks/chunk.NO662DMX.js.map +7 -0
- package/dist/chunks/chunk.NUBCUBHW.js +35 -0
- package/dist/chunks/chunk.NUBCUBHW.js.map +7 -0
- package/dist/chunks/chunk.NWMVTP6R.js +2 -0
- package/dist/chunks/chunk.NWMVTP6R.js.map +7 -0
- package/dist/chunks/chunk.OCWKTXPR.js +2 -0
- package/dist/chunks/chunk.OCWKTXPR.js.map +7 -0
- package/dist/chunks/chunk.OFJIWBBK.js +17 -0
- package/dist/chunks/chunk.OFJIWBBK.js.map +7 -0
- package/dist/chunks/{chunk.H6FT64OC.js → chunk.OOYBLK6J.js} +2 -2
- package/dist/chunks/{chunk.H6FT64OC.js.map → chunk.OOYBLK6J.js.map} +1 -1
- package/dist/chunks/chunk.OZFJTYAZ.js +256 -0
- package/dist/chunks/chunk.OZFJTYAZ.js.map +7 -0
- package/dist/chunks/chunk.P7VKJP7S.js +2 -0
- package/dist/chunks/{chunk.TLCK5WV6.js.map → chunk.P7VKJP7S.js.map} +0 -0
- package/dist/chunks/chunk.PLTBQ7DH.js +2 -0
- package/dist/chunks/chunk.PLTBQ7DH.js.map +7 -0
- package/dist/chunks/chunk.POMD6HP5.js +2 -0
- package/dist/chunks/chunk.POMD6HP5.js.map +7 -0
- package/dist/chunks/chunk.PQXWIVHO.js +2 -0
- package/dist/chunks/chunk.PQXWIVHO.js.map +7 -0
- package/dist/chunks/chunk.Q2ZM7GYB.js +2 -0
- package/dist/chunks/chunk.Q2ZM7GYB.js.map +7 -0
- package/dist/chunks/chunk.QJYAC5DP.js +2 -0
- package/dist/chunks/chunk.QJYAC5DP.js.map +7 -0
- package/dist/chunks/chunk.RAGWQGAB.js +2 -0
- package/dist/chunks/chunk.RAGWQGAB.js.map +7 -0
- package/dist/chunks/chunk.RC3Y4QKC.js +2 -0
- package/dist/chunks/chunk.RC3Y4QKC.js.map +7 -0
- package/dist/chunks/{chunk.WRX5V6OS.js → chunk.RGGLFZST.js} +2 -2
- package/dist/chunks/{chunk.WRX5V6OS.js.map → chunk.RGGLFZST.js.map} +0 -0
- package/dist/chunks/chunk.RKEALN5W.js +4 -0
- package/dist/chunks/{chunk.MWHEGR5W.js.map → chunk.RKEALN5W.js.map} +1 -1
- package/dist/chunks/{chunk.OVEUYUBM.js → chunk.ROLA6MNV.js} +2 -2
- package/dist/chunks/{chunk.OVEUYUBM.js.map → chunk.ROLA6MNV.js.map} +1 -1
- package/dist/chunks/chunk.RW7CRBOI.js +2 -0
- package/dist/chunks/chunk.RW7CRBOI.js.map +7 -0
- package/dist/chunks/chunk.RWTLTBM6.js +2 -0
- package/dist/chunks/chunk.RWTLTBM6.js.map +7 -0
- package/dist/chunks/chunk.S2NCWVSN.js +256 -0
- package/dist/chunks/chunk.S2NCWVSN.js.map +7 -0
- package/dist/chunks/chunk.SG4QRTJJ.js +256 -0
- package/dist/chunks/chunk.SG4QRTJJ.js.map +7 -0
- package/dist/chunks/chunk.SNPBQAU7.js +17 -0
- package/dist/chunks/chunk.SNPBQAU7.js.map +7 -0
- package/dist/chunks/chunk.SSIAYAIS.js +4 -0
- package/dist/chunks/chunk.SSIAYAIS.js.map +7 -0
- package/dist/chunks/chunk.TATO6JEE.js +2 -0
- package/dist/chunks/chunk.TATO6JEE.js.map +7 -0
- package/dist/chunks/chunk.TCZKT5R7.js +248 -0
- package/dist/chunks/chunk.TCZKT5R7.js.map +7 -0
- package/dist/chunks/chunk.TXY4KKCK.js +248 -0
- package/dist/chunks/chunk.TXY4KKCK.js.map +7 -0
- package/dist/chunks/chunk.U5YAJDOO.js +2 -0
- package/dist/chunks/chunk.U5YAJDOO.js.map +7 -0
- package/dist/chunks/chunk.UC62M6HO.js +256 -0
- package/dist/chunks/chunk.UC62M6HO.js.map +7 -0
- package/dist/chunks/chunk.UIEDTBCA.js +2 -0
- package/dist/chunks/chunk.UIEDTBCA.js.map +7 -0
- package/dist/chunks/chunk.VBADKI3X.js +2 -0
- package/dist/chunks/chunk.VBADKI3X.js.map +7 -0
- package/dist/chunks/chunk.VG2C3CXQ.js +2 -0
- package/dist/chunks/chunk.VG2C3CXQ.js.map +7 -0
- package/dist/chunks/chunk.VJOMSNKI.js +2 -0
- package/dist/chunks/chunk.VJOMSNKI.js.map +7 -0
- package/dist/chunks/chunk.VKEOYY6W.js +4 -0
- package/dist/chunks/chunk.VKEOYY6W.js.map +7 -0
- package/dist/chunks/{chunk.FFWFAT4Z.js → chunk.VSIKGAIE.js} +2 -2
- package/dist/chunks/{chunk.FFWFAT4Z.js.map → chunk.VSIKGAIE.js.map} +1 -1
- package/dist/chunks/chunk.WD5BLRHC.js +2 -0
- package/dist/chunks/chunk.WD5BLRHC.js.map +7 -0
- package/dist/chunks/chunk.WDWX2PYK.js +2 -0
- package/dist/chunks/chunk.WDWX2PYK.js.map +7 -0
- package/dist/chunks/chunk.WDXO7WKG.js +2 -0
- package/dist/chunks/{chunk.QH3AKX2X.js.map → chunk.WDXO7WKG.js.map} +0 -0
- package/dist/chunks/chunk.WKTCJRNO.js +256 -0
- package/dist/chunks/chunk.WKTCJRNO.js.map +7 -0
- package/dist/chunks/chunk.WMJFRAUU.js +248 -0
- package/dist/chunks/chunk.WMJFRAUU.js.map +7 -0
- package/dist/chunks/chunk.WSU6CE53.js +248 -0
- package/dist/chunks/chunk.WSU6CE53.js.map +7 -0
- package/dist/chunks/chunk.WURSPCXJ.js +4 -0
- package/dist/chunks/chunk.WURSPCXJ.js.map +7 -0
- package/dist/chunks/chunk.XIZENE33.js +2 -0
- package/dist/chunks/{chunk.RIF2YFHE.js.map → chunk.XIZENE33.js.map} +0 -0
- package/dist/chunks/chunk.YJ6TKSVL.js +2 -0
- package/dist/chunks/chunk.YJ6TKSVL.js.map +7 -0
- package/dist/chunks/chunk.YSV3QDAO.js +2 -0
- package/dist/chunks/chunk.YSV3QDAO.js.map +7 -0
- package/dist/chunks/chunk.Z2CV4J4E.js +256 -0
- package/dist/chunks/chunk.Z2CV4J4E.js.map +7 -0
- package/dist/chunks/chunk.ZMVZD46B.js +4 -0
- package/dist/chunks/{chunk.UPS6F4M6.js.map → chunk.ZMVZD46B.js.map} +1 -1
- package/dist/chunks/chunk.ZOTOB633.js +2 -0
- package/dist/chunks/chunk.ZOTOB633.js.map +7 -0
- package/dist/chunks/chunk.ZS4C3T6Z.js +7 -0
- package/dist/chunks/chunk.ZS4C3T6Z.js.map +7 -0
- package/dist/custom-elements.json +390 -390
- package/dist/docs/components/manifest.json +49 -49
- package/dist/scw-alert/ScwAlert.js +1 -1
- package/dist/scw-alert/scw-alert.js +1 -1
- package/dist/scw-button/ScwButton.js +1 -1
- package/dist/scw-button/scw-button.js +1 -1
- package/dist/scw-card/ScwCard.js +1 -1
- package/dist/scw-card/scw-card.js +1 -1
- package/dist/scw-center-component/ScwCenterComponent.js +1 -1
- package/dist/scw-center-component/scw-center-component.js +1 -1
- package/dist/scw-component/ScwComponent.js +1 -1
- package/dist/scw-component/scw-component.js +1 -1
- package/dist/scw-components.js +1 -1
- package/dist/scw-element-component/scw-element-component.js +1 -1
- package/dist/scw-element-component/scw-element-component.js.map +1 -1
- package/dist/scw-flex-h-component/scw-flex-h-component.js +1 -1
- package/dist/scw-flex-h-component/scw-flex-h-component.js.map +1 -1
- package/dist/scw-flex-v-component/scw-flex-v-component.js +1 -1
- package/dist/scw-flex-v-component/scw-flex-v-component.js.map +1 -1
- package/dist/scw-float-component/scw-float-component.js +1 -1
- package/dist/scw-float-component/scw-float-component.js.map +1 -1
- package/dist/scw-form/scw-form.js +1 -1
- package/dist/scw-form/scw-form.js.map +1 -1
- package/dist/scw-form-component/scw-form-component.js +1 -1
- package/dist/scw-heading/ScwHeading.js +1 -1
- package/dist/scw-heading/scw-heading.js +1 -1
- package/dist/scw-icon/ScwIcon.js +1 -1
- package/dist/scw-icon/scw-icon.js +1 -1
- package/dist/scw-image/ScwImage.js +1 -1
- package/dist/scw-image/scw-image.js +1 -1
- package/dist/scw-input/scw-input.js +1 -1
- package/dist/scw-input/scw-input.js.map +1 -1
- package/dist/scw-input-field/scw-input-field.js +1 -1
- package/dist/scw-input-field/scw-input-field.js.map +1 -1
- package/dist/scw-input-layout/scw-input-layout.js +1 -1
- package/dist/scw-input-layout/scw-input-layout.js.map +1 -1
- package/dist/scw-layout-component/scw-layout-component.js +1 -1
- package/dist/scw-link/ScwLink.js +1 -1
- package/dist/scw-link/scw-link.js +1 -1
- package/dist/scw-link-base/ScwLinkBase.js +1 -1
- package/dist/scw-link-base/scw-link-base.js +1 -1
- package/dist/scw-menu/scw-menu.js +1 -1
- package/dist/scw-menu/scw-menu.js.map +1 -1
- package/dist/scw-menu-item/scw-menu-item.js +1 -1
- package/dist/scw-menu-item/scw-menu-item.js.map +1 -1
- package/dist/scw-page-alert/scw-page-alert.js +1 -1
- package/dist/scw-page-alert/scw-page-alert.js.map +1 -1
- package/dist/scw-pane-component/scw-pane-component.js +1 -1
- package/dist/scw-pane-component/scw-pane-component.js.map +1 -1
- package/dist/scw-responsive/scw-responsive.js +1 -1
- package/dist/scw-responsive/scw-responsive.js.map +1 -1
- package/dist/scw-select/scw-select.js +1 -1
- package/dist/scw-select/scw-select.js.map +1 -1
- package/dist/scw-single-input/scw-single-input.js +6 -6
- package/dist/scw-single-input/scw-single-input.js.map +3 -3
- package/dist/scw-single-input-layout/scw-single-input-layout.js +1 -1
- package/dist/scw-stack-component/scw-stack-component.js +1 -1
- package/dist/scw-stack-component/scw-stack-component.js.map +1 -1
- package/dist/scw-test/ScwTest.js +1 -1
- package/dist/scw-test/scw-test.js +1 -1
- package/dist/scw-textarea/scw-textarea.js +1 -1
- package/dist/scw-textarea/scw-textarea.js.map +1 -1
- package/dist/scw-validate/scw-validate.js +1 -1
- package/dist/scw-validate/scw-validate.js.map +1 -1
- package/dist/scw-validation/scw-validation.js +1 -1
- package/dist/scw-validation/scw-validation.js.map +1 -1
- package/dist/scw.d.ts +1 -0
- package/dist/scw.js +1 -1
- package/dist/tokens/fonts.css +3 -3
- package/dist/tokens/fonts.css.gz +0 -0
- package/dist/tokens/source/cssFonts.css +3 -3
- package/dist/tokens/source/cssFonts.css.gz +0 -0
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +1 -1
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/dist/tokens/styles.css +3 -3
- package/dist/tokens/styles.css.gz +0 -0
- package/dist/utils/suffix.js +1 -1
- package/package.json +3 -2
- package/src/utils/responsive/breakpoints.mjs +22 -0
- package/dist/chunks/chunk.2FOV3UTP.js +0 -2
- package/dist/chunks/chunk.2VWN4TWK.js +0 -2
- package/dist/chunks/chunk.BKAUBCSN.js +0 -2
- package/dist/chunks/chunk.CUPH5GST.js +0 -2
- package/dist/chunks/chunk.CUPH5GST.js.map +0 -7
- package/dist/chunks/chunk.GWTC6GAS.js +0 -4
- package/dist/chunks/chunk.HTYHFPGD.js +0 -35
- package/dist/chunks/chunk.HTYHFPGD.js.map +0 -7
- package/dist/chunks/chunk.K5EGUHA7.js +0 -2
- package/dist/chunks/chunk.LGE4PCTK.js +0 -2
- package/dist/chunks/chunk.MBDUC2JR.js +0 -2
- package/dist/chunks/chunk.MWHEGR5W.js +0 -4
- package/dist/chunks/chunk.NV7WKBSI.js +0 -2
- package/dist/chunks/chunk.QH3AKX2X.js +0 -2
- package/dist/chunks/chunk.RIF2YFHE.js +0 -2
- package/dist/chunks/chunk.TLCK5WV6.js +0 -2
- package/dist/chunks/chunk.UPS6F4M6.js +0 -4
- package/dist/chunks/chunk.UXU6F5B7.js +0 -2
- package/dist/chunks/chunk.VBLITHNX.js +0 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as u}from"./chunk.5WHRZ32E.js";import{b as n,c as r,e as f}from"./chunk.NUBCUBHW.js";import{a as o}from"./chunk.ZS4C3T6Z.js";import{g as a}from"./chunk.5YJY6NT6.js";var c=(e=>(e.text="text",e.boolean="boolean",e.submit="submit",e))(c||{}),h=(i=>(i.submit="submit",i.cancel="cancel",i))(h||{}),t=class extends f{constructor(){super(...arguments);this.formType="text";this.value="";this.placeholder="";this.selected=!1;this.readOnly=!1;this.required=!1;this.requiredLabel=" *";this.focused=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.required&&this.createAndAddValidationRule("required",this.requiredFeedback)}decorateValues(i){if(!this.name){this.warn(`${this.element} didn't find a name`);return}this.formType==="boolean"?i[this.name]=this.selected:i[this.name]=this.value}findIfRequired(){let i=this.findValidationRules();return i?i.isRequired():!1}findValidationRules(){return Array.from(this.children).find(l=>l.nodeName.indexOf("SCW-VALIDATION")===0)}validate(){let i=this.findValidationRules(),e=[];return i&&(e=i.validate(this.value)),this.invalid=e.length>0,this.invalid?this.feedback=e[0].feedback:this.feedback="",e}createValidateRule(){return document.createElement(`scw-${"validate"}${u()}`)}addValidationRule(i){let e=this.findValidationRules();e||(e=document.createElement(`scw-${"validation"}${u()}`),this.prepend(e)),Array.from(e.children).find(s=>s.getAttribute("type")===i.type)||e.appendChild(i)}createAndAddValidationRule(i,e){let l=this.createValidateRule();l.setAttribute("type",i),e&&l.setAttribute("feedback",e),this.addValidationRule(l)}removeValidationRule(i){let e=this.findValidationRules();if(!e)return;let d=Array.from(e.children).find(s=>s.type===i);d&&d.parentNode&&d.parentNode.removeChild(d)}render(){return o`
|
|
2
|
+
scw-form-component
|
|
3
|
+
`}};a([n({type:c,reflect:!0,attribute:"form-type"})],t.prototype,"formType",2),a([n({type:String})],t.prototype,"name",2),a([n({type:String})],t.prototype,"value",2),a([n({type:String})],t.prototype,"placeholder",2),a([n({type:String})],t.prototype,"selected",2),a([n({type:Boolean,attribute:"read-only"})],t.prototype,"readOnly",2),a([n({type:Boolean})],t.prototype,"required",2),a([n({type:String,attribute:"required-label"})],t.prototype,"requiredLabel",2),a([n({type:String,attribute:"required-feedback"})],t.prototype,"requiredFeedback",2),a([r()],t.prototype,"feedback",2),a([r()],t.prototype,"focused",2),a([r()],t.prototype,"invalid",2);export{c as a,h as b,t as c};
|
|
4
|
+
//# sourceMappingURL=chunk.VKEOYY6W.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/scw-form-component/scw-form-component.ts"],
|
|
4
|
+
"sourcesContent": ["import {html} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport ScwComponent from '../scw-component/ScwComponent';\nimport {Components} from '../utils/enums/Components';\nimport ScwValidate from '../scw-validate/scw-validate';\nimport ScwValidation from '../scw-validation/scw-validation';\nimport {ValidationResult, ValidationTypes}\n from '../scw-validate/validationTypes';\nimport getSuffix from '../utils/suffix';\n\nexport enum ScwFormComponentTypes {\n text = 'text',\n boolean = 'boolean',\n submit = 'submit'\n}\n\nexport enum ScwFormComponentSubmitTypes {\n submit = 'submit',\n cancel = 'cancel'\n}\n\n/**\n * ScwFormComponent\n * @class\n * @tag scw-form-component\n */\nexport default class ScwFormComponent extends ScwComponent {\n // ============== ScwFormComponent ===========================================\n /** (ScwFormComponent) the usage in a form (& scw-form a query target) */\n @property({\n type: ScwFormComponentTypes,\n reflect: true,\n attribute: 'form-type',\n })\n formType: ScwFormComponentTypes = ScwFormComponentTypes.text;\n\n /** (ScwFormComponent) name to identify form element and attach data */\n @property({type: String})\n name: string | undefined;\n\n /** (ScwFormComponent) name to identify form element and attach data */\n @property({type: String})\n value: string = '';\n\n /** (ScwFormComponent) text showing when there is no value */\n @property({type: String})\n placeholder: string = '';\n\n /** (ScwFormComponent) name to identify form element and attach data */\n @property({type: String})\n selected: boolean = false;\n\n /** (ScwFormComponent) read-only state management */\n @property({type: Boolean, attribute: 'read-only'})\n readOnly: boolean = false;\n\n /** (ScwFormComponent) required state management */\n @property({type: Boolean})\n required: boolean = false;\n\n /** (ScwFormComponent) label indicator for required */\n @property({type: String, attribute: 'required-label'})\n requiredLabel: string = ' *';\n\n /** (ScwFormComponent) label indicator for required */\n @property({type: String, attribute: 'required-feedback'})\n requiredFeedback?: string;\n\n // ===== STATE ===============================================================\n /** the text to use for feedback */\n @state() feedback: string | undefined;\n\n /** determines whether the input is focused or not */\n @state() focused : boolean = false;\n\n /** whether this form element is valid, passed validation */\n @state() invalid: boolean = false;\n\n /** connectedCallback */\n connectedCallback(): void {\n super.connectedCallback();\n if (this.required) {\n this.createAndAddValidationRule(\n ValidationTypes.required,\n this.requiredFeedback,\n );\n }\n }\n\n /** (ScwFormComponent) each form element to decorates the final data object\n * @param {Object} formData\n */\n decorateValues(formData: {}): void {\n if (!this.name) {\n this.warn(`${this.element} didn't find a name`);\n return;\n }\n if (this.formType === ScwFormComponentTypes.boolean) {\n formData[this.name] = this.selected;// ? 'true' : 'false';\n } else {\n formData[this.name] = this.value;\n }\n }\n\n /**\n * Check to see if form element is required w/o knowing if there is validation\n * @return {boolean}\n */\n findIfRequired() : boolean {\n const rules = this.findValidationRules();\n if (rules) {\n return rules.isRequired();\n }\n return false;\n }\n\n /**\n * Find validation child if there...\n * @return {ScwValidation | undefined}\n */\n findValidationRules() : ScwValidation | undefined {\n const childrenArr = Array.from(this.children);\n const validation = childrenArr.find((child: any) => {\n // component may not be initialized yet...\n return child.nodeName.indexOf('SCW-VALIDATION') === 0;\n // return child.element === Components.validation;\n });\n return validation as unknown as ScwValidation;\n }\n\n /**\n * run the validation rules if there...\n * @param {string} value\n * @return {ValidationResult[]}\n */\n validate() : ValidationResult[] {\n const validation = this.findValidationRules();\n let results : ValidationResult[] = [];\n if (validation) {\n results = validation.validate(this.value);\n }\n this.invalid = ( results.length > 0);\n if (this.invalid ) {\n this.feedback = results[0].feedback;\n } else {\n this.feedback = '';\n }\n return results;\n }\n\n\n /**\n * create a validation rule from scratch\n * @return {ScwValidate}\n */\n createValidateRule() : ScwValidate {\n return document.createElement(\n `scw-${Components.validate}${getSuffix()}`,\n ) as unknown as ScwValidate;\n }\n\n /**\n * add validation to to child validation (create if not there)\n * @param {ScwValidate} rule\n */\n addValidationRule(rule: ScwValidate ) {\n let validationRules = this.findValidationRules();\n if (!validationRules) {\n validationRules = document.createElement(\n `scw-${Components.validation}${getSuffix()}`,\n ) as unknown as ScwValidation;\n this.prepend( validationRules );\n }\n // Check for dups?\n const children = Array.from(validationRules.children);\n const existingRule = children.find((child : any) => {\n return child.getAttribute('type') === rule.type;\n });\n if ( !existingRule ) {\n validationRules.appendChild(rule);\n }\n }\n\n /**\n * create a validation of a certain type...\n * @param {ValidationTypes} type\n * @param {string} feedbackOverride\n */\n createAndAddValidationRule(\n type: ValidationTypes,\n feedbackOverride?: string,\n ) {\n const rule = this.createValidateRule();\n rule.setAttribute('type', type );// .type = type;\n if (feedbackOverride) {\n rule.setAttribute('feedback', feedbackOverride );\n }\n this.addValidationRule( rule );\n }\n\n /**\n *\n * @param {ValidationTypes} type\n */\n removeValidationRule(\n type: ValidationTypes,\n ) {\n const validationRules = this.findValidationRules();\n if (!validationRules) return;\n const children = Array.from(validationRules.children);\n const child = children.find(\n (child : any) => child.type === type,\n ) as unknown as HTMLElement;\n if ( child && child.parentNode ) child.parentNode.removeChild(child);\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return html`\n scw-form-component\n `;\n }\n}\n"],
|
|
5
|
+
"mappings": "8KAUO,GAAK,GAAL,CAAK,GACV,QAAO,OACP,UAAU,UACV,SAAS,SAHC,WAMA,EAAL,CAAK,GACV,UAAS,SACT,SAAS,SAFC,WAUZ,eAA8C,EAAa,CAA3D,kCAQI,cAAkC,OAQlC,WAAgB,GAIhB,iBAAsB,GAItB,cAAoB,GAIpB,cAAoB,GAIpB,cAAoB,GAIpB,mBAAwB,KAWjB,aAAoB,GAGpB,aAAmB,GAG5B,mBAA0B,CACxB,MAAM,kBAAkB,EACpB,KAAK,UACP,KAAK,2BACH,WACA,KAAK,gBACP,CAEJ,CAKA,eAAe,EAAoB,CACjC,GAAI,CAAC,KAAK,KAAM,CACd,KAAK,KAAK,GAAG,KAAK,4BAA4B,EAC9C,MACF,CACA,AAAI,KAAK,WAAa,UACpB,EAAS,KAAK,MAAQ,KAAK,SAE3B,EAAS,KAAK,MAAQ,KAAK,KAE/B,CAMA,gBAA2B,CACzB,GAAM,GAAQ,KAAK,oBAAoB,EACvC,MAAI,GACK,EAAM,WAAW,EAEnB,EACT,CAMA,qBAAkD,CAOhD,MALmB,AADC,OAAM,KAAK,KAAK,QAAQ,EACb,KAAK,AAAC,GAE5B,EAAM,SAAS,QAAQ,gBAAgB,IAAM,CAErD,CAEH,CAOA,UAAgC,CAC9B,GAAM,GAAa,KAAK,oBAAoB,EACxC,EAA+B,CAAC,EACpC,MAAI,IACF,GAAU,EAAW,SAAS,KAAK,KAAK,GAE1C,KAAK,QAAY,EAAQ,OAAS,EAClC,AAAI,KAAK,QACP,KAAK,SAAW,EAAQ,GAAG,SAE3B,KAAK,SAAW,GAEX,CACT,CAOA,oBAAmC,CACjC,MAAO,UAAS,cACd,OAAO,aAAsB,EAAU,GACzC,CACF,CAMA,kBAAkB,EAAoB,CACpC,GAAI,GAAkB,KAAK,oBAAoB,EAC/C,AAAK,GACH,GAAkB,SAAS,cACzB,OAAO,eAAwB,EAAU,GAC3C,EACA,KAAK,QAAS,CAAgB,GAO1B,AAHe,AADJ,MAAM,KAAK,EAAgB,QAAQ,EACtB,KAAK,AAAC,GAC3B,EAAM,aAAa,MAAM,IAAM,EAAK,IAC5C,GAEC,EAAgB,YAAY,CAAI,CAEpC,CAOA,2BACE,EACA,EACA,CACA,GAAM,GAAO,KAAK,mBAAmB,EACrC,EAAK,aAAa,OAAQ,CAAK,EAC3B,GACF,EAAK,aAAa,WAAY,CAAiB,EAEjD,KAAK,kBAAmB,CAAK,CAC/B,CAMA,qBACE,EACA,CACA,GAAM,GAAkB,KAAK,oBAAoB,EACjD,GAAI,CAAC,EAAiB,OAEtB,GAAM,GAAQ,AADG,MAAM,KAAK,EAAgB,QAAQ,EAC7B,KACrB,AAAC,GAAgB,EAAM,OAAS,CAClC,EACA,AAAK,GAAS,EAAM,YAAa,EAAM,WAAW,YAAY,CAAK,CACrE,CAMA,QAAiB,CACf,MAAO;AAAA;AAAA,KAGT,CACF,EA/LI,GALF,AAAC,EAAS,CACR,KAAM,EACN,QAAS,GACT,UAAW,WACb,CAAC,GACC,AARJ,EAQI,wBAIA,GADF,AAAC,EAAS,CAAC,KAAM,MAAM,CAAC,GACtB,AAZJ,EAYI,oBAIA,GADF,AAAC,EAAS,CAAC,KAAM,MAAM,CAAC,GACtB,AAhBJ,EAgBI,qBAIA,GADF,AAAC,EAAS,CAAC,KAAM,MAAM,CAAC,GACtB,AApBJ,EAoBI,2BAIA,GADF,AAAC,EAAS,CAAC,KAAM,MAAM,CAAC,GACtB,AAxBJ,EAwBI,wBAIA,GADF,AAAC,EAAS,CAAC,KAAM,QAAS,UAAW,WAAW,CAAC,GAC/C,AA5BJ,EA4BI,wBAIA,GADF,AAAC,EAAS,CAAC,KAAM,OAAO,CAAC,GACvB,AAhCJ,EAgCI,wBAIA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,gBAAgB,CAAC,GACnD,AApCJ,EAoCI,6BAIA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,mBAAmB,CAAC,GACtD,AAxCJ,EAwCI,gCAIO,GAAT,AAAC,EAAM,GAAE,AA5CX,EA4CW,wBAGA,GAAT,AAAC,EAAM,GAAE,AA/CX,EA+CW,uBAGA,GAAT,AAAC,EAAM,GAAE,AAlDX,EAkDW",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as u}from"./chunk.QRG5WBRU.js";import{a as l,b as
|
|
1
|
+
import{a as u}from"./chunk.QRG5WBRU.js";import{a as l,b as r,e as f}from"./chunk.NUBCUBHW.js";import{a,d as c}from"./chunk.ZS4C3T6Z.js";import{b,d as m,f as g,g as i}from"./chunk.5YJY6NT6.js";var p={};m(p,{validationWarnings:()=>v});var v,d=b(()=>{v={ariaLabelWarning:"link without a label",noIconWarning:"could not find the icon"}});var s=n=>n!=null?n:c;var h=l`
|
|
2
2
|
.scw-link-base {
|
|
3
3
|
display: block;
|
|
4
4
|
text-decoration: none;
|
|
@@ -29,4 +29,4 @@ import{a as u}from"./chunk.QRG5WBRU.js";import{a as l,b as a,e as c,g as r,j as
|
|
|
29
29
|
* Copyright 2018 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
31
|
*/
|
|
32
|
-
//# sourceMappingURL=chunk.
|
|
32
|
+
//# sourceMappingURL=chunk.VSIKGAIE.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/utils/validation/warnings.mjs", "../../../node_modules/lit-html/src/directives/if-defined.ts", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link-base/scss/scw-link-base.scss", "../../src/scw-link-base/ScwLinkBase.ts"],
|
|
4
4
|
"sourcesContent": ["\n\nexport const validationWarnings = {\n ariaLabelWarning: 'link without a label',\n noIconWarning: 'could not find the icon',\n};\n", "/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {nothing} from '../lit-html.js';\n\n/**\n * For AttributeParts, sets the attribute if the value is defined and removes\n * the attribute if the value is undefined.\n *\n * For other part types, this directive is a no-op.\n */\nexport const ifDefined = <T>(value: T) => value ?? nothing;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n.scw-link-base {\n display: block;\n text-decoration: none;\n}\n.scw-link-base:focus-visible {\n outline: none;\n box-shadow: var(--scw-effect-focus-shadow);\n border-radius: 4px;\n}\n.scw-link-base:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n}`;\n", "import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\nimport ScwComponent from '../scw-component/ScwComponent';\nimport parseLightDomAnchor from './parseLightDomAnchor';\nimport {Components} from '../utils/enums/Components';\nimport styles from './scss/scw-link-base.scss';\nconst {validationWarnings} = require('../utils/validation/warnings.mjs');\n\n/**\n * ScwLinkBase\n * @class\n * @tag scw-link-base\n *\n * @slot [default=\"<a href target />\"]\n (OPTIONAL) anchor (for SEO) will determine the label, href, and target.\n * @slot [default=\"<... />\"]\n (OPTIONAL) random content (paired with design=\"plain\") will wrap that\n content with a link.\n */\nexport default class ScwLinkBase extends ScwComponent {/**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n // ============== ScwLinkBase =======================================\n /**\n * (ScwLinkBase) Main text within component\n * @type {string}\n */\n @property({type: String, reflect: true, attribute: 'aria-label'})\n ariaLabel: string = '';\n\n /**\n * (ScwLinkBase) Makes the link unclickable and faded out.\n * @type {string}\n */\n @property({type: String, attribute: 'aria-disabled'})\n ariaDisabled: string = 'false';\n\n /**\n * (ScwLinkBase) link location - private\n * ...should not be able to be set directly b/c scu-link should use this\n */\n @property({type: String, reflect: true})\n href : string | undefined;\n\n /**\n * (ScwLinkBase) link target - private\n * ...should not be able to be set directly b/c scu-link should use this\n */\n @property({type: String, reflect: true})\n target : '_blank' | '_parent' | '_self' | '_top' | undefined;\n\n /**\n * Constructor\n */\n constructor() {\n super();\n this.element = Components.linkBase;\n }\n\n /**\n * request update\n */\n updated() {\n if (this.ariaDisabled === 'true') {\n this.addEventListener('click', this.cancelEvent, {capture: true} );\n } else {\n this.removeEventListener('click', this.cancelEvent, {capture: true} );\n }\n }\n\n /**\n * cancel event\n * @param {Event} evt\n */\n cancelEvent(evt: Event) {\n evt.preventDefault();\n evt.stopImmediatePropagation();\n }\n\n /**\n * override with anchor info\n */\n parseAndValidateLightDom() {\n super.parseAndValidateLightDom();\n parseLightDomAnchor(this);\n if (this.isLink() && this.ariaLabel.trim().length === 0) {\n this.warn(validationWarnings.ariaLabelWarning);// 'link without a label');\n }\n }\n\n /**\n * Should this element be rendered as a link...\n * @return {boolean}\n */\n isLink() {\n if (this.href || this.getAttribute('onclick')) {\n return true;\n }\n return false;\n }\n\n /**\n * renderLink\n * @param {object} children\n * @param {string} styles\n * @return {object} component DOM\n */\n renderLink(children: object, styles?: string): object {\n if (this.isLink() && this.ariaDisabled !== 'true') {\n return html`\n <a\n class=\"scw-link-base\"\n style=\"${ifDefined(styles)}\"\n href=\"${this.href ? this.href : 'javascript:'}\"\n target=\"${this.target ? this.target : '_self'}\"\n aria-label=\"${this.ariaLabel}\">\n ${children}\n </a>`;\n } else {\n // need a consistent container for styling\n return html`\n <div class=\"scw-link-base\"\n style=\"${ifDefined(styles)}\">\n ${children}\n </div>`;\n }\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return this.renderLink(\n html`${this._lastWarning ? this._lastWarning : this.ariaLabel}`,\n );\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": "gMAAA,4CAEa,GAFb,SAEO,AAAM,EAAqB,CAChC,iBAAkB,uBAClB,cAAe,yBACjB,OCSa,GAAgB,GAAa,AAAA,GAAA,KAAA,EAAS,ECbnD,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCMf,GAAM,CAAC,sBAAsB,WAa7B,eAAyC,EAAa,CA0CpD,aAAc,CACZ,MAAM,EA3BN,eAAoB,GAOpB,kBAAuB,QAqBvB,KAAK,QAAU,WACjB,WA1CW,SAAS,CAClB,MAAO,CACL,MAAM,OACN,CACF,CACF,CA0CA,SAAU,CACR,AAAI,KAAK,eAAiB,OACxB,KAAK,iBAAiB,QAAS,KAAK,YAAa,CAAC,QAAS,EAAI,CAAE,EAEjE,KAAK,oBAAoB,QAAS,KAAK,YAAa,CAAC,QAAS,EAAI,CAAE,CAExE,CAMA,YAAY,EAAY,CACtB,EAAI,eAAe,EACnB,EAAI,yBAAyB,CAC/B,CAKA,0BAA2B,CACzB,MAAM,yBAAyB,EAC/B,EAAoB,IAAI,EACpB,KAAK,OAAO,GAAK,KAAK,UAAU,KAAK,EAAE,SAAW,GACpD,KAAK,KAAK,EAAmB,gBAAgB,CAEjD,CAMA,QAAS,CACP,MAAI,QAAK,MAAQ,KAAK,aAAa,SAAS,EAI9C,CAQA,WAAW,EAAkB,EAAyB,CACpD,MAAI,MAAK,OAAO,GAAK,KAAK,eAAiB,OAClC;AAAA;AAAA;AAAA,mBAGM,EAAU,CAAM;AAAA,kBACjB,KAAK,KAAO,KAAK,KAAO;AAAA,oBACtB,KAAK,OAAS,KAAK,OAAS;AAAA,wBACxB,KAAK;AAAA,YACjB;AAAA,cAIC;AAAA;AAAA,mBAEM,EAAU,CAAM;AAAA,YACvB;AAAA,eAGV,CAMA,QAAiB,CACf,MAAO,MAAK,WACV,IAAO,KAAK,aAAe,KAAK,aAAe,KAAK,WACtD,CACF,CACF,EA7GI,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,GAAM,UAAW,YAAY,CAAC,GAC9D,AAhBJ,EAgBI,yBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,eAAe,CAAC,GAClD,AAvBJ,EAuBI,4BAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AA9BJ,EA8BI,oBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AArCJ,EAqCI",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
File without changes
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import{b as g}from"./chunk.PXQQTQKT.js";import{a as t}from"./chunk.K3V3AEZG.js";import{a as c}from"./chunk.WCJ4CSRJ.js";import{c as d}from"./chunk.VSIKGAIE.js";import{a as i,b as r,c as l}from"./chunk.NUBCUBHW.js";import{a as n}from"./chunk.ZS4C3T6Z.js";import{g as o}from"./chunk.5YJY6NT6.js";var p=i`
|
|
2
|
+
:host .label {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}`;var w=i`
|
|
7
|
+
:host([design=text]) .scw-link-base {
|
|
8
|
+
outline: none;
|
|
9
|
+
display: inline;
|
|
10
|
+
}
|
|
11
|
+
:host([design=text]) .scw-link-base .label {
|
|
12
|
+
text-align: LEFT;
|
|
13
|
+
font: var(--scw-type-text-font);
|
|
14
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
15
|
+
text-decoration: underline;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([design=text]:hover) a.scw-link-base .label,
|
|
19
|
+
:host([design=text][hover]) a.scw-link-base .label {
|
|
20
|
+
text-align: LEFT;
|
|
21
|
+
font: var(--scw-type-text-font);
|
|
22
|
+
color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([design=text][aria-disabled=true]) .scw-link-base .label {
|
|
26
|
+
text-align: LEFT;
|
|
27
|
+
font: var(--scw-type-text-font);
|
|
28
|
+
color: var(--scw-color-grey-07);
|
|
29
|
+
}`;var h=i`
|
|
30
|
+
:host([design=solid]) .scw-link-base {
|
|
31
|
+
outline: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
background-color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
34
|
+
border-radius: 10px 10px 10px 10px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-flow: row nowrap;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
40
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
41
|
+
padding-top: calc(var(--scw-spacing-1) * 0.5);
|
|
42
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.5);
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
}
|
|
45
|
+
:host([design=solid]) .scw-link-base > *:not(:last-child) {
|
|
46
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
47
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
48
|
+
}
|
|
49
|
+
:host([design=solid]) .scw-link-base .label {
|
|
50
|
+
text-align: LEFT;
|
|
51
|
+
font: var(--scw-type-text-bold-06-font);
|
|
52
|
+
color: var(--scw-color-grey-10);
|
|
53
|
+
min-height: 22px;
|
|
54
|
+
}
|
|
55
|
+
:host([design=solid]) .scw-link-base .icon {
|
|
56
|
+
width: 24px;
|
|
57
|
+
height: 24px;
|
|
58
|
+
}
|
|
59
|
+
:host([design=solid]) .scw-link-base .icon svg {
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
vertical-align: top;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
fill: var(--scw-color-grey-10);
|
|
65
|
+
}
|
|
66
|
+
:host([design=solid]) .scw-link-base .icon svg * {
|
|
67
|
+
fill: var(--scw-color-grey-10);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([design=solid][icon][icon-side=left]) .scw-link-base {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-flow: row nowrap;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
padding-left: calc(var(--scw-spacing-1) * 1.2);
|
|
76
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
77
|
+
padding-top: calc(var(--scw-spacing-1) * 0.4);
|
|
78
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.4);
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
}
|
|
81
|
+
:host([design=solid][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {
|
|
82
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
83
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([design=solid][icon][icon-side=right]) .scw-link-base {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-flow: row nowrap;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
92
|
+
padding-right: calc(var(--scw-spacing-1) * 1.2);
|
|
93
|
+
padding-top: calc(var(--scw-spacing-1) * 0.4);
|
|
94
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.4);
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
}
|
|
97
|
+
:host([design=solid][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {
|
|
98
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
99
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([design=solid]:hover) a.scw-link-base,
|
|
103
|
+
:host([design=solid][hover]) a.scw-link-base {
|
|
104
|
+
background-color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
105
|
+
border-radius: 10px 10px 10px 10px;
|
|
106
|
+
}
|
|
107
|
+
:host([design=solid]:hover) a.scw-link-base .label,
|
|
108
|
+
:host([design=solid][hover]) a.scw-link-base .label {
|
|
109
|
+
text-align: LEFT;
|
|
110
|
+
font: var(--scw-type-text-bold-06-font);
|
|
111
|
+
color: var(--scw-color-grey-10);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base {
|
|
115
|
+
background-color: var(--scw-color-grey-095);
|
|
116
|
+
border-radius: 10px 10px 10px 10px;
|
|
117
|
+
}
|
|
118
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .label {
|
|
119
|
+
text-align: LEFT;
|
|
120
|
+
font: var(--scw-type-text-bold-06-font);
|
|
121
|
+
color: var(--scw-color-grey-07);
|
|
122
|
+
}
|
|
123
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg {
|
|
124
|
+
fill: var(--scw-color-grey-07);
|
|
125
|
+
}
|
|
126
|
+
:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg * {
|
|
127
|
+
fill: var(--scw-color-grey-07);
|
|
128
|
+
}`;var f=i`
|
|
129
|
+
:host([design=outlined]) .scw-link-base {
|
|
130
|
+
outline: none;
|
|
131
|
+
user-select: none;
|
|
132
|
+
background-color: var(--scw-color-grey-10);
|
|
133
|
+
border-radius: 10px 10px 10px 10px;
|
|
134
|
+
border-width: 2px;
|
|
135
|
+
border-style: solid;
|
|
136
|
+
border-color: var(--scw-color-04, var(--scw-color-primary-04));
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-flow: row nowrap;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
align-items: center;
|
|
141
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
142
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
143
|
+
padding-top: calc(var(--scw-spacing-1) * 0.3);
|
|
144
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.3);
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
}
|
|
147
|
+
:host([design=outlined]) .scw-link-base > *:not(:last-child) {
|
|
148
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
149
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
150
|
+
}
|
|
151
|
+
:host([design=outlined]) .scw-link-base .label {
|
|
152
|
+
text-align: LEFT;
|
|
153
|
+
font: var(--scw-type-text-bold-06-font);
|
|
154
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
155
|
+
min-height: 22px;
|
|
156
|
+
}
|
|
157
|
+
:host([design=outlined]) .scw-link-base .icon {
|
|
158
|
+
width: 24px;
|
|
159
|
+
height: 24px;
|
|
160
|
+
}
|
|
161
|
+
:host([design=outlined]) .scw-link-base .icon svg {
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
vertical-align: top;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
fill: var(--scw-color-primary-03);
|
|
167
|
+
}
|
|
168
|
+
:host([design=outlined]) .scw-link-base .icon svg * {
|
|
169
|
+
fill: var(--scw-color-primary-03);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host([design=outlined][icon][icon-side=left]) .scw-link-base {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-flow: row nowrap;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
align-items: center;
|
|
177
|
+
padding-left: calc(var(--scw-spacing-1) * 1.2);
|
|
178
|
+
padding-right: calc(var(--scw-spacing-1) * 1.6);
|
|
179
|
+
padding-top: calc(var(--scw-spacing-1) * 0.2);
|
|
180
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.2);
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
}
|
|
183
|
+
:host([design=outlined][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {
|
|
184
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
185
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
:host([design=outlined][icon][icon-side=right]) .scw-link-base {
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-flow: row nowrap;
|
|
191
|
+
justify-content: center;
|
|
192
|
+
align-items: center;
|
|
193
|
+
padding-left: calc(var(--scw-spacing-1) * 1.6);
|
|
194
|
+
padding-right: calc(var(--scw-spacing-1) * 1.2);
|
|
195
|
+
padding-top: calc(var(--scw-spacing-1) * 0.2);
|
|
196
|
+
padding-bottom: calc(var(--scw-spacing-1) * 0.2);
|
|
197
|
+
display: inline-flex;
|
|
198
|
+
}
|
|
199
|
+
:host([design=outlined][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {
|
|
200
|
+
margin-right: calc(var(--scw-spacing-1) * 0.4);
|
|
201
|
+
--margin-right: calc( var( --scw-spacing-1 ) * 0.4 );
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([design=outlined]:hover) a.scw-link-base,
|
|
205
|
+
:host([design=outlined][hover]) a.scw-link-base {
|
|
206
|
+
background-color: var(--scw-color-grey-10);
|
|
207
|
+
border-radius: 10px 10px 10px 10px;
|
|
208
|
+
border-width: 2px;
|
|
209
|
+
border-style: solid;
|
|
210
|
+
border-color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
211
|
+
}
|
|
212
|
+
:host([design=outlined]:hover) a.scw-link-base .label,
|
|
213
|
+
:host([design=outlined][hover]) a.scw-link-base .label {
|
|
214
|
+
text-align: LEFT;
|
|
215
|
+
font: var(--scw-type-text-bold-06-font);
|
|
216
|
+
color: var(--scw-color-01, var(--scw-color-primary-01));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base {
|
|
220
|
+
background-color: var(--scw-color-grey-10);
|
|
221
|
+
border-radius: 10px 10px 10px 10px;
|
|
222
|
+
border-width: 2px;
|
|
223
|
+
border-style: solid;
|
|
224
|
+
border-color: var(--scw-color-grey-09);
|
|
225
|
+
}
|
|
226
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .label {
|
|
227
|
+
text-align: LEFT;
|
|
228
|
+
font: var(--scw-type-text-bold-06-font);
|
|
229
|
+
color: var(--scw-color-grey-07);
|
|
230
|
+
}
|
|
231
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg {
|
|
232
|
+
fill: var(--scw-color-grey-07);
|
|
233
|
+
}
|
|
234
|
+
:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg * {
|
|
235
|
+
fill: var(--scw-color-grey-07);
|
|
236
|
+
}`;var b=i`
|
|
237
|
+
:host([design=plain]) .scw-link-base {
|
|
238
|
+
outline: none;
|
|
239
|
+
display: inline-block;
|
|
240
|
+
}`;var e=class extends d{constructor(){super();this.iconSide="left";this.design="solid";this._svgInfo="";this.element="link",console.log("ICON"),c(this.icon,s=>{s===!1?this.warn(`scw-icon could not find ${this.icon}`):(this._svgInfo=s,console.log("found it"))})}static get styles(){return[super.styles,p]}connectedCallback(){super.connectedCallback(),console.log("hi")}parseAndValidateLightDom(){super.parseAndValidateLightDom(),c(this.icon,s=>{s===!1?this.warn(`scw-icon could not find ${this.icon}`):this._svgInfo=s})}validDesigns(){return g}doShowIcon(){return!!(this.icon&&this.design!=="plain"&&this.design!=="text")}renderContent(){let s=this.doShowIcon(),a=`<style>${this.findStyle().cssText}</style>`;return this.design==="plain"?n`
|
|
241
|
+
${t(a)}
|
|
242
|
+
<slot></slot>
|
|
243
|
+
`:n`
|
|
244
|
+
${s&&this.iconSide==="left"?n`
|
|
245
|
+
<div class="icon">
|
|
246
|
+
${t(this._svgInfo)}
|
|
247
|
+
</div>`:""}
|
|
248
|
+
${t(a)}
|
|
249
|
+
<div class="label">
|
|
250
|
+
${this.ariaLabel}
|
|
251
|
+
</div>
|
|
252
|
+
${s&&this.iconSide==="right"?n`
|
|
253
|
+
<div class="icon">
|
|
254
|
+
${t(this._svgInfo)}
|
|
255
|
+
</div>`:""}`}findStyle(){switch(this.design){case"solid":return h;case"outlined":return f;case"text":return w;case"plain":default:return b}}render(){return this.renderLink(this.renderContent())}};o([r({type:String,reflect:!0})],e.prototype,"icon",2),o([r({type:String,reflect:!0,attribute:"icon-side"})],e.prototype,"iconSide",2),o([r({type:String,reflect:!0})],e.prototype,"design",2),o([l()],e.prototype,"_svgInfo",2);export{e as a};
|
|
256
|
+
//# sourceMappingURL=chunk.WKTCJRNO.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-text.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-solid.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-outlined.scss", "sass-plugin-0:/Users/scottrouse/Workspace/scu-design-system-mono/scu-web-components/src/scw-link/scss/scw-link-plain.scss", "../../src/scw-link/ScwLink.ts"],
|
|
4
|
+
"sourcesContent": ["import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host .label {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=text]) .scw-link-base {\n outline: none;\n display: inline;\n}\n:host([design=text]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-03, var(--scw-color-primary-03));\n text-decoration: underline;\n}\n\n:host([design=text]:hover) a.scw-link-base .label,\n:host([design=text][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n\n:host([design=text][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=solid]) .scw-link-base {\n outline: none;\n user-select: none;\n background-color: var(--scw-color-03, var(--scw-color-primary-03));\n border-radius: 10px 10px 10px 10px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.5);\n padding-bottom: calc(var(--scw-spacing-1) * 0.5);\n display: inline-flex;\n}\n:host([design=solid]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n:host([design=solid]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-10);\n min-height: 22px;\n}\n:host([design=solid]) .scw-link-base .icon {\n width: 24px;\n height: 24px;\n}\n:host([design=solid]) .scw-link-base .icon svg {\n box-sizing: border-box;\n vertical-align: top;\n width: 100%;\n height: 100%;\n fill: var(--scw-color-grey-10);\n}\n:host([design=solid]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-10);\n}\n\n:host([design=solid][icon][icon-side=left]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.2);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.4);\n padding-bottom: calc(var(--scw-spacing-1) * 0.4);\n display: inline-flex;\n}\n:host([design=solid][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=solid][icon][icon-side=right]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.2);\n padding-top: calc(var(--scw-spacing-1) * 0.4);\n padding-bottom: calc(var(--scw-spacing-1) * 0.4);\n display: inline-flex;\n}\n:host([design=solid][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=solid]:hover) a.scw-link-base,\n:host([design=solid][hover]) a.scw-link-base {\n background-color: var(--scw-color-01, var(--scw-color-primary-01));\n border-radius: 10px 10px 10px 10px;\n}\n:host([design=solid]:hover) a.scw-link-base .label,\n:host([design=solid][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-10);\n}\n\n:host([design=solid][aria-disabled=true]) .scw-link-base {\n background-color: var(--scw-color-grey-095);\n border-radius: 10px 10px 10px 10px;\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-07);\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg {\n fill: var(--scw-color-grey-07);\n}\n:host([design=solid][aria-disabled=true]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=outlined]) .scw-link-base {\n outline: none;\n user-select: none;\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-04, var(--scw-color-primary-04));\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.3);\n padding-bottom: calc(var(--scw-spacing-1) * 0.3);\n display: inline-flex;\n}\n:host([design=outlined]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n:host([design=outlined]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-03, var(--scw-color-primary-03));\n min-height: 22px;\n}\n:host([design=outlined]) .scw-link-base .icon {\n width: 24px;\n height: 24px;\n}\n:host([design=outlined]) .scw-link-base .icon svg {\n box-sizing: border-box;\n vertical-align: top;\n width: 100%;\n height: 100%;\n fill: var(--scw-color-primary-03);\n}\n:host([design=outlined]) .scw-link-base .icon svg * {\n fill: var(--scw-color-primary-03);\n}\n\n:host([design=outlined][icon][icon-side=left]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.2);\n padding-right: calc(var(--scw-spacing-1) * 1.6);\n padding-top: calc(var(--scw-spacing-1) * 0.2);\n padding-bottom: calc(var(--scw-spacing-1) * 0.2);\n display: inline-flex;\n}\n:host([design=outlined][icon][icon-side=left]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=outlined][icon][icon-side=right]) .scw-link-base {\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 1.6);\n padding-right: calc(var(--scw-spacing-1) * 1.2);\n padding-top: calc(var(--scw-spacing-1) * 0.2);\n padding-bottom: calc(var(--scw-spacing-1) * 0.2);\n display: inline-flex;\n}\n:host([design=outlined][icon][icon-side=right]) .scw-link-base > *:not(:last-child) {\n margin-right: calc(var(--scw-spacing-1) * 0.4);\n --margin-right: calc( var( --scw-spacing-1 ) * 0.4 );\n}\n\n:host([design=outlined]:hover) a.scw-link-base,\n:host([design=outlined][hover]) a.scw-link-base {\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n:host([design=outlined]:hover) a.scw-link-base .label,\n:host([design=outlined][hover]) a.scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-01, var(--scw-color-primary-01));\n}\n\n:host([design=outlined][aria-disabled=true]) .scw-link-base {\n background-color: var(--scw-color-grey-10);\n border-radius: 10px 10px 10px 10px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-grey-09);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .label {\n text-align: LEFT;\n font: var(--scw-type-text-bold-06-font);\n color: var(--scw-color-grey-07);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg {\n fill: var(--scw-color-grey-07);\n}\n:host([design=outlined][aria-disabled=true]) .scw-link-base .icon svg * {\n fill: var(--scw-color-grey-07);\n}`;\n", "import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host([design=plain]) .scw-link-base {\n outline: none;\n display: inline-block;\n}`;\n", "import {html} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport {unsafeHTML} from 'lit/directives/unsafe-html.js';\nimport styles from './scss/scw-link.scss';\nimport stylesText from './scss/scw-link-text.scss';\nimport stylesSolid from './scss/scw-link-solid.scss';\nimport stylesOutline from './scss/scw-link-outlined.scss';\nimport stylesPlain from './scss/scw-link-plain.scss';\nimport {\n ScwLinkSide,\n ScwLinkDesigns,\n} from './scw-link-enums';\nimport getIconSvg from '../utils/getIconSvg';\nimport {Components} from '../utils/enums/Components';\nimport {ScwMenuItemDesigns} from '../scw-menu-item/scw-menu-item-enums';\nimport ScwLinkBase from '../scw-link-base/ScwLinkBase';\n// import 'lit/experimental-hydrate-support.js';\n\n/**\n * ScwLink\n * @class\n * @tag scw-link\n *\n * @slot [default=\"<a href target />\"]\n (OPTIONAL) anchor (for SEO) will determine the label, href, and target.\n * @slot [default=\"<... />\"]\n (OPTIONAL) random content (paired with design=\"plain\") will wrap that\n content with a link.\n */\nexport default class ScwLink extends ScwLinkBase {\n /**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n // ============== ScwLink ==================================================\n /**\n * (ScwLink) Determines the icon to use with the text\n * @type {string}\n */\n @property({type: String, reflect: true})\n icon: string | undefined;\n\n /**\n * (ScwLink) Determines which side the icon should show up on\n * @type {string}\n */\n @property({type: String, reflect: true, attribute: 'icon-side'})\n iconSide: ScwLinkSide = ScwLinkSide.left;\n\n /**\n * (ScwLink) The design style of the link.\n * @type {string}\n */\n @property({type: String, reflect: true})\n design: ScwLinkDesigns | ScwMenuItemDesigns = ScwLinkDesigns.solid;\n\n @state() _svgInfo : string = '';\n\n /**\n * Constructor\n */\n constructor() {\n super();\n this.element = Components.link;\n console.log('ICON');\n getIconSvg(this.icon, (svgInfo: string | false ) => {\n if (svgInfo === false ) {\n this.warn(`scw-icon could not find ${this.icon}`);\n } else {\n this._svgInfo = svgInfo;\n console.log('found it');\n }\n });\n }\n\n /**\n * connectedCallback\n */\n connectedCallback(): void {\n super.connectedCallback();\n console.log('hi');\n }\n\n /** parseAndValidateLightDom, just adding local parsing and validation */\n parseAndValidateLightDom() {\n super.parseAndValidateLightDom();\n getIconSvg(this.icon, (svgInfo: string | false ) => {\n if (svgInfo === false ) {\n this.warn(`scw-icon could not find ${this.icon}`);\n } else {\n this._svgInfo = svgInfo;\n }\n });\n }\n\n /**\n * Way to extend valid design types...\n * @return {object} object of valid designs relative to this object\n */\n validDesigns() : object {\n return ScwLinkDesigns;\n }\n\n /**\n * Way to extend valid design icon types...\n * @return {boolean}\n */\n doShowIcon() : boolean {\n if ( this.icon &&\n this.design !== ScwLinkDesigns.plain &&\n this.design !== ScwLinkDesigns.text ) {\n return true;\n }\n return false;\n }\n\n /**\n * renderContent\n * @return {object} component DOM\n */\n renderContent(): object {\n const doShowIcon = this.doShowIcon();\n // ssr is fighting injecting css this way...\n const localCss = `<style>${this.findStyle().cssText}</style>`;\n\n if (this.design === ScwLinkDesigns.plain) {\n return html`\n ${unsafeHTML(localCss)}\n <slot></slot>\n `;\n }\n\n return html`\n ${doShowIcon && this.iconSide === ScwLinkSide.left ?\n html`\n <div class=\"icon\">\n ${unsafeHTML(this._svgInfo)}\n </div>` : ''}\n ${unsafeHTML(localCss)}\n <div class=\"label\">\n ${this.ariaLabel}\n </div>\n ${doShowIcon && this.iconSide === ScwLinkSide.right ?\n html`\n <div class=\"icon\">\n ${unsafeHTML(this._svgInfo)}\n </div>` : ''}`;\n }\n\n /**\n * find the style per design\n * @return {object}\n */\n findStyle() {\n switch (this.design) {\n case ScwLinkDesigns.solid:\n return stylesSolid;\n case ScwLinkDesigns.outlined:\n return stylesOutline;\n case ScwLinkDesigns.text:\n return stylesText;\n case ScwLinkDesigns.plain:\n default:\n return stylesPlain;\n }\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return this.renderLink(\n this.renderContent(),\n );\n }\n}\n"],
|
|
5
|
+
"mappings": "sSACA,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCAf,GAAO,GAAQ;AAAA;AAAA;AAAA;GC4Bf,mBAAqC,EAAY,CAsC/C,aAAc,CACZ,MAAM,EAfN,cAAwB,OAOxB,YAA8C,QAEvC,cAAoB,GAO3B,KAAK,QAAU,OAClB,QAAQ,IAAI,MAAM,EACf,EAAW,KAAK,KAAM,AAAC,GAA6B,CAClD,AAAI,IAAY,GACd,KAAK,KAAK,2BAA2B,KAAK,MAAM,EAEhD,MAAK,SAAW,EAChB,QAAQ,IAAI,UAAU,EAE1B,CAAC,CACH,WA9CW,SAAS,CAClB,MAAO,CACL,MAAM,OACN,CACF,CACF,CA8CA,mBAA0B,CACxB,MAAM,kBAAkB,EACxB,QAAQ,IAAI,IAAI,CAClB,CAGA,0BAA2B,CACzB,MAAM,yBAAyB,EAC/B,EAAW,KAAK,KAAM,AAAC,GAA6B,CAClD,AAAI,IAAY,GACd,KAAK,KAAK,2BAA2B,KAAK,MAAM,EAEhD,KAAK,SAAW,CAEpB,CAAC,CACH,CAMA,cAAwB,CACtB,MAAO,EACT,CAMA,YAAuB,CACrB,MAAK,QAAK,MACR,KAAK,SAAW,SAChB,KAAK,SAAW,OAIpB,CAMA,eAAwB,CACtB,GAAM,GAAa,KAAK,WAAW,EAE7B,EAAW,UAAU,KAAK,UAAU,EAAE,kBAE5C,MAAI,MAAK,SAAW,QACX;AAAA,UACH,EAAW,CAAQ;AAAA;AAAA,QAKlB;AAAA,QACH,GAAc,KAAK,WAAa,OAClC;AAAA;AAAA,YAEM,EAAW,KAAK,QAAQ;AAAA,gBAClB;AAAA,UACR,EAAW,CAAQ;AAAA;AAAA,YAEjB,KAAK;AAAA;AAAA,QAET,GAAc,KAAK,WAAa,QAClC;AAAA;AAAA,YAEM,EAAW,KAAK,QAAQ;AAAA,gBAClB,IAChB,CAMA,WAAY,CACV,OAAQ,KAAK,YACN,QACH,MAAO,OACJ,WACH,MAAO,OACJ,OACH,MAAO,OACJ,gBAEH,MAAO,GAEb,CAMC,QAAiB,CAChB,MAAO,MAAK,WACV,KAAK,cAAc,CACrB,CACF,CACF,EAxII,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AAjBJ,EAiBI,oBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,GAAM,UAAW,WAAW,CAAC,GAC7D,AAxBJ,EAwBI,wBAOA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AA/BJ,EA+BI,sBAEO,GAAT,AAAC,EAAM,GAAE,AAjCX,EAiCW",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import{a as n,b as i}from"./chunk.RGGLFZST.js";import{a as g}from"./chunk.OCWKTXPR.js";import{c}from"./chunk.VSIKGAIE.js";import{a as r,b as a,c as s,e as l}from"./chunk.NUBCUBHW.js";import{a as d}from"./chunk.UM2EZXNH.js";import{g as o}from"./chunk.5YJY6NT6.js";var h=r`
|
|
2
|
+
:host {
|
|
3
|
+
/* scw element */
|
|
4
|
+
position: relative;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
--margin-right: initial;
|
|
7
|
+
--margin-bottom: initial;
|
|
8
|
+
--gap-h-int: initial;
|
|
9
|
+
--gap-v-int: initial;
|
|
10
|
+
margin-right: var(--margin-right, var(--gap-h-int, initial));
|
|
11
|
+
margin-bottom: var(--margin-bottom, var(--gap-v-int, initial));
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([warning]) {
|
|
16
|
+
outline: 2px solid red !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([size=medium]) {
|
|
20
|
+
display: block;
|
|
21
|
+
background-color: rgba(0, 0, 0, 0);
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-flow: column nowrap;
|
|
24
|
+
justify-content: flex-start;
|
|
25
|
+
align-items: flex-start;
|
|
26
|
+
padding-left: 0px;
|
|
27
|
+
padding-right: 0px;
|
|
28
|
+
padding-top: 0px;
|
|
29
|
+
padding-bottom: 0px;
|
|
30
|
+
/*.image-box {
|
|
31
|
+
width: 100%;
|
|
32
|
+
padding-bottom: 38.8888888889%;
|
|
33
|
+
position: relative;
|
|
34
|
+
}*/
|
|
35
|
+
/*.image {
|
|
36
|
+
@include size-medium-image-mixins.box;
|
|
37
|
+
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: 0;
|
|
40
|
+
background-position: center;
|
|
41
|
+
background-size: cover;
|
|
42
|
+
}*/
|
|
43
|
+
/*.action {
|
|
44
|
+
@include size-medium-action-mixins.box;
|
|
45
|
+
@include size-medium-action-mixins.sizing;
|
|
46
|
+
}*/
|
|
47
|
+
}
|
|
48
|
+
:host([size=medium]) > *:not(:last-child) {
|
|
49
|
+
margin-bottom: calc(var(--scw-spacing-1) * 0.8);
|
|
50
|
+
--margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );
|
|
51
|
+
}
|
|
52
|
+
:host([size=medium]) .description {
|
|
53
|
+
text-align: LEFT;
|
|
54
|
+
font: var(--scw-type-text-font);
|
|
55
|
+
color: var(--scw-color-grey-02);
|
|
56
|
+
align-self: stretch;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([size=small]) {
|
|
60
|
+
display: block;
|
|
61
|
+
background-color: rgba(0, 0, 0, 0);
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-flow: column nowrap;
|
|
64
|
+
justify-content: flex-start;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
padding-left: 0px;
|
|
67
|
+
padding-right: 0px;
|
|
68
|
+
padding-top: 0px;
|
|
69
|
+
padding-bottom: 0px;
|
|
70
|
+
/*.image-box {
|
|
71
|
+
width: 100%;
|
|
72
|
+
padding-bottom: 88.9473684211%;
|
|
73
|
+
position: relative;
|
|
74
|
+
}*/
|
|
75
|
+
/*.image {
|
|
76
|
+
@include size-small-image-mixins.box;
|
|
77
|
+
|
|
78
|
+
position: absolute;
|
|
79
|
+
inset: 0;
|
|
80
|
+
background-position: center;
|
|
81
|
+
background-size: cover;
|
|
82
|
+
}*/
|
|
83
|
+
}
|
|
84
|
+
:host([size=small]) > *:not(:last-child) {
|
|
85
|
+
margin-bottom: calc(var(--scw-spacing-1) * 0.8);
|
|
86
|
+
--margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );
|
|
87
|
+
}
|
|
88
|
+
:host([size=small]) .description {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
:host([size=small]) .action {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host .super-heading.mortgage {
|
|
96
|
+
text-align: LEFT;
|
|
97
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
98
|
+
color: var(--scw-color-04, var(--scw-color-mortgage-04));
|
|
99
|
+
align-self: stretch;
|
|
100
|
+
}
|
|
101
|
+
:host .super-heading.savings {
|
|
102
|
+
text-align: LEFT;
|
|
103
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
104
|
+
color: var(--scw-color-04, var(--scw-color-savings-04));
|
|
105
|
+
align-self: stretch;
|
|
106
|
+
}
|
|
107
|
+
:host .super-heading.student {
|
|
108
|
+
text-align: LEFT;
|
|
109
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
110
|
+
color: var(--scw-color-04, var(--scw-color-student-04));
|
|
111
|
+
align-self: stretch;
|
|
112
|
+
}
|
|
113
|
+
:host .super-heading.investments {
|
|
114
|
+
text-align: LEFT;
|
|
115
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
116
|
+
color: var(--scw-color-04, var(--scw-color-investments-04));
|
|
117
|
+
align-self: stretch;
|
|
118
|
+
}
|
|
119
|
+
:host .super-heading.checking {
|
|
120
|
+
text-align: LEFT;
|
|
121
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
122
|
+
color: var(--scw-color-04, var(--scw-color-checking-04));
|
|
123
|
+
align-self: stretch;
|
|
124
|
+
}
|
|
125
|
+
:host .super-heading.credit-cards {
|
|
126
|
+
text-align: LEFT;
|
|
127
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
128
|
+
color: var(--scw-color-04, var(--scw-color-credit-cards-04));
|
|
129
|
+
align-self: stretch;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host {
|
|
133
|
+
display: block;
|
|
134
|
+
background-color: var(--scw-color, rgba(0, 0, 0, 0));
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-flow: column nowrap;
|
|
137
|
+
justify-content: flex-start;
|
|
138
|
+
align-items: flex-start;
|
|
139
|
+
padding-left: 0px;
|
|
140
|
+
padding-right: 0px;
|
|
141
|
+
padding-top: 0px;
|
|
142
|
+
padding-bottom: 0px;
|
|
143
|
+
/*.image {
|
|
144
|
+
@include default-image-mixins.box;
|
|
145
|
+
|
|
146
|
+
position: absolute;
|
|
147
|
+
inset: 0;
|
|
148
|
+
background-position: center;
|
|
149
|
+
background-size: cover;
|
|
150
|
+
}*/
|
|
151
|
+
}
|
|
152
|
+
:host > *:not(:last-child) {
|
|
153
|
+
margin-bottom: calc(var(--scw-spacing-1) * 0.8);
|
|
154
|
+
--margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );
|
|
155
|
+
}
|
|
156
|
+
:host .image-box {
|
|
157
|
+
background-color: var(--scw-color-09, var(--scw-color-grey-09));
|
|
158
|
+
border-radius: 10px 10px 10px 10px;
|
|
159
|
+
align-self: stretch;
|
|
160
|
+
flex: 1;
|
|
161
|
+
}
|
|
162
|
+
:host .heading {
|
|
163
|
+
background-color: var(--scw-color, rgba(0, 0, 0, 0));
|
|
164
|
+
align-self: stretch;
|
|
165
|
+
}
|
|
166
|
+
:host .super-heading {
|
|
167
|
+
text-align: LEFT;
|
|
168
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
169
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
170
|
+
align-self: stretch;
|
|
171
|
+
}
|
|
172
|
+
:host .description {
|
|
173
|
+
text-align: LEFT;
|
|
174
|
+
font: var(--scw-type-text-06-font);
|
|
175
|
+
color: var(--scw-color-02, var(--scw-color-grey-02));
|
|
176
|
+
align-self: stretch;
|
|
177
|
+
}
|
|
178
|
+
:host .action {
|
|
179
|
+
width: 83px;
|
|
180
|
+
height: 32px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:host([action=none]) {
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host([action=whole]) {
|
|
188
|
+
pointer-events: all;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:host([action=whole]:hover) {
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:host([action=whole]:focus-visible) {
|
|
196
|
+
outline: none;
|
|
197
|
+
box-shadow: var(--scw-effect-focus-shadow);
|
|
198
|
+
border-radius: 10px 10px 4px 4px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host([action=link]) {
|
|
202
|
+
pointer-events: none;
|
|
203
|
+
}
|
|
204
|
+
:host([action=link]) scw-link {
|
|
205
|
+
pointer-events: all;
|
|
206
|
+
}`;var e=class extends c{constructor(){super();this.size="large";this.action="none";this.element="card",this.clickHandler=this.clickHandler.bind(this);let t=g();this.headerNodeName=n(`scw-${"heading"}${t}`),this.imageNodeName=n(`scw-${"image"}${t}`),this.linkNodeName=n(`scw-${"link"}${t}`)}static get styles(){return[super.styles,h]}parseAndValidateLightDom(){d(this),super.parseAndValidateLightDom()}clickHandler(t){t.stopPropagation(),this.click()}warn(t){this._heading=`error: ${t}`,l.prototype.warn.call(this,t)}renderImage(){if((this.src||this.srcset)&&this.alt){let t="636:350";return this.size==="medium"?t="414:163":this.size==="small"&&(t="1:1"),i`
|
|
207
|
+
<${this.imageNodeName}
|
|
208
|
+
class="image-box"
|
|
209
|
+
src="${this.src}"
|
|
210
|
+
srcset="${this.srcset}"
|
|
211
|
+
aria-label="${this.alt}"
|
|
212
|
+
aspect-ratio="${t}"
|
|
213
|
+
object-fit="cover">
|
|
214
|
+
</${this.imageNodeName}>
|
|
215
|
+
`}}renderHeading(){return i`
|
|
216
|
+
<${this.headerNodeName}
|
|
217
|
+
dynamic class="heading">
|
|
218
|
+
<h1>${this._heading}</h1>
|
|
219
|
+
</${this.headerNodeName}>`}renderButton(){return this.action==="link"?i`
|
|
220
|
+
<${this.linkNodeName}
|
|
221
|
+
color="${this.color}"
|
|
222
|
+
aria-label="${this._linkLabel?this._linkLabel:"no label"}"
|
|
223
|
+
@click="${this.clickHandler}">
|
|
224
|
+
</${this.linkNodeName}>`:null}renderBody(){return i`
|
|
225
|
+
${this.renderImage()}
|
|
226
|
+
${this._superHeading?i`
|
|
227
|
+
<div class="super-heading ${this.color}">
|
|
228
|
+
${this._superHeading}
|
|
229
|
+
</div>`:""}
|
|
230
|
+
<${this.headerNodeName}
|
|
231
|
+
dynamic class="heading">
|
|
232
|
+
${this.size==="large"?i`
|
|
233
|
+
<h1>${this._heading}</h1>
|
|
234
|
+
`:""}
|
|
235
|
+
${this.size==="medium"?i`
|
|
236
|
+
<h2>${this._heading}</h2>
|
|
237
|
+
`:""}
|
|
238
|
+
${this.size==="small"?i`
|
|
239
|
+
<h3>${this._heading}</h3>
|
|
240
|
+
`:""}
|
|
241
|
+
</${this.headerNodeName}>
|
|
242
|
+
${this._description?i`
|
|
243
|
+
<div class="description">
|
|
244
|
+
${this._description}
|
|
245
|
+
</div>`:""}`}render(){return this.action==="whole"?this.renderBody():i`
|
|
246
|
+
${this.renderBody()}
|
|
247
|
+
${this.renderButton()}`}};o([s()],e.prototype,"src",2),o([s()],e.prototype,"srcset",2),o([s()],e.prototype,"alt",2),o([s()],e.prototype,"_heading",2),o([s()],e.prototype,"_superHeading",2),o([s()],e.prototype,"_description",2),o([s()],e.prototype,"_linkLabel",2),o([a({type:String,reflect:!0})],e.prototype,"size",2),o([a({type:String,reflect:!0})],e.prototype,"action",2);export{e as a};
|
|
248
|
+
//# sourceMappingURL=chunk.WMJFRAUU.js.map
|