scu-web-components 0.0.29 → 0.0.30

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.
Files changed (433) hide show
  1. package/dist/chunks/axe.min.W2EOROUM.js +2 -0
  2. package/dist/chunks/{axe.min.DCYE46OH.js.map → axe.min.W2EOROUM.js.map} +0 -0
  3. package/dist/chunks/{chunk.WWTEGHW5.js → chunk.2WX7XMLC.js} +1 -1
  4. package/dist/chunks/{chunk.WWTEGHW5.js.map → chunk.2WX7XMLC.js.map} +2 -2
  5. package/dist/chunks/{chunk.WO7EIYQ3.js → chunk.33FSL7Y7.js} +1 -1
  6. package/dist/chunks/{chunk.WO7EIYQ3.js.map → chunk.33FSL7Y7.js.map} +2 -2
  7. package/dist/chunks/{chunk.3MIP3PMW.js → chunk.3DNJZ75B.js} +1 -1
  8. package/dist/chunks/{chunk.3MIP3PMW.js.map → chunk.3DNJZ75B.js.map} +2 -2
  9. package/dist/chunks/chunk.42R5SIJT.js +59 -0
  10. package/dist/chunks/chunk.42R5SIJT.js.map +7 -0
  11. package/dist/chunks/chunk.44PMNKPK.js +36 -0
  12. package/dist/chunks/chunk.44PMNKPK.js.map +7 -0
  13. package/dist/chunks/{chunk.XEMNLRCA.js → chunk.4IW4ZUWS.js} +1 -1
  14. package/dist/chunks/{chunk.XEMNLRCA.js.map → chunk.4IW4ZUWS.js.map} +2 -2
  15. package/dist/chunks/{chunk.7S75DZ27.js → chunk.4PFGNBK4.js} +1 -1
  16. package/dist/chunks/{chunk.7S75DZ27.js.map → chunk.4PFGNBK4.js.map} +2 -2
  17. package/dist/chunks/{chunk.YGO7N4AL.js → chunk.5FUHFFCY.js} +1 -1
  18. package/dist/chunks/{chunk.YGO7N4AL.js.map → chunk.5FUHFFCY.js.map} +2 -2
  19. package/dist/chunks/chunk.5XMC6YA4.js +2 -0
  20. package/dist/chunks/{chunk.C3H7WULY.js.map → chunk.5XMC6YA4.js.map} +2 -2
  21. package/dist/chunks/{chunk.PUU6D7BO.js → chunk.63GYMQDA.js} +1 -1
  22. package/dist/chunks/{chunk.PUU6D7BO.js.map → chunk.63GYMQDA.js.map} +2 -2
  23. package/dist/chunks/{chunk.ZYJRJJXY.js → chunk.6YJJGD4O.js} +1 -1
  24. package/dist/chunks/{chunk.ZYJRJJXY.js.map → chunk.6YJJGD4O.js.map} +2 -2
  25. package/dist/chunks/chunk.72DKVHIA.js +2 -0
  26. package/dist/chunks/{chunk.QB63ZMKS.js.map → chunk.72DKVHIA.js.map} +2 -2
  27. package/dist/chunks/chunk.7A4QGO6F.js +4 -0
  28. package/dist/chunks/{chunk.UERPFCOW.js.map → chunk.7A4QGO6F.js.map} +2 -2
  29. package/dist/chunks/{chunk.RQ2STTXL.js → chunk.7A7HJBKL.js} +1 -1
  30. package/dist/chunks/{chunk.RQ2STTXL.js.map → chunk.7A7HJBKL.js.map} +2 -2
  31. package/dist/chunks/{chunk.YT6RKZXO.js → chunk.A2HETGP5.js} +1 -1
  32. package/dist/chunks/{chunk.YT6RKZXO.js.map → chunk.A2HETGP5.js.map} +2 -2
  33. package/dist/chunks/{chunk.WPOS6KBC.js → chunk.A6Q2K43E.js} +1 -1
  34. package/dist/chunks/{chunk.WPOS6KBC.js.map → chunk.A6Q2K43E.js.map} +2 -2
  35. package/dist/chunks/{chunk.2VW3SHYK.js → chunk.B7II36CO.js} +1 -1
  36. package/dist/chunks/{chunk.2VW3SHYK.js.map → chunk.B7II36CO.js.map} +2 -2
  37. package/dist/chunks/{chunk.56SLFZ7Q.js → chunk.BHAQIBGC.js} +2 -2
  38. package/dist/chunks/{chunk.56SLFZ7Q.js.map → chunk.BHAQIBGC.js.map} +2 -2
  39. package/dist/chunks/chunk.BNXLNCIW.js +2 -0
  40. package/dist/chunks/{chunk.P44BX3Y3.js.map → chunk.BNXLNCIW.js.map} +2 -2
  41. package/dist/chunks/{chunk.W6H7G665.js → chunk.C2WZDJF4.js} +1 -1
  42. package/dist/chunks/{chunk.W6H7G665.js.map → chunk.C2WZDJF4.js.map} +2 -2
  43. package/dist/chunks/{chunk.KNL6ULA5.js → chunk.CJAF5ARK.js} +2 -2
  44. package/dist/chunks/{chunk.KNL6ULA5.js.map → chunk.CJAF5ARK.js.map} +2 -2
  45. package/dist/chunks/{chunk.FOS72CHS.js → chunk.D23ORNEA.js} +1 -1
  46. package/dist/chunks/{chunk.FOS72CHS.js.map → chunk.D23ORNEA.js.map} +2 -2
  47. package/dist/chunks/chunk.DJQ6FHEA.js +17 -0
  48. package/dist/chunks/chunk.DJQ6FHEA.js.map +7 -0
  49. package/dist/chunks/{chunk.AKAAJWEI.js → chunk.EJBBXIW3.js} +1 -1
  50. package/dist/chunks/{chunk.AKAAJWEI.js.map → chunk.EJBBXIW3.js.map} +2 -2
  51. package/dist/chunks/{chunk.QRG5WBRU.js → chunk.GATDLRXZ.js} +1 -1
  52. package/dist/chunks/{chunk.QRG5WBRU.js.map → chunk.GATDLRXZ.js.map} +2 -2
  53. package/dist/chunks/chunk.GIK7EHP5.js +2 -0
  54. package/dist/chunks/{chunk.PETPUWX6.js.map → chunk.GIK7EHP5.js.map} +2 -2
  55. package/dist/chunks/chunk.GNBOEY2A.js +2 -0
  56. package/dist/chunks/{chunk.LVTKM2MQ.js.map → chunk.GNBOEY2A.js.map} +2 -2
  57. package/dist/chunks/{chunk.463GM5FT.js → chunk.GTNXXY2T.js} +14 -13
  58. package/dist/chunks/chunk.GTNXXY2T.js.map +7 -0
  59. package/dist/chunks/{chunk.IQBNP7BC.js → chunk.GY2K4PRQ.js} +1 -1
  60. package/dist/chunks/{chunk.IQBNP7BC.js.map → chunk.GY2K4PRQ.js.map} +2 -2
  61. package/dist/chunks/{chunk.WO3SIUEH.js → chunk.HD75M3T5.js} +1 -1
  62. package/dist/chunks/{chunk.WO3SIUEH.js.map → chunk.HD75M3T5.js.map} +2 -2
  63. package/dist/chunks/chunk.HONWLPRG.js +7 -0
  64. package/dist/chunks/chunk.HONWLPRG.js.map +7 -0
  65. package/dist/chunks/{chunk.PXQQTQKT.js → chunk.I4ZVEUHX.js} +1 -1
  66. package/dist/chunks/{chunk.PXQQTQKT.js.map → chunk.I4ZVEUHX.js.map} +2 -2
  67. package/dist/chunks/{chunk.UN52CXVR.js → chunk.IFFRUKMU.js} +1 -1
  68. package/dist/chunks/{chunk.UN52CXVR.js.map → chunk.IFFRUKMU.js.map} +2 -2
  69. package/dist/chunks/chunk.IHVBWZ57.js +11 -0
  70. package/dist/chunks/chunk.IHVBWZ57.js.map +7 -0
  71. package/dist/chunks/chunk.J2BS5MIF.js +2 -0
  72. package/dist/chunks/{chunk.2WFG5B3U.js.map → chunk.J2BS5MIF.js.map} +2 -2
  73. package/dist/chunks/{chunk.WQARFGAY.js → chunk.J5OGWB43.js} +2 -2
  74. package/dist/chunks/{chunk.WQARFGAY.js.map → chunk.J5OGWB43.js.map} +2 -2
  75. package/dist/chunks/chunk.KJY4QBTF.js +30 -0
  76. package/dist/chunks/chunk.KJY4QBTF.js.map +7 -0
  77. package/dist/chunks/{chunk.Y2P62L7U.js → chunk.KSN3XTKS.js} +1 -1
  78. package/dist/chunks/{chunk.Y2P62L7U.js.map → chunk.KSN3XTKS.js.map} +2 -2
  79. package/dist/chunks/{chunk.ZZQE6TG6.js → chunk.KVCUHP7N.js} +1 -1
  80. package/dist/chunks/{chunk.ZZQE6TG6.js.map → chunk.KVCUHP7N.js.map} +2 -2
  81. package/dist/chunks/{chunk.YSBPPYOV.js → chunk.L2YBEZKF.js} +1 -1
  82. package/dist/chunks/{chunk.YSBPPYOV.js.map → chunk.L2YBEZKF.js.map} +2 -2
  83. package/dist/chunks/chunk.LCLP3O74.js +2 -0
  84. package/dist/chunks/{chunk.CXCDH3M2.js.map → chunk.LCLP3O74.js.map} +2 -2
  85. package/dist/chunks/{chunk.HOT5I3EN.js → chunk.MGNPSQQS.js} +11 -10
  86. package/dist/chunks/chunk.MGNPSQQS.js.map +7 -0
  87. package/dist/chunks/{chunk.A5NCJRBB.js → chunk.MNM5PCHW.js} +1 -1
  88. package/dist/chunks/{chunk.A5NCJRBB.js.map → chunk.MNM5PCHW.js.map} +2 -2
  89. package/dist/chunks/chunk.MQ57PGFU.js +2 -0
  90. package/dist/chunks/{chunk.UQFFDIC3.js.map → chunk.MQ57PGFU.js.map} +2 -2
  91. package/dist/chunks/chunk.N5JAB5AA.js +208 -0
  92. package/dist/chunks/chunk.N5JAB5AA.js.map +7 -0
  93. package/dist/chunks/{chunk.TIGDLFNU.js → chunk.N6DLDRHB.js} +1 -1
  94. package/dist/chunks/{chunk.TIGDLFNU.js.map → chunk.N6DLDRHB.js.map} +2 -2
  95. package/dist/chunks/{chunk.BK6PO2CX.js → chunk.NGL6WE6V.js} +2 -2
  96. package/dist/chunks/{chunk.BK6PO2CX.js.map → chunk.NGL6WE6V.js.map} +2 -2
  97. package/dist/chunks/{chunk.7GL4EMSM.js → chunk.OOCO42E3.js} +2 -2
  98. package/dist/chunks/{chunk.7GL4EMSM.js.map → chunk.OOCO42E3.js.map} +2 -2
  99. package/dist/chunks/{chunk.XZRPHO5Y.js → chunk.PDALKIXA.js} +8 -8
  100. package/dist/chunks/{chunk.XZRPHO5Y.js.map → chunk.PDALKIXA.js.map} +4 -4
  101. package/dist/chunks/{chunk.JAUABRH5.js → chunk.PFDERFXL.js} +2 -2
  102. package/dist/chunks/{chunk.JAUABRH5.js.map → chunk.PFDERFXL.js.map} +2 -2
  103. package/dist/chunks/{chunk.DAC54S7M.js → chunk.PVZ47H3F.js} +1 -1
  104. package/dist/chunks/{chunk.DAC54S7M.js.map → chunk.PVZ47H3F.js.map} +2 -2
  105. package/dist/chunks/{chunk.VB3TV2S3.js → chunk.Q2V4UOPC.js} +1 -1
  106. package/dist/chunks/{chunk.VB3TV2S3.js.map → chunk.Q2V4UOPC.js.map} +2 -2
  107. package/dist/chunks/chunk.QVO7RTDL.js +2 -0
  108. package/dist/chunks/{chunk.HVJA2ZYF.js.map → chunk.QVO7RTDL.js.map} +2 -2
  109. package/dist/chunks/{chunk.VEL2IK6S.js → chunk.QW4L55OV.js} +1 -1
  110. package/dist/chunks/{chunk.VEL2IK6S.js.map → chunk.QW4L55OV.js.map} +2 -2
  111. package/dist/chunks/{chunk.GVQZL6DM.js → chunk.QZ7HSWXB.js} +1 -1
  112. package/dist/chunks/{chunk.GVQZL6DM.js.map → chunk.QZ7HSWXB.js.map} +2 -2
  113. package/dist/chunks/chunk.ROL6L4X5.js +30 -0
  114. package/dist/chunks/chunk.ROL6L4X5.js.map +7 -0
  115. package/dist/chunks/{chunk.Y3CEE6A7.js → chunk.RPACMUBY.js} +20 -15
  116. package/dist/chunks/chunk.RPACMUBY.js.map +7 -0
  117. package/dist/chunks/{chunk.NWEPER2E.js → chunk.RQFUIQK3.js} +1 -1
  118. package/dist/chunks/{chunk.NWEPER2E.js.map → chunk.RQFUIQK3.js.map} +2 -2
  119. package/dist/chunks/{chunk.IFGCOSUD.js → chunk.SWOOH3JG.js} +2 -2
  120. package/dist/chunks/{chunk.IFGCOSUD.js.map → chunk.SWOOH3JG.js.map} +2 -2
  121. package/dist/chunks/{chunk.5HZ4WTGH.js → chunk.T25QZW3W.js} +1 -1
  122. package/dist/chunks/chunk.T25QZW3W.js.map +7 -0
  123. package/dist/chunks/{chunk.AY3YRO2L.js → chunk.TC4A7NX7.js} +2 -2
  124. package/dist/chunks/{chunk.AY3YRO2L.js.map → chunk.TC4A7NX7.js.map} +2 -2
  125. package/dist/chunks/{chunk.QDPDEDO6.js → chunk.TE6ZDRYB.js} +2 -2
  126. package/dist/chunks/{chunk.QDPDEDO6.js.map → chunk.TE6ZDRYB.js.map} +2 -2
  127. package/dist/chunks/chunk.TLUKKBKO.js +59 -0
  128. package/dist/chunks/chunk.TLUKKBKO.js.map +7 -0
  129. package/dist/chunks/{chunk.C3VELPNY.js → chunk.TY7FVHDQ.js} +5 -4
  130. package/dist/chunks/chunk.TY7FVHDQ.js.map +7 -0
  131. package/dist/chunks/{chunk.6EVLBLGL.js → chunk.U6A3IKTV.js} +2 -2
  132. package/dist/chunks/{chunk.6EVLBLGL.js.map → chunk.U6A3IKTV.js.map} +2 -2
  133. package/dist/chunks/chunk.UNJ2HAKH.js +2 -0
  134. package/dist/chunks/{chunk.DUFOA6TI.js.map → chunk.UNJ2HAKH.js.map} +2 -2
  135. package/dist/chunks/{chunk.MOWV5A2M.js → chunk.UXHVIMZV.js} +1 -1
  136. package/dist/chunks/{chunk.MOWV5A2M.js.map → chunk.UXHVIMZV.js.map} +2 -2
  137. package/dist/chunks/{chunk.H2ABP6D6.js → chunk.V2DFPUQM.js} +1 -1
  138. package/dist/chunks/{chunk.H2ABP6D6.js.map → chunk.V2DFPUQM.js.map} +2 -2
  139. package/dist/chunks/{chunk.M3VMHGNE.js → chunk.V6IT6TY7.js} +2 -2
  140. package/dist/chunks/{chunk.M3VMHGNE.js.map → chunk.V6IT6TY7.js.map} +2 -2
  141. package/dist/chunks/chunk.VTUIFUTJ.js +2 -0
  142. package/dist/chunks/{chunk.R6ZO63TB.js.map → chunk.VTUIFUTJ.js.map} +2 -2
  143. package/dist/chunks/chunk.W2QJT7Q4.js +2 -0
  144. package/dist/chunks/{chunk.2XNLXMDP.js.map → chunk.W2QJT7Q4.js.map} +2 -2
  145. package/dist/chunks/{chunk.KNO2EO5V.js → chunk.WHRXVSQW.js} +2 -2
  146. package/dist/chunks/{chunk.KNO2EO5V.js.map → chunk.WHRXVSQW.js.map} +2 -2
  147. package/dist/chunks/chunk.WUOL7WM2.js +37 -0
  148. package/dist/chunks/chunk.WUOL7WM2.js.map +7 -0
  149. package/dist/chunks/{chunk.VCT62IUP.js → chunk.WXC634JO.js} +1 -1
  150. package/dist/chunks/{chunk.VCT62IUP.js.map → chunk.WXC634JO.js.map} +2 -2
  151. package/dist/chunks/chunk.X2MZFY6Y.js +33 -0
  152. package/dist/chunks/chunk.X2MZFY6Y.js.map +7 -0
  153. package/dist/chunks/{chunk.XGXXU6MC.js → chunk.X3QDN5AD.js} +2 -2
  154. package/dist/chunks/{chunk.XGXXU6MC.js.map → chunk.X3QDN5AD.js.map} +2 -2
  155. package/dist/chunks/{chunk.2NDGSXCD.js → chunk.XDWCNUEB.js} +1 -1
  156. package/dist/chunks/{chunk.2NDGSXCD.js.map → chunk.XDWCNUEB.js.map} +2 -2
  157. package/dist/chunks/chunk.XJXDLZMZ.js +4 -0
  158. package/dist/chunks/{chunk.K2POBLCT.js.map → chunk.XJXDLZMZ.js.map} +2 -2
  159. package/dist/chunks/{chunk.XWTXKSEG.js → chunk.Y5CUD3L7.js} +1 -1
  160. package/dist/chunks/{chunk.XWTXKSEG.js.map → chunk.Y5CUD3L7.js.map} +2 -2
  161. package/dist/chunks/chunk.YNNOL5UD.js +2 -0
  162. package/dist/chunks/{chunk.JB7ONHRG.js.map → chunk.YNNOL5UD.js.map} +2 -2
  163. package/dist/chunks/chunk.YO4XRUOI.js +2 -0
  164. package/dist/chunks/{chunk.XMB7TPHP.js.map → chunk.YO4XRUOI.js.map} +2 -2
  165. package/dist/chunks/{chunk.O3SA7BGC.js → chunk.ZHMMWIFH.js} +1 -1
  166. package/dist/chunks/{chunk.O3SA7BGC.js.map → chunk.ZHMMWIFH.js.map} +2 -2
  167. package/dist/chunks/{icon-checkbox-disabled.ILO322A2.js → icon-checkbox-disabled.VSUFMT3G.js} +1 -1
  168. package/dist/chunks/{icon-checkbox-disabled.ILO322A2.js.map → icon-checkbox-disabled.VSUFMT3G.js.map} +2 -2
  169. package/dist/chunks/{icon-checkbox-hover.XXB4NVMF.js → icon-checkbox-hover.CNYOUMCW.js} +1 -1
  170. package/dist/chunks/{icon-checkbox-hover.XXB4NVMF.js.map → icon-checkbox-hover.CNYOUMCW.js.map} +2 -2
  171. package/dist/chunks/{icon-checkbox-selected-disabled.P4RTQION.js → icon-checkbox-selected-disabled.DLMEJCDA.js} +1 -1
  172. package/dist/chunks/{icon-checkbox-selected-disabled.P4RTQION.js.map → icon-checkbox-selected-disabled.DLMEJCDA.js.map} +2 -2
  173. package/dist/chunks/{icon-checkbox-selected-hover.IWQ2Q47E.js → icon-checkbox-selected-hover.PGUVZ62C.js} +1 -1
  174. package/dist/chunks/{icon-checkbox-selected-hover.IWQ2Q47E.js.map → icon-checkbox-selected-hover.PGUVZ62C.js.map} +2 -2
  175. package/dist/chunks/{icon-checkbox-selected.UL4QLYJ7.js → icon-checkbox-selected.SVAKK3LA.js} +1 -1
  176. package/dist/chunks/{icon-checkbox-selected.UL4QLYJ7.js.map → icon-checkbox-selected.SVAKK3LA.js.map} +2 -2
  177. package/dist/chunks/{icon-checkbox.7KNUD4BU.js → icon-checkbox.YH7MMYRP.js} +1 -1
  178. package/dist/chunks/{icon-checkbox.7KNUD4BU.js.map → icon-checkbox.YH7MMYRP.js.map} +2 -2
  179. package/dist/chunks/{icon-chevron-down.WYXF6O2Q.js → icon-chevron-down.DHMJS6F4.js} +1 -1
  180. package/dist/chunks/{icon-chevron-down.WYXF6O2Q.js.map → icon-chevron-down.DHMJS6F4.js.map} +2 -2
  181. package/dist/chunks/{icon-chevron-left.7B566ET7.js → icon-chevron-left.2CAORX25.js} +1 -1
  182. package/dist/chunks/{icon-chevron-left.7B566ET7.js.map → icon-chevron-left.2CAORX25.js.map} +2 -2
  183. package/dist/chunks/{icon-chevron-right.AUHLNBYI.js → icon-chevron-right.RRLIRKZB.js} +1 -1
  184. package/dist/chunks/{icon-chevron-right.AUHLNBYI.js.map → icon-chevron-right.RRLIRKZB.js.map} +2 -2
  185. package/dist/chunks/{icon-chevron-up.67BPPFAJ.js → icon-chevron-up.E4QYWAAP.js} +1 -1
  186. package/dist/chunks/{icon-chevron-up.67BPPFAJ.js.map → icon-chevron-up.E4QYWAAP.js.map} +2 -2
  187. package/dist/chunks/{icon-clear.DSFGMA4O.js → icon-clear.OWJ7ODQM.js} +1 -1
  188. package/dist/chunks/{icon-clear.DSFGMA4O.js.map → icon-clear.OWJ7ODQM.js.map} +2 -2
  189. package/dist/chunks/{icon-color-test.RXBPF6IE.js → icon-color-test.JO6FCNHQ.js} +1 -1
  190. package/dist/chunks/{icon-color-test.RXBPF6IE.js.map → icon-color-test.JO6FCNHQ.js.map} +2 -2
  191. package/dist/chunks/{icon-hidden.PYEYQXHF.js → icon-hidden.BBKQGE64.js} +1 -1
  192. package/dist/chunks/{icon-hidden.PYEYQXHF.js.map → icon-hidden.BBKQGE64.js.map} +2 -2
  193. package/dist/chunks/{icon-location.GQ43TIHN.js → icon-location.5QEL6KER.js} +1 -1
  194. package/dist/chunks/{icon-location.GQ43TIHN.js.map → icon-location.5QEL6KER.js.map} +2 -2
  195. package/dist/chunks/{icon-placeholder.IASJNEQD.js → icon-placeholder.CZNY75BU.js} +1 -1
  196. package/dist/chunks/{icon-placeholder.IASJNEQD.js.map → icon-placeholder.CZNY75BU.js.map} +2 -2
  197. package/dist/chunks/{icon-radio-disabled.N4WFHUQS.js → icon-radio-disabled.Q5ZGKYKV.js} +1 -1
  198. package/dist/chunks/{icon-radio-disabled.N4WFHUQS.js.map → icon-radio-disabled.Q5ZGKYKV.js.map} +2 -2
  199. package/dist/chunks/{icon-radio-hover.4444X7GB.js → icon-radio-hover.B5FZHVHA.js} +1 -1
  200. package/dist/chunks/{icon-radio-hover.4444X7GB.js.map → icon-radio-hover.B5FZHVHA.js.map} +2 -2
  201. package/dist/chunks/{icon-radio-selected-disabled.SX2NUH7K.js → icon-radio-selected-disabled.CJWSVALQ.js} +1 -1
  202. package/dist/chunks/{icon-radio-selected-disabled.SX2NUH7K.js.map → icon-radio-selected-disabled.CJWSVALQ.js.map} +2 -2
  203. package/dist/chunks/{icon-radio-selected-hover.S7GFXPMB.js → icon-radio-selected-hover.O6DFK257.js} +1 -1
  204. package/dist/chunks/{icon-radio-selected-hover.S7GFXPMB.js.map → icon-radio-selected-hover.O6DFK257.js.map} +2 -2
  205. package/dist/chunks/{icon-radio-selected.CFMDEY43.js → icon-radio-selected.XXL7SCSC.js} +1 -1
  206. package/dist/chunks/{icon-radio-selected.CFMDEY43.js.map → icon-radio-selected.XXL7SCSC.js.map} +2 -2
  207. package/dist/chunks/{icon-radio.2PBWVIBH.js → icon-radio.I2FI3WCV.js} +1 -1
  208. package/dist/chunks/{icon-radio.2PBWVIBH.js.map → icon-radio.I2FI3WCV.js.map} +2 -2
  209. package/dist/chunks/{icon-search.KWBBNUQB.js → icon-search.YK24UFPX.js} +1 -1
  210. package/dist/chunks/{icon-search.KWBBNUQB.js.map → icon-search.YK24UFPX.js.map} +2 -2
  211. package/dist/chunks/{icon-visible.7WCEZ7XD.js → icon-visible.2SPKJKLO.js} +1 -1
  212. package/dist/chunks/{icon-visible.7WCEZ7XD.js.map → icon-visible.2SPKJKLO.js.map} +2 -2
  213. package/dist/custom-elements.json +1990 -764
  214. package/dist/docs/components/ScwAlert.json +51 -51
  215. package/dist/docs/components/ScwButton.json +51 -51
  216. package/dist/docs/components/ScwCard.json +51 -51
  217. package/dist/docs/components/ScwCenterComponent.json +55 -0
  218. package/dist/docs/components/ScwComponent.json +39 -0
  219. package/dist/docs/components/ScwElementComponent.json +55 -0
  220. package/dist/docs/components/ScwFlexHComponent.json +55 -0
  221. package/dist/docs/components/ScwFlexVComponent.json +55 -0
  222. package/dist/docs/components/ScwFloatComponent.json +55 -0
  223. package/dist/docs/components/ScwForm.json +55 -0
  224. package/dist/docs/components/ScwFormComponent.json +55 -0
  225. package/dist/docs/components/ScwHeading.json +51 -51
  226. package/dist/docs/components/ScwIcon.json +51 -51
  227. package/dist/docs/components/ScwImage.json +51 -51
  228. package/dist/docs/components/ScwInput.json +55 -0
  229. package/dist/docs/components/ScwInputField.json +55 -19
  230. package/dist/docs/components/ScwInputLayout.json +55 -0
  231. package/dist/docs/components/ScwLayoutComponent.json +55 -0
  232. package/dist/docs/components/ScwLink.json +51 -51
  233. package/dist/docs/components/ScwLinkBase.json +55 -39
  234. package/dist/docs/components/ScwMenu.json +55 -20
  235. package/dist/docs/components/ScwMenuItem.json +51 -51
  236. package/dist/docs/components/ScwPageAlert.json +51 -51
  237. package/dist/docs/components/ScwPaneComponent.json +55 -0
  238. package/dist/docs/components/ScwResponsive.json +55 -0
  239. package/dist/docs/components/ScwSelect.json +55 -0
  240. package/dist/docs/components/ScwSingleInput.json +55 -0
  241. package/dist/docs/components/ScwSingleInputLayout.json +55 -0
  242. package/dist/docs/components/ScwStackComponent.json +55 -0
  243. package/dist/docs/components/ScwTest.json +55 -0
  244. package/dist/docs/components/ScwTextarea.json +55 -0
  245. package/dist/docs/components/ScwValidate.json +55 -0
  246. package/dist/docs/components/ScwValidation.json +55 -0
  247. package/dist/docs/components/manifest.json +60 -60
  248. package/dist/docs/config.json +1 -1
  249. package/dist/scw-alert/ScwAlert.js +1 -1
  250. package/dist/scw-alert/scw-alert.js +1 -1
  251. package/dist/scw-button/ScwButton.js +1 -1
  252. package/dist/scw-button/scw-button.js +1 -1
  253. package/dist/scw-card/ScwCard.js +1 -1
  254. package/dist/scw-card/scw-card-enums.js +1 -1
  255. package/dist/scw-card/scw-card-light-dom.js +1 -1
  256. package/dist/scw-card/scw-card.js +1 -1
  257. package/dist/scw-card/tests/imageExample.js.map +2 -2
  258. package/dist/scw-center-component/ScwCenterComponent.js +1 -1
  259. package/dist/scw-center-component/scw-center-component.js +1 -1
  260. package/dist/scw-component/ScwComponent.d.ts +10 -0
  261. package/dist/scw-component/ScwComponent.js +1 -1
  262. package/dist/scw-component/scw-component.js +1 -1
  263. package/dist/scw-components.js +1 -1
  264. package/dist/scw-element-component/scw-element-component.js +1 -1
  265. package/dist/scw-element-component/scw-element-component.js.map +2 -2
  266. package/dist/scw-flex-h-component/scw-flex-h-component.js +1 -1
  267. package/dist/scw-flex-h-component/scw-flex-h-component.js.map +2 -2
  268. package/dist/scw-flex-v-component/scw-flex-v-component.js +1 -1
  269. package/dist/scw-flex-v-component/scw-flex-v-component.js.map +2 -2
  270. package/dist/scw-float-component/scw-float-component.js +1 -1
  271. package/dist/scw-float-component/scw-float-component.js.map +2 -2
  272. package/dist/scw-form/scw-form.js +3 -2
  273. package/dist/scw-form/scw-form.js.map +4 -4
  274. package/dist/scw-form-component/scw-form-component.js +1 -1
  275. package/dist/scw-heading/ScwHeading.js +1 -1
  276. package/dist/scw-heading/parseLightDomHeading.js +1 -1
  277. package/dist/scw-heading/scw-heading-enums.js +1 -1
  278. package/dist/scw-heading/scw-heading.js +1 -1
  279. package/dist/scw-icon/ScwIcon.js +1 -1
  280. package/dist/scw-icon/scw-icon-enums.js +1 -1
  281. package/dist/scw-icon/scw-icon.js +1 -1
  282. package/dist/scw-icon/tests/checkIconADA.js +1 -1
  283. package/dist/scw-icon/tests/checkIconADA.js.map +2 -2
  284. package/dist/scw-image/ScwImage.js +1 -1
  285. package/dist/scw-image/scw-image-src-parser.js.map +2 -2
  286. package/dist/scw-image/scw-image-validate.js +1 -1
  287. package/dist/scw-image/scw-image.js +1 -1
  288. package/dist/scw-image/tests/imageExamples.js.map +2 -2
  289. package/dist/scw-input/scw-input.js +4 -3
  290. package/dist/scw-input/scw-input.js.map +4 -4
  291. package/dist/scw-input-field/autoformatters/autoFormat.js +1 -1
  292. package/dist/scw-input-field/autoformatters/currencyFormatter.js +1 -1
  293. package/dist/scw-input-field/autoformatters/dateAutoFormatter.js +1 -1
  294. package/dist/scw-input-field/autoformatters/numberFormatter.js +1 -1
  295. package/dist/scw-input-field/autoformatters/phoneNumberAutoFormatter.js +1 -1
  296. package/dist/scw-input-field/inputTypes.js +1 -1
  297. package/dist/scw-input-field/scw-input-field.d.ts +0 -2
  298. package/dist/scw-input-field/scw-input-field.js +5 -4
  299. package/dist/scw-input-field/scw-input-field.js.map +4 -4
  300. package/dist/scw-input-layout/scw-input-layout.js +8 -7
  301. package/dist/scw-input-layout/scw-input-layout.js.map +4 -4
  302. package/dist/scw-layout-component/scw-layout-component.js +1 -1
  303. package/dist/scw-link/ScwLink.js +1 -1
  304. package/dist/scw-link/scw-link-enums.js +1 -1
  305. package/dist/scw-link/scw-link.js +1 -1
  306. package/dist/scw-link-base/ScwLinkBase.d.ts +0 -10
  307. package/dist/scw-link-base/ScwLinkBase.js +1 -1
  308. package/dist/scw-link-base/parseLightDomAnchor.js +1 -1
  309. package/dist/scw-link-base/scw-link-base.js +1 -1
  310. package/dist/scw-menu/ScwMenu.d.ts +0 -5
  311. package/dist/scw-menu/ScwMenu.js +1 -1
  312. package/dist/scw-menu/keyboard/keyboardElements.js +1 -1
  313. package/dist/scw-menu/keyboard/scw-menu-keyboard.js +1 -1
  314. package/dist/scw-menu/scw-menu-enums.js +1 -1
  315. package/dist/scw-menu/scw-menu-validate.js +1 -1
  316. package/dist/scw-menu/scw-menu.js +1 -1
  317. package/dist/scw-menu-item/ScwMenuItem.js +1 -1
  318. package/dist/scw-menu-item/scw-menu-item-enums.js +1 -1
  319. package/dist/scw-menu-item/scw-menu-item.js +1 -1
  320. package/dist/scw-page-alert/scw-page-alert.js +4 -3
  321. package/dist/scw-page-alert/scw-page-alert.js.map +4 -4
  322. package/dist/scw-pane-component/scw-pane-component.js +1 -1
  323. package/dist/scw-pane-component/scw-pane-component.js.map +2 -2
  324. package/dist/scw-responsive/scw-responsive.js +3 -2
  325. package/dist/scw-responsive/scw-responsive.js.map +4 -4
  326. package/dist/scw-select/scw-select.js +8 -7
  327. package/dist/scw-select/scw-select.js.map +4 -4
  328. package/dist/scw-single-input/scw-single-input.js +5 -4
  329. package/dist/scw-single-input/scw-single-input.js.map +4 -4
  330. package/dist/scw-single-input-layout/scw-single-input-layout.js +1 -1
  331. package/dist/scw-stack-component/scw-stack-component.js +1 -1
  332. package/dist/scw-stack-component/scw-stack-component.js.map +2 -2
  333. package/dist/scw-test/ScwTest.js +1 -1
  334. package/dist/scw-test/scw-test.js +1 -1
  335. package/dist/scw-test/scw-test.js.map +2 -2
  336. package/dist/scw-textarea/scw-textarea.js +4 -3
  337. package/dist/scw-textarea/scw-textarea.js.map +4 -4
  338. package/dist/scw-validate/rules/alphanumeric.js +1 -1
  339. package/dist/scw-validate/rules/currency.js +1 -1
  340. package/dist/scw-validate/rules/date.js +1 -1
  341. package/dist/scw-validate/rules/email.js +1 -1
  342. package/dist/scw-validate/rules/number.js +1 -1
  343. package/dist/scw-validate/rules/required.js +1 -1
  344. package/dist/scw-validate/rules/telephone.js +1 -1
  345. package/dist/scw-validate/rules/utils.js +1 -1
  346. package/dist/scw-validate/scw-validate.js +4 -3
  347. package/dist/scw-validate/scw-validate.js.map +4 -4
  348. package/dist/scw-validate/validationTypes.js +1 -1
  349. package/dist/scw-validation/scw-validation.js +4 -3
  350. package/dist/scw-validation/scw-validation.js.map +4 -4
  351. package/dist/scw.js +1 -1
  352. package/dist/tokens/source/jsCss.js +1 -1
  353. package/dist/tokens/source/jsCss.js.gz +0 -0
  354. package/dist/tokens/source/jsCssGenerator.js +1 -1
  355. package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
  356. package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
  357. package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
  358. package/dist/utils/enums/Components.js +1 -1
  359. package/dist/utils/events/event.js +1 -1
  360. package/dist/utils/formEnums.js +1 -1
  361. package/dist/utils/getComputedStyleValue.js +1 -1
  362. package/dist/utils/getIconSvg.js +1 -1
  363. package/dist/utils/lightCss.js.map +2 -2
  364. package/dist/utils/lightDomMutationObserver.js +1 -1
  365. package/dist/utils/observers/intersectionObserverSingleton.js +1 -1
  366. package/dist/utils/observers/mediaQueryListSingleton.js +1 -1
  367. package/dist/utils/observers/mutationObserverSingleton.js.map +2 -2
  368. package/dist/utils/observers/resizeObserverSingleton.js.map +2 -2
  369. package/dist/utils/responsive/BreakpointTypes.js +1 -1
  370. package/dist/utils/responsive/ResponsiveElement.js +1 -1
  371. package/dist/utils/responsive/breakpoints.js +1 -1
  372. package/dist/utils/responsive/connectAttributes.js +1 -1
  373. package/dist/utils/responsive/connectStyles.js +1 -1
  374. package/dist/utils/responsive/connectStyles.js.map +2 -2
  375. package/dist/utils/responsive/processAttributes.js +1 -1
  376. package/dist/utils/submitForm.js +1 -1
  377. package/dist/utils/suffix.js +1 -1
  378. package/dist/utils/testing/colorContrast.js +1 -1
  379. package/dist/utils/testing/expectLink.js +1 -1
  380. package/dist/utils/testing/expectLink.js.map +2 -2
  381. package/dist/utils/testing/getActiveElement.js +1 -1
  382. package/dist/utils/testing/ssrTesting.js +1 -1
  383. package/dist/utils/testing/ssrTesting.js.map +2 -2
  384. package/dist/utils/testing/testButtonADA.js +1 -1
  385. package/dist/utils/testing/testButtonADA.js.map +4 -4
  386. package/dist/utils/themes/enums.js.map +2 -2
  387. package/dist/utils/uuid.js.map +2 -2
  388. package/dist/utils/watch.js +1 -1
  389. package/package.json +5 -3
  390. package/dist/chunks/axe.min.DCYE46OH.js +0 -2
  391. package/dist/chunks/chunk.2WFG5B3U.js +0 -2
  392. package/dist/chunks/chunk.2XNLXMDP.js +0 -2
  393. package/dist/chunks/chunk.3GVGAXLL.js +0 -35
  394. package/dist/chunks/chunk.3GVGAXLL.js.map +0 -7
  395. package/dist/chunks/chunk.463GM5FT.js.map +0 -7
  396. package/dist/chunks/chunk.4FRGWEZV.js +0 -58
  397. package/dist/chunks/chunk.4FRGWEZV.js.map +0 -7
  398. package/dist/chunks/chunk.5HZ4WTGH.js.map +0 -7
  399. package/dist/chunks/chunk.BT3J4B5Y.js +0 -29
  400. package/dist/chunks/chunk.BT3J4B5Y.js.map +0 -7
  401. package/dist/chunks/chunk.C3H7WULY.js +0 -2
  402. package/dist/chunks/chunk.C3VELPNY.js.map +0 -7
  403. package/dist/chunks/chunk.CXCDH3M2.js +0 -2
  404. package/dist/chunks/chunk.DUFOA6TI.js +0 -2
  405. package/dist/chunks/chunk.DZYFST6D.js +0 -207
  406. package/dist/chunks/chunk.DZYFST6D.js.map +0 -7
  407. package/dist/chunks/chunk.HIREWGSQ.js +0 -30
  408. package/dist/chunks/chunk.HIREWGSQ.js.map +0 -7
  409. package/dist/chunks/chunk.HOT5I3EN.js.map +0 -7
  410. package/dist/chunks/chunk.HVJA2ZYF.js +0 -2
  411. package/dist/chunks/chunk.JB7ONHRG.js +0 -2
  412. package/dist/chunks/chunk.K2POBLCT.js +0 -4
  413. package/dist/chunks/chunk.LVTKM2MQ.js +0 -2
  414. package/dist/chunks/chunk.P44BX3Y3.js +0 -2
  415. package/dist/chunks/chunk.PB4P25XX.js +0 -7
  416. package/dist/chunks/chunk.PB4P25XX.js.map +0 -7
  417. package/dist/chunks/chunk.PETPUWX6.js +0 -2
  418. package/dist/chunks/chunk.QB63ZMKS.js +0 -2
  419. package/dist/chunks/chunk.R6ZO63TB.js +0 -2
  420. package/dist/chunks/chunk.SZ4IFUWX.js +0 -58
  421. package/dist/chunks/chunk.SZ4IFUWX.js.map +0 -7
  422. package/dist/chunks/chunk.TVHG2BHW.js +0 -32
  423. package/dist/chunks/chunk.TVHG2BHW.js.map +0 -7
  424. package/dist/chunks/chunk.UERPFCOW.js +0 -4
  425. package/dist/chunks/chunk.UQFFDIC3.js +0 -2
  426. package/dist/chunks/chunk.XMB7TPHP.js +0 -2
  427. package/dist/chunks/chunk.XUHEJPVF.js +0 -17
  428. package/dist/chunks/chunk.XUHEJPVF.js.map +0 -7
  429. package/dist/chunks/chunk.Y3CEE6A7.js.map +0 -7
  430. package/dist/chunks/chunk.ZS4C3T6Z.js +0 -7
  431. package/dist/chunks/chunk.ZS4C3T6Z.js.map +0 -7
  432. package/dist/chunks/chunk.ZV7BPVEM.js +0 -36
  433. package/dist/chunks/chunk.ZV7BPVEM.js.map +0 -7
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk.KJY4QBTF.js";import"./chunk.5YJY6NT6.js";export default a();
2
+ //# sourceMappingURL=axe.min.W2EOROUM.js.map
@@ -1,2 +1,2 @@
1
1
  var t=class{constructor(e,i){this._element=e,this._callback=i,this.observe()}observe(){if(this.disconnect(),this._element){let e={characterData:!0,childList:!0,attributes:!1,subtree:!0};this._mutationObserver=new MutationObserver(()=>this._callback()),this._mutationObserver.observe(this._element,e)}}disconnect(){!this._mutationObserver||this._mutationObserver.disconnect()}};export{t as a};
