@konfuzio/document-validation-ui 0.1.51-dev.0 → 0.1.51-dev.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 (34) 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/dist/js/chunk-vendors.js +8 -6
  6. package/dist/js/chunk-vendors.js.map +1 -1
  7. package/package.json +2 -1
  8. package/src/assets/scss/annotation_action_buttons.scss +82 -0
  9. package/src/assets/scss/document_annotations.scss +331 -419
  10. package/src/assets/scss/document_dashboard.scss +0 -7
  11. package/src/assets/scss/document_edit.scss +3 -1
  12. package/src/assets/scss/document_top_bar.scss +72 -68
  13. package/src/assets/scss/theme.scss +89 -70
  14. package/src/components/DocumentAnnotations/AnnotationActionButtons.vue +153 -106
  15. package/src/components/DocumentAnnotations/AnnotationRow.vue +72 -19
  16. package/src/components/DocumentAnnotations/AnnotationSetActionButtons.vue +4 -4
  17. package/src/components/DocumentAnnotations/DocumentAnnotations.vue +7 -3
  18. package/src/components/DocumentAnnotations/DocumentLabel.vue +42 -59
  19. package/src/components/DocumentAnnotations/ExtractingData.vue +1 -7
  20. package/src/components/DocumentCategory.vue +0 -5
  21. package/src/components/DocumentDashboard.vue +12 -3
  22. package/src/components/DocumentEdit/EditSidebar.vue +1 -1
  23. package/src/components/DocumentPage/DocumentPage.vue +2 -1
  24. package/src/components/DocumentPage/EditAnnotation.vue +21 -15
  25. package/src/components/DocumentPage/ScrollingDocument.vue +1 -13
  26. package/src/components/DocumentTopBar/DocumentTopBar.vue +42 -40
  27. package/src/icons.js +6 -0
  28. package/src/locales/de.json +3 -2
  29. package/src/locales/en.json +3 -2
  30. package/src/locales/es.json +3 -2
  31. package/src/main.js +2 -0
  32. package/src/store/display.js +12 -10
  33. package/src/store/document.js +3 -0
  34. package/src/components/DocumentPage/ActionBar.vue +0 -48
@@ -19,17 +19,10 @@
19
19
  height: 100%;
20
20
  overflow: auto;
21
21
  position: relative;
22
- flex: 1;
23
22
  background-image: radial-gradient(#bfc1c9 0.8px, #ededed 0.1px);
24
23
  background-size: 9px 9px;
25
24
  }
26
25
 
