2020-05-18 17:32:00 +02:00
|
|
|
import Input from "../common/Input.svelte"
|
2020-05-19 18:00:53 +02:00
|
|
|
import OptionSelect from "./OptionSelect.svelte"
|
|
|
|
import Checkbox from "../common/Checkbox.svelte"
|
2020-06-02 22:31:29 +02:00
|
|
|
import ModelSelect from "components/userInterface/ModelSelect.svelte"
|
2020-05-18 17:32:00 +02:00
|
|
|
|
|
|
|
import { all } from "./propertyCategories.js"
|
2020-07-26 12:54:55 +02:00
|
|
|
/*
|
|
|
|
{ label: "N/A ", value: "N/A" },
|
|
|
|
{ label: "Flex", value: "flex" },
|
|
|
|
{ label: "Inline Flex", value: "inline-flex" },
|
|
|
|
*/
|
2020-05-04 17:07:04 +02:00
|
|
|
|
2020-04-17 09:16:03 +02:00
|
|
|
export default {
|
|
|
|
categories: [
|
|
|
|
{
|
2020-05-07 11:53:34 +02:00
|
|
|
name: "Basic",
|
2020-04-20 14:40:29 +02:00
|
|
|
isCategory: true,
|
2020-04-22 08:25:59 +02:00
|
|
|
children: [
|
2020-06-11 21:18:59 +02:00
|
|
|
{
|
|
|
|
_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 }],
|
|
|
|
},
|
|
|
|
},
|
2020-04-17 09:16:03 +02:00
|
|
|
{
|
2020-04-22 12:52:55 +02:00
|
|
|
_component: "@budibase/standard-components/container",
|
2020-05-07 11:53:34 +02:00
|
|
|
name: "Container",
|
|
|
|
description: "This component contains things within itself",
|
|
|
|
icon: "ri-layout-row-fill",
|
2020-04-17 11:44:20 +02:00
|
|
|
commonProps: {},
|
2020-05-07 11:53:34 +02:00
|
|
|
children: [],
|
2020-05-19 18:00:53 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
key: "type",
|
|
|
|
label: "Type",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
2020-06-24 17:16:01 +02:00
|
|
|
"article",
|
|
|
|
"aside",
|
|
|
|
"details",
|
|
|
|
"div",
|
|
|
|
"figure",
|
|
|
|
"figcaption",
|
|
|
|
"footer",
|
|
|
|
"header",
|
|
|
|
"main",
|
|
|
|
"mark",
|
|
|
|
"nav",
|
|
|
|
"paragraph",
|
|
|
|
"summary",
|
2020-05-19 18:00:53 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-04-17 09:16:03 +02:00
|
|
|
},
|
|
|
|
{
|
2020-05-07 11:53:34 +02:00
|
|
|
name: "Text",
|
|
|
|
description: "This is a simple text component",
|
|
|
|
icon: "ri-t-box-fill",
|
2020-04-17 11:44:20 +02:00
|
|
|
commonProps: {},
|
2020-04-22 08:25:59 +02:00
|
|
|
children: [
|
2020-04-17 09:16:03 +02:00
|
|
|
{
|
2020-05-07 11:53:34 +02:00
|
|
|
_component: "@budibase/standard-components/heading",
|
|
|
|
name: "Headline",
|
2020-04-23 14:22:41 +02:00
|
|
|
description: "A component for displaying heading text",
|
|
|
|
icon: "ri-heading",
|
2020-05-05 11:02:10 +02:00
|
|
|
properties: {
|
2020-05-18 17:32:00 +02:00
|
|
|
design: { ...all },
|
2020-05-19 18:00:53 +02:00
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
key: "text",
|
|
|
|
label: "Text",
|
2020-05-18 17:32:00 +02:00
|
|
|
control: Input,
|
|
|
|
},
|
2020-05-19 18:00:53 +02:00
|
|
|
{
|
|
|
|
key: "type",
|
|
|
|
label: "Type",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["h1", "h2", "h3", "h4", "h5", "h6"],
|
|
|
|
},
|
|
|
|
],
|
2020-04-22 12:52:55 +02:00
|
|
|
},
|
2020-04-17 09:16:03 +02:00
|
|
|
},
|
|
|
|
{
|
2020-05-07 11:53:34 +02:00
|
|
|
_component: "@budibase/standard-components/text",
|
|
|
|
name: "Paragraph",
|
2020-04-23 14:22:41 +02:00
|
|
|
description: "A component for displaying paragraph text.",
|
2020-05-18 17:32:00 +02:00
|
|
|
icon: "ri-paragraph",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-05-19 18:00:53 +02:00
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Text",
|
|
|
|
key: "text",
|
2020-05-18 17:32:00 +02:00
|
|
|
control: Input,
|
|
|
|
},
|
2020-05-19 18:00:53 +02:00
|
|
|
{
|
|
|
|
label: "Type",
|
|
|
|
key: "type",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
"none",
|
|
|
|
"bold",
|
|
|
|
"strong",
|
|
|
|
"italic",
|
|
|
|
"emphasis",
|
|
|
|
"mark",
|
|
|
|
"small",
|
|
|
|
"del",
|
|
|
|
"ins",
|
|
|
|
"sub",
|
|
|
|
"sup",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2020-05-18 17:32:00 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-04-17 09:16:03 +02:00
|
|
|
},
|
2020-04-23 14:22:41 +02:00
|
|
|
{
|
2020-05-07 11:53:34 +02:00
|
|
|
name: "Input",
|
2020-04-23 14:22:41 +02:00
|
|
|
description: "These components handle user input.",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-edit-box-fill",
|
2020-04-23 14:22:41 +02:00
|
|
|
commonProps: {},
|
|
|
|
children: [
|
|
|
|
{
|
2020-05-04 18:13:57 +02:00
|
|
|
_component: "@budibase/standard-components/input",
|
2020-04-23 14:22:41 +02:00
|
|
|
name: "Textfield",
|
2020-05-18 17:32:00 +02:00
|
|
|
description:
|
|
|
|
"A textfield component that allows the user to input text.",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-edit-box-fill",
|
2020-05-19 18:00:53 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{ label: "Label", key: "label", control: Input },
|
|
|
|
{
|
|
|
|
label: "Type",
|
|
|
|
key: "type",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["text", "password"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-04-23 14:22:41 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/checkbox",
|
|
|
|
name: "Checkbox",
|
|
|
|
description: "A selectable checkbox component",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-checkbox-fill",
|
2020-05-19 18:00:53 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [{ label: "Label", key: "label", control: Input }],
|
|
|
|
},
|
2020-04-23 14:22:41 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/radiobutton",
|
|
|
|
name: "Radiobutton",
|
|
|
|
description: "A selectable radiobutton component",
|
2020-05-18 17:32:00 +02:00
|
|
|
icon: "ri-radio-button-line",
|
2020-05-19 18:00:53 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [{ label: "Label", key: "label", control: Input }],
|
|
|
|
},
|
2020-04-23 14:22:41 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/select",
|
|
|
|
name: "Select",
|
2020-05-18 17:32:00 +02:00
|
|
|
description:
|
|
|
|
"A select component for choosing from different options",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-file-list-fill",
|
2020-05-19 18:00:53 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-05-26 11:19:04 +02:00
|
|
|
settings: [],
|
2020-05-19 18:00:53 +02:00
|
|
|
},
|
2020-05-18 17:32:00 +02:00
|
|
|
},
|
|
|
|
],
|
2020-04-23 14:22:41 +02:00
|
|
|
},
|
2020-04-17 11:44:20 +02:00
|
|
|
{
|
2020-04-22 12:52:55 +02:00
|
|
|
_component: "@budibase/standard-components/button",
|
2020-05-18 17:32:00 +02:00
|
|
|
name: "Button",
|
|
|
|
description: "A basic html button that is ready for styling",
|
|
|
|
icon: "ri-radio-button-fill",
|
2020-05-07 11:53:34 +02:00
|
|
|
children: [],
|
2020-05-19 18:00:53 +02:00
|
|
|
properties: {
|
|
|
|
design: {
|
2020-05-26 11:19:04 +02:00
|
|
|
...all,
|
2020-05-19 18:00:53 +02:00
|
|
|
},
|
|
|
|
settings: [
|
|
|
|
{ label: "Text", key: "text", control: Input },
|
|
|
|
{
|
|
|
|
label: "Disabled",
|
|
|
|
key: "disabled",
|
2020-05-21 15:28:32 +02:00
|
|
|
valueKey: "checked",
|
2020-05-19 18:00:53 +02:00
|
|
|
control: Checkbox,
|
|
|
|
},
|
2020-05-26 11:19:04 +02:00
|
|
|
],
|
2020-05-19 18:00:53 +02:00
|
|
|
},
|
2020-04-17 11:44:20 +02:00
|
|
|
},
|
2020-06-09 12:06:18 +02:00
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/image",
|
|
|
|
name: "Image",
|
|
|
|
description: "A basic component for displaying images",
|
|
|
|
icon: "ri-image-fill",
|
|
|
|
children: [],
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-06-09 12:49:06 +02:00
|
|
|
settings: [{ label: "URL", key: "url", control: Input }],
|
2020-06-09 12:06:18 +02:00
|
|
|
},
|
|
|
|
},
|
2020-04-17 11:44:20 +02:00
|
|
|
{
|
2020-04-23 14:22:41 +02:00
|
|
|
_component: "@budibase/standard-components/icon",
|
2020-05-18 17:32:00 +02:00
|
|
|
name: "Icon",
|
|
|
|
description: "A basic component for displaying icons",
|
|
|
|
icon: "ri-sun-fill",
|
|
|
|
children: [],
|
2020-05-20 12:55:25 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
},
|
2020-04-17 11:44:20 +02:00
|
|
|
},
|
|
|
|
{
|
2020-04-23 14:22:41 +02:00
|
|
|
_component: "@budibase/standard-components/link",
|
2020-05-18 17:32:00 +02:00
|
|
|
name: "Link",
|
|
|
|
description: "A basic link component for internal and external links",
|
|
|
|
icon: "ri-link",
|
|
|
|
children: [],
|
2020-05-20 12:55:25 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{ label: "Text", key: "text", control: Input },
|
|
|
|
{ label: "Url", key: "url", control: Input },
|
|
|
|
{
|
|
|
|
label: "Open New Tab",
|
|
|
|
key: "openInNewTab",
|
2020-05-21 15:28:32 +02:00
|
|
|
valueKey: "checked",
|
2020-05-20 12:55:25 +02:00
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-05-18 17:32:00 +02:00
|
|
|
},
|
|
|
|
],
|
2020-04-17 09:16:03 +02:00
|
|
|
},
|
|
|
|
{
|
2020-05-07 11:53:34 +02:00
|
|
|
name: "Blocks",
|
2020-04-20 14:40:29 +02:00
|
|
|
isCategory: true,
|
2020-04-22 08:25:59 +02:00
|
|
|
children: [
|
2020-04-17 09:16:03 +02:00
|
|
|
{
|
2020-04-22 12:52:55 +02:00
|
|
|
_component: "@budibase/materialdesign-components/BasicCard",
|
2020-05-18 17:32:00 +02:00
|
|
|
name: "Card",
|
|
|
|
description:
|
|
|
|
"A basic card component that can contain content and actions.",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-layout-bottom-fill",
|
2020-05-07 11:53:34 +02:00
|
|
|
children: [],
|
2020-06-02 15:01:25 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Heading",
|
|
|
|
key: "heading",
|
|
|
|
control: Input,
|
2020-06-02 15:22:35 +02:00
|
|
|
placeholder: "text",
|
2020-06-02 15:01:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Subheading",
|
|
|
|
key: "subheading",
|
|
|
|
control: Input,
|
2020-06-02 15:22:35 +02:00
|
|
|
placeholder: "text",
|
2020-06-02 15:01:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Content",
|
|
|
|
key: "content",
|
|
|
|
control: Input,
|
2020-06-02 15:22:35 +02:00
|
|
|
placeholder: "text",
|
2020-06-02 15:01:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Image",
|
|
|
|
key: "imageUrl",
|
|
|
|
control: Input,
|
2020-06-02 15:22:35 +02:00
|
|
|
placeholder: "src",
|
2020-06-02 15:01:25 +02:00
|
|
|
},
|
2020-06-02 15:22:35 +02:00
|
|
|
],
|
2020-06-02 15:01:25 +02:00
|
|
|
},
|
2020-04-17 11:44:20 +02:00
|
|
|
},
|
|
|
|
{
|
2020-05-18 17:32:00 +02:00
|
|
|
name: "Login",
|
2020-06-02 17:46:37 +02:00
|
|
|
_component: "@budibase/standard-components/login",
|
2020-05-18 17:32:00 +02:00
|
|
|
description:
|
|
|
|
"A component that automatically generates a login screen for your app.",
|
|
|
|
icon: "ri-login-box-fill",
|
|
|
|
children: [],
|
2020-06-03 16:13:39 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Name",
|
|
|
|
key: "name",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Logo",
|
|
|
|
key: "logo",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-04-17 11:44:20 +02:00
|
|
|
},
|
2020-04-17 09:16:03 +02:00
|
|
|
{
|
2020-05-18 17:32:00 +02:00
|
|
|
name: "Table",
|
2020-06-02 17:46:37 +02:00
|
|
|
_component: "@budibase/standard-components/datatable",
|
2020-05-18 17:32:00 +02:00
|
|
|
description: "A component that generates a table from your data.",
|
|
|
|
icon: "ri-archive-drawer-fill",
|
2020-06-02 22:31:29 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-07-02 21:38:02 +02:00
|
|
|
settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
2020-06-02 22:31:29 +02:00
|
|
|
},
|
2020-05-18 17:32:00 +02:00
|
|
|
children: [],
|
2020-04-17 11:44:20 +02:00
|
|
|
},
|
|
|
|
{
|
2020-05-18 17:32:00 +02:00
|
|
|
name: "Form",
|
|
|
|
description: "A component that generates a form from your data.",
|
|
|
|
icon: "ri-file-edit-fill",
|
2020-06-29 17:32:51 +02:00
|
|
|
commonProps: {},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/dataform",
|
|
|
|
name: "Form Basic",
|
|
|
|
icon: "ri-file-edit-fill",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
2020-07-02 21:38:02 +02:00
|
|
|
label: "Table",
|
2020-06-29 17:32:51 +02:00
|
|
|
key: "model",
|
|
|
|
control: ModelSelect,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
template: {
|
|
|
|
component: "@budibase/materialdesign-components/Form",
|
|
|
|
description: "Form for saving a record",
|
|
|
|
name: "@budibase/materialdesign-components/recordForm",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/dataformwide",
|
|
|
|
name: "Form Wide",
|
|
|
|
icon: "ri-file-edit-fill",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
2020-07-02 21:38:02 +02:00
|
|
|
label: "Table",
|
2020-06-29 17:32:51 +02:00
|
|
|
key: "model",
|
|
|
|
control: ModelSelect,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-05-06 11:33:30 +02:00
|
|
|
},
|
2020-05-07 23:15:09 +02:00
|
|
|
{
|
|
|
|
name: "Chart",
|
|
|
|
description: "Shiny chart",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-bar-chart-fill",
|
2020-07-26 12:54:55 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: "Donut",
|
|
|
|
_component: "@budibase/standard-components/donut",
|
|
|
|
description: "Donut chart",
|
|
|
|
icon: "ri-donut-chart-line",
|
|
|
|
presetProps: {
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
quantity: 1,
|
|
|
|
percentage: 50,
|
|
|
|
name: "glittering",
|
|
|
|
id: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
quantity: 1,
|
|
|
|
percentage: 50,
|
|
|
|
name: "luminous",
|
|
|
|
id: 2,
|
|
|
|
},
|
2020-06-03 21:44:35 +02:00
|
|
|
],
|
2020-06-03 21:35:30 +02:00
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
properties: {
|
2020-07-28 12:49:35 +02:00
|
|
|
design: {
|
|
|
|
...all
|
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Fix Highlight Slice",
|
|
|
|
key: "hasFixedHighlightedSlice",
|
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Hover highlight",
|
|
|
|
key: "hasLastHoverSliceHighlighted",
|
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Is Animated",
|
|
|
|
key: "isAnimated",
|
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Colors",
|
|
|
|
key: "color",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
"britecharts",
|
|
|
|
"blueGreen",
|
|
|
|
"green",
|
|
|
|
"grey",
|
|
|
|
"orange",
|
|
|
|
"pink",
|
|
|
|
"purple",
|
|
|
|
"red",
|
|
|
|
"teal",
|
|
|
|
"yellow",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Height",
|
|
|
|
key: "height",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Width",
|
|
|
|
key: "width",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "External Radius",
|
|
|
|
key: "externalRadius",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Internal Radius",
|
|
|
|
key: "internalRadius",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Radius Offset",
|
|
|
|
key: "radiusHoverOffset ",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Show Legend",
|
|
|
|
key: "useLegend ",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Bar",
|
|
|
|
_component: "@budibase/standard-components/bar",
|
|
|
|
description: "Bar chart",
|
|
|
|
icon: "ri-bar-chart-fill",
|
|
|
|
presetProps: {
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
value: 1,
|
|
|
|
name: "glittering",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 1,
|
|
|
|
name: "luminous",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
properties: {
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Y Axis Label",
|
|
|
|
key: "yAxisLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Label",
|
|
|
|
key: "xAxisLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Bar Padding",
|
|
|
|
key: "betweenBarsPadding",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Colors",
|
|
|
|
key: "color",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
{ label: "Normal", value: "britecharts" },
|
|
|
|
{ label: "Blue Green", value: "blueGreen" },
|
|
|
|
{ label: "Green", value: "green" },
|
|
|
|
{ label: "Grey", value: "grey" },
|
|
|
|
{ label: "Orange", value: "orange" },
|
|
|
|
{ label: "Pink", value: "pink" },
|
|
|
|
{ label: "Purple", value: "purple" },
|
|
|
|
{ label: "Red", value: "red" },
|
|
|
|
{ label: "Teal", value: "teal" },
|
|
|
|
{ label: "Yellow", value: "yellow" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Gradients",
|
|
|
|
key: "gradient",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
{ value: "", label: "None" },
|
|
|
|
{ value: "bluePurple", label: "Blue Purple" },
|
|
|
|
{ value: "greenBlue", label: "Green Blue" },
|
|
|
|
{ value: "orangePink", label: "Orange Pink" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Enable Labels",
|
|
|
|
key: "enableLabels",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Highlight Single Bar",
|
|
|
|
key: "hasSingleBarHighlight",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Width",
|
|
|
|
key: "width",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Height",
|
|
|
|
key: "height",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Animate",
|
|
|
|
key: "isAnimate",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Horizontal",
|
|
|
|
key: "isHorizontal",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Label Offset",
|
|
|
|
key: "labelOffset",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Label Number Format",
|
|
|
|
key: "labelsNumberFormat",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Label Size",
|
|
|
|
key: "labelSize",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Locale",
|
|
|
|
key: "locale",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Name Label",
|
|
|
|
key: "nameLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Number Format",
|
|
|
|
key: "numberFormat",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Use Legend",
|
|
|
|
key: "useLegend",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Line",
|
|
|
|
_component: "@budibase/standard-components/line",
|
|
|
|
description: "Line chart",
|
|
|
|
icon: "ri-bar-chart-fill",
|
|
|
|
presetProps: {
|
|
|
|
data: {
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
topicName: "San Francisco",
|
|
|
|
name: 1,
|
|
|
|
date: "2020-01-16",
|
|
|
|
value: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
topicName: "San Fran",
|
|
|
|
name: 2,
|
|
|
|
date: "2020-01-17",
|
|
|
|
value: 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
topicName: "LA",
|
|
|
|
name: 3,
|
|
|
|
date: "2020-01-18",
|
|
|
|
value: 3,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
topicName: "Toronto",
|
|
|
|
name: 4,
|
|
|
|
date: "2020-01-19",
|
|
|
|
value: 7,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
topicName: "Van",
|
|
|
|
name: 4,
|
|
|
|
date: "2020-01-20",
|
|
|
|
value: 12,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
topicName: "Dundee",
|
|
|
|
name: 4,
|
|
|
|
date: "2020-01-21",
|
|
|
|
value: 16,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
topicName: "Dublin",
|
|
|
|
name: 4,
|
|
|
|
date: "2020-01-22",
|
|
|
|
value: 31,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
aspectRatio: 0.5,
|
|
|
|
grid: "horizontal",
|
|
|
|
dateLabel: "fullDate",
|
|
|
|
shouldShowAllDataPoints: true,
|
|
|
|
},
|
|
|
|
properties: {
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "X Axis Combo",
|
|
|
|
key: "axisTimeCombinations",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Combo",
|
|
|
|
key: "axisTimeCombinations",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Colors",
|
|
|
|
key: "color",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
"britecharts",
|
|
|
|
"blueGreen",
|
|
|
|
"green",
|
|
|
|
"grey",
|
|
|
|
"orange",
|
|
|
|
"pink",
|
|
|
|
"purple",
|
|
|
|
"red",
|
|
|
|
"teal",
|
|
|
|
"yellow",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Grid",
|
|
|
|
key: "grid",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["vertical", "horizontal", "full"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Aspect Ratio",
|
|
|
|
key: "aspectRatio",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Date Label",
|
|
|
|
key: "dateLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Width",
|
|
|
|
key: "width",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Height",
|
|
|
|
key: "height",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Is Animated",
|
|
|
|
key: "isAnimated",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Line Curve",
|
|
|
|
key: "lineCurve",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
"linear",
|
|
|
|
"basis",
|
|
|
|
"natural",
|
|
|
|
"monotoneX",
|
|
|
|
"monotoneY",
|
|
|
|
"step",
|
|
|
|
"stepAfter",
|
|
|
|
"stepBefore",
|
|
|
|
"cardinal",
|
|
|
|
"catmullRom",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Locale",
|
|
|
|
key: "locale",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Topic Label",
|
|
|
|
key: "topicLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Value Label",
|
|
|
|
key: "valueLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Label",
|
|
|
|
key: "xAxisLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Value Type",
|
|
|
|
key: "xAxisValueType",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["date", "number"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Scale",
|
|
|
|
key: "xAxisScale",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["linear", "logarithmic"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Format",
|
|
|
|
key: "xAxisFormat",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
"day-month",
|
|
|
|
"minute-hour",
|
|
|
|
"hour-daymonth",
|
|
|
|
"month-year",
|
|
|
|
"custom",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Custom Format",
|
|
|
|
key: "xAxisCustomFormat",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-05-07 23:15:09 +02:00
|
|
|
},
|
2020-06-04 12:56:42 +02:00
|
|
|
{
|
|
|
|
name: "Data List",
|
2020-05-07 23:15:09 +02:00
|
|
|
_component: "@budibase/standard-components/datalist",
|
|
|
|
description: "Shiny list",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-file-list-fill",
|
2020-06-02 22:31:29 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-07-02 21:38:02 +02:00
|
|
|
settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
2020-06-02 22:31:29 +02:00
|
|
|
},
|
2020-05-07 23:15:09 +02:00
|
|
|
children: [],
|
2020-06-04 12:56:42 +02:00
|
|
|
},
|
2020-06-03 00:26:06 +02:00
|
|
|
{
|
2020-06-03 10:25:56 +02:00
|
|
|
name: "List",
|
2020-06-03 00:26:06 +02:00
|
|
|
_component: "@budibase/standard-components/list",
|
2020-07-02 21:38:02 +02:00
|
|
|
description: "Renders all children once per record, of a given table",
|
2020-06-03 00:26:06 +02:00
|
|
|
icon: "ri-file-list-fill",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-07-02 21:38:02 +02:00
|
|
|
settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
2020-06-03 00:26:06 +02:00
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/heading",
|
|
|
|
name: "Headline",
|
|
|
|
description: "A component for displaying heading text",
|
|
|
|
icon: "ri-heading",
|
|
|
|
},
|
|
|
|
],
|
2020-06-03 00:26:06 +02:00
|
|
|
},
|
2020-07-01 14:19:14 +02:00
|
|
|
{
|
|
|
|
name: "Record Detail",
|
|
|
|
_component: "@budibase/standard-components/recorddetail",
|
2020-07-01 14:27:12 +02:00
|
|
|
description:
|
|
|
|
"Loads a record, using an id from the URL, which can be used with {{ context }}, in children",
|
2020-07-01 14:19:14 +02:00
|
|
|
icon: "ri-profile-line",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-07-02 21:38:02 +02:00
|
|
|
settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
2020-07-01 14:19:14 +02:00
|
|
|
},
|
|
|
|
children: [],
|
|
|
|
},
|
2020-05-11 11:28:06 +02:00
|
|
|
{
|
|
|
|
name: "Map",
|
|
|
|
_component: "@budibase/standard-components/datamap",
|
|
|
|
description: "Shiny map",
|
2020-05-27 13:18:05 +02:00
|
|
|
icon: "ri-map-pin-fill",
|
2020-05-18 17:32:00 +02:00
|
|
|
properties: { design: { ...all } },
|
2020-05-11 11:28:06 +02:00
|
|
|
children: [],
|
|
|
|
},
|
2020-05-07 11:53:34 +02:00
|
|
|
],
|
2020-04-17 09:16:03 +02:00
|
|
|
},
|
2020-05-27 14:21:13 +02:00
|
|
|
{
|
|
|
|
name: "Layouts",
|
|
|
|
isCategory: true,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
_component: "##builtin/screenslot",
|
|
|
|
name: "Screenslot",
|
|
|
|
description:
|
|
|
|
"This component is a placeholder for the rendering of a screen within a page.",
|
|
|
|
icon: "ri-crop-2-fill",
|
2020-05-29 10:40:53 +02:00
|
|
|
properties: { design: { ...all } },
|
|
|
|
commonProps: {},
|
2020-05-27 14:21:13 +02:00
|
|
|
children: [],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Nav Bar",
|
|
|
|
_component: "@budibase/standard-components/Navigation",
|
|
|
|
description:
|
|
|
|
"A component for handling the navigation within your app.",
|
|
|
|
icon: "ri-navigation-fill",
|
|
|
|
children: [],
|
2020-06-03 14:36:39 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{ label: "Logo URL", key: "logoUrl", control: Input },
|
|
|
|
{ label: "Title", key: "title", control: Input },
|
2020-06-03 14:52:18 +02:00
|
|
|
{ label: "Color", key: "color", control: Input },
|
2020-06-03 14:55:29 +02:00
|
|
|
{ label: "Background", key: "backgroundColor", control: Input },
|
|
|
|
],
|
2020-06-03 14:36:39 +02:00
|
|
|
},
|
2020-05-27 14:21:13 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-05-07 11:53:34 +02:00
|
|
|
],
|
2020-06-29 20:55:27 +02:00
|
|
|
}
|