2
- //# sourceMappingURL=chunk.WWTEGHW5.js.map
2
+ //# sourceMappingURL=chunk.2WX7XMLC.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/lightDomMutationObserver.ts"],
4
4
  "sourcesContent": ["import {LitElement} from 'lit';\n\n/**\n * Class to manage changes to the light dom\n */\nexport default class LightDomMutationObserver {\n /**\n * the mutation observer used\n */\n _mutationObserver : MutationObserver | undefined;\n\n /**\n * LitElement to watch...no children here..\n */\n _element : LitElement;\n\n /**\n * callback for change event\n */\n _callback : () => void | undefined;\n\n /**\n * constructor\n * @param {string} element LitElement to observe\n * @param {function} callback\n */\n constructor( element: LitElement, callback : () => void ) {\n this._element = element;\n this._callback = callback;\n this.observe();\n }\n\n /**\n * Connect LitElement to mutation observer (sans attributes)\n */\n observe() {\n this.disconnect();\n if (this._element) {\n const observerOptions = {\n characterData: true,\n childList: true,\n attributes: false, // properties takes care of this...\n subtree: true,\n };\n this._mutationObserver = new MutationObserver(\n () => this._callback(), // this._element.requestUpdate(),\n );\n this._mutationObserver.observe(this._element, observerOptions);\n }\n }\n\n /**\n * disconnect mutation observer\n */\n disconnect() {\n if (!this._mutationObserver) {\n return;\n }\n this._mutationObserver.disconnect();\n }\n}\n"],
5
- "mappings": "AAKA,WAA8C,CAqB5C,YAAa,EAAqB,EAAwB,CACxD,KAAK,SAAW,EAChB,KAAK,UAAY,EACjB,KAAK,QAAQ,CACf,CAKA,SAAU,CAER,GADA,KAAK,WAAW,EACZ,KAAK,SAAU,CACjB,GAAM,GAAkB,CACtB,cAAe,GACf,UAAW,GACX,WAAY,GACZ,QAAS,EACX,EACA,KAAK,kBAAoB,GAAI,kBAC3B,IAAM,KAAK,UAAU,CACvB,EACA,KAAK,kBAAkB,QAAQ,KAAK,SAAU,CAAe,CAC/D,CACF,CAKA,YAAa,CACX,AAAI,CAAC,KAAK,mBAGV,KAAK,kBAAkB,WAAW,CACpC,CACF",
6
- "names": []
5
+ "mappings": "AAKA,IAAqBA,EAArB,KAA8C,CAqB5C,YAAaC,EAAqBC,EAAwB,CACxD,KAAK,SAAWD,EAChB,KAAK,UAAYC,EACjB,KAAK,QAAQ,CACf,CAKA,SAAU,CAER,GADA,KAAK,WAAW,EACZ,KAAK,SAAU,CACjB,IAAMC,EAAkB,CACtB,cAAe,GACf,UAAW,GACX,WAAY,GACZ,QAAS,EACX,EACA,KAAK,kBAAoB,IAAI,iBAC3B,IAAM,KAAK,UAAU,CACvB,EACA,KAAK,kBAAkB,QAAQ,KAAK,SAAUA,CAAe,CAC/D,CACF,CAKA,YAAa,CACP,CAAC,KAAK,mBAGV,KAAK,kBAAkB,WAAW,CACpC,CACF",
6
+ "names": ["LightDomMutationObserver", "element", "callback", "observerOptions"]
7
7
  }
