From c5b642cdc8fe055b250228ae31470c5d8eafebb4 Mon Sep 17 00:00:00 2001 From: David Vogel Date: Sun, 28 May 2023 13:52:21 +0200 Subject: [PATCH] Add ContainerHorizontal --- components/layout/container-horizontal.vugu | 27 + .../layout/container-horizontal_vgen.go | 62 + page-colors.vugu | 38 +- page-colors_vgen.go | 1638 +++++++++-------- page-overlays.vugu | 6 +- page-overlays_vgen.go | 117 +- 6 files changed, 1061 insertions(+), 827 deletions(-) create mode 100644 components/layout/container-horizontal.vugu create mode 100644 components/layout/container-horizontal_vgen.go diff --git a/components/layout/container-horizontal.vugu b/components/layout/container-horizontal.vugu new file mode 100644 index 0000000..8131674 --- /dev/null +++ b/components/layout/container-horizontal.vugu @@ -0,0 +1,27 @@ +
+ +
+ + + + diff --git a/components/layout/container-horizontal_vgen.go b/components/layout/container-horizontal_vgen.go new file mode 100644 index 0000000..09c4042 --- /dev/null +++ b/components/layout/container-horizontal_vgen.go @@ -0,0 +1,62 @@ +package layout + +// 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/utils" +) + +// ContainerHorizonal arranges all contained elements in one row. +// This can be used to create a menu bar out of buttons. +type ContainerHorizontal struct { + AttrMap vugu.AttrMap + + DefaultSlot vugu.Builder `vugu:"data"` +} + +func (c *ContainerHorizontal) 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 + vgn.AddAttrList(utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1685274222"}) + { + vgparent := vgn + _ = vgparent + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"} + vgparent.AppendChild(vgn) + { + var vgcomp vugu.Builder = c.DefaultSlot + if vgcomp != nil { + vgin.BuildEnv.WireComponent(vgcomp) + 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.d3c-1685274222 {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 0.5em;\n\t\tmargin: 0.5em 0;\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 diff --git a/page-colors.vugu b/page-colors.vugu index 3c31389..b7fbcb2 100644 --- a/page-colors.vugu +++ b/page-colors.vugu @@ -24,7 +24,7 @@ " Successful action\n" + ""' style="margin: 0;"> -
+ Successful action @@ -41,8 +41,8 @@ Dangerous action -
-
+ + Successful action @@ -59,46 +59,48 @@ Dangerous action -
+

Tags


 		
-
+ This was a success Attention needed Warning Something went wrong -
-
+ + This was a success Attention needed Warning Something went wrong -
+

Icons

Icons will use the text color by default, if you need to change their stroke/fill coloring, use the d3c-icon-use-color class.


 		
-
+ -
+

Containers

