@konfuzio/document-validation-ui 0.1.5 → 0.1.6-multi-ann-set-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.
Files changed (73) hide show
  1. package/dist/css/app.css +1 -1
  2. package/dist/index.html +1 -1
  3. package/dist/js/app.js +1 -1
  4. package/dist/js/app.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/.DS_Store +0 -0
  7. package/src/assets/images/DraggableIcon.vue +14 -0
  8. package/src/assets/images/GridIcon.vue +16 -0
  9. package/src/assets/images/MagicWandIcon.vue +16 -0
  10. package/src/assets/images/NotFoundIcon.vue +16 -0
  11. package/src/assets/images/SettingsIcon.vue +14 -0
  12. package/src/assets/images/SplitZigZag.vue +47 -14
  13. package/src/assets/images/StarIcon.vue +16 -0
  14. package/src/assets/scss/ann_set_table_options.scss +26 -0
  15. package/src/assets/scss/annotation_details.scss +85 -73
  16. package/src/assets/scss/document_annotations.scss +54 -57
  17. package/src/assets/scss/document_category.scss +0 -1
  18. package/src/assets/scss/document_dashboard.scss +7 -2
  19. package/src/assets/scss/document_edit.scss +90 -46
  20. package/src/assets/scss/main.scss +725 -7
  21. package/src/assets/scss/multi_ann_table_overlay.scss +38 -0
  22. package/src/assets/scss/splitting_confirmation_modal.scss +41 -0
  23. package/src/assets/scss/variables.scss +2 -657
  24. package/src/components/App.vue +9 -3
  25. package/src/components/DocumentAnnotations/AnnotationActionButtons.vue +171 -0
  26. package/src/components/DocumentAnnotations/AnnotationContent.vue +5 -3
  27. package/src/components/DocumentAnnotations/AnnotationDetails.vue +28 -7
  28. package/src/components/DocumentAnnotations/AnnotationRow.vue +133 -41
  29. package/src/components/DocumentAnnotations/AnnotationSetActionButtons.vue +86 -0
  30. package/src/components/DocumentAnnotations/CategorizeModal.vue +28 -2
  31. package/src/components/DocumentAnnotations/DocumentAnnotations.vue +121 -97
  32. package/src/components/DocumentAnnotations/EmptyAnnotation.vue +21 -5
  33. package/src/components/DocumentAnnotations/ExtractingData.vue +3 -3
  34. package/src/components/DocumentAnnotations/index.js +0 -1
  35. package/src/components/DocumentCategory.vue +13 -5
  36. package/src/components/DocumentDashboard.vue +17 -6
  37. package/src/components/DocumentEdit/DocumentEdit.vue +208 -68
  38. package/src/components/DocumentEdit/EditConfirmationModal.vue +54 -0
  39. package/src/components/DocumentEdit/EditPages.vue +29 -18
  40. package/src/components/DocumentEdit/EditSidebar.vue +92 -45
  41. package/src/components/DocumentEdit/SidebarButtons.vue +53 -0
  42. package/src/components/DocumentEdit/SplitInfoBar.vue +19 -0
  43. package/src/components/DocumentEdit/SplitOverview.vue +4 -5
  44. package/src/components/{DocumentError.vue → DocumentModals/DocumentErrorModal.vue} +3 -4
  45. package/src/components/{NotOptimizedViewportModal.vue → DocumentModals/NotOptimizedViewportModal.vue} +2 -2
  46. package/src/components/DocumentModals/SplittingSuggestionsModal.vue +120 -0
  47. package/src/components/DocumentPage/ActionBar.vue +3 -3
  48. package/src/components/DocumentPage/AnnSetTableOptions.vue +107 -0
  49. package/src/components/DocumentPage/DocumentPage.vue +39 -10
  50. package/src/components/DocumentPage/DocumentToolbar.vue +6 -2
  51. package/src/components/DocumentPage/MultiAnnSelection.vue +90 -2
  52. package/src/components/DocumentPage/MultiAnnotationTableOverlay.vue +274 -0
  53. package/src/components/DocumentPage/MultiAnnotationTablePopup.vue +19 -46
  54. package/src/components/DocumentPage/NewAnnotation.vue +1 -1
  55. package/src/components/DocumentPage/ScrollingDocument.vue +43 -4
  56. package/src/components/DocumentPage/ScrollingPage.vue +4 -5
  57. package/src/components/DocumentThumbnails/DocumentThumbnails.vue +14 -11
  58. package/src/components/DocumentTopBar/DocumentName.vue +6 -1
  59. package/src/components/DocumentTopBar/DocumentTopBar.vue +9 -9
  60. package/src/components/DocumentTopBar/DocumentTopBarButtons.vue +38 -32
  61. package/src/components/DocumentTopBar/KeyboardActionsDescription.vue +9 -3
  62. package/src/components/DocumentsList/DocumentsList.vue +11 -2
  63. package/src/locales/de.json +23 -6
  64. package/src/locales/en.json +24 -6
  65. package/src/locales/es.json +23 -6
  66. package/src/store/category.js +1 -1
  67. package/src/store/display.js +51 -0
  68. package/src/store/document.js +181 -24
  69. package/src/store/edit.js +71 -48
  70. package/src/store/project.js +14 -14
  71. package/src/utils/utils.js +13 -0
  72. package/src/components/DocumentAnnotations/ActionButtons.vue +0 -257
  73. package/src/components/DocumentAnnotations/RejectedLabels.vue +0 -96
