2023-05-15 06:58:12 +00:00
|
|
|
<div vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1633357633"}'>
|
2023-05-25 15:44:44 +00:00
|
|
|
<div :class='"d3c-1633357633-sidebar d3c-button-borderless d3c-color-layer-1 " + c.sidebarClasses'>
|
2023-05-12 10:57:42 +00:00
|
|
|
<div class="d3c-1633357633-sidebar-menu">
|
2023-05-27 21:48:57 +00:00
|
|
|
<div>
|
|
|
|
<input:Button @Click="c.handleMenuButton(event)">
|
|
|
|
<vg-slot name="IconSlot"><icons:LGlobalNav></icons:LGlobalNav></vg-slot>
|
|
|
|
</input:Button>
|
|
|
|
</div>
|
2023-05-12 10:57:42 +00:00
|
|
|
<vg-comp expr="c.MenuEntries"></vg-comp>
|
2023-05-08 18:43:07 +00:00
|
|
|
</div>
|
2023-05-12 10:57:42 +00:00
|
|
|
<div class="d3c-1633357633-sidebar-entries">
|
2023-05-08 18:43:07 +00:00
|
|
|
<vg-comp expr="c.Entries"></vg-comp>
|
|
|
|
</div>
|
2023-05-15 09:24:25 +00:00
|
|
|
<div class="d3c-1633357633-bottom-entries">
|
2023-05-08 18:43:07 +00:00
|
|
|
<vg-comp expr="c.BottomEntries"></vg-comp>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d3c-1633357633-body">
|
2023-05-18 15:46:33 +00:00
|
|
|
<div vg-if="c.showBodyOverlay" class="d3c-1633357633-body-overlay" @click="c.handleOverlayClick(event)">
|
2023-05-18 13:48:19 +00:00
|
|
|
</div>
|
2023-05-25 15:44:44 +00:00
|
|
|
<div class="d3c-1633357633-menu d3c-button-borderless d3c-color-layer-1">
|
2023-05-12 10:57:42 +00:00
|
|
|
<input:Button @Click="c.handleMenuButton(event)">
|
2023-05-25 13:59:13 +00:00
|
|
|
<vg-slot name="IconSlot"><icons:LGlobalNav></icons:LGlobalNav></vg-slot>
|
2023-05-12 10:57:42 +00:00
|
|
|
</input:Button>
|
|
|
|
<vg-comp expr="c.MenuEntries"></vg-comp>
|
|
|
|
</div>
|
2023-05-08 18:43:07 +00:00
|
|
|
<vg-comp expr="c.Body"></vg-comp>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.d3c-1633357633 {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
2023-05-18 11:55:48 +00:00
|
|
|
background-color: var(--d3c-color-background);
|
|
|
|
color: var(--d3c-color-text);
|
2023-05-08 18:43:07 +00:00
|
|
|
}
|
|
|
|
|
2023-05-12 10:57:42 +00:00
|
|
|
.d3c-1633357633-menu {
|
|
|
|
width: 100%;
|
2023-05-18 11:55:48 +00:00
|
|
|
border-bottom: 1px solid var(--d3c-color-border);
|
2023-05-12 10:57:42 +00:00
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2023-05-18 15:46:33 +00:00
|
|
|
gap: 0.5em;
|
2023-05-27 21:48:57 +00:00
|
|
|
padding: 0.5em;
|
2023-05-12 10:57:42 +00:00
|
|
|
box-sizing: border-box;
|
2023-05-18 11:55:48 +00:00
|
|
|
background-color: var(--d3c-color-background);
|
|
|
|
color: var(--d3c-color-text);
|
2023-05-12 10:57:42 +00:00
|
|
|
}
|
|
|
|
|
2023-05-08 18:43:07 +00:00
|
|
|
.d3c-1633357633-sidebar {
|
|
|
|
height: 100%;
|
2023-05-27 21:48:57 +00:00
|
|
|
box-sizing: border-box;
|
2023-05-18 11:55:48 +00:00
|
|
|
border-right: 1px solid var(--d3c-color-border);
|
2023-05-27 21:48:57 +00:00
|
|
|
padding: 0.5em;
|
2023-05-08 18:43:07 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-05-27 21:48:57 +00:00
|
|
|
gap: 1em;
|
2023-05-18 11:55:48 +00:00
|
|
|
background-color: var(--d3c-color-background);
|
|
|
|
color: var(--d3c-color-text);
|
2023-05-12 10:57:42 +00:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d3c-1633357633-sidebar-menu {
|
2023-05-27 21:48:57 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.5em;
|
2023-05-12 10:57:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-aspect-ratio: 1/1) {
|
2023-05-18 13:48:19 +00:00
|
|
|
.d3c-1633357633-menu, .d3c-1633357633-body-overlay {
|
2023-05-12 10:57:42 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media not all and (min-aspect-ratio: 1/1) {
|
|
|
|
.d3c-1633357633-sidebar-minimized {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.d3c-1633357633-sidebar {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.d3c-1633357633-sidebar-entries {
|
2023-05-27 21:48:57 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.5em;
|
2023-05-12 10:57:42 +00:00
|
|
|
overflow-y: scroll;
|
2023-05-27 21:48:57 +00:00
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d3c-1633357633-bottom-entries {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 0.5em;
|
2023-05-08 18:43:07 +00:00
|
|
|
}
|
|
|
|
|
2023-05-15 09:24:25 +00:00
|
|
|
.d3c-1633357633-sidebar-entries > * {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d3c-1633357633-bottom-entries > * {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-05-08 18:43:07 +00:00
|
|
|
.d3c-1633357633-body {
|
|
|
|
overflow: auto;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
2023-05-18 13:48:19 +00:00
|
|
|
|
|
|
|
.d3c-1633357633-body-overlay {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: fixed;
|
|
|
|
/*backdrop-filter: blur(1px);*/
|
|
|
|
}
|
2023-05-08 18:43:07 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<script type="application/x-go">
|
|
|
|
import (
|
2023-05-08 19:14:55 +00:00
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
|
2023-05-15 06:58:12 +00:00
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
|
2023-05-08 18:43:07 +00:00
|
|
|
)
|
|
|
|
</script>
|