738 lines
18 KiB
JavaScript
738 lines
18 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": "a9a8aeb479",
|
|
"name": "textinput",
|
|
"label": "Testo Breve",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Testo Breve"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": ""
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": true,
|
|
"minLength": "3",
|
|
"maxLength": null,
|
|
"pattern": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 1
|
|
},
|
|
{
|
|
"id": "a20469fc97",
|
|
"name": "textarea",
|
|
"label": "Testo Lungo",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Testo Lungo"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": ""
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"pattern": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 2
|
|
},
|
|
{
|
|
"id": "a21dc560f6",
|
|
"name": "wysiwyg",
|
|
"label": "Campo di Testo Formattato",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Testo Formattato"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": ""
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"minLength": null,
|
|
"maxLength": null,
|
|
"pattern": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 3
|
|
},
|
|
{
|
|
"id": "a5c3860c1a",
|
|
"name": "numberinput",
|
|
"label": "Campo Numerico",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Numero"
|
|
},
|
|
{
|
|
"name": "placeholder",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "step",
|
|
"value": 0
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"min": null,
|
|
"max": null,
|
|
"pattern": null,
|
|
"custom": null
|
|
},
|
|
"dbId": 4
|
|
},
|
|
{
|
|
"id": "a7252ecc8d",
|
|
"name": "radio",
|
|
"label": "Scelta Singola",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Scelta Singola"
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": [
|
|
{
|
|
"name": "o8df4ffa62",
|
|
"label": "Radio opzione A"
|
|
},
|
|
{
|
|
"name": "o3ed6fb4d8",
|
|
"label": "Radio opzione B"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": true,
|
|
"custom": null
|
|
},
|
|
"dbId": 5
|
|
},
|
|
{
|
|
"id": "a778783c9d",
|
|
"name": "select",
|
|
"label": "Menu a Tendina",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Menu a Tendina"
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": [
|
|
{
|
|
"name": "od9f50d8a8",
|
|
"label": "Opzione A"
|
|
},
|
|
{
|
|
"name": "o8cb208732",
|
|
"label": "Opzione B"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false,
|
|
"custom": null
|
|
},
|
|
"dbId": 6
|
|
},
|
|
{
|
|
"id": "afee29df1a",
|
|
"name": "switch",
|
|
"label": "Casella di Spunta",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Casella di Spunta"
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": false
|
|
},
|
|
"dbId": 8
|
|
},
|
|
{
|
|
"id": "a5fdbd77df",
|
|
"name": "checkboxes",
|
|
"label": "Scelta Multipla",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Scelta Multipla"
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": [
|
|
{
|
|
"name": "o55ea20665",
|
|
"label": "Opz checkbox A"
|
|
},
|
|
{
|
|
"name": "oc10db3d79",
|
|
"label": "Opz checkbox B"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": true,
|
|
"custom": null
|
|
},
|
|
"dbId": 7
|
|
},
|
|
{
|
|
"id": "a2810fd8a1",
|
|
"name": "fileupload",
|
|
"label": "Caricamento File",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Caricamento File"
|
|
},
|
|
{
|
|
"name": "mime",
|
|
"value": ['image/jpeg', 'image/png']
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": true,
|
|
"maxSize": 100000,
|
|
"custom": null
|
|
},
|
|
"dbId": 10
|
|
},
|
|
{
|
|
"id": "ae14c94da7",
|
|
"name": "datepicker",
|
|
"label": "Data",
|
|
"settings": [
|
|
{
|
|
"name": "label",
|
|
"value": "Data"
|
|
}
|
|
],
|
|
"validators": {
|
|
"isRequired": true,
|
|
"custom": null
|
|
},
|
|
"dbId": 9
|
|
}
|
|
]
|
|
};
|
|
|
|
export const elementItems = [
|
|
{
|
|
id: 1,
|
|
sortOrder: 1,
|
|
name: 'textinput',
|
|
label: 'Testo Breve',
|
|
description: 'Per risposte concise (nomi, titoli, brevi descrizioni)',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Testo Breve"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
minLength: null,
|
|
maxLength: null,
|
|
pattern: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 2,
|
|
sortOrder: 2,
|
|
name: 'textarea',
|
|
label: 'Testo Lungo',
|
|
description: 'Campo di testo esteso per paragrafi, descrizioni, proposte',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Testo Lungo"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
minLength: null,
|
|
maxLength: null,
|
|
pattern: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 3,
|
|
sortOrder: 3,
|
|
name: 'wysiwyg',
|
|
label: 'Campo di Testo Formattato',
|
|
description: 'Editor avanzato per testo con formattazione',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Testo Formattato"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
minLength: null,
|
|
maxLength: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 4,
|
|
sortOrder: 4,
|
|
name: 'numberinput',
|
|
label: 'Campo Numerico',
|
|
description: "Per l'inserimento di valori numerici (quantità, importi, percentuali)",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Numero"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: 0
|
|
},
|
|
{
|
|
name: "step",
|
|
value: 0
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
min: null,
|
|
max: null,
|
|
pattern: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 5,
|
|
sortOrder: 5,
|
|
name: 'radio',
|
|
label: 'Scelta Singola',
|
|
description: 'Gruppo di opzioni per selezione singola',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Scelta Singola"
|
|
},
|
|
{
|
|
name: "options",
|
|
value: []
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 6,
|
|
sortOrder: 6,
|
|
name: 'select',
|
|
label: 'Menu a Tendina',
|
|
description: 'Selezione da opzioni predefinite',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Menu a Tendina"
|
|
},
|
|
{
|
|
name: "options",
|
|
value: []
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 7,
|
|
sortOrder: 7,
|
|
name: 'checkboxes',
|
|
label: 'Scelta Multipla',
|
|
description: 'Gruppo di opzioni per selezione singola o multipla',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Scelta Multipla"
|
|
},
|
|
{
|
|
name: "options",
|
|
value: []
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
min: null,
|
|
max: null,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 8,
|
|
sortOrder: 8,
|
|
name: 'switch',
|
|
label: 'Casella di Spunta',
|
|
description: 'Per selezioni binarie, accettazioni, conferme',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Casella di Spunta"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false
|
|
}
|
|
},
|
|
{
|
|
id: 9,
|
|
sortOrder: 9,
|
|
name: 'datepicker',
|
|
label: 'Data',
|
|
description: 'Selezione di data',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Data"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 10,
|
|
sortOrder: 10,
|
|
name: 'fileupload',
|
|
label: 'Caricamento File',
|
|
description: "Per l'upload di documenti o immagini",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Caricamento File"
|
|
},
|
|
{
|
|
name: "mime",
|
|
value: []
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
maxSize: 100000,
|
|
custom: null
|
|
}
|
|
},
|
|
{
|
|
id: 11,
|
|
sortOrder: 11,
|
|
name: 'textinput',
|
|
label: 'Campo Partita IVA',
|
|
description: "Specifico per l'inserimento del numero di Partita IVA",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Partita IVA"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: true,
|
|
custom: 'isPIVA'
|
|
}
|
|
},
|
|
{
|
|
id: 12,
|
|
sortOrder: 12,
|
|
name: 'textinput',
|
|
label: 'Campo Codice Fiscale',
|
|
description: "Specifico per l'inserimento del Codice Fiscale italiano per persone fisiche e giuridiche",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Codice Fiscale"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: true,
|
|
custom: 'isCodiceFiscale'
|
|
}
|
|
},
|
|
{
|
|
id: 13,
|
|
sortOrder: 13,
|
|
name: 'textinput',
|
|
label: 'Campo CAP',
|
|
description: "Per l'inserimento del Codice di Avviamento Postale",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "CAP"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: true,
|
|
custom: 'isCAP'
|
|
}
|
|
},
|
|
{
|
|
id: 14,
|
|
sortOrder: 14,
|
|
name: 'textinput',
|
|
label: 'Campo IBAN',
|
|
description: "Per l'inserimento del codice IBAN",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "IBAN"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: true,
|
|
custom: 'isIBAN'
|
|
}
|
|
},
|
|
{
|
|
id: 15,
|
|
sortOrder: 15,
|
|
name: 'textinput',
|
|
label: 'Campo Email',
|
|
description: "Per l'inserimento di indirizzi email standard (non PEC)",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Campo Email"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: "nome@esempio.it"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: 'isEmail'
|
|
}
|
|
},
|
|
{
|
|
id: 16,
|
|
sortOrder: 16,
|
|
name: 'textinput',
|
|
label: 'Campo PEC',
|
|
description: "Specifico per l'inserimento di un indirizzo di Posta Elettronica Certificata",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Campo PEC"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: "nome@pec.it"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: 'isEmailPEC'
|
|
}
|
|
},
|
|
{
|
|
id: 17,
|
|
sortOrder: 17,
|
|
name: 'textinput',
|
|
label: 'Campo URL',
|
|
description: "Per l'inserimento di indirizzi web",
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Indirizzo URL"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: ""
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: 'isUrl'
|
|
}
|
|
},
|
|
{
|
|
id: 18,
|
|
sortOrder: 18,
|
|
name: 'textinput',
|
|
label: 'Marca da bollo',
|
|
description: 'Per inserire codice di marca da bollo',
|
|
settings: [
|
|
{
|
|
name: "label",
|
|
value: "Marca da bollo"
|
|
},
|
|
{
|
|
name: "placeholder",
|
|
value: "Numero identificativo"
|
|
}
|
|
],
|
|
validators: {
|
|
isRequired: false,
|
|
custom: 'isMarcaDaBollo'
|
|
}
|
|
},
|
|
{
|
|
id: 19,
|
|
sortOrder: 19,
|
|
name: 'paragraph',
|
|
label: 'Paragrafo',
|
|
description: 'Semplice testo formattato',
|
|
settings: [
|
|
{
|
|
name: "text",
|
|
value: "Testo formattato"
|
|
}
|
|
],
|
|
validators: {}
|
|
}
|
|
]
|