@@ -1,2 +1,2 @@
1
1
  var r=class{constructor(){this._mediaQueries={}}addBreakpointListener(e,t){e.map(i=>{let s=this.breakpointToQuery(i);this.addListener(s,t)})}removeBreakpointListener(e,t){e.map(i=>{let s=this.breakpointToQuery(i);this.removeListener(s,t)})}breakpointToQuery(e){return`(min-width: ${e.minWidth}px) and (max-width: ${e.maxWidth}px)`}addListener(e,t){this._mediaQueries[e]||(this._mediaQueries[e]={listeners:[],mediaQueryList:window.matchMedia(e)});let i=this._mediaQueries[e];i.listeners.push(t),i.mediaQueryList.addEventListener("change",t)}removeListener(e,t){if(this._mediaQueries[e]){let i=this._mediaQueries[e];i.mediaQueryList.removeEventListener("change",t);let s=i.listeners.filter(n=>n!==t);i.listeners=s,s.length===0&&delete this._mediaQueries[e]}}},d=new r;export{d as a};
2
- //# sourceMappingURL=chunk.WO7EIYQ3.js.map
2
+ //# sourceMappingURL=chunk.33FSL7Y7.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/observers/mediaQueryListSingleton.ts"],
4
4
  "sourcesContent": ["import {Breakpoint} from '../responsive/BreakpointTypes';\n\ninterface MediaQueryListContainer {\n listeners: ((evt: MediaQueryListEvent) => void)[];\n mediaQueryList: MediaQueryList;\n}\n\n/**\n * Singleton for MediaQueryListSingleton (instance exported below)\n */\nclass MediaQueryListSingleton {\n /** media query lookup */\n _mediaQueries : {[key:string]:MediaQueryListContainer} = {};\n\n /**\n * add via a list of breakpoints\n * @param {Breakpoint[]} breakpoints\n * @param {Function} listener\n */\n addBreakpointListener(\n breakpoints: Breakpoint[],\n listener: (evt : MediaQueryListEvent) => void,\n ) {\n breakpoints.map((breakpoint) => {\n const query = this.breakpointToQuery( breakpoint );\n this.addListener( query, listener );\n });\n }\n\n /**\n * remove via a list of breakpoints\n * @param {Breakpoint[]} breakpoints\n * @param {Function} listener\n */\n removeBreakpointListener(\n breakpoints: Breakpoint[],\n listener: (evt : MediaQueryListEvent) => void,\n ) {\n breakpoints.map((breakpoint) => {\n const query = this.breakpointToQuery( breakpoint );\n this.removeListener( query, listener );\n });\n }\n\n /**\n * centralize serializng breakpoint\n * @param {Breakpoint} breakpoint\n * @return {string}\n */\n breakpointToQuery(\n breakpoint: Breakpoint,\n ): string {\n return `(min-width: ${\n breakpoint.minWidth}px) and (max-width: ${breakpoint.maxWidth}px)`;\n }\n\n /**\n * add a query string to listen to...\n * @param {string} query\n * @param {Function} listener\n */\n addListener(\n query: string,\n listener: (evt : MediaQueryListEvent) => void,\n ) {\n // con sole.log( '[MediaQueryListSingleton] addListener', query )\n if (!this._mediaQueries[query]) {\n this._mediaQueries[query] = {\n listeners: [],\n mediaQueryList: window.matchMedia(query),\n };\n }\n const mediaObj = this._mediaQueries[query];\n mediaObj.listeners.push( listener );\n mediaObj.mediaQueryList.addEventListener(\n 'change',\n listener,\n );\n }\n\n /**\n * remove query string from listener\n * @param {string} query\n * @param {Function} listener\n */\n removeListener(\n query: string,\n listener: (evt : MediaQueryListEvent) => void,\n ) {\n // con sole.log( '[MediaQueryListSingleton] removeListener', query );\n if (this._mediaQueries[query]) {\n const mediaObj = this._mediaQueries[query];\n mediaObj.mediaQueryList.removeEventListener(\n 'change',\n listener,\n );\n const newListeners = mediaObj.listeners.filter((listenerInList) => {\n return listenerInList !== listener;\n });\n mediaObj.listeners = newListeners;\n if (newListeners.length === 0) {\n delete this._mediaQueries[query];\n /* con sole.log(\n `removed media query for ${query}`,\n Object.keys( this._mediaQueries )\n ); */\n }\n }\n }\n}\n\nexport default new MediaQueryListSingleton();\n"],
5
- "mappings": "AAUA,WAA8B,CAA9B,cAEE,mBAAyD,CAAC,EAO1D,sBACE,EACA,EACA,CACA,EAAY,IAAI,AAAC,GAAe,CAC9B,GAAM,GAAQ,KAAK,kBAAmB,CAAW,EACjD,KAAK,YAAa,EAAO,CAAS,CACpC,CAAC,CACH,CAOA,yBACE,EACA,EACA,CACA,EAAY,IAAI,AAAC,GAAe,CAC9B,GAAM,GAAQ,KAAK,kBAAmB,CAAW,EACjD,KAAK,eAAgB,EAAO,CAAS,CACvC,CAAC,CACH,CAOA,kBACE,EACQ,CACR,MAAO,eACL,EAAW,+BAA+B,EAAW,aACzD,CAOA,YACE,EACA,EACA,CAEA,AAAK,KAAK,cAAc,IACtB,MAAK,cAAc,GAAS,CAC1B,UAAW,CAAC,EACZ,eAAgB,OAAO,WAAW,CAAK,CACzC,GAEF,GAAM,GAAW,KAAK,cAAc,GACpC,EAAS,UAAU,KAAM,CAAS,EAClC,EAAS,eAAe,iBACtB,SACA,CACF,CACF,CAOA,eACE,EACA,EACA,CAEA,GAAI,KAAK,cAAc,GAAQ,CAC7B,GAAM,GAAW,KAAK,cAAc,GACpC,EAAS,eAAe,oBACtB,SACA,CACF,EACA,GAAM,GAAe,EAAS,UAAU,OAAO,AAAC,GACvC,IAAmB,CAC3B,EACD,EAAS,UAAY,EACjB,EAAa,SAAW,GAC1B,MAAO,MAAK,cAAc,EAM9B,CACF,CACF,EAEO,EAAQ,GAAI",
6
- "names": []
5
+ "mappings": "AAUA,IAAMA,EAAN,KAA8B,CAA9B,cAEE,mBAAyD,CAAC,EAO1D,sBACEC,EACAC,EACA,CACAD,EAAY,IAAKE,GAAe,CAC9B,IAAMC,EAAQ,KAAK,kBAAmBD,CAAW,EACjD,KAAK,YAAaC,EAAOF,CAAS,CACpC,CAAC,CACH,CAOA,yBACED,EACAC,EACA,CACAD,EAAY,IAAKE,GAAe,CAC9B,IAAMC,EAAQ,KAAK,kBAAmBD,CAAW,EACjD,KAAK,eAAgBC,EAAOF,CAAS,CACvC,CAAC,CACH,CAOA,kBACEC,EACQ,CACR,MAAO,eACLA,EAAW,+BAA+BA,EAAW,aACzD,CAOA,YACEC,EACAF,EACA,CAEK,KAAK,cAAcE,KACtB,KAAK,cAAcA,GAAS,CAC1B,UAAW,CAAC,EACZ,eAAgB,OAAO,WAAWA,CAAK,CACzC,GAEF,IAAMC,EAAW,KAAK,cAAcD,GACpCC,EAAS,UAAU,KAAMH,CAAS,EAClCG,EAAS,eAAe,iBACtB,SACAH,CACF,CACF,CAOA,eACEE,EACAF,EACA,CAEA,GAAI,KAAK,cAAcE,GAAQ,CAC7B,IAAMC,EAAW,KAAK,cAAcD,GACpCC,EAAS,eAAe,oBACtB,SACAH,CACF,EACA,IAAMI,EAAeD,EAAS,UAAU,OAAQE,GACvCA,IAAmBL,CAC3B,EACDG,EAAS,UAAYC,EACjBA,EAAa,SAAW,GAC1B,OAAO,KAAK,cAAcF,EAM9B,CACF,CACF,EAEOI,EAAQ,IAAIR",
6
+ "names": ["MediaQueryListSingleton", "breakpoints", "listener", "breakpoint", "query", "mediaObj", "newListeners", "listenerInList", "mediaQueryListSingleton_default"]
7
7
  }
@@ -1,2 +1,2 @@
1
1
  var a=(e=>(e.button="button",e.card="card",e.component="component",e.formElement="form-element",e.inputField="input-field",e.inputLayout="input-layout",e.singleInputLayout="single-input-layout",e.input="input",e.singleInput="single-input",e.heading="heading",e.icon="icon",e.link="link",e.linkBase="link-base",e.menu="menu",e.menuItem="menu-item",e.nav="nav",e.image="image",e.responsive="responsive",e.validation="validation",e.validate="validate",e.elementComponent="element-component",e.centerComponent="center-component",e.flexHComponent="flex-h-component",e.flexVComponent="flex-v-component",e.floatComponent="float-component",e.paneComponent="pane-component",e.layoutComponent="layout-component",e.stackComponent="stack-component",e.form="form",e.alert="alert",e.pageAlert="pageAlert",e.textarea="textarea",e.test="test",e))(a||{});export{a};
2
- //# sourceMappingURL=chunk.3MIP3PMW.js.map
2
+ //# sourceMappingURL=chunk.3DNJZ75B.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/enums/Components.ts"],
4
4
  "sourcesContent": ["\n\n// sans prefix and suffix\nexport enum Components {\n button = 'button',\n card = 'card',\n component = 'component',\n formElement = 'form-element',\n inputField = 'input-field',\n inputLayout = 'input-layout',\n singleInputLayout = 'single-input-layout',\n input = 'input',\n singleInput = 'single-input',\n heading = 'heading',\n icon = 'icon',\n link = 'link',\n linkBase = 'link-base',\n menu = 'menu',\n menuItem = 'menu-item',\n nav = 'nav',\n image = 'image',\n responsive = 'responsive',\n validation = 'validation',\n validate = 'validate',\n elementComponent = 'element-component',\n centerComponent = 'center-component',\n flexHComponent = 'flex-h-component',\n flexVComponent = 'flex-v-component',\n floatComponent = 'float-component',\n paneComponent = 'pane-component',\n layoutComponent = 'layout-component',\n stackComponent = 'stack-component',\n form = 'form',\n alert = 'alert',\n pageAlert = 'pageAlert',\n textarea = 'textarea',\n test = 'test'\n}\n"],
5
- "mappings": "AAGO,GAAK,GAAL,CAAK,GACV,UAAS,SACT,OAAO,OACP,YAAY,YACZ,cAAc,eACd,aAAa,cACb,cAAc,eACd,oBAAoB,sBACpB,QAAQ,QACR,cAAc,eACd,UAAU,UACV,OAAO,OACP,OAAO,OACP,WAAW,YACX,OAAO,OACP,WAAW,YACX,MAAM,MACN,QAAQ,QACR,aAAa,aACb,aAAa,aACb,WAAW,WACX,mBAAmB,oBACnB,kBAAkB,mBAClB,iBAAiB,mBACjB,iBAAiB,mBACjB,iBAAiB,kBACjB,gBAAgB,iBAChB,kBAAkB,mBAClB,iBAAiB,kBACjB,OAAO,OACP,QAAQ,QACR,YAAY,YACZ,WAAW,WACX,OAAO,OAjCG",
6
- "names": []
5
+ "mappings": "AAGO,IAAKA,OACVA,EAAA,OAAS,SACTA,EAAA,KAAO,OACPA,EAAA,UAAY,YACZA,EAAA,YAAc,eACdA,EAAA,WAAa,cACbA,EAAA,YAAc,eACdA,EAAA,kBAAoB,sBACpBA,EAAA,MAAQ,QACRA,EAAA,YAAc,eACdA,EAAA,QAAU,UACVA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,SAAW,YACXA,EAAA,KAAO,OACPA,EAAA,SAAW,YACXA,EAAA,IAAM,MACNA,EAAA,MAAQ,QACRA,EAAA,WAAa,aACbA,EAAA,WAAa,aACbA,EAAA,SAAW,WACXA,EAAA,iBAAmB,oBACnBA,EAAA,gBAAkB,mBAClBA,EAAA,eAAiB,mBACjBA,EAAA,eAAiB,mBACjBA,EAAA,eAAiB,kBACjBA,EAAA,cAAgB,iBAChBA,EAAA,gBAAkB,mBAClBA,EAAA,eAAiB,kBACjBA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,SAAW,WACXA,EAAA,KAAO,OAjCGA,OAAA",
6
+ "names": ["Components"]
7
7
  }
