@everchron/ec-shards 7.4.5 → 7.4.7
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/ec-shards.common.js +39 -29
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +39 -29
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +2 -2
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jumper-page/jumper-page.vue +15 -4
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="ecs-viewer-pages">
|
|
3
3
|
<div class="ecs-viewer-pages-inner">
|
|
4
4
|
|
|
5
|
-
<template v-if="
|
|
5
|
+
<template v-if="showAltPageNumbers">
|
|
6
6
|
<div class="ecs-viewer-pages-pagination">
|
|
7
7
|
<div @click="$emit('selectCurPageText')" @keydown="pageKeyPressed($event, 'relative')" @blur="$emit('currentPageBlurred')" contenteditable class="current-page" id="currPage">
|
|
8
8
|
{{ currentPage }}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<span v-if="isTranscriptMissingPages" style="color:tomato">*</span>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="ecs-viewer-pages-pagination">
|
|
14
|
-
<div class="total-pages-relative">{{
|
|
14
|
+
<div class="total-pages-relative">{{ altPageNumber }} </div>
|
|
15
15
|
<div class="total-pages-relative">of {{ pageCount }}</div>
|
|
16
16
|
</div>
|
|
17
17
|
</template>
|
|
@@ -48,6 +48,11 @@
|
|
|
48
48
|
type: Number,
|
|
49
49
|
default: null
|
|
50
50
|
},
|
|
51
|
+
/** Adds a secondary count below the main count which reflects the relative current position in the document, if the document has page gaps */
|
|
52
|
+
sequentialPage: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: null
|
|
55
|
+
},
|
|
51
56
|
/** If relative page count is used, this determines the total page count of the current document, but not the document collection. */
|
|
52
57
|
lastPage: {
|
|
53
58
|
type: Number,
|
|
@@ -61,8 +66,14 @@
|
|
|
61
66
|
},
|
|
62
67
|
|
|
63
68
|
computed:{
|
|
64
|
-
|
|
65
|
-
return this.relativePage && (this.relativePage != this.currentPage)
|
|
69
|
+
showAltPageNumbers(){
|
|
70
|
+
return (this.relativePage && (this.relativePage != this.currentPage)) || this.isTranscriptMissingPages
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
altPageNumber(){
|
|
74
|
+
if (this.sequentialPage && (this.sequentialPage != this.currentPage))
|
|
75
|
+
return this.sequentialPage
|
|
76
|
+
return this.relativePage
|
|
66
77
|
}
|
|
67
78
|
},
|
|
68
79
|
|