@openeuropa/bcl-data-header 0.3694.202508010105 → 0.3724.202507051300
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--ec.js +2 -1
- package/data--navbar.js +40 -100
- package/data--neutral.js +0 -1
- package/data--no-form.js +3 -5
- package/data--simple.js +0 -1
- package/data--ucpkn.js +34 -1
- package/data.js +0 -1
- package/package.json +4 -4
package/data--ec.js
CHANGED
|
@@ -8,7 +8,6 @@ const modals = require("@openeuropa/bcl-data-header/data--modals");
|
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
variant: "ec",
|
|
11
|
-
navbar_id: "header-navbar",
|
|
12
11
|
site_name: "Project name",
|
|
13
12
|
project_logo: {
|
|
14
13
|
path: "https://inno-ecl.s3.amazonaws.com/media/examples/placeholder.svg",
|
|
@@ -20,6 +19,8 @@ module.exports = {
|
|
|
20
19
|
attributes: new drupalAttribute()
|
|
21
20
|
.addClass(["w-100", "shadow-sm", "bcl-header__top-navbar"])
|
|
22
21
|
.setAttribute("aria-label", "Top Navigation"),
|
|
22
|
+
disable_collapse: false,
|
|
23
|
+
collapse_id: "topNavbarDropdown",
|
|
23
24
|
brand: {
|
|
24
25
|
link: "/example.html",
|
|
25
26
|
logos: [
|
package/data--navbar.js
CHANGED
|
@@ -1,112 +1,49 @@
|
|
|
1
1
|
const drupalAttribute = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
navbar_id: "header-navbar",
|
|
5
4
|
color_set: "dark",
|
|
6
5
|
collapse_id: "navbarNavDropdown",
|
|
7
|
-
attributes: new drupalAttribute()
|
|
8
|
-
"
|
|
9
|
-
"Main Navigation",
|
|
10
|
-
|
|
6
|
+
attributes: new drupalAttribute()
|
|
7
|
+
.addClass("bcl-header__navbar")
|
|
8
|
+
.setAttribute("aria-label", "Main Navigation"),
|
|
9
|
+
form: {
|
|
10
|
+
attributes: new drupalAttribute().addClass(["d-flex", "mt-3", "mt-lg-0"]),
|
|
11
|
+
submit: {
|
|
12
|
+
variant: "light",
|
|
13
|
+
assistive_text: "search",
|
|
14
|
+
icon: {
|
|
15
|
+
name: "search",
|
|
16
|
+
size: "xs",
|
|
17
|
+
path: "/icons.svg",
|
|
18
|
+
},
|
|
19
|
+
attributes: new drupalAttribute().addClass([
|
|
20
|
+
"border-start-0",
|
|
21
|
+
"rounded-0",
|
|
22
|
+
"rounded-end",
|
|
23
|
+
]),
|
|
24
|
+
},
|
|
25
|
+
items: [
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
type: "text",
|
|
29
|
+
required: true,
|
|
30
|
+
label: "Search",
|
|
31
|
+
hidden_label: true,
|
|
32
|
+
placeholder: "Search",
|
|
33
|
+
id: "inlineFormInputGroupSearch",
|
|
34
|
+
attributes: new drupalAttribute().addClass([
|
|
35
|
+
"border-start-0",
|
|
36
|
+
"rounded-0",
|
|
37
|
+
"rounded-start",
|
|
38
|
+
]),
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
],
|
|
42
|
+
},
|
|
11
43
|
navigation: {
|
|
12
44
|
navbar: true,
|
|
13
45
|
attributes: new drupalAttribute().addClass("me-auto"),
|
|
14
46
|
items: [
|
|
15
|
-
{
|
|
16
|
-
mega_menu: true,
|
|
17
|
-
icon_path: "/icons.svg",
|
|
18
|
-
id: "dropdown-megamenu",
|
|
19
|
-
trigger: {
|
|
20
|
-
label: "A link with dropdown",
|
|
21
|
-
},
|
|
22
|
-
content_link: {
|
|
23
|
-
label: "Discover more",
|
|
24
|
-
path: "/example.html",
|
|
25
|
-
icon: {
|
|
26
|
-
name: "arrow-right",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
content_block:
|
|
30
|
-
"<h4>About the European Commission</h4><p>Description text, lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>",
|
|
31
|
-
items: [
|
|
32
|
-
{
|
|
33
|
-
id: "dropdown-megamenu-inner",
|
|
34
|
-
trigger: {
|
|
35
|
-
label: "Base Category Item",
|
|
36
|
-
},
|
|
37
|
-
see_all: {
|
|
38
|
-
label: "See all",
|
|
39
|
-
path: "/example.html",
|
|
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
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: "dropdown-megamenu-inner-2",
|
|
69
|
-
trigger: {
|
|
70
|
-
label: "Base Category Item",
|
|
71
|
-
path: "/example.html",
|
|
72
|
-
},
|
|
73
|
-
items: [
|
|
74
|
-
{
|
|
75
|
-
label: "Base Sub Category Item",
|
|
76
|
-
path: "/example.html",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: "Base Sub Category Item",
|
|
80
|
-
path: "/example.html",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: "Base Sub Category Item",
|
|
84
|
-
path: "/example.html",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: "Base Sub Category Item",
|
|
88
|
-
path: "/example.html",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: "Base Sub Category Item",
|
|
92
|
-
path: "/example.html",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
label: "Base Category Item",
|
|
98
|
-
path: "/example.html",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: "Base Category Item",
|
|
102
|
-
path: "/example.html",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
label: "Base Category Item",
|
|
106
|
-
path: "/example.html",
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
47
|
{
|
|
111
48
|
label: "Home",
|
|
112
49
|
path: "/example.html",
|
|
@@ -123,9 +60,12 @@ module.exports = {
|
|
|
123
60
|
},
|
|
124
61
|
{
|
|
125
62
|
id: "navbarDropdownMenuLink",
|
|
63
|
+
link: true,
|
|
126
64
|
dropdown: true,
|
|
127
65
|
trigger: {
|
|
128
66
|
label: "Dropdown link",
|
|
67
|
+
path: "#",
|
|
68
|
+
attributes: new drupalAttribute().addClass("nav-link"),
|
|
129
69
|
},
|
|
130
70
|
items: [
|
|
131
71
|
{
|
package/data--neutral.js
CHANGED
|
@@ -7,7 +7,6 @@ const navbar = require("@openeuropa/bcl-data-header/data--navbar");
|
|
|
7
7
|
const modals = require("@openeuropa/bcl-data-header/data--modals");
|
|
8
8
|
|
|
9
9
|
module.exports = {
|
|
10
|
-
navbar_id: "header-navbar",
|
|
11
10
|
site_name: "Project name",
|
|
12
11
|
site_name_classes: "h5 d-inline-block d-lg-none",
|
|
13
12
|
head: {
|
package/data--no-form.js
CHANGED
|
@@ -5,7 +5,6 @@ const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
|
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
variant: "eu",
|
|
8
|
-
navbar_id: "header-navbar",
|
|
9
8
|
head: {
|
|
10
9
|
attributes: new drupalAttribute().addClass([
|
|
11
10
|
"w-100",
|
|
@@ -69,10 +68,9 @@ module.exports = {
|
|
|
69
68
|
navbar: {
|
|
70
69
|
color_set: "dark",
|
|
71
70
|
collapse_id: "navbarNavDropdown",
|
|
72
|
-
attributes: new drupalAttribute()
|
|
73
|
-
"
|
|
74
|
-
"Main Navigation",
|
|
75
|
-
),
|
|
71
|
+
attributes: new drupalAttribute()
|
|
72
|
+
.addClass("bcl-header__navbar")
|
|
73
|
+
.setAttribute("aria-label", "Main Navigation"),
|
|
76
74
|
navigation: {
|
|
77
75
|
navbar: true,
|
|
78
76
|
attributes: new drupalAttribute().addClass("me-auto"),
|
package/data--simple.js
CHANGED
package/data--ucpkn.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const drupalAttribute = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
navbar_id: "header-navbar",
|
|
5
4
|
variant: "ucpkn",
|
|
6
5
|
site_name: "UCP Knowledge Network: Applied knowledge for action",
|
|
7
6
|
light: true,
|
|
@@ -14,6 +13,40 @@ module.exports = {
|
|
|
14
13
|
color_set: "dark",
|
|
15
14
|
collapse_id: "navbarNavDropdown",
|
|
16
15
|
attributes: new drupalAttribute().addClass("bcl-header__navbar"),
|
|
16
|
+
form: {
|
|
17
|
+
attributes: new drupalAttribute().addClass(["d-flex", "mt-3", "mt-lg-0"]),
|
|
18
|
+
submit: {
|
|
19
|
+
variant: "light",
|
|
20
|
+
assistive_text: "search",
|
|
21
|
+
icon: {
|
|
22
|
+
name: "search",
|
|
23
|
+
size: "xs",
|
|
24
|
+
path: "/icons.svg",
|
|
25
|
+
},
|
|
26
|
+
attributes: new drupalAttribute().addClass([
|
|
27
|
+
"border-start-0",
|
|
28
|
+
"rounded-0",
|
|
29
|
+
"rounded-end",
|
|
30
|
+
]),
|
|
31
|
+
},
|
|
32
|
+
items: [
|
|
33
|
+
[
|
|
34
|
+
{
|
|
35
|
+
type: "text",
|
|
36
|
+
required: true,
|
|
37
|
+
label: "Search",
|
|
38
|
+
hidden_label: true,
|
|
39
|
+
placeholder: "Search",
|
|
40
|
+
id: "inlineFormInputGroupSearch",
|
|
41
|
+
attributes: new drupalAttribute().addClass([
|
|
42
|
+
"border-start-0",
|
|
43
|
+
"rounded-0",
|
|
44
|
+
"rounded-start",
|
|
45
|
+
]),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
],
|
|
49
|
+
},
|
|
17
50
|
navigation: {
|
|
18
51
|
navbar: true,
|
|
19
52
|
attributes: new drupalAttribute().addClass("me-auto"),
|
package/data.js
CHANGED
package/package.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-data-header",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.3724.202507051300",
|
|
6
6
|
"description": "OE header data",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-data-breadcrumb": "^0.
|
|
12
|
-
"@openeuropa/bcl-language-list": "^0.
|
|
11
|
+
"@openeuropa/bcl-data-breadcrumb": "^0.3724.202507051300",
|
|
12
|
+
"@openeuropa/bcl-language-list": "^0.3724.202507051300"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"component-library",
|
|
25
25
|
"design-system"
|
|
26
26
|
],
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "8c30483a6d25123ba9e0c11019288eb64ea09e41"
|
|
28
28
|
}
|