@@ -0,0 +1,38 @@
1
+ @import "./imports.scss";
2
+
3
+ .multi-ann-table-overlay {
4
+ position: absolute;
5
+ bottom: 0;
6
+ height: fit-content;
7
+ z-index: 40;
8
+ width: 100%;
9
+ background-color: $background;
10
+
11
+ .multi-ann-set-table {
12
+ padding-bottom: 6px;
13
+
14
+ .table-wrapper {
15
+ overflow: visible;
16
+ .header-dropdown {
17
+ cursor: pointer;
18
+
19
+ .icon.arrow {
20
+ margin-left: 4px;
21
+ }
22
+ .draggable {
23
+ margin-right: 4px;
24
+ cursor: move;
25
+ }
26
+
27
+ .delete-action {
28
+ color: $red;
29
+ }
30
+ }
31
+
32
+ .annotations-table {
33
+ min-height: 22px;
34
+ display: flex;
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,41 @@
1
+ @import "./imports.scss";
2
+
3
+ .splitting-confirmation-modal {
4
+ .header {
5
+ display: flex;
6
+ align-items: center;
7
+ gap: 8px;
8
+ padding-bottom: 15px;
9
+ font-weight: 500;
10
+ font-size: 18px;
11
+ }
12
+
13
+ .content {
14
+ text-align: left;
15
+ font-weight: 400;
16
+ font-size: 14px;
17
+ color: $text-color;
18
+ }
19
+
20
+ .modal-card-foot {
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: 10px;
24
+
25
+ .recommended {
26
+ font-weight: 600;
27
+ font-size: 11px;
28
+ background-color: rgba(255, 255, 255, 0.2);
29
+ padding: 2px 5px;
30
+ border-radius: 36px;
31
+ }
32
+
33
+ .button {
34
+ width: 100%;
35
+
36
+ &.is-primary {
37
+ font-weight: 500;
38
+ }
39
+ }
40
+ }
41
+ }
@@ -37,6 +37,8 @@ $yellow: #ffd600;
37
37
  $warning-yellow: #fec84b;
38
38
 
39
39
  $blue: #2f80ed;
40
+ $purple: #7b61ff;
41
+ $purple-low-opacity: rgba(123, 97, 255, 0.08);
40
42
  $text-color: #1a1a1a;
41
43
 
42
44
  :root {
@@ -67,660 +69,3 @@ $black: $dark;
67
69
  $input-shadow: none;
68
70
  $top-bar-height: 56px;
69
71
  $component-border: 1px solid $detail;
70
-
71
- button {
72
- &.is-primary {
73
- background-color: $primary !important;
74
- color: $white !important;
75
-
76
- &:hover:enabled {
77
- filter: $hover-style;
78
- }
79
-
80
- &:disabled {
81
- background-color: $grey;
82
- }
83
- }
84
-
85
- &.reject-decline-btn {
86
- font-size: 14px;
87
- color: $grey-blue !important;
88
- font-weight: 500;
89
- background-color: transparent;
90
- width: auto;
91
-
92
- &:not([disabled]) {
93
- &:hover {
94
- text-decoration: none;
95
- color: $text-color !important;
96
- }
97
- }
98
-
99
- &:focus {
100
- box-shadow: none;
101
- }
102
- }
103
-
104
- &:not(.is-text, .is-primary, .reject-btn) {
105
- background-color: $white;
106
- color: $text-color;
107
- }
108
-
109
- &.is-text {
110
- text-decoration: none;
111
-
112
- &:hover {
113
- background-color: transparent;
114
- }
115
- }
116
-
117
- &.annotation-cancel-btn {
118
- .icon {
119
- svg {
120
- width: 15px !important;
121
- height: 15px !important;
122
- }
123
- }
124
- }
125
-
126
- &.accept-all-btn {
127
- padding-left: 4px;
128
- padding-right: 4px;
129
- }
130
-
131
- &.reject-all-btn {
132
- padding-right: 4px;
133
- }
134
-
135
- &.action-bar-save-btn {
136
- height: 32px;
137
- padding: 6px 12px 6px 12px !important;
138
- font-size: 14px;
139
- font-weight: 500;
140
- }
141
-
142
- &.finish-review-btn {
143
- margin-right: 2px;
144
-
145
- &:focus {
146
- box-shadow: none;
147
- outline: 3px solid $grey-dark;
148
- border: 2px solid;
149
- margin-right: 1px;
150
- }
151
-
152
- .spinner {
153
- margin: auto !important;
154
- }
155
- }
156
-
157
- &.rotate-button[disabled] {
158
- border: 1px solid $detail;
159
- }
160
-
161
- &[disabled] {
162
- border: none;
163
-
164
- &:hover {
165
- text-decoration: none;
166
- }
167
- }
168
-
169
- &.primary-button {
170
- border-radius: var(--primary-button) !important;
171
- }
172
-
173
- &.tertiary-button {
174
- border-radius: 20px !important;
175
- }
176
- }
177
-
178
- .carousel-list {
179
- &.has-shadow {
180
- box-shadow: none !important;
181
- }
182
-
183
- .carousel-slides .carousel-slide {
184
- border: none !important;
185
- }
186
-
187
- .carousel-arrow {
188
- .icon {
189
- color: $primary;
190
-
191
- &:hover {
192
- border: 1px solid $primary;
193
- }
194
-
195
- svg {
196
- height: 100%;
197
- }
198
- }
199
- }
200
- }
201
-
202
- .error-message {
203
- position: absolute;
204
- width: 100%;
205
-
206
- .message {
207
- padding: 0;
208
- }
209
-
210
- .message-body {
211
- background-color: $error-background;
212
- color: $white;
213
- font-size: 14px;
214
- border: 0;
215
- border-radius: 0%;
216
- line-height: 20px;
217
- padding: 7px 0 7px 0;
218
- }
219
-
220
- .media-content {
221
- display: flex;
222
- justify-content: flex-end;
223
- }
224
-
225
- .message-container {
226
- display: flex;
227
- width: 100%;
228
- justify-content: center;
229
- align-items: center;
230
-
231
- .server-error {
232
- display: flex;
233
-
234
- .contact-support {
235
- text-decoration: underline;
236
- font-weight: 600;
237
- display: flex;
238
- align-items: center;
239
- padding-left: 5px;
240
-
241
- .icon {
242
- padding-left: 10px;
243
- }
244
-
245
- &:hover {
246
- cursor: pointer;
247
- }
248
- }
249
- }
250
- }
251
-
252
- .btn-container {
253
- cursor: pointer;
254
- display: flex;
255
- align-items: center;
256
- }
257
- }
258
-
259
- .message {
260
- &.label-message {
261
- .message-body {
262
- padding: 5px 15px 5px 15px !important;
263
- }
264
- }
265
- }
266
-
267
- .dropdown {
268
- height: 100%;
269
-
270
- &.no-padding-bottom {
271
- .dropdown-content {
272
- padding-bottom: 0;
273
- }
274
- }
275
-
276
- &.no-padding-top {
277
- .dropdown-content {
278
- padding-top: 0;
279
- }
280
- }
281
-
282
- + .dropdown {
283
- margin-left: 0;
284
- }
285
-
286
- .dropdown-trigger {
287
- justify-content: space-between;
288
- width: 100%;
289
- }
290
-
291
- .dropdown-menu {
292
- padding-top: 0px;
293
- }
294
-
295
- a.dropdown-item.is-active {
296
- background-color: $primary;
297
- }
298
-
299
- &.dropdown-menu-animation {
300
- a.navbar-item {
301
- color: $text-color;
302
- font-size: 16px;
303
- line-height: 24px;
304
-
305
- &:hover {
306
- color: $primary;
307
- background: none;
308
- border: none;
309
- }
310
- }
311
-
312
- &.label-dropdown {
313
- width: 100%;
314
- }
315
- }
316
- }
317
-
318
- .b-checkbox.checkbox {
319
- &:hover input[type="checkbox"]:not(:disabled) + .check {
320
- border-color: $primary !important;
321
- }
322
-
323
- input[type="checkbox"]:checked + .check {
324
- border-color: $primary !important;
325
- background-color: $primary;
326
- }
327
- }
328
-
329
- .modal {
330
- z-index: 999;
331
-
332
- &.modal-text-center {
333
- text-align: center;
334
- }
335
-
336
- &.modal-400 {
337
- .modal-content {
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
- }
349
- }
350
- }
351
-
352
- &.is-active {
353
- &.modal-no-footer {
354
- .modal-content {
355
- .modal-card-body {
356
- border-radius: 16px 16px 16px 16px !important;
357
- }
358
- }
359
- }
360
-
361
- .modal-content {
362
- height: auto;
363
- margin-left: auto;
364
- margin-right: auto;
365
- position: relative;
366
-
367
- .modal-close {
368
- position: absolute;
369
- top: 14px;
370
-
371
- &::before,
372
- &::after {
373
- background-color: $grey;
374
- }
375
-
376
- &:hover {
377
- background-color: $white;
378
- }
379
- }
380
-
381
- .modal-card-body {
382
- background: $white;
383
- border-radius: 16px 16px 0 0 !important;
384
- }
385
-
386
- .modal-card-foot {
387
- display: flex;
388
- justify-content: center;
389
- border: none;
390
- background: $white;
391
- border-radius: 0 0 16px 16px;
392
- }
393
- }
394
- }
395
-
396
- &.modal-absolute {
397
- position: absolute;
398
- }
399
-
400
- .modal-background {
401
- background-color: $full-black;
402
- opacity: 0.5;
403
- }
404
- }
405
-
406
- .invisible-parent-modal {
407
- background-color: transparent;
408
-
409
- .modal-content {
410
- height: 100vh !important;
411
- top: 25%;
412
-
413
- .modal-card-body {
414
- overflow: visible;
415
- }
416
- }
417
- }
418
-
419
- .loading-background {
420
- background-color: transparent !important;
421
- }
422
-
423
- .loading-icon-size {
424
- width: 13px;
425
- height: 13px;
426
- }
427
-
428
- .notices {
429
- .snackbar {
430
- background-color: $text-color;
431
- min-height: 40px;
432
-
433
- .text {
434
- display: flex;
435
- font-size: 14px;
436
- }
437
- }
438
- }
439
-
440
- .label-action-btn {
441
- .dropdown-trigger {
442
- width: 100%;
443
- display: flex;
444
- justify-content: center;
445
- }
446
- }
447
-
448
- .slide-fade-enter-active {
449
- transition: all 0.3s ease;
450
- }
451
-
452
- .slide-fade-leave-active {
453
- transition: all 0.3s ease;
454
- }
455
-
456
- .slide-fade-enter,
457
- .slide-fade-leave-to {
458
- transform: translateY(-10px);
459
- opacity: 0;
460
- }
461
-
462
- .b-tooltip {
463
- .tooltip-content {
464
- background-color: $text-color !important;
465
-
466
- a {
467
- color: $white;
468
- text-decoration: underline;
469
- font-weight: 500;
470
- }
471
- }
472
-
473
- &.left-aligned {
474
- .tooltip-content {
475
- left: 10px !important;
476
- transform: none !important;
477
- padding: 8px 10px !important;
478
-
479
- &::before {
480
- left: 16px !important;
481
- right: auto !important;
482
- border-top-color: $text-color !important;
483
- border-bottom-color: $text-color !important;
484
- }
485
- }
486
- }
487
-
488
- &.right-aligned {
489
- .tooltip-content {
490
- right: -20px !important;
491
- left: auto !important;
492
- transform: none !important;
493
- padding: 8px 10px !important;
494
-
495
- &::before {
496
- right: 16px !important;
497
- left: auto !important;
498
- border-bottom-color: $text-color !important;
499
- }
500
- }
501
-
502
- &.finish-review {
503
- .tooltip-content {
504
- right: 0 !important;
505
- }
506
- }
507
-
508
- &.full-height-tooltip {
509
- height: 100%;
510
-
511
- .tooltip-content {
512
- right: 0 !important;
513
- }
514
- }
515
- }
516
-
517
- &.width-184 {
518
- .tooltip-content {
519
- width: 184px !important;
520
- }
521
- }
522
-
523
- &.left-down-aligned {
524
- .tooltip-content {
525
- font-size: 14px;
526
- padding: 12px 12px;
527
- top: 45px;
528
- background-color: $text-color;
529
- border-radius: 4px !important;
530
-
531
- &::before {
532
- top: 17px;
533
- border-left-color: $text-color !important;
534
- }
535
- }
536
- }
537
-
538
- &.bottom-aligned {
539
- width: 100%;
540
-
541
- .tooltip-content {
542
- &::before {
543
- border-bottom-color: $text-color !important;
544
- }
545
- }
546
- }
547
-
548
- &.top-aligned {
549
- .tooltip-content {
550
- &::before {
551
- border-top-color: $text-color !important;
552
- }
553
- }
554
- }
555
- }
556
-
557
- .rejected-tag-container {
558
- .tags {
559
- margin: 0 !important;
560
-
561
- .tag {
562
- margin-bottom: 0 !important;
563
- color: $dark;
564
- font-weight: 400;
565
- background-color: $detail;
566
- border-style: none !important;
567
-
568
- &:hover {
569
- background-color: $detail !important;
570
- }
571
-
572
- &.is-delete {
573
- cursor: pointer;
574
-
575
- &::before {
576
- height: 1.5px;
577
- border-radius: 4px;
578
- }
579
-
580
- &::after {
581
- width: 1.5px;
582
- border-radius: 4px;
583
- }
584
- }
585
- }
586
-
587
- &.loading-active {
588
- .is-delete {
589
- display: none !important;
590
- }
591
-
592
- .tag {
593
- border-radius: 4px;
594
- }
595
- }
596
- }
597
- }
598
-
599
- .no-icon-margin .icon {
600
- margin: 0 !important;
601
- }
602
-
603
- .icon.is-small,
604
- .button .icon.is-small {
605
- width: 14px;
606
- height: 14px;
607
-
608
- svg {
609
- width: 14px;
610
- height: 14px;
611
- }
612
-
613
- &.caret {
614
- svg {
615
- height: 12px;
616
- }
617
-
618
- &.split-mode-caret {
619
- svg {
620
- color: $grey;
621
- }
622
- }
623
- }
624
-
625
- &.close-btn {
626
- width: 10px;
627
- height: 10px;
628
-
629
- &.error-icon {
630
- color: $white;
631
- padding-right: 20px;
632
- padding-left: 20px;
633
-
634
- svg {
635
- height: 15px !important;
636
- }
637
- }
638
- }
639
- }
640
-
641
- .dropdown {
642
- &.split-mode {
643
- .dropdown-trigger {
644
- font-size: 14px;
645
- }
646
- }
647
-
648
- &.width-12 {
649
- .dropdown-trigger {
650
- width: 12px;
651
- }
652
- }
653
-
654
- .dropdown-trigger {
655
- height: 100%;
656
- display: flex;
657
- justify-content: center;
658
- align-items: center;
659
- }
660
-
661
- &.is-disabled {
662
- cursor: not-allowed;
663
- }
664
- }
665
-
666
- .b-table {
667
- &.full-height {
668
- height: 100%;
669
- .table-wrapper {
670
- height: 100%;
671
- .table {
672
- height: 100%;
673
- }
674
- }
675
- }
676
- .table {
677
- cursor: text;
678
- thead {
679
- background-color: #7b61ff;
680
- font-weight: 500;
681
- font-size: 10px;
682
- line-height: 18px;
683
- th {
684
- .th-wrap {
685
- text-transform: none;
686
- .icon {
687
- margin: 0;
688
- }
689
- }
690
- background-color: #7b61ff;
691
- color: white;
692
- vertical-align: middle;
693
- &[draggable="true"] {
694
- cursor: move;
695
- }
696
- }
697
- }
698
- tbody {
699
- background-color: rgba(123, 97, 255, 0.1);
700
- font-weight: 500;
701
- font-size: 10px;
702
- line-height: 18px;
703
- tr {
704
- background-color: white;
705
- color: black;
706
- td {
707
- &.has-text-centered {
708
- vertical-align: middle;
709
- }
710
- }
711
- }
712
- }
713
- &.is-striped {
714
- tbody {
715
- tr {
716
- &:not(.is-selected) {
717
- background-color: rgba(123, 97, 255, 0.1);
718
- &:nth-child(even) {
719
- background-color: rgba(123, 97, 255, 0.3);
720
- }
721
- }
722
- }
723
- }
724
- }
725
- }
726
- }