# Conflicts: # src/constants/ActionConstants.tsx # src/constants/WidgetConstants.tsx # src/editorComponents/CheckboxComponent.tsx # src/editorComponents/RadioGroupComponent.tsx # src/mockResponses/WidgetCardsPaneResponse.tsx # src/pages/Editor/Canvas.tsx # src/pages/Editor/EditorDragLayer.tsx # src/reducers/entityReducers/index.tsx # src/reducers/index.tsx # src/utils/WidgetRegistry.tsx # src/widgets/BaseWidget.tsx # src/widgets/BreadcrumbsWidget.tsx # src/widgets/ButtonWidget.tsx # src/widgets/CalloutWidget.tsx # src/widgets/CheckboxWidget.tsx # src/widgets/IconWidget.tsx # src/widgets/InputGroupWidget.tsx # src/widgets/NumericInputWidget.tsx # src/widgets/RadioGroupWidget.tsx # src/widgets/TagInputWidget.tsx # src/widgets/TextWidget.tsx
90 lines
1.7 KiB
TypeScript
90 lines
1.7 KiB
TypeScript
import { WidgetConfigReducerState } from "../reducers/entityReducers/widgetConfigReducer.tsx";
|
|
|
|
const WidgetConfigResponse: WidgetConfigReducerState = {
|
|
BUTTON_WIDGET: {
|
|
text: "Submit",
|
|
buttonStyle: "PRIMARY_BUTTON",
|
|
rows: 1,
|
|
columns: 2,
|
|
},
|
|
TEXT_WIDGET: {
|
|
text: "Not all labels are bad!",
|
|
textStyle: "LABEL",
|
|
rows: 1,
|
|
columns: 3,
|
|
},
|
|
IMAGE_WIDGET: {
|
|
defaultImage: "",
|
|
imageShape: "RECTANGLE",
|
|
image: "",
|
|
rows: 3,
|
|
columns: 3,
|
|
},
|
|
INPUT_WIDGET: {
|
|
inputType: "TEXT",
|
|
label: "Label me",
|
|
rows: 1,
|
|
columns: 3,
|
|
},
|
|
SWITCH_WIDGET: {
|
|
isOn: false,
|
|
label: "Turn me on",
|
|
rows: 1,
|
|
columns: 4,
|
|
},
|
|
CONTAINER_WIDGET: {
|
|
backgroundColor: "#FFFFFF",
|
|
rows: 1,
|
|
columns: 4,
|
|
},
|
|
SPINNER_WIDGET: {
|
|
rows: 1,
|
|
columns: 1,
|
|
},
|
|
DATE_PICKER_WIDGET: {
|
|
enableTime: false,
|
|
datePickerType: "DATE_PICKER",
|
|
rows: 1,
|
|
columns: 3,
|
|
label: "Date",
|
|
},
|
|
TABLE_WIDGET: {
|
|
rows: 5,
|
|
columns: 7,
|
|
label: "Don't table me!",
|
|
},
|
|
DROP_DOWN_WIDGET: {
|
|
rows: 1,
|
|
columns: 3,
|
|
type: "SINGLE_SELECT",
|
|
label: "Pick me!",
|
|
},
|
|
CHECKBOX_WIDGET: {
|
|
rows: 1,
|
|
columns: 3,
|
|
label: "Label - CHECK!",
|
|
defaultCheckedState: true,
|
|
},
|
|
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",
|
|
},
|
|
ALERT_WIDGET: {
|
|
alertType: "NOTIFICATION",
|
|
intent: "SUCCESS",
|
|
rows: 3,
|
|
columns: 3,
|
|
header: "",
|
|
message: "",
|
|
},
|
|
};
|
|
|
|
export default WidgetConfigResponse;
|