diff --git a/src/main/resources/db/dump/updated_form_field_data_16-09-2024.sql b/src/main/resources/db/dump/updated_form_field_data_16-09-2024.sql index 5cd80b6f..1855bfe5 100644 --- a/src/main/resources/db/dump/updated_form_field_data_16-09-2024.sql +++ b/src/main/resources/db/dump/updated_form_field_data_16-09-2024.sql @@ -1,74 +1,91 @@ INSERT INTO FORM_FIELD (SORT_ORDER, NAME, LABEL, DESCRIPTION, SETTINGS, VALIDATORS, CREATED_DATE, UPDATED_DATE) VALUES (1, 'textinput', 'Testo Breve', 'Per risposte concise (nomi, titoli, brevi descrizioni)', - '{"label": "Testo Breve", "placeholder": ""}', + '[{"name": "label", "value": "Testo Breve"}, {"name": "placeholder", "value": ""}]', '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (2, 'textarea', 'Testo Lungo', 'Campo di testo esteso per paragrafi, descrizioni, proposte', - '{"label": "Testo Lungo", "placeholder": ""}', + '[{"name": "label", "value": "Testo Lungo"}, {"name": "placeholder", "value": ""}]', '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (3, 'wysiwyg', 'Campo di Testo Formattato', 'Editor avanzato per testo con formattazione', - '{"label": "Testo Formattato", "placeholder": ""}', + '[{"name": "label", "value": "Testo Formattato"}, {"name": "placeholder", "value": ""}]', '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (4, 'numberinput', 'Campo Numerico', 'Per l''inserimento di valori numerici (quantità, importi, percentuali)', - '{"label": "Numero", "placeholder": 0, "step": 0}', + '[{"name": "label", "value": "Numero"}, {"name": "placeholder", "value": "0"}, {"name": "step", "value": "0"}]', '{"isRequired": false, "min": null, "max": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (5, 'radio', 'Scelta Singola', 'Gruppo di opzioni per selezione singola', - '{"label": "Scelta Singola", "options": []}', - '{"isRequired": false, "custom": null}', + '[{"name": "label", "value": "Scelta Singola"}, {"name": "options", "value": "[]"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (6, 'select', 'Menu a Tendina', 'Selezione da opzioni predefinite', - '{"label": "Menu a Tendina", "options": []}', - '{"isRequired": false, "custom": null}', + '[{"name": "label", "value": "Menu a Tendina"}, {"name": "options", "value": "[]"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (7, 'checkboxes', 'Scelta Multipla', 'Gruppo di opzioni per selezione singola o multipla', - '{"label": "Scelta Multipla", "options": []}', - '{"isRequired": false, "min": null, "max": null, "custom": null}', + '[{"name": "label", "value": "Scelta Multipla"}, {"name": "options", "value": "[]"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (8, 'switch', 'Casella di Spunta', 'Per selezioni binarie, accettazioni, conferme', - '{"label": "Casella di Spunta"}', - '{"isRequired": false}', + '[{"name": "label", "value": "Casella di Spunta"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (9, 'datepicker', 'Data', 'Selezione di data', - '{"label": "Data"}', - '{"isRequired": false, "custom": null}', + '[{"name": "label", "value": "Data"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (10, 'fileupload', 'Caricamento File', 'Per l''upload di documenti o immagini', - '{"label": "Caricamento File", "mime": []}', - '{"isRequired": false, "maxSize": 100000, "custom": null}', + '[{"name": "label", "value": "Caricamento File"}, {"name": "mime", "value": "[]"}]', + '{"isRequired": false, "maxSize": 100000, "pattern": null, "custom": null}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (11, 'textinput', 'Campo Partita IVA', 'Specifico per l''inserimento del numero di Partita IVA', - '{"label": "Partita IVA", "placeholder": ""}', - '{"isRequired": true, "minLength": 11, "maxLength": 11, "custom": "isPIVA"}', + '[{"name": "label", "value": "Partita IVA"}, {"name": "placeholder", "value": ""}]', + '{"isRequired": true, "pattern": null, "custom": "isPIVA"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (12, 'textinput', 'Campo Codice Fiscale', 'Specifico per l''inserimento del Codice Fiscale italiano per persone fisiche e giuridiche', - '{"label": "Codice Fiscale", "placeholder": ""}', - '{"isRequired": true, "minLength": 11, "maxLength": 16, "custom": "isCodiceFiscale"}', + '[{"name": "label", "value": "Codice Fiscale"}, {"name": "placeholder", "value": ""}]', + '{"isRequired": true, "pattern": null, "custom": "isCodiceFiscale"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (13, 'numberinput', 'Campo CAP', 'Per l''inserimento del Codice di Avviamento Postale', - '{"label": "CAP", "placeholder": ""}', - '{"isRequired": true, "custom": "isCAP"}', + '[{"name": "label", "value": "CAP"}, {"name": "placeholder", "value": ""}]', + '{"isRequired": true, "minLength": null, "maxLength": null, "pattern": null, "custom": "isCAP"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (14, 'textinput', 'Campo IBAN', 'Per l''inserimento del codice IBAN', - '{"label": "IBAN", "placeholder": ""}', - '{"isRequired": true, "custom": "isIBAN"}', + '[{"name": "label", "value": "IBAN"}, {"name": "placeholder", "value": ""}]', + '{"isRequired": true, "minLength": null, "maxLength": null, "pattern": null, "custom": "isIBAN"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (15, 'textinput', 'Campo Email', 'Per l''inserimento di indirizzi email standard (non PEC)', - '{"label": "Campo Email", "placeholder": "nome@esempio.it"}', - '{"isRequired": false, "custom": "isEmail"}', + '[{"name": "label", "value": "Campo Email"}, {"name": "placeholder", "value": "nome@esempio.it"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": "isEmail"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (16, 'textinput', 'Campo PEC', 'Specifico per l''inserimento di un indirizzo di Posta Elettronica Certificata', - '{"label": "Campo PEC", "placeholder": "nome@pec.it"}', - '{"isRequired": false, "custom": "isEmailPEC"}', + '[{"name": "label", "value": "Campo PEC"}, {"name": "placeholder", "value": "nome@pec.it"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": "isEmailPEC"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (17, 'textinput', 'Campo URL', 'Per l''inserimento di indirizzi web', - '{"label": "Indirizzo URL", "placeholder": ""}', - '{"isRequired": false, "custom": "isUrl"}', + '[{"name": "label", "value": "Indirizzo URL"}, {"name": "placeholder", "value": ""}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": "isUrl"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), + (18, 'textinput', 'Marca da bollo', 'Per inserire codice di marca da bollo', - '{"label": "Marca da bollo", "placeholder": "Numero identificativo"}', - '{"isRequired": false, "custom": "isMarcaDaBollo"}', + '[{"name": "label", "value": "Marca da bollo"}, {"name": "placeholder", "value": "Numero identificativo"}]', + '{"isRequired": false, "minLength": null, "maxLength": null, "pattern": null, "custom": "isMarcaDaBollo"}', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);