Skip to content

Commit

Permalink
deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
sashafirsov committed May 13, 2024
1 parent a3b714e commit 3dcab21
Show file tree
Hide file tree
Showing 28 changed files with 568 additions and 407 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h1>Project is deprecated in favor
<a href="https://github.com/EPA-WG/custom-element-dist">@epa-wg/custom-element-dist</a> </h1>
# custom-element-test
test and storybook for [@epa-wg/custom-element](https://github.com/EPA-WG/custom-element)

Expand Down
32 changes: 16 additions & 16 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1>All files</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">86.08% </span>
<span class="strong">85.98% </span>
<span class="quiet">Statements</span>
<span class='fraction'>1788/2077</span>
<span class='fraction'>1792/2084</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>246/246</span>
<span class='fraction'>247/247</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">86.72% </span>
<span class="strong">86.84% </span>
<span class="quiet">Functions</span>
<span class='fraction'>98/113</span>
<span class='fraction'>99/114</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">86.08% </span>
<span class="strong">85.98% </span>
<span class="quiet">Lines</span>
<span class='fraction'>1788/2077</span>
<span class='fraction'>1792/2084</span>
</div>


Expand Down Expand Up @@ -80,17 +80,17 @@ <h1>All files</h1>
</thead>
<tbody><tr>
<td class="file high" data-value="src"><a href="src/index.html">src</a></td>
<td data-value="86.66" class="pic high">
<td data-value="86.44" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 86%"></div><div class="cover-empty" style="width: 14%"></div></div>
</td>
<td data-value="86.66" class="pct high">86.66%</td>
<td data-value="945" class="abs high">819/945</td>
<td data-value="86.44" class="pct high">86.44%</td>
<td data-value="952" class="abs high">823/952</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="211" class="abs high">211/211</td>
<td data-value="88.63" class="pct high">88.63%</td>
<td data-value="88" class="abs high">78/88</td>
<td data-value="86.66" class="pct high">86.66%</td>
<td data-value="945" class="abs high">819/945</td>
<td data-value="212" class="abs high">212/212</td>
<td data-value="88.76" class="pct high">88.76%</td>
<td data-value="89" class="abs high">79/89</td>
<td data-value="86.44" class="pct high">86.44%</td>
<td data-value="952" class="abs high">823/952</td>
</tr>

<tr>
Expand Down Expand Up @@ -131,7 +131,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-26T03:04:57.457Z
at 2024-05-04T17:50:26.851Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
44 changes: 28 additions & 16 deletions coverage/lcov-report/src/custom-element.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">92.86% </span>
<span class="strong">92.9% </span>
<span class="quiet">Statements</span>
<span class='fraction'>664/715</span>
<span class='fraction'>668/719</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>183/183</span>
<span class='fraction'>184/184</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">85.48% </span>
<span class="strong">85.71% </span>
<span class="quiet">Functions</span>
<span class='fraction'>53/62</span>
<span class='fraction'>54/63</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">92.86% </span>
<span class="strong">92.9% </span>
<span class="quiet">Lines</span>
<span class='fraction'>664/715</span>
<span class='fraction'>668/719</span>
</div>


Expand Down Expand Up @@ -778,7 +778,11 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
<a name='L713'></a><a href='#L713'>713</a>
<a name='L714'></a><a href='#L714'>714</a>
<a name='L715'></a><a href='#L715'>715</a>
<a name='L716'></a><a href='#L716'>716</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">10x</span>
<a name='L716'></a><a href='#L716'>716</a>
<a name='L717'></a><a href='#L717'>717</a>
<a name='L718'></a><a href='#L718'>718</a>
<a name='L719'></a><a href='#L719'>719</a>
<a name='L720'></a><a href='#L720'>720</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">10x</span>
<span class="cline-any cline-yes">10x</span>
<span class="cline-any cline-yes">10x</span>
<span class="cline-any cline-yes">10x</span>
Expand Down Expand Up @@ -1021,7 +1025,6 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">2x</span>
Expand Down Expand Up @@ -1475,6 +1478,11 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">9x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">6x</span>
Expand Down Expand Up @@ -1661,8 +1669,8 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
&lt;xsl:template match="*[name()='template']"&gt;&lt;xsl:apply-templates mode="sanitize" select="*|text()"/&gt;&lt;/xsl:template&gt;
&lt;xsl:template match="*"&gt;&lt;xsl:apply-templates mode="sanitize" select="*|text()"/&gt;&lt;/xsl:template&gt;
&lt;xsl:template match="*[name()='svg']|*[name()='math']"&gt;&lt;xsl:apply-templates mode="sanitize" select="."/&gt;&lt;/xsl:template&gt;
&lt;xsl:template mode="sanitize" match="*[count(text())=1 and count(*)=0]"&gt;&lt;xsl:copy&gt;&lt;xsl:apply-templates mode="sanitize" select="@*"/&gt;&lt;xsl:value-of select="text()"/&gt;&lt;/xsl:copy&gt;&lt;/xsl:template&gt;
&lt;xsl:template mode="sanitize" match="xhtml:*[count(text())=1 and count(*)=0]"&gt;&lt;xsl:element name="{local-name()}"&gt;&lt;xsl:apply-templates mode="sanitize" select="@*"/&gt;&lt;xsl:value-of select="text()"/&gt;&lt;/xsl:element&gt;&lt;/xsl:template&gt;
&lt;xsl:template mode="sanitize" match="*[count(text())=1 and count(*)=0]"&gt;&lt;xsl:copy&gt;&lt;xsl:apply-templates mode="sanitize" select="@*"/&gt;&lt;xsl:value-of select="text()"&gt;&lt;/xsl:value-of&gt;&lt;/xsl:copy&gt;&lt;/xsl:template&gt;
&lt;xsl:template mode="sanitize" match="xhtml:*[count(text())=1 and count(*)=0]"&gt;&lt;xsl:element name="{local-name()}"&gt;&lt;xsl:apply-templates mode="sanitize" select="@*"/&gt;&lt;xsl:value-of select="text()"&gt;&lt;/xsl:value-of&gt;&lt;/xsl:element&gt;&lt;/xsl:template&gt;
&lt;xsl:template mode="sanitize" match="*|@*"&gt;&lt;xsl:copy&gt;&lt;xsl:apply-templates mode="sanitize" select="*|@*|text()"/&gt;&lt;/xsl:copy&gt;&lt;/xsl:template&gt;
&lt;xsl:template mode="sanitize" match="text()[normalize-space(.) = '']"/&gt;
&lt;xsl:template mode="sanitize" match="text()"&gt;&lt;dce-text&gt;&lt;xsl:copy/&gt;&lt;/dce-text&gt;&lt;/xsl:template&gt;
Expand Down Expand Up @@ -1701,8 +1709,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
&lt;xsl:choose&gt;
&lt;xsl:when test="//attr"&gt;{//attr}&lt;/xsl:when&gt;
&lt;xsl:otherwise&gt;{def}&lt;/xsl:otherwise&gt;
&lt;/xsl:choose&gt;
&lt;xsl:value-of select="."/&gt;&lt;/xsl:template&gt;
&lt;/xsl:choose&gt;&lt;xsl:value-of select="."&gt;&lt;/xsl:value-of&gt;&lt;/xsl:template&gt;
&lt;xsl:template mode="payload" match="attributes"&gt;&lt;/xsl:template&gt;
&lt;xsl:template match="/"&gt;
&lt;xsl:apply-templates mode="payload" select="/datadom/attributes"/&gt;
Expand Down Expand Up @@ -2188,12 +2195,17 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
&nbsp;
<span class="fstat-no" title="function not covered" > get dce(){ return dce }</span>
}
const registerTag = tag =&gt;
{
if( window.customElements.get(tag) !== DceElement )
window.customElements.define( tag, DceElement);
};
if(tag)
window.customElements.define( tag, DceElement);
registerTag(tag);
else
{ const t = tagName;
this.setAttribute('tag', t );
window.customElements.define( t, DceElement);
registerTag(t);
const el = document.createElement(t);
this.getAttributeNames().forEach(a=&gt;el.setAttribute(a,this.getAttribute(a)));
el.append(...[...this.childNodes].filter( e =&gt; e.localName!=='style') );
Expand All @@ -2215,7 +2227,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> custom-
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-26T03:04:57.457Z
at 2024-05-04T17:50:26.851Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
27 changes: 18 additions & 9 deletions coverage/lcov-report/src/http-request.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> http-re
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">7.4% </span>
<span class="strong">7.14% </span>
<span class="quiet">Statements</span>
<span class='fraction'>6/81</span>
<span class='fraction'>6/84</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> http-re


<div class='fl pad1y space-right2'>
<span class="strong">7.4% </span>
<span class="strong">7.14% </span>
<span class="quiet">Lines</span>
<span class='fraction'>6/81</span>
<span class='fraction'>6/84</span>
</div>


Expand Down Expand Up @@ -144,7 +144,10 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> http-re
<a name='L79'></a><a href='#L79'>79</a>
<a name='L80'></a><a href='#L80'>80</a>
<a name='L81'></a><a href='#L81'>81</a>
<a name='L82'></a><a href='#L82'>82</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<a name='L82'></a><a href='#L82'>82</a>
<a name='L83'></a><a href='#L83'>83</a>
<a name='L84'></a><a href='#L84'>84</a>
<a name='L85'></a><a href='#L85'>85</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
Expand Down Expand Up @@ -222,6 +225,9 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> http-re
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -260,7 +266,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> http-re
<span class="cstat-no" title="statement not covered" ></span>
<span class="cstat-no" title="statement not covered" > async fetch()</span>
<span class="cstat-no" title="statement not covered" > {</span>
<span class="cstat-no" title="statement not covered" > if( !this.closest('custom-element') )</span>
<span class="cstat-no" title="statement not covered" > if( !this.closest('body') )</span>
<span class="cstat-no" title="statement not covered" > return;</span>
<span class="cstat-no" title="statement not covered" > const url = attr(this, 'url') || '';</span>
<span class="cstat-no" title="statement not covered" > if( !url )</span>
Expand Down Expand Up @@ -288,8 +294,11 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> http-re
<span class="cstat-no" title="statement not covered" ></span>
<span class="cstat-no" title="statement not covered" > slice.response = r;</span>
<span class="cstat-no" title="statement not covered" > update();</span>
<span class="cstat-no" title="statement not covered" > slice.data = await response.json();</span>
<span class="cstat-no" title="statement not covered" > update();</span>
<span class="cstat-no" title="statement not covered" > if( r.headers['content-type']?.includes('json'))</span>
<span class="cstat-no" title="statement not covered" > try</span>
<span class="cstat-no" title="statement not covered" > { slice.data = await response.json();</span>
<span class="cstat-no" title="statement not covered" > update();</span>
<span class="cstat-no" title="statement not covered" > }catch(_e){}</span>
<span class="cstat-no" title="statement not covered" > }</span>
<span class="cstat-no" title="statement not covered" ></span>
<span class="cstat-no" title="statement not covered" > attributeChangedCallback(name, oldValue, newValue)</span>
Expand All @@ -313,7 +322,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> http-re
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-26T03:04:57.457Z
at 2024-05-04T17:50:26.851Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
42 changes: 21 additions & 21 deletions coverage/lcov-report/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1><a href="../index.html">All files</a> src</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">86.66% </span>
<span class="strong">86.44% </span>
<span class="quiet">Statements</span>
<span class='fraction'>819/945</span>
<span class='fraction'>823/952</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>211/211</span>
<span class='fraction'>212/212</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">88.63% </span>
<span class="strong">88.76% </span>
<span class="quiet">Functions</span>
<span class='fraction'>78/88</span>
<span class='fraction'>79/89</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">86.66% </span>
<span class="strong">86.44% </span>
<span class="quiet">Lines</span>
<span class='fraction'>819/945</span>
<span class='fraction'>823/952</span>
</div>


Expand Down Expand Up @@ -80,32 +80,32 @@ <h1><a href="../index.html">All files</a> src</h1>
</thead>
<tbody><tr>
<td class="file high" data-value="custom-element.js"><a href="custom-element.js.html">custom-element.js</a></td>
<td data-value="92.86" class="pic high">
<td data-value="92.9" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 92%"></div><div class="cover-empty" style="width: 8%"></div></div>
</td>
<td data-value="92.86" class="pct high">92.86%</td>
<td data-value="715" class="abs high">664/715</td>
<td data-value="92.9" class="pct high">92.9%</td>
<td data-value="719" class="abs high">668/719</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="183" class="abs high">183/183</td>
<td data-value="85.48" class="pct high">85.48%</td>
<td data-value="62" class="abs high">53/62</td>
<td data-value="92.86" class="pct high">92.86%</td>
<td data-value="715" class="abs high">664/715</td>
<td data-value="184" class="abs high">184/184</td>
<td data-value="85.71" class="pct high">85.71%</td>
<td data-value="63" class="abs high">54/63</td>
<td data-value="92.9" class="pct high">92.9%</td>
<td data-value="719" class="abs high">668/719</td>
</tr>

<tr>
<td class="file low" data-value="http-request.js"><a href="http-request.js.html">http-request.js</a></td>
<td data-value="7.4" class="pic low">
<td data-value="7.14" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 7%"></div><div class="cover-empty" style="width: 93%"></div></div>
</td>
<td data-value="7.4" class="pct low">7.4%</td>
<td data-value="81" class="abs low">6/81</td>
<td data-value="7.14" class="pct low">7.14%</td>
<td data-value="84" class="abs low">6/84</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td>
<td data-value="50" class="pct medium">50%</td>
<td data-value="2" class="abs medium">1/2</td>
<td data-value="7.4" class="pct low">7.4%</td>
<td data-value="81" class="abs low">6/81</td>
<td data-value="7.14" class="pct low">7.14%</td>
<td data-value="84" class="abs low">6/84</td>
</tr>

<tr>
Expand Down Expand Up @@ -146,7 +146,7 @@ <h1><a href="../index.html">All files</a> src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-26T03:04:57.457Z
at 2024-05-04T17:50:26.851Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/local-storage.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> local-s
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-04-26T03:04:57.457Z
at 2024-05-04T17:50:26.851Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 3dcab21

Please sign in to comment.