scu-web-components 0.0.18 → 0.0.19
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.26QZNZ5O.js +4 -0
- package/dist/chunks/chunk.26QZNZ5O.js.map +7 -0
- package/dist/chunks/chunk.26WRWOQA.js +4 -0
- package/dist/chunks/chunk.26WRWOQA.js.map +7 -0
- package/dist/chunks/chunk.2ZQRUE2N.js +17 -0
- package/dist/chunks/chunk.2ZQRUE2N.js.map +7 -0
- package/dist/chunks/chunk.3FFYP5F6.js +248 -0
- package/dist/chunks/chunk.3FFYP5F6.js.map +7 -0
- package/dist/chunks/chunk.3FUJNI5Z.js +2 -0
- package/dist/chunks/chunk.3FUJNI5Z.js.map +7 -0
- package/dist/chunks/chunk.3NUJRAYB.js +2 -0
- package/dist/chunks/chunk.3NUJRAYB.js.map +7 -0
- package/dist/chunks/chunk.3WCRGMXB.js +4 -0
- package/dist/chunks/chunk.3WCRGMXB.js.map +7 -0
- package/dist/chunks/chunk.4423HWYS.js +4 -0
- package/dist/chunks/chunk.4423HWYS.js.map +7 -0
- package/dist/chunks/chunk.44PEDOFG.js +47 -0
- package/dist/chunks/chunk.44PEDOFG.js.map +7 -0
- package/dist/chunks/chunk.45CT3CWK.js +2 -0
- package/dist/chunks/chunk.45CT3CWK.js.map +7 -0
- package/dist/chunks/chunk.4OGOBQMX.js +10 -0
- package/dist/chunks/chunk.4OGOBQMX.js.map +7 -0
- package/dist/chunks/chunk.4POTYAFQ.js +4 -0
- package/dist/chunks/chunk.4POTYAFQ.js.map +7 -0
- package/dist/chunks/chunk.4PPBRFQ5.js +2 -0
- package/dist/chunks/chunk.4PPBRFQ5.js.map +7 -0
- package/dist/chunks/chunk.4TZQ4623.js +256 -0
- package/dist/chunks/chunk.4TZQ4623.js.map +7 -0
- package/dist/chunks/chunk.4YWFC7TN.js +250 -0
- package/dist/chunks/chunk.4YWFC7TN.js.map +7 -0
- package/dist/chunks/chunk.5BLZH7SW.js +2 -0
- package/dist/chunks/chunk.5BLZH7SW.js.map +7 -0
- package/dist/chunks/chunk.5MKWHHCQ.js +256 -0
- package/dist/chunks/chunk.5MKWHHCQ.js.map +7 -0
- package/dist/chunks/chunk.5SYXTJPM.js +2 -0
- package/dist/chunks/chunk.5SYXTJPM.js.map +7 -0
- package/dist/chunks/chunk.5VSS26HX.js +2 -0
- package/dist/chunks/chunk.5VSS26HX.js.map +7 -0
- package/dist/chunks/chunk.6AN4WDRE.js +17 -0
- package/dist/chunks/chunk.6AN4WDRE.js.map +7 -0
- package/dist/chunks/chunk.6IAOEKJZ.js +60 -0
- package/dist/chunks/chunk.6IAOEKJZ.js.map +7 -0
- package/dist/chunks/chunk.6ZMSNT4Z.js +2 -0
- package/dist/chunks/chunk.6ZMSNT4Z.js.map +7 -0
- package/dist/chunks/chunk.7CMHOC33.js +2 -0
- package/dist/chunks/chunk.7CMHOC33.js.map +7 -0
- package/dist/chunks/chunk.7D3TCHIR.js +2 -0
- package/dist/chunks/chunk.7D3TCHIR.js.map +7 -0
- package/dist/chunks/chunk.7G24U4HI.js +2 -0
- package/dist/chunks/chunk.7G24U4HI.js.map +7 -0
- package/dist/chunks/chunk.7O5N2TU4.js +17 -0
- package/dist/chunks/chunk.7O5N2TU4.js.map +7 -0
- package/dist/chunks/chunk.7TWMMEDH.js +2 -0
- package/dist/chunks/chunk.7TWMMEDH.js.map +7 -0
- package/dist/chunks/chunk.7WYU7AYQ.js +2 -0
- package/dist/chunks/chunk.7WYU7AYQ.js.map +7 -0
- package/dist/chunks/chunk.7XMEWVE5.js +4 -0
- package/dist/chunks/chunk.7XMEWVE5.js.map +7 -0
- package/dist/chunks/chunk.A4GHKA4H.js +2 -0
- package/dist/chunks/chunk.A4GHKA4H.js.map +7 -0
- package/dist/chunks/chunk.A6K5LW2R.js +17 -0
- package/dist/chunks/chunk.A6K5LW2R.js.map +7 -0
- package/dist/chunks/chunk.AAMAYL7H.js +2 -0
- package/dist/chunks/chunk.AAMAYL7H.js.map +7 -0
- package/dist/chunks/chunk.AAY3CIZJ.js +2 -0
- package/dist/chunks/chunk.AAY3CIZJ.js.map +7 -0
- package/dist/chunks/chunk.AOLFTV24.js +4 -0
- package/dist/chunks/chunk.AOLFTV24.js.map +7 -0
- package/dist/chunks/chunk.ASVXYRFS.js +2 -0
- package/dist/chunks/chunk.ASVXYRFS.js.map +7 -0
- package/dist/chunks/chunk.B336YZWI.js +2 -0
- package/dist/chunks/chunk.B336YZWI.js.map +7 -0
- package/dist/chunks/chunk.B3VO7MVW.js +2 -0
- package/dist/chunks/chunk.B3VO7MVW.js.map +7 -0
- package/dist/chunks/chunk.BD2AX4ZS.js +60 -0
- package/dist/chunks/chunk.BD2AX4ZS.js.map +7 -0
- package/dist/chunks/chunk.C6XDQDFO.js +2 -0
- package/dist/chunks/chunk.C6XDQDFO.js.map +7 -0
- package/dist/chunks/chunk.CW2EH5PY.js +17 -0
- package/dist/chunks/chunk.CW2EH5PY.js.map +7 -0
- package/dist/chunks/chunk.DBZIPHLZ.js +17 -0
- package/dist/chunks/chunk.DBZIPHLZ.js.map +7 -0
- package/dist/chunks/chunk.DCW26NNA.js +249 -0
- package/dist/chunks/chunk.DCW26NNA.js.map +7 -0
- package/dist/chunks/chunk.DR5FIJJG.js +2 -0
- package/dist/chunks/chunk.DR5FIJJG.js.map +7 -0
- package/dist/chunks/chunk.DVKR3IU2.js +47 -0
- package/dist/chunks/chunk.DVKR3IU2.js.map +7 -0
- package/dist/chunks/chunk.E7OOLSB7.js +29 -0
- package/dist/chunks/chunk.E7OOLSB7.js.map +7 -0
- package/dist/chunks/chunk.ECQUGXB4.js +182 -0
- package/dist/chunks/chunk.ECQUGXB4.js.map +7 -0
- package/dist/chunks/chunk.EE4C22LR.js +2 -0
- package/dist/chunks/chunk.EE4C22LR.js.map +7 -0
- package/dist/chunks/chunk.EE7FYIJC.js +4 -0
- package/dist/chunks/chunk.EE7FYIJC.js.map +7 -0
- package/dist/chunks/chunk.EWWWRWE5.js +2 -0
- package/dist/chunks/chunk.EWWWRWE5.js.map +7 -0
- package/dist/chunks/chunk.F5FUIRKL.js +2 -0
- package/dist/chunks/chunk.F5FUIRKL.js.map +7 -0
- package/dist/chunks/chunk.FDNVN6JM.js +2 -0
- package/dist/chunks/chunk.FDNVN6JM.js.map +7 -0
- package/dist/chunks/chunk.FFOXCUJR.js +4 -0
- package/dist/chunks/chunk.FFOXCUJR.js.map +7 -0
- package/dist/chunks/chunk.FGXWF4KS.js +117 -0
- package/dist/chunks/chunk.FGXWF4KS.js.map +7 -0
- package/dist/chunks/chunk.FKI5D2PU.js +4 -0
- package/dist/chunks/chunk.FKI5D2PU.js.map +7 -0
- package/dist/chunks/chunk.FVDELYDN.js +17 -0
- package/dist/chunks/chunk.FVDELYDN.js.map +7 -0
- package/dist/chunks/chunk.GAUGNKEW.js +255 -0
- package/dist/chunks/chunk.GAUGNKEW.js.map +7 -0
- package/dist/chunks/chunk.GEHNDSAW.js +4 -0
- package/dist/chunks/chunk.GEHNDSAW.js.map +7 -0
- package/dist/chunks/chunk.GIA75VWA.js +2 -0
- package/dist/chunks/chunk.GIA75VWA.js.map +7 -0
- package/dist/chunks/chunk.GLLPHPHR.js +2 -0
- package/dist/chunks/chunk.GLLPHPHR.js.map +7 -0
- package/dist/chunks/chunk.GT2ISAKW.js +2 -0
- package/dist/chunks/chunk.GT2ISAKW.js.map +7 -0
- package/dist/chunks/chunk.H5P26UZX.js +182 -0
- package/dist/chunks/chunk.H5P26UZX.js.map +7 -0
- package/dist/chunks/chunk.HCMPRDIX.js +35 -0
- package/dist/chunks/chunk.HCMPRDIX.js.map +7 -0
- package/dist/chunks/chunk.HG3WXTUJ.js +255 -0
- package/dist/chunks/chunk.HG3WXTUJ.js.map +7 -0
- package/dist/chunks/chunk.HI65WFA7.js +17 -0
- package/dist/chunks/chunk.HI65WFA7.js.map +7 -0
- package/dist/chunks/chunk.HVX5PATU.js +2 -0
- package/dist/chunks/chunk.HVX5PATU.js.map +7 -0
- package/dist/chunks/chunk.HZEZWYYK.js +251 -0
- package/dist/chunks/chunk.HZEZWYYK.js.map +7 -0
- package/dist/chunks/chunk.HZNLLTV2.js +4 -0
- package/dist/chunks/chunk.HZNLLTV2.js.map +7 -0
- package/dist/chunks/chunk.I2BMU7RU.js +2 -0
- package/dist/chunks/chunk.I2BMU7RU.js.map +7 -0
- package/dist/chunks/chunk.I5TL5VOW.js +17 -0
- package/dist/chunks/chunk.I5TL5VOW.js.map +7 -0
- package/dist/chunks/chunk.IDOYH5TU.js +17 -0
- package/dist/chunks/chunk.IDOYH5TU.js.map +7 -0
- package/dist/chunks/chunk.IHFJTW5Q.js +2 -0
- package/dist/chunks/chunk.IHFJTW5Q.js.map +7 -0
- package/dist/chunks/chunk.IHZY23BP.js +209 -0
- package/dist/chunks/chunk.IHZY23BP.js.map +7 -0
- package/dist/chunks/chunk.INCQI4KW.js +2 -0
- package/dist/chunks/chunk.INCQI4KW.js.map +7 -0
- package/dist/chunks/chunk.IQAACKV5.js +256 -0
- package/dist/chunks/chunk.IQAACKV5.js.map +7 -0
- package/dist/chunks/chunk.IVLESGJX.js +29 -0
- package/dist/chunks/chunk.IVLESGJX.js.map +7 -0
- package/dist/chunks/chunk.IZGP4HPP.js +4 -0
- package/dist/chunks/chunk.IZGP4HPP.js.map +7 -0
- package/dist/chunks/chunk.J65POK2P.js +2 -0
- package/dist/chunks/chunk.J65POK2P.js.map +7 -0
- package/dist/chunks/chunk.J6R7RO2U.js +2 -0
- package/dist/chunks/chunk.J6R7RO2U.js.map +7 -0
- package/dist/chunks/chunk.JBVTDHFY.js +2 -0
- package/dist/chunks/chunk.JBVTDHFY.js.map +7 -0
- package/dist/chunks/chunk.JD2FO4DX.js +2 -0
- package/dist/chunks/chunk.JD2FO4DX.js.map +7 -0
- package/dist/chunks/chunk.JS44GQOP.js +2 -0
- package/dist/chunks/chunk.JS44GQOP.js.map +7 -0
- package/dist/chunks/chunk.JXZBJNSK.js +209 -0
- package/dist/chunks/chunk.JXZBJNSK.js.map +7 -0
- package/dist/chunks/chunk.KC6RPMFV.js +17 -0
- package/dist/chunks/chunk.KC6RPMFV.js.map +7 -0
- package/dist/chunks/chunk.KOU54RPJ.js +47 -0
- package/dist/chunks/chunk.KOU54RPJ.js.map +7 -0
- package/dist/chunks/chunk.L55FJW5G.js +32 -0
- package/dist/chunks/chunk.L55FJW5G.js.map +7 -0
- package/dist/chunks/chunk.LG6JLUDB.js +17 -0
- package/dist/chunks/chunk.LG6JLUDB.js.map +7 -0
- package/dist/chunks/chunk.LJ7I7HM6.js +47 -0
- package/dist/chunks/chunk.LJ7I7HM6.js.map +7 -0
- package/dist/chunks/chunk.LMSOPPYG.js +2 -0
- package/dist/chunks/chunk.LMSOPPYG.js.map +7 -0
- package/dist/chunks/chunk.LWBFEJU4.js +4 -0
- package/dist/chunks/chunk.LWBFEJU4.js.map +7 -0
- package/dist/chunks/chunk.LX7JT2FJ.js +17 -0
- package/dist/chunks/chunk.LX7JT2FJ.js.map +7 -0
- package/dist/chunks/chunk.ME4SPAUY.js +256 -0
- package/dist/chunks/chunk.ME4SPAUY.js.map +7 -0
- package/dist/chunks/chunk.MKOFAM43.js +2 -0
- package/dist/chunks/chunk.MKOFAM43.js.map +7 -0
- package/dist/chunks/chunk.MVHRFH3Q.js +255 -0
- package/dist/chunks/chunk.MVHRFH3Q.js.map +7 -0
- package/dist/chunks/chunk.MX7S5VR4.js +251 -0
- package/dist/chunks/chunk.MX7S5VR4.js.map +7 -0
- package/dist/chunks/chunk.N555DYI6.js +17 -0
- package/dist/chunks/chunk.N555DYI6.js.map +7 -0
- package/dist/chunks/chunk.N5W423VY.js +256 -0
- package/dist/chunks/chunk.N5W423VY.js.map +7 -0
- package/dist/chunks/chunk.NNOHWTGC.js +2 -0
- package/dist/chunks/chunk.NNOHWTGC.js.map +7 -0
- package/dist/chunks/chunk.O3Y6GORP.js +2 -0
- package/dist/chunks/chunk.O3Y6GORP.js.map +7 -0
- package/dist/chunks/chunk.OAKR4LII.js +255 -0
- package/dist/chunks/chunk.OAKR4LII.js.map +7 -0
- package/dist/chunks/chunk.OGVSQMPM.js +4 -0
- package/dist/chunks/chunk.OGVSQMPM.js.map +7 -0
- package/dist/chunks/chunk.OR2X7ZV4.js +2 -0
- package/dist/chunks/chunk.OR2X7ZV4.js.map +7 -0
- package/dist/chunks/chunk.OTUFWUCU.js +2 -0
- package/dist/chunks/chunk.OTUFWUCU.js.map +7 -0
- package/dist/chunks/chunk.OXJR2CBC.js +32 -0
- package/dist/chunks/chunk.OXJR2CBC.js.map +7 -0
- package/dist/chunks/chunk.P5FMOBOO.js +2 -0
- package/dist/chunks/chunk.P5FMOBOO.js.map +7 -0
- package/dist/chunks/chunk.PBORG7EO.js +2 -0
- package/dist/chunks/chunk.PBORG7EO.js.map +7 -0
- package/dist/chunks/chunk.PDBSEP6W.js +2 -0
- package/dist/chunks/chunk.PDBSEP6W.js.map +7 -0
- package/dist/chunks/chunk.PK4Q3DYP.js +4 -0
- package/dist/chunks/chunk.PK4Q3DYP.js.map +7 -0
- package/dist/chunks/chunk.PS7Q3LJC.js +2 -0
- package/dist/chunks/chunk.PS7Q3LJC.js.map +7 -0
- package/dist/chunks/chunk.QI5GOA2N.js +10 -0
- package/dist/chunks/chunk.QI5GOA2N.js.map +7 -0
- package/dist/chunks/chunk.QQNZKGOC.js +4 -0
- package/dist/chunks/chunk.QQNZKGOC.js.map +7 -0
- package/dist/chunks/chunk.QUSS6OGG.js +2 -0
- package/dist/chunks/chunk.QUSS6OGG.js.map +7 -0
- package/dist/chunks/chunk.RFWTH2X2.js +4 -0
- package/dist/chunks/chunk.RFWTH2X2.js.map +7 -0
- package/dist/chunks/chunk.RG3JWB2W.js +17 -0
- package/dist/chunks/chunk.RG3JWB2W.js.map +7 -0
- package/dist/chunks/chunk.RH4QX322.js +2 -0
- package/dist/chunks/chunk.RH4QX322.js.map +7 -0
- package/dist/chunks/chunk.SFYYUOOR.js +2 -0
- package/dist/chunks/chunk.SFYYUOOR.js.map +7 -0
- package/dist/chunks/chunk.SHF6DFZ5.js +2 -0
- package/dist/chunks/chunk.SHF6DFZ5.js.map +7 -0
- package/dist/chunks/chunk.SIYIAYTY.js +2 -0
- package/dist/chunks/chunk.SIYIAYTY.js.map +7 -0
- package/dist/chunks/chunk.SKTWESGB.js +2 -0
- package/dist/chunks/chunk.SKTWESGB.js.map +7 -0
- package/dist/chunks/chunk.SWVUU5TM.js +251 -0
- package/dist/chunks/chunk.SWVUU5TM.js.map +7 -0
- package/dist/chunks/chunk.SZIVOS7R.js +4 -0
- package/dist/chunks/chunk.SZIVOS7R.js.map +7 -0
- package/dist/chunks/chunk.T3QMCSC3.js +2 -0
- package/dist/chunks/chunk.T3QMCSC3.js.map +7 -0
- package/dist/chunks/chunk.T7LP6FL7.js +2 -0
- package/dist/chunks/chunk.T7LP6FL7.js.map +7 -0
- package/dist/chunks/chunk.TIXJLUFP.js +17 -0
- package/dist/chunks/chunk.TIXJLUFP.js.map +7 -0
- package/dist/chunks/chunk.TP45YUJS.js +60 -0
- package/dist/chunks/chunk.TP45YUJS.js.map +7 -0
- package/dist/chunks/chunk.U3CLEKJ5.js +2 -0
- package/dist/chunks/chunk.U3CLEKJ5.js.map +7 -0
- package/dist/chunks/chunk.U3ETAM2U.js +2 -0
- package/dist/chunks/chunk.U3ETAM2U.js.map +7 -0
- package/dist/chunks/chunk.U7C6BSJT.js +2 -0
- package/dist/chunks/chunk.U7C6BSJT.js.map +7 -0
- package/dist/chunks/chunk.UDWCK6HZ.js +36 -0
- package/dist/chunks/chunk.UDWCK6HZ.js.map +7 -0
- package/dist/chunks/chunk.UL277WY4.js +57 -0
- package/dist/chunks/chunk.UL277WY4.js.map +7 -0
- package/dist/chunks/chunk.UWHB7HW2.js +2 -0
- package/dist/chunks/chunk.UWHB7HW2.js.map +7 -0
- package/dist/chunks/chunk.UYRFYRSK.js +58 -0
- package/dist/chunks/chunk.UYRFYRSK.js.map +7 -0
- package/dist/chunks/chunk.VDNCQRUC.js +2 -0
- package/dist/chunks/chunk.VDNCQRUC.js.map +7 -0
- package/dist/chunks/chunk.VHBU7HMM.js +4 -0
- package/dist/chunks/chunk.VHBU7HMM.js.map +7 -0
- package/dist/chunks/chunk.VOL6A33A.js +2 -0
- package/dist/chunks/chunk.VOL6A33A.js.map +7 -0
- package/dist/chunks/chunk.VPWCM77I.js +36 -0
- package/dist/chunks/chunk.VPWCM77I.js.map +7 -0
- package/dist/chunks/chunk.VYQRBSTB.js +2 -0
- package/dist/chunks/chunk.VYQRBSTB.js.map +7 -0
- package/dist/chunks/chunk.WP3OF6QA.js +17 -0
- package/dist/chunks/chunk.WP3OF6QA.js.map +7 -0
- package/dist/chunks/chunk.WR6BJRYZ.js +251 -0
- package/dist/chunks/chunk.WR6BJRYZ.js.map +7 -0
- package/dist/chunks/chunk.XICCWDLO.js +35 -0
- package/dist/chunks/chunk.XICCWDLO.js.map +7 -0
- package/dist/chunks/chunk.XRCS7XVU.js +2 -0
- package/dist/chunks/chunk.XRCS7XVU.js.map +7 -0
- package/dist/chunks/chunk.XS2ZLG5N.js +255 -0
- package/dist/chunks/chunk.XS2ZLG5N.js.map +7 -0
- package/dist/chunks/chunk.XU5GJZL2.js +4 -0
- package/dist/chunks/chunk.XU5GJZL2.js.map +7 -0
- package/dist/chunks/chunk.XWIMOG3R.js +17 -0
- package/dist/chunks/chunk.XWIMOG3R.js.map +7 -0
- package/dist/chunks/chunk.XXCA25XG.js +117 -0
- package/dist/chunks/chunk.XXCA25XG.js.map +7 -0
- package/dist/chunks/chunk.Y6CNGJBQ.js +248 -0
- package/dist/chunks/chunk.Y6CNGJBQ.js.map +7 -0
- package/dist/chunks/chunk.YCMHZ3MB.js +258 -0
- package/dist/chunks/chunk.YCMHZ3MB.js.map +7 -0
- package/dist/chunks/chunk.YYEBOYAK.js +4 -0
- package/dist/chunks/chunk.YYEBOYAK.js.map +7 -0
- package/dist/chunks/chunk.Z6HS5QBM.js +2 -0
- package/dist/chunks/chunk.Z6HS5QBM.js.map +7 -0
- package/dist/chunks/chunk.ZFJ4UAEF.js +256 -0
- package/dist/chunks/chunk.ZFJ4UAEF.js.map +7 -0
- package/dist/chunks/chunk.ZQRAOUTM.js +2 -0
- package/dist/chunks/chunk.ZQRAOUTM.js.map +7 -0
- package/dist/custom-elements.json +1048 -1902
- package/dist/docs/components/ScwAlert.json +0 -26
- package/dist/docs/components/ScwButton.json +0 -26
- package/dist/docs/components/ScwCard.json +6 -32
- package/dist/docs/components/ScwCenterComponent.json +0 -26
- package/dist/docs/components/ScwComponent.json +0 -18
- package/dist/docs/components/ScwElementComponent.json +0 -26
- package/dist/docs/components/ScwFlexHComponent.json +0 -26
- package/dist/docs/components/ScwFlexVComponent.json +0 -26
- package/dist/docs/components/ScwFloatComponent.json +0 -26
- package/dist/docs/components/ScwForm.json +0 -26
- package/dist/docs/components/ScwFormComponent.json +0 -26
- package/dist/docs/components/ScwHeading.json +1 -27
- package/dist/docs/components/ScwIcon.json +0 -26
- package/dist/docs/components/ScwImage.json +4 -34
- package/dist/docs/components/ScwInput.json +0 -26
- package/dist/docs/components/ScwInputField.json +0 -26
- package/dist/docs/components/ScwInputLayout.json +0 -26
- package/dist/docs/components/ScwLayoutComponent.json +0 -26
- package/dist/docs/components/ScwLink.json +0 -26
- package/dist/docs/components/ScwLinkBase.json +0 -26
- package/dist/docs/components/ScwMenu.json +0 -26
- package/dist/docs/components/ScwMenuItem.json +0 -26
- package/dist/docs/components/ScwPageAlert.json +0 -26
- package/dist/docs/components/ScwPaneComponent.json +0 -26
- package/dist/docs/components/ScwResponsive.json +0 -26
- package/dist/docs/components/ScwSelect.json +0 -26
- package/dist/docs/components/ScwSingleInput.json +0 -26
- package/dist/docs/components/ScwSingleInputLayout.json +0 -26
- package/dist/docs/components/ScwStackComponent.json +0 -26
- package/dist/docs/components/ScwTest.json +0 -26
- package/dist/docs/components/ScwTextarea.json +0 -26
- package/dist/docs/components/ScwValidate.json +0 -26
- package/dist/docs/components/ScwValidation.json +0 -26
- package/dist/docs/components/manifest.json +65 -65
- package/dist/docs/config.json +1 -1
- 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/ScwMenu.js +1 -1
- package/dist/scw-menu/scw-menu.js +1 -1
- package/dist/scw-menu-item/ScwMenuItem.js +1 -1
- package/dist/scw-menu-item/scw-menu-item.js +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 +1 -1
- package/dist/scw-single-input/scw-single-input.js.map +1 -1
- 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-test/scw-test.js.map +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.js +1 -1
- package/dist/utils/suffix.js +1 -1
- package/dist/utils/themes/enums.js +1 -1
- package/dist/utils/themes/enums.js.map +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import{a as n,b as e}from"./chunk.RGGLFZST.js";import{a as g}from"./chunk.SIYIAYTY.js";import{c}from"./chunk.OXJR2CBC.js";import{a as r,b as a,c as s,e as l}from"./chunk.HCMPRDIX.js";import{a as d}from"./chunk.UM2EZXNH.js";import{g as i}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]) .image-box {
|
|
53
|
+
height: 161px;
|
|
54
|
+
}
|
|
55
|
+
:host([size=medium]) .description {
|
|
56
|
+
text-align: LEFT;
|
|
57
|
+
font: var(--scw-type-text-font);
|
|
58
|
+
color: var(--scw-color-grey-02);
|
|
59
|
+
align-self: stretch;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([size=small]) {
|
|
63
|
+
display: block;
|
|
64
|
+
background-color: rgba(0, 0, 0, 0);
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-flow: column nowrap;
|
|
67
|
+
justify-content: flex-start;
|
|
68
|
+
align-items: flex-start;
|
|
69
|
+
padding-left: 0px;
|
|
70
|
+
padding-right: 0px;
|
|
71
|
+
padding-top: 0px;
|
|
72
|
+
padding-bottom: 0px;
|
|
73
|
+
/*.image-box {
|
|
74
|
+
width: 100%;
|
|
75
|
+
padding-bottom: 88.9473684211%;
|
|
76
|
+
position: relative;
|
|
77
|
+
}*/
|
|
78
|
+
/*.image {
|
|
79
|
+
@include size-small-image-mixins.box;
|
|
80
|
+
|
|
81
|
+
position: absolute;
|
|
82
|
+
inset: 0;
|
|
83
|
+
background-position: center;
|
|
84
|
+
background-size: cover;
|
|
85
|
+
}*/
|
|
86
|
+
}
|
|
87
|
+
:host([size=small]) > *:not(:last-child) {
|
|
88
|
+
margin-bottom: calc(var(--scw-spacing-1) * 0.8);
|
|
89
|
+
--margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );
|
|
90
|
+
}
|
|
91
|
+
:host([size=small]) .image-box {
|
|
92
|
+
height: 169px;
|
|
93
|
+
}
|
|
94
|
+
:host([size=small]) .description {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
:host([size=small]) .action {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host .super-heading.mortgage {
|
|
102
|
+
text-align: LEFT;
|
|
103
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
104
|
+
color: var(--scw-color-04, var(--scw-color-mortgage-04));
|
|
105
|
+
align-self: stretch;
|
|
106
|
+
}
|
|
107
|
+
:host .super-heading.savings {
|
|
108
|
+
text-align: LEFT;
|
|
109
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
110
|
+
color: var(--scw-color-04, var(--scw-color-savings-04));
|
|
111
|
+
align-self: stretch;
|
|
112
|
+
}
|
|
113
|
+
:host .super-heading.student {
|
|
114
|
+
text-align: LEFT;
|
|
115
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
116
|
+
color: var(--scw-color-04, var(--scw-color-student-04));
|
|
117
|
+
align-self: stretch;
|
|
118
|
+
}
|
|
119
|
+
:host .super-heading.investments {
|
|
120
|
+
text-align: LEFT;
|
|
121
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
122
|
+
color: var(--scw-color-04, var(--scw-color-investments-04));
|
|
123
|
+
align-self: stretch;
|
|
124
|
+
}
|
|
125
|
+
:host .super-heading.checking {
|
|
126
|
+
text-align: LEFT;
|
|
127
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
128
|
+
color: var(--scw-color-04, var(--scw-color-checking-04));
|
|
129
|
+
align-self: stretch;
|
|
130
|
+
}
|
|
131
|
+
:host .super-heading.credit-cards {
|
|
132
|
+
text-align: LEFT;
|
|
133
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
134
|
+
color: var(--scw-color-04, var(--scw-color-credit-cards-04));
|
|
135
|
+
align-self: stretch;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host {
|
|
139
|
+
display: block;
|
|
140
|
+
background-color: var(--scw-color, rgba(0, 0, 0, 0));
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-flow: column nowrap;
|
|
143
|
+
justify-content: flex-start;
|
|
144
|
+
align-items: flex-start;
|
|
145
|
+
padding-left: 0px;
|
|
146
|
+
padding-right: 0px;
|
|
147
|
+
padding-top: 0px;
|
|
148
|
+
padding-bottom: 0px;
|
|
149
|
+
/*.image {
|
|
150
|
+
@include default-image-mixins.box;
|
|
151
|
+
|
|
152
|
+
position: absolute;
|
|
153
|
+
inset: 0;
|
|
154
|
+
background-position: center;
|
|
155
|
+
background-size: cover;
|
|
156
|
+
}*/
|
|
157
|
+
}
|
|
158
|
+
:host > *:not(:last-child) {
|
|
159
|
+
margin-bottom: calc(var(--scw-spacing-1) * 0.8);
|
|
160
|
+
--margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );
|
|
161
|
+
}
|
|
162
|
+
:host .image-box {
|
|
163
|
+
background-color: var(--scw-color-09, var(--scw-color-grey-09));
|
|
164
|
+
border-radius: 10px 10px 10px 10px;
|
|
165
|
+
align-self: stretch;
|
|
166
|
+
flex: 1;
|
|
167
|
+
flex: initial;
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
height: 345px;
|
|
170
|
+
}
|
|
171
|
+
:host .heading {
|
|
172
|
+
background-color: rgba(0, 0, 0, 0);
|
|
173
|
+
align-self: stretch;
|
|
174
|
+
}
|
|
175
|
+
:host .super-heading {
|
|
176
|
+
text-align: LEFT;
|
|
177
|
+
font: var(--scw-type-text-bold-condensed-font);
|
|
178
|
+
color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
179
|
+
align-self: stretch;
|
|
180
|
+
}
|
|
181
|
+
:host .description {
|
|
182
|
+
text-align: LEFT;
|
|
183
|
+
font: var(--scw-type-text-06-font);
|
|
184
|
+
color: var(--scw-color-02, var(--scw-color-grey-02));
|
|
185
|
+
align-self: stretch;
|
|
186
|
+
}
|
|
187
|
+
:host .action {
|
|
188
|
+
width: 83px;
|
|
189
|
+
height: 32px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:host([action=none]) {
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:host([action=whole]) {
|
|
197
|
+
pointer-events: all;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:host([action=whole]:hover) {
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([action=whole]:focus-visible) {
|
|
205
|
+
outline: none;
|
|
206
|
+
box-shadow: var(--scw-effect-focus-shadow);
|
|
207
|
+
border-radius: 10px 10px 4px 4px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:host([action=link]) {
|
|
211
|
+
pointer-events: none;
|
|
212
|
+
}
|
|
213
|
+
:host([action=link]) scw-link {
|
|
214
|
+
pointer-events: all;
|
|
215
|
+
}`;var t=class extends c{constructor(){super();this.size="large";this.action="none";this.element="card",this.clickHandler=this.clickHandler.bind(this);let o=g();this.headerNodeName=n(`scw-${"heading"}${o}`),this.imageNodeName=n(`scw-${"image"}${o}`),this.linkNodeName=n(`scw-${"link"}${o}`)}static get styles(){return[super.styles,h]}parseAndValidateLightDom(){d(this),super.parseAndValidateLightDom()}clickHandler(o){o.stopPropagation(),this.click()}warn(o){this._heading=`error: ${o}`,l.prototype.warn.call(this,o)}renderImage(){if((this.src||this.srcset)&&this.alt)return e`
|
|
216
|
+
<${this.imageNodeName}
|
|
217
|
+
class="image-box"
|
|
218
|
+
src="${this.src}"
|
|
219
|
+
srcset="${this.srcset}"
|
|
220
|
+
aria-label="${this.alt}"
|
|
221
|
+
object-fit="cover">
|
|
222
|
+
</${this.imageNodeName}>
|
|
223
|
+
`}renderHeading(){return e`
|
|
224
|
+
<${this.headerNodeName}
|
|
225
|
+
dynamic class="heading">
|
|
226
|
+
<h1>${this._heading}</h1>
|
|
227
|
+
</${this.headerNodeName}>`}renderButton(){return this.action==="link"?e`
|
|
228
|
+
<${this.linkNodeName}
|
|
229
|
+
aria-label="${this._linkLabel?this._linkLabel:"no label"}"
|
|
230
|
+
@click="${this.clickHandler}">
|
|
231
|
+
</${this.linkNodeName}>`:null}renderBody(){return e`
|
|
232
|
+
${this.renderImage()}
|
|
233
|
+
${this._superHeading?e`
|
|
234
|
+
<div class="super-heading">
|
|
235
|
+
${this._superHeading}
|
|
236
|
+
</div>`:""}
|
|
237
|
+
<${this.headerNodeName}
|
|
238
|
+
dynamic class="heading">
|
|
239
|
+
${this.size==="large"?e`
|
|
240
|
+
<h1>${this._heading}</h1>
|
|
241
|
+
`:""}
|
|
242
|
+
${this.size==="medium"?e`
|
|
243
|
+
<h2>${this._heading}</h2>
|
|
244
|
+
`:""}
|
|
245
|
+
${this.size==="small"?e`
|
|
246
|
+
<h3>${this._heading}</h3>
|
|
247
|
+
`:""}
|
|
248
|
+
</${this.headerNodeName}>
|
|
249
|
+
${this._description?e`
|
|
250
|
+
<div class="description">
|
|
251
|
+
${this._description}
|
|
252
|
+
</div>`:""}`}render(){return this.action==="whole"?this.renderBody():e`
|
|
253
|
+
${this.renderBody()}
|
|
254
|
+
${this.renderButton()}`}};i([s()],t.prototype,"src",2),i([s()],t.prototype,"srcset",2),i([s()],t.prototype,"alt",2),i([s()],t.prototype,"_heading",2),i([s()],t.prototype,"_superHeading",2),i([s()],t.prototype,"_description",2),i([s()],t.prototype,"_linkLabel",2),i([a({type:String,reflect:!0})],t.prototype,"size",2),i([a({type:String,reflect:!0})],t.prototype,"action",2);export{t as a};
|
|
255
|
+
//# sourceMappingURL=chunk.GAUGNKEW.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-card/scss/scw-card.scss", "../../src/scw-card/ScwCard.ts"],
|
|
4
|
+
"sourcesContent": ["import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host {\n /* scw element */\n position: relative;\n box-sizing: border-box;\n --margin-right: initial;\n --margin-bottom: initial;\n --gap-h-int: initial;\n --gap-v-int: initial;\n margin-right: var(--margin-right, var(--gap-h-int, initial));\n margin-bottom: var(--margin-bottom, var(--gap-v-int, initial));\n display: block;\n}\n\n:host([warning]) {\n outline: 2px solid red !important;\n}\n\n:host([size=medium]) {\n display: block;\n background-color: rgba(0, 0, 0, 0);\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n padding-left: 0px;\n padding-right: 0px;\n padding-top: 0px;\n padding-bottom: 0px;\n /*.image-box {\n width: 100%;\n padding-bottom: 38.8888888889%;\n position: relative;\n }*/\n /*.image {\n @include size-medium-image-mixins.box;\n\n position: absolute;\n inset: 0;\n background-position: center;\n background-size: cover;\n }*/\n /*.action {\n @include size-medium-action-mixins.box;\n @include size-medium-action-mixins.sizing;\n }*/\n}\n:host([size=medium]) > *:not(:last-child) {\n margin-bottom: calc(var(--scw-spacing-1) * 0.8);\n --margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );\n}\n:host([size=medium]) .image-box {\n height: 161px;\n}\n:host([size=medium]) .description {\n text-align: LEFT;\n font: var(--scw-type-text-font);\n color: var(--scw-color-grey-02);\n align-self: stretch;\n}\n\n:host([size=small]) {\n display: block;\n background-color: rgba(0, 0, 0, 0);\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n padding-left: 0px;\n padding-right: 0px;\n padding-top: 0px;\n padding-bottom: 0px;\n /*.image-box {\n width: 100%;\n padding-bottom: 88.9473684211%;\n position: relative;\n }*/\n /*.image {\n @include size-small-image-mixins.box;\n\n position: absolute;\n inset: 0;\n background-position: center;\n background-size: cover;\n }*/\n}\n:host([size=small]) > *:not(:last-child) {\n margin-bottom: calc(var(--scw-spacing-1) * 0.8);\n --margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );\n}\n:host([size=small]) .image-box {\n height: 169px;\n}\n:host([size=small]) .description {\n display: none;\n}\n:host([size=small]) .action {\n display: none;\n}\n\n:host .super-heading.mortgage {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-font);\n color: var(--scw-color-04, var(--scw-color-mortgage-04));\n align-self: stretch;\n}\n:host .super-heading.savings {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-font);\n color: var(--scw-color-04, var(--scw-color-savings-04));\n align-self: stretch;\n}\n:host .super-heading.student {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-font);\n color: var(--scw-color-04, var(--scw-color-student-04));\n align-self: stretch;\n}\n:host .super-heading.investments {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-font);\n color: var(--scw-color-04, var(--scw-color-investments-04));\n align-self: stretch;\n}\n:host .super-heading.checking {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-font);\n color: var(--scw-color-04, var(--scw-color-checking-04));\n align-self: stretch;\n}\n:host .super-heading.credit-cards {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-font);\n color: var(--scw-color-04, var(--scw-color-credit-cards-04));\n align-self: stretch;\n}\n\n:host {\n display: block;\n background-color: var(--scw-color, rgba(0, 0, 0, 0));\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n padding-left: 0px;\n padding-right: 0px;\n padding-top: 0px;\n padding-bottom: 0px;\n /*.image {\n @include default-image-mixins.box;\n\n position: absolute;\n inset: 0;\n background-position: center;\n background-size: cover;\n }*/\n}\n:host > *:not(:last-child) {\n margin-bottom: calc(var(--scw-spacing-1) * 0.8);\n --margin-bottom: calc( var( --scw-spacing-1 ) * 0.8 );\n}\n:host .image-box {\n background-color: var(--scw-color-09, var(--scw-color-grey-09));\n border-radius: 10px 10px 10px 10px;\n align-self: stretch;\n flex: 1;\n flex: initial;\n overflow: hidden;\n height: 345px;\n}\n:host .heading {\n background-color: rgba(0, 0, 0, 0);\n align-self: stretch;\n}\n:host .super-heading {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-font);\n color: var(--scw-color-03, var(--scw-color-primary-03));\n align-self: stretch;\n}\n:host .description {\n text-align: LEFT;\n font: var(--scw-type-text-06-font);\n color: var(--scw-color-02, var(--scw-color-grey-02));\n align-self: stretch;\n}\n:host .action {\n width: 83px;\n height: 32px;\n}\n\n:host([action=none]) {\n pointer-events: none;\n}\n\n:host([action=whole]) {\n pointer-events: all;\n}\n\n:host([action=whole]:hover) {\n cursor: pointer;\n}\n\n:host([action=whole]:focus-visible) {\n outline: none;\n box-shadow: var(--scw-effect-focus-shadow);\n border-radius: 10px 10px 4px 4px;\n}\n\n:host([action=link]) {\n pointer-events: none;\n}\n:host([action=link]) scw-link {\n pointer-events: all;\n}`;\n", "import {property, state} from 'lit/decorators.js';\nimport {html} from 'lit/static-html.js';// import {html} from 'lit';\nimport {unsafeStatic} from 'lit/static-html.js';// USE DIFFERENT 'html'!!!!\nimport styles from './scss/scw-card.scss';\nimport ScwComponent from '../scw-component/ScwComponent';\nimport {ScwCardSizes, ScwCardActions} from './scw-card-enums';\nimport parseLightDomCard from './scw-card-light-dom';\nimport ScwLinkBase from '../scw-link-base/ScwLinkBase';\nimport {Components} from '../utils/enums/Components';\nimport getSuffix from '../utils/suffix';\n\n/**\n * ScwCard a first LitElement web component\n * @class\n * @tag scw-card\n *\n * @slot [default=\"<img src alt /><h1, h2, h3 /><sup /><p />\"]\n The parts of scw-card are configured via nested html elements.\n img defines the image, heading the main heading, sup the category heading,\n and p the descriptive text. Only headings is required (with src, srcset,\n and alt attributes).\n * @slot [default=\"<img src alt /><h1, h2, h3 /><sup /><p /><a />\"]\n Adding an anchor will show a link.\n * @slot [default=\"<a><img src alt /><h1, h2, h3 /><sup /><p /></a>\"]\n Wrapping the entire content in an anchor will make it interactive\n */\nexport default class ScwCard extends ScwLinkBase {\n /**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n // ============== ScwCard ====================================================\n /** (ScwCard) The src of the image within the card */\n @state() src: string | undefined;\n\n /** (ScwCard) The srcset of the image within the card */\n @state() srcset: string | undefined;\n\n /** (ScwCard) Alternative description of the image. */\n @state() alt: string | undefined;\n\n /** (ScwCard) Main title or header of the card (determined by\n * <h1, h2, h3> content) */\n @state() _heading: string | undefined;\n\n /** (ScwCard) Super title, describing a category or area pertaining to title\n * (determined by <sup> content) */\n @state() _superHeading: string | undefined;\n\n /** (ScwCard) Fuller description of what the card is about (determined by\n * <p> content) */\n @state() _description: string | undefined;\n\n /** (ScwCard) Label on the link */\n @state() _linkLabel : string | undefined;\n\n // ----------- END STATES ----------------------------------------------------\n /** (ScwCard) Readonly - Size of the card. This\n * is determined by the nested html content (h1 = large,\n * h2 = medium, h3 = small). */\n @property({type: String, reflect: true})\n size: ScwCardSizes = ScwCardSizes.large;\n\n /** (ScwCard) Readonly - The type of action (whole card, link, or none).\n * This is determined by the use of an anchor tag. */\n @property({type: String, reflect: true})\n action: ScwCardActions = ScwCardActions.none;\n\n /** scw-header with versioning suffix */\n headerNodeName : any;\n\n /** scw-image with versioning suffix */\n imageNodeName : any;\n\n /** scw-link with versioning suffix */\n linkNodeName : any;\n\n /**\n * Constructor\n */\n constructor() {\n super();\n this.element = Components.card;\n this.clickHandler = this.clickHandler.bind(this);\n\n const suffix = getSuffix();\n this.headerNodeName = unsafeStatic(`scw-${Components.heading}${suffix}`);\n this.imageNodeName = unsafeStatic(`scw-${Components.image}${suffix}`);\n this.linkNodeName = unsafeStatic(`scw-${Components.link}${suffix}`);\n }\n\n /** parseAndValidateLightDom, just adding local parsing and validation */\n parseAndValidateLightDom() {\n parseLightDomCard(this);\n super.parseAndValidateLightDom();\n }\n\n /**\n * Handle click event from link so it doesn't trigger twice\n * @param {Event} evt\n */\n clickHandler(evt : Event) {\n evt.stopPropagation();\n this.click();\n }\n\n /**\n * change the main heading to be the error.\n * @param {string} message describing warning\n */\n warn( message: string ) {\n this._heading = `error: ${message}`;\n ScwComponent.prototype.warn.call(this, message );\n }\n\n /**\n * Render image area\n * @return {object} component DOM\n */\n renderImage() {\n if (\n ( this.src || this.srcset ) &&\n this.alt ) {\n return html`\n <${this.imageNodeName}\n class=\"image-box\"\n src=\"${this.src}\"\n srcset=\"${this.srcset}\"\n aria-label=\"${this.alt}\"\n object-fit=\"cover\">\n </${this.imageNodeName}>\n `;\n }\n }\n\n /**\n * Render heading area\n * @return {object} component DOM\n */\n renderHeading() {\n return html`\n <${this.headerNodeName}\n dynamic class=\"heading\">\n <h1>${this._heading}</h1>\n </${this.headerNodeName}>`;\n }\n\n /**\n * Render link area\n * @return {object} component DOM\n */\n renderButton() {\n if ( this.action === ScwCardActions.link) {\n return html`\n <${this.linkNodeName}\n aria-label=\"${this._linkLabel ? this._linkLabel : 'no label'}\" \n @click=\"${this.clickHandler}\">\n </${this.linkNodeName}>`;\n }\n return null;\n }\n\n /**\n * render body\n * @return {object} component DOM\n */\n renderBody() : object {\n return html`\n ${this.renderImage()}\n ${this._superHeading ?\n html`\n <div class=\"super-heading\">\n ${this._superHeading}\n </div>` : ''\n }\n <${this.headerNodeName}\n dynamic class=\"heading\">\n ${(this.size === ScwCardSizes.large) ? html`\n <h1>${this._heading}</h1>\n ` : ''}\n ${(this.size === ScwCardSizes.medium) ? html`\n <h2>${this._heading}</h2>\n ` : ''}\n ${(this.size === ScwCardSizes.small) ? html`\n <h3>${this._heading}</h3>\n ` : ''}\n </${this.headerNodeName}>\n ${this._description ?\n html`\n <div class=\"description\">\n ${this._description}\n </div>` : ''\n }`;\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render() : object {\n if (this.action === ScwCardActions.whole) {\n return this.renderBody();\n } else {\n return html`\n ${this.renderBody()}\n ${this.renderButton()}`;\n };\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as u}from"./chunk.T3QMCSC3.js";import{b as n,c as r,e as f}from"./chunk.6ITKITRF.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.GEHNDSAW.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": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import{a as n}from"./chunk.2VW3SHYK.js";import{a,b as o,e as s}from"./chunk.HCMPRDIX.js";import{a as r}from"./chunk.ZS4C3T6Z.js";import{g as t}from"./chunk.5YJY6NT6.js";var l=a`
|
|
2
|
+
:host {
|
|
3
|
+
background-color: white;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-flow: column nowrap;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
padding-left: 0px;
|
|
9
|
+
padding-right: 0px;
|
|
10
|
+
padding-top: 0px;
|
|
11
|
+
padding-bottom: 0px;
|
|
12
|
+
}
|
|
13
|
+
:host > *:not(:last-child) {
|
|
14
|
+
margin-bottom: calc(var(--scw-spacing-1) * 0.6);
|
|
15
|
+
--margin-bottom: calc( var( --scw-spacing-1 ) * 0.6 );
|
|
16
|
+
}
|
|
17
|
+
:host .input-field-single {
|
|
18
|
+
flex: 1;
|
|
19
|
+
}
|
|
20
|
+
:host .input-feedback {
|
|
21
|
+
background-color: rgba(0, 0, 0, 0);
|
|
22
|
+
align-self: stretch;
|
|
23
|
+
text-align: LEFT;
|
|
24
|
+
font: var(--scw-type-text-04-font);
|
|
25
|
+
color: var(--scw-color, var(--scw-color-error));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.input-field {
|
|
29
|
+
background-color: rgba(0, 0, 0, 0);
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-flow: row nowrap;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
align-items: center;
|
|
34
|
+
padding-left: 0px;
|
|
35
|
+
padding-right: 0px;
|
|
36
|
+
padding-top: 0px;
|
|
37
|
+
padding-bottom: 0px;
|
|
38
|
+
align-self: stretch;
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
.input-field > *:not(:last-child) {
|
|
42
|
+
margin-right: 0px;
|
|
43
|
+
--margin-right: 0px;
|
|
44
|
+
}
|
|
45
|
+
.input-field .left-icon {
|
|
46
|
+
background-color: var(--scw-color-grey-095);
|
|
47
|
+
border-radius: 4px 0px 0px 4px;
|
|
48
|
+
align-self: stretch;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-flow: row nowrap;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
padding-left: 0px;
|
|
54
|
+
padding-right: 0px;
|
|
55
|
+
padding-top: 0px;
|
|
56
|
+
padding-bottom: 0px;
|
|
57
|
+
}
|
|
58
|
+
.input-field .left-icon > *:not(:last-child) {
|
|
59
|
+
margin-right: var(--scw-spacing-1);
|
|
60
|
+
--margin-right: var( --scw-spacing-1 );
|
|
61
|
+
}
|
|
62
|
+
.input-field .left-icon .icon {
|
|
63
|
+
background-color: rgba(0, 0, 0, 0);
|
|
64
|
+
}
|
|
65
|
+
.input-field .input-text {
|
|
66
|
+
background-color: rgba(0, 0, 0, 0);
|
|
67
|
+
flex: 1;
|
|
68
|
+
}
|
|
69
|
+
.input-field .right-icon-2 {
|
|
70
|
+
align-self: center;
|
|
71
|
+
}
|
|
72
|
+
.input-field .right-icon {
|
|
73
|
+
align-self: center;
|
|
74
|
+
}
|
|
75
|
+
.input-field .right-action {
|
|
76
|
+
background-color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
77
|
+
border-radius: 0px 4px 4px 0px;
|
|
78
|
+
align-self: stretch;
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-flow: row nowrap;
|
|
81
|
+
justify-content: flex-start;
|
|
82
|
+
align-items: center;
|
|
83
|
+
padding-left: calc(var(--scw-spacing-1) * 0.4);
|
|
84
|
+
padding-right: calc(var(--scw-spacing-1) * 0.4);
|
|
85
|
+
padding-top: 0px;
|
|
86
|
+
padding-bottom: 0px;
|
|
87
|
+
border-radius: 0;
|
|
88
|
+
}
|
|
89
|
+
.input-field .right-action > *:not(:last-child) {
|
|
90
|
+
margin-right: var(--scw-spacing-1);
|
|
91
|
+
--margin-right: var( --scw-spacing-1 );
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host .input-field {
|
|
95
|
+
background-color: var(--scw-color-grey-10);
|
|
96
|
+
border-radius: 6px 6px 6px 6px;
|
|
97
|
+
border-width: 2px;
|
|
98
|
+
border-style: solid;
|
|
99
|
+
border-color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
100
|
+
align-self: stretch;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:host([aria-disabled]) .input-field {
|
|
104
|
+
background-color: var(--scw-color-grey-092);
|
|
105
|
+
border-radius: 6px 6px 6px 6px;
|
|
106
|
+
border-width: 2px;
|
|
107
|
+
border-style: solid;
|
|
108
|
+
border-color: var(--scw-color-grey-08);
|
|
109
|
+
align-self: stretch;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([invalid]) .input-field {
|
|
113
|
+
background-color: var(--scw-color-grey-10);
|
|
114
|
+
border-radius: 6px 6px 6px 6px;
|
|
115
|
+
border-width: 2px;
|
|
116
|
+
border-style: solid;
|
|
117
|
+
border-color: var(--scw-color, var(--scw-color-error));
|
|
118
|
+
align-self: stretch;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([focused]) .input-field {
|
|
122
|
+
background-color: var(--scw-color-grey-10);
|
|
123
|
+
border-radius: 6px 6px 6px 6px;
|
|
124
|
+
border-width: 2px;
|
|
125
|
+
border-style: solid;
|
|
126
|
+
border-color: var(--scw-color-03, var(--scw-color-primary-03));
|
|
127
|
+
box-shadow: var(--scw-effect-focus-shadow);
|
|
128
|
+
align-self: stretch;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
::slotted(*) {
|
|
132
|
+
width: 100%;
|
|
133
|
+
}`;var d=(e=>(e.rightIcon="right-icon",e.right2Icon="right-2-icon",e.rightAction="right-action",e))(d||{}),i=class extends s{constructor(){super();this.hideFeedback=!1;this.element="single-input-layout"}static get styles(){return[super.styles,l]}_right2ClickHandler(c){c.stopPropagation(),n("scw-action",this,{action:"right-2-icon"})}_rightClickHandler(c){c.stopPropagation(),n("scw-action",this,{action:"right-icon"})}_rightActionClickHandler(c){c.stopPropagation(),n("scw-action",this,{action:"right-action"})}render(){return r`
|
|
134
|
+
<div class="input-field">
|
|
135
|
+
${this.leftActionIcon?r`
|
|
136
|
+
<div class="left-icon">
|
|
137
|
+
<scw-icon
|
|
138
|
+
class="icon"
|
|
139
|
+
.icon="${this.leftActionIcon}"
|
|
140
|
+
size="30">
|
|
141
|
+
</scw-icon>
|
|
142
|
+
</div>`:""}
|
|
143
|
+
<div class="input-field-single">
|
|
144
|
+
<slot></slot>
|
|
145
|
+
</div>
|
|
146
|
+
${this.right2Icon?r`
|
|
147
|
+
<scw-icon
|
|
148
|
+
class="right-icon-2"
|
|
149
|
+
.icon="${this.right2Icon}"
|
|
150
|
+
size="30"
|
|
151
|
+
aria-label="Clear Input"
|
|
152
|
+
link
|
|
153
|
+
@click=${this._right2ClickHandler}>
|
|
154
|
+
</scw-icon>`:""}
|
|
155
|
+
${this.rightIcon?r`
|
|
156
|
+
<scw-icon
|
|
157
|
+
class="right-icon"
|
|
158
|
+
.icon="${this.rightIcon}"
|
|
159
|
+
size="30"
|
|
160
|
+
aria-label="Show Password"
|
|
161
|
+
link
|
|
162
|
+
@click=${this._rightClickHandler}>
|
|
163
|
+
</scw-icon>`:""}
|
|
164
|
+
${this.rightActionIcon?r`
|
|
165
|
+
<div class="right-action">
|
|
166
|
+
<scw-icon
|
|
167
|
+
class="icon-right-action"
|
|
168
|
+
.icon="${this.rightActionIcon}"
|
|
169
|
+
color="white"
|
|
170
|
+
size="30"
|
|
171
|
+
aria-label="Submit Search"
|
|
172
|
+
link
|
|
173
|
+
@click=${this._rightActionClickHandler}>
|
|
174
|
+
</scw-icon>
|
|
175
|
+
</div>`:""}
|
|
176
|
+
</div>
|
|
177
|
+
${this.hideFeedback?"":r`
|
|
178
|
+
<div class="input-feedback">
|
|
179
|
+
${this.feedback}
|
|
180
|
+
</div>`}
|
|
181
|
+
`}};t([o({type:String})],i.prototype,"feedback",2),t([o({type:String,attribute:"hide-feedback"})],i.prototype,"hideFeedback",2),t([o({type:String,attribute:"left-action-icon"})],i.prototype,"leftActionIcon",2),t([o({type:String,attribute:"right-action-icon"})],i.prototype,"rightActionIcon",2),t([o({type:String,attribute:"right-icon"})],i.prototype,"rightIcon",2),t([o({type:String,attribute:"right-2-icon"})],i.prototype,"right2Icon",2);export{d as a,i as b};
|
|
182
|
+
//# sourceMappingURL=chunk.H5P26UZX.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-single-input-layout/scss/scw-single-input-layout.scss", "../../src/scw-single-input-layout/scw-single-input-layout.ts"],
|
|
4
|
+
"sourcesContent": ["import {css} from \"lit-element/lit-element.js\";\nexport default css`\n:host {\n background-color: white;\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: flex-start;\n padding-left: 0px;\n padding-right: 0px;\n padding-top: 0px;\n padding-bottom: 0px;\n}\n:host > *:not(:last-child) {\n margin-bottom: calc(var(--scw-spacing-1) * 0.6);\n --margin-bottom: calc( var( --scw-spacing-1 ) * 0.6 );\n}\n:host .input-field-single {\n flex: 1;\n}\n:host .input-feedback {\n background-color: rgba(0, 0, 0, 0);\n align-self: stretch;\n text-align: LEFT;\n font: var(--scw-type-text-04-font);\n color: var(--scw-color, var(--scw-color-error));\n}\n\n.input-field {\n background-color: rgba(0, 0, 0, 0);\n display: flex;\n flex-flow: row nowrap;\n justify-content: flex-start;\n align-items: center;\n padding-left: 0px;\n padding-right: 0px;\n padding-top: 0px;\n padding-bottom: 0px;\n align-self: stretch;\n padding: 0;\n}\n.input-field > *:not(:last-child) {\n margin-right: 0px;\n --margin-right: 0px;\n}\n.input-field .left-icon {\n background-color: var(--scw-color-grey-095);\n border-radius: 4px 0px 0px 4px;\n align-self: stretch;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n align-items: center;\n padding-left: 0px;\n padding-right: 0px;\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.input-field .left-icon > *:not(:last-child) {\n margin-right: var(--scw-spacing-1);\n --margin-right: var( --scw-spacing-1 );\n}\n.input-field .left-icon .icon {\n background-color: rgba(0, 0, 0, 0);\n}\n.input-field .input-text {\n background-color: rgba(0, 0, 0, 0);\n flex: 1;\n}\n.input-field .right-icon-2 {\n align-self: center;\n}\n.input-field .right-icon {\n align-self: center;\n}\n.input-field .right-action {\n background-color: var(--scw-color-03, var(--scw-color-primary-03));\n border-radius: 0px 4px 4px 0px;\n align-self: stretch;\n display: flex;\n flex-flow: row nowrap;\n justify-content: flex-start;\n align-items: center;\n padding-left: calc(var(--scw-spacing-1) * 0.4);\n padding-right: calc(var(--scw-spacing-1) * 0.4);\n padding-top: 0px;\n padding-bottom: 0px;\n border-radius: 0;\n}\n.input-field .right-action > *:not(:last-child) {\n margin-right: var(--scw-spacing-1);\n --margin-right: var( --scw-spacing-1 );\n}\n\n:host .input-field {\n background-color: var(--scw-color-grey-10);\n border-radius: 6px 6px 6px 6px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-03, var(--scw-color-primary-03));\n align-self: stretch;\n}\n\n:host([aria-disabled]) .input-field {\n background-color: var(--scw-color-grey-092);\n border-radius: 6px 6px 6px 6px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-grey-08);\n align-self: stretch;\n}\n\n:host([invalid]) .input-field {\n background-color: var(--scw-color-grey-10);\n border-radius: 6px 6px 6px 6px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color, var(--scw-color-error));\n align-self: stretch;\n}\n\n:host([focused]) .input-field {\n background-color: var(--scw-color-grey-10);\n border-radius: 6px 6px 6px 6px;\n border-width: 2px;\n border-style: solid;\n border-color: var(--scw-color-03, var(--scw-color-primary-03));\n box-shadow: var(--scw-effect-focus-shadow);\n align-self: stretch;\n}\n\n::slotted(*) {\n width: 100%;\n}`;\n", "import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport ScwComponent from '../scw-component/ScwComponent';\nimport {Components} from '../utils/enums/Components';\nimport styles from './scss/scw-single-input-layout.scss';\nimport {emit, ScwEvents} from '../utils/events/event';\n\n\nexport enum ScwSingleInputLayoutActions {\n rightIcon = 'right-icon',\n right2Icon = 'right-2-icon',\n rightAction = 'right-action'\n}\n\n/**\n * ScwSingleInputLayout\n * @class\n * @tag scw-single-input-layout\n * @status new\n * @since 0.0.5\n *\n * @event scw-action - This fires when one of the various icons or submit\n * button is clicked. detail is {action:\n * 'right-icon'|'right-2-icon'|'right-action'}\n */\nexport default class ScwSingleInputLayout extends ScwComponent {\n /**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n /** constructor */\n constructor() {\n super();\n this.element = Components.singleInputLayout;\n }\n\n // ============== ScwSingleInputLayout =======================================\n /** (ScwSingleInputLayout) the text to use for feedback */\n @property({type: String})\n feedback: string | undefined;\n\n /** (ScwSingleInputLayout) hides the feedback label */\n @property({type: String, attribute: 'hide-feedback'})\n hideFeedback: boolean = false;\n\n /** (ScwSingleInputLayout) shows left action section and determines what icon\n * is used within the left action. */\n @property({type: String, attribute: 'left-action-icon'})\n leftActionIcon: string | undefined;\n\n /** (ScwSingleInputLayout) shows right action section and determines what icon\n * is used within the right action. */\n @property({type: String, attribute: 'right-action-icon'})\n rightActionIcon: string | undefined;\n\n /** (ScwSingleInputLayout) shows first right icon and determines the icon\n * svg. */\n @property({type: String, attribute: 'right-icon'})\n rightIcon: string | undefined;\n\n /** (ScwSingleInputLayout) shows second right icon and determines the icon\n * svg. */\n @property({type: String, attribute: 'right-2-icon'})\n right2Icon: string | undefined;\n\n /**\n * Handle click from right 2 icon.\n * @param {Event} evt\n */\n _right2ClickHandler(evt : Event) {\n evt.stopPropagation();\n emit(\n ScwEvents.action, this,\n {action: ScwSingleInputLayoutActions.right2Icon},\n );\n }\n\n /**\n * Handle click from right icon.\n * @param {Event} evt\n */\n _rightClickHandler(evt : Event) {\n evt.stopPropagation();\n emit(\n ScwEvents.action, this,\n {action: ScwSingleInputLayoutActions.rightIcon},\n );\n }\n\n /**\n * Handle click from right action icon.\n * @param {Event} evt\n */\n _rightActionClickHandler(evt : Event) {\n evt.stopPropagation();\n emit(\n ScwEvents.action, this,\n {action: ScwSingleInputLayoutActions.rightAction},\n );\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return html`\n <div class=\"input-field\">\n ${this.leftActionIcon ?\n html`\n <div class=\"left-icon\">\n <scw-icon\n class=\"icon\"\n .icon=\"${this.leftActionIcon}\"\n size=\"30\">\n </scw-icon>\n </div>` : ''}\n <div class=\"input-field-single\">\n <slot></slot>\n </div>\n ${this.right2Icon ?\n html`\n <scw-icon\n class=\"right-icon-2\"\n .icon=\"${this.right2Icon}\"\n size=\"30\"\n aria-label=\"Clear Input\"\n link\n @click=${this._right2ClickHandler}>\n </scw-icon>` : '' }\n ${this.rightIcon ?\n html`\n <scw-icon\n class=\"right-icon\"\n .icon=\"${this.rightIcon}\"\n size=\"30\"\n aria-label=\"Show Password\"\n link\n @click=${this._rightClickHandler}>\n </scw-icon>` : '' }\n ${this.rightActionIcon ?\n html`\n <div class=\"right-action\">\n <scw-icon\n class=\"icon-right-action\"\n .icon=\"${this.rightActionIcon}\"\n color=\"white\"\n size=\"30\"\n aria-label=\"Submit Search\"\n link\n @click=${this._rightActionClickHandler}>\n </scw-icon>\n </div>` : '' }\n </div>\n ${!this.hideFeedback ?\n html`\n <div class=\"input-feedback\">\n ${this.feedback} \n </div>` : ''}\n `;\n }\n}\n\n"],
|
|
5
|
+
"mappings": "yKACA,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;GCOR,GAAK,GAAL,CAAK,GACV,aAAY,aACZ,aAAa,eACb,cAAc,eAHJ,WAiBZ,eAAkD,EAAa,CAY7D,aAAc,CACZ,MAAM,EAWP,kBAAwB,GAVvB,KAAK,QAAU,qBACjB,WAXY,SAAS,CACnB,MAAO,CACL,MAAM,OACN,CACF,CACF,CAyCA,oBAAoB,EAAa,CAC/B,EAAI,gBAAgB,EACpB,EACE,aAAkB,KAClB,CAAC,OAAQ,cAAsC,CACjD,CACF,CAMA,mBAAmB,EAAa,CAC9B,EAAI,gBAAgB,EACpB,EACE,aAAkB,KAClB,CAAC,OAAQ,YAAqC,CAChD,CACF,CAMA,yBAAyB,EAAa,CACpC,EAAI,gBAAgB,EACpB,EACE,aAAkB,KAClB,CAAC,OAAQ,cAAuC,CAClD,CACF,CAMA,QAAiB,CACf,MAAO;AAAA;AAAA,UAED,KAAK,eACX;AAAA;AAAA;AAAA;AAAA,yBAIqB,KAAK;AAAA;AAAA;AAAA,oBAGR;AAAA;AAAA;AAAA;AAAA,UAIZ,KAAK,WACX;AAAA;AAAA;AAAA,uBAGmB,KAAK;AAAA;AAAA;AAAA;AAAA,uBAIL,KAAK;AAAA,yBACD;AAAA,UACjB,KAAK,UACX;AAAA;AAAA;AAAA,uBAGmB,KAAK;AAAA;AAAA;AAAA;AAAA,uBAIL,KAAK;AAAA,yBACD;AAAA,UACjB,KAAK,gBACX;AAAA;AAAA;AAAA;AAAA,yBAIqB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,yBAKL,KAAK;AAAA;AAAA,oBAER;AAAA;AAAA,QAEd,AAAC,KAAK,aAIM,GAHhB;AAAA;AAAA,cAEU,KAAK;AAAA;AAAA,KAGjB,CACF,EA1HI,GADF,AAAC,EAAS,CAAC,KAAM,MAAM,CAAC,GACtB,AApBJ,EAoBI,wBAID,GADD,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,eAAe,CAAC,GACnD,AAxBH,EAwBG,4BAKC,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,kBAAkB,CAAC,GACrD,AA7BJ,EA6BI,8BAKD,GADD,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,mBAAmB,CAAC,GACvD,AAlCH,EAkCG,+BAKA,GADD,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,YAAY,CAAC,GAChD,AAvCH,EAuCG,yBAKC,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,UAAW,cAAc,CAAC,GACjD,AA5CJ,EA4CI",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{a as O}from"./chunk.BK6PO2CX.js";import{a as k}from"./chunk.WWTEGHW5.js";import{a as A,c as U,e as R}from"./chunk.ZS4C3T6Z.js";import{g as u}from"./chunk.5YJY6NT6.js";var f=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,g=Symbol(),L=new Map,m=class{constructor(t,e){if(this._$cssResult$=!0,e!==g)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=L.get(this.cssText);return f&&t===void 0&&(L.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}},T=i=>new m(typeof i=="string"?i:i+"",g),E=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,s)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new m(e,g)},b=(i,t)=>{f?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let r=document.createElement("style"),o=window.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)})},v=f?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return T(e)})(i):i;var S,M=window.trustedTypes,B=M?M.emptyScript:"",q=window.reactiveElementPolyfillSupport,$={toAttribute(i,t){switch(t){case Boolean:i=i?B:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},D=(i,t)=>t!==i&&(t==t||i==i),_={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:D},a=class extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;(e=this.l)!==null&&e!==void 0||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,r)=>{let o=this._$Eh(r,e);o!==void 0&&(this._$Eu.set(o,r),t.push(o))}),t}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let r=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){let s=this[t];this[e]=o,this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){let e=this.properties,r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(v(o))}else t!==void 0&&e.push(v(t));return e}static _$Eh(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Em(),this.requestUpdate(),(t=this.constructor.l)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$Eg)!==null&&e!==void 0?e:this._$Eg=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)===null||r===void 0||r.call(t))}removeController(t){var e;(e=this._$Eg)===null||e===void 0||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;let e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostConnected)===null||r===void 0?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostDisconnected)===null||r===void 0?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ES(t,e,r=_){var o,s;let n=this.constructor._$Eh(t,r);if(n!==void 0&&r.reflect===!0){let l=((s=(o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==null&&s!==void 0?s:$.toAttribute)(e,r.type);this._$Ei=t,l==null?this.removeAttribute(n):this.setAttribute(n,l),this._$Ei=null}}_$AK(t,e){var r,o,s;let n=this.constructor,l=n._$Eu.get(t);if(l!==void 0&&this._$Ei!==l){let x=n.getPropertyOptions(l),y=x.converter,V=(s=(o=(r=y)===null||r===void 0?void 0:r.fromAttribute)!==null&&o!==void 0?o:typeof y=="function"?y:null)!==null&&s!==void 0?s:$.fromAttribute;this._$Ei=l,this[l]=V(e,x.type),this._$Ei=null}}requestUpdate(t,e,r){let o=!0;t!==void 0&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||D)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Ei!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,r))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((o,s)=>this[s]=o),this._$Et=void 0);let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(t=this._$Eg)===null||t===void 0||t.forEach(o=>{var s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.call(o)}),this.update(r)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;(e=this._$Eg)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostUpdated)===null||o===void 0?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,r)=>this._$ES(r,this[r],e)),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}};a.finalized=!0,a.elementProperties=new Map,a.elementStyles=[],a.shadowRootOptions={mode:"open"},q==null||q({ReactiveElement:a}),((S=globalThis.reactiveElementVersions)!==null&&S!==void 0?S:globalThis.reactiveElementVersions=[]).push("1.3.0");var w,C;var d=class extends a{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;let r=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=r.firstChild),r}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=R(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Dt)===null||t===void 0||t.setConnected(!1)}render(){return U}};d.finalized=!0,d._$litElement$=!0,(w=globalThis.litElementHydrateSupport)===null||w===void 0||w.call(globalThis,{LitElement:d});var z=globalThis.litElementPolyfillSupport;z==null||z({LitElement:d});((C=globalThis.litElementVersions)!==null&&C!==void 0?C:globalThis.litElementVersions=[]).push("3.2.0");var K=(i,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,i)}};function h(i){return(t,e)=>e!==void 0?((r,o,s)=>{o.constructor.createProperty(s,r)})(i,t,e):K(i,t)}function j(i){return h({...i,state:!0})}var p=({finisher:i,descriptor:t})=>(e,r)=>{var o;if(r===void 0){let s=(o=e.originalKey)!==null&&o!==void 0?o:e.key,n=t!=null?{kind:"method",placement:"prototype",key:s,descriptor:t(e.key)}:{...e,key:s};return i!=null&&(n.finisher=function(l){i(l,s)}),n}{let s=e.constructor;t!==void 0&&Object.defineProperty(e,r,t(r)),i==null||i(s,r)}};function pt(i,t){return p({descriptor:e=>{let r={get(){var o,s;return(s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(t){let o=typeof e=="symbol"?Symbol():"__"+e;r.get=function(){var s,n;return this[o]===void 0&&(this[o]=(n=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(i))!==null&&n!==void 0?n:null),this[o]}}return r}})}var P,gt=((P=window.HTMLSlotElement)===null||P===void 0?void 0:P.prototype.assignedElements)!=null?(i,t)=>i.assignedElements(t):(i,t)=>i.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE);var N=E`
|
|
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
|
+
}`;var c=class extends d{constructor(){super(...arguments);this.responsive=!1;this.dynamic=!1;this.element="component"}connectedCallback(){super.connectedCallback(),this.responsive===!0&&(this.responsiveElement=new O(this))}disconnectedCallback(){super.disconnectedCallback(),this.responsiveElement&&this.responsiveElement.disconnect()}firstUpdated(e){super.firstUpdated(e),this.parseAndValidateLightDom(),this.dynamic&&(this._lightDomMutationObserver=new k(this,()=>{this.parseAndValidateLightDom()}))}parseAndValidateLightDom(){}warn(e){this._lastWarning||(this._lastWarning=e,this.setAttribute("warning",e),this.setAttribute("title",`[ERROR]: ${e}`))}render(){return A`
|
|
18
|
+
<slot></slot>
|
|
19
|
+
`}};c.styles=N,u([h({type:Boolean})],c.prototype,"responsive",2),u([h({type:Boolean})],c.prototype,"dynamic",2),u([h({type:String,reflect:!0})],c.prototype,"element",2),u([j()],c.prototype,"_lastWarning",2);export{E as a,h as b,j as c,pt as d,c as e};
|
|
20
|
+
/**
|
|
21
|
+
* @license
|
|
22
|
+
* Copyright 2017 Google LLC
|
|
23
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @license
|
|
27
|
+
* Copyright 2019 Google LLC
|
|
28
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @license
|
|
32
|
+
* Copyright 2021 Google LLC
|
|
33
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
+
*/
|
|
35
|
+
//# sourceMappingURL=chunk.HCMPRDIX.js.map
|