|
|
@ -306,7 +306,7 @@ export default { |
|
|
label: "destinationUrl", |
|
|
label: "destinationUrl", |
|
|
key: "destinationUrl", |
|
|
key: "destinationUrl", |
|
|
control: Input, |
|
|
control: Input, |
|
|
placeholder: "/table/{{context._id}}", |
|
|
placeholder: "/table/_id", |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
@ -429,6 +429,38 @@ export default { |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: "Data Chart", |
|
|
|
|
|
_component: "@budibase/standard-components/datachart", |
|
|
|
|
|
description: "Shiny chart", |
|
|
|
|
|
icon: "ri-bar-chart-line", |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: { ...all }, |
|
|
|
|
|
settings: [ |
|
|
|
|
|
{ label: "Table", key: "model", control: ModelSelect }, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Chart Type", |
|
|
|
|
|
key: "type", |
|
|
|
|
|
control: OptionSelect, |
|
|
|
|
|
options: [ |
|
|
|
|
|
"column2d", |
|
|
|
|
|
"column3d", |
|
|
|
|
|
"line", |
|
|
|
|
|
"area2d", |
|
|
|
|
|
"bar2d", |
|
|
|
|
|
"bar3d", |
|
|
|
|
|
"pie2d", |
|
|
|
|
|
"pie3d", |
|
|
|
|
|
"doughnut2d", |
|
|
|
|
|
"doughnut3d", |
|
|
|
|
|
"pareto2d", |
|
|
|
|
|
"pareto3d", |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
children: [], |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "Chart", |
|
|
name: "Chart", |
|
|
description: "Shiny chart", |
|
|
description: "Shiny chart", |
|
|
@ -440,6 +472,9 @@ export default { |
|
|
description: "Donut chart", |
|
|
description: "Donut chart", |
|
|
icon: "ri-donut-chart-line", |
|
|
icon: "ri-donut-chart-line", |
|
|
properties: { |
|
|
properties: { |
|
|
|
|
|
design: { |
|
|
|
|
|
...all, |
|
|
|
|
|
}, |
|
|
settings: [ |
|
|
settings: [ |
|
|
{ |
|
|
{ |
|
|
label: "Table", |
|
|
label: "Table", |
|
|
@ -523,8 +558,7 @@ export default { |
|
|
key: "legendWidth", |
|
|
key: "legendWidth", |
|
|
control: Input, |
|
|
control: Input, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
@ -1245,15 +1279,6 @@ export default { |
|
|
_component: "@budibase/standard-components/groupedbar", |
|
|
_component: "@budibase/standard-components/groupedbar", |
|
|
description: "Groupedbar chart", |
|
|
description: "Groupedbar chart", |
|
|
icon: "ri-bar-chart-fill", |
|
|
icon: "ri-bar-chart-fill", |
|
|
presetProps: { |
|
|
|
|
|
data: [ |
|
|
|
|
|
{ |
|
|
|
|
|
name: "2011-01", |
|
|
|
|
|
group: "Direct", |
|
|
|
|
|
value: 0, |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
properties: { |
|
|
properties: { |
|
|
settings: [ |
|
|
settings: [ |
|
|
{ |
|
|
{ |
|
|
@ -1293,11 +1318,6 @@ export default { |
|
|
key: "aspectRatio", |
|
|
key: "aspectRatio", |
|
|
control: Input, |
|
|
control: Input, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
label: "Height", |
|
|
|
|
|
key: "height", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
label: "Grid", |
|
|
label: "Grid", |
|
|
key: "grid", |
|
|
key: "grid", |
|
|
@ -1314,6 +1334,11 @@ export default { |
|
|
key: "nameLabel", |
|
|
key: "nameLabel", |
|
|
control: Input, |
|
|
control: Input, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Value Label", |
|
|
|
|
|
key: "valueLabel", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: "Y Ticks", |
|
|
label: "Y Ticks", |
|
|
key: "yTicks", |
|
|
key: "yTicks", |
|
|
|