@konfuzio/document-validation-ui 0.1.1 → 0.1.2-pre-release-2
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/css/app.6a102cfe.css +1 -0
- package/dist/index.html +1 -1
- package/dist/js/app.de7765e6.js +2 -0
- package/dist/js/app.de7765e6.js.map +1 -0
- package/dist/js/{chunk-vendors.a48fca3f.js → chunk-vendors.dbed2bf7.js} +2 -2
- package/dist/js/chunk-vendors.dbed2bf7.js.map +1 -0
- package/package.json +4 -4
- package/src/assets/scss/annotation_details.scss +1 -1
- package/src/assets/scss/categorize_modal.scss +36 -33
- package/src/assets/scss/choose_label_set_modal.scss +60 -57
- package/src/assets/scss/document_page.scss +4 -0
- package/src/assets/scss/document_top_bar.scss +0 -7
- package/src/assets/scss/variables.scss +47 -29
- package/src/components/DocumentAnnotations/ActionButtons.vue +33 -21
- package/src/components/DocumentAnnotations/AnnotationDetails.vue +66 -109
- package/src/components/DocumentAnnotations/CategorizeModal.vue +91 -32
- package/src/components/DocumentAnnotations/ChooseLabelSetModal.vue +56 -27
- package/src/components/DocumentAnnotations/DocumentAnnotations.vue +0 -14
- package/src/components/DocumentEdit/DocumentEdit.vue +25 -36
- package/src/components/DocumentEdit/EditPages.vue +8 -17
- package/src/components/DocumentPage/DocumentPage.vue +17 -16
- package/src/components/DocumentPage/DocumentToolbar.vue +12 -24
- package/src/components/DocumentPage/NewAnnotation.vue +11 -2
- package/src/components/DocumentPage/ScrollingPage.vue +4 -17
- package/src/components/DocumentTopBar/DocumentTopBar.vue +0 -15
- package/src/components/DocumentTopBar/DocumentTopBarButtons.vue +7 -2
- package/src/components/DocumentTopBar/index.js +0 -2
- package/src/locales/de.json +8 -5
- package/src/locales/en.json +6 -3
- package/src/locales/es.json +6 -3
- package/src/store/document.js +88 -9
- package/dist/css/app.0c8973f8.css +0 -1
- package/dist/js/app.17fe48c4.js +0 -2
- package/dist/js/app.17fe48c4.js.map +0 -1
- package/dist/js/chunk-vendors.a48fca3f.js.map +0 -1
- package/src/assets/scss/document_dataset_status.scss +0 -46
- package/src/assets/scss/document_handover.scss +0 -200
- package/src/components/DocumentTopBar/DocumentDatasetStatus.vue +0 -103
- package/src/components/DocumentTopBar/DocumentHandover.vue +0 -202
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konfuzio/document-validation-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-pre-release-2",
|
|
4
4
|
"repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"*.js"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@fortawesome/fontawesome-svg-core": "^6.
|
|
26
|
-
"@fortawesome/free-solid-svg-icons": "^6.
|
|
27
|
-
"@fortawesome/vue-fontawesome": "^2.0.
|
|
25
|
+
"@fortawesome/fontawesome-svg-core": "^6.3.0",
|
|
26
|
+
"@fortawesome/free-solid-svg-icons": "^6.3.0",
|
|
27
|
+
"@fortawesome/vue-fontawesome": "^2.0.10",
|
|
28
28
|
"@sentry/tracing": "^6.19.4",
|
|
29
29
|
"@sentry/vue": "^6.2.0",
|
|
30
30
|
"axios": "^0.21.1",
|
|
@@ -1,42 +1,45 @@
|
|
|
1
1
|
@import "./imports.scss";
|
|
2
2
|
|
|
3
3
|
.categorize-modal {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
.content {
|
|
5
|
+
h3 {
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
font-size: 18px;
|
|
8
|
+
line-height: 28px;
|
|
9
|
+
color: $grey-darker;
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
p {
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 20px;
|
|
16
|
+
color: $text-strong;
|
|
17
|
+
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
19
|
+
.categorize-dropdown {
|
|
20
|
+
width: 100%;
|
|
21
|
+
border: 1px solid #d0d5dd;
|
|
22
|
+
height: 40px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
margin-bottom: 4px;
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
color: $text-lighter;
|
|
34
|
-
}
|
|
28
|
+
&.dropdown-disabled {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
.category-description {
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
line-height: 20px;
|
|
37
|
+
color: $text-lighter;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
.submit-category {
|
|
41
|
+
margin-top: 16px;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,62 +1,65 @@
|
|
|
1
1
|
@import "./imports.scss";
|
|
2
2
|
|
|
3
3
|
.choose-label-set-modal {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
p {
|
|
13
|
-
font-weight: 400;
|
|
14
|
-
font-size: 14px;
|
|
15
|
-
line-height: 20px;
|
|
16
|
-
color: $text-strong;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.label-set-dropdown {
|
|
20
|
-
width: 100%;
|
|
21
|
-
border: 1px solid #D0D5DD;
|
|
22
|
-
height: 40px;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
25
|
-
border-radius: 8px;
|
|
26
|
-
margin-bottom: 4px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.labels-list {
|
|
30
|
-
color: $grey-blue;
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
font-weight: 400;
|
|
33
|
-
line-height: 20px;
|
|
34
|
-
|
|
35
|
-
.labels-select {
|
|
36
|
-
padding: 12px;
|
|
37
|
-
overflow: scroll;
|
|
38
|
-
height: 154px;
|
|
39
|
-
border: 1px solid $grey-detail;
|
|
40
|
-
border-radius: 8px;
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
gap: 5px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.next-step-description {
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
line-height: 18px;
|
|
51
|
-
text-align: center;
|
|
52
|
-
color: $dark-blue;
|
|
53
|
-
margin-top: 8px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.submit-ann-set {
|
|
57
|
-
margin-top: 16px;
|
|
58
|
-
width: 100%;
|
|
59
|
-
}
|
|
4
|
+
.content {
|
|
5
|
+
h3 {
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
font-size: 18px;
|
|
8
|
+
line-height: 28px;
|
|
9
|
+
color: $grey-darker;
|
|
60
10
|
}
|
|
61
11
|
|
|
62
|
-
|
|
12
|
+
p {
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 20px;
|
|
16
|
+
color: $text-strong;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.label-set-dropdown {
|
|
20
|
+
width: 100%;
|
|
21
|
+
border: 1px solid #d0d5dd;
|
|
22
|
+
height: 40px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
margin-bottom: 4px;
|
|
27
|
+
|
|
28
|
+
&.dropdown-disabled {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.labels-list {
|
|
34
|
+
color: $grey-blue;
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
line-height: 20px;
|
|
38
|
+
|
|
39
|
+
.labels-select {
|
|
40
|
+
padding: 12px;
|
|
41
|
+
overflow: scroll;
|
|
42
|
+
height: 154px;
|
|
43
|
+
border: 1px solid $grey-detail;
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
gap: 5px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.next-step-description {
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
line-height: 18px;
|
|
55
|
+
text-align: center;
|
|
56
|
+
color: $dark-blue;
|
|
57
|
+
margin-top: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.submit-ann-set {
|
|
61
|
+
margin-top: 16px;
|
|
62
|
+
width: 100%;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -254,35 +254,6 @@ button {
|
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
}
|
|
257
|
-
|
|
258
|
-
&.handover {
|
|
259
|
-
position: relative;
|
|
260
|
-
margin-right: 15px;
|
|
261
|
-
margin-left: 15px;
|
|
262
|
-
margin-top: 7px;
|
|
263
|
-
width: auto;
|
|
264
|
-
|
|
265
|
-
.message {
|
|
266
|
-
display: flex;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.message-body {
|
|
270
|
-
border-radius: 4px;
|
|
271
|
-
border: 1px solid $red;
|
|
272
|
-
background-color: $lightest-red !important;
|
|
273
|
-
color: $red;
|
|
274
|
-
width: 100%;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.media-content {
|
|
278
|
-
margin: 0px 10px 0px 10px !important;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.message-container {
|
|
282
|
-
justify-content: flex-start !important;
|
|
283
|
-
text-align: left;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
257
|
}
|
|
287
258
|
|
|
288
259
|
.message {
|
|
@@ -365,6 +336,16 @@ button {
|
|
|
365
336
|
&.modal-400 {
|
|
366
337
|
.modal-content {
|
|
367
338
|
max-width: 400px !important;
|
|
339
|
+
|
|
340
|
+
.scroll-hidden {
|
|
341
|
+
overflow: hidden;
|
|
342
|
+
padding: 0;
|
|
343
|
+
|
|
344
|
+
.content {
|
|
345
|
+
overflow: auto;
|
|
346
|
+
padding: 20px;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
368
349
|
}
|
|
369
350
|
}
|
|
370
351
|
|
|
@@ -479,6 +460,10 @@ button {
|
|
|
479
460
|
}
|
|
480
461
|
|
|
481
462
|
.b-tooltip {
|
|
463
|
+
.tooltip-content {
|
|
464
|
+
background-color: $dark-blue !important;
|
|
465
|
+
}
|
|
466
|
+
|
|
482
467
|
&.left-aligned {
|
|
483
468
|
.tooltip-content {
|
|
484
469
|
left: 10px !important;
|
|
@@ -488,6 +473,8 @@ button {
|
|
|
488
473
|
&::before {
|
|
489
474
|
left: 16px !important;
|
|
490
475
|
right: auto !important;
|
|
476
|
+
border-top-color: $dark-blue !important;
|
|
477
|
+
border-bottom-color: $dark-blue !important;
|
|
491
478
|
}
|
|
492
479
|
}
|
|
493
480
|
}
|
|
@@ -502,6 +489,13 @@ button {
|
|
|
502
489
|
&::before {
|
|
503
490
|
right: 16px !important;
|
|
504
491
|
left: auto !important;
|
|
492
|
+
border-bottom-color: $dark-blue !important;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
&.finish-review {
|
|
497
|
+
.tooltip-content {
|
|
498
|
+
right: 0 !important;
|
|
505
499
|
}
|
|
506
500
|
}
|
|
507
501
|
}
|
|
@@ -526,6 +520,30 @@ button {
|
|
|
526
520
|
}
|
|
527
521
|
}
|
|
528
522
|
}
|
|
523
|
+
|
|
524
|
+
&.bottom-aligned {
|
|
525
|
+
width: 100%;
|
|
526
|
+
|
|
527
|
+
.tooltip-content {
|
|
528
|
+
&::before {
|
|
529
|
+
border-bottom-color: $dark-blue !important;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
a {
|
|
533
|
+
color: $white;
|
|
534
|
+
text-decoration: underline;
|
|
535
|
+
font-weight: 500;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
&.top-aligned {
|
|
541
|
+
.tooltip-content {
|
|
542
|
+
&::before {
|
|
543
|
+
border-top-color: $dark-blue !important;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
529
547
|
}
|
|
530
548
|
|
|
531
549
|
.rejected-tag-container {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<!-- save button -->
|
|
13
13
|
<b-button
|
|
14
|
-
v-if="saveBtn && !isLoading"
|
|
14
|
+
v-if="saveBtn && !isLoading && !publicView"
|
|
15
15
|
:class="[
|
|
16
16
|
'annotation-save-btn text-btn',
|
|
17
17
|
actionBar && 'action-bar-save-btn',
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
<!-- decline button -->
|
|
34
34
|
<div
|
|
35
|
-
v-if="declineBtn && !isLoading && !saveBtn && !cancelBtn"
|
|
35
|
+
v-if="declineBtn && !isLoading && !saveBtn && !cancelBtn && !publicView"
|
|
36
36
|
class="reject-decline-button-container"
|
|
37
37
|
>
|
|
38
38
|
<b-button
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
<!-- accept button -->
|
|
48
48
|
<b-button
|
|
49
|
-
v-if="acceptBtn && !isLoading && !saveBtn && !cancelBtn"
|
|
49
|
+
v-if="acceptBtn && !isLoading && !saveBtn && !cancelBtn && !publicView"
|
|
50
50
|
class="annotation-accept-btn"
|
|
51
51
|
type="is-primary"
|
|
52
52
|
@click.stop="accept"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
<!-- reject button -->
|
|
58
58
|
<div
|
|
59
|
-
v-if="showReject && !isLoading && !cancelBtn && !saveBtn"
|
|
59
|
+
v-if="showReject && !isLoading && !cancelBtn && !saveBtn && !publicView"
|
|
60
60
|
class="reject-decline-button-container"
|
|
61
61
|
>
|
|
62
62
|
<b-button
|
|
@@ -107,25 +107,37 @@
|
|
|
107
107
|
</div>
|
|
108
108
|
|
|
109
109
|
<!-- finish review button -->
|
|
110
|
-
<b-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
@click.stop="finishReview"
|
|
110
|
+
<b-tooltip
|
|
111
|
+
:active="finishDisabled"
|
|
112
|
+
position="is-bottom"
|
|
113
|
+
multilined
|
|
114
|
+
class="right-aligned finish-review"
|
|
116
115
|
>
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
<b-button
|
|
117
|
+
v-if="finishReviewBtn && !publicView"
|
|
118
|
+
:class="['finish-review-btn', 'text-btn']"
|
|
119
|
+
type="is-primary"
|
|
120
|
+
:disabled="finishDisabled"
|
|
121
|
+
@click.stop="finishReview"
|
|
122
|
+
>
|
|
123
|
+
<span v-if="!isLoading">
|
|
124
|
+
{{ $t("finish_review") }}
|
|
125
|
+
</span>
|
|
120
126
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
<div v-else>
|
|
128
|
+
<b-notification :closable="false" :class="['loading-background']">
|
|
129
|
+
<b-loading :active="isLoading" :is-full-page="loadingOnFullPage">
|
|
130
|
+
<b-icon
|
|
131
|
+
icon="spinner"
|
|
132
|
+
class="fa-spin loading-icon-size spinner"
|
|
133
|
+
/>
|
|
134
|
+
</b-loading>
|
|
135
|
+
</b-notification>
|
|
136
|
+
</div>
|
|
137
|
+
</b-button>
|
|
138
|
+
|
|
139
|
+
<template #content> {{ $t("disabled_finish_review") }} </template>
|
|
140
|
+
</b-tooltip>
|
|
129
141
|
</div>
|
|
130
142
|
</template>
|
|
131
143
|
<script>
|