@@ -0,0 +1,59 @@
1
+ import{a as i}from"./chunk.OOCO42E3.js";import{d as s}from"./chunk.X2MZFY6Y.js";import{a as e,b as o}from"./chunk.44PMNKPK.js";import{a}from"./chunk.IHVBWZ57.js";import{g as t}from"./chunk.5YJY6NT6.js";var c=e`
2
+ a.scw-link-base h1:hover, a.scw-link-base h2:hover, a.scw-link-base h3:hover, a.scw-link-base h4:hover, a.scw-link-base h5:hover {
3
+ cursor: pointer;
4
+ text-decoration: underline;
5
+ }
6
+
7
+ a.scw-link-base[aria-disabled=true] h1, a.scw-link-base[aria-disabled=true] h2, a.scw-link-base[aria-disabled=true] h3, a.scw-link-base[aria-disabled=true] h4, a.scw-link-base[aria-disabled=true] h5,
8
+ :host([anchor][aria-disabled=true]) h1,
9
+ :host([anchor][aria-disabled=true]) h2,
10
+ :host([anchor][aria-disabled=true]) h3,
11
+ :host([anchor][aria-disabled=true]) h4,
12
+ :host([anchor][aria-disabled=true]) h5 {
13
+ color: var(--scw-color-primary-08);
14
+ }
15
+ a.scw-link-base[aria-disabled=true] h1:hover, a.scw-link-base[aria-disabled=true] h2:hover, a.scw-link-base[aria-disabled=true] h3:hover, a.scw-link-base[aria-disabled=true] h4:hover, a.scw-link-base[aria-disabled=true] h5:hover,
16
+ :host([anchor][aria-disabled=true]) h1:hover,
17
+ :host([anchor][aria-disabled=true]) h2:hover,
18
+ :host([anchor][aria-disabled=true]) h3:hover,
19
+ :host([anchor][aria-disabled=true]) h4:hover,
20
+ :host([anchor][aria-disabled=true]) h5:hover {
21
+ cursor: auto;
22
+ text-decoration: initial;
23
+ }
24
+
25
+ :host a {
26
+ text-decoration: none;
27
+ }
28
+ :host h1 {
29
+ text-align: LEFT;
30
+ font: var(--scw-type-text-bold-condensed-10-font);
31
+ color: var(--scw-color-04, var(--scw-color-primary-04));
32
+ }
33
+ :host h2 {
34
+ text-align: LEFT;
35
+ font: var(--scw-type-text-bold-condensed-09-font);
36
+ color: var(--scw-color-04, var(--scw-color-primary-04));
37
+ }
38
+ :host h3 {
39
+ text-align: LEFT;
40
+ font: var(--scw-type-text-bold-condensed-08-font);
41
+ color: var(--scw-color-04, var(--scw-color-primary-04));
42
+ }
43
+ :host h4 {
44
+ text-align: LEFT;
45
+ font: var(--scw-type-text-bold-condensed-07-font);
46
+ color: var(--scw-color-04, var(--scw-color-primary-04));
47
+ }
48
+ :host h5 {
49
+ text-align: LEFT;
50
+ font: var(--scw-type-text-bold-condensed-06-font);
51
+ color: var(--scw-color-04, var(--scw-color-primary-04));
52
+ }
53
+ :host h1, :host h2, :host h3, :host h4, :host h5 {
54
+ margin: 0;
55
+ padding: 0;
56
+ color: var(--scw-color-04, var(--scw-color-grey-02));
57
+ }
58
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290Ijoi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OztBSHVDRjtFSTFDQTtFQUNBO0VBRUU7O0FKMENGO0VLN0NBO0VBQ0E7RUFFRTs7QUw2Q0Y7RU1oREE7RUFDQTtFQUVFOztBTmlERjtFQUNFO0VBQVc7RUFDWCJ9 */`;var r=class extends s{constructor(){super();this.size="H1";this.element="heading"}static get styles(){return[super.styles,c]}parseAndValidateLightDom(){super.parseAndValidateLightDom(),i(this)}renderHeading(){switch(this.size.toUpperCase()){case"H5":return a`<h5>${this.ariaLabel}</h5>`;case"H4":return a`<h4>${this.ariaLabel}</h4>`;case"H3":return a`<h3>${this.ariaLabel}</h3>`;case"H2":return a`<h2>${this.ariaLabel}</h2>`;case"H1":default:return a`<h1>${this.ariaLabel}</h1>`}}render(){return this.renderLink(this.renderHeading())}};t([o({type:String,reflect:!0})],r.prototype,"size",2);export{r as a};
59
+ //# sourceMappingURL=chunk.42R5SIJT.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/scw-heading/scss/scw-heading.scss", "../../src/scw-heading/ScwHeading.ts"],
4
+ "sourcesContent": ["import {css} from \"lit-element/lit-element.js\";\nexport default css`\na.scw-link-base h1:hover, a.scw-link-base h2:hover, a.scw-link-base h3:hover, a.scw-link-base h4:hover, a.scw-link-base h5:hover {\n cursor: pointer;\n text-decoration: underline;\n}\n\na.scw-link-base[aria-disabled=true] h1, a.scw-link-base[aria-disabled=true] h2, a.scw-link-base[aria-disabled=true] h3, a.scw-link-base[aria-disabled=true] h4, a.scw-link-base[aria-disabled=true] h5,\n:host([anchor][aria-disabled=true]) h1,\n:host([anchor][aria-disabled=true]) h2,\n:host([anchor][aria-disabled=true]) h3,\n:host([anchor][aria-disabled=true]) h4,\n:host([anchor][aria-disabled=true]) h5 {\n color: var(--scw-color-primary-08);\n}\na.scw-link-base[aria-disabled=true] h1:hover, a.scw-link-base[aria-disabled=true] h2:hover, a.scw-link-base[aria-disabled=true] h3:hover, a.scw-link-base[aria-disabled=true] h4:hover, a.scw-link-base[aria-disabled=true] h5:hover,\n:host([anchor][aria-disabled=true]) h1:hover,\n:host([anchor][aria-disabled=true]) h2:hover,\n:host([anchor][aria-disabled=true]) h3:hover,\n:host([anchor][aria-disabled=true]) h4:hover,\n:host([anchor][aria-disabled=true]) h5:hover {\n cursor: auto;\n text-decoration: initial;\n}\n\n:host a {\n text-decoration: none;\n}\n:host h1 {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-10-font);\n color: var(--scw-color-04, var(--scw-color-primary-04));\n}\n:host h2 {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-09-font);\n color: var(--scw-color-04, var(--scw-color-primary-04));\n}\n:host h3 {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-08-font);\n color: var(--scw-color-04, var(--scw-color-primary-04));\n}\n:host h4 {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-07-font);\n color: var(--scw-color-04, var(--scw-color-primary-04));\n}\n:host h5 {\n text-align: LEFT;\n font: var(--scw-type-text-bold-condensed-06-font);\n color: var(--scw-color-04, var(--scw-color-primary-04));\n}\n:host h1, :host h2, :host h3, :host h4, :host h5 {\n margin: 0;\n padding: 0;\n color: var(--scw-color-04, var(--scw-color-grey-02));\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL3Njb3R0cm91c2UvV29ya3NwYWNlL3Njdy1kZXNpZ24tc3lzdGVtLXdlYi9zY3ctZGVzaWduLXN5c3RlbS1tb25vL3NjdS13ZWItY29tcG9uZW50cy9zcmMvc2N3LWhlYWRpbmcvc2NzcyIsInNvdXJjZXMiOlsic2N3LWhlYWRpbmcuc2NzcyIsIi4uLy4uLy4uL2Rpc3QvdG9rZW5zL3NlZ21lbnRzL2NvbXAtc2N3LWhlYWRpbmcvX3N0YXRlLWRpc2FibGVkLWxhYmVsLXZhcnMuc2NzcyIsIi4uLy4uLy4uL2Rpc3QvdG9rZW5zL3NlZ21lbnRzL2NvbXAtc2N3LWhlYWRpbmcvX2RlZmF1bHQtbGFiZWwtbWl4aW5zLnNjc3MiLCIuLi8uLi8uLi9kaXN0L3Rva2Vucy9zZWdtZW50cy9jb21wLXNjdy1oZWFkaW5nL19zaXplLWgyLWxhYmVsLW1peGlucy5zY3NzIiwiLi4vLi4vLi4vZGlzdC90b2tlbnMvc2VnbWVudHMvY29tcC1zY3ctaGVhZGluZy9fc2l6ZS1oMy1sYWJlbC1taXhpbnMuc2NzcyIsIi4uLy4uLy4uL2Rpc3QvdG9rZW5zL3NlZ21lbnRzL2NvbXAtc2N3LWhlYWRpbmcvX3NpemUtaDQtbGFiZWwtbWl4aW5zLnNjc3MiLCIuLi8uLi8uLi9kaXN0L3Rva2Vucy9zZWdtZW50cy9jb21wLXNjdy1oZWFkaW5nL19zaXplLWg1LWxhYmVsLW1peGlucy5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCRTtFQUNFO0VBQ0E7OztBQVFGO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtFQUNFLE9DcEJJOztBRHNCTjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7RUFDRTtFQUNBOzs7QUFPRjtFQUNFOztBQUdGO0VFcENBO0VBQ0E7RUFFRTs7QUZvQ0Y7RUd2Q0E7RUFDQTtFQUVFOztBSHVDRjtFSTFDQTtFQUNBO0VBRUU7O0FKMENGO0VLN0NBO0VBQ0E7RUFFRTs7QUw2Q0Y7RU1oREE7RUFDQTtFQUVFOztBTmlERjtFQUNFO0VBQVc7RUFDWCJ9 */`;\n", "import {html} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport styles from './scss/scw-heading.scss';\nimport {ScwHeadingSizes} from './scw-heading-enums';\nimport {Components} from '../utils/enums/Components';\nimport ScwLinkBase from '../scw-link-base/ScwLinkBase';\nimport parseLightDomHeading from './parseLightDomHeading';\n\n/**\n * ScwHeading\n * @class\n * @tag scw-heading\n *\n * @slot [default=\"<h1, h2, h3, h4, h5 />\"]\n heading html (for SEO) will determine the size and label.\n * @slot [default=\"<a href target><h1, h2, h3, h4, h5 /></a>\"]\n (OPTIONAL) anchor (for SEO) will determine the label, href, and target in\n addition to size and label.\n */\nexport default class ScwHeading extends ScwLinkBase {\n /**\n * styles\n */\n static get styles() {\n return [\n super.styles,\n styles,\n ];\n }\n\n // ============== ScwHeading =================================================\n /**\n * (ScwHeader) Size of heading (h1, h2, h3, h4, h5)\n * @type {string}\n */\n @property({type: String, reflect: true})\n size: ScwHeadingSizes = ScwHeadingSizes.H1;\n\n /**\n * Constructor\n */\n constructor() {\n super();\n this.element = Components.heading;\n }\n\n /** parseAndValidateLightDom, just adding local parsing and validation */\n parseAndValidateLightDom() {\n super.parseAndValidateLightDom();\n parseLightDomHeading(this);\n }\n\n /**\n * renderHeading\n * @return {object} component DOM\n */\n renderHeading(): object {\n switch ( this.size.toUpperCase() ) {\n case ScwHeadingSizes.H5:\n return html`<h5>${this.ariaLabel}</h5>`;\n case ScwHeadingSizes.H4:\n return html`<h4>${this.ariaLabel}</h4>`;\n case ScwHeadingSizes.H3:\n return html`<h3>${this.ariaLabel}</h3>`;\n case ScwHeadingSizes.H2:\n return html`<h2>${this.ariaLabel}</h2>`;\n case ScwHeadingSizes.H1:\n default:\n return html`<h1>${this.ariaLabel}</h1>`;\n }\n }\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return this.renderLink(\n this.renderHeading(),\n );\n }\n}\n"],
5
+ "mappings": "0MACA,IAAOA,EAAQC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;6vCCkBf,IAAqBC,EAArB,cAAwCC,CAAY,CAsBlD,aAAc,CACZ,MAAM,EANN,eAOA,KAAK,iBACP,CArBC,WAAW,QAAS,CACnB,MAAO,CACL,MAAM,OACNC,CACF,CACF,CAmBA,0BAA2B,CACzB,MAAM,yBAAyB,EAC/BC,EAAqB,IAAI,CAC3B,CAMA,eAAwB,CACtB,OAAS,KAAK,KAAK,YAAY,YAE3B,OAAOC,QAAW,KAAK,0BAEvB,OAAOA,QAAW,KAAK,0BAEvB,OAAOA,QAAW,KAAK,0BAEvB,OAAOA,QAAW,KAAK,kCAGvB,OAAOA,QAAW,KAAK,iBAE7B,CAMA,QAAiB,CACf,OAAO,KAAK,WACV,KAAK,cAAc,CACrB,CACF,CACF,EA7CIC,EAAA,CADDC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GAhBpBN,EAiBjB",
6
+ "names": ["scw_heading_default", "r", "ScwHeading", "ScwLinkBase", "scw_heading_default", "parseLightDomHeading", "$", "__decorateClass", "e"]
7
+ }
@@ -0,0 +1,36 @@
1
+ import{a as x}from"./chunk.NGL6WE6V.js";import{a as O}from"./chunk.2WX7XMLC.js";import{a as U,c as P,e as k}from"./chunk.IHVBWZ57.js";import{g as h}from"./chunk.5YJY6NT6.js";var v=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,b=Symbol(),A=new WeakMap,m=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(v&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=A.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&A.set(e,t))}return t}toString(){return this.cssText}},L=i=>new m(typeof i=="string"?i:i+"",void 0,b),g=(i,...t)=>{let e=i.length===1?i[0]:t.reduce((r,o,s)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new m(e,i,b)},E=(i,t)=>{v?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let r=document.createElement("style"),o=window.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,i.appendChild(r)})},y=v?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return L(e)})(i):i;var S,N=window.trustedTypes,q=N?N.emptyScript:"",z=window.reactiveElementPolyfillSupport,$={toAttribute(i,t){switch(t){case Boolean:i=i?q:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},M=(i,t)=>t!==i&&(t==t||i==i),_={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:M},a=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;(e=this.h)!==null&&e!==void 0||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,r)=>{let o=this._$Ep(r,e);o!==void 0&&(this._$Ev.set(o,r),t.push(o))}),t}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let r=typeof t=="symbol"?Symbol():"__"+t,o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){let s=this[t];this[e]=o,this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let e=this.properties,r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)this.createProperty(o,e[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(y(o))}else t!==void 0&&e.push(y(t));return e}static _$Ep(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)===null||r===void 0||r.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;let e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return E(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostConnected)===null||r===void 0?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostDisconnected)===null||r===void 0?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=_){var o,s;let n=this.constructor._$Ep(t,r);if(n!==void 0&&r.reflect===!0){let p=((s=(o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==null&&s!==void 0?s:$.toAttribute)(e,r.type);this._$El=t,p==null?this.removeAttribute(n):this.setAttribute(n,p),this._$El=null}}_$AK(t,e){var r,o;let s=this.constructor,n=s._$Ev.get(t);if(n!==void 0&&this._$El!==n){let p=s.getPropertyOptions(n),f=p.converter,V=(o=(r=f==null?void 0:f.fromAttribute)!==null&&r!==void 0?r:typeof f=="function"?f:null)!==null&&o!==void 0?o:$.fromAttribute;this._$El=n,this[n]=V(e,p.type),this._$El=null}}requestUpdate(t,e,r){let o=!0;t!==void 0&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||M)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,s)=>this[s]=o),this._$Ei=void 0);let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(t=this._$ES)===null||t===void 0||t.forEach(o=>{var s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.call(o)}),this.update(r)):this._$Ek()}catch(o){throw e=!1,this._$Ek(),o}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostUpdated)===null||o===void 0?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,r)=>this._$EO(r,this[r],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};a.finalized=!0,a.elementProperties=new Map,a.elementStyles=[],a.shadowRootOptions={mode:"open"},z==null||z({ReactiveElement:a}),((S=globalThis.reactiveElementVersions)!==null&&S!==void 0?S:globalThis.reactiveElementVersions=[]).push("1.3.4");var w,C;var d=class extends a{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let r=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=r.firstChild),r}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=k(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return P}};d.finalized=!0,d._$litElement$=!0,(w=globalThis.litElementHydrateSupport)===null||w===void 0||w.call(globalThis,{LitElement:d});var j=globalThis.litElementPolyfillSupport;j==null||j({LitElement:d});((C=globalThis.litElementVersions)!==null&&C!==void 0?C:globalThis.litElementVersions=[]).push("3.2.2");var B=(i,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,i)}};function c(i){return(t,e)=>e!==void 0?((r,o,s)=>{o.constructor.createProperty(s,r)})(i,t,e):B(i,t)}function T(i){return c({...i,state:!0})}var u=({finisher:i,descriptor:t})=>(e,r)=>{var o;if(r===void 0){let s=(o=e.originalKey)!==null&&o!==void 0?o:e.key,n=t!=null?{kind:"method",placement:"prototype",key:s,descriptor:t(e.key)}:{...e,key:s};return i!=null&&(n.finisher=function(p){i(p,s)}),n}{let s=e.constructor;t!==void 0&&Object.defineProperty(e,r,t(r)),i==null||i(s,r)}};function ct(i,t){return u({descriptor:e=>{let r={get(){var o,s;return(s=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(i))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(t){let o=typeof e=="symbol"?Symbol():"__"+e;r.get=function(){var s,n;return this[o]===void 0&&(this[o]=(n=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(i))!==null&&n!==void 0?n:null),this[o]}}return r}})}var R,yt=((R=window.HTMLSlotElement)===null||R===void 0?void 0:R.prototype.assignedElements)!=null?(i,t)=>i.assignedElements(t):(i,t)=>i.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE);var D=g`
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
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL3Njb3R0cm91c2UvV29ya3NwYWNlL3Njdy1kZXNpZ24tc3lzdGVtLXdlYi9zY3ctZGVzaWduLXN5c3RlbS1tb25vL3NjdS13ZWItY29tcG9uZW50cy9zcmMvc2N3LWNvbXBvbmVudC9zY3NzIiwic291cmNlcyI6WyJzY3ctY29tcG9uZW50LnNjc3MiLCIuLi8uLi8uLi9kaXN0L3Rva2Vucy9zb3VyY2UvY3NzQXBpLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7QUNrbnRCRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFFQTs7O0FEeG50QkY7RUFDRSJ9 */`;var l=class extends d{constructor(){super(...arguments);this.ariaLabel="";this.ariaDisabled="false";this.responsive=!1;this.dynamic=!1;this.element="component"}connectedCallback(){super.connectedCallback(),this.responsive===!0&&(this.responsiveElement=new x(this))}disconnectedCallback(){super.disconnectedCallback(),this.responsiveElement&&this.responsiveElement.disconnect()}firstUpdated(e){super.firstUpdated(e),this.parseAndValidateLightDom(),this.dynamic&&(this._lightDomMutationObserver=new O(this,()=>{this.parseAndValidateLightDom()}))}parseAndValidateLightDom(){}warn(e){this._lastWarning||(this._lastWarning=e,this.setAttribute("warning",e),this.setAttribute("title",`[ERROR]: ${e}`))}render(){return U`
19
+ <slot></slot>
20
+ `}};l.styles=D,h([c({type:String,reflect:!0,attribute:"aria-label"})],l.prototype,"ariaLabel",2),h([c({type:String,attribute:"aria-disabled"})],l.prototype,"ariaDisabled",2),h([c({type:Boolean})],l.prototype,"responsive",2),h([c({type:Boolean})],l.prototype,"dynamic",2),h([c({type:String,reflect:!0})],l.prototype,"element",2),h([T()],l.prototype,"_lastWarning",2);export{g as a,c as b,T as c,ct as d,l as e};
21
+ /**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */
26
+ /**
27
+ * @license
28
+ * Copyright 2019 Google LLC
29
+ * SPDX-License-Identifier: BSD-3-Clause
30
+ */
31
+ /**
32
+ * @license
33
+ * Copyright 2021 Google LLC
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */
36
+ //# sourceMappingURL=chunk.44PMNKPK.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../node_modules/@lit/reactive-element/src/css-tag.ts", "../../../node_modules/@lit/reactive-element/src/reactive-element.ts", "../../../node_modules/lit-element/src/lit-element.ts", "../../../node_modules/@lit/reactive-element/src/decorators/property.ts", "../../../node_modules/@lit/reactive-element/src/decorators/state.ts", "../../../node_modules/@lit/reactive-element/src/decorators/base.ts", "../../../node_modules/@lit/reactive-element/src/decorators/query.ts", "../../../node_modules/@lit/reactive-element/src/decorators/query-assigned-elements.ts", "../../src/scw-component/scss/scw-component.scss", "../../src/scw-component/ScwComponent.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Whether the current browser supports `adoptedStyleSheets`.\n */\nexport const supportsAdoptingStyleSheets =\n window.ShadowRoot &&\n (window.ShadyCSS === undefined || window.ShadyCSS.nativeShadow) &&\n 'adoptedStyleSheets' in Document.prototype &&\n 'replace' in CSSStyleSheet.prototype;\n\n/**\n * A CSSResult or native CSSStyleSheet.\n *\n * In browsers that support constructible CSS style sheets, CSSStyleSheet\n * object can be used for styling along side CSSResult from the `css`\n * template tag.\n */\nexport type CSSResultOrNative = CSSResult | CSSStyleSheet;\n\nexport type CSSResultArray = Array<CSSResultOrNative | CSSResultArray>;\n\n/**\n * A single CSSResult, CSSStyleSheet, or an array or nested arrays of those.\n */\nexport type CSSResultGroup = CSSResultOrNative | CSSResultArray;\n\nconst constructionToken = Symbol();\n\nconst cssTagCache = new WeakMap<TemplateStringsArray, CSSStyleSheet>();\n\n/**\n * A container for a string of CSS text, that may be used to create a CSSStyleSheet.\n *\n * CSSResult is the return value of `css`-tagged template literals and\n * `unsafeCSS()`. In order to ensure that CSSResults are only created via the\n * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly.\n */\nexport class CSSResult {\n // This property needs to remain unminified.\n ['_$cssResult$'] = true;\n readonly cssText: string;\n private _styleSheet?: CSSStyleSheet;\n private _strings: TemplateStringsArray | undefined;\n\n private constructor(\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ) {\n if (safeToken !== constructionToken) {\n throw new Error(\n 'CSSResult is not constructable. Use `unsafeCSS` or `css` instead.'\n );\n }\n this.cssText = cssText;\n this._strings = strings;\n }\n\n // This is a getter so that it's lazy. In practice, this means stylesheets\n // are not created until the first element instance is made.\n get styleSheet(): CSSStyleSheet | undefined {\n // If `supportsAdoptingStyleSheets` is true then we assume CSSStyleSheet is\n // constructable.\n let styleSheet = this._styleSheet;\n const strings = this._strings;\n if (supportsAdoptingStyleSheets && styleSheet === undefined) {\n const cacheable = strings !== undefined && strings.length === 1;\n if (cacheable) {\n styleSheet = cssTagCache.get(strings);\n }\n if (styleSheet === undefined) {\n (this._styleSheet = styleSheet = new CSSStyleSheet()).replaceSync(\n this.cssText\n );\n if (cacheable) {\n cssTagCache.set(strings, styleSheet);\n }\n }\n }\n return styleSheet;\n }\n\n toString(): string {\n return this.cssText;\n }\n}\n\ntype ConstructableCSSResult = CSSResult & {\n new (\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ): CSSResult;\n};\n\nconst textFromCSSResult = (value: CSSResultGroup | number) => {\n // This property needs to remain unminified.\n if ((value as CSSResult)['_$cssResult$'] === true) {\n return (value as CSSResult).cssText;\n } else if (typeof value === 'number') {\n return value;\n } else {\n throw new Error(\n `Value passed to 'css' function must be a 'css' function result: ` +\n `${value}. Use 'unsafeCSS' to pass non-literal values, but take care ` +\n `to ensure page security.`\n );\n }\n};\n\n/**\n * Wrap a value for interpolation in a {@linkcode css} tagged template literal.\n *\n * This is unsafe because untrusted CSS text can be used to phone home\n * or exfiltrate data to an attacker controlled site. Take care to only use\n * this with trusted input.\n */\nexport const unsafeCSS = (value: unknown) =>\n new (CSSResult as ConstructableCSSResult)(\n typeof value === 'string' ? value : String(value),\n undefined,\n constructionToken\n );\n\n/**\n * A template literal tag which can be used with LitElement's\n * {@linkcode LitElement.styles} property to set element styles.\n *\n * For security reasons, only literal string values and number may be used in\n * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS}\n * may be used inside an expression.\n */\nexport const css = (\n strings: TemplateStringsArray,\n ...values: (CSSResultGroup | number)[]\n): CSSResult => {\n const cssText =\n strings.length === 1\n ? strings[0]\n : values.reduce(\n (acc, v, idx) => acc + textFromCSSResult(v) + strings[idx + 1],\n strings[0]\n );\n return new (CSSResult as ConstructableCSSResult)(\n cssText,\n strings,\n constructionToken\n );\n};\n\n/**\n * Applies the given styles to a `shadowRoot`. When Shadow DOM is\n * available but `adoptedStyleSheets` is not, styles are appended to the\n * `shadowRoot` to [mimic spec behavior](https://wicg.github.io/construct-stylesheets/#using-constructed-stylesheets).\n * Note, when shimming is used, any styles that are subsequently placed into\n * the shadowRoot should be placed *before* any shimmed adopted styles. This\n * will match spec behavior that gives adopted sheets precedence over styles in\n * shadowRoot.\n */\nexport const adoptStyles = (\n renderRoot: ShadowRoot,\n styles: Array<CSSResultOrNative>\n) => {\n if (supportsAdoptingStyleSheets) {\n (renderRoot as ShadowRoot).adoptedStyleSheets = styles.map((s) =>\n s instanceof CSSStyleSheet ? s : s.styleSheet!\n );\n } else {\n styles.forEach((s) => {\n const style = document.createElement('style');\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const nonce = (window as any)['litNonce'];\n if (nonce !== undefined) {\n style.setAttribute('nonce', nonce);\n }\n style.textContent = (s as CSSResult).cssText;\n renderRoot.appendChild(style);\n });\n }\n};\n\nconst cssResultFromStyleSheet = (sheet: CSSStyleSheet) => {\n let cssText = '';\n for (const rule of sheet.cssRules) {\n cssText += rule.cssText;\n }\n return unsafeCSS(cssText);\n};\n\nexport const getCompatibleStyle = supportsAdoptingStyleSheets\n ? (s: CSSResultOrNative) => s\n : (s: CSSResultOrNative) =>\n s instanceof CSSStyleSheet ? cssResultFromStyleSheet(s) : s;\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Use this module if you want to create your own base class extending\n * {@link ReactiveElement}.\n * @packageDocumentation\n */\n\nimport {\n getCompatibleStyle,\n adoptStyles,\n CSSResultGroup,\n CSSResultOrNative,\n} from './css-tag.js';\nimport type {\n ReactiveController,\n ReactiveControllerHost,\n} from './reactive-controller.js';\n\nexport * from './css-tag.js';\nexport type {\n ReactiveController,\n ReactiveControllerHost,\n} from './reactive-controller.js';\n\nconst DEV_MODE = true;\n\nlet requestUpdateThenable: (name: string) => {\n then: (\n onfulfilled?: (value: boolean) => void,\n _onrejected?: () => void\n ) => void;\n};\n\nlet issueWarning: (code: string, warning: string) => void;\n\nconst trustedTypes = (window as unknown as {trustedTypes?: {emptyScript: ''}})\n .trustedTypes;\n\n// Temporary workaround for https://crbug.com/993268\n// Currently, any attribute starting with \"on\" is considered to be a\n// TrustedScript source. Such boolean attributes must be set to the equivalent\n// trusted emptyScript value.\nconst emptyStringForBooleanAttribute = trustedTypes\n ? (trustedTypes.emptyScript as unknown as '')\n : '';\n\nconst polyfillSupport = DEV_MODE\n ? window.reactiveElementPolyfillSupportDevMode\n : window.reactiveElementPolyfillSupport;\n\nif (DEV_MODE) {\n // Ensure warnings are issued only 1x, even if multiple versions of Lit\n // are loaded.\n const issuedWarnings: Set<string | undefined> =\n (globalThis.litIssuedWarnings ??= new Set());\n\n // Issue a warning, if we haven't already.\n issueWarning = (code: string, warning: string) => {\n warning += ` See https://lit.dev/msg/${code} for more information.`;\n if (!issuedWarnings.has(warning)) {\n console.warn(warning);\n issuedWarnings.add(warning);\n }\n };\n\n issueWarning(\n 'dev-mode',\n `Lit is in dev mode. Not recommended for production!`\n );\n\n // Issue polyfill support warning.\n if (window.ShadyDOM?.inUse && polyfillSupport === undefined) {\n issueWarning(\n 'polyfill-support-missing',\n `Shadow DOM is being polyfilled via \\`ShadyDOM\\` but ` +\n `the \\`polyfill-support\\` module has not been loaded.`\n );\n }\n\n requestUpdateThenable = (name) => ({\n then: (\n onfulfilled?: (value: boolean) => void,\n _onrejected?: () => void\n ) => {\n issueWarning(\n 'request-update-promise',\n `The \\`requestUpdate\\` method should no longer return a Promise but ` +\n `does so on \\`${name}\\`. Use \\`updateComplete\\` instead.`\n );\n if (onfulfilled !== undefined) {\n onfulfilled(false);\n }\n },\n });\n}\n\n/**\n * Contains types that are part of the unstable debug API.\n *\n * Everything in this API is not stable and may change or be removed in the future,\n * even on patch releases.\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace ReactiveUnstable {\n /**\n * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,\n * we will emit 'lit-debug' events to window, with live details about the update and render\n * lifecycle. These can be useful for writing debug tooling and visualizations.\n *\n * Please be aware that running with window.emitLitDebugLogEvents has performance overhead,\n * making certain operations that are normally very cheap (like a no-op render) much slower,\n * because we must copy data and dispatch events.\n */\n // eslint-disable-next-line @typescript-eslint/no-namespace\n export namespace DebugLog {\n export type Entry = Update;\n export interface Update {\n kind: 'update';\n }\n }\n}\n\ninterface DebugLoggingWindow {\n // Even in dev mode, we generally don't want to emit these events, as that's\n // another level of cost, so only emit them when DEV_MODE is true _and_ when\n // window.emitLitDebugEvents is true.\n emitLitDebugLogEvents?: boolean;\n}\n\n/**\n * Useful for visualizing and logging insights into what the Lit template system is doing.\n *\n * Compiled out of prod mode builds.\n */\nconst debugLogEvent = DEV_MODE\n ? (event: ReactiveUnstable.DebugLog.Entry) => {\n const shouldEmit = (window as unknown as DebugLoggingWindow)\n .emitLitDebugLogEvents;\n if (!shouldEmit) {\n return;\n }\n window.dispatchEvent(\n new CustomEvent<ReactiveUnstable.DebugLog.Entry>('lit-debug', {\n detail: event,\n })\n );\n }\n : undefined;\n\n/*\n * When using Closure Compiler, JSCompiler_renameProperty(property, object) is\n * replaced at compile time by the munged name for object[property]. We cannot\n * alias this function, so we have to use a small shim that has the same\n * behavior when not compiling.\n */\n/*@__INLINE__*/\nconst JSCompiler_renameProperty = <P extends PropertyKey>(\n prop: P,\n _obj: unknown\n): P => prop;\n\n/**\n * Converts property values to and from attribute values.\n */\nexport interface ComplexAttributeConverter<Type = unknown, TypeHint = unknown> {\n /**\n * Called to convert an attribute value to a property\n * value.\n */\n fromAttribute?(value: string | null, type?: TypeHint): Type;\n\n /**\n * Called to convert a property value to an attribute\n * value.\n *\n * It returns unknown instead of string, to be compatible with\n * https://github.com/WICG/trusted-types (and similar efforts).\n */\n toAttribute?(value: Type, type?: TypeHint): unknown;\n}\n\ntype AttributeConverter<Type = unknown, TypeHint = unknown> =\n | ComplexAttributeConverter<Type>\n | ((value: string | null, type?: TypeHint) => Type);\n\n/**\n * Defines options for a property accessor.\n */\nexport interface PropertyDeclaration<Type = unknown, TypeHint = unknown> {\n /**\n * When set to `true`, indicates the property is internal private state. The\n * property should not be set by users. When using TypeScript, this property\n * should be marked as `private` or `protected`, and it is also a common\n * practice to use a leading `_` in the name. The property is not added to\n * `observedAttributes`.\n */\n readonly state?: boolean;\n\n /**\n * Indicates how and whether the property becomes an observed attribute.\n * If the value is `false`, the property is not added to `observedAttributes`.\n * If true or absent, the lowercased property name is observed (e.g. `fooBar`\n * becomes `foobar`). If a string, the string value is observed (e.g\n * `attribute: 'foo-bar'`).\n */\n readonly attribute?: boolean | string;\n\n /**\n * Indicates the type of the property. This is used only as a hint for the\n * `converter` to determine how to convert the attribute\n * to/from a property.\n */\n readonly type?: TypeHint;\n\n /**\n * Indicates how to convert the attribute to/from a property. If this value\n * is a function, it is used to convert the attribute value a the property\n * value. If it's an object, it can have keys for `fromAttribute` and\n * `toAttribute`. If no `toAttribute` function is provided and\n * `reflect` is set to `true`, the property value is set directly to the\n * attribute. A default `converter` is used if none is provided; it supports\n * `Boolean`, `String`, `Number`, `Object`, and `Array`. Note,\n * when a property changes and the converter is used to update the attribute,\n * the property is never updated again as a result of the attribute changing,\n * and vice versa.\n */\n readonly converter?: AttributeConverter<Type, TypeHint>;\n\n /**\n * Indicates if the property should reflect to an attribute.\n * If `true`, when the property is set, the attribute is set using the\n * attribute name determined according to the rules for the `attribute`\n * property option and the value of the property converted using the rules\n * from the `converter` property option.\n */\n readonly reflect?: boolean;\n\n /**\n * A function that indicates if a property should be considered changed when\n * it is set. The function should take the `newValue` and `oldValue` and\n * return `true` if an update should be requested.\n */\n hasChanged?(value: Type, oldValue: Type): boolean;\n\n /**\n * Indicates whether an accessor will be created for this property. By\n * default, an accessor will be generated for this property that requests an\n * update when set. If this flag is `true`, no accessor will be created, and\n * it will be the user's responsibility to call\n * `this.requestUpdate(propertyName, oldValue)` to request an update when\n * the property changes.\n */\n readonly noAccessor?: boolean;\n}\n\n/**\n * Map of properties to PropertyDeclaration options. For each property an\n * accessor is made, and the property is processed according to the\n * PropertyDeclaration options.\n */\nexport interface PropertyDeclarations {\n readonly [key: string]: PropertyDeclaration;\n}\n\ntype PropertyDeclarationMap = Map<PropertyKey, PropertyDeclaration>;\n\ntype AttributeMap = Map<string, PropertyKey>;\n\n/**\n * A Map of property keys to values.\n *\n * Takes an optional type parameter T, which when specified as a non-any,\n * non-unknown type, will make the Map more strongly-typed, associating the map\n * keys with their corresponding value type on T.\n *\n * Use `PropertyValues<this>` when overriding ReactiveElement.update() and\n * other lifecycle methods in order to get stronger type-checking on keys\n * and values.\n */\n// This type is conditional so that if the parameter T is not specified, or\n// is `any`, the type will include `Map<PropertyKey, unknown>`. Since T is not\n// given in the uses of PropertyValues in this file, all uses here fallback to\n// meaning `Map<PropertyKey, unknown>`, but if a developer uses\n// `PropertyValues<this>` (or any other value for T) they will get a\n// strongly-typed Map type.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type PropertyValues<T = any> = T extends object\n ? PropertyValueMap<T>\n : Map<PropertyKey, unknown>;\n\n/**\n * Do not use, instead prefer {@linkcode PropertyValues}.\n */\n// This type must be exported such that JavaScript generated by the Google\n// Closure Compiler can import a type reference.\nexport interface PropertyValueMap<T> extends Map<PropertyKey, unknown> {\n get<K extends keyof T>(k: K): T[K];\n set<K extends keyof T>(key: K, value: T[K]): this;\n has<K extends keyof T>(k: K): boolean;\n delete<K extends keyof T>(k: K): boolean;\n}\n\nexport const defaultConverter: ComplexAttributeConverter = {\n toAttribute(value: unknown, type?: unknown): unknown {\n switch (type) {\n case Boolean:\n value = value ? emptyStringForBooleanAttribute : null;\n break;\n case Object:\n case Array:\n // if the value is `null` or `undefined` pass this through\n // to allow removing/no change behavior.\n value = value == null ? value : JSON.stringify(value);\n break;\n }\n return value;\n },\n\n fromAttribute(value: string | null, type?: unknown) {\n let fromValue: unknown = value;\n switch (type) {\n case Boolean:\n fromValue = value !== null;\n break;\n case Number:\n fromValue = value === null ? null : Number(value);\n break;\n case Object:\n case Array:\n // Do *not* generate exception when invalid JSON is set as elements\n // don't normally complain on being mis-configured.\n // TODO(sorvell): Do generate exception in *dev mode*.\n try {\n // Assert to adhere to Bazel's \"must type assert JSON parse\" rule.\n fromValue = JSON.parse(value!) as unknown;\n } catch (e) {\n fromValue = null;\n }\n break;\n }\n return fromValue;\n },\n};\n\nexport interface HasChanged {\n (value: unknown, old: unknown): boolean;\n}\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nexport const notEqual: HasChanged = (value: unknown, old: unknown): boolean => {\n // This ensures (old==NaN, value==NaN) always returns false\n return old !== value && (old === old || value === value);\n};\n\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n reflect: false,\n hasChanged: notEqual,\n};\n\n/**\n * The Closure JS Compiler doesn't currently have good support for static\n * property semantics where \"this\" is dynamic (e.g.\n * https://github.com/google/closure-compiler/issues/3177 and others) so we use\n * this hack to bypass any rewriting by the compiler.\n */\nconst finalized = 'finalized';\n\n/**\n * A string representing one of the supported dev mode warning categories.\n */\nexport type WarningKind = 'change-in-update' | 'migration';\n\nexport type Initializer = (element: ReactiveElement) => void;\n\n/**\n * Base element class which manages element properties and attributes. When\n * properties change, the `update` method is asynchronously called. This method\n * should be supplied by subclassers to render updates as desired.\n * @noInheritDoc\n */\nexport abstract class ReactiveElement\n extends HTMLElement\n implements ReactiveControllerHost\n{\n // Note: these are patched in only in DEV_MODE.\n /**\n * Read or set all the enabled warning categories for this class.\n *\n * This property is only used in development builds.\n *\n * @nocollapse\n * @category dev-mode\n */\n static enabledWarnings?: WarningKind[];\n\n /**\n * Enable the given warning category for this class.\n *\n * This method only exists in development builds, so it should be accessed\n * with a guard like:\n *\n * ```ts\n * // Enable for all ReactiveElement subclasses\n * ReactiveElement.enableWarning?.('migration');\n *\n * // Enable for only MyElement and subclasses\n * MyElement.enableWarning?.('migration');\n * ```\n *\n * @nocollapse\n * @category dev-mode\n */\n static enableWarning?: (warningKind: WarningKind) => void;\n\n /**\n * Disable the given warning category for this class.\n *\n * This method only exists in development builds, so it should be accessed\n * with a guard like:\n *\n * ```ts\n * // Disable for all ReactiveElement subclasses\n * ReactiveElement.disableWarning?.('migration');\n *\n * // Disable for only MyElement and subclasses\n * MyElement.disableWarning?.('migration');\n * ```\n *\n * @nocollapse\n * @category dev-mode\n */\n static disableWarning?: (warningKind: WarningKind) => void;\n\n /**\n * Adds an initializer function to the class that is called during instance\n * construction.\n *\n * This is useful for code that runs against a `ReactiveElement`\n * subclass, such as a decorator, that needs to do work for each\n * instance, such as setting up a `ReactiveController`.\n *\n * ```ts\n * const myDecorator = (target: typeof ReactiveElement, key: string) => {\n * target.addInitializer((instance: ReactiveElement) => {\n * // This is run during construction of the element\n * new MyController(instance);\n * });\n * }\n * ```\n *\n * Decorating a field will then cause each instance to run an initializer\n * that adds a controller:\n *\n * ```ts\n * class MyElement extends LitElement {\n * @myDecorator foo;\n * }\n * ```\n *\n * Initializers are stored per-constructor. Adding an initializer to a\n * subclass does not add it to a superclass. Since initializers are run in\n * constructors, initializers will run in order of the class hierarchy,\n * starting with superclasses and progressing to the instance's class.\n *\n * @nocollapse\n */\n static addInitializer(initializer: Initializer) {\n this._initializers ??= [];\n this._initializers.push(initializer);\n }\n\n static _initializers?: Initializer[];\n\n /*\n * Due to closure compiler ES6 compilation bugs, @nocollapse is required on\n * all static methods and properties with initializers. Reference:\n * - https://github.com/google/closure-compiler/issues/1776\n */\n\n /**\n * Maps attribute names to properties; for example `foobar` attribute to\n * `fooBar` property. Created lazily on user subclasses when finalizing the\n * class.\n * @nocollapse\n */\n private static __attributeToPropertyMap: AttributeMap;\n\n /**\n * Marks class as having finished creating properties.\n */\n protected static [finalized] = true;\n\n /**\n * Memoized list of all element properties, including any superclass properties.\n * Created lazily on user subclasses when finalizing the class.\n * @nocollapse\n * @category properties\n */\n static elementProperties: PropertyDeclarationMap = new Map();\n\n /**\n * User-supplied object that maps property names to `PropertyDeclaration`\n * objects containing options for configuring reactive properties. When\n * a reactive property is set the element will update and render.\n *\n * By default properties are public fields, and as such, they should be\n * considered as primarily settable by element users, either via attribute or\n * the property itself.\n *\n * Generally, properties that are changed by the element should be private or\n * protected fields and should use the `state: true` option. Properties\n * marked as `state` do not reflect from the corresponding attribute\n *\n * However, sometimes element code does need to set a public property. This\n * should typically only be done in response to user interaction, and an event\n * should be fired informing the user; for example, a checkbox sets its\n * `checked` property when clicked and fires a `changed` event. Mutating\n * public properties should typically not be done for non-primitive (object or\n * array) properties. In other cases when an element needs to manage state, a\n * private property set with the `state: true` option should be used. When\n * needed, state properties can be initialized via public properties to\n * facilitate complex interactions.\n * @nocollapse\n * @category properties\n */\n static properties: PropertyDeclarations;\n\n /**\n * Memoized list of all element styles.\n * Created lazily on user subclasses when finalizing the class.\n * @nocollapse\n * @category styles\n */\n static elementStyles: Array<CSSResultOrNative> = [];\n\n /**\n * Array of styles to apply to the element. The styles should be defined\n * using the {@linkcode css} tag function, via constructible stylesheets, or\n * imported from native CSS module scripts.\n *\n * Note on Content Security Policy:\n *\n * Element styles are implemented with `<style>` tags when the browser doesn't\n * support adopted StyleSheets. To use such `<style>` tags with the style-src\n * CSP directive, the style-src value must either include 'unsafe-inline' or\n * 'nonce-<base64-value>' with <base64-value> replaced be a server-generated\n * nonce.\n *\n * To provide a nonce to use on generated <style> elements, set\n * `window.litNonce` to a server-generated nonce in your page's HTML, before\n * loading application code:\n *\n * ```html\n * <script>\n * // Generated and unique per request:\n * window.litNonce = 'a1b2c3d4';\n * </script>\n * ```\n * @nocollapse\n * @category styles\n */\n static styles?: CSSResultGroup;\n\n /**\n * The set of properties defined by this class that caused an accessor to be\n * added during `createProperty`.\n * @nocollapse\n */\n private static __reactivePropertyKeys?: Set<PropertyKey>;\n\n /**\n * Returns a list of attributes corresponding to the registered properties.\n * @nocollapse\n * @category attributes\n */\n static get observedAttributes() {\n // note: piggy backing on this to ensure we're finalized.\n this.finalize();\n const attributes: string[] = [];\n // Use forEach so this works even if for/of loops are compiled to for loops\n // expecting arrays\n this.elementProperties.forEach((v, p) => {\n const attr = this.__attributeNameForProperty(p, v);\n if (attr !== undefined) {\n this.__attributeToPropertyMap.set(attr, p);\n attributes.push(attr);\n }\n });\n return attributes;\n }\n\n /**\n * Creates a property accessor on the element prototype if one does not exist\n * and stores a {@linkcode PropertyDeclaration} for the property with the\n * given options. The property setter calls the property's `hasChanged`\n * property option or uses a strict identity check to determine whether or not\n * to request an update.\n *\n * This method may be overridden to customize properties; however,\n * when doing so, it's important to call `super.createProperty` to ensure\n * the property is setup correctly. This method calls\n * `getPropertyDescriptor` internally to get a descriptor to install.\n * To customize what properties do when they are get or set, override\n * `getPropertyDescriptor`. To customize the options for a property,\n * implement `createProperty` like this:\n *\n * ```ts\n * static createProperty(name, options) {\n * options = Object.assign(options, {myOption: true});\n * super.createProperty(name, options);\n * }\n * ```\n *\n * @nocollapse\n * @category properties\n */\n static createProperty(\n name: PropertyKey,\n options: PropertyDeclaration = defaultPropertyDeclaration\n ) {\n // if this is a state property, force the attribute to false.\n if (options.state) {\n // Cast as any since this is readonly.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (options as any).attribute = false;\n }\n // Note, since this can be called by the `@property` decorator which\n // is called before `finalize`, we ensure finalization has been kicked off.\n this.finalize();\n this.elementProperties.set(name, options);\n // Do not generate an accessor if the prototype already has one, since\n // it would be lost otherwise and that would never be the user's intention;\n // Instead, we expect users to call `requestUpdate` themselves from\n // user-defined accessors. Note that if the super has an accessor we will\n // still overwrite it\n if (!options.noAccessor && !this.prototype.hasOwnProperty(name)) {\n const key = typeof name === 'symbol' ? Symbol() : `__${name}`;\n const descriptor = this.getPropertyDescriptor(name, key, options);\n if (descriptor !== undefined) {\n Object.defineProperty(this.prototype, name, descriptor);\n if (DEV_MODE) {\n // If this class doesn't have its own set, create one and initialize\n // with the values in the set from the nearest ancestor class, if any.\n if (!this.hasOwnProperty('__reactivePropertyKeys')) {\n this.__reactivePropertyKeys = new Set(\n this.__reactivePropertyKeys ?? []\n );\n }\n this.__reactivePropertyKeys!.add(name);\n }\n }\n }\n }\n\n /**\n * Returns a property descriptor to be defined on the given named property.\n * If no descriptor is returned, the property will not become an accessor.\n * For example,\n *\n * ```ts\n * class MyElement extends LitElement {\n * static getPropertyDescriptor(name, key, options) {\n * const defaultDescriptor =\n * super.getPropertyDescriptor(name, key, options);\n * const setter = defaultDescriptor.set;\n * return {\n * get: defaultDescriptor.get,\n * set(value) {\n * setter.call(this, value);\n * // custom action.\n * },\n * configurable: true,\n * enumerable: true\n * }\n * }\n * }\n * ```\n *\n * @nocollapse\n * @category properties\n */\n protected static getPropertyDescriptor(\n name: PropertyKey,\n key: string | symbol,\n options: PropertyDeclaration\n ): PropertyDescriptor | undefined {\n return {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get(): any {\n return (this as {[key: string]: unknown})[key as string];\n },\n set(this: ReactiveElement, value: unknown) {\n const oldValue = (this as {} as {[key: string]: unknown})[\n name as string\n ];\n (this as {} as {[key: string]: unknown})[key as string] = value;\n (this as unknown as ReactiveElement).requestUpdate(\n name,\n oldValue,\n options\n );\n },\n configurable: true,\n enumerable: true,\n };\n }\n\n /**\n * Returns the property options associated with the given property.\n * These options are defined with a `PropertyDeclaration` via the `properties`\n * object or the `@property` decorator and are registered in\n * `createProperty(...)`.\n *\n * Note, this method should be considered \"final\" and not overridden. To\n * customize the options for a given property, override\n * {@linkcode createProperty}.\n *\n * @nocollapse\n * @final\n * @category properties\n */\n static getPropertyOptions(name: PropertyKey) {\n return this.elementProperties.get(name) || defaultPropertyDeclaration;\n }\n\n /**\n * Creates property accessors for registered properties, sets up element\n * styling, and ensures any superclasses are also finalized. Returns true if\n * the element was finalized.\n * @nocollapse\n */\n protected static finalize() {\n if (this.hasOwnProperty(finalized)) {\n return false;\n }\n this[finalized] = true;\n // finalize any superclasses\n const superCtor = Object.getPrototypeOf(this) as typeof ReactiveElement;\n superCtor.finalize();\n this.elementProperties = new Map(superCtor.elementProperties);\n // initialize Map populated in observedAttributes\n this.__attributeToPropertyMap = new Map();\n // make any properties\n // Note, only process \"own\" properties since this element will inherit\n // any properties defined on the superClass, and finalization ensures\n // the entire prototype chain is finalized.\n if (this.hasOwnProperty(JSCompiler_renameProperty('properties', this))) {\n const props = this.properties;\n // support symbols in properties (IE11 does not support this)\n const propKeys = [\n ...Object.getOwnPropertyNames(props),\n ...Object.getOwnPropertySymbols(props),\n ];\n // This for/of is ok because propKeys is an array\n for (const p of propKeys) {\n // note, use of `any` is due to TypeScript lack of support for symbol in\n // index types\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.createProperty(p, (props as any)[p]);\n }\n }\n this.elementStyles = this.finalizeStyles(this.styles);\n // DEV mode warnings\n if (DEV_MODE) {\n const warnRemovedOrRenamed = (name: string, renamed = false) => {\n if (this.prototype.hasOwnProperty(name)) {\n issueWarning(\n renamed ? 'renamed-api' : 'removed-api',\n `\\`${name}\\` is implemented on class ${this.name}. It ` +\n `has been ${renamed ? 'renamed' : 'removed'} ` +\n `in this version of LitElement.`\n );\n }\n };\n warnRemovedOrRenamed('initialize');\n warnRemovedOrRenamed('requestUpdateInternal');\n warnRemovedOrRenamed('_getUpdateComplete', true);\n }\n return true;\n }\n\n /**\n * Options used when calling `attachShadow`. Set this property to customize\n * the options for the shadowRoot; for example, to create a closed\n * shadowRoot: `{mode: 'closed'}`.\n *\n * Note, these options are used in `createRenderRoot`. If this method\n * is customized, options should be respected if possible.\n * @nocollapse\n * @category rendering\n */\n static shadowRootOptions: ShadowRootInit = {mode: 'open'};\n\n /**\n * Takes the styles the user supplied via the `static styles` property and\n * returns the array of styles to apply to the element.\n * Override this method to integrate into a style management system.\n *\n * Styles are deduplicated preserving the _last_ instance in the list. This\n * is a performance optimization to avoid duplicated styles that can occur\n * especially when composing via subclassing. The last item is kept to try\n * to preserve the cascade order with the assumption that it's most important\n * that last added styles override previous styles.\n *\n * @nocollapse\n * @category styles\n */\n protected static finalizeStyles(\n styles?: CSSResultGroup\n ): Array<CSSResultOrNative> {\n const elementStyles = [];\n if (Array.isArray(styles)) {\n // Dedupe the flattened array in reverse order to preserve the last items.\n // Casting to Array<unknown> works around TS error that\n // appears to come from trying to flatten a type CSSResultArray.\n const set = new Set((styles as Array<unknown>).flat(Infinity).reverse());\n // Then preserve original order by adding the set items in reverse order.\n for (const s of set) {\n elementStyles.unshift(getCompatibleStyle(s as CSSResultOrNative));\n }\n } else if (styles !== undefined) {\n elementStyles.push(getCompatibleStyle(styles));\n }\n return elementStyles;\n }\n\n /**\n * Node or ShadowRoot into which element DOM should be rendered. Defaults\n * to an open shadowRoot.\n * @category rendering\n */\n readonly renderRoot!: HTMLElement | ShadowRoot;\n\n /**\n * Returns the property name for the given attribute `name`.\n * @nocollapse\n */\n private static __attributeNameForProperty(\n name: PropertyKey,\n options: PropertyDeclaration\n ) {\n const attribute = options.attribute;\n return attribute === false\n ? undefined\n : typeof attribute === 'string'\n ? attribute\n : typeof name === 'string'\n ? name.toLowerCase()\n : undefined;\n }\n\n private __instanceProperties?: PropertyValues = new Map();\n // Initialize to an unresolved Promise so we can make sure the element has\n // connected before first update.\n private __updatePromise!: Promise<boolean>;\n\n /**\n * True if there is a pending update as a result of calling `requestUpdate()`.\n * Should only be read.\n * @category updates\n */\n isUpdatePending = false;\n\n /**\n * Is set to `true` after the first update. The element code cannot assume\n * that `renderRoot` exists before the element `hasUpdated`.\n * @category updates\n */\n hasUpdated = false;\n\n /**\n * Map with keys for any properties that have changed since the last\n * update cycle with previous values.\n *\n * @internal\n */\n _$changedProperties!: PropertyValues;\n\n /**\n * Map with keys of properties that should be reflected when updated.\n */\n private __reflectingProperties?: Map<PropertyKey, PropertyDeclaration>;\n\n /**\n * Name of currently reflecting property\n */\n private __reflectingProperty: PropertyKey | null = null;\n\n /**\n * Set of controllers.\n */\n private __controllers?: ReactiveController[];\n\n constructor() {\n super();\n this._initialize();\n }\n\n /**\n * Internal only override point for customizing work done when elements\n * are constructed.\n *\n * @internal\n */\n _initialize() {\n this.__updatePromise = new Promise<boolean>(\n (res) => (this.enableUpdating = res)\n );\n this._$changedProperties = new Map();\n this.__saveInstanceProperties();\n // ensures first update will be caught by an early access of\n // `updateComplete`\n this.requestUpdate();\n (this.constructor as typeof ReactiveElement)._initializers?.forEach((i) =>\n i(this)\n );\n }\n\n /**\n * Registers a `ReactiveController` to participate in the element's reactive\n * update cycle. The element automatically calls into any registered\n * controllers during its lifecycle callbacks.\n *\n * If the element is connected when `addController()` is called, the\n * controller's `hostConnected()` callback will be immediately called.\n * @category controllers\n */\n addController(controller: ReactiveController) {\n (this.__controllers ??= []).push(controller);\n // If a controller is added after the element has been connected,\n // call hostConnected. Note, re-using existence of `renderRoot` here\n // (which is set in connectedCallback) to avoid the need to track a\n // first connected state.\n if (this.renderRoot !== undefined && this.isConnected) {\n controller.hostConnected?.();\n }\n }\n\n /**\n * Removes a `ReactiveController` from the element.\n * @category controllers\n */\n removeController(controller: ReactiveController) {\n // Note, if the indexOf is -1, the >>> will flip the sign which makes the\n // splice do nothing.\n this.__controllers?.splice(this.__controllers.indexOf(controller) >>> 0, 1);\n }\n\n /**\n * Fixes any properties set on the instance before upgrade time.\n * Otherwise these would shadow the accessor and break these properties.\n * The properties are stored in a Map which is played back after the\n * constructor runs. Note, on very old versions of Safari (<=9) or Chrome\n * (<=41), properties created for native platform properties like (`id` or\n * `name`) may not have default values set in the element constructor. On\n * these browsers native properties appear on instances and therefore their\n * default value will overwrite any element default (e.g. if the element sets\n * this.id = 'id' in the constructor, the 'id' will become '' since this is\n * the native platform default).\n */\n private __saveInstanceProperties() {\n // Use forEach so this works even if for/of loops are compiled to for loops\n // expecting arrays\n (this.constructor as typeof ReactiveElement).elementProperties.forEach(\n (_v, p) => {\n if (this.hasOwnProperty(p)) {\n this.__instanceProperties!.set(p, this[p as keyof this]);\n delete this[p as keyof this];\n }\n }\n );\n }\n\n /**\n * Returns the node into which the element should render and by default\n * creates and returns an open shadowRoot. Implement to customize where the\n * element's DOM is rendered. For example, to render into the element's\n * childNodes, return `this`.\n *\n * @return Returns a node into which to render.\n * @category rendering\n */\n protected createRenderRoot(): Element | ShadowRoot {\n const renderRoot =\n this.shadowRoot ??\n this.attachShadow(\n (this.constructor as typeof ReactiveElement).shadowRootOptions\n );\n adoptStyles(\n renderRoot,\n (this.constructor as typeof ReactiveElement).elementStyles\n );\n return renderRoot;\n }\n\n /**\n * On first connection, creates the element's renderRoot, sets up\n * element styling, and enables updating.\n * @category lifecycle\n */\n connectedCallback() {\n // create renderRoot before first update.\n if (this.renderRoot === undefined) {\n (\n this as {\n renderRoot: Element | DocumentFragment;\n }\n ).renderRoot = this.createRenderRoot();\n }\n this.enableUpdating(true);\n this.__controllers?.forEach((c) => c.hostConnected?.());\n }\n\n /**\n * Note, this method should be considered final and not overridden. It is\n * overridden on the element instance with a function that triggers the first\n * update.\n * @category updates\n */\n protected enableUpdating(_requestedUpdate: boolean) {}\n\n /**\n * Allows for `super.disconnectedCallback()` in extensions while\n * reserving the possibility of making non-breaking feature additions\n * when disconnecting at some point in the future.\n * @category lifecycle\n */\n disconnectedCallback() {\n this.__controllers?.forEach((c) => c.hostDisconnected?.());\n }\n\n /**\n * Synchronizes property values when attributes change.\n *\n * Specifically, when an attribute is set, the corresponding property is set.\n * You should rarely need to implement this callback. If this method is\n * overridden, `super.attributeChangedCallback(name, _old, value)` must be\n * called.\n *\n * See [using the lifecycle callbacks](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks)\n * on MDN for more information about the `attributeChangedCallback`.\n * @category attributes\n */\n attributeChangedCallback(\n name: string,\n _old: string | null,\n value: string | null\n ) {\n this._$attributeToProperty(name, value);\n }\n\n private __propertyToAttribute(\n name: PropertyKey,\n value: unknown,\n options: PropertyDeclaration = defaultPropertyDeclaration\n ) {\n const attr = (\n this.constructor as typeof ReactiveElement\n ).__attributeNameForProperty(name, options);\n if (attr !== undefined && options.reflect === true) {\n const toAttribute =\n (options.converter as ComplexAttributeConverter)?.toAttribute ??\n defaultConverter.toAttribute;\n const attrValue = toAttribute!(value, options.type);\n if (\n DEV_MODE &&\n (this.constructor as typeof ReactiveElement).enabledWarnings!.indexOf(\n 'migration'\n ) >= 0 &&\n attrValue === undefined\n ) {\n issueWarning(\n 'undefined-attribute-value',\n `The attribute value for the ${name as string} property is ` +\n `undefined on element ${this.localName}. The attribute will be ` +\n `removed, but in the previous version of \\`ReactiveElement\\`, ` +\n `the attribute would not have changed.`\n );\n }\n // Track if the property is being reflected to avoid\n // setting the property again via `attributeChangedCallback`. Note:\n // 1. this takes advantage of the fact that the callback is synchronous.\n // 2. will behave incorrectly if multiple attributes are in the reaction\n // stack at time of calling. However, since we process attributes\n // in `update` this should not be possible (or an extreme corner case\n // that we'd like to discover).\n // mark state reflecting\n this.__reflectingProperty = name;\n if (attrValue == null) {\n this.removeAttribute(attr);\n } else {\n this.setAttribute(attr, attrValue as string);\n }\n // mark state not reflecting\n this.__reflectingProperty = null;\n }\n }\n\n /** @internal */\n _$attributeToProperty(name: string, value: string | null) {\n const ctor = this.constructor as typeof ReactiveElement;\n // Note, hint this as an `AttributeMap` so closure clearly understands\n // the type; it has issues with tracking types through statics\n const propName = (ctor.__attributeToPropertyMap as AttributeMap).get(name);\n // Use tracking info to avoid reflecting a property value to an attribute\n // if it was just set because the attribute changed.\n if (propName !== undefined && this.__reflectingProperty !== propName) {\n const options = ctor.getPropertyOptions(propName);\n const converter = options.converter;\n const fromAttribute =\n (converter as ComplexAttributeConverter)?.fromAttribute ??\n (typeof converter === 'function'\n ? (converter as (value: string | null, type?: unknown) => unknown)\n : null) ??\n defaultConverter.fromAttribute;\n // mark state reflecting\n this.__reflectingProperty = propName;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this[propName as keyof this] = fromAttribute!(value, options.type) as any;\n // mark state not reflecting\n this.__reflectingProperty = null;\n }\n }\n\n /**\n * Requests an update which is processed asynchronously. This should be called\n * when an element should update based on some state not triggered by setting\n * a reactive property. In this case, pass no arguments. It should also be\n * called when manually implementing a property setter. In this case, pass the\n * property `name` and `oldValue` to ensure that any configured property\n * options are honored.\n *\n * @param name name of requesting property\n * @param oldValue old value of requesting property\n * @param options property options to use instead of the previously\n * configured options\n * @category updates\n */\n requestUpdate(\n name?: PropertyKey,\n oldValue?: unknown,\n options?: PropertyDeclaration\n ): void {\n let shouldRequestUpdate = true;\n // If we have a property key, perform property update steps.\n if (name !== undefined) {\n options =\n options ||\n (this.constructor as typeof ReactiveElement).getPropertyOptions(name);\n const hasChanged = options.hasChanged || notEqual;\n if (hasChanged(this[name as keyof this], oldValue)) {\n if (!this._$changedProperties.has(name)) {\n this._$changedProperties.set(name, oldValue);\n }\n // Add to reflecting properties set.\n // Note, it's important that every change has a chance to add the\n // property to `_reflectingProperties`. This ensures setting\n // attribute + property reflects correctly.\n if (options.reflect === true && this.__reflectingProperty !== name) {\n if (this.__reflectingProperties === undefined) {\n this.__reflectingProperties = new Map();\n }\n this.__reflectingProperties.set(name, options);\n }\n } else {\n // Abort the request if the property should not be considered changed.\n shouldRequestUpdate = false;\n }\n }\n if (!this.isUpdatePending && shouldRequestUpdate) {\n this.__updatePromise = this.__enqueueUpdate();\n }\n // Note, since this no longer returns a promise, in dev mode we return a\n // thenable which warns if it's called.\n return DEV_MODE\n ? (requestUpdateThenable(this.localName) as unknown as void)\n : undefined;\n }\n\n /**\n * Sets up the element to asynchronously update.\n */\n private async __enqueueUpdate() {\n this.isUpdatePending = true;\n try {\n // Ensure any previous update has resolved before updating.\n // This `await` also ensures that property changes are batched.\n await this.__updatePromise;\n } catch (e) {\n // Refire any previous errors async so they do not disrupt the update\n // cycle. Errors are refired so developers have a chance to observe\n // them, and this can be done by implementing\n // `window.onunhandledrejection`.\n Promise.reject(e);\n }\n const result = this.scheduleUpdate();\n // If `scheduleUpdate` returns a Promise, we await it. This is done to\n // enable coordinating updates with a scheduler. Note, the result is\n // checked to avoid delaying an additional microtask unless we need to.\n if (result != null) {\n await result;\n }\n return !this.isUpdatePending;\n }\n\n /**\n * Schedules an element update. You can override this method to change the\n * timing of updates by returning a Promise. The update will await the\n * returned Promise, and you should resolve the Promise to allow the update\n * to proceed. If this method is overridden, `super.scheduleUpdate()`\n * must be called.\n *\n * For instance, to schedule updates to occur just before the next frame:\n *\n * ```ts\n * override protected async scheduleUpdate(): Promise<unknown> {\n * await new Promise((resolve) => requestAnimationFrame(() => resolve()));\n * super.scheduleUpdate();\n * }\n * ```\n * @category updates\n */\n protected scheduleUpdate(): void | Promise<unknown> {\n return this.performUpdate();\n }\n\n /**\n * Performs an element update. Note, if an exception is thrown during the\n * update, `firstUpdated` and `updated` will not be called.\n *\n * Call `performUpdate()` to immediately process a pending update. This should\n * generally not be needed, but it can be done in rare cases when you need to\n * update synchronously.\n *\n * Note: To ensure `performUpdate()` synchronously completes a pending update,\n * it should not be overridden. In LitElement 2.x it was suggested to override\n * `performUpdate()` to also customizing update scheduling. Instead, you should now\n * override `scheduleUpdate()`. For backwards compatibility with LitElement 2.x,\n * scheduling updates via `performUpdate()` continues to work, but will make\n * also calling `performUpdate()` to synchronously process updates difficult.\n *\n * @category updates\n */\n protected performUpdate(): void | Promise<unknown> {\n // Abort any update if one is not pending when this is called.\n // This can happen if `performUpdate` is called early to \"flush\"\n // the update.\n if (!this.isUpdatePending) {\n return;\n }\n debugLogEvent?.({kind: 'update'});\n // create renderRoot before first update.\n if (!this.hasUpdated) {\n // Produce warning if any class properties are shadowed by class fields\n if (DEV_MODE) {\n const shadowedProperties: string[] = [];\n (\n this.constructor as typeof ReactiveElement\n ).__reactivePropertyKeys?.forEach((p) => {\n if (this.hasOwnProperty(p) && !this.__instanceProperties?.has(p)) {\n shadowedProperties.push(p as string);\n }\n });\n if (shadowedProperties.length) {\n throw new Error(\n `The following properties on element ${this.localName} will not ` +\n `trigger updates as expected because they are set using class ` +\n `fields: ${shadowedProperties.join(', ')}. ` +\n `Native class fields and some compiled output will overwrite ` +\n `accessors used for detecting changes. See ` +\n `https://lit.dev/msg/class-field-shadowing ` +\n `for more information.`\n );\n }\n }\n }\n // Mixin instance properties once, if they exist.\n if (this.__instanceProperties) {\n // Use forEach so this works even if for/of loops are compiled to for loops\n // expecting arrays\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.__instanceProperties!.forEach((v, p) => ((this as any)[p] = v));\n this.__instanceProperties = undefined;\n }\n let shouldUpdate = false;\n const changedProperties = this._$changedProperties;\n try {\n shouldUpdate = this.shouldUpdate(changedProperties);\n if (shouldUpdate) {\n this.willUpdate(changedProperties);\n this.__controllers?.forEach((c) => c.hostUpdate?.());\n this.update(changedProperties);\n } else {\n this.__markUpdated();\n }\n } catch (e) {\n // Prevent `firstUpdated` and `updated` from running when there's an\n // update exception.\n shouldUpdate = false;\n // Ensure element can accept additional updates after an exception.\n this.__markUpdated();\n throw e;\n }\n // The update is no longer considered pending and further updates are now allowed.\n if (shouldUpdate) {\n this._$didUpdate(changedProperties);\n }\n }\n\n /**\n * Invoked before `update()` to compute values needed during the update.\n *\n * Implement `willUpdate` to compute property values that depend on other\n * properties and are used in the rest of the update process.\n *\n * ```ts\n * willUpdate(changedProperties) {\n * // only need to check changed properties for an expensive computation.\n * if (changedProperties.has('firstName') || changedProperties.has('lastName')) {\n * this.sha = computeSHA(`${this.firstName} ${this.lastName}`);\n * }\n * }\n *\n * render() {\n * return html`SHA: ${this.sha}`;\n * }\n * ```\n *\n * @category updates\n */\n protected willUpdate(_changedProperties: PropertyValues): void {}\n\n // Note, this is an override point for polyfill-support.\n // @internal\n _$didUpdate(changedProperties: PropertyValues) {\n this.__controllers?.forEach((c) => c.hostUpdated?.());\n if (!this.hasUpdated) {\n this.hasUpdated = true;\n this.firstUpdated(changedProperties);\n }\n this.updated(changedProperties);\n if (\n DEV_MODE &&\n this.isUpdatePending &&\n (this.constructor as typeof ReactiveElement).enabledWarnings!.indexOf(\n 'change-in-update'\n ) >= 0\n ) {\n issueWarning(\n 'change-in-update',\n `Element ${this.localName} scheduled an update ` +\n `(generally because a property was set) ` +\n `after an update completed, causing a new update to be scheduled. ` +\n `This is inefficient and should be avoided unless the next update ` +\n `can only be scheduled as a side effect of the previous update.`\n );\n }\n }\n\n private __markUpdated() {\n this._$changedProperties = new Map();\n this.isUpdatePending = false;\n }\n\n /**\n * Returns a Promise that resolves when the element has completed updating.\n * The Promise value is a boolean that is `true` if the element completed the\n * update without triggering another update. The Promise result is `false` if\n * a property was set inside `updated()`. If the Promise is rejected, an\n * exception was thrown during the update.\n *\n * To await additional asynchronous work, override the `getUpdateComplete`\n * method. For example, it is sometimes useful to await a rendered element\n * before fulfilling this Promise. To do this, first await\n * `super.getUpdateComplete()`, then any subsequent state.\n *\n * @return A promise of a boolean that resolves to true if the update completed\n * without triggering another update.\n * @category updates\n */\n get updateComplete(): Promise<boolean> {\n return this.getUpdateComplete();\n }\n\n /**\n * Override point for the `updateComplete` promise.\n *\n * It is not safe to override the `updateComplete` getter directly due to a\n * limitation in TypeScript which means it is not possible to call a\n * superclass getter (e.g. `super.updateComplete.then(...)`) when the target\n * language is ES5 (https://github.com/microsoft/TypeScript/issues/338).\n * This method should be overridden instead. For example:\n *\n * ```ts\n * class MyElement extends LitElement {\n * override async getUpdateComplete() {\n * const result = await super.getUpdateComplete();\n * await this._myChild.updateComplete;\n * return result;\n * }\n * }\n * ```\n *\n * @return A promise of a boolean that resolves to true if the update completed\n * without triggering another update.\n * @category updates\n */\n protected getUpdateComplete(): Promise<boolean> {\n return this.__updatePromise;\n }\n\n /**\n * Controls whether or not `update()` should be called when the element requests\n * an update. By default, this method always returns `true`, but this can be\n * customized to control when to update.\n *\n * @param _changedProperties Map of changed properties with old values\n * @category updates\n */\n protected shouldUpdate(_changedProperties: PropertyValues): boolean {\n return true;\n }\n\n /**\n * Updates the element. This method reflects property values to attributes.\n * It can be overridden to render and keep updated element DOM.\n * Setting properties inside this method will *not* trigger\n * another update.\n *\n * @param _changedProperties Map of changed properties with old values\n * @category updates\n */\n protected update(_changedProperties: PropertyValues) {\n if (this.__reflectingProperties !== undefined) {\n // Use forEach so this works even if for/of loops are compiled to for\n // loops expecting arrays\n this.__reflectingProperties.forEach((v, k) =>\n this.__propertyToAttribute(k, this[k as keyof this], v)\n );\n this.__reflectingProperties = undefined;\n }\n this.__markUpdated();\n }\n\n /**\n * Invoked whenever the element is updated. Implement to perform\n * post-updating tasks via DOM APIs, for example, focusing an element.\n *\n * Setting properties inside this method will trigger the element to update\n * again after this update cycle completes.\n *\n * @param _changedProperties Map of changed properties with old values\n * @category updates\n */\n protected updated(_changedProperties: PropertyValues) {}\n\n /**\n * Invoked when the element is first updated. Implement to perform one time\n * work on the element after update.\n *\n * ```ts\n * firstUpdated() {\n * this.renderRoot.getElementById('my-text-area').focus();\n * }\n * ```\n *\n * Setting properties inside this method will trigger the element to update\n * again after this update cycle completes.\n *\n * @param _changedProperties Map of changed properties with old values\n * @category updates\n */\n protected firstUpdated(_changedProperties: PropertyValues) {}\n}\n\n// Apply polyfills if available\npolyfillSupport?.({ReactiveElement});\n\n// Dev mode warnings...\nif (DEV_MODE) {\n // Default warning set.\n ReactiveElement.enabledWarnings = ['change-in-update'];\n const ensureOwnWarnings = function (ctor: typeof ReactiveElement) {\n if (\n !ctor.hasOwnProperty(JSCompiler_renameProperty('enabledWarnings', ctor))\n ) {\n ctor.enabledWarnings = ctor.enabledWarnings!.slice();\n }\n };\n ReactiveElement.enableWarning = function (\n this: typeof ReactiveElement,\n warning: WarningKind\n ) {\n ensureOwnWarnings(this);\n if (this.enabledWarnings!.indexOf(warning) < 0) {\n this.enabledWarnings!.push(warning);\n }\n };\n ReactiveElement.disableWarning = function (\n this: typeof ReactiveElement,\n warning: WarningKind\n ) {\n ensureOwnWarnings(this);\n const i = this.enabledWarnings!.indexOf(warning);\n if (i >= 0) {\n this.enabledWarnings!.splice(i, 1);\n }\n };\n}\n\n// IMPORTANT: do not change the property name or the assignment expression.\n// This line will be used in regexes to search for ReactiveElement usage.\n(globalThis.reactiveElementVersions ??= []).push('1.3.4');\nif (DEV_MODE && globalThis.reactiveElementVersions.length > 1) {\n issueWarning!(\n 'multiple-versions',\n `Multiple versions of Lit loaded. Loading multiple versions ` +\n `is not recommended.`\n );\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * The main LitElement module, which defines the {@linkcode LitElement} base\n * class and related APIs.\n *\n * LitElement components can define a template and a set of observed\n * properties. Changing an observed property triggers a re-render of the\n * element.\n *\n * Import {@linkcode LitElement} and {@linkcode html} from this module to\n * create a component:\n *\n * ```js\n * import {LitElement, html} from 'lit-element';\n *\n * class MyElement extends LitElement {\n *\n * // Declare observed properties\n * static get properties() {\n * return {\n * adjective: {}\n * }\n * }\n *\n * constructor() {\n * this.adjective = 'awesome';\n * }\n *\n * // Define the element's template\n * render() {\n * return html`<p>your ${adjective} template here</p>`;\n * }\n * }\n *\n * customElements.define('my-element', MyElement);\n * ```\n *\n * `LitElement` extends {@linkcode ReactiveElement} and adds lit-html\n * templating. The `ReactiveElement` class is provided for users that want to\n * build their own custom element base classes that don't use lit-html.\n *\n * @packageDocumentation\n */\nimport {PropertyValues, ReactiveElement} from '@lit/reactive-element';\nimport {render, RenderOptions, noChange, RootPart} from 'lit-html';\nexport * from '@lit/reactive-element';\nexport * from 'lit-html';\n\nimport {LitUnstable} from 'lit-html';\nimport {ReactiveUnstable} from '@lit/reactive-element';\n\n/**\n * Contains types that are part of the unstable debug API.\n *\n * Everything in this API is not stable and may change or be removed in the future,\n * even on patch releases.\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace Unstable {\n /**\n * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,\n * we will emit 'lit-debug' events to window, with live details about the update and render\n * lifecycle. These can be useful for writing debug tooling and visualizations.\n *\n * Please be aware that running with window.emitLitDebugLogEvents has performance overhead,\n * making certain operations that are normally very cheap (like a no-op render) much slower,\n * because we must copy data and dispatch events.\n */\n // eslint-disable-next-line @typescript-eslint/no-namespace\n export namespace DebugLog {\n export type Entry =\n | LitUnstable.DebugLog.Entry\n | ReactiveUnstable.DebugLog.Entry;\n }\n}\n\n// For backwards compatibility export ReactiveElement as UpdatingElement. Note,\n// IE transpilation requires exporting like this.\nexport const UpdatingElement = ReactiveElement;\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nif (DEV_MODE) {\n // Ensure warnings are issued only 1x, even if multiple versions of Lit\n // are loaded.\n const issuedWarnings: Set<string | undefined> =\n (globalThis.litIssuedWarnings ??= new Set());\n\n // Issue a warning, if we haven't already.\n issueWarning = (code: string, warning: string) => {\n warning += ` See https://lit.dev/msg/${code} for more information.`;\n if (!issuedWarnings.has(warning)) {\n console.warn(warning);\n issuedWarnings.add(warning);\n }\n };\n}\n\n/**\n * Base element class that manages element properties and attributes, and\n * renders a lit-html template.\n *\n * To define a component, subclass `LitElement` and implement a\n * `render` method to provide the component's template. Define properties\n * using the {@linkcode LitElement.properties properties} property or the\n * {@linkcode property} decorator.\n */\nexport class LitElement extends ReactiveElement {\n /**\n * Ensure this class is marked as `finalized` as an optimization ensuring\n * it will not needlessly try to `finalize`.\n *\n * Note this property name is a string to prevent breaking Closure JS Compiler\n * optimizations. See @lit/reactive-element for more information.\n */\n protected static override ['finalized'] = true;\n\n // This property needs to remain unminified.\n static ['_$litElement$'] = true;\n\n /**\n * @category rendering\n */\n readonly renderOptions: RenderOptions = {host: this};\n\n private __childPart: RootPart | undefined = undefined;\n\n /**\n * @category rendering\n */\n protected override createRenderRoot() {\n const renderRoot = super.createRenderRoot();\n // When adoptedStyleSheets are shimmed, they are inserted into the\n // shadowRoot by createRenderRoot. Adjust the renderBefore node so that\n // any styles in Lit content render before adoptedStyleSheets. This is\n // important so that adoptedStyleSheets have precedence over styles in\n // the shadowRoot.\n this.renderOptions.renderBefore ??= renderRoot!.firstChild as ChildNode;\n return renderRoot;\n }\n\n /**\n * Updates the element. This method reflects property values to attributes\n * and calls `render` to render DOM via lit-html. Setting properties inside\n * this method will *not* trigger another update.\n * @param changedProperties Map of changed properties with old values\n * @category updates\n */\n protected override update(changedProperties: PropertyValues) {\n // Setting properties in `render` should not trigger an update. Since\n // updates are allowed after super.update, it's important to call `render`\n // before that.\n const value = this.render();\n if (!this.hasUpdated) {\n this.renderOptions.isConnected = this.isConnected;\n }\n super.update(changedProperties);\n this.__childPart = render(value, this.renderRoot, this.renderOptions);\n }\n\n /**\n * Invoked when the component is added to the document's DOM.\n *\n * In `connectedCallback()` you should setup tasks that should only occur when\n * the element is connected to the document. The most common of these is\n * adding event listeners to nodes external to the element, like a keydown\n * event handler added to the window.\n *\n * ```ts\n * connectedCallback() {\n * super.connectedCallback();\n * addEventListener('keydown', this._handleKeydown);\n * }\n * ```\n *\n * Typically, anything done in `connectedCallback()` should be undone when the\n * element is disconnected, in `disconnectedCallback()`.\n *\n * @category lifecycle\n */\n override connectedCallback() {\n super.connectedCallback();\n this.__childPart?.setConnected(true);\n }\n\n /**\n * Invoked when the component is removed from the document's DOM.\n *\n * This callback is the main signal to the element that it may no longer be\n * used. `disconnectedCallback()` should ensure that nothing is holding a\n * reference to the element (such as event listeners added to nodes external\n * to the element), so that it is free to be garbage collected.\n *\n * ```ts\n * disconnectedCallback() {\n * super.disconnectedCallback();\n * window.removeEventListener('keydown', this._handleKeydown);\n * }\n * ```\n *\n * An element may be re-connected after being disconnected.\n *\n * @category lifecycle\n */\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.__childPart?.setConnected(false);\n }\n\n /**\n * Invoked on each update to perform rendering tasks. This method may return\n * any value renderable by lit-html's `ChildPart` - typically a\n * `TemplateResult`. Setting properties inside this method will *not* trigger\n * the element to update.\n * @category rendering\n */\n protected render(): unknown {\n return noChange;\n }\n}\n\n// Install hydration if available\nglobalThis.litElementHydrateSupport?.({LitElement});\n\n// Apply polyfills if available\nconst polyfillSupport = DEV_MODE\n ? globalThis.litElementPolyfillSupportDevMode\n : globalThis.litElementPolyfillSupport;\npolyfillSupport?.({LitElement});\n\n// DEV mode warnings\nif (DEV_MODE) {\n /* eslint-disable @typescript-eslint/no-explicit-any */\n // Note, for compatibility with closure compilation, this access\n // needs to be as a string property index.\n (LitElement as any)['finalize'] = function (this: typeof LitElement) {\n const finalized = (ReactiveElement as any).finalize.call(this);\n if (!finalized) {\n return false;\n }\n const warnRemovedOrRenamed = (obj: any, name: string, renamed = false) => {\n if (obj.hasOwnProperty(name)) {\n const ctorName = (typeof obj === 'function' ? obj : obj.constructor)\n .name;\n issueWarning(\n renamed ? 'renamed-api' : 'removed-api',\n `\\`${name}\\` is implemented on class ${ctorName}. It ` +\n `has been ${renamed ? 'renamed' : 'removed'} ` +\n `in this version of LitElement.`\n );\n }\n };\n warnRemovedOrRenamed(this, 'render');\n warnRemovedOrRenamed(this, 'getStyles', true);\n warnRemovedOrRenamed((this as typeof LitElement).prototype, 'adoptStyles');\n return true;\n };\n /* eslint-enable @typescript-eslint/no-explicit-any */\n}\n\n/**\n * END USERS SHOULD NOT RELY ON THIS OBJECT.\n *\n * Private exports for use by other Lit packages, not intended for use by\n * external users.\n *\n * We currently do not make a mangled rollup build of the lit-ssr code. In order\n * to keep a number of (otherwise private) top-level exports mangled in the\n * client side code, we export a _$LE object containing those members (or\n * helper methods for accessing private fields of those members), and then\n * re-export them for use in lit-ssr. This keeps lit-ssr agnostic to whether the\n * client-side code is being used in `dev` mode or `prod` mode.\n *\n * This has a unique name, to disambiguate it from private exports in\n * lit-html, since this module re-exports all of lit-html.\n *\n * @private\n */\nexport const _$LE = {\n _$attributeToProperty: (\n el: LitElement,\n name: string,\n value: string | null\n ) => {\n // eslint-disable-next-line\n (el as any)._$attributeToProperty(name, value);\n },\n // eslint-disable-next-line\n _$changedProperties: (el: LitElement) => (el as any)._$changedProperties,\n};\n\n// IMPORTANT: do not change the property name or the assignment expression.\n// This line will be used in regexes to search for LitElement usage.\n(globalThis.litElementVersions ??= []).push('3.2.2');\nif (DEV_MODE && globalThis.litElementVersions.length > 1) {\n issueWarning!(\n 'multiple-versions',\n `Multiple versions of Lit loaded. Loading multiple versions ` +\n `is not recommended.`\n );\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\nimport {PropertyDeclaration, ReactiveElement} from '../reactive-element.js';\nimport {ClassElement} from './base.js';\n\nconst standardProperty = (\n options: PropertyDeclaration,\n element: ClassElement\n) => {\n // When decorating an accessor, pass it through and add property metadata.\n // Note, the `hasOwnProperty` check in `createProperty` ensures we don't\n // stomp over the user's accessor.\n if (\n element.kind === 'method' &&\n element.descriptor &&\n !('value' in element.descriptor)\n ) {\n return {\n ...element,\n finisher(clazz: typeof ReactiveElement) {\n clazz.createProperty(element.key, options);\n },\n };\n } else {\n // createProperty() takes care of defining the property, but we still\n // must return some kind of descriptor, so return a descriptor for an\n // unused prototype field. The finisher calls createProperty().\n return {\n kind: 'field',\n key: Symbol(),\n placement: 'own',\n descriptor: {},\n // store the original key so subsequent decorators have access to it.\n originalKey: element.key,\n // When @babel/plugin-proposal-decorators implements initializers,\n // do this instead of the initializer below. See:\n // https://github.com/babel/babel/issues/9260 extras: [\n // {\n // kind: 'initializer',\n // placement: 'own',\n // initializer: descriptor.initializer,\n // }\n // ],\n initializer(this: {[key: string]: unknown}) {\n if (typeof element.initializer === 'function') {\n this[element.key as string] = element.initializer.call(this);\n }\n },\n finisher(clazz: typeof ReactiveElement) {\n clazz.createProperty(element.key, options);\n },\n };\n }\n};\n\nconst legacyProperty = (\n options: PropertyDeclaration,\n proto: Object,\n name: PropertyKey\n) => {\n (proto.constructor as typeof ReactiveElement).createProperty(name, options);\n};\n\n/**\n * A property decorator which creates a reactive property that reflects a\n * corresponding attribute value. When a decorated property is set\n * the element will update and render. A {@linkcode PropertyDeclaration} may\n * optionally be supplied to configure property features.\n *\n * This decorator should only be used for public fields. As public fields,\n * properties should be considered as primarily settable by element users,\n * either via attribute or the property itself.\n *\n * Generally, properties that are changed by the element should be private or\n * protected fields and should use the {@linkcode state} decorator.\n *\n * However, sometimes element code does need to set a public property. This\n * should typically only be done in response to user interaction, and an event\n * should be fired informing the user; for example, a checkbox sets its\n * `checked` property when clicked and fires a `changed` event. Mutating public\n * properties should typically not be done for non-primitive (object or array)\n * properties. In other cases when an element needs to manage state, a private\n * property decorated via the {@linkcode state} decorator should be used. When\n * needed, state properties can be initialized via public properties to\n * facilitate complex interactions.\n *\n * ```ts\n * class MyElement {\n * @property({ type: Boolean })\n * clicked = false;\n * }\n * ```\n * @category Decorator\n * @ExportDecoratedItems\n */\nexport function property(options?: PropertyDeclaration) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return (protoOrDescriptor: Object | ClassElement, name?: PropertyKey): any =>\n name !== undefined\n ? legacyProperty(options!, protoOrDescriptor as Object, name)\n : standardProperty(options!, protoOrDescriptor as ClassElement);\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {property} from './property.js';\n\nexport interface InternalPropertyDeclaration<Type = unknown> {\n /**\n * A function that indicates if a property should be considered changed when\n * it is set. The function should take the `newValue` and `oldValue` and\n * return `true` if an update should be requested.\n */\n hasChanged?(value: Type, oldValue: Type): boolean;\n}\n\n/**\n * Declares a private or protected reactive property that still triggers\n * updates to the element when it changes. It does not reflect from the\n * corresponding attribute.\n *\n * Properties declared this way must not be used from HTML or HTML templating\n * systems, they're solely for properties internal to the element. These\n * properties may be renamed by optimization tools like closure compiler.\n * @category Decorator\n */\nexport function state(options?: InternalPropertyDeclaration) {\n return property({\n ...options,\n state: true,\n });\n}\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {ReactiveElement} from '../reactive-element.js';\n\nexport type Constructor<T> = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n new (...args: any[]): T;\n};\n\n// From the TC39 Decorators proposal\nexport interface ClassDescriptor {\n kind: 'class';\n elements: ClassElement[];\n finisher?: <T>(clazz: Constructor<T>) => void | Constructor<T>;\n}\n\n// From the TC39 Decorators proposal\nexport interface ClassElement {\n kind: 'field' | 'method';\n key: PropertyKey;\n placement: 'static' | 'prototype' | 'own';\n initializer?: Function;\n extras?: ClassElement[];\n finisher?: <T>(clazz: Constructor<T>) => void | Constructor<T>;\n descriptor?: PropertyDescriptor;\n}\n\nexport const legacyPrototypeMethod = (\n descriptor: PropertyDescriptor,\n proto: Object,\n name: PropertyKey\n) => {\n Object.defineProperty(proto, name, descriptor);\n};\n\nexport const standardPrototypeMethod = (\n descriptor: PropertyDescriptor,\n element: ClassElement\n) => ({\n kind: 'method',\n placement: 'prototype',\n key: element.key,\n descriptor,\n});\n\n/**\n * Helper for decorating a property that is compatible with both TypeScript\n * and Babel decorators. The optional `finisher` can be used to perform work on\n * the class. The optional `descriptor` should return a PropertyDescriptor\n * to install for the given property.\n *\n * @param finisher {function} Optional finisher method; receives the element\n * constructor and property key as arguments and has no return value.\n * @param descriptor {function} Optional descriptor method; receives the\n * property key as an argument and returns a property descriptor to define for\n * the given property.\n * @returns {ClassElement|void}\n */\nexport const decorateProperty =\n ({\n finisher,\n descriptor,\n }: {\n finisher?:\n | ((ctor: typeof ReactiveElement, property: PropertyKey) => void)\n | null;\n descriptor?: (property: PropertyKey) => PropertyDescriptor;\n }) =>\n (\n protoOrDescriptor: ReactiveElement | ClassElement,\n name?: PropertyKey\n // Note TypeScript requires the return type to be `void|any`\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ): void | any => {\n // TypeScript / Babel legacy mode\n if (name !== undefined) {\n const ctor = (protoOrDescriptor as ReactiveElement)\n .constructor as typeof ReactiveElement;\n if (descriptor !== undefined) {\n Object.defineProperty(protoOrDescriptor, name, descriptor(name));\n }\n finisher?.(ctor, name!);\n // Babel standard mode\n } else {\n // Note, the @property decorator saves `key` as `originalKey`\n // so try to use it here.\n const key =\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (protoOrDescriptor as any).originalKey ??\n (protoOrDescriptor as ClassElement).key;\n const info: ClassElement =\n descriptor != undefined\n ? {\n kind: 'method',\n placement: 'prototype',\n key,\n descriptor: descriptor((protoOrDescriptor as ClassElement).key),\n }\n : {...(protoOrDescriptor as ClassElement), key};\n if (finisher != undefined) {\n info.finisher = function <ReactiveElement>(\n ctor: Constructor<ReactiveElement>\n ) {\n finisher(ctor as unknown as typeof ReactiveElement, key);\n };\n }\n return info;\n }\n };\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {ReactiveElement} from '../reactive-element.js';\nimport {decorateProperty} from './base.js';\n\n/**\n * A property decorator that converts a class property into a getter that\n * executes a querySelector on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n * @param cache An optional boolean which when true performs the DOM query only\n * once and caches the result.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * ```ts\n * class MyElement {\n * @query('#first')\n * first: HTMLDivElement;\n *\n * render() {\n * return html`\n * <div id=\"first\"></div>\n * <div id=\"second\"></div>\n * `;\n * }\n * }\n * ```\n * @category Decorator\n */\nexport function query(selector: string, cache?: boolean) {\n return decorateProperty({\n descriptor: (name: PropertyKey) => {\n const descriptor = {\n get(this: ReactiveElement) {\n return this.renderRoot?.querySelector(selector) ?? null;\n },\n enumerable: true,\n configurable: true,\n };\n if (cache) {\n const key = typeof name === 'symbol' ? Symbol() : `__${name}`;\n descriptor.get = function (this: ReactiveElement) {\n if (\n (this as unknown as {[key: string]: Element | null})[\n key as string\n ] === undefined\n ) {\n (this as unknown as {[key: string]: Element | null})[\n key as string\n ] = this.renderRoot?.querySelector(selector) ?? null;\n }\n return (this as unknown as {[key: string]: Element | null})[\n key as string\n ];\n };\n }\n return descriptor;\n },\n });\n}\n", "/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/*\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {decorateProperty} from './base.js';\n\nimport type {ReactiveElement} from '../reactive-element.js';\nimport type {QueryAssignedNodesOptions} from './query-assigned-nodes.js';\n\n/**\n * A tiny module scoped polyfill for HTMLSlotElement.assignedElements.\n */\nconst slotAssignedElements =\n window.HTMLSlotElement?.prototype.assignedElements != null\n ? (slot: HTMLSlotElement, opts?: AssignedNodesOptions) =>\n slot.assignedElements(opts)\n : (slot: HTMLSlotElement, opts?: AssignedNodesOptions) =>\n slot\n .assignedNodes(opts)\n .filter(\n (node): node is Element => node.nodeType === Node.ELEMENT_NODE\n );\n\n/**\n * Options for the {@linkcode queryAssignedElements} decorator. Extends the\n * options that can be passed into\n * [HTMLSlotElement.assignedElements](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n */\nexport interface QueryAssignedElementsOptions\n extends QueryAssignedNodesOptions {\n /**\n * CSS selector used to filter the elements returned. For example, a selector\n * of `\".item\"` will only include elements with the `item` class.\n */\n selector?: string;\n}\n\n/**\n * A property decorator that converts a class property into a getter that\n * returns the `assignedElements` of the given `slot`. Provides a declarative\n * way to use\n * [`HTMLSlotElement.assignedElements`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedElements).\n *\n * Can be passed an optional {@linkcode QueryAssignedElementsOptions} object.\n *\n * Example usage:\n * ```ts\n * class MyElement {\n * @queryAssignedElements({ slot: 'list' })\n * listItems!: Array<HTMLElement>;\n * @queryAssignedElements()\n * unnamedSlotEls!: Array<HTMLElement>;\n *\n * render() {\n * return html`\n * <slot name=\"list\"></slot>\n * <slot></slot>\n * `;\n * }\n * }\n * ```\n *\n * Note, the type of this property should be annotated as `Array<HTMLElement>`.\n *\n * @category Decorator\n */\nexport function queryAssignedElements(options?: QueryAssignedElementsOptions) {\n const {slot, selector} = options ?? {};\n return decorateProperty({\n descriptor: (_name: PropertyKey) => ({\n get(this: ReactiveElement) {\n const slotSelector = `slot${slot ? `[name=${slot}]` : ':not([name])'}`;\n const slotEl =\n this.renderRoot?.querySelector<HTMLSlotElement>(slotSelector);\n const elements =\n slotEl != null ? slotAssignedElements(slotEl, options) : [];\n if (selector) {\n return elements.filter((node) => node.matches(selector));\n }\n return elements;\n },\n enumerable: true,\n configurable: true,\n }),\n });\n}\n", "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/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiL1VzZXJzL3Njb3R0cm91c2UvV29ya3NwYWNlL3Njdy1kZXNpZ24tc3lzdGVtLXdlYi9zY3ctZGVzaWduLXN5c3RlbS1tb25vL3NjdS13ZWItY29tcG9uZW50cy9zcmMvc2N3LWNvbXBvbmVudC9zY3NzIiwic291cmNlcyI6WyJzY3ctY29tcG9uZW50LnNjc3MiLCIuLi8uLi8uLi9kaXN0L3Rva2Vucy9zb3VyY2UvY3NzQXBpLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7QUNrbnRCRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFFQTs7O0FEeG50QkY7RUFDRSJ9 */`;\n", "import {LitElement, html} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport {Components} from '../utils/enums/Components';\nimport styles from './scss/scw-component.scss';\nimport ResponsiveElement from '../utils/responsive/ResponsiveElement';\nimport ScwComponentInterface from './scw-component-interface';\nimport LightDomMutationObserver from '../utils/lightDomMutationObserver';\n\n/**\n * ScwComponent\n * @class\n * @tag scw-component\n *\n */\nexport default class ScwComponent\n extends LitElement\n implements ScwComponentInterface {\n static styles = styles;\n\n /**\n * (ScwComponent) Main text within component\n * @type {string}\n */\n @property({type: String, reflect: true, attribute: 'aria-label'})\n ariaLabel: string = '';\n\n /**\n * (ScwComponent) Makes the link unclickable and faded out.\n * @type {string}\n */\n @property({type: String, attribute: 'aria-disabled'})\n ariaDisabled: string = 'false';\n\n // ====== RESPONSIVE =========================================================\n /**\n * (ScwComponent) whether or not to look to attributes for responsive sizing\n * viewport | element | none\n * @type {string}\n */\n @property({type: Boolean})\n responsive = false;\n\n /** responsive element */\n responsiveElement : ResponsiveElement | undefined;\n\n /** connectedCallback */\n connectedCallback(): void {\n super.connectedCallback();\n if (this.responsive === true) {\n this.responsiveElement = new ResponsiveElement(this);\n }\n }\n\n /** disconnectedCallback */\n disconnectedCallback(): void {\n super.disconnectedCallback();\n if ( this.responsiveElement ) {\n this.responsiveElement.disconnect();\n }\n }\n // ====== END RESPONSIVE =====================================================\n\n // ====== DYNAMIC ============================================================\n /**\n * (ScwComponent) Light Dom Mutation Observer\n */\n _lightDomMutationObserver? : LightDomMutationObserver;\n\n /**\n * (ScwComponent) Determines whether to watch for changes\n * in children. (not all components use light DOM for inputs)\n * @type {boolean}\n */\n @property({type: Boolean}) dynamic: boolean = false;\n\n /**\n * get defaults after initialization...light dom trumps attributes\n * @param {Map<string | number | symbol, unknown>} changedProps\n */\n firstUpdated(changedProps : Map<string | number | symbol, unknown>) {\n super.firstUpdated(changedProps);\n this.parseAndValidateLightDom();\n if (this.dynamic) {\n this._lightDomMutationObserver = new LightDomMutationObserver(\n this, () => {\n this.parseAndValidateLightDom();\n },\n );\n }\n }\n\n /**\n * parseLightDom is a hook for classes extending this one to add\n * other parsers and validations\n */\n parseAndValidateLightDom() {}\n // ====== END DYNAMIC ========================================================\n\n /**\n * (ScwComponent) contains the root element name for each component\n * (enum Components)\n * @type {string}\n */\n // lint-i\n @property({type: String, reflect: true}) // Components\n element: Components = Components.component;\n\n /**\n * handles warnings...things wrong with formatting, ADA, etc...\n * @param {string} message describing warning\n */\n warn( message: string ) {\n if (!this._lastWarning) {\n this._lastWarning = message;\n this.setAttribute('warning', message);\n this.setAttribute('title', `[ERROR]: ${message}`);\n }\n // con sole.error(`warning (${this.element}): ${message}`);\n }\n\n /**\n * retain the last warning sent...good for testing.\n */\n @state() _lastWarning : string | undefined;\n\n /**\n * render\n * @return {object} component DOM\n */\n render(): object {\n return html`\n <slot></slot>\n `;\n }\n}\n"],
5
+ "mappings": "8KASa,IAAAA,EACXC,OAAOC,aACND,OAAOE,WADDD,QAC2BD,OAAOE,SAASC,eAClD,uBAAwBC,SAASC,WACjC,YAAaC,cAAcD,UAkBvBE,EAAoBC,OAAAA,EAEpBC,EAAc,IAAIC,QASXC,EATWD,KASXC,CAOXC,YACEC,EACAC,EACAC,EAAAA,CAEA,GAVFC,KAAe,aAAA,GAUTD,IAAcR,EAChB,MAAUU,MACR,mEAAA,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S,CAAC,KAAM,OAAO,CAAC,GAzBNT,EA0BjB,0BAiCyBQ,EAAA,CAA1BC,EAAS,CAAC,KAAM,OAAO,CAAC,GA3DNT,EA2DQ,uBAgCzBQ,EAAA,CADDC,EAAS,CAAC,KAAM,OAAQ,QAAS,EAAI,CAAC,GA1FpBT,EA2FjB,uBAkBOQ,EAAA,CAARE,EAAM,GA7GYV,EA6GV",
6
+ "names": ["supportsAdoptingStyleSheets", "window", "ShadowRoot", "ShadyCSS", "nativeShadow", "Document", "prototype", "CSSStyleSheet", "constructionToken", "Symbol", "cssTagCache", "WeakMap", "CSSResult", "constructor", "cssText", "strings", "safeToken", "this", "Error", "_strings", "styleSheet", "_styleSheet", "cacheable", "length", "get", "replaceSync", "set", "toString", "unsafeCSS", "value", "String", "css", "values", "reduce", "acc", "v", "idx", "adoptStyles", "renderRoot", "styles", "adoptedStyleSheets", "map", "s", "forEach", "style", "document", "createElement", "nonce", "setAttribute", "textContent", "appendChild", "getCompatibleStyle", "sheet", "rule", "cssRules", "trustedTypes", "window", "emptyStringForBooleanAttribute", "emptyScript", "polyfillSupport", "reactiveElementPolyfillSupport", "defaultConverter", "toAttribute", "value", "type", "Boolean", "Object", "Array", "JSON", "stringify", "fromAttribute", "fromValue", "Number", "parse", "notEqual", "old", "defaultPropertyDeclaration", "attribute", "String", "converter", "reflect", "hasChanged", "ReactiveElement", "HTMLElement", "constructor", "super", "this", "__instanceProperties", "Map", "isUpdatePending", "hasUpdated", "__reflectingProperty", "_initialize", "static", "initializer", "_a", "_initializers", "push", "observedAttributes", "finalize", "attributes", "elementProperties", "forEach", "v", "p", "attr", "__attributeNameForProperty", "__attributeToPropertyMap", "set", "name", "options", "state", "noAccessor", "prototype", "hasOwnProperty", "key", "Symbol", "descriptor", "getPropertyDescriptor", "defineProperty", "get", "oldValue", "requestUpdate", "configurable", "enumerable", "superCtor", "getPrototypeOf", "props", "properties", "propKeys", "getOwnPropertyNames", "getOwnPropertySymbols", "createProperty", "elementStyles", "finalizeStyles", "styles", "isArray", "Set", "flat", "Infinity", "reverse", "s", "unshift", "getCompatibleStyle", "toLowerCase", "__updatePromise", "Promise", "res", "enableUpdating", "_$changedProperties", "__saveInstanceProperties", "i", "addController", "controller", "__controllers", "renderRoot", "isConnected", "_b", "hostConnected", "call", "removeController", "splice", "indexOf", "_v", "createRenderRoot", "shadowRoot", "attachShadow", "shadowRootOptions", "adoptStyles", "connectedCallback", "c", "_requestedUpdate", "disconnectedCallback", "hostDisconnected", "attributeChangedCallback", "_old", "_$attributeToProperty", "__propertyToAttribute", "attrValue", "removeAttribute", "setAttribute", "ctor", "propName", "getPropertyOptions", "e", "shouldRequestUpdate", "has", "__reflectingProperties", "__enqueueUpdate", "async", "reject", "result", "scheduleUpdate", "performUpdate", "shouldUpdate", "changedProperties", "willUpdate", "hostUpdate", "update", "__markUpdated", "_$didUpdate", "_changedProperties", "hostUpdated", "firstUpdated", "updated", "updateComplete", "getUpdateComplete", "k", "mode", "_c", "globalThis", "reactiveElementVersions", "LitElement", "ReactiveElement", "constructor", "this", "renderOptions", "host", "__childPart", "createRenderRoot", "renderRoot", "super", "_a", "_b", "renderBefore", "firstChild", "update", "changedProperties", "value", "render", "hasUpdated", "isConnected", "connectedCallback", "setConnected", "disconnectedCallback", "noChange", "globalThis", "litElementHydrateSupport", "call", "polyfillSupport", "litElementPolyfillSupport", "_c", "globalThis", "litElementVersions", "push", "standardProperty", "options", "element", "kind", "descriptor", "finisher", "clazz", "createProperty", "key", "Symbol", "placement", "originalKey", "initializer", "this", "call", "property", "protoOrDescriptor", "name", "proto", "constructor", "state", "options", "property", "decorateProperty", "finisher", "descriptor", "protoOrDescriptor", "name", "key", "_a", "originalKey", "info", "undefined", "kind", "placement", "ctor", "constructor", "Object", "defineProperty", "query", "selector", "cache", "decorateProperty", "descriptor", "name", "get", "_b", "_a", "this", "renderRoot", "querySelector", "enumerable", "configurable", "key", "Symbol", "o", "t", "slotAssignedElements", "_a", "window", "HTMLSlotElement", "prototype", "assignedElements", "slot", "opts", "assignedNodes", "filter", "node", "nodeType", "Node", "ELEMENT_NODE", "scw_component_default", "r", "ScwComponent", "s", "ResponsiveElement", "changedProps", "LightDomMutationObserver", "message", "$", "scw_component_default", "__decorateClass", "e", "t"]
7
+ }
@@ -1,2 +1,2 @@
1
1
  function o(a,e,l="number must be greater than {min}"){let t=!1;return console.log("value",a),a<e&&(t={type:"minMax",valid:!1,feedback:l.replace(/{min}/g,`${e}`)}),t}function d(a,e,l="number must be less than {max}"){let t=!1;return console.log("value",a),a>e&&(t={type:"minMax",valid:!1,feedback:l.replace(/{max}/g,`${e}`)}),t}function g(a,e,l="field must be longer than {min}"){let t=!1;return a&&String(a).length<e&&(t={type:"minMaxLength",valid:!1,feedback:l.replace(/{min}/g,`${e}`)}),t}function c(a,e,l="field must be shorter than {max}"){let t=!1;return a&&String(a).length>e&&(t={type:"minMaxLength",valid:!1,feedback:l.replace(/{max}/g,`${e}`)}),t}function m(a,e,l="field must not include '{exclude}'"){let t=!1,n=`${e}`;return RegExp(n,"gm").test(a)&&(t={type:"exclude",valid:!1,feedback:l.replace(/{exclude}/g,`${e}`)}),t}function p(a,e,l="field must match '{pattern}'"){let t=!1;return RegExp(e,"g").test(a)||(t={type:"pattern",valid:!1,feedback:l.replace(/{pattern}/g,e)}),t}export{o as a,d as b,g as c,c as d,m as e,p as f};
