@epa-wg/custom-element-dist 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/.gitignore +8 -0
- package/README.md +4 -4
- package/coverage/coverage-final.json +13 -11
- package/coverage/index.html +30 -30
- package/coverage/src/custom-element/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js.html +603 -420
- package/coverage/src/custom-element/http-request.js.html +10 -10
- package/coverage/src/custom-element/index.html +18 -18
- package/coverage/src/custom-element/local-storage.js.html +2 -2
- package/coverage/src/custom-element/location-element.js.html +1 -1
- package/coverage/src/index.html +1 -1
- package/coverage/src/mocks/handlers.ts.html +1 -1
- package/coverage/src/mocks/index.html +1 -1
- package/coverage/src/stories/{css.stories.ts → attributes.test.stories.ts}/coverage.svg +1 -1
- package/coverage/src/stories/{attributes.stories.ts.html → attributes.test.stories.ts.html} +113 -83
- package/coverage/src/stories/coverage.svg +1 -1
- package/coverage/src/stories/css.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/{css.stories.ts.html → css.test.stories.ts.html} +122 -65
- package/coverage/src/stories/dom-merge.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/{dom-merge.stories.ts.html → dom-merge.test.stories.ts.html} +118 -70
- package/coverage/src/stories/external-template.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/{external-template.stories.ts.html → external-template.test.stories.ts.html} +180 -150
- package/coverage/src/stories/form.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/form.test.stories.ts.html +655 -0
- package/coverage/src/stories/http-request.stories.ts.html +7 -7
- package/coverage/src/stories/index.html +118 -88
- package/coverage/src/stories/{dom-merge.stories.ts → local-storage.test.stories.ts}/coverage.svg +1 -1
- package/coverage/src/stories/{local-storage.stories.ts.html → local-storage.test.stories.ts.html} +475 -439
- package/coverage/src/stories/{external-template.stories.ts → location-element.test.stories.ts}/coverage.svg +1 -1
- package/coverage/src/stories/{location-element.stories.ts.html → location-element.test.stories.ts.html} +134 -98
- package/coverage/src/stories/slice-events.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/slice-events.test.stories.ts.html +685 -0
- package/coverage/src/stories/slots.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/slots.test.stories.ts.html +736 -0
- package/coverage/src/stories/{renderPlay.ts.html → testStoryBook.ts.html} +44 -26
- package/coverage/src/sum.ts.html +1 -1
- package/dist/custom-element-BISbI4SU.js +463 -0
- package/dist/custom-element-N-sWiqGK.cjs +53 -0
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +2 -2
- package/dist/mockServiceWorker.js +1 -1
- package/package.json +4 -4
- package/public/mockServiceWorker.js +1 -1
- package/src/custom-element/custom-element.d.ts +4 -0
- package/src/custom-element/custom-element.js +103 -42
- package/src/custom-element/demo/a.html +38 -41
- package/src/custom-element/demo/b.html +13 -0
- package/src/custom-element/demo/data-slices.html +32 -0
- package/src/custom-element/demo/form.html +240 -0
- package/src/custom-element/demo/s.xml +11 -14
- package/src/custom-element/demo/s.xslt +22 -38
- package/src/custom-element/demo/s1.xslt +60 -0
- package/src/custom-element/ide/customData-dce.json +14 -1
- package/src/custom-element/ide/web-types-dce.json +6 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/custom-element/index.html +1 -0
- package/src/custom-element.test.ts +24 -8
- package/src/stories/{attributes.stories.ts → attributes.test.stories.ts} +19 -9
- package/src/stories/{css.stories.ts → css.test.stories.ts} +28 -9
- package/src/stories/{dom-merge.stories.ts → dom-merge.test.stories.ts} +19 -3
- package/src/stories/{external-template.stories.ts → external-template.test.stories.ts} +13 -3
- package/src/stories/form.test.stories.ts +190 -0
- package/src/stories/http-request.stories.ts +6 -6
- package/src/stories/http-request.test.ts +0 -9
- package/src/stories/{local-storage.stories.ts → local-storage.test.stories.ts} +24 -12
- package/src/stories/{location-element.stories.ts → location-element.test.stories.ts} +21 -9
- package/src/stories/{slice-events.stories.ts → slice-events.test.stories.ts} +88 -5
- package/src/stories/slots.test.stories.ts +217 -0
- package/src/stories/testStoryBook.ts +28 -0
- package/storybook-static/assets/{Color-RQJUDNI5-C4yZhNbM.js → Color-PRSJMWNM-BD_Ds9NW.js} +1 -1
- package/storybook-static/assets/{Configure-C7d36rng.js → Configure-70I_VApa.js} +1 -1
- package/storybook-static/assets/DocsRenderer-K4EAMTCU-9dn0-HCP.js +2 -0
- package/storybook-static/assets/WithTooltip-KJL26V4Q-C6g5GOU9.js +1 -0
- package/storybook-static/assets/{attributes.stories-ZB0RTY1d.js → attributes.test.stories-BEOraI4E.js} +22 -21
- package/storybook-static/assets/css.test.stories-D9WaxrEv.js +96 -0
- package/storybook-static/assets/custom-element-BV8-hRQS.js +219 -0
- package/storybook-static/assets/{dom-merge.stories-CgHZUABU.js → dom-merge.test.stories-BhbNeum_.js} +5 -6
- package/storybook-static/assets/{entry-preview-CQqNFx4W.js → entry-preview-DrgzXgwT.js} +1 -1
- package/storybook-static/assets/{entry-preview-docs-CWgqLfd3.js → entry-preview-docs-Bxv0qQWs.js} +1 -1
- package/storybook-static/assets/{external-template.stories-DtSLMxvg.js → external-template.test.stories-Bpr_wxBo.js} +23 -24
- package/storybook-static/assets/form.test.stories-3tURbEdv.js +250 -0
- package/storybook-static/assets/{formatter-B5HCVTEV-tKeEfJA9.js → formatter-2WMMO6ZP-6IvBq34u.js} +5 -5
- package/storybook-static/assets/http-request.stories-8K_qSs8C.js +300 -0
- package/storybook-static/assets/iframe-zdt9kuj6.js +2 -0
- package/storybook-static/assets/index-B3oZkK3F.js +1 -0
- package/storybook-static/assets/index-C30JwJMK.js +548 -0
- package/storybook-static/assets/index-CVRyq5ci.js +27 -0
- package/storybook-static/assets/index-DXimoRZY.js +1 -0
- package/storybook-static/assets/{index-DnEJ_bKa.js → index-DhXZyjEd.js} +1 -1
- package/storybook-static/assets/index-DuIEV_9C.js +13 -0
- package/storybook-static/assets/{lit-element-B4_0akdT.js → lit-element-CenEXOuS.js} +2 -2
- package/storybook-static/assets/{local-storage.stories-BkO6djDz.js → local-storage.test.stories-CtisAQBB.js} +28 -24
- package/storybook-static/assets/{location-element.stories-DCIOUd0D.js → location-element.test.stories-5O_t_m4Y.js} +11 -11
- package/storybook-static/assets/preview-4Up_z4Em.js +7 -0
- package/storybook-static/assets/preview-BKCN0mOr.js +1 -0
- package/storybook-static/assets/{preview-CkgAD_DE.js → preview-D0eCfQft.js} +2 -2
- package/storybook-static/assets/preview-DRnyIGXK.js +48 -0
- package/storybook-static/assets/preview-FpHGYA1q.js +1 -0
- package/storybook-static/assets/{preview-PxUn-cIn.js → preview-TCN6m6T-.js} +1 -1
- package/storybook-static/assets/slice-events.test.stories-BSXCLIA5.js +231 -0
- package/storybook-static/assets/slots.test.stories-B1vqfHmN.js +214 -0
- package/storybook-static/assets/syntaxhighlighter-BP7B2CQK-DpPBKyTO.js +1 -0
- package/storybook-static/iframe.html +153 -10
- package/storybook-static/index.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/mockServiceWorker.js +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +35 -29
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +1 -1
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +5 -5
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +35 -35
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +18 -16
- package/storybook-static/sb-addons/links-1/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +1 -1
- package/storybook-static/sb-manager/WithTooltip-KJL26V4Q-5LS5AN27.js +1 -0
- package/storybook-static/sb-manager/{chunk-S4VOIVUE.js → chunk-B3YDJJJH.js} +9 -9
- package/storybook-static/sb-manager/{chunk-FEE35O7J.js → chunk-BLWCBWKL.js} +3 -3
- package/storybook-static/sb-manager/{chunk-XCO5HRLK.js → chunk-GUVK2GTO.js} +3 -3
- package/storybook-static/sb-manager/chunk-LFRML3ZV.js +186 -0
- package/storybook-static/sb-manager/chunk-MC7RAF2B.js +274 -0
- package/storybook-static/sb-manager/{chunk-XP3HGWTR.js → chunk-ZR5JZWHI.js} +1 -1
- package/storybook-static/sb-manager/{formatter-B5HCVTEV-7DCBOGO6.js → formatter-2WMMO6ZP-JI7RHVTW.js} +1 -1
- package/storybook-static/sb-manager/globals-module-info.js +1 -1
- package/storybook-static/sb-manager/globals-runtime.js +1 -1
- package/storybook-static/sb-manager/index.js +1 -1
- package/storybook-static/sb-manager/runtime.js +1 -1
- package/storybook-static/sb-manager/{syntaxhighlighter-JOJW2KGS-VF6EEVPI.js → syntaxhighlighter-BP7B2CQK-WOJYHKQR.js} +1 -1
- package/storybook-static/sb-preview/runtime.js +28 -11
- package/tsconfig.json +31 -21
- package/vite.config.js +5 -5
- package/yarn.lock +10242 -0
- package/.vscode/settings.json +0 -24
- package/coverage/src/stories/local-storage.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/location-element.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/renderPlay.ts/coverage.svg +0 -10
- package/coverage/src/stories/slice-events.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/slice-events.stories.ts.html +0 -436
- package/dist/custom-element-B4v-KaIh.cjs +0 -53
- package/dist/custom-element-_g0GTup2.js +0 -436
- package/src/stories/attributes.test.ts +0 -14
- package/src/stories/css.test.ts +0 -12
- package/src/stories/dom-merge.test.ts +0 -12
- package/src/stories/external-template.test.ts +0 -12
- package/src/stories/local-storage.test.ts +0 -12
- package/src/stories/location-element.test.ts +0 -14
- package/src/stories/renderPlay.ts +0 -22
- package/src/stories/slice-events.test.ts +0 -12
- package/storybook-static/assets/DocsRenderer-K4EAMTCU-BLMupvSb.js +0 -2
- package/storybook-static/assets/WithTooltip-Y7J54OF7-BAQSPSFk.js +0 -1
- package/storybook-static/assets/css.stories-CLSX-Xxd.js +0 -86
- package/storybook-static/assets/custom-element-BLZZ00dz.js +0 -53
- package/storybook-static/assets/http-request.stories-CUzlXO89.js +0 -300
- package/storybook-static/assets/iframe-gCvlWuoC.js +0 -2
- package/storybook-static/assets/index-CBQwM6ST.js +0 -508
- package/storybook-static/assets/index-CDavW7r9.js +0 -193
- package/storybook-static/assets/index-CQA5dlr6.js +0 -13
- package/storybook-static/assets/index-DgaNIR0t.js +0 -1
- package/storybook-static/assets/index-Dkj0J1ds.js +0 -1
- package/storybook-static/assets/preview-C6t8KBFr.js +0 -1
- package/storybook-static/assets/preview-CYD85dwb.js +0 -7
- package/storybook-static/assets/preview-D8LadFCz.js +0 -48
- package/storybook-static/assets/preview-DNpCpRPf.js +0 -1
- package/storybook-static/assets/slice-events.stories-DXKjXI37.js +0 -115
- package/storybook-static/assets/syntaxhighlighter-JOJW2KGS-C04pIVD3.js +0 -1
- package/storybook-static/sb-manager/WithTooltip-Y7J54OF7-CEHQ77YF.js +0 -1
- package/storybook-static/sb-manager/chunk-E3WK6ZOZ.js +0 -234
- package/storybook-static/sb-manager/chunk-E6ABNH5R.js +0 -183
- /package/coverage/src/stories/{attributes.stories.ts → testStoryBook.ts}/coverage.svg +0 -0
|
@@ -182,13 +182,13 @@
|
|
|
182
182
|
<span class="cline-any cline-neutral"> </span>
|
|
183
183
|
<span class="cline-any cline-yes">5x</span>
|
|
184
184
|
<span class="cline-any cline-neutral"> </span>
|
|
185
|
-
<span class="cline-any cline-yes">
|
|
186
|
-
<span class="cline-any cline-yes">
|
|
185
|
+
<span class="cline-any cline-yes">28x</span>
|
|
186
|
+
<span class="cline-any cline-yes">28x</span>
|
|
187
187
|
<span class="cline-any cline-neutral"> </span>
|
|
188
188
|
<span class="cline-any cline-neutral"> </span>
|
|
189
189
|
<span class="cline-any cline-neutral"> </span>
|
|
190
|
-
<span class="cline-any cline-yes">
|
|
191
|
-
<span class="cline-any cline-yes">
|
|
190
|
+
<span class="cline-any cline-yes">32x</span>
|
|
191
|
+
<span class="cline-any cline-yes">20x</span>
|
|
192
192
|
<span class="cline-any cline-yes">12x</span>
|
|
193
193
|
<span class="cline-any cline-yes">12x</span>
|
|
194
194
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -223,12 +223,12 @@
|
|
|
223
223
|
<span class="cline-any cline-neutral"> </span>
|
|
224
224
|
<span class="cline-any cline-neutral"> </span>
|
|
225
225
|
<span class="cline-any cline-neutral"> </span>
|
|
226
|
-
<span class="cline-any cline-yes">
|
|
227
|
-
<span class="cline-any cline-yes">
|
|
226
|
+
<span class="cline-any cline-yes">102x</span>
|
|
227
|
+
<span class="cline-any cline-yes">51x</span>
|
|
228
228
|
<span class="cline-any cline-neutral"> </span>
|
|
229
|
-
<span class="cline-any cline-yes">
|
|
230
|
-
<span class="cline-any cline-yes">
|
|
231
|
-
<span class="cline-any cline-yes">
|
|
229
|
+
<span class="cline-any cline-yes">35x</span>
|
|
230
|
+
<span class="cline-any cline-yes">35x</span>
|
|
231
|
+
<span class="cline-any cline-yes">27x</span>
|
|
232
232
|
<span class="cline-any cline-neutral"> </span>
|
|
233
233
|
<span class="cline-any cline-yes">8x</span>
|
|
234
234
|
<span class="cline-any cline-yes">8x</span>
|
|
@@ -337,7 +337,7 @@ export default HttpRequestElement;
|
|
|
337
337
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
338
338
|
Code coverage generated by
|
|
339
339
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
340
|
-
at 2024-
|
|
340
|
+
at 2024-06-27T03:24:38.495Z
|
|
341
341
|
</div>
|
|
342
342
|
<script src="../../prettify.js"></script>
|
|
343
343
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">97.87% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>690/705</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">91.35% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>317/347</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">98.15% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>160/163</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">98.22% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>609/620</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
82
|
<td class="file high" data-value="custom-element.js"><a href="custom-element.js.html">custom-element.js</a></td>
|
|
83
|
-
<td data-value="
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
83
|
+
<td data-value="97.21" class="pic high">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 97%"></div><div class="cover-empty" style="width: 3%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="84.67" class="pct high">84.67%</td>
|
|
89
|
-
<td data-value="261" class="abs high">221/261</td>
|
|
86
|
+
<td data-value="97.21" class="pct high">97.21%</td>
|
|
87
|
+
<td data-value="539" class="abs high">524/539</td>
|
|
90
88
|
<td data-value="89.65" class="pct high">89.65%</td>
|
|
91
|
-
<td data-value="
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
89
|
+
<td data-value="290" class="abs high">260/290</td>
|
|
90
|
+
<td data-value="97.43" class="pct high">97.43%</td>
|
|
91
|
+
<td data-value="117" class="abs high">114/117</td>
|
|
92
|
+
<td data-value="97.67" class="pct high">97.67%</td>
|
|
93
|
+
<td data-value="474" class="abs high">463/474</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at 2024-
|
|
149
|
+
at 2024-06-27T03:24:38.495Z
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
<span class="cline-any cline-neutral"> </span>
|
|
209
209
|
<span class="cline-any cline-neutral"> </span>
|
|
210
210
|
<span class="cline-any cline-neutral"> </span>
|
|
211
|
-
<span class="cline-any cline-yes">
|
|
211
|
+
<span class="cline-any cline-yes">119x</span>
|
|
212
212
|
<span class="cline-any cline-yes">12x</span>
|
|
213
213
|
<span class="cline-any cline-neutral"> </span>
|
|
214
214
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -331,7 +331,7 @@ export default LocalStorageElement;
|
|
|
331
331
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
332
332
|
Code coverage generated by
|
|
333
333
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
334
|
-
at 2024-
|
|
334
|
+
at 2024-06-27T03:24:38.495Z
|
|
335
335
|
</div>
|
|
336
336
|
<script src="../../prettify.js"></script>
|
|
337
337
|
<script>
|
|
@@ -328,7 +328,7 @@ export default LocationElement;</pre></td></tr></table></pre>
|
|
|
328
328
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
329
329
|
Code coverage generated by
|
|
330
330
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
331
|
-
at 2024-
|
|
331
|
+
at 2024-06-27T03:24:38.495Z
|
|
332
332
|
</div>
|
|
333
333
|
<script src="../../prettify.js"></script>
|
|
334
334
|
<script>
|
package/coverage/src/index.html
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2024-
|
|
104
|
+
at 2024-06-27T03:24:38.495Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -157,7 +157,7 @@ export const handlers =
|
|
|
157
157
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
158
158
|
Code coverage generated by
|
|
159
159
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
160
|
-
at 2024-
|
|
160
|
+
at 2024-06-27T03:24:38.495Z
|
|
161
161
|
</div>
|
|
162
162
|
<script src="../../prettify.js"></script>
|
|
163
163
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2024-
|
|
104
|
+
at 2024-06-27T03:24:38.495Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for src/stories/attributes.stories.ts</title>
|
|
6
|
+
<title>Code coverage report for src/stories/attributes.test.stories.ts</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
8
|
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
9
|
<link rel="stylesheet" href="../../base.css" />
|
|
@@ -19,34 +19,34 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/stories</a> attributes.stories.ts</h1>
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/stories</a> attributes.test.stories.ts</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">25% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>12/48</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">100% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>3/3</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">20% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>2/10</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">25.58% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>11/43</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</template>
|
|
63
63
|
</div>
|
|
64
|
-
<div class='status-line
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
65
|
<pre><table class="coverage">
|
|
66
66
|
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
67
|
<a name='L2'></a><a href='#L2'>2</a>
|
|
@@ -195,7 +195,17 @@
|
|
|
195
195
|
<a name='L130'></a><a href='#L130'>130</a>
|
|
196
196
|
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
197
|
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
|
-
<a name='L133'></a><a href='#L133'>133</a
|
|
198
|
+
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
+
<a name='L134'></a><a href='#L134'>134</a>
|
|
200
|
+
<a name='L135'></a><a href='#L135'>135</a>
|
|
201
|
+
<a name='L136'></a><a href='#L136'>136</a>
|
|
202
|
+
<a name='L137'></a><a href='#L137'>137</a>
|
|
203
|
+
<a name='L138'></a><a href='#L138'>138</a>
|
|
204
|
+
<a name='L139'></a><a href='#L139'>139</a>
|
|
205
|
+
<a name='L140'></a><a href='#L140'>140</a>
|
|
206
|
+
<a name='L141'></a><a href='#L141'>141</a>
|
|
207
|
+
<a name='L142'></a><a href='#L142'>142</a>
|
|
208
|
+
<a name='L143'></a><a href='#L143'>143</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
199
209
|
<span class="cline-any cline-neutral"> </span>
|
|
200
210
|
<span class="cline-any cline-neutral"> </span>
|
|
201
211
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -205,7 +215,8 @@
|
|
|
205
215
|
<span class="cline-any cline-neutral"> </span>
|
|
206
216
|
<span class="cline-any cline-neutral"> </span>
|
|
207
217
|
<span class="cline-any cline-neutral"> </span>
|
|
208
|
-
<span class="cline-any cline-
|
|
218
|
+
<span class="cline-any cline-neutral"> </span>
|
|
219
|
+
<span class="cline-any cline-no"> </span>
|
|
209
220
|
<span class="cline-any cline-neutral"> </span>
|
|
210
221
|
<span class="cline-any cline-neutral"> </span>
|
|
211
222
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -242,14 +253,14 @@
|
|
|
242
253
|
<span class="cline-any cline-neutral"> </span>
|
|
243
254
|
<span class="cline-any cline-neutral"> </span>
|
|
244
255
|
<span class="cline-any cline-neutral"> </span>
|
|
245
|
-
<span class="cline-any cline-
|
|
246
|
-
<span class="cline-any cline-
|
|
247
|
-
<span class="cline-any cline-
|
|
256
|
+
<span class="cline-any cline-no"> </span>
|
|
257
|
+
<span class="cline-any cline-no"> </span>
|
|
258
|
+
<span class="cline-any cline-no"> </span>
|
|
248
259
|
<span class="cline-any cline-neutral"> </span>
|
|
249
|
-
<span class="cline-any cline-
|
|
250
|
-
<span class="cline-any cline-
|
|
251
|
-
<span class="cline-any cline-
|
|
252
|
-
<span class="cline-any cline-
|
|
260
|
+
<span class="cline-any cline-no"> </span>
|
|
261
|
+
<span class="cline-any cline-no"> </span>
|
|
262
|
+
<span class="cline-any cline-no"> </span>
|
|
263
|
+
<span class="cline-any cline-no"> </span>
|
|
253
264
|
<span class="cline-any cline-neutral"> </span>
|
|
254
265
|
<span class="cline-any cline-neutral"> </span>
|
|
255
266
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -275,26 +286,26 @@
|
|
|
275
286
|
<span class="cline-any cline-neutral"> </span>
|
|
276
287
|
<span class="cline-any cline-neutral"> </span>
|
|
277
288
|
<span class="cline-any cline-neutral"> </span>
|
|
278
|
-
<span class="cline-any cline-
|
|
279
|
-
<span class="cline-any cline-
|
|
280
|
-
<span class="cline-any cline-
|
|
289
|
+
<span class="cline-any cline-no"> </span>
|
|
290
|
+
<span class="cline-any cline-no"> </span>
|
|
291
|
+
<span class="cline-any cline-no"> </span>
|
|
281
292
|
<span class="cline-any cline-neutral"> </span>
|
|
282
|
-
<span class="cline-any cline-
|
|
283
|
-
<span class="cline-any cline-
|
|
284
|
-
<span class="cline-any cline-
|
|
285
|
-
<span class="cline-any cline-
|
|
293
|
+
<span class="cline-any cline-no"> </span>
|
|
294
|
+
<span class="cline-any cline-no"> </span>
|
|
295
|
+
<span class="cline-any cline-no"> </span>
|
|
296
|
+
<span class="cline-any cline-no"> </span>
|
|
286
297
|
<span class="cline-any cline-neutral"> </span>
|
|
287
|
-
<span class="cline-any cline-
|
|
288
|
-
<span class="cline-any cline-
|
|
289
|
-
<span class="cline-any cline-
|
|
298
|
+
<span class="cline-any cline-no"> </span>
|
|
299
|
+
<span class="cline-any cline-no"> </span>
|
|
300
|
+
<span class="cline-any cline-no"> </span>
|
|
290
301
|
<span class="cline-any cline-neutral"> </span>
|
|
291
|
-
<span class="cline-any cline-
|
|
292
|
-
<span class="cline-any cline-
|
|
293
|
-
<span class="cline-any cline-
|
|
302
|
+
<span class="cline-any cline-no"> </span>
|
|
303
|
+
<span class="cline-any cline-no"> </span>
|
|
304
|
+
<span class="cline-any cline-no"> </span>
|
|
294
305
|
<span class="cline-any cline-neutral"> </span>
|
|
295
|
-
<span class="cline-any cline-
|
|
296
|
-
<span class="cline-any cline-
|
|
297
|
-
<span class="cline-any cline-
|
|
306
|
+
<span class="cline-any cline-no"> </span>
|
|
307
|
+
<span class="cline-any cline-no"> </span>
|
|
308
|
+
<span class="cline-any cline-no"> </span>
|
|
298
309
|
<span class="cline-any cline-neutral"> </span>
|
|
299
310
|
<span class="cline-any cline-neutral"> </span>
|
|
300
311
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -316,28 +327,38 @@
|
|
|
316
327
|
<span class="cline-any cline-neutral"> </span>
|
|
317
328
|
<span class="cline-any cline-neutral"> </span>
|
|
318
329
|
<span class="cline-any cline-neutral"> </span>
|
|
330
|
+
<span class="cline-any cline-no"> </span>
|
|
331
|
+
<span class="cline-any cline-no"> </span>
|
|
332
|
+
<span class="cline-any cline-no"> </span>
|
|
333
|
+
<span class="cline-any cline-no"> </span>
|
|
334
|
+
<span class="cline-any cline-no"> </span>
|
|
335
|
+
<span class="cline-any cline-no"> </span>
|
|
336
|
+
<span class="cline-any cline-no"> </span>
|
|
337
|
+
<span class="cline-any cline-no"> </span>
|
|
338
|
+
<span class="cline-any cline-neutral"> </span>
|
|
339
|
+
<span class="cline-any cline-neutral"> </span>
|
|
340
|
+
<span class="cline-any cline-neutral"> </span>
|
|
341
|
+
<span class="cline-any cline-neutral"> </span>
|
|
319
342
|
<span class="cline-any cline-yes">1x</span>
|
|
320
|
-
<span class="cline-any cline-
|
|
321
|
-
<span class="cline-any cline-yes">3x</span>
|
|
343
|
+
<span class="cline-any cline-neutral"> </span>
|
|
322
344
|
<span class="cline-any cline-neutral"> </span>
|
|
323
345
|
<span class="cline-any cline-yes">1x</span>
|
|
324
346
|
<span class="cline-any cline-yes">1x</span>
|
|
325
347
|
<span class="cline-any cline-yes">1x</span>
|
|
326
348
|
<span class="cline-any cline-yes">1x</span>
|
|
327
349
|
<span class="cline-any cline-neutral"> </span>
|
|
328
|
-
<span class="cline-any cline-neutral"> </span>
|
|
329
|
-
<span class="cline-any cline-neutral"> </span>
|
|
330
350
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// noinspection DuplicatedCode
|
|
331
351
|
|
|
332
|
-
import type { StoryObj }
|
|
333
|
-
import {expect,
|
|
352
|
+
import type { StoryObj } from '@storybook/web-components';
|
|
353
|
+
import {expect, within} from '@storybook/test';
|
|
334
354
|
|
|
335
355
|
import '../custom-element/custom-element.js';
|
|
336
356
|
|
|
337
357
|
type TProps = { title: string; body:string};
|
|
338
358
|
|
|
339
359
|
type Story = StoryObj<TProps>;
|
|
340
|
-
|
|
360
|
+
|
|
361
|
+
function <span class="fstat-no" title="function not covered" >sleep(m</span>s: number) { <span class="cstat-no" title="statement not covered" >return new Promise(<span class="fstat-no" title="function not covered" >(r</span>esolve) => <span class="cstat-no" title="statement not covered" >setTimeout(resolve, ms))</span>; }</span>
|
|
341
362
|
|
|
342
363
|
function render(args: TProps)
|
|
343
364
|
{
|
|
@@ -365,23 +386,23 @@ export const AttributeDefaults:Story =
|
|
|
365
386
|
<attribute name="p1">default_P1 </attribute>
|
|
366
387
|
<attribute name="p2" select="'always_p2'" ></attribute>
|
|
367
388
|
<attribute name="p3" select="//p3 ?? 'def_P3' "></attribute>
|
|
368
|
-
p1: <code data-testid="p1">{$p1}</code> <br/>
|
|
369
|
-
p2: <code data-testid="p2">{$p2}</code> <br/>
|
|
389
|
+
p1: <code data-testid="p1">{$p1}</code> <br/>
|
|
390
|
+
p2: <code data-testid="p2">{$p2}</code> <br/>
|
|
370
391
|
p3: <code data-testid="p3">{$p3}</code>
|
|
371
392
|
</template>
|
|
372
393
|
</custom-element>
|
|
373
394
|
<dce-link id="dce1"></dce-link>
|
|
374
395
|
`}
|
|
375
|
-
, play: async ({canvasElement}) =>
|
|
396
|
+
, play: <span class="fstat-no" title="function not covered" >async ({</span>canvasElement}) =>
|
|
376
397
|
{
|
|
377
|
-
const titleText = AttributeDefaults.args!.title as string
|
|
378
|
-
const canvas = within(canvasElement)
|
|
379
|
-
, code = async (
|
|
398
|
+
const titleText = <span class="cstat-no" title="statement not covered" >AttributeDefaults.args!.title as string;</span>
|
|
399
|
+
const canvas = <span class="cstat-no" title="statement not covered" >within(canvasElement)</span>
|
|
400
|
+
, code = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >async (<span class="cstat-no" title="statement not covered" >i</span>d) => (await canvas.findByTestId(id)).textContent.trim();</span></span>
|
|
380
401
|
|
|
381
|
-
await sleep(20)
|
|
382
|
-
expect( await code('p1') ).toEqual('default_P1' )
|
|
383
|
-
expect( await code('p2') ).toEqual('always_p2' )
|
|
384
|
-
expect( await code('p3') ).toEqual('def_P3' )
|
|
402
|
+
<span class="cstat-no" title="statement not covered" > await sleep(20)</span>
|
|
403
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p1') ).toEqual('default_P1' );</span>
|
|
404
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p2') ).toEqual('always_p2' );</span>
|
|
405
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p3') ).toEqual('def_P3' );</span>
|
|
385
406
|
},
|
|
386
407
|
};
|
|
387
408
|
|
|
@@ -393,8 +414,8 @@ export const AttributesRuntimeChange:Story =
|
|
|
393
414
|
<attribute name="p1">default_P1 </attribute>
|
|
394
415
|
<attribute name="p2" select="'always_p2'" ></attribute>
|
|
395
416
|
<attribute name="p3" select="//p3 ?? 'def_P3' "></attribute>
|
|
396
|
-
p1: <code data-testid="p1">{$p1}</code> <br/>
|
|
397
|
-
p2: <code data-testid="p2">{$p2}</code> <br/>
|
|
417
|
+
p1: <code data-testid="p1">{$p1}</code> <br/>
|
|
418
|
+
p2: <code data-testid="p2">{$p2}</code> <br/>
|
|
398
419
|
p3: <code data-testid="p3">{$p3}</code>
|
|
399
420
|
</template>
|
|
400
421
|
</custom-element>
|
|
@@ -405,28 +426,28 @@ export const AttributesRuntimeChange:Story =
|
|
|
405
426
|
<div><input id="i3" value="p3"> <button onclick="dce2.setAttribute('p3',i3.value)"> set p3</button> </div>
|
|
406
427
|
</section>
|
|
407
428
|
`}
|
|
408
|
-
, play: async ({canvasElement}) =>
|
|
429
|
+
, play: <span class="fstat-no" title="function not covered" >async ({</span>canvasElement}) =>
|
|
409
430
|
{
|
|
410
|
-
const titleText = AttributeDefaults.args!.title as string
|
|
411
|
-
const canvas = within(canvasElement)
|
|
412
|
-
, code = async (
|
|
431
|
+
const titleText = <span class="cstat-no" title="statement not covered" >AttributeDefaults.args!.title as string;</span>
|
|
432
|
+
const canvas = <span class="cstat-no" title="statement not covered" >within(canvasElement)</span>
|
|
433
|
+
, code = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >async (<span class="cstat-no" title="statement not covered" >i</span>d) => (await canvas.findByTestId(id)).textContent.trim();</span></span>
|
|
413
434
|
|
|
414
|
-
await sleep(20)
|
|
415
|
-
expect( await code('p1') ).toEqual('123' )
|
|
416
|
-
expect( await code('p2') ).toEqual('always_p2', 'no overrides due to value is hardcoded' )
|
|
417
|
-
expect( await code('p3') ).toEqual('def_P3' )
|
|
435
|
+
<span class="cstat-no" title="statement not covered" > await sleep(20)</span>
|
|
436
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p1') ).toEqual('123' );</span>
|
|
437
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p2') ).toEqual('always_p2', 'no overrides due to value is hardcoded' );</span>
|
|
438
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p3') ).toEqual('def_P3' );</span>
|
|
418
439
|
|
|
419
|
-
dce2.setAttribute('p1',i1.value)
|
|
420
|
-
await sleep(10)
|
|
421
|
-
expect( await code('p1') ).toEqual('p1','set p1 in runtime' )
|
|
440
|
+
<span class="cstat-no" title="statement not covered" > dce2.setAttribute('p1',i1.value);</span>
|
|
441
|
+
<span class="cstat-no" title="statement not covered" > await sleep(10)</span>
|
|
442
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p1') ).toEqual('p1','set p1 in runtime' );</span>
|
|
422
443
|
|
|
423
|
-
dce2.setAttribute('p2',i2.value)
|
|
424
|
-
await sleep(10)
|
|
425
|
-
expect( await code('p2') ).toEqual('always_p2','can not set p2 in runtime' )
|
|
444
|
+
<span class="cstat-no" title="statement not covered" > dce2.setAttribute('p2',i2.value);</span>
|
|
445
|
+
<span class="cstat-no" title="statement not covered" > await sleep(10)</span>
|
|
446
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p2') ).toEqual('always_p2','can not set p2 in runtime' );</span>
|
|
426
447
|
|
|
427
|
-
dce2.setAttribute('p3',i3.value)
|
|
428
|
-
await sleep(10)
|
|
429
|
-
expect( await code('p3') ).toEqual('p3','set p3 in runtime' )
|
|
448
|
+
<span class="cstat-no" title="statement not covered" > dce2.setAttribute('p3',i3.value);</span>
|
|
449
|
+
<span class="cstat-no" title="statement not covered" > await sleep(10)</span>
|
|
450
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p3') ).toEqual('p3','set p3 in runtime' );</span>
|
|
430
451
|
},
|
|
431
452
|
};
|
|
432
453
|
|
|
@@ -439,26 +460,35 @@ export const InstanceAttributes:Story =
|
|
|
439
460
|
<attribute name="p1">default_P1 </attribute>
|
|
440
461
|
<attribute name="p2" select="'always_p2'" ></attribute>
|
|
441
462
|
<attribute name="p3" select="//p3 ?? 'def_P3' "></attribute>
|
|
442
|
-
p1: <code data-testid="p1">{$p1}</code> <br/>
|
|
443
|
-
p2: <code data-testid="p2">{$p2}</code> <br/>
|
|
463
|
+
p1: <code data-testid="p1">{$p1}</code> <br/>
|
|
464
|
+
p2: <code data-testid="p2">{$p2}</code> <br/>
|
|
444
465
|
p3: <code data-testid="p3">{$p3}</code>
|
|
445
466
|
</template>
|
|
446
467
|
</custom-element>
|
|
447
468
|
<dce-link3 id="dce3" p1="123" p3="qwe"></dce-link3> |
|
|
448
469
|
`}
|
|
449
|
-
, play: async ({canvasElement}) =>
|
|
470
|
+
, play: <span class="fstat-no" title="function not covered" >async ({</span>canvasElement}) =>
|
|
450
471
|
{
|
|
451
|
-
const titleText = AttributeDefaults.args!.title as string
|
|
452
|
-
const canvas = within(canvasElement)
|
|
453
|
-
, code = async (
|
|
454
|
-
|
|
455
|
-
await sleep(20)
|
|
456
|
-
expect( await code('p1') ).toEqual('123' )
|
|
457
|
-
expect( await code('p2') ).toEqual('always_p2' )
|
|
458
|
-
expect( await code('p3') ).toEqual('qwe' )
|
|
472
|
+
const titleText = <span class="cstat-no" title="statement not covered" >AttributeDefaults.args!.title as string;</span>
|
|
473
|
+
const canvas = <span class="cstat-no" title="statement not covered" >within(canvasElement)</span>
|
|
474
|
+
, code = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >async (<span class="cstat-no" title="statement not covered" >i</span>d) => (await canvas.findByTestId(id)).textContent.trim();</span></span>
|
|
475
|
+
<span class="cstat-no" title="statement not covered" >debugger;</span>
|
|
476
|
+
<span class="cstat-no" title="statement not covered" > await sleep(20)</span>
|
|
477
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p1') ).toEqual('123' );</span>
|
|
478
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p2') ).toEqual('always_p2' );</span>
|
|
479
|
+
<span class="cstat-no" title="statement not covered" > expect( await code('p3') ).toEqual('qwe' );</span>
|
|
459
480
|
},
|
|
460
481
|
};
|
|
461
482
|
|
|
483
|
+
/* istanbul ignore else -- @preserve */
|
|
484
|
+
if( 'test' === import.meta.env.MODE &&
|
|
485
|
+
!import.meta.url.includes('skiptest') )
|
|
486
|
+
{
|
|
487
|
+
const mod = await import('./attributes.test.stories.ts?skiptest');
|
|
488
|
+
const { testStoryBook } = await import('./testStoryBook')
|
|
489
|
+
const { describe } = await import('vitest')
|
|
490
|
+
describe(meta.title, () => testStoryBook( mod, meta ) );
|
|
491
|
+
}
|
|
462
492
|
</pre></td></tr></table></pre>
|
|
463
493
|
|
|
464
494
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -466,7 +496,7 @@ export const InstanceAttributes:Story =
|
|
|
466
496
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
467
497
|
Code coverage generated by
|
|
468
498
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
469
|
-
at 2024-
|
|
499
|
+
at 2024-06-27T03:24:38.495Z
|
|
470
500
|
</div>
|
|
471
501
|
<script src="../../prettify.js"></script>
|
|
472
502
|
<script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg viewBox="0 0 140 32" height="20px" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<style>
|
|
3
|
+
.heavy { font: bold 16px sans-serif; fill:white; }
|
|
4
|
+
.percent { font: bold 16px monotype; fill: white; }
|
|
5
|
+
</style>
|
|
6
|
+
<rect width="140" height="32" fill="#473" rx="4"/>
|
|
7
|
+
<rect width="88" height="32" fill="#534" rx="4"/>
|
|
8
|
+
<text x="8" y="21" class="heavy">coverage</text>
|
|
9
|
+
<text x="94" y="22" class="percent">28.57%</text>
|
|
10
|
+
</svg>
|