Skip to content

Commit

Permalink
0.0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
sashafirsov committed Nov 7, 2024
1 parent 03afcf8 commit 74f4f54
Show file tree
Hide file tree
Showing 88 changed files with 43,834 additions and 43,188 deletions.
18 changes: 18 additions & 0 deletions public/demo/s.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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>
<attributes>
<xmlns/>
<justify>end</justify>
<data-dce-id>2</data-dce-id>
<direction>row</direction>
</attributes>
<dataset>
<dceId>2</dceId>
</dataset>
<slice/>
</datadom>
39 changes: 39 additions & 0 deletions public/demo/s.xslt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl">
<xsl:template match="ignore">
<xsl:choose>
<xsl:when test="//attr"><xsl:value-of select="//attr"/></xsl:when>
<xsl:otherwise><xsl:value-of select="def"/></xsl:otherwise>
</xsl:choose><xsl:value-of select="."/></xsl:template>
<xsl:template mode="payload" match="attributes"><xsl:param name="direction"><xsl:choose>
<xsl:when test="//direction"><xsl:value-of select="//direction"/></xsl:when>
<xsl:otherwise><xsl:value-of select="'row'"/></xsl:otherwise>
</xsl:choose></xsl:param><dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1"><xsl:attribute name="direction"><xsl:choose>
<xsl:when test="//direction"><xsl:value-of select="//direction"/></xsl:when>
<xsl:otherwise><xsl:value-of select="'row'"/></xsl:otherwise>
</xsl:choose></xsl:attribute><xsl:call-template name="slot">
<xsl:with-param name="slotname" select="''"/>
<xsl:with-param name="defaultvalue"/>
</xsl:call-template></dce-root></xsl:template>
<xsl:template match="/">
<xsl:apply-templates mode="payload" select="/datadom/attributes"/>
</xsl:template>
<xsl:template name="slot">
<xsl:param name="slotname"/>
<xsl:param name="defaultvalue"/>
<xsl:choose>
<xsl:when test="//payload/*[@slot=$slotname]">
<xsl:copy-of select="//payload/*[@slot=$slotname]"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$defaultvalue"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:variable name="js-injected-body">
<xsl:call-template name="slot">
<xsl:with-param name="slotname" select="''"/>
<xsl:with-param name="defaultvalue"/>
</xsl:call-template>
</xsl:variable>
</xsl:stylesheet>
24 changes: 24 additions & 0 deletions public/demo/ss.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<dce-root data-dce-id="1" label="Number" name="" placeholder="Enter the numeric value" type="text" value=""
xmlns="http://www.w3.org/1999/xhtml" xmlns:dce="urn:schemas-epa-wg:dce"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><pre data-dce-id="2" xmlns=""> //focused
//suggest
//selected
$selected-value </pre>
<label data-dce-id="3">
<dce-text data-dce-id="4">Number</dce-text>
<input data-dce-id="5" name="" placeholder="Enter the numeric value" type="text" value="">
<slice data-dce-id="6" name="focused" slice-event="focus" slice-value="1"/>
<slice data-dce-id="7" name="selected" slice-event="input"/>
</input></label>
<fieldset data-dce-id="8" form="cem-autocomplete-form" xmlns=""><label data-dce-id="9" value="one"><input
data-dce-id="10" name="cem-autocomplete" slice="suggest" slice-event="input" type="radio" value="one"/>
<dce-text data-dce-id="11">One</dce-text>
</label><label data-dce-id="9" value="two"><input data-dce-id="10" name="cem-autocomplete" slice="suggest" slice-event="input"
type="radio" value="two"/>
<dce-text data-dce-id="11">Two</dce-text>
</label><label data-dce-id="9" value="three"><input data-dce-id="10" name="cem-autocomplete" slice="suggest"
slice-event="input" type="radio" value="three"/>
<dce-text data-dce-id="11">Three</dce-text>
</label></fieldset>
</dce-root>
18 changes: 18 additions & 0 deletions src/custom-element/demo/s.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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>
<attributes>
<xmlns/>
<justify>end</justify>
<data-dce-id>2</data-dce-id>
<direction>row</direction>
</attributes>
<dataset>
<dceId>2</dceId>
</dataset>
<slice/>
</datadom>
39 changes: 39 additions & 0 deletions src/custom-element/demo/s.xslt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dce="urn:schemas-epa-wg:dce" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl">
<xsl:template match="ignore">
<xsl:choose>
<xsl:when test="//attr"><xsl:value-of select="//attr"/></xsl:when>
<xsl:otherwise><xsl:value-of select="def"/></xsl:otherwise>
</xsl:choose><xsl:value-of select="."/></xsl:template>
<xsl:template mode="payload" match="attributes"><xsl:param name="direction"><xsl:choose>
<xsl:when test="//direction"><xsl:value-of select="//direction"/></xsl:when>
<xsl:otherwise><xsl:value-of select="'row'"/></xsl:otherwise>
</xsl:choose></xsl:param><dce-root xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" data-dce-id="1"><xsl:attribute name="direction"><xsl:choose>
<xsl:when test="//direction"><xsl:value-of select="//direction"/></xsl:when>
<xsl:otherwise><xsl:value-of select="'row'"/></xsl:otherwise>
</xsl:choose></xsl:attribute><xsl:call-template name="slot">
<xsl:with-param name="slotname" select="''"/>
<xsl:with-param name="defaultvalue"/>
</xsl:call-template></dce-root></xsl:template>
<xsl:template match="/">
<xsl:apply-templates mode="payload" select="/datadom/attributes"/>
</xsl:template>
<xsl:template name="slot">
<xsl:param name="slotname"/>
<xsl:param name="defaultvalue"/>
<xsl:choose>
<xsl:when test="//payload/*[@slot=$slotname]">
<xsl:copy-of select="//payload/*[@slot=$slotname]"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$defaultvalue"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:variable name="js-injected-body">
<xsl:call-template name="slot">
<xsl:with-param name="slotname" select="''"/>
<xsl:with-param name="defaultvalue"/>
</xsl:call-template>
</xsl:variable>
</xsl:stylesheet>
24 changes: 24 additions & 0 deletions src/custom-element/demo/ss.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<dce-root data-dce-id="1" label="Number" name="" placeholder="Enter the numeric value" type="text" value=""
xmlns="http://www.w3.org/1999/xhtml" xmlns:dce="urn:schemas-epa-wg:dce"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><pre data-dce-id="2" xmlns=""> //focused
//suggest
//selected
$selected-value </pre>
<label data-dce-id="3">
<dce-text data-dce-id="4">Number</dce-text>
<input data-dce-id="5" name="" placeholder="Enter the numeric value" type="text" value="">
<slice data-dce-id="6" name="focused" slice-event="focus" slice-value="1"/>
<slice data-dce-id="7" name="selected" slice-event="input"/>
</input></label>
<fieldset data-dce-id="8" form="cem-autocomplete-form" xmlns=""><label data-dce-id="9" value="one"><input
data-dce-id="10" name="cem-autocomplete" slice="suggest" slice-event="input" type="radio" value="one"/>
<dce-text data-dce-id="11">One</dce-text>
</label><label data-dce-id="9" value="two"><input data-dce-id="10" name="cem-autocomplete" slice="suggest" slice-event="input"
type="radio" value="two"/>
<dce-text data-dce-id="11">Two</dce-text>
</label><label data-dce-id="9" value="three"><input data-dce-id="10" name="cem-autocomplete" slice="suggest"
slice-event="input" type="radio" value="three"/>
<dce-text data-dce-id="11">Three</dce-text>
</label></fieldset>
</dce-root>
1 change: 1 addition & 0 deletions storybook-static/assets/Color-ERTF36HU-CQkSD2nd.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion storybook-static/assets/Color-KGDBMAHA-CJo5gHY3.js

This file was deleted.

Loading

0 comments on commit 74f4f54

Please sign in to comment.