missed files that were not commited on friday
This commit is contained in:
parent
ab2bcd7d6e
commit
e47e8b1112
|
@ -153,16 +153,6 @@
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
}
|
}
|
||||||
|
|
||||||
.available-action {
|
|
||||||
padding: var(--spacing-s);
|
|
||||||
font-size: var(--font-size-s);
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.available-action:hover {
|
|
||||||
background: var(--grey-2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-container {
|
.action-container {
|
||||||
border-bottom: 1px solid var(--grey-1);
|
border-bottom: 1px solid var(--grey-1);
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -171,9 +161,4 @@
|
||||||
.action-container:last-child {
|
.action-container:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
i:hover {
|
|
||||||
color: var(--red);
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
<script>
|
||||||
|
import { ActionButton } from "@budibase/bbui"
|
||||||
|
import { flip } from "svelte/animate"
|
||||||
|
import { dndzone } from "svelte-dnd-action"
|
||||||
|
|
||||||
|
let flipDurationMs = 150
|
||||||
|
|
||||||
|
// This should be the screens and any external links the user has added
|
||||||
|
let items = [
|
||||||
|
{ text: "Test", id: 0 },
|
||||||
|
{ text: "First", id: 1 },
|
||||||
|
{ text: "Second", id: 2 },
|
||||||
|
]
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<ul
|
||||||
|
use:dndzone={{
|
||||||
|
items,
|
||||||
|
flipDurationMs,
|
||||||
|
dropTargetStyle: { outline: "none" },
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{#each items as item (item)}
|
||||||
|
<li animate:flip={{ duration: flipDurationMs }}>{item}</li>
|
||||||
|
{/each}
|
||||||
|
</ul>
|
||||||
|
<ActionButton icon="Add">Add External Link</ActionButton>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.container {
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -15,7 +15,8 @@
|
||||||
import FieldSelect from "./PropertyControls/FieldSelect.svelte"
|
import FieldSelect from "./PropertyControls/FieldSelect.svelte"
|
||||||
import MultiFieldSelect from "./PropertyControls/MultiFieldSelect.svelte"
|
import MultiFieldSelect from "./PropertyControls/MultiFieldSelect.svelte"
|
||||||
import SchemaSelect from "./PropertyControls/SchemaSelect.svelte"
|
import SchemaSelect from "./PropertyControls/SchemaSelect.svelte"
|
||||||
import ModalSelect from "./PropertyControls/ModalSelect.svelte"
|
import SectionSelect from "./PropertyControls/SectionSelect.svelte"
|
||||||
|
import NavigationSelect from "./PropertyControls/NavigationSelect.svelte"
|
||||||
import EventsEditor from "./PropertyControls/EventsEditor"
|
import EventsEditor from "./PropertyControls/EventsEditor"
|
||||||
import FilterEditor from "./PropertyControls/FilterEditor/FilterEditor.svelte"
|
import FilterEditor from "./PropertyControls/FilterEditor/FilterEditor.svelte"
|
||||||
import { IconSelect } from "./PropertyControls/IconSelect"
|
import { IconSelect } from "./PropertyControls/IconSelect"
|
||||||
|
@ -70,7 +71,8 @@
|
||||||
field: FieldSelect,
|
field: FieldSelect,
|
||||||
multifield: MultiFieldSelect,
|
multifield: MultiFieldSelect,
|
||||||
schema: SchemaSelect,
|
schema: SchemaSelect,
|
||||||
modal: ModalSelect,
|
section: SectionSelect,
|
||||||
|
navigationSelect: NavigationSelect,
|
||||||
filter: FilterEditor,
|
filter: FilterEditor,
|
||||||
"field/string": StringFieldSelect,
|
"field/string": StringFieldSelect,
|
||||||
"field/number": NumberFieldSelect,
|
"field/number": NumberFieldSelect,
|
||||||
|
|
|
@ -1,14 +1,4 @@
|
||||||
{
|
{
|
||||||
"container": {
|
|
||||||
"name": "Container",
|
|
||||||
"description": "This component contains things within itself",
|
|
||||||
"icon": "Sandbox",
|
|
||||||
"hasChildren": true,
|
|
||||||
"styleable": true,
|
|
||||||
"transitionable": true,
|
|
||||||
"illegalChildren": ["Section"],
|
|
||||||
"settings": []
|
|
||||||
},
|
|
||||||
"layout": {
|
"layout": {
|
||||||
"name": "Layout",
|
"name": "Layout",
|
||||||
"description": "This component is specific only to layouts",
|
"description": "This component is specific only to layouts",
|
||||||
|
@ -48,12 +38,22 @@
|
||||||
"defaultValue": "Top"
|
"defaultValue": "Top"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "select",
|
"type": "navigationSelect",
|
||||||
"label": "Links",
|
"label": "Links",
|
||||||
"key": "type"
|
"key": "type"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"container": {
|
||||||
|
"name": "Container",
|
||||||
|
"description": "This component contains things within itself",
|
||||||
|
"icon": "Sandbox",
|
||||||
|
"hasChildren": true,
|
||||||
|
"styleable": true,
|
||||||
|
"transitionable": true,
|
||||||
|
"illegalChildren": ["Section"],
|
||||||
|
"settings": []
|
||||||
|
},
|
||||||
"section": {
|
"section": {
|
||||||
"name": "Section",
|
"name": "Section",
|
||||||
"description": "Add a section to your application",
|
"description": "Add a section to your application",
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
"illegalChildren": ["Section"],
|
"illegalChildren": ["Section"],
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
"type": "modal",
|
"type": "section",
|
||||||
"label": "Type",
|
"label": "Type",
|
||||||
"key": "type",
|
"key": "type",
|
||||||
"options": ["mainSidebar", "sidebarMain", "twoColumns", "threeColumns"],
|
"options": ["mainSidebar", "sidebarMain", "twoColumns", "threeColumns"],
|
||||||
|
|
Loading…
Reference in New Issue