2
- //# sourceMappingURL=chunk.XEMNLRCA.js.map
2
+ //# sourceMappingURL=chunk.4IW4ZUWS.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/scw-validate/rules/utils.ts"],
4
4
  "sourcesContent": ["import { ValidationResult, ValidationTypes } from \"../validationTypes\";\n\n/**\n * validates for valid minimum number\n * @param {number} value \n * @param {number} min\n * @param {string} feedback\n * @returns {ValidationResult | false}\n */\nexport function validateMin (\n value : number, \n min : number,\n feedback = \"number must be greater than {min}\"\n) : ValidationResult | false {\n let result : ValidationResult | false = false;\n\n console.log( 'value', value );\n if (value < min ) {\n result = {\n type: ValidationTypes.minMax,\n valid: false,\n feedback: feedback.replace(/{min}/g, `${min}` )\n };\n }\n return result;\n}\n\n/**\n * validates for valid maximum number\n * @param {number} value \n * @param {number} max\n * @param {string} feedback\n * @returns {ValidationResult | false}\n */\nexport function validateMax (\n value : number, \n max : number, \n feedback = \"number must be less than {max}\"\n) : ValidationResult | false {\n let result : ValidationResult | false = false;\n console.log( 'value', value );\n if (value > max ) {\n result = {\n type: ValidationTypes.minMax,\n valid: false,\n feedback: feedback.replace(/{max}/g, `${max}` )\n };\n }\n return result;\n}\n\n/**\n * validates for valid minimum string length\n * @param {string} value \n * @param {number} min\n * @param {string} feedback\n * @returns {ValidationResult | false}\n */\nexport function validateMinLength (\n value : string, \n min : number, \n feedback = \"field must be longer than {min}\"\n) : ValidationResult | false {\n let result : ValidationResult | false = false;\n if (value && String( value ).length < min ) {\n result = {\n type: ValidationTypes.minMaxLength,\n valid: false,\n feedback: feedback.replace(/{min}/g, `${min}` )\n };\n }\n return result;\n}\n\n/**\n * validates for valid maximum string length\n * @param {string} value \n * @param {number} max\n * @param {string} feedback\n * @returns {ValidationResult | false}\n */\nexport function validateMaxLength (\n value : string, \n max : number, \n feedback = \"field must be shorter than {max}\"\n) : ValidationResult | false {\n let result : ValidationResult | false = false;\n if (value && String( value ).length > max ) {\n result = {\n type: ValidationTypes.minMaxLength,\n valid: false,\n feedback: feedback.replace(/{max}/g, `${max}` )\n };\n }\n return result;\n}\n\n/**\n * validates for excluded characters\n * @param {string} value \n * @param {string} exclude\n * @param {string} feedback\n * @returns {ValidationResult | false}\n */\nexport function validateExclude (\n value : string, \n exclude : string, \n feedback = \"field must not include '{exclude}'\"\n) : ValidationResult | false {\n let result : ValidationResult | false = false;\n const regexStr = `${exclude}`;\n const regex = RegExp(regexStr, \"gm\");\n const test = regex.test(value);\n if (test) {\n result = {\n type: ValidationTypes.exclude,\n valid: false,\n feedback: feedback.replace(/{exclude}/g, `${exclude}` )\n };\n }\n return result;\n}\n\n/**\n * validates for regex pattern\n * @param {string} value \n * @param {string} pattern\n * @param {string} feedback\n * @returns {ValidationResult | false}\n */\nexport function validatePattern (\n value : string, \n pattern : string, \n feedback = \"field must match '{pattern}'\"\n) : ValidationResult | false {\n let result : ValidationResult | false = false;\n const regex = RegExp(pattern, \"g\");\n const test = regex.test(value);\n if (!test) {\n result = {\n type: ValidationTypes.pattern,\n valid: false,\n feedback: feedback.replace(/{pattern}/g, pattern )\n };\n }\n return result;\n}"],
