scu-web-components 0.0.18 → 0.0.21
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.243BTICY.js +2 -0
- package/dist/chunks/chunk.243BTICY.js.map +7 -0
- 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.2ILTERKZ.js +2 -0
- package/dist/chunks/chunk.2ILTERKZ.js.map +7 -0
- package/dist/chunks/chunk.2XXO73BL.js +4 -0
- package/dist/chunks/chunk.2XXO73BL.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.3DMOX7UT.js +260 -0
- package/dist/chunks/chunk.3DMOX7UT.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.4EWI2XXE.js +253 -0
- package/dist/chunks/chunk.4EWI2XXE.js.map +7 -0
- package/dist/chunks/chunk.4J3VZJLM.js +2 -0
- package/dist/chunks/chunk.4J3VZJLM.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.4PYCCDWU.js +2 -0
- package/dist/chunks/chunk.4PYCCDWU.js.map +7 -0
- package/dist/chunks/chunk.4RDKXM5P.js +2 -0
- package/dist/chunks/chunk.4RDKXM5P.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.4WV5Y5FY.js +4 -0
- package/dist/chunks/chunk.4WV5Y5FY.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.5HSDLKYP.js +2 -0
- package/dist/chunks/chunk.5HSDLKYP.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.5QJ6ONIE.js +2 -0
- package/dist/chunks/chunk.5QJ6ONIE.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.6N57YKJS.js +17 -0
- package/dist/chunks/chunk.6N57YKJS.js.map +7 -0
- package/dist/chunks/chunk.6VSEVLAC.js +4 -0
- package/dist/chunks/chunk.6VSEVLAC.js.map +7 -0
- package/dist/chunks/chunk.6ZFDLY6P.js +4 -0
- package/dist/chunks/chunk.6ZFDLY6P.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.7MCDJWR3.js +17 -0
- package/dist/chunks/chunk.7MCDJWR3.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.AB4EDFMT.js +245 -0
- package/dist/chunks/chunk.AB4EDFMT.js.map +7 -0
- package/dist/chunks/chunk.ALMCQFUD.js +4 -0
- package/dist/chunks/chunk.ALMCQFUD.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.BC7TWXJU.js +2 -0
- package/dist/chunks/chunk.BC7TWXJU.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.BEUDMYPW.js +2 -0
- package/dist/chunks/chunk.BEUDMYPW.js.map +7 -0
- package/dist/chunks/chunk.BHTQYYCB.js +4 -0
- package/dist/chunks/chunk.BHTQYYCB.js.map +7 -0
- package/dist/chunks/chunk.BORBC2U3.js +255 -0
- package/dist/chunks/chunk.BORBC2U3.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.CMG7PI3B.js +17 -0
- package/dist/chunks/chunk.CMG7PI3B.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.EHNXXWI2.js +2 -0
- package/dist/chunks/chunk.EHNXXWI2.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.FFQ7V4OA.js +2 -0
- package/dist/chunks/chunk.FFQ7V4OA.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.G7R3VU6N.js +255 -0
- package/dist/chunks/chunk.G7R3VU6N.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.H25DJOTM.js +17 -0
- package/dist/chunks/chunk.H25DJOTM.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.HTWLJGJT.js +2 -0
- package/dist/chunks/chunk.HTWLJGJT.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.IUZQPSBK.js +17 -0
- package/dist/chunks/chunk.IUZQPSBK.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.KHE2M5ZS.js +17 -0
- package/dist/chunks/chunk.KHE2M5ZS.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.LF7RP3JW.js +17 -0
- package/dist/chunks/chunk.LF7RP3JW.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.LM67JVI4.js +2 -0
- package/dist/chunks/chunk.LM67JVI4.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.LORW33MQ.js +253 -0
- package/dist/chunks/chunk.LORW33MQ.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.M675KBDT.js +2 -0
- package/dist/chunks/chunk.M675KBDT.js.map +7 -0
- package/dist/chunks/chunk.MDCZB677.js +17 -0
- package/dist/chunks/chunk.MDCZB677.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.MGWOC2J5.js +2 -0
- package/dist/chunks/chunk.MGWOC2J5.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.MPKFHY23.js +255 -0
- package/dist/chunks/chunk.MPKFHY23.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.N3ARXSW7.js +2 -0
- package/dist/chunks/chunk.N3ARXSW7.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.NOBH76SF.js +4 -0
- package/dist/chunks/chunk.NOBH76SF.js.map +7 -0
- package/dist/chunks/chunk.NXXABR7T.js +4 -0
- package/dist/chunks/chunk.NXXABR7T.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.O6CQNIHX.js +245 -0
- package/dist/chunks/chunk.O6CQNIHX.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.OT7EUU3K.js +17 -0
- package/dist/chunks/chunk.OT7EUU3K.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.P7NTR5KL.js +4 -0
- package/dist/chunks/chunk.P7NTR5KL.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.Q7LMXHS7.js +2 -0
- package/dist/chunks/chunk.Q7LMXHS7.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.RXBASC64.js +2 -0
- package/dist/chunks/chunk.RXBASC64.js.map +7 -0
- package/dist/chunks/chunk.S2F4MUPE.js +245 -0
- package/dist/chunks/chunk.S2F4MUPE.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.SLT2X5JS.js +2 -0
- package/dist/chunks/chunk.SLT2X5JS.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.V5NUTUX3.js +260 -0
- package/dist/chunks/chunk.V5NUTUX3.js.map +7 -0
- package/dist/chunks/chunk.V5XFQACI.js +17 -0
- package/dist/chunks/chunk.V5XFQACI.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.WF4OSEZN.js +4 -0
- package/dist/chunks/chunk.WF4OSEZN.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.X5QA5OSW.js +4 -0
- package/dist/chunks/chunk.X5QA5OSW.js.map +7 -0
- package/dist/chunks/chunk.XD7ADS67.js +2 -0
- package/dist/chunks/chunk.XD7ADS67.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.XJ6U6JJH.js +2 -0
- package/dist/chunks/chunk.XJ6U6JJH.js.map +7 -0
- package/dist/chunks/chunk.XQLJUQ44.js +2 -0
- package/dist/chunks/chunk.XQLJUQ44.js.map +7 -0
- package/dist/chunks/chunk.XR7YGYDX.js +17 -0
- package/dist/chunks/chunk.XR7YGYDX.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.Y2P62L7U.js +2 -0
- package/dist/chunks/chunk.Y2P62L7U.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.YRKOBCHM.js +245 -0
- package/dist/chunks/chunk.YRKOBCHM.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 +402 -1193
- package/dist/docs/components/ScwAlert.json +0 -26
- package/dist/docs/components/ScwButton.json +0 -26
- package/dist/docs/components/ScwCard.json +85 -48
- 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 +64 -64
- 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-light-dom.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,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../node_modules/lit-html/src/directive-helpers.ts", "../../../node_modules/lit-html/src/experimental-hydrate.ts", "../../../node_modules/lit-element/src/experimental-hydrate-support.ts", "../../src/scw.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {_$LH, Part, DirectiveParent, TemplateResult} from './lit-html.js';\nimport {\n DirectiveResult,\n DirectiveClass,\n PartInfo,\n AttributePartInfo,\n} from './directive.js';\ntype Primitive = null | undefined | boolean | number | string | symbol | bigint;\n\nconst {_ChildPart: ChildPart} = _$LH;\n\ntype ChildPart = InstanceType<typeof ChildPart>;\n\nconst ENABLE_SHADYDOM_NOPATCH = true;\n\nconst wrap =\n ENABLE_SHADYDOM_NOPATCH &&\n window.ShadyDOM?.inUse &&\n window.ShadyDOM?.noPatch === true\n ? window.ShadyDOM!.wrap\n : (node: Node) => node;\n\n/**\n * Tests if a value is a primitive value.\n *\n * See https://tc39.github.io/ecma262/#sec-typeof-operator\n */\nexport const isPrimitive = (value: unknown): value is Primitive =>\n value === null || (typeof value != 'object' && typeof value != 'function');\n\nexport const TemplateResultType = {\n HTML: 1,\n SVG: 2,\n} as const;\n\nexport type TemplateResultType =\n typeof TemplateResultType[keyof typeof TemplateResultType];\n\n/**\n * Tests if a value is a TemplateResult.\n */\nexport const isTemplateResult = (\n value: unknown,\n type?: TemplateResultType\n): value is TemplateResult =>\n type === undefined\n ? // This property needs to remain unminified.\n (value as TemplateResult)?.['_$litType$'] !== undefined\n : (value as TemplateResult)?.['_$litType$'] === type;\n\n/**\n * Tests if a value is a DirectiveResult.\n */\nexport const isDirectiveResult = (value: unknown): value is DirectiveResult =>\n // This property needs to remain unminified.\n (value as DirectiveResult)?.['_$litDirective$'] !== undefined;\n\n/**\n * Retrieves the Directive class for a DirectiveResult\n */\nexport const getDirectiveClass = (value: unknown): DirectiveClass | undefined =>\n // This property needs to remain unminified.\n (value as DirectiveResult)?.['_$litDirective$'];\n\n/**\n * Tests whether a part has only a single-expression with no strings to\n * interpolate between.\n *\n * Only AttributePart and PropertyPart can have multiple expressions.\n * Multi-expression parts have a `strings` property and single-expression\n * parts do not.\n */\nexport const isSingleExpression = (part: PartInfo) =>\n (part as AttributePartInfo).strings === undefined;\n\nconst createMarker = () => document.createComment('');\n\n/**\n * Inserts a ChildPart into the given container ChildPart's DOM, either at the\n * end of the container ChildPart, or before the optional `refPart`.\n *\n * This does not add the part to the containerPart's committed value. That must\n * be done by callers.\n *\n * @param containerPart Part within which to add the new ChildPart\n * @param refPart Part before which to add the new ChildPart; when omitted the\n * part added to the end of the `containerPart`\n * @param part Part to insert, or undefined to create a new part\n */\nexport const insertPart = (\n containerPart: ChildPart,\n refPart?: ChildPart,\n part?: ChildPart\n): ChildPart => {\n const container = wrap(containerPart._$startNode).parentNode!;\n\n const refNode =\n refPart === undefined ? containerPart._$endNode : refPart._$startNode;\n\n if (part === undefined) {\n const startNode = wrap(container).insertBefore(createMarker(), refNode);\n const endNode = wrap(container).insertBefore(createMarker(), refNode);\n part = new ChildPart(\n startNode,\n endNode,\n containerPart,\n containerPart.options\n );\n } else {\n const endNode = wrap(part._$endNode!).nextSibling;\n const oldParent = part._$parent;\n const parentChanged = oldParent !== containerPart;\n if (parentChanged) {\n part._$reparentDisconnectables?.(containerPart);\n // Note that although `_$reparentDisconnectables` updates the part's\n // `_$parent` reference after unlinking from its current parent, that\n // method only exists if Disconnectables are present, so we need to\n // unconditionally set it here\n part._$parent = containerPart;\n // Since the _$isConnected getter is somewhat costly, only\n // read it once we know the subtree has directives that need\n // to be notified\n let newConnectionState;\n if (\n part._$notifyConnectionChanged !== undefined &&\n (newConnectionState = containerPart._$isConnected) !==\n oldParent!._$isConnected\n ) {\n part._$notifyConnectionChanged(newConnectionState);\n }\n }\n if (endNode !== refNode || parentChanged) {\n let start: Node | null = part._$startNode;\n while (start !== endNode) {\n const n: Node | null = wrap(start!).nextSibling;\n wrap(container).insertBefore(start!, refNode);\n start = n;\n }\n }\n }\n\n return part;\n};\n\n/**\n * Sets the value of a Part.\n *\n * Note that this should only be used to set/update the value of user-created\n * parts (i.e. those created using `insertPart`); it should not be used\n * by directives to set the value of the directive's container part. Directives\n * should return a value from `update`/`render` to update their part state.\n *\n * For directives that require setting their part value asynchronously, they\n * should extend `AsyncDirective` and call `this.setValue()`.\n *\n * @param part Part to set\n * @param value Value to set\n * @param index For `AttributePart`s, the index to set\n * @param directiveParent Used internally; should not be set by user\n */\nexport const setChildPartValue = <T extends ChildPart>(\n part: T,\n value: unknown,\n directiveParent: DirectiveParent = part\n): T => {\n part._$setValue(value, directiveParent);\n return part;\n};\n\n// A sentinal value that can never appear as a part value except when set by\n// live(). Used to force a dirty-check to fail and cause a re-render.\nconst RESET_VALUE = {};\n\n/**\n * Sets the committed value of a ChildPart directly without triggering the\n * commit stage of the part.\n *\n * This is useful in cases where a directive needs to update the part such\n * that the next update detects a value change or not. When value is omitted,\n * the next update will be guaranteed to be detected as a change.\n *\n * @param part\n * @param value\n */\nexport const setCommittedValue = (part: Part, value: unknown = RESET_VALUE) =>\n (part._$committedValue = value);\n\n/**\n * Returns the committed value of a ChildPart.\n *\n * The committed value is used for change detection and efficient updates of\n * the part. It can differ from the value set by the template or directive in\n * cases where the template value is transformed before being commited.\n *\n * - `TemplateResult`s are committed as a `TemplateInstance`\n * - Iterables are committed as `Array<ChildPart>`\n * - All other types are committed as the template value or value returned or\n * set by a directive.\n *\n * @param part\n */\nexport const getCommittedValue = (part: ChildPart) => part._$committedValue;\n\n/**\n * Removes a ChildPart from the DOM, including any of its content.\n *\n * @param part The Part to remove\n */\nexport const removePart = (part: ChildPart) => {\n part._$notifyConnectionChanged?.(false, true);\n let start: ChildNode | null = part._$startNode;\n const end: ChildNode | null = wrap(part._$endNode!).nextSibling;\n while (start !== end) {\n const n: ChildNode | null = wrap(start!).nextSibling;\n (wrap(start!) as ChildNode).remove();\n start = n;\n }\n};\n\nexport const clearPart = (part: ChildPart) => {\n part._$clear();\n};\n", "/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport type {TemplateResult} from './lit-html.js';\n\nimport {noChange, RenderOptions, _$LH} from './lit-html.js';\nimport {AttributePartInfo, PartType} from './directive.js';\nimport {\n isPrimitive,\n isSingleExpression,\n isTemplateResult,\n} from './directive-helpers.js';\n\nconst {\n _TemplateInstance: TemplateInstance,\n _isIterable: isIterable,\n _resolveDirective: resolveDirective,\n _ChildPart: ChildPart,\n _ElementPart: ElementPart,\n} = _$LH;\n\ntype ChildPart = InstanceType<typeof ChildPart>;\ntype TemplateInstance = InstanceType<typeof TemplateInstance>;\n\n/**\n * Information needed to rehydrate a single TemplateResult.\n */\ntype ChildPartState =\n | {\n type: 'leaf';\n /** The ChildPart that the result is rendered to */\n part: ChildPart;\n }\n | {\n type: 'iterable';\n /** The ChildPart that the result is rendered to */\n part: ChildPart;\n value: Iterable<unknown>;\n iterator: Iterator<unknown>;\n done: boolean;\n }\n | {\n type: 'template-instance';\n /** The ChildPart that the result is rendered to */\n part: ChildPart;\n\n result: TemplateResult;\n\n /** The TemplateInstance created from the TemplateResult */\n instance: TemplateInstance;\n\n /**\n * The index of the next Template part to be hydrated. This is mutable and\n * updated as the tree walk discovers new part markers at the right level in\n * the template instance tree. Note there is only one Template part per\n * attribute with (one or more) bindings.\n */\n templatePartIndex: number;\n\n /**\n * The index of the next TemplateInstance part to be hydrated. This is used\n * to retrieve the value from the TemplateResult and initialize the\n * TemplateInstance parts' values for dirty-checking on first render.\n */\n instancePartIndex: number;\n };\n\n/**\n * hydrate() operates on a container with server-side rendered content and\n * restores the client side data structures needed for lit-html updates such as\n * TemplateInstances and Parts. After calling `hydrate`, lit-html will behave as\n * if it initially rendered the DOM, and any subsequent updates will update\n * efficiently, the same as if lit-html had rendered the DOM on the client.\n *\n * hydrate() must be called on DOM that adheres the to lit-ssr structure for\n * parts. ChildParts must be represented with both a start and end comment\n * marker, and ChildParts that contain a TemplateInstance must have the template\n * digest written into the comment data.\n *\n * Since render() encloses its output in a ChildPart, there must always be a root\n * ChildPart.\n *\n * Example (using for # ... for annotations in HTML)\n *\n * Given this input:\n *\n * html`<div class=${x}>${y}</div>`\n *\n * The SSR DOM is:\n *\n * <!--lit-part AEmR7W+R0Ak=--> # Start marker for the root ChildPart created\n * # by render(). Includes the digest of the\n * # template\n * <div class=\"TEST_X\">\n * <!--lit-node 0--> # Indicates there are attribute bindings here\n * # The number is the depth-first index of the parent\n * # node in the template.\n * <!--lit-part--> # Start marker for the ${x} expression\n * TEST_Y\n * <!--/lit-part--> # End marker for the ${x} expression\n * </div>\n *\n * <!--/lit-part--> # End marker for the root ChildPart\n *\n * @param rootValue\n * @param container\n * @param userOptions\n */\nexport const hydrate = (\n rootValue: unknown,\n container: Element | DocumentFragment,\n options: Partial<RenderOptions> = {}\n) => {\n // TODO(kschaaf): Do we need a helper for _$litPart$ (\"part for node\")?\n // This property needs to remain unminified.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if ((container as any)['_$litPart$'] !== undefined) {\n throw new Error('container already contains a live render');\n }\n\n // Since render() creates a ChildPart to render into, we'll always have\n // exactly one root part. We need to hold a reference to it so we can set\n // it in the parts cache.\n let rootPart: ChildPart | undefined = undefined;\n\n // When we are in-between ChildPart markers, this is the current ChildPart.\n // It's needed to be able to set the ChildPart's endNode when we see a\n // close marker\n let currentChildPart: ChildPart | undefined = undefined;\n\n // Used to remember parent template state as we recurse into nested\n // templates\n const stack: Array<ChildPartState> = [];\n\n const walker = document.createTreeWalker(\n container,\n NodeFilter.SHOW_COMMENT,\n null,\n false\n );\n let marker: Comment | null;\n\n // Walk the DOM looking for part marker comments\n while ((marker = walker.nextNode() as Comment | null) !== null) {\n const markerText = marker.data;\n if (markerText.startsWith('lit-part')) {\n if (stack.length === 0 && rootPart !== undefined) {\n throw new Error('there must be only one root part per container');\n }\n // Create a new ChildPart and push it onto the stack\n currentChildPart = openChildPart(rootValue, marker, stack, options);\n rootPart ??= currentChildPart;\n } else if (markerText.startsWith('lit-node')) {\n // Create and hydrate attribute parts into the current ChildPart on the\n // stack\n createAttributeParts(marker, stack, options);\n // Remove `defer-hydration` attribute, if any\n const parent = marker.parentElement!;\n if (parent.hasAttribute('defer-hydration')) {\n parent.removeAttribute('defer-hydration');\n }\n } else if (markerText.startsWith('/lit-part')) {\n // Close the current ChildPart, and pop the previous one off the stack\n if (stack.length === 1 && currentChildPart !== rootPart) {\n throw new Error('internal error');\n }\n currentChildPart = closeChildPart(marker, currentChildPart, stack);\n }\n }\n console.assert(\n rootPart !== undefined,\n 'there should be exactly one root part in a render container'\n );\n // This property needs to remain unminified.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (container as any)['_$litPart$'] = rootPart;\n};\n\nconst openChildPart = (\n rootValue: unknown,\n marker: Comment,\n stack: Array<ChildPartState>,\n options: RenderOptions\n) => {\n let value: unknown;\n // We know the startNode now. We'll know the endNode when we get to\n // the matching marker and set it in closeChildPart()\n // TODO(kschaaf): Current constructor takes both nodes\n let part;\n if (stack.length === 0) {\n part = new ChildPart(marker, null, undefined, options);\n value = rootValue;\n } else {\n const state = stack[stack.length - 1];\n if (state.type === 'template-instance') {\n part = new ChildPart(marker, null, state.instance, options);\n state.instance._parts.push(part);\n value = state.result.values[state.instancePartIndex++];\n state.templatePartIndex++;\n } else if (state.type === 'iterable') {\n part = new ChildPart(marker, null, state.part, options);\n const result = state.iterator.next();\n if (result.done) {\n value = undefined;\n state.done = true;\n throw new Error('Unhandled shorter than expected iterable');\n } else {\n value = result.value;\n }\n (state.part._$committedValue as Array<ChildPart>).push(part);\n } else {\n // state.type === 'leaf'\n // TODO(kschaaf): This is unexpected, and likely a result of a primitive\n // been rendered on the client when a TemplateResult was rendered on the\n // server; this part will be hydrated but not used. We can detect it, but\n // we need to decide what to do in this case. Note that this part won't be\n // retained by any parent TemplateInstance, since a primitive had been\n // rendered in its place.\n // https://github.com/lit/lit/issues/1434\n // throw new Error('Hydration value mismatch: Found a TemplateInstance' +\n // 'where a leaf value was expected');\n part = new ChildPart(marker, null, state.part, options);\n }\n }\n\n // Initialize the ChildPart state depending on the type of value and push\n // it onto the stack. This logic closely follows the ChildPart commit()\n // cascade order:\n // 1. directive\n // 2. noChange\n // 3. primitive (note strings must be handled before iterables, since they\n // are iterable)\n // 4. TemplateResult\n // 5. Node (not yet implemented, but fallback handling is fine)\n // 6. Iterable\n // 7. nothing (handled in fallback)\n // 8. Fallback for everything else\n value = resolveDirective(part, value);\n if (value === noChange) {\n stack.push({part, type: 'leaf'});\n } else if (isPrimitive(value)) {\n stack.push({part, type: 'leaf'});\n part._$committedValue = value;\n // TODO(kschaaf): We can detect when a primitive is being hydrated on the\n // client where a TemplateResult was rendered on the server, but we need to\n // decide on a strategy for what to do next.\n // https://github.com/lit/lit/issues/1434\n // if (marker.data !== 'lit-part') {\n // throw new Error('Hydration value mismatch: Primitive found where TemplateResult expected');\n // }\n } else if (isTemplateResult(value)) {\n // Check for a template result digest\n const markerWithDigest = `lit-part ${digestForTemplateResult(value)}`;\n if (marker.data === markerWithDigest) {\n const template = ChildPart.prototype._$getTemplate(value);\n const instance = new TemplateInstance(template, part);\n stack.push({\n type: 'template-instance',\n instance,\n part,\n templatePartIndex: 0,\n instancePartIndex: 0,\n result: value,\n });\n // For TemplateResult values, we set the part value to the\n // generated TemplateInstance\n part._$committedValue = instance;\n } else {\n // TODO: if this isn't the server-rendered template, do we\n // need to stop hydrating this subtree? Clear it? Add tests.\n throw new Error(\n 'Hydration value mismatch: Unexpected TemplateResult rendered to part'\n );\n }\n } else if (isIterable(value)) {\n // currentChildPart.value will contain an array of ChildParts\n stack.push({\n part: part,\n type: 'iterable',\n value,\n iterator: value[Symbol.iterator](),\n done: false,\n });\n part._$committedValue = [];\n } else {\n // Fallback for everything else (nothing, Objects, Functions,\n // etc.): we just initialize the part's value\n // Note that `Node` value types are not currently supported during\n // SSR, so that part of the cascade is missing.\n stack.push({part: part, type: 'leaf'});\n part._$committedValue = value == null ? '' : value;\n }\n return part;\n};\n\nconst closeChildPart = (\n marker: Comment,\n part: ChildPart | undefined,\n stack: Array<ChildPartState>\n): ChildPart | undefined => {\n if (part === undefined) {\n throw new Error('unbalanced part marker');\n }\n\n part._$endNode = marker;\n\n const currentState = stack.pop()!;\n\n if (currentState.type === 'iterable') {\n if (!currentState.iterator.next().done) {\n throw new Error('unexpected longer than expected iterable');\n }\n }\n\n if (stack.length > 0) {\n const state = stack[stack.length - 1];\n return state.part;\n } else {\n return undefined;\n }\n};\n\nconst createAttributeParts = (\n comment: Comment,\n stack: Array<ChildPartState>,\n options: RenderOptions\n) => {\n // Get the nodeIndex from DOM. We're only using this for an integrity\n // check right now, we might not need it.\n const match = /lit-node (\\d+)/.exec(comment.data)!;\n const nodeIndex = parseInt(match[1]);\n\n // For void elements, the node the comment was referring to will be\n // the previousSibling; for non-void elements, the comment is guaranteed\n // to be the first child of the element (i.e. it won't have a previousSibling\n // meaning it should use the parentElement)\n const node = comment.previousSibling ?? comment.parentElement;\n\n const state = stack[stack.length - 1];\n if (state.type === 'template-instance') {\n const instance = state.instance;\n // eslint-disable-next-line no-constant-condition\n while (true) {\n // If the next template part is in attribute-position on the current node,\n // create the instance part for it and prime its state\n const templatePart = instance._$template.parts[state.templatePartIndex];\n if (\n templatePart === undefined ||\n (templatePart.type !== PartType.ATTRIBUTE &&\n templatePart.type !== PartType.ELEMENT) ||\n templatePart.index !== nodeIndex\n ) {\n break;\n }\n\n if (templatePart.type === PartType.ATTRIBUTE) {\n // The instance part is created based on the constructor saved in the\n // template part\n const instancePart = new templatePart.ctor(\n node as HTMLElement,\n templatePart.name,\n templatePart.strings,\n state.instance,\n options\n );\n\n const value = isSingleExpression(\n instancePart as unknown as AttributePartInfo\n )\n ? state.result.values[state.instancePartIndex]\n : state.result.values;\n\n // Setting the attribute value primes committed value with the resolved\n // directive value; we only then commit that value for event/property\n // parts since those were not serialized, and pass `noCommit` for the\n // others to avoid perf impact of touching the DOM unnecessarily\n const noCommit = !(\n instancePart.type === PartType.EVENT ||\n instancePart.type === PartType.PROPERTY\n );\n instancePart._$setValue(\n value,\n instancePart,\n state.instancePartIndex,\n noCommit\n );\n state.instancePartIndex += templatePart.strings.length - 1;\n instance._parts.push(instancePart);\n } else {\n // templatePart.type === PartType.ELEMENT\n const instancePart = new ElementPart(\n node as HTMLElement,\n state.instance,\n options\n );\n resolveDirective(\n instancePart,\n state.result.values[state.instancePartIndex++]\n );\n instance._parts.push(instancePart);\n }\n state.templatePartIndex++;\n }\n } else {\n throw new Error('internal error');\n }\n};\n\n// Number of 32 bit elements to use to create template digests\nconst digestSize = 2;\n// We need to specify a digest to use across rendering environments. This is a\n// simple digest build from a DJB2-ish hash modified from:\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\n// It has been changed to an array of hashes to add additional bits.\n// Goals:\n// - Extremely low collision rate. We may not be able to detect collisions.\n// - Extremely fast.\n// - Extremely small code size.\n// - Safe to include in HTML comment text or attribute value.\n// - Easily specifiable and implementable in multiple languages.\n// We don't care about cryptographic suitability.\nexport const digestForTemplateResult = (templateResult: TemplateResult) => {\n const hashes = new Uint32Array(digestSize).fill(5381);\n\n for (const s of templateResult.strings) {\n for (let i = 0; i < s.length; i++) {\n hashes[i % digestSize] = (hashes[i % digestSize] * 33) ^ s.charCodeAt(i);\n }\n }\n return btoa(String.fromCharCode(...new Uint8Array(hashes.buffer)));\n};\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * LitElement support for hydration of content rendered using lit-ssr.\n *\n * @packageDocumentation\n */\n\nimport type {PropertyValues} from '@lit/reactive-element';\nimport {render, RenderOptions} from 'lit-html';\nimport {hydrate} from 'lit-html/experimental-hydrate.js';\n\ninterface PatchableLitElement extends HTMLElement {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-misused-new\n new (...args: any[]): PatchableLitElement;\n enableUpdating(requestedUpdate?: boolean): void;\n createRenderRoot(): Element | ShadowRoot;\n renderRoot: HTMLElement | DocumentFragment;\n render(): unknown;\n renderOptions: RenderOptions;\n _$needsHydration: boolean;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nglobalThis.litElementHydrateSupport = ({\n LitElement,\n}: {\n LitElement: PatchableLitElement;\n}) => {\n const observedAttributes = Object.getOwnPropertyDescriptor(\n Object.getPrototypeOf(LitElement),\n 'observedAttributes'\n )!.get!;\n\n // Add `defer-hydration` to observedAttributes\n Object.defineProperty(LitElement, 'observedAttributes', {\n get() {\n return [...observedAttributes.call(this), 'defer-hydration'];\n },\n });\n\n // Enable element when 'defer-hydration' attribute is removed by calling the\n // super.connectedCallback()\n const attributeChangedCallback =\n LitElement.prototype.attributeChangedCallback;\n LitElement.prototype.attributeChangedCallback = function (\n name: string,\n old: string | null,\n value: string | null\n ) {\n if (name === 'defer-hydration' && value === null) {\n connectedCallback.call(this);\n }\n attributeChangedCallback.call(this, name, old, value);\n };\n\n // Override `connectedCallback` to capture whether we need hydration, and\n // defer `super.connectedCallback()` if the 'defer-hydration' attribute is set\n const connectedCallback = LitElement.prototype.connectedCallback;\n LitElement.prototype.connectedCallback = function (\n this: PatchableLitElement\n ) {\n // If the outer scope of this element has not yet been hydrated, wait until\n // 'defer-hydration' attribute has been removed to enable\n if (!this.hasAttribute('defer-hydration')) {\n connectedCallback.call(this);\n }\n };\n\n // If we've been server-side rendered, just return `this.shadowRoot`, don't\n // call the base implementation, which would also adopt styles (for now)\n const createRenderRoot = LitElement.prototype.createRenderRoot;\n LitElement.prototype.createRenderRoot = function (this: PatchableLitElement) {\n if (this.shadowRoot) {\n this._$needsHydration = true;\n return this.shadowRoot;\n } else {\n return createRenderRoot.call(this);\n }\n };\n\n // Hydrate on first update when needed\n const update = Object.getPrototypeOf(LitElement.prototype).update;\n LitElement.prototype.update = function (\n this: PatchableLitElement,\n changedProperties: PropertyValues\n ) {\n const value = this.render();\n // Since this is a patch, we can't call super.update(), so we capture\n // it off the proto chain and call it instead\n update.call(this, changedProperties);\n if (this._$needsHydration) {\n this._$needsHydration = false;\n hydrate(value, this.renderRoot, this.renderOptions);\n } else {\n render(value, this.renderRoot, this.renderOptions);\n }\n };\n};\n", "import 'lit-element/experimental-hydrate-support.js';\n\nconst registeredComponents : {\n [key: string]: true;\n} = {};\n\nexport let config : {\n suffix : string | false,\n};\n\n/**\n * Define Components\n * Gotchas:\n * - can't have two runtimes on same page, so need root to be unversioned and \n * child versioned (from same url)\n * - b/c the comp classes can only be registered once. The child should\n * always be bundled.\n * @param {object} args\n * @return {void}\n */\nexport async function defineComponents(\n args : {\n components?: string[],\n suffix?: string,\n } = {},\n) {\n // defaults to a runtime config w/ all comps, no suffix, and assets runtime.\n const {\n components = false,\n suffix = false,\n } = args;\n\n // Global Config\n config = {\n suffix,\n };\n\n const allComponents = components ? false : true;\n\n const suffixFinal = suffix ? `-${suffix}` : '';\n const promiseArr: Promise<void>[] = [];\n\n /**\n * Add to a promise\n * @param {string} compStr\n * @param {any} importCall\n */\n function addToPromise(compStr: string, importCall: any) {\n promiseArr.push((async () => {\n const compName = `${compStr}${suffixFinal}`;\n // avoid name dups (doesn't catch class dups!!!!)\n if ( !registeredComponents[compName] ) {\n registeredComponents[compName] = true;\n try {\n window.customElements.define(\n compName,\n (await importCall).default,\n );\n } catch (error) {\n console.error( compName, error );\n }\n }\n })());\n }\n\n /**\n * include\n * @argument {string} compStr\n * @return {boolean}\n */\n function include(compStr: string) {\n if (allComponents) return true;\n if (Array.isArray( components) ) {\n return components ? components.includes(compStr) : false;\n }\n }\n\n // need the import to be picked up by esbuild...\n if (include('scw-component')) {\n addToPromise('scw-component',\n import(`./scw-component/ScwComponent`));\n }\n if (include('scw-form-component')) {\n addToPromise('scw-form-component',\n import(`./scw-form-component/scw-form-component`) );\n }\n if (include('scw-card')) {\n addToPromise('scw-card',\n import(`./scw-card/ScwCard`));\n }\n if (include('scw-input-field')) {\n addToPromise('scw-input-field',\n import(`./scw-input-field/scw-input-field`) );\n }\n if (include('scw-input-layout')) {\n addToPromise('scw-input-layout',\n import(`./scw-input-layout/scw-input-layout`) );\n }\n if (include('scw-link')) {\n addToPromise('scw-link',\n import(`./scw-link/ScwLink`) );\n }\n if (include('scw-button')) {\n addToPromise('scw-button',\n import(`./scw-button/ScwButton`) );\n }\n if (include('scw-menu')) {\n addToPromise('scw-menu',\n import(`./scw-menu/ScwMenu`) );\n }\n if (include('scw-menu-item')) {\n addToPromise('scw-menu-item',\n import(`./scw-menu-item/ScwMenuItem`) );\n }\n if (include('scw-icon')) {\n addToPromise('scw-icon',\n import(`./scw-icon/ScwIcon`) );\n }\n if (include('scw-heading')) {\n addToPromise('scw-heading',\n import(`./scw-heading/ScwHeading`) );\n }\n if (include('scw-image')) {\n addToPromise('scw-image',\n import(`./scw-image/ScwImage`) );\n }\n if (include('scw-input')) {\n addToPromise('scw-input',\n import(`./scw-input/scw-input`) );\n }\n if (include('scw-single-input')) {\n addToPromise('scw-single-input',\n import(`./scw-single-input/scw-single-input`) );\n }\n if (include('scw-single-input-layout')) {\n addToPromise('scw-single-input-layout',\n import(`./scw-single-input-layout/scw-single-input-layout`) );\n }\n if (include('scw-responsive')) {\n addToPromise('scw-responsive',\n import(`./scw-responsive/scw-responsive`) );\n }\n if (include('scw-validation')) {\n addToPromise('scw-validation',\n import(`./scw-validation/scw-validation`) );\n }\n if (include('scw-validate')) {\n addToPromise('scw-validate',\n import(`./scw-validate/scw-validate`) );\n }\n if (include('scw-flex-h-component')) {\n addToPromise('scw-flex-h-component',\n import(`./scw-flex-h-component/scw-flex-h-component`) );\n }\n if (include('scw-flex-v-component')) {\n addToPromise('scw-flex-v-component',\n import(`./scw-flex-v-component/scw-flex-v-component`) );\n }\n if (include('scw-stack-component')) {\n addToPromise('scw-stack-component',\n import(`./scw-stack-component/scw-stack-component`) );\n }\n if (include('scw-layout-component')) {\n addToPromise('scw-layout-component',\n import(`./scw-layout-component/scw-layout-component`) );\n }\n if (include('scw-element-component')) {\n addToPromise('scw-element-component',\n import(`./scw-element-component/scw-element-component`) );\n }\n if (include('scw-center-component')) {\n addToPromise('scw-center-component',\n import(`./scw-center-component/ScwCenterComponent`) );\n }\n if (include('scw-float-component')) {\n addToPromise('scw-float-component',\n import(`./scw-float-component/scw-float-component`) );\n }\n if (include('scw-pane-component')) {\n addToPromise('scw-pane-component',\n import(`./scw-pane-component/scw-pane-component`) );\n }\n if (include('scw-form')) {\n addToPromise('scw-form',\n import(`./scw-form/scw-form`) );\n }\n if (include('scw-page-alert')) {\n addToPromise('scw-page-alert',\n import(`./scw-page-alert/scw-page-alert`) );\n }\n if (include('scw-link-base')) {\n addToPromise('scw-link-base',\n import(`./scw-link-base/ScwLinkBase`) );\n }\n if (include('scw-textarea')) {\n addToPromise('scw-textarea',\n import(`./scw-textarea/scw-textarea`) );\n }\n if (include('scw-select')) {\n addToPromise('scw-select',\n import(`./scw-select/scw-select`) );\n }\n if (include('scw-alert')) {\n addToPromise('scw-alert',\n import(`./scw-alert/ScwAlert`) );\n }\n\n return Promise.all(promiseArr);\n}\n"],
|
|
5
|
+
"mappings": "8FAeA,GAAA,CAAO,EAAY,GAAa,EAkBnB,EAAe,GAChB,AAAV,IAAU,MAAyB,AAAA,MAAT,IAAS,UAA4B,AAAA,MAAT,IAAS,WAnBjE,GAgCa,GAAmB,CAC9B,EACA,IAAA,CAAA,GAAA,GAAA,EAEA,MAAA,AAAA,KA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gBACX,OAAO,kCAA+B,EAEtC,EAAQ,cAAc,GACxB,EAAa,eACX,OAAO,kCAA+B,EAEtC,EAAQ,YAAY,GACtB,EAAa,aACX,OAAO,8BAA2B,EAElC,EAAQ,WAAW,GACrB,EAAa,YACX,OAAO,2BAAwB,EAG5B,QAAQ,IAAI,CAAU,CAC/B",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import{a as l}from"./chunk.O3SA7BGC.js";import{a as m}from"./chunk.XYQXIJM3.js";import{c as b}from"./chunk.O2JPQSNG.js";import{a as d,b as s,c as n}from"./chunk.6ITKITRF.js";import{a as p}from"./chunk.WO7EIYQ3.js";import{b as c}from"./chunk.ZZQE6TG6.js";import{a as r}from"./chunk.ZS4C3T6Z.js";import{g as i}from"./chunk.5YJY6NT6.js";var g=d`
|
|
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 .scw-link-base {
|
|
20
|
+
display: block;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
:host .scw-link-base img {
|
|
27
|
+
display: block;
|
|
28
|
+
position: absolute;
|
|
29
|
+
}`;var t=class extends b{constructor(){super();this.noLazyLoading=!1;this.resizeBreakpoints=`${"sm"}, ${"md"}, ${"lg"}`;this._isIntersecting=!1;this._hasIntersected=!1;this._resizeBreakpoints=[];this.element="image"}static get styles(){return[super.styles,g]}firstUpdated(e){super.firstUpdated(e),this._resizeHandler=this._resizeHandler.bind(this),this._intersectionHandler=this._intersectionHandler.bind(this),this.noLazyLoading?this._hasIntersected=!0:l.registerCallback(this,this._intersectionHandler),this.establishResizeBreakpoints()}parseAndValidateLightDom(){super.parseAndValidateLightDom(),m(this)}disconnectedCallback(){super.disconnectedCallback(),this._lightDomMutationObserver&&this._lightDomMutationObserver.disconnect(),l.unregisterCallback(this,this._intersectionHandler),p.removeBreakpointListener(this._resizeBreakpoints,this._resizeHandler)}establishResizeBreakpoints(){if(this.srcset){let e=this.resizeBreakpoints.split(","),o=c();this._resizeBreakpoints=[],e.map(h=>{let a=o[h.trim()];a&&this._resizeBreakpoints.push(a)}),p.addBreakpointListener(this._resizeBreakpoints,this._resizeHandler),this._resizeHandler()}}_resizeHandler(){this._imageSize=this.clientWidth}_intersectionHandler(e){this._isIntersecting=e,this._hasIntersected=this._hasIntersected?!0:e}renderContainerCss(){if(this.aspectRatio){let e=this.aspectRatio.split(":"),o=parseFloat(e[0]);return`
|
|
30
|
+
display: block;
|
|
31
|
+
padding-bottom: ${parseFloat(e[1])/o*100}%;
|
|
32
|
+
height: 0;`}return""}renderImgCss(){return this.objectFit||this.objectPosition?`
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0; left: 0;
|
|
35
|
+
width: 100%; height: 100%;
|
|
36
|
+
object-fit: ${this.objectFit?this.objectFit:"contain"};
|
|
37
|
+
object-position: ${this.objectPosition?this.objectPosition:"center"}`:""}renderContent(){return this._hasIntersected?this._imageSize&&this.srcset?r`
|
|
38
|
+
<img
|
|
39
|
+
style="${this.renderImgCss()}"
|
|
40
|
+
srcset="${this.srcset}"
|
|
41
|
+
sizes="${this._imageSize}px"
|
|
42
|
+
alt="${this.ariaLabel}" />`:r`
|
|
43
|
+
<img
|
|
44
|
+
style="${this.renderImgCss()}"
|
|
45
|
+
src="${this.src?this.src:!1}"
|
|
46
|
+
alt="${this.ariaLabel}" />`:r``}render(){return this.renderLink(this.renderContent(),this.renderContainerCss())}};i([s({type:String,attribute:"aspect-ratio"})],t.prototype,"aspectRatio",2),i([s({type:String,attribute:"object-fit"})],t.prototype,"objectFit",2),i([s({type:String,attribute:"object-position"})],t.prototype,"objectPosition",2),i([s({type:String})],t.prototype,"srcset",2),i([s({type:String})],t.prototype,"src",2),i([s({type:Boolean,attribute:"no-lazy-loading"})],t.prototype,"noLazyLoading",2),i([s({type:String,attribute:"resize-breakpoints"})],t.prototype,"resizeBreakpoints",2),i([n()],t.prototype,"_imageSize",2),i([n()],t.prototype,"_isIntersecting",2),i([n()],t.prototype,"_hasIntersected",2);export{t as a};
|
|
47
|
+
//# sourceMappingURL=chunk.LJ7I7HM6.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-image/scss/scw-image.scss", "../../src/scw-image/ScwImage.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 .scw-link-base {\n display: block;\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 100%;\n}\n:host .scw-link-base img {\n display: block;\n position: absolute;\n}`;\n", "import {html} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport styles from './scss/scw-image.scss';\nimport {Components} from '../utils/enums/Components';\n// import resizeSingleton from '../utils/observers/resizeObserverSingleton';\nimport mediaQueryListSingleton\n from '../utils/observers/mediaQueryListSingleton';\nimport intersectionObserverSingleton\n from '../utils/observers/intersectionObserverSingleton';\nimport ScwLinkBase from '../scw-link-base/ScwLinkBase';\nimport validate from './scw-image-validate';\nimport {BreakpointNames, Breakpoint} from '../utils/responsive/BreakpointTypes';\n// import ResponsiveElement from '../utils/responsive/ResponsiveElement';\nimport {breakpointLookup} from '../utils/responsive/breakpoints';\n\n/**\n * ScwImage\n * @class\n * @tag scw-image\n *\n * @slot [default=\"<img src alt />\"]\n Base image to display. This is generally a LQIP (Low Quality Image\n Placeholder)\n * @slot [default=\"<a href target><source /><img src alt /></a>\"]\n (OPTIONAL) anchor (for SEO) will determine the label, href, and target in\n addition to size and label.\n */\nexport default class ScwImage extends ScwLinkBase {\n /**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n // ============== ScwImage =================================================\n /** (ScwImage) Width:Height ratio */\n @property({type: String, attribute: 'aspect-ratio'})\n aspectRatio: string | undefined;// = '2:1';\n\n /** (ScwImage) Object Fit CSS */\n @property({type: String, attribute: 'object-fit'})\n objectFit: string | undefined;// = 'contain';\n\n /** (ScwImage) Object Position CSS */\n @property({type: String, attribute: 'object-position'})\n objectPosition: string | undefined;// = 'center';\n\n /** (ScwImage) srcset of image */\n @property({type: String})\n srcset: string | undefined;\n\n /** (ScwImage) src of image */\n @property({type: String})\n src: string | undefined;// NOTE: \"#\" don't work in chrome w/ inline imgs\n\n /** (ScwImage) turn off lazy loading */\n @property({type: Boolean, attribute: 'no-lazy-loading'})\n noLazyLoading: boolean = false;\n\n /** (ScwImage) establishes when (via the name of the breakpoint)\n * the image figures out it's sizing for srcset */\n @property({type: String, attribute: 'resize-breakpoints'})\n resizeBreakpoints: string = `${\n BreakpointNames.breakpointSM}, ${\n BreakpointNames.breakpointMD}, ${\n BreakpointNames.breakpointLG}`;\n\n // ====== STATES =============================================================\n /** (ScwImage) the image size derived from resize observer */\n @state()\n _imageSize : number | undefined;\n\n /** (ScwImage) determines whether element is intersecting */\n @state()\n _isIntersecting : boolean = false;\n\n /** (ScwImage) determines whether element has intersected once */\n @state()\n _hasIntersected : boolean = false;\n\n _resizeBreakpoints: Breakpoint[] = [];\n\n /** Constructor */\n constructor() {\n super();\n this.element = Components.image;\n }\n\n /**\n * first updated\n * @param {Map<string | number | symbol, unknown>} changedProps\n */\n firstUpdated(changedProps: Map<string | number | symbol, unknown>) {\n super.firstUpdated(changedProps);\n this._resizeHandler = this._resizeHandler.bind(this);\n this._intersectionHandler = this._intersectionHandler.bind(this);\n if (!this.noLazyLoading) {\n intersectionObserverSingleton.registerCallback(\n this, this._intersectionHandler,\n );\n } else {\n // resizeSingleton.registerCallback(this, this._resizeHandler);\n this._hasIntersected = true;\n }\n\n this.establishResizeBreakpoints();\n }\n\n /** parseAndValidateLightDom, just adding local parsing and validation */\n parseAndValidateLightDom() {\n super.parseAndValidateLightDom();\n validate( this );\n }\n\n /**\n * disconnect from dom\n */\n disconnectedCallback() {\n super.disconnectedCallback();\n if (this._lightDomMutationObserver) {\n this._lightDomMutationObserver.disconnect();\n }\n intersectionObserverSingleton.unregisterCallback(\n this, this._intersectionHandler,\n );\n mediaQueryListSingleton.removeBreakpointListener(\n this._resizeBreakpoints,\n this._resizeHandler,\n );\n }\n\n /**\n * Establish Resize Breakpoints\n */\n establishResizeBreakpoints() {\n if (this.srcset) {\n const resizeBreakpointsArr = this.resizeBreakpoints.split(',');\n const bpLookup = breakpointLookup();\n this._resizeBreakpoints = [];\n resizeBreakpointsArr.map((bp) => {\n const bpObj = bpLookup[bp.trim()];\n if (bpObj) {\n this._resizeBreakpoints.push(bpObj);\n }\n });\n mediaQueryListSingleton.addBreakpointListener(\n this._resizeBreakpoints,\n this._resizeHandler,\n );\n this._resizeHandler();// need a first _imageSize\n }\n }\n\n /**\n * handle resize events\n */\n _resizeHandler() {\n this._imageSize = this.clientWidth;\n }\n\n /**\n * handle resize events\n * @param {boolean} intersecting\n * @param {number} ratio\n */\n _intersectionHandler(intersecting: boolean) {// }, ratio: number) {\n this._isIntersecting = intersecting;\n // images only render once...\n this._hasIntersected = this._hasIntersected ? true : intersecting;\n }\n\n /**\n * Translate aspect ration string to a number (percent)\n * @return {string}\n */\n renderContainerCss() {\n if ( this.aspectRatio) {\n const aspectRatioArr = this.aspectRatio.split(':');\n const w = parseFloat(aspectRatioArr[0]);\n const h = parseFloat(aspectRatioArr[1]);\n const percent = (h / w) * 100;\n return `\n display: block;\n padding-bottom: ${percent}%;\n height: 0;`;\n }\n return ``;\n }\n\n /**\n * Css for image\n * @return {string}\n */\n renderImgCss() : string {\n if ( this.objectFit || this.objectPosition ) { //this.aspectRatio ) {\n return `\n position: absolute;\n top: 0; left: 0;\n width: 100%; height: 100%;\n object-fit: ${this.objectFit ? this.objectFit : 'contain'};\n object-position: ${this.objectPosition ?\n this.objectPosition : 'center'}`;\n } else {\n return ``;\n }\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n renderContent(): object {\n if (this._hasIntersected) {\n if (this._imageSize && this.srcset) {\n return html`\n <img\n style=\"${this.renderImgCss()}\"\n srcset=\"${this.srcset}\"\n sizes=\"${this._imageSize}px\"\n alt=\"${this.ariaLabel}\" />`;\n } else {\n return html`\n <img\n style=\"${this.renderImgCss()}\"\n src=\"${this.src ? this.src : false}\"\n alt=\"${this.ariaLabel}\" />`;\n }\n } else {\n return html``;\n }\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return this.renderLink(\n this.renderContent(),\n this.renderContainerCss(),\n );\n }\n}\n"],
|
|
5
|
+
"mappings": "8UACA,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;GC0Bf,mBAAsC,EAAY,CA4DhD,aAAc,CACZ,MAAM,EA3BN,mBAAyB,GAKzB,uBAA4B,GAC1B,SACA,SACA,OASJ,qBAA4B,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
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/suffix.ts"],
|
|
4
|
+
"sourcesContent": ["import {config} from '../scw';\n\n/**\n * Pulls suffix from global design system config with some formatting options\n * @param {string} connector\n * @return {string}\n */\nexport default function getSuffix(connector: string = '-') {\n return config ? config.suffix ? `${connector}${config.suffix}` : '' : '';\n}\n\n"],
|
|
5
|
+
"mappings": "wCAOe,WAAmB,EAAoB,IAAK,CACzD,MAAO,IAAS,EAAO,OAAS,GAAG,IAAY,EAAO,SAAgB,EACxE",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import{a as n,b as s}from"./chunk.RGGLFZST.js";import{a as g}from"./chunk.4J3VZJLM.js";import{c}from"./chunk.OXJR2CBC.js";import{a,b as r,c as o,e as l}from"./chunk.HCMPRDIX.js";import{a as d}from"./chunk.UM2EZXNH.js";import{g as e}from"./chunk.5YJY6NT6.js";var h=a`
|
|
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 i=g();this.headerNodeName=n(`scw-${"heading"}${i}`),this.imageNodeName=n(`scw-${"image"}${i}`),this.linkNodeName=n(`scw-${"link"}${i}`)}static get styles(){return[super.styles,h]}parseAndValidateLightDom(){d(this),super.parseAndValidateLightDom()}clickHandler(i){i.stopPropagation(),this.click()}warn(i){this._heading=`error: ${i}`,l.prototype.warn.call(this,i)}renderImage(){if((this.src||this.srcset)&&this.alt)return s`
|
|
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
|
+
`}renderButton(){return this.action==="link"?s`
|
|
224
|
+
<${this.linkNodeName}
|
|
225
|
+
aria-label="${this._linkLabel?this._linkLabel:"no label"}"
|
|
226
|
+
@click="${this.clickHandler}">
|
|
227
|
+
</${this.linkNodeName}>`:null}renderBody(){return s`
|
|
228
|
+
${this.renderImage()}
|
|
229
|
+
${this._superHeading?s`
|
|
230
|
+
<div class="super-heading">
|
|
231
|
+
${this._superHeading}
|
|
232
|
+
</div>`:""}
|
|
233
|
+
<${this.headerNodeName}
|
|
234
|
+
style="--scw-color-04: var( --scw-color-grey-02 );"
|
|
235
|
+
dynamic class="heading"
|
|
236
|
+
aria-label="${this._heading}"
|
|
237
|
+
${this.size==="large"?`
|
|
238
|
+
size="h1"
|
|
239
|
+
`:"test11"}
|
|
240
|
+
${this.size==="medium"?`
|
|
241
|
+
size="h2"
|
|
242
|
+
`:"test22"}
|
|
243
|
+
${this.size==="small"?`
|
|
244
|
+
size="h3"
|
|
245
|
+
`:"test33"}>
|
|
246
|
+
</${this.headerNodeName}>
|
|
247
|
+
${this._description?s`
|
|
248
|
+
<div class="description">
|
|
249
|
+
(${this._heading}) ${this._description}
|
|
250
|
+
</div>`:""}`}render(){return this.action==="whole"?this.renderBody():s`
|
|
251
|
+
${this.renderBody()}
|
|
252
|
+
${this.renderButton()}`}};e([o()],t.prototype,"src",2),e([o()],t.prototype,"srcset",2),e([o()],t.prototype,"alt",2),e([o()],t.prototype,"_heading",2),e([o()],t.prototype,"_superHeading",2),e([o()],t.prototype,"_description",2),e([o()],t.prototype,"_linkLabel",2),e([r({type:String,reflect:!0})],t.prototype,"size",2),e([r({type:String,reflect:!0})],t.prototype,"action",2);export{t as a};
|
|
253
|
+
//# sourceMappingURL=chunk.LORW33MQ.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 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 style=\"--scw-color-04: var( --scw-color-grey-02 );\"\n dynamic class=\"heading\"\n aria-label=\"${this._heading}\"\n ${(this.size === ScwCardSizes.large) ? `\n size=\"h1\"\n ` : 'test11'}\n ${(this.size === ScwCardSizes.medium) ? `\n size=\"h2\"\n ` : 'test22'}\n ${(this.size === ScwCardSizes.small) ? `\n size=\"h3\"\n ` : 'test33'}>\n </${this.headerNodeName}>\n ${this._description ?\n html`\n <div class=\"description\">\n (${this._heading}) ${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.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AAA,YACD,KAAK,OAAS,SAAuB;AAAA;AAAA,YAEpC;AAAA,YACD,KAAK,OAAS,QAAsB;AAAA;AAAA,YAEnC;AAAA,YACF,KAAK;AAAA,SACR,KAAK,aACJ;AAAA;AAAA,eAEK,KAAK,aAAa,KAAK;AAAA,kBAClB,IAElB,CAMA,QAAkB,CAChB,MAAI,MAAK,SAAW,QACX,KAAK,WAAW,EAEhB;AAAA,UACH,KAAK,WAAW;AAAA,UAChB,KAAK,aAAa,GAE1B,CACF,EArKW,GAAT,AAAC,EAAM,GAAE,AAbX,EAaW,mBAGA,GAAT,AAAC,EAAM,GAAE,AAhBX,EAgBW,sBAGA,GAAT,AAAC,EAAM,GAAE,AAnBX,EAmBW,mBAIA,GAAT,AAAC,EAAM,GAAE,AAvBX,EAuBW,wBAIA,GAAT,AAAC,EAAM,GAAE,AA3BX,EA2BW,6BAIA,GAAT,AAAC,EAAM,GAAE,AA/BX,EA+BW,4BAGA,GAAT,AAAC,EAAM,GAAE,AAlCX,EAkCW,0BAOP,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AAzCJ,EAyCI,oBAKA,GADF,AAAC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GACrC,AA9CJ,EA8CI",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as u}from"./chunk.VYQRBSTB.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.LWBFEJU4.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,O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C,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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{a as f}from"./chunk.5HZ4WTGH.js";import{c as w,e as h,f as d}from"./chunk.ZS4C3T6Z.js";var{H:O}=d,v=r=>r===null||typeof r!="object"&&typeof r!="function";var y=(r,a)=>{var i,n;return a===void 0?((i=r)===null||i===void 0?void 0:i._$litType$)!==void 0:((n=r)===null||n===void 0?void 0:n._$litType$)===a};var g=r=>r.strings===void 0;var{R:_,D:P,j:A,H:m,Z:E}=d,$=(r,a,i={})=>{if(a._$litPart$!==void 0)throw Error("container already contains a live render");let n,s,o=[],e=document.createTreeWalker(a,NodeFilter.SHOW_COMMENT,null,!1),t;for(;(t=e.nextNode())!==null;){let l=t.data;if(l.startsWith("lit-part")){if(o.length===0&&n!==void 0)throw Error("there must be only one root part per container");s=T(r,t,o,i),n!=null||(n=s)}else if(l.startsWith("lit-node")){R(t,o,i);let c=t.parentElement;c.hasAttribute("defer-hydration")&&c.removeAttribute("defer-hydration")}else if(l.startsWith("/lit-part")){if(o.length===1&&s!==n)throw Error("internal error");s=C(t,s,o)}}console.assert(n!==void 0,"there should be exactly one root part in a render container"),a._$litPart$=n},T=(r,a,i,n)=>{let s,o;if(i.length===0)o=new m(a,null,void 0,n),s=r;else{let e=i[i.length-1];if(e.type==="template-instance")o=new m(a,null,e.instance,n),e.instance.v.push(o),s=e.result.values[e.instancePartIndex++],e.templatePartIndex++;else if(e.type==="iterable"){o=new m(a,null,e.part,n);let t=e.iterator.next();if(t.done)throw s=void 0,e.done=!0,Error("Unhandled shorter than expected iterable");s=t.value,e.part._$AH.push(o)}else o=new m(a,null,e.part,n)}if(s=A(o,s),s===w)i.push({part:o,type:"leaf"});else if(v(s))i.push({part:o,type:"leaf"}),o._$AH=s;else if(y(s)){let e="lit-part "+H(s);if(a.data!==e)throw Error("Hydration value mismatch: Unexpected TemplateResult rendered to part");{let t=m.prototype._$AC(s),l=new _(t,o);i.push({type:"template-instance",instance:l,part:o,templatePartIndex:0,instancePartIndex:0,result:s}),o._$AH=l}}else P(s)?(i.push({part:o,type:"iterable",value:s,iterator:s[Symbol.iterator](),done:!1}),o._$AH=[]):(i.push({part:o,type:"leaf"}),o._$AH=s==null?"":s);return o},C=(r,a,i)=>{if(a===void 0)throw Error("unbalanced part marker");a._$AB=r;let n=i.pop();if(n.type==="iterable"&&!n.iterator.next().done)throw Error("unexpected longer than expected iterable");if(i.length>0)return i[i.length-1].part},R=(r,a,i)=>{var n;let s=/lit-node (\d+)/.exec(r.data),o=parseInt(s[1]),e=(n=r.previousSibling)!==null&&n!==void 0?n:r.parentElement,t=a[a.length-1];if(t.type!=="template-instance")throw Error("internal error");{let l=t.instance;for(;;){let c=l._$AD.parts[t.templatePartIndex];if(c===void 0||c.type!==f.ATTRIBUTE&&c.type!==f.ELEMENT||c.index!==o)break;if(c.type===f.ATTRIBUTE){let p=new c.ctor(e,c.name,c.strings,t.instance,i),u=g(p)?t.result.values[t.instancePartIndex]:t.result.values,x=!(p.type===f.EVENT||p.type===f.PROPERTY);p._$AI(u,p,t.instancePartIndex,x),t.instancePartIndex+=c.strings.length-1,l.v.push(p)}else{let p=new E(e,t.instance,i);A(p,t.result.values[t.instancePartIndex++]),l.v.push(p)}t.templatePartIndex++}}},H=r=>{let a=new Uint32Array(2).fill(5381);for(let i of r.strings)for(let n=0;n<i.length;n++)a[n%2]=33*a[n%2]^i.charCodeAt(n);return btoa(String.fromCharCode(...new Uint8Array(a.buffer)))};globalThis.litElementHydrateSupport=({LitElement:r})=>{let a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(r),"observedAttributes").get;Object.defineProperty(r,"observedAttributes",{get(){return[...a.call(this),"defer-hydration"]}});let i=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(e,t,l){e==="defer-hydration"&&l===null&&n.call(this),i.call(this,e,t,l)};let n=r.prototype.connectedCallback;r.prototype.connectedCallback=function(){this.hasAttribute("defer-hydration")||n.call(this)};let s=r.prototype.createRenderRoot;r.prototype.createRenderRoot=function(){return this.shadowRoot?(this._$AG=!0,this.shadowRoot):s.call(this)};let o=Object.getPrototypeOf(r.prototype).update;r.prototype.update=function(e){let t=this.render();o.call(this,e),this._$AG?(this._$AG=!1,$(t,this.renderRoot,this.renderOptions)):h(t,this.renderRoot,this.renderOptions)}};var b={},I;async function V(r={}){let{components:a=!1,suffix:i=!1}=r;I={suffix:i};let n=!a,s=i?`-${i}`:"",o=[];function e(l,c){o.push((async()=>{let p=`${l}${s}`;if(!b[p]){b[p]=!0;try{window.customElements.define(p,(await c).default)}catch(u){console.error(p,u)}}})())}function t(l){if(n)return!0;if(Array.isArray(a))return a?a.includes(l):!1}return t("scw-component")&&e("scw-component",import("../scw-component/ScwComponent.js")),t("scw-form-component")&&e("scw-form-component",import("../scw-form-component/scw-form-component.js")),t("scw-card")&&e("scw-card",import("../scw-card/ScwCard.js")),t("scw-input-field")&&e("scw-input-field",import("../scw-input-field/scw-input-field.js")),t("scw-input-layout")&&e("scw-input-layout",import("../scw-input-layout/scw-input-layout.js")),t("scw-link")&&e("scw-link",import("../scw-link/ScwLink.js")),t("scw-button")&&e("scw-button",import("../scw-button/ScwButton.js")),t("scw-menu")&&e("scw-menu",import("../scw-menu/ScwMenu.js")),t("scw-menu-item")&&e("scw-menu-item",import("../scw-menu-item/ScwMenuItem.js")),t("scw-icon")&&e("scw-icon",import("../scw-icon/ScwIcon.js")),t("scw-heading")&&e("scw-heading",import("../scw-heading/ScwHeading.js")),t("scw-image")&&e("scw-image",import("../scw-image/ScwImage.js")),t("scw-input")&&e("scw-input",import("../scw-input/scw-input.js")),t("scw-single-input")&&e("scw-single-input",import("../scw-single-input/scw-single-input.js")),t("scw-single-input-layout")&&e("scw-single-input-layout",import("../scw-single-input-layout/scw-single-input-layout.js")),t("scw-responsive")&&e("scw-responsive",import("../scw-responsive/scw-responsive.js")),t("scw-validation")&&e("scw-validation",import("../scw-validation/scw-validation.js")),t("scw-validate")&&e("scw-validate",import("../scw-validate/scw-validate.js")),t("scw-flex-h-component")&&e("scw-flex-h-component",import("../scw-flex-h-component/scw-flex-h-component.js")),t("scw-flex-v-component")&&e("scw-flex-v-component",import("../scw-flex-v-component/scw-flex-v-component.js")),t("scw-stack-component")&&e("scw-stack-component",import("../scw-stack-component/scw-stack-component.js")),t("scw-layout-component")&&e("scw-layout-component",import("../scw-layout-component/scw-layout-component.js")),t("scw-element-component")&&e("scw-element-component",import("../scw-element-component/scw-element-component.js")),t("scw-center-component")&&e("scw-center-component",import("../scw-center-component/ScwCenterComponent.js")),t("scw-float-component")&&e("scw-float-component",import("../scw-float-component/scw-float-component.js")),t("scw-pane-component")&&e("scw-pane-component",import("../scw-pane-component/scw-pane-component.js")),t("scw-form")&&e("scw-form",import("../scw-form/scw-form.js")),t("scw-page-alert")&&e("scw-page-alert",import("../scw-page-alert/scw-page-alert.js")),t("scw-link-base")&&e("scw-link-base",import("../scw-link-base/ScwLinkBase.js")),t("scw-textarea")&&e("scw-textarea",import("../scw-textarea/scw-textarea.js")),t("scw-select")&&e("scw-select",import("../scw-select/scw-select.js")),t("scw-alert")&&e("scw-alert",import("../scw-alert/ScwAlert.js")),Promise.all(o)}export{g as a,I as b,V as c};
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @license
|
|
9
|
+
* Copyright 2019 Google LLC
|
|
10
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @license
|
|
14
|
+
* Copyright 2020 Google LLC
|
|
15
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
+
*/
|
|
17
|
+
//# sourceMappingURL=chunk.LX7JT2FJ.js.map
|