@citizenplane/pimp 18.9.34 → 18.9.36
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/dist/pimp.es.js +3985 -3927
- package/dist/pimp.umd.js +40 -40
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CpTableFooter.vue +6 -6
- package/src/components/CpTableFooterDesktop.vue +2 -2
- package/src/components/CpTableFooterMobile.vue +2 -2
- package/src/components/index.ts +2 -2
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"
|
package/src/components/index.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '@douxcode/vue-spring-bottom-sheet/dist/style.css'
|
|
|
5
5
|
|
|
6
6
|
import '@/assets/main.css'
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import FloatingVue from 'floating-vue'
|
|
9
9
|
import { vMaska } from 'maska/vue'
|
|
10
10
|
import PrimeVue from 'primevue/config'
|
|
11
11
|
import ToastService from 'primevue/toastservice'
|
|
@@ -139,6 +139,7 @@ const Pimp: Plugin = {
|
|
|
139
139
|
app.use(PrimeVue, { unstyled: true })
|
|
140
140
|
app.use(VueTelInput)
|
|
141
141
|
app.use(ToastService)
|
|
142
|
+
app.use(FloatingVue)
|
|
142
143
|
|
|
143
144
|
Object.keys(Components).forEach((name) => {
|
|
144
145
|
app.component(name, Components[name as keyof typeof Components])
|
|
@@ -148,7 +149,6 @@ const Pimp: Plugin = {
|
|
|
148
149
|
app.directive('click-outside', ClickOutside)
|
|
149
150
|
app.directive('bind-once', BindOnceDirective)
|
|
150
151
|
app.directive('maska', vMaska)
|
|
151
|
-
app.directive('tooltip', vTooltip)
|
|
152
152
|
},
|
|
153
153
|
}
|
|
154
154
|
|