2020-06-05 16:20:23 +00:00
|
|
|
import { PropertyPaneConfigsResponse } from "api/ConfigsApi";
|
|
|
|
|
|
|
|
|
|
const PropertyPaneConfigResponse: PropertyPaneConfigsResponse["data"] = {
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
|
|
|
// @ts-ignore
|
2019-09-18 10:19:50 +00:00
|
|
|
config: {
|
2020-03-31 10:40:52 +00:00
|
|
|
CONTAINER_WIDGET: [
|
2019-09-18 10:19:50 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "5.1",
|
2019-09-18 10:19:50 +00:00
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "5.1.1",
|
2020-06-05 16:20:23 +00:00
|
|
|
helpText: "Use a html color name, HEX, RGB or RGBA value",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "#FFFFFF / Gray / rgb(255, 99, 71)",
|
|
|
|
|
propertyName: "backgroundColor",
|
|
|
|
|
label: "Background Color",
|
2019-09-18 10:19:50 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "5.1.2",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
|
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
2020-04-14 05:35:16 +00:00
|
|
|
{
|
|
|
|
|
id: "5.1.3",
|
|
|
|
|
propertyName: "shouldScrollContents",
|
|
|
|
|
label: "Scroll Contents",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
2020-03-31 10:40:52 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
DATE_PICKER_WIDGET: [
|
|
|
|
|
{
|
|
|
|
|
sectionName: "General",
|
2020-04-14 05:35:16 +00:00
|
|
|
id: "6.1",
|
2020-03-31 10:40:52 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-04-14 05:35:16 +00:00
|
|
|
id: "6.1.2",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "defaultDate",
|
|
|
|
|
label: "Default Date",
|
2020-06-05 16:20:23 +00:00
|
|
|
helpText:
|
|
|
|
|
"Sets the default date of the widget. The date is updated if the default date changes",
|
2020-03-31 10:40:52 +00:00
|
|
|
controlType: "DATE_PICKER",
|
2020-04-14 05:35:16 +00:00
|
|
|
placeholderText: "Enter Default Date",
|
2020-06-05 16:20:23 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-04-14 05:35:16 +00:00
|
|
|
id: "6.1.3",
|
2020-08-12 06:59:27 +00:00
|
|
|
helpText: "Sets the format of the selected date",
|
|
|
|
|
propertyName: "dateFormat",
|
|
|
|
|
label: "Date Format",
|
|
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "YYYY-MM-DD",
|
|
|
|
|
value: "YYYY-MM-DD",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "YYYY-MM-DD HH:mm",
|
|
|
|
|
value: "YYYY-MM-DD HH:mm",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "YYYY-MM-DDTHH:mm:ss.sssZ",
|
|
|
|
|
value: "YYYY-MM-DDTHH:mm:ss.sssZ",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "DD/MM/YYYY",
|
|
|
|
|
value: "DD/MM/YYYY",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "DD/MM/YYYY HH:mm",
|
|
|
|
|
value: "DD/MM/YYYY HH:mm",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "6.1.6",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "isRequired",
|
|
|
|
|
label: "Required",
|
2020-08-12 06:59:27 +00:00
|
|
|
helpText: "Makes input to the widget mandatory",
|
2020-03-31 10:40:52 +00:00
|
|
|
controlType: "SWITCH",
|
2020-08-12 06:59:27 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-31 10:40:52 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-04-14 05:35:16 +00:00
|
|
|
id: "6.1.4",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isVisible",
|
2019-11-13 07:00:25 +00:00
|
|
|
label: "Visible",
|
2020-06-05 16:20:23 +00:00
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-08-12 06:59:27 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-31 10:40:52 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-04-14 05:35:16 +00:00
|
|
|
id: "6.1.5",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disabled",
|
2020-06-05 16:20:23 +00:00
|
|
|
helpText: "Disables input to this widget",
|
2020-03-31 10:40:52 +00:00
|
|
|
controlType: "SWITCH",
|
2020-08-12 06:59:27 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
2019-09-18 10:19:50 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-09-19 11:29:24 +00:00
|
|
|
sectionName: "Actions",
|
2020-04-14 05:35:16 +00:00
|
|
|
id: "6.2",
|
2019-09-18 10:19:50 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "6.2.1",
|
|
|
|
|
propertyName: "onDateSelected",
|
|
|
|
|
label: "onDateSelected",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "ACTION_SELECTOR",
|
2020-09-15 07:10:53 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
TABLE_WIDGET: [
|
2019-09-18 10:19:50 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "7.1",
|
2019-09-18 10:19:50 +00:00
|
|
|
sectionName: "General",
|
2019-09-19 11:29:24 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-06-05 16:20:23 +00:00
|
|
|
id: "7.1.1",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText:
|
2020-04-14 05:35:16 +00:00
|
|
|
"Takes in an array of objects to display rows in the table. Bind data from an API using {{}}",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "tableData",
|
|
|
|
|
label: "Table Data",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-04-14 05:35:16 +00:00
|
|
|
placeholderText: 'Enter [{ "col1": "val1" }]',
|
2020-03-31 10:40:52 +00:00
|
|
|
inputType: "ARRAY",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "7.1.2",
|
2020-08-12 06:59:27 +00:00
|
|
|
propertyName: "defaultSearchText",
|
|
|
|
|
label: "Default Search Text",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
placeholderText: "Enter default search text",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "7.1.3",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText:
|
|
|
|
|
"Bind the Table.pageNo property in your API and call it onPageChange",
|
|
|
|
|
propertyName: "serverSidePaginationEnabled",
|
|
|
|
|
label: "Server Side Pagination",
|
2020-01-03 13:40:31 +00:00
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-08-12 06:59:27 +00:00
|
|
|
id: "7.1.4",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isVisible",
|
2020-06-05 16:20:23 +00:00
|
|
|
isJSConvertible: true,
|
2019-11-13 07:00:25 +00:00
|
|
|
label: "Visible",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-06-05 16:20:23 +00:00
|
|
|
},
|
2020-09-08 13:04:51 +00:00
|
|
|
{
|
|
|
|
|
id: "7.1.5",
|
|
|
|
|
propertyName: "multiRowSelection",
|
|
|
|
|
label: "Enable multi row selection",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
2020-03-31 10:40:52 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "7.2",
|
|
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "7.2.1",
|
2020-06-05 16:20:23 +00:00
|
|
|
helpText:
|
|
|
|
|
"Adds a button action for every row. Reference the Table.selectedRow property in the action",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "columnActions",
|
2020-06-05 16:20:23 +00:00
|
|
|
label: "Row Button",
|
2020-03-31 10:40:52 +00:00
|
|
|
controlType: "COLUMN_ACTION_SELECTOR",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "7.2.2",
|
|
|
|
|
helpText: "Triggers an action when a table row is selected",
|
|
|
|
|
propertyName: "onRowSelected",
|
|
|
|
|
label: "onRowSelected",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "7.2.3",
|
|
|
|
|
helpText: "Triggers an action when a table page is changed",
|
|
|
|
|
propertyName: "onPageChange",
|
|
|
|
|
label: "onPageChange",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "7.2.4",
|
|
|
|
|
propertyName: "onSearchTextChanged",
|
|
|
|
|
label: "onSearchTextChanged",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
IMAGE_WIDGET: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "3.1",
|
2019-09-18 10:19:50 +00:00
|
|
|
sectionName: "General",
|
2019-09-19 11:29:24 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "3.1.1",
|
|
|
|
|
helpText: "Renders the url or Base64 in the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "image",
|
2019-11-06 12:12:41 +00:00
|
|
|
label: "Image",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter URL / Base64",
|
2019-11-06 12:12:41 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "3.1.2",
|
|
|
|
|
helpText: "Renders the url or Base64 when no image is provided",
|
2019-11-12 11:58:42 +00:00
|
|
|
propertyName: "defaultImage",
|
2019-11-06 12:12:41 +00:00
|
|
|
label: "Default Image",
|
2019-10-31 11:26:37 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter URL / Base64",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "3.1.3",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
|
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
RADIO_GROUP_WIDGET: [
|
|
|
|
|
{
|
|
|
|
|
id: "10.1",
|
|
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "10.1.2",
|
|
|
|
|
helpText:
|
|
|
|
|
"Displays a list of options for a user to select. Values must be unique",
|
|
|
|
|
propertyName: "options",
|
|
|
|
|
label: "Options",
|
|
|
|
|
controlType: "OPTION_INPUT",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "10.1.3",
|
|
|
|
|
helpText: "Selects a value of the options entered by default",
|
|
|
|
|
propertyName: "defaultOptionValue",
|
|
|
|
|
label: "Default Selected Value",
|
|
|
|
|
placeholderText: "Enter option value",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-08-12 06:59:27 +00:00
|
|
|
id: "10.1.7",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "isRequired",
|
|
|
|
|
label: "Required",
|
2020-08-12 06:59:27 +00:00
|
|
|
helpText: "Makes input to the widget mandatory",
|
2020-03-31 10:40:52 +00:00
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "10.1.5",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
|
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "10.1.6",
|
|
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disabled",
|
|
|
|
|
helpText: "Disables input to this widget",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2020-03-31 10:40:52 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "10.2",
|
|
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "10.2.1",
|
|
|
|
|
helpText:
|
|
|
|
|
"Triggers an action when a user changes the selected option",
|
|
|
|
|
propertyName: "onSelectionChange",
|
|
|
|
|
label: "onSelectionChange",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
TABS_WIDGET: [
|
|
|
|
|
{
|
|
|
|
|
id: "16.1",
|
|
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "16.1.1",
|
2020-04-14 05:35:16 +00:00
|
|
|
helpText: "Takes an array of tab names to render tabs",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "tabs",
|
2020-04-14 05:35:16 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-31 10:40:52 +00:00
|
|
|
label: "Tabs",
|
|
|
|
|
controlType: "TABS_INPUT",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "16.1.2",
|
2020-08-12 06:59:27 +00:00
|
|
|
propertyName: "defaultTab",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Selects a tab name specified by default",
|
|
|
|
|
placeholderText: "Enter tab name",
|
|
|
|
|
label: "Default Tab",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "16.1.3",
|
|
|
|
|
propertyName: "shouldShowTabs",
|
|
|
|
|
helpText:
|
|
|
|
|
"Hides the tabs so that different widgets can be displayed based on the default tab",
|
|
|
|
|
label: "Show Tabs",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
2020-04-15 11:42:11 +00:00
|
|
|
{
|
2020-06-05 16:20:23 +00:00
|
|
|
id: "16.1.5",
|
2020-04-15 11:42:11 +00:00
|
|
|
propertyName: "shouldScrollContents",
|
|
|
|
|
label: "Scroll Contents",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
2020-06-05 16:20:23 +00:00
|
|
|
{
|
|
|
|
|
id: "16.1.4",
|
|
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2020-03-31 10:40:52 +00:00
|
|
|
],
|
|
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "16.2",
|
|
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "16.2.1",
|
|
|
|
|
helpText: "Triggers an action when the button is clicked",
|
|
|
|
|
propertyName: "onTabSelected",
|
|
|
|
|
label: "onTabSelected",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-03-31 10:40:52 +00:00
|
|
|
],
|
|
|
|
|
CHART_WIDGET: [
|
|
|
|
|
{
|
|
|
|
|
id: "13.1",
|
|
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "13.1.1",
|
|
|
|
|
helpText: "Adds a title to the chart",
|
|
|
|
|
placeholderText: "Enter title",
|
|
|
|
|
propertyName: "chartName",
|
|
|
|
|
label: "Title",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "13.1.2",
|
|
|
|
|
helpText: "Changes the visualisation of the chart data",
|
|
|
|
|
propertyName: "chartType",
|
|
|
|
|
label: "Chart Type",
|
|
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "Line Chart",
|
|
|
|
|
value: "LINE_CHART",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Bar Chart",
|
|
|
|
|
value: "BAR_CHART",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Pie Chart",
|
|
|
|
|
value: "PIE_CHART",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Column Chart",
|
|
|
|
|
value: "COLUMN_CHART",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Area Chart",
|
|
|
|
|
value: "AREA_CHART",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2020-06-05 16:20:23 +00:00
|
|
|
{
|
|
|
|
|
id: "13.1.62",
|
|
|
|
|
helpText: "Populates the chart with the data",
|
|
|
|
|
propertyName: "chartData",
|
|
|
|
|
placeholderText: 'Enter [{ "x": "val", "y": "val" }]',
|
|
|
|
|
label: "Chart Data",
|
|
|
|
|
controlType: "CHART_DATA",
|
|
|
|
|
},
|
2020-03-31 10:40:52 +00:00
|
|
|
{
|
|
|
|
|
id: "13.1.3",
|
|
|
|
|
helpText: "Specifies the label of the x-axis",
|
|
|
|
|
propertyName: "xAxisName",
|
|
|
|
|
placeholderText: "Enter label text",
|
|
|
|
|
label: "x-axis Label",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
2020-04-14 05:35:16 +00:00
|
|
|
{
|
|
|
|
|
id: "13.1.5",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Specifies the label of the y-axis",
|
|
|
|
|
propertyName: "yAxisName",
|
|
|
|
|
placeholderText: "Enter label text",
|
|
|
|
|
label: "y-axis Label",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-05 16:20:23 +00:00
|
|
|
id: "13.1.4",
|
|
|
|
|
helpText: "Enables scrolling inside the chart",
|
|
|
|
|
propertyName: "allowHorizontalScroll",
|
|
|
|
|
label: "Allow horizontal scroll",
|
|
|
|
|
controlType: "SWITCH",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-04-14 05:35:16 +00:00
|
|
|
id: "13.1.7",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isVisible",
|
2019-11-13 07:00:25 +00:00
|
|
|
label: "Visible",
|
2020-06-05 16:20:23 +00:00
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
2020-06-05 16:20:23 +00:00
|
|
|
MODAL_WIDGET: [
|
2019-09-18 10:19:50 +00:00
|
|
|
{
|
|
|
|
|
sectionName: "General",
|
2020-06-05 16:20:23 +00:00
|
|
|
id: "18.1",
|
2019-09-19 11:29:24 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-06-05 16:20:23 +00:00
|
|
|
id: "18.1.1",
|
|
|
|
|
propertyName: "canOutsideClickClose",
|
|
|
|
|
label: "Quick Dismiss",
|
|
|
|
|
helpText: "Allows dismissing the modal when user taps outside",
|
|
|
|
|
controlType: "SWITCH",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
2020-06-05 16:20:23 +00:00
|
|
|
{
|
|
|
|
|
id: "18.1.2",
|
|
|
|
|
propertyName: "size",
|
|
|
|
|
label: "Modal Type",
|
|
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "Form Modal",
|
|
|
|
|
value: "MODAL_LARGE",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Alert Modal",
|
|
|
|
|
value: "MODAL_SMALL",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "18.1.3",
|
|
|
|
|
propertyName: "shouldScrollContents",
|
|
|
|
|
label: "Scroll Contents",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
INPUT_WIDGET: [
|
|
|
|
|
{
|
|
|
|
|
id: "4.1",
|
|
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
2019-09-19 11:29:24 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "4.1.2",
|
|
|
|
|
helpText: "Changes the type of data captured in the input",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "inputType",
|
|
|
|
|
label: "Data Type",
|
|
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
options: [
|
2020-01-03 13:40:31 +00:00
|
|
|
{
|
|
|
|
|
label: "Text",
|
|
|
|
|
value: "TEXT",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Number",
|
|
|
|
|
value: "NUMBER",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Password",
|
|
|
|
|
value: "PASSWORD",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Email",
|
|
|
|
|
value: "EMAIL",
|
|
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "4.1.4",
|
|
|
|
|
helpText:
|
|
|
|
|
"Sets the default text of the widget. The text is updated if the default text changes",
|
2019-11-12 11:58:42 +00:00
|
|
|
propertyName: "defaultText",
|
2020-08-12 06:59:27 +00:00
|
|
|
label: "Default Text",
|
2019-11-12 11:58:42 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter default text",
|
2019-11-12 11:58:42 +00:00
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "4.1.3",
|
|
|
|
|
helpText: "Sets a placeholder text for the input",
|
|
|
|
|
propertyName: "placeholderText",
|
|
|
|
|
label: "Placeholder",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
placeholderText: "Enter placeholder text",
|
|
|
|
|
},
|
2019-11-12 11:58:42 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "4.1.5",
|
|
|
|
|
helpText:
|
|
|
|
|
"Adds a validation to the input which displays an error on failure",
|
2019-10-31 05:28:11 +00:00
|
|
|
propertyName: "regex",
|
|
|
|
|
label: "Regex",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}$",
|
2020-01-03 13:40:31 +00:00
|
|
|
inputType: "TEXT",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "4.1.6",
|
|
|
|
|
helpText:
|
|
|
|
|
"Displays the error message if the regex validation fails",
|
2019-10-31 05:28:11 +00:00
|
|
|
propertyName: "errorMessage",
|
|
|
|
|
label: "Error Message",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter error message",
|
2020-01-03 13:40:31 +00:00
|
|
|
inputType: "TEXT",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-08-12 06:59:27 +00:00
|
|
|
id: "4.1.10",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "isRequired",
|
|
|
|
|
label: "Required",
|
2020-08-12 06:59:27 +00:00
|
|
|
helpText: "Makes input to the widget mandatory",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "4.1.8",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isVisible",
|
2019-11-13 07:00:25 +00:00
|
|
|
label: "Visible",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "4.1.9",
|
|
|
|
|
helpText: "Disables input to this widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disabled",
|
|
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
2019-11-06 12:12:41 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "4.2.1",
|
2019-11-06 12:12:41 +00:00
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "5.11.2",
|
|
|
|
|
helpText: "Triggers an action when the text is changed",
|
2019-11-06 12:12:41 +00:00
|
|
|
propertyName: "onTextChanged",
|
|
|
|
|
label: "onTextChanged",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-11-06 12:12:41 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2019-09-18 10:19:50 +00:00
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
DROP_DOWN_WIDGET: [
|
2019-09-18 10:19:50 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "8.1",
|
2019-09-18 10:19:50 +00:00
|
|
|
sectionName: "General",
|
2019-09-19 11:29:24 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "8.1.2",
|
|
|
|
|
helpText:
|
|
|
|
|
"Allows users to select either a single option or multiple options",
|
|
|
|
|
propertyName: "selectionType",
|
|
|
|
|
label: "Selection Type",
|
|
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "Single Select",
|
|
|
|
|
value: "SINGLE_SELECT",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Multi Select",
|
|
|
|
|
value: "MULTI_SELECT",
|
|
|
|
|
},
|
|
|
|
|
],
|
2019-11-06 12:12:41 +00:00
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "8.1.3",
|
|
|
|
|
helpText:
|
|
|
|
|
"Allows users to select either a single option or multiple options. Values must be unique",
|
|
|
|
|
propertyName: "options",
|
|
|
|
|
label: "Options",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: 'Enter [{label: "label1", value: "value2"}]',
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "8.1.4",
|
|
|
|
|
helpText: "Selects the option with value by default",
|
|
|
|
|
propertyName: "defaultOptionValue",
|
|
|
|
|
label: "Default Option",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter option value",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-08-12 06:59:27 +00:00
|
|
|
id: "8.1.8",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "isRequired",
|
|
|
|
|
label: "Required",
|
2020-08-12 06:59:27 +00:00
|
|
|
helpText: "Makes input to the widget mandatory",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "8.1.6",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isVisible",
|
2019-11-11 11:34:42 +00:00
|
|
|
label: "Visible",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "8.1.7",
|
|
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disabled",
|
|
|
|
|
helpText: "Disables input to this widget",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "8.2",
|
2019-09-19 11:29:24 +00:00
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "8.2.1",
|
|
|
|
|
helpText: "Triggers an action when a user selects an option",
|
|
|
|
|
propertyName: "onOptionChange",
|
|
|
|
|
label: "onOptionChange",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "ACTION_SELECTOR",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
FORM_BUTTON_WIDGET: [
|
2019-09-18 10:19:50 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.1",
|
2019-09-18 10:19:50 +00:00
|
|
|
sectionName: "General",
|
2019-09-19 11:29:24 +00:00
|
|
|
children: [
|
2019-11-06 12:12:41 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.1.1",
|
|
|
|
|
propertyName: "text",
|
|
|
|
|
label: "Label",
|
|
|
|
|
helpText: "Sets the label of the button",
|
2019-11-06 12:12:41 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter label text",
|
2020-02-07 11:34:57 +00:00
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.1.2",
|
|
|
|
|
propertyName: "buttonStyle",
|
|
|
|
|
label: "Button Style",
|
|
|
|
|
helpText: "Changes the style of the button",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
options: [
|
2020-01-03 13:40:31 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
label: "Primary Button",
|
|
|
|
|
value: "PRIMARY_BUTTON",
|
2020-01-03 13:40:31 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
label: "Secondary Button",
|
|
|
|
|
value: "SECONDARY_BUTTON",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Danger Button",
|
|
|
|
|
value: "DANGER_BUTTON",
|
2020-01-03 13:40:31 +00:00
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
],
|
|
|
|
|
},
|
2019-10-31 05:28:11 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.1.3",
|
|
|
|
|
helpText:
|
|
|
|
|
"Disables the button when the parent form has a required widget that is not filled",
|
|
|
|
|
propertyName: "disabledWhenInvalid",
|
|
|
|
|
label: "Disabled Invalid Forms",
|
|
|
|
|
controlType: "SWITCH",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
2020-03-06 09:45:21 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.1.4",
|
|
|
|
|
helpText:
|
|
|
|
|
"Resets the fields within the parent form when the click action succeeds",
|
|
|
|
|
propertyName: "resetFormOnClick",
|
|
|
|
|
label: "Reset Form on Success",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.1.5",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isVisible",
|
2019-11-13 07:00:25 +00:00
|
|
|
label: "Visible",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.2",
|
2019-09-19 11:29:24 +00:00
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "15.2.1",
|
|
|
|
|
helpText: "Triggers an action when the button is clicked",
|
|
|
|
|
propertyName: "onClick",
|
|
|
|
|
label: "onClick",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "ACTION_SELECTOR",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
2020-06-05 16:20:23 +00:00
|
|
|
MAP_WIDGET: [
|
|
|
|
|
{
|
|
|
|
|
sectionName: "General",
|
|
|
|
|
id: "25.1",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "25.1.1",
|
|
|
|
|
propertyName: "mapCenter",
|
|
|
|
|
label: "Initial location",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
controlType: "LOCATION_SEARCH",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "25.1.4",
|
|
|
|
|
propertyName: "defaultMarkers",
|
|
|
|
|
label: "Default markers",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
inputType: "ARRAY",
|
|
|
|
|
helpText: "Sets the default markers on the map",
|
|
|
|
|
placeholderText: 'Enter [{ "lat": "val1", "long": "val2" }]',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "25.1.2",
|
|
|
|
|
propertyName: "enableSearch",
|
|
|
|
|
label: "Enable search location",
|
|
|
|
|
helpText: "Enables locaton search",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "25.1.3",
|
|
|
|
|
propertyName: "enablePickLocation",
|
|
|
|
|
label: "Enable pick location",
|
|
|
|
|
helpText: "Allows a user to pick their location",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "25.1.5",
|
|
|
|
|
propertyName: "enableCreateMarker",
|
|
|
|
|
label: "Create new marker",
|
|
|
|
|
helpText: "Allows users to mark locations on the map",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "25.1.6",
|
|
|
|
|
propertyName: "zoomLevel",
|
|
|
|
|
label: "Zoom Level",
|
|
|
|
|
controlType: "STEP",
|
|
|
|
|
helpText: "Changes the default zoom of the map",
|
|
|
|
|
stepType: "ZOOM_PERCENTAGE",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "25.1.7",
|
|
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "27",
|
|
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: "27.1",
|
|
|
|
|
propertyName: "onMarkerClick",
|
|
|
|
|
label: "onMarkerClick",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "27.2",
|
|
|
|
|
propertyName: "onCreateMarker",
|
|
|
|
|
label: "onCreateMarker",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
BUTTON_WIDGET: [
|
2019-09-18 10:19:50 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "1.1",
|
2019-09-18 10:19:50 +00:00
|
|
|
sectionName: "General",
|
2019-09-19 11:29:24 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "1.1.1",
|
|
|
|
|
propertyName: "text",
|
2019-09-19 11:29:24 +00:00
|
|
|
label: "Label",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Sets the label of the button",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter label text",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "1.1.2",
|
|
|
|
|
propertyName: "buttonStyle",
|
|
|
|
|
label: "Button Style",
|
|
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
helpText: "Changes the style of the button",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "Primary Button",
|
|
|
|
|
value: "PRIMARY_BUTTON",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Secondary Button",
|
|
|
|
|
value: "SECONDARY_BUTTON",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Danger Button",
|
|
|
|
|
value: "DANGER_BUTTON",
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "1.1.4",
|
2019-09-19 11:29:24 +00:00
|
|
|
propertyName: "isVisible",
|
2019-11-13 07:00:25 +00:00
|
|
|
label: "Visible",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "1.1.3",
|
|
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disabled",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
helpText: "Disables clicks to this widget",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2019-09-19 11:29:24 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "1.2.1",
|
2019-09-19 11:29:24 +00:00
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "2.1",
|
|
|
|
|
helpText: "Triggers an action when the button is clicked",
|
|
|
|
|
propertyName: "onClick",
|
|
|
|
|
label: "onClick",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "ACTION_SELECTOR",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
RICH_TEXT_EDITOR_WIDGET: [
|
2019-09-18 10:19:50 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "12.1",
|
2019-09-18 10:19:50 +00:00
|
|
|
sectionName: "General",
|
2019-09-19 11:29:24 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "12.1.1",
|
|
|
|
|
propertyName: "defaultText",
|
|
|
|
|
helpText:
|
|
|
|
|
"Sets the default text of the widget. The text is updated if the default text changes",
|
|
|
|
|
label: "Default text",
|
2020-02-24 14:55:09 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter HTML",
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "12.1.2",
|
|
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "12.1.3",
|
|
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disable",
|
|
|
|
|
helpText: "Disables input to this widget",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "12.2",
|
2019-09-19 11:29:24 +00:00
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "12.2.1",
|
|
|
|
|
helpText: "Triggers an action when the text is changed",
|
|
|
|
|
propertyName: "onTextChange",
|
|
|
|
|
label: "onTextChange",
|
2019-09-19 11:29:24 +00:00
|
|
|
controlType: "ACTION_SELECTOR",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-09-19 11:29:24 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
2019-11-04 14:22:50 +00:00
|
|
|
FILE_PICKER_WIDGET: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "11.1",
|
2019-11-04 14:22:50 +00:00
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "11.1.1",
|
|
|
|
|
propertyName: "label",
|
|
|
|
|
label: "Label",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
helpText: "Sets the label of the button",
|
|
|
|
|
placeholderText: "Enter label text",
|
|
|
|
|
inputType: "TEXT",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "11.1.2",
|
2019-11-04 14:22:50 +00:00
|
|
|
propertyName: "maxNumFiles",
|
2020-03-31 10:40:52 +00:00
|
|
|
label: "Max No. files",
|
|
|
|
|
helpText:
|
|
|
|
|
"Sets the maximum number of files that can be uploaded at once",
|
2019-11-04 14:22:50 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-06 09:45:21 +00:00
|
|
|
placeholderText: "Enter no. of files",
|
|
|
|
|
inputType: "INTEGER",
|
2019-11-04 14:22:50 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "11.1.3",
|
|
|
|
|
propertyName: "maxFileSize",
|
|
|
|
|
helpText: "Sets the maximum size of each file that can be uploaded",
|
|
|
|
|
label: "Max file size",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
placeholderText: "File size in mb",
|
|
|
|
|
inputType: "INTEGER",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "11.1.4",
|
2019-11-04 14:22:50 +00:00
|
|
|
propertyName: "allowedFileTypes",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Restricts the type of files which can be uploaded",
|
2019-11-04 14:22:50 +00:00
|
|
|
label: "Allowed File Types",
|
2020-01-03 13:40:31 +00:00
|
|
|
controlType: "MULTI_SELECT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Select file types",
|
2019-11-04 14:22:50 +00:00
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "Any File",
|
|
|
|
|
value: "*",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Images",
|
|
|
|
|
value: "image/*",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Videos",
|
|
|
|
|
value: "video/*",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Audio",
|
|
|
|
|
value: "audio/*",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Text",
|
|
|
|
|
value: "text/*",
|
|
|
|
|
},
|
2020-03-31 10:40:52 +00:00
|
|
|
{
|
|
|
|
|
label: "MS Word",
|
|
|
|
|
value: ".doc",
|
|
|
|
|
},
|
2019-11-04 14:22:50 +00:00
|
|
|
{
|
|
|
|
|
label: "JPEG",
|
|
|
|
|
value: "image/jpeg",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "PNG",
|
2020-03-31 10:40:52 +00:00
|
|
|
value: ".png",
|
2019-11-04 14:22:50 +00:00
|
|
|
},
|
|
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2019-11-04 14:22:50 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-08-12 06:59:27 +00:00
|
|
|
id: "11.1.9",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "isRequired",
|
|
|
|
|
label: "Required",
|
2020-08-12 06:59:27 +00:00
|
|
|
helpText: "Makes input to the widget mandatory",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "11.1.6",
|
2019-11-04 14:22:50 +00:00
|
|
|
propertyName: "isVisible",
|
2019-11-13 07:00:25 +00:00
|
|
|
label: "Visible",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Controls the visibility of the widget",
|
2019-11-04 14:22:50 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "11.1.7",
|
2020-06-05 16:20:23 +00:00
|
|
|
propertyName: "uploadedFileUrlPaths",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText:
|
|
|
|
|
"Stores the url of the uploaded file so that it can be referenced in an action later",
|
|
|
|
|
label: "Uploaded File URLs",
|
|
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
placeholderText: 'Enter [ "url1", "url2" ]',
|
|
|
|
|
inputType: "TEXT",
|
2019-11-04 14:22:50 +00:00
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "11.1.8",
|
|
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disable",
|
|
|
|
|
helpText: "Disables input to this widget",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2019-11-04 14:22:50 +00:00
|
|
|
],
|
|
|
|
|
},
|
2020-03-06 09:45:21 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "11.2",
|
2020-03-06 09:45:21 +00:00
|
|
|
sectionName: "Actions",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "11.2.1",
|
|
|
|
|
helpText:
|
|
|
|
|
"Triggers an action when the user selects a file. Upload files to a CDN here and store their urls in uploadedFileUrls",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "onFilesSelected",
|
|
|
|
|
label: "onFilesSelected",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
CHECKBOX_WIDGET: [
|
2020-03-06 09:45:21 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "9.1",
|
2020-03-06 09:45:21 +00:00
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "9.1.1",
|
|
|
|
|
propertyName: "label",
|
|
|
|
|
label: "Label",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Displays a label next to the widget",
|
|
|
|
|
placeholderText: "Enter label text",
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "9.1.2",
|
|
|
|
|
propertyName: "defaultCheckedState",
|
|
|
|
|
label: "Default Selected",
|
|
|
|
|
helpText:
|
|
|
|
|
"Checks / un-checks the checkbox by default. Changes to the default selection update the widget state",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-08-12 06:59:27 +00:00
|
|
|
id: "9.1.6",
|
2020-03-31 10:40:52 +00:00
|
|
|
propertyName: "isRequired",
|
|
|
|
|
label: "Required",
|
2020-08-12 06:59:27 +00:00
|
|
|
helpText: "Makes input to the widget mandatory",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "9.1.5",
|
|
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
2020-08-12 06:59:27 +00:00
|
|
|
{
|
|
|
|
|
id: "9.1.4",
|
|
|
|
|
propertyName: "isDisabled",
|
|
|
|
|
label: "Disabled",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
helpText: "Disables input to this widget",
|
|
|
|
|
isJSConvertible: true,
|
|
|
|
|
},
|
2020-03-06 09:45:21 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "9.2",
|
|
|
|
|
sectionName: "Actions",
|
2020-03-06 09:45:21 +00:00
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "9.2.1",
|
|
|
|
|
helpText: "Triggers an action when the check state is changed",
|
|
|
|
|
propertyName: "onCheckChange",
|
|
|
|
|
label: "onCheckChange",
|
|
|
|
|
controlType: "ACTION_SELECTOR",
|
|
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
FORM_WIDGET: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "14.1",
|
2020-03-06 09:45:21 +00:00
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "14.1.1",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "backgroundColor",
|
|
|
|
|
label: "Background Color",
|
2020-06-05 16:20:23 +00:00
|
|
|
helpText: "Use a html color name, HEX, RGB or RGBA value",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "#FFFFFF / Gray / rgb(255, 99, 71)",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "14.1.2",
|
|
|
|
|
helpText: "Controls the visibility of the widget",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "isVisible",
|
|
|
|
|
label: "Visible",
|
|
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
2020-06-05 16:20:23 +00:00
|
|
|
{
|
|
|
|
|
id: "14.1.3",
|
|
|
|
|
propertyName: "shouldScrollContents",
|
|
|
|
|
label: "Scroll Contents",
|
|
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
2020-03-06 09:45:21 +00:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-03-31 10:40:52 +00:00
|
|
|
TEXT_WIDGET: [
|
2020-03-06 09:45:21 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "2.1",
|
2020-03-06 09:45:21 +00:00
|
|
|
sectionName: "General",
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "2.1.1",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "text",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Sets the text of the widget",
|
|
|
|
|
label: "Text",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "INPUT_TEXT",
|
2020-03-31 10:40:52 +00:00
|
|
|
placeholderText: "Enter text",
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
2020-06-05 16:20:23 +00:00
|
|
|
{
|
|
|
|
|
id: "2.1.3",
|
|
|
|
|
propertyName: "textAlign",
|
|
|
|
|
helpText: "Sets the alignments of the text",
|
|
|
|
|
label: "Text Align",
|
|
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
label: "Left",
|
|
|
|
|
value: "LEFT",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Center",
|
|
|
|
|
value: "CENTER",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "Right",
|
|
|
|
|
value: "RIGHT",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-03-06 09:45:21 +00:00
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "2.1.2",
|
|
|
|
|
propertyName: "textStyle",
|
|
|
|
|
helpText: "Sets the font and style of the text",
|
|
|
|
|
label: "Text Style",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "DROP_DOWN",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
label: "Heading",
|
|
|
|
|
value: "HEADING",
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
label: "Label",
|
|
|
|
|
value: "LABEL",
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
label: "Body",
|
|
|
|
|
value: "BODY",
|
2020-03-06 09:45:21 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "2.1.3",
|
|
|
|
|
propertyName: "shouldScroll",
|
|
|
|
|
label: "Enable Scroll",
|
|
|
|
|
helpText: "Allows scrolling text instead of truncation",
|
2020-03-06 09:45:21 +00:00
|
|
|
controlType: "SWITCH",
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-03-31 10:40:52 +00:00
|
|
|
id: "2.1.4",
|
2020-03-06 09:45:21 +00:00
|
|
|
propertyName: "isVisible",
|
2020-03-31 10:40:52 +00:00
|
|
|
helpText: "Controls the visibility of the widget",
|
2020-03-06 09:45:21 +00:00
|
|
|
label: "Visible",
|
|
|
|
|
controlType: "SWITCH",
|
2020-03-31 10:40:52 +00:00
|
|
|
isJSConvertible: true,
|
2020-03-13 12:06:41 +00:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2019-09-18 10:19:50 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default PropertyPaneConfigResponse;
|