budibase/packages/standard-components/components.json

806 lines
16 KiB
JSON
Raw Normal View History

2019-08-19 22:18:23 +02:00
{
2019-09-11 06:18:00 +02:00
"_lib": "./dist/index.js",
2020-04-23 14:32:36 +02:00
"_templates": {
"saveRowButton": {
"description": "Save row button",
2020-02-19 22:38:21 +01:00
"component": "button"
}
},
"embed": {
"name": "Embed",
"description": "Embed stuff",
"props": {
"embed": "string"
}
},
2020-04-23 14:32:36 +02:00
"Navigation": {
"name": "Navigation",
"description": "A basic header navigation component",
"children": true,
2020-04-23 14:32:36 +02:00
"props": {
"logoUrl": "string",
"title": "string",
2020-05-12 15:44:30 +02:00
"backgroundColor": "string",
"color": "string",
2020-04-23 14:32:36 +02:00
"borderWidth": "string",
2020-05-12 15:44:30 +02:00
"borderColor": "string",
2020-04-23 14:32:36 +02:00
"borderStyle": "string"
}
},
"button": {
2019-08-19 22:18:23 +02:00
"name": "Button",
"description": "an html <button />",
"props": {
"text": "string",
2020-01-18 10:00:18 +01:00
"className": "string",
2019-09-20 09:01:35 +02:00
"disabled": "bool",
"onClick": "event"
2019-08-19 22:18:23 +02:00
},
2020-04-23 14:32:36 +02:00
"tags": [
"layout"
],
"presets": {
"primary": {
"contentText": "Primary Button Preset",
2020-04-23 14:32:36 +02:00
"color": "papayawhip",
"padding": "20px",
"background": "blue"
},
"secondary": {
"contentText": "Secondary Button Preset",
2020-04-23 14:32:36 +02:00
"color": "rebeccapurple",
"padding": "10px",
"background": "#fff",
"border": "1px solid red"
},
"error": {
"contentText": "ERROR",
2020-04-23 14:32:36 +02:00
"color": "red",
"padding": "10px",
"border": "1px solid red"
}
2020-04-23 14:32:36 +02:00
}
},
"login": {
2019-08-27 08:32:56 +02:00
"name": "Login Control",
2019-10-07 07:03:41 +02:00
"description": "A control that accepts username, password an also handles password resets",
2020-04-23 14:32:36 +02:00
"props": {
2019-08-27 08:32:56 +02:00
"logo": "asset",
"loginRedirect": "string",
"title": "string",
2020-04-23 14:32:36 +02:00
"usernameLabel": {
"type": "string",
"default": "Username"
},
"passwordLabel": {
"type": "string",
"default": "Password"
},
"loginButtonLabel": {
"type": "string",
"default": "Login"
},
"buttonClass": "string",
"inputClass": "string",
"buttonText": "string"
2019-08-27 08:32:56 +02:00
},
2020-04-23 14:32:36 +02:00
"tags": [
"login",
"credentials",
"password",
"logon"
]
2019-08-27 08:32:56 +02:00
},
2020-04-23 14:32:36 +02:00
"input": {
"name": "Input",
2020-08-12 17:30:20 +02:00
"bindable": "value",
"description": "An HTML input",
2020-04-23 14:32:36 +02:00
"props": {
"value": "string",
"type": {
2020-04-23 14:32:36 +02:00
"type": "options",
"options": [
"text",
"password",
"checkbox",
"color",
"date",
"datetime-local",
"email",
"file",
"hidden",
"image",
"month",
"number",
"radio",
"range",
"reset",
"search",
"submit",
"tel",
"time",
"week"
],
"default": "text"
},
2020-02-20 21:19:24 +01:00
"onChange": "event",
2020-01-18 10:00:18 +01:00
"className": "string"
},
2020-04-23 14:32:36 +02:00
"tags": [
"form"
]
},
2020-04-23 14:32:36 +02:00
"select": {
"name": "Select",
"bindable": "value",
"description": "An HTML <select> (dropdown)",
2020-04-23 14:32:36 +02:00
"props": {
"value": "string",
2020-01-18 10:00:18 +01:00
"className": "string"
}
},
2020-04-23 14:32:36 +02:00
"option": {
"name": "Option",
"description": "An HTML <option>, to be used with <select>",
"children": false,
2020-04-23 14:32:36 +02:00
"props": {
"value": "string",
"text": "string"
}
},
"text": {
"name": "Text",
2019-10-07 07:03:41 +02:00
"description": "stylable block of text",
2020-01-18 10:00:18 +01:00
"children": false,
2020-04-23 14:32:36 +02:00
"props": {
"text": "string",
2020-08-12 17:30:20 +02:00
"type": {
"type": "string",
"default": "none"
}
},
2020-04-23 14:32:36 +02:00
"tags": [
"div",
"container"
]
2019-09-26 06:40:58 +02:00
},
2020-04-23 14:22:41 +02:00
"textfield": {
"name": "Textfield",
"description": "A component that allows the user to input text.",
"props": {
"label": "string",
"type": "string",
2020-04-23 14:22:41 +02:00
"value": "string",
"onchange": "event"
}
},
"checkbox": {
"name": "Checkbox",
"bindable": "value",
2020-04-23 14:22:41 +02:00
"description": "A selectable checkbox component",
"props": {
"label": "string",
"checked": "bool",
"value": "string",
"onchange": "event"
}
},
"radiobutton": {
"name": "Radiobutton",
"bindable": "value",
2020-04-23 14:22:41 +02:00
"description": "A selectable radiobutton component",
"props": {
"label": "string",
"checked": "bool",
"value": "string",
"onchange": "event"
2020-04-23 14:32:36 +02:00
}
2020-04-23 14:22:41 +02:00
},
"icon": {
"description": "A HTML icon tag",
"props": {
2020-09-25 11:44:05 +02:00
"icon": "string",
"size": {
"type": "string",
"default": "fa-lg"
},
"color": {
"type": "string",
"default": "#000"
}
2020-09-14 12:08:03 +02:00
}
},
"datatable": {
2020-07-02 21:38:02 +02:00
"description": "an HTML table that fetches data from a table or view and displays it.",
2020-05-07 15:59:06 +02:00
"data": true,
"props": {
"datasource": "tables",
"stripeColor": "string",
"borderColor": "string",
"backgroundColor": "string",
"color": "string"
}
},
2020-09-25 11:44:05 +02:00
"datagrid": {
"description": "a datagrid component with functionality to add, remove and edit rows.",
"data": true,
"props": {
"datasource": "tables",
"editable": "bool",
"theme": {
"type": "options",
"default": "alpine",
"options": [
"alpine",
"alpine-dark",
"balham",
"balham-dark",
"material"
]
2020-10-13 09:13:56 +02:00
},
2020-10-13 09:51:01 +02:00
"height": "number",
"pagination": "bool"
2020-09-25 11:44:05 +02:00
}
},
"dataform": {
2020-07-02 21:38:02 +02:00
"description": "an HTML table that fetches data from a table or view and displays it.",
2020-05-07 15:59:06 +02:00
"data": true,
2020-10-08 23:06:44 +02:00
"props": {}
},
"dataformwide": {
2020-07-02 21:38:02 +02:00
"description": "an HTML table that fetches data from a table or view and displays it.",
"data": true,
2020-10-08 23:06:44 +02:00
"props": {}
},
2020-05-07 23:15:09 +02:00
"datalist": {
"description": "A configurable data list that attaches to your backend tables.",
2020-05-07 23:15:09 +02:00
"data": true,
"props": {
"table": "tables",
2020-05-07 23:15:09 +02:00
"layout": {
"type": "options",
"default": "list",
"options": [
"list",
"grid"
]
}
}
},
2020-06-03 00:26:06 +02:00
"list": {
"description": "A configurable data list that attaches to your backend tables.",
"context": "datasource",
"children": true,
2020-06-03 00:26:06 +02:00
"data": true,
"props": {
"datasource": "tables"
2020-07-01 14:19:14 +02:00
}
},
2020-07-31 13:02:29 +02:00
"stackedlist": {
"name": "Stacked List",
"description": "A stacked list component for displaying information",
"props": {
"imageUrl": "string",
"heading": "string",
"text1": "string",
"text2": "string",
"text3": "string",
"destinationUrl": "string"
}
},
"rowdetail": {
"description": "Loads a row, using an ID in the url",
"context": "table",
"children": true,
2020-07-01 14:19:14 +02:00
"data": true,
2020-10-07 23:30:00 +02:00
"baseComponent": true,
"props": {
"table": "tables"
2020-10-07 23:30:00 +02:00
}
},
2020-10-09 18:12:55 +02:00
"newrow": {
"description": "Prepares a new row for creation",
"context": "table",
"children": true,
2020-07-01 14:19:14 +02:00
"data": true,
2020-10-07 23:30:00 +02:00
"baseComponent": true,
2020-07-01 14:19:14 +02:00
"props": {
"table": "tables"
2020-06-03 00:26:06 +02:00
}
},
2020-08-13 09:58:48 +02:00
"card": {
"name": "Card",
"props": {
"imageUrl": "string",
"heading": "string",
"description": "string",
"linkText": "string",
"linkUrl": "string",
"color": "string",
"linkHoverColor": "string",
"imageHeight": {
"type": "options",
"default": "20rem",
"options": [
"12rem",
"16rem",
"20rem",
2020-08-26 09:11:16 +02:00
"24rem"
2020-08-13 09:58:48 +02:00
]
},
"cardWidth": {
"type": "options",
"default": "20rem",
"options": [
"16rem",
"20rem",
2020-08-26 09:11:16 +02:00
"24rem"
2020-08-13 09:58:48 +02:00
]
}
}
},
"cardhorizontal": {
"name": "Horizontal Card",
"props": {
"imageUrl": "string",
"heading": "string",
"description": "string",
"subtext": "string",
"linkText": "string",
"linkUrl": "string",
"color": "string",
"linkHoverColor": "string",
"imageWidth": {
"type": "options",
"default": "8rem",
"options": [
"8rem",
"12rem",
2020-08-26 09:11:16 +02:00
"16rem"
2020-08-13 09:58:48 +02:00
]
},
"cardWidth": {
"type": "options",
"default": "32rem",
"options": [
"24rem",
"28rem",
"32rem",
"40rem",
"48rem",
"60rem",
2020-08-26 09:11:16 +02:00
"100%"
2020-08-13 09:58:48 +02:00
]
},
"imageHeight": {
"type": "options",
"default": "8rem",
"options": [
"8rem",
"12rem",
2020-08-26 09:11:16 +02:00
"16rem"
2020-08-13 09:58:48 +02:00
]
}
}
},
2020-05-11 11:28:06 +02:00
"datamap": {
"description": "shiny chart",
"data": true,
"props": {
"table": "tables"
2020-05-11 11:28:06 +02:00
}
},
2020-07-26 12:54:55 +02:00
"donut": {
"description": "Donut Chart",
"data": true,
"props": {
"datasource": "string",
"data": "string",
2020-07-26 12:54:55 +02:00
"color": "string",
"height": "number",
"width": "number",
"hasFixedHighlightedSlice": "bool",
"hasLastHoverSliceHighlighted": "bool",
"hasHoverAnimation": "bool",
"numberFormat": "string",
2020-08-07 15:28:55 +02:00
"nameKey": "string",
"valueKey": "string",
2020-07-26 12:54:55 +02:00
"isAnimated": "bool",
"externalRadius": "number",
"internalRadius": "number",
"radiusHoverOffset": "number",
2020-08-05 17:57:54 +02:00
"percentageFormat": "string",
"useLegend": "bool",
2020-08-05 17:57:54 +02:00
"legendWidth": "number",
"legendHeight": "number"
2020-07-26 12:54:55 +02:00
}
},
"sparkline": {
"description": "Sparkline Chart",
"data": true,
"props": {
"table": "string",
"areaGradient": "string",
"height": "number",
"width": "number",
"dateLabel": "string",
"duration": "string",
"isAnimated": "bool",
"lineGradient": "string",
"titleText": "string",
"valueLabel": "string"
2020-08-12 17:30:20 +02:00
}
},
2020-08-03 12:55:13 +02:00
"stackedbar": {
"description": "Stacked Bar Chart",
"data": true,
"props": {
"datasource": "tables",
2020-08-03 12:55:13 +02:00
"color": "string",
"height": "number",
"width": "number",
"margin": "string",
"aspectRatio": "string",
"betweenBarsPadding": "number",
"grid": "string",
"hasPercentage": "bool",
"hasReversedStacks": "bool",
"isAnimated": "bool",
"isHorizontal": "bool",
"locale": "string",
"nameLabel": "string",
"percentageAxisToMaxRatio": "number",
"stackLabel": "string",
"valueLabel": "string",
"valueLabelFormat": "string",
"xTicks": "number",
"yTicks": "number",
"yAxisLabel": "string",
"yAxisLabelOffset": "number",
"useLegend": "bool"
2020-08-12 17:30:20 +02:00
}
2020-08-03 12:55:13 +02:00
},
"stackarea": {
"description": "Step Chart",
"data": true,
"props": {
"table": "string",
2020-08-03 12:55:13 +02:00
"color": "string",
"height": "number",
"width": "number",
"margin": "string",
"xAxisLabel": "string",
"xAxisLabelOffset": "string",
"yAxisLabel": "string",
"yAxisLabelOffset": "string",
"areaCurve": "number",
"areaOpacity": "number",
"aspectRatio": "number",
"dateLabel": "string",
"grid": "string",
"isAnimated": "bool",
"keyLabel": "string",
"locale": "string",
"tooltipThreshold": "number",
"topicsOrder": "string",
"valueLabel": "string",
"xAxisCustomFormat": "string",
"xAxisFormat": "string",
"xAxisScale": "string",
2020-08-12 17:30:20 +02:00
"xAxisValueType": "string",
2020-08-03 12:55:13 +02:00
"yTicks": "number",
"xTicks": "number",
"yAxisBaseline": "string",
"useLegend": "bool"
}
},
"step": {
"description": "Step Chart",
"data": true,
"props": {
"table": "string",
2020-08-03 12:55:13 +02:00
"height": "number",
"width": "number",
"margin": "string",
"xAxisLabel": "string",
"xAxisLabelOffset": "string",
"yAxisLabel": "string",
2020-08-12 17:30:20 +02:00
"yAxisLabelOffset": "string",
2020-08-03 12:55:13 +02:00
"yTicks": "string"
}
},
"scatterplot": {
"description": "Scatterplot Chart",
"data": true,
2020-08-12 17:30:20 +02:00
"props": {
"table": "string",
2020-08-03 12:55:13 +02:00
"color": "string",
"height": "number",
"width": "number",
"aspectRatio": "string",
"circleOpacity": "string",
"grid": "string",
"hasCrossHairs": "bool",
"isAnimated": "bool",
"maxCircleArea": "number",
"xAxisLabel": "string",
"xAxisLabelOffset": "string",
"xTicks": "string",
"yAxisFormat": "string",
"yAxisLabel": "string",
2020-08-12 17:30:20 +02:00
"yAxisLabelOffset": "string",
2020-08-03 12:55:13 +02:00
"yTicks": "string"
}
},
2020-07-26 12:54:55 +02:00
"bar": {
"description": "Bar Chart",
"data": true,
"props": {
"datasource": "tables",
"nameLabel": "string",
"valueLabel": "string",
2020-07-26 12:54:55 +02:00
"betweenBarsPadding": "number",
"gradient": "string",
"color": "string",
"hasSingleBarHighlight": "bool",
"height": "number",
"width": "number",
"isAnimated": "bool",
"isHorizontal": "bool",
"labelNumberFormat": "number",
"locale": "string",
"xAxisLabel": "string",
"yAxisLabel": "string",
"useLegend": "bool",
"xTicks": "number",
"yTicks": "number"
2020-07-26 12:54:55 +02:00
}
},
"line": {
"description": "Line Chart",
"data": true,
"props": {
"datasource": "tables",
2020-07-26 12:54:55 +02:00
"width": "number",
"height": "number",
"axisTimeCombinations": "string",
"color": "string",
2020-09-25 11:44:05 +02:00
"grid": {
"type": "string",
"default": "horizontal"
},
2020-07-26 12:54:55 +02:00
"aspectRatio": "number",
"dateLabel": "string",
2020-09-25 11:44:05 +02:00
"isAnimated": {
"type": "bool",
"default": true
},
2020-07-26 12:54:55 +02:00
"lineCurve": "string",
"locale": "string",
"numberFormat": "string",
2020-09-25 11:44:05 +02:00
"shouldShowAllDataPoints": {
"type": "bool",
"default": true
},
2020-07-26 12:54:55 +02:00
"topicLabel": "string",
"valueLabel": "string",
2020-09-25 11:44:05 +02:00
"xAxisValueType": {
"type": "string",
"default": "date"
},
2020-07-26 12:54:55 +02:00
"xAxisScale": "string",
2020-09-25 11:44:05 +02:00
"xAxisFormat": {
"type": "string",
"default": "custom"
},
"xAxisCustomFormat": "string",
2020-08-17 14:59:09 +02:00
"xAxisLabel": "string",
2020-08-18 16:45:44 +02:00
"yAxisLabel": "string",
"tooltipTitle": "string",
"xTicks": "number",
"yTicks": "number"
}
},
2020-08-12 17:30:20 +02:00
"brush": {
"description": "brush chart",
"data": true,
"props": {
"table": "string",
"gradient": "string",
"height": "number",
"width": "number",
"margin": "string",
"dateRange": "string",
"locale": "string",
"roundingTimeInterval": "string",
"xAxisFormat": "string",
"xTicks": "number",
2020-07-26 12:54:55 +02:00
"xAxisCustomFormat": "string"
}
},
"heatmap": {
2020-08-18 16:45:44 +02:00
"description": "Heatmap chart",
"data": true,
"props": {
"table": "string",
"color": "string",
"height": "number",
"width": "number",
"useLegend": "bool",
"yAxisLabel": "string",
"boxSize": "number"
2020-08-12 17:30:20 +02:00
}
},
"groupedbar": {
"description": "Groupedbar chart",
"data": true,
"props": {
"datasource": "tables",
"nameLabel": "string",
"valueLabel": "string",
"color": "string",
"height": "string",
"width": "string",
"margin": "string",
2020-08-12 17:30:20 +02:00
"grid": "string",
"groupLabel": "string",
"isAnimated": "bool",
"isHorizontal": "bool",
"yTicks": "string",
2020-08-18 16:45:44 +02:00
"useLegend": "bool",
"tooltipTitle": "string"
}
},
"bullet": {
"description": "Bullet chart",
"data": true,
2020-08-26 09:11:16 +02:00
"props": {
"table": "string",
"color": "string",
"customSubtitle": "string",
"customTitle": "string",
"numberFormat": "string",
"paddingBetweenAxisAndChart": "number",
"height": "number",
"width": "number"
}
},
"datepicker": {
"description": "Date Picker",
"bindable": "value",
"props": {
"placeholder": "string"
}
},
2020-05-07 23:15:09 +02:00
"datachart": {
"description": "shiny chart",
"data": true,
"props": {
"table": "tables",
2020-05-07 23:15:09 +02:00
"type": {
"type": "options",
"default": "column2d",
"options": [
"column3d",
"line",
"area2d",
"bar2d",
"bar3d",
"pie2d",
"pie3d",
"doughnut2d",
"doughnut3d",
"pareto2d",
"pareto3d"
]
}
}
},
2020-02-20 18:06:50 +01:00
"link": {
"description": "an HTML anchor <a> tag",
"props": {
"url": "string",
"openInNewTab": "bool",
2020-02-21 12:43:21 +01:00
"text": "string",
2020-05-12 15:44:30 +02:00
"color": "string",
"hoverColor": "string",
2020-02-21 12:43:21 +01:00
"underline": "bool",
"fontSize": "string",
"fontFamily": {
"type": "options",
"default": "initial",
"styleBindingProperty": "font-family",
"options": [
"initial",
2020-08-12 17:30:20 +02:00
"Times New Roman",
"Georgia",
"Arial",
2020-08-12 17:30:20 +02:00
"Arial Black",
"Comic Sans MS",
2020-08-12 17:30:20 +02:00
"Impact",
"Lucida Sans Unicode"
]
}
2020-02-20 18:06:50 +01:00
}
},
"image": {
"description": "an HTML <img> tag",
"props": {
"url": "string",
"className": "string",
"description": "string",
"height": "string",
"width": "string"
}
},
"container": {
"name": "Container",
"children": true,
"description": "An element that contains and lays out other elements. e.g. <div>, <header> etc",
2020-04-23 14:32:36 +02:00
"props": {
"className": "string",
"onLoad": "event",
"type": {
2020-04-23 14:32:36 +02:00
"type": "options",
"options": [
"article",
"aside",
"details",
"div",
"firgure",
"figcaption",
"footer",
"header",
"main",
"mark",
"nav",
"paragraph",
"summary"
],
"default": "div"
}
2020-08-12 17:30:20 +02:00
},
2020-10-07 23:30:00 +02:00
"baseComponent": true,
2020-04-23 14:32:36 +02:00
"tags": [
"div",
"container",
"layout"
]
},
"heading": {
"name": "Heading",
"description": "An HTML H1 - H6 tag",
2020-04-23 14:32:36 +02:00
"props": {
"className": "string",
2020-04-22 12:52:55 +02:00
"text": "string",
2020-08-12 17:30:20 +02:00
"type": {
"type": "options",
"default": "h1",
2020-04-23 14:32:36 +02:00
"options": [
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
]
}
},
"tags": []
2020-02-20 18:06:50 +01:00
},
"thead": {
"name": "TableHead",
"description": "an HTML <thead> tab",
2020-04-23 14:32:36 +02:00
"props": {
"className": "string"
2020-02-20 18:06:50 +01:00
}
},
"tbody": {
"name": "TableBody",
"description": "an HTML <tbody> tab",
2020-04-23 14:32:36 +02:00
"props": {
"className": "string"
2020-02-20 18:06:50 +01:00
}
2019-08-19 22:18:23 +02:00
}
}