5
- "mappings": "AASO,WACL,EACA,EACA,EAAW,oCACgB,CAC3B,GAAI,GAAoC,GAExC,eAAQ,IAAK,QAAS,CAAM,EACxB,EAAQ,GACV,GAAS,CACP,KAAM,SACN,MAAO,GACP,SAAU,EAAS,QAAQ,SAAU,GAAG,GAAM,CAChD,GAEK,CACT,CASO,WACL,EACA,EACA,EAAW,iCACgB,CAC3B,GAAI,GAAoC,GACxC,eAAQ,IAAK,QAAS,CAAM,EACxB,EAAQ,GACV,GAAS,CACP,KAAM,SACN,MAAO,GACP,SAAU,EAAS,QAAQ,SAAU,GAAG,GAAM,CAChD,GAEK,CACT,CASO,WACL,EACA,EACA,EAAW,kCACgB,CAC3B,GAAI,GAAoC,GACxC,MAAI,IAAS,OAAQ,CAAM,EAAE,OAAS,GACpC,GAAS,CACP,KAAM,eACN,MAAO,GACP,SAAU,EAAS,QAAQ,SAAU,GAAG,GAAM,CAChD,GAEK,CACT,CASO,WACL,EACA,EACA,EAAW,mCACgB,CAC3B,GAAI,GAAoC,GACxC,MAAI,IAAS,OAAQ,CAAM,EAAE,OAAS,GACpC,GAAS,CACP,KAAM,eACN,MAAO,GACP,SAAU,EAAS,QAAQ,SAAU,GAAG,GAAM,CAChD,GAEK,CACT,CASO,WACL,EACA,EACA,EAAW,qCACgB,CAC3B,GAAI,GAAoC,GAClC,EAAW,GAAG,IAGpB,MAAI,AADS,AADC,QAAO,EAAU,IAAI,EAChB,KAAK,CAAK,GAE3B,GAAS,CACP,KAAM,UACN,MAAO,GAC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,CACP,eACA,MAAO,GACP,SAAUD,EAAS,QAAQ,aAAc,GAAGO,GAAU,CACxD,GAEKN,CACT,CASO,SAASQ,EACdX,EACAY,EACAV,EAAW,+BACgB,CAC3B,IAAIC,EAAoC,GAGxC,OAFc,OAAOS,EAAS,GAAG,EACd,KAAKZ,CAAK,IAE3BG,EAAS,CACP,eACA,MAAO,GACP,SAAUD,EAAS,QAAQ,aAAcU,CAAQ,CACnD,GAEKT,CACT",
6
+ "names": ["validateMin", "value", "min", "feedback", "result", "validateMax", "max", "validateMinLength", "validateMaxLength", "validateExclude", "exclude", "regexStr", "validatePattern", "pattern"]
7
7
  }
