@konfuzio/document-validation-ui 0.1.4 → 0.1.5-automatic-document-splitting
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.
- package/dist/css/app.css +1 -1
- package/dist/index.html +1 -1
- package/dist/js/app.js +1 -1
- package/dist/js/app.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/MagicWandIcon.vue +16 -0
- package/src/assets/images/ServerImage.vue +3 -0
- package/src/assets/images/SplitZigZag.vue +47 -14
- package/src/assets/images/StarIcon.vue +16 -0
- package/src/assets/scss/document_category.scss +0 -1
- package/src/assets/scss/document_dashboard.scss +6 -0
- package/src/assets/scss/document_edit.scss +135 -46
- package/src/assets/scss/splitting_confirmation_modal.scss +41 -0
- package/src/assets/scss/variables.scss +63 -1
- package/src/components/App.vue +11 -1
- package/src/components/DocumentAnnotations/ActionButtons.vue +7 -0
- package/src/components/DocumentAnnotations/AnnotationContent.vue +3 -0
- package/src/components/DocumentAnnotations/AnnotationRow.vue +3 -0
- package/src/components/DocumentAnnotations/CategorizeModal.vue +24 -4
- package/src/components/DocumentAnnotations/DocumentAnnotations.vue +11 -3
- package/src/components/DocumentAnnotations/DocumentLabel.vue +2 -0
- package/src/components/DocumentAnnotations/EmptyAnnotation.vue +6 -1
- package/src/components/DocumentCategory.vue +39 -33
- package/src/components/DocumentDashboard.vue +39 -49
- package/src/components/DocumentEdit/DocumentEdit.vue +207 -69
- package/src/components/DocumentEdit/EditConfirmationModal.vue +54 -0
- package/src/components/DocumentEdit/EditPages.vue +30 -18
- package/src/components/DocumentEdit/EditSidebar.vue +95 -45
- package/src/components/DocumentEdit/SidebarButtons.vue +53 -0
- package/src/components/DocumentEdit/SplitInfoBar.vue +19 -0
- package/src/components/DocumentEdit/SplitOverview.vue +6 -5
- package/src/components/{DocumentError.vue → DocumentModals/DocumentErrorModal.vue} +3 -4
- package/src/components/{NotOptimizedViewportModal.vue → DocumentModals/NotOptimizedViewportModal.vue} +2 -2
- package/src/components/DocumentModals/SplittingSuggestionsModal.vue +121 -0
- package/src/components/DocumentPage/DocumentPage.vue +9 -3
- package/src/components/DocumentPage/DummyPage.vue +9 -7
- package/src/components/DocumentPage/ScrollingDocument.vue +8 -3
- package/src/components/DocumentThumbnails/DocumentThumbnails.vue +45 -8
- package/src/components/DocumentTopBar/DocumentName.vue +1 -0
- package/src/components/DocumentTopBar/DocumentTopBar.vue +2 -6
- package/src/components/DocumentTopBar/DocumentTopBarButtons.vue +6 -20
- package/src/components/index.js +1 -0
- package/src/locales/de.json +15 -2
- package/src/locales/en.json +15 -1
- package/src/locales/es.json +14 -1
- package/src/store/display.js +8 -0
- package/src/store/document.js +83 -37
- package/src/store/edit.js +66 -48
- package/src/store/project.js +14 -14
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
width="19"
|
|
4
|
+
height="19"
|
|
5
|
+
viewBox="0 0 19 19"
|
|
6
|
+
fill="none"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
fill-rule="evenodd"
|
|
11
|
+
clip-rule="evenodd"
|
|
12
|
+
d="M11.5098 0.833984C11.97 0.833984 12.3431 1.20708 12.3431 1.66732V2.91732C12.3431 3.37755 11.97 3.75065 11.5098 3.75065C11.0496 3.75065 10.6765 3.37755 10.6765 2.91732V1.66732C10.6765 1.20708 11.0496 0.833984 11.5098 0.833984ZM6.70333 2.74473C7.02877 2.41929 7.55641 2.41929 7.88184 2.74473L8.76573 3.62861C9.09116 3.95405 9.09116 4.48169 8.76573 4.80712C8.44029 5.13256 7.91265 5.13256 7.58721 4.80712L6.70333 3.92324C6.37789 3.5978 6.37789 3.07017 6.70333 2.74473ZM16.2657 2.74473C16.5912 3.07017 16.5912 3.5978 16.2657 3.92324L15.3818 4.80712C15.0564 5.13256 14.5288 5.13256 14.2033 4.80712C13.8779 4.48169 13.8779 3.95405 14.2033 3.62861L15.0872 2.74473C15.4127 2.41929 15.9403 2.41929 16.2657 2.74473ZM9.73615 5.84407C10.0709 5.7353 10.4315 5.7353 10.7662 5.84407C11.0076 5.92251 11.1925 6.05549 11.3383 6.17918C11.4709 6.29182 11.6158 6.43668 11.7645 6.58543L12.4164 7.23737C12.5651 7.38607 12.71 7.53089 12.8226 7.66358C12.9463 7.80928 13.0793 7.99419 13.1578 8.23562C13.2665 8.57036 13.2665 8.93094 13.1578 9.26568C13.0793 9.50711 12.9463 9.69202 12.8226 9.83772C12.71 9.9704 12.5652 10.1152 12.4164 10.2639L10.4244 12.256C10.4242 12.2562 10.424 12.2564 10.4238 12.2566C10.4236 12.2568 10.4234 12.257 10.4232 12.2572L4.68113 17.9992C4.53242 18.148 4.3876 18.2928 4.25492 18.4055C4.10921 18.5291 3.9243 18.6621 3.68287 18.7406C3.34813 18.8493 2.98755 18.8493 2.65281 18.7406C2.41138 18.6621 2.22648 18.5291 2.08077 18.4055C1.94809 18.2928 1.80327 18.148 1.65456 17.9992L1.63578 17.9804L1.0214 17.366L1.0026 17.3473C0.853863 17.1986 0.709012 17.0537 0.596376 16.9211C0.472682 16.7754 0.339706 16.5904 0.26126 16.349C0.152497 16.0143 0.152497 15.6537 0.26126 15.319C0.339706 15.0775 0.472681 14.8926 0.596375 14.7469C0.709013 14.6142 0.853865 14.4694 1.0026 14.3207L6.74496 8.57836L8.73791 6.5854C8.88661 6.43667 9.03142 6.29182 9.1641 6.17918C9.30981 6.05549 9.49472 5.92251 9.73615 5.84407ZM7.33451 10.3458L2.19991 15.4804C2.02518 15.6552 1.93003 15.7512 1.86694 15.8255C1.86443 15.8285 1.86207 15.8313 1.85985 15.834C1.86207 15.8366 1.86443 15.8395 1.86694 15.8424C1.93003 15.9167 2.02518 16.0128 2.19991 16.1875L2.81429 16.8019C2.98902 16.9767 3.08509 17.0718 3.1594 17.1349C3.16236 17.1374 3.16518 17.1398 3.16785 17.142C3.17052 17.1398 3.17333 17.1374 3.17629 17.1349C3.2506 17.0718 3.34667 16.9766 3.5214 16.8019L8.656 11.6673L7.33451 10.3458ZM9.83451 10.4888L8.51302 9.16732L9.89762 7.78272C10.0724 7.60799 10.1684 7.51284 10.2427 7.44975C10.2457 7.44724 10.2485 7.44487 10.2512 7.44265C10.2538 7.44487 10.2567 7.44724 10.2596 7.44975C10.3339 7.51284 10.43 7.60799 10.6047 7.78272L11.2191 8.3971C11.3938 8.57183 11.489 8.66789 11.5521 8.74221C11.5546 8.74516 11.557 8.74798 11.5592 8.75065C11.557 8.75332 11.5546 8.75614 11.5521 8.75909C11.489 8.83341 11.3938 8.92947 11.2191 9.1042L9.83451 10.4888ZM15.2598 7.50065C15.2598 7.04041 15.6329 6.66732 16.0931 6.66732H17.3431C17.8034 6.66732 18.1765 7.04041 18.1765 7.50065C18.1765 7.96089 17.8034 8.33398 17.3431 8.33398H16.0931C15.6329 8.33398 15.2598 7.96089 15.2598 7.50065ZM14.2033 10.2447C14.5288 9.91929 15.0564 9.91929 15.3818 10.2447L16.2657 11.1286C16.5912 11.454 16.5912 11.9817 16.2657 12.3071C15.9403 12.6326 15.4127 12.6326 15.0872 12.3071L14.2033 11.4232C13.8779 11.0978 13.8779 10.5702 14.2033 10.2447Z"
|
|
13
|
+
fill="#41AF85"
|
|
14
|
+
/>
|
|
15
|
+
</svg>
|
|
16
|
+
</template>
|
|
@@ -1,16 +1,49 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<svg
|
|
4
|
+
v-if="color === 'dark'"
|
|
5
|
+
width="6"
|
|
6
|
+
height="57"
|
|
7
|
+
viewBox="0 0 6 57"
|
|
8
|
+
fill="none"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
d="M1 1L5 7.875L1 14.75L5 21.625L1 28.5L5 35.375L1 42.25L5 49.125L1 56"
|
|
13
|
+
stroke="#1A1A1A"
|
|
14
|
+
stroke-linecap="round"
|
|
15
|
+
stroke-linejoin="round"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
|
|
19
|
+
<svg
|
|
20
|
+
v-if="color === 'green'"
|
|
21
|
+
width="6"
|
|
22
|
+
height="52"
|
|
23
|
+
viewBox="0 0 6 52"
|
|
24
|
+
fill="none"
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
>
|
|
27
|
+
<path
|
|
28
|
+
d="M1 1.67383L5 7.81966L1 13.9655L5 20.1113L1 26.2572L5 32.403L1 38.5488L5 44.6947L1 50.8405"
|
|
29
|
+
stroke="#44B78B"
|
|
30
|
+
stroke-width="1.5"
|
|
31
|
+
stroke-linecap="round"
|
|
32
|
+
stroke-linejoin="round"
|
|
33
|
+
/>
|
|
34
|
+
</svg>
|
|
35
|
+
</div>
|
|
16
36
|
</template>
|
|
37
|
+
|
|
38
|
+
<script>
|
|
39
|
+
export default {
|
|
40
|
+
name: "SplitZigZag",
|
|
41
|
+
props: {
|
|
42
|
+
color: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: null,
|
|
45
|
+
required: false,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
</script>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
width="16"
|
|
4
|
+
height="16"
|
|
5
|
+
viewBox="0 0 16 16"
|
|
6
|
+
fill="none"
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
>
|
|
9
|
+
<path
|
|
10
|
+
fill-rule="evenodd"
|
|
11
|
+
clip-rule="evenodd"
|
|
12
|
+
d="M2.99935 0.667969C3.36754 0.667969 3.66602 0.966446 3.66602 1.33464V2.33464H4.66602C5.03421 2.33464 5.33268 2.63311 5.33268 3.0013C5.33268 3.36949 5.03421 3.66797 4.66602 3.66797H3.66602V4.66797C3.66602 5.03616 3.36754 5.33464 2.99935 5.33464C2.63116 5.33464 2.33268 5.03616 2.33268 4.66797V3.66797H1.33268C0.964492 3.66797 0.666016 3.36949 0.666016 3.0013C0.666016 2.63311 0.964492 2.33464 1.33268 2.33464H2.33268V1.33464C2.33268 0.966446 2.63116 0.667969 2.99935 0.667969ZM8.66601 1.33464C8.94186 1.33464 9.18922 1.50452 9.28824 1.76198L10.4444 4.76789C10.6446 5.28859 10.7076 5.43863 10.7936 5.5597C10.88 5.68117 10.9861 5.7873 11.1076 5.87367C11.2287 5.95975 11.3787 6.02268 11.8994 6.22295L14.9053 7.37907C15.1628 7.47809 15.3327 7.72545 15.3327 8.0013C15.3327 8.27715 15.1628 8.52451 14.9053 8.62353L11.8994 9.77965C11.3787 9.97992 11.2287 10.0429 11.1076 10.1289C10.9861 10.2153 10.88 10.3214 10.7936 10.4429C10.7076 10.564 10.6446 10.714 10.4444 11.2347L9.28825 14.2406C9.18922 14.4981 8.94186 14.668 8.66602 14.668C8.39017 14.668 8.14281 14.4981 8.04379 14.2406L6.88767 11.2347C6.6874 10.714 6.62447 10.564 6.53838 10.4429C6.45201 10.3214 6.34588 10.2153 6.22441 10.1289C6.10335 10.0429 5.9533 9.97992 5.4326 9.77965L2.4267 8.62353C2.16923 8.52451 1.99935 8.27715 1.99935 8.0013C1.99935 7.72545 2.16923 7.47809 2.4267 7.37907L5.4326 6.22295C5.9533 6.02268 6.10335 5.95975 6.22441 5.87367C6.34588 5.7873 6.45201 5.68117 6.53838 5.5597C6.62447 5.43863 6.6874 5.28859 6.88767 4.76789L8.04378 1.76198C8.14281 1.50452 8.39017 1.33464 8.66601 1.33464ZM2.99935 10.668C3.36754 10.668 3.66602 10.9664 3.66602 11.3346V12.3346H4.66602C5.03421 12.3346 5.33268 12.6331 5.33268 13.0013C5.33268 13.3695 5.03421 13.668 4.66602 13.668H3.66602V14.668C3.66602 15.0362 3.36754 15.3346 2.99935 15.3346C2.63116 15.3346 2.33268 15.0362 2.33268 14.668V13.668H1.33268C0.964492 13.668 0.666016 13.3695 0.666016 13.0013C0.666016 12.6331 0.964492 12.3346 1.33268 12.3346H2.33268V11.3346C2.33268 10.9664 2.63116 10.668 2.99935 10.668Z"
|
|
13
|
+
fill="#41AF85"
|
|
14
|
+
/>
|
|
15
|
+
</svg>
|
|
16
|
+
</template>
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
&.split-overview-component {
|
|
9
9
|
min-width: 600px;
|
|
10
|
-
flex: 0;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
.pages-section {
|
|
@@ -15,6 +14,9 @@
|
|
|
15
14
|
overflow-y: scroll;
|
|
16
15
|
border-right: $component-border;
|
|
17
16
|
border-left: $component-border;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
justify-content: space-between;
|
|
18
20
|
|
|
19
21
|
.document-grid {
|
|
20
22
|
padding: 42px;
|
|
@@ -165,88 +167,134 @@
|
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
169
|
}
|
|
170
|
+
|
|
171
|
+
.info-bar {
|
|
172
|
+
position: sticky;
|
|
173
|
+
width: -moz-fit-content;
|
|
174
|
+
width: fit-content;
|
|
175
|
+
bottom: 20px;
|
|
176
|
+
left: 0;
|
|
177
|
+
right: 0;
|
|
178
|
+
margin: 0 auto;
|
|
179
|
+
padding: 10px;
|
|
180
|
+
|
|
181
|
+
.split-info-bar {
|
|
182
|
+
padding: 5px 13px;
|
|
183
|
+
min-height: 32px;
|
|
184
|
+
height: auto;
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
justify-content: center;
|
|
188
|
+
gap: 3px;
|
|
189
|
+
background-color: $text-color;
|
|
190
|
+
color: $white;
|
|
191
|
+
font-weight: 400;
|
|
192
|
+
font-size: 14px;
|
|
193
|
+
border-radius: 52px;
|
|
194
|
+
text-align: center;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
168
197
|
}
|
|
169
198
|
|
|
170
199
|
.sidebar {
|
|
171
200
|
width: 45%;
|
|
201
|
+
max-width: 300px;
|
|
202
|
+
min-width: 270px;
|
|
172
203
|
background-color: $background;
|
|
173
204
|
|
|
174
205
|
.edit-sidebar {
|
|
175
206
|
display: flex;
|
|
176
207
|
flex-direction: column;
|
|
177
208
|
align-items: center;
|
|
178
|
-
justify-content:
|
|
209
|
+
justify-content: flex-start;
|
|
179
210
|
text-align: center;
|
|
180
|
-
height:
|
|
181
|
-
gap: 50px;
|
|
182
|
-
|
|
183
|
-
.sidebar-header {
|
|
184
|
-
width: 85%;
|
|
185
|
-
height: 50%;
|
|
186
|
-
|
|
187
|
-
h3 {
|
|
188
|
-
color: $text-color;
|
|
189
|
-
font-weight: 600;
|
|
190
|
-
font-size: 16px;
|
|
191
|
-
line-height: 24px;
|
|
192
|
-
padding-bottom: 15px;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.description {
|
|
196
|
-
color: $grey;
|
|
197
|
-
font-size: 14px;
|
|
198
|
-
font-weight: 400;
|
|
199
|
-
line-height: 20px;
|
|
200
|
-
|
|
201
|
-
&:last-child {
|
|
202
|
-
padding-top: 12px;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
211
|
+
height: 100%;
|
|
206
212
|
|
|
207
213
|
.buttons-container {
|
|
208
214
|
width: 85%;
|
|
209
215
|
display: flex;
|
|
210
216
|
flex-direction: column;
|
|
211
|
-
gap: 24px;
|
|
212
217
|
color: $grey-dark;
|
|
213
218
|
|
|
214
219
|
.pages-selected {
|
|
215
220
|
font-weight: 400;
|
|
216
221
|
font-size: 14px;
|
|
222
|
+
margin-bottom: 15px;
|
|
217
223
|
|
|
218
224
|
&.disabled {
|
|
219
225
|
color: $grey;
|
|
220
226
|
}
|
|
221
227
|
}
|
|
222
228
|
|
|
223
|
-
.
|
|
229
|
+
.edit-buttons {
|
|
224
230
|
display: flex;
|
|
225
231
|
flex-direction: column;
|
|
226
232
|
gap: 8px;
|
|
227
|
-
|
|
233
|
+
border-bottom: 1px solid $grey-detail;
|
|
228
234
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
padding: 0 !important;
|
|
234
|
-
white-space: initial;
|
|
235
|
-
line-height: 1;
|
|
236
|
-
gap: 5px;
|
|
235
|
+
.sidebar-buttons {
|
|
236
|
+
.edit-mode-btn {
|
|
237
|
+
display: flex;
|
|
238
|
+
width: 100%;
|
|
237
239
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
.button-content {
|
|
241
|
+
display: flex;
|
|
242
|
+
align-items: center;
|
|
243
|
+
justify-content: center;
|
|
244
|
+
gap: 9px;
|
|
245
|
+
|
|
246
|
+
.button-text {
|
|
247
|
+
font-size: 14px;
|
|
248
|
+
font-weight: 500;
|
|
249
|
+
max-width: 70%;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
242
253
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
254
|
+
&:first-child {
|
|
255
|
+
margin-top: 14px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&:last-child {
|
|
259
|
+
margin-bottom: 14px;
|
|
246
260
|
}
|
|
247
261
|
}
|
|
262
|
+
|
|
263
|
+
&:first-child {
|
|
264
|
+
margin-top: 14px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
&:last-child {
|
|
268
|
+
margin-bottom: 14px;
|
|
269
|
+
}
|
|
248
270
|
}
|
|
249
271
|
}
|
|
272
|
+
|
|
273
|
+
.smart-split {
|
|
274
|
+
.switch {
|
|
275
|
+
.control-label {
|
|
276
|
+
.switch-text {
|
|
277
|
+
font-size: 14px;
|
|
278
|
+
padding-right: 10px;
|
|
279
|
+
color: $grey-dark;
|
|
280
|
+
font-weight: 500;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.new-badge {
|
|
285
|
+
background: linear-gradient(90deg, #c1ff79 0%, #79fff7 100%);
|
|
286
|
+
border-radius: 36px;
|
|
287
|
+
font-weight: 700;
|
|
288
|
+
font-size: 11px;
|
|
289
|
+
padding: 5px;
|
|
290
|
+
color: $text-color;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// &.smart-split-disabled {
|
|
295
|
+
// filter: opacity(0.5);
|
|
296
|
+
// }
|
|
297
|
+
}
|
|
250
298
|
}
|
|
251
299
|
}
|
|
252
300
|
|
|
@@ -428,4 +476,45 @@
|
|
|
428
476
|
}
|
|
429
477
|
}
|
|
430
478
|
}
|
|
479
|
+
|
|
480
|
+
.confirmation-modal-container {
|
|
481
|
+
.edit-confirmation-modal {
|
|
482
|
+
.header {
|
|
483
|
+
display: flex;
|
|
484
|
+
align-items: center;
|
|
485
|
+
gap: 8px;
|
|
486
|
+
padding-bottom: 15px;
|
|
487
|
+
font-weight: 500;
|
|
488
|
+
font-size: 18px;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.content {
|
|
492
|
+
text-align: left;
|
|
493
|
+
font-weight: 400;
|
|
494
|
+
font-size: 14px;
|
|
495
|
+
color: $grey-blue;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.modal-card-foot {
|
|
499
|
+
display: flex;
|
|
500
|
+
gap: 5px;
|
|
501
|
+
|
|
502
|
+
.recommended {
|
|
503
|
+
font-weight: 600;
|
|
504
|
+
font-size: 11px;
|
|
505
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
506
|
+
padding: 2px 5px;
|
|
507
|
+
border-radius: 36px;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.button {
|
|
511
|
+
width: 100%;
|
|
512
|
+
|
|
513
|
+
&.is-primary {
|
|
514
|
+
font-weight: 500;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
431
520
|
}
|
|
@@ -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
|
+
}
|
|
@@ -152,7 +152,7 @@ button {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
&.
|
|
155
|
+
&.edit-mode-btn[disabled] {
|
|
156
156
|
border: 1px solid $detail;
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -379,6 +379,10 @@ button {
|
|
|
379
379
|
.modal-card-body {
|
|
380
380
|
background: $white;
|
|
381
381
|
border-radius: 16px 16px 0 0 !important;
|
|
382
|
+
|
|
383
|
+
&.split-modal {
|
|
384
|
+
padding-bottom: 0;
|
|
385
|
+
}
|
|
382
386
|
}
|
|
383
387
|
|
|
384
388
|
.modal-card-foot {
|
|
@@ -395,6 +399,16 @@ button {
|
|
|
395
399
|
position: absolute;
|
|
396
400
|
}
|
|
397
401
|
|
|
402
|
+
&.edit-modal {
|
|
403
|
+
.modal-content {
|
|
404
|
+
max-width: 441px !important;
|
|
405
|
+
|
|
406
|
+
.modal-card-body {
|
|
407
|
+
padding-bottom: 10px;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
398
412
|
.modal-background {
|
|
399
413
|
background-color: $full-black;
|
|
400
414
|
opacity: 0.5;
|
|
@@ -510,6 +524,12 @@ button {
|
|
|
510
524
|
right: 0 !important;
|
|
511
525
|
}
|
|
512
526
|
}
|
|
527
|
+
|
|
528
|
+
&.finish-review {
|
|
529
|
+
.tooltip-content {
|
|
530
|
+
right: 0 !important;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
513
533
|
}
|
|
514
534
|
|
|
515
535
|
&.width-184 {
|
|
@@ -550,6 +570,35 @@ button {
|
|
|
550
570
|
}
|
|
551
571
|
}
|
|
552
572
|
}
|
|
573
|
+
|
|
574
|
+
&.split-tooltip {
|
|
575
|
+
width: 100%;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
&.bottom-aligned {
|
|
579
|
+
width: 100%;
|
|
580
|
+
bottom: 10px;
|
|
581
|
+
|
|
582
|
+
.tooltip-content {
|
|
583
|
+
&::before {
|
|
584
|
+
border-bottom-color: $text-color !important;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
a {
|
|
588
|
+
color: $white;
|
|
589
|
+
text-decoration: underline;
|
|
590
|
+
font-weight: 500;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
&.top-aligned {
|
|
596
|
+
.tooltip-content {
|
|
597
|
+
&::before {
|
|
598
|
+
border-top-color: $text-color !important;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
553
602
|
}
|
|
554
603
|
|
|
555
604
|
.rejected-tag-container {
|
|
@@ -722,3 +771,16 @@ button {
|
|
|
722
771
|
}
|
|
723
772
|
}
|
|
724
773
|
}
|
|
774
|
+
|
|
775
|
+
.switch {
|
|
776
|
+
input[type="checkbox"] {
|
|
777
|
+
&:checked + .check {
|
|
778
|
+
background: $primary !important;
|
|
779
|
+
box-shadow: none !important;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
&:focus + .check {
|
|
783
|
+
box-shadow: none !important;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
package/src/components/App.vue
CHANGED
|
@@ -20,20 +20,30 @@ export default {
|
|
|
20
20
|
document: {
|
|
21
21
|
type: String,
|
|
22
22
|
required: false,
|
|
23
|
+
default: null,
|
|
23
24
|
},
|
|
24
25
|
project: {
|
|
25
26
|
type: String,
|
|
26
27
|
required: false,
|
|
28
|
+
default: null,
|
|
27
29
|
},
|
|
30
|
+
// eslint-disable-next-line vue/prop-name-casing
|
|
28
31
|
user_token: {
|
|
29
32
|
type: String,
|
|
30
33
|
required: false,
|
|
34
|
+
default: "",
|
|
31
35
|
},
|
|
36
|
+
// eslint-disable-next-line vue/prop-name-casing
|
|
32
37
|
full_mode: {
|
|
33
38
|
type: String,
|
|
34
39
|
required: false,
|
|
40
|
+
default: "false",
|
|
41
|
+
},
|
|
42
|
+
locale: {
|
|
43
|
+
type: String,
|
|
44
|
+
required: false,
|
|
45
|
+
default: "en",
|
|
35
46
|
},
|
|
36
|
-
locale: { type: String, required: false },
|
|
37
47
|
},
|
|
38
48
|
computed: {
|
|
39
49
|
documentId() {
|
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
</div>
|
|
143
143
|
</template>
|
|
144
144
|
<script>
|
|
145
|
+
/* Component for showing actions for each annotation row */
|
|
145
146
|
import { mapState, mapGetters } from "vuex";
|
|
146
147
|
export default {
|
|
147
148
|
name: "ActionButtons",
|
|
@@ -161,23 +162,29 @@ export default {
|
|
|
161
162
|
acceptBtn: {
|
|
162
163
|
type: Boolean,
|
|
163
164
|
},
|
|
165
|
+
// TODO: finishReviewBtn should not be here (see comment above for purpose of this component)
|
|
164
166
|
finishReviewBtn: {
|
|
165
167
|
type: Boolean,
|
|
166
168
|
},
|
|
169
|
+
// TODO: finishDisabled should not be here
|
|
167
170
|
finishDisabled: {
|
|
168
171
|
type: Boolean,
|
|
169
172
|
},
|
|
173
|
+
// TODO: handleReject should not be here
|
|
170
174
|
handleReject: {
|
|
171
175
|
type: Function,
|
|
172
176
|
default: null,
|
|
173
177
|
},
|
|
178
|
+
// TODO: rejectAllEmptyBtn should not be here
|
|
174
179
|
rejectAllEmptyBtn: {
|
|
175
180
|
type: Boolean,
|
|
176
181
|
},
|
|
182
|
+
// TODO: annotationSet should not be needed on a UI only component
|
|
177
183
|
annotationSet: {
|
|
178
184
|
type: Object,
|
|
179
185
|
default: null,
|
|
180
186
|
},
|
|
187
|
+
// TODO: acceptAllBtn should not be here
|
|
181
188
|
acceptAllBtn: {
|
|
182
189
|
type: Boolean,
|
|
183
190
|
},
|
|
@@ -41,6 +41,7 @@ export default {
|
|
|
41
41
|
required: true,
|
|
42
42
|
},
|
|
43
43
|
span: {
|
|
44
|
+
type: [Object, Array],
|
|
44
45
|
required: true,
|
|
45
46
|
},
|
|
46
47
|
spanIndex: {
|
|
@@ -49,9 +50,11 @@ export default {
|
|
|
49
50
|
},
|
|
50
51
|
label: {
|
|
51
52
|
type: Object,
|
|
53
|
+
required: true,
|
|
52
54
|
},
|
|
53
55
|
annotationSet: {
|
|
54
56
|
type: Object,
|
|
57
|
+
required: true,
|
|
55
58
|
},
|
|
56
59
|
saveChanges: {
|
|
57
60
|
type: Boolean,
|
|
@@ -116,12 +116,15 @@ export default {
|
|
|
116
116
|
},
|
|
117
117
|
props: {
|
|
118
118
|
annotationSet: {
|
|
119
|
+
type: Object,
|
|
119
120
|
required: true,
|
|
120
121
|
},
|
|
121
122
|
label: {
|
|
123
|
+
type: Object,
|
|
122
124
|
required: true,
|
|
123
125
|
},
|
|
124
126
|
annotation: {
|
|
127
|
+
type: Object,
|
|
125
128
|
default: null,
|
|
126
129
|
},
|
|
127
130
|
},
|