@openeuropa/bcl-project-status 0.28.1 → 1.0.2
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
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-project-status",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "1.0.2",
|
|
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-heading": "^0.
|
|
13
|
-
"@openeuropa/bcl-progress": "^0.
|
|
11
|
+
"@openeuropa/bcl-badge": "^1.0.2",
|
|
12
|
+
"@openeuropa/bcl-heading": "^1.0.2",
|
|
13
|
+
"@openeuropa/bcl-progress": "^1.0.2"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"design-system",
|
|
27
27
|
"twig"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "54df3dccb26d9f6958862f06103766a0a2d78ca6"
|
|
30
30
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
4
|
- corporate_contributions (string) (default: '') // value every 5 percent
|
|
5
|
-
- legend (description list object) (default:
|
|
5
|
+
- legend (description list object) (default: {})
|
|
6
6
|
- chart (boolean) (default: false)
|
|
7
7
|
|
|
8
8
|
Blocks -
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
{% set _corporate_contributions = corporate_contributions|default('') %}
|
|
14
14
|
{% set _legend = legend|default({}) %}
|
|
15
|
-
{% set _chart = chart
|
|
15
|
+
{% set _chart = chart ?? false %}
|
|
16
16
|
|
|
17
17
|
{% if attributes is empty %}
|
|
18
18
|
{% set attributes = create_attribute() %}
|
package/project-status.html.twig
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
{% apply spaceless %}
|
|
2
2
|
|
|
3
3
|
{# Parameters:
|
|
4
|
+
- label (string) (default: '')
|
|
4
5
|
- status (string) (default: 'planned')
|
|
6
|
+
- badge (string) (default: '')
|
|
5
7
|
- start_date (string) (default: '')
|
|
6
8
|
- start_label (string) (default: '')
|
|
7
9
|
- end_date (string) (default: '')
|
|
8
10
|
- end_label (string) (default: '')
|
|
9
|
-
- label (string) (default: '')
|
|
10
|
-
- badge (string) (default: ''),
|
|
11
11
|
- progress (string) (default: '')
|
|
12
12
|
- attributes (drupal attrs)
|
|
13
13
|
#}
|
|
14
14
|
|
|
15
15
|
{% set _label = label|default('') %}
|
|
16
16
|
{% set _status = status|default('planned') %}
|
|
17
|
-
{% set _charts = charts|default('') %}
|
|
18
17
|
{% set _badge = badge|default('') %}
|
|
19
18
|
{% set _start_date = start_date|default('') %}
|
|
20
|
-
{% set _end_date = end_date|default('') %}
|
|
21
19
|
{% set _start_label = start_label|default('') %}
|
|
20
|
+
{% set _end_date = end_date|default('') %}
|
|
22
21
|
{% set _end_label = end_label|default('') %}
|
|
23
22
|
{% set _progress = progress|default('') %}
|
|
24
23
|
|