@openeuropa/bcl-mega-menu 0.1057.202502180140 → 0.1057.202503031100
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 +19 -14
- package/package.json +5 -5
package/mega-menu.html.twig
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
- link (boolean) (default: false) - sets trigger to link, default is button
|
|
6
6
|
- trigger (link or button)
|
|
7
7
|
- content_block (block) (default: '')
|
|
8
|
+
- min_height (string) (default: '300px')
|
|
9
|
+
! set min-height of mega-menu
|
|
8
10
|
- items (object[])
|
|
9
11
|
format: [
|
|
10
12
|
{
|
|
@@ -21,6 +23,7 @@
|
|
|
21
23
|
{% set _link = link ?? false %}
|
|
22
24
|
{% set _trigger = trigger|default({}) %}
|
|
23
25
|
{% set _content_block = content_block|default('') %}
|
|
26
|
+
{% set _min_height = min_height|default('300px') %}
|
|
24
27
|
{% set _items = items|default([]) %}
|
|
25
28
|
{% set _back_button_label = back_button_label|default('Back') %}
|
|
26
29
|
{% set _icon_path = icon_path|default('') %}
|
|
@@ -55,29 +58,31 @@
|
|
|
55
58
|
}) %}
|
|
56
59
|
{% endif %}
|
|
57
60
|
|
|
58
|
-
<div {{ attributes }}>
|
|
61
|
+
<div {{ attributes }} style="--bcl-mm-min-height: {{ _min_height }};">
|
|
59
62
|
{% if _link %}
|
|
60
63
|
{% include '@oe-bcl/bcl-link/link.html.twig' with _trigger only %}
|
|
61
64
|
{% else %}
|
|
62
65
|
{% include '@oe-bcl/bcl-button/button.html.twig' with _trigger only %}
|
|
63
66
|
{% endif %}
|
|
64
67
|
<div class="mega-menu-container dropdown-menu" aria-labelledby="{{ _id }}">
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
<div class="d-lg-none back-button-block">
|
|
69
|
+
{% include '@oe-bcl/bcl-button/button.html.twig' with {
|
|
70
|
+
label: _back_button_label,
|
|
71
|
+
icon_position: "before",
|
|
72
|
+
variant: 'link',
|
|
73
|
+
icon: {
|
|
74
|
+
path: _icon_path,
|
|
75
|
+
name: "arrow-left",
|
|
76
|
+
},
|
|
77
|
+
attributes: create_attribute().addClass(['back-button'])
|
|
78
|
+
} only %}
|
|
79
|
+
</div>
|
|
75
80
|
<div class="row position-relative">
|
|
76
81
|
{% if content_block is defined %}
|
|
77
82
|
<div class="col-12 col-lg-4">
|
|
78
83
|
<div class="content-block py-3">
|
|
79
84
|
{%- block content_block -%}
|
|
80
|
-
{{ _content_block
|
|
85
|
+
{{ _content_block }}
|
|
81
86
|
{%- endblock -%}
|
|
82
87
|
</div>
|
|
83
88
|
</div>
|
|
@@ -91,12 +96,12 @@
|
|
|
91
96
|
direction: 'dropend',
|
|
92
97
|
link: true,
|
|
93
98
|
trigger: _item.trigger|merge({
|
|
94
|
-
attributes: _trigger_attributes.setAttribute('data-bs-auto-close', '
|
|
99
|
+
attributes: _trigger_attributes.setAttribute('data-bs-auto-close', 'false')
|
|
95
100
|
})
|
|
96
101
|
}) only %}
|
|
97
102
|
{% if _item.collapse is defined %}
|
|
98
103
|
<div class="collapse">
|
|
99
|
-
{{ _item.collapse }}
|
|
104
|
+
{{ _item.collapse|raw }}
|
|
100
105
|
</div>
|
|
101
106
|
{% endif %}
|
|
102
107
|
{% else %}
|
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.1057.
|
|
5
|
+
"version": "0.1057.202503031100",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"description": "OE - BCL mega menu",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-button": "^0.1057.
|
|
12
|
-
"@openeuropa/bcl-dropdown": "^0.1057.
|
|
13
|
-
"@openeuropa/bcl-link": "^0.1057.
|
|
11
|
+
"@openeuropa/bcl-button": "^0.1057.202503031100",
|
|
12
|
+
"@openeuropa/bcl-dropdown": "^0.1057.202503031100",
|
|
13
|
+
"@openeuropa/bcl-link": "^0.1057.202503031100"
|
|
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": "bc17151b7d40bf73fea2c5fb3f40da249dfa4a2f"
|
|
30
30
|
}
|