|
|
|
@ -11,7 +11,8 @@ |
|
|
|
export let limit |
|
|
|
export let paginate |
|
|
|
|
|
|
|
const { styleable, Provider, ActionTypes, API } = getContext("sdk") |
|
|
|
const { styleable, Provider, ActionTypes, API, rowSelectionStore } = |
|
|
|
getContext("sdk") |
|
|
|
const component = getContext("component") |
|
|
|
|
|
|
|
// We need to manage our lucene query manually as we want to allow components |
|
|
|
@ -139,14 +140,19 @@ |
|
|
|
<slot /> |
|
|
|
{/if} |
|
|
|
{#if paginate && $fetch.supportsPagination} |
|
|
|
<div class="pagination"> |
|
|
|
<Pagination |
|
|
|
page={$fetch.pageNumber + 1} |
|
|
|
hasPrevPage={$fetch.hasPrevPage} |
|
|
|
hasNextPage={$fetch.hasNextPage} |
|
|
|
goToPrevPage={fetch.prevPage} |
|
|
|
goToNextPage={fetch.nextPage} |
|
|
|
/> |
|
|
|
<div class="footer"> |
|
|
|
<div class="rowSelection"> |
|
|
|
{$rowSelectionStore.length} record(s) selected |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<Pagination |
|
|
|
page={$fetch.pageNumber + 1} |
|
|
|
hasPrevPage={$fetch.hasPrevPage} |
|
|
|
hasNextPage={$fetch.hasNextPage} |
|
|
|
goToPrevPage={fetch.prevPage} |
|
|
|
goToNextPage={fetch.nextPage} |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
@ -167,10 +173,10 @@ |
|
|
|
align-items: center; |
|
|
|
height: 100px; |
|
|
|
} |
|
|
|
.pagination { |
|
|
|
.footer { |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
|
justify-content: flex-end; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
margin-top: var(--spacing-xl); |
|
|
|
} |
|
|
|
|