@epa-wg/custom-element-dist 0.0.21 → 0.0.22
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/README.md +4 -4
- package/coverage/coverage-final.json +15 -11
- package/coverage/index.html +25 -25
- 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 +604 -421
- package/coverage/src/custom-element/custom-element1-1.js/coverage.svg +10 -0
- package/coverage/src/custom-element/custom-element1-1.js.html +2374 -0
- package/coverage/src/custom-element/custom-element1.js/coverage.svg +10 -0
- package/coverage/src/custom-element/custom-element1.js.html +2374 -0
- package/coverage/src/custom-element/http-request.js.html +10 -10
- package/coverage/src/custom-element/index.html +49 -19
- package/coverage/src/custom-element/local-storage.js.html +6 -6
- 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/{attributes.stories.ts.html → attributes.test.stories.ts.html} +51 -15
- package/coverage/src/stories/{css.stories.ts.html → css.test.stories.ts.html} +77 -17
- package/coverage/src/stories/{dom-merge.stories.ts.html → dom-merge.test.stories.ts.html} +60 -12
- package/coverage/src/stories/{external-template.stories.ts.html → external-template.test.stories.ts.html} +42 -12
- package/coverage/src/stories/form.test.stories.ts.html +658 -0
- package/coverage/src/stories/http-request.stories.ts.html +7 -7
- package/coverage/src/stories/index.html +71 -41
- package/coverage/src/stories/{local-storage.stories.ts.html → local-storage.test.stories.ts.html} +56 -20
- package/coverage/src/stories/{location-element.stories.ts.html → location-element.test.stories.ts.html} +53 -17
- package/coverage/src/stories/renderPlay.ts.html +12 -15
- package/coverage/src/stories/slice-events.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/{slice-events.stories.ts.html → slice-events.test.stories.ts.html} +264 -15
- package/coverage/src/stories/slots.test.stories.ts/coverage.svg +10 -0
- package/coverage/src/stories/slots.test.stories.ts.html +739 -0
- 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/custom-element1-1.js +763 -0
- package/src/custom-element/custom-element1.js +763 -0
- package/src/custom-element/custom-element1.js0 +750 -0
- package/src/custom-element/custom-element2.js0 +759 -0
- package/src/custom-element/custom-element3.js0 +763 -0
- 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 +193 -0
- package/src/custom-element/demo/s.xml +19 -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 -7
- package/src/stories/{css.stories.ts → css.test.stories.ts} +29 -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 +191 -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/renderPlay.ts +1 -2
- package/src/stories/{slice-events.stories.ts → slice-events.test.stories.ts} +88 -5
- package/src/stories/slots.test.stories.ts +218 -0
- package/storybook-static/assets/{Color-RQJUDNI5-C4yZhNbM.js → Color-PRSJMWNM-e4s261EJ.js} +1 -1
- package/storybook-static/assets/{Configure-C7d36rng.js → Configure-DWut7txe.js} +1 -1
- package/storybook-static/assets/DocsRenderer-K4EAMTCU-CaXVGjCl.js +2 -0
- package/storybook-static/assets/WithTooltip-KJL26V4Q--B8vdnMi.js +1 -0
- package/storybook-static/assets/{attributes.stories-ZB0RTY1d.js → attributes.test.stories-IuwazrdL.js} +21 -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-SJtgH3vM.js} +5 -5
- package/storybook-static/assets/http-request.stories-8K_qSs8C.js +300 -0
- package/storybook-static/assets/iframe-CM82WlGY.js +2 -0
- package/storybook-static/assets/index-CEZitmnt.js +548 -0
- package/storybook-static/assets/index-CVRyq5ci.js +27 -0
- package/storybook-static/assets/{index-DnEJ_bKa.js → index-D1MP-Zis.js} +1 -1
- package/storybook-static/assets/index-DNL-IEpS.js +1 -0
- package/storybook-static/assets/index-DXimoRZY.js +1 -0
- 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-CkgAD_DE.js → preview-5Y0XiZgz.js} +2 -2
- package/storybook-static/assets/preview-BKCN0mOr.js +1 -0
- 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-BWFH_0wQ.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/vite.config.js +5 -5
- 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/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 → attributes.test.stories.ts}/coverage.svg +0 -0
- /package/coverage/src/stories/{css.stories.ts → css.test.stories.ts}/coverage.svg +0 -0
- /package/coverage/src/stories/{dom-merge.stories.ts → dom-merge.test.stories.ts}/coverage.svg +0 -0
- /package/coverage/src/stories/{external-template.stories.ts → external-template.test.stories.ts}/coverage.svg +0 -0
- /package/coverage/src/stories/{local-storage.stories.ts → form.test.stories.ts}/coverage.svg +0 -0
- /package/coverage/src/stories/{location-element.stories.ts → local-storage.test.stories.ts}/coverage.svg +0 -0
- /package/coverage/src/stories/{slice-events.stories.ts → location-element.test.stories.ts}/coverage.svg +0 -0
|
@@ -581,12 +581,12 @@ function Template({title, slice, url}: TProps)
|
|
|
581
581
|
slice="${slice}"
|
|
582
582
|
></http-request>
|
|
583
583
|
<input placeholder="URL for fetch" slice="url" value="{ //url ?? '${ url }' }"/>
|
|
584
|
-
<button>set</button>
|
|
585
|
-
<button slice="url" slice-value="''" slice-event="click">set blank</button>
|
|
586
|
-
<button slice="url" slice-value="'/reflect'" slice-event="click">/reflect</button>
|
|
587
|
-
<button slice="url" slice-value="'/pokemon'" slice-event="click">/pokemon</button>
|
|
588
|
-
<button slice="url" slice-value="'/pokemon?limit=6'" slice-event="click">/pokemon?limit=6</button>
|
|
589
|
-
<button slice="url" slice-value="'/pokemon?limit=3'" slice-event="click">/pokemon?limit=3</button>
|
|
584
|
+
<button>set</button>
|
|
585
|
+
<button slice="url" slice-value="''" slice-event="click">set blank</button>
|
|
586
|
+
<button slice="url" slice-value="'/reflect'" slice-event="click">/reflect</button>
|
|
587
|
+
<button slice="url" slice-value="'/pokemon'" slice-event="click">/pokemon</button>
|
|
588
|
+
<button slice="url" slice-value="'/pokemon?limit=6'" slice-event="click">/pokemon?limit=6</button>
|
|
589
|
+
<button slice="url" slice-value="'/pokemon?limit=3'" slice-event="click">/pokemon?limit=3</button>
|
|
590
590
|
|
|
591
591
|
<p>Pokemon Count: {count(/datadom/slice/${slice}//results)}</p>
|
|
592
592
|
<if test="count(/datadom/slice/${slice}//results) &lt; 0">
|
|
@@ -802,7 +802,7 @@ from <code>${url}</code>
|
|
|
802
802
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
803
803
|
Code coverage generated by
|
|
804
804
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
805
|
-
at 2024-
|
|
805
|
+
at 2024-06-25T03:55:40.964Z
|
|
806
806
|
</div>
|
|
807
807
|
<script src="../../prettify.js"></script>
|
|
808
808
|
<script>
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>776/776</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'>19/19</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>122/122</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>729/729</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -79,63 +79,78 @@
|
|
|
79
79
|
</tr>
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
|
-
<td class="file high" data-value="attributes.stories.ts"><a href="attributes.stories.ts.html">attributes.stories.ts</a></td>
|
|
82
|
+
<td class="file high" data-value="attributes.test.stories.ts"><a href="attributes.test.stories.ts.html">attributes.test.stories.ts</a></td>
|
|
83
83
|
<td data-value="100" class="pic high">
|
|
84
84
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="100" class="pct high">100%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="47" class="abs high">47/47</td>
|
|
88
88
|
<td data-value="100" class="pct high">100%</td>
|
|
89
|
-
<td data-value="
|
|
89
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
90
90
|
<td data-value="100" class="pct high">100%</td>
|
|
91
|
-
<td data-value="
|
|
91
|
+
<td data-value="10" class="abs high">10/10</td>
|
|
92
92
|
<td data-value="100" class="pct high">100%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="42" class="abs high">42/42</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
97
|
-
<td class="file high" data-value="css.stories.ts"><a href="css.stories.ts.html">css.stories.ts</a></td>
|
|
97
|
+
<td class="file high" data-value="css.test.stories.ts"><a href="css.test.stories.ts.html">css.test.stories.ts</a></td>
|
|
98
98
|
<td data-value="100" class="pic high">
|
|
99
99
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
100
100
|
</td>
|
|
101
101
|
<td data-value="100" class="pct high">100%</td>
|
|
102
|
-
<td data-value="
|
|
102
|
+
<td data-value="43" class="abs high">43/43</td>
|
|
103
103
|
<td data-value="100" class="pct high">100%</td>
|
|
104
|
-
<td data-value="
|
|
104
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
105
|
+
<td data-value="100" class="pct high">100%</td>
|
|
106
|
+
<td data-value="7" class="abs high">7/7</td>
|
|
107
|
+
<td data-value="100" class="pct high">100%</td>
|
|
108
|
+
<td data-value="42" class="abs high">42/42</td>
|
|
109
|
+
</tr>
|
|
110
|
+
|
|
111
|
+
<tr>
|
|
112
|
+
<td class="file high" data-value="dom-merge.test.stories.ts"><a href="dom-merge.test.stories.ts.html">dom-merge.test.stories.ts</a></td>
|
|
113
|
+
<td data-value="100" class="pic high">
|
|
114
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
115
|
+
</td>
|
|
116
|
+
<td data-value="100" class="pct high">100%</td>
|
|
117
|
+
<td data-value="40" class="abs high">40/40</td>
|
|
118
|
+
<td data-value="100" class="pct high">100%</td>
|
|
119
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
105
120
|
<td data-value="100" class="pct high">100%</td>
|
|
106
121
|
<td data-value="6" class="abs high">6/6</td>
|
|
107
122
|
<td data-value="100" class="pct high">100%</td>
|
|
108
|
-
<td data-value="
|
|
123
|
+
<td data-value="38" class="abs high">38/38</td>
|
|
109
124
|
</tr>
|
|
110
125
|
|
|
111
126
|
<tr>
|
|
112
|
-
<td class="file high" data-value="
|
|
127
|
+
<td class="file high" data-value="external-template.test.stories.ts"><a href="external-template.test.stories.ts.html">external-template.test.stories.ts</a></td>
|
|
113
128
|
<td data-value="100" class="pic high">
|
|
114
129
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
115
130
|
</td>
|
|
116
131
|
<td data-value="100" class="pct high">100%</td>
|
|
117
|
-
<td data-value="
|
|
132
|
+
<td data-value="86" class="abs high">86/86</td>
|
|
118
133
|
<td data-value="100" class="pct high">100%</td>
|
|
119
|
-
<td data-value="
|
|
134
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
120
135
|
<td data-value="100" class="pct high">100%</td>
|
|
121
|
-
<td data-value="
|
|
136
|
+
<td data-value="17" class="abs high">17/17</td>
|
|
122
137
|
<td data-value="100" class="pct high">100%</td>
|
|
123
|
-
<td data-value="
|
|
138
|
+
<td data-value="83" class="abs high">83/83</td>
|
|
124
139
|
</tr>
|
|
125
140
|
|
|
126
141
|
<tr>
|
|
127
|
-
<td class="file high" data-value="
|
|
142
|
+
<td class="file high" data-value="form.test.stories.ts"><a href="form.test.stories.ts.html">form.test.stories.ts</a></td>
|
|
128
143
|
<td data-value="100" class="pic high">
|
|
129
144
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
130
145
|
</td>
|
|
131
146
|
<td data-value="100" class="pct high">100%</td>
|
|
132
|
-
<td data-value="
|
|
147
|
+
<td data-value="45" class="abs high">45/45</td>
|
|
133
148
|
<td data-value="100" class="pct high">100%</td>
|
|
134
|
-
<td data-value="
|
|
149
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
135
150
|
<td data-value="100" class="pct high">100%</td>
|
|
136
|
-
<td data-value="
|
|
151
|
+
<td data-value="7" class="abs high">7/7</td>
|
|
137
152
|
<td data-value="100" class="pct high">100%</td>
|
|
138
|
-
<td data-value="
|
|
153
|
+
<td data-value="44" class="abs high">44/44</td>
|
|
139
154
|
</tr>
|
|
140
155
|
|
|
141
156
|
<tr>
|
|
@@ -154,33 +169,33 @@
|
|
|
154
169
|
</tr>
|
|
155
170
|
|
|
156
171
|
<tr>
|
|
157
|
-
<td class="file high" data-value="local-storage.stories.ts"><a href="local-storage.stories.ts.html">local-storage.stories.ts</a></td>
|
|
172
|
+
<td class="file high" data-value="local-storage.test.stories.ts"><a href="local-storage.test.stories.ts.html">local-storage.test.stories.ts</a></td>
|
|
158
173
|
<td data-value="100" class="pic high">
|
|
159
174
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
160
175
|
</td>
|
|
161
176
|
<td data-value="100" class="pct high">100%</td>
|
|
162
|
-
<td data-value="
|
|
177
|
+
<td data-value="232" class="abs high">232/232</td>
|
|
163
178
|
<td data-value="100" class="pct high">100%</td>
|
|
164
|
-
<td data-value="
|
|
179
|
+
<td data-value="5" class="abs high">5/5</td>
|
|
165
180
|
<td data-value="100" class="pct high">100%</td>
|
|
166
|
-
<td data-value="
|
|
181
|
+
<td data-value="16" class="abs high">16/16</td>
|
|
167
182
|
<td data-value="100" class="pct high">100%</td>
|
|
168
|
-
<td data-value="
|
|
183
|
+
<td data-value="222" class="abs high">222/222</td>
|
|
169
184
|
</tr>
|
|
170
185
|
|
|
171
186
|
<tr>
|
|
172
|
-
<td class="file high" data-value="location-element.stories.ts"><a href="location-element.stories.ts.html">location-element.stories.ts</a></td>
|
|
187
|
+
<td class="file high" data-value="location-element.test.stories.ts"><a href="location-element.test.stories.ts.html">location-element.test.stories.ts</a></td>
|
|
173
188
|
<td data-value="100" class="pic high">
|
|
174
189
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
175
190
|
</td>
|
|
176
191
|
<td data-value="100" class="pct high">100%</td>
|
|
177
|
-
<td data-value="
|
|
192
|
+
<td data-value="62" class="abs high">62/62</td>
|
|
178
193
|
<td data-value="100" class="pct high">100%</td>
|
|
179
|
-
<td data-value="
|
|
194
|
+
<td data-value="3" class="abs high">3/3</td>
|
|
180
195
|
<td data-value="100" class="pct high">100%</td>
|
|
181
|
-
<td data-value="
|
|
196
|
+
<td data-value="16" class="abs high">16/16</td>
|
|
182
197
|
<td data-value="100" class="pct high">100%</td>
|
|
183
|
-
<td data-value="
|
|
198
|
+
<td data-value="50" class="abs high">50/50</td>
|
|
184
199
|
</tr>
|
|
185
200
|
|
|
186
201
|
<tr>
|
|
@@ -189,28 +204,43 @@
|
|
|
189
204
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
190
205
|
</td>
|
|
191
206
|
<td data-value="100" class="pct high">100%</td>
|
|
192
|
-
<td data-value="
|
|
207
|
+
<td data-value="8" class="abs high">8/8</td>
|
|
193
208
|
<td data-value="100" class="pct high">100%</td>
|
|
194
|
-
<td data-value="
|
|
209
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
195
210
|
<td data-value="100" class="pct high">100%</td>
|
|
196
211
|
<td data-value="5" class="abs high">5/5</td>
|
|
197
212
|
<td data-value="100" class="pct high">100%</td>
|
|
198
|
-
<td data-value="
|
|
213
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
199
214
|
</tr>
|
|
200
215
|
|
|
201
216
|
<tr>
|
|
202
|
-
<td class="file high" data-value="slice-events.stories.ts"><a href="slice-events.stories.ts.html">slice-events.stories.ts</a></td>
|
|
217
|
+
<td class="file high" data-value="slice-events.test.stories.ts"><a href="slice-events.test.stories.ts.html">slice-events.test.stories.ts</a></td>
|
|
203
218
|
<td data-value="100" class="pic high">
|
|
204
219
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
205
220
|
</td>
|
|
206
221
|
<td data-value="100" class="pct high">100%</td>
|
|
207
|
-
<td data-value="
|
|
222
|
+
<td data-value="78" class="abs high">78/78</td>
|
|
208
223
|
<td data-value="100" class="pct high">100%</td>
|
|
209
|
-
<td data-value="
|
|
224
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
225
|
+
<td data-value="100" class="pct high">100%</td>
|
|
226
|
+
<td data-value="13" class="abs high">13/13</td>
|
|
227
|
+
<td data-value="100" class="pct high">100%</td>
|
|
228
|
+
<td data-value="73" class="abs high">73/73</td>
|
|
229
|
+
</tr>
|
|
230
|
+
|
|
231
|
+
<tr>
|
|
232
|
+
<td class="file high" data-value="slots.test.stories.ts"><a href="slots.test.stories.ts.html">slots.test.stories.ts</a></td>
|
|
233
|
+
<td data-value="100" class="pic high">
|
|
234
|
+
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
235
|
+
</td>
|
|
236
|
+
<td data-value="100" class="pct high">100%</td>
|
|
237
|
+
<td data-value="64" class="abs high">64/64</td>
|
|
238
|
+
<td data-value="100" class="pct high">100%</td>
|
|
239
|
+
<td data-value="1" class="abs high">1/1</td>
|
|
210
240
|
<td data-value="100" class="pct high">100%</td>
|
|
211
241
|
<td data-value="9" class="abs high">9/9</td>
|
|
212
242
|
<td data-value="100" class="pct high">100%</td>
|
|
213
|
-
<td data-value="
|
|
243
|
+
<td data-value="63" class="abs high">63/63</td>
|
|
214
244
|
</tr>
|
|
215
245
|
|
|
216
246
|
</tbody>
|
|
@@ -221,7 +251,7 @@
|
|
|
221
251
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
222
252
|
Code coverage generated by
|
|
223
253
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
224
|
-
at 2024-
|
|
254
|
+
at 2024-06-25T03:55:40.964Z
|
|
225
255
|
</div>
|
|
226
256
|
<script src="../../prettify.js"></script>
|
|
227
257
|
<script>
|
package/coverage/src/stories/{local-storage.stories.ts.html → local-storage.test.stories.ts.html}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for src/stories/local-storage.stories.ts</title>
|
|
6
|
+
<title>Code coverage report for src/stories/local-storage.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> local-storage.stories.ts</h1>
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/stories</a> local-storage.test.stories.ts</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>232/232</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'>5/5</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>16/16</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>222/222</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -451,7 +451,19 @@
|
|
|
451
451
|
<a name='L386'></a><a href='#L386'>386</a>
|
|
452
452
|
<a name='L387'></a><a href='#L387'>387</a>
|
|
453
453
|
<a name='L388'></a><a href='#L388'>388</a>
|
|
454
|
-
<a name='L389'></a><a href='#L389'>389</a
|
|
454
|
+
<a name='L389'></a><a href='#L389'>389</a>
|
|
455
|
+
<a name='L390'></a><a href='#L390'>390</a>
|
|
456
|
+
<a name='L391'></a><a href='#L391'>391</a>
|
|
457
|
+
<a name='L392'></a><a href='#L392'>392</a>
|
|
458
|
+
<a name='L393'></a><a href='#L393'>393</a>
|
|
459
|
+
<a name='L394'></a><a href='#L394'>394</a>
|
|
460
|
+
<a name='L395'></a><a href='#L395'>395</a>
|
|
461
|
+
<a name='L396'></a><a href='#L396'>396</a>
|
|
462
|
+
<a name='L397'></a><a href='#L397'>397</a>
|
|
463
|
+
<a name='L398'></a><a href='#L398'>398</a>
|
|
464
|
+
<a name='L399'></a><a href='#L399'>399</a>
|
|
465
|
+
<a name='L400'></a><a href='#L400'>400</a>
|
|
466
|
+
<a name='L401'></a><a href='#L401'>401</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
455
467
|
<span class="cline-any cline-neutral"> </span>
|
|
456
468
|
<span class="cline-any cline-neutral"> </span>
|
|
457
469
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -672,6 +684,8 @@
|
|
|
672
684
|
<span class="cline-any cline-neutral"> </span>
|
|
673
685
|
<span class="cline-any cline-neutral"> </span>
|
|
674
686
|
<span class="cline-any cline-yes">1x</span>
|
|
687
|
+
<span class="cline-any cline-neutral"> </span>
|
|
688
|
+
<span class="cline-any cline-yes">1x</span>
|
|
675
689
|
<span class="cline-any cline-yes">1x</span>
|
|
676
690
|
<span class="cline-any cline-yes">15x</span>
|
|
677
691
|
<span class="cline-any cline-yes">96x</span>
|
|
@@ -839,6 +853,16 @@
|
|
|
839
853
|
<span class="cline-any cline-yes">1x</span>
|
|
840
854
|
<span class="cline-any cline-neutral"> </span>
|
|
841
855
|
<span class="cline-any cline-neutral"> </span>
|
|
856
|
+
<span class="cline-any cline-neutral"> </span>
|
|
857
|
+
<span class="cline-any cline-yes">1x</span>
|
|
858
|
+
<span class="cline-any cline-neutral"> </span>
|
|
859
|
+
<span class="cline-any cline-neutral"> </span>
|
|
860
|
+
<span class="cline-any cline-yes">1x</span>
|
|
861
|
+
<span class="cline-any cline-yes">1x</span>
|
|
862
|
+
<span class="cline-any cline-yes">1x</span>
|
|
863
|
+
<span class="cline-any cline-yes">1x</span>
|
|
864
|
+
<span class="cline-any cline-yes">1x</span>
|
|
865
|
+
<span class="cline-any cline-neutral"> </span>
|
|
842
866
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// noinspection DuplicatedCode
|
|
843
867
|
|
|
844
868
|
import type { StoryObj } from '@storybook/web-components';
|
|
@@ -868,13 +892,13 @@ function render(args: TProps)
|
|
|
868
892
|
|
|
869
893
|
<custom-element>
|
|
870
894
|
<template><!-- wrapping into template to prevent images loading within DCE declaration -->
|
|
871
|
-
<local-storage
|
|
872
|
-
key="${ key }"
|
|
873
|
-
slice="${ slice }"
|
|
874
|
-
${ live ? `live="${live }"`:''}
|
|
875
|
-
${ value ? `value="${value }"`:''}
|
|
895
|
+
<local-storage
|
|
896
|
+
key="${ key }"
|
|
897
|
+
slice="${ slice }"
|
|
898
|
+
${ live ? `live="${live }"`:''}
|
|
899
|
+
${ value ? `value="${value }"`:''}
|
|
876
900
|
></local-storage>
|
|
877
|
-
|
|
901
|
+
|
|
878
902
|
<br/>
|
|
879
903
|
<var>${key}</var>:<code data-testid="slice-value">{ //slice/${slice} }</code>
|
|
880
904
|
<br/>
|
|
@@ -894,12 +918,12 @@ export default meta;
|
|
|
894
918
|
export const Demo:Story =
|
|
895
919
|
{ args : {title: 'live value', live:'live', body:`
|
|
896
920
|
<input placeholder="value for localStorage" id="textinput"
|
|
897
|
-
slice="${defs.slice}"
|
|
921
|
+
slice="${defs.slice}"
|
|
898
922
|
value="{ //${defs.slice} ?? '${ defs.value }' }"/>
|
|
899
923
|
<button onclick="localStorage.setItem('${defs.key}',textinput.value )">set</button>
|
|
900
924
|
<button onclick="localStorage.setItem('${defs.key}','text value' )">text value</button>
|
|
901
|
-
<button onclick="localStorage.setItem('${defs.key}','another text')">another text</button>
|
|
902
|
-
<button onclick="localStorage.removeItem('${defs.key}' )">set blank</button>
|
|
925
|
+
<button onclick="localStorage.setItem('${defs.key}','another text')">another text</button>
|
|
926
|
+
<button onclick="localStorage.removeItem('${defs.key}' )">set blank</button>
|
|
903
927
|
`}
|
|
904
928
|
, play: async ({canvasElement}) =>
|
|
905
929
|
{
|
|
@@ -935,8 +959,8 @@ export const Demo:Story =
|
|
|
935
959
|
export const AlwaysOverride:Story =
|
|
936
960
|
{ args : {title: 'AlwaysOverride', live:'', value:'ABC', body:`
|
|
937
961
|
buttons are changing the localStorage value, but without 'live' attribute slice ^^ from <i>local-storage</i> is not updated<br/>
|
|
938
|
-
<button onclick="localStorage.setItem('${defs.key}','text value' )">text value</button>
|
|
939
|
-
<button onclick="localStorage.removeItem('${defs.key}' )">set blank</button>
|
|
962
|
+
<button onclick="localStorage.setItem('${defs.key}','text value' )">text value</button>
|
|
963
|
+
<button onclick="localStorage.removeItem('${defs.key}' )">set blank</button>
|
|
940
964
|
`}
|
|
941
965
|
, play: async ({canvasElement}) =>
|
|
942
966
|
{
|
|
@@ -1009,7 +1033,7 @@ export const FromStorageWithDefault:Story =
|
|
|
1009
1033
|
|
|
1010
1034
|
export const TypeAttribute:Story =
|
|
1011
1035
|
{ args : {title: 'local-storage type attribute variations', body:`
|
|
1012
|
-
|
|
1036
|
+
|
|
1013
1037
|
<local-storage key="textKey" slice="text-key" type="text" live="live"></local-storage>
|
|
1014
1038
|
<local-storage key="dateKey" slice="date-key" type="date" live="live"></local-storage>
|
|
1015
1039
|
<local-storage key="timeKey" slice="time-key" type="time" live="live"></local-storage>
|
|
@@ -1059,6 +1083,8 @@ export const TypeAttribute:Story =
|
|
|
1059
1083
|
`}
|
|
1060
1084
|
, play: async ({canvasElement}) =>
|
|
1061
1085
|
{
|
|
1086
|
+
window['JsonSample'] = {a:1,b:'B'};
|
|
1087
|
+
|
|
1062
1088
|
const canvas = within(canvasElement);
|
|
1063
1089
|
await canvas.findByText(TypeAttribute.args!.title as string);
|
|
1064
1090
|
const byText = txt => canvas.getByText(txt)
|
|
@@ -1227,6 +1253,16 @@ export const TypeAttribute:Story =
|
|
|
1227
1253
|
expectVal('json-key' ,'\na : 1b : B' );
|
|
1228
1254
|
},
|
|
1229
1255
|
};
|
|
1256
|
+
|
|
1257
|
+
const TestStories = { Demo, AlwaysOverride, FromStorageWithDefault, TypeAttribute };
|
|
1258
|
+
|
|
1259
|
+
/* istanbul ignore else -- @preserve */
|
|
1260
|
+
if( 'test' === import.meta.env.MODE )
|
|
1261
|
+
{ localStorage.clear();
|
|
1262
|
+
const {playStories} = await import('./renderPlay');
|
|
1263
|
+
const {describe} = await import('vitest')
|
|
1264
|
+
describe('slots', () => playStories( TestStories, meta ) );
|
|
1265
|
+
}
|
|
1230
1266
|
</pre></td></tr></table></pre>
|
|
1231
1267
|
|
|
1232
1268
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -1234,7 +1270,7 @@ export const TypeAttribute:Story =
|
|
|
1234
1270
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1235
1271
|
Code coverage generated by
|
|
1236
1272
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1237
|
-
at 2024-
|
|
1273
|
+
at 2024-06-25T03:55:40.964Z
|
|
1238
1274
|
</div>
|
|
1239
1275
|
<script src="../../prettify.js"></script>
|
|
1240
1276
|
<script>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for src/stories/location-element.stories.ts</title>
|
|
6
|
+
<title>Code coverage report for src/stories/location-element.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> location-element.stories.ts</h1>
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/stories</a> location-element.test.stories.ts</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>62/62</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
40
|
<span class="strong">100% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>16/16</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>50/50</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -196,7 +196,20 @@
|
|
|
196
196
|
<a name='L131'></a><a href='#L131'>131</a>
|
|
197
197
|
<a name='L132'></a><a href='#L132'>132</a>
|
|
198
198
|
<a name='L133'></a><a href='#L133'>133</a>
|
|
199
|
-
<a name='L134'></a><a href='#L134'>134</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>
|
|
209
|
+
<a name='L144'></a><a href='#L144'>144</a>
|
|
210
|
+
<a name='L145'></a><a href='#L145'>145</a>
|
|
211
|
+
<a name='L146'></a><a href='#L146'>146</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
212
|
+
<span class="cline-any cline-neutral"> </span>
|
|
200
213
|
<span class="cline-any cline-neutral"> </span>
|
|
201
214
|
<span class="cline-any cline-neutral"> </span>
|
|
202
215
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -329,13 +342,25 @@
|
|
|
329
342
|
<span class="cline-any cline-neutral"> </span>
|
|
330
343
|
<span class="cline-any cline-neutral"> </span>
|
|
331
344
|
<span class="cline-any cline-neutral"> </span>
|
|
345
|
+
<span class="cline-any cline-neutral"> </span>
|
|
346
|
+
<span class="cline-any cline-neutral"> </span>
|
|
347
|
+
<span class="cline-any cline-yes">1x</span>
|
|
348
|
+
<span class="cline-any cline-neutral"> </span>
|
|
349
|
+
<span class="cline-any cline-neutral"> </span>
|
|
350
|
+
<span class="cline-any cline-yes">1x</span>
|
|
351
|
+
<span class="cline-any cline-neutral"> </span>
|
|
352
|
+
<span class="cline-any cline-yes">1x</span>
|
|
353
|
+
<span class="cline-any cline-yes">1x</span>
|
|
354
|
+
<span class="cline-any cline-yes">1x</span>
|
|
355
|
+
<span class="cline-any cline-neutral"> </span>
|
|
332
356
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">// noinspection DuplicatedCode
|
|
333
357
|
|
|
334
|
-
import type { StoryObj }
|
|
335
|
-
import {expect, getByTestId, within}
|
|
358
|
+
import type { StoryObj } from '@storybook/web-components';
|
|
359
|
+
import {expect, getByTestId, within} from '@storybook/test';
|
|
336
360
|
|
|
337
361
|
import '../custom-element/custom-element.js';
|
|
338
362
|
import '../custom-element/location-element.js';
|
|
363
|
+
import {RealtimeEventInSlice, SliceInitChangeEvent} from './slice-events.test.stories';
|
|
339
364
|
|
|
340
365
|
type TProps = { title: string; slice: string; href: string; live:string; body:string};
|
|
341
366
|
const defs: TProps =
|
|
@@ -357,13 +382,13 @@ function render(args: TProps)
|
|
|
357
382
|
|
|
358
383
|
<custom-element>
|
|
359
384
|
<template><!-- wrapping into template to prevent images loading within DCE declaration -->
|
|
360
|
-
<location-element
|
|
361
|
-
slice="${ slice }"
|
|
362
|
-
${ href ? `href="${ href }"`:''}
|
|
385
|
+
<location-element
|
|
386
|
+
slice="${ slice }"
|
|
387
|
+
${ href ? `href="${ href }"`:''}
|
|
363
388
|
live="${ live }"
|
|
364
389
|
></location-element>
|
|
365
|
-
|
|
366
|
-
|
|
390
|
+
|
|
391
|
+
|
|
367
392
|
${ body }
|
|
368
393
|
<xhtml:table>
|
|
369
394
|
<xhtml:tbody>
|
|
@@ -371,12 +396,12 @@ function render(args: TProps)
|
|
|
371
396
|
<xhtml:th><h3> URL properties </h3></xhtml:th>
|
|
372
397
|
<xhtml:td>{count(//value/@*)}</xhtml:td>
|
|
373
398
|
</xhtml:tr>
|
|
374
|
-
<apply-templates mode="attrs" select="
|
|
399
|
+
<apply-templates mode="attrs" select="//${ slice }/value/@*"></apply-templates>
|
|
375
400
|
</xhtml:tbody>
|
|
376
401
|
</xhtml:table>
|
|
377
402
|
<xhtml:table>
|
|
378
403
|
<h3> URL parameters </h3>
|
|
379
|
-
<apply-templates mode="attrs" select="
|
|
404
|
+
<apply-templates mode="attrs" select="//${ slice }/value/params/*/*"></apply-templates>
|
|
380
405
|
</xhtml:table>
|
|
381
406
|
<xsl:template mode="attrs" match="*|@*">
|
|
382
407
|
<xhtml:tr>
|
|
@@ -462,6 +487,17 @@ export const SrcAttribute:Story =
|
|
|
462
487
|
|
|
463
488
|
},
|
|
464
489
|
};
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
const TestStories = { Demo, SrcAttribute };
|
|
493
|
+
|
|
494
|
+
/* istanbul ignore else -- @preserve */
|
|
495
|
+
if( 'test' === import.meta.env.MODE )
|
|
496
|
+
{
|
|
497
|
+
const {playStories} = await import('./renderPlay');
|
|
498
|
+
const {describe} = await import('vitest')
|
|
499
|
+
describe('slots', () => playStories( TestStories, meta ) );
|
|
500
|
+
}
|
|
465
501
|
</pre></td></tr></table></pre>
|
|
466
502
|
|
|
467
503
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -469,7 +505,7 @@ export const SrcAttribute:Story =
|
|
|
469
505
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
470
506
|
Code coverage generated by
|
|
471
507
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
472
|
-
at 2024-
|
|
508
|
+
at 2024-06-25T03:55:40.964Z
|
|
473
509
|
</div>
|
|
474
510
|
<script src="../../prettify.js"></script>
|
|
475
511
|
<script>
|