@openeuropa/bcl-data-navigation 0.15.0 → 0.19.0
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 +0 -3
- package/dataCustom.js +0 -33
- package/dataMultiple.js +81 -0
- package/dataTabs.js +1 -34
- package/package.json +2 -2
package/data.js
CHANGED
package/dataCustom.js
CHANGED
|
@@ -27,38 +27,5 @@ module.exports = {
|
|
|
27
27
|
path: "/example.html",
|
|
28
28
|
disabled: true,
|
|
29
29
|
},
|
|
30
|
-
{
|
|
31
|
-
id: "dropdown-1",
|
|
32
|
-
link: true,
|
|
33
|
-
dropdown: true,
|
|
34
|
-
trigger: {
|
|
35
|
-
label: "Dropdown Toggle",
|
|
36
|
-
path: "#",
|
|
37
|
-
attributes: new drupalAttribute().addClass("nav-link"),
|
|
38
|
-
},
|
|
39
|
-
items: [
|
|
40
|
-
{
|
|
41
|
-
label: "I'm a link",
|
|
42
|
-
path: "/example.html",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: "I'm a button",
|
|
46
|
-
button: true,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
divider: true,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: "I'm a disabled button",
|
|
53
|
-
button: true,
|
|
54
|
-
disabled: true,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: "I'm a active button",
|
|
58
|
-
button: true,
|
|
59
|
-
active: true,
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
30
|
],
|
|
64
31
|
};
|
package/dataMultiple.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const drupalAttribute = require("drupal-attribute");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
vertical: true,
|
|
5
|
+
attributes: new drupalAttribute().addClass("bcl__nav"),
|
|
6
|
+
items: [
|
|
7
|
+
{
|
|
8
|
+
label: "I'm a link 1",
|
|
9
|
+
path: "/example.html",
|
|
10
|
+
navigation: {
|
|
11
|
+
items: [
|
|
12
|
+
{
|
|
13
|
+
label: "I'm a child link",
|
|
14
|
+
path: "/example.html",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "I'm a link 2",
|
|
21
|
+
path: "/example.html",
|
|
22
|
+
navigation: {
|
|
23
|
+
items: [
|
|
24
|
+
{
|
|
25
|
+
label: "I'm a child",
|
|
26
|
+
path: "/example.html",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "I'm a child",
|
|
30
|
+
path: "/example.html",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
label: "I'm a link 3",
|
|
37
|
+
path: "/example.html",
|
|
38
|
+
navigation: {
|
|
39
|
+
vertical: true,
|
|
40
|
+
attributes: new drupalAttribute().addClass("ps-3"),
|
|
41
|
+
items: [
|
|
42
|
+
{
|
|
43
|
+
label: "I'm a child link",
|
|
44
|
+
path: "/example.html",
|
|
45
|
+
navigation: {
|
|
46
|
+
vertical: true,
|
|
47
|
+
attributes: new drupalAttribute().addClass("ps-3"),
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
label: "I'm a child link",
|
|
51
|
+
path: "/example.html",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "I'm a child link",
|
|
55
|
+
path: "/example.html",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: "I'm a child link",
|
|
59
|
+
path: "/example.html",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: "I'm a child link",
|
|
66
|
+
path: "/example.html",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: "I'm a child link",
|
|
70
|
+
path: "/example.html",
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "I'm a link disabled",
|
|
77
|
+
path: "/example.html",
|
|
78
|
+
disabled: true,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
package/dataTabs.js
CHANGED
|
@@ -2,8 +2,8 @@ const drupalAttribute = require("drupal-attribute");
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
tabs: true,
|
|
5
|
+
nav: true,
|
|
5
6
|
tabs_content: true,
|
|
6
|
-
attributes: new drupalAttribute(),
|
|
7
7
|
items: [
|
|
8
8
|
{
|
|
9
9
|
label: "I'm a link",
|
|
@@ -44,39 +44,6 @@ module.exports = {
|
|
|
44
44
|
.setAttribute("data-bs-target", "#third")
|
|
45
45
|
.setAttribute("aria-controls", "third"),
|
|
46
46
|
},
|
|
47
|
-
{
|
|
48
|
-
id: "dropdown-1",
|
|
49
|
-
link: true,
|
|
50
|
-
dropdown: true,
|
|
51
|
-
trigger: {
|
|
52
|
-
label: "Dropdown Toggle",
|
|
53
|
-
path: "#",
|
|
54
|
-
attributes: new drupalAttribute().addClass("nav-link"),
|
|
55
|
-
},
|
|
56
|
-
items: [
|
|
57
|
-
{
|
|
58
|
-
label: "I'm a link",
|
|
59
|
-
path: "/example.html",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: "I'm a button",
|
|
63
|
-
button: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
divider: true,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
label: "I'm a disabled button",
|
|
70
|
-
button: true,
|
|
71
|
-
disabled: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
label: "I'm a active button",
|
|
75
|
-
button: true,
|
|
76
|
-
active: true,
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
47
|
{
|
|
81
48
|
label: "I'm a active button",
|
|
82
49
|
button: true,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-data-navigation",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.19.0",
|
|
6
6
|
"description": "OE - BCL data navigation",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"design-system",
|
|
22
22
|
"twig"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "8bfce06400c8829a46578797f0126b4e9c02e725"
|
|
25
25
|
}
|