@kiva/kv-components 3.35.1 → 3.36.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.36.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.35.1...@kiva/kv-components@3.36.0) (2023-08-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * avoid fractional page number in kvpaginator component ([#281](https://github.com/kiva/kv-ui-elements/issues/281)) ([0d5e028](https://github.com/kiva/kv-ui-elements/commit/0d5e028837c0edcedc87092215f0be94b6565996))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.35.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.35.0...@kiva/kv-components@3.35.1) (2023-08-14)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.35.1",
3
+ "version": "3.36.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,5 +75,5 @@
75
75
  "optional": true
76
76
  }
77
77
  },
78
- "gitHead": "d6566f7934900d589b1c94e3b7b1527df8ab25d1"
78
+ "gitHead": "f5f8204eda9dec08144129ed6d9ce151495b136e"
79
79
  }
@@ -109,7 +109,7 @@ export default {
109
109
  },
110
110
  computed: {
111
111
  current() {
112
- const page = this.offset / this.limit;
112
+ const page = Math.ceil(this.offset / this.limit);
113
113
 
114
114
  // This component uses a 0-based page index
115
115
  return page < this.totalPages ? page : 0;