This container uses the d3c-color-layer-1 class. All child elements inherit the color scheme. - - - Does inherit color - - - - Doesn't inherit color - + + + + Does inherit color + + + + Doesn't inherit color + + Something bad happened! diff --git a/page-colors_vgen.go b/page-colors_vgen.go index 492e05f..c9dfedc 100644 --- a/page-colors_vgen.go +++ b/page-colors_vgen.go @@ -32,7 +32,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0xB4D5B4F8F5520F5E^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -73,7 +73,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0x726BDE1C6E5CB75B^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -108,7 +108,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0x6D73F9FAAA216E82^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -141,7 +141,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0x8A726494AD3412F2^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -174,7 +174,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0xB19ED2341B7E3900^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -207,7 +207,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0x4A899082DCE15CD1^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -240,7 +240,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0xB4C843DDC27EB99B^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -273,7 +273,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0xF658B7B75ED9B09A^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -306,7 +306,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0x38E1D69F942BF4F5^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -339,7 +339,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0x13B142555424A64^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -372,7 +372,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0xDDA053F0A495AA39^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -405,7 +405,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0xB95C9BD6E5CB94A7^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -438,7 +438,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent { - vgcompKey := vugu.MakeCompKey(0x62CFE288D87324DD^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -474,7 +474,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0x3278113C09D4769^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -508,438 +508,472 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { } vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) - vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "flex-container"}}} - vgparent.AppendChild(vgn) { - vgparent := vgn - _ = vgparent - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0x91733715AE37945B^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(0x8E3597AFE21B49B7^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) + 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) } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0x513DEE62A5798BF1^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 + 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 - { - vgcompKey := vugu.MakeCompKey(0x7A26F693E3FFE34F^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} + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xC1A2B8821339AC18^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(0xAC4227AEE89CAD86^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) + { + 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) } - 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 + 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 - 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(0xDD1FA8637F58D05A^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(0xFF5A0EDD1425D63^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) + { + 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) } - 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 + 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"} + 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) - return - }) - vgout.Components = append(vgout.Components, vgcomp) - vgn = &vugu.VGNode{Component: vgcomp} + } + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} + { + 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) - vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "flex-container"}}} - vgparent.AppendChild(vgn) { - vgparent := vgn - _ = vgparent - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xA5AE82272B512306^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(0xCD5DC72EE69DD7A3^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) + 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) } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xAEA4CA9ADB14E178^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 + 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 - { - vgcompKey := vugu.MakeCompKey(0xFAC889A4871F424^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} + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xB62FF2B8F91D76C0^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(0xE08A4FBB2F1A5E69^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) + { + 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) } - 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 + 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 - 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(0x3B8F7CFB1345460^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(0xDFF454628843CEC2^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) + { + 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) } - 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 + 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"} + 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) - return - }) - vgout.Components = append(vgout.Components, vgcomp) - vgn = &vugu.VGNode{Component: vgcomp} + } + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} + { + 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"} @@ -950,7 +984,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0xA366DD341993239F^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -981,254 +1015,288 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { } vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) - vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "flex-container"}}} - vgparent.AppendChild(vgn) { - vgparent := vgn - _ = vgparent - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xA9A04D2DC5A16EF^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) + 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) } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0x42E173A066B597A8^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 + 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: "Attention needed"} - vgparent.AppendChild(vgn) - return - }) - vgout.Components = append(vgout.Components, vgcomp) - vgn = &vugu.VGNode{Component: vgcomp} + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0x8CB73063DE33C2C0^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 + { + 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: "Warning"} + 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) - 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(0xAD0C7FC4731E29A^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} + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} + { + 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) - vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "flex-container"}}} - vgparent.AppendChild(vgn) { - vgparent := vgn - _ = vgparent - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xF55E2FF13B2987C8^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) + 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) } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xE476C6F6FAE55C95^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 + 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: "Attention needed"} - vgparent.AppendChild(vgn) - return - }) - vgout.Components = append(vgout.Components, vgcomp) - vgn = &vugu.VGNode{Component: vgcomp} + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xC665C960272B9B76^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 + { + 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: "Warning"} + 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) - 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(0x99AA990FB3163A44^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} + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} + { + 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"} @@ -1246,7 +1314,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { 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(0x4CD7E0BA598E7F42^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -1276,7 +1344,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0x6D5071A5C643C761^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -1307,48 +1375,67 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { } vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) - vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "class", Val: "flex-container"}, vugu.VGAttribute{Namespace: "", Key: "style", Val: "font-size: 2em;"}}} - vgparent.AppendChild(vgn) { - vgparent := vgn - _ = vgparent - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0x8DC7C8ECE0946A25^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) + 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) } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0xED1A5D808371F12D^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} + 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) - } - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} + { + 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"} @@ -1359,7 +1446,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0x9016DD367546B995^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -1387,7 +1474,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "This container uses the "} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0xEF2406F7CF2D88ED^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -1419,38 +1506,15 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0x4DAD1A887954458A^vgin.CurrentPositionHash(), vgiterkey) + vgcompKey := vugu.MakeCompKey(0xDF915B423813A4D1^vgin.CurrentPositionHash(), vgiterkey) // ask BuildEnv for prior instance of this specific component - vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button) + vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.ContainerHorizontal) if vgcomp == nil { // create new one if needed - vgcomp = new(input.Button) + 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.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(0x26BE840C64B7C017^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{} @@ -1458,59 +1522,109 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgparent := vgn _ = vgparent - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Does inherit color"} + vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\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\t"} - vgparent.AppendChild(vgn) - { - vgcompKey := vugu.MakeCompKey(0x6FAD14D5C7AAD2A5^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(0xB66A064CE2439293^vgin.CurrentPositionHash(), vgiterkey) + vgcompKey := vugu.MakeCompKey(0xD8E1EF7C96861286^vgin.CurrentPositionHash(), vgiterkey) // ask BuildEnv for prior instance of this specific component - vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LPlus) + vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button) if vgcomp == nil { // create new one if needed - vgcomp = new(icons.LPlus) + 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) } - 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: "\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 - vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Doesn't inherit color"} + { + 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 }) @@ -1529,7 +1643,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0xF9324E23822798C2^vgin.CurrentPositionHash(), vgiterkey) + 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 { @@ -1550,7 +1664,7 @@ func (c *PageColors) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) { vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"} vgparent.AppendChild(vgn) { - vgcompKey := vugu.MakeCompKey(0x8AEBAD4025E7F988^vgin.CurrentPositionHash(), vgiterkey) + 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 { diff --git a/page-overlays.vugu b/page-overlays.vugu index ee2a694..eb83d41 100644 --- a/page-overlays.vugu +++ b/page-overlays.vugu @@ -31,8 +31,10 @@ " })\n" + "}"' style="margin: 0;"> - Open simple toast - Open warning toast + + Open simple toast + Open warning toast +

A shorter version of this is overlay.ToastMessage which only accepts a message text and a message type which is one of