@openeuropa/bcl-twig-templates 0.4185.202512021245 → 0.4230.202512021730
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 +67 -67
- package/templates/bcl-accordion/accordion.html.twig +0 -3
- package/templates/bcl-alert/alert.html.twig +0 -3
- package/templates/bcl-badge/badge.html.twig +0 -3
- package/templates/bcl-banner/banner.html.twig +0 -3
- package/templates/bcl-base-templates/content-type.html.twig +0 -3
- package/templates/bcl-blockquote/blockquote.html.twig +0 -3
- package/templates/bcl-breadcrumb/breadcrumb.html.twig +0 -3
- package/templates/bcl-button/button.html.twig +0 -3
- package/templates/bcl-button-group/button-group.html.twig +0 -3
- package/templates/bcl-card/card.html.twig +0 -3
- package/templates/bcl-card-layout/card-layout.html.twig +0 -3
- package/templates/bcl-carousel/carousel.html.twig +0 -3
- package/templates/bcl-content-banner/content-banner.html.twig +0 -3
- package/templates/bcl-date-block/date-block.html.twig +0 -3
- package/templates/bcl-description-list/description-list-details.html.twig +0 -3
- package/templates/bcl-description-list/description-list-title.html.twig +0 -3
- package/templates/bcl-description-list/description-list.html.twig +0 -3
- package/templates/bcl-dropdown/dropdown.html.twig +0 -3
- package/templates/bcl-fact-figures/fact-figures.html.twig +0 -3
- package/templates/bcl-featured-media/featured-media.html.twig +0 -3
- package/templates/bcl-file/file-translations.html.twig +0 -3
- package/templates/bcl-file/file.html.twig +0 -3
- package/templates/bcl-footer/footer.html.twig +0 -3
- package/templates/bcl-form/form.html.twig +0 -3
- package/templates/bcl-form-input/form-input.html.twig +0 -3
- package/templates/bcl-gallery/gallery-item.html.twig +0 -3
- package/templates/bcl-gallery/gallery.html.twig +0 -3
- package/templates/bcl-header/header.html.twig +50 -46
- package/templates/bcl-heading/heading.html.twig +0 -3
- package/templates/bcl-icon/icon.html.twig +0 -3
- package/templates/bcl-inpage-navigation/inpage-navigation.html.twig +0 -3
- package/templates/bcl-language-list/language-list-grid.html.twig +0 -3
- package/templates/bcl-language-list/language-list.html.twig +0 -3
- package/templates/bcl-language-switcher/language-switcher.html.twig +0 -3
- package/templates/bcl-link/link.html.twig +0 -3
- package/templates/bcl-links-block/links-block.html.twig +0 -3
- package/templates/bcl-list-group/list-group.html.twig +0 -3
- package/templates/bcl-listing/listing.html.twig +0 -3
- package/templates/bcl-mega-menu/mega-menu-items.html.twig +0 -3
- package/templates/bcl-mega-menu/mega-menu-submenu.html.twig +6 -12
- package/templates/bcl-mega-menu/mega-menu.html.twig +0 -3
- package/templates/bcl-modal/modal.html.twig +0 -3
- package/templates/bcl-navbar/navbar.html.twig +0 -3
- package/templates/bcl-navigation/navigation.html.twig +1 -6
- package/templates/bcl-offcanvas/offcanvas.html.twig +0 -3
- package/templates/bcl-pagination/pagination-item.html.twig +0 -3
- package/templates/bcl-pagination/pagination.html.twig +0 -3
- package/templates/bcl-pagination-v2/pagination-item.html.twig +0 -3
- package/templates/bcl-pagination-v2/pagination.html.twig +0 -3
- package/templates/bcl-placeholder/placeholder.html.twig +0 -3
- package/templates/bcl-progress/progress.html.twig +0 -3
- package/templates/bcl-project/project-lists.html.twig +0 -4
- package/templates/bcl-project-status/project-contributions.html.twig +0 -3
- package/templates/bcl-project-status/project-status.html.twig +0 -3
- package/templates/bcl-recent-activities/recent-activities.html.twig +0 -3
- package/templates/bcl-search-form/search-form.html.twig +0 -3
- package/templates/bcl-select/select.html.twig +0 -3
- package/templates/bcl-spinner/spinner.html.twig +0 -3
- package/templates/bcl-subscription-block/subscription-block.html.twig +0 -3
- package/templates/bcl-table/table.html.twig +0 -3
- package/templates/bcl-textarea/textarea.html.twig +0 -3
- package/templates/bcl-timeline/timeline-item.html.twig +0 -3
- package/templates/bcl-timeline/timeline.html.twig +0 -3
- package/templates/bcl-toasts/toasts.html.twig +0 -3
- package/templates/bcl-user/user-compact.html.twig +0 -3
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": "0.
|
|
5
|
+
"version": "0.4230.202512021730",
|
|
6
6
|
"description": "OE Bcl Twig Templates",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -11,71 +11,71 @@
|
|
|
11
11
|
"hoistingLimits": "workspaces"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@openeuropa/bcl-accordion": "^0.
|
|
15
|
-
"@openeuropa/bcl-alert": "^0.
|
|
16
|
-
"@openeuropa/bcl-badge": "^0.
|
|
17
|
-
"@openeuropa/bcl-banner": "^0.
|
|
18
|
-
"@openeuropa/bcl-base-templates": "^0.
|
|
19
|
-
"@openeuropa/bcl-blockquote": "^0.
|
|
20
|
-
"@openeuropa/bcl-breadcrumb": "^0.
|
|
21
|
-
"@openeuropa/bcl-button": "^0.
|
|
22
|
-
"@openeuropa/bcl-button-group": "^0.
|
|
23
|
-
"@openeuropa/bcl-card": "^0.
|
|
24
|
-
"@openeuropa/bcl-card-layout": "^0.
|
|
25
|
-
"@openeuropa/bcl-carousel": "^0.
|
|
26
|
-
"@openeuropa/bcl-contact-form": "^0.
|
|
27
|
-
"@openeuropa/bcl-content-banner": "^0.
|
|
28
|
-
"@openeuropa/bcl-date-block": "^0.
|
|
29
|
-
"@openeuropa/bcl-description-list": "^0.
|
|
30
|
-
"@openeuropa/bcl-dropdown": "^0.
|
|
31
|
-
"@openeuropa/bcl-event": "^0.
|
|
32
|
-
"@openeuropa/bcl-fact-figures": "^0.
|
|
33
|
-
"@openeuropa/bcl-featured-media": "^0.
|
|
34
|
-
"@openeuropa/bcl-file": "^0.
|
|
35
|
-
"@openeuropa/bcl-footer": "^0.
|
|
36
|
-
"@openeuropa/bcl-form": "^0.
|
|
37
|
-
"@openeuropa/bcl-form-input": "^0.
|
|
38
|
-
"@openeuropa/bcl-gallery": "^0.
|
|
39
|
-
"@openeuropa/bcl-glossary": "^0.
|
|
40
|
-
"@openeuropa/bcl-group": "^0.
|
|
41
|
-
"@openeuropa/bcl-header": "^0.
|
|
42
|
-
"@openeuropa/bcl-heading": "^0.
|
|
43
|
-
"@openeuropa/bcl-icon": "^0.
|
|
44
|
-
"@openeuropa/bcl-inpage-navigation": "^0.
|
|
45
|
-
"@openeuropa/bcl-landing-page": "^0.
|
|
46
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
47
|
-
"@openeuropa/bcl-language-switcher": "^0.
|
|
48
|
-
"@openeuropa/bcl-link": "^0.
|
|
49
|
-
"@openeuropa/bcl-links-block": "^0.
|
|
50
|
-
"@openeuropa/bcl-list-group": "^0.
|
|
51
|
-
"@openeuropa/bcl-listing": "^0.
|
|
52
|
-
"@openeuropa/bcl-mega-menu": "^0.
|
|
53
|
-
"@openeuropa/bcl-modal": "^0.
|
|
54
|
-
"@openeuropa/bcl-multilingual": "^0.
|
|
55
|
-
"@openeuropa/bcl-navbar": "^0.
|
|
56
|
-
"@openeuropa/bcl-navigation": "^0.
|
|
57
|
-
"@openeuropa/bcl-news": "^0.
|
|
58
|
-
"@openeuropa/bcl-offcanvas": "^0.
|
|
59
|
-
"@openeuropa/bcl-page": "^0.
|
|
60
|
-
"@openeuropa/bcl-pagination": "^0.
|
|
61
|
-
"@openeuropa/bcl-pagination-v2": "^0.
|
|
62
|
-
"@openeuropa/bcl-person": "^0.
|
|
63
|
-
"@openeuropa/bcl-placeholder": "^0.
|
|
64
|
-
"@openeuropa/bcl-progress": "^0.
|
|
65
|
-
"@openeuropa/bcl-project": "^0.
|
|
66
|
-
"@openeuropa/bcl-project-status": "^0.
|
|
67
|
-
"@openeuropa/bcl-recent-activities": "^0.
|
|
68
|
-
"@openeuropa/bcl-search": "^0.
|
|
69
|
-
"@openeuropa/bcl-search-form": "^0.
|
|
70
|
-
"@openeuropa/bcl-select": "^0.
|
|
71
|
-
"@openeuropa/bcl-spinner": "^0.
|
|
72
|
-
"@openeuropa/bcl-subscription": "^0.
|
|
73
|
-
"@openeuropa/bcl-subscription-block": "^0.
|
|
74
|
-
"@openeuropa/bcl-table": "^0.
|
|
75
|
-
"@openeuropa/bcl-textarea": "^0.
|
|
76
|
-
"@openeuropa/bcl-timeline": "^0.
|
|
77
|
-
"@openeuropa/bcl-toasts": "^0.
|
|
78
|
-
"@openeuropa/bcl-user": "^0.
|
|
14
|
+
"@openeuropa/bcl-accordion": "^0.4230.202512021730",
|
|
15
|
+
"@openeuropa/bcl-alert": "^0.4230.202512021730",
|
|
16
|
+
"@openeuropa/bcl-badge": "^0.4230.202512021730",
|
|
17
|
+
"@openeuropa/bcl-banner": "^0.4230.202512021730",
|
|
18
|
+
"@openeuropa/bcl-base-templates": "^0.4230.202512021730",
|
|
19
|
+
"@openeuropa/bcl-blockquote": "^0.4230.202512021730",
|
|
20
|
+
"@openeuropa/bcl-breadcrumb": "^0.4230.202512021730",
|
|
21
|
+
"@openeuropa/bcl-button": "^0.4230.202512021730",
|
|
22
|
+
"@openeuropa/bcl-button-group": "^0.4230.202512021730",
|
|
23
|
+
"@openeuropa/bcl-card": "^0.4230.202512021730",
|
|
24
|
+
"@openeuropa/bcl-card-layout": "^0.4230.202512021730",
|
|
25
|
+
"@openeuropa/bcl-carousel": "^0.4230.202512021730",
|
|
26
|
+
"@openeuropa/bcl-contact-form": "^0.4230.202512021730",
|
|
27
|
+
"@openeuropa/bcl-content-banner": "^0.4230.202512021730",
|
|
28
|
+
"@openeuropa/bcl-date-block": "^0.4230.202512021730",
|
|
29
|
+
"@openeuropa/bcl-description-list": "^0.4230.202512021730",
|
|
30
|
+
"@openeuropa/bcl-dropdown": "^0.4230.202512021730",
|
|
31
|
+
"@openeuropa/bcl-event": "^0.4230.202512021730",
|
|
32
|
+
"@openeuropa/bcl-fact-figures": "^0.4230.202512021730",
|
|
33
|
+
"@openeuropa/bcl-featured-media": "^0.4230.202512021730",
|
|
34
|
+
"@openeuropa/bcl-file": "^0.4230.202512021730",
|
|
35
|
+
"@openeuropa/bcl-footer": "^0.4230.202512021730",
|
|
36
|
+
"@openeuropa/bcl-form": "^0.4230.202512021730",
|
|
37
|
+
"@openeuropa/bcl-form-input": "^0.4230.202512021730",
|
|
38
|
+
"@openeuropa/bcl-gallery": "^0.4230.202512021730",
|
|
39
|
+
"@openeuropa/bcl-glossary": "^0.4230.202512021730",
|
|
40
|
+
"@openeuropa/bcl-group": "^0.4230.202512021730",
|
|
41
|
+
"@openeuropa/bcl-header": "^0.4230.202512021730",
|
|
42
|
+
"@openeuropa/bcl-heading": "^0.4230.202512021730",
|
|
43
|
+
"@openeuropa/bcl-icon": "^0.4230.202512021730",
|
|
44
|
+
"@openeuropa/bcl-inpage-navigation": "^0.4230.202512021730",
|
|
45
|
+
"@openeuropa/bcl-landing-page": "^0.4230.202512021730",
|
|
46
|
+
"@openeuropa/bcl-language-list": "^0.4230.202512021730",
|
|
47
|
+
"@openeuropa/bcl-language-switcher": "^0.4230.202512021730",
|
|
48
|
+
"@openeuropa/bcl-link": "^0.4230.202512021730",
|
|
49
|
+
"@openeuropa/bcl-links-block": "^0.4230.202512021730",
|
|
50
|
+
"@openeuropa/bcl-list-group": "^0.4230.202512021730",
|
|
51
|
+
"@openeuropa/bcl-listing": "^0.4230.202512021730",
|
|
52
|
+
"@openeuropa/bcl-mega-menu": "^0.4230.202512021730",
|
|
53
|
+
"@openeuropa/bcl-modal": "^0.4230.202512021730",
|
|
54
|
+
"@openeuropa/bcl-multilingual": "^0.4230.202512021730",
|
|
55
|
+
"@openeuropa/bcl-navbar": "^0.4230.202512021730",
|
|
56
|
+
"@openeuropa/bcl-navigation": "^0.4230.202512021730",
|
|
57
|
+
"@openeuropa/bcl-news": "^0.4230.202512021730",
|
|
58
|
+
"@openeuropa/bcl-offcanvas": "^0.4230.202512021730",
|
|
59
|
+
"@openeuropa/bcl-page": "^0.4230.202512021730",
|
|
60
|
+
"@openeuropa/bcl-pagination": "^0.4230.202512021730",
|
|
61
|
+
"@openeuropa/bcl-pagination-v2": "^0.4230.202512021730",
|
|
62
|
+
"@openeuropa/bcl-person": "^0.4230.202512021730",
|
|
63
|
+
"@openeuropa/bcl-placeholder": "^0.4230.202512021730",
|
|
64
|
+
"@openeuropa/bcl-progress": "^0.4230.202512021730",
|
|
65
|
+
"@openeuropa/bcl-project": "^0.4230.202512021730",
|
|
66
|
+
"@openeuropa/bcl-project-status": "^0.4230.202512021730",
|
|
67
|
+
"@openeuropa/bcl-recent-activities": "^0.4230.202512021730",
|
|
68
|
+
"@openeuropa/bcl-search": "^0.4230.202512021730",
|
|
69
|
+
"@openeuropa/bcl-search-form": "^0.4230.202512021730",
|
|
70
|
+
"@openeuropa/bcl-select": "^0.4230.202512021730",
|
|
71
|
+
"@openeuropa/bcl-spinner": "^0.4230.202512021730",
|
|
72
|
+
"@openeuropa/bcl-subscription": "^0.4230.202512021730",
|
|
73
|
+
"@openeuropa/bcl-subscription-block": "^0.4230.202512021730",
|
|
74
|
+
"@openeuropa/bcl-table": "^0.4230.202512021730",
|
|
75
|
+
"@openeuropa/bcl-textarea": "^0.4230.202512021730",
|
|
76
|
+
"@openeuropa/bcl-timeline": "^0.4230.202512021730",
|
|
77
|
+
"@openeuropa/bcl-toasts": "^0.4230.202512021730",
|
|
78
|
+
"@openeuropa/bcl-user": "^0.4230.202512021730",
|
|
79
79
|
"copyfiles": "2.4.1",
|
|
80
80
|
"rimraf": "6.0.1"
|
|
81
81
|
},
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"design-system",
|
|
99
99
|
"twig"
|
|
100
100
|
],
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "19735e328b2b53ccefbcc6829e2aaf149a2c438c"
|
|
102
102
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{# Parameters:
|
|
4
2
|
- variant (string) (default: 'neutral')
|
|
5
3
|
- options: ['ec', 'eu', 'neutral']
|
|
@@ -17,8 +15,6 @@
|
|
|
17
15
|
- language_modal (object) (default: {})
|
|
18
16
|
- light (boolean) (default: false)
|
|
19
17
|
- modals (modal[]) (default: [])
|
|
20
|
-
- toggler_attributes (drupal attrs)
|
|
21
|
-
- icon_path (string) (default: '')
|
|
22
18
|
- attributes (drupal attrs)
|
|
23
19
|
#}
|
|
24
20
|
|
|
@@ -32,8 +28,6 @@
|
|
|
32
28
|
{% set _breadcrumbs = breadcrumbs|default({}) %}
|
|
33
29
|
{% set _language_modal = language_modal|default({}) %}
|
|
34
30
|
{% set _light = light ?? false %}
|
|
35
|
-
{% set _toggler_attributes = toggler_attributes ?: create_attribute() %}
|
|
36
|
-
{% set _icon_path = icon_path|default('') %}
|
|
37
31
|
{% set _modals = modals|default([]) %}
|
|
38
32
|
|
|
39
33
|
{% set _site_name_classes = 'bcl-header__site-name' %}
|
|
@@ -42,7 +36,7 @@
|
|
|
42
36
|
{% set attributes = create_attribute() %}
|
|
43
37
|
{% endif %}
|
|
44
38
|
|
|
45
|
-
{% set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant
|
|
39
|
+
{% set attributes = attributes.addClass(['bcl-header', 'bcl-header--' ~ _variant]) %}
|
|
46
40
|
|
|
47
41
|
{% if site_name_classes is not empty %}
|
|
48
42
|
{% set _site_name_classes = _site_name_classes ~ ' ' ~ site_name_classes %}
|
|
@@ -53,33 +47,6 @@
|
|
|
53
47
|
{% set _project_classes = _project_classes ~ ' light' %}
|
|
54
48
|
{% endif %}
|
|
55
49
|
|
|
56
|
-
{% set toggler_attributes = _toggler_attributes.addClass(['bcl-navbar-toggler', 'd-lg-none'])
|
|
57
|
-
.setAttribute('type', 'button')
|
|
58
|
-
.setAttribute('data-bs-toggle', 'collapse')
|
|
59
|
-
.setAttribute('data-bs-target', '#' ~ navbar_id)
|
|
60
|
-
.setAttribute('aria-controls', navbar_id)
|
|
61
|
-
.setAttribute('aria-expanded', 'false')
|
|
62
|
-
%}
|
|
63
|
-
|
|
64
|
-
{% set navbar_toggle_button %}
|
|
65
|
-
<button
|
|
66
|
-
{{ toggler_attributes }}
|
|
67
|
-
>
|
|
68
|
-
{% include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
69
|
-
name: 'list',
|
|
70
|
-
size: 'fluid',
|
|
71
|
-
path: _icon_path,
|
|
72
|
-
attributes: create_attribute().addClass(['default-icon']),
|
|
73
|
-
} only %}
|
|
74
|
-
{% include '@oe-bcl/bcl-icon/icon.html.twig' with {
|
|
75
|
-
name: 'x',
|
|
76
|
-
size: 'fluid',
|
|
77
|
-
path: _icon_path,
|
|
78
|
-
attributes: create_attribute().addClass(['active-icon']),
|
|
79
|
-
} only %}
|
|
80
|
-
</button>
|
|
81
|
-
{% endset %}
|
|
82
|
-
|
|
83
50
|
<header
|
|
84
51
|
{{ attributes }}
|
|
85
52
|
>
|
|
@@ -101,16 +68,54 @@
|
|
|
101
68
|
{% endfor %}
|
|
102
69
|
</a>
|
|
103
70
|
{% endif %}
|
|
104
|
-
|
|
71
|
+
<button
|
|
72
|
+
class="navbar-toggler bcl-navbar-toggler"
|
|
73
|
+
type="button"
|
|
74
|
+
data-bs-toggle="collapse"
|
|
75
|
+
data-bs-target='#{{ _navbar_id }}'
|
|
76
|
+
aria-controls='{{ _navbar_id }}'
|
|
77
|
+
aria-expanded="false"
|
|
78
|
+
aria-label="Toggle navigation"
|
|
79
|
+
>
|
|
80
|
+
<span class="navbar-toggler-icon"></span>
|
|
81
|
+
</button>
|
|
105
82
|
</div>
|
|
106
83
|
</nav>
|
|
107
84
|
|
|
108
|
-
|
|
109
|
-
|
|
85
|
+
|
|
86
|
+
<!-- project name -->
|
|
87
|
+
{% if _project_logo is not empty or _site_name is not empty %}
|
|
88
|
+
<div class="{{ _project_classes }}">
|
|
110
89
|
<div class="container">
|
|
111
|
-
|
|
90
|
+
{% if _project_link is not empty %}
|
|
91
|
+
<a
|
|
92
|
+
href="{{ _project_link }}"
|
|
93
|
+
>
|
|
94
|
+
{% endif %}
|
|
95
|
+
{% if _project_logo is not empty %}
|
|
96
|
+
<img
|
|
97
|
+
{% if _project_logo.path is not empty %}
|
|
98
|
+
src="{{ _project_logo.path }}"
|
|
99
|
+
{% endif %}
|
|
100
|
+
{% if _project_logo.alt is not empty %}
|
|
101
|
+
alt="{{ _project_logo.alt }}"
|
|
102
|
+
{% endif %}
|
|
103
|
+
{% if _project_logo.classes is not empty %}
|
|
104
|
+
class="{{ _project_logo.classes }}"
|
|
105
|
+
{% endif %}
|
|
106
|
+
/>
|
|
107
|
+
{% endif %}
|
|
108
|
+
{% if _site_name is not empty %}
|
|
109
|
+
<span class="{{ _site_name_classes }}">
|
|
110
|
+
{{- _site_name -}}
|
|
111
|
+
</span>
|
|
112
|
+
{% endif %}
|
|
113
|
+
{% if _project_link is not empty %}
|
|
114
|
+
</a>
|
|
115
|
+
{% endif %}
|
|
112
116
|
</div>
|
|
113
117
|
</div>
|
|
118
|
+
{% endif %}
|
|
114
119
|
|
|
115
120
|
<!-- navbar -->
|
|
116
121
|
{% if _navbar is not empty %}
|
|
@@ -119,14 +124,14 @@
|
|
|
119
124
|
attributes: create_attribute().addClass('bcl-header__navbar collapse navbar-collapse').setAttribute('id', _navbar_id).setAttribute('aria-label', 'Main Navigation'),
|
|
120
125
|
}) only %}
|
|
121
126
|
{% endif %}
|
|
122
|
-
</header>
|
|
123
127
|
|
|
124
|
-
<!-- breadcrumbs -->
|
|
125
|
-
{% if _breadcrumbs is not empty %}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
{% endif %}
|
|
128
|
+
<!-- breadcrumbs -->
|
|
129
|
+
{% if _breadcrumbs is not empty %}
|
|
130
|
+
<div class="container">
|
|
131
|
+
{% include '@oe-bcl/bcl-breadcrumb/breadcrumb.html.twig' with _breadcrumbs only %}
|
|
132
|
+
</div>
|
|
133
|
+
{% endif %}
|
|
134
|
+
</header>
|
|
130
135
|
|
|
131
136
|
{% for modal in _modals %}
|
|
132
137
|
{% include '@oe-bcl/bcl-modal/modal.html.twig' with modal only %}
|
|
@@ -136,4 +141,3 @@
|
|
|
136
141
|
{% include '@oe-bcl/bcl-language-list/language-list.html.twig' with _language_modal only %}
|
|
137
142
|
{% endif %}
|
|
138
143
|
|
|
139
|
-
{% endapply %}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
{% apply spaceless %}
|
|
2
|
-
|
|
3
1
|
{% set _items = items ?? [] %}
|
|
4
2
|
{% set _trigger = trigger ?? null %}
|
|
5
3
|
{% set _icon_path = icon_path ?? '' %}
|
|
@@ -21,24 +19,26 @@
|
|
|
21
19
|
}) %}
|
|
22
20
|
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger only %}
|
|
23
21
|
|
|
24
|
-
{
|
|
25
|
-
{# Prepare an optional "See all" link rendered outside the list. #}
|
|
22
|
+
{# Add an optional "See all" link as last item. #}
|
|
26
23
|
{% if _see_all is not empty %}
|
|
24
|
+
{# Wrap the label for an ellipsis. #}
|
|
27
25
|
{% set _see_all_label %}
|
|
28
26
|
<span>{{- _see_all.label -}}</span>
|
|
29
27
|
{% endset %}
|
|
30
28
|
{% set _see_all_attr = (_see_all.attributes is defined ? _see_all.attributes : create_attribute()) %}
|
|
31
|
-
{% set
|
|
29
|
+
{% set _see_all = _see_all|merge({
|
|
32
30
|
label: _see_all_label,
|
|
33
31
|
icon: {
|
|
34
|
-
size: 'xs',
|
|
35
32
|
name: 'arrow-right',
|
|
36
33
|
path: _icon_path,
|
|
37
34
|
},
|
|
35
|
+
li_attributes: create_attribute()
|
|
36
|
+
.addClass('__see_all'),
|
|
38
37
|
attributes: _see_all_attr
|
|
39
38
|
.addClass(['see-all-button'])
|
|
40
39
|
.setAttribute('aria-label', 'See all items in ‘' ~ _trigger.label ~ '’')
|
|
41
40
|
}) %}
|
|
41
|
+
{% set _items = _items|merge([_see_all]) %}
|
|
42
42
|
{% endif %}
|
|
43
43
|
{% set submenu_attributes = create_attribute()
|
|
44
44
|
.setAttribute('id', _panel_id)
|
|
@@ -58,11 +58,5 @@
|
|
|
58
58
|
icon_path: _icon_path,
|
|
59
59
|
level: _level,
|
|
60
60
|
} only %}
|
|
61
|
-
{% if _see_all_link %}
|
|
62
|
-
<div class="__see_all">
|
|
63
|
-
{% include '@oe-bcl/bcl-link/link.html.twig' with _see_all_link only %}
|
|
64
|
-
</div>
|
|
65
|
-
{% endif %}
|
|
66
61
|
</div>
|
|
67
62
|
|
|
68
|
-
{% endapply %}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
{% import _self as navigation %}
|
|
2
|
-
{% apply spaceless %}
|
|
3
|
-
|
|
4
2
|
{# Parameters:
|
|
5
3
|
- id (string) (default: '')
|
|
6
4
|
- pills (boolean) (default: false)
|
|
@@ -27,8 +25,7 @@
|
|
|
27
25
|
|
|
28
26
|
{# Define main macro #}
|
|
29
27
|
{% macro render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) %}
|
|
30
|
-
{%
|
|
31
|
-
{% import _self as navigation %}
|
|
28
|
+
{% import _self as navigation %}
|
|
32
29
|
|
|
33
30
|
{% set _id = id|default('') %}
|
|
34
31
|
{% set _pills = pills ?? false %}
|
|
@@ -181,9 +178,7 @@
|
|
|
181
178
|
{%- endblock -%}
|
|
182
179
|
</div>
|
|
183
180
|
{% endif %}
|
|
184
|
-
{% endapply %}
|
|
185
181
|
{% endmacro %}
|
|
186
182
|
|
|
187
183
|
{{ navigation.render(items, pills, tabs, tabs_content, vertical, full_width, alignment, id, nav, navbar, attributes) }}
|
|
188
184
|
|
|
189
|
-
{% endapply %}
|