@@ -1,2 +1,2 @@
1
1
  function g(t){return isFinite(t.getTime())}function a(t,e,r){let i=r;if(t&&t.length>0){let n=t.replace(/[^\d]/g,"").substring(0,10),o=t.length<e.length,s="";return n.length>4?s=`${n.substring(0,2)}/${n.substring(2,4)}/${n.substring(4,8)}`:n.length>3&&!o?s=`${n.substring(0,2)}/${n.substring(2)}/`:n.length>2?s=`${n.substring(0,2)}/${n.substring(2)}`:n.length>1&&!o?s=`${n.substring(0)}/`:n.length>0&&(s=`${n.substring(0)}`),t.length===r?i=s.length:r===3?i=o?3:4:r===6&&(i=o?6:7),{value:n,display:s,selectionIndex:i}}else return{value:"",display:"",selectionIndex:i}}function f(t){if(t)if(t instanceof Date){let e=u(t);if(e!=="")return e}else{if(t&&t.length<=10)return t;{let e=new Date(t),r=u(e);return r!==""?r:t}}else return"";return""}function l(t){if(t&&t.length===10){let e=t.split("/"),r=new Date(parseInt(e[2]),parseInt(e[0])-1,parseInt(e[1]));if(g(r))return r}return null}function m(t){let e=l(t);return e?e.toString():""}function u(t){if(g(t)){let e=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),r=new Intl.DateTimeFormat("en",{month:"2-digit"}).format(t),i=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t);return`${r}/${i}/${e}`}return""}export{g as a,a as b,f as c,l as d,m as e,u as f};
