@konfuzio/document-validation-ui 0.1.19-dev.2 → 0.1.19
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/.eslintrc.js +10 -10
- package/.prettierrc.json +1 -1
- package/LICENSE +21 -21
- package/README.md +24 -24
- package/cypress.config.js +13 -13
- package/dist/js/app.js +1 -1
- package/dist/js/app.js.map +1 -1
- package/dist/js/chunk-vendors.js +1 -1
- package/dist/js/chunk-vendors.js.map +1 -1
- package/jest.config.js +4 -4
- package/package.json +66 -66
- package/src/api.js +82 -82
- package/src/assets/images/AcceptedCheckMark.vue +8 -8
- package/src/assets/images/AcceptedUser.vue +8 -8
- package/src/assets/images/ActionIcon.vue +60 -60
- package/src/assets/images/ArrowDownKey.vue +11 -11
- package/src/assets/images/ArrowUpKey.vue +11 -11
- package/src/assets/images/CategoryIconImg.vue +13 -13
- package/src/assets/images/CheckMark.vue +8 -8
- package/src/assets/images/DraggableIcon.vue +14 -14
- package/src/assets/images/EditDocIcon.vue +12 -12
- package/src/assets/images/EmptyStateImg.vue +129 -129
- package/src/assets/images/ErrorIcon.vue +28 -28
- package/src/assets/images/EyeIcon.vue +11 -11
- package/src/assets/images/FileNameNotSavedImage.vue +26 -26
- package/src/assets/images/FileNameSavedImage.vue +14 -14
- package/src/assets/images/FitZoomIcon.vue +16 -16
- package/src/assets/images/GridIcon.vue +16 -16
- package/src/assets/images/KeyboardIcon.vue +16 -16
- package/src/assets/images/MagicWandIcon.vue +16 -16
- package/src/assets/images/MinusIcon.vue +13 -13
- package/src/assets/images/NotFoundIcon.vue +16 -16
- package/src/assets/images/NotOptimizedIllustration.vue +651 -651
- package/src/assets/images/PlusIcon.vue +13 -13
- package/src/assets/images/QuestionMark.vue +12 -12
- package/src/assets/images/ServerImage.vue +73 -73
- package/src/assets/images/SettingsIcon.vue +14 -14
- package/src/assets/images/SplitLines.vue +18 -18
- package/src/assets/images/SplitZigZag.vue +49 -49
- package/src/assets/images/StarIcon.vue +16 -16
- package/src/assets/images/StatusImg.vue +14 -14
- package/src/assets/images/TranslateArrows.vue +33 -33
- package/src/assets/scss/ann_set_table_options.scss +26 -26
- package/src/assets/scss/annotation_details.scss +141 -141
- package/src/assets/scss/choose_label_set_modal.scss +65 -65
- package/src/assets/scss/document_action_bar.scss +37 -37
- package/src/assets/scss/document_annotations.scss +558 -558
- package/src/assets/scss/document_category.scss +85 -85
- package/src/assets/scss/document_dashboard.scss +52 -52
- package/src/assets/scss/document_edit.scss +410 -410
- package/src/assets/scss/document_error.scss +81 -81
- package/src/assets/scss/document_name.scss +60 -60
- package/src/assets/scss/document_page.scss +12 -12
- package/src/assets/scss/document_thumbnails.scss +41 -41
- package/src/assets/scss/document_toolbar.scss +111 -111
- package/src/assets/scss/document_top_bar.scss +171 -171
- package/src/assets/scss/document_viewport_modal.scss +25 -25
- package/src/assets/scss/documents_list.scss +141 -141
- package/src/assets/scss/edit_page_thumbnail.scss +53 -53
- package/src/assets/scss/empty_state.scss +34 -34
- package/src/assets/scss/extracting_data.scss +35 -35
- package/src/assets/scss/imports.scss +1 -1
- package/src/assets/scss/multi_ann_table_overlay.scss +38 -38
- package/src/assets/scss/multi_ann_table_popup.scss +12 -12
- package/src/assets/scss/new_annotation.scss +102 -102
- package/src/assets/scss/scrolling_document.scss +19 -19
- package/src/assets/scss/theme.scss +801 -801
- package/src/assets/scss/variables.scss +66 -66
- package/src/components/App.cy.js +7 -7
- package/src/components/App.vue +187 -187
- package/src/components/DocumentAnnotations/AnnotationActionButtons.vue +152 -152
- package/src/components/DocumentAnnotations/AnnotationContent.vue +210 -210
- package/src/components/DocumentAnnotations/AnnotationDetails.vue +251 -251
- package/src/components/DocumentAnnotations/AnnotationRow.vue +752 -752
- package/src/components/DocumentAnnotations/AnnotationSetActionButtons.vue +89 -89
- package/src/components/DocumentAnnotations/ChooseLabelSetModal.vue +186 -186
- package/src/components/DocumentAnnotations/DocumentAnnotations.cy.js +441 -441
- package/src/components/DocumentAnnotations/DocumentAnnotations.vue +534 -534
- package/src/components/DocumentAnnotations/DocumentLabel.vue +189 -189
- package/src/components/DocumentAnnotations/EmptyAnnotation.vue +193 -193
- package/src/components/DocumentAnnotations/EmptyState.vue +21 -21
- package/src/components/DocumentAnnotations/ExtractingData.vue +41 -41
- package/src/components/DocumentAnnotations/LoadingAnnotations.vue +43 -43
- package/src/components/DocumentAnnotations/LoadingLabels.vue +43 -43
- package/src/components/DocumentAnnotations/MultiAnnotationTableOverlay.vue +338 -338
- package/src/components/DocumentAnnotations/index.js +8 -8
- package/src/components/DocumentCategory.vue +281 -281
- package/src/components/DocumentDashboard.vue +170 -170
- package/src/components/DocumentEdit/DocumentEdit.cy.js +541 -541
- package/src/components/DocumentEdit/DocumentEdit.vue +503 -503
- package/src/components/DocumentEdit/EditConfirmationModal.vue +55 -55
- package/src/components/DocumentEdit/EditPageThumbnail.vue +114 -114
- package/src/components/DocumentEdit/EditPages.vue +161 -161
- package/src/components/DocumentEdit/EditSidebar.vue +154 -154
- package/src/components/DocumentEdit/RenameAndCategorize.vue +184 -184
- package/src/components/DocumentEdit/SidebarButtons.vue +53 -53
- package/src/components/DocumentEdit/SplitInfoBar.vue +21 -21
- package/src/components/DocumentEdit/index.js +4 -4
- package/src/components/DocumentModals/DocumentErrorModal.vue +58 -58
- package/src/components/DocumentModals/NotOptimizedViewportModal.vue +51 -51
- package/src/components/DocumentPage/ActionBar.vue +48 -48
- package/src/components/DocumentPage/AnnSetTableOptions.vue +111 -111
- package/src/components/DocumentPage/BoxSelection.vue +152 -152
- package/src/components/DocumentPage/DocumentPage.cy.js +92 -92
- package/src/components/DocumentPage/DocumentPage.vue +568 -568
- package/src/components/DocumentPage/DocumentToolbar.cy.js +215 -215
- package/src/components/DocumentPage/DocumentToolbar.vue +228 -228
- package/src/components/DocumentPage/DummyPage.vue +55 -55
- package/src/components/DocumentPage/MultiAnnSelection.vue +371 -371
- package/src/components/DocumentPage/NewAnnotation.vue +308 -308
- package/src/components/DocumentPage/ScrollingDocument.vue +149 -149
- package/src/components/DocumentPage/ScrollingPage.vue +179 -179
- package/src/components/DocumentPage/index.js +5 -5
- package/src/components/DocumentThumbnails/DocumentThumbnails.cy.js +67 -67
- package/src/components/DocumentThumbnails/DocumentThumbnails.vue +132 -132
- package/src/components/DocumentThumbnails/LoadingThumbnail.vue +25 -25
- package/src/components/DocumentThumbnails/index.js +1 -1
- package/src/components/DocumentTopBar/DocumentName.vue +236 -236
- package/src/components/DocumentTopBar/DocumentTopBar.cy.js +222 -222
- package/src/components/DocumentTopBar/DocumentTopBar.vue +202 -202
- package/src/components/DocumentTopBar/DocumentTopBarButtons.vue +183 -183
- package/src/components/DocumentTopBar/KeyboardActionsDescription.vue +74 -74
- package/src/components/DocumentTopBar/index.js +3 -3
- package/src/components/DocumentsList/DocumentsList.vue +121 -121
- package/src/components/DocumentsList/index.js +1 -1
- package/src/components/ErrorMessage.vue +40 -40
- package/src/components/index.js +1 -1
- package/src/constants.js +5 -5
- package/src/directives/scroll.js +28 -28
- package/src/i18n.js +22 -22
- package/src/icons.js +45 -45
- package/src/locales/de.json +148 -148
- package/src/locales/en.json +148 -148
- package/src/main.js +26 -26
- package/src/store/category.js +191 -191
- package/src/store/display.js +311 -311
- package/src/store/document.js +1438 -1438
- package/src/store/edit.js +316 -316
- package/src/store/index.js +21 -21
- package/src/store/project.js +143 -143
- package/src/store/selection.js +210 -210
- package/src/utils/utils.js +54 -54
- package/vue.config.js +25 -25
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sidebar-buttons">
|
|
3
|
-
<!-- Rotate buttons -->
|
|
4
|
-
<div v-if="showRotateButton" class="rotate-button-container">
|
|
5
|
-
<b-button
|
|
6
|
-
class="rotate-button edit-mode-btn primary-button"
|
|
7
|
-
:disabled="buttonDisabled"
|
|
8
|
-
@click="rotateButton"
|
|
9
|
-
>
|
|
10
|
-
<div class="button-content">
|
|
11
|
-
<b-icon :icon="icon" class="is-small" />
|
|
12
|
-
<span class="button-text">{{ buttonText }}</span>
|
|
13
|
-
</div>
|
|
14
|
-
</b-button>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
export default {
|
|
21
|
-
name: "SidebarButtons",
|
|
22
|
-
props: {
|
|
23
|
-
showRotateButton: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: false,
|
|
26
|
-
},
|
|
27
|
-
buttonDisabled: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: true,
|
|
30
|
-
},
|
|
31
|
-
buttonText: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: null,
|
|
34
|
-
},
|
|
35
|
-
icon: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: null,
|
|
38
|
-
},
|
|
39
|
-
tooltipInfo: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: null,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
methods: {
|
|
46
|
-
rotateButton() {
|
|
47
|
-
this.$emit("rotate");
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
</script>
|
|
52
|
-
|
|
53
|
-
<style scoped lang="scss" src="../../assets/scss/document_edit.scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sidebar-buttons">
|
|
3
|
+
<!-- Rotate buttons -->
|
|
4
|
+
<div v-if="showRotateButton" class="rotate-button-container">
|
|
5
|
+
<b-button
|
|
6
|
+
class="rotate-button edit-mode-btn primary-button"
|
|
7
|
+
:disabled="buttonDisabled"
|
|
8
|
+
@click="rotateButton"
|
|
9
|
+
>
|
|
10
|
+
<div class="button-content">
|
|
11
|
+
<b-icon :icon="icon" class="is-small" />
|
|
12
|
+
<span class="button-text">{{ buttonText }}</span>
|
|
13
|
+
</div>
|
|
14
|
+
</b-button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
export default {
|
|
21
|
+
name: "SidebarButtons",
|
|
22
|
+
props: {
|
|
23
|
+
showRotateButton: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false,
|
|
26
|
+
},
|
|
27
|
+
buttonDisabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true,
|
|
30
|
+
},
|
|
31
|
+
buttonText: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: null,
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: null,
|
|
38
|
+
},
|
|
39
|
+
tooltipInfo: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: null,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
methods: {
|
|
46
|
+
rotateButton() {
|
|
47
|
+
this.$emit("rotate");
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style scoped lang="scss" src="../../assets/scss/document_edit.scss"></style>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="split-info-bar">
|
|
3
|
-
<div class="bar-icon">
|
|
4
|
-
<StarIcon />
|
|
5
|
-
</div>
|
|
6
|
-
<span> {{ $t("smart_split_suggestions") }}</span>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
import StarIcon from "../../assets/images/StarIcon";
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
name: "SplitInfoBar",
|
|
15
|
-
components: {
|
|
16
|
-
StarIcon,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style scoped lang="scss" src="../../assets/scss/document_edit.scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="split-info-bar">
|
|
3
|
+
<div class="bar-icon">
|
|
4
|
+
<StarIcon />
|
|
5
|
+
</div>
|
|
6
|
+
<span> {{ $t("smart_split_suggestions") }}</span>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import StarIcon from "../../assets/images/StarIcon";
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: "SplitInfoBar",
|
|
15
|
+
components: {
|
|
16
|
+
StarIcon,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<style scoped lang="scss" src="../../assets/scss/document_edit.scss"></style>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as DocumentEdit } from "./DocumentEdit";
|
|
2
|
-
export { default as EditSidebar } from "./EditSidebar";
|
|
3
|
-
export { default as EditPages } from "./EditPages";
|
|
4
|
-
export { default as RenameAndCategorize } from "./RenameAndCategorize";
|
|
1
|
+
export { default as DocumentEdit } from "./DocumentEdit";
|
|
2
|
+
export { default as EditSidebar } from "./EditSidebar";
|
|
3
|
+
export { default as EditPages } from "./EditPages";
|
|
4
|
+
export { default as RenameAndCategorize } from "./RenameAndCategorize";
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="document-error-modal">
|
|
3
|
-
<b-modal
|
|
4
|
-
v-model="isModalActive"
|
|
5
|
-
:width="400"
|
|
6
|
-
:can-cancel="['x']"
|
|
7
|
-
:on-cancel="closeModal"
|
|
8
|
-
>
|
|
9
|
-
<section class="modal-card-body">
|
|
10
|
-
<div class="header">
|
|
11
|
-
<div class="error-icon">
|
|
12
|
-
<ErrorIcon class="icon" />
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="content">
|
|
16
|
-
<h3>{{ $t("document_error_title") }}</h3>
|
|
17
|
-
<p>{{ $t("document_error_info") }}</p>
|
|
18
|
-
</div>
|
|
19
|
-
</section>
|
|
20
|
-
<footer class="modal-card-foot">
|
|
21
|
-
<b-button
|
|
22
|
-
type="is-primary"
|
|
23
|
-
class="primary-button"
|
|
24
|
-
@click="handleContactSupport"
|
|
25
|
-
>
|
|
26
|
-
{{ $t("contact_support") }}
|
|
27
|
-
</b-button>
|
|
28
|
-
</footer>
|
|
29
|
-
</b-modal>
|
|
30
|
-
</section>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script>
|
|
34
|
-
import ErrorIcon from "../../assets/images/ErrorIcon";
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
name: "DocumentErrorModal",
|
|
38
|
-
components: {
|
|
39
|
-
ErrorIcon,
|
|
40
|
-
},
|
|
41
|
-
data() {
|
|
42
|
-
return {
|
|
43
|
-
isModalActive: true,
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
methods: {
|
|
47
|
-
handleContactSupport() {
|
|
48
|
-
const documentError = "Document error";
|
|
49
|
-
this.$store.dispatch("document/contactSupport", documentError);
|
|
50
|
-
},
|
|
51
|
-
closeModal() {
|
|
52
|
-
this.$store.dispatch("document/setDocumentError", false);
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<style scoped lang="scss" src="../../assets/scss/document_error.scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<section class="document-error-modal">
|
|
3
|
+
<b-modal
|
|
4
|
+
v-model="isModalActive"
|
|
5
|
+
:width="400"
|
|
6
|
+
:can-cancel="['x']"
|
|
7
|
+
:on-cancel="closeModal"
|
|
8
|
+
>
|
|
9
|
+
<section class="modal-card-body">
|
|
10
|
+
<div class="header">
|
|
11
|
+
<div class="error-icon">
|
|
12
|
+
<ErrorIcon class="icon" />
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="content">
|
|
16
|
+
<h3>{{ $t("document_error_title") }}</h3>
|
|
17
|
+
<p>{{ $t("document_error_info") }}</p>
|
|
18
|
+
</div>
|
|
19
|
+
</section>
|
|
20
|
+
<footer class="modal-card-foot">
|
|
21
|
+
<b-button
|
|
22
|
+
type="is-primary"
|
|
23
|
+
class="primary-button"
|
|
24
|
+
@click="handleContactSupport"
|
|
25
|
+
>
|
|
26
|
+
{{ $t("contact_support") }}
|
|
27
|
+
</b-button>
|
|
28
|
+
</footer>
|
|
29
|
+
</b-modal>
|
|
30
|
+
</section>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import ErrorIcon from "../../assets/images/ErrorIcon";
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: "DocumentErrorModal",
|
|
38
|
+
components: {
|
|
39
|
+
ErrorIcon,
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
isModalActive: true,
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
handleContactSupport() {
|
|
48
|
+
const documentError = "Document error";
|
|
49
|
+
this.$store.dispatch("document/contactSupport", documentError);
|
|
50
|
+
},
|
|
51
|
+
closeModal() {
|
|
52
|
+
this.$store.dispatch("document/setDocumentError", false);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style scoped lang="scss" src="../../assets/scss/document_error.scss"></style>
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="viewport-modal">
|
|
3
|
-
<b-modal v-model="isModalActive" class="modal-text-center" :width="500">
|
|
4
|
-
<section class="modal-card-body">
|
|
5
|
-
<div class="image">
|
|
6
|
-
<Illustration />
|
|
7
|
-
</div>
|
|
8
|
-
<div class="content">
|
|
9
|
-
<h3>{{ $t("small_viewport_title") }}</h3>
|
|
10
|
-
<p>{{ $t("small_viewport_info") }}</p>
|
|
11
|
-
</div>
|
|
12
|
-
</section>
|
|
13
|
-
<footer class="modal-card-foot">
|
|
14
|
-
<b-button
|
|
15
|
-
type="is-primary"
|
|
16
|
-
class="primary-button"
|
|
17
|
-
@click="handleNotOptimizedModal"
|
|
18
|
-
>
|
|
19
|
-
{{ $t("ok") }}
|
|
20
|
-
</b-button>
|
|
21
|
-
</footer>
|
|
22
|
-
</b-modal>
|
|
23
|
-
</section>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script>
|
|
27
|
-
import Illustration from "../../assets/images/NotOptimizedIllustration";
|
|
28
|
-
|
|
29
|
-
export default {
|
|
30
|
-
name: "NotOptimizedViewportModal",
|
|
31
|
-
components: {
|
|
32
|
-
Illustration,
|
|
33
|
-
},
|
|
34
|
-
data() {
|
|
35
|
-
return {
|
|
36
|
-
isModalActive: true,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
handleNotOptimizedModal() {
|
|
41
|
-
this.isModalActive = false;
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<style
|
|
48
|
-
scoped
|
|
49
|
-
lang="scss"
|
|
50
|
-
src="../../assets/scss/document_viewport_modal.scss"
|
|
51
|
-
></style>
|
|
1
|
+
<template>
|
|
2
|
+
<section class="viewport-modal">
|
|
3
|
+
<b-modal v-model="isModalActive" class="modal-text-center" :width="500">
|
|
4
|
+
<section class="modal-card-body">
|
|
5
|
+
<div class="image">
|
|
6
|
+
<Illustration />
|
|
7
|
+
</div>
|
|
8
|
+
<div class="content">
|
|
9
|
+
<h3>{{ $t("small_viewport_title") }}</h3>
|
|
10
|
+
<p>{{ $t("small_viewport_info") }}</p>
|
|
11
|
+
</div>
|
|
12
|
+
</section>
|
|
13
|
+
<footer class="modal-card-foot">
|
|
14
|
+
<b-button
|
|
15
|
+
type="is-primary"
|
|
16
|
+
class="primary-button"
|
|
17
|
+
@click="handleNotOptimizedModal"
|
|
18
|
+
>
|
|
19
|
+
{{ $t("ok") }}
|
|
20
|
+
</b-button>
|
|
21
|
+
</footer>
|
|
22
|
+
</b-modal>
|
|
23
|
+
</section>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
import Illustration from "../../assets/images/NotOptimizedIllustration";
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
name: "NotOptimizedViewportModal",
|
|
31
|
+
components: {
|
|
32
|
+
Illustration,
|
|
33
|
+
},
|
|
34
|
+
data() {
|
|
35
|
+
return {
|
|
36
|
+
isModalActive: true,
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
handleNotOptimizedModal() {
|
|
41
|
+
this.isModalActive = false;
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<style
|
|
48
|
+
scoped
|
|
49
|
+
lang="scss"
|
|
50
|
+
src="../../assets/scss/document_viewport_modal.scss"
|
|
51
|
+
></style>
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="action-bar">
|
|
3
|
-
<div class="action-bar-elements">
|
|
4
|
-
<div v-if="documentActionBar.icon" class="action-icon">
|
|
5
|
-
<ActionIcon :icon="documentActionBar.icon" class="icon" />
|
|
6
|
-
</div>
|
|
7
|
-
<div v-if="documentActionBar.text" class="action-text">
|
|
8
|
-
{{ documentActionBar.text }}
|
|
9
|
-
</div>
|
|
10
|
-
<div v-if="documentActionBar.action" class="action-button">
|
|
11
|
-
<AnnotationActionButtons
|
|
12
|
-
:save-btn="documentActionBar.action !== null"
|
|
13
|
-
:is-loading="documentActionBar.loading"
|
|
14
|
-
:action-bar="true"
|
|
15
|
-
@save="handleSave()"
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
import { mapState } from "vuex";
|
|
24
|
-
import AnnotationActionButtons from "../DocumentAnnotations/AnnotationActionButtons";
|
|
25
|
-
import ActionIcon from "../../assets/images/ActionIcon";
|
|
26
|
-
|
|
27
|
-
export default {
|
|
28
|
-
name: "ActionBar",
|
|
29
|
-
components: {
|
|
30
|
-
ActionIcon,
|
|
31
|
-
AnnotationActionButtons,
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
...mapState("display", ["documentActionBar"]),
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
handleSave() {
|
|
38
|
-
this.documentActionBar.action();
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<style
|
|
45
|
-
scoped
|
|
46
|
-
lang="scss"
|
|
47
|
-
src="../../assets/scss/document_action_bar.scss"
|
|
48
|
-
></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="action-bar">
|
|
3
|
+
<div class="action-bar-elements">
|
|
4
|
+
<div v-if="documentActionBar.icon" class="action-icon">
|
|
5
|
+
<ActionIcon :icon="documentActionBar.icon" class="icon" />
|
|
6
|
+
</div>
|
|
7
|
+
<div v-if="documentActionBar.text" class="action-text">
|
|
8
|
+
{{ documentActionBar.text }}
|
|
9
|
+
</div>
|
|
10
|
+
<div v-if="documentActionBar.action" class="action-button">
|
|
11
|
+
<AnnotationActionButtons
|
|
12
|
+
:save-btn="documentActionBar.action !== null"
|
|
13
|
+
:is-loading="documentActionBar.loading"
|
|
14
|
+
:action-bar="true"
|
|
15
|
+
@save="handleSave()"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import { mapState } from "vuex";
|
|
24
|
+
import AnnotationActionButtons from "../DocumentAnnotations/AnnotationActionButtons";
|
|
25
|
+
import ActionIcon from "../../assets/images/ActionIcon";
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
name: "ActionBar",
|
|
29
|
+
components: {
|
|
30
|
+
ActionIcon,
|
|
31
|
+
AnnotationActionButtons,
|
|
32
|
+
},
|
|
33
|
+
computed: {
|
|
34
|
+
...mapState("display", ["documentActionBar"]),
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
handleSave() {
|
|
38
|
+
this.documentActionBar.action();
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style
|
|
45
|
+
scoped
|
|
46
|
+
lang="scss"
|
|
47
|
+
src="../../assets/scss/document_action_bar.scss"
|
|
48
|
+
></style>
|