1
0
Fork 0
mirror of synced 2024-07-28 17:46:09 +12:00

Merge pull request #5068 from Budibase/fix/table-block-nested-setting

Mark table block table column setting as nested to fix custom values
This commit is contained in:
Andrew Kingston 2022-03-24 16:15:27 +00:00 committed by GitHub
commit c858fc37cb

View file

@ -264,7 +264,8 @@
{ {
"label": "Primary", "label": "Primary",
"value": "primary" "value": "primary"
}, { },
{
"label": "Secondary", "label": "Secondary",
"value": "secondary" "value": "secondary"
}, },
@ -507,7 +508,7 @@
}, },
{ {
"type": "static", "type": "static",
"values": [ "values": [
{ {
"label": "Row Index", "label": "Row Index",
"key": "index" "key": "index"
@ -626,28 +627,36 @@
"defaultValue": "M", "defaultValue": "M",
"showInBar": true, "showInBar": true,
"barStyle": "picker", "barStyle": "picker",
"options": [{ "options": [
"label": "Extra Small", {
"value": "XS" "label": "Extra Small",
}, { "value": "XS"
"label": "Small", },
"value": "S" {
}, { "label": "Small",
"label": "Medium", "value": "S"
"value": "M" },
}, { {
"label": "Large", "label": "Medium",
"value": "L" "value": "M"
}, { },
"label": "Extra Large", {
"value": "XL" "label": "Large",
}, { "value": "L"
"label": "2XL", },
"value": "XXL" {
}, { "label": "Extra Large",
"label": "3XL", "value": "XL"
"value": "XXXL" },
}] {
"label": "2XL",
"value": "XXL"
},
{
"label": "3XL",
"value": "XXXL"
}
]
}, },
{ {
"type": "color", "type": "color",
@ -689,27 +698,32 @@
"defaultValue": "left", "defaultValue": "left",
"showInBar": true, "showInBar": true,
"barStyle": "buttons", "barStyle": "buttons",
"options": [{ "options": [
"label": "Left", {
"value": "left", "label": "Left",
"barIcon": "TextAlignLeft", "value": "left",
"barTitle": "Align left" "barIcon": "TextAlignLeft",
}, { "barTitle": "Align left"
"label": "Center", },
"value": "center", {
"barIcon": "TextAlignCenter", "label": "Center",
"barTitle": "Align center" "value": "center",
}, { "barIcon": "TextAlignCenter",
"label": "Right", "barTitle": "Align center"
"value": "right", },
"barIcon": "TextAlignRight", {
"barTitle": "Align right" "label": "Right",
}, { "value": "right",
"label": "Justify", "barIcon": "TextAlignRight",
"value": "justify", "barTitle": "Align right"
"barIcon": "TextAlignJustify", },
"barTitle": "Justify text" {
}] "label": "Justify",
"value": "justify",
"barIcon": "TextAlignJustify",
"barTitle": "Justify text"
}
]
} }
] ]
}, },
@ -733,28 +747,36 @@
"defaultValue": "M", "defaultValue": "M",
"showInBar": true, "showInBar": true,
"barStyle": "picker", "barStyle": "picker",
"options": [{ "options": [
"label": "Extra Small", {
"value": "XS" "label": "Extra Small",
}, { "value": "XS"
"label": "Small", },
"value": "S" {
}, { "label": "Small",
"label": "Medium", "value": "S"
"value": "M" },
}, { {
"label": "Large", "label": "Medium",
"value": "L" "value": "M"
}, { },
"label": "Extra Large", {
"value": "XL" "label": "Large",
}, { "value": "L"
"label": "2XL", },
"value": "XXL" {
}, { "label": "Extra Large",
"label": "3XL", "value": "XL"
"value": "XXXL" },
}] {
"label": "2XL",
"value": "XXL"
},
{
"label": "3XL",
"value": "XXXL"
}
]
}, },
{ {
"type": "color", "type": "color",
@ -796,27 +818,32 @@
"defaultValue": "left", "defaultValue": "left",
"showInBar": true, "showInBar": true,
"barStyle": "buttons", "barStyle": "buttons",
"options": [{ "options": [
"label": "Left", {
"value": "left", "label": "Left",
"barIcon": "TextAlignLeft", "value": "left",
"barTitle": "Align left" "barIcon": "TextAlignLeft",
}, { "barTitle": "Align left"
"label": "Center", },
"value": "center", {
"barIcon": "TextAlignCenter", "label": "Center",
"barTitle": "Align center" "value": "center",
}, { "barIcon": "TextAlignCenter",
"label": "Right", "barTitle": "Align center"
"value": "right", },
"barIcon": "TextAlignRight", {
"barTitle": "Align right" "label": "Right",
}, { "value": "right",
"label": "Justify", "barIcon": "TextAlignRight",
"value": "justify", "barTitle": "Align right"
"barIcon": "TextAlignJustify", },
"barTitle": "Justify text" {
}] "label": "Justify",
"value": "justify",
"barIcon": "TextAlignJustify",
"barTitle": "Justify text"
}
]
} }
] ]
}, },
@ -837,16 +864,20 @@
"defaultValue": "M", "defaultValue": "M",
"showInBar": true, "showInBar": true,
"barStyle": "picker", "barStyle": "picker",
"options": [{ "options": [
"label": "Small", {
"value": "S" "label": "Small",
}, { "value": "S"
"label": "Medium", },
"value": "M" {
}, { "label": "Medium",
"label": "Large", "value": "M"
"value": "L" },
}] {
"label": "Large",
"value": "L"
}
]
}, },
{ {
"type": "color", "type": "color",
@ -1037,16 +1068,20 @@
"defaultValue": "M", "defaultValue": "M",
"showInBar": true, "showInBar": true,
"barStyle": "picker", "barStyle": "picker",
"options": [{ "options": [
"label": "Small", {
"value": "S" "label": "Small",
}, { "value": "S"
"label": "Medium", },
"value": "M" {
}, { "label": "Medium",
"label": "Large", "value": "M"
"value": "L" },
}] {
"label": "Large",
"value": "L"
}
]
}, },
{ {
"type": "color", "type": "color",
@ -1088,27 +1123,32 @@
"defaultValue": "left", "defaultValue": "left",
"showInBar": true, "showInBar": true,
"barStyle": "buttons", "barStyle": "buttons",
"options": [{ "options": [
"label": "Left", {
"value": "left", "label": "Left",
"barIcon": "TextAlignLeft", "value": "left",
"barTitle": "Align left" "barIcon": "TextAlignLeft",
}, { "barTitle": "Align left"
"label": "Center", },
"value": "center", {
"barIcon": "TextAlignCenter", "label": "Center",
"barTitle": "Align center" "value": "center",
}, { "barIcon": "TextAlignCenter",
"label": "Right", "barTitle": "Align center"
"value": "right", },
"barIcon": "TextAlignRight", {
"barTitle": "Align right" "label": "Right",
}, { "value": "right",
"label": "Justify", "barIcon": "TextAlignRight",
"value": "justify", "barTitle": "Align right"
"barIcon": "TextAlignJustify", },
"barTitle": "Justify text" {
}] "label": "Justify",
"value": "justify",
"barIcon": "TextAlignJustify",
"barTitle": "Justify text"
}
]
} }
] ]
}, },
@ -1165,7 +1205,15 @@
"type": "select", "type": "select",
"label": "Card Width", "label": "Card Width",
"key": "cardWidth", "key": "cardWidth",
"options": ["24rem", "28rem", "32rem", "40rem", "48rem", "60rem", "100%"], "options": [
"24rem",
"28rem",
"32rem",
"40rem",
"48rem",
"60rem",
"100%"
],
"defaultValue": "32rem" "defaultValue": "32rem"
}, },
{ {
@ -1785,11 +1833,7 @@
"icon": "Form", "icon": "Form",
"hasChildren": true, "hasChildren": true,
"illegalChildren": ["section", "form"], "illegalChildren": ["section", "form"],
"actions": [ "actions": ["ValidateForm", "ClearForm", "ChangeFormStep"],
"ValidateForm",
"ClearForm",
"ChangeFormStep"
],
"styles": ["size"], "styles": ["size"],
"settings": [ "settings": [
{ {
@ -1816,7 +1860,8 @@
{ {
"label": "Medium", "label": "Medium",
"value": "spectrum--medium" "value": "spectrum--medium"
}, { },
{
"label": "Large", "label": "Large",
"value": "spectrum--large" "value": "spectrum--large"
} }
@ -1833,7 +1878,7 @@
"context": [ "context": [
{ {
"type": "static", "type": "static",
"values": [ "values": [
{ {
"label": "Value", "label": "Value",
"key": "__value" "key": "__value"
@ -1947,27 +1992,32 @@
"defaultValue": "left", "defaultValue": "left",
"showInBar": true, "showInBar": true,
"barStyle": "buttons", "barStyle": "buttons",
"options": [{ "options": [
"label": "Left", {
"value": "left", "label": "Left",
"barIcon": "TextAlignLeft", "value": "left",
"barTitle": "Align left" "barIcon": "TextAlignLeft",
}, { "barTitle": "Align left"
"label": "Center", },
"value": "center", {
"barIcon": "TextAlignCenter", "label": "Center",
"barTitle": "Align center" "value": "center",
}, { "barIcon": "TextAlignCenter",
"label": "Right", "barTitle": "Align center"
"value": "right", },
"barIcon": "TextAlignRight", {
"barTitle": "Align right" "label": "Right",
}, { "value": "right",
"label": "Justify", "barIcon": "TextAlignRight",
"value": "justify", "barTitle": "Align right"
"barIcon": "TextAlignJustify", },
"barTitle": "Justify text" {
}] "label": "Justify",
"value": "justify",
"barIcon": "TextAlignJustify",
"barTitle": "Justify text"
}
]
} }
] ]
}, },
@ -2634,15 +2684,15 @@
], ],
"context": { "context": {
"type": "static", "type": "static",
"values": [ "values": [
{ {
"label": "Rows", "label": "Rows",
"key": "rows" "key": "rows"
}, },
{ {
"label": "Extra Info", "label": "Extra Info",
"key": "info" "key": "info"
}, },
{ {
"label": "Rows Length", "label": "Rows Length",
"key": "rowsLength" "key": "rowsLength"
@ -2964,7 +3014,8 @@
"label": "Table Columns", "label": "Table Columns",
"key": "tableColumns", "key": "tableColumns",
"dependsOn": "dataSource", "dependsOn": "dataSource",
"placeholder": "All columns" "placeholder": "All columns",
"nested": true
}, },
{ {
"type": "boolean", "type": "boolean",
@ -3116,7 +3167,6 @@
"key": "cardDescription", "key": "cardDescription",
"label": "Description", "label": "Description",
"nested": true "nested": true
}, },
{ {
"type": "text", "type": "text",
@ -3381,12 +3431,12 @@
{ {
"type": "static", "type": "static",
"suffix": "provider", "suffix": "provider",
"values": [ "values": [
{ {
"label": "Rows", "label": "Rows",
"key": "rows" "key": "rows"
}, },
{ {
"label": "Extra Info", "label": "Extra Info",
"key": "info" "key": "info"
}, },
@ -3407,12 +3457,12 @@
{ {
"type": "static", "type": "static",
"suffix": "repeater", "suffix": "repeater",
"values": [ "values": [
{ {
"label": "Row Index", "label": "Row Index",
"key": "index" "key": "index"
} }
] ]
}, },
{ {
"type": "schema", "type": "schema",