const fieldOptions = [
{
title: 'Image',
type: 'image',
displayType: 'original',
},
{
title: 'File',
type: 'file',
displayType: 'original',
},
{
title: 'Heading Text',
type: 'block',
displayType: 'original',
value: 'Heading',
fontSize: 28,
fontWeight: 'bold',
},
{
title: 'Display Text',
type: 'block',
displayType: 'original',
value: 'Display text',
},
{
title: 'Empty Space',
type: 'block',
displayType: 'original',
borderColor: 'transparent',
backgroundColor: 'transparent',
},
{
title: 'Text',
type: 'text',
displayType: 'original',
},
{
title: 'Multiline Text',
type: 'textarea',
displayType: 'original',
},
{
title: 'Number',
type: 'number',
displayType: 'original',
},
{
title: 'Date Time',
type: 'date',
displayType: 'original',
format: 'MM/DD/YYYY hh:mma'
},
{
title: 'Dropdown',
type: 'dropdown',
displayType: 'original',
options: [
{ _id: generateObjectId(), value: 'Yes' },
{ _id: generateObjectId(), value: 'No' },
{ _id: generateObjectId(), value: 'N/A' },
],
},
{
title: 'Multiple Choice',
type: 'multiSelect',
multi: true,
displayType: 'original',
options: [
{ _id: generateObjectId(), value: 'Yes' },
{ _id: generateObjectId(), value: 'No' },
{ _id: generateObjectId(), value: 'N/A' },
],
},
{
title: 'Single Choice',
type: 'multiSelect',
multi: false,
displayType: 'original',
options: [
{ _id: generateObjectId(), value: 'Yes' },
{ _id: generateObjectId(), value: 'No' },
{ _id: generateObjectId(), value: 'N/A' },
],
},
{
title: 'Signature',
type: 'signature',
displayType: 'original',
},
{
title: 'Table',
type: 'table',
displayType: 'original',
tableColumns: [
{
_id: generateObjectId(),
type: 'text',
title: 'Text Column',
},
{
_id: generateObjectId(),
type: 'dropdown',
title: 'Dropdown Column',
options: [
{ _id: generateObjectId(), value: 'Yes' },
{ _id: generateObjectId(), value: 'No' },
{ _id: generateObjectId(), value: 'N/A' },
],
},
{
_id: generateObjectId(),
type: 'image',
title: 'Image Column',
maxImageWidth: 190,
maxImageHeight: 120,
},
],
value: [
{ _id: generateObjectId(), cells: {} },
{ _id: generateObjectId(), cells: {} },
{ _id: generateObjectId(), cells: {} },
],
},
{
title: 'Chart',
type: 'chart',
displayType: 'original',
primaryDisplayOnly: true,
yTitle: 'Vertical',
yMax: 100,
yMin: 0,
xTitle: 'Horizontal',
xMax: 100,
xMin: 0,
},
{
title: 'Custom Icon SVG',
type: FieldTypes.text,
iconType: "custom",
icon: (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
width={25}
height={25}
fill={'green'}
>
</svg>
),
displayType: 'original',
},
{
title: 'Custom Icon Url',
type: FieldTypes.text,
iconType: "url",
icon: '',
displayType: 'original',
}
];