Skip to content

Commit 11a6c67

Browse files
committed
data model: adapt JONSchemas to angular 17
Co-Authored-by: Johnny Mariéthoz <[email protected]>
1 parent b3bbe03 commit 11a6c67

File tree

19 files changed

+4900
-4143
lines changed

19 files changed

+4900
-4143
lines changed

sonar/common/jsonschemas/classification-v1.0.0.json

+319-317
Large diffs are not rendered by default.

sonar/common/jsonschemas/identifiedby-v1.0.0.json

+21-15
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,33 @@
1111
"bf:Identifier",
1212
"bf:Local"
1313
],
14-
"form": {
15-
"options": [
16-
{
17-
"label": "bf:Identifier",
18-
"value": "bf:Identifier"
19-
},
20-
{
21-
"label": "bf:Local",
22-
"value": "bf:Local"
14+
"widget": {
15+
"formlyConfig": {
16+
"props": {
17+
"options": [
18+
{
19+
"label": "bf:Identifier",
20+
"value": "bf:Identifier"
21+
},
22+
{
23+
"label": "bf:Local",
24+
"value": "bf:Local"
25+
}
26+
]
2327
}
24-
]
28+
}
2529
}
2630
},
2731
"source": {
2832
"title": "Source",
2933
"type": "string",
3034
"minLength": 1,
31-
"form": {
32-
"hideExpression": "!model || model.type !== 'bf:Local'",
33-
"expressionProperties": {
34-
"templateOptions.required": "model && model.type === 'bf:Local'"
35+
"widget": {
36+
"formlyConfig": {
37+
"expressions": {
38+
"props.required": "model && model.type === 'bf:Local'",
39+
"hide": "!model || model.type !== 'bf:Local'"
40+
}
3541
}
3642
}
3743
},
@@ -50,4 +56,4 @@
5056
"type",
5157
"value"
5258
]
53-
}
59+
}

sonar/common/jsonschemas/interface_language-v1.0.0.json

+24-22
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,29 @@
77
"fre",
88
"ita"
99
],
10-
"form": {
11-
"templateOptions": {
12-
"sort": true
13-
},
14-
"options": [
15-
{
16-
"label": "lang_ger",
17-
"value": "ger"
18-
},
19-
{
20-
"label": "lang_eng",
21-
"value": "eng"
22-
},
23-
{
24-
"label": "lang_fre",
25-
"value": "fre"
26-
},
27-
{
28-
"label": "lang_ita",
29-
"value": "ita"
10+
"widget": {
11+
"formlyConfig": {
12+
"props": {
13+
"sort": true,
14+
"options": [
15+
{
16+
"label": "lang_ger",
17+
"value": "ger"
18+
},
19+
{
20+
"label": "lang_eng",
21+
"value": "eng"
22+
},
23+
{
24+
"label": "lang_fre",
25+
"value": "fre"
26+
},
27+
{
28+
"label": "lang_ita",
29+
"value": "ita"
30+
}
31+
]
3032
}
31-
]
33+
}
3234
}
33-
}
35+
}

0 commit comments

Comments
 (0)