Update remaining components with sizes and grid metadata

This commit is contained in:
Andrew Kingston 2024-08-03 09:44:32 +01:00
parent 1bce9855d0
commit 8a6d4c0bf6
No known key found for this signature in database
2 changed files with 44 additions and 20 deletions

View File

@ -1326,6 +1326,7 @@
"icon": "Images", "icon": "Images",
"hasChildren": true, "hasChildren": true,
"styles": ["size"], "styles": ["size"],
"showEmptyState": false,
"size": { "size": {
"width": 400, "width": 400,
"height": 300 "height": 300
@ -1765,7 +1766,11 @@
"icon": "GraphBarVertical", "icon": "GraphBarVertical",
"size": { "size": {
"width": 600, "width": 600,
"height": 400 "height": 420
},
"grid": {
"hAlign": "stretch",
"vAlign": "center"
}, },
"settings": [ "settings": [
{ {
@ -1934,7 +1939,11 @@
"icon": "GraphTrend", "icon": "GraphTrend",
"size": { "size": {
"width": 600, "width": 600,
"height": 400 "height": 420
},
"grid": {
"hAlign": "stretch",
"vAlign": "center"
}, },
"settings": [ "settings": [
{ {
@ -2098,7 +2107,11 @@
"icon": "GraphAreaStacked", "icon": "GraphAreaStacked",
"size": { "size": {
"width": 600, "width": 600,
"height": 400 "height": 420
},
"grid": {
"hAlign": "stretch",
"vAlign": "center"
}, },
"settings": [ "settings": [
{ {
@ -2274,7 +2287,11 @@
"icon": "GraphPie", "icon": "GraphPie",
"size": { "size": {
"width": 600, "width": 600,
"height": 400 "height": 420
},
"grid": {
"hAlign": "stretch",
"vAlign": "center"
}, },
"settings": [ "settings": [
{ {
@ -2414,7 +2431,11 @@
"icon": "GraphDonut", "icon": "GraphDonut",
"size": { "size": {
"width": 600, "width": 600,
"height": 400 "height": 420
},
"grid": {
"hAlign": "stretch",
"vAlign": "center"
}, },
"settings": [ "settings": [
{ {
@ -2554,7 +2575,11 @@
"icon": "GraphBarVerticalStacked", "icon": "GraphBarVerticalStacked",
"size": { "size": {
"width": 600, "width": 600,
"height": 400 "height": 420
},
"grid": {
"hAlign": "stretch",
"vAlign": "center"
}, },
"settings": [ "settings": [
{ {
@ -2671,7 +2696,11 @@
"icon": "Histogram", "icon": "Histogram",
"size": { "size": {
"width": 600, "width": 600,
"height": 400 "height": 420
},
"grid": {
"hAlign": "stretch",
"vAlign": "center"
}, },
"settings": [ "settings": [
{ {
@ -4425,6 +4454,10 @@
"width": 400, "width": 400,
"height": 320 "height": 320
}, },
"grid": {
"hAlign": "stretch",
"vAlign": "stretch"
},
"settings": [ "settings": [
{ {
"type": "dataProvider", "type": "dataProvider",

View File

@ -19,20 +19,11 @@
} }
</script> </script>
{#if url} <div class="outer" use:styleable={$component.styles}>
<div class="outer" use:styleable={$component.styles}> <div class="inner" {style}>
<div class="inner" {style}> <slot />
<slot />
</div>
</div> </div>
{:else if $builderStore.inBuilder} </div>
<div
class="placeholder"
use:styleable={{ ...$component.styles, empty: true }}
>
<Placeholder />
</div>
{/if}
<style> <style>
.outer { .outer {