Skip to content

Commit

Permalink
schema: update some schemas for ngx-formly v6
Browse files Browse the repository at this point in the history
* Updates schema for ngx-formly 6.
* Updates advanced search config processing.
* Fixes security config for css files
* Adds a new css asset on professional template.

Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Feb 19, 2024
1 parent eba2923 commit 48b96bb
Show file tree
Hide file tree
Showing 96 changed files with 10,062 additions and 8,612 deletions.
1 change: 1 addition & 0 deletions rero_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ def _(x):
],
'style-src': [
'*',
"'self'",
"'unsafe-inline'"
],
'script-src': [
Expand Down
224 changes: 114 additions & 110 deletions rero_ils/jsonschemas/common/cantons-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,117 +30,121 @@
"zg",
"zh"
],
"form": {
"options": [
{
"label": "canton_ag",
"value": "ag"
},
{
"label": "canton_ai",
"value": "ai"
},
{
"label": "canton_ar",
"value": "ar"
},
{
"label": "canton_be",
"value": "be"
},
{
"label": "canton_bl",
"value": "bl"
},
{
"label": "canton_bs",
"value": "bs"
},
{
"label": "canton_fr",
"value": "fr"
},
{
"label": "canton_ge",
"value": "ge"
},
{
"label": "canton_gl",
"value": "gl"
},
{
"label": "canton_gr",
"value": "gr"
},
{
"label": "canton_ju",
"value": "ju"
},
{
"label": "canton_lu",
"value": "lu"
},
{
"label": "canton_ne",
"value": "ne"
},
{
"label": "canton_nw",
"value": "nw"
},
{
"label": "canton_ow",
"value": "ow"
},
{
"label": "canton_sg",
"value": "sg"
},
{
"label": "canton_sh",
"value": "sh"
},
{
"label": "canton_so",
"value": "so"
},
{
"label": "canton_sz",
"value": "sz"
},
{
"label": "canton_tg",
"value": "tg"
},
{
"label": "canton_ti",
"value": "ti"
},
{
"label": "canton_ur",
"value": "ur"
},
{
"label": "canton_vd",
"value": "vd"
},
{
"label": "canton_vs",
"value": "vs"
},
{
"label": "canton_zg",
"value": "zg"
},
{
"label": "canton_zh",
"value": "zh"
"widget": {
"formlyConfig": {
"expressions": {
"hide": "field?.parent?.model?.country !== 'sz'"
},
"props": {
"itemCssClass": "col-lg-4",
"options": [
{
"label": "canton_ag",
"value": "ag"
},
{
"label": "canton_ai",
"value": "ai"
},
{
"label": "canton_ar",
"value": "ar"
},
{
"label": "canton_be",
"value": "be"
},
{
"label": "canton_bl",
"value": "bl"
},
{
"label": "canton_bs",
"value": "bs"
},
{
"label": "canton_fr",
"value": "fr"
},
{
"label": "canton_ge",
"value": "ge"
},
{
"label": "canton_gl",
"value": "gl"
},
{
"label": "canton_gr",
"value": "gr"
},
{
"label": "canton_ju",
"value": "ju"
},
{
"label": "canton_lu",
"value": "lu"
},
{
"label": "canton_ne",
"value": "ne"
},
{
"label": "canton_nw",
"value": "nw"
},
{
"label": "canton_ow",
"value": "ow"
},
{
"label": "canton_sg",
"value": "sg"
},
{
"label": "canton_sh",
"value": "sh"
},
{
"label": "canton_so",
"value": "so"
},
{
"label": "canton_sz",
"value": "sz"
},
{
"label": "canton_tg",
"value": "tg"
},
{
"label": "canton_ti",
"value": "ti"
},
{
"label": "canton_ur",
"value": "ur"
},
{
"label": "canton_vd",
"value": "vd"
},
{
"label": "canton_vs",
"value": "vs"
},
{
"label": "canton_zg",
"value": "zg"
},
{
"label": "canton_zh",
"value": "zh"
}
]
}
],
"templateOptions": {
"itemCssClass": "col-lg-4"
},
"hideExpression": "field?.parent?.model && field.parent.model.country !== 'sz'"
}
}
}
}
Loading

0 comments on commit 48b96bb

Please sign in to comment.