@konfuzio/document-validation-ui 0.1.5-automatic-document-splitting-3 → 0.1.5-styles-refactor

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 (44) 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/api.js +31 -21
  8. package/src/assets/images/ServerImage.vue +5 -4
  9. package/src/assets/images/SplitZigZag.vue +14 -47
  10. package/src/assets/scss/document_category.scss +1 -0
  11. package/src/assets/scss/document_dashboard.scss +0 -6
  12. package/src/assets/scss/document_edit.scss +46 -131
  13. package/src/assets/scss/main.scss +666 -7
  14. package/src/assets/scss/variables.scss +0 -719
  15. package/src/components/App.vue +3 -2
  16. package/src/components/DocumentAnnotations/CategorizeModal.vue +2 -22
  17. package/src/components/DocumentAnnotations/DocumentAnnotations.vue +3 -11
  18. package/src/components/DocumentCategory.vue +5 -13
  19. package/src/components/DocumentDashboard.vue +6 -17
  20. package/src/components/DocumentEdit/DocumentEdit.vue +78 -220
  21. package/src/components/DocumentEdit/EditPages.vue +18 -29
  22. package/src/components/DocumentEdit/EditSidebar.vue +45 -95
  23. package/src/components/DocumentEdit/SplitOverview.vue +5 -4
  24. package/src/components/{DocumentModals/DocumentErrorModal.vue → DocumentError.vue} +4 -3
  25. package/src/components/DocumentPage/DocumentPage.vue +9 -7
  26. package/src/components/DocumentPage/ScrollingDocument.vue +34 -4
  27. package/src/components/DocumentPage/ScrollingPage.vue +4 -5
  28. package/src/components/DocumentThumbnails/DocumentThumbnails.vue +14 -11
  29. package/src/components/DocumentTopBar/DocumentTopBarButtons.vue +20 -6
  30. package/src/components/{DocumentModals/NotOptimizedViewportModal.vue → NotOptimizedViewportModal.vue} +2 -2
  31. package/src/locales/de.json +2 -15
  32. package/src/locales/en.json +1 -15
  33. package/src/locales/es.json +1 -14
  34. package/src/store/display.js +7 -0
  35. package/src/store/document.js +16 -41
  36. package/src/store/edit.js +50 -68
  37. package/src/store/project.js +14 -14
  38. package/src/assets/images/MagicWandIcon.vue +0 -16
  39. package/src/assets/images/StarIcon.vue +0 -16
  40. package/src/assets/scss/splitting_confirmation_modal.scss +0 -41
  41. package/src/components/DocumentEdit/EditConfirmationModal.vue +0 -54
  42. package/src/components/DocumentEdit/SidebarButtons.vue +0 -53
  43. package/src/components/DocumentEdit/SplitInfoBar.vue +0 -19
  44. package/src/components/DocumentModals/SplittingSuggestionsModal.vue +0 -121
