@mozaic-ds/vue 0.42.0-beta.0 → 0.42.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/vue",
3
- "version": "0.42.0-beta.0",
3
+ "version": "0.42.0-beta.2",
4
4
  "description": "Vue.js implementation of Mozaic Design System",
5
5
  "author": "Adeo - Mozaic Design System",
6
6
  "scripts": {
@@ -203,6 +203,7 @@ function autoGenerateHeaders(data, headers) {
203
203
  /** Build options to manage request. */
204
204
  function buildOptions(
205
205
  pagingEnabled,
206
+ pagingTotalPage,
206
207
  pagerValue,
207
208
  pagingIndex,
208
209
  pagingSize,
@@ -220,7 +221,7 @@ function buildOptions(
220
221
 
221
222
  return {
222
223
  sort: columnSorters,
223
- skip: pagingEnabled ? pagerValue * (index - 1) : null,
224
+ skip: (pagingEnabled || pagingTotalPage) ? pagerValue * (index - 1) : null,
224
225
  take: pagingEnabled ? pagerValue : null,
225
226
  };
226
227
  }
@@ -448,6 +449,7 @@ export default {
448
449
  getTotalStringCurrentCount() {
449
450
  const { skip, take } = buildOptions(
450
451
  this.pagingOptions.enabled,
452
+ this.pagingOptions.totalPage,
451
453
  this.getPageValue,
452
454
  this.getPagingIndex,
453
455
  this.getPagingSize,