-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from EPA-WG/develop
0.0.32
- Loading branch information
Showing
71 changed files
with
1,558 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ CDN version of StoryBook. | |
[github-image]: https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg | ||
[npm-image]: https://img.shields.io/npm/v/@epa-wg/custom-element-dist.svg | ||
[npm-url]: https://npmjs.org/package/@epa-wg/custom-element-dist | ||
[coverage-image]: https://unpkg.com/@epa-wg/[email protected].31/coverage/src/custom-element/coverage.svg | ||
[coverage-url]: https://unpkg.com/@epa-wg/[email protected].31/coverage/src/custom-element/index.html | ||
[sb-url]: https://unpkg.com/@epa-wg/[email protected].31/storybook-static/index.html | ||
[bundle-url]: https://unpkg.com/@epa-wg/[email protected].31/dist/custom-element-bundle.js | ||
[coverage-image]: https://unpkg.com/@epa-wg/[email protected].32/coverage/src/custom-element/coverage.svg | ||
[coverage-url]: https://unpkg.com/@epa-wg/[email protected].32/coverage/src/custom-element/index.html | ||
[sb-url]: https://unpkg.com/@epa-wg/[email protected].32/storybook-static/index.html | ||
[bundle-url]: https://unpkg.com/@epa-wg/[email protected].32/dist/custom-element-bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
<title>Data slices - Declarative Custom Element implementation demo</title> | ||
<title>http-request Declarative Custom Element implementation demo</title> | ||
<link rel="icon" href="./wc-square.svg"/> | ||
|
||
<script type="module" src="../http-request.js"></script> | ||
<script type="module" src="../custom-element.js"></script> | ||
<style> | ||
@import "./demo.css"; | ||
|
||
label { | ||
display: flex; | ||
button { | ||
display: inline-flex; | ||
flex-direction: column; | ||
align-items: center; | ||
flex: auto; | ||
box-shadow: inset silver 0 0 1rem; | ||
min-width: 12rem; | ||
padding: 1rem; | ||
color: coral; | ||
text-shadow: 1px 1px silver; | ||
font-weight: bolder; | ||
} | ||
|
||
label:has(input[type="text"],input[type="password"],input:not([type]) ) { | ||
flex-direction: column; | ||
button img { | ||
max-height: 10vw; | ||
min-height: 4rem; | ||
} | ||
|
||
nav { | ||
max-width: 32em; | ||
table { | ||
min-width: 16rem; | ||
} | ||
|
||
td { | ||
border-bottom: 1px solid silver; | ||
} | ||
|
||
tfoot td { | ||
border-bottom: none; | ||
} | ||
|
||
td, th { | ||
text-align: right; | ||
} | ||
</style> | ||
<!-- https://github.com/mdn/learning-area/blob/main/html/forms/form-validation/custom-error-message.html | ||
todo: apply setCustomValidity( warningStr ) | ||
--> | ||
|
||
caption { | ||
padding: 1rem; | ||
font-weight: bolder; | ||
font-family: sans-serif; | ||
} | ||
|
||
code { | ||
text-align: right; | ||
min-width: 3rem; | ||
} | ||
|
||
svg { | ||
max-height: 3rem; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<fieldset> | ||
<legend><b style="color:green">green</b> in instance style can be overridden in payload as <i | ||
style="color:red">red</i> in 1st instance | ||
</legend> | ||
<custom-element tag="dce-3"> | ||
<template> | ||
<u> | ||
<slot>is green</slot> | ||
</u> | ||
</template> | ||
<style>dce-3 { | ||
color: green | ||
}</style> | ||
</custom-element> | ||
<u>should be</u> <i style="color:red">red</i>: | ||
<dce-3 id="dce32"> | ||
<template> | ||
<style> color:red; </style> | ||
<u>red</u> | ||
</template> | ||
</dce-3> <br/> | ||
should be GREEN: | ||
<dce-3 id="dce31">green</dce-3> | ||
</fieldset> | ||
|
||
<script type="module" src="https://unpkg.com/html-demo-element@1/html-demo-element.js"></script> | ||
|
||
|
||
<custom-element src="./html-template.html#dwc-logo"> | ||
<template><i>loading SVG from templates file ...</i></template> | ||
</custom-element> | ||
|
||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ | |
|
||
svg { | ||
max-height: 3rem; | ||
min-height: 2rem; | ||
} | ||
</style> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<datadom> | ||
<payload xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
<a xmlns="http://www.w3.org/1999/xhtml" href="#" data-dce-id="4" slot="">link 1</a> | ||
<a xmlns="http://www.w3.org/1999/xhtml" href="#" data-dce-id="5" slot="">link 2</a> | ||
<a xmlns="http://www.w3.org/1999/xhtml" href="#" data-dce-id="6" slot="">link 3</a> | ||
</payload> | ||
<payload xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"/> | ||
<attributes> | ||
<xmlns/> | ||
<justify>end</justify> | ||
<data-dce-id>2</data-dce-id> | ||
<direction>row</direction> | ||
<id>dce1</id> | ||
<p1>default_P1</p1> | ||
<p2>always_p2</p2> | ||
<p3></p3> | ||
</attributes> | ||
<dataset> | ||
<dceId>2</dceId> | ||
</dataset> | ||
<dataset/> | ||
<slice/> | ||
</datadom> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.