@openeuropa/bcl-data-navbar 1.10.5 → 1.10.6
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/data.js +98 -24
- package/package.json +2 -2
package/data.js
CHANGED
|
@@ -10,6 +10,104 @@ module.exports = {
|
|
|
10
10
|
navbar: true,
|
|
11
11
|
attributes: new drupalAttribute().addClass("me-auto"),
|
|
12
12
|
items: [
|
|
13
|
+
{
|
|
14
|
+
mega_menu: true,
|
|
15
|
+
icon_path: "/icons.svg",
|
|
16
|
+
id: "dropdown-megamenu",
|
|
17
|
+
trigger: {
|
|
18
|
+
label: "A link with dropdown",
|
|
19
|
+
},
|
|
20
|
+
id: "dropdown-megamenu",
|
|
21
|
+
content_link: {
|
|
22
|
+
label: "Discover more",
|
|
23
|
+
path: "/example.html",
|
|
24
|
+
icon: {
|
|
25
|
+
name: "arrow-right",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
see_all: {
|
|
29
|
+
label: "See all",
|
|
30
|
+
path: "/example.html",
|
|
31
|
+
},
|
|
32
|
+
content_block:
|
|
33
|
+
"<h4>About the European Commission</h4><p>Description text, lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>",
|
|
34
|
+
items: [
|
|
35
|
+
{
|
|
36
|
+
id: "dropdown-megamenu-inner",
|
|
37
|
+
trigger: {
|
|
38
|
+
id: "custom-trigger-mm-1",
|
|
39
|
+
label: "Base Category Item",
|
|
40
|
+
},
|
|
41
|
+
items: [
|
|
42
|
+
{
|
|
43
|
+
label: "Base Sub Category Item",
|
|
44
|
+
path: "/example.html",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "Base Sub Category Item",
|
|
48
|
+
path: "/example.html",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "Base Sub Category Item",
|
|
52
|
+
path: "/example.html",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "Base Sub Category Item",
|
|
56
|
+
path: "/example.html",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "Base Sub Category Item",
|
|
60
|
+
path: "/example.html",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "Base Category Item",
|
|
66
|
+
path: "/example.html",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "dropdown-megamenu-inner-2",
|
|
70
|
+
trigger: {
|
|
71
|
+
id: "custom-trigger-mm-2",
|
|
72
|
+
label: "Base Category Item",
|
|
73
|
+
},
|
|
74
|
+
items: [
|
|
75
|
+
{
|
|
76
|
+
label: "Base Sub Category Item",
|
|
77
|
+
path: "/example.html",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: "Base Sub Category Item",
|
|
81
|
+
path: "/example.html",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "Base Sub Category Item",
|
|
85
|
+
path: "/example.html",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: "Base Sub Category Item",
|
|
89
|
+
path: "/example.html",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: "Base Sub Category Item",
|
|
93
|
+
path: "/example.html",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: "Base Category Item",
|
|
99
|
+
path: "/example.html",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: "Base Category Item",
|
|
103
|
+
path: "/example.html",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: "Base Category Item",
|
|
107
|
+
path: "/example.html",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
13
111
|
{
|
|
14
112
|
label: "I'm a link",
|
|
15
113
|
path: "#first",
|
|
@@ -24,12 +122,9 @@ module.exports = {
|
|
|
24
122
|
},
|
|
25
123
|
{
|
|
26
124
|
id: "dropdown-1",
|
|
27
|
-
link: true,
|
|
28
125
|
dropdown: true,
|
|
29
126
|
trigger: {
|
|
30
127
|
label: "Dropdown Toggle",
|
|
31
|
-
path: "#",
|
|
32
|
-
attributes: new drupalAttribute().addClass("nav-link"),
|
|
33
128
|
},
|
|
34
129
|
items: [
|
|
35
130
|
{
|
|
@@ -57,25 +152,4 @@ module.exports = {
|
|
|
57
152
|
},
|
|
58
153
|
],
|
|
59
154
|
},
|
|
60
|
-
form: {
|
|
61
|
-
attributes: new drupalAttribute().addClass("d-flex"),
|
|
62
|
-
submit: {
|
|
63
|
-
wrapper: "ms-2",
|
|
64
|
-
label: "Search",
|
|
65
|
-
type: "Search",
|
|
66
|
-
variant: "light",
|
|
67
|
-
},
|
|
68
|
-
items: [
|
|
69
|
-
[
|
|
70
|
-
{
|
|
71
|
-
type: "text",
|
|
72
|
-
required: true,
|
|
73
|
-
label: "Search",
|
|
74
|
-
hidden_label: true,
|
|
75
|
-
placeholder: "Search",
|
|
76
|
-
id: "inlineFormInputGroupSearch",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
155
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-data-navbar",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "1.10.
|
|
5
|
+
"version": "1.10.6",
|
|
6
6
|
"description": "OE - BCL data navbar",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"design-system",
|
|
22
22
|
"twig"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "f2c1911b328b12531079c209ecada73a505713c2"
|
|
25
25
|
}
|