2020-08-18 15:51:02 +02:00
|
|
|
import Input from "./PropertyPanelControls/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-08-24 17:26:00 +02:00
|
|
|
import ModelViewSelect from "components/userInterface/ModelViewSelect.svelte"
|
2020-08-25 17:38:20 +02:00
|
|
|
import ModelViewFieldSelect from "components/userInterface/ModelViewFieldSelect.svelte"
|
2020-08-13 12:50:12 +02:00
|
|
|
import Event from "components/userInterface/EventsEditor/EventPropertyControl.svelte"
|
2020-09-08 17:03:04 +02:00
|
|
|
import ScreenSelect from "components/userInterface/ScreenSelect.svelte"
|
2020-09-15 12:53:02 +02:00
|
|
|
import { IconSelect } from "components/userInterface/IconSelect"
|
2020-09-14 13:07:08 +02:00
|
|
|
import Colorpicker from "@budibase/colorpicker"
|
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-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",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-layout-row-line",
|
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-07-15 12:12:43 +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-05-07 11:53:34 +02:00
|
|
|
name: "Text",
|
|
|
|
description: "This is a simple text component",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-t-box-line",
|
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-07-15 12:12:43 +02:00
|
|
|
icon: "ri-edit-box-line",
|
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-07-15 12:12:43 +02:00
|
|
|
icon: "ri-edit-box-line",
|
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-07-15 12:12:43 +02:00
|
|
|
icon: "ri-checkbox-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/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-07-15 12:12:43 +02:00
|
|
|
icon: "ri-file-list-line",
|
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",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-share-box-line",
|
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-08-13 12:50:12 +02:00
|
|
|
{ label: "onClick", key: "onClick", control: Event },
|
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",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-image-line",
|
2020-06-09 12:06:18 +02:00
|
|
|
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-09-14 12:08:03 +02:00
|
|
|
{
|
2020-09-15 12:53:02 +02:00
|
|
|
_component: "@budibase/standard-components/icon",
|
|
|
|
name: "Icon",
|
2020-09-14 12:08:03 +02:00
|
|
|
description: "A basic component for displaying icons",
|
|
|
|
icon: "ri-sun-fill",
|
|
|
|
children: [],
|
|
|
|
properties: {
|
2020-09-15 12:53:02 +02:00
|
|
|
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",
|
|
|
|
},
|
|
|
|
],
|
2020-09-14 12:08:03 +02:00
|
|
|
},
|
|
|
|
},
|
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 },
|
2020-09-08 17:03:04 +02:00
|
|
|
{ label: "Url", key: "url", control: ScreenSelect },
|
2020-05-20 12:55:25 +02:00
|
|
|
{
|
|
|
|
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-09-09 18:04:49 +02:00
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/datepicker",
|
|
|
|
name: "Date Picker",
|
|
|
|
description: "A basic date picker component",
|
|
|
|
icon: "ri-calendar-line",
|
|
|
|
children: [],
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{ label: "Placeholder", key: "placeholder", control: Input },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
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-07-31 13:02:29 +02:00
|
|
|
{
|
|
|
|
name: "List",
|
|
|
|
_component: "@budibase/standard-components/list",
|
|
|
|
description: "Renders all children once per record, of a given table",
|
|
|
|
icon: "ri-file-list-line",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-08-24 17:26:00 +02:00
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Table",
|
|
|
|
key: "datasource",
|
|
|
|
control: ModelViewSelect,
|
|
|
|
},
|
|
|
|
],
|
2020-07-31 13:02:29 +02:00
|
|
|
},
|
|
|
|
children: [],
|
|
|
|
},
|
|
|
|
{
|
2020-09-25 11:44:05 +02:00
|
|
|
name: "Grid",
|
|
|
|
_component: "@budibase/standard-components/datagrid",
|
2020-10-12 18:54:18 +02:00
|
|
|
description:
|
|
|
|
"a datagrid component with functionality to add, remove and edit rows.",
|
2020-09-25 11:44:05 +02:00
|
|
|
icon: "ri-file-list-line",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Source",
|
|
|
|
key: "datasource",
|
|
|
|
control: ModelViewSelect,
|
|
|
|
},
|
2020-10-09 12:42:16 +02:00
|
|
|
{
|
|
|
|
label: "Editable",
|
|
|
|
key: "editable",
|
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
2020-10-12 11:44:43 +02:00
|
|
|
{
|
|
|
|
label: "Theme",
|
|
|
|
key: "theme",
|
|
|
|
control: OptionSelect,
|
2020-10-12 18:54:18 +02:00
|
|
|
options: [
|
|
|
|
"alpine",
|
|
|
|
"alpine-dark",
|
|
|
|
"balham",
|
|
|
|
"balham-dark",
|
|
|
|
"material",
|
|
|
|
],
|
2020-10-12 11:44:43 +02:00
|
|
|
placeholder: "alpine",
|
|
|
|
},
|
2020-09-25 11:44:05 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
children: [],
|
|
|
|
},
|
|
|
|
{
|
2020-07-31 13:02:29 +02:00
|
|
|
_component: "@budibase/standard-components/stackedlist",
|
|
|
|
name: "Stacked List",
|
|
|
|
description:
|
|
|
|
"A basic card component that can contain content and actions.",
|
|
|
|
icon: "ri-archive-drawer-line",
|
|
|
|
children: [],
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Image",
|
|
|
|
key: "imageUrl",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "{{{context.Image}}}",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Heading",
|
|
|
|
key: "heading",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "{{context.Heading}}",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Text 1",
|
|
|
|
key: "text1",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "{{context.Text 1}}",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Text 2",
|
|
|
|
key: "text2",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "{{context.Text 2}}",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Text 3",
|
|
|
|
key: "text3",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "{{context.Text 3}}",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "destinationUrl",
|
|
|
|
key: "destinationUrl",
|
2020-10-12 15:48:30 +02:00
|
|
|
control: ScreenSelect,
|
2020-08-12 18:41:12 +02:00
|
|
|
placeholder: "/table/_id",
|
2020-07-31 13:02:29 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-08-13 09:58:48 +02:00
|
|
|
{
|
|
|
|
name: "Card",
|
|
|
|
description: "Card components",
|
|
|
|
icon: "ri-layout-bottom-line",
|
|
|
|
commonProps: {},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/card",
|
|
|
|
name: "Vertical",
|
|
|
|
description:
|
|
|
|
"A basic card component that can contain content and actions.",
|
2020-08-13 12:13:22 +02:00
|
|
|
icon: "ri-layout-column-line",
|
2020-08-13 09:58:48 +02:00
|
|
|
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: "Link Text",
|
|
|
|
key: "linkText",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "Link Text",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Link Url",
|
|
|
|
key: "linkUrl",
|
2020-10-12 15:48:30 +02:00
|
|
|
control: ScreenSelect,
|
2020-08-13 09:58:48 +02:00
|
|
|
placeholder: "Link URL",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Link Color",
|
|
|
|
key: "color",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "Link Color",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Hover Color",
|
|
|
|
key: "linkHoverColor",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "Hover Color",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Image Height",
|
|
|
|
key: "imageHeight",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["12rem", "16rem", "20rem", "24rem"],
|
|
|
|
placeholder: "Image Height",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Card Width",
|
|
|
|
key: "cardWidth",
|
|
|
|
control: OptionSelect,
|
2020-08-13 10:05:22 +02:00
|
|
|
options: ["16rem", "20rem", "24rem"],
|
2020-08-13 09:58:48 +02:00
|
|
|
placeholder: "Card Width",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/cardhorizontal",
|
|
|
|
name: "Horizontal",
|
|
|
|
description:
|
|
|
|
"A basic card component that can contain content and actions.",
|
2020-08-13 12:13:22 +02:00
|
|
|
icon: "ri-layout-row-line",
|
2020-08-13 09:58:48 +02:00
|
|
|
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",
|
2020-10-12 15:48:30 +02:00
|
|
|
control: ScreenSelect,
|
2020-08-13 09:58:48 +02:00
|
|
|
placeholder: "Link URL",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Link Color",
|
|
|
|
key: "color",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "Link Color",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Hover Color",
|
|
|
|
key: "linkHoverColor",
|
|
|
|
control: Input,
|
|
|
|
placeholder: "Hover Color",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Card Width",
|
|
|
|
key: "cardWidth",
|
|
|
|
control: OptionSelect,
|
2020-08-13 10:05:22 +02:00
|
|
|
options: [
|
|
|
|
"24rem",
|
|
|
|
"28rem",
|
|
|
|
"32rem",
|
|
|
|
"40rem",
|
|
|
|
"48rem",
|
|
|
|
"60rem",
|
|
|
|
"100%",
|
|
|
|
],
|
2020-08-13 09:58:48 +02:00
|
|
|
placeholder: "Card Height",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Image Width",
|
|
|
|
key: "imageWidth",
|
|
|
|
control: OptionSelect,
|
2020-08-13 10:05:22 +02:00
|
|
|
options: ["8rem", "12rem", "16rem"],
|
2020-08-13 09:58:48 +02:00
|
|
|
placeholder: "Image Width",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Image Height",
|
|
|
|
key: "imageHeight",
|
|
|
|
control: OptionSelect,
|
2020-08-13 10:05:22 +02:00
|
|
|
options: ["8rem", "12rem", "16rem", "auto"],
|
2020-08-13 09:58:48 +02:00
|
|
|
placeholder: "Image Height",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-08-13 10:05:22 +02:00
|
|
|
],
|
2020-08-13 09:58:48 +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.",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-archive-drawer-line",
|
2020-06-02 22:31:29 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-07-01 15:37:57 +02:00
|
|
|
settings: [
|
2020-08-24 17:26:00 +02:00
|
|
|
{
|
|
|
|
label: "Table",
|
|
|
|
key: "datasource",
|
|
|
|
control: ModelViewSelect,
|
|
|
|
},
|
2020-09-14 16:41:20 +02:00
|
|
|
{
|
|
|
|
label: "Stripe Color",
|
|
|
|
key: "stripeColor",
|
|
|
|
control: Colorpicker,
|
|
|
|
defaultValue: "#FFFFFF",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Border Color",
|
|
|
|
key: "borderColor",
|
|
|
|
control: Colorpicker,
|
|
|
|
defaultValue: "#FFFFFF",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "TH Color",
|
|
|
|
key: "backgroundColor",
|
|
|
|
control: Colorpicker,
|
|
|
|
defaultValue: "#FFFFFF",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "TH Font Color",
|
|
|
|
key: "color",
|
|
|
|
control: Colorpicker,
|
|
|
|
defaultValue: "#FFFFFF",
|
|
|
|
},
|
2020-07-28 12:53:07 +02:00
|
|
|
{ label: "Table", key: "model", control: ModelSelect },
|
2020-07-01 15:37:57 +02:00
|
|
|
],
|
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.",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-file-edit-line",
|
2020-06-29 17:32:51 +02:00
|
|
|
commonProps: {},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/dataform",
|
|
|
|
name: "Form Basic",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-file-edit-line",
|
2020-06-29 17:32:51 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-10-08 23:06:44 +02:00
|
|
|
settings: [],
|
2020-06-29 17:32:51 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "@budibase/standard-components/dataformwide",
|
|
|
|
name: "Form Wide",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-file-edit-line",
|
2020-06-29 17:32:51 +02:00
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
2020-10-08 23:06:44 +02:00
|
|
|
settings: [],
|
2020-06-29 17:32:51 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
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",
|
2020-08-17 14:59:09 +02:00
|
|
|
icon: "ri-pie-chart-fill",
|
2020-07-26 12:54:55 +02:00
|
|
|
properties: {
|
|
|
|
settings: [
|
2020-08-04 11:02:58 +02:00
|
|
|
{
|
|
|
|
label: "Table",
|
2020-08-24 17:26:00 +02:00
|
|
|
key: "datasource",
|
|
|
|
control: ModelViewSelect,
|
2020-08-04 11:02:58 +02:00
|
|
|
},
|
2020-08-25 17:38:20 +02:00
|
|
|
{
|
|
|
|
label: "Name Field",
|
|
|
|
key: "nameKey",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Value Field",
|
|
|
|
key: "valueKey",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
{
|
2020-08-05 18:05:06 +02:00
|
|
|
label: "Animate Chart",
|
|
|
|
key: "isAnimated",
|
2020-07-26 12:54:55 +02:00
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
{
|
2020-08-12 11:18:47 +02:00
|
|
|
label: "Hover Highlight",
|
|
|
|
key: "hasHoverAnimation",
|
2020-07-26 12:54:55 +02:00
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
2020-07-29 17:35:44 +02:00
|
|
|
{
|
2020-08-12 11:18:47 +02:00
|
|
|
label: "Keep Last Hover",
|
|
|
|
key: "hasLastHoverSliceHighlighted",
|
2020-07-29 17:35:44 +02:00
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
{
|
|
|
|
label: "Colors",
|
|
|
|
key: "color",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
"britecharts",
|
|
|
|
"blueGreen",
|
|
|
|
"green",
|
|
|
|
"grey",
|
|
|
|
"orange",
|
|
|
|
"pink",
|
|
|
|
"purple",
|
|
|
|
"red",
|
|
|
|
"teal",
|
|
|
|
"yellow",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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 ",
|
2020-07-29 17:35:44 +02:00
|
|
|
valueKey: "checked",
|
2020-07-26 12:54:55 +02:00
|
|
|
control: Checkbox,
|
|
|
|
},
|
2020-08-05 17:57:54 +02:00
|
|
|
{
|
|
|
|
label: "Horizontal Legend",
|
|
|
|
key: "horizontalLegend",
|
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Legend Width",
|
|
|
|
key: "legendWidth",
|
|
|
|
control: Input,
|
|
|
|
},
|
2020-06-03 21:44:35 +02:00
|
|
|
],
|
2020-06-03 21:35:30 +02:00
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Bar",
|
|
|
|
_component: "@budibase/standard-components/bar",
|
|
|
|
description: "Bar chart",
|
|
|
|
icon: "ri-bar-chart-fill",
|
|
|
|
properties: {
|
|
|
|
settings: [
|
2020-08-04 14:55:26 +02:00
|
|
|
{
|
|
|
|
label: "Table",
|
2020-08-24 17:26:00 +02:00
|
|
|
key: "datasource",
|
|
|
|
control: ModelViewSelect,
|
2020-08-04 14:55:26 +02:00
|
|
|
},
|
2020-08-06 18:15:57 +02:00
|
|
|
{
|
|
|
|
label: "Name Label",
|
|
|
|
key: "nameLabel",
|
2020-08-26 18:03:30 +02:00
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
2020-08-06 18:15:57 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Value Label",
|
|
|
|
key: "valueLabel",
|
2020-08-26 18:03:30 +02:00
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
2020-08-06 18:15:57 +02:00
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
{
|
|
|
|
label: "Y Axis Label",
|
|
|
|
key: "yAxisLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Label",
|
|
|
|
key: "xAxisLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
2020-08-06 18:15:57 +02:00
|
|
|
label: "X Axis Label Offset",
|
|
|
|
key: "xAxisLabelOffset",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Y Axis Label Offset",
|
|
|
|
key: "yAxisLabelOffset",
|
2020-07-26 12:54:55 +02:00
|
|
|
control: Input,
|
|
|
|
},
|
2020-08-06 18:15:57 +02:00
|
|
|
{
|
|
|
|
label: "Enable Labels",
|
|
|
|
key: "enableLabels",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
{
|
|
|
|
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: "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",
|
|
|
|
},
|
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "Horizontal",
|
|
|
|
key: "isHorizontal",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Label Number Format",
|
|
|
|
key: "labelsNumberFormat",
|
|
|
|
control: Input,
|
2020-07-29 17:35:44 +02:00
|
|
|
},
|
|
|
|
],
|
2020-08-03 12:55:13 +02:00
|
|
|
},
|
2020-07-29 17:35:44 +02:00
|
|
|
},
|
2020-07-30 17:39:56 +02:00
|
|
|
{
|
|
|
|
name: "Groupedbar",
|
|
|
|
_component: "@budibase/standard-components/groupedbar",
|
|
|
|
description: "Groupedbar chart",
|
2020-08-17 14:59:09 +02:00
|
|
|
icon: "ri-bar-chart-grouped-fill",
|
2020-07-30 17:39:56 +02:00
|
|
|
properties: {
|
|
|
|
settings: [
|
2020-08-04 14:55:26 +02:00
|
|
|
{
|
|
|
|
label: "Table",
|
2020-08-24 17:26:00 +02:00
|
|
|
key: "datasource",
|
|
|
|
control: ModelViewSelect,
|
2020-08-04 14:55:26 +02:00
|
|
|
},
|
2020-08-26 18:03:30 +02:00
|
|
|
{
|
|
|
|
label: "Name Label",
|
|
|
|
key: "nameLabel",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Group Label",
|
|
|
|
key: "groupLabel",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Value Label",
|
|
|
|
key: "valueLabel",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
2020-07-30 17:39:56 +02:00
|
|
|
{
|
|
|
|
label: "Color",
|
|
|
|
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: "Aspect Ratio",
|
|
|
|
key: "aspectRatio",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Grid",
|
|
|
|
key: "grid",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["vertical", "horizontal", "full"],
|
|
|
|
},
|
2020-08-12 18:41:12 +02:00
|
|
|
{
|
|
|
|
label: "Value Label",
|
|
|
|
key: "valueLabel",
|
|
|
|
control: Input,
|
|
|
|
},
|
2020-07-30 17:39:56 +02:00
|
|
|
{
|
|
|
|
label: "Y Ticks",
|
|
|
|
key: "yTicks",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Y Tick Text Offset",
|
|
|
|
key: "yTickTextOffset",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Is Animated",
|
|
|
|
key: "isAnimated",
|
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Is Horizontal",
|
|
|
|
key: "isHorizontal",
|
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
|
|
|
},
|
2020-08-18 16:45:44 +02:00
|
|
|
{
|
|
|
|
label: "Tooltip Title",
|
|
|
|
key: "tooltipTitle",
|
|
|
|
control: Input,
|
|
|
|
},
|
2020-07-30 17:39:56 +02:00
|
|
|
],
|
2020-07-26 12:54:55 +02:00
|
|
|
},
|
2020-07-30 17:39:56 +02:00
|
|
|
},
|
2020-07-29 17:35:44 +02:00
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
name: "Line",
|
|
|
|
_component: "@budibase/standard-components/line",
|
|
|
|
description: "Line chart",
|
|
|
|
icon: "ri-line-chart-fill",
|
2020-07-29 17:35:44 +02:00
|
|
|
properties: {
|
|
|
|
settings: [
|
2020-08-04 14:55:26 +02:00
|
|
|
{
|
|
|
|
label: "Table",
|
2020-08-24 17:26:00 +02:00
|
|
|
key: "datasource",
|
|
|
|
control: ModelViewSelect,
|
2020-08-04 14:55:26 +02:00
|
|
|
},
|
2020-08-26 18:03:30 +02:00
|
|
|
{
|
|
|
|
label: "Value Label",
|
|
|
|
key: "valueLabel",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Topic Label",
|
|
|
|
key: "topicLabel",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Date Label",
|
|
|
|
key: "dateLabel",
|
|
|
|
dependsOn: "datasource",
|
|
|
|
control: ModelViewFieldSelect,
|
|
|
|
},
|
2020-07-29 17:35:44 +02:00
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "Colors",
|
2020-07-29 17:35:44 +02:00
|
|
|
key: "color",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
"britecharts",
|
|
|
|
"blueGreen",
|
|
|
|
"green",
|
|
|
|
"grey",
|
|
|
|
"orange",
|
|
|
|
"pink",
|
|
|
|
"purple",
|
|
|
|
"red",
|
|
|
|
"teal",
|
|
|
|
"yellow",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "Gradients",
|
|
|
|
key: "lineGradient",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
|
|
|
{ value: "", label: "None" },
|
|
|
|
{ value: "bluePurple", label: "Blue Purple" },
|
|
|
|
{ value: "greenBlue", label: "Green Blue" },
|
|
|
|
{ value: "orangePink", label: "Orange Pink" },
|
|
|
|
],
|
2020-08-04 14:55:26 +02:00
|
|
|
},
|
2020-08-03 12:55:13 +02:00
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "Line Curve",
|
|
|
|
key: "lineCurve",
|
2020-08-03 12:55:13 +02:00
|
|
|
control: OptionSelect,
|
|
|
|
options: [
|
2020-08-17 14:59:09 +02:00
|
|
|
"linear",
|
|
|
|
"basis",
|
|
|
|
"natural",
|
|
|
|
"monotoneX",
|
|
|
|
"monotoneY",
|
|
|
|
"step",
|
|
|
|
"stepAfter",
|
|
|
|
"stepBefore",
|
|
|
|
"cardinal",
|
|
|
|
"catmullRom",
|
2020-08-03 12:55:13 +02:00
|
|
|
],
|
|
|
|
},
|
2020-08-17 14:59:09 +02:00
|
|
|
{
|
|
|
|
label: "X Axis Value Type",
|
|
|
|
key: "xAxisValueType",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["date", "number"],
|
|
|
|
},
|
2020-08-03 12:55:13 +02:00
|
|
|
{
|
|
|
|
label: "Grid",
|
|
|
|
key: "grid",
|
|
|
|
control: OptionSelect,
|
|
|
|
options: ["vertical", "horizontal", "full"],
|
|
|
|
},
|
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "X Axis Label",
|
|
|
|
key: "xAxisLabel",
|
2020-08-03 12:55:13 +02:00
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "Y Axis Label",
|
|
|
|
key: "yAxisLabel",
|
2020-08-03 12:55:13 +02:00
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "Show All Datapoints",
|
|
|
|
key: "shouldShowAllDataPoints",
|
2020-08-03 12:55:13 +02:00
|
|
|
valueKey: "checked",
|
|
|
|
control: Checkbox,
|
2020-07-26 12:54:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Width",
|
|
|
|
key: "width",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Height",
|
|
|
|
key: "height",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Is Animated",
|
|
|
|
key: "isAnimated",
|
|
|
|
control: Checkbox,
|
|
|
|
valueKey: "checked",
|
|
|
|
},
|
2020-08-12 11:18:47 +02:00
|
|
|
{
|
|
|
|
label: "Locale",
|
|
|
|
key: "locale",
|
2020-08-17 14:59:09 +02:00
|
|
|
control: OptionSelect,
|
|
|
|
options: ["en-GB", "en-US"],
|
2020-07-26 12:54:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "X Axis Value Type",
|
|
|
|
key: "xAxisValueType",
|
|
|
|
control: OptionSelect,
|
2020-08-17 14:59:09 +02:00
|
|
|
options: ["date", "numeric"],
|
2020-07-26 12:54:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
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-07-29 17:35:44 +02:00
|
|
|
{
|
2020-08-17 14:59:09 +02:00
|
|
|
label: "Tooltip Title",
|
|
|
|
key: "tooltipTitle",
|
2020-07-29 17:35:44 +02:00
|
|
|
control: Input,
|
|
|
|
},
|
2020-09-10 16:58:32 +02:00
|
|
|
{
|
|
|
|
label: "X Ticks",
|
|
|
|
key: "xTicks",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Y Ticks",
|
|
|
|
key: "yTicks",
|
|
|
|
control: Input,
|
|
|
|
},
|
2020-07-26 12:54:55 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-05-07 23:15:09 +02:00
|
|
|
},
|
2020-07-15 12:18:46 +02:00
|
|
|
// {
|
|
|
|
// name: "Data List",
|
|
|
|
// _component: "@budibase/standard-components/datalist",
|
|
|
|
// description: "Shiny list",
|
|
|
|
// icon: "ri-file-list-line",
|
|
|
|
// properties: {
|
|
|
|
// design: { ...all },
|
|
|
|
// settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
|
|
|
// },
|
|
|
|
// children: [],
|
|
|
|
// },
|
2020-06-03 00:26:06 +02:00
|
|
|
{
|
2020-10-12 11:50:19 +02:00
|
|
|
name: "Row Detail",
|
2020-10-09 18:12:55 +02:00
|
|
|
_component: "@budibase/standard-components/rowdetail",
|
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",
|
2020-06-03 00:26:06 +02:00
|
|
|
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
|
|
|
},
|
|
|
|
children: [],
|
|
|
|
},
|
2020-10-09 12:58:46 +02:00
|
|
|
{
|
2020-10-12 11:50:19 +02:00
|
|
|
name: "New Row",
|
2020-10-09 18:12:55 +02:00
|
|
|
_component: "@budibase/standard-components/newrow",
|
2020-10-09 12:58:46 +02:00
|
|
|
description:
|
|
|
|
"Sets up a new record for creation, which can be used with {{ context }}, in children",
|
|
|
|
icon: "ri-profile-line",
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [{ label: "Table", key: "model", control: ModelSelect }],
|
|
|
|
},
|
|
|
|
children: [],
|
|
|
|
},
|
2020-07-15 12:12:43 +02:00
|
|
|
// {
|
2020-07-15 12:18:46 +02:00
|
|
|
// name: "Map",
|
|
|
|
// _component: "@budibase/standard-components/datamap",
|
|
|
|
// description: "Shiny map",
|
|
|
|
// icon: "ri-map-pin-line",
|
|
|
|
// properties: { design: { ...all } },
|
|
|
|
// children: [],
|
2020-07-15 12:12:43 +02:00
|
|
|
// },
|
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",
|
2020-07-12 20:19:12 +02:00
|
|
|
name: "Screen Slot",
|
2020-05-27 14:21:13 +02:00
|
|
|
description:
|
|
|
|
"This component is a placeholder for the rendering of a screen within a page.",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-crop-2-line",
|
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.",
|
2020-07-15 12:12:43 +02:00
|
|
|
icon: "ri-navigation-line",
|
2020-05-27 14:21:13 +02:00
|
|
|
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-07-15 12:12:43 +02:00
|
|
|
{
|
|
|
|
name: "Login",
|
|
|
|
_component: "@budibase/standard-components/login",
|
|
|
|
description:
|
|
|
|
"A component that automatically generates a login screen for your app.",
|
|
|
|
icon: "ri-login-box-line",
|
|
|
|
children: [],
|
|
|
|
properties: {
|
|
|
|
design: { ...all },
|
|
|
|
settings: [
|
|
|
|
{
|
|
|
|
label: "Name",
|
|
|
|
key: "name",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Logo",
|
|
|
|
key: "logo",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Title",
|
|
|
|
key: "title",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Button Text",
|
|
|
|
key: "buttonText",
|
|
|
|
control: Input,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2020-05-27 14:21:13 +02:00
|
|
|
],
|
|
|
|
},
|
2020-05-07 11:53:34 +02:00
|
|
|
],
|
2020-06-29 20:55:27 +02:00
|
|
|
}
|