@openeuropa/bcl-data-header 1.10.8 → 1.10.9
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 +6 -1
- package/data--navbar.js +40 -0
- package/data--neutral.js +5 -0
- package/data--no-form.js +4 -1
- package/data--simple.js +7 -1
- package/data--ucpkn.js +6 -1
- package/data.js +6 -1
- package/package.json +4 -4
package/data--ec.js
CHANGED
|
@@ -9,7 +9,12 @@ const modals = require("@openeuropa/bcl-data-header/data--modals");
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
variant: "ec",
|
|
11
11
|
navbar_id: "header-navbar",
|
|
12
|
+
icon_path: "/icons.svg",
|
|
12
13
|
site_name: "Project name",
|
|
14
|
+
toggler_attributes: new DrupalAttribute().setAttribute(
|
|
15
|
+
"aria-label",
|
|
16
|
+
"Main navigation toggle",
|
|
17
|
+
),
|
|
13
18
|
project_logo: {
|
|
14
19
|
path: "https://inno-ecl.s3.amazonaws.com/media/examples/placeholder.svg",
|
|
15
20
|
classes: "d-none d-lg-inline-block",
|
|
@@ -18,7 +23,7 @@ module.exports = {
|
|
|
18
23
|
project_link: "/example.html",
|
|
19
24
|
head: {
|
|
20
25
|
attributes: new DrupalAttribute()
|
|
21
|
-
.addClass(["w-100", "
|
|
26
|
+
.addClass(["w-100", "bcl-header__top-navbar"])
|
|
22
27
|
.setAttribute("aria-label", "Top Navigation"),
|
|
23
28
|
brand: {
|
|
24
29
|
link: "/example.html",
|
package/data--navbar.js
CHANGED
|
@@ -57,6 +57,30 @@ module.exports = {
|
|
|
57
57
|
label: "Base Sub Category Item",
|
|
58
58
|
path: "/example.html",
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
label: "Base Sub Category Item",
|
|
62
|
+
path: "/example.html",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "Base Sub Category Item",
|
|
66
|
+
path: "/example.html",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: "Base Sub Category Item",
|
|
70
|
+
path: "/example.html",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: "Base Sub Category Item",
|
|
74
|
+
path: "/example.html",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: "Base Sub Category Item",
|
|
78
|
+
path: "/example.html",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: "Base Sub Category Item",
|
|
82
|
+
path: "/example.html",
|
|
83
|
+
},
|
|
60
84
|
],
|
|
61
85
|
},
|
|
62
86
|
{
|
|
@@ -170,6 +194,22 @@ module.exports = {
|
|
|
170
194
|
},
|
|
171
195
|
],
|
|
172
196
|
},
|
|
197
|
+
{
|
|
198
|
+
label: "Item 04",
|
|
199
|
+
path: "/example.html",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
label: "Item 05",
|
|
203
|
+
path: "/example.html",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
label: "Item 06",
|
|
207
|
+
path: "/example.html",
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
label: "Item 07",
|
|
211
|
+
path: "/example.html",
|
|
212
|
+
},
|
|
173
213
|
],
|
|
174
214
|
},
|
|
175
215
|
};
|
package/data--neutral.js
CHANGED
|
@@ -9,6 +9,11 @@ const modals = require("@openeuropa/bcl-data-header/data--modals");
|
|
|
9
9
|
module.exports = {
|
|
10
10
|
navbar_id: "header-navbar",
|
|
11
11
|
site_name: "Project name",
|
|
12
|
+
icon_path: "/icons.svg",
|
|
13
|
+
toggler_attributes: new DrupalAttribute().setAttribute(
|
|
14
|
+
"aria-label",
|
|
15
|
+
"Main navigation toggle",
|
|
16
|
+
),
|
|
12
17
|
site_name_classes: "h5 d-inline-block d-lg-none",
|
|
13
18
|
head: {
|
|
14
19
|
brand: {
|
package/data--no-form.js
CHANGED
|
@@ -6,10 +6,13 @@ const languageList = require("@openeuropa/bcl-language-list/data/data-modal");
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
variant: "eu",
|
|
8
8
|
navbar_id: "header-navbar",
|
|
9
|
+
toggler_attributes: new DrupalAttribute().setAttribute(
|
|
10
|
+
"aria-label",
|
|
11
|
+
"Main navigation toggle",
|
|
12
|
+
),
|
|
9
13
|
head: {
|
|
10
14
|
attributes: new DrupalAttribute().addClass([
|
|
11
15
|
"w-100",
|
|
12
|
-
"shadow-sm",
|
|
13
16
|
"bcl-header__top-navbar",
|
|
14
17
|
]),
|
|
15
18
|
disable_collapse: false,
|
package/data--simple.js
CHANGED
|
@@ -8,9 +8,15 @@ const modals = require("@openeuropa/bcl-data-header/data--modals");
|
|
|
8
8
|
module.exports = {
|
|
9
9
|
variant: "eu",
|
|
10
10
|
navbar_id: "header-navbar",
|
|
11
|
+
icon_path: "/icons.svg",
|
|
12
|
+
site_name: "Project name",
|
|
13
|
+
toggler_attributes: new DrupalAttribute().setAttribute(
|
|
14
|
+
"aria-label",
|
|
15
|
+
"Main navigation toggle",
|
|
16
|
+
),
|
|
11
17
|
head: {
|
|
12
18
|
attributes: new DrupalAttribute()
|
|
13
|
-
.addClass(["w-100", "
|
|
19
|
+
.addClass(["w-100", "bcl-header__top-navbar"])
|
|
14
20
|
.setAttribute("aria-label", "Top Navigation"),
|
|
15
21
|
disable_collapse: false,
|
|
16
22
|
collapse_id: "topNavbarDropdown",
|
package/data--ucpkn.js
CHANGED
|
@@ -3,6 +3,7 @@ const { DrupalAttribute } = require("drupal-attribute");
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
navbar_id: "header-navbar",
|
|
5
5
|
variant: "ucpkn",
|
|
6
|
+
icon_path: "/icons.svg",
|
|
6
7
|
site_name: "UCP Knowledge Network: Applied knowledge for action",
|
|
7
8
|
light: true,
|
|
8
9
|
project_logo: {
|
|
@@ -133,9 +134,13 @@ module.exports = {
|
|
|
133
134
|
],
|
|
134
135
|
},
|
|
135
136
|
},
|
|
137
|
+
toggler_attributes: new DrupalAttribute().setAttribute(
|
|
138
|
+
"aria-label",
|
|
139
|
+
"Main navigation toggle",
|
|
140
|
+
),
|
|
136
141
|
head: {
|
|
137
142
|
attributes: new DrupalAttribute()
|
|
138
|
-
.addClass(["w-100"
|
|
143
|
+
.addClass(["w-100"])
|
|
139
144
|
.setAttribute("aria-label", "Top Navigation"),
|
|
140
145
|
disable_collapse: true,
|
|
141
146
|
brand: {
|
package/data.js
CHANGED
|
@@ -10,6 +10,7 @@ module.exports = {
|
|
|
10
10
|
navbar_id: "header-navbar",
|
|
11
11
|
variant: "eu",
|
|
12
12
|
site_name: "Project name",
|
|
13
|
+
icon_path: "/icons.svg",
|
|
13
14
|
project_logo: {
|
|
14
15
|
path: "https://inno-ecl.s3.amazonaws.com/media/examples/placeholder.svg",
|
|
15
16
|
classes: "d-none d-lg-inline-block",
|
|
@@ -17,7 +18,7 @@ module.exports = {
|
|
|
17
18
|
},
|
|
18
19
|
head: {
|
|
19
20
|
attributes: new DrupalAttribute()
|
|
20
|
-
.addClass(["w-100", "
|
|
21
|
+
.addClass(["w-100", "bcl-header__top-navbar"])
|
|
21
22
|
.setAttribute("aria-label", "Top Navigation"),
|
|
22
23
|
disable_collapse: false,
|
|
23
24
|
collapse_id: "topNavbarDropdown",
|
|
@@ -42,6 +43,10 @@ module.exports = {
|
|
|
42
43
|
},
|
|
43
44
|
navbar,
|
|
44
45
|
modals,
|
|
46
|
+
toggler_attributes: new DrupalAttribute().setAttribute(
|
|
47
|
+
"aria-label",
|
|
48
|
+
"Main navigation toggle",
|
|
49
|
+
),
|
|
45
50
|
language_modal: { ...languageList, variant: "eu" },
|
|
46
51
|
breadcrumbs: {
|
|
47
52
|
...breadcrumbs,
|
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.9",
|
|
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.9",
|
|
12
|
+
"@openeuropa/bcl-language-list": "^1.10.9"
|
|
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": "cb9864341bfc98404071520d61568bd18e17e1fe"
|
|
28
28
|
}
|