@epa-wg/custom-element-dist 0.0.25 → 0.0.26
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 +1 -3
- package/.storybook/preview-head.html +8 -0
- package/.storybook/preview.ts +13 -5
- package/README.md +4 -4
- package/bin/postinstall.sh +3 -2
- package/bin/vitest/vitest-browser-importmaps.mjs +20 -0
- package/coverage/coverage-final.json +12 -9
- package/coverage/index.html +51 -36
- 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 +422 -371
- package/coverage/src/custom-element/demo/coverage.svg +10 -0
- package/coverage/src/custom-element/demo/index.html +116 -0
- package/coverage/src/custom-element/demo/z.js/coverage.svg +10 -0
- package/coverage/src/custom-element/demo/z.js.html +112 -0
- package/coverage/src/custom-element/http-request.js.html +10 -10
- package/coverage/src/custom-element/index.html +31 -16
- package/coverage/src/custom-element/local-storage.js.html +1 -1
- package/coverage/src/custom-element/location-element.js.html +3 -3
- package/coverage/src/custom-element/module-url.js/coverage.svg +10 -0
- package/coverage/src/custom-element/module-url.js.html +181 -0
- package/coverage/src/index.html +1 -1
- package/coverage/src/mocks/coverage.svg +1 -1
- package/coverage/src/mocks/handlers.ts/coverage.svg +1 -1
- package/coverage/src/mocks/handlers.ts.html +36 -12
- package/coverage/src/mocks/index.html +19 -19
- package/coverage/src/stories/attributes.test.stories.ts.html +6 -9
- package/coverage/src/stories/coverage.svg +1 -1
- package/coverage/src/stories/css.test.stories.ts.html +1 -1
- package/coverage/src/stories/dom-merge.test.stories.ts.html +1 -1
- package/coverage/src/stories/external-template.test.stories.ts.html +22 -10
- 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 +34 -19
- 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/coverage.svg +10 -0
- package/coverage/src/stories/module-url.test.stories.ts.html +634 -0
- 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 +12 -12
- package/coverage/src/stories/version-select.test.stories.ts.html +98 -20
- package/coverage/src/sum.ts.html +1 -1
- package/dist/confused.svg +1 -0
- package/dist/custom-element-CckoVsvO.cjs +53 -0
- package/dist/{custom-element-DAe7uvIt.js → custom-element-b7c_7Kz4.js} +175 -167
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +2 -2
- package/dist/demo/a.html +60 -0
- package/dist/demo/b.html +13 -0
- package/dist/demo/confused.svg +38 -0
- package/dist/demo/data-slices.html +216 -0
- package/dist/demo/dce-social-preview.png +0 -0
- package/dist/demo/demo.css +26 -0
- package/dist/demo/dom-merge.html +123 -0
- package/dist/demo/embed-1.html +2 -0
- package/dist/demo/external-template.html +239 -0
- package/dist/demo/form.html +239 -0
- package/dist/demo/hex-grid-dce.html +183 -0
- package/dist/demo/hex-grid-transform.png +0 -0
- package/dist/demo/hex-grid.html +66 -0
- package/dist/demo/html-template.html +126 -0
- package/dist/demo/html-template.xhtml +45 -0
- package/dist/demo/html-template.xml +45 -0
- package/dist/demo/http-request.html +143 -0
- package/dist/demo/lib-dir/Smiley.svg +24 -0
- package/dist/demo/lib-dir/embed-lib.html +34 -0
- package/dist/demo/local-storage.html +218 -0
- package/dist/demo/location-element.html +168 -0
- package/dist/demo/logo.png +0 -0
- package/dist/demo/module-url.html +215 -0
- package/dist/demo/npm-versions-demo.html +105 -0
- package/dist/demo/npm-versions.html +65 -0
- package/dist/demo/parameters.html +70 -0
- package/dist/demo/s.xml +28 -0
- package/dist/demo/s.xslt +97 -0
- package/dist/demo/s1.xslt +60 -0
- package/dist/demo/scoped-css.html +169 -0
- package/dist/demo/set-url.html +141 -0
- package/dist/demo/ss.html +57 -0
- package/dist/demo/table.xml +25 -0
- package/dist/demo/table.xsl +293 -0
- package/dist/demo/template.xsl +46 -0
- package/dist/demo/tree.xml +25 -0
- package/dist/demo/tree.xsl +33 -0
- package/dist/demo/wc-square.svg +1 -0
- package/dist/demo/xhtml-template.xhtml +45 -0
- package/dist/demo/z.html +62 -0
- package/dist/demo/z.js +9 -0
- package/dist/demo/z.xml +60 -0
- package/dist/embed-1.html +1 -2
- package/dist/mockServiceWorker.js +1 -1
- package/package.json +93 -93
- package/public/confused.svg +1 -0
- package/public/demo/a.html +60 -0
- package/public/demo/b.html +13 -0
- package/public/demo/confused.svg +38 -0
- package/public/demo/data-slices.html +216 -0
- package/public/demo/dce-social-preview.png +0 -0
- package/public/demo/demo.css +26 -0
- package/public/demo/dom-merge.html +123 -0
- package/public/demo/embed-1.html +2 -0
- package/public/demo/external-template.html +239 -0
- package/public/demo/form.html +239 -0
- package/public/demo/hex-grid-dce.html +183 -0
- package/public/demo/hex-grid-transform.png +0 -0
- package/public/demo/hex-grid.html +66 -0
- package/public/demo/html-template.html +126 -0
- package/public/demo/html-template.xhtml +45 -0
- package/public/demo/html-template.xml +45 -0
- package/public/demo/http-request.html +143 -0
- package/public/demo/lib-dir/Smiley.svg +24 -0
- package/public/demo/lib-dir/embed-lib.html +34 -0
- package/public/demo/local-storage.html +218 -0
- package/public/demo/location-element.html +168 -0
- package/public/demo/logo.png +0 -0
- package/public/demo/module-url.html +215 -0
- package/public/demo/npm-versions-demo.html +105 -0
- package/public/demo/npm-versions.html +65 -0
- package/public/demo/parameters.html +70 -0
- package/public/demo/s.xml +28 -0
- package/public/demo/s.xslt +97 -0
- package/public/demo/s1.xslt +60 -0
- package/public/demo/scoped-css.html +169 -0
- package/public/demo/set-url.html +141 -0
- package/public/demo/ss.html +57 -0
- package/public/demo/table.xml +25 -0
- package/public/demo/table.xsl +293 -0
- package/public/demo/template.xsl +46 -0
- package/public/demo/tree.xml +25 -0
- package/public/demo/tree.xsl +33 -0
- package/public/demo/wc-square.svg +1 -0
- package/public/demo/xhtml-template.xhtml +45 -0
- package/public/demo/z.html +62 -0
- package/public/demo/z.js +9 -0
- package/public/demo/z.xml +60 -0
- package/public/embed-1.html +1 -2
- package/public/mockServiceWorker.js +1 -1
- package/src/custom-element/custom-element.js +36 -19
- package/src/custom-element/demo/confused.svg +1 -0
- package/src/custom-element/demo/demo.css +5 -1
- package/src/custom-element/demo/embed-1.html +1 -2
- package/src/custom-element/demo/external-template.html +122 -62
- package/src/custom-element/demo/lib-dir/Smiley.svg +24 -0
- package/src/custom-element/demo/lib-dir/embed-lib.html +34 -0
- package/src/custom-element/demo/module-url.html +215 -0
- package/src/custom-element/demo/npm-versions-demo.html +105 -0
- package/src/custom-element/demo/npm-versions.html +65 -0
- package/src/custom-element/demo/s.xml +27 -35
- package/src/custom-element/demo/s.xslt +96 -96
- package/src/custom-element/demo/set-url.html +1 -1
- package/src/custom-element/demo/z.js +9 -0
- package/src/custom-element/ide/customData-dce.json +215 -181
- package/src/custom-element/ide/web-types-dce.json +184 -159
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/custom-element/index.html +2 -1
- package/src/custom-element/module-url.js +33 -0
- package/src/mocks/handlers.ts +10 -1
- package/src/mocks/versions.mock.ts +786 -0
- package/src/stories/attributes.test.stories.ts +0 -1
- package/src/stories/external-template.test.stories.ts +11 -7
- package/src/stories/module-url.test.stories.ts +183 -0
- package/src/stories/version-select.test.stories.ts +38 -12
- package/storybook-static/assets/Color-KGDBMAHA-CH-YyWYq.js +1 -0
- package/storybook-static/assets/{Configure-D0qG3gR9.js → Configure-DFL_bm2M.js} +2 -2
- package/storybook-static/assets/DocsRenderer-PKQXORMH-Bz-_1hmS.js +2 -0
- package/storybook-static/assets/{attributes.test.stories-W34tZdUt.js → attributes.test.stories-DIQXccHc.js} +2 -3
- package/storybook-static/assets/{css.test.stories-BZFYx1TQ.js → css.test.stories-BV2hi4CY.js} +1 -1
- package/storybook-static/assets/custom-element-wn23PUwN.js +231 -0
- package/storybook-static/assets/{dom-merge.test.stories-S-7U5N3h.js → dom-merge.test.stories-Dws0C2-g.js} +1 -1
- package/storybook-static/assets/{entry-preview-DrgzXgwT.js → entry-preview-BKQ8UCxI.js} +1 -1
- package/storybook-static/assets/{entry-preview-docs-Bxv0qQWs.js → entry-preview-docs-BMKNVQXA.js} +2 -2
- package/storybook-static/assets/{external-template.test.stories-QIO3lAFz.js → external-template.test.stories-BHO48b0j.js} +19 -16
- package/storybook-static/assets/{form.test.stories-ClYhj9F1.js → form.test.stories-dv9mwp24.js} +1 -1
- package/storybook-static/assets/handlers-CaCq2ZPF.js +467 -0
- package/storybook-static/assets/http-request.stories-B2ke7LtS.js +281 -0
- package/storybook-static/assets/iframe-D4Sos1HO.js +2 -0
- package/storybook-static/assets/index-BnXBQqj9.js +605 -0
- package/storybook-static/assets/index-C8k3Z-3Y.js +28 -0
- package/storybook-static/assets/index-Cpxqn5iQ.js +1 -0
- package/storybook-static/assets/{index-DXimoRZY.js → index-D-8MO0q_.js} +1 -1
- package/storybook-static/assets/index-DGdNYaqV.js +8 -0
- package/storybook-static/assets/index-Dz4OaB2k.js +1 -0
- package/storybook-static/assets/index-sm7QlJZE.js +1 -0
- package/storybook-static/assets/lit-element-DzhCn-8W.js +19 -0
- package/storybook-static/assets/{local-storage.test.stories-BqgYwqr-.js → local-storage.test.stories-BpogLNq-.js} +1 -1
- package/storybook-static/assets/{location-element.test.stories-DvH1TWK4.js → location-element.test.stories-BiFvBop7.js} +1 -1
- package/storybook-static/assets/module-url.test.stories-BXoM34tX.js +208 -0
- package/storybook-static/assets/{preview-BKCN0mOr.js → preview-0Jj89qip.js} +1 -1
- package/storybook-static/assets/{preview-TCN6m6T-.js → preview-BJPLiuSt.js} +1 -1
- package/storybook-static/assets/{preview-BDY5ThwJ.js → preview-BMWqy4Bi.js} +1 -1
- package/storybook-static/assets/preview-BnWGZYux.js +1 -0
- package/storybook-static/assets/preview-Cg7hXPRq.js +2 -0
- package/storybook-static/assets/{preview-BAz7FMXc.js → preview-DB9FwMii.js} +1 -1
- package/storybook-static/assets/preview-Djh1_Tal.js +20 -0
- package/storybook-static/assets/{preview-DRnyIGXK.js → preview-oHxXRSIu.js} +15 -15
- package/storybook-static/assets/{set-url.test.stories-GlJOh31I.js → set-url.test.stories-Cg5Z0r7x.js} +1 -1
- package/storybook-static/assets/{slice-events.test.stories-VoNjuPCX.js → slice-events.test.stories-D_ttGp3g.js} +1 -1
- package/storybook-static/assets/{slots.test.stories-Da2j9YuO.js → slots.test.stories-DBNXOm0T.js} +1 -1
- package/storybook-static/assets/version-select.test.stories-CgV3UCim.js +109 -0
- package/storybook-static/confused.svg +1 -0
- package/storybook-static/demo/a.html +60 -0
- package/storybook-static/demo/b.html +13 -0
- package/storybook-static/demo/confused.svg +38 -0
- package/storybook-static/demo/data-slices.html +216 -0
- package/storybook-static/demo/dce-social-preview.png +0 -0
- package/storybook-static/demo/demo.css +26 -0
- package/storybook-static/demo/dom-merge.html +123 -0
- package/storybook-static/demo/embed-1.html +2 -0
- package/storybook-static/demo/external-template.html +239 -0
- package/storybook-static/demo/form.html +239 -0
- package/storybook-static/demo/hex-grid-dce.html +183 -0
- package/storybook-static/demo/hex-grid-transform.png +0 -0
- package/storybook-static/demo/hex-grid.html +66 -0
- package/storybook-static/demo/html-template.html +126 -0
- package/storybook-static/demo/html-template.xhtml +45 -0
- package/storybook-static/demo/html-template.xml +45 -0
- package/storybook-static/demo/http-request.html +143 -0
- package/storybook-static/demo/lib-dir/Smiley.svg +24 -0
- package/storybook-static/demo/lib-dir/embed-lib.html +34 -0
- package/storybook-static/demo/local-storage.html +218 -0
- package/storybook-static/demo/location-element.html +168 -0
- package/storybook-static/demo/logo.png +0 -0
- package/storybook-static/demo/module-url.html +215 -0
- package/storybook-static/demo/npm-versions-demo.html +105 -0
- package/storybook-static/demo/npm-versions.html +65 -0
- package/storybook-static/demo/parameters.html +70 -0
- package/storybook-static/demo/s.xml +28 -0
- package/storybook-static/demo/s.xslt +97 -0
- package/storybook-static/demo/s1.xslt +60 -0
- package/storybook-static/demo/scoped-css.html +169 -0
- package/storybook-static/demo/set-url.html +141 -0
- package/storybook-static/demo/ss.html +57 -0
- package/storybook-static/demo/table.xml +25 -0
- package/storybook-static/demo/table.xsl +293 -0
- package/storybook-static/demo/template.xsl +46 -0
- package/storybook-static/demo/tree.xml +25 -0
- package/storybook-static/demo/tree.xsl +33 -0
- package/storybook-static/demo/wc-square.svg +1 -0
- package/storybook-static/demo/xhtml-template.xhtml +45 -0
- package/storybook-static/demo/z.html +62 -0
- package/storybook-static/demo/z.js +9 -0
- package/storybook-static/demo/z.xml +60 -0
- package/storybook-static/embed-1.html +1 -2
- package/storybook-static/favicon.svg +1 -7
- package/storybook-static/iframe.html +42 -30
- package/storybook-static/index.html +36 -18
- package/storybook-static/index.json +1 -1
- package/storybook-static/mockServiceWorker.js +1 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +32 -32
- 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-controls-2/manager-bundle.js +395 -43
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -18
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +221 -22
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-manager/globals-module-info.js +995 -1
- package/storybook-static/sb-manager/globals-runtime.js +53525 -1
- package/storybook-static/sb-manager/globals.js +48 -1
- package/storybook-static/sb-manager/runtime.js +11884 -1
- package/storybook-static/sb-preview/globals.js +33 -1
- package/storybook-static/sb-preview/runtime.js +9437 -108
- package/vite.config.js +2 -1
- package/dist/custom-element-DZvvhscI.cjs +0 -53
- package/storybook-static/assets/Color-PRSJMWNM-CRSv4C7i.js +0 -1
- package/storybook-static/assets/DocsRenderer-K4EAMTCU-CG_P5zRZ.js +0 -2
- package/storybook-static/assets/WithTooltip-KJL26V4Q-CUqUi5E8.js +0 -1
- package/storybook-static/assets/custom-element-DpIq8E2p.js +0 -219
- package/storybook-static/assets/formatter-2WMMO6ZP-C-UiBIma.js +0 -58
- package/storybook-static/assets/http-request.stories-DCqY5s2i.js +0 -300
- package/storybook-static/assets/iframe-CURpvmVV.js +0 -2
- package/storybook-static/assets/index-CKw1EbdP.js +0 -1
- package/storybook-static/assets/index-CVRyq5ci.js +0 -27
- package/storybook-static/assets/index-Cc7K62zD.js +0 -3
- package/storybook-static/assets/index-DYpTqTNu.js +0 -1
- package/storybook-static/assets/index-DsWii_Ep.js +0 -548
- package/storybook-static/assets/index-DuIEV_9C.js +0 -13
- package/storybook-static/assets/lit-element-CenEXOuS.js +0 -19
- package/storybook-static/assets/preview-B4GcaC1c.js +0 -1
- package/storybook-static/assets/preview-B63p-W8V.js +0 -20
- package/storybook-static/assets/preview-DjDbQHPa.js +0 -2
- package/storybook-static/assets/syntaxhighlighter-BP7B2CQK-CDpEe51g.js +0 -1
- package/storybook-static/assets/version-select.test.stories-DLwf-TPB.js +0 -60
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/fonts.css +0 -31
- package/storybook-static/sb-manager/WithTooltip-KJL26V4Q-5LS5AN27.js +0 -1
- package/storybook-static/sb-manager/chunk-B3YDJJJH.js +0 -347
- package/storybook-static/sb-manager/chunk-BLWCBWKL.js +0 -9
- package/storybook-static/sb-manager/chunk-GUVK2GTO.js +0 -6
- package/storybook-static/sb-manager/chunk-LFRML3ZV.js +0 -186
- package/storybook-static/sb-manager/chunk-MC7RAF2B.js +0 -274
- package/storybook-static/sb-manager/chunk-ZR5JZWHI.js +0 -1
- package/storybook-static/sb-manager/formatter-2WMMO6ZP-JI7RHVTW.js +0 -58
- package/storybook-static/sb-manager/index.js +0 -1
- package/storybook-static/sb-manager/syntaxhighlighter-BP7B2CQK-WOJYHKQR.js +0 -1
- /package/storybook-static/sb-addons/{storybook-core-server-presets-0 → storybook-core-core-server-presets-0}/common-manager-bundle.js.LEGAL.txt +0 -0
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
2
|
-
xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0"
|
|
3
|
-
exclude-result-prefixes="exsl">
|
|
4
|
-
<xsl:template match="ignore">
|
|
5
|
-
<xsl:choose>
|
|
6
|
-
<xsl:when test="//attr">
|
|
7
|
-
<xsl:value-of select="//attr"/>
|
|
8
|
-
</xsl:when>
|
|
9
|
-
<xsl:otherwise>
|
|
10
|
-
<xsl:value-of select="def"/>
|
|
11
|
-
</xsl:otherwise>
|
|
12
|
-
</xsl:choose>
|
|
13
|
-
<xsl:value-of select="."/>
|
|
14
|
-
</xsl:template>
|
|
15
|
-
<xsl:template mode="payload" match="attributes">
|
|
16
|
-
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1">
|
|
17
|
-
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="methods">
|
|
18
|
-
<a xmlns="" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/href" data-dce-id="2">
|
|
19
|
-
location.href
|
|
20
|
-
</a>
|
|
21
|
-
<a xmlns="" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/hash" data-dce-id="3">
|
|
22
|
-
location.hash
|
|
23
|
-
</a>
|
|
24
|
-
<a xmlns="" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/assign" data-dce-id="4">
|
|
25
|
-
location.assign
|
|
26
|
-
</a>
|
|
27
|
-
</xsl:variable>
|
|
28
|
-
<fieldset xmlns="" data-dce-id="5">
|
|
29
|
-
<legend data-dce-id="6">
|
|
30
|
-
<b data-dce-id="7">set-by</b>
|
|
31
|
-
</legend>
|
|
32
|
-
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$methods">
|
|
33
|
-
<p data-dce-id="8">
|
|
34
|
-
<label data-dce-id="9">
|
|
35
|
-
<input type="radio" name="method" value="{.}" data-dce-id="10"/>
|
|
36
|
-
<dce-text data-dce-id="11">
|
|
37
|
-
<xsl:value-of select="."/>
|
|
38
|
-
</dce-text>
|
|
39
|
-
</label>
|
|
40
|
-
<a class="infolink" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/assign"
|
|
41
|
-
data-dce-id="12">mdn
|
|
42
|
-
</a>
|
|
43
|
-
</p>
|
|
44
|
-
</xsl:for-each>
|
|
45
|
-
<label data-dce-id="13">
|
|
46
|
-
<input type="radio" name="method" value="location.href" data-dce-id="14"/>
|
|
47
|
-
<dce-text data-dce-id="15">location.href</dce-text>
|
|
48
|
-
</label>
|
|
49
|
-
<label data-dce-id="16">
|
|
50
|
-
<input type="radio" name="method" value="location" data-dce-id="17"/>
|
|
51
|
-
<dce-text data-dce-id="18">location</dce-text>
|
|
52
|
-
</label>
|
|
53
|
-
<label data-dce-id="19">
|
|
54
|
-
<input type="radio" name="method" value="location.replace" data-dce-id="20"/>
|
|
55
|
-
<dce-text data-dce-id="21">location.replace</dce-text>
|
|
56
|
-
</label>
|
|
57
|
-
<label data-dce-id="22">
|
|
58
|
-
<input type="radio" name="method" value="location.assign" data-dce-id="23"/>
|
|
59
|
-
<dce-text data-dce-id="24">location.assign</dce-text>
|
|
60
|
-
</label>
|
|
61
|
-
<label data-dce-id="25">
|
|
62
|
-
<input type="radio" name="method" value="location.hash" data-dce-id="26"/>
|
|
63
|
-
<dce-text data-dce-id="27">location.hash</dce-text>
|
|
64
|
-
</label>
|
|
65
|
-
<label data-dce-id="28">
|
|
66
|
-
<input type="radio" name="method" value="history.pushState" data-dce-id="29"/>
|
|
67
|
-
<dce-text data-dce-id="30">history.pushState</dce-text>
|
|
68
|
-
</label>
|
|
69
|
-
<label data-dce-id="31">
|
|
70
|
-
<input type="radio" name="method" value="history.replaceState" data-dce-id="32"/>
|
|
71
|
-
<dce-text data-dce-id="33">history.replaceState</dce-text>
|
|
72
|
-
</label>
|
|
73
|
-
</fieldset>
|
|
74
|
-
</dce-root>
|
|
75
|
-
</xsl:template>
|
|
76
|
-
<xsl:template match="/">
|
|
77
|
-
<xsl:apply-templates mode="payload" select="/datadom/attributes"/>
|
|
78
|
-
</xsl:template>
|
|
79
|
-
<xsl:template name="slot">
|
|
80
|
-
<xsl:param name="slotname"/>
|
|
81
|
-
<xsl:param name="defaultvalue"/>
|
|
82
|
-
<xsl:choose>
|
|
83
|
-
<xsl:when test="//payload/*[@slot=$slotname]">
|
|
84
|
-
<xsl:copy-of select="//payload/*[@slot=$slotname]"/>
|
|
85
|
-
</xsl:when>
|
|
86
|
-
<xsl:otherwise>
|
|
87
|
-
<xsl:copy-of select="$defaultvalue"/>
|
|
88
|
-
</xsl:otherwise>
|
|
89
|
-
</xsl:choose>
|
|
90
|
-
</xsl:template>
|
|
91
|
-
<xsl:variable name="js-injected-body">
|
|
92
|
-
<xsl:call-template name="slot">
|
|
93
|
-
<xsl:with-param name="slotname" select="''"/>
|
|
94
|
-
<xsl:with-param name="defaultvalue"/>
|
|
95
|
-
</xsl:call-template>
|
|
96
|
-
</xsl:variable>
|
|
1
|
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
2
|
+
xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0"
|
|
3
|
+
exclude-result-prefixes="exsl">
|
|
4
|
+
<xsl:template match="ignore">
|
|
5
|
+
<xsl:choose>
|
|
6
|
+
<xsl:when test="//attr">
|
|
7
|
+
<xsl:value-of select="//attr"/>
|
|
8
|
+
</xsl:when>
|
|
9
|
+
<xsl:otherwise>
|
|
10
|
+
<xsl:value-of select="def"/>
|
|
11
|
+
</xsl:otherwise>
|
|
12
|
+
</xsl:choose>
|
|
13
|
+
<xsl:value-of select="."/>
|
|
14
|
+
</xsl:template>
|
|
15
|
+
<xsl:template mode="payload" match="attributes">
|
|
16
|
+
<dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1">
|
|
17
|
+
<xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="methods">
|
|
18
|
+
<a xmlns="" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/href" data-dce-id="2">
|
|
19
|
+
location.href
|
|
20
|
+
</a>
|
|
21
|
+
<a xmlns="" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/hash" data-dce-id="3">
|
|
22
|
+
location.hash
|
|
23
|
+
</a>
|
|
24
|
+
<a xmlns="" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/assign" data-dce-id="4">
|
|
25
|
+
location.assign
|
|
26
|
+
</a>
|
|
27
|
+
</xsl:variable>
|
|
28
|
+
<fieldset xmlns="" data-dce-id="5">
|
|
29
|
+
<legend data-dce-id="6">
|
|
30
|
+
<b data-dce-id="7">set-by</b>
|
|
31
|
+
</legend>
|
|
32
|
+
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="$methods">
|
|
33
|
+
<p data-dce-id="8">
|
|
34
|
+
<label data-dce-id="9">
|
|
35
|
+
<input type="radio" name="method" value="{.}" data-dce-id="10"/>
|
|
36
|
+
<dce-text data-dce-id="11">
|
|
37
|
+
<xsl:value-of select="."/>
|
|
38
|
+
</dce-text>
|
|
39
|
+
</label>
|
|
40
|
+
<a class="infolink" href="https://developer.mozilla.org/en-US/docs/Web/API/Location/assign"
|
|
41
|
+
data-dce-id="12">mdn
|
|
42
|
+
</a>
|
|
43
|
+
</p>
|
|
44
|
+
</xsl:for-each>
|
|
45
|
+
<label data-dce-id="13">
|
|
46
|
+
<input type="radio" name="method" value="location.href" data-dce-id="14"/>
|
|
47
|
+
<dce-text data-dce-id="15">location.href</dce-text>
|
|
48
|
+
</label>
|
|
49
|
+
<label data-dce-id="16">
|
|
50
|
+
<input type="radio" name="method" value="location" data-dce-id="17"/>
|
|
51
|
+
<dce-text data-dce-id="18">location</dce-text>
|
|
52
|
+
</label>
|
|
53
|
+
<label data-dce-id="19">
|
|
54
|
+
<input type="radio" name="method" value="location.replace" data-dce-id="20"/>
|
|
55
|
+
<dce-text data-dce-id="21">location.replace</dce-text>
|
|
56
|
+
</label>
|
|
57
|
+
<label data-dce-id="22">
|
|
58
|
+
<input type="radio" name="method" value="location.assign" data-dce-id="23"/>
|
|
59
|
+
<dce-text data-dce-id="24">location.assign</dce-text>
|
|
60
|
+
</label>
|
|
61
|
+
<label data-dce-id="25">
|
|
62
|
+
<input type="radio" name="method" value="location.hash" data-dce-id="26"/>
|
|
63
|
+
<dce-text data-dce-id="27">location.hash</dce-text>
|
|
64
|
+
</label>
|
|
65
|
+
<label data-dce-id="28">
|
|
66
|
+
<input type="radio" name="method" value="history.pushState" data-dce-id="29"/>
|
|
67
|
+
<dce-text data-dce-id="30">history.pushState</dce-text>
|
|
68
|
+
</label>
|
|
69
|
+
<label data-dce-id="31">
|
|
70
|
+
<input type="radio" name="method" value="history.replaceState" data-dce-id="32"/>
|
|
71
|
+
<dce-text data-dce-id="33">history.replaceState</dce-text>
|
|
72
|
+
</label>
|
|
73
|
+
</fieldset>
|
|
74
|
+
</dce-root>
|
|
75
|
+
</xsl:template>
|
|
76
|
+
<xsl:template match="/">
|
|
77
|
+
<xsl:apply-templates mode="payload" select="/datadom/attributes"/>
|
|
78
|
+
</xsl:template>
|
|
79
|
+
<xsl:template name="slot">
|
|
80
|
+
<xsl:param name="slotname"/>
|
|
81
|
+
<xsl:param name="defaultvalue"/>
|
|
82
|
+
<xsl:choose>
|
|
83
|
+
<xsl:when test="//payload/*[@slot=$slotname]">
|
|
84
|
+
<xsl:copy-of select="//payload/*[@slot=$slotname]"/>
|
|
85
|
+
</xsl:when>
|
|
86
|
+
<xsl:otherwise>
|
|
87
|
+
<xsl:copy-of select="$defaultvalue"/>
|
|
88
|
+
</xsl:otherwise>
|
|
89
|
+
</xsl:choose>
|
|
90
|
+
</xsl:template>
|
|
91
|
+
<xsl:variable name="js-injected-body">
|
|
92
|
+
<xsl:call-template name="slot">
|
|
93
|
+
<xsl:with-param name="slotname" select="''"/>
|
|
94
|
+
<xsl:with-param name="defaultvalue"/>
|
|
95
|
+
</xsl:call-template>
|
|
96
|
+
</xsl:variable>
|
|
97
97
|
</xsl:stylesheet>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<a href="../index.html"><h3><code>custom-element</code> demo</h3></a>
|
|
30
30
|
</nav>
|
|
31
31
|
<main>
|
|
32
|
-
<h3>How to set the page URL by location-element
|
|
32
|
+
<h3>How to set the page URL by <code>location-element</code>?</h3>
|
|
33
33
|
Answer: by defining following attributes:
|
|
34
34
|
<ol>
|
|
35
35
|
<li><code>method</code> to one of values provided bellow</li>
|
|
@@ -1,181 +1,215 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1.1,
|
|
3
|
-
"globalAttributes": [
|
|
4
|
-
{
|
|
5
|
-
"name": "slice",
|
|
6
|
-
"description": {
|
|
7
|
-
"kind": "markdown",
|
|
8
|
-
"value": "Defines the name of data slice in DCE where the data from `value` will be propagated on `change` or by `slice-event` event\n\nOn: any component with `value` and associated change event"
|
|
9
|
-
},
|
|
10
|
-
"references": [
|
|
11
|
-
{
|
|
12
|
-
"name": "Demo",
|
|
13
|
-
"url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "slice-event",
|
|
19
|
-
"description": {
|
|
20
|
-
"kind": "markdown",
|
|
21
|
-
"value": "Defines the event name on which `value` would be synchronized with DCE slice\n\nOn: any component with `value` and associated change event"
|
|
22
|
-
},
|
|
23
|
-
"references": [
|
|
24
|
-
{
|
|
25
|
-
"name": "Demo",
|
|
26
|
-
"url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "custom-validity",
|
|
32
|
-
"description": {
|
|
33
|
-
"kind": "markdown",
|
|
34
|
-
"value": "XPath expression to return either boolean or error string to be shown by browser native UI on form validation event. Unless value is true, prevents the form submission."
|
|
35
|
-
},
|
|
36
|
-
"references": [
|
|
37
|
-
{
|
|
38
|
-
"name": "Demo",
|
|
39
|
-
"url": "https://unpkg.com/@epa-wg/custom-element/demo/form.html"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "slice-value",
|
|
45
|
-
"description": {
|
|
46
|
-
"kind": "markdown",
|
|
47
|
-
"value": "XPath expression to populate into the slice"
|
|
48
|
-
},
|
|
49
|
-
"references": [
|
|
50
|
-
{
|
|
51
|
-
"name": "Demo",
|
|
52
|
-
"url": "https://unpkg.com/@epa-wg/custom-element/demo/data-slices.html"
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"tags": [
|
|
58
|
-
{
|
|
59
|
-
"name": "custom-element",
|
|
60
|
-
"description": "Declarative Cuestom ELement(DCE). `<custom-element tag='my-element'></custom-element>`.",
|
|
61
|
-
"attributes": [
|
|
62
|
-
{
|
|
63
|
-
"name": "hidden",
|
|
64
|
-
"description": "hides DCE definition to prevent visual appearance of content. Wrap the payload into template tag to prevent applying the inline CSS in global scope.",
|
|
65
|
-
"type": "boolean"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"name": "tag",
|
|
69
|
-
"description": "HTML tag for Custom Element. Used for window.customElements.define(). If not set, would be generated and DCE instance rendered inline.",
|
|
70
|
-
"type": "string"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "src",
|
|
74
|
-
"description": "full, relative, or hash URL to DCE template",
|
|
75
|
-
"type": "string",
|
|
76
|
-
"references": [
|
|
77
|
-
{
|
|
78
|
-
"name": "example",
|
|
79
|
-
"url": "https://unpkg.com/@epa-wg/custom-element/demo/external-template.html"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"references": [
|
|
85
|
-
{
|
|
86
|
-
"name": "custom-element",
|
|
87
|
-
"url": "https://github.com/EPA-WG/custom-element"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "for-each",
|
|
93
|
-
"description": "The <xsl:for-each> element selects a set of nodes and processes each of them in the same way. It is often used to iterate through a set of nodes or to change the current node. If one or more <xsl:sort> elements appear as the children of this element, sorting occurs before processing. Otherwise, nodes are processed in document order.",
|
|
94
|
-
"attributes": [
|
|
95
|
-
{
|
|
96
|
-
"name": "select",
|
|
97
|
-
"description": "Uses an XPath expression to select nodes to be processed.",
|
|
98
|
-
"type": "string",
|
|
99
|
-
"references": [
|
|
100
|
-
{
|
|
101
|
-
"name": "MDN docs",
|
|
102
|
-
"url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each#select"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"references": [
|
|
108
|
-
{
|
|
109
|
-
"name": "for-each",
|
|
110
|
-
"url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each"
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "slice",
|
|
116
|
-
"description": "Synthetic element for defining the slice-attributed when more then one slice/event/value associated with parent element",
|
|
117
|
-
"references": [
|
|
118
|
-
{
|
|
119
|
-
"name": "README",
|
|
120
|
-
"url": "https://github.com/EPA-WG/custom-element/tree/develop?tab=readme-ov-file#interactivity-via-data-slice-triggered-by-events"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "location-element",
|
|
126
|
-
"description": "get/set window URL parts or from SRC URL",
|
|
127
|
-
"attributes": [
|
|
128
|
-
{
|
|
129
|
-
"name": "href",
|
|
130
|
-
"description": "url to be parsed. When omitted window.location is used.",
|
|
131
|
-
"type": "string",
|
|
132
|
-
"references": [
|
|
133
|
-
{
|
|
134
|
-
"name": "MDN docs",
|
|
135
|
-
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Location/href"
|
|
136
|
-
}
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"name": "live",
|
|
141
|
-
"description": "monitors history change, applicable only when href is omitted.",
|
|
142
|
-
"type": "string",
|
|
143
|
-
"references": [
|
|
144
|
-
{
|
|
145
|
-
"name": "docs",
|
|
146
|
-
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/location-element.html"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "src",
|
|
152
|
-
"description": "sets the window URL",
|
|
153
|
-
"type": "string",
|
|
154
|
-
"references": [
|
|
155
|
-
{
|
|
156
|
-
"name": "docs",
|
|
157
|
-
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "method",
|
|
163
|
-
"description": "when defined, changes URL by one of predefined methods.",
|
|
164
|
-
"type": "string",
|
|
165
|
-
"references": [
|
|
166
|
-
{
|
|
167
|
-
"name": "docs",
|
|
168
|
-
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html"
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"references": [
|
|
174
|
-
{
|
|
175
|
-
"name": "docs",
|
|
176
|
-
"url": "https://github.com/EPA-WG/custom-element"
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
1
|
+
{
|
|
2
|
+
"version": 1.1,
|
|
3
|
+
"globalAttributes": [
|
|
4
|
+
{
|
|
5
|
+
"name": "slice",
|
|
6
|
+
"description": {
|
|
7
|
+
"kind": "markdown",
|
|
8
|
+
"value": "Defines the name of data slice in DCE where the data from `value` will be propagated on `change` or by `slice-event` event\n\nOn: any component with `value` and associated change event"
|
|
9
|
+
},
|
|
10
|
+
"references": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Demo",
|
|
13
|
+
"url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "slice-event",
|
|
19
|
+
"description": {
|
|
20
|
+
"kind": "markdown",
|
|
21
|
+
"value": "Defines the event name on which `value` would be synchronized with DCE slice\n\nOn: any component with `value` and associated change event"
|
|
22
|
+
},
|
|
23
|
+
"references": [
|
|
24
|
+
{
|
|
25
|
+
"name": "Demo",
|
|
26
|
+
"url": "https://unpkg.com/@epa-wg/custom-element/demo/dom-merge.html"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "custom-validity",
|
|
32
|
+
"description": {
|
|
33
|
+
"kind": "markdown",
|
|
34
|
+
"value": "XPath expression to return either boolean or error string to be shown by browser native UI on form validation event. Unless value is true, prevents the form submission."
|
|
35
|
+
},
|
|
36
|
+
"references": [
|
|
37
|
+
{
|
|
38
|
+
"name": "Demo",
|
|
39
|
+
"url": "https://unpkg.com/@epa-wg/custom-element/demo/form.html"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "slice-value",
|
|
45
|
+
"description": {
|
|
46
|
+
"kind": "markdown",
|
|
47
|
+
"value": "XPath expression to populate into the slice"
|
|
48
|
+
},
|
|
49
|
+
"references": [
|
|
50
|
+
{
|
|
51
|
+
"name": "Demo",
|
|
52
|
+
"url": "https://unpkg.com/@epa-wg/custom-element/demo/data-slices.html"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"tags": [
|
|
58
|
+
{
|
|
59
|
+
"name": "custom-element",
|
|
60
|
+
"description": "Declarative Cuestom ELement(DCE). `<custom-element tag='my-element'></custom-element>`.",
|
|
61
|
+
"attributes": [
|
|
62
|
+
{
|
|
63
|
+
"name": "hidden",
|
|
64
|
+
"description": "hides DCE definition to prevent visual appearance of content. Wrap the payload into template tag to prevent applying the inline CSS in global scope.",
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "tag",
|
|
69
|
+
"description": "HTML tag for Custom Element. Used for window.customElements.define(). If not set, would be generated and DCE instance rendered inline.",
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "src",
|
|
74
|
+
"description": "full, relative, or hash URL to DCE template",
|
|
75
|
+
"type": "string",
|
|
76
|
+
"references": [
|
|
77
|
+
{
|
|
78
|
+
"name": "example",
|
|
79
|
+
"url": "https://unpkg.com/@epa-wg/custom-element/demo/external-template.html"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"references": [
|
|
85
|
+
{
|
|
86
|
+
"name": "custom-element",
|
|
87
|
+
"url": "https://github.com/EPA-WG/custom-element"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "for-each",
|
|
93
|
+
"description": "The <xsl:for-each> element selects a set of nodes and processes each of them in the same way. It is often used to iterate through a set of nodes or to change the current node. If one or more <xsl:sort> elements appear as the children of this element, sorting occurs before processing. Otherwise, nodes are processed in document order.",
|
|
94
|
+
"attributes": [
|
|
95
|
+
{
|
|
96
|
+
"name": "select",
|
|
97
|
+
"description": "Uses an XPath expression to select nodes to be processed.",
|
|
98
|
+
"type": "string",
|
|
99
|
+
"references": [
|
|
100
|
+
{
|
|
101
|
+
"name": "MDN docs",
|
|
102
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each#select"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"references": [
|
|
108
|
+
{
|
|
109
|
+
"name": "for-each",
|
|
110
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/for-each"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "slice",
|
|
116
|
+
"description": "Synthetic element for defining the slice-attributed when more then one slice/event/value associated with parent element",
|
|
117
|
+
"references": [
|
|
118
|
+
{
|
|
119
|
+
"name": "README",
|
|
120
|
+
"url": "https://github.com/EPA-WG/custom-element/tree/develop?tab=readme-ov-file#interactivity-via-data-slice-triggered-by-events"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "location-element",
|
|
126
|
+
"description": "get/set window URL parts or from SRC URL",
|
|
127
|
+
"attributes": [
|
|
128
|
+
{
|
|
129
|
+
"name": "href",
|
|
130
|
+
"description": "url to be parsed. When omitted window.location is used.",
|
|
131
|
+
"type": "string",
|
|
132
|
+
"references": [
|
|
133
|
+
{
|
|
134
|
+
"name": "MDN docs",
|
|
135
|
+
"url": "https://developer.mozilla.org/en-US/docs/Web/API/Location/href"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "live",
|
|
141
|
+
"description": "monitors history change, applicable only when href is omitted.",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"references": [
|
|
144
|
+
{
|
|
145
|
+
"name": "docs",
|
|
146
|
+
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/location-element.html"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "src",
|
|
152
|
+
"description": "sets the window URL",
|
|
153
|
+
"type": "string",
|
|
154
|
+
"references": [
|
|
155
|
+
{
|
|
156
|
+
"name": "docs",
|
|
157
|
+
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "method",
|
|
163
|
+
"description": "when defined, changes URL by one of predefined methods.",
|
|
164
|
+
"type": "string",
|
|
165
|
+
"references": [
|
|
166
|
+
{
|
|
167
|
+
"name": "docs",
|
|
168
|
+
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/set-url.html"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"references": [
|
|
174
|
+
{
|
|
175
|
+
"name": "docs",
|
|
176
|
+
"url": "https://github.com/EPA-WG/custom-element"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "module-url",
|
|
182
|
+
"description": "get module URL into slice from SRC according to web page importmap",
|
|
183
|
+
"attributes": [
|
|
184
|
+
{
|
|
185
|
+
"name": "src",
|
|
186
|
+
"description": "path to module resource, If omitted, it would match the window.location.href",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"references": [
|
|
189
|
+
{
|
|
190
|
+
"name": "docs",
|
|
191
|
+
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/module-url.html"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "slice",
|
|
197
|
+
"description": "slice name where resolved URL would be propagated",
|
|
198
|
+
"type": "string",
|
|
199
|
+
"references": [
|
|
200
|
+
{
|
|
201
|
+
"name": "docs",
|
|
202
|
+
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/data-slices.html"
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"references": [
|
|
208
|
+
{
|
|
209
|
+
"name": "docs",
|
|
210
|
+
"url": "https://unpkg.com/@epa-wg/custom-element@0/demo/module-url.html"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
}
|