@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
package/package.json
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
"./custom-element": {
|
|
75
|
-
"import": "./dist/assets/custom-element-bundle.js",
|
|
76
|
-
"require": "./dist/assets/custom-element-bundle.cjs"
|
|
77
|
-
},
|
|
78
|
-
"./package.json": "./package.json"
|
|
79
|
-
},
|
|
80
|
-
"repository": {
|
|
81
|
-
"type": "git",
|
|
82
|
-
"url": "https://github.com/EPA-WG/custom-element-dist.git"
|
|
83
|
-
},
|
|
84
|
-
"license": "Apache-2.0",
|
|
85
|
-
"bugs": {
|
|
86
|
-
"url": "https://github.com/EPA-WG/custom-element/issues"
|
|
2
|
+
"name": "@epa-wg/custom-element-dist",
|
|
3
|
+
"version": "0.0.26",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite",
|
|
7
|
+
"build": "tsc && vite build",
|
|
8
|
+
"postinstall": "bash bin/postinstall.sh",
|
|
9
|
+
"prepublishOnly": "bash bin/build.sh",
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"build-storybook": "storybook build",
|
|
13
|
+
"test": "node bin/vitest/vitest-browser-importmaps.mjs && vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",
|
|
14
|
+
"test:watch": "vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",
|
|
15
|
+
"test:storybook": "test-storybook",
|
|
16
|
+
"sb": "yarn storybook",
|
|
17
|
+
"t": "node ./node_modules/vitest/vitest.mjs --no-file-parallelism --watch --browser.headless=false src/stories/module-url.test.stories.ts"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@epa-wg/custom-element": "0.0.26"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@chromatic-com/storybook": "^1.7.0",
|
|
24
|
+
"@storybook/addon-essentials": "^8.2.9",
|
|
25
|
+
"@storybook/addon-interactions": "^8.2.9",
|
|
26
|
+
"@storybook/addon-links": "^8.2.9",
|
|
27
|
+
"@storybook/addon-mdx-gfm": "^8.2.9",
|
|
28
|
+
"@storybook/blocks": "^8.2.9",
|
|
29
|
+
"@storybook/test": "^8.2.9",
|
|
30
|
+
"@storybook/test-runner": "^0.19.1",
|
|
31
|
+
"@storybook/web-components": "^8.2.9",
|
|
32
|
+
"@storybook/web-components-vite": "^8.2.9",
|
|
33
|
+
"@vitest/browser": "^2.0.5",
|
|
34
|
+
"@vitest/coverage-istanbul": "^2.0.5",
|
|
35
|
+
"coverage-svg": "^0.0.3",
|
|
36
|
+
"lit": "^3.2.0",
|
|
37
|
+
"msw": "^2.3.5",
|
|
38
|
+
"msw-storybook-addon": "^2.0.3",
|
|
39
|
+
"playwright": "^1.46.1",
|
|
40
|
+
"storybook": "^8.2.9",
|
|
41
|
+
"typescript": "^5.5.4",
|
|
42
|
+
"vite": "^5.4.2",
|
|
43
|
+
"vitest": "^2.0.5",
|
|
44
|
+
"webdriverio": "^9.0.7"
|
|
45
|
+
},
|
|
46
|
+
"msw": {
|
|
47
|
+
"workerDirectory": [
|
|
48
|
+
"public"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"WebComponent",
|
|
53
|
+
"Declarative Custom Element",
|
|
54
|
+
"XSLT",
|
|
55
|
+
"JS",
|
|
56
|
+
"javascript"
|
|
57
|
+
],
|
|
58
|
+
"author": {
|
|
59
|
+
"name": "Sasha Firsov",
|
|
60
|
+
"email": "suns@simulationworks.com",
|
|
61
|
+
"url": "https://blog.firsov.net/"
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"*",
|
|
65
|
+
"dist/**/*",
|
|
66
|
+
"storybook-static/**/*",
|
|
67
|
+
"coverage/**/*"
|
|
68
|
+
],
|
|
69
|
+
"exports": {
|
|
70
|
+
".": {
|
|
71
|
+
"import": "./dist/assets/custom-element-bundle.js",
|
|
72
|
+
"require": "./dist/assets/custom-element-bundle.cjs"
|
|
87
73
|
},
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"url": "https://www.patreon.com/sashafirsov"
|
|
74
|
+
"./custom-element": {
|
|
75
|
+
"import": "./dist/assets/custom-element-bundle.js",
|
|
76
|
+
"require": "./dist/assets/custom-element-bundle.cjs"
|
|
92
77
|
},
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
78
|
+
"./package.json": "./package.json"
|
|
79
|
+
},
|
|
80
|
+
"repository": {
|
|
81
|
+
"type": "git",
|
|
82
|
+
"url": "https://github.com/EPA-WG/custom-element-dist.git"
|
|
83
|
+
},
|
|
84
|
+
"license": "Apache-2.0",
|
|
85
|
+
"bugs": {
|
|
86
|
+
"url": "https://github.com/EPA-WG/custom-element/issues"
|
|
87
|
+
},
|
|
88
|
+
"homepage": "https://github.com/EPA-WG/custom-element#readme",
|
|
89
|
+
"funding": {
|
|
90
|
+
"type": "patreon",
|
|
91
|
+
"url": "https://www.patreon.com/sashafirsov"
|
|
92
|
+
},
|
|
93
|
+
"web-types": [
|
|
94
|
+
"./src/custom-element/ide/web-types-dce.json",
|
|
95
|
+
"./src/custom-element/ide/web-types-xsl.json"
|
|
96
|
+
]
|
|
97
97
|
}
|
package/public/confused.svg
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
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>Data slices - Declarative Custom Element implementation demo</title>
|
|
6
|
+
<link rel="icon" href="./wc-square.svg"/>
|
|
7
|
+
|
|
8
|
+
<script type="module" src="../http-request.js"></script>
|
|
9
|
+
<script type="module" src="../custom-element.js"></script>
|
|
10
|
+
<style>
|
|
11
|
+
@import "./demo.css";
|
|
12
|
+
|
|
13
|
+
label {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
label:has(input[type="text"],input[type="password"],input:not([type]) ) {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
nav {
|
|
22
|
+
max-width: 32em;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
25
|
+
<!-- https://github.com/mdn/learning-area/blob/main/html/forms/form-validation/custom-error-message.html
|
|
26
|
+
todo: apply setCustomValidity( warningStr )
|
|
27
|
+
-->
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
|
|
32
|
+
<fieldset>
|
|
33
|
+
<legend><b style="color:green">green</b> in instance style can be overridden in payload as <i
|
|
34
|
+
style="color:red">red</i> in 1st instance
|
|
35
|
+
</legend>
|
|
36
|
+
<custom-element tag="dce-3">
|
|
37
|
+
<template>
|
|
38
|
+
<u>
|
|
39
|
+
<slot>is green</slot>
|
|
40
|
+
</u>
|
|
41
|
+
</template>
|
|
42
|
+
<style>dce-3 {
|
|
43
|
+
color: green
|
|
44
|
+
}</style>
|
|
45
|
+
</custom-element>
|
|
46
|
+
<u>should be</u> <i style="color:red">red</i>:
|
|
47
|
+
<dce-3 id="dce32">
|
|
48
|
+
<template>
|
|
49
|
+
<style> color:red; </style>
|
|
50
|
+
<u>red</u>
|
|
51
|
+
</template>
|
|
52
|
+
</dce-3> <br/>
|
|
53
|
+
should be GREEN:
|
|
54
|
+
<dce-3 id="dce31">green</dce-3>
|
|
55
|
+
</fieldset>
|
|
56
|
+
|
|
57
|
+
<script type="module" src="https://unpkg.com/html-demo-element@1/html-demo-element.js"></script>
|
|
58
|
+
|
|
59
|
+
</body>
|
|
60
|
+
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
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"><u data-dce-id="2" xmlns="">
|
|
4
|
+
<dce-text data-dce-id="3">
|
|
5
|
+
<xhtml:span xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot=""/>
|
|
6
|
+
<xhtml:style xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot="" title="ABC">
|
|
7
|
+
dce-3[data-dce-style="54f96d52-ce70-435d-83c4-b421357d9a17"]{ color:red; }
|
|
8
|
+
</xhtml:style>
|
|
9
|
+
<xhtml:span xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot=""/>
|
|
10
|
+
<xhtml:u xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot="">red</xhtml:u>
|
|
11
|
+
<xhtml:span xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot=""/>
|
|
12
|
+
</dce-text>
|
|
13
|
+
</u></dce-root>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.0">
|
|
3
|
+
<title>Confused</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="d">
|
|
6
|
+
<stop offset="0"/>
|
|
7
|
+
<stop offset=".5"/>
|
|
8
|
+
<stop offset=".80000001" stop-opacity=".46666667"/>
|
|
9
|
+
<stop offset="1" stop-opacity="0"/>
|
|
10
|
+
</linearGradient>
|
|
11
|
+
<linearGradient id="a">
|
|
12
|
+
<stop offset="0" stop-color="#fb0"/>
|
|
13
|
+
<stop offset=".5" stop-color="#e29d00"/>
|
|
14
|
+
<stop offset="1" stop-color="#fb0"/>
|
|
15
|
+
</linearGradient>
|
|
16
|
+
<linearGradient id="c">
|
|
17
|
+
<stop offset="0"/>
|
|
18
|
+
<stop offset="1" stop-opacity="0"/>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
<linearGradient id="b">
|
|
21
|
+
<stop offset="0" stop-color="#ffc"/>
|
|
22
|
+
<stop offset=".5" stop-color="#fff965"/>
|
|
23
|
+
<stop offset="1" stop-color="#fc3"/>
|
|
24
|
+
</linearGradient>
|
|
25
|
+
<linearGradient xlink:href="#a" id="i" x1="8.0350637" x2="42.788235" y1="32.372219" y2="32.372219" gradientUnits="userSpaceOnUse" spreadMethod="pad"/>
|
|
26
|
+
<radialGradient xlink:href="#b" id="f" cx="17.986637" cy="16.545853" r="23.978155" fx="17.986637" fy="16.545853" gradientUnits="userSpaceOnUse"/>
|
|
27
|
+
<radialGradient xlink:href="#c" id="e" cx="53.309223" cy="94.956306" r="63.252911" fx="53.309223" fy="94.956306" gradientTransform="matrix(1 0 0 .34935 0 61.7838)" gradientUnits="userSpaceOnUse"/>
|
|
28
|
+
<radialGradient xlink:href="#d" id="g" cx="18.71347" cy="21.759708" r="1.8644418" fx="18.71347" fy="21.759708" gradientTransform="matrix(1 0 0 1.77778 0 -16.92422)" gradientUnits="userSpaceOnUse"/>
|
|
29
|
+
</defs>
|
|
30
|
+
<path fill="url(#e)" d="M116.56213 94.956306a63.252911 22.097088 0 1 1-126.5058174 0 63.252911 22.097088 0 1 1 126.5058174 0z" opacity=".53200001" transform="matrix(.3162 0 0 .33941 6.936944 8.132618)"/>
|
|
31
|
+
<path fill="url(#f)" stroke="#fb0" stroke-width="1.43869453" d="M47.094418 23.83131a23.478155 23.478155 0 1 1-46.9563107 0 23.478155 23.478155 0 1 1 46.9563107 0z" transform="translate(4.30185 4.122792) scale(.83409)"/>
|
|
32
|
+
<path id="h" fill="#fff" fill-opacity="1" fill-rule="nonzero" stroke="#fc0" stroke-dasharray="none" stroke-dashoffset="0" stroke-linejoin="miter" stroke-miterlimit="4" stroke-opacity="1" stroke-width="1" d="M21.682767 18.5142a3.9360437 6.9743929 0 1 1-7.872088 0 3.9360437 6.9743929 0 1 1 7.872088 0z" opacity="1" transform="matrix(1.01507 0 0 1.00354 -.0090285 .916405)"/>
|
|
33
|
+
<path id="j" fill="url(#g)" fill-opacity="1" fill-rule="nonzero" stroke="none" stroke-dasharray="none" stroke-dashoffset="0" stroke-linejoin="miter" stroke-miterlimit="4" stroke-opacity="1" stroke-width="1" d="M20.577912 21.759708a1.8644418 3.314563 0 1 1-3.728883 0 1.8644418 3.314563 0 1 1 3.728883 0z" opacity="1" transform="translate(-.138107 .535104)"/>
|
|
34
|
+
<use xlink:href="#h" width="48" height="48" transform="translate(12.50001 -4.4e-7)"/>
|
|
35
|
+
<path fill="none" stroke="url(#i)" stroke-linecap="round" stroke-width="1.97319973" d="M9.0216636 35.899178c4.7689724-7.457767 10.9544424-9.489956 17.3095664-3.728884 5.404329 4.899155 11.190398 4.350365 15.470406-.656007"/>
|
|
36
|
+
<path fill="none" stroke="#e2ac00" stroke-linecap="round" stroke-width="1.17813516" d="M15.504748 34.21319c3.012147-3.243177 6.693658.87012 6.693658.87012" opacity=".8"/>
|
|
37
|
+
<use xlink:href="#j" width="48" height="48" transform="translate(10.78418 -5)"/>
|
|
38
|
+
</svg>
|
|
@@ -0,0 +1,216 @@
|
|
|
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>Data slices - Declarative Custom Element implementation demo</title>
|
|
6
|
+
<link rel="icon" href="./wc-square.svg"/>
|
|
7
|
+
|
|
8
|
+
<script type="module" src="../http-request.js"></script>
|
|
9
|
+
<script type="module" src="../custom-element.js"></script>
|
|
10
|
+
<style>
|
|
11
|
+
@import "./demo.css";
|
|
12
|
+
</style>
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
|
|
16
|
+
<nav>
|
|
17
|
+
<a href="../index.html"><h3><code>custom-element</code> demo</h3></a>
|
|
18
|
+
<h3>Data slices propagation by events.</h3>
|
|
19
|
+
</nav>
|
|
20
|
+
|
|
21
|
+
<html-demo-element legend="A. slice initialization, change on event"
|
|
22
|
+
description="initial value should be 0; + and - should change the number in input field">
|
|
23
|
+
<template>
|
|
24
|
+
<custom-element>
|
|
25
|
+
<template>
|
|
26
|
+
<button slice="clickcount"
|
|
27
|
+
slice-event="click"
|
|
28
|
+
slice-value="//clickcount + 1" >
|
|
29
|
+
+
|
|
30
|
+
</button>
|
|
31
|
+
<button slice="clickcount"
|
|
32
|
+
slice-event="click"
|
|
33
|
+
slice-value="//clickcount - 1" >
|
|
34
|
+
-
|
|
35
|
+
</button>
|
|
36
|
+
<input slice="clickcount" type="number" value="{//clickcount ?? 0}" />
|
|
37
|
+
{//clickcount}
|
|
38
|
+
</template>
|
|
39
|
+
</custom-element>
|
|
40
|
+
</template>
|
|
41
|
+
</html-demo-element>
|
|
42
|
+
|
|
43
|
+
<html-demo-element legend="B. slice event data."
|
|
44
|
+
description="move the mouse over TEXTAREA and click to see slice and slice event changed">
|
|
45
|
+
<template>
|
|
46
|
+
<custom-element>
|
|
47
|
+
<template>
|
|
48
|
+
<textarea slice="s" slice-value="concat('x:', //@pageX)"
|
|
49
|
+
slice-event="mousemove click"
|
|
50
|
+
style="width:16rem;height:16rem;box-shadow: inset {//@offsetX}px {//@offsetY}px gold;" ></textarea><br/>
|
|
51
|
+
//slice/s : {//slice/s} <br/>
|
|
52
|
+
//slice/s/event/@offsetY: {//slice/s/event/@offsetY} <br/>
|
|
53
|
+
event type:{//slice/s/event/@type}
|
|
54
|
+
</template>
|
|
55
|
+
</custom-element>
|
|
56
|
+
</template>
|
|
57
|
+
</html-demo-element>
|
|
58
|
+
|
|
59
|
+
<html-demo-element legend="1. slice change on event. 1:1 slice⮂value"
|
|
60
|
+
description="initial value blank; type and unfocus to see slice changed">
|
|
61
|
+
<template>
|
|
62
|
+
|
|
63
|
+
<custom-element>
|
|
64
|
+
<input slice="typed" /> //slice/typed : {//slice/typed}
|
|
65
|
+
</custom-element>
|
|
66
|
+
</template>
|
|
67
|
+
</html-demo-element>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<html-demo-element legend="2. initial slice value, slice change on event. slice⮂value, w/ initial"
|
|
71
|
+
description="initial value from input; type and unfocus to see slice changed">
|
|
72
|
+
<template>
|
|
73
|
+
<custom-element>
|
|
74
|
+
<input slice="s" value="{//s ?? 'B'}" /> //slice/s : {//slice/s}
|
|
75
|
+
</custom-element>
|
|
76
|
+
</template>
|
|
77
|
+
</html-demo-element>
|
|
78
|
+
|
|
79
|
+
<html-demo-element legend="3. initial slice value, slice change on event. slice⮂value, w/ initial"
|
|
80
|
+
description="initial value from input; type to see slice changed">
|
|
81
|
+
<template>
|
|
82
|
+
<custom-element>
|
|
83
|
+
<input slice="s" value="{//s ?? 'B'}" slice-event="input"/> //slice/s : {//slice/s}
|
|
84
|
+
</custom-element>
|
|
85
|
+
</template>
|
|
86
|
+
</html-demo-element>
|
|
87
|
+
|
|
88
|
+
<html-demo-element legend="4. initial slice value from attribute, slice change on event."
|
|
89
|
+
description="initial value from input; type to see slice changed">
|
|
90
|
+
<template>
|
|
91
|
+
<custom-element tag="dce-1">
|
|
92
|
+
<template>
|
|
93
|
+
<attribute name="a" >😁</attribute>
|
|
94
|
+
<input slice="s" value="{//s ?? $a}" slice-event="keyup" />
|
|
95
|
+
attribute 'a' : {$a}
|
|
96
|
+
//slice/s : {//slice/s}
|
|
97
|
+
</template>
|
|
98
|
+
</custom-element>
|
|
99
|
+
<dce-1></dce-1>
|
|
100
|
+
<dce-1 a="🤗"></dce-1>
|
|
101
|
+
</template>
|
|
102
|
+
</html-demo-element>
|
|
103
|
+
|
|
104
|
+
<html-demo-element legend="5. initial slice value from attribute, slice change on event."
|
|
105
|
+
description="initial value from input as 'xB'; type and unfocus to see slice changed">
|
|
106
|
+
<template>
|
|
107
|
+
<custom-element>
|
|
108
|
+
<template>
|
|
109
|
+
<input slice="s" value="{substring(//s, 2) ?? 'B'}" slice-value="concat('x', @value )" />
|
|
110
|
+
//slice/s : {//slice/s}
|
|
111
|
+
</template>
|
|
112
|
+
</custom-element>
|
|
113
|
+
</template>
|
|
114
|
+
</html-demo-element>
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
<html-demo-element legend="6. initial slice value from input, button ignored till change on click."
|
|
118
|
+
description="initial value from input as 'anonymous'; on button click change to 'broccoli'">
|
|
119
|
+
<template>
|
|
120
|
+
<custom-element>
|
|
121
|
+
<template>
|
|
122
|
+
<input slice="nickname" value="anonymous" />
|
|
123
|
+
<button slice="nickname" slice-value="'broccoli'" slice-event="click">🥦</button>
|
|
124
|
+
{//nickname}
|
|
125
|
+
</template>
|
|
126
|
+
</custom-element>
|
|
127
|
+
</template>
|
|
128
|
+
</html-demo-element>
|
|
129
|
+
|
|
130
|
+
<html-demo-element legend="7. initial slice value from SLICE element, button ignored till change on click."
|
|
131
|
+
description="synthetic SLICE element serves as initial value holder">
|
|
132
|
+
<template>
|
|
133
|
+
<custom-element>
|
|
134
|
+
<template>
|
|
135
|
+
<button slice="clickcount" slice-event="click tap" slice-value="//clickcount + 1">
|
|
136
|
+
<slice slice="clickcount" value="0" ></slice>
|
|
137
|
+
click/tap
|
|
138
|
+
</button>
|
|
139
|
+
//clickcount : {//clickcount}
|
|
140
|
+
</template>
|
|
141
|
+
</custom-element>
|
|
142
|
+
</template>
|
|
143
|
+
</html-demo-element>
|
|
144
|
+
|
|
145
|
+
<html-demo-element legend="8. multiple slices by SLICE element, button ignored till change on click."
|
|
146
|
+
description="synthetic SLICE elements serve as initial value holder">
|
|
147
|
+
<template>
|
|
148
|
+
<custom-element>
|
|
149
|
+
<template>
|
|
150
|
+
<button>
|
|
151
|
+
<slice slice="clicked" value="{0}" ></slice>
|
|
152
|
+
<slice slice="focused" value="{0}" ></slice>
|
|
153
|
+
<slice slice-event="click tap" slice="clicked" slice-value="//clicked+1" ></slice>
|
|
154
|
+
<slice slice-event="focus" slice="focused" slice-value="1" ></slice>
|
|
155
|
+
<slice slice-event="blur" slice="focused" slice-value="0" ></slice>
|
|
156
|
+
click/tap, focus/blur
|
|
157
|
+
</button> <br/>
|
|
158
|
+
//clicked : {//clicked} <br/>
|
|
159
|
+
//focused : {//focused}
|
|
160
|
+
</template>
|
|
161
|
+
</custom-element>
|
|
162
|
+
</template>
|
|
163
|
+
</html-demo-element>
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
<html-demo-element legend="9. slice in attribute"
|
|
167
|
+
description="initial attribute value should be smile as emoji and :) on blur from input it should be updated from value">
|
|
168
|
+
<template>
|
|
169
|
+
<custom-element tag="emotional-element">
|
|
170
|
+
<template>
|
|
171
|
+
<attribute name="emotion" select="//emotion ?? '😃'"></attribute>
|
|
172
|
+
<input slice="/datadom/attributes/emotion"/>
|
|
173
|
+
Type and unfocus to update emotion attribute: {emotion}
|
|
174
|
+
</template>
|
|
175
|
+
</custom-element>
|
|
176
|
+
<emotional-element emotion=":)"></emotional-element>
|
|
177
|
+
<emotional-element></emotional-element>
|
|
178
|
+
</template>
|
|
179
|
+
</html-demo-element>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<html-demo-element legend="10. multiple slices by same field"
|
|
183
|
+
description="same element value sets s1 and s2 slice">
|
|
184
|
+
<template>
|
|
185
|
+
<custom-element>
|
|
186
|
+
<template>
|
|
187
|
+
<input slice="s1|s2"
|
|
188
|
+
slice-event="input"
|
|
189
|
+
data-testid="f1"
|
|
190
|
+
/><br/>
|
|
191
|
+
Type to update s1 and s2 slices <br/>
|
|
192
|
+
slice <code>s1: {//slice/s1}</code><br/>
|
|
193
|
+
slice <code>s2: {//slice/s2}</code><br/>
|
|
194
|
+
</template>
|
|
195
|
+
</custom-element>
|
|
196
|
+
</template>
|
|
197
|
+
</html-demo-element>
|
|
198
|
+
|
|
199
|
+
<html-demo-element legend="11. slices and attribute"
|
|
200
|
+
description="initial attribute value should be smile as emoji and :) on blur from input it should be updated from value">
|
|
201
|
+
<template>
|
|
202
|
+
<custom-element>
|
|
203
|
+
<template>
|
|
204
|
+
<attribute name="emotion">😃</attribute>
|
|
205
|
+
<input slice="/datadom/attributes/emotion | s1"/>
|
|
206
|
+
Type and unfocus to update emotion attribute: {emotion}
|
|
207
|
+
and slice: {//slice/s1}
|
|
208
|
+
</template>
|
|
209
|
+
</custom-element>
|
|
210
|
+
</template>
|
|
211
|
+
</html-demo-element>
|
|
212
|
+
|
|
213
|
+
<script type="module" src="https://unpkg.com/html-demo-element@1/html-demo-element.js"></script>
|
|
214
|
+
|
|
215
|
+
</body>
|
|
216
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
html
|
|
2
|
+
{ font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
|
|
3
|
+
font-weight: 400; font-style: normal; -webkit-font-smoothing: antialiased;
|
|
4
|
+
}
|
|
5
|
+
body,nav{ display: flex; flex-wrap: wrap; align-content: stretch; gap: 1rem; }
|
|
6
|
+
body>*{flex: auto;}
|
|
7
|
+
nav{ flex-direction: column;}
|
|
8
|
+
custom-element+*,
|
|
9
|
+
custom-element+*+*,
|
|
10
|
+
custom-element:not([tag]),
|
|
11
|
+
dce-link,dce-1-slot,dce-2-slot,dce-3-slot,dce-4-slot,dce-2-slots,greet-element,pokemon-tile,
|
|
12
|
+
dce-1,dce-2,dce-3,dce-4,dce-internal,dce-hash
|
|
13
|
+
{ box-shadow: 0 0 0.5rem lime; padding: 1rem; display: inline-block; flex:1; }
|
|
14
|
+
script{ display:none !important; }
|
|
15
|
+
dd{ padding: 1rem;}
|
|
16
|
+
p{ margin: 0;}
|
|
17
|
+
code{ font-weight: bold; color: green; text-wrap: nowrap; }
|
|
18
|
+
*{
|
|
19
|
+
gap: 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
html-demo-element h3
|
|
23
|
+
{ text-shadow: 0 0 0.25em white;
|
|
24
|
+
letter-spacing: 0.1rem;
|
|
25
|
+
}
|
|
26
|
+
*[slot="demo"]{ display: flex; gap: 1rem; flex-wrap: wrap; }
|