2019-09-13 10:45:49 +00:00
|
|
|
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,
|
2019-09-13 10:45:49 +00:00
|
|
|
columns: 2,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
TEXT_WIDGET: {
|
|
|
|
|
text: "Not all labels are bad!",
|
|
|
|
|
textStyle: "LABEL",
|
|
|
|
|
rows: 1,
|
2019-09-13 10:45:49 +00:00
|
|
|
columns: 3,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
IMAGE_WIDGET: {
|
|
|
|
|
defaultImage: "",
|
|
|
|
|
imageShape: "RECTANGLE",
|
|
|
|
|
image: "",
|
|
|
|
|
rows: 3,
|
2019-09-13 10:45:49 +00:00
|
|
|
columns: 3,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
INPUT_WIDGET: {
|
|
|
|
|
inputType: "TEXT",
|
|
|
|
|
label: "Label me",
|
|
|
|
|
rows: 1,
|
2019-09-13 10:45:49 +00:00
|
|
|
columns: 3,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
SWITCH_WIDGET: {
|
|
|
|
|
isOn: false,
|
|
|
|
|
label: "Turn me on",
|
|
|
|
|
rows: 1,
|
2019-09-13 10:45:49 +00:00
|
|
|
columns: 4,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
CONTAINER_WIDGET: {
|
|
|
|
|
backgroundColor: "#FFFFFF",
|
|
|
|
|
rows: 1,
|
2019-09-13 10:45:49 +00:00
|
|
|
columns: 4,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
SPINNER_WIDGET: {
|
|
|
|
|
rows: 1,
|
2019-09-13 10:45:49 +00:00
|
|
|
columns: 1,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
DATE_PICKER_WIDGET: {
|
|
|
|
|
enableTime: false,
|
|
|
|
|
datePickerType: "DATE_PICKER",
|
|
|
|
|
rows: 1,
|
|
|
|
|
columns: 3,
|
2019-09-13 10:45:49 +00:00
|
|
|
label: "Date",
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
TABLE_WIDGET: {
|
|
|
|
|
rows: 5,
|
|
|
|
|
columns: 7,
|
2019-09-13 10:45:49 +00:00
|
|
|
label: "Don't table me!",
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
DROP_DOWN_WIDGET: {
|
|
|
|
|
rows: 1,
|
|
|
|
|
columns: 3,
|
2019-09-17 10:09:00 +00:00
|
|
|
selectionType: "SINGLE_SELECT",
|
2019-09-13 10:45:49 +00:00
|
|
|
label: "Pick me!",
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
2019-09-13 10:45:49 +00:00
|
|
|
CHECKBOX_WIDGET: {
|
2019-09-12 08:11:25 +00:00
|
|
|
rows: 1,
|
|
|
|
|
columns: 3,
|
|
|
|
|
label: "Label - CHECK!",
|
2019-09-13 10:45:49 +00:00
|
|
|
defaultCheckedState: true,
|
2019-09-12 08:11:25 +00:00
|
|
|
},
|
|
|
|
|
RADIO_GROUP_WIDGET: {
|
|
|
|
|
rows: 3,
|
|
|
|
|
columns: 3,
|
|
|
|
|
label: "Alpha - come in!",
|
2019-09-13 10:45:49 +00:00
|
|
|
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: "",
|
2019-09-13 10:45:49 +00:00
|
|
|
message: "",
|
|
|
|
|
},
|
2019-09-12 08:11:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default WidgetConfigResponse;
|