@openeuropa/bcl-data-pagination 1.10.7 → 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--listing.js +6 -6
- package/data-v2.js +44 -0
- package/data.js +6 -6
- package/package.json +2 -2
package/data--listing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
alignment: "center",
|
|
@@ -6,12 +6,12 @@ module.exports = {
|
|
|
6
6
|
first: {
|
|
7
7
|
label: "First",
|
|
8
8
|
path: "/example.html",
|
|
9
|
-
attributes: new
|
|
9
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "First page"),
|
|
10
10
|
},
|
|
11
11
|
prev: {
|
|
12
12
|
label: "Previous",
|
|
13
13
|
path: "/example.html",
|
|
14
|
-
attributes: new
|
|
14
|
+
attributes: new DrupalAttribute().setAttribute(
|
|
15
15
|
"aria-label",
|
|
16
16
|
"Previous page",
|
|
17
17
|
),
|
|
@@ -19,12 +19,12 @@ module.exports = {
|
|
|
19
19
|
next: {
|
|
20
20
|
label: "Next",
|
|
21
21
|
path: "/example.html",
|
|
22
|
-
attributes: new
|
|
22
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "Next page"),
|
|
23
23
|
},
|
|
24
24
|
last: {
|
|
25
25
|
label: "Last",
|
|
26
26
|
path: "/example.html",
|
|
27
|
-
attributes: new
|
|
27
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "Last page"),
|
|
28
28
|
},
|
|
29
29
|
items: [
|
|
30
30
|
{
|
|
@@ -49,7 +49,7 @@ module.exports = {
|
|
|
49
49
|
path: "/example.html",
|
|
50
50
|
},
|
|
51
51
|
],
|
|
52
|
-
attributes: new
|
|
52
|
+
attributes: new DrupalAttribute()
|
|
53
53
|
.addClass(["mt-4-5"])
|
|
54
54
|
.setAttribute("aria-label", "Pagination aria label"),
|
|
55
55
|
};
|
package/data-v2.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
icon_path: "/icons.svg",
|
|
5
|
+
ellipsis_after: true,
|
|
6
|
+
ellipsis_before: true,
|
|
7
|
+
current_mobile_label: "Page 11 of 55",
|
|
8
|
+
first: {
|
|
9
|
+
label: "1",
|
|
10
|
+
path: "/example.html",
|
|
11
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "First page"),
|
|
12
|
+
},
|
|
13
|
+
prev: {
|
|
14
|
+
path: "/example.html",
|
|
15
|
+
attributes: new DrupalAttribute().setAttribute(
|
|
16
|
+
"aria-label",
|
|
17
|
+
"Previous page",
|
|
18
|
+
),
|
|
19
|
+
},
|
|
20
|
+
next: {
|
|
21
|
+
path: "/example.html",
|
|
22
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "Next page"),
|
|
23
|
+
},
|
|
24
|
+
last: {
|
|
25
|
+
label: "55",
|
|
26
|
+
path: "/example.html",
|
|
27
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "Last page"),
|
|
28
|
+
},
|
|
29
|
+
items: [
|
|
30
|
+
{
|
|
31
|
+
label: "10",
|
|
32
|
+
path: "/example.html",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: "11",
|
|
36
|
+
path: "/example.html",
|
|
37
|
+
active: true,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: "12",
|
|
41
|
+
path: "/example.html",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
};
|
package/data.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const
|
|
1
|
+
const { DrupalAttribute } = require("drupal-attribute");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
icon_path: "/icons.svg",
|
|
5
5
|
first: {
|
|
6
6
|
label: "First",
|
|
7
7
|
path: "/example.html",
|
|
8
|
-
attributes: new
|
|
8
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "First page"),
|
|
9
9
|
},
|
|
10
10
|
prev: {
|
|
11
11
|
label: "Previous",
|
|
12
12
|
path: "/example.html",
|
|
13
|
-
attributes: new
|
|
13
|
+
attributes: new DrupalAttribute().setAttribute(
|
|
14
14
|
"aria-label",
|
|
15
15
|
"Previous page",
|
|
16
16
|
),
|
|
@@ -18,12 +18,12 @@ module.exports = {
|
|
|
18
18
|
next: {
|
|
19
19
|
label: "Next",
|
|
20
20
|
path: "/example.html",
|
|
21
|
-
attributes: new
|
|
21
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "Next page"),
|
|
22
22
|
},
|
|
23
23
|
last: {
|
|
24
24
|
label: "Last",
|
|
25
25
|
path: "/example.html",
|
|
26
|
-
attributes: new
|
|
26
|
+
attributes: new DrupalAttribute().setAttribute("aria-label", "Last page"),
|
|
27
27
|
},
|
|
28
28
|
items: [
|
|
29
29
|
{
|
|
@@ -41,7 +41,7 @@ module.exports = {
|
|
|
41
41
|
path: "/example.html",
|
|
42
42
|
},
|
|
43
43
|
],
|
|
44
|
-
attributes: new
|
|
44
|
+
attributes: new DrupalAttribute().setAttribute(
|
|
45
45
|
"aria-label",
|
|
46
46
|
"Test aria label",
|
|
47
47
|
),
|
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": "1.10.
|
|
5
|
+
"version": "1.10.8",
|
|
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": "9c2e64443ae179948cbf748c41d438af7a0f2421"
|
|
25
25
|
}
|