Add utils package

- Add AttributesAppend type
- Add icon class and add styles to icons
- Change elements to use AttributesAppend in vg-attr
- Move example icons into their own component
master
David Vogel 11 months ago
parent df7d956874
commit e9c2353da3

@ -1,5 +1,6 @@
{
"cSpell.words": [
"Dadido",
"domrender",
"Fullscreen",
"ldflags",

@ -0,0 +1,82 @@
<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683994083"}'>
<icons:LArrowDown></icons:LArrowDown>
<icons:LArrowLeft></icons:LArrowLeft>
<icons:LArrowRight></icons:LArrowRight>
<icons:LArrowUp></icons:LArrowUp>
<icons:LBackToWindow></icons:LBackToWindow>
<icons:LCancel></icons:LCancel>
<icons:LChevronDown></icons:LChevronDown>
<icons:LChevronLeft></icons:LChevronLeft>
<icons:LChevronRight></icons:LChevronRight>
<icons:LChevronUp></icons:LChevronUp>
<icons:LCircleMinus></icons:LCircleMinus>
<icons:LCirclePlus></icons:LCirclePlus>
<icons:LCopy></icons:LCopy>
<icons:LCustomize></icons:LCustomize>
<icons:LCut></icons:LCut>
<icons:LDelete></icons:LDelete>
<icons:LDeliver></icons:LDeliver>
<icons:LDocument></icons:LDocument>
<icons:LDocumentBulletList></icons:LDocumentBulletList>
<icons:LDocumentCheckboxes></icons:LDocumentCheckboxes>
<icons:LDocumentRichText></icons:LDocumentRichText>
<icons:LDocumentText></icons:LDocumentText>
<icons:LDownload></icons:LDownload>
<icons:LEdit></icons:LEdit>
<icons:LErrorCircle></icons:LErrorCircle>
<icons:LFilter></icons:LFilter>
<icons:LFullScreen></icons:LFullScreen>
<icons:LGlobalNav></icons:LGlobalNav>
<icons:LGlobe></icons:LGlobe>
<icons:LHome></icons:LHome>
<icons:LHourglass></icons:LHourglass>
<icons:LInfoCircle></icons:LInfoCircle>
<icons:LLockClosed></icons:LLockClosed>
<icons:LLockDisabled></icons:LLockDisabled>
<icons:LLockOpened></icons:LLockOpened>
<icons:LMail></icons:LMail>
<icons:LMailOpened></icons:LMailOpened>
<icons:LMinus></icons:LMinus>
<icons:LMore></icons:LMore>
<icons:LPaste></icons:LPaste>
<icons:LPause></icons:LPause>
<icons:LPlus></icons:LPlus>
<icons:LPowerButton></icons:LPowerButton>
<icons:LRedo></icons:LRedo>
<icons:LReload></icons:LReload>
<icons:LSave></icons:LSave>
<icons:LSearch></icons:LSearch>
<icons:LSettings></icons:LSettings>
<icons:LSort></icons:LSort>
<icons:LStar></icons:LStar>
<icons:LStart></icons:LStart>
<icons:LStop></icons:LStop>
<icons:LStopWatch></icons:LStopWatch>
<icons:LUndo></icons:LUndo>
<icons:LUpload></icons:LUpload>
<icons:LWarehouse></icons:LWarehouse>
<icons:LWarning></icons:LWarning>
<icons:LZoom></icons:LZoom>
<icons:LZoomIn></icons:LZoomIn>
<icons:LZoomOut></icons:LZoomOut>
</div>
<style>
.d3c-1683994083 {
display: flex;
flex-wrap: wrap;
gap: 1em;
margin: 1em 0;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type ComponentIcons struct {
AttrMap vugu.AttrMap
}
</script>

File diff suppressed because it is too large Load Diff

@ -1,4 +1,4 @@
<button vg-attr="c.AttrMap" class="d3c-1633424238" @click="c.HandleClick(event)">
<button vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1633424238"}' @click="c.HandleClick(event)">
<vg-comp expr="c.SymbolSlot"></vg-comp><vg-comp expr="c.DefaultSlot"></vg-comp>
</button>
@ -25,4 +25,10 @@
.d3c-1633424238-selected {
background-color: RGBA(127, 127, 127, 0.2);
}
</style>
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
func (c *Button) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgout = &vugu.BuildOut{}
@ -15,9 +19,9 @@ func (c *Button) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgiterkey interface{}
_ = vgiterkey
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "button", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-1633424238"}}}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "button", Attr: []vugu.VGAttribute(nil)}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1633424238"})
vgn.DOMEventHandlerSpecList = append(vgn.DOMEventHandlerSpecList, vugu.DOMEventHandlerSpec{
EventType: "click",
Func: func(event vugu.DOMEvent) { c.HandleClick(event) },

@ -1,4 +1,4 @@
<div vg-attr="c.AttrMap" class="d3c-1634593574">
<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1634593574"}'>
<vg-comp expr="c.DefaultSlot"></vg-comp>
</div>
@ -6,4 +6,10 @@
.d3c-1634593574 {
margin: 20px;
}
</style>
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
func (c *Container) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgout = &vugu.BuildOut{}
@ -15,9 +19,9 @@ func (c *Container) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgiterkey interface{}
_ = vgiterkey
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-1634593574"}}}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1634593574"})
{
vgparent := vgn
_ = vgparent

@ -1,4 +1,4 @@
<div vg-attr="c.AttrMap" class="d3c-1683824360">
<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683824360"}'>
<input:Button @Click="c.handleClick(event)"><vg-slot name="SymbolSlot"><icons:LFullScreen></icons:LFullScreen></vg-slot>
</input:Button>
</div>
@ -11,7 +11,8 @@
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>

@ -11,6 +11,7 @@ import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
func (c *ButtonFullscreen) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
@ -20,9 +21,9 @@ func (c *ButtonFullscreen) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgiterkey interface{}
_ = vgiterkey
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-1683824360"}}}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683824360"})
{
vgparent := vgn
_ = vgparent

@ -1,4 +1,4 @@
<button vg-attr="c.AttrMap" :class='"d3c-1683622560 " + c.classes' @click="c.handleClick(event)">
<button vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683622560 " + c.classes}' @click="c.handleClick(event)">
<vg-comp expr="c.SymbolSlot"></vg-comp><vg-comp expr="c.DefaultSlot"></vg-comp>
</button>
@ -33,4 +33,10 @@
.d3c-1633357633-sidebar-minimized .d3c-1683622560 > *:not(:first-child) {
display: none;
}
</style>
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
func (c *SidebarEntry) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgout = &vugu.BuildOut{}
@ -17,8 +21,7 @@ func (c *SidebarEntry) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "button", Attr: []vugu.VGAttribute(nil)}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrInterface("class", "d3c-1683622560 "+c.classes)
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683622560 " + c.classes})
vgn.DOMEventHandlerSpecList = append(vgn.DOMEventHandlerSpecList, vugu.DOMEventHandlerSpec{
EventType: "click",
Func: func(event vugu.DOMEvent) { c.handleClick(event) },

@ -1,4 +1,4 @@
<div vg-attr="c.AttrMap" class="d3c-1633357633">
<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1633357633"}'>
<div :class='"d3c-1633357633-sidebar " + c.sidebarClasses'>
<div class="d3c-1633357633-sidebar-menu">
<input:Button @Click="c.handleMenuButton(event)">
@ -89,7 +89,8 @@
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>

@ -11,6 +11,7 @@ import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
func (c *Sidebar) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
@ -20,9 +21,9 @@ func (c *Sidebar) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgiterkey interface{}
_ = vgiterkey
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-1633357633"}}}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1633357633"})
{
vgparent := vgn
_ = vgparent

@ -1,4 +1,4 @@
<span vg-attr="c.AttrMap" class="d3c-1634910850"><vg-comp expr="c.DefaultSlot"></vg-comp></span>
<span vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1634910850"}'><vg-comp expr="c.DefaultSlot"></vg-comp></span>
<style>
.d3c-1634910850 {
@ -7,3 +7,9 @@
background-color: RGBA(127, 127, 127, 0.1);
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
func (c *CodeInline) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgout = &vugu.BuildOut{}
@ -15,9 +19,9 @@ func (c *CodeInline) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgiterkey interface{}
_ = vgiterkey
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "span", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-1634910850"}}}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "span", Attr: []vugu.VGAttribute(nil)}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1634910850"})
{
vgparent := vgn
_ = vgparent

@ -1,4 +1,4 @@
<div vg-attr="c.AttrMap" class="d3c-1683741854">
<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683741854"}'>
<vg-comp expr="c.DefaultSlot"></vg-comp>
</div>
@ -11,3 +11,9 @@
background-color: RGBA(127, 127, 127, 0.1);
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
func (c *Code) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgout = &vugu.BuildOut{}
@ -15,9 +19,9 @@ func (c *Code) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgiterkey interface{}
_ = vgiterkey
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "d3c-1683741854"}}}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683741854"})
{
vgparent := vgn
_ = vgparent

@ -1,6 +1,36 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap"></svg>
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon"}'></svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type Empty struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 142 B

After

Width:  |  Height:  |  Size: 690 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type Empty struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,12 @@ func (c *Empty) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon"})
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<path class="d3c-icon-stroke" d="M13.5 9.5l-6 6 -6 -6m6 6l0 -15" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowDown struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 867 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowDown struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LArrowDown) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LArrowDown) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<path class="d3c-icon-stroke" d="M6.5 14.5l-6 -6 6 -6m-6 6l15 0" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowLeft struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 307 B

