@epa-wg/custom-element-dist 0.0.32 → 0.0.33
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/.storybook/main.ts +3 -7
- package/.storybook/preview.ts +4 -6
- package/README.md +4 -4
- package/coverage/coverage-final.json +7 -18
- package/coverage/index.html +30 -30
- package/coverage/src/custom-element/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js.html +579 -429
- package/coverage/src/custom-element/http-request.js/coverage.svg +1 -1
- package/coverage/src/custom-element/http-request.js.html +13 -13
- package/coverage/src/custom-element/index.html +29 -29
- package/coverage/src/custom-element/local-storage.js.html +1 -1
- package/coverage/src/custom-element/location-element.js.html +31 -31
- package/coverage/src/custom-element/module-url.js/coverage.svg +1 -1
- package/coverage/src/custom-element/module-url.js.html +20 -20
- 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/coverage.svg +1 -1
- package/coverage/src/stories/{local-storage.test.stories.ts → frame.canvas.ts}/coverage.svg +1 -1
- package/coverage/src/stories/frame.canvas.ts.html +175 -0
- package/coverage/src/stories/http-request.stories.ts.html +1 -1
- package/coverage/src/stories/index.html +14 -179
- package/coverage/src/stories/testStoryBook.ts.html +8 -8
- package/coverage/src/sum.ts.html +1 -1
- package/dist/custom-element-6slVaFEs.cjs +97 -0
- package/dist/custom-element-WnOqmEOe.js +609 -0
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +2 -2
- package/dist/demo/attributes.html +153 -0
- package/dist/demo/external-templates-sb-6.html +42 -0
- package/dist/demo/external-templates-sb-7.html +42 -0
- package/dist/demo/html-template.html +1 -1
- package/dist/demo/module-url-sb-2.html +46 -0
- package/dist/demo/module-url-sb-4.html +48 -0
- package/dist/demo/module-url-sb-5.html +53 -0
- package/dist/demo/s.xml +71 -8
- package/dist/demo/s.xslt +55 -31
- package/dist/demo/ss.html +13 -4
- package/dist/mockServiceWorker.js +31 -8
- package/package.json +25 -26
- package/public/demo/attributes.html +153 -0
- package/public/demo/external-templates-sb-6.html +42 -0
- package/public/demo/external-templates-sb-7.html +42 -0
- package/public/demo/html-template.html +1 -1
- package/public/demo/module-url-sb-2.html +46 -0
- package/public/demo/module-url-sb-4.html +48 -0
- package/public/demo/module-url-sb-5.html +53 -0
- package/public/demo/s.xml +71 -8
- package/public/demo/s.xslt +55 -31
- package/public/demo/ss.html +13 -4
- package/public/mockServiceWorker.js +31 -8
- package/src/custom-element/custom-element.d.ts +4 -0
- package/src/custom-element/custom-element.js +91 -41
- package/src/custom-element/demo/attributes.html +153 -0
- package/src/custom-element/demo/html-template.html +1 -1
- package/src/custom-element/demo/s.xml +71 -8
- package/src/custom-element/demo/s.xslt +55 -31
- package/src/custom-element/demo/ss.html +13 -4
- package/src/custom-element/ide/web-types-dce.json +1 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/custom-element/index.html +1 -1
- package/src/material/components/badge.html +240 -0
- package/src/material/components/dropdown.html +7 -12
- package/src/material/components/icon-link.html +1 -0
- package/src/material/components/icon.html +253 -0
- package/src/material/components/input.html +290 -82
- package/src/material/components/menu.html +7 -5
- package/src/material/components.html +48 -11
- package/src/material/theme/semantic.css +20 -1
- package/src/mocks/versions.mock.ts +1 -1
- package/src/stories/__screenshots__/attributes.test.stories.ts +1 -0
- package/src/stories/__screenshots__/external-template.test.stories.ts +1 -0
- package/src/stories/__screenshots__/module-url.test.stories.ts +1 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-Attributes-definition-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-Attributes-runtime-change-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-Instance-Attributes-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-Instance-Attributes-2.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-cloneAs-el-newTag--1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-mergeAttr--from--to---1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-mergeAttr--from--to---2.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-mergeAttr--from--to---3.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/attributes-mix-to-from--1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-Attributes-definition-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-Attributes-runtime-change-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-Instance-Attributes-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-Instance-Attributes-2.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-cloneAs-el-newTag--1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-http-request-headers-and-response-status-and-headers-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-http-request-with-delayed--5-seconds-response-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-http-request-with-error-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-mergeAttr--from--to---1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-mergeAttr--from--to---2.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-mergeAttr--from--to---3.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-mix-to-from--1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-url-and-slice-1.png +0 -0
- package/src/stories/__screenshots__/stories.test.ts/http-request-url-change-1.png +0 -0
- package/src/stories/attributes.test.stories.ts +83 -17
- package/src/stories/external-template.test.stories.ts +16 -14
- package/src/stories/frame.canvas.ts +31 -0
- package/src/stories/module-url.test.stories.ts +29 -61
- package/storybook-static/assets/Color-F6OSRLHC-Cbp293x2.js +1 -0
- package/storybook-static/assets/Configure-BrFr4SLE.js +165 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-DhHzJiIO.js +2 -0
- package/storybook-static/assets/attributes.test.stories-CzWkKw0e.js +1 -0
- package/storybook-static/assets/{attributes.test.stories-D1X6EBrd.js → attributes.test.stories-Gg9LQTEK.js} +109 -38
- package/storybook-static/assets/{css.test.stories-Cp_g2hE1.js → css.test.stories-B_3ltOrx.js} +1 -1
- package/storybook-static/assets/custom-element-CPnvJnn8.js +97 -0
- package/storybook-static/assets/{dom-merge.test.stories-hbpdCka0.js → dom-merge.test.stories-nQxcgLoM.js} +1 -1
- package/storybook-static/assets/entry-preview-docs-Dwczwtsc.js +2 -0
- package/storybook-static/assets/external-template.test.stories-BivZqBTp.js +1 -0
- package/storybook-static/assets/{external-template.test.stories-BK89h6sk.js → external-template.test.stories-DZ-rjnfd.js} +38 -40
- package/storybook-static/assets/{form.test.stories-BfoLe_rw.js → form.test.stories-DQhPYtMj.js} +1 -1
- package/storybook-static/assets/frame.canvas-ClTqYyMN.js +1 -0
- package/storybook-static/assets/{handlers-yVPwH_Nz.js → handlers-CLkps6Nz.js} +17 -14
- package/storybook-static/assets/{http-request.stories-CBFJS2Ws.js → http-request.stories-jo0f73nw.js} +1 -1
- package/storybook-static/assets/iframe-CZwRpnn9.js +199 -0
- package/storybook-static/assets/index-B68YUdzy.js +621 -0
- package/storybook-static/assets/index-BwkS7JH_.js +8 -0
- package/storybook-static/assets/index-CJQtnF9V.js +1 -0
- package/storybook-static/assets/index-Dr4PwNfd.js +240 -0
- package/storybook-static/assets/{local-storage.test.stories-C0Yzy6Am.js → local-storage.test.stories-uA5EKRPf.js} +1 -1
- package/storybook-static/assets/{location-element.test.stories-DNFrEu5A.js → location-element.test.stories-Cu-6Elcg.js} +1 -1
- package/storybook-static/assets/module-url.test.stories-CD_wusXQ.js +142 -0
- package/storybook-static/assets/module-url.test.stories-CTjUAk3J.js +1 -0
- package/storybook-static/assets/preview-1xJJ3sKE.js +1 -0
- package/storybook-static/assets/preview-BFlNN3Wj.js +1 -0
- package/storybook-static/assets/preview-CTOeX_lO.js +1 -0
- package/storybook-static/assets/preview-Cm4PPhHS.js +50 -0
- package/storybook-static/assets/preview-CuCH40jj.js +2 -0
- package/storybook-static/assets/preview-DfTudP20.js +1 -0
- package/storybook-static/assets/{set-url.test.stories-BBfLxv2u.js → set-url.test.stories-CY7B9BVZ.js} +1 -1
- package/storybook-static/assets/{slice-events.test.stories-HcXF8XQI.js → slice-events.test.stories-BVnPXm6e.js} +1 -1
- package/storybook-static/assets/{slots.test.stories-i6mnIFM2.js → slots.test.stories-Dxsa9KdA.js} +1 -1
- package/storybook-static/assets/{version-select.test.stories-BsUFH6Va.js → version-select.test.stories-Buga1PAa.js} +1 -1
- package/storybook-static/demo/attributes.html +153 -0
- package/storybook-static/demo/external-templates-sb-6.html +42 -0
- package/storybook-static/demo/external-templates-sb-7.html +42 -0
- package/storybook-static/demo/html-template.html +1 -1
- package/storybook-static/demo/module-url-sb-2.html +46 -0
- package/storybook-static/demo/module-url-sb-4.html +48 -0
- package/storybook-static/demo/module-url-sb-5.html +53 -0
- package/storybook-static/demo/s.xml +71 -8
- package/storybook-static/demo/s.xslt +55 -31
- package/storybook-static/demo/ss.html +13 -4
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +6 -10
- package/storybook-static/index.json +1 -1
- package/storybook-static/mockServiceWorker.js +31 -8
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +8 -8
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +391 -0
- package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +230 -0
- 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-9/manager-bundle.js +58 -58
- package/storybook-static/sb-manager/globals-module-info.js +9 -0
- package/storybook-static/sb-manager/globals-runtime.js +10719 -10473
- package/storybook-static/sb-manager/runtime.js +4944 -6321
- package/coverage/src/stories/attributes.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/attributes.test.stories.ts.html +0 -814
- package/coverage/src/stories/css.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/css.test.stories.ts.html +0 -460
- package/coverage/src/stories/dom-merge.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/dom-merge.test.stories.ts.html +0 -706
- package/coverage/src/stories/external-template.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/external-template.test.stories.ts.html +0 -865
- package/coverage/src/stories/form.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/form.test.stories.ts.html +0 -661
- package/coverage/src/stories/local-storage.test.stories.ts.html +0 -1315
- package/coverage/src/stories/location-element.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/location-element.test.stories.ts.html +0 -523
- package/coverage/src/stories/module-url.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/module-url.test.stories.ts.html +0 -640
- package/coverage/src/stories/set-url.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/set-url.test.stories.ts.html +0 -433
- package/coverage/src/stories/slice-events.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/slice-events.test.stories.ts.html +0 -952
- package/coverage/src/stories/slots.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/slots.test.stories.ts.html +0 -742
- package/coverage/src/stories/version-select.test.stories.ts/coverage.svg +0 -10
- package/coverage/src/stories/version-select.test.stories.ts.html +0 -397
- package/dist/custom-element-D2wf_rqP.js +0 -576
- package/dist/custom-element-Dtzhbjkc.cjs +0 -97
- package/storybook-static/assets/Color-F6OSRLHC-BU3iy8jH.js +0 -1
- package/storybook-static/assets/Configure-DN6ifayP.js +0 -165
- package/storybook-static/assets/DocsRenderer-CFRXHY34-BaVEufDj.js +0 -2
- package/storybook-static/assets/custom-element-uuAtIYWS.js +0 -97
- package/storybook-static/assets/entry-preview-docs-BbcIMweR.js +0 -2
- package/storybook-static/assets/iframe-CJEL_4Nu.js +0 -2
- package/storybook-static/assets/index-BcZLpTeD.js +0 -8
- package/storybook-static/assets/index-CxRwF5Or.js +0 -234
- package/storybook-static/assets/index-D-8MO0q_.js +0 -1
- package/storybook-static/assets/index-D5fBh-7N.js +0 -1
- package/storybook-static/assets/index-DM-KBPdl.js +0 -1
- package/storybook-static/assets/index-RSFf30w1.js +0 -1
- package/storybook-static/assets/index-SnjB5uV8.js +0 -769
- package/storybook-static/assets/module-url.test.stories-CXibF5Ta.js +0 -208
- package/storybook-static/assets/preview-BhhEZcNS.js +0 -1
- package/storybook-static/assets/preview-Bnd0XhaF.js +0 -52
- package/storybook-static/assets/preview-CNKoaWES.js +0 -1
- package/storybook-static/assets/preview-DAeyCMnM.js +0 -1
- package/storybook-static/assets/preview-DHPc-V4N.js +0 -1
- package/storybook-static/assets/preview-DJMlNTk8.js +0 -2
- package/storybook-static/assets/preview-DYzi3Z2p.js +0 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +0 -333
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +0 -40
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -391
- package/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
- package/storybook-static/sb-preview/globals.js +0 -33
- package/storybook-static/sb-preview/runtime.js +0 -7174
- package/test-runner-jest.config.js +0 -15
- /package/storybook-static/sb-addons/{essentials-actions-3 → essentials-actions-2}/manager-bundle.js.LEGAL.txt +0 -0
- /package/storybook-static/sb-addons/{essentials-controls-2 → essentials-controls-1}/manager-bundle.js.LEGAL.txt +0 -0
- /package/storybook-static/sb-addons/{links-1 → essentials-docs-3}/manager-bundle.js.LEGAL.txt +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
3
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
4
|
+
<head>
|
|
5
|
+
<!--
|
|
6
|
+
|
|
7
|
+
This page is part of src/stories/module-url.test.stories.ts, test #2
|
|
8
|
+
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
14
|
+
<title>importmap custom-element Declarative Custom Element implementation demo</title>
|
|
15
|
+
<link rel="icon" href="./wc-square.svg"/>
|
|
16
|
+
<style>
|
|
17
|
+
dce-root {
|
|
18
|
+
box-shadow: 0 0 0.5rem lime;
|
|
19
|
+
padding: 1rem;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
<script type="importmap">
|
|
24
|
+
{
|
|
25
|
+
"imports": {
|
|
26
|
+
"lib-root/": "./lib-dir/",
|
|
27
|
+
"embed-lib": "./lib-dir/embed-lib.html"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
<script type="module" src="../src/custom-element/location-element.js"></script>
|
|
32
|
+
<script type="module" src="../src/custom-element/module-url.js"></script>
|
|
33
|
+
<script type="module" src="../src/custom-element/custom-element.js"></script>
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<p>Should render formula</p>
|
|
37
|
+
<custom-element src="./html-template.html#sophomores-dream">
|
|
38
|
+
<template><i>loading MathML from HTML file ...</i></template>
|
|
39
|
+
</custom-element>
|
|
40
|
+
|
|
41
|
+
</body>
|
|
42
|
+
</html>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
3
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
4
|
+
<head>
|
|
5
|
+
<!--
|
|
6
|
+
|
|
7
|
+
This page is part of src/stories/module-url.test.stories.ts, test #2
|
|
8
|
+
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
14
|
+
<title>importmap custom-element Declarative Custom Element implementation demo</title>
|
|
15
|
+
<link rel="icon" href="./wc-square.svg"/>
|
|
16
|
+
<style>
|
|
17
|
+
dce-root {
|
|
18
|
+
box-shadow: 0 0 0.5rem lime;
|
|
19
|
+
padding: 1rem;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
<script type="importmap">
|
|
24
|
+
{
|
|
25
|
+
"imports": {
|
|
26
|
+
"lib-root/": "./lib-dir/",
|
|
27
|
+
"embed-lib": "./lib-dir/embed-lib.html"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
<script type="module" src="../src/custom-element/location-element.js"></script>
|
|
32
|
+
<script type="module" src="../src/custom-element/module-url.js"></script>
|
|
33
|
+
<script type="module" src="../src/custom-element/custom-element.js"></script>
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<p>Should render tree</p>
|
|
37
|
+
<custom-element src="./html-template.xhtml#embedded-xsl">
|
|
38
|
+
<template>whole XSLT is embedded into HTML body</template>
|
|
39
|
+
</custom-element>
|
|
40
|
+
|
|
41
|
+
</body>
|
|
42
|
+
</html>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<path class="cls-1"
|
|
74
74
|
d="m184.02,96.93l20.64-11.92c.47-.27.47-.79,0-1.06l-20.65-11.92h0c-4.44-2.57-8.22-2.57-12.67,0l-20.65,11.92c-.47.27-.47.79,0,1.06l20.64,11.92c4.44,2.57,8.22,2.57,12.67,0h0Z"/>
|
|
75
75
|
</svg>
|
|
76
|
-
<math id="sophomores-dream" display="block">
|
|
76
|
+
<math id="sophomores-dream" data-testid="ml-test" display="block">
|
|
77
77
|
<mrow>
|
|
78
78
|
<msubsup>
|
|
79
79
|
<mo>∫</mo>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
3
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
4
|
+
<head>
|
|
5
|
+
<!--
|
|
6
|
+
|
|
7
|
+
This page is part of src/stories/module-url.test.stories.ts, test #2
|
|
8
|
+
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
14
|
+
<title>importmap custom-element Declarative Custom Element implementation demo</title>
|
|
15
|
+
<link rel="icon" href="./wc-square.svg"/>
|
|
16
|
+
<script type="importmap">
|
|
17
|
+
{
|
|
18
|
+
"imports": {
|
|
19
|
+
"lib-root/": "./lib-dir/",
|
|
20
|
+
"embed-lib": "./lib-dir/embed-lib.html"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
<script type="module" src="../src/custom-element/location-element.js"></script>
|
|
25
|
+
<script type="module" src="../src/custom-element/module-url.js"></script>
|
|
26
|
+
<script type="module" src="../src/custom-element/custom-element.js"></script>
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<p><code>embed-lib</code> resolved to <code>./lib-dir/embed-lib.html</code> by page <i>importmap</i></p>
|
|
30
|
+
<custom-element>
|
|
31
|
+
<template>
|
|
32
|
+
<module-url slice="lib-url" src="embed-lib"></module-url>
|
|
33
|
+
<if test="//lib-url/@error">
|
|
34
|
+
<p>error: <b>{//lib-url/@error}</b></p>
|
|
35
|
+
</if>
|
|
36
|
+
<span data-testid="check">check the link:</span>
|
|
37
|
+
<a href="{//lib-url}">
|
|
38
|
+
<custom-element src="embed-lib#embed-lib-component">
|
|
39
|
+
failed to load
|
|
40
|
+
</custom-element>
|
|
41
|
+
</a>
|
|
42
|
+
</template>
|
|
43
|
+
</custom-element>
|
|
44
|
+
|
|
45
|
+
</body>
|
|
46
|
+
</html>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
3
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
4
|
+
<head>
|
|
5
|
+
<!--
|
|
6
|
+
|
|
7
|
+
This page is part of src/stories/module-url.test.stories.ts, test #2
|
|
8
|
+
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
14
|
+
<title>importmap custom-element Declarative Custom Element implementation demo</title>
|
|
15
|
+
<link rel="icon" href="./wc-square.svg"/>
|
|
16
|
+
<script type="importmap">
|
|
17
|
+
{
|
|
18
|
+
"imports": {
|
|
19
|
+
"lib-root/": "./lib-dir/",
|
|
20
|
+
"embed-lib": "./lib-dir/embed-lib.html"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
<script type="module" src="../src/custom-element/location-element.js"></script>
|
|
25
|
+
<script type="module" src="../src/custom-element/module-url.js"></script>
|
|
26
|
+
<script type="module" src="../src/custom-element/custom-element.js"></script>
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<p><code>lib-root</code> resolved to <code>lib-dir</code> by page <i>importmap</i></p>
|
|
30
|
+
|
|
31
|
+
<custom-element>
|
|
32
|
+
<template>
|
|
33
|
+
<module-url slice="lib-url" src="lib-root/embed-lib.html#embed-relative-hash"></module-url>
|
|
34
|
+
<module-url slice="img-url" src="lib-root/Smiley.svg"></module-url>
|
|
35
|
+
<if test="//lib-url/@error">
|
|
36
|
+
<p>error: <b>{//lib-url/@error}</b></p>
|
|
37
|
+
</if>
|
|
38
|
+
check the link:
|
|
39
|
+
<a href="{//lib-url}"> lib-root/embed-lib.html#embed-relative-hash <img src="{//img-url}" alt=""/></a>
|
|
40
|
+
<custom-element src="lib-root/embed-lib.html#embed-relative-hash">
|
|
41
|
+
failed to load
|
|
42
|
+
</custom-element>
|
|
43
|
+
|
|
44
|
+
</template>
|
|
45
|
+
</custom-element>
|
|
46
|
+
|
|
47
|
+
</body>
|
|
48
|
+
</html>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
3
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
4
|
+
<head>
|
|
5
|
+
<!--
|
|
6
|
+
|
|
7
|
+
This page is part of src/stories/module-url.test.stories.ts, test #2
|
|
8
|
+
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
14
|
+
<title>importmap custom-element Declarative Custom Element implementation demo</title>
|
|
15
|
+
<link rel="icon" href="./wc-square.svg"/>
|
|
16
|
+
<style>
|
|
17
|
+
dce-root {
|
|
18
|
+
box-shadow: 0 0 0.5rem lime;
|
|
19
|
+
padding: 1rem;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
}
|
|
22
|
+
</style>
|
|
23
|
+
<script type="importmap">
|
|
24
|
+
{
|
|
25
|
+
"imports": {
|
|
26
|
+
"lib-root/": "./lib-dir/",
|
|
27
|
+
"embed-lib": "./lib-dir/embed-lib.html"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
<script type="module" src="../src/custom-element/location-element.js"></script>
|
|
32
|
+
<script type="module" src="../src/custom-element/module-url.js"></script>
|
|
33
|
+
<script type="module" src="../src/custom-element/custom-element.js"></script>
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<p>should render '👍 from embed-relative-file' and Vulcan Salute 🖖. Links should open matching page
|
|
37
|
+
</p>
|
|
38
|
+
<custom-element>
|
|
39
|
+
<template>
|
|
40
|
+
<module-url slice="lib-url" src="lib-root/embed-lib.html#embed-relative-file"></module-url>
|
|
41
|
+
<if test="//lib-url/@error">
|
|
42
|
+
<p>error: <b>{//lib-url/@error}</b></p>
|
|
43
|
+
</if>
|
|
44
|
+
check the link:
|
|
45
|
+
<a href="{//lib-url}"> lib-root/embed-lib.html#embed-relative-file </a>
|
|
46
|
+
<custom-element src="lib-root/embed-lib.html#embed-relative-file">
|
|
47
|
+
failed to load
|
|
48
|
+
</custom-element>
|
|
49
|
+
</template>
|
|
50
|
+
</custom-element>
|
|
51
|
+
|
|
52
|
+
</body>
|
|
53
|
+
</html>
|
|
@@ -1,12 +1,75 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<datadom>
|
|
3
|
-
<payload xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
<payload xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
|
4
|
+
<div xmlns="http://www.w3.org/1999/xhtml" slot="leading" data-dce-id="4">
|
|
5
|
+
<cem-icon image="history_edu" class="input-focused" data-dce-id="5">
|
|
6
|
+
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
7
|
+
xmlns:dce="urn:schemas-epa-wg:dce" data-dce-id="1">
|
|
8
|
+
<span xmlns="" class="icon material-icons" data-dce-id="5">history_edu</span>
|
|
9
|
+
</dce-root>
|
|
10
|
+
</cem-icon>
|
|
11
|
+
<cem-icon image="edit" class="input-unfocused" data-dce-id="6">
|
|
12
|
+
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
13
|
+
xmlns:dce="urn:schemas-epa-wg:dce" data-dce-id="1">
|
|
14
|
+
<span xmlns="" class="icon material-icons" data-dce-id="5">edit</span>
|
|
15
|
+
</dce-root>
|
|
16
|
+
</cem-icon>
|
|
17
|
+
</div>
|
|
18
|
+
<div xmlns="http://www.w3.org/1999/xhtml" slot="trailing" data-dce-id="7">
|
|
19
|
+
<label class="eye-contailer" for="visible-cb" data-dce-id="8">
|
|
20
|
+
<cem-icon image="visibility" class="visible-ico" tabindex="0" data-dce-id="9">
|
|
21
|
+
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
22
|
+
xmlns:dce="urn:schemas-epa-wg:dce" data-dce-id="1">
|
|
23
|
+
<span xmlns="" class="icon material-icons" data-dce-id="5">visibility</span>
|
|
24
|
+
</dce-root>
|
|
25
|
+
</cem-icon>
|
|
26
|
+
<cem-icon image="visibility_off" class="invisible-ico" tabindex="0" data-dce-id="10">
|
|
27
|
+
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
28
|
+
xmlns:dce="urn:schemas-epa-wg:dce" data-dce-id="1">
|
|
29
|
+
<span xmlns="" class="icon material-icons" data-dce-id="5">visibility_off</span>
|
|
30
|
+
</dce-root>
|
|
31
|
+
</cem-icon>
|
|
32
|
+
</label>
|
|
33
|
+
<cem-icon image="close" class="clear" tabindex="0" slice="password" slice-event="click" slice-value="''"
|
|
34
|
+
data-dce-id="11">
|
|
35
|
+
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
36
|
+
xmlns:dce="urn:schemas-epa-wg:dce" data-dce-id="1">
|
|
37
|
+
<span xmlns="" class="icon material-icons" data-dce-id="5">close</span>
|
|
38
|
+
</dce-root>
|
|
39
|
+
</cem-icon>
|
|
40
|
+
<dce-text data-dce-id="12">️
|
|
41
|
+
</dce-text>
|
|
42
|
+
</div>
|
|
43
|
+
</payload>
|
|
44
|
+
<attributes xmlns="" label="password sample" value="secret word" slice="password" data-dce-id="3" type="">
|
|
45
|
+
<xmlns/>
|
|
46
|
+
<label>password sample</label>
|
|
47
|
+
<value>secret word</value>
|
|
48
|
+
<slice>password</slice>
|
|
49
|
+
<data-dce-id>3</data-dce-id>
|
|
50
|
+
<type></type>
|
|
9
51
|
</attributes>
|
|
10
|
-
<dataset
|
|
11
|
-
|
|
52
|
+
<dataset>
|
|
53
|
+
<dceId>3</dceId>
|
|
54
|
+
</dataset>
|
|
55
|
+
<slice>
|
|
56
|
+
<selected/>
|
|
57
|
+
<password image="close" class="clear" tabindex="0" slice="password" slice-event="click" slice-value="''"
|
|
58
|
+
data-dce-id="11">
|
|
59
|
+
<event isTrusted="true" sliceProcessed="1" pointerId="1" width="1" height="1" pressure="0" tiltX="0"
|
|
60
|
+
tiltY="0" azimuthAngle="0" altitudeAngle="1.5707963267948966" tangentialPressure="0" twist="0"
|
|
61
|
+
pointerType="mouse" isPrimary="false" persistentDeviceId="0" screenX="345" screenY="682"
|
|
62
|
+
clientX="345" clientY="595" ctrlKey="false" shiftKey="false" altKey="false" metaKey="false"
|
|
63
|
+
button="0" buttons="0" pageX="345" pageY="4354" x="345" y="595" offsetX="14" offsetY="15"
|
|
64
|
+
movementX="0" movementY="0" layerX="248" layerY="27" detail="1" which="1" type="click" eventPhase="3"
|
|
65
|
+
bubbles="true" cancelable="true" defaultPrevented="false" composed="true"
|
|
66
|
+
timeStamp="1974517.2999999523" returnValue="true" cancelBubble="false" NONE="0" CAPTURING_PHASE="1"
|
|
67
|
+
AT_TARGET="2" BUBBLING_PHASE="3">
|
|
68
|
+
<relatedTarget/>
|
|
69
|
+
<fromElement/>
|
|
70
|
+
<toElement/>
|
|
71
|
+
<sourceCapabilities firesTouchEvents="false"/>
|
|
72
|
+
</event>
|
|
73
|
+
</password>
|
|
74
|
+
</slice>
|
|
12
75
|
</datadom>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
1
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
3
2
|
xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0"
|
|
4
3
|
exclude-result-prefixes="exsl">
|
|
@@ -14,54 +13,79 @@
|
|
|
14
13
|
<xsl:value-of select="."/>
|
|
15
14
|
</xsl:template>
|
|
16
15
|
<xsl:template mode="payload" match="attributes">
|
|
17
|
-
<xsl:param name="
|
|
18
|
-
<xsl:param name="p2" select="'always_p2'"/>
|
|
19
|
-
<xsl:param name="p3">
|
|
16
|
+
<xsl:param name="v">
|
|
20
17
|
<xsl:choose>
|
|
21
|
-
<xsl:when test="
|
|
22
|
-
<xsl:value-of select="
|
|
23
|
-
+<xsl:value-of select="//p3 "/>=
|
|
18
|
+
<xsl:when test="//s[//s/event] ">
|
|
19
|
+
<xsl:value-of select="//s[//s/event] "/>
|
|
24
20
|
</xsl:when>
|
|
25
|
-
<xsl:
|
|
26
|
-
<xsl:value-of select="
|
|
21
|
+
<xsl:when test=" //attributes/@v ">
|
|
22
|
+
<xsl:value-of select=" //attributes/@v "/>
|
|
23
|
+
</xsl:when>
|
|
24
|
+
<xsl:otherwise>
|
|
25
|
+
<xsl:value-of select=" 'def' "/>
|
|
27
26
|
</xsl:otherwise>
|
|
28
27
|
</xsl:choose>
|
|
29
28
|
</xsl:param>
|
|
30
29
|
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1">
|
|
31
|
-
<xsl:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</xsl:attribute>
|
|
35
|
-
<xsl:attribute name="p3">
|
|
30
|
+
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="has-input"
|
|
31
|
+
select="count(//s/*) > 0"/>
|
|
32
|
+
<xsl:attribute name="v">
|
|
36
33
|
<xsl:choose>
|
|
37
|
-
<xsl:when test="//
|
|
38
|
-
<xsl:value-of select="//
|
|
34
|
+
<xsl:when test="//s[//s/event] ">
|
|
35
|
+
<xsl:value-of select="//s[//s/event] "/>
|
|
36
|
+
</xsl:when>
|
|
37
|
+
<xsl:when test=" //attributes/@v ">
|
|
38
|
+
<xsl:value-of select=" //attributes/@v "/>
|
|
39
39
|
</xsl:when>
|
|
40
40
|
<xsl:otherwise>
|
|
41
|
-
<xsl:value-of select=" '
|
|
41
|
+
<xsl:value-of select=" 'def' "/>
|
|
42
42
|
</xsl:otherwise>
|
|
43
43
|
</xsl:choose>
|
|
44
44
|
</xsl:attribute>
|
|
45
45
|
<dce-text xmlns="" data-dce-id="2">
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
//attributes/v='<xsl:value-of select="//attributes/v"/>'
|
|
47
48
|
</dce-text>
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<
|
|
53
|
-
|
|
49
|
+
<br xmlns="" data-dce-id="3"/>
|
|
50
|
+
<dce-text xmlns="" data-dce-id="4">
|
|
51
|
+
//attributes/@v='<xsl:value-of select="//attributes/@v"/>'
|
|
52
|
+
</dce-text>
|
|
53
|
+
<br xmlns="" data-dce-id="5"/>
|
|
54
|
+
<dce-text xmlns="" data-dce-id="6">
|
|
55
|
+
$v='<xsl:value-of select="$v"/>'
|
|
54
56
|
</dce-text>
|
|
55
|
-
<code xmlns="" data-testid="p2" data-dce-id="6">
|
|
56
|
-
<xsl:value-of select="$p2"/>
|
|
57
|
-
</code>
|
|
58
57
|
<br xmlns="" data-dce-id="7"/>
|
|
59
58
|
<dce-text xmlns="" data-dce-id="8">
|
|
60
|
-
|
|
59
|
+
//s='<xsl:value-of select="//s"/>'
|
|
60
|
+
</dce-text>
|
|
61
|
+
<br xmlns="" data-dce-id="9"/>
|
|
62
|
+
<dce-text xmlns="" data-dce-id="10">
|
|
63
|
+
A='<xsl:value-of select="//s[//s/event] | //attributes/v[not(//s/event)]"/>'
|
|
64
|
+
</dce-text>
|
|
65
|
+
<br xmlns="" data-dce-id="11"/>
|
|
66
|
+
<dce-text xmlns="" data-dce-id="12">
|
|
67
|
+
has-input =<xsl:value-of select=" $has-input "/>
|
|
68
|
+
</dce-text>
|
|
69
|
+
<br xmlns="" data-dce-id="13"/>
|
|
70
|
+
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="in-value">
|
|
71
|
+
<xsl:choose>
|
|
72
|
+
<xsl:when test="//s/event">
|
|
73
|
+
<xsl:value-of select="//s">
|
|
74
|
+
</xsl:value-of>
|
|
75
|
+
</xsl:when>
|
|
76
|
+
<xsl:when test="//attributes/@v">
|
|
77
|
+
<xsl:value-of select="//attributes/@v">
|
|
78
|
+
</xsl:value-of>
|
|
79
|
+
</xsl:when>
|
|
80
|
+
<xsl:otherwise>def</xsl:otherwise>
|
|
81
|
+
</xsl:choose>
|
|
82
|
+
</xsl:variable>
|
|
83
|
+
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="xx"
|
|
84
|
+
select="//s[//s/event] ?? //attributes/@v ?? 'def' "/>
|
|
85
|
+
<input xmlns="" slice="s" slice-event="input" value="{$in-value}" data-dce-id="14"/>
|
|
86
|
+
<dce-text xmlns="" data-dce-id="15">$in-value:<xsl:value-of select="$in-value"/> | $xx:<xsl:value-of
|
|
87
|
+
select="$xx"/>
|
|
61
88
|
</dce-text>
|
|
62
|
-
<code xmlns="" data-testid="p3" data-dce-id="9">
|
|
63
|
-
<xsl:value-of select="$p3"/>
|
|
64
|
-
</code>
|
|
65
89
|
</dce-root>
|
|
66
90
|
</xsl:template>
|
|
67
91
|
<xsl:template match="/">
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<dce-root data-dce-id="1"
|
|
3
|
-
xmlns="http://www.w3.org/1999/xhtml"
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<dce-root data-dce-id="1" xmlns="http://www.w3.org/1999/xhtml" xmlns:dce="urn:schemas-epa-wg:dce"
|
|
3
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml"><label data-dce-id="2" xmlns=""><input data-dce-id="3"
|
|
4
|
+
slice="disabled-slice"
|
|
5
|
+
type="checkbox"
|
|
6
|
+
value="disabled"/>
|
|
7
|
+
<dce-text data-dce-id="4">disabled</dce-text>
|
|
8
|
+
</label>
|
|
9
|
+
<cem-input data-dce-id="6" value="123"/>
|
|
10
|
+
<button data-dce-id="7">Next</button>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
</p></form>
|
|
14
|
+
</dce-root>
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
|
|
49
49
|
<link href="./sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js" rel="modulepreload" />
|
|
50
50
|
|
|
51
|
-
<link href="./sb-addons/
|
|
51
|
+
<link href="./sb-addons/essentials-controls-1/manager-bundle.js" rel="modulepreload" />
|
|
52
52
|
|
|
53
|
-
<link href="./sb-addons/essentials-
|
|
53
|
+
<link href="./sb-addons/essentials-actions-2/manager-bundle.js" rel="modulepreload" />
|
|
54
54
|
|
|
55
|
-
<link href="./sb-addons/essentials-
|
|
55
|
+
<link href="./sb-addons/essentials-docs-3/manager-bundle.js" rel="modulepreload" />
|
|
56
56
|
|
|
57
57
|
<link href="./sb-addons/essentials-backgrounds-4/manager-bundle.js" rel="modulepreload" />
|
|
58
58
|
|
|
@@ -65,8 +65,6 @@
|
|
|
65
65
|
<link href="./sb-addons/essentials-outline-8/manager-bundle.js" rel="modulepreload" />
|
|
66
66
|
|
|
67
67
|
<link href="./sb-addons/interactions-9/manager-bundle.js" rel="modulepreload" />
|
|
68
|
-
|
|
69
|
-
<link href="./sb-addons/chromatic-com-storybook-10/manager-bundle.js" rel="modulepreload" />
|
|
70
68
|
|
|
71
69
|
|
|
72
70
|
<style>
|
|
@@ -150,11 +148,11 @@
|
|
|
150
148
|
|
|
151
149
|
import './sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js';
|
|
152
150
|
|
|
153
|
-
import './sb-addons/
|
|
151
|
+
import './sb-addons/essentials-controls-1/manager-bundle.js';
|
|
154
152
|
|
|
155
|
-
import './sb-addons/essentials-
|
|
153
|
+
import './sb-addons/essentials-actions-2/manager-bundle.js';
|
|
156
154
|
|
|
157
|
-
import './sb-addons/essentials-
|
|
155
|
+
import './sb-addons/essentials-docs-3/manager-bundle.js';
|
|
158
156
|
|
|
159
157
|
import './sb-addons/essentials-backgrounds-4/manager-bundle.js';
|
|
160
158
|
|
|
@@ -168,8 +166,6 @@
|
|
|
168
166
|
|
|
169
167
|
import './sb-addons/interactions-9/manager-bundle.js';
|
|
170
168
|
|
|
171
|
-
import './sb-addons/chromatic-com-storybook-10/manager-bundle.js';
|
|
172
|
-
|
|
173
169
|
|
|
174
170
|
import './sb-manager/runtime.js';
|
|
175
171
|
</script>
|