@konfuzio/document-validation-ui 0.1.5 → 0.1.6-pre-release-1

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