After

Width:  |  Height:  |  Size: 867 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowLeft struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LArrowLeft) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LArrowLeft) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<path class="d3c-icon-stroke" d="M9.5 14.5l6 -6 -6 -6m6 6l-15 0" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowRight struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 308 B

After

Width:  |  Height:  |  Size: 868 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowRight struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LArrowRight) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LArrowRight) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<path class="d3c-icon-stroke" d="M13.5 6.5l-6 -6 -6 6m6 -6l0 15" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowUp struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 865 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LArrowUp struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LArrowUp) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LArrowUp) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<path class="d3c-icon-stroke" d="M9.5 1.5l0 5 5 0m1 -6l-6 6m-3 8l0 -5 -5 0m-1 6l6 -6" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LBackToWindow struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 891 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LBackToWindow struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LBackToWindow) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LBackToWindow) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<path class="d3c-icon-stroke" d="M1.5 2.5l12 12m-12 0l12 -12" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LCancel struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 861 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LCancel struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LCancel) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LCancel) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<polyline class="d3c-icon-stroke" points="1.5,5.5 7.5,11.5 13.5,5.5" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronDown struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 873 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronDown struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LChevronDown) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LChevronDown) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<polyline class="d3c-icon-stroke" points="10.5,2.5 4.5,8.5 10.5,14.5 " stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronLeft struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 875 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronLeft struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LChevronLeft) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LChevronLeft) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<polyline class="d3c-icon-stroke" points="5.5,2.5 11.5,8.5 5.5,14.5" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronRight struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 874 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronRight struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LChevronRight) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LChevronRight) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,8 +1,38 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<polyline class="d3c-icon-stroke" points="1.5,10.5 7.5,4.5 13.5,10.5 " stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronUp struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 873 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LChevronUp struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LChevronUp) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)
vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"})
{
vgparent := vgn
_ = vgparent
@ -32,6 +36,11 @@ func (c *LChevronUp) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n"}
vgparent.AppendChild(vgn)
}
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Data: "style", Attr: []vugu.VGAttribute(nil)}
{
vgn.AppendChild(&vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t.d3c-icon {\n\t\t/*margin: 10px;*/\n\t\theight: 16px;\n\t}\n\n\t.d3c-size-tiny .d3c-icon {\n\t\theight: 8px !important;\n\t}\n\t.d3c-size-small .d3c-icon {\n\t\theight: 12px !important;\n\t}\n\t.d3c-size-large .d3c-icon {\n\t\theight: 24px !important;\n\t}\n\t.d3c-size-xlarge .d3c-icon {\n\t\theight: 32px !important;\n\t}\n\t.d3c-size-xxlarge .d3c-icon {\n\t\theight: 48px !important;\n\t}\n\t.d3c-size-xxxlarge .d3c-icon {\n\t\theight: 64px !important;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
}
vgout.AppendCSS(vgn)
return vgout
}

@ -1,9 +1,39 @@
<svg viewBox="0 0 16 16" vg-attr="c.AttrMap">
<svg viewBox="0 0 16 16" vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-icon d3-lineicon"}'>
<path class="d3c-icon-stroke" d="M4.5 8.5l6 0" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
<circle class="d3c-icon-stroke" cx="7.5" cy="8.5" r="7" stroke="black" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
</svg>
<style>
.d3c-icon {
/*margin: 10px;*/
height: 16px;
}
.d3c-size-tiny .d3c-icon {
height: 8px !important;
}
.d3c-size-small .d3c-icon {
height: 12px !important;
}
.d3c-size-large .d3c-icon {
height: 24px !important;
}
.d3c-size-xlarge .d3c-icon {
height: 32px !important;
}
.d3c-size-xxlarge .d3c-icon {
height: 48px !important;
}
.d3c-size-xxxlarge .d3c-icon {
height: 64px !important;
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LCircleMinus struct{
AttrMap vugu.AttrMap
}

Before

Width:  |  Height:  |  Size: 441 B

After

Width:  |  Height:  |  Size: 1001 B

@ -8,6 +8,10 @@ import "github.com/vugu/vjson"
import "github.com/vugu/vugu"
import js "github.com/vugu/vugu/js"
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
type LCircleMinus struct {
AttrMap vugu.AttrMap
}
@ -21,7 +25,7 @@ func (c *LCircleMinus) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
var vgn *vugu.VGNode
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "svg", Data: "svg", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "viewBox", Val: "0 0 16 16"}}}
vgout.Out = append(vgout.Out, vgn) // root for output
vgn.AddAttrList(c.AttrMap)