@snack-uikit/table 0.37.9 → 0.37.10

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,14 @@
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
+ ## <small>0.37.10 (2025-09-25)</small>
7
+
8
+ * fix(FF-7134): table requestPayload offset calculation ([d36ad78](https://github.com/cloud-ru-tech/snack-uikit/commit/d36ad78))
9
+
10
+
11
+
12
+
13
+
6
14
  ## <small>0.37.9 (2025-09-24)</small>
7
15
 
8
16
  * fix(FF-7134): update ft-request-payload-transform to be able to use encode prop in formatTableStateT ([e76b8b3](https://github.com/cloud-ru-tech/snack-uikit/commit/e76b8b3))
@@ -34,7 +34,7 @@ const mapPaginationToRequestPayload = value => {
34
34
  }
35
35
  return {
36
36
  limit: value.pageSize,
37
- offset: value.pageIndex > 1 ? value.pageSize * value.pageIndex : 0
37
+ offset: value.pageSize * value.pageIndex
38
38
  };
39
39
  };
40
40
  exports.mapPaginationToRequestPayload = mapPaginationToRequestPayload;
@@ -21,7 +21,7 @@ export const mapPaginationToRequestPayload = (value) => {
21
21
  }
22
22
  return {
23
23
  limit: value.pageSize,
24
- offset: value.pageIndex > 1 ? value.pageSize * value.pageIndex : 0,
24
+ offset: value.pageSize * value.pageIndex,
25
25
  };
26
26
  };
27
27
  export const mapSortToRequestPayload = (value) => value === null || value === void 0 ? void 0 : value.map(column => ({
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Table",
7
- "version": "0.37.9",
7
+ "version": "0.37.10",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -66,5 +66,5 @@
66
66
  "peerDependencies": {
67
67
  "@snack-uikit/locale": "*"
68
68
  },
69
- "gitHead": "c8334d5926809541d224200ff11fa90c28e494db"
69
+ "gitHead": "bb8ad6098f57ca731f128b2ea9d03504127ad12c"
70
70
  }
@@ -34,7 +34,7 @@ export const mapPaginationToRequestPayload = (
34
34
 
35
35
  return {
36
36
  limit: value.pageSize,
37
- offset: value.pageIndex > 1 ? value.pageSize * value.pageIndex : 0,
37
+ offset: value.pageSize * value.pageIndex,
38
38
  };
39
39
  };
40
40