@konfuzio/document-validation-ui 0.1.12-dev.3 → 0.1.13-dev.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.12-dev.3",
3
+ "version": "0.1.13-dev.0",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -1,7 +1,6 @@
1
1
  <template>
2
2
  <div :id="annotation.id" ref="annotation" class="annotation">
3
3
  <span
4
- v-if="!publicView || !isDocumentReviewed"
5
4
  :id="annotation.id"
6
5
  ref="contentEditable"
7
6
  :class="[
@@ -15,14 +15,14 @@
15
15
  </div>
16
16
  </div>
17
17
  <div class="label-group-right">
18
- <div class="label-annotations-pending">
18
+ <div v-if="!publicView" class="label-annotations-pending">
19
19
  {{
20
20
  `${
21
21
  label.annotations.length - acceptedAnnotationsGroupCounter
22
22
  } ${$t("annotations_pending")}`
23
23
  }}
24
24
  </div>
25
- <div class="label-annotations-accepted">
25
+ <div v-if="!publicView" class="label-annotations-accepted">
26
26
  {{
27
27
  `${acceptedAnnotationsGroupCounter} ${$t("annotations_accepted")}`
28
28
  }}
@@ -89,6 +89,7 @@ export default {
89
89
  "sidebarAnnotationSelected",
90
90
  "enableGroupingFeature",
91
91
  "hoveredAnnotationSet",
92
+ "publicView",
92
93
  ]),
93
94
  ...mapGetters("document", ["numberOfAcceptedAnnotationsInLabel"]),
94
95
  singleAnnotation() {
@@ -54,7 +54,7 @@
54
54
  position="is-bottom"
55
55
  class="right-aligned width-184"
56
56
  >
57
- <span v-if="publicView && !isDocumentReviewed">
57
+ <span v-if="publicView">
58
58
  {{ $t("lite_mode") }}
59
59
  </span>
60
60
  <span v-else class="doc-reviewed">
@@ -63,12 +63,12 @@
63
63
  <b-icon
64
64
  :class="[
65
65
  'info-icon is-small',
66
- isDocumentReviewed && 'info-reviewed',
66
+ !publicView && isDocumentReviewed && 'info-reviewed',
67
67
  ]"
68
68
  icon="circle-info"
69
69
  />
70
70
  <template #content>
71
- <div v-if="!isDocumentReviewed" class="read-only-details">
71
+ <div v-if="publicView" class="read-only-details">
72
72
  {{ $t("limited_functionalities") }}
73
73
  </div>
74
74
  <div v-else class="read-only-details">