@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,53 +0,0 @@
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,19 +0,0 @@
1
- <template>
2
- <div class="split-info-bar">
3
- <StarIcon />
4
- <span> {{ $t("smart_split_suggestions") }}</span>
5
- </div>
6
- </template>
7
-
8
- <script>
9
- import StarIcon from "../../assets/images/StarIcon";
10
-
11
- export default {
12
- name: "SplitInfoBar",
13
- components: {
14
- StarIcon,
15
- },
16
- };
17
- </script>
18
-
19
- <style scoped lang="scss" src="../../assets/scss/document_edit.scss"></style>
@@ -1,121 +0,0 @@
1
- <template>
2
- <section ref="splittingModal" class="splitting-confirmation-modal">
3
- <b-modal
4
- v-model="isModalActive"
5
- class="modal-400"
6
- :width="500"
7
- :can-cancel="[]"
8
- >
9
- <section class="modal-card-body split-modal">
10
- <div class="header">
11
- <StarIcon />
12
- <p class="modal-title">
13
- {{
14
- splittingSuggestions && splittingSuggestions.length > 0
15
- ? $t("split_modal_title")
16
- : $t("prepare_document")
17
- }}
18
- </p>
19
- </div>
20
- <div ref="bodyText" class="content"></div>
21
- </section>
22
- <footer class="modal-card-foot">
23
- <b-button @click="closeModal">
24
- {{ $t("do_it_later") }}
25
- </b-button>
26
- <b-button type="is-primary" @click="handleReviewNow">
27
- {{ $t("review_now") }}
28
- <span class="recommended">{{ recommended }}</span>
29
- </b-button>
30
- </footer>
31
- </b-modal>
32
- </section>
33
- </template>
34
-
35
- <script>
36
- import { nextTick } from "vue";
37
- import { mapGetters, mapState } from "vuex";
38
- import StarIcon from "../../assets/images/StarIcon";
39
-
40
- /**
41
- * This component shows a modal to inform the user about auto-splitting suggestions
42
- */
43
- export default {
44
- name: "SplittingSuggestionsModal",
45
- components: {
46
- StarIcon,
47
- },
48
- data() {
49
- return {
50
- isModalActive: false,
51
- recommended: this.$t("recommended"),
52
- };
53
- },
54
- computed: {
55
- ...mapState("document", ["splittingSuggestions", "selectedDocument"]),
56
- ...mapGetters("document", ["waitingForSplittingConfirmation"]),
57
- },
58
- watch: {
59
- splittingSuggestions(newValue) {
60
- if (newValue) {
61
- this.isModalActive = true;
62
- }
63
- },
64
- isModalActive(newValue) {
65
- if (newValue) {
66
- this.$nextTick(() => {
67
- if (
68
- this.splittingSuggestions &&
69
- this.splittingSuggestions.length > 0
70
- ) {
71
- this.$refs.bodyText.innerHTML = this.$t("split_modal_body", {
72
- number_of_split_documents: this.splittingSuggestions.length,
73
- });
74
- } else {
75
- this.$refs.bodyText.innerHTML = this.$t(
76
- "split_modal_no_suggestions"
77
- );
78
- }
79
- });
80
- }
81
- },
82
- },
83
- mounted() {
84
- if (this.splittingSuggestions) {
85
- this.isModalActive = true;
86
- }
87
-
88
- nextTick(() => {
89
- if (this.recommended) {
90
- this.recommended = this.recommended.toUpperCase();
91
- }
92
- });
93
- },
94
- methods: {
95
- closeModal() {
96
- const updatedDocument = [
97
- {
98
- name: this.selectedDocument.data_file_name,
99
- category: this.selectedDocument.category,
100
- pages: this.selectedDocument.pages,
101
- },
102
- ];
103
-
104
- this.$store.dispatch("edit/editDocument", updatedDocument);
105
-
106
- this.$store.dispatch("display/setCategorizeModalIsActive", false);
107
- this.isModalActive = false;
108
- },
109
- handleReviewNow() {
110
- this.$store.dispatch("edit/enableEditMode");
111
- this.isModalActive = false;
112
- },
113
- },
114
- };
115
- </script>
116
-
117
- <style
118
- scoped
119
- lang="scss"
120
- src="../../assets/scss/splitting_confirmation_modal.scss"
121
- ></style>