27
- &.edit-mode {
28
- .dashboard-document {
29
- flex: 1.5;
30
- }
31
- }
32
-
33
26
  @media print {
34
27
  .dashboard-document {
35
28
  position: static;
@@ -2,8 +2,10 @@
2
2
 
3
3
  #document-edit {
4
4
  display: flex;
5
- flex: 1;
6
5
  background-color: $light-grey-background;
6
+ position: relative;
7
+ display: flex;
8
+ height: 100%;
7
9
 
8
10
  .pages-section {
9
11
  width: 100%;
@@ -50,95 +50,99 @@
50
50
  }
51
51
 
52
52
  .right-bar-components {
53
- align-items: center;
54
- justify-content: flex-end;
55
- display: flex;
56
53
  flex: 1;
57
54
 
58
- .read-only-info {
59
- display: flex;
55
+ .right-components {
56
+ height: 100%;
60
57
  align-items: center;
61
58
  justify-content: flex-end;
62
- padding-right: 24px;
63
- color: $text-lighter;
64
- font-size: 14px;
65
- line-height: 20px;
66
- font-weight: 400;
67
- height: 100%;
59
+ display: flex;
68
60
 
69
- .info-icon {
70
- margin-left: 14px;
71
- vertical-align: text-top;
61
+ .read-only-info {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: flex-end;
65
+ padding-right: 24px;
66
+ color: $text-lighter;
67
+ font-size: 14px;
68
+ line-height: 20px;
69
+ font-weight: 400;
70
+ height: 100%;
71
+
72
+ .info-icon {
73
+ margin-left: 14px;
74
+ vertical-align: text-top;
75
+
76
+ &.info-reviewed {
77
+ color: $primary;
78
+ }
79
+ }
72
80
 
73
- &.info-reviewed {
81
+ .doc-reviewed {
74
82
  color: $primary;
75
83
  }
76
- }
77
84
 
78
- .doc-reviewed {
79
- color: $primary;
80
- }
81
-
82
- .read-only-details {
83
- white-space: normal;
84
- font-size: 12px;
85
+ .read-only-details {
86
+ white-space: normal;
87
+ font-size: 12px;
88
+ }
85
89
  }
86
- }
87
90
 
88
- .keyboard-actions-info {
89
- margin-right: 16px;
90
-
91
- .tooltip-title {
92
- font-weight: 600;
93
- padding-bottom: 10px;
94
- }
91
+ .keyboard-actions-info {
92
+ margin-right: 16px;
95
93
 
96
- .tooltip-description {
97
- display: flex;
98
- flex-direction: column;
99
- row-gap: 8px;
94
+ .tooltip-title {
95
+ font-weight: 600;
96
+ padding-bottom: 10px;
97
+ }
100
98
 
101
- .content-line,
102
- .action-item {
99
+ .tooltip-description {
103
100
  display: flex;
104
- flex-wrap: nowrap;
105
- justify-content: flex-start;
106
- gap: 6px;
107
-
108
- .tooltip-divider {
109
- width: 1px;
110
- background-color: $grey-detail;
111
- height: 15px;
112
- margin-top: 3px;
113
- opacity: 30%;
114
- }
101
+ flex-direction: column;
102
+ row-gap: 8px;
115
103
 
116
- .key {
117
- font-size: 12px;
118
- font-weight: 500;
104
+ .content-line,
105
+ .action-item {
119
106
  display: flex;
120
- align-items: center;
121
- background-color: $low-opacity-white;
122
- border-radius: 4px;
123
- padding: 0 5px 0 5px;
124
- }
125
-
126
- .keyboard-action-text {
127
- font-weight: 400;
128
- line-height: 20px;
107
+ flex-wrap: nowrap;
108
+ justify-content: flex-start;
109
+ gap: 6px;
110
+
111
+ .tooltip-divider {
112
+ width: 1px;
113
+ background-color: $grey-detail;
114
+ height: 15px;
115
+ margin-top: 3px;
116
+ opacity: 30%;
117
+ }
118
+
119
+ .key {
120
+ font-size: 12px;
121
+ font-weight: 500;
122
+ display: flex;
123
+ align-items: center;
124
+ background-color: $low-opacity-white;
125
+ border-radius: 4px;
126
+ padding: 0 5px 0 5px;
127
+ }
128
+
129
+ .keyboard-action-text {
130
+ font-weight: 400;
131
+ line-height: 20px;
132
+ }
129
133
  }
130
134
  }
131
135
  }
132
- }
133
136
 
134
- .top-bar-buttons {
135
- .buttons {
136
- display: flex;
137
- align-items: center;
138
- margin-right: 16px;
137
+ .top-bar-buttons {
138
+ .buttons {
139
+ display: flex;
140
+ align-items: center;
141
+ margin-right: 16px;
139
142
 
140
- .edit-mode-btn {
141
- font-size: 14px;
143
+ .edit-mode-btn {
144
+ font-size: 14px;
145
+ }
142
146
  }
143
147
  }
144
148
  }
@@ -68,68 +68,6 @@
68
68
  }
69
69
  }
70
70
 
71
- // TODO: custom classes should have the styles under the component file
72
- &.missing-decline-btn {
73
- font-size: 14px;
74
- color: $grey-blue !important;
75
- font-weight: 500;
76
- background-color: transparent;
77
- width: auto;
78
-
79
- &:not([disabled]) {
80
- &:hover {
81
- text-decoration: none;
82
- color: $text-color !important;
83
- }
84
- }
85
-
86
- &:focus {
87
- box-shadow: none;
88
- }
89
- }
90
-
91
- &.is-text {
92
- text-decoration: none;
93
-
94
- &.has-right-icon {
95
- > span {
96
- padding-right: 16px;
97
- white-space: nowrap;
98
- overflow: hidden;
99
- text-overflow: ellipsis;
100
- }
101
- }
102
-
103
- &:hover {
104
- background-color: transparent;
105
- }
106
- }
107
-
108
- &.annotation-cancel-btn {
109
- .icon {
110
- svg {
111
- width: 15px !important;
112
- height: 15px !important;
113
- }
114
- }
115
- }
116
-
117
- &.accept-all-btn {
118
- padding-left: 4px;
119
- padding-right: 4px;
120
- }
121
-
122
- &.all-missing-btn {
123
- padding-right: 4px;
124
- }
125
-
126
- &.action-bar-save-btn {
127
- height: 32px;
128
- padding: 6px 12px 6px 12px !important;
129
- font-size: 14px;
130
- font-weight: 500;
131
- }
132
-
133
71
  &.finish-review-btn {
134
72
  margin-right: 2px;
135
73
 
@@ -166,6 +104,85 @@
166
104
  }
167
105
  }
168
106
 
107
+ .b-slider {
108
+ &.is-full-height {
109
+ height: 100%;
110
+
111
+ .b-slider-track {
112
+ height: 100%;
113
+
114
+ .b-slider-thumb-wrapper {
115
+ height: 100%;
116
+ .tooltip-trigger {
117
+ height: 100%;
118
+ .b-slider-thumb {
119
+ height: 100%;
120
+ width: 1px;
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
126
+ &.show-hover {
127
+ .b-slider-track:hover {
128
+ .b-slider-thumb-wrapper {
129
+ .tooltip-trigger {
130
+ .b-slider-thumb {
131
+ width: 4px;
132
+ transform: none;
133
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==");
134
+ opacity: 0.8;
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ &.show-line {
141
+ .b-slider-track {
142
+ .b-slider-thumb-wrapper {
143
+ .tooltip-trigger {
144
+ .b-slider-thumb {
145
+ background-color: $grey-lightest;
146
+ background-image: none;
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ &.is-move {
153
+ margin: 0px;
154
+ &.is-disabled {
155
+ .b-slider-track {
156
+ cursor: not-allowed !important;
157
+ }
158
+ .b-slider-thumb-wrapper {
159
+ cursor: not-allowed !important;
160
+ }
161
+ }
162
+ .b-slider-track {
163
+ cursor: col-resize;
164
+ color: $white;
165
+ background: transparent !important;
166
+ }
167
+ .b-slider-fill {
168
+ background: transparent !important;
169
+ }
170
+ .b-slider-thumb-wrapper {
171
+ cursor: col-resize;
172
+ .b-slider-thumb {
173
+ background: none;
174
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==");
175
+
176
+ width: 5px;
177
+ border: none;
178
+ }
179
+ .tooltip-content {
180
+ user-select: none;
181
+ }
182
+ }
183
+ }
184
+ }
185
+
169
186
  .carousel-list {
170
187
  &.has-shadow {
171
188
  box-shadow: none !important;
@@ -540,14 +557,6 @@
540
557
  }
541
558
  }
542
559
 
543
- .label-action-btn {
544
- .dropdown-trigger {
545
- width: 100%;
546
- display: flex;
547
- justify-content: center;
548
- }
549
- }
550
-
551
560
  .slide-fade-enter-active {
552
561
  transition: all 0.3s ease;
553
562
  }
@@ -677,6 +686,10 @@
677
686
  margin: 0 !important;
678
687
  }
679
688
 
689
+ .center-icon {
690
+ vertical-align: middle;
691
+ }
692
+
680
693
  .icon.is-48 {
681
694
  svg {
682
695
  height: 48px;
@@ -703,6 +716,12 @@
703
716
  width: 12px;
704
717
  }
705
718
  }
719
+ .icon.is-16 {
720
+ svg {
721
+ height: 16px;
722
+ width: 16px;
723
+ }
724
+ }
706
725
 
707
726
  .icon.is-small,
708
727
  .button .icon.is-small {