|
|
@ -1,132 +1,5 @@ |
|
|
export default { |
|
|
export default { |
|
|
categories: [ |
|
|
categories: [ |
|
|
{ |
|
|
|
|
|
name: "Card", |
|
|
|
|
|
icon: "ri-archive-drawer-line", |
|
|
|
|
|
isCategory: true, |
|
|
|
|
|
children: [ |
|
|
|
|
|
{ |
|
|
|
|
|
_component: "@budibase/standard-components/cardhorizontal", |
|
|
|
|
|
name: "Horizontal", |
|
|
|
|
|
description: |
|
|
|
|
|
"A basic card component that can contain content and actions.", |
|
|
|
|
|
icon: "ri-layout-row-line", |
|
|
|
|
|
children: [], |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: { ...all }, |
|
|
|
|
|
settings: [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Image", |
|
|
|
|
|
key: "imageUrl", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "Image", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Heading", |
|
|
|
|
|
key: "heading", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "Heading", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Description", |
|
|
|
|
|
key: "description", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "Description", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Subtext", |
|
|
|
|
|
key: "subtext", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "Subtext", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Link Text", |
|
|
|
|
|
key: "linkText", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "Link Text", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Link Url", |
|
|
|
|
|
key: "linkUrl", |
|
|
|
|
|
control: ScreenSelect, |
|
|
|
|
|
placeholder: "Link URL", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Link Color", |
|
|
|
|
|
key: "linkColor", |
|
|
|
|
|
control: Colorpicker, |
|
|
|
|
|
defaultValue: "#000", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Hover Color", |
|
|
|
|
|
key: "linkHoverColor", |
|
|
|
|
|
control: Colorpicker, |
|
|
|
|
|
defaultValue: "#222", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Card Width", |
|
|
|
|
|
key: "cardWidth", |
|
|
|
|
|
control: OptionSelect, |
|
|
|
|
|
options: [ |
|
|
|
|
|
"24rem", |
|
|
|
|
|
"28rem", |
|
|
|
|
|
"32rem", |
|
|
|
|
|
"40rem", |
|
|
|
|
|
"48rem", |
|
|
|
|
|
"60rem", |
|
|
|
|
|
"100%", |
|
|
|
|
|
], |
|
|
|
|
|
placeholder: "Card Height", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Image Width", |
|
|
|
|
|
key: "imageWidth", |
|
|
|
|
|
control: OptionSelect, |
|
|
|
|
|
options: ["8rem", "12rem", "16rem"], |
|
|
|
|
|
placeholder: "Image Width", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Image Height", |
|
|
|
|
|
key: "imageHeight", |
|
|
|
|
|
control: OptionSelect, |
|
|
|
|
|
options: ["8rem", "12rem", "16rem", "auto"], |
|
|
|
|
|
placeholder: "Image Height", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
_component: "@budibase/standard-components/cardstat", |
|
|
|
|
|
name: "Stat", |
|
|
|
|
|
description: "A card component for displaying numbers.", |
|
|
|
|
|
icon: "ri-dual-sim-2-line", |
|
|
|
|
|
children: [], |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: { ...all }, |
|
|
|
|
|
settings: [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Title", |
|
|
|
|
|
key: "title", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "Total Revenue", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Value", |
|
|
|
|
|
key: "value", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "$1,981,983", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Label", |
|
|
|
|
|
key: "label", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
placeholder: "Stripe", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
{ |
|
|
name: "Chart", |
|
|
name: "Chart", |
|
|
icon: "ri-bar-chart-2-line", |
|
|
icon: "ri-bar-chart-2-line", |
|
|
@ -715,122 +588,5 @@ export default { |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
name: "Elements", |
|
|
|
|
|
icon: "ri-paragraph", |
|
|
|
|
|
isCategory: true, |
|
|
|
|
|
children: [ |
|
|
|
|
|
{ |
|
|
|
|
|
_component: "@budibase/standard-components/heading", |
|
|
|
|
|
name: "Headline", |
|
|
|
|
|
icon: "ri-heading", |
|
|
|
|
|
description: "A component for displaying heading text", |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: { ...all }, |
|
|
|
|
|
settings: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: "text", |
|
|
|
|
|
label: "Text", |
|
|
|
|
|
control: Input, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: "type", |
|
|
|
|
|
label: "Type", |
|
|
|
|
|
control: OptionSelect, |
|
|
|
|
|
options: ["h1", "h2", "h3", "h4", "h5", "h6"], |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
_component: "@budibase/standard-components/image", |
|
|
|
|
|
name: "Image", |
|
|
|
|
|
description: "A basic component for displaying images", |
|
|
|
|
|
icon: "ri-image-line", |
|
|
|
|
|
children: [], |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: { ...all }, |
|
|
|
|
|
settings: [{ label: "URL", key: "url", control: Input }], |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
_component: "@budibase/standard-components/icon", |
|
|
|
|
|
name: "Icon", |
|
|
|
|
|
description: "A basic component for displaying icons", |
|
|
|
|
|
icon: "ri-sun-fill", |
|
|
|
|
|
children: [], |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: {}, |
|
|
|
|
|
settings: [ |
|
|
|
|
|
{ label: "Icon", key: "icon", control: IconSelect }, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Size", |
|
|
|
|
|
key: "size", |
|
|
|
|
|
control: OptionSelect, |
|
|
|
|
|
defaultValue: "fa-lg", |
|
|
|
|
|
options: [ |
|
|
|
|
|
{ value: "fa-xs", label: "xs" }, |
|
|
|
|
|
{ value: "fa-sm", label: "sm" }, |
|
|
|
|
|
{ value: "fa-lg", label: "lg" }, |
|
|
|
|
|
{ value: "fa-2x", label: "2x" }, |
|
|
|
|
|
{ value: "fa-3x", label: "3x" }, |
|
|
|
|
|
{ value: "fa-5x", label: "5x" }, |
|
|
|
|
|
{ value: "fa-7x", label: "7x" }, |
|
|
|
|
|
{ value: "fa-10x", label: "10x" }, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "Color", |
|
|
|
|
|
key: "color", |
|
|
|
|
|
control: Colorpicker, |
|
|
|
|
|
defaultValue: "#000", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
_component: "@budibase/standard-components/embed", |
|
|
|
|
|
icon: "ri-code-line", |
|
|
|
|
|
name: "Embed", |
|
|
|
|
|
description: "Embed content from 3rd party sources", |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: { |
|
|
|
|
|
...all, |
|
|
|
|
|
}, |
|
|
|
|
|
settings: [{ label: "Embed", key: "embed", control: Input }], |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: "Other", |
|
|
|
|
|
icon: "ri-more-2-line", |
|
|
|
|
|
isCategory: true, |
|
|
|
|
|
children: [ |
|
|
|
|
|
{ |
|
|
|
|
|
_component: "##builtin/screenslot", |
|
|
|
|
|
name: "Screen Slot", |
|
|
|
|
|
description: |
|
|
|
|
|
"This component is a placeholder for the rendering of a screen within a layout.", |
|
|
|
|
|
icon: "ri-crop-2-line", |
|
|
|
|
|
properties: { design: { ...all } }, |
|
|
|
|
|
commonProps: {}, |
|
|
|
|
|
children: [], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: "New Row", |
|
|
|
|
|
_component: "@budibase/standard-components/newrow", |
|
|
|
|
|
description: |
|
|
|
|
|
"Sets up a new row for creation, which can be used with {{ context }}, in children", |
|
|
|
|
|
icon: "ri-profile-line", |
|
|
|
|
|
properties: { |
|
|
|
|
|
design: { ...all }, |
|
|
|
|
|
settings: [{ label: "Table", key: "table", control: TableSelect }], |
|
|
|
|
|
}, |
|
|
|
|
|
children: [], |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
], |
|
|
} |
|
|
} |
|
|
|