@konfuzio/document-validation-ui 0.1.10-dev.8 → 0.1.10

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 (46) 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 +1 -1
  6. package/package.json +1 -1
  7. package/src/.DS_Store +0 -0
  8. package/src/api.js +10 -0
  9. package/src/assets/scss/document_category.scss +1 -0
  10. package/src/assets/scss/document_edit.scss +2 -0
  11. package/src/assets/scss/document_name.scss +0 -2
  12. package/src/assets/scss/document_top_bar.scss +22 -0
  13. package/src/assets/scss/new_annotation.scss +17 -3
  14. package/src/assets/scss/theme.scss +779 -0
  15. package/src/assets/scss/variables.scss +0 -7
  16. package/src/components/App.vue +79 -10
  17. package/src/components/DocumentAnnotations/AnnotationContent.vue +33 -18
  18. package/src/components/DocumentAnnotations/AnnotationRow.vue +21 -60
  19. package/src/components/DocumentAnnotations/ChooseLabelSetModal.vue +3 -2
  20. package/src/components/DocumentAnnotations/EmptyAnnotation.vue +1 -5
  21. package/src/components/DocumentAnnotations/MultiAnnotationTableOverlay.vue +1 -1
  22. package/src/components/DocumentDashboard.vue +8 -0
  23. package/src/components/DocumentEdit/DocumentEdit.vue +20 -11
  24. package/src/components/DocumentEdit/EditConfirmationModal.vue +1 -0
  25. package/src/components/DocumentEdit/EditPageThumbnail.vue +1 -3
  26. package/src/components/DocumentEdit/EditSidebar.vue +8 -3
  27. package/src/components/DocumentPage/DocumentPage.vue +0 -18
  28. package/src/components/DocumentPage/DocumentToolbar.vue +1 -0
  29. package/src/components/DocumentPage/MultiAnnSelection.vue +4 -26
  30. package/src/components/DocumentPage/NewAnnotation.vue +6 -23
  31. package/src/components/DocumentTopBar/DocumentName.vue +3 -1
  32. package/src/components/DocumentTopBar/DocumentTopBar.vue +81 -2
  33. package/src/components/DocumentsList/DocumentsList.vue +1 -6
  34. package/src/locales/de.json +3 -2
  35. package/src/locales/en.json +2 -1
  36. package/src/locales/es.json +2 -1
  37. package/src/main.js +0 -24
  38. package/src/store/category.js +19 -35
  39. package/src/store/display.js +7 -0
  40. package/src/store/document.js +29 -5
  41. package/src/store/edit.js +27 -15
  42. package/src/store/project.js +31 -1
  43. package/src/utils/utils.js +18 -1
  44. package/dist/css/chunk-vendors.css +0 -5
  45. package/src/assets/scss/main.scss +0 -760
  46. package/src/components/DocumentPage/MultiAnnotationTablePopup.vue +0 -226
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.10-dev.8",
3
+ "version": "0.1.10",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
package/src/.DS_Store ADDED
Binary file
package/src/api.js CHANGED
@@ -21,6 +21,14 @@ const setAuthToken = (token) => {
21
21
  authToken = token;
22
22
  };
23
23
 
24
+ const setApiUrl = (url) => {
25
+ HTTP.defaults.baseURL = url;
26
+ };
27
+
28
+ const setImageUrl = (url) => {
29
+ IMG_REQUEST.defaults.baseURL = url;
30
+ };
31
+
24
32
  const getInterceptorConfig = (config) => {
25
33
  if (authToken) {
26
34
  config.headers["Authorization"] = `Token ${authToken}`;
@@ -54,6 +62,8 @@ const makeImageRequest = (imageURL) => {
54
62
 
55
63
  export default {
56
64
  HTTP,
65
+ setApiUrl,
66
+ setImageUrl,
57
67
  makeImageRequest,
58
68
  setAuthToken,
59
69
  };
@@ -2,6 +2,7 @@
2
2
 
3
3
  .category-chooser {
4
4
  cursor: pointer;
5
+ height: 100%;
5
6
 
6
7
  &.split-mode {
7
8
  border: 1px solid $grey-outline;
@@ -46,6 +46,8 @@
46
46
  display: flex;
47
47
  flex-direction: row;
48
48
  justify-content: space-between;
49
+ height: 100%;
50
+ align-items: center;
49
51
  }
50
52
  .bottom-section {
51
53
  text-align: center;
@@ -1,11 +1,9 @@
1
1
  @import "./imports.scss";
2
2
 
3
3
  .document-name-component {
4
- flex: 1;
5
4
  display: flex;
6
5
  align-items: center;
7
6
  justify-content: center;
8
- width: 100%;
9
7
  gap: 12px;
10
8
  line-height: 20px;
11
9
 
@@ -32,6 +32,28 @@
32
32
  flex: 1;
33
33
  }
34
34
 
35
+ .center-bar-components {
36
+ display: flex;
37
+ align-items: center;
38
+ gap: 38px;
39
+
40
+ &.single-component {
41
+ flex: 1;
42
+ align-items: center;
43
+ justify-content: center;
44
+ }
45
+
46
+ .navigation-arrow {
47
+ &:hover {
48
+ cursor: pointer;
49
+ }
50
+
51
+ &.navigation-disabled {
52
+ display: none;
53
+ }
54
+ }
55
+ }
56
+
35
57
  .right-bar-components {
36
58
  align-items: center;
37
59
  justify-content: flex-end;
@@ -12,6 +12,7 @@
12
12
  z-index: 40;
13
13
  color: $white;
14
14
  padding: 8px;
15
+ cursor: default;
15
16
 
16
17
  .popup-input {
17
18
  background-color: $text-color;
@@ -59,9 +60,16 @@
59
60
  left: 0;
60
61
  }
61
62
 
62
- .annotation-dropdowns {
63
- display: flex;
64
- flex-direction: column;
63
+ .annotation-dropdown {
64
+ border-radius: 12px;
65
+ border: 1px solid $grey-low-opacity !important;
66
+
67
+ .button.is-text {
68
+ box-shadow: none !important;
69
+ color: $white !important;
70
+ background-color: transparent !important;
71
+ text-decoration: none;
72
+ }
65
73
  }
66
74
 
67
75
  .annotation-buttons {
@@ -70,11 +78,17 @@
70
78
  flex-direction: row;
71
79
  gap: 2px;
72
80
 
81
+ .button.is-text {
82
+ color: $white !important;
83
+ text-decoration: none;
84
+ }
85
+
73
86
  .cancel-button {
74
87
  color: $white;
75
88
 
76
89
  &:hover {
77
90
  border: 1px solid $grey-low-opacity;
91
+ background: transparent;
78
92
  }
79
93
  }
80
94