@@ -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,669 @@ 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
+ &.reject-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, .reject-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
+ &.reject-all-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
+ &.rotate-button[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
+ }
314
+ }
315
+
316
+ .modal-content {
317
+ height: auto;
318
+ margin-left: auto;
319
+ margin-right: auto;
320
+ position: relative;
321
+
322
+ .modal-close {
323
+ position: absolute;
324
+ top: 14px;
325
+
326
+ &::before,
327
+ &::after {
328
+ background-color: $grey;
329
+ }
330
+
331
+ &:hover {
332
+ background-color: $white;
333
+ }
334
+ }
335
+
336
+ .modal-card-body {
337
+ background: $white;
338
+ border-radius: 16px 16px 0 0 !important;
339
+ }
340
+
341
+ .modal-card-foot {
342
+ display: flex;
343
+ justify-content: center;
344
+ border: none;
345
+ background: $white;
346
+ border-radius: 0 0 16px 16px;
347
+ }
348
+ }
349
+ }
350
+
351
+ &.modal-absolute {
352
+ position: absolute;
353
+ }
354
+
355
+ .modal-background {
356
+ background-color: $full-black;
357
+ opacity: 0.5;
358
+ }
359
+ }
360
+
361
+ .invisible-parent-modal {
362
+ background-color: transparent;
363
+
364
+ .modal-content {
365
+ height: 100vh !important;
366
+ top: 25%;
367
+
368
+ .modal-card-body {
369
+ overflow: visible;
370
+ }
371
+ }
372
+ }
373
+
374
+ .loading-background {
375
+ background-color: transparent !important;
376
+ }
377
+
378
+ .loading-icon-size {
379
+ width: 13px;
380
+ height: 13px;
381
+ }
382
+
383
+ .notices {
384
+ .snackbar {
385
+ background-color: $text-color;
386
+ min-height: 40px;
387
+
388
+ .text {
389
+ display: flex;
390
+ font-size: 14px;
391
+ }
392
+ }
393
+ }
394
+
395
+ .label-action-btn {
396
+ .dropdown-trigger {
397
+ width: 100%;
398
+ display: flex;
399
+ justify-content: center;
400
+ }
401
+ }
402
+
403
+ .slide-fade-enter-active {
404
+ transition: all 0.3s ease;
405
+ }
406
+
407
+ .slide-fade-leave-active {
408
+ transition: all 0.3s ease;
409
+ }
410
+
411
+ .slide-fade-enter,
412
+ .slide-fade-leave-to {
413
+ transform: translateY(-10px);
414
+ opacity: 0;
415
+ }
416
+
417
+ .b-tooltip {
418
+ .tooltip-content {
419
+ background-color: $text-color !important;
420
+
421
+ a {
422
+ color: $white;
423
+ text-decoration: underline;
424
+ font-weight: 500;
425
+ }
426
+ }
427
+
428
+ &.left-aligned {
429
+ .tooltip-content {
430
+ left: 10px !important;
431
+ transform: none !important;
432
+ padding: 8px 10px !important;
433
+
434
+ &::before {
435
+ left: 16px !important;
436
+ right: auto !important;
437
+ border-top-color: $text-color !important;
438
+ border-bottom-color: $text-color !important;
439
+ }
440
+ }
441
+ }
442
+
443
+ &.right-aligned {
444
+ .tooltip-content {
445
+ right: -20px !important;
446
+ left: auto !important;
447
+ transform: none !important;
448
+ padding: 8px 10px !important;
449
+
450
+ &::before {
451
+ right: 16px !important;
452
+ left: auto !important;
453
+ border-bottom-color: $text-color !important;
454
+ }
455
+ }
456
+
457
+ &.finish-review {
458
+ .tooltip-content {
459
+ right: 0 !important;
460
+ }
461
+ }
462
+
463
+ &.full-height-tooltip {
464
+ height: 100%;
465
+
466
+ .tooltip-content {
467
+ right: 0 !important;
468
+ }
469
+ }
470
+ }
471
+
472
+ &.width-184 {
473
+ .tooltip-content {
474
+ width: 184px !important;
475
+ }
476
+ }
477
+
478
+ &.left-down-aligned {
479
+ .tooltip-content {
480
+ font-size: 14px;
481
+ padding: 12px 12px;
482
+ top: 45px;
483
+ background-color: $text-color;
484
+ border-radius: 4px !important;
485
+
486
+ &::before {
487
+ top: 17px;
488
+ border-left-color: $text-color !important;
489
+ }
490
+ }
491
+ }
492
+
493
+ &.bottom-aligned {
494
+ width: 100%;
495
+
496
+ .tooltip-content {
497
+ &::before {
498
+ border-bottom-color: $text-color !important;
499
+ }
500
+ }
501
+ }
502
+
503
+ &.top-aligned {
504
+ .tooltip-content {
505
+ &::before {
506
+ border-top-color: $text-color !important;
507
+ }
508
+ }
509
+ }
510
+ }
511
+
512
+ .rejected-tag-container {
513
+ .tags {
514
+ margin: 0 !important;
515
+
516
+ .tag {
517
+ margin-bottom: 0 !important;
518
+ color: $dark;
519
+ font-weight: 400;
520
+ background-color: $detail;
521
+ border-style: none !important;
522
+
523
+ &:hover {
524
+ background-color: $detail !important;
525
+ }
526
+
527
+ &.is-delete {
528
+ cursor: pointer;
529
+
530
+ &::before {
531
+ height: 1.5px;
532
+ border-radius: 4px;
533
+ }
534
+
535
+ &::after {
536
+ width: 1.5px;
537
+ border-radius: 4px;
538
+ }
539
+ }
540
+ }
541
+
542
+ &.loading-active {
543
+ .is-delete {
544
+ display: none !important;
545
+ }
546
+
547
+ .tag {
548
+ border-radius: 4px;
549
+ }
550
+ }
551
+ }
552
+ }
553
+
554
+ .no-icon-margin .icon {
555
+ margin: 0 !important;
556
+ }
557
+
558
+ .icon.is-small,
559
+ .button .icon.is-small {
560
+ width: 14px;
561
+ height: 14px;
562
+
563
+ svg {
564
+ width: 14px;
565
+ height: 14px;
566
+ }
567
+
568
+ &.caret {
569
+ svg {
570
+ height: 12px;
571
+ }
572
+
573
+ &.split-mode-caret {
574
+ svg {
575
+ color: $grey;
576
+ }
577
+ }
578
+ }
579
+
580
+ &.close-btn {
581
+ width: 10px;
582
+ height: 10px;
583
+
584
+ &.error-icon {
585
+ color: $white;
586
+ padding-right: 20px;
587
+ padding-left: 20px;
588
+
589
+ svg {
590
+ height: 15px !important;
591
+ }
592
+ }
593
+ }
594
+ }
595
+
596
+ .dropdown {
597
+ &.split-mode {
598
+ .dropdown-trigger {
599
+ font-size: 14px;
600
+ }
601
+ }
602
+
603
+ &.width-12 {
604
+ .dropdown-trigger {
605
+ width: 12px;
606
+ }
607
+ }
608
+
609
+ .dropdown-trigger {
610
+ height: 100%;
611
+ display: flex;
612
+ justify-content: center;
613
+ align-items: center;
614
+ }
615
+
616
+ &.is-disabled {
617
+ cursor: not-allowed;
618
+ }
619
+ }
620
+
621
+ .b-table {
622
+ &.full-height {
623
+ height: 100%;
624
+ .table-wrapper {
625
+ height: 100%;
626
+ .table {
627
+ height: 100%;
628
+ }
629
+ }
630
+ }
631
+ .table {
632
+ cursor: text;
633
+ thead {
634
+ background-color: #7b61ff;
635
+ font-weight: 500;
636
+ font-size: 10px;
637
+ line-height: 18px;
638
+ th {
639
+ .th-wrap {
640
+ text-transform: none;
641
+ .icon {
642
+ margin: 0;
643
+ }
644
+ }
645
+ background-color: #7b61ff;
646
+ color: white;
647
+ vertical-align: middle;
648
+ &[draggable="true"] {
649
+ cursor: move;
650
+ }
651
+ }
652
+ }
653
+ tbody {
654
+ background-color: rgba(123, 97, 255, 0.1);
655
+ font-weight: 500;
656
+ font-size: 10px;
657
+ line-height: 18px;
658
+ tr {
659
+ background-color: white;
660
+ color: black;
661
+ td {
662
+ &.has-text-centered {
663
+ vertical-align: middle;
664
+ }
665
+ }
666
+ }
667
+ }
668
+ &.is-striped {
669
+ tbody {
670
+ tr {
671
+ &:not(.is-selected) {
672
+ background-color: rgba(123, 97, 255, 0.1);
673
+ &:nth-child(even) {
674
+ background-color: rgba(123, 97, 255, 0.3);
675
+ }
676
+ }
677
+ }
678
+ }
679
+ }
680
+ }
681
+ }
682
+ }
24
683
  }