1717 lines
72 KiB
Go
1717 lines
72 KiB
Go
package main
|
|
|
|
// Code generated by vugu via vugugen. Please regenerate instead of editing or add additional code in a separate file. DO NOT EDIT.
|
|
|
|
import "fmt"
|
|
import "reflect"
|
|
import "github.com/vugu/vjson"
|
|
import "github.com/vugu/vugu"
|
|
import js "github.com/vugu/vugu/js"
|
|
|
|
import (
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/layout"
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/view"
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
|
|
)
|
|
|
|
type PageColors struct{}
|
|
|
|
func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
var vgiterkey interface{}
|
|
_ = vgiterkey
|
|
var vgn *vugu.VGNode
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute(nil)}
|
|
vgout.Out = append(vgout.Out, vgn) // root for output
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xF41E59924BE6FD91^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.Container)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.Container)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "h2", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML(vugu.HTML("Signal colors"))
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "p", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML(vugu.HTML("Colors can be set via special color classes:"))
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "ul", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x9D0696B00EDBF530^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-layer-0"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: " This is the default color scheme."}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x211B7B954237FF22^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-layer-1"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x4996B936C053F53D^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-layer-2"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xD5FE255A145534BB^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-accent"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xE86305EEF3A4E010^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-success"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x3ABE6D86D81D9D3C^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-success-faded"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xCDC495EB6028B33E^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-attention"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xE1D1229320D9673C^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-attention-faded"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x619EFD08D8EA1ED3^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-caution"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xE692DC1B0E76404B^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-caution-faded"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x53CB1C81C1932CF8^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-critical"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "li", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xB5DDB4EAE7D2CDE3^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-critical-faded"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "h2", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML(vugu.HTML("Buttons"))
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x2B1E8662CF1E93E8^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Code)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Code)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "pre", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "style", Val: "margin: 0;"}}}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML("<input:Button class=\"d3c-color-success\">\n" +
|
|
" <vg-slot name=\"IconSlot\"><icons:LPlus></icons:LPlus></vg-slot>\n" +
|
|
" <vg-slot name=\"DefaultSlot\">Successful action</vg-slot>\n" +
|
|
"</input:Button>")
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x5DE4C95C9A40D7C8^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.ContainerHorizontal)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.ContainerHorizontal)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xC28D3923D598F36B^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-success"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x6AAD8FB7B9FC35EF^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LPlus)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LPlus)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Successful action"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xE19C8E8F5837DB36^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-attention"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xE3FB67070015A334^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LGlobe)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Highlighted action"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x6E6EFAB2AEB7C157^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-caution"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x2B507DC684386063^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LInfoCircle)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LInfoCircle)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Press with caution"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xFC40A53893090555^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-critical"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x78291F736572DAB0^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LWarning)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LWarning)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Dangerous action"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x8F4CDD18BE0AD2E3^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.ContainerHorizontal)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.ContainerHorizontal)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x5529BBFDC747250B^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-success-faded"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x5AE0BE63C93E2C7B^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LPlus)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LPlus)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Successful action"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xCEE3CB30C1BDD4AA^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-attention-faded"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x704F700B5F3357F0^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LGlobe)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Highlighted action"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x47F71764A372944C^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-caution-faded"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xD4D3E8D474283976^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LInfoCircle)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LInfoCircle)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Press with caution"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xE7BDD5882CBDE77F^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-critical-faded"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x7A5E854662AC777C^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LWarning)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LWarning)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Dangerous action"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "h2", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML(vugu.HTML("Tags"))
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x991477C432D5D527^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Code)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Code)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "pre", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "style", Val: "margin: 0;"}}}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML("<view:Tag class=\"d3c-color-success\">This was a success</view:Tag>")
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x2E6EFF62BA669CC^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.ContainerHorizontal)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.ContainerHorizontal)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x5A82938894173F85^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-success"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "This was a success"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x3E406298C545DCA3^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-attention"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Attention needed"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x23E52DBD553055B3^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-caution"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Warning"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x21EDF299BE6ADBF^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-critical"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Something went wrong"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xBB0710E78B139E4E^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.ContainerHorizontal)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.ContainerHorizontal)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x8BE1B9B4EE81B5E3^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-success-faded"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "This was a success"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x7C993861AF99E52^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-attention-faded"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Attention needed"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x9E049AC8E1123688^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-caution-faded"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Warning"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xD3FCA56E07F59610^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Tag)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Tag)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-critical-faded"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Something went wrong"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "h2", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML(vugu.HTML("Icons"))
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "p", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Icons will use the text color by default, if you need to change their stroke/fill coloring, use the "}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x3A606B67CCE518E1^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-icon-use-color"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: " class."}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x14798F0E0D631B7A^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Code)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.Code)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "pre", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "style", Val: "margin: 0;"}}}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML("<icons:LInfoCircle class=\"d3c-color-attention d3c-icon-use-color\"></icons:LInfoCircle>")
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xEA4ECEF91969F1DD^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.ContainerHorizontal)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.ContainerHorizontal)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["style"] = "font-size: 2em;"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xF1A5F92AA07A79EF^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LInfoCircle)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LInfoCircle)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-attention d3c-icon-use-color"
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x70A3102B0923AA2B^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LWarning)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LWarning)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-critical d3c-icon-use-color"
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "h2", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML(vugu.HTML("Containers"))
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xE85DB21E57816EA6^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.LayerContainer)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.LayerContainer)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-layer-1"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "span", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "This container uses the "}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xEC4B6953AFE00337^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(view.CodeInline)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-layer-2"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "d3c-color-layer-1"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: " class. All child elements inherit the color scheme."}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xDF915B423813A4D1^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.ContainerHorizontal)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.ContainerHorizontal)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xD8E1EF7C96861286^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x4B81041E9DE45F6^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LPlus)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LPlus)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Does inherit color"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0xBD7CF9AB8D09385B^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(input.Button)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-layer-0"
|
|
vgcomp.IconSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x918BCE556FDF022E^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LPlus)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LPlus)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
return
|
|
})
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Doesn't inherit color"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x7C51DB9F42B65C30^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.LayerContainer)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(layout.LayerContainer)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
vgcomp.AttrMap["class"] = "d3c-color-critical-faded"
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
vgout = &vugu.BuildOut{}
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
vgparent := vgn
|
|
_ = vgparent
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
{
|
|
vgcompKey := vugu.MakeCompKey(0x141794B8A7DBDDAF^vgin.CurrentPositionHash(), vgiterkey)
|
|
// ask BuildEnv for prior instance of this specific component
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LWarning)
|
|
if vgcomp == nil {
|
|
// create new one if needed
|
|
vgcomp = new(icons.LWarning)
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
}
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: " "}
|
|
vgparent.AppendChild(vgn)
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "span", Attr: []vugu.VGAttribute(nil)}
|
|
vgparent.AppendChild(vgn)
|
|
vgn.SetInnerHTML(vugu.HTML("Something bad happened!"))
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
vgparent.AppendChild(vgn)
|
|
return
|
|
})
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
vgparent.AppendChild(vgn)
|
|
}
|
|
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.flex-container {\n\t\tmargin: 0.5em 0;\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 0.5em;\n\t}\n", Attr: []vugu.VGAttribute(nil)})
|
|
}
|
|
vgout.AppendCSS(vgn)
|
|
return vgout
|
|
}
|
|
|
|
// 'fix' unused imports
|
|
var _ fmt.Stringer
|
|
var _ reflect.Type
|
|
var _ vjson.RawMessage
|
|
var _ js.Value
|