415 lines
10 KiB
JavaScript
415 lines
10 KiB
JavaScript
export const bandoTest = {
|
|
"name": "Innovazione digitale 2024",
|
|
"confidi": false,
|
|
"descriptionShort": "Supporto alle PMI per progetti di digitalizzazione e innovazione tecnologica.",
|
|
"descriptionLong": "Il bando \"Innovazione Digitale 2024\" mira a sostenere le PMI nell'adozione di tecnologie digitali innovative. I progetti finanziabili includono l'implementazione di soluzioni di intelligenza artificiale, blockchain, IoT, e altre tecnologie avanzate che possono migliorare la competitività delle imprese.",
|
|
"documentationRequested": "Documentazione richiesta*",
|
|
"dates": [
|
|
"2024-08-27T22:00:00.000Z",
|
|
"2024-10-29T23:00:00.000Z"
|
|
],
|
|
"amount": 10000,
|
|
"amountMax": 2500,
|
|
"aimedTo": [
|
|
{
|
|
"id": 3,
|
|
"value": "PMI con sede in Umbria",
|
|
"status": "existing"
|
|
}
|
|
],
|
|
"faq": [
|
|
{
|
|
"id": 2,
|
|
"question": "Question 1?",
|
|
"answer": "Lorem ipsum dolor",
|
|
"visible": true,
|
|
"status": "existing"
|
|
}
|
|
],
|
|
status: 'draft',
|
|
id: 11,
|
|
createdDate: "2024-08-07T08:14:07.849Z",
|
|
updatedDate: "2024-08-07T08:14:07.849Z",
|
|
"documentation":[
|
|
{
|
|
"id":18,
|
|
"name":"SCR-20240820-kiwn.pdf",
|
|
"filePath":"https://mementoresources.s3.eu-west-1.amazonaws.com/gepafin/SCR-20240820-kiwn.pdf",
|
|
"description":null,
|
|
"createdDate":"2024-08-26T06:51:11.800799252",
|
|
"updatedDate":"2024-08-26T06:51:11.800826092"
|
|
}
|
|
],
|
|
"criteria":[
|
|
{
|
|
"id":null,
|
|
"value":"Innovatività del progetto",
|
|
"status":"new",
|
|
"score":9
|
|
},
|
|
{
|
|
"id":null,
|
|
"value":"Impatto sulla competitività dell'azienda",
|
|
"status":"new",
|
|
"score":3
|
|
},
|
|
{
|
|
"id":null,
|
|
"value":"Sostenibilità economico-finanziaria",
|
|
"status":"new",
|
|
"score":5
|
|
}
|
|
],
|
|
"threshold":11,
|
|
"images":[
|
|
{
|
|
"id":19,
|
|
"name":"photo-1618245318763-a15156d6b23c.avif",
|
|
"filePath":"https://mementoresources.s3.eu-west-1.amazonaws.com/gepafin/photo-1618245318763-a15156d6b23c.avif",
|
|
"description":null,
|
|
"createdDate":"2024-08-26T07:28:16.954763338",
|
|
"updatedDate":"2024-08-26T07:28:16.954843237"
|
|
}
|
|
],
|
|
"checklist":[
|
|
{
|
|
"id":null,
|
|
"value":"Innovatività del progetto",
|
|
"status":"new"
|
|
},
|
|
{
|
|
"id":null,
|
|
"value":"Some new check",
|
|
"status":"new"
|
|
},
|
|
{
|
|
"id":null,
|
|
"value":"Check #2",
|
|
"status":"new"
|
|
}
|
|
]
|
|
}
|
|
|
|
export const formData = {
|
|
id: 15,
|
|
label: 'La forma per Innovazione digitale 2024',
|
|
content: [
|
|
{
|
|
"id": "aec5ee1885",
|
|
"name": "textinput",
|
|
"label": "Text Input",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Text input"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": "Placeholder text"
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"pattern": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 1
|
|
},
|
|
{
|
|
"id": "a730f1f4d0",
|
|
"name": "textarea",
|
|
"label": "Text Area",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Text area"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": "Placeholder text"
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"pattern": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 2
|
|
},
|
|
{
|
|
"id": "aa8746a7c3",
|
|
"name": "textinput",
|
|
"label": "P.IVA",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "P.IVA"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": "Insert p.iva number"
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": true,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"pattern": null,
|
|
"custom": "isValidVAT"
|
|
},
|
|
"dbId": 4
|
|
},
|
|
{
|
|
"id": "ae3dde17cd",
|
|
"name": "radio",
|
|
"label": "Radio Input",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Radio input"
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": [
|
|
{
|
|
"name": "opt1",
|
|
"label": "Opt1"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"min": null,
|
|
"max": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 5
|
|
},
|
|
{
|
|
"id": "abf838016f",
|
|
"name": "textinput",
|
|
"label": "Number Input",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Number"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": ""
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"min": null,
|
|
"max": null,
|
|
"pattern": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 3
|
|
}
|
|
]
|
|
};
|
|
|
|
export const elementItems = [
|
|
{
|
|
id: 1,
|
|
name: 'textinput',
|
|
label: 'Text Input',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Text input"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: "Placeholder text"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
minLength: null,
|
|
maxLength: null,
|
|
pattern: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 2,
|
|
name: 'textarea',
|
|
label: 'Text Area',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Text area"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: "Placeholder text"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
minLength: null,
|
|
maxLength: null,
|
|
pattern: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 3,
|
|
name: 'numberinput',
|
|
label: 'Number Input',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Number"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: 0
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
min: null,
|
|
max: null,
|
|
pattern: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 4,
|
|
name: 'textinput',
|
|
label: 'P.IVA',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "P.IVA"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: "Insert p.iva number"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: true,
|
|
minLength: null,
|
|
maxLength: null,
|
|
pattern: null,
|
|
custom: 'isValidVAT'
|
|
}
|
|
},
|
|
{
|
|
id: 5,
|
|
name: 'radio',
|
|
label: 'Radio Input',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Radio input"
|
|
},
|
|
{
|
|
name: "options",
|
|
value: [
|
|
{ name: "opt1", label: "Opt1" },
|
|
{ name: "opt2", label: "Opt2" }
|
|
]
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 6,
|
|
name: 'select',
|
|
label: 'Select',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Select"
|
|
},
|
|
{
|
|
name: "options",
|
|
value: [
|
|
{ name: "opt1", label: "Opt1" },
|
|
{ name: "opt2", label: "Opt2" }
|
|
]
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 7,
|
|
name: 'datepicker',
|
|
label: 'Datepicker',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Datepicker"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: null
|
|
}
|
|
}
|
|
]
|
|
|
|
const flowData = {
|
|
"initialForm":9,
|
|
"finalForm":13,
|
|
"flowData":[
|
|
{
|
|
"formId":"9",
|
|
"chosenField":"a0acf568c8",
|
|
"chosenValue":""
|
|
},
|
|
{
|
|
"formId":"12",
|
|
"chosenField":"",
|
|
"chosenValue":"o8bf116e28"
|
|
},
|
|
{
|
|
"formId":"11",
|
|
"chosenField":"",
|
|
"chosenValue":"o1eb76229d"
|
|
}
|
|
],
|
|
"flowEdges":[
|
|
{
|
|
"id":"9->12",
|
|
"source":"9",
|
|
"target":"12",
|
|
"type":"smoothstep"
|
|
},
|
|
{
|
|
"id":"12->13",
|
|
"source":"12",
|
|
"target":"13",
|
|
"type":"smoothstep"
|
|
},
|
|
{
|
|
"id":"9->11",
|
|
"source":"9",
|
|
"target":"11",
|
|
"type":"smoothstep"
|
|
},
|
|
{
|
|
"id":"11->13",
|
|
"source":"11",
|
|
"target":"13",
|
|
"type":"smoothstep"
|
|
}
|
|
]
|
|
} |