import { Injectable } from '@angular/core'
import { HttpParams } from '@angular/common/http'
-import { SortMeta } from 'primeng/components/common/sortmeta'
-import { ComponentPagination } from './component-pagination.model'
+import { SortMeta } from 'primeng/api'
+import { ComponentPagination, ComponentPaginationLight } from './component-pagination.model'
import { RestPagination } from './rest-pagination'
return params
}
- componentPaginationToRestPagination (componentPagination: ComponentPagination): RestPagination {
+ componentPaginationToRestPagination (componentPagination: ComponentPaginationLight): RestPagination {
const start: number = (componentPagination.currentPage - 1) * componentPagination.itemsPerPage
const count: number = componentPagination.itemsPerPage