@openeuropa/bcl-project-status 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/project-status.html.twig +24 -5
package/package.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-project-status",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.20.0",
|
|
6
6
|
"description": "OE - BCL project status",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-badge": "^0.
|
|
12
|
-
"@openeuropa/bcl-progress": "^0.
|
|
11
|
+
"@openeuropa/bcl-badge": "^0.20.0",
|
|
12
|
+
"@openeuropa/bcl-progress": "^0.20.0"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"design-system",
|
|
26
26
|
"twig"
|
|
27
27
|
],
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "ea13560489a089d0c198f781e75951a9160d2554"
|
|
29
29
|
}
|
package/project-status.html.twig
CHANGED
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
- label (string) (default: '')
|
|
13
13
|
- badge (string) (default: ''),
|
|
14
14
|
- progress (string) (default: '')
|
|
15
|
+
- corporate_contribution (string) (default: '') // value every 5 percent
|
|
16
|
+
- chart_legend (object) (default: {})
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
Blocks - chart
|
|
17
19
|
#}
|
|
18
20
|
|
|
19
21
|
{% set _title_id = title_id|default('') %}
|
|
@@ -28,6 +30,8 @@
|
|
|
28
30
|
{% set _start_label = start_label|default('') %}
|
|
29
31
|
{% set _end_label = end_label|default('') %}
|
|
30
32
|
{% set _progress = progress|default('') %}
|
|
33
|
+
{% set _corporate_contribution = corporate_contribution|default('') %}
|
|
34
|
+
{% set _chart_legend = chart_legend|default({}) %}
|
|
31
35
|
|
|
32
36
|
{% set _bgs = {
|
|
33
37
|
ongoing: 'info',
|
|
@@ -99,11 +103,26 @@
|
|
|
99
103
|
</div>
|
|
100
104
|
</div>
|
|
101
105
|
</div>
|
|
102
|
-
|
|
103
|
-
{% if _charts is not empty %}
|
|
106
|
+
{% if _corporate_contribution is not empty and _chart_legend is not empty %}
|
|
104
107
|
<div class="border-bottom pb-4 mb-4">
|
|
105
|
-
{
|
|
108
|
+
{% block chart %}
|
|
109
|
+
<div class="row">
|
|
110
|
+
<div class="col-5 col-md-3">
|
|
111
|
+
<div class="circular-progress" data-percentage="{{ _corporate_contribution }}">
|
|
112
|
+
<span class="circular-progress-left">
|
|
113
|
+
<span class="circular-progress-bar"></span>
|
|
114
|
+
</span>
|
|
115
|
+
<span class="circular-progress-right">
|
|
116
|
+
<span class="circular-progress-bar"></span>
|
|
117
|
+
</span>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="col-7 col-md-9 align-self-center">
|
|
121
|
+
{% include '@oe-bcl/bcl-description-list/description-list.html.twig' with _chart_legend only %}
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
{% endblock %}
|
|
106
125
|
</div>
|
|
107
|
-
{% endif %}
|
|
126
|
+
{% endif %}
|
|
108
127
|
|
|
109
128
|
{% endspaceless %}
|