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

90 lines
1.7 KiB
TypeScript
Raw Normal View History

import { WidgetConfigReducerState } from "../reducers/entityReducers/widgetConfigReducer.tsx";
2019-09-12 08:11:25 +00:00
const WidgetConfigResponse: WidgetConfigReducerState = {
BUTTON_WIDGET: {
text: "Submit",
buttonStyle: "PRIMARY_BUTTON",
rows: 1,
columns: 2,
2019-09-12 08:11:25 +00:00
},
TEXT_WIDGET: {
text: "Not all labels are bad!",
textStyle: "LABEL",
rows: 1,
columns: 3,
2019-09-12 08:11:25 +00:00
},
IMAGE_WIDGET: {
defaultImage: "",
imageShape: "RECTANGLE",
image: "",
rows: 3,
columns: 3,
2019-09-12 08:11:25 +00:00
},
INPUT_WIDGET: {
inputType: "TEXT",
label: "Label me",
rows: 1,
columns: 3,
2019-09-12 08:11:25 +00:00
},
SWITCH_WIDGET: {
isOn: false,
label: "Turn me on",
rows: 1,
columns: 4,
2019-09-12 08:11:25 +00:00
},
CONTAINER_WIDGET: {
backgroundColor: "#FFFFFF",
rows: 1,
columns: 4,
2019-09-12 08:11:25 +00:00
},
SPINNER_WIDGET: {
rows: 1,
columns: 1,
2019-09-12 08:11:25 +00:00
},
DATE_PICKER_WIDGET: {
enableTime: false,
datePickerType: "DATE_PICKER",
rows: 1,
columns: 3,
label: "Date",
2019-09-12 08:11:25 +00:00
},
TABLE_WIDGET: {
rows: 5,
columns: 7,
label: "Don't table me!",
2019-09-12 08:11:25 +00:00
},
DROP_DOWN_WIDGET: {
rows: 1,
columns: 3,
selectionType: "SINGLE_SELECT",
label: "Pick me!",
2019-09-12 08:11:25 +00:00
},
CHECKBOX_WIDGET: {
2019-09-12 08:11:25 +00:00
rows: 1,
columns: 3,
label: "Label - CHECK!",
defaultCheckedState: true,
2019-09-12 08:11:25 +00:00
},
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",
2019-09-12 08:11:25 +00:00
},
ALERT_WIDGET: {
alertType: "NOTIFICATION",
intent: "SUCCESS",
rows: 3,
columns: 3,
header: "",
message: "",
},
2019-09-12 08:11:25 +00:00
};
export default WidgetConfigResponse;