-
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 #5 from EPA-WG/develop
0.0.26
- Loading branch information
Showing
213 changed files
with
87,742 additions
and
2,692 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"lib-root/": "./demo/lib-dir/", | ||
"embed-lib": "./demo/lib-dir/embed-lib.html" | ||
} | ||
} | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// injects importmaps for module-url.test.stories.ts | ||
// see notes in ^^ | ||
import fs from 'node:fs' | ||
|
||
const pathName = 'node_modules/@vitest/browser/dist/client/tester/tester.html'; | ||
const jsStr = fs.readFileSync(pathName).toString(); | ||
if( !jsStr.includes('importmap') ) // skip if already patched | ||
{ | ||
const injectedStr = jsStr.replace('</style>', `</style> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"lib-root/": "../../../demo/lib-dir/", | ||
"embed-lib": "../../../demo/lib-dir/embed-lib.html" | ||
} | ||
} | ||
</script> | ||
`); | ||
fs.writeFileSync(pathName, injectedStr); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | ||
<title>Data slices - 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; | ||
} | ||
|
||
label:has(input[type="text"],input[type="password"],input:not([type]) ) { | ||
flex-direction: column; | ||
} | ||
|
||
nav { | ||
max-width: 32em; | ||
} | ||
</style> | ||
<!-- https://github.com/mdn/learning-area/blob/main/html/forms/form-validation/custom-error-message.html | ||
todo: apply setCustomValidity( warningStr ) | ||
--> | ||
|
||
</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> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<dce-root data-dce-id="1" xmlns="http://www.w3.org/1999/xhtml" xmlns:dce="urn:schemas-epa-wg:dce" | ||
xmlns:xhtml="http://www.w3.org/1999/xhtml"><u data-dce-id="2" xmlns=""> | ||
<dce-text data-dce-id="3"> | ||
<xhtml:span xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot=""/> | ||
<xhtml:style xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot="" title="ABC"> | ||
dce-3[data-dce-style="54f96d52-ce70-435d-83c4-b421357d9a17"]{ color:red; } | ||
</xhtml:style> | ||
<xhtml:span xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot=""/> | ||
<xhtml:u xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot="">red</xhtml:u> | ||
<xhtml:span xmlns:xsl="http://www.w3.org/1999/XSL/Transform" slot=""/> | ||
</dce-text> | ||
</u></dce-root> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.