@openeuropa/bcl-data-pagination 0.28.0 → 1.0.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--listing.js +10 -6
- package/data.js +13 -5
- package/package.json +2 -2
package/data--listing.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
const drupalAttribute = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
aria_label: "Pagination aria label",
|
|
5
|
-
attributes: new drupalAttribute().addClass(["mt-4-5"]),
|
|
6
4
|
alignment: "center",
|
|
7
5
|
icon_path: "/icons.svg",
|
|
8
6
|
first: {
|
|
9
7
|
label: "First",
|
|
10
8
|
path: "/example.html",
|
|
11
|
-
|
|
9
|
+
attributes: new drupalAttribute().setAttribute("aria-label", "First page"),
|
|
12
10
|
},
|
|
13
11
|
prev: {
|
|
14
12
|
label: "Previous",
|
|
15
13
|
path: "/example.html",
|
|
16
|
-
|
|
14
|
+
attributes: new drupalAttribute().setAttribute(
|
|
15
|
+
"aria-label",
|
|
16
|
+
"Previous page"
|
|
17
|
+
),
|
|
17
18
|
},
|
|
18
19
|
next: {
|
|
19
20
|
label: "Next",
|
|
20
21
|
path: "/example.html",
|
|
21
|
-
|
|
22
|
+
attributes: new drupalAttribute().setAttribute("aria-label", "Next page"),
|
|
22
23
|
},
|
|
23
24
|
last: {
|
|
24
25
|
label: "Last",
|
|
25
26
|
path: "/example.html",
|
|
26
|
-
|
|
27
|
+
attributes: new drupalAttribute().setAttribute("aria-label", "Last page"),
|
|
27
28
|
},
|
|
28
29
|
items: [
|
|
29
30
|
{
|
|
@@ -48,4 +49,7 @@ module.exports = {
|
|
|
48
49
|
path: "/example.html",
|
|
49
50
|
},
|
|
50
51
|
],
|
|
52
|
+
attributes: new drupalAttribute()
|
|
53
|
+
.addClass(["mt-4-5"])
|
|
54
|
+
.setAttribute("aria-label", "Pagination aria label"),
|
|
51
55
|
};
|
package/data.js
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
+
const drupalAttribute = require("drupal-attribute");
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
|
-
aria_label: "Test aria label",
|
|
3
4
|
icon_path: "/icons.svg",
|
|
4
5
|
first: {
|
|
5
6
|
label: "First",
|
|
6
7
|
path: "/example.html",
|
|
7
|
-
|
|
8
|
+
attributes: new drupalAttribute().setAttribute("aria-label", "First page"),
|
|
8
9
|
},
|
|
9
10
|
prev: {
|
|
10
11
|
label: "Previous",
|
|
11
12
|
path: "/example.html",
|
|
12
|
-
|
|
13
|
+
attributes: new drupalAttribute().setAttribute(
|
|
14
|
+
"aria-label",
|
|
15
|
+
"Previous page"
|
|
16
|
+
),
|
|
13
17
|
},
|
|
14
18
|
next: {
|
|
15
19
|
label: "Next",
|
|
16
20
|
path: "/example.html",
|
|
17
|
-
|
|
21
|
+
attributes: new drupalAttribute().setAttribute("aria-label", "Next page"),
|
|
18
22
|
},
|
|
19
23
|
last: {
|
|
20
24
|
label: "Last",
|
|
21
25
|
path: "/example.html",
|
|
22
|
-
|
|
26
|
+
attributes: new drupalAttribute().setAttribute("aria-label", "Last page"),
|
|
23
27
|
},
|
|
24
28
|
items: [
|
|
25
29
|
{
|
|
@@ -37,4 +41,8 @@ module.exports = {
|
|
|
37
41
|
path: "/example.html",
|
|
38
42
|
},
|
|
39
43
|
],
|
|
44
|
+
attributes: new drupalAttribute().setAttribute(
|
|
45
|
+
"aria-label",
|
|
46
|
+
"Test aria label"
|
|
47
|
+
),
|
|
40
48
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@openeuropa/bcl-data-pagination",
|
|
3
3
|
"author": "European Commission",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"description": "OE - BCL data pagination",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"design-system",
|
|
22
22
|
"twig"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "16b986722345644e83a37dc8091c07eecbdf4c8c"
|
|
25
25
|
}
|