@openeuropa/bcl-mega-menu 0.3694.202507311300 → 0.3694.202508010105
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/mega-menu.html.twig +68 -69
- package/package.json +5 -5
package/mega-menu.html.twig
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}) %}
|
|
45
45
|
{% endif %}
|
|
46
46
|
{% set _trigger = _trigger|merge({
|
|
47
|
-
attributes: _trigger.attributes.addClass(['dropdown-toggle'])
|
|
47
|
+
attributes: _trigger.attributes.addClass(['dropdown-toggle', 'nav-link'])
|
|
48
48
|
.setAttribute('aria-expanded', 'false')
|
|
49
49
|
.setAttribute('data-bs-toggle', 'dropdown')
|
|
50
50
|
.setAttribute('data-bs-auto-close', 'outside')
|
|
@@ -61,81 +61,80 @@
|
|
|
61
61
|
{% endif %}
|
|
62
62
|
|
|
63
63
|
<div {{ attributes }} style="--bcl-mm-min-height: {{ _min_height }};">
|
|
64
|
-
{%
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger only %}
|
|
68
|
-
{% endif %}
|
|
64
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger|merge({
|
|
65
|
+
variant: 'link'
|
|
66
|
+
}) only %}
|
|
69
67
|
<div class="mega-menu-container dropdown-menu" aria-labelledby="{{ _id }}">
|
|
70
|
-
<div class="
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<div class="row pb-lg-3">
|
|
83
|
-
{% if content_block is defined %}
|
|
84
|
-
<div class="col-md-12 col-xl-3">
|
|
85
|
-
<div class="content-block">
|
|
86
|
-
{%- block content_block -%}
|
|
87
|
-
{{ _content_block }}
|
|
88
|
-
{%- endblock -%}
|
|
89
|
-
{% if _content_link is defined %}
|
|
90
|
-
{% set _content_link = _content_link|merge({
|
|
91
|
-
icon: _content_link.icon|default({})|merge({
|
|
92
|
-
path: _icon_path
|
|
93
|
-
}),
|
|
94
|
-
attributes: (_content_link.attributes is defined
|
|
95
|
-
? _content_link.attributes
|
|
96
|
-
: create_attribute()
|
|
97
|
-
).addClass('content-link')
|
|
98
|
-
}) %}
|
|
99
|
-
|
|
100
|
-
{% include '@oe-bcl/bcl-link/link.html.twig' with _content_link only %}
|
|
101
|
-
{% endif %}
|
|
102
|
-
</div>
|
|
68
|
+
<div class="container position-relative">
|
|
69
|
+
<div class="d-lg-none back-button-block">
|
|
70
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
71
|
+
label: _back_button_label,
|
|
72
|
+
icon_position: "before",
|
|
73
|
+
variant: 'link',
|
|
74
|
+
icon: {
|
|
75
|
+
path: _icon_path,
|
|
76
|
+
name: "arrow-left",
|
|
77
|
+
},
|
|
78
|
+
attributes: create_attribute().addClass(['back-button'])
|
|
79
|
+
} only %}
|
|
103
80
|
</div>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<div class="
|
|
107
|
-
|
|
108
|
-
{
|
|
109
|
-
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
81
|
+
<div class="row pb-lg-3">
|
|
82
|
+
{% if content_block is defined %}
|
|
83
|
+
<div class="col-md-12 col-xl-3">
|
|
84
|
+
<div class="content-block">
|
|
85
|
+
{%- block content_block -%}
|
|
86
|
+
{{ _content_block }}
|
|
87
|
+
{%- endblock -%}
|
|
88
|
+
{% if _content_link is defined %}
|
|
89
|
+
{% set _content_link = _content_link|merge({
|
|
90
|
+
icon: _content_link.icon|default({})|merge({
|
|
91
|
+
path: _icon_path
|
|
92
|
+
}),
|
|
93
|
+
attributes: (_content_link.attributes is defined
|
|
94
|
+
? _content_link.attributes
|
|
95
|
+
: create_attribute()
|
|
96
|
+
).addClass('content-link')
|
|
97
|
+
}) %}
|
|
98
|
+
<p class="m-0">{% include '@oe-bcl/bcl-link/link.html.twig' with _content_link only %}</p>
|
|
99
|
+
{% endif %}
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
{% endif %}
|
|
103
|
+
<div class="col-md-12 col-xl-9 mb-lg-3">
|
|
104
|
+
<div class="navigation-items">
|
|
105
|
+
{% for _item in _items %}
|
|
106
|
+
{% if _item.items is defined %}
|
|
107
|
+
{% set _items_list = _item.items %}
|
|
108
|
+
{% if _item.see_all is defined %}
|
|
109
|
+
{% set _items_list = _items_list|merge([
|
|
110
|
+
_item.see_all|merge({
|
|
111
|
+
icon: {
|
|
112
|
+
name: "arrow-right",
|
|
113
|
+
path: _icon_path,
|
|
114
|
+
},
|
|
115
|
+
attributes: create_attribute().addClass('see-all-button')
|
|
116
|
+
})
|
|
117
|
+
]) %}
|
|
118
|
+
{% endif %}
|
|
119
|
+
{% set _item = _item|merge({ items: _items_list }) %}
|
|
120
|
+
{% set _trigger_attributes = _item.trigger.attributes is defined ? _item.trigger.attributes : create_attribute() %}
|
|
121
|
+
{% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _item|merge({
|
|
122
|
+
direction: 'dropend',
|
|
123
|
+
link: true,
|
|
124
|
+
trigger: _item.trigger|merge({
|
|
113
125
|
icon: {
|
|
114
|
-
name: "
|
|
126
|
+
name: "chevron-right",
|
|
115
127
|
path: _icon_path,
|
|
128
|
+
size: "fluid",
|
|
116
129
|
},
|
|
117
|
-
attributes:
|
|
130
|
+
attributes: _trigger_attributes.setAttribute('data-bs-auto-close', 'outside')
|
|
118
131
|
})
|
|
119
|
-
|
|
132
|
+
}) only %}
|
|
133
|
+
{% else %}
|
|
134
|
+
{% include '@oe-bcl/bcl-link/link.html.twig' with _item only %}
|
|
120
135
|
{% endif %}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
{% include '@oe-bcl/bcl-dropdown/dropdown.html.twig' with _item|merge({
|
|
124
|
-
direction: 'dropend',
|
|
125
|
-
link: true,
|
|
126
|
-
trigger: _item.trigger|merge({
|
|
127
|
-
icon: {
|
|
128
|
-
name: "chevron-right",
|
|
129
|
-
path: _icon_path,
|
|
130
|
-
size: "fluid",
|
|
131
|
-
},
|
|
132
|
-
attributes: _trigger_attributes.setAttribute('data-bs-auto-close', 'outside')
|
|
133
|
-
})
|
|
134
|
-
}) only %}
|
|
135
|
-
{% else %}
|
|
136
|
-
{% include '@oe-bcl/bcl-link/link.html.twig' with _item only %}
|
|
137
|
-
{% endif %}
|
|
138
|
-
{% endfor %}
|
|
136
|
+
{% endfor %}
|
|
137
|
+
</div>
|
|
139
138
|
</div>
|
|
140
139
|
</div>
|
|
141
140
|
</div>
|
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-mega-menu",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.3694.
|
|
5
|
+
"version": "0.3694.202508010105",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"description": "OE - BCL mega menu",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-button": "^0.3694.
|
|
12
|
-
"@openeuropa/bcl-dropdown": "^0.3694.
|
|
13
|
-
"@openeuropa/bcl-link": "^0.3694.
|
|
11
|
+
"@openeuropa/bcl-button": "^0.3694.202508010105",
|
|
12
|
+
"@openeuropa/bcl-dropdown": "^0.3694.202508010105",
|
|
13
|
+
"@openeuropa/bcl-link": "^0.3694.202508010105"
|
|
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": "90a50a1ea3f474c29b7ba35e4559e82660f95f77"
|
|
30
30
|
}
|