@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
@@ -67,722 +67,3 @@ $black: $dark;
67
67
  $input-shadow: none;
68
68
  $top-bar-height: 56px;
69
69
  $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
- &.edit-mode-btn[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
- &.split-modal {
386
- padding-bottom: 0;
387
- }
388
- }
389
-
390
- .modal-card-foot {
391
- display: flex;
392
- justify-content: center;
393
- border: none;
394
- background: $white;
395
- border-radius: 0 0 16px 16px;
396
- }
397
- }
398
- }
399
-
400
- &.modal-absolute {
401
- position: absolute;
402
- }
403
-
404
- &.edit-modal {
405
- .modal-content {
406
- max-width: 441px !important;
407
-
408
- .modal-card-body {
409
- padding-bottom: 10px;
410
- }
411
- }
412
- }
413
-
414
- .modal-background {
415
- background-color: $full-black;
416
- opacity: 0.5;
417
- }
418
- }
419
-
420
- .invisible-parent-modal {
421
- background-color: transparent;
422
-
423
- .modal-content {
424
- height: 100vh !important;
425
- top: 25%;
426
-
427
- .modal-card-body {
428
- overflow: visible;
429
- }
430
- }
431
- }
432
-
433
- .loading-background {
434
- background-color: transparent !important;
435
- }
436
-
437
- .loading-icon-size {
438
- width: 13px;
439
- height: 13px;
440
- }
441
-
442
- .notices {
443
- .snackbar {
444
- background-color: $text-color;
445
- min-height: 40px;
446
-
447
- .text {
448
- display: flex;
449
- font-size: 14px;
450
- }
451
- }
452
- }
453
-
454
- .label-action-btn {
455
- .dropdown-trigger {
456
- width: 100%;
457
- display: flex;
458
- justify-content: center;
459
- }
460
- }
461
-
462
- .slide-fade-enter-active {
463
- transition: all 0.3s ease;
464
- }
465
-
466
- .slide-fade-leave-active {
467
- transition: all 0.3s ease;
468
- }
469
-
470
- .slide-fade-enter,
471
- .slide-fade-leave-to {
472
- transform: translateY(-10px);
473
- opacity: 0;
474
- }
475
-
476
- .b-tooltip {
477
- .tooltip-content {
478
- background-color: $text-color !important;
479
-
480
- a {
481
- color: $white;
482
- text-decoration: underline;
483
- font-weight: 500;
484
- }
485
- }
486
-
487
- &.left-aligned {
488
- .tooltip-content {
489
- left: 10px !important;
490
- transform: none !important;
491
- padding: 8px 10px !important;
492
-
493
- &::before {
494
- left: 16px !important;
495
- right: auto !important;
496
- border-top-color: $text-color !important;
497
- border-bottom-color: $text-color !important;
498
- }
499
- }
500
- }
501
-
502
- &.right-aligned {
503
- .tooltip-content {
504
- right: -20px !important;
505
- left: auto !important;
506
- transform: none !important;
507
- padding: 8px 10px !important;
508
-
509
- &::before {
510
- right: 16px !important;
511
- left: auto !important;
512
- border-bottom-color: $text-color !important;
513
- }
514
- }
515
-
516
- &.finish-review {
517
- .tooltip-content {
518
- right: 0 !important;
519
- }
520
- }
521
-
522
- &.full-height-tooltip {
523
- height: 100%;
524
-
525
- .tooltip-content {
526
- right: 0 !important;
527
- }
528
- }
529
-
530
- &.finish-review {
531
- .tooltip-content {
532
- right: 0 !important;
533
- }
534
- }
535
- }
536
-
537
- &.width-184 {
538
- .tooltip-content {
539
- width: 184px !important;
540
- }
541
- }
542
-
543
- &.left-down-aligned {
544
- .tooltip-content {
545
- font-size: 14px;
546
- padding: 12px 12px;
547
- top: 45px;
548
- background-color: $text-color;
549
- border-radius: 4px !important;
550
-
551
- &::before {
552
- top: 17px;
553
- border-left-color: $text-color !important;
554
- }
555
- }
556
- }
557
-
558
- &.bottom-aligned {
559
- width: 100%;
560
-
561
- .tooltip-content {
562
- &::before {
563
- border-bottom-color: $text-color !important;
564
- }
565
- }
566
- }
567
-
568
- &.top-aligned {
569
- .tooltip-content {
570
- &::before {
571
- border-top-color: $text-color !important;
572
- }
573
- }
574
- }
575
-
576
- &.split-tooltip {
577
- width: 100%;
578
- }
579
-
580
- &.bottom-aligned {
581
- width: 100%;
582
- bottom: 10px;
583
-
584
- .tooltip-content {
585
- &::before {
586
- border-bottom-color: $text-color !important;
587
- }
588
-
589
- a {
590
- color: $white;
591
- text-decoration: underline;
592
- font-weight: 500;
593
- }
594
- }
595
- }
596
-
597
- &.top-aligned {
598
- .tooltip-content {
599
- &::before {
600
- border-top-color: $text-color !important;
601
- }
602
- }
603
- }
604
- }
605
-
606
- .rejected-tag-container {
607
- .tags {
608
- margin: 0 !important;
609
-
610
- .tag {
611
- margin-bottom: 0 !important;
612
- color: $dark;
613
- font-weight: 400;
614
- background-color: $detail;
615
- border-style: none !important;
616
-
617
- &:hover {
618
- background-color: $detail !important;
619
- }
620
-
621
- &.is-delete {
622
- cursor: pointer;
623
-
624
- &::before {
625
- height: 1.5px;
626
- border-radius: 4px;
627
- }
628
-
629
- &::after {
630
- width: 1.5px;
631
- border-radius: 4px;
632
- }
633
- }
634
- }
635
-
636
- &.loading-active {
637
- .is-delete {
638
- display: none !important;
639
- }
640
-
641
- .tag {
642
- border-radius: 4px;
643
- }
644
- }
645
- }
646
- }
647
-
648
- .no-icon-margin .icon {
649
- margin: 0 !important;
650
- }
651
-
652
- .icon.is-small,
653
- .button .icon.is-small {
654
- width: 14px;
655
- height: 14px;
656
-
657
- svg {
658
- width: 14px;
659
- height: 14px;
660
- }
661
-
662
- &.caret {
663
- svg {
664
- height: 12px;
665
- }
666
-
667
- &.split-mode-caret {
668
- svg {
669
- color: $grey;
670
- }
671
- }
672
- }
673
-
674
- &.close-btn {
675
- width: 10px;
676
- height: 10px;
677
-
678
- &.error-icon {
679
- color: $white;
680
- padding-right: 20px;
681
- padding-left: 20px;
682
-
683
- svg {
684
- height: 15px !important;
685
- }
686
- }
687
- }
688
- }
689
-
690
- .dropdown {
691
- &.split-mode {
692
- .dropdown-trigger {
693
- font-size: 14px;
694
- }
695
- }
696
-
697
- &.width-12 {
698
- .dropdown-trigger {
699
- width: 12px;
700
- }
701
- }
702
-
703
- .dropdown-trigger {
704
- height: 100%;
705
- display: flex;
706
- justify-content: center;
707
- align-items: center;
708
- }
709
-
710
- &.is-disabled {
711
- cursor: not-allowed;
712
- }
713
- }
714
-
715
- .b-table {
716
- &.full-height {
717
- height: 100%;
718
- .table-wrapper {
719
- height: 100%;
720
- .table {
721
- height: 100%;
722
- }
723
- }
724
- }
725
- .table {
726
- cursor: text;
727
- thead {
728
- background-color: #7b61ff;
729
- font-weight: 500;
730
- font-size: 10px;
731
- line-height: 18px;
732
- th {
733
- .th-wrap {
734
- text-transform: none;
735
- .icon {
736
- margin: 0;
737
- }
738
- }
739
- background-color: #7b61ff;
740
- color: white;
741
- vertical-align: middle;
742
- &[draggable="true"] {
743
- cursor: move;
744
- }
745
- }
746
- }
747
- tbody {
748
- background-color: rgba(123, 97, 255, 0.1);
749
- font-weight: 500;
750
- font-size: 10px;
751
- line-height: 18px;
752
- tr {
753
- background-color: white;
754
- color: black;
755
- td {
756
- &.has-text-centered {
757
- vertical-align: middle;
758
- }
759
- }
760
- }
761
- }
762
- &.is-striped {
763
- tbody {
764
- tr {
765
- &:not(.is-selected) {
766
- background-color: rgba(123, 97, 255, 0.1);
767
- &:nth-child(even) {
768
- background-color: rgba(123, 97, 255, 0.3);
769
- }
770
- }
771
- }
772
- }
773
- }
774
- }
775
- }
776
-
777
- .switch {
778
- input[type="checkbox"] {
779
- &:checked + .check {
780
- background: $primary !important;
781
- box-shadow: none !important;
782
- }
783
-
784
- &:focus + .check {
785
- box-shadow: none !important;
786
- }
787
- }
788
- }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="app-container">
2
+ <div class="dv-ui-app-container dv-ui-theme">
3
3
  <DocumentsList />
4
4
  <DocumentDashboard />
5
5
  </div>
@@ -7,7 +7,7 @@
7
7
  <script>
8
8
  import DocumentDashboard from "./DocumentDashboard";
9
9
  import { DocumentsList } from "./DocumentsList";
10
- import { changeDocumentURL, getURLQueryParam } from "../utils/utils";
10
+ import { getURLQueryParam } from "../utils/utils";
11
11
  import API from "../api";
12
12
 
13
13
  export default {
@@ -106,6 +106,7 @@ export default {
106
106
  });
107
107
 
108
108
  // Add observer for class added to HTML tag when Buefy modals are mounted
109
+ // TODO: check defaultModalScroll property in Buefy constructor https://buefy.org/documentation/constructor-options
109
110
  const htmlTag = document.documentElement;
110
111
  const observer = new MutationObserver(function (mutations) {
111
112
  mutations.forEach(function (mutation) {