2020-05-04 17:07:04 +02:00
|
|
|
<script>
|
|
|
|
import PropertyGroup from "./PropertyGroup.svelte"
|
2020-05-05 11:02:10 +02:00
|
|
|
|
2020-05-04 17:07:04 +02:00
|
|
|
export let panelDefinition = {}
|
|
|
|
export let componentInstance = {}
|
|
|
|
export let componentDefinition = {}
|
2020-05-05 11:02:10 +02:00
|
|
|
const getProperties = name => panelDefinition.properties[name]
|
2020-05-04 17:07:04 +02:00
|
|
|
|
2020-05-05 11:02:10 +02:00
|
|
|
$: propertyGroupNames =
|
|
|
|
!!panelDefinition.properties && Object.keys(panelDefinition.properties)
|
2020-05-04 17:07:04 +02:00
|
|
|
</script>
|
|
|
|
|
2020-05-05 11:02:10 +02:00
|
|
|
{#each propertyGroupNames as groupName}
|
2020-05-04 17:07:04 +02:00
|
|
|
<PropertyGroup
|
2020-05-05 11:02:10 +02:00
|
|
|
name={groupName}
|
|
|
|
properties={getProperties(groupName)}
|
2020-05-04 17:07:04 +02:00
|
|
|
{componentDefinition}
|
|
|
|
{componentInstance} />
|
|
|
|
{/each}
|