@openeuropa/bcl-twig-templates 1.10.1 → 1.10.3
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,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-twig-templates",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.3",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -11,69 +11,69 @@
|
|
|
11
11
|
"hoistingLimits": "workspaces"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@openeuropa/bcl-accordion": "^1.10.
|
|
15
|
-
"@openeuropa/bcl-alert": "^1.10.
|
|
16
|
-
"@openeuropa/bcl-badge": "^1.10.
|
|
17
|
-
"@openeuropa/bcl-banner": "^1.10.
|
|
18
|
-
"@openeuropa/bcl-base-templates": "^1.10.
|
|
19
|
-
"@openeuropa/bcl-blockquote": "^1.10.
|
|
20
|
-
"@openeuropa/bcl-breadcrumb": "^1.10.
|
|
21
|
-
"@openeuropa/bcl-button": "^1.10.
|
|
22
|
-
"@openeuropa/bcl-button-group": "^1.10.
|
|
23
|
-
"@openeuropa/bcl-card": "^1.10.
|
|
24
|
-
"@openeuropa/bcl-card-layout": "^1.10.
|
|
25
|
-
"@openeuropa/bcl-carousel": "^1.10.
|
|
26
|
-
"@openeuropa/bcl-contact-form": "^1.10.
|
|
27
|
-
"@openeuropa/bcl-content-banner": "^1.10.
|
|
28
|
-
"@openeuropa/bcl-date-block": "^1.10.
|
|
29
|
-
"@openeuropa/bcl-description-list": "^1.10.
|
|
30
|
-
"@openeuropa/bcl-dropdown": "^1.10.
|
|
31
|
-
"@openeuropa/bcl-event": "^1.10.
|
|
32
|
-
"@openeuropa/bcl-fact-figures": "^1.10.
|
|
33
|
-
"@openeuropa/bcl-featured-media": "^1.10.
|
|
34
|
-
"@openeuropa/bcl-file": "^1.10.
|
|
35
|
-
"@openeuropa/bcl-footer": "^1.10.
|
|
36
|
-
"@openeuropa/bcl-form": "^1.10.
|
|
37
|
-
"@openeuropa/bcl-form-input": "^1.10.
|
|
38
|
-
"@openeuropa/bcl-gallery": "^1.10.
|
|
39
|
-
"@openeuropa/bcl-glossary": "^1.10.
|
|
40
|
-
"@openeuropa/bcl-group": "^1.10.
|
|
41
|
-
"@openeuropa/bcl-header": "^1.10.
|
|
42
|
-
"@openeuropa/bcl-heading": "^1.10.
|
|
43
|
-
"@openeuropa/bcl-icon": "^1.10.
|
|
44
|
-
"@openeuropa/bcl-inpage-navigation": "^1.10.
|
|
45
|
-
"@openeuropa/bcl-landing-page": "^1.10.
|
|
46
|
-
"@openeuropa/bcl-language-list": "^1.10.
|
|
47
|
-
"@openeuropa/bcl-language-switcher": "^1.10.
|
|
48
|
-
"@openeuropa/bcl-link": "^1.10.
|
|
49
|
-
"@openeuropa/bcl-links-block": "^1.10.
|
|
50
|
-
"@openeuropa/bcl-list-group": "^1.10.
|
|
51
|
-
"@openeuropa/bcl-listing": "^1.10.
|
|
52
|
-
"@openeuropa/bcl-modal": "^1.10.
|
|
53
|
-
"@openeuropa/bcl-multilingual": "^1.10.
|
|
54
|
-
"@openeuropa/bcl-navbar": "^1.10.
|
|
55
|
-
"@openeuropa/bcl-navigation": "^1.10.
|
|
56
|
-
"@openeuropa/bcl-news": "^1.10.
|
|
57
|
-
"@openeuropa/bcl-offcanvas": "^1.10.
|
|
58
|
-
"@openeuropa/bcl-page": "^1.10.
|
|
59
|
-
"@openeuropa/bcl-pagination": "^1.10.
|
|
60
|
-
"@openeuropa/bcl-person": "^1.10.
|
|
61
|
-
"@openeuropa/bcl-placeholder": "^1.10.
|
|
62
|
-
"@openeuropa/bcl-progress": "^1.10.
|
|
63
|
-
"@openeuropa/bcl-project": "^1.10.
|
|
64
|
-
"@openeuropa/bcl-project-status": "^1.10.
|
|
65
|
-
"@openeuropa/bcl-recent-activities": "^1.10.
|
|
66
|
-
"@openeuropa/bcl-search": "^1.10.
|
|
67
|
-
"@openeuropa/bcl-search-form": "^1.10.
|
|
68
|
-
"@openeuropa/bcl-select": "^1.10.
|
|
69
|
-
"@openeuropa/bcl-spinner": "^1.10.
|
|
70
|
-
"@openeuropa/bcl-subscription": "^1.10.
|
|
71
|
-
"@openeuropa/bcl-subscription-block": "^1.10.
|
|
72
|
-
"@openeuropa/bcl-table": "^1.10.
|
|
73
|
-
"@openeuropa/bcl-textarea": "^1.10.
|
|
74
|
-
"@openeuropa/bcl-timeline": "^1.10.
|
|
75
|
-
"@openeuropa/bcl-toast": "^1.10.
|
|
76
|
-
"@openeuropa/bcl-user": "^1.10.
|
|
14
|
+
"@openeuropa/bcl-accordion": "^1.10.3",
|
|
15
|
+
"@openeuropa/bcl-alert": "^1.10.3",
|
|
16
|
+
"@openeuropa/bcl-badge": "^1.10.3",
|
|
17
|
+
"@openeuropa/bcl-banner": "^1.10.3",
|
|
18
|
+
"@openeuropa/bcl-base-templates": "^1.10.3",
|
|
19
|
+
"@openeuropa/bcl-blockquote": "^1.10.3",
|
|
20
|
+
"@openeuropa/bcl-breadcrumb": "^1.10.3",
|
|
21
|
+
"@openeuropa/bcl-button": "^1.10.3",
|
|
22
|
+
"@openeuropa/bcl-button-group": "^1.10.3",
|
|
23
|
+
"@openeuropa/bcl-card": "^1.10.3",
|
|
24
|
+
"@openeuropa/bcl-card-layout": "^1.10.3",
|
|
25
|
+
"@openeuropa/bcl-carousel": "^1.10.3",
|
|
26
|
+
"@openeuropa/bcl-contact-form": "^1.10.3",
|
|
27
|
+
"@openeuropa/bcl-content-banner": "^1.10.3",
|
|
28
|
+
"@openeuropa/bcl-date-block": "^1.10.3",
|
|
29
|
+
"@openeuropa/bcl-description-list": "^1.10.3",
|
|
30
|
+
"@openeuropa/bcl-dropdown": "^1.10.3",
|
|
31
|
+
"@openeuropa/bcl-event": "^1.10.3",
|
|
32
|
+
"@openeuropa/bcl-fact-figures": "^1.10.3",
|
|
33
|
+
"@openeuropa/bcl-featured-media": "^1.10.3",
|
|
34
|
+
"@openeuropa/bcl-file": "^1.10.3",
|
|
35
|
+
"@openeuropa/bcl-footer": "^1.10.3",
|
|
36
|
+
"@openeuropa/bcl-form": "^1.10.3",
|
|
37
|
+
"@openeuropa/bcl-form-input": "^1.10.3",
|
|
38
|
+
"@openeuropa/bcl-gallery": "^1.10.3",
|
|
39
|
+
"@openeuropa/bcl-glossary": "^1.10.3",
|
|
40
|
+
"@openeuropa/bcl-group": "^1.10.3",
|
|
41
|
+
"@openeuropa/bcl-header": "^1.10.3",
|
|
42
|
+
"@openeuropa/bcl-heading": "^1.10.3",
|
|
43
|
+
"@openeuropa/bcl-icon": "^1.10.3",
|
|
44
|
+
"@openeuropa/bcl-inpage-navigation": "^1.10.3",
|
|
45
|
+
"@openeuropa/bcl-landing-page": "^1.10.3",
|
|
46
|
+
"@openeuropa/bcl-language-list": "^1.10.3",
|
|
47
|
+
"@openeuropa/bcl-language-switcher": "^1.10.3",
|
|
48
|
+
"@openeuropa/bcl-link": "^1.10.3",
|
|
49
|
+
"@openeuropa/bcl-links-block": "^1.10.3",
|
|
50
|
+
"@openeuropa/bcl-list-group": "^1.10.3",
|
|
51
|
+
"@openeuropa/bcl-listing": "^1.10.3",
|
|
52
|
+
"@openeuropa/bcl-modal": "^1.10.3",
|
|
53
|
+
"@openeuropa/bcl-multilingual": "^1.10.3",
|
|
54
|
+
"@openeuropa/bcl-navbar": "^1.10.3",
|
|
55
|
+
"@openeuropa/bcl-navigation": "^1.10.3",
|
|
56
|
+
"@openeuropa/bcl-news": "^1.10.3",
|
|
57
|
+
"@openeuropa/bcl-offcanvas": "^1.10.3",
|
|
58
|
+
"@openeuropa/bcl-page": "^1.10.3",
|
|
59
|
+
"@openeuropa/bcl-pagination": "^1.10.3",
|
|
60
|
+
"@openeuropa/bcl-person": "^1.10.3",
|
|
61
|
+
"@openeuropa/bcl-placeholder": "^1.10.3",
|
|
62
|
+
"@openeuropa/bcl-progress": "^1.10.3",
|
|
63
|
+
"@openeuropa/bcl-project": "^1.10.3",
|
|
64
|
+
"@openeuropa/bcl-project-status": "^1.10.3",
|
|
65
|
+
"@openeuropa/bcl-recent-activities": "^1.10.3",
|
|
66
|
+
"@openeuropa/bcl-search": "^1.10.3",
|
|
67
|
+
"@openeuropa/bcl-search-form": "^1.10.3",
|
|
68
|
+
"@openeuropa/bcl-select": "^1.10.3",
|
|
69
|
+
"@openeuropa/bcl-spinner": "^1.10.3",
|
|
70
|
+
"@openeuropa/bcl-subscription": "^1.10.3",
|
|
71
|
+
"@openeuropa/bcl-subscription-block": "^1.10.3",
|
|
72
|
+
"@openeuropa/bcl-table": "^1.10.3",
|
|
73
|
+
"@openeuropa/bcl-textarea": "^1.10.3",
|
|
74
|
+
"@openeuropa/bcl-timeline": "^1.10.3",
|
|
75
|
+
"@openeuropa/bcl-toast": "^1.10.3",
|
|
76
|
+
"@openeuropa/bcl-user": "^1.10.3",
|
|
77
77
|
"copyfiles": "2.4.1",
|
|
78
78
|
"rimraf": "6.0.1"
|
|
79
79
|
},
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"design-system",
|
|
97
97
|
"twig"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "b8331832899a57361f44b8a5e3a6c82d0218532f"
|
|
100
100
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
- end_day (integer) (default: '')
|
|
10
10
|
- end_month (string) (default: '')
|
|
11
11
|
- end_year (integer) (default: '')
|
|
12
|
+
- icon_path (string) (default: '')
|
|
12
13
|
#}
|
|
13
14
|
|
|
14
15
|
{% set _day = day|default('') %}
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
{% set _end_day = end_day|default('') %}
|
|
19
20
|
{% set _end_month = end_month|default('') %}
|
|
20
21
|
{% set _end_year = end_year|default('') %}
|
|
22
|
+
{% set _icon_path = icon_path|default('') %}
|
|
21
23
|
|
|
22
24
|
{% set _classes = [
|
|
23
25
|
'bcl-date-block',
|
|
@@ -42,23 +44,37 @@
|
|
|
42
44
|
{% endif %}
|
|
43
45
|
|
|
44
46
|
<time {{ attributes }}>
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
{{-
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
<div class="d-flex flex-column pt-2">
|
|
48
|
+
<div class="d-flex align-item-center bg-white border border-bottom-0 w-100 h-100 text-uppercase justify-content-center gap-2">
|
|
49
|
+
<div class="d-flex flex-column align-item-center justify-content-center">
|
|
50
|
+
<div class="date-month lh-1">{{- _month -}}</div>
|
|
51
|
+
<div class="date-day fw-bold fs-4 lh-1">{{- _day -}}</div>
|
|
52
|
+
</div>
|
|
53
|
+
{% if _end_day or _end_month %}
|
|
54
|
+
<div class="d-flex flex-column align-item-center justify-content-center">
|
|
55
|
+
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
56
|
+
name: "chevron-right",
|
|
57
|
+
size: "xs",
|
|
58
|
+
path: _icon_path,
|
|
59
|
+
} only -%}
|
|
60
|
+
</div>
|
|
61
|
+
<div class="d-flex flex-column align-item-center justify-content-center">
|
|
62
|
+
{%- if _end_month is not empty %}
|
|
63
|
+
<div class="date-month lh-1">{{- _end_month -}}</div>
|
|
64
|
+
{% endif -%}
|
|
65
|
+
{%- if _end_day is not empty %}
|
|
66
|
+
<div class="date-day fw-bold fs-4 lh-1">{{- _end_day -}}</div>
|
|
67
|
+
{% endif -%}
|
|
68
|
+
</div>
|
|
69
|
+
{% endif %}
|
|
70
|
+
</div>
|
|
71
|
+
<div class="bg-lighter border w-100 rounded-bottom py-1 d-flex gap-4 justify-content-center">
|
|
72
|
+
<div class="date-year year-start">{{- _year -}}</div>
|
|
57
73
|
{%- if _end_year is not empty -%}
|
|
58
|
-
|
|
74
|
+
<div class="date-year year-end">{{ _end_year }}</div>
|
|
59
75
|
{%- endif -%}
|
|
60
|
-
</
|
|
61
|
-
</
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
62
78
|
</time>
|
|
63
79
|
|
|
64
80
|
{% endapply %}
|
|
@@ -29,8 +29,13 @@ Parameters:
|
|
|
29
29
|
{% endif %}
|
|
30
30
|
|
|
31
31
|
{% set attributes = attributes.addClass(['bcl-inpage-navigation', 'position-sticky']).setAttribute('id', _id) %}
|
|
32
|
-
|
|
33
|
-
{%
|
|
32
|
+
|
|
33
|
+
{% if not attributes.hasAttribute('aria-label') and not attributes.hasAttribute('aria-labelledby') %}
|
|
34
|
+
{% set attributes = attributes.setAttribute('aria-labelledby', _dropdown_id) %}
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
37
|
+
{% set title_attributes = _title_attributes.addClass(['mb-0', 'd-none', 'd-md-block']) %}
|
|
38
|
+
{% set _button_content %}
|
|
34
39
|
{{ _title }}
|
|
35
40
|
{%- include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
36
41
|
name: 'chevron-down',
|
|
@@ -45,21 +50,25 @@ Parameters:
|
|
|
45
50
|
{% set _classes = _classes|merge(['dynamic-active']) %}
|
|
46
51
|
{% endif %}
|
|
47
52
|
|
|
48
|
-
<nav
|
|
53
|
+
<nav{{ attributes.addClass(_classes) }}>
|
|
49
54
|
{% set trigger_attributes = create_attribute()
|
|
50
55
|
.setAttribute('aria-expanded', 'false')
|
|
51
56
|
.setAttribute('type', 'button')
|
|
52
57
|
.setAttribute('id', _dropdown_id)
|
|
53
58
|
.setAttribute('data-bs-toggle', 'dropdown')
|
|
54
|
-
.addClass(['dropdown-toggle']) %}
|
|
59
|
+
.addClass(['dropdown-toggle', 'h2', 'd-md-none']) %}
|
|
60
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
61
|
+
label: _button_content,
|
|
62
|
+
clean_class: true,
|
|
63
|
+
attributes: trigger_attributes,
|
|
64
|
+
} only %}
|
|
55
65
|
{% include '@oe-bcl/bcl-heading/heading.html.twig' with {
|
|
56
|
-
title:
|
|
66
|
+
title: _title,
|
|
57
67
|
title_tag: _title_tag,
|
|
58
68
|
title_link: _title_link,
|
|
59
|
-
attributes: _title_attributes
|
|
60
|
-
.merge(trigger_attributes),
|
|
69
|
+
attributes: _title_attributes,
|
|
61
70
|
} only %}
|
|
62
|
-
<div class="dropdown-menu"
|
|
71
|
+
<div class="dropdown-menu">
|
|
63
72
|
{% include '@oe-bcl/bcl-navigation/navigation.html.twig' with {
|
|
64
73
|
'pills': true,
|
|
65
74
|
'vertical': true,
|