2019-11-25 05:07:27 +00:00
|
|
|
import { WidgetCardProps } from "widgets/BaseWidget";
|
|
|
|
|
import { generateReactKey } from "utils/generators";
|
2019-10-31 08:36:04 +00:00
|
|
|
/* eslint-disable no-useless-computed-key */
|
2019-08-21 12:49:16 +00:00
|
|
|
|
2019-10-18 08:16:26 +00:00
|
|
|
const WidgetSidebarResponse: {
|
2019-09-27 16:05:33 +00:00
|
|
|
[id: string]: WidgetCardProps[];
|
|
|
|
|
} = {
|
2019-10-30 10:23:20 +00:00
|
|
|
["Common Widgets"]: [
|
2019-09-27 16:05:33 +00:00
|
|
|
{
|
2020-02-21 13:17:52 +00:00
|
|
|
type: "CONTAINER_WIDGET",
|
|
|
|
|
widgetCardName: "Container",
|
2019-10-30 10:23:20 +00:00
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "TABLE_WIDGET",
|
|
|
|
|
widgetCardName: "Table",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2020-02-21 13:17:52 +00:00
|
|
|
{
|
|
|
|
|
type: "INPUT_WIDGET",
|
|
|
|
|
widgetCardName: "Input",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2019-09-27 16:05:33 +00:00
|
|
|
{
|
|
|
|
|
type: "BUTTON_WIDGET",
|
|
|
|
|
widgetCardName: "Button",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-21 13:17:52 +00:00
|
|
|
type: "TEXT_WIDGET",
|
|
|
|
|
widgetCardName: "Text",
|
2019-09-27 16:05:33 +00:00
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
],
|
2019-10-30 10:23:20 +00:00
|
|
|
["Form Widgets"]: [
|
2020-03-06 09:45:21 +00:00
|
|
|
{
|
|
|
|
|
type: "FORM_WIDGET",
|
|
|
|
|
widgetCardName: "Form",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "INPUT_WIDGET",
|
|
|
|
|
widgetCardName: "Input",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2019-09-27 16:05:33 +00:00
|
|
|
{
|
|
|
|
|
type: "DROP_DOWN_WIDGET",
|
|
|
|
|
widgetCardName: "Dropdown",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-10-30 10:23:20 +00:00
|
|
|
type: "CHECKBOX_WIDGET",
|
|
|
|
|
widgetCardName: "Checkbox",
|
2019-09-27 16:05:33 +00:00
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "RADIO_GROUP_WIDGET",
|
2019-11-13 11:34:11 +00:00
|
|
|
widgetCardName: "Radio",
|
2019-09-27 16:05:33 +00:00
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2020-01-21 12:48:42 +00:00
|
|
|
// {
|
|
|
|
|
// type: "SWITCH_WIDGET",
|
|
|
|
|
// icon: "icon-switch",
|
|
|
|
|
// widgetCardName: "Switch",
|
|
|
|
|
// key: generateReactKey(),
|
|
|
|
|
// },
|
2019-10-30 10:23:20 +00:00
|
|
|
{
|
|
|
|
|
type: "DATE_PICKER_WIDGET",
|
|
|
|
|
widgetCardName: "DatePicker",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2020-02-21 13:17:52 +00:00
|
|
|
{
|
|
|
|
|
type: "FILE_PICKER_WIDGET",
|
|
|
|
|
widgetCardName: "FilePicker",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2019-10-30 10:23:20 +00:00
|
|
|
{
|
|
|
|
|
type: "BUTTON_WIDGET",
|
|
|
|
|
widgetCardName: "Button",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2019-09-27 16:05:33 +00:00
|
|
|
],
|
2019-10-30 10:23:20 +00:00
|
|
|
["View widgets"]: [
|
|
|
|
|
{
|
|
|
|
|
type: "IMAGE_WIDGET",
|
|
|
|
|
widgetCardName: "Image",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2019-09-27 16:05:33 +00:00
|
|
|
{
|
|
|
|
|
type: "TEXT_WIDGET",
|
|
|
|
|
widgetCardName: "Text",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: "TABLE_WIDGET",
|
|
|
|
|
widgetCardName: "Table",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2020-03-13 12:06:41 +00:00
|
|
|
{
|
|
|
|
|
type: "CHART_WIDGET",
|
|
|
|
|
widgetCardName: "Chart",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
2019-09-27 16:05:33 +00:00
|
|
|
],
|
2019-10-30 10:23:20 +00:00
|
|
|
["Layout widgets"]: [
|
|
|
|
|
{
|
|
|
|
|
type: "CONTAINER_WIDGET",
|
|
|
|
|
widgetCardName: "Container",
|
|
|
|
|
key: generateReactKey(),
|
|
|
|
|
},
|
|
|
|
|
],
|
2019-08-21 12:49:16 +00:00
|
|
|
};
|
2019-09-06 09:30:22 +00:00
|
|
|
|
2019-10-18 08:16:26 +00:00
|
|
|
export default WidgetSidebarResponse;
|