@citizenplane/pimp 18.9.34 → 18.9.35
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
|
@@ -73,9 +73,9 @@ const emit = defineEmits<Emits>()
|
|
|
73
73
|
const numberOfPages = computed(() => Math.ceil(props.numberOfResults / props.rowsPerPageLimit))
|
|
74
74
|
const activePage = computed(() => (props.isServerSidePagination ? props.serverActivePage + 1 : props.pageNumber + 1))
|
|
75
75
|
const hasRemainingPages = computed(() => numberOfPages.value > activePage.value)
|
|
76
|
-
const hasPreviousPages = computed(() =>
|
|
77
|
-
props.isServerSidePagination ? props.serverActivePage > 0 : props.pageNumber > 0
|
|
78
|
-
)
|
|
76
|
+
const hasPreviousPages = computed(() => {
|
|
77
|
+
return props.isServerSidePagination ? props.serverActivePage > 0 : props.pageNumber > 0
|
|
78
|
+
})
|
|
79
79
|
|
|
80
80
|
const isNextEnabled = computed(() => hasRemainingPages.value && !props.isLoading)
|
|
81
81
|
const isPreviousEnabled = computed(() => hasPreviousPages.value && !props.isLoading)
|
|
@@ -85,9 +85,9 @@ const pagesEndIndex = computed(() => props.rowsPerPageLimit * (1 + props.pageNum
|
|
|
85
85
|
const serverPagesStartIndex = computed(() => props.serverActivePage * props.rowsPerPageLimit + 1)
|
|
86
86
|
const serverPagesEndIndex = computed(() => props.rowsPerPageLimit * (1 + props.serverActivePage))
|
|
87
87
|
|
|
88
|
-
const pageFirstResultIndex = computed(() =>
|
|
89
|
-
props.isServerSidePagination ? serverPagesStartIndex.value : pagesStartIndex.value + 1
|
|
90
|
-
)
|
|
88
|
+
const pageFirstResultIndex = computed(() => {
|
|
89
|
+
return props.isServerSidePagination ? serverPagesStartIndex.value : pagesStartIndex.value + 1
|
|
90
|
+
})
|
|
91
91
|
|
|
92
92
|
const pageLastResultIndex = computed(() => {
|
|
93
93
|
const endIndex = props.isServerSidePagination ? serverPagesEndIndex.value : pagesEndIndex.value
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="cpTableFooterDesktop">
|
|
3
3
|
<div class="cpTableFooterDesktop__details">
|
|
4
|
-
<
|
|
4
|
+
<div class="cpTableFooterDesktop__results">
|
|
5
5
|
<slot name="footer-details" />
|
|
6
|
-
</
|
|
6
|
+
</div>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="cpTableFooterDesktop__pagination">
|
|
9
9
|
<cp-button
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
<cp-icon size="16" type="arrow-left" />
|
|
13
13
|
</template>
|
|
14
14
|
</cp-button>
|
|
15
|
-
<
|
|
15
|
+
<div class="cpTableFooterMobile__results">
|
|
16
16
|
<slot name="footer-details" />
|
|
17
|
-
</
|
|
17
|
+
</div>
|
|
18
18
|
<cp-button
|
|
19
19
|
appearance="tertiary"
|
|
20
20
|
color="neutral"
|