@epa-wg/custom-element-dist 0.0.28 → 0.0.29
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 +2 -3
- package/coverage/index.html +5 -20
- package/coverage/src/custom-element/custom-element.js.html +74 -74
- package/coverage/src/custom-element/http-request.js.html +10 -10
- package/coverage/src/custom-element/index.html +1 -1
- package/coverage/src/custom-element/local-storage.js.html +1 -1
- package/coverage/src/custom-element/location-element.js.html +1 -1
- 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 +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 +1 -1
- package/coverage/src/stories/local-storage.test.stories.ts.html +1 -1
- package/coverage/src/stories/location-element.test.stories.ts.html +1 -1
- 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.html +1 -1
- package/coverage/src/stories/slots.test.stories.ts.html +1 -1
- package/coverage/src/stories/testStoryBook.ts.html +1 -1
- package/coverage/src/stories/version-select.test.stories.ts.html +1 -1
- package/coverage/src/sum.ts.html +1 -1
- package/dist/demo/demo.css +0 -3
- package/package.json +2 -2
- package/public/demo/demo.css +0 -3
- 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/components/autocomplete.html +1 -1
- package/src/material/components/dropdown.html +1 -1
- package/src/material/components/icon-link.html +161 -0
- package/src/material/components/menu.html +1 -1
- package/src/material/components.html +16 -4
- package/src/material/index.html +10 -68
- package/src/material/material.css +1 -1
- package/src/mocks/versions.mock.ts +8 -8
- package/storybook-static/assets/{Color-ERTF36HU-ChyYtq0t.js → Color-ERTF36HU-CQkSD2nd.js} +1 -1
- package/storybook-static/assets/{Configure-CJVwFVjC.js → Configure-DOhzHFEs.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-CFRXHY34-Bz6q-OqD.js → DocsRenderer-CFRXHY34-BSJkbsd6.js} +2 -2
- package/storybook-static/assets/{handlers-B-OZtf2K.js → handlers-CW9pDZnt.js} +6 -6
- package/storybook-static/assets/{http-request.stories-DccXgHyF.js → http-request.stories-CBbknCOO.js} +1 -1
- package/storybook-static/assets/{iframe-Ddc_axoC.js → iframe-DOi4N7qI.js} +2 -2
- package/storybook-static/assets/{index-f2MAjm2i.js → index-B3QjF0Ed.js} +1 -1
- package/storybook-static/assets/{index-CiCdFubk.js → index-CaL3Qp7t.js} +4 -4
- package/storybook-static/assets/{index-tfEkrhWr.js → index-DgFM0Ce3.js} +1 -1
- package/storybook-static/assets/{index-lY6s0fkU.js → index-YxUFxnQR.js} +1 -1
- package/storybook-static/assets/{preview-CfH4_OzN.js → preview-C992A1Y-.js} +2 -2
- package/storybook-static/assets/{preview-BUQm51_C.js → preview-CfWMRsRq.js} +1 -1
- package/storybook-static/demo/demo.css +0 -3
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/project.json +1 -1
- 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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1730965830105,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@vitest/browser":"2.0.5","@vitest/coverage-istanbul":"2.0.5","msw":"2.4.5","msw-storybook-addon":"2.0.3","playwright":"1.47.0","vitest":"2.0.5","webdriverio":"9.0.9"},"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/web-components","portableStoriesFileCount":2,"storybookVersion":"8.3.3","storybookVersionSpecifier":"8.3.3","language":"typescript","storybookPackages":{"@chromatic-com/storybook":{"version":"2.0.2"},"@storybook/addon-mdx-gfm":{"version":"8.3.3"},"@storybook/blocks":{"version":"8.3.3"},"@storybook/test":{"version":"8.3.3"},"@storybook/test-runner":{"version":"0.19.1"},"@storybook/web-components":{"version":"8.3.3"},"@storybook/web-components-vite":{"version":"8.3.3"},"msw-storybook-addon":{"version":"2.0.3"},"storybook":{"version":"8.3.3"}},"addons":{"@storybook/addon-links":{"version":"8.3.3"},"@storybook/addon-essentials":{"version":"8.3.3"},"@storybook/addon-interactions":{"version":"8.3.3"}}}
|
|
@@ -1,10 +0,0 @@
|
|
|
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">0%</text>
|
|
10
|
-
</svg>
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/custom-element/demo</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../index.html">All files</a> src/custom-element/demo</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">0% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/4</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/0</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/0</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">0% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/4</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line low'></div>
|
|
65
|
-
<div class="pad1">
|
|
66
|
-
<table class="coverage-summary">
|
|
67
|
-
<thead>
|
|
68
|
-
<tr>
|
|
69
|
-
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
70
|
-
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
|
71
|
-
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
|
72
|
-
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
73
|
-
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
74
|
-
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
75
|
-
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
76
|
-
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
77
|
-
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
78
|
-
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
79
|
-
</tr>
|
|
80
|
-
</thead>
|
|
81
|
-
<tbody><tr>
|
|
82
|
-
<td class="file low" data-value="z.js"><a href="z.js.html">z.js</a></td>
|
|
83
|
-
<td data-value="0" class="pic low">
|
|
84
|
-
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
|
-
</td>
|
|
86
|
-
<td data-value="0" class="pct low">0%</td>
|
|
87
|
-
<td data-value="4" class="abs low">0/4</td>
|
|
88
|
-
<td data-value="100" class="pct high">100%</td>
|
|
89
|
-
<td data-value="0" class="abs high">0/0</td>
|
|
90
|
-
<td data-value="100" class="pct high">100%</td>
|
|
91
|
-
<td data-value="0" class="abs high">0/0</td>
|
|
92
|
-
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="4" class="abs low">0/4</td>
|
|
94
|
-
</tr>
|
|
95
|
-
|
|
96
|
-
</tbody>
|
|
97
|
-
</table>
|
|
98
|
-
</div>
|
|
99
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
100
|
-
</div><!-- /wrapper -->
|
|
101
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
|
-
Code coverage generated by
|
|
103
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2024-11-07T03:27:34.733Z
|
|
105
|
-
</div>
|
|
106
|
-
<script src="../../../prettify.js"></script>
|
|
107
|
-
<script>
|
|
108
|
-
window.onload = function () {
|
|
109
|
-
prettyPrint();
|
|
110
|
-
};
|
|
111
|
-
</script>
|
|
112
|
-
<script src="../../../sorter.js"></script>
|
|
113
|
-
<script src="../../../block-navigation.js"></script>
|
|
114
|
-
</body>
|
|
115
|
-
</html>
|
|
116
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
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">0%</text>
|
|
10
|
-
</svg>
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<!doctype html>
|
|
3
|
-
<html lang="en">
|
|
4
|
-
|
|
5
|
-
<head>
|
|
6
|
-
<title>Code coverage report for src/custom-element/demo/z.js</title>
|
|
7
|
-
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
-
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
-
<style type='text/css'>
|
|
13
|
-
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<div class='wrapper'>
|
|
21
|
-
<div class='pad1'>
|
|
22
|
-
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/custom-element/demo</a> z.js</h1>
|
|
23
|
-
<div class='clearfix'>
|
|
24
|
-
|
|
25
|
-
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">0% </span>
|
|
27
|
-
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/4</span>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">100% </span>
|
|
34
|
-
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/0</span>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">100% </span>
|
|
41
|
-
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>0/0</span>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">0% </span>
|
|
48
|
-
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/4</span>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
<p class="quiet">
|
|
55
|
-
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
-
</p>
|
|
57
|
-
<template id="filterTemplate">
|
|
58
|
-
<div class="quiet">
|
|
59
|
-
Filter:
|
|
60
|
-
<input type="search" id="fileSearch">
|
|
61
|
-
</div>
|
|
62
|
-
</template>
|
|
63
|
-
</div>
|
|
64
|
-
<div class='status-line low'></div>
|
|
65
|
-
<pre><table class="coverage">
|
|
66
|
-
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
-
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
-
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
-
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
-
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
-
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
-
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
-
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
-
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
-
<a name='L10'></a><a href='#L10'>10</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
76
|
-
<span class="cline-any cline-neutral"> </span>
|
|
77
|
-
<span class="cline-any cline-no"> </span>
|
|
78
|
-
<span class="cline-any cline-no"> </span>
|
|
79
|
-
<span class="cline-any cline-neutral"> </span>
|
|
80
|
-
<span class="cline-any cline-no"> </span>
|
|
81
|
-
<span class="cline-any cline-neutral"> </span>
|
|
82
|
-
<span class="cline-any cline-no"> </span>
|
|
83
|
-
<span class="cline-any cline-neutral"> </span>
|
|
84
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"> import circle from "circle";
|
|
85
|
-
import circle2 from "lib-root/circle.js";
|
|
86
|
-
<span class="cstat-no" title="statement not covered" > console.log(circle())</span>
|
|
87
|
-
<span class="cstat-no" title="statement not covered" > try{</span>
|
|
88
|
-
|
|
89
|
-
<span class="cstat-no" title="statement not covered" > console.log(import.meta.resolve('lib-root/a.js'))</span>
|
|
90
|
-
}catch( err ){
|
|
91
|
-
<span class="cstat-no" title="statement not covered" > console.error(err.message)</span>
|
|
92
|
-
}
|
|
93
|
-
</pre></td></tr></table></pre>
|
|
94
|
-
|
|
95
|
-
<div class='push'></div><!-- for sticky footer -->
|
|
96
|
-
</div><!-- /wrapper -->
|
|
97
|
-
<div class='footer quiet pad2 space-top1 center small'>
|
|
98
|
-
Code coverage generated by
|
|
99
|
-
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
100
|
-
at 2024-11-07T03:27:34.733Z
|
|
101
|
-
</div>
|
|
102
|
-
<script src="../../../prettify.js"></script>
|
|
103
|
-
<script>
|
|
104
|
-
window.onload = function () {
|
|
105
|
-
prettyPrint();
|
|
106
|
-
};
|
|
107
|
-
</script>
|
|
108
|
-
<script src="../../../sorter.js"></script>
|
|
109
|
-
<script src="../../../block-navigation.js"></script>
|
|
110
|
-
</body>
|
|
111
|
-
</html>
|
|
112
|
-
|
package/dist/demo/s1.xslt
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
3
|
-
xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0"
|
|
4
|
-
exclude-result-prefixes="exsl">
|
|
5
|
-
<xsl:template match="ignore">
|
|
6
|
-
<xsl:choose>
|
|
7
|
-
<xsl:when test="//attr">
|
|
8
|
-
<xsl:value-of select="//attr"/>
|
|
9
|
-
</xsl:when>
|
|
10
|
-
<xsl:otherwise>
|
|
11
|
-
<xsl:value-of select="def"/>
|
|
12
|
-
</xsl:otherwise>
|
|
13
|
-
</xsl:choose>
|
|
14
|
-
<xsl:value-of select="."/>
|
|
15
|
-
</xsl:template>
|
|
16
|
-
<xsl:template mode="payload" match="attributes">
|
|
17
|
-
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1">
|
|
18
|
-
<u xmlns="" data-dce-id="2">
|
|
19
|
-
<dce-text data-dce-id="3">
|
|
20
|
-
<xsl:call-template name="slot">
|
|
21
|
-
<xsl:with-param name="slotname" select="''"/>
|
|
22
|
-
<xsl:with-param name="defaultvalue">
|
|
23
|
-
<dce-text xmlns="" data-dce-id="4">is green</dce-text>
|
|
24
|
-
</xsl:with-param>
|
|
25
|
-
</xsl:call-template>
|
|
26
|
-
</dce-text>
|
|
27
|
-
</u>
|
|
28
|
-
</dce-root>
|
|
29
|
-
</xsl:template>
|
|
30
|
-
<xsl:template match="/">
|
|
31
|
-
<xsl:apply-templates mode="payload" select="/datadom/attributes"/>
|
|
32
|
-
</xsl:template>
|
|
33
|
-
|
|
34
|
-
<xsl:template match="@*|node()" mode="copy-html">
|
|
35
|
-
<xsl:copy><xsl:apply-templates select="@*|node()" mode="copy-html"/></xsl:copy>
|
|
36
|
-
</xsl:template>
|
|
37
|
-
<xsl:template match="node()[starts-with(name(),'xhtml:')]" mode="copy-html">
|
|
38
|
-
<xsl:element name="{local-name()}"><xsl:apply-templates select="@*|node()" mode="copy-html"/></xsl:element>
|
|
39
|
-
</xsl:template>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<xsl:template name="slot">
|
|
43
|
-
<xsl:param name="slotname"/>
|
|
44
|
-
<xsl:param name="defaultvalue"/>
|
|
45
|
-
<xsl:choose>
|
|
46
|
-
<xsl:when test="//payload/*[@slot=$slotname]">
|
|
47
|
-
<xsl:apply-templates mode="copy-html" select="//payload/*[@slot=$slotname]"/>
|
|
48
|
-
</xsl:when>
|
|
49
|
-
<xsl:otherwise>
|
|
50
|
-
<xsl:apply-templates mode="copy-html" select="$defaultvalue"/>
|
|
51
|
-
</xsl:otherwise>
|
|
52
|
-
</xsl:choose>
|
|
53
|
-
</xsl:template>
|
|
54
|
-
<xsl:variable name="js-injected-body">
|
|
55
|
-
<xsl:call-template name="slot">
|
|
56
|
-
<xsl:with-param name="slotname" select="''"/>
|
|
57
|
-
<xsl:with-param name="defaultvalue"/>
|
|
58
|
-
</xsl:call-template>
|
|
59
|
-
</xsl:variable>
|
|
60
|
-
</xsl:stylesheet>
|
package/dist/demo/z.html
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
5
|
-
<title>DOM merge - Declarative Custom Element implementation demo</title>
|
|
6
|
-
<link rel="icon" href="./wc-square.svg"/>
|
|
7
|
-
<script type="importmap">
|
|
8
|
-
{
|
|
9
|
-
"imports": {
|
|
10
|
-
"@epa-wg/custom-element/": "../",
|
|
11
|
-
"@epa-wg/custom-element-dist/": "../"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
</script>
|
|
15
|
-
<script type="module" src="../http-request.js"></script>
|
|
16
|
-
<script type="module" src="../location-element.js"></script>
|
|
17
|
-
<script type="module" src="../custom-element.js"></script>
|
|
18
|
-
<style>
|
|
19
|
-
@import "./demo.css";
|
|
20
|
-
dt{ font-weight: bold}
|
|
21
|
-
dd{ padding: 0;}
|
|
22
|
-
h1,h3{ margin: 0;}
|
|
23
|
-
nav{ gap:0; }
|
|
24
|
-
</style>
|
|
25
|
-
</head>
|
|
26
|
-
<body>
|
|
27
|
-
|
|
28
|
-
<custom-element src="./html-template.html#dwc-logo">
|
|
29
|
-
<template><i>loading SVG from templates file ...</i></template>
|
|
30
|
-
</custom-element>
|
|
31
|
-
|
|
32
|
-
</body>
|
|
33
|
-
</html>
|
package/dist/demo/z.js
DELETED
package/dist/demo/z.xml
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<dce-root data-dce-id="1" xmlns:dce="urn:schemas-epa-wg:dce" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
3
|
-
<location-element slice="window-url" data-dce-id="2"/>
|
|
4
|
-
<table data-dce-id="3">
|
|
5
|
-
<tr data-dce-id="4">
|
|
6
|
-
<th data-dce-id="5">
|
|
7
|
-
<u data-dce-id="6">URL properties</u>
|
|
8
|
-
</th>
|
|
9
|
-
</tr>
|
|
10
|
-
<tr data-dce-id="7">
|
|
11
|
-
<th data-dce-id="8">href</th>
|
|
12
|
-
<td data-dce-id="9">http://localhost:63342/custom-element/demo/a.html?_ijt=qca6trk5kne6eo4s4tomq4egmm&_ij_reload=RELOAD_ON_SAVE</td>
|
|
13
|
-
</tr>
|
|
14
|
-
<tr data-dce-id="7">
|
|
15
|
-
<th data-dce-id="8">origin</th>
|
|
16
|
-
<td data-dce-id="9">http://localhost:63342</td>
|
|
17
|
-
</tr>
|
|
18
|
-
<tr data-dce-id="7">
|
|
19
|
-
<th data-dce-id="8">protocol</th>
|
|
20
|
-
<td data-dce-id="9">http:</td>
|
|
21
|
-
</tr>
|
|
22
|
-
<tr data-dce-id="7">
|
|
23
|
-
<th data-dce-id="8">host</th>
|
|
24
|
-
<td data-dce-id="9">localhost:63342</td>
|
|
25
|
-
</tr>
|
|
26
|
-
<tr data-dce-id="7">
|
|
27
|
-
<th data-dce-id="8">hostname</th>
|
|
28
|
-
<td data-dce-id="9">localhost</td>
|
|
29
|
-
</tr>
|
|
30
|
-
<tr data-dce-id="7">
|
|
31
|
-
<th data-dce-id="8">port</th>
|
|
32
|
-
<td data-dce-id="9">63342</td>
|
|
33
|
-
</tr>
|
|
34
|
-
<tr data-dce-id="7">
|
|
35
|
-
<th data-dce-id="8">pathname</th>
|
|
36
|
-
<td data-dce-id="9">/custom-element/demo/a.html</td>
|
|
37
|
-
</tr>
|
|
38
|
-
<tr data-dce-id="7">
|
|
39
|
-
<th data-dce-id="8">search</th>
|
|
40
|
-
<td data-dce-id="9">?_ijt=qca6trk5kne6eo4s4tomq4egmm&_ij_reload=RELOAD_ON_SAVE</td>
|
|
41
|
-
</tr>
|
|
42
|
-
<tr data-dce-id="7">
|
|
43
|
-
<th data-dce-id="8">hash</th>
|
|
44
|
-
<td data-dce-id="9"/>
|
|
45
|
-
</tr>
|
|
46
|
-
<tr data-dce-id="10">
|
|
47
|
-
<th data-dce-id="11">
|
|
48
|
-
<u data-dce-id="12">URL parameters</u>
|
|
49
|
-
</th>
|
|
50
|
-
</tr>
|
|
51
|
-
<tr data-dce-id="13">
|
|
52
|
-
<th data-dce-id="14">_ijt</th>
|
|
53
|
-
<td data-dce-id="15">qca6trk5kne6eo4s4tomq4egmm</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr data-dce-id="13">
|
|
56
|
-
<th data-dce-id="14">_ij_reload</th>
|
|
57
|
-
<td data-dce-id="15">RELOAD_ON_SAVE</td>
|
|
58
|
-
</tr>
|
|
59
|
-
</table>
|
|
60
|
-
</dce-root>
|
package/dist/demo/z1.html
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
5
|
-
<title>DOM merge - Declarative Custom Element implementation demo</title>
|
|
6
|
-
<link rel="icon" href="./wc-square.svg"/>
|
|
7
|
-
<script type="importmap">
|
|
8
|
-
{
|
|
9
|
-
"imports": {
|
|
10
|
-
"@epa-wg/custom-element/": "../",
|
|
11
|
-
"@epa-wg/custom-element-dist/": "../"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
</script>
|
|
15
|
-
<script type="module" src="../http-request.js"></script>
|
|
16
|
-
<script type="module" src="../location-element.js"></script>
|
|
17
|
-
<script type="module" src="../custom-element.js"></script>
|
|
18
|
-
<style>
|
|
19
|
-
@import "./demo.css";
|
|
20
|
-
dt{ font-weight: bold}
|
|
21
|
-
dd{ padding: 0;}
|
|
22
|
-
h1,h3{ margin: 0;}
|
|
23
|
-
nav{ gap:0; }
|
|
24
|
-
</style>
|
|
25
|
-
</head>
|
|
26
|
-
<body>
|
|
27
|
-
<button onclick="window.location.hash = `#@epa-wg/custom-element-dist@0.0.27/storybook-static/index.html`">set in page URL</button>
|
|
28
|
-
|
|
29
|
-
<custom-element src="@epa-wg/custom-element-dist/demo/npm-versions.html#npm-version"
|
|
30
|
-
package-name="@epa-wg/custom-element-dist"
|
|
31
|
-
></custom-element>
|
|
32
|
-
|
|
33
|
-
</body>
|
|
34
|
-
</html>
|
package/public/demo/s1.xslt
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
3
|
-
xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0"
|
|
4
|
-
exclude-result-prefixes="exsl">
|
|
5
|
-
<xsl:template match="ignore">
|
|
6
|
-
<xsl:choose>
|
|
7
|
-
<xsl:when test="//attr">
|
|
8
|
-
<xsl:value-of select="//attr"/>
|
|
9
|
-
</xsl:when>
|
|
10
|
-
<xsl:otherwise>
|
|
11
|
-
<xsl:value-of select="def"/>
|
|
12
|
-
</xsl:otherwise>
|
|
13
|
-
</xsl:choose>
|
|
14
|
-
<xsl:value-of select="."/>
|
|
15
|
-
</xsl:template>
|
|
16
|
-
<xsl:template mode="payload" match="attributes">
|
|
17
|
-
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1">
|
|
18
|
-
<u xmlns="" data-dce-id="2">
|
|
19
|
-
<dce-text data-dce-id="3">
|
|
20
|
-
<xsl:call-template name="slot">
|
|
21
|
-
<xsl:with-param name="slotname" select="''"/>
|
|
22
|
-
<xsl:with-param name="defaultvalue">
|
|
23
|
-
<dce-text xmlns="" data-dce-id="4">is green</dce-text>
|
|
24
|
-
</xsl:with-param>
|
|
25
|
-
</xsl:call-template>
|
|
26
|
-
</dce-text>
|
|
27
|
-
</u>
|
|
28
|
-
</dce-root>
|
|
29
|
-
</xsl:template>
|
|
30
|
-
<xsl:template match="/">
|
|
31
|
-
<xsl:apply-templates mode="payload" select="/datadom/attributes"/>
|
|
32
|
-
</xsl:template>
|
|
33
|
-
|
|
34
|
-
<xsl:template match="@*|node()" mode="copy-html">
|
|
35
|
-
<xsl:copy><xsl:apply-templates select="@*|node()" mode="copy-html"/></xsl:copy>
|
|
36
|
-
</xsl:template>
|
|
37
|
-
<xsl:template match="node()[starts-with(name(),'xhtml:')]" mode="copy-html">
|
|
38
|
-
<xsl:element name="{local-name()}"><xsl:apply-templates select="@*|node()" mode="copy-html"/></xsl:element>
|
|
39
|
-
</xsl:template>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<xsl:template name="slot">
|
|
43
|
-
<xsl:param name="slotname"/>
|
|
44
|
-
<xsl:param name="defaultvalue"/>
|
|
45
|
-
<xsl:choose>
|
|
46
|
-
<xsl:when test="//payload/*[@slot=$slotname]">
|
|
47
|
-
<xsl:apply-templates mode="copy-html" select="//payload/*[@slot=$slotname]"/>
|
|
48
|
-
</xsl:when>
|
|
49
|
-
<xsl:otherwise>
|
|
50
|
-
<xsl:apply-templates mode="copy-html" select="$defaultvalue"/>
|
|
51
|
-
</xsl:otherwise>
|
|
52
|
-
</xsl:choose>
|
|
53
|
-
</xsl:template>
|
|
54
|
-
<xsl:variable name="js-injected-body">
|
|
55
|
-
<xsl:call-template name="slot">
|
|
56
|
-
<xsl:with-param name="slotname" select="''"/>
|
|
57
|
-
<xsl:with-param name="defaultvalue"/>
|
|
58
|
-
</xsl:call-template>
|
|
59
|
-
</xsl:variable>
|
|
60
|
-
</xsl:stylesheet>
|
package/public/demo/z.html
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
5
|
-
<title>DOM merge - Declarative Custom Element implementation demo</title>
|
|
6
|
-
<link rel="icon" href="./wc-square.svg"/>
|
|
7
|
-
<script type="importmap">
|
|
8
|
-
{
|
|
9
|
-
"imports": {
|
|
10
|
-
"@epa-wg/custom-element/": "../",
|
|
11
|
-
"@epa-wg/custom-element-dist/": "../"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
</script>
|
|
15
|
-
<script type="module" src="../http-request.js"></script>
|
|
16
|
-
<script type="module" src="../location-element.js"></script>
|
|
17
|
-
<script type="module" src="../custom-element.js"></script>
|
|
18
|
-
<style>
|
|
19
|
-
@import "./demo.css";
|
|
20
|
-
dt{ font-weight: bold}
|
|
21
|
-
dd{ padding: 0;}
|
|
22
|
-
h1,h3{ margin: 0;}
|
|
23
|
-
nav{ gap:0; }
|
|
24
|
-
</style>
|
|
25
|
-
</head>
|
|
26
|
-
<body>
|
|
27
|
-
|
|
28
|
-
<custom-element src="./html-template.html#dwc-logo">
|
|
29
|
-
<template><i>loading SVG from templates file ...</i></template>
|
|
30
|
-
</custom-element>
|
|
31
|
-
|
|
32
|
-
</body>
|
|
33
|
-
</html>
|
package/public/demo/z.js
DELETED
package/public/demo/z.xml
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<dce-root data-dce-id="1" xmlns:dce="urn:schemas-epa-wg:dce" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
3
|
-
<location-element slice="window-url" data-dce-id="2"/>
|
|
4
|
-
<table data-dce-id="3">
|
|
5
|
-
<tr data-dce-id="4">
|
|
6
|
-
<th data-dce-id="5">
|
|
7
|
-
<u data-dce-id="6">URL properties</u>
|
|
8
|
-
</th>
|
|
9
|
-
</tr>
|
|
10
|
-
<tr data-dce-id="7">
|
|
11
|
-
<th data-dce-id="8">href</th>
|
|
12
|
-
<td data-dce-id="9">http://localhost:63342/custom-element/demo/a.html?_ijt=qca6trk5kne6eo4s4tomq4egmm&_ij_reload=RELOAD_ON_SAVE</td>
|
|
13
|
-
</tr>
|
|
14
|
-
<tr data-dce-id="7">
|
|
15
|
-
<th data-dce-id="8">origin</th>
|
|
16
|
-
<td data-dce-id="9">http://localhost:63342</td>
|
|
17
|
-
</tr>
|
|
18
|
-
<tr data-dce-id="7">
|
|
19
|
-
<th data-dce-id="8">protocol</th>
|
|
20
|
-
<td data-dce-id="9">http:</td>
|
|
21
|
-
</tr>
|
|
22
|
-
<tr data-dce-id="7">
|
|
23
|
-
<th data-dce-id="8">host</th>
|
|
24
|
-
<td data-dce-id="9">localhost:63342</td>
|
|
25
|
-
</tr>
|
|
26
|
-
<tr data-dce-id="7">
|
|
27
|
-
<th data-dce-id="8">hostname</th>
|
|
28
|
-
<td data-dce-id="9">localhost</td>
|
|
29
|
-
</tr>
|
|
30
|
-
<tr data-dce-id="7">
|
|
31
|
-
<th data-dce-id="8">port</th>
|
|
32
|
-
<td data-dce-id="9">63342</td>
|
|
33
|
-
</tr>
|
|
34
|
-
<tr data-dce-id="7">
|
|
35
|
-
<th data-dce-id="8">pathname</th>
|
|
36
|
-
<td data-dce-id="9">/custom-element/demo/a.html</td>
|
|
37
|
-
</tr>
|
|
38
|
-
<tr data-dce-id="7">
|
|
39
|
-
<th data-dce-id="8">search</th>
|
|
40
|
-
<td data-dce-id="9">?_ijt=qca6trk5kne6eo4s4tomq4egmm&_ij_reload=RELOAD_ON_SAVE</td>
|
|
41
|
-
</tr>
|
|
42
|
-
<tr data-dce-id="7">
|
|
43
|
-
<th data-dce-id="8">hash</th>
|
|
44
|
-
<td data-dce-id="9"/>
|
|
45
|
-
</tr>
|
|
46
|
-
<tr data-dce-id="10">
|
|
47
|
-
<th data-dce-id="11">
|
|
48
|
-
<u data-dce-id="12">URL parameters</u>
|
|
49
|
-
</th>
|
|
50
|
-
</tr>
|
|
51
|
-
<tr data-dce-id="13">
|
|
52
|
-
<th data-dce-id="14">_ijt</th>
|
|
53
|
-
<td data-dce-id="15">qca6trk5kne6eo4s4tomq4egmm</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr data-dce-id="13">
|
|
56
|
-
<th data-dce-id="14">_ij_reload</th>
|
|
57
|
-
<td data-dce-id="15">RELOAD_ON_SAVE</td>
|
|
58
|
-
</tr>
|
|
59
|
-
</table>
|
|
60
|
-
</dce-root>
|