-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
163 changed files
with
2,378 additions
and
36,942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Form Builder Components | ||
|
||
All components in the builder are or are derived from the default components of [Formio.js](https://formio.github.io/formio.js/app/builder) | ||
The system integrates this tool for creating Drag&Drop forms and makes them available to the user in the form of an App with [graphics adhering to AGID guidelines](https://italia.github.io/bootstrap-italia/docs/come-iniziare/introduzione/) | ||
Not all the features of Formio.js have been managed but only those useful for the purpose of the project. | ||
As regards the basic functionality of the project, see [general documentation of the application](index.md#L60) | ||
|
||
## **Metadata** | ||
Metadata is data present in each model (form) and is automatically enhanced when creating/modifying a form record. | ||
The list of metadata is as follows: | ||
**id, rec_name, owner_uid, owner_name, owner_sector, owner_sector_id, owner_function, update_datetime,create_datetime,owner_function_type, sys, demo, deleted, list_order, owner_personal_type, owner_job_title** | ||
|
||
# Basic functionality of all components: | ||
### The following properties are managed in the components: | ||
**Display:** | ||
**Custom CSS Class →** classes can be used [Bootstrap 4](https://italia.github.io/bootstrap-italia/1.x/docs/utilities/colori/) | ||
**Hidden →** set the field hidden or not | ||
**Disabled →** disables the field and makes it read-only and does not save the data. | ||
**Table View →** displays the field in the list view or not | ||
**Validation:** | ||
**Required →** makes the field mandatory in the form | ||
**Unique →** checks that the field value is unique in the db, renders the field mandatory in the form | ||
**Api:** | ||
Property Name → is the name of the field in the database | ||
**Custom Properties →** this configuration depends on the type of functionality adds the field; Yessee the specific documentation of the components | ||
**Conditional:** | ||
Advanced Conditions [Json-logic](logic.md#Guide) | ||
**Logic:** | ||
[Json-logic](logic.md#Guide) | ||
### <font color="#FA8072">In the components the following properties are **<font color = "#ff6063">not</font>** managed:</font> | ||
|
||
**Display:** | ||
Label Position | ||
Initial Focus | ||
Hide Label | ||
|
||
**Validation:** | ||
Validate On | ||
Error Label | ||
Custom Error Message | ||
Custom Validation | ||
JSONLogic-Validation | ||
|
||
**API:** | ||
Field Tags | ||
**Conditional:** | ||
Simple | ||
|
||
### Icons | ||
Regarding the icons and images available in the interfaces, refer to [official AGID guide](https://italia.github.io/bootstrap-italia/docs/utilities/icone/). | ||
|
||
[Return home](index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
### Datetime | ||
Implement the [standard configurations](../../base.md#the-following-properties-are-managed-in-the-components). | ||
With the datetime field you can manage fields **data** or **date and time** | ||
In the current version the field formatFormat it is not managed in the configurator. | ||
|
||
It is possible, by acting on the flag:**Enable Time Input** true/false, enable or disable the time in the form field. It is possible to activate the set date or today's date/time **Default Date a Today** | ||
|
||
<font color=" #e74c3c">**Do not use the field to manage a specific year. If so, use a select resource.**</font> | ||
|
||
![datetime](../../../img/componenti/advanced/datetime_img1.png "datetime") | ||
|
||
#### Datetime calendar range | ||
![datetime](../../../img/componenti/advanced/datetime_img2.png "datetime") | ||
|
||
To manage a calendar **start date ~ end date** dynamic it is necessary to insert the two date fields, set **date** or **datetime** is: | ||
- dateStart | ||
- dateEnd | ||
|
||
Then into the field **dateEnd** add the following Json logic: | ||
``` | ||
[ | ||
{ | ||
"name": "check start", | ||
"trigger": { | ||
"type": "json", | ||
"json": { | ||
"var": "form.dateStart" | ||
} | ||
}, | ||
"actions": [ | ||
{ | ||
"name": "update min", | ||
"type": "value", | ||
"value": "min={\"var\":\"form.dateStart\"}" | ||
} | ||
] | ||
} | ||
] | ||
``` | ||
|
||
[Return home](../../index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Editor | ||
It does not require additional configurations; launches a WYSIWYG editor on the form | ||
and save the HTML content. | ||
|
||
[Return home](../../index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Implement the [standard configurations](../../base.md#the-following-properties-are-managed-in-the-components). | ||
|
||
[Return home](../../index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Jsoneditor | ||
This is a textArea component with specific edit properties in json format. | ||
|
||
[Return home](../../index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Model List | ||
List of models (forms) created in the system, useful for forms that provide activities for application administrators only. | ||
Implement the [standard configurations](../../base.md#the-following-properties-are-managed-in-the-components). | ||
|
||
[Return home](../../index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Phone number | ||
Implement thestandard configurations | ||
|
||
[Return home](../../index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Print button | ||
It does not require additional configurations; if necessary use the [standard configurations](../../base.md#the-following-properties-are-managed-in-the-components). | ||
|
||
[Return home](../../index.md) |
Oops, something went wrong.