1
0
Fork 0
mirror of synced 2024-06-26 18:10:51 +12:00

Add default size for every component type

This commit is contained in:
Andrew Kingston 2022-10-14 18:59:23 +01:00
parent 78a5f9c891
commit 2d64ae59c6

View file

@ -87,7 +87,7 @@
"showSettingsBar": true, "showSettingsBar": true,
"size": { "size": {
"width": 400, "width": 400,
"height": 200 "height": 100
}, },
"styles": [ "styles": [
"padding", "padding",
@ -259,6 +259,10 @@
"section" "section"
], ],
"showEmptyState": false, "showEmptyState": false,
"size": {
"width": 400,
"height": 100
},
"settings": [ "settings": [
{ {
"type": "section", "type": "section",
@ -280,6 +284,10 @@
"icon": "Button", "icon": "Button",
"editable": true, "editable": true,
"showSettingsBar": true, "showSettingsBar": true,
"size": {
"width": 105,
"height": 35
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -372,6 +380,10 @@
"illegalChildren": [ "illegalChildren": [
"section" "section"
], ],
"size": {
"width": 400,
"height": 10
},
"settings": [ "settings": [
{ {
"type": "select", "type": "select",
@ -409,6 +421,10 @@
], ],
"hasChildren": true, "hasChildren": true,
"showSettingsBar": true, "showSettingsBar": true,
"size": {
"width": 400,
"height": 100
},
"settings": [ "settings": [
{ {
"type": "dataProvider", "type": "dataProvider",
@ -588,6 +604,7 @@
] ]
}, },
"card": { "card": {
"deprecated": true,
"name": "Vertical Card", "name": "Vertical Card",
"description": "A basic card component that can contain content and actions.", "description": "A basic card component that can contain content and actions.",
"icon": "ViewColumn", "icon": "ViewColumn",
@ -668,6 +685,10 @@
], ],
"showSettingsBar": true, "showSettingsBar": true,
"editable": true, "editable": true,
"size": {
"width": 400,
"height": 30
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -790,6 +811,10 @@
], ],
"showSettingsBar": true, "showSettingsBar": true,
"editable": true, "editable": true,
"size": {
"width": 400,
"height": 40
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -907,6 +932,10 @@
"name": "Tag", "name": "Tag",
"icon": "Label", "icon": "Label",
"showSettingsBar": true, "showSettingsBar": true,
"size": {
"width": 100,
"height": 25
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -958,12 +987,13 @@
"name": "Image", "name": "Image",
"description": "A basic component for displaying images", "description": "A basic component for displaying images",
"icon": "Image", "icon": "Image",
"illegalChildren": [
"section"
],
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 400,
"height": 300
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -980,9 +1010,10 @@
"styles": [ "styles": [
"size" "size"
], ],
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 300
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -1040,9 +1071,10 @@
"name": "Icon", "name": "Icon",
"description": "A basic component for displaying icons", "description": "A basic component for displaying icons",
"icon": "Shapes", "icon": "Shapes",
"illegalChildren": [ "size": {
"section" "width": 25,
], "height": 25
},
"settings": [ "settings": [
{ {
"type": "icon", "type": "icon",
@ -1159,9 +1191,10 @@
"icon": "Link", "icon": "Link",
"showSettingsBar": true, "showSettingsBar": true,
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 200,
], "height": 30
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -1271,12 +1304,10 @@
] ]
}, },
"cardhorizontal": { "cardhorizontal": {
"deprecated": true,
"name": "Horizontal Card", "name": "Horizontal Card",
"description": "A basic card component that can contain content and actions.", "description": "A basic card component that can contain content and actions.",
"icon": "ViewRow", "icon": "ViewRow",
"illegalChildren": [
"section"
],
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -1367,27 +1398,31 @@
"name": "Stat Card", "name": "Stat Card",
"description": "A card component for displaying numbers.", "description": "A card component for displaying numbers.",
"icon": "Card", "icon": "Card",
"illegalChildren": [ "size": {
"section" "width": 260,
], "height": 143
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
"label": "Title", "label": "Title",
"key": "title", "key": "title",
"placeholder": "Total Revenue" "placeholder": "Total Revenue",
"defaultValue": "Title"
}, },
{ {
"type": "text", "type": "text",
"label": "Value", "label": "Value",
"key": "value", "key": "value",
"placeholder": "$1,981,983" "placeholder": "$1,981,983",
"defaultValue": "Value"
}, },
{ {
"type": "text", "type": "text",
"label": "Label", "label": "Label",
"key": "label", "key": "label",
"placeholder": "Stripe" "placeholder": "Stripe",
"defaultValue": "Label"
} }
] ]
}, },
@ -1395,12 +1430,13 @@
"name": "Embed", "name": "Embed",
"icon": "Code", "icon": "Code",
"description": "Embed content from 3rd party sources", "description": "Embed content from 3rd party sources",
"illegalChildren": [
"section"
],
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 400,
"height": 100
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -1414,9 +1450,10 @@
"name": "Bar Chart", "name": "Bar Chart",
"description": "Bar chart", "description": "Bar chart",
"icon": "GraphBarVertical", "icon": "GraphBarVertical",
"illegalChildren": [ "size": {
"section" "width": 600,
], "height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -1575,9 +1612,10 @@
"name": "Line Chart", "name": "Line Chart",
"description": "Line chart", "description": "Line chart",
"icon": "GraphTrend", "icon": "GraphTrend",
"illegalChildren": [ "size": {
"section" "width": 600,
], "height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -1735,9 +1773,10 @@
"name": "Area Chart", "name": "Area Chart",
"description": "Line chart", "description": "Line chart",
"icon": "GraphAreaStacked", "icon": "GraphAreaStacked",
"illegalChildren": [ "size": {
"section" "width": 600,
], "height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -1907,9 +1946,10 @@
"name": "Pie Chart", "name": "Pie Chart",
"description": "Pie chart", "description": "Pie chart",
"icon": "GraphPie", "icon": "GraphPie",
"illegalChildren": [ "size": {
"section" "width": 600,
], "height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -2035,9 +2075,10 @@
"name": "Donut Chart", "name": "Donut Chart",
"description": "Donut chart", "description": "Donut chart",
"icon": "GraphDonut", "icon": "GraphDonut",
"illegalChildren": [ "size": {
"section" "width": 600,
], "height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -2163,9 +2204,10 @@
"name": "Candlestick Chart", "name": "Candlestick Chart",
"description": "Candlestick chart", "description": "Candlestick chart",
"icon": "GraphBarVerticalStacked", "icon": "GraphBarVerticalStacked",
"illegalChildren": [ "size": {
"section" "width": 600,
], "height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -2270,6 +2312,10 @@
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 400,
"height": 400
},
"settings": [ "settings": [
{ {
"type": "select", "type": "select",
@ -2356,6 +2402,10 @@
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 400,
"height": 400
},
"settings": [ "settings": [
{ {
"type": "number", "type": "number",
@ -2376,6 +2426,10 @@
"size" "size"
], ],
"hasChildren": true, "hasChildren": true,
"size": {
"width": 400,
"height": 400
},
"settings": [ "settings": [
{ {
"type": "select", "type": "select",
@ -2402,13 +2456,14 @@
"stringfield": { "stringfield": {
"name": "Text Field", "name": "Text Field",
"icon": "Text", "icon": "Text",
"illegalChildren": [
"section"
],
"styles": [ "styles": [
"size" "size"
], ],
"editable": true, "editable": true,
"size": {
"width": 400,
"height": 50
},
"settings": [ "settings": [
{ {
"type": "field/string", "type": "field/string",
@ -2496,9 +2551,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/number", "type": "field/number",
@ -2552,9 +2608,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/string", "type": "field/string",
@ -2608,9 +2665,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/options", "type": "field/options",
@ -2775,9 +2833,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/array", "type": "field/array",
@ -2933,9 +2992,10 @@
"name": "Checkbox", "name": "Checkbox",
"icon": "SelectBox", "icon": "SelectBox",
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/boolean", "type": "field/boolean",
@ -3013,6 +3073,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"size": {
"width": 400,
"height": 150
},
"settings": [ "settings": [
{ {
"type": "field/longform", "type": "field/longform",
@ -3088,9 +3152,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/datetime", "type": "field/datetime",
@ -3167,9 +3232,10 @@
"styles": [ "styles": [
"size" "size"
], ],
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/barcode/qr", "type": "field/barcode/qr",
@ -3218,29 +3284,27 @@
"size" "size"
], ],
"draggable": false, "draggable": false,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 320
},
"settings": [ "settings": [
{ {
"type": "dataProvider", "type": "dataProvider",
"label": "Provider", "label": "Provider",
"key": "dataProvider", "key": "dataProvider"
"required": true
}, },
{ {
"type": "field", "type": "field",
"label": "Latitude Key", "label": "Latitude Key",
"key": "latitudeKey", "key": "latitudeKey",
"dependsOn": "dataProvider", "dependsOn": "dataProvider"
"required": true
}, },
{ {
"type": "field", "type": "field",
"label": "Longitude Key", "label": "Longitude Key",
"key": "longitudeKey", "key": "longitudeKey",
"dependsOn": "dataProvider", "dependsOn": "dataProvider"
"required": true
}, },
{ {
"type": "field", "type": "field",
@ -3334,9 +3398,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 200
},
"settings": [ "settings": [
{ {
"type": "field/attachment", "type": "field/attachment",
@ -3391,9 +3456,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"illegalChildren": [ "size": {
"section" "width": 400,
], "height": 50
},
"settings": [ "settings": [
{ {
"type": "field/link", "type": "field/link",
@ -3453,6 +3519,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"size": {
"width": 400,
"height": 100
},
"settings": [ "settings": [
{ {
"type": "field/json", "type": "field/json",
@ -3501,6 +3571,10 @@
"size" "size"
], ],
"editable": true, "editable": true,
"size": {
"width": 400,
"height": 200
},
"settings": [ "settings": [
{ {
"type": "field/attachment", "type": "field/attachment",
@ -3563,6 +3637,10 @@
"actions": [ "actions": [
"RefreshDatasource" "RefreshDatasource"
], ],
"size": {
"width": 400,
"height": 100
},
"settings": [ "settings": [
{ {
"type": "dataSource", "type": "dataSource",
@ -3643,6 +3721,10 @@
], ],
"hasChildren": true, "hasChildren": true,
"showEmptyState": false, "showEmptyState": false,
"size": {
"width": 600,
"height": 400
},
"settings": [ "settings": [
{ {
"type": "dataProvider", "type": "dataProvider",
@ -3741,6 +3823,10 @@
"size" "size"
], ],
"hasChildren": false, "hasChildren": false,
"size": {
"width": 200,
"height": 50
},
"settings": [ "settings": [
{ {
"type": "dataProvider", "type": "dataProvider",
@ -3777,21 +3863,28 @@
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 300,
"height": 120
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
"key": "title", "key": "title",
"label": "Title" "label": "Title",
"defaultValue": "Title"
}, },
{ {
"type": "text", "type": "text",
"key": "subtitle", "key": "subtitle",
"label": "Subtitle" "label": "Subtitle",
"defaultValue": "Subtitle"
}, },
{ {
"type": "text", "type": "text",
"key": "description", "key": "description",
"label": "Description" "label": "Description",
"defaultValue": "Description"
}, },
{ {
"type": "text", "type": "text",
@ -3835,6 +3928,10 @@
"name": "Dynamic Filter", "name": "Dynamic Filter",
"icon": "Filter", "icon": "Filter",
"showSettingsBar": true, "showSettingsBar": true,
"size": {
"width": 100,
"height": 35
},
"settings": [ "settings": [
{ {
"type": "dataProvider", "type": "dataProvider",
@ -3882,6 +3979,10 @@
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 600,
"height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -4047,6 +4148,10 @@
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 600,
"height": 400
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -4105,19 +4210,22 @@
"type": "text", "type": "text",
"key": "cardTitle", "key": "cardTitle",
"label": "Title", "label": "Title",
"nested": true "nested": true,
"defaultValue": "Title"
}, },
{ {
"type": "text", "type": "text",
"key": "cardSubtitle", "key": "cardSubtitle",
"label": "Subtitle", "label": "Subtitle",
"nested": true "nested": true,
"defaultValue": "Subtitle"
}, },
{ {
"type": "text", "type": "text",
"key": "cardDescription", "key": "cardDescription",
"label": "Description", "label": "Description",
"nested": true "nested": true,
"defaultValue": "Description"
}, },
{ {
"type": "text", "type": "text",
@ -4219,6 +4327,10 @@
], ],
"hasChildren": true, "hasChildren": true,
"showSettingsBar": true, "showSettingsBar": true,
"size": {
"width": 400,
"height": 100
},
"settings": [ "settings": [
{ {
"type": "dataSource", "type": "dataSource",
@ -4441,6 +4553,10 @@
"styles": [ "styles": [
"size" "size"
], ],
"size": {
"width": 400,
"height": 100
},
"settings": [ "settings": [
{ {
"type": "text", "type": "text",
@ -4458,6 +4574,10 @@
], ],
"block": true, "block": true,
"info": "Form blocks are only compatible with internal or SQL tables", "info": "Form blocks are only compatible with internal or SQL tables",
"size": {
"width": 400,
"height": 400
},
"settings": [ "settings": [
{ {
"type": "select", "type": "select",