@openeuropa/bcl-data-header 1.10.6 → 1.10.8
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 +3 -3
- package/data--loggedIn.js +5 -5
- package/data--navbar.js +6 -6
- package/data--neutral.js +3 -3
- package/data--no-form.js +11 -11
- package/data--simple.js +7 -7
- package/data--top-navbar.js +5 -5
- package/data--ucpkn.js +8 -8
- package/data.js +3 -3
- package/package.json +4 -4
package/data--ec.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
|
|
4
4
|
const breadcrumbs = require("@openeuropa/bcl-data-breadcrumb/data");
|
|
@@ -17,7 +17,7 @@ module.exports = {
|
|
|
17
17
|
},
|
|
18
18
|
project_link: "/example.html",
|
|
19
19
|
head: {
|
|
20
|
-
attributes: new
|
|
20
|
+
attributes: new DrupalAttribute()
|
|
21
21
|
.addClass(["w-100", "shadow-sm", "bcl-header__top-navbar"])
|
|
22
22
|
.setAttribute("aria-label", "Top Navigation"),
|
|
23
23
|
brand: {
|
|
@@ -38,6 +38,6 @@ module.exports = {
|
|
|
38
38
|
language_modal: { ...languageList, variant: "ec" },
|
|
39
39
|
breadcrumbs: {
|
|
40
40
|
...breadcrumbs,
|
|
41
|
-
attributes: new
|
|
41
|
+
attributes: new DrupalAttribute().addClass(["mt-3"]),
|
|
42
42
|
},
|
|
43
43
|
};
|
package/data--loggedIn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = [
|
|
4
4
|
{
|
|
@@ -6,12 +6,12 @@ module.exports = [
|
|
|
6
6
|
path: "/example.html",
|
|
7
7
|
icon_position: "before",
|
|
8
8
|
remove_icon_spacers: true,
|
|
9
|
-
attributes: new
|
|
9
|
+
attributes: new DrupalAttribute().addClass(["py-lg-2", "pb-3"]),
|
|
10
10
|
icon: {
|
|
11
11
|
name: "person-fill",
|
|
12
12
|
size: "xs",
|
|
13
13
|
path: "/icons.svg",
|
|
14
|
-
attributes: new
|
|
14
|
+
attributes: new DrupalAttribute().addClass(["me-2-5"]),
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
{
|
|
@@ -19,7 +19,7 @@ module.exports = [
|
|
|
19
19
|
path: "/example.html",
|
|
20
20
|
icon_position: "before",
|
|
21
21
|
remove_icon_spacers: true,
|
|
22
|
-
attributes: new
|
|
22
|
+
attributes: new DrupalAttribute().addClass([
|
|
23
23
|
"border-top-lg-0",
|
|
24
24
|
"border-top",
|
|
25
25
|
"mx-n3",
|
|
@@ -31,7 +31,7 @@ module.exports = [
|
|
|
31
31
|
name: "lock-fill",
|
|
32
32
|
size: "xs",
|
|
33
33
|
path: "/icons.svg",
|
|
34
|
-
attributes: new
|
|
34
|
+
attributes: new DrupalAttribute().addClass("me-2-5"),
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
];
|
package/data--navbar.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
navbar_id: "header-navbar",
|
|
5
5
|
color_set: "dark",
|
|
6
6
|
collapse_id: "navbarNavDropdown",
|
|
7
|
-
attributes: new
|
|
7
|
+
attributes: new DrupalAttribute()
|
|
8
8
|
.setAttribute("aria-label", "Main Navigation")
|
|
9
9
|
.addClass("bcl-header__navbar"),
|
|
10
10
|
navigation: {
|
|
11
11
|
navbar: true,
|
|
12
|
-
attributes: new
|
|
12
|
+
attributes: new DrupalAttribute().addClass("me-auto"),
|
|
13
13
|
items: [
|
|
14
14
|
{
|
|
15
15
|
mega_menu: true,
|
|
@@ -33,7 +33,7 @@ module.exports = {
|
|
|
33
33
|
trigger: {
|
|
34
34
|
id: "custom-trigger-mm-1",
|
|
35
35
|
label: "Base Category Item",
|
|
36
|
-
attributes: new
|
|
36
|
+
attributes: new DrupalAttribute().addClass("active"),
|
|
37
37
|
},
|
|
38
38
|
see_all: {
|
|
39
39
|
label: "See all",
|
|
@@ -43,7 +43,7 @@ module.exports = {
|
|
|
43
43
|
{
|
|
44
44
|
label: "Base Sub Category Item",
|
|
45
45
|
path: "/example.html",
|
|
46
|
-
attributes: new
|
|
46
|
+
attributes: new DrupalAttribute().addClass("active"),
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
label: "Base Sub Category Item",
|
|
@@ -134,7 +134,7 @@ module.exports = {
|
|
|
134
134
|
label: "Home",
|
|
135
135
|
path: "/example.html",
|
|
136
136
|
active: true,
|
|
137
|
-
attributes: new
|
|
137
|
+
attributes: new DrupalAttribute().setAttribute("aria-current", "page"),
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
label: "Item 01",
|
package/data--neutral.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
|
|
4
4
|
const breadcrumbs = require("@openeuropa/bcl-data-breadcrumb/data");
|
|
@@ -21,7 +21,7 @@ module.exports = {
|
|
|
21
21
|
label: "Project name",
|
|
22
22
|
link: "/example.html",
|
|
23
23
|
},
|
|
24
|
-
attributes: new
|
|
24
|
+
attributes: new DrupalAttribute()
|
|
25
25
|
.addClass(["w-100", "bcl-header__top-navbar"])
|
|
26
26
|
.setAttribute("aria-label", "Top Navigation"),
|
|
27
27
|
disable_collapse: false,
|
|
@@ -35,6 +35,6 @@ module.exports = {
|
|
|
35
35
|
language_modal: languageList,
|
|
36
36
|
breadcrumbs: {
|
|
37
37
|
...breadcrumbs,
|
|
38
|
-
attributes: new
|
|
38
|
+
attributes: new DrupalAttribute().addClass(["mt-3"]),
|
|
39
39
|
},
|
|
40
40
|
};
|
package/data--no-form.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
const modals = require("@openeuropa/bcl-data-header/data--modals");
|
|
4
4
|
const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
|
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
variant: "eu",
|
|
8
8
|
navbar_id: "header-navbar",
|
|
9
9
|
head: {
|
|
10
|
-
attributes: new
|
|
10
|
+
attributes: new DrupalAttribute().addClass([
|
|
11
11
|
"w-100",
|
|
12
12
|
"shadow-sm",
|
|
13
13
|
"bcl-header__top-navbar",
|
|
@@ -40,9 +40,9 @@ module.exports = {
|
|
|
40
40
|
name: "chat-left-dots-fill",
|
|
41
41
|
size: "xs",
|
|
42
42
|
path: "/icons.svg",
|
|
43
|
-
attributes: new
|
|
43
|
+
attributes: new DrupalAttribute().addClass("me-2-5"),
|
|
44
44
|
},
|
|
45
|
-
attributes: new
|
|
45
|
+
attributes: new DrupalAttribute()
|
|
46
46
|
.setAttribute("data-bs-toggle", "modal")
|
|
47
47
|
.setAttribute("data-bs-target", "#languageModal")
|
|
48
48
|
.addClass("text-center"),
|
|
@@ -56,9 +56,9 @@ module.exports = {
|
|
|
56
56
|
name: "person-fill",
|
|
57
57
|
size: "xs",
|
|
58
58
|
path: "/icons.svg",
|
|
59
|
-
attributes: new
|
|
59
|
+
attributes: new DrupalAttribute().addClass("me-2-5"),
|
|
60
60
|
},
|
|
61
|
-
attributes: new
|
|
61
|
+
attributes: new DrupalAttribute()
|
|
62
62
|
.setAttribute("data-bs-toggle", "modal")
|
|
63
63
|
.setAttribute("data-bs-target", "#loginModal")
|
|
64
64
|
.addClass("text-center"),
|
|
@@ -69,19 +69,19 @@ module.exports = {
|
|
|
69
69
|
navbar: {
|
|
70
70
|
color_set: "dark",
|
|
71
71
|
collapse_id: "navbarNavDropdown",
|
|
72
|
-
attributes: new
|
|
72
|
+
attributes: new DrupalAttribute().setAttribute(
|
|
73
73
|
"aria-label",
|
|
74
74
|
"Main Navigation",
|
|
75
75
|
),
|
|
76
76
|
navigation: {
|
|
77
77
|
navbar: true,
|
|
78
|
-
attributes: new
|
|
78
|
+
attributes: new DrupalAttribute().addClass("me-auto"),
|
|
79
79
|
items: [
|
|
80
80
|
{
|
|
81
81
|
label: "Home",
|
|
82
82
|
path: "/example.html",
|
|
83
83
|
active: true,
|
|
84
|
-
attributes: new
|
|
84
|
+
attributes: new DrupalAttribute().setAttribute(
|
|
85
85
|
"aria-current",
|
|
86
86
|
"page",
|
|
87
87
|
),
|
|
@@ -101,7 +101,7 @@ module.exports = {
|
|
|
101
101
|
trigger: {
|
|
102
102
|
label: "Dropdown link",
|
|
103
103
|
path: "/example.html",
|
|
104
|
-
attributes: new
|
|
104
|
+
attributes: new DrupalAttribute().addClass("nav-link"),
|
|
105
105
|
},
|
|
106
106
|
items: [
|
|
107
107
|
{
|
|
@@ -124,7 +124,7 @@ module.exports = {
|
|
|
124
124
|
modals,
|
|
125
125
|
language_modal: languageList,
|
|
126
126
|
breadcrumbs: {
|
|
127
|
-
attributes: new
|
|
127
|
+
attributes: new DrupalAttribute().addClass(["mt-3"]),
|
|
128
128
|
links: [
|
|
129
129
|
{ label: "Home", path: "/example.html" },
|
|
130
130
|
{
|
package/data--simple.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
|
|
4
4
|
const breadcrumbs = require("@openeuropa/bcl-data-breadcrumb/data");
|
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
variant: "eu",
|
|
10
10
|
navbar_id: "header-navbar",
|
|
11
11
|
head: {
|
|
12
|
-
attributes: new
|
|
12
|
+
attributes: new DrupalAttribute()
|
|
13
13
|
.addClass(["w-100", "shadow-sm", "bcl-header__top-navbar"])
|
|
14
14
|
.setAttribute("aria-label", "Top Navigation"),
|
|
15
15
|
disable_collapse: false,
|
|
@@ -40,9 +40,9 @@ module.exports = {
|
|
|
40
40
|
name: "chat-left-dots-fill",
|
|
41
41
|
size: "xs",
|
|
42
42
|
path: "/icons.svg",
|
|
43
|
-
attributes: new
|
|
43
|
+
attributes: new DrupalAttribute().addClass("me-2-5"),
|
|
44
44
|
},
|
|
45
|
-
attributes: new
|
|
45
|
+
attributes: new DrupalAttribute()
|
|
46
46
|
.setAttribute("data-bs-toggle", "modal")
|
|
47
47
|
.setAttribute("data-bs-target", "#languageModal"),
|
|
48
48
|
},
|
|
@@ -55,9 +55,9 @@ module.exports = {
|
|
|
55
55
|
name: "person-fill",
|
|
56
56
|
size: "xs",
|
|
57
57
|
path: "/icons.svg",
|
|
58
|
-
attributes: new
|
|
58
|
+
attributes: new DrupalAttribute().addClass("me-2-5"),
|
|
59
59
|
},
|
|
60
|
-
attributes: new
|
|
60
|
+
attributes: new DrupalAttribute()
|
|
61
61
|
.setAttribute("data-bs-toggle", "modal")
|
|
62
62
|
.setAttribute("data-bs-target", "#loginModal"),
|
|
63
63
|
},
|
|
@@ -69,6 +69,6 @@ module.exports = {
|
|
|
69
69
|
language_modal: { ...languageList, variant: "eu" },
|
|
70
70
|
breadcrumbs: {
|
|
71
71
|
...breadcrumbs,
|
|
72
|
-
attributes: new
|
|
72
|
+
attributes: new DrupalAttribute().addClass(["mt-3"]),
|
|
73
73
|
},
|
|
74
74
|
};
|
package/data--top-navbar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = [
|
|
4
4
|
{
|
|
@@ -28,9 +28,9 @@ module.exports = [
|
|
|
28
28
|
name: "chat-left-dots-fill",
|
|
29
29
|
size: "xs",
|
|
30
30
|
path: "/icons.svg",
|
|
31
|
-
attributes: new
|
|
31
|
+
attributes: new DrupalAttribute().addClass("me-2-5"),
|
|
32
32
|
},
|
|
33
|
-
attributes: new
|
|
33
|
+
attributes: new DrupalAttribute()
|
|
34
34
|
.setAttribute("data-bs-toggle", "modal")
|
|
35
35
|
.setAttribute("data-bs-target", "#languageModal"),
|
|
36
36
|
},
|
|
@@ -43,9 +43,9 @@ module.exports = [
|
|
|
43
43
|
name: "person-fill",
|
|
44
44
|
size: "xs",
|
|
45
45
|
path: "/icons.svg",
|
|
46
|
-
attributes: new
|
|
46
|
+
attributes: new DrupalAttribute().addClass("me-2-5"),
|
|
47
47
|
},
|
|
48
|
-
attributes: new
|
|
48
|
+
attributes: new DrupalAttribute()
|
|
49
49
|
.setAttribute("data-bs-toggle", "modal")
|
|
50
50
|
.setAttribute("data-bs-target", "#loginModal"),
|
|
51
51
|
},
|
package/data--ucpkn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
navbar_id: "header-navbar",
|
|
@@ -13,10 +13,10 @@ module.exports = {
|
|
|
13
13
|
navbar: {
|
|
14
14
|
color_set: "dark",
|
|
15
15
|
collapse_id: "navbarNavDropdown",
|
|
16
|
-
attributes: new
|
|
16
|
+
attributes: new DrupalAttribute().addClass("bcl-header__navbar"),
|
|
17
17
|
navigation: {
|
|
18
18
|
navbar: true,
|
|
19
|
-
attributes: new
|
|
19
|
+
attributes: new DrupalAttribute().addClass("me-auto"),
|
|
20
20
|
items: [
|
|
21
21
|
{
|
|
22
22
|
id: "navbarDropdownMenuLink",
|
|
@@ -25,7 +25,7 @@ module.exports = {
|
|
|
25
25
|
trigger: {
|
|
26
26
|
label: "Knowledge & Capacity",
|
|
27
27
|
path: "/example.html",
|
|
28
|
-
attributes: new
|
|
28
|
+
attributes: new DrupalAttribute().addClass("nav-link"),
|
|
29
29
|
},
|
|
30
30
|
items: [
|
|
31
31
|
{
|
|
@@ -57,7 +57,7 @@ module.exports = {
|
|
|
57
57
|
trigger: {
|
|
58
58
|
label: "Science & Research",
|
|
59
59
|
path: "/example.html",
|
|
60
|
-
attributes: new
|
|
60
|
+
attributes: new DrupalAttribute().addClass("nav-link"),
|
|
61
61
|
},
|
|
62
62
|
items: [
|
|
63
63
|
{
|
|
@@ -85,7 +85,7 @@ module.exports = {
|
|
|
85
85
|
trigger: {
|
|
86
86
|
label: "Projects",
|
|
87
87
|
path: "/example.html",
|
|
88
|
-
attributes: new
|
|
88
|
+
attributes: new DrupalAttribute().addClass("nav-link"),
|
|
89
89
|
},
|
|
90
90
|
items: [
|
|
91
91
|
{
|
|
@@ -113,7 +113,7 @@ module.exports = {
|
|
|
113
113
|
trigger: {
|
|
114
114
|
label: "About",
|
|
115
115
|
path: "#",
|
|
116
|
-
attributes: new
|
|
116
|
+
attributes: new DrupalAttribute().addClass("nav-link"),
|
|
117
117
|
},
|
|
118
118
|
items: [
|
|
119
119
|
{
|
|
@@ -134,7 +134,7 @@ module.exports = {
|
|
|
134
134
|
},
|
|
135
135
|
},
|
|
136
136
|
head: {
|
|
137
|
-
attributes: new
|
|
137
|
+
attributes: new DrupalAttribute()
|
|
138
138
|
.addClass(["w-100", "shadow-sm"])
|
|
139
139
|
.setAttribute("aria-label", "Top Navigation"),
|
|
140
140
|
disable_collapse: true,
|
package/data.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
|
|
4
4
|
const breadcrumbs = require("@openeuropa/bcl-data-breadcrumb/data");
|
|
@@ -16,7 +16,7 @@ module.exports = {
|
|
|
16
16
|
alt: "project logo",
|
|
17
17
|
},
|
|
18
18
|
head: {
|
|
19
|
-
attributes: new
|
|
19
|
+
attributes: new DrupalAttribute()
|
|
20
20
|
.addClass(["w-100", "shadow-sm", "bcl-header__top-navbar"])
|
|
21
21
|
.setAttribute("aria-label", "Top Navigation"),
|
|
22
22
|
disable_collapse: false,
|
|
@@ -45,6 +45,6 @@ module.exports = {
|
|
|
45
45
|
language_modal: { ...languageList, variant: "eu" },
|
|
46
46
|
breadcrumbs: {
|
|
47
47
|
...breadcrumbs,
|
|
48
|
-
attributes: new
|
|
48
|
+
attributes: new DrupalAttribute().addClass(["mt-3"]),
|
|
49
49
|
},
|
|
50
50
|
};
|
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": "1.10.
|
|
5
|
+
"version": "1.10.8",
|
|
6
6
|
"description": "OE header data",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@openeuropa/bcl-data-breadcrumb": "^1.10.
|
|
12
|
-
"@openeuropa/bcl-language-list": "^1.10.
|
|
11
|
+
"@openeuropa/bcl-data-breadcrumb": "^1.10.8",
|
|
12
|
+
"@openeuropa/bcl-language-list": "^1.10.8"
|
|
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": "9c2e64443ae179948cbf748c41d438af7a0f2421"
|
|
28
28
|
}
|