@epa-wg/custom-element-dist 0.0.28 → 0.0.31
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/custom-element-dist.iml +11 -0
- package/.idea/inspectionProfiles/Project_Default.xml +24 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.storybook/main.ts +21 -19
- package/.storybook/preview.ts +25 -25
- package/README.md +4 -4
- package/coverage/coverage-final.json +21 -22
- package/coverage/index.html +24 -39
- 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 +248 -242
- package/coverage/src/custom-element/http-request.js.html +12 -12
- package/coverage/src/custom-element/index.html +14 -14
- package/coverage/src/custom-element/local-storage.js.html +52 -52
- package/coverage/src/custom-element/location-element.js.html +4 -4
- package/coverage/src/custom-element/module-url.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/attributes.test.stories.ts.html +28 -28
- package/coverage/src/stories/coverage.svg +1 -1
- package/coverage/src/stories/css.test.stories.ts.html +1 -1
- package/coverage/src/stories/dom-merge.test.stories.ts.html +1 -1
- package/coverage/src/stories/external-template.test.stories.ts.html +1 -1
- package/coverage/src/stories/form.test.stories.ts.html +1 -1
- package/coverage/src/stories/http-request.stories.ts.html +1 -1
- package/coverage/src/stories/index.html +19 -19
- package/coverage/src/stories/local-storage.test.stories.ts.html +17 -17
- package/coverage/src/stories/location-element.test.stories.ts.html +3 -6
- package/coverage/src/stories/module-url.test.stories.ts.html +1 -1
- package/coverage/src/stories/set-url.test.stories.ts.html +1 -1
- package/coverage/src/stories/slice-events.test.stories.ts/coverage.svg +1 -1
- package/coverage/src/stories/slice-events.test.stories.ts.html +284 -23
- package/coverage/src/stories/slots.test.stories.ts.html +1 -1
- package/coverage/src/stories/testStoryBook.ts.html +7 -7
- package/coverage/src/stories/version-select.test.stories.ts.html +1 -1
- package/coverage/src/sum.ts.html +1 -1
- package/dist/custom-element-BbJMY20-.cjs +97 -0
- package/dist/{custom-element-BOIPgtxz.js → custom-element-CoRNKeEP.js} +122 -120
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +2 -2
- package/dist/demo/a.svg +26 -26
- package/dist/demo/data-slices.html +37 -0
- package/dist/demo/demo.css +0 -3
- package/package.json +13 -13
- package/public/demo/a.svg +26 -26
- package/public/demo/data-slices.html +37 -0
- package/public/demo/demo.css +0 -3
- package/src/custom-element/custom-element.js +4 -2
- package/src/custom-element/demo/a.svg +26 -26
- package/src/custom-element/demo/data-slices.html +37 -0
- package/src/custom-element/demo/demo.css +0 -3
- package/src/custom-element/ide/web-types-dce.json +1 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/material/angular.css +987 -987
- package/src/material/components/autocomplete.html +239 -240
- package/src/material/components/dropdown.html +93 -46
- package/src/material/components/icon-link.html +161 -0
- package/src/material/components/menu.html +234 -234
- package/src/material/components.html +121 -108
- package/src/material/demo.css +36 -31
- package/src/material/index.html +110 -168
- package/src/material/material.css +356 -356
- package/src/material/theme/README.md +17 -17
- package/src/material/theme/semantic.css +113 -112
- package/src/mocks/versions.mock.ts +8 -8
- package/src/stories/attributes.test.stories.ts +20 -20
- package/src/stories/location-element.test.stories.ts +1 -2
- package/src/stories/slice-events.test.stories.ts +87 -0
- package/storybook-static/assets/Color-F6OSRLHC-CFyd3TND.js +1 -0
- package/storybook-static/assets/{Configure-CJVwFVjC.js → Configure-UGTbPRKK.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-CFRXHY34-Bz6q-OqD.js → DocsRenderer-CFRXHY34-Dpr5iB0o.js} +2 -2
- package/storybook-static/assets/{attributes.test.stories-BJBuuXgZ.js → attributes.test.stories-DSOLHHOW.js} +38 -36
- package/storybook-static/assets/{css.test.stories-pgbBc17d.js → css.test.stories-Cgn6ICr0.js} +1 -1
- package/storybook-static/assets/custom-element-D59Fok1f.js +97 -0
- package/storybook-static/assets/{dom-merge.test.stories-CXcYP_-J.js → dom-merge.test.stories-CBObfPWg.js} +1 -1
- package/storybook-static/assets/entry-preview-DHVXbf3x.js +26 -0
- package/storybook-static/assets/entry-preview-docs-BbcIMweR.js +2 -0
- package/storybook-static/assets/{external-template.test.stories-CpJ68Ghy.js → external-template.test.stories-VfKUQ8eu.js} +1 -1
- package/storybook-static/assets/{form.test.stories-D35lyqd8.js → form.test.stories-CnuGN7Zw.js} +1 -1
- package/storybook-static/assets/{handlers-B-OZtf2K.js → handlers-V_T7WjNK.js} +21 -21
- package/storybook-static/assets/{http-request.stories-DccXgHyF.js → http-request.stories-8NN1Coqm.js} +1 -1
- package/storybook-static/assets/iframe-DnhkgdtG.js +2 -0
- package/storybook-static/assets/index-3Sfy-t3H.js +769 -0
- package/storybook-static/assets/index-BcZLpTeD.js +8 -0
- package/storybook-static/assets/index-CIBI7sCB.js +1 -0
- package/storybook-static/assets/{index-BSz1w4Gl.js → index-CxRwF5Or.js} +130 -130
- package/storybook-static/assets/{index-lY6s0fkU.js → index-DN1RoK17.js} +1 -1
- package/storybook-static/assets/{index-f2MAjm2i.js → index-DjJD7gkO.js} +1 -1
- package/storybook-static/assets/{local-storage.test.stories-BY-PWhuk.js → local-storage.test.stories-Dk5Yqc7m.js} +1 -1
- package/storybook-static/assets/{location-element.test.stories-3auBYEaU.js → location-element.test.stories-56um6s5L.js} +1 -1
- package/storybook-static/assets/{module-url.test.stories-B7L9cL60.js → module-url.test.stories-DEponQ7l.js} +1 -1
- package/storybook-static/assets/{preview-BRPR-UXC.js → preview-CNKoaWES.js} +1 -1
- package/storybook-static/assets/preview-Czc-sw5H.js +2 -0
- package/storybook-static/assets/preview-DAeyCMnM.js +1 -0
- package/storybook-static/assets/{preview-BUQm51_C.js → preview-vbpHsp94.js} +2 -2
- package/storybook-static/assets/{set-url.test.stories-CuSuDLIx.js → set-url.test.stories-B4E6hIe-.js} +1 -1
- package/storybook-static/assets/{slice-events.test.stories-BkRKsKem.js → slice-events.test.stories-BR0F-B6I.js} +138 -13
- package/storybook-static/assets/{slots.test.stories-BJCUWFkE.js → slots.test.stories-CgfJIyCr.js} +1 -1
- package/storybook-static/assets/tiny-invariant-CopsF_GD.js +1 -0
- package/storybook-static/assets/{version-select.test.stories-B3ybJn_Z.js → version-select.test.stories-nmxATIwv.js} +1 -1
- package/storybook-static/demo/a.svg +26 -26
- package/storybook-static/demo/data-slices.html +37 -0
- package/storybook-static/demo/demo.css +0 -3
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.html +4 -0
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +333 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +40 -0
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +8 -8
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +82 -85
- 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-viewport-5/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-9/manager-bundle.js +66 -67
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +1 -1
- package/storybook-static/sb-manager/globals-module-info.js +25 -3
- package/storybook-static/sb-manager/globals-runtime.js +29585 -43124
- package/storybook-static/sb-manager/runtime.js +10647 -9399
- package/storybook-static/sb-preview/runtime.js +3536 -5860
- package/test-runner-jest.config.js +15 -0
- package/coverage/src/custom-element/demo/coverage.svg +0 -10
- package/coverage/src/custom-element/demo/index.html +0 -116
- package/coverage/src/custom-element/demo/z.js/coverage.svg +0 -10
- package/coverage/src/custom-element/demo/z.js.html +0 -112
- package/dist/custom-element-CUsSENWc.cjs +0 -97
- package/dist/demo/s1.xslt +0 -60
- package/dist/demo/z.html +0 -33
- package/dist/demo/z.js +0 -9
- package/dist/demo/z.xml +0 -60
- package/dist/demo/z1.html +0 -34
- package/public/demo/s1.xslt +0 -60
- package/public/demo/z.html +0 -33
- package/public/demo/z.js +0 -9
- package/public/demo/z.xml +0 -60
- package/public/demo/z1.html +0 -34
- package/src/custom-element/demo/s1.xslt +0 -60
- package/src/custom-element/demo/z.html +0 -33
- package/src/custom-element/demo/z.js +0 -9
- package/src/custom-element/demo/z.xml +0 -60
- package/src/custom-element/demo/z1.html +0 -34
- package/src/stories/__screenshots__/http-request.test.ts/http-request-url-change-1.png +0 -0
- package/storybook-static/assets/Color-ERTF36HU-ChyYtq0t.js +0 -1
- package/storybook-static/assets/custom-element-BDGsYgbP.js +0 -97
- package/storybook-static/assets/entry-preview-C313OLrj.js +0 -26
- package/storybook-static/assets/entry-preview-docs-B7ORr9w5.js +0 -2
- package/storybook-static/assets/iframe-Ddc_axoC.js +0 -2
- package/storybook-static/assets/index-BdcJ-iJ7.js +0 -8
- package/storybook-static/assets/index-CiCdFubk.js +0 -634
- package/storybook-static/assets/index-tfEkrhWr.js +0 -1
- package/storybook-static/assets/preview-CcS4DQh8.js +0 -1
- package/storybook-static/assets/preview-CfH4_OzN.js +0 -2
- package/storybook-static/assets/tiny-invariant-BxWVcicq.js +0 -1
- package/storybook-static/demo/s1.xslt +0 -60
- package/storybook-static/demo/z.html +0 -33
- package/storybook-static/demo/z.js +0 -9
- package/storybook-static/demo/z.xml +0 -60
- package/storybook-static/demo/z1.html +0 -34
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">28.
|
|
26
|
+
<span class="strong">28.06% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>259/923</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">31.57% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>48/
|
|
42
|
+
<span class='fraction'>48/152</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">27.
|
|
47
|
+
<span class="strong">27.5% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>239/869</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
82
|
<td class="file low" data-value="attributes.test.stories.ts"><a href="attributes.test.stories.ts.html">attributes.test.stories.ts</a></td>
|
|
83
|
-
<td data-value="26.
|
|
83
|
+
<td data-value="26.66" class="pic low">
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 26%"></div><div class="cover-empty" style="width: 74%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="26.
|
|
87
|
-
<td data-value="
|
|
86
|
+
<td data-value="26.66" class="pct low">26.66%</td>
|
|
87
|
+
<td data-value="45" class="abs low">12/45</td>
|
|
88
88
|
<td data-value="100" class="pct high">100%</td>
|
|
89
89
|
<td data-value="3" class="abs high">3/3</td>
|
|
90
90
|
<td data-value="20" class="pct low">20%</td>
|
|
91
91
|
<td data-value="10" class="abs low">2/10</td>
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
92
|
+
<td data-value="27.5" class="pct low">27.5%</td>
|
|
93
|
+
<td data-value="40" class="abs low">11/40</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -230,17 +230,17 @@
|
|
|
230
230
|
|
|
231
231
|
<tr>
|
|
232
232
|
<td class="file low" data-value="slice-events.test.stories.ts"><a href="slice-events.test.stories.ts.html">slice-events.test.stories.ts</a></td>
|
|
233
|
-
<td data-value="17.
|
|
233
|
+
<td data-value="17.14" class="pic low">
|
|
234
234
|
<div class="chart"><div class="cover-fill" style="width: 17%"></div><div class="cover-empty" style="width: 83%"></div></div>
|
|
235
235
|
</td>
|
|
236
|
-
<td data-value="17.
|
|
237
|
-
<td data-value="
|
|
236
|
+
<td data-value="17.14" class="pct low">17.14%</td>
|
|
237
|
+
<td data-value="105" class="abs low">18/105</td>
|
|
238
238
|
<td data-value="100" class="pct high">100%</td>
|
|
239
239
|
<td data-value="3" class="abs high">3/3</td>
|
|
240
|
-
<td data-value="
|
|
241
|
-
<td data-value="
|
|
242
|
-
<td data-value="17
|
|
243
|
-
<td data-value="
|
|
240
|
+
<td data-value="11.76" class="pct low">11.76%</td>
|
|
241
|
+
<td data-value="17" class="abs low">2/17</td>
|
|
242
|
+
<td data-value="17" class="pct low">17%</td>
|
|
243
|
+
<td data-value="100" class="abs low">17/100</td>
|
|
244
244
|
</tr>
|
|
245
245
|
|
|
246
246
|
<tr>
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
297
297
|
Code coverage generated by
|
|
298
298
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
299
|
-
at 2024-11-
|
|
299
|
+
at 2024-11-12T04:15:02.299Z
|
|
300
300
|
</div>
|
|
301
301
|
<script src="../../prettify.js"></script>
|
|
302
302
|
<script>
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
<span class="cline-any cline-neutral"> </span>
|
|
485
485
|
<span class="cline-any cline-neutral"> </span>
|
|
486
486
|
<span class="cline-any cline-neutral"> </span>
|
|
487
|
-
<span class="cline-any cline-yes">
|
|
487
|
+
<span class="cline-any cline-yes">1x</span>
|
|
488
488
|
<span class="cline-any cline-neutral"> </span>
|
|
489
489
|
<span class="cline-any cline-neutral"> </span>
|
|
490
490
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -496,8 +496,8 @@
|
|
|
496
496
|
<span class="cline-any cline-neutral"> </span>
|
|
497
497
|
<span class="cline-any cline-neutral"> </span>
|
|
498
498
|
<span class="cline-any cline-neutral"> </span>
|
|
499
|
-
<span class="cline-any cline-yes">
|
|
500
|
-
<span class="cline-any cline-yes">
|
|
499
|
+
<span class="cline-any cline-yes">4x</span>
|
|
500
|
+
<span class="cline-any cline-yes">4x</span>
|
|
501
501
|
<span class="cline-any cline-neutral"> </span>
|
|
502
502
|
<span class="cline-any cline-neutral"> </span>
|
|
503
503
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -520,18 +520,18 @@
|
|
|
520
520
|
<span class="cline-any cline-neutral"> </span>
|
|
521
521
|
<span class="cline-any cline-neutral"> </span>
|
|
522
522
|
<span class="cline-any cline-neutral"> </span>
|
|
523
|
-
<span class="cline-any cline-yes">
|
|
523
|
+
<span class="cline-any cline-yes">1x</span>
|
|
524
524
|
<span class="cline-any cline-neutral"> </span>
|
|
525
525
|
<span class="cline-any cline-neutral"> </span>
|
|
526
526
|
<span class="cline-any cline-neutral"> </span>
|
|
527
527
|
<span class="cline-any cline-neutral"> </span>
|
|
528
528
|
<span class="cline-any cline-neutral"> </span>
|
|
529
|
-
<span class="cline-any cline-yes">
|
|
530
|
-
<span class="cline-any cline-yes">
|
|
531
|
-
<span class="cline-any cline-yes">
|
|
529
|
+
<span class="cline-any cline-yes">1x</span>
|
|
530
|
+
<span class="cline-any cline-yes">1x</span>
|
|
531
|
+
<span class="cline-any cline-yes">1x</span>
|
|
532
532
|
<span class="cline-any cline-neutral"> </span>
|
|
533
533
|
<span class="cline-any cline-neutral"> </span>
|
|
534
|
-
<span class="cline-any cline-yes">
|
|
534
|
+
<span class="cline-any cline-yes">1x</span>
|
|
535
535
|
<span class="cline-any cline-neutral"> </span>
|
|
536
536
|
<span class="cline-any cline-neutral"> </span>
|
|
537
537
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
<span class="cline-any cline-neutral"> </span>
|
|
575
575
|
<span class="cline-any cline-neutral"> </span>
|
|
576
576
|
<span class="cline-any cline-neutral"> </span>
|
|
577
|
-
<span class="cline-any cline-yes">
|
|
577
|
+
<span class="cline-any cline-yes">1x</span>
|
|
578
578
|
<span class="cline-any cline-neutral"> </span>
|
|
579
579
|
<span class="cline-any cline-neutral"> </span>
|
|
580
580
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
<span class="cline-any cline-neutral"> </span>
|
|
607
607
|
<span class="cline-any cline-neutral"> </span>
|
|
608
608
|
<span class="cline-any cline-neutral"> </span>
|
|
609
|
-
<span class="cline-any cline-yes">
|
|
609
|
+
<span class="cline-any cline-yes">1x</span>
|
|
610
610
|
<span class="cline-any cline-neutral"> </span>
|
|
611
611
|
<span class="cline-any cline-neutral"> </span>
|
|
612
612
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
<span class="cline-any cline-neutral"> </span>
|
|
651
651
|
<span class="cline-any cline-neutral"> </span>
|
|
652
652
|
<span class="cline-any cline-neutral"> </span>
|
|
653
|
-
<span class="cline-any cline-yes">
|
|
653
|
+
<span class="cline-any cline-yes">1x</span>
|
|
654
654
|
<span class="cline-any cline-neutral"> </span>
|
|
655
655
|
<span class="cline-any cline-neutral"> </span>
|
|
656
656
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -874,13 +874,13 @@
|
|
|
874
874
|
<span class="cline-any cline-neutral"> </span>
|
|
875
875
|
<span class="cline-any cline-neutral"> </span>
|
|
876
876
|
<span class="cline-any cline-neutral"> </span>
|
|
877
|
-
<span class="cline-any cline-yes">
|
|
877
|
+
<span class="cline-any cline-yes">1x</span>
|
|
878
878
|
<span class="cline-any cline-neutral"> </span>
|
|
879
879
|
<span class="cline-any cline-neutral"> </span>
|
|
880
|
-
<span class="cline-any cline-yes">
|
|
881
|
-
<span class="cline-any cline-yes">
|
|
882
|
-
<span class="cline-any cline-yes">
|
|
883
|
-
<span class="cline-any cline-yes">
|
|
880
|
+
<span class="cline-any cline-yes">1x</span>
|
|
881
|
+
<span class="cline-any cline-yes">1x</span>
|
|
882
|
+
<span class="cline-any cline-yes">1x</span>
|
|
883
|
+
<span class="cline-any cline-yes">1x</span>
|
|
884
884
|
<span class="cline-any cline-neutral"> </span>
|
|
885
885
|
<span class="cline-any cline-neutral"> </span>
|
|
886
886
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// noinspection DuplicatedCode
|
|
@@ -1300,7 +1300,7 @@ if( 'test' === import.meta.env.MODE &&
|
|
|
1300
1300
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1301
1301
|
Code coverage generated by
|
|
1302
1302
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1303
|
-
at 2024-11-
|
|
1303
|
+
at 2024-11-12T04:15:02.299Z
|
|
1304
1304
|
</div>
|
|
1305
1305
|
<script src="../../prettify.js"></script>
|
|
1306
1306
|
<script>
|
|
@@ -209,9 +209,7 @@
|
|
|
209
209
|
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
210
|
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
211
|
<a name='L146'></a><a href='#L146'>146</a>
|
|
212
|
-
<a name='L147'></a><a href='#L147'>147</a>
|
|
213
|
-
<a name='L148'></a><a href='#L148'>148</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
214
|
-
<span class="cline-any cline-neutral"> </span>
|
|
212
|
+
<a name='L147'></a><a href='#L147'>147</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
215
213
|
<span class="cline-any cline-neutral"> </span>
|
|
216
214
|
<span class="cline-any cline-neutral"> </span>
|
|
217
215
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -360,11 +358,10 @@
|
|
|
360
358
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// noinspection DuplicatedCode
|
|
361
359
|
|
|
362
360
|
import type { StoryObj } from '@storybook/web-components';
|
|
363
|
-
import {expect,
|
|
361
|
+
import {expect, within} from '@storybook/test';
|
|
364
362
|
|
|
365
363
|
import '../custom-element/custom-element.js';
|
|
366
364
|
import '../custom-element/location-element.js';
|
|
367
|
-
import {RealtimeEventInSlice, SliceInitChangeEvent} from './slice-events.test.stories';
|
|
368
365
|
|
|
369
366
|
type TProps = { title: string; slice: string; href: string; live:string; body:string};
|
|
370
367
|
const defs: TProps =
|
|
@@ -511,7 +508,7 @@ if( 'test' === import.meta.env.MODE &&
|
|
|
511
508
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
512
509
|
Code coverage generated by
|
|
513
510
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
514
|
-
at 2024-11-
|
|
511
|
+
at 2024-11-12T04:15:02.299Z
|
|
515
512
|
</div>
|
|
516
513
|
<script src="../../prettify.js"></script>
|
|
517
514
|
<script>
|
|
@@ -625,7 +625,7 @@ if( 'test' === import.meta.env.MODE &&
|
|
|
625
625
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
626
626
|
Code coverage generated by
|
|
627
627
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
628
|
-
at 2024-11-
|
|
628
|
+
at 2024-11-12T04:15:02.299Z
|
|
629
629
|
</div>
|
|
630
630
|
<script src="../../prettify.js"></script>
|
|
631
631
|
<script>
|
|
@@ -418,7 +418,7 @@ if ('test' === import.meta.env.MODE &&
|
|
|
418
418
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
419
419
|
Code coverage generated by
|
|
420
420
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
421
|
-
at 2024-11-
|
|
421
|
+
at 2024-11-12T04:15:02.299Z
|
|
422
422
|
</div>
|
|
423
423
|
<script src="../../prettify.js"></script>
|
|
424
424
|
<script>
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">17.
|
|
26
|
+
<span class="strong">17.14% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>18/105</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">11.76% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>2/
|
|
42
|
+
<span class='fraction'>2/17</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">17
|
|
47
|
+
<span class="strong">17% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>17/100</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -265,22 +265,109 @@
|
|
|
265
265
|
<a name='L200'></a><a href='#L200'>200</a>
|
|
266
266
|
<a name='L201'></a><a href='#L201'>201</a>
|
|
267
267
|
<a name='L202'></a><a href='#L202'>202</a>
|
|
268
|
-
<a name='L203'></a><a href='#L203'>203</a
|
|
269
|
-
<
|
|
270
|
-
<
|
|
271
|
-
<
|
|
272
|
-
<
|
|
273
|
-
<
|
|
274
|
-
<
|
|
275
|
-
<
|
|
276
|
-
<
|
|
277
|
-
<
|
|
278
|
-
<
|
|
279
|
-
<
|
|
280
|
-
<
|
|
281
|
-
<
|
|
282
|
-
<
|
|
283
|
-
<
|
|
268
|
+
<a name='L203'></a><a href='#L203'>203</a>
|
|
269
|
+
<a name='L204'></a><a href='#L204'>204</a>
|
|
270
|
+
<a name='L205'></a><a href='#L205'>205</a>
|
|
271
|
+
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
|
+
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
|
+
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
+
<a name='L209'></a><a href='#L209'>209</a>
|
|
275
|
+
<a name='L210'></a><a href='#L210'>210</a>
|
|
276
|
+
<a name='L211'></a><a href='#L211'>211</a>
|
|
277
|
+
<a name='L212'></a><a href='#L212'>212</a>
|
|
278
|
+
<a name='L213'></a><a href='#L213'>213</a>
|
|
279
|
+
<a name='L214'></a><a href='#L214'>214</a>
|
|
280
|
+
<a name='L215'></a><a href='#L215'>215</a>
|
|
281
|
+
<a name='L216'></a><a href='#L216'>216</a>
|
|
282
|
+
<a name='L217'></a><a href='#L217'>217</a>
|
|
283
|
+
<a name='L218'></a><a href='#L218'>218</a>
|
|
284
|
+
<a name='L219'></a><a href='#L219'>219</a>
|
|
285
|
+
<a name='L220'></a><a href='#L220'>220</a>
|
|
286
|
+
<a name='L221'></a><a href='#L221'>221</a>
|
|
287
|
+
<a name='L222'></a><a href='#L222'>222</a>
|
|
288
|
+
<a name='L223'></a><a href='#L223'>223</a>
|
|
289
|
+
<a name='L224'></a><a href='#L224'>224</a>
|
|
290
|
+
<a name='L225'></a><a href='#L225'>225</a>
|
|
291
|
+
<a name='L226'></a><a href='#L226'>226</a>
|
|
292
|
+
<a name='L227'></a><a href='#L227'>227</a>
|
|
293
|
+
<a name='L228'></a><a href='#L228'>228</a>
|
|
294
|
+
<a name='L229'></a><a href='#L229'>229</a>
|
|
295
|
+
<a name='L230'></a><a href='#L230'>230</a>
|
|
296
|
+
<a name='L231'></a><a href='#L231'>231</a>
|
|
297
|
+
<a name='L232'></a><a href='#L232'>232</a>
|
|
298
|
+
<a name='L233'></a><a href='#L233'>233</a>
|
|
299
|
+
<a name='L234'></a><a href='#L234'>234</a>
|
|
300
|
+
<a name='L235'></a><a href='#L235'>235</a>
|
|
301
|
+
<a name='L236'></a><a href='#L236'>236</a>
|
|
302
|
+
<a name='L237'></a><a href='#L237'>237</a>
|
|
303
|
+
<a name='L238'></a><a href='#L238'>238</a>
|
|
304
|
+
<a name='L239'></a><a href='#L239'>239</a>
|
|
305
|
+
<a name='L240'></a><a href='#L240'>240</a>
|
|
306
|
+
<a name='L241'></a><a href='#L241'>241</a>
|
|
307
|
+
<a name='L242'></a><a href='#L242'>242</a>
|
|
308
|
+
<a name='L243'></a><a href='#L243'>243</a>
|
|
309
|
+
<a name='L244'></a><a href='#L244'>244</a>
|
|
310
|
+
<a name='L245'></a><a href='#L245'>245</a>
|
|
311
|
+
<a name='L246'></a><a href='#L246'>246</a>
|
|
312
|
+
<a name='L247'></a><a href='#L247'>247</a>
|
|
313
|
+
<a name='L248'></a><a href='#L248'>248</a>
|
|
314
|
+
<a name='L249'></a><a href='#L249'>249</a>
|
|
315
|
+
<a name='L250'></a><a href='#L250'>250</a>
|
|
316
|
+
<a name='L251'></a><a href='#L251'>251</a>
|
|
317
|
+
<a name='L252'></a><a href='#L252'>252</a>
|
|
318
|
+
<a name='L253'></a><a href='#L253'>253</a>
|
|
319
|
+
<a name='L254'></a><a href='#L254'>254</a>
|
|
320
|
+
<a name='L255'></a><a href='#L255'>255</a>
|
|
321
|
+
<a name='L256'></a><a href='#L256'>256</a>
|
|
322
|
+
<a name='L257'></a><a href='#L257'>257</a>
|
|
323
|
+
<a name='L258'></a><a href='#L258'>258</a>
|
|
324
|
+
<a name='L259'></a><a href='#L259'>259</a>
|
|
325
|
+
<a name='L260'></a><a href='#L260'>260</a>
|
|
326
|
+
<a name='L261'></a><a href='#L261'>261</a>
|
|
327
|
+
<a name='L262'></a><a href='#L262'>262</a>
|
|
328
|
+
<a name='L263'></a><a href='#L263'>263</a>
|
|
329
|
+
<a name='L264'></a><a href='#L264'>264</a>
|
|
330
|
+
<a name='L265'></a><a href='#L265'>265</a>
|
|
331
|
+
<a name='L266'></a><a href='#L266'>266</a>
|
|
332
|
+
<a name='L267'></a><a href='#L267'>267</a>
|
|
333
|
+
<a name='L268'></a><a href='#L268'>268</a>
|
|
334
|
+
<a name='L269'></a><a href='#L269'>269</a>
|
|
335
|
+
<a name='L270'></a><a href='#L270'>270</a>
|
|
336
|
+
<a name='L271'></a><a href='#L271'>271</a>
|
|
337
|
+
<a name='L272'></a><a href='#L272'>272</a>
|
|
338
|
+
<a name='L273'></a><a href='#L273'>273</a>
|
|
339
|
+
<a name='L274'></a><a href='#L274'>274</a>
|
|
340
|
+
<a name='L275'></a><a href='#L275'>275</a>
|
|
341
|
+
<a name='L276'></a><a href='#L276'>276</a>
|
|
342
|
+
<a name='L277'></a><a href='#L277'>277</a>
|
|
343
|
+
<a name='L278'></a><a href='#L278'>278</a>
|
|
344
|
+
<a name='L279'></a><a href='#L279'>279</a>
|
|
345
|
+
<a name='L280'></a><a href='#L280'>280</a>
|
|
346
|
+
<a name='L281'></a><a href='#L281'>281</a>
|
|
347
|
+
<a name='L282'></a><a href='#L282'>282</a>
|
|
348
|
+
<a name='L283'></a><a href='#L283'>283</a>
|
|
349
|
+
<a name='L284'></a><a href='#L284'>284</a>
|
|
350
|
+
<a name='L285'></a><a href='#L285'>285</a>
|
|
351
|
+
<a name='L286'></a><a href='#L286'>286</a>
|
|
352
|
+
<a name='L287'></a><a href='#L287'>287</a>
|
|
353
|
+
<a name='L288'></a><a href='#L288'>288</a>
|
|
354
|
+
<a name='L289'></a><a href='#L289'>289</a>
|
|
355
|
+
<a name='L290'></a><a href='#L290'>290</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
356
|
+
<span class="cline-any cline-neutral"> </span>
|
|
357
|
+
<span class="cline-any cline-neutral"> </span>
|
|
358
|
+
<span class="cline-any cline-neutral"> </span>
|
|
359
|
+
<span class="cline-any cline-neutral"> </span>
|
|
360
|
+
<span class="cline-any cline-neutral"> </span>
|
|
361
|
+
<span class="cline-any cline-neutral"> </span>
|
|
362
|
+
<span class="cline-any cline-neutral"> </span>
|
|
363
|
+
<span class="cline-any cline-neutral"> </span>
|
|
364
|
+
<span class="cline-any cline-neutral"> </span>
|
|
365
|
+
<span class="cline-any cline-no"> </span>
|
|
366
|
+
<span class="cline-any cline-neutral"> </span>
|
|
367
|
+
<span class="cline-any cline-neutral"> </span>
|
|
368
|
+
<span class="cline-any cline-neutral"> </span>
|
|
369
|
+
<span class="cline-any cline-yes">9x</span>
|
|
370
|
+
<span class="cline-any cline-yes">9x</span>
|
|
284
371
|
<span class="cline-any cline-neutral"> </span>
|
|
285
372
|
<span class="cline-any cline-neutral"> </span>
|
|
286
373
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -461,6 +548,93 @@
|
|
|
461
548
|
<span class="cline-any cline-yes">1x</span>
|
|
462
549
|
<span class="cline-any cline-neutral"> </span>
|
|
463
550
|
<span class="cline-any cline-neutral"> </span>
|
|
551
|
+
<span class="cline-any cline-neutral"> </span>
|
|
552
|
+
<span class="cline-any cline-neutral"> </span>
|
|
553
|
+
<span class="cline-any cline-neutral"> </span>
|
|
554
|
+
<span class="cline-any cline-neutral"> </span>
|
|
555
|
+
<span class="cline-any cline-neutral"> </span>
|
|
556
|
+
<span class="cline-any cline-neutral"> </span>
|
|
557
|
+
<span class="cline-any cline-neutral"> </span>
|
|
558
|
+
<span class="cline-any cline-neutral"> </span>
|
|
559
|
+
<span class="cline-any cline-no"> </span>
|
|
560
|
+
<span class="cline-any cline-no"> </span>
|
|
561
|
+
<span class="cline-any cline-neutral"> </span>
|
|
562
|
+
<span class="cline-any cline-neutral"> </span>
|
|
563
|
+
<span class="cline-any cline-neutral"> </span>
|
|
564
|
+
<span class="cline-any cline-neutral"> </span>
|
|
565
|
+
<span class="cline-any cline-yes">1x</span>
|
|
566
|
+
<span class="cline-any cline-neutral"> </span>
|
|
567
|
+
<span class="cline-any cline-neutral"> </span>
|
|
568
|
+
<span class="cline-any cline-neutral"> </span>
|
|
569
|
+
<span class="cline-any cline-neutral"> </span>
|
|
570
|
+
<span class="cline-any cline-neutral"> </span>
|
|
571
|
+
<span class="cline-any cline-neutral"> </span>
|
|
572
|
+
<span class="cline-any cline-neutral"> </span>
|
|
573
|
+
<span class="cline-any cline-neutral"> </span>
|
|
574
|
+
<span class="cline-any cline-neutral"> </span>
|
|
575
|
+
<span class="cline-any cline-neutral"> </span>
|
|
576
|
+
<span class="cline-any cline-no"> </span>
|
|
577
|
+
<span class="cline-any cline-no"> </span>
|
|
578
|
+
<span class="cline-any cline-no"> </span>
|
|
579
|
+
<span class="cline-any cline-no"> </span>
|
|
580
|
+
<span class="cline-any cline-no"> </span>
|
|
581
|
+
<span class="cline-any cline-no"> </span>
|
|
582
|
+
<span class="cline-any cline-no"> </span>
|
|
583
|
+
<span class="cline-any cline-no"> </span>
|
|
584
|
+
<span class="cline-any cline-neutral"> </span>
|
|
585
|
+
<span class="cline-any cline-neutral"> </span>
|
|
586
|
+
<span class="cline-any cline-neutral"> </span>
|
|
587
|
+
<span class="cline-any cline-neutral"> </span>
|
|
588
|
+
<span class="cline-any cline-neutral"> </span>
|
|
589
|
+
<span class="cline-any cline-yes">1x</span>
|
|
590
|
+
<span class="cline-any cline-neutral"> </span>
|
|
591
|
+
<span class="cline-any cline-neutral"> </span>
|
|
592
|
+
<span class="cline-any cline-neutral"> </span>
|
|
593
|
+
<span class="cline-any cline-neutral"> </span>
|
|
594
|
+
<span class="cline-any cline-neutral"> </span>
|
|
595
|
+
<span class="cline-any cline-neutral"> </span>
|
|
596
|
+
<span class="cline-any cline-neutral"> </span>
|
|
597
|
+
<span class="cline-any cline-neutral"> </span>
|
|
598
|
+
<span class="cline-any cline-neutral"> </span>
|
|
599
|
+
<span class="cline-any cline-neutral"> </span>
|
|
600
|
+
<span class="cline-any cline-no"> </span>
|
|
601
|
+
<span class="cline-any cline-no"> </span>
|
|
602
|
+
<span class="cline-any cline-no"> </span>
|
|
603
|
+
<span class="cline-any cline-no"> </span>
|
|
604
|
+
<span class="cline-any cline-no"> </span>
|
|
605
|
+
<span class="cline-any cline-no"> </span>
|
|
606
|
+
<span class="cline-any cline-no"> </span>
|
|
607
|
+
<span class="cline-any cline-no"> </span>
|
|
608
|
+
<span class="cline-any cline-neutral"> </span>
|
|
609
|
+
<span class="cline-any cline-neutral"> </span>
|
|
610
|
+
<span class="cline-any cline-neutral"> </span>
|
|
611
|
+
<span class="cline-any cline-neutral"> </span>
|
|
612
|
+
<span class="cline-any cline-neutral"> </span>
|
|
613
|
+
<span class="cline-any cline-yes">1x</span>
|
|
614
|
+
<span class="cline-any cline-neutral"> </span>
|
|
615
|
+
<span class="cline-any cline-neutral"> </span>
|
|
616
|
+
<span class="cline-any cline-neutral"> </span>
|
|
617
|
+
<span class="cline-any cline-neutral"> </span>
|
|
618
|
+
<span class="cline-any cline-neutral"> </span>
|
|
619
|
+
<span class="cline-any cline-neutral"> </span>
|
|
620
|
+
<span class="cline-any cline-neutral"> </span>
|
|
621
|
+
<span class="cline-any cline-neutral"> </span>
|
|
622
|
+
<span class="cline-any cline-neutral"> </span>
|
|
623
|
+
<span class="cline-any cline-neutral"> </span>
|
|
624
|
+
<span class="cline-any cline-neutral"> </span>
|
|
625
|
+
<span class="cline-any cline-no"> </span>
|
|
626
|
+
<span class="cline-any cline-no"> </span>
|
|
627
|
+
<span class="cline-any cline-no"> </span>
|
|
628
|
+
<span class="cline-any cline-no"> </span>
|
|
629
|
+
<span class="cline-any cline-no"> </span>
|
|
630
|
+
<span class="cline-any cline-neutral"> </span>
|
|
631
|
+
<span class="cline-any cline-neutral"> </span>
|
|
632
|
+
<span class="cline-any cline-neutral"> </span>
|
|
633
|
+
<span class="cline-any cline-neutral"> </span>
|
|
634
|
+
<span class="cline-any cline-neutral"> </span>
|
|
635
|
+
<span class="cline-any cline-yes">1x</span>
|
|
636
|
+
<span class="cline-any cline-neutral"> </span>
|
|
637
|
+
<span class="cline-any cline-neutral"> </span>
|
|
464
638
|
<span class="cline-any cline-yes">1x</span>
|
|
465
639
|
<span class="cline-any cline-yes">1x</span>
|
|
466
640
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -658,6 +832,93 @@ export const SlicesInAttrAndName:Story =
|
|
|
658
832
|
},
|
|
659
833
|
};
|
|
660
834
|
|
|
835
|
+
|
|
836
|
+
export const CheckboxChecked:Story =
|
|
837
|
+
{ args : {title: 'Checkbox value in slice ', body:`
|
|
838
|
+
<p> Checked value propagated into slice</p>
|
|
839
|
+
<custom-element>
|
|
840
|
+
<template>
|
|
841
|
+
<input type="checkbox" slice="s1" value="V1" checked/>
|
|
842
|
+
<p>slice: {//s1}</p>
|
|
843
|
+
</template>
|
|
844
|
+
</custom-element>
|
|
845
|
+
`}
|
|
846
|
+
, play: <span class="fstat-no" title="function not covered" >async ({</span>canvasElement}) =>
|
|
847
|
+
{
|
|
848
|
+
const canvas = <span class="cstat-no" title="statement not covered" >within(canvasElement);</span>
|
|
849
|
+
<span class="cstat-no" title="statement not covered" > await expect( await canvas.findByText( 'slice: V1')).toBeInTheDocument();</span>
|
|
850
|
+
},
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
export const CheckboxUnchecked:Story =
|
|
854
|
+
{ args : {title: 'UncheckedCheckbox value not in slice ', body:`
|
|
855
|
+
<p> Check to see the value propagated into slice. Uncheck to observe the empty string in the slice. </p>
|
|
856
|
+
<custom-element>
|
|
857
|
+
<template>
|
|
858
|
+
<input type="checkbox" slice="s1" value="V1" data-testid="i1"/>
|
|
859
|
+
<p data-testid="t1">slice: {//s1}</p>
|
|
860
|
+
</template>
|
|
861
|
+
</custom-element>
|
|
862
|
+
`}
|
|
863
|
+
, play: <span class="fstat-no" title="function not covered" >async ({</span>canvasElement}) =>
|
|
864
|
+
{
|
|
865
|
+
const canvas = <span class="cstat-no" title="statement not covered" >within(canvasElement);</span>
|
|
866
|
+
const p =<span class="cstat-no" title="statement not covered" >await canvas.findByTestId( 't1');</span>
|
|
867
|
+
<span class="cstat-no" title="statement not covered" > await expect(p.textContent ).toEqual("slice: ");</span>
|
|
868
|
+
const cb = <span class="cstat-no" title="statement not covered" >await canvas.findByTestId( 'i1');</span>
|
|
869
|
+
<span class="cstat-no" title="statement not covered" > await userEvent.click ( cb );</span>
|
|
870
|
+
<span class="cstat-no" title="statement not covered" > await expect( await canvas.findByText('slice: V1')).toBeInTheDocument();</span>
|
|
871
|
+
<span class="cstat-no" title="statement not covered" > await userEvent.click ( cb );</span>
|
|
872
|
+
<span class="cstat-no" title="statement not covered" > await expect( p.textContent).toEqual('slice: ');</span>
|
|
873
|
+
|
|
874
|
+
},
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
export const CheckboxSliceValue:Story =
|
|
878
|
+
{ args : {title: 'UncheckedCheckbox slice-value not in slice ', body:`
|
|
879
|
+
<p> Check to see the value propagated into slice. Uncheck to observe the empty string in the slice. </p>
|
|
880
|
+
<custom-element>
|
|
881
|
+
<template>
|
|
882
|
+
<input type="checkbox" slice="s1" slice-value="'V1'" data-testid="i1"/>
|
|
883
|
+
<p data-testid="t1">slice: {//s1}</p>
|
|
884
|
+
</template>
|
|
885
|
+
</custom-element>
|
|
886
|
+
`}
|
|
887
|
+
, play: <span class="fstat-no" title="function not covered" >async ({</span>canvasElement}) =>
|
|
888
|
+
{
|
|
889
|
+
const canvas = <span class="cstat-no" title="statement not covered" >within(canvasElement);</span>
|
|
890
|
+
const p =<span class="cstat-no" title="statement not covered" >await canvas.findByTestId( 't1');</span>
|
|
891
|
+
<span class="cstat-no" title="statement not covered" > await expect(p.textContent ).toEqual("slice: ");</span>
|
|
892
|
+
const cb = <span class="cstat-no" title="statement not covered" >await canvas.findByTestId( 'i1');</span>
|
|
893
|
+
<span class="cstat-no" title="statement not covered" > await userEvent.click ( cb );</span>
|
|
894
|
+
<span class="cstat-no" title="statement not covered" > await expect( await canvas.findByText('slice: V1')).toBeInTheDocument();</span>
|
|
895
|
+
<span class="cstat-no" title="statement not covered" > await userEvent.click ( cb );</span>
|
|
896
|
+
<span class="cstat-no" title="statement not covered" > await expect( p.textContent).toEqual('slice: ');</span>
|
|
897
|
+
|
|
898
|
+
},
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
export const RadiogroupSliceValue:Story =
|
|
902
|
+
{ args : {title: 'Radiogroup value', body:`
|
|
903
|
+
<p> The value propagated into slice from the last checked radiobutton. </p>
|
|
904
|
+
<custom-element>
|
|
905
|
+
<template>
|
|
906
|
+
<p>V1: <input type="radio" slice="s1" value="V1" data-testid="i1" name="group1"/></p>
|
|
907
|
+
<p>V2: <input type="radio" slice="s1" value="V2" data-testid="i2" name="group1"/></p>
|
|
908
|
+
<p data-testid="t1">slice: {//s1}</p>
|
|
909
|
+
</template>
|
|
910
|
+
</custom-element>
|
|
911
|
+
`}
|
|
912
|
+
, play: <span class="fstat-no" title="function not covered" >async ({</span>canvasElement}) =>
|
|
913
|
+
{
|
|
914
|
+
const canvas = <span class="cstat-no" title="statement not covered" >within(canvasElement);</span>
|
|
915
|
+
<span class="cstat-no" title="statement not covered" > await userEvent.click ( await canvas.findByTestId( 'i1') );</span>
|
|
916
|
+
<span class="cstat-no" title="statement not covered" > await expect( await canvas.findByText('slice: V1')).toBeInTheDocument();</span>
|
|
917
|
+
<span class="cstat-no" title="statement not covered" > await userEvent.click ( await canvas.findByTestId( 'i2') );</span>
|
|
918
|
+
<span class="cstat-no" title="statement not covered" > await expect( await canvas.findByText('slice: V2')).toBeInTheDocument();</span>
|
|
919
|
+
},
|
|
920
|
+
};
|
|
921
|
+
|
|
661
922
|
//#region unit tests
|
|
662
923
|
/* istanbul ignore else -- @preserve */
|
|
663
924
|
if( 'test' === import.meta.env.MODE &&
|
|
@@ -676,7 +937,7 @@ if( 'test' === import.meta.env.MODE &&
|
|
|
676
937
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
677
938
|
Code coverage generated by
|
|
678
939
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
679
|
-
at 2024-11-
|
|
940
|
+
at 2024-11-12T04:15:02.299Z
|
|
680
941
|
</div>
|
|
681
942
|
<script src="../../prettify.js"></script>
|
|
682
943
|
<script>
|
|
@@ -727,7 +727,7 @@ if( 'test' === import.meta.env.MODE &&
|
|
|
727
727
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
728
728
|
Code coverage generated by
|
|
729
729
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
730
|
-
at 2024-11-
|
|
730
|
+
at 2024-11-12T04:15:02.299Z
|
|
731
731
|
</div>
|
|
732
732
|
<script src="../../prettify.js"></script>
|
|
733
733
|
<script>
|