---
e2e/snapshots.js | 54 ++++++++++-----------
gem/lib/pagy/extras/foundation.rb | 8 +--
test/pagy/extras/foundation_test.rb.rematch | 47 +++++++++---------
3 files changed, 55 insertions(+), 54 deletions(-)
diff --git a/e2e/snapshots.js b/e2e/snapshots.js
index e0d87bb26..66c73e346 100644
--- a/e2e/snapshots.js
+++ b/e2e/snapshots.js
@@ -122,61 +122,61 @@ module.exports = {
},
"Test /foundation-calendar #nav": {
"1": "2021-10-21 13:18:23 +0000 | 2021-10-21 23:14:50 +0000 |\n 2021-10-23 01:06:02 +0000 | 2021-10-25 18:54:35 +0000 | 2021-10-26 02:22:17\n +0000 | 2021-10-28 22:59:49 +0000 | 2021-10-30 15:02:25 +0000
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "2021-11-02 04:03:39 +0000 | 2021-11-04 22:41:23 +0000 |\n 2021-11-06 00:34:29 +0000 | 2021-11-06 23:56:16 +0000 | 2021-11-07 06:22:04\n +0000 | 2021-11-07 19:46:08 +0000 | 2021-11-08 09:31:13 +0000 | 2021-11-09\n 17:22:03 +0000 | 2021-11-11 05:29:54 +0000 | 2021-11-13 09:41:04 +0000 |\n 2021-11-16 07:48:22 +0000 | 2021-11-16 12:43:44 +0000 | 2021-11-17 16:03:07\n +0000 | 2021-11-20 02:39:01 +0000 | 2021-11-21 02:01:24 +0000 | 2021-11-23\n 19:24:43 +0000 | 2021-11-26 11:47:22 +0000 | 2021-11-28 06:30:04 +0000
",
"4": "\n \n ",
"5": "2022-01-01 19:18:06 +0000 | 2022-01-03 08:36:27 +0000 |\n 2022-01-03 23:31:01 +0000 | 2022-01-05 02:14:57 +0000 | 2022-01-06 09:26:03\n +0000 | 2022-01-07 20:22:22 +0000 | 2022-01-10 04:04:28 +0000 | 2022-01-11\n 17:17:55 +0000 | 2022-01-14 05:21:54 +0000 | 2022-01-16 01:18:58 +0000 |\n 2022-01-18 08:42:56 +0000 | 2022-01-19 00:45:04 +0000 | 2022-01-20 08:18:54\n +0000 | 2022-01-22 05:26:38 +0000 | 2022-01-24 10:57:50 +0000 | 2022-01-26\n 09:47:02 +0000 | 2022-01-28 20:44:30 +0000 | 2022-01-31 16:19:50 +0000
",
"6": "\n \n ",
"7": "2023-11-02 02:52:55 +0000 | 2023-11-02 06:00:32 +0000 |\n 2023-11-03 08:39:06 +0000 | 2023-11-04 23:51:22 +0000 | 2023-11-07 16:11:33\n +0000 | 2023-11-10 10:55:29 +0000 | 2023-11-12 01:20:18 +0000 | 2023-11-12\n 04:22:50 +0000 | 2023-11-12 08:38:58 +0000 | 2023-11-13 15:43:40 +0000
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "2023-10-01 11:54:24 +0000 | 2023-10-03 07:36:32 +0000 |\n 2023-10-05 05:13:57 +0000 | 2023-10-06 16:07:06 +0000 | 2023-10-09 00:03:52\n +0000 | 2023-10-09 02:32:01 +0000 | 2023-10-10 16:39:07 +0000 | 2023-10-12\n 13:28:16 +0000 | 2023-10-14 04:29:14 +0000 | 2023-10-17 03:30:24 +0000 |\n 2023-10-20 03:13:15 +0000 | 2023-10-20 20:47:06 +0000 | 2023-10-21 13:59:34\n +0000 | 2023-10-23 21:38:48 +0000 | 2023-10-24 06:07:13 +0000 | 2023-10-25\n 22:51:17 +0000 | 2023-10-26 21:12:50 +0000 | 2023-10-28 05:52:20 +0000 |\n 2023-10-29 22:11:01 +0000 | 2023-10-30 12:29:25 +0000
",
"10": "\n \n "
},
"Test /foundation-calendar #nav-js": {
"1": "2021-10-21 13:18:23 +0000 | 2021-10-21 23:14:50 +0000 |\n 2021-10-23 01:06:02 +0000 | 2021-10-25 18:54:35 +0000 | 2021-10-26 02:22:17\n +0000 | 2021-10-28 22:59:49 +0000 | 2021-10-30 15:02:25 +0000
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "2021-11-02 04:03:39 +0000 | 2021-11-04 22:41:23 +0000 |\n 2021-11-06 00:34:29 +0000 | 2021-11-06 23:56:16 +0000 | 2021-11-07 06:22:04\n +0000 | 2021-11-07 19:46:08 +0000 | 2021-11-08 09:31:13 +0000 | 2021-11-09\n 17:22:03 +0000 | 2021-11-11 05:29:54 +0000 | 2021-11-13 09:41:04 +0000 |\n 2021-11-16 07:48:22 +0000 | 2021-11-16 12:43:44 +0000 | 2021-11-17 16:03:07\n +0000 | 2021-11-20 02:39:01 +0000 | 2021-11-21 02:01:24 +0000 | 2021-11-23\n 19:24:43 +0000 | 2021-11-26 11:47:22 +0000 | 2021-11-28 06:30:04 +0000
",
"4": "\n \n ",
"5": "2022-01-01 19:18:06 +0000 | 2022-01-03 08:36:27 +0000 |\n 2022-01-03 23:31:01 +0000 | 2022-01-05 02:14:57 +0000 | 2022-01-06 09:26:03\n +0000 | 2022-01-07 20:22:22 +0000 | 2022-01-10 04:04:28 +0000 | 2022-01-11\n 17:17:55 +0000 | 2022-01-14 05:21:54 +0000 | 2022-01-16 01:18:58 +0000 |\n 2022-01-18 08:42:56 +0000 | 2022-01-19 00:45:04 +0000 | 2022-01-20 08:18:54\n +0000 | 2022-01-22 05:26:38 +0000 | 2022-01-24 10:57:50 +0000 | 2022-01-26\n 09:47:02 +0000 | 2022-01-28 20:44:30 +0000 | 2022-01-31 16:19:50 +0000
",
"6": "\n \n ",
"7": "2023-11-02 02:52:55 +0000 | 2023-11-02 06:00:32 +0000 |\n 2023-11-03 08:39:06 +0000 | 2023-11-04 23:51:22 +0000 | 2023-11-07 16:11:33\n +0000 | 2023-11-10 10:55:29 +0000 | 2023-11-12 01:20:18 +0000 | 2023-11-12\n 04:22:50 +0000 | 2023-11-12 08:38:58 +0000 | 2023-11-13 15:43:40 +0000
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "2023-10-01 11:54:24 +0000 | 2023-10-03 07:36:32 +0000 |\n 2023-10-05 05:13:57 +0000 | 2023-10-06 16:07:06 +0000 | 2023-10-09 00:03:52\n +0000 | 2023-10-09 02:32:01 +0000 | 2023-10-10 16:39:07 +0000 | 2023-10-12\n 13:28:16 +0000 | 2023-10-14 04:29:14 +0000 | 2023-10-17 03:30:24 +0000 |\n 2023-10-20 03:13:15 +0000 | 2023-10-20 20:47:06 +0000 | 2023-10-21 13:59:34\n +0000 | 2023-10-23 21:38:48 +0000 | 2023-10-24 06:07:13 +0000 | 2023-10-25\n 22:51:17 +0000 | 2023-10-26 21:12:50 +0000 | 2023-10-28 05:52:20 +0000 |\n 2023-10-29 22:11:01 +0000 | 2023-10-30 12:29:25 +0000
",
"10": "\n \n "
},
"Test /foundation-calendar #nav-js-responsive (500 width)": {
"1": "2021-10-21 13:18:23 +0000 | 2021-10-21 23:14:50 +0000 |\n 2021-10-23 01:06:02 +0000 | 2021-10-25 18:54:35 +0000 | 2021-10-26 02:22:17\n +0000 | 2021-10-28 22:59:49 +0000 | 2021-10-30 15:02:25 +0000
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "2021-11-02 04:03:39 +0000 | 2021-11-04 22:41:23 +0000 |\n 2021-11-06 00:34:29 +0000 | 2021-11-06 23:56:16 +0000 | 2021-11-07 06:22:04\n +0000 | 2021-11-07 19:46:08 +0000 | 2021-11-08 09:31:13 +0000 | 2021-11-09\n 17:22:03 +0000 | 2021-11-11 05:29:54 +0000 | 2021-11-13 09:41:04 +0000 |\n 2021-11-16 07:48:22 +0000 | 2021-11-16 12:43:44 +0000 | 2021-11-17 16:03:07\n +0000 | 2021-11-20 02:39:01 +0000 | 2021-11-21 02:01:24 +0000 | 2021-11-23\n 19:24:43 +0000 | 2021-11-26 11:47:22 +0000 | 2021-11-28 06:30:04 +0000
",
"4": "\n \n ",
"5": "2022-01-01 19:18:06 +0000 | 2022-01-03 08:36:27 +0000 |\n 2022-01-03 23:31:01 +0000 | 2022-01-05 02:14:57 +0000 | 2022-01-06 09:26:03\n +0000 | 2022-01-07 20:22:22 +0000 | 2022-01-10 04:04:28 +0000 | 2022-01-11\n 17:17:55 +0000 | 2022-01-14 05:21:54 +0000 | 2022-01-16 01:18:58 +0000 |\n 2022-01-18 08:42:56 +0000 | 2022-01-19 00:45:04 +0000 | 2022-01-20 08:18:54\n +0000 | 2022-01-22 05:26:38 +0000 | 2022-01-24 10:57:50 +0000 | 2022-01-26\n 09:47:02 +0000 | 2022-01-28 20:44:30 +0000 | 2022-01-31 16:19:50 +0000
",
"6": "\n \n ",
"7": "2023-11-02 02:52:55 +0000 | 2023-11-02 06:00:32 +0000 |\n 2023-11-03 08:39:06 +0000 | 2023-11-04 23:51:22 +0000 | 2023-11-07 16:11:33\n +0000 | 2023-11-10 10:55:29 +0000 | 2023-11-12 01:20:18 +0000 | 2023-11-12\n 04:22:50 +0000 | 2023-11-12 08:38:58 +0000 | 2023-11-13 15:43:40 +0000
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "2023-10-01 11:54:24 +0000 | 2023-10-03 07:36:32 +0000 |\n 2023-10-05 05:13:57 +0000 | 2023-10-06 16:07:06 +0000 | 2023-10-09 00:03:52\n +0000 | 2023-10-09 02:32:01 +0000 | 2023-10-10 16:39:07 +0000 | 2023-10-12\n 13:28:16 +0000 | 2023-10-14 04:29:14 +0000 | 2023-10-17 03:30:24 +0000 |\n 2023-10-20 03:13:15 +0000 | 2023-10-20 20:47:06 +0000 | 2023-10-21 13:59:34\n +0000 | 2023-10-23 21:38:48 +0000 | 2023-10-24 06:07:13 +0000 | 2023-10-25\n 22:51:17 +0000 | 2023-10-26 21:12:50 +0000 | 2023-10-28 05:52:20 +0000 |\n 2023-10-29 22:11:01 +0000 | 2023-10-30 12:29:25 +0000
",
"10": "\n \n "
},
"Test /foundation-calendar #nav-js-responsive (750 width)": {
"1": "2021-10-21 13:18:23 +0000 | 2021-10-21 23:14:50 +0000 |\n 2021-10-23 01:06:02 +0000 | 2021-10-25 18:54:35 +0000 | 2021-10-26 02:22:17\n +0000 | 2021-10-28 22:59:49 +0000 | 2021-10-30 15:02:25 +0000
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "2021-11-02 04:03:39 +0000 | 2021-11-04 22:41:23 +0000 |\n 2021-11-06 00:34:29 +0000 | 2021-11-06 23:56:16 +0000 | 2021-11-07 06:22:04\n +0000 | 2021-11-07 19:46:08 +0000 | 2021-11-08 09:31:13 +0000 | 2021-11-09\n 17:22:03 +0000 | 2021-11-11 05:29:54 +0000 | 2021-11-13 09:41:04 +0000 |\n 2021-11-16 07:48:22 +0000 | 2021-11-16 12:43:44 +0000 | 2021-11-17 16:03:07\n +0000 | 2021-11-20 02:39:01 +0000 | 2021-11-21 02:01:24 +0000 | 2021-11-23\n 19:24:43 +0000 | 2021-11-26 11:47:22 +0000 | 2021-11-28 06:30:04 +0000
",
"4": "\n \n ",
"5": "2022-01-01 19:18:06 +0000 | 2022-01-03 08:36:27 +0000 |\n 2022-01-03 23:31:01 +0000 | 2022-01-05 02:14:57 +0000 | 2022-01-06 09:26:03\n +0000 | 2022-01-07 20:22:22 +0000 | 2022-01-10 04:04:28 +0000 | 2022-01-11\n 17:17:55 +0000 | 2022-01-14 05:21:54 +0000 | 2022-01-16 01:18:58 +0000 |\n 2022-01-18 08:42:56 +0000 | 2022-01-19 00:45:04 +0000 | 2022-01-20 08:18:54\n +0000 | 2022-01-22 05:26:38 +0000 | 2022-01-24 10:57:50 +0000 | 2022-01-26\n 09:47:02 +0000 | 2022-01-28 20:44:30 +0000 | 2022-01-31 16:19:50 +0000
",
"6": "\n \n ",
"7": "2023-11-02 02:52:55 +0000 | 2023-11-02 06:00:32 +0000 |\n 2023-11-03 08:39:06 +0000 | 2023-11-04 23:51:22 +0000 | 2023-11-07 16:11:33\n +0000 | 2023-11-10 10:55:29 +0000 | 2023-11-12 01:20:18 +0000 | 2023-11-12\n 04:22:50 +0000 | 2023-11-12 08:38:58 +0000 | 2023-11-13 15:43:40 +0000
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "2023-10-01 11:54:24 +0000 | 2023-10-03 07:36:32 +0000 |\n 2023-10-05 05:13:57 +0000 | 2023-10-06 16:07:06 +0000 | 2023-10-09 00:03:52\n +0000 | 2023-10-09 02:32:01 +0000 | 2023-10-10 16:39:07 +0000 | 2023-10-12\n 13:28:16 +0000 | 2023-10-14 04:29:14 +0000 | 2023-10-17 03:30:24 +0000 |\n 2023-10-20 03:13:15 +0000 | 2023-10-20 20:47:06 +0000 | 2023-10-21 13:59:34\n +0000 | 2023-10-23 21:38:48 +0000 | 2023-10-24 06:07:13 +0000 | 2023-10-25\n 22:51:17 +0000 | 2023-10-26 21:12:50 +0000 | 2023-10-28 05:52:20 +0000 |\n 2023-10-29 22:11:01 +0000 | 2023-10-30 12:29:25 +0000
",
"10": "\n \n "
},
"Test /foundation-calendar #nav-js-responsive (1000 width)": {
"1": "2021-10-21 13:18:23 +0000 | 2021-10-21 23:14:50 +0000 |\n 2021-10-23 01:06:02 +0000 | 2021-10-25 18:54:35 +0000 | 2021-10-26 02:22:17\n +0000 | 2021-10-28 22:59:49 +0000 | 2021-10-30 15:02:25 +0000
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "2021-11-02 04:03:39 +0000 | 2021-11-04 22:41:23 +0000 |\n 2021-11-06 00:34:29 +0000 | 2021-11-06 23:56:16 +0000 | 2021-11-07 06:22:04\n +0000 | 2021-11-07 19:46:08 +0000 | 2021-11-08 09:31:13 +0000 | 2021-11-09\n 17:22:03 +0000 | 2021-11-11 05:29:54 +0000 | 2021-11-13 09:41:04 +0000 |\n 2021-11-16 07:48:22 +0000 | 2021-11-16 12:43:44 +0000 | 2021-11-17 16:03:07\n +0000 | 2021-11-20 02:39:01 +0000 | 2021-11-21 02:01:24 +0000 | 2021-11-23\n 19:24:43 +0000 | 2021-11-26 11:47:22 +0000 | 2021-11-28 06:30:04 +0000
",
"4": "\n \n ",
"5": "2022-01-01 19:18:06 +0000 | 2022-01-03 08:36:27 +0000 |\n 2022-01-03 23:31:01 +0000 | 2022-01-05 02:14:57 +0000 | 2022-01-06 09:26:03\n +0000 | 2022-01-07 20:22:22 +0000 | 2022-01-10 04:04:28 +0000 | 2022-01-11\n 17:17:55 +0000 | 2022-01-14 05:21:54 +0000 | 2022-01-16 01:18:58 +0000 |\n 2022-01-18 08:42:56 +0000 | 2022-01-19 00:45:04 +0000 | 2022-01-20 08:18:54\n +0000 | 2022-01-22 05:26:38 +0000 | 2022-01-24 10:57:50 +0000 | 2022-01-26\n 09:47:02 +0000 | 2022-01-28 20:44:30 +0000 | 2022-01-31 16:19:50 +0000
",
"6": "\n \n ",
"7": "2023-11-02 02:52:55 +0000 | 2023-11-02 06:00:32 +0000 |\n 2023-11-03 08:39:06 +0000 | 2023-11-04 23:51:22 +0000 | 2023-11-07 16:11:33\n +0000 | 2023-11-10 10:55:29 +0000 | 2023-11-12 01:20:18 +0000 | 2023-11-12\n 04:22:50 +0000 | 2023-11-12 08:38:58 +0000 | 2023-11-13 15:43:40 +0000
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "2023-10-01 11:54:24 +0000 | 2023-10-03 07:36:32 +0000 |\n 2023-10-05 05:13:57 +0000 | 2023-10-06 16:07:06 +0000 | 2023-10-09 00:03:52\n +0000 | 2023-10-09 02:32:01 +0000 | 2023-10-10 16:39:07 +0000 | 2023-10-12\n 13:28:16 +0000 | 2023-10-14 04:29:14 +0000 | 2023-10-17 03:30:24 +0000 |\n 2023-10-20 03:13:15 +0000 | 2023-10-20 20:47:06 +0000 | 2023-10-21 13:59:34\n +0000 | 2023-10-23 21:38:48 +0000 | 2023-10-24 06:07:13 +0000 | 2023-10-25\n 22:51:17 +0000 | 2023-10-26 21:12:50 +0000 | 2023-10-28 05:52:20 +0000 |\n 2023-10-29 22:11:01 +0000 | 2023-10-30 12:29:25 +0000
",
"10": "\n \n "
},
@@ -453,13 +453,13 @@ module.exports = {
},
"Test /foundation #combo-nav-js": {
"1": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
",
"4": "\n \n ",
"5": "41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
",
"6": "\n \n ",
"7": "\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
",
"10": "\n \n ",
"11": "\n 941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960\n
",
@@ -691,61 +691,61 @@ module.exports = {
},
"Test /foundation #nav": {
"1": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
",
"4": "\n \n ",
"5": "41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
",
"6": "\n \n ",
"7": "\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
",
"10": "\n \n "
},
"Test /foundation #nav-js": {
"1": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
",
"4": "\n \n ",
"5": "41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
",
"6": "\n \n ",
"7": "\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
",
"10": "\n \n "
},
"Test /foundation #nav-js-responsive (500 width)": {
"1": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
",
"4": "\n \n ",
"5": "41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
",
"6": "\n \n ",
"7": "\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
",
"10": "\n \n "
},
"Test /foundation #nav-js-responsive (750 width)": {
"1": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
",
"4": "\n \n ",
"5": "41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
",
"6": "\n \n ",
"7": "\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
",
"10": "\n \n "
},
"Test /foundation #nav-js-responsive (1000 width)": {
"1": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
",
- "2": "\n \n ",
+ "2": "\n \n ",
"3": "21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
",
"4": "\n \n ",
"5": "41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
",
"6": "\n \n ",
"7": "\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
",
- "8": "\n \n ",
+ "8": "\n \n ",
"9": "\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
",
"10": "\n \n "
},
@@ -1022,9 +1022,9 @@ module.exports = {
"3": "\n \n \n "
},
"Test trimmed links for /foundation?trim=true&page=1": {
- "1": "\n \n ",
- "2": "\n \n ",
- "3": "\n \n "
+ "1": "\n \n ",
+ "2": "\n \n ",
+ "3": "\n \n "
},
"Test trimmed links for /foundation?trim=true&page=2": {
"1": "\n \n ",
@@ -1121,8 +1121,8 @@ module.exports = {
"2": "\n \n \n "
},
"Test trimmed links for /foundation-calendar?trim=true&month_page=1": {
- "1": "\n \n ",
- "2": "\n \n "
+ "1": "\n \n ",
+ "2": "\n \n "
},
"Test trimmed links for /foundation-calendar?trim=true&month_page=2": {
"1": "\n \n ",
diff --git a/gem/lib/pagy/extras/foundation.rb b/gem/lib/pagy/extras/foundation.rb
index 8c39db13d..a6c3ef34a 100644
--- a/gem/lib/pagy/extras/foundation.rb
+++ b/gem/lib/pagy/extras/foundation.rb
@@ -75,8 +75,8 @@ def foundation_prev_html(pagy, a)
if (p_prev = pagy.prev)
%(#{a.(p_prev, pagy_t('pagy.prev'), aria_label: pagy_t('pagy.aria_label.prev'))} )
else
- %(#{pagy_t('pagy.prev')} )
+ %(#{pagy_t('pagy.prev')} )
end
end
@@ -84,8 +84,8 @@ def foundation_next_html(pagy, a)
if (p_next = pagy.next)
%(#{a.(p_next, pagy_t('pagy.next'), aria_label: pagy_t('pagy.aria_label.next'))} )
else
- %(#{pagy_t('pagy.next')} )
+ %(#{pagy_t('pagy.next')} )
end
end
end
diff --git a/test/pagy/extras/foundation_test.rb.rematch b/test/pagy/extras/foundation_test.rb.rematch
index 8287dd5ee..031327124 100644
--- a/test/pagy/extras/foundation_test.rb.rematch
+++ b/test/pagy/extras/foundation_test.rb.rematch
@@ -2,17 +2,17 @@
pagy/extras/foundation::#pagy_foundation_combo_nav_js#test_0001_renders first, intermediate and last pages:
:plain_1: ' '
:extras_1: ' '
@@ -37,7 +37,7 @@ pagy/extras/foundation::#pagy_foundation_combo_nav_js#test_0001_renders first, i
nowrap">Page #
- of 6> '
+ of 6> '
:extras_6: ' '
+ of 6> '
pagy/extras/foundation::#pagy_foundation_nav#test_0001_renders first, intermediate and last pages:
:plain_1:
:extras_1:
+ aria-label="Previous"><1 2 3 4 5 50 >
:plain_20:
+ class="next disabled" role="link" aria-disabled="true" aria-label="Next">>
:extras_50:
+ class="next disabled" role="link" aria-disabled="true" aria-label="Next">>
pagy/extras/foundation::#pagy_foundation_nav_js#test_0002_renders first, intermediate and last pages with required steps:
- :plain_1:
+ :plain_1:
:extras_1:
+ data-pagy="WyJuYXYiLHsiYmVmb3JlIjoiPHVsIGNsYXNzPVwicGFnaW5hdGlvblwiPjxsaSBjbGFzcz1cInByZXYgZGlzYWJsZWRcIiByb2xlPVwibGlua1wiIGFyaWEtZGlzYWJsZWQ9XCJ0cnVlXCIgYXJpYS1sYWJlbD1cIlByZXZpb3VzXCI+Jmx0OzwvbGk+IiwiYSI6IjxsaT48YSBhbmNob3Jfc3RyaW5nIGhyZWY9XCIvZm9vP3BhZ2U9X19wYWd5X3BhZ2VfX1wiPl9fcGFneV9sYWJlbF9fPC9hPjwvbGk+IiwiY3VycmVudCI6IjxsaSBjbGFzcz1cImN1cnJlbnRcIiByb2xlPVwibGlua1wiIGFyaWEtY3VycmVudD1cInBhZ2VcIiBhcmlhLWRpc2FibGVkPVwidHJ1ZVwiPl9fcGFneV9sYWJlbF9fPC9saT4iLCJnYXAiOiI8bGkgY2xhc3M9XCJlbGxpcHNpcyBnYXBcIj48L2xpPiIsImFmdGVyIjoiPGxpIGNsYXNzPVwibmV4dFwiPjxhIGFuY2hvcl9zdHJpbmcgaHJlZj1cIi9mb28/cGFnZT0yXCIgYXJpYS1sYWJlbD1cIk5leHRcIj4mZ3Q7PC9hPjwvbGk+PC91bD4ifSx7IjAiOlsiMSIsMiwzLCJnYXAiLDUwXSwiNjAwIjpbIjEiLDIsMyw0LCJnYXAiLDUwXX0sbnVsbF0=">
:plain_20:
:extras_20:
- :plain_50:
+ :plain_50:
:extras_50:
+ data-pagy="WyJuYXYiLHsiYmVmb3JlIjoiPHVsIGNsYXNzPVwicGFnaW5hdGlvblwiPjxsaSBjbGFzcz1cInByZXZcIj48YSBhbmNob3Jfc3RyaW5nIGhyZWY9XCIvZm9vP3BhZ2U9NDlcIiBhcmlhLWxhYmVsPVwiUHJldmlvdXNcIj4mbHQ7PC9hPjwvbGk+IiwiYSI6IjxsaT48YSBhbmNob3Jfc3RyaW5nIGhyZWY9XCIvZm9vP3BhZ2U9X19wYWd5X3BhZ2VfX1wiPl9fcGFneV9sYWJlbF9fPC9hPjwvbGk+IiwiY3VycmVudCI6IjxsaSBjbGFzcz1cImN1cnJlbnRcIiByb2xlPVwibGlua1wiIGFyaWEtY3VycmVudD1cInBhZ2VcIiBhcmlhLWRpc2FibGVkPVwidHJ1ZVwiPl9fcGFneV9sYWJlbF9fPC9saT4iLCJnYXAiOiI8bGkgY2xhc3M9XCJlbGxpcHNpcyBnYXBcIj48L2xpPiIsImFmdGVyIjoiPGxpIGNsYXNzPVwibmV4dCBkaXNhYmxlZFwiIHJvbGU9XCJsaW5rXCIgYXJpYS1kaXNhYmxlZD1cInRydWVcIiBhcmlhLWxhYmVsPVwiTmV4dFwiPiZndDs8L2xpPjwvdWw+In0seyIwIjpbMSwiZ2FwIiw0OCw0OSwiNTAiXSwiNjAwIjpbMSwiZ2FwIiw0Nyw0OCw0OSwiNTAiXX0sbnVsbF0=">
pagy/extras/foundation::#pagy_foundation_nav_js#test_0001_renders single and multiple pages when used with Pagy::Countless:
- :plain_1_0:
+ :plain_1_0:
:extras_1_0:
+ data-pagy="WyJuYXYiLHsiYmVmb3JlIjoiPHVsIGNsYXNzPVwicGFnaW5hdGlvblwiPjxsaSBjbGFzcz1cInByZXYgZGlzYWJsZWRcIiByb2xlPVwibGlua1wiIGFyaWEtZGlzYWJsZWQ9XCJ0cnVlXCIgYXJpYS1sYWJlbD1cIlByZXZpb3VzXCI+Jmx0OzwvbGk+IiwiYSI6IjxsaT48YSBhbmNob3Jfc3RyaW5nIGhyZWY9XCIvZm9vP3BhZ2U9X19wYWd5X3BhZ2VfX1wiPl9fcGFneV9sYWJlbF9fPC9hPjwvbGk+IiwiY3VycmVudCI6IjxsaSBjbGFzcz1cImN1cnJlbnRcIiByb2xlPVwibGlua1wiIGFyaWEtY3VycmVudD1cInBhZ2VcIiBhcmlhLWRpc2FibGVkPVwidHJ1ZVwiPl9fcGFneV9sYWJlbF9fPC9saT4iLCJnYXAiOiI8bGkgY2xhc3M9XCJlbGxpcHNpcyBnYXBcIj48L2xpPiIsImFmdGVyIjoiPGxpIGNsYXNzPVwibmV4dCBkaXNhYmxlZFwiIHJvbGU9XCJsaW5rXCIgYXJpYS1kaXNhYmxlZD1cInRydWVcIiBhcmlhLWxhYmVsPVwiTmV4dFwiPiZndDs8L2xpPjwvdWw+In0seyIwIjpbIjEiXSwiNjAwIjpbIjEiXX0sbnVsbF0=">
:plain_2_23:
:extras_2_23:
From 171970d77b0715923b2daa67ddd6008cff0b29f7 Mon Sep 17 00:00:00 2001
From: Domizio Demichelis
Date: Thu, 11 Apr 2024 07:54:11 +0700
Subject: [PATCH 3/3] Version 8.1.1
---
.github/ISSUE_TEMPLATE/Code.yml | 14 +++++++++-----
.github/latest_release_body.md | 8 +++-----
CHANGELOG.md | 5 +++++
README.md | 2 +-
gem/apps/calendar.ru | 2 +-
gem/apps/demo.ru | 2 +-
gem/apps/rails.ru | 2 +-
gem/apps/repro.ru | 2 +-
gem/bin/pagy | 2 +-
gem/config/pagy.rb | 2 +-
gem/javascripts/pagy-dev.js | 4 ++--
gem/javascripts/pagy-module.js | 2 +-
gem/javascripts/pagy.js | 2 +-
gem/lib/pagy.rb | 2 +-
retype.yml | 2 +-
src/pagy.ts | 2 +-
16 files changed, 31 insertions(+), 24 deletions(-)
diff --git a/.github/ISSUE_TEMPLATE/Code.yml b/.github/ISSUE_TEMPLATE/Code.yml
index 674e8eb09..5c6745edd 100644
--- a/.github/ISSUE_TEMPLATE/Code.yml
+++ b/.github/ISSUE_TEMPLATE/Code.yml
@@ -19,7 +19,7 @@ body:
attributes:
label: 👀 Before submitting...
options:
- - label: I upgraded to pagy version 8.1.0
+ - label: I upgraded to pagy version 8.1.1
required: true
- label: I searched through the [Documentation](https://ddnexus.github.io/pagy/)
required: true
@@ -49,7 +49,7 @@ body:
and we won't install/setup/debug your partial or complete application.**
- Avoid posting useless things like:
+ 🚩 Avoid posting USELESS THINGS like:
- Code snippets / Log transcripts
- Descriptions of errors / behaviors / expectations
@@ -71,16 +71,20 @@ body:
options:
- label: I am providing a VALID code file that confirms the bug
required: true
+ - label: I am NOT posting any of the USELESS THINGS listed above
+ required: true
- label: I am aware that this issue will be automatically closed if the code file is missing or INVALID
required: true
- type: textarea
id: description
attributes:
- label: Description
+ label: 💬 Description
placeholder: >
- 1. Describe what actually happens WITH THE CODE FILE you provided
+ 1. DO NOT POST any of the useless things listed above
+
+ 2. Describe what actually happens WITH THE CODE FILE you provided
- 2. Describe what should happen instead
+ 3. Describe what should happen instead
validations:
required: true
diff --git a/.github/latest_release_body.md b/.github/latest_release_body.md
index 3b9c28f17..d382f3db0 100644
--- a/.github/latest_release_body.md
+++ b/.github/latest_release_body.md
@@ -11,13 +11,11 @@ If you wish to keep your favorites alive, please, [vote here](https://github.com
- Better frontend helpers
- See the [CHANGELOG](https://ddnexus.github.io/pagy/changelog) for possible breaking changes
-### Changes in 8.1.0
+### Changes in 8.1.1
-- Implement max_pages to limit the pagination regardless the actual count
-- Improve efficiency of params in pagy_url_for
-- Remove nil variables from DEFAULT
-- Removed redundant @pages, aliased with @last
+- Fixed broken aria-label for disabled links in Foundation (#685)
+- Simplification of input variables and defaults: params and request_path are not instance variables
[CHANGELOG](https://ddnexus.github.io/pagy/changelog)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d3e04b944..948e6fc0a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,11 @@ If you upgrade from version `< 8.0.0` see the following:
+## Version 8.1.1
+
+- Fixed broken aria-label for disabled links in Foundation (#685)
+- Simplification of input variables and defaults: params and request_path are not instance variables
+
## Version 8.1.0
- Implement max_pages to limit the pagination regardless the actual count
diff --git a/README.md b/README.md
index 2c69d2d9b..750cd5e6f 100644
--- a/README.md
+++ b/README.md
@@ -375,7 +375,7 @@ See also the [How To Page](https://ddnexus.github.io/pagy/docs/how-to)
## Top 💯 Contributors
-[ ](https://github.com/ddnexus)[ ](https://github.com/benkoshy)[ ](https://github.com/dependabot[bot])[ ](https://github.com/grosser)[ ](https://github.com/Earlopain)[ ](https://github.com/workgena)[ ](https://github.com/bquorning)[ ](https://github.com/molfar)[ ](https://github.com/sunny)[ ](https://github.com/enzinia)[ ](https://github.com/espen)[ ](https://github.com/berniechiu)[ ](https://github.com/renshuki)[ ](https://github.com/wimdavies)[ ](https://github.com/tiagotex)[ ](https://github.com/gamafranco)[ ](https://github.com/thomasklemm)[ ](https://github.com/tersor)[ ](https://github.com/simonneutert)[ ](https://github.com/rainerborene)[ ](https://github.com/petergoldstein)[ ](https://github.com/sabljak)[ ](https://github.com/cseelus)[ ](https://github.com/ashmaroli)[ ](https://github.com/747)[ ](https://github.com/WilliamHorel)[ ](https://github.com/okuramasafumi)[ ](https://github.com/olleolleolle)[ ](https://github.com/pedrocarmona)[ ](https://github.com/rafaeelaudibert)[ ](https://github.com/rafaelmontas)[ ](https://github.com/yenshirak)[ ](https://github.com/Tolchi)[ ](https://github.com/serghost)[ ](https://github.com/sliminas)[ ](https://github.com/artplan1)[ ](https://github.com/woller)[ ](https://github.com/sk8higher)[ ](https://github.com/muhammadnawzad)[ ](https://github.com/ronald)[ ](https://github.com/achmiral)[ ](https://github.com/mauro-ni)[ ](https://github.com/borama)[ ](https://github.com/creativetags)[ ](https://github.com/mcary)[ ](https://github.com/marckohlbrugge)[ ](https://github.com/tr4b4nt)[ ](https://github.com/tiejianluo)[ ](https://github.com/szTheory)[ ](https://github.com/smoothdvd)[ ](https://github.com/rhodes-david)[ ](https://github.com/radinreth)[ ](https://github.com/okliv)[ ](https://github.com/nedimdz)[ ](https://github.com/msdundar)[ ](https://github.com/m-abdurrehman)[ ](https://github.com/dwieringa)[ ](https://github.com/jyuvaraj03)[ ](https://github.com/YutoYasunaga)[ ](https://github.com/iamyujinwon)[ ](https://github.com/yhk1038)[ ](https://github.com/ya-s-u)[ ](https://github.com/yshmarov)[ ](https://github.com/thattimc)[ ](https://github.com/thomaschauffour)[ ](https://github.com/snkashis)[ ](https://github.com/fluser)[ ](https://github.com/tulak)[ ](https://github.com/Federico-G)[ ](https://github.com/egimenos)[ ](https://github.com/elliotlarson)[ ](https://github.com/hungdiep97)[ ](https://github.com/djpremier)[ ](https://github.com/davidwessman)[ ](https://github.com/david-a-wheeler)[ ](https://github.com/MrMoins)[ ](https://github.com/excid3)[ ](https://github.com/cellvinchung)[ ](https://github.com/brunoocasali)[ ](https://github.com/BrandonKlotz)[ ](https://github.com/Atul9)[ ](https://github.com/amenon)[ ](https://github.com/artinboghosian)[ ](https://github.com/antonzaharia)[ ](https://github.com/andrew)[ ](https://github.com/AliOsm)[ ](https://github.com/AbelToy)[ ](https://github.com/maful)[ ](https://github.com/loed-idzinga)[ ](https://github.com/epeirce)[ ](https://github.com/kobusjoubert)[ ](https://github.com/KevinColemanInc)[ ](https://github.com/neontuna)[ ](https://github.com/xuanxu)[ ](https://github.com/jpgarritano)[ ](https://github.com/archonic)[ ](https://github.com/jonasMirendo)[ ](https://github.com/lostapathy)[ ](https://github.com/jivko-chobanov)[ ](https://github.com/whithajess)
+[ ](https://github.com/ddnexus)[ ](https://github.com/benkoshy)[ ](https://github.com/dependabot[bot])[ ](https://github.com/grosser)[ ](https://github.com/Earlopain)[ ](https://github.com/workgena)[ ](https://github.com/bquorning)[ ](https://github.com/molfar)[ ](https://github.com/sunny)[ ](https://github.com/enzinia)[ ](https://github.com/espen)[ ](https://github.com/berniechiu)[ ](https://github.com/renshuki)[ ](https://github.com/wimdavies)[ ](https://github.com/tiagotex)[ ](https://github.com/gamafranco)[ ](https://github.com/thomasklemm)[ ](https://github.com/tersor)[ ](https://github.com/simonneutert)[ ](https://github.com/rainerborene)[ ](https://github.com/petergoldstein)[ ](https://github.com/sabljak)[ ](https://github.com/cseelus)[ ](https://github.com/ashmaroli)[ ](https://github.com/747)[ ](https://github.com/WilliamHorel)[ ](https://github.com/okuramasafumi)[ ](https://github.com/olleolleolle)[ ](https://github.com/pedrocarmona)[ ](https://github.com/rafaeelaudibert)[ ](https://github.com/rafaelmontas)[ ](https://github.com/yenshirak)[ ](https://github.com/Tolchi)[ ](https://github.com/serghost)[ ](https://github.com/sliminas)[ ](https://github.com/artplan1)[ ](https://github.com/woller)[ ](https://github.com/sk8higher)[ ](https://github.com/muhammadnawzad)[ ](https://github.com/ronald)[ ](https://github.com/achmiral)[ ](https://github.com/mauro-ni)[ ](https://github.com/borama)[ ](https://github.com/creativetags)[ ](https://github.com/mcary)[ ](https://github.com/marckohlbrugge)[ ](https://github.com/tr4b4nt)[ ](https://github.com/tiejianluo)[ ](https://github.com/szTheory)[ ](https://github.com/smoothdvd)[ ](https://github.com/rhodes-david)[ ](https://github.com/radinreth)[ ](https://github.com/okliv)[ ](https://github.com/nedimdz)[ ](https://github.com/msdundar)[ ](https://github.com/m-abdurrehman)[ ](https://github.com/dwieringa)[ ](https://github.com/jyuvaraj03)[ ](https://github.com/YutoYasunaga)[ ](https://github.com/iamyujinwon)[ ](https://github.com/yhk1038)[ ](https://github.com/ya-s-u)[ ](https://github.com/yshmarov)[ ](https://github.com/thattimc)[ ](https://github.com/thomaschauffour)[ ](https://github.com/snkashis)[ ](https://github.com/fluser)[ ](https://github.com/tulak)[ ](https://github.com/Federico-G)[ ](https://github.com/egimenos)[ ](https://github.com/elliotlarson)[ ](https://github.com/hungdiep97)[ ](https://github.com/djpremier)[ ](https://github.com/davidwessman)[ ](https://github.com/david-a-wheeler)[ ](https://github.com/MrMoins)[ ](https://github.com/excid3)[ ](https://github.com/cellvinchung)[ ](https://github.com/brunoocasali)[ ](https://github.com/BrandonKlotz)[ ](https://github.com/Atul9)[ ](https://github.com/amenon)[ ](https://github.com/artinboghosian)[ ](https://github.com/antonzaharia)[ ](https://github.com/andrew)[ ](https://github.com/AliOsm)[ ](https://github.com/AbelToy)[ ](https://github.com/maful)[ ](https://github.com/loed-idzinga)[ ](https://github.com/epeirce)[ ](https://github.com/kobusjoubert)[ ](https://github.com/KevinColemanInc)[ ](https://github.com/neontuna)[ ](https://github.com/xuanxu)[ ](https://github.com/jpgarritano)[ ](https://github.com/archonic)[ ](https://github.com/jonasMirendo)[ ](https://github.com/lostapathy)[ ](https://github.com/jivko-chobanov)[ ](https://github.com/whithajess)
diff --git a/gem/apps/calendar.ru b/gem/apps/calendar.ru
index 8d5bc71fe..1fca30bcf 100644
--- a/gem/apps/calendar.ru
+++ b/gem/apps/calendar.ru
@@ -18,7 +18,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#4-calendar-app
-VERSION = '8.1.0'
+VERSION = '8.1.1'
require 'bundler/inline'
gemfile(true) do
diff --git a/gem/apps/demo.ru b/gem/apps/demo.ru
index a1973474a..630c3af3e 100644
--- a/gem/apps/demo.ru
+++ b/gem/apps/demo.ru
@@ -18,7 +18,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#3-demo-app
-VERSION = '8.1.0'
+VERSION = '8.1.1'
require 'bundler/inline'
gemfile(true) do
diff --git a/gem/apps/rails.ru b/gem/apps/rails.ru
index b8d632c13..3938df44f 100644
--- a/gem/apps/rails.ru
+++ b/gem/apps/rails.ru
@@ -15,7 +15,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#2-rails-app
-VERSION = '8.1.0'
+VERSION = '8.1.1'
# Gemfile
require 'bundler/inline'
diff --git a/gem/apps/repro.ru b/gem/apps/repro.ru
index 5a19e5bfa..4c8df5664 100644
--- a/gem/apps/repro.ru
+++ b/gem/apps/repro.ru
@@ -15,7 +15,7 @@
# DOC
# https://ddnexus.github.io/pagy/playground/#1-repro-app
-VERSION = '8.1.0'
+VERSION = '8.1.1'
require 'bundler/inline'
gemfile(true) do
diff --git a/gem/bin/pagy b/gem/bin/pagy
index 6a106a6ad..c3aea8a65 100755
--- a/gem/bin/pagy
+++ b/gem/bin/pagy
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
-VERSION = '8.1.0'
+VERSION = '8.1.1'
APPS = %w[repro rails demo calendar].freeze
require_relative '../lib/optimist'
diff --git a/gem/config/pagy.rb b/gem/config/pagy.rb
index f17c2ca92..910dc9fb3 100644
--- a/gem/config/pagy.rb
+++ b/gem/config/pagy.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-# Pagy initializer file (8.1.0)
+# Pagy initializer file (8.1.1)
# Customize only what you really need and notice that the core Pagy works also without any of the following lines.
# Should you just cherry pick part of this file, please maintain the require-order of the extras
diff --git a/gem/javascripts/pagy-dev.js b/gem/javascripts/pagy-dev.js
index 5f12ca6d5..8fb2f162d 100644
--- a/gem/javascripts/pagy-dev.js
+++ b/gem/javascripts/pagy-dev.js
@@ -82,7 +82,7 @@ window.Pagy = (() => {
const trim = (a, param) => a.replace(new RegExp(`[?&]${param}=1\\b(?!&)|\\b${param}=1&`), "");
// Public interface
return {
- version: "8.1.0",
+ version: "8.1.1",
// Scan for elements with a "data-pagy" attribute and call their init functions with the decoded args
init(arg) {
const target = arg instanceof Element ? arg : document;
@@ -111,4 +111,4 @@ window.Pagy = (() => {
}
};
})();
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFneS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBhZ3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQWtCQSxNQUFNLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRTtJQUNmLDRDQUE0QztJQUM1QyxNQUFNLFdBQVcsR0FBRyxJQUFJLGNBQWMsQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUNOLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLGdCQUFnQixDQUFhLFdBQVcsQ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ICAgICAgICAgICAgICAgIGxldCBmaWxsZWQ7XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBpdGVtID09PSBcIm51bWJlclwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGxlZCA9IGZpbGxJbih0b2tlbnMuYSwgaXRlbS50b1N0cmluZygpLCBsYWJlbCk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChpdGVtID09PSBcImdhcFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGxlZCA9IHRva2Vucy5nYXA7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHsgLy8gYWN0aXZlIHBhZ2VcbiAgICAgICAgICAgICAgICAgICAgZmlsbGVkID0gZmlsbEluKHRva2Vucy5jdXJyZW50LCBpdGVtLCBsYWJlbCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGh0bWwgKz0gKHR5cGVvZiB0cmltUGFyYW0gPT09IFwic3RyaW5nXCIgJiYgaXRlbSA9PSAxKSA/IHRyaW0oZmlsbGVkLCB0cmltUGFyYW0pIDogZmlsbGVkO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaHRtbCArPSB0b2tlbnMuYWZ0ZXI7ICAgLy8gZXNsaW50LWRpc2FibGUtbGluZSBhbGlnbi1hc3NpZ25tZW50cy9hbGlnbi1hc3NpZ25tZW50c1xuICAgICAgICAgICAgZWwuaW5uZXJIVE1MID0gXCJcIjtcbiAgICAgICAgICAgIGVsLmluc2VydEFkamFjZW50SFRNTChcImFmdGVyYmVnaW5cIiwgaHRtbCk7XG4gICAgICAgICAgICBsYXN0V2lkdGggPSB3aWR0aDtcbiAgICAgICAgfSkoKTtcbiAgICAgICAgaWYgKGVsLmNsYXNzTGlzdC5jb250YWlucyhcInBhZ3ktcmpzXCIpKSB7IHJqc09ic2VydmVyLm9ic2VydmUoY29udGFpbmVyKSB9XG4gICAgfTtcblxuICAgIC8vIEluaXQgdGhlICpfY29tYm9fbmF2X2pzIGhlbH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b25zdCBlbCBvZiBlbGVtZW50cykge1xuICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHVpbnQ4YXJyYXkgPSBVaW50OEFycmF5LmZyb20oYXRvYihlbC5nZXRBdHRyaWJ1dGUoXCJkYXRhLXBhZ3lcIikgYXMgc3RyaW5nKSwgYyA9PiBjLmNoYXJDb2RlQXQoMCkpO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBba2V5d29yZCwgLi4uYXJnc10gPSBKU09OLnBhcnNlKChuZXcgVGV4dERlY29kZXIoKSkuZGVjb2RlKHVpbnQ4YXJyYXkpKTsgLy8gYmFzZTY0LXV0ZjggLT4gSlNPTiAtPiBBcnJheVxuICAgICAgICAgICAgICAgICAgICBpZiAoa2V5d29yZCA9PT0gXCJuYXZcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgaW5pdE5hdihlbCBhcyBOYXZFbGVtZW50LCBhcmdzIGFzIE5hdkFyZ3MpO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGtleXdvcmQgPT09IFwiY29tYm9cIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgaW5pdENvbWJvKGVsLCBhcmdzIGFzIENvbWJvQXJncyk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoa2V5d29yZCA9PT0gXCJzZWxlY3RvclwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbml0U2VsZWN0b3IoZWwsIGFyZ3MgYXMgU2VsZWN0b3JBcmdzKTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUud2FybihcIlNraXBwZWQgUGFneS5pbml0KCkgZm9yOiAlb1xcblVua25vd24ga2V5d29yZCAnJXMnXCIsIGVsLCBrZXl3b3JkKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGVycikgeyBjb25zb2x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VudFdpZHRoKSB8fCAwO1xuICAgICAgICAgICAgaWYgKHdpZHRoID09PSBsYXN0V2lkdGgpIHsgcmV0dXJuIH0gLy8gbm8gY2hhbmdlOiBhYm9ydFxuICAgICAgICAgICAgbGV0IGh0bWwgPSB0b2tlbnMuYmVmb3JlOyAgLy8gYWxyZWFkeSB0cmltbWVkIGluIGh0bWxcbiAgICAgICAgICAgIGNvbnN0IHNlcmllcyA9IHNlcXVlbHNbd2lkdGgudG9TdHJpbmcoKV07XG4gICAgICAgICAgICBjb25zdCBsYWJlbHMgPSBsYWJlbFNlcXVlbHM/Llt3aWR0aC50b1N0cmluZygpXSA/PyBzZXJpZXMubWFwKGwgPT4gbC50b1N0cmluZygpKTtcbiAgICAgICAgICAgIGZvciAoY29uc3QgaSBpbiBzZXJpZXMpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBpdGVtID0gc2VyaWVzW2ldO1xuICAgICAgICAgICAgICAgIGNvbnN0IGxhYmVsID0gbGFiZWxzW2ldO1xuICAgICAgICAgICAgICAgIGxldCBmaWxsZWQ7XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBpdGVtID09PSBcIm51bWJlclwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGxlZCA9IGZpbGxJbih0b2tlbnMuYSwgaXRlbS50b1N0cmluZygpLCBsYWJlbCk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmIChpdGVtID09PSBcImdhcFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGxlZCA9IHRva2Vucy5nYXA7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHsgLy8gYWN0aXZlIHBhZ2VcbiAgICAgICAgICAgICAgICAgICAgZmlsbGVkID0gZmlsbEluKHRva2Vucy5jdXJyZW50LCBpdGVtLCBsYWJlbCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGh0bWwgKz0gKHR5cGVvZiB0cmltUGFyYW0gPT09IFwic3RyaW5nXCIgJiYgaX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MpO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGtleXdvcmQgPT09IFwiY29tYm9cIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgaW5pdENvbWJvKGVsLCBhcmdzIGFzIENvbWJvQXJncyk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoa2V5d29yZCA9PT0gXCJzZWxlY3RvclwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpbml0U2VsZWN0b3IoZWwsIGFyZ3MgYXMgU2VsZWN0b3JBcmdzKTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUud2FybihcIlNraXBwZWQgUGFneS5pbml0KCkgZm9yOiAlb1xcblVua25vd24ga2V5d29yZCAnJXMnXCIsIGVsLCBrZXl3b3JkKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGVycikgeyBjb25zb2xlLndhcm4oXCJTa2lwcGVkIFBhZ3kuaW5pdCgpIGZvcjogJW9cXG4lc1wiLCBlbCwgZXJyKSB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xufSkoKTtcbiJdfQ==
\ No newline at end of file
diff --git a/gem/javascripts/pagy-module.js b/gem/javascripts/pagy-module.js
index 3b70e96e8..dd4ca2e4c 100644
--- a/gem/javascripts/pagy-module.js
+++ b/gem/javascripts/pagy-module.js
@@ -81,7 +81,7 @@ const Pagy = (() => {
const trim = (a, param) => a.replace(new RegExp(`[?&]${param}=1\\b(?!&)|\\b${param}=1&`), "");
// Public interface
return {
- version: "8.1.0",
+ version: "8.1.1",
// Scan for elements with a "data-pagy" attribute and call their init functions with the decoded args
init(arg) {
const target = arg instanceof Element ? arg : document;
diff --git a/gem/javascripts/pagy.js b/gem/javascripts/pagy.js
index 059c1ccb1..220a81aad 100644
--- a/gem/javascripts/pagy.js
+++ b/gem/javascripts/pagy.js
@@ -1 +1 @@
-!function(){let e=(()=>{let e=new ResizeObserver(e=>e.forEach(e=>e.target.querySelectorAll(".pagy-rjs").forEach(e=>e.pagyRender()))),t=(t,[r,a,n,l])=>{let i=t.parentElement??t,c=Object.keys(a).map(e=>parseInt(e)).sort((e,t)=>t-e),p=-1,s=(e,t,r)=>e.replace(/__pagy_page__/g,t).replace(/__pagy_label__/g,r);(t.pagyRender=function(){let e=c.find(e=>ee.toString());for(let e in y){let t;let a=y[e],n=f[e];t="number"==typeof a?s(r.a,a.toString(),n):"gap"===a?r.gap:s(r.current,a,n),g+="string"==typeof l&&1==a?o(t,l):t}g+=r.after,t.innerHTML="",t.insertAdjacentHTML("afterbegin",g),p=e})(),t.classList.contains("pagy-rjs")&&e.observe(i)},r=(e,[t,r])=>n(e,e=>[e,t.replace(/__pagy_page__/,e)],r),a=(e,[t,r,a])=>{n(e,e=>{let a=Math.max(Math.ceil(t/parseInt(e)),1).toString(),n=r.replace(/__pagy_page__/,a).replace(/__pagy_items__/,e);return[a,n]},a)},n=(e,t,r)=>{let a=e.querySelector("input"),n=e.querySelector("a"),l=a.value,i=function(){if(a.value===l)return;let[e,i,c]=[a.min,a.value,a.max].map(e=>parseInt(e)||0);if(ic){a.value=l,a.select();return}let[p,s]=t(a.value);"string"==typeof r&&"1"===p&&(s=o(s,r)),n.href=s,n.click()};["change","focus"].forEach(e=>a.addEventListener(e,a.select)),a.addEventListener("focusout",i),a.addEventListener("keypress",e=>{"Enter"===e.key&&i()})},o=(e,t)=>e.replace(RegExp(`[?&]${t}=1\\b(?!&)|\\b${t}=1&`),"");return{version:"8.1.0",init(e){for(let n of(e instanceof Element?e:document).querySelectorAll("[data-pagy]"))try{let e=Uint8Array.from(atob(n.getAttribute("data-pagy")),e=>e.charCodeAt(0)),[o,...l]=JSON.parse(new TextDecoder().decode(e));"nav"===o?t(n,l):"combo"===o?r(n,l):"selector"===o?a(n,l):console.warn("Skipped Pagy.init() for: %o\nUnknown keyword '%s'",n,o)}catch(e){console.warn("Skipped Pagy.init() for: %o\n%s",n,e)}}}})();window.Pagy=e}();
\ No newline at end of file
+!function(){let e=(()=>{let e=new ResizeObserver(e=>e.forEach(e=>e.target.querySelectorAll(".pagy-rjs").forEach(e=>e.pagyRender()))),t=(t,[r,a,n,l])=>{let i=t.parentElement??t,c=Object.keys(a).map(e=>parseInt(e)).sort((e,t)=>t-e),p=-1,s=(e,t,r)=>e.replace(/__pagy_page__/g,t).replace(/__pagy_label__/g,r);(t.pagyRender=function(){let e=c.find(e=>ee.toString());for(let e in y){let t;let a=y[e],n=f[e];t="number"==typeof a?s(r.a,a.toString(),n):"gap"===a?r.gap:s(r.current,a,n),g+="string"==typeof l&&1==a?o(t,l):t}g+=r.after,t.innerHTML="",t.insertAdjacentHTML("afterbegin",g),p=e})(),t.classList.contains("pagy-rjs")&&e.observe(i)},r=(e,[t,r])=>n(e,e=>[e,t.replace(/__pagy_page__/,e)],r),a=(e,[t,r,a])=>{n(e,e=>{let a=Math.max(Math.ceil(t/parseInt(e)),1).toString(),n=r.replace(/__pagy_page__/,a).replace(/__pagy_items__/,e);return[a,n]},a)},n=(e,t,r)=>{let a=e.querySelector("input"),n=e.querySelector("a"),l=a.value,i=function(){if(a.value===l)return;let[e,i,c]=[a.min,a.value,a.max].map(e=>parseInt(e)||0);if(ic){a.value=l,a.select();return}let[p,s]=t(a.value);"string"==typeof r&&"1"===p&&(s=o(s,r)),n.href=s,n.click()};["change","focus"].forEach(e=>a.addEventListener(e,a.select)),a.addEventListener("focusout",i),a.addEventListener("keypress",e=>{"Enter"===e.key&&i()})},o=(e,t)=>e.replace(RegExp(`[?&]${t}=1\\b(?!&)|\\b${t}=1&`),"");return{version:"8.1.1",init(e){for(let n of(e instanceof Element?e:document).querySelectorAll("[data-pagy]"))try{let e=Uint8Array.from(atob(n.getAttribute("data-pagy")),e=>e.charCodeAt(0)),[o,...l]=JSON.parse(new TextDecoder().decode(e));"nav"===o?t(n,l):"combo"===o?r(n,l):"selector"===o?a(n,l):console.warn("Skipped Pagy.init() for: %o\nUnknown keyword '%s'",n,o)}catch(e){console.warn("Skipped Pagy.init() for: %o\n%s",n,e)}}}})();window.Pagy=e}();
\ No newline at end of file
diff --git a/gem/lib/pagy.rb b/gem/lib/pagy.rb
index 3d083381e..68e7ba0f8 100644
--- a/gem/lib/pagy.rb
+++ b/gem/lib/pagy.rb
@@ -5,7 +5,7 @@
# Core class
class Pagy
- VERSION = '8.1.0'
+ VERSION = '8.1.1'
# Gem root pathname to get the path of Pagy files stylesheets, javascripts, apps, locales, etc.
def self.root
diff --git a/retype.yml b/retype.yml
index e03b937b7..4e145c49f 100644
--- a/retype.yml
+++ b/retype.yml
@@ -8,7 +8,7 @@ url: https://ddnexus.github.io/pagy
branding:
title: Pagy
- label: 8.1.0
+ label: 8.1.1
colors:
label:
text: "#FFFFFF"
diff --git a/src/pagy.ts b/src/pagy.ts
index a4d6dcd7b..be91a68fc 100644
--- a/src/pagy.ts
+++ b/src/pagy.ts
@@ -98,7 +98,7 @@ const Pagy = (() => {
// Public interface
return {
- version: "8.1.0",
+ version: "8.1.1",
// Scan for elements with a "data-pagy" attribute and call their init functions with the decoded args
init(arg?:Element | never) {