2
- //# sourceMappingURL=chunk.7S75DZ27.js.map
2
+ //# sourceMappingURL=chunk.4PFGNBK4.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/scw-input-field/autoformatters/dateAutoFormatter.ts"],
4
4
  "sourcesContent": ["import { FormatResult } from \"./autoFormat\";\n\n/**\n * isValidDate\n * @param {Date} date\n * @returns {boolean}\n */\nexport function isValidDate( date : Date ) {\n return isFinite(date.getTime());\n}\n\n/**\n * dateAutoFormatter\n * @param {string} valueDisplayed\n * @param {string} prevValueDisplayed \n * @param {number} selectionStart \n * @returns {FormatResult}\n */\nexport function dateAutoFormatter ( \n valueDisplayed: string,\n prevValueDisplayed: string,\n selectionStart: number\n) : FormatResult {\n let selectionIndex = selectionStart;\n if ( valueDisplayed && valueDisplayed.length > 0 ) {\n // shooting for mm/dd/yyyy\n // strip out anything that isn't a number & shorten to 10\n const rawValue = valueDisplayed.replace(/[^\\d]/g, \"\").substring(0,10);\n // if selection is off by one then it is at end...\n const isDelete = valueDisplayed.length < prevValueDisplayed.length;\n\n let displayValue = \"\";\n if ( rawValue.length > 4 ) {\n displayValue = `${rawValue.substring(0,2)}/${rawValue.substring(2,4)}/${rawValue.substring(4,8)}`;\n }else if ( rawValue.length > 3 && !isDelete) {\n displayValue = `${rawValue.substring(0,2)}/${rawValue.substring(2)}/`; \n }else if ( rawValue.length > 2 ) {\n displayValue = `${rawValue.substring(0,2)}/${rawValue.substring(2)}`; \n }else if ( rawValue.length > 1 && !isDelete ) {\n displayValue = `${rawValue.substring(0)}/`;\n }else if ( rawValue.length > 0 ) {\n displayValue = `${rawValue.substring(0)}`;\n }\n\n if (valueDisplayed.length === selectionStart) {\n selectionIndex = displayValue.length;\n }else{\n if (\n selectionStart === 3\n ) {\n selectionIndex = isDelete ? 3 : 4;\n }else if ( \n selectionStart === 6\n ) {\n selectionIndex = isDelete ? 6 : 7;\n }\n }\n return {\n value: rawValue,\n display: displayValue,\n selectionIndex\n }\n }else{\n return {\n value: \"\",\n display: \"\",\n selectionIndex\n }\n }\n}\n\nexport function dateStrToFormattedStr( dateStr : Date | string ) : string {\n // check if it is a formatted string...anything <= ten digits\n if (!dateStr) {// null or undefined...\n return '';\n }else if (dateStr instanceof Date) {\n const dateFormattedStr = dateToFormattedStr(dateStr);\n if (dateFormattedStr !== '') {\n return dateFormattedStr;\n }\n }else if (dateStr && dateStr.length <= 10 ) {\n /* Don't Delete...\n const formattedRegEx = new RegExp(/^\\d{2}\\/\\d{2}\\/\\d{4}/);\n if (formattedRegEx.test(dateStr)) {\n // a full, formatted date string\n }*/\n return dateStr;\n }else{\n // anything longer we check to see if it is a date string...\n const dateObj = new Date( dateStr );\n const dateFormattedStr = dateToFormattedStr(dateObj);\n if (dateFormattedStr !== '') {\n return dateFormattedStr;\n }\n return dateStr;\n }\n return '';\n}\n\nexport function formattedStringToDate( formattedStr: string ) : Date | null {\n if (formattedStr && formattedStr.length === 10) {\n const formattedStrArr = formattedStr.split(\"/\");\n const newDate = new Date( \n parseInt(formattedStrArr[2]),\n parseInt(formattedStrArr[0])-1,\n parseInt(formattedStrArr[1])\n );\n if (isValidDate(newDate)) {\n return newDate;\n }\n }\n return null;\n}\n\nexport function formattedStringToDateStr( formattedStr: string ) : string {\n const date = formattedStringToDate(formattedStr);\n if (date) {\n return date.toString();\n }else{\n return '';\n }\n}\n\nexport function dateToFormattedStr( date : Date ) : string {\n if (isValidDate( date )) {\n const yearStr = new Intl.DateTimeFormat('en', { year: 'numeric' }).format(date);\n const monthStr = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(date);\n const dateStr = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(date);\n return `${monthStr}/${dateStr}/${yearStr}`;\n }\n return '';\n}\n"],
5
- "mappings": "AAOO,WAAsB,EAAc,CACzC,MAAO,UAAS,EAAK,QAAQ,CAAC,CAChC,CASO,WACL,EACA,EACA,EACe,CACf,GAAI,GAAiB,EACrB,GAAK,GAAkB,EAAe,OAAS,EAAI,CAGjD,GAAM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K,eAAe,KAAM,CAAE,MAAO,SAAU,CAAC,EAAE,OAAOpB,CAAI,EAC1EU,EAAU,IAAI,KAAK,eAAe,KAAM,CAAE,IAAK,SAAU,CAAC,EAAE,OAAOV,CAAI,EAC7E,MAAO,GAAGoB,KAAYV,KAAWS,GACnC,CACA,MAAO,EACT",
6
+ "names": ["isValidDate", "date", "dateAutoFormatter", "valueDisplayed", "prevValueDisplayed", "selectionStart", "selectionIndex", "rawValue", "isDelete", "displayValue", "dateStrToFormattedStr", "dateStr", "dateFormattedStr", "dateToFormattedStr", "dateObj", "formattedStringToDate", "formattedStr", "formattedStrArr", "newDate", "formattedStringToDateStr", "yearStr", "monthStr"]
7
7
  }