PromucFlow_constructor/app/client/src/mockResponses/WidgetConfigResponse.tsx

106 lines
2.2 KiB
TypeScript
Raw Normal View History

import { WidgetConfigReducerState } from "../reducers/entityReducers/widgetConfigReducer";
2019-09-12 08:11:25 +00:00
const WidgetConfigResponse: WidgetConfigReducerState = {
config: {
BUTTON_WIDGET: {
text: "Submit",
buttonStyle: "PRIMARY_BUTTON",
rows: 1,
columns: 2,
widgetName: "Button",
},
TEXT_WIDGET: {
text: "Not all labels are bad!",
textStyle: "LABEL",
rows: 1,
columns: 3,
widgetName: "Text",
},
IMAGE_WIDGET: {
defaultImage: "",
imageShape: "RECTANGLE",
image: "",
rows: 3,
columns: 3,
widgetName: "Image",
},
INPUT_WIDGET: {
inputType: "TEXT",
label: "Label me",
rows: 1,
columns: 3,
widgetName: "Input",
},
SWITCH_WIDGET: {
isOn: false,
label: "Turn me on",
rows: 1,
columns: 4,
widgetName: "Switch",
},
CONTAINER_WIDGET: {
backgroundColor: "#FFFFFF",
rows: 1,
columns: 4,
widgetName: "Container",
},
SPINNER_WIDGET: {
rows: 1,
columns: 1,
widgetName: "Spinner",
},
DATE_PICKER_WIDGET: {
enableTime: false,
datePickerType: "DATE_PICKER",
rows: 1,
columns: 3,
label: "Date",
widgetName: "Datepicker",
},
TABLE_WIDGET: {
rows: 5,
columns: 7,
label: "Don't table me!",
widgetName: "Table",
},
DROP_DOWN_WIDGET: {
rows: 1,
columns: 3,
selectionType: "SINGLE_SELECT",
label: "Pick me!",
widgetName: "Dropdown",
},
CHECKBOX_WIDGET: {
rows: 1,
columns: 3,
label: "Label - CHECK!",
defaultCheckedState: true,
widgetName: "Checkbox",
},
RADIO_GROUP_WIDGET: {
rows: 3,
columns: 3,
label: "Alpha - come in!",
options: [
{ label: "Alpha", value: "1" },
{ label: "Bravo", value: "2" },
{ label: "Charlie", value: "3" },
],
defaultOptionValue: "1",
widgetName: "RadioGroup",
},
ALERT_WIDGET: {
alertType: "NOTIFICATION",
intent: "SUCCESS",
rows: 3,
columns: 3,
header: "",
message: "",
widgetName: "Alert",
},
},
configVersion: 1,
2019-09-12 08:11:25 +00:00
};
export default WidgetConfigResponse;