tycho-components 0.21.18 → 0.22.0

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 (154) hide show
  1. package/dist/configs/Localization.js +12 -0
  2. package/dist/features/Comments/HeaderNotifications/HeaderNotifications.js +1 -1
  3. package/dist/features/DocumentDrawer/Actions/Actions.d.ts +12 -0
  4. package/dist/features/DocumentDrawer/Actions/Actions.js +77 -0
  5. package/dist/features/DocumentDrawer/Actions/index.d.ts +2 -0
  6. package/dist/features/DocumentDrawer/Actions/index.js +2 -0
  7. package/dist/features/DocumentDrawer/Actions/style.scss +6 -0
  8. package/dist/features/DocumentDrawer/AutomaticParser/AutomaticParser.d.ts +8 -0
  9. package/dist/features/DocumentDrawer/AutomaticParser/AutomaticParser.js +96 -0
  10. package/dist/features/DocumentDrawer/AutomaticParser/index.d.ts +2 -0
  11. package/dist/features/DocumentDrawer/AutomaticParser/index.js +2 -0
  12. package/dist/features/DocumentDrawer/AutomaticParser/style.scss +10 -0
  13. package/dist/features/DocumentDrawer/DocumentDrawer.d.ts +14 -0
  14. package/dist/features/DocumentDrawer/DocumentDrawer.js +111 -0
  15. package/dist/features/DocumentDrawer/DocumentEdit/DocumentEdit.d.ts +35 -0
  16. package/dist/features/DocumentDrawer/DocumentEdit/DocumentEdit.js +207 -0
  17. package/dist/features/DocumentDrawer/DocumentEdit/index.d.ts +2 -0
  18. package/dist/features/DocumentDrawer/DocumentEdit/index.js +1 -0
  19. package/dist/features/DocumentDrawer/DocumentExport/DocumentExport.d.ts +7 -0
  20. package/dist/features/DocumentDrawer/DocumentExport/DocumentExport.js +71 -0
  21. package/dist/features/DocumentDrawer/DocumentExport/ExportInvalidSentences.d.ts +7 -0
  22. package/dist/features/DocumentDrawer/DocumentExport/ExportInvalidSentences.js +12 -0
  23. package/dist/features/DocumentDrawer/DocumentExport/index.d.ts +2 -0
  24. package/dist/features/DocumentDrawer/DocumentExport/index.js +2 -0
  25. package/dist/features/DocumentDrawer/DocumentExport/style.scss +31 -0
  26. package/dist/features/DocumentDrawer/DocumentLexicon/DocumentLexicon.d.ts +7 -0
  27. package/dist/features/DocumentDrawer/DocumentLexicon/DocumentLexicon.js +22 -0
  28. package/dist/features/DocumentDrawer/DocumentLexicon/index.d.ts +2 -0
  29. package/dist/features/DocumentDrawer/DocumentLexicon/index.js +2 -0
  30. package/dist/features/DocumentDrawer/DocumentLexicon/style.scss +38 -0
  31. package/dist/features/DocumentDrawer/DocumentRemove/DocumentRemove.d.ts +12 -0
  32. package/dist/features/DocumentDrawer/DocumentRemove/DocumentRemove.js +28 -0
  33. package/dist/features/DocumentDrawer/DocumentRemove/index.d.ts +2 -0
  34. package/dist/features/DocumentDrawer/DocumentRemove/index.js +2 -0
  35. package/dist/features/DocumentDrawer/DocumentRemove/style.scss +0 -0
  36. package/dist/features/DocumentDrawer/Github/Github.d.ts +8 -0
  37. package/dist/features/DocumentDrawer/Github/Github.js +11 -0
  38. package/dist/features/DocumentDrawer/Github/GithubCommit.d.ts +8 -0
  39. package/dist/features/DocumentDrawer/Github/GithubCommit.js +86 -0
  40. package/dist/features/DocumentDrawer/Github/index.d.ts +2 -0
  41. package/dist/features/DocumentDrawer/Github/index.js +2 -0
  42. package/dist/features/DocumentDrawer/Github/style.scss +31 -0
  43. package/dist/features/DocumentDrawer/ImageGallery/GalleryImage.d.ts +8 -0
  44. package/dist/features/DocumentDrawer/ImageGallery/GalleryImage.js +5 -0
  45. package/dist/features/DocumentDrawer/ImageGallery/GalleryRemoval.d.ts +9 -0
  46. package/dist/features/DocumentDrawer/ImageGallery/GalleryRemoval.js +14 -0
  47. package/dist/features/DocumentDrawer/ImageGallery/ImageGallery.d.ts +9 -0
  48. package/dist/features/DocumentDrawer/ImageGallery/ImageGallery.js +45 -0
  49. package/dist/features/DocumentDrawer/ImageGallery/index.d.ts +2 -0
  50. package/dist/features/DocumentDrawer/ImageGallery/index.js +2 -0
  51. package/dist/features/DocumentDrawer/ImageGallery/style.scss +41 -0
  52. package/dist/features/DocumentDrawer/Info/Info.d.ts +10 -0
  53. package/dist/features/DocumentDrawer/Info/Info.js +16 -0
  54. package/dist/features/DocumentDrawer/Info/index.d.ts +2 -0
  55. package/dist/features/DocumentDrawer/Info/index.js +2 -0
  56. package/dist/features/DocumentDrawer/Info/style.scss +24 -0
  57. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/DocumentMetadata.d.ts +8 -0
  58. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/DocumentMetadata.js +60 -0
  59. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/index.d.ts +2 -0
  60. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/index.js +2 -0
  61. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/style.scss +7 -0
  62. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/DocumentMetadataEdit.d.ts +11 -0
  63. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/DocumentMetadataEdit.js +195 -0
  64. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/index.d.ts +2 -0
  65. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/index.js +2 -0
  66. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/style.scss +58 -0
  67. package/dist/features/DocumentDrawer/PageStatusComponent/PageStatusComponent.d.ts +9 -0
  68. package/dist/features/DocumentDrawer/PageStatusComponent/PageStatusComponent.js +30 -0
  69. package/dist/features/DocumentDrawer/PageStatusComponent/index.d.ts +2 -0
  70. package/dist/features/DocumentDrawer/PageStatusComponent/index.js +2 -0
  71. package/dist/features/DocumentDrawer/PageStatusComponent/style.scss +19 -0
  72. package/dist/features/DocumentDrawer/Pages/BoxRemoval.d.ts +9 -0
  73. package/dist/features/DocumentDrawer/Pages/BoxRemoval.js +14 -0
  74. package/dist/features/DocumentDrawer/Pages/Boxes.d.ts +9 -0
  75. package/dist/features/DocumentDrawer/Pages/Boxes.js +63 -0
  76. package/dist/features/DocumentDrawer/Pages/PageRemoval.d.ts +9 -0
  77. package/dist/features/DocumentDrawer/Pages/PageRemoval.js +15 -0
  78. package/dist/features/DocumentDrawer/Pages/Pages.d.ts +10 -0
  79. package/dist/features/DocumentDrawer/Pages/Pages.js +72 -0
  80. package/dist/features/DocumentDrawer/Pages/style.scss +48 -0
  81. package/dist/features/DocumentDrawer/deps.d.ts +28 -0
  82. package/dist/features/DocumentDrawer/deps.js +20 -0
  83. package/dist/features/DocumentDrawer/functions/FileUtils.d.ts +4 -0
  84. package/dist/features/DocumentDrawer/functions/FileUtils.js +8 -0
  85. package/dist/features/DocumentDrawer/functions/MetadataUtils.d.ts +41 -0
  86. package/dist/features/DocumentDrawer/functions/MetadataUtils.js +192 -0
  87. package/dist/features/DocumentDrawer/index.d.ts +5 -0
  88. package/dist/features/DocumentDrawer/index.js +3 -0
  89. package/dist/features/DocumentDrawer/localization/ActionsTexts.d.ts +77 -0
  90. package/dist/features/DocumentDrawer/localization/ActionsTexts.js +77 -0
  91. package/dist/features/DocumentDrawer/localization/DocumentTexts.d.ts +140 -0
  92. package/dist/features/DocumentDrawer/localization/DocumentTexts.js +140 -0
  93. package/dist/features/DocumentDrawer/localization/ExportTexts.d.ts +59 -0
  94. package/dist/features/DocumentDrawer/localization/ExportTexts.js +59 -0
  95. package/dist/features/DocumentDrawer/localization/GithubTexts.d.ts +35 -0
  96. package/dist/features/DocumentDrawer/localization/GithubTexts.js +35 -0
  97. package/dist/features/DocumentDrawer/localization/PageTexts.d.ts +45 -0
  98. package/dist/features/DocumentDrawer/localization/PageTexts.js +45 -0
  99. package/dist/features/DocumentDrawer/localization/ParserTexts.d.ts +30 -0
  100. package/dist/features/DocumentDrawer/localization/ParserTexts.js +30 -0
  101. package/dist/features/DocumentDrawer/services/AutomaticParserService.d.ts +8 -0
  102. package/dist/features/DocumentDrawer/services/AutomaticParserService.js +9 -0
  103. package/dist/features/DocumentDrawer/services/BoundingBoxService.d.ts +11 -0
  104. package/dist/features/DocumentDrawer/services/BoundingBoxService.js +20 -0
  105. package/dist/features/DocumentDrawer/services/DocumentService.d.ts +13 -0
  106. package/dist/features/DocumentDrawer/services/DocumentService.js +20 -0
  107. package/dist/features/DocumentDrawer/services/ExportService.d.ts +11 -0
  108. package/dist/features/DocumentDrawer/services/ExportService.js +16 -0
  109. package/dist/features/DocumentDrawer/services/GithubService.d.ts +8 -0
  110. package/dist/features/DocumentDrawer/services/GithubService.js +12 -0
  111. package/dist/features/DocumentDrawer/services/ImageService.d.ts +8 -0
  112. package/dist/features/DocumentDrawer/services/ImageService.js +12 -0
  113. package/dist/features/DocumentDrawer/services/LexiconService.d.ts +10 -0
  114. package/dist/features/DocumentDrawer/services/LexiconService.js +9 -0
  115. package/dist/features/DocumentDrawer/services/MetadataService.d.ts +15 -0
  116. package/dist/features/DocumentDrawer/services/MetadataService.js +26 -0
  117. package/dist/features/DocumentDrawer/services/PageService.d.ts +11 -0
  118. package/dist/features/DocumentDrawer/services/PageService.js +16 -0
  119. package/dist/features/DocumentDrawer/services/SentenceService.d.ts +6 -0
  120. package/dist/features/DocumentDrawer/services/SentenceService.js +6 -0
  121. package/dist/features/DocumentDrawer/style.scss +171 -0
  122. package/dist/features/DocumentDrawer/types/BoundingBox.d.ts +8 -0
  123. package/dist/features/DocumentDrawer/types/BoundingBox.js +1 -0
  124. package/dist/features/DocumentDrawer/types/CatalogSearchFilter.d.ts +15 -0
  125. package/dist/features/DocumentDrawer/types/CatalogSearchFilter.js +16 -0
  126. package/dist/features/DocumentDrawer/types/Category.d.ts +16 -0
  127. package/dist/features/DocumentDrawer/types/Category.js +5 -0
  128. package/dist/features/DocumentDrawer/types/DocumentStatus.d.ts +7 -0
  129. package/dist/features/DocumentDrawer/types/DocumentStatus.js +6 -0
  130. package/dist/features/DocumentDrawer/types/DocumentUpdateRequest.d.ts +13 -0
  131. package/dist/features/DocumentDrawer/types/DocumentUpdateRequest.js +1 -0
  132. package/dist/features/DocumentDrawer/types/Export.d.ts +25 -0
  133. package/dist/features/DocumentDrawer/types/Export.js +36 -0
  134. package/dist/features/DocumentDrawer/types/Lexicon.d.ts +6 -0
  135. package/dist/features/DocumentDrawer/types/Lexicon.js +1 -0
  136. package/dist/features/DocumentDrawer/types/LexiconResponse.d.ts +6 -0
  137. package/dist/features/DocumentDrawer/types/LexiconResponse.js +1 -0
  138. package/dist/features/DocumentDrawer/types/Metadata.d.ts +22 -0
  139. package/dist/features/DocumentDrawer/types/Metadata.js +8 -0
  140. package/dist/features/DocumentDrawer/types/Page.d.ts +10 -0
  141. package/dist/features/DocumentDrawer/types/Page.js +1 -0
  142. package/dist/features/DocumentDrawer/types/PageStatus.d.ts +9 -0
  143. package/dist/features/DocumentDrawer/types/PageStatus.js +8 -0
  144. package/dist/features/DocumentDrawer/types/Parser.d.ts +18 -0
  145. package/dist/features/DocumentDrawer/types/Parser.js +21 -0
  146. package/dist/features/DocumentDrawer/types/Query.d.ts +6 -0
  147. package/dist/features/DocumentDrawer/types/Query.js +1 -0
  148. package/dist/features/DocumentDrawer/types/Sentence.d.ts +4 -0
  149. package/dist/features/DocumentDrawer/types/Sentence.js +1 -0
  150. package/dist/features/index.d.ts +4 -0
  151. package/dist/features/index.js +2 -0
  152. package/dist/shell/Header/HeaderApps/HeaderApps.js +2 -1
  153. package/dist/shell/Header/HelpButton/HelpModal.js +2 -1
  154. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import BoundingBox from '../types/BoundingBox';
2
+ import { AppPage, Corpus, Document } from '../deps';
3
+ declare function remove(box: BoundingBox): Promise<import("axios").AxiosResponse<any, any, {}>>;
4
+ declare function create(uid: string, corpus: Corpus): Promise<import("axios").AxiosResponse<any, any, {}>>;
5
+ declare function page(document: Document, index: number, size: number): Promise<import("axios").AxiosResponse<AppPage<BoundingBox>, any, {}>>;
6
+ declare const BoundingBoxService: {
7
+ page: typeof page;
8
+ create: typeof create;
9
+ remove: typeof remove;
10
+ };
11
+ export default BoundingBoxService;
@@ -0,0 +1,20 @@
1
+ import api from '../../../configs/api';
2
+ function remove(box) {
3
+ return api.delete(`${import.meta.env.VITE_APP_EDICTOR_API}/box/${box.uid}`);
4
+ }
5
+ function create(uid, corpus) {
6
+ return api.post(`${import.meta.env.VITE_APP_EDICTOR_API}/box/${uid}/${corpus.uid}`);
7
+ }
8
+ function page(document, index, size) {
9
+ const data = {
10
+ page: index,
11
+ size,
12
+ };
13
+ return api.post(`${import.meta.env.VITE_APP_EDICTOR_API}/box/document/${document.uid}`, data);
14
+ }
15
+ const BoundingBoxService = {
16
+ page,
17
+ create,
18
+ remove,
19
+ };
20
+ export default BoundingBoxService;
@@ -0,0 +1,13 @@
1
+ import Document from '../../../configs/types/Document';
2
+ import { DocumentUpdateRequest } from '../types/DocumentUpdateRequest';
3
+ declare function get(uid: string): Promise<import("axios").AxiosResponse<Document, any, {}>>;
4
+ declare function update(uid: string, payload: DocumentUpdateRequest): Promise<import("axios").AxiosResponse<void, any, {}>>;
5
+ declare function remove(uid: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
6
+ declare function syncSearch(uid: string): Promise<import("axios").AxiosResponse<void, any, {}>>;
7
+ declare const DocumentService: {
8
+ get: typeof get;
9
+ update: typeof update;
10
+ remove: typeof remove;
11
+ syncSearch: typeof syncSearch;
12
+ };
13
+ export default DocumentService;
@@ -0,0 +1,20 @@
1
+ import api from '../../../configs/api';
2
+ function get(uid) {
3
+ return api.get(`/document/${uid}`);
4
+ }
5
+ function update(uid, payload) {
6
+ return api.put(`/document/${uid}`, payload);
7
+ }
8
+ function remove(uid) {
9
+ return api.delete(`/document/${uid}`);
10
+ }
11
+ function syncSearch(uid) {
12
+ return api.get(`/document/sync-search/${uid}`);
13
+ }
14
+ const DocumentService = {
15
+ get,
16
+ update,
17
+ remove,
18
+ syncSearch,
19
+ };
20
+ export default DocumentService;
@@ -0,0 +1,11 @@
1
+ import { ExportType } from '../types/Export';
2
+ import Export from '../types/Export';
3
+ declare function executeForGithub(uid: string, type: ExportType): Promise<import("axios").AxiosResponse<string, any, {}>>;
4
+ declare function execute(uid: string, type: ExportType): Promise<import("axios").AxiosResponse<string, any, {}>>;
5
+ declare function check(uid: string): Promise<import("axios").AxiosResponse<Export, any, {}>>;
6
+ declare const ExportService: {
7
+ executeForGithub: typeof executeForGithub;
8
+ execute: typeof execute;
9
+ check: typeof check;
10
+ };
11
+ export default ExportService;
@@ -0,0 +1,16 @@
1
+ import api from '../../../configs/api';
2
+ function executeForGithub(uid, type) {
3
+ return api.get(`${import.meta.env.VITE_APP_IO_API}/export/github/${uid}/${type}`);
4
+ }
5
+ function execute(uid, type) {
6
+ return api.get(`${import.meta.env.VITE_APP_IO_API}/export/${uid}/${type}`);
7
+ }
8
+ function check(uid) {
9
+ return api.get(`${import.meta.env.VITE_APP_IO_API}/export/check/${uid}`);
10
+ }
11
+ const ExportService = {
12
+ executeForGithub,
13
+ execute,
14
+ check,
15
+ };
16
+ export default ExportService;
@@ -0,0 +1,8 @@
1
+ import { Corpus } from '../deps';
2
+ declare function push(corpus: Corpus): Promise<import("axios").AxiosResponse<any, any, {}>>;
3
+ declare function commit(corpus: Corpus): Promise<import("axios").AxiosResponse<any, any, {}>>;
4
+ declare const GithubService: {
5
+ commit: typeof commit;
6
+ push: typeof push;
7
+ };
8
+ export default GithubService;
@@ -0,0 +1,12 @@
1
+ import api from '../../../configs/api';
2
+ function push(corpus) {
3
+ return api.get(`${import.meta.env.VITE_APP_FUNCTIONS_API}/github/push/${corpus.uid}`);
4
+ }
5
+ function commit(corpus) {
6
+ return api.get(`${import.meta.env.VITE_APP_FUNCTIONS_API}/github/commit/${corpus.uid}`);
7
+ }
8
+ const GithubService = {
9
+ commit,
10
+ push,
11
+ };
12
+ export default GithubService;
@@ -0,0 +1,8 @@
1
+ import { UploadedFile } from '../deps';
2
+ declare function updateDocument(uid: string, image: UploadedFile): Promise<import("axios").AxiosResponse<any, any, {}>>;
3
+ declare function removeDocument(uid: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
4
+ declare const ImageService: {
5
+ updateDocument: typeof updateDocument;
6
+ removeDocument: typeof removeDocument;
7
+ };
8
+ export default ImageService;
@@ -0,0 +1,12 @@
1
+ import api from '../../../configs/api';
2
+ function updateDocument(uid, image) {
3
+ return api.patch(`/image/${uid}`, image);
4
+ }
5
+ function removeDocument(uid) {
6
+ return api.delete(`/image/${uid}`);
7
+ }
8
+ const ImageService = {
9
+ updateDocument,
10
+ removeDocument,
11
+ };
12
+ export default ImageService;
@@ -0,0 +1,10 @@
1
+ import Lexicon from '../types/Lexicon';
2
+ import LexiconResponse from '../types/LexiconResponse';
3
+ import { Document } from '../deps';
4
+ export declare function list(document: Document): Promise<import("axios").AxiosResponse<LexiconResponse[], any, {}>>;
5
+ declare function available(): Promise<import("axios").AxiosResponse<Lexicon[], any, {}>>;
6
+ declare const LexiconService: {
7
+ list: typeof list;
8
+ available: typeof available;
9
+ };
10
+ export default LexiconService;
@@ -0,0 +1,9 @@
1
+ import api from '../../../configs/api';
2
+ export function list(document) {
3
+ return api.get(`/lexicon/document/${document.uid}`);
4
+ }
5
+ function available() {
6
+ return api.get(`${import.meta.env.VITE_APP_LEXICON_API}/available/admin`);
7
+ }
8
+ const LexiconService = { list, available };
9
+ export default LexiconService;
@@ -0,0 +1,15 @@
1
+ import Metadata from '../types/Metadata';
2
+ import { Corpus, Document } from '../deps';
3
+ declare function list(document: Document): Promise<import("axios").AxiosResponse<Metadata[], any, {}>>;
4
+ declare function update(uid: string, request: Record<string, string>): Promise<import("axios").AxiosResponse<any, any, {}>>;
5
+ declare function findBySymbol(corpus: Corpus, symbol: string): Promise<import("axios").AxiosResponse<Metadata, any, {}>>;
6
+ declare function findByCorpus(corpus: string): Promise<import("axios").AxiosResponse<Metadata[], any, {}>>;
7
+ declare function suggestValues(corpus: string, metadataUid: string, q: string): Promise<import("axios").AxiosResponse<string[], any, {}>>;
8
+ declare const MetadataService: {
9
+ list: typeof list;
10
+ update: typeof update;
11
+ findBySymbol: typeof findBySymbol;
12
+ findByCorpus: typeof findByCorpus;
13
+ suggestValues: typeof suggestValues;
14
+ };
15
+ export default MetadataService;
@@ -0,0 +1,26 @@
1
+ import api from '../../../configs/api';
2
+ function list(document) {
3
+ return api.get(`/metadata/document/${document.uid}`);
4
+ }
5
+ function update(uid, request) {
6
+ return api.patch(`/metadata/${uid}`, request);
7
+ }
8
+ function findBySymbol(corpus, symbol) {
9
+ return api.get(`/metadata/symbol/${corpus.uid}/${symbol}`);
10
+ }
11
+ function findByCorpus(corpus) {
12
+ return api.get(`/metadata/corpus/${corpus}`);
13
+ }
14
+ function suggestValues(corpus, metadataUid, q) {
15
+ return api.get(`/metadata/values/${corpus}/${metadataUid}`, {
16
+ params: { q },
17
+ });
18
+ }
19
+ const MetadataService = {
20
+ list,
21
+ update,
22
+ findBySymbol,
23
+ findByCorpus,
24
+ suggestValues,
25
+ };
26
+ export default MetadataService;
@@ -0,0 +1,11 @@
1
+ import Page from '../types/Page';
2
+ import { AppPage, Document } from '../deps';
3
+ declare function page(document: Document, index: number, size: number): Promise<import("axios").AxiosResponse<AppPage<Page>, any, {}>>;
4
+ declare function create(uid: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
5
+ declare function remove(thisPage: Page): Promise<import("axios").AxiosResponse<any, any, {}>>;
6
+ declare const PageService: {
7
+ page: typeof page;
8
+ create: typeof create;
9
+ remove: typeof remove;
10
+ };
11
+ export default PageService;
@@ -0,0 +1,16 @@
1
+ import api from '../../../configs/api';
2
+ function page(document, index, size) {
3
+ const data = {
4
+ page: index,
5
+ size,
6
+ };
7
+ return api.post(`/page/document/${document.uid}`, data);
8
+ }
9
+ function create(uid) {
10
+ return api.post(`/page/${uid}`);
11
+ }
12
+ function remove(thisPage) {
13
+ return api.delete(`/page/${thisPage.uid}`);
14
+ }
15
+ const PageService = { page, create, remove };
16
+ export default PageService;
@@ -0,0 +1,6 @@
1
+ import Sentence from '../types/Sentence';
2
+ declare function resume(uid: string): Promise<import("axios").AxiosResponse<Sentence, any, {}>>;
3
+ declare const SentenceService: {
4
+ resume: typeof resume;
5
+ };
6
+ export default SentenceService;
@@ -0,0 +1,6 @@
1
+ import api from '../../../configs/api';
2
+ function resume(uid) {
3
+ return api.get(`${import.meta.env.VITE_APP_REVISION_API}/sentence/resume/${uid}`);
4
+ }
5
+ const SentenceService = { resume };
6
+ export default SentenceService;
@@ -0,0 +1,171 @@
1
+ .drawer-container {
2
+ display: flex;
3
+ height: 100%;
4
+
5
+ .info-col {
6
+ width: 75%;
7
+
8
+ .header {
9
+ @include subtitle-medium-2;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ background-color: var(--layer-hover-2);
14
+ padding: 8px 16px;
15
+ border-bottom: 1px solid var(--border-subtle-2);
16
+ }
17
+
18
+ .body {
19
+ .action-line {
20
+ display: flex;
21
+ cursor: pointer;
22
+ border-bottom: var(--border-default);
23
+ min-height: 108px;
24
+
25
+ .action-button {
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: center;
29
+ padding: 16px;
30
+ margin: auto 16px;
31
+ border: var(--border-default);
32
+ border-radius: var(--border-200);
33
+ }
34
+
35
+ .action-desc {
36
+ display: flex;
37
+ flex-direction: column;
38
+ margin-top: auto;
39
+ margin-bottom: auto;
40
+ padding-right: 16px;
41
+ gap: 8px;
42
+
43
+ > .title {
44
+ @include label-medium-2;
45
+ }
46
+ }
47
+
48
+ &:hover {
49
+ background-color: var(--layer-hover-1);
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ .tabs-col {
56
+ width: 25%;
57
+ background-color: #185abd;
58
+ padding: 0;
59
+
60
+ // Hide MUI Tabs indicator
61
+ .MuiTabs-indicator {
62
+ display: none;
63
+ }
64
+
65
+ // Style MUI Tab root elements
66
+ .MuiTab-root {
67
+ font-family: var(--font-family);
68
+ cursor: pointer;
69
+ display: flex;
70
+ flex-direction: row;
71
+ height: 100%;
72
+ padding: 12px 0 12px 24px;
73
+ color: var(--text-on-color-light);
74
+ text-transform: none;
75
+ min-height: auto;
76
+ align-items: center;
77
+ justify-content: flex-start;
78
+
79
+ &.Mui-selected {
80
+ background-color: #13458f;
81
+ }
82
+
83
+ &:hover {
84
+ background-color: #1651aa;
85
+ }
86
+
87
+ .title {
88
+ @include label-medium-1;
89
+ }
90
+ }
91
+
92
+ .nav-link-icon {
93
+ width: 25%;
94
+ display: inline-block;
95
+ text-align: center;
96
+
97
+ .ds-icon {
98
+ color: var(--text-on-color-light);
99
+ }
100
+ }
101
+
102
+ .nav-item-close {
103
+ display: flex;
104
+ cursor: pointer;
105
+ padding: 12px 0 12px 24px;
106
+ color: var(--text-on-color-light);
107
+ margin: 24px 0px;
108
+
109
+ .title {
110
+ @include label-medium-1;
111
+ }
112
+
113
+ &:hover {
114
+ background-color: #1651aa;
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ .offcanvas-file {
121
+ width: 42vw;
122
+
123
+ > .MuiPaper-root {
124
+ width: 42vw !important;
125
+ }
126
+ }
127
+
128
+ @media (max-width: 1366px) {
129
+ .offcanvas-file {
130
+ width: 50vw;
131
+
132
+ > .MuiPaper-root {
133
+ width: 56vw !important;
134
+ }
135
+ }
136
+ }
137
+
138
+ @media (max-width: 768px) {
139
+ .offcanvas-file {
140
+ width: 90vw;
141
+
142
+ > .MuiPaper-root {
143
+ width: 90vw !important;
144
+ }
145
+ }
146
+ }
147
+
148
+ @media (max-width: 767px) {
149
+ .offcanvas-file {
150
+ width: 90vw;
151
+
152
+ > .MuiPaper-root {
153
+ width: 90vw !important;
154
+ }
155
+ }
156
+
157
+ .drawer-container {
158
+ .nav-item-close .title,
159
+ .nav .title {
160
+ display: none;
161
+ }
162
+
163
+ .info-col {
164
+ width: 80%;
165
+ }
166
+
167
+ .tabs-col {
168
+ width: 20%;
169
+ }
170
+ }
171
+ }
@@ -0,0 +1,8 @@
1
+ import type { UploadedFile } from '../../../common/AppDropzone/UploadedFile';
2
+ type BoundingBox = {
3
+ uid: string;
4
+ document: string;
5
+ order: number;
6
+ image?: UploadedFile;
7
+ };
8
+ export default BoundingBox;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { DocumentStatus } from '../../../configs/types/Document';
2
+ import type { MetadataQueryRequest } from './Query';
3
+ import { AppPageable } from '../../../common/AppTable/types/AppPageable';
4
+ export type CatalogSearchFilter = AppPageable & {
5
+ metadata: MetadataQueryRequest[];
6
+ documents: string[];
7
+ categories: string[];
8
+ name?: string;
9
+ status?: DocumentStatus[];
10
+ category?: string;
11
+ seed?: number;
12
+ };
13
+ export declare const emptyCatalogSearchFilter: (useGrid: boolean) => CatalogSearchFilter;
14
+ export declare function hasActiveCatalogFilter(filter?: CatalogSearchFilter): boolean;
15
+ export default CatalogSearchFilter;
@@ -0,0 +1,16 @@
1
+ import { EMPTY_GRID_PAGEABLE, EMPTY_PAGEABLE, } from '../../../common/AppTable/types/AppPageable';
2
+ export const emptyCatalogSearchFilter = (useGrid) => ({
3
+ metadata: [],
4
+ documents: [],
5
+ categories: [],
6
+ ...(useGrid ? EMPTY_GRID_PAGEABLE : EMPTY_PAGEABLE),
7
+ });
8
+ export function hasActiveCatalogFilter(filter) {
9
+ if (!filter)
10
+ return false;
11
+ return ((filter.metadata?.length ?? 0) > 0 ||
12
+ (filter.documents?.length ?? 0) > 0 ||
13
+ (filter.categories?.length ?? 0) > 0 ||
14
+ !!filter.name?.trim() ||
15
+ (filter.status?.length ?? 0) > 0);
16
+ }
@@ -0,0 +1,16 @@
1
+ type Category = {
2
+ uid: string;
3
+ name: string;
4
+ isParent: boolean;
5
+ order: number;
6
+ parent?: string;
7
+ value?: string;
8
+ total?: number;
9
+ children?: Category[];
10
+ };
11
+ export declare const EMPTY_CATEGORY: {
12
+ uid: string;
13
+ name: string;
14
+ isParent: boolean;
15
+ };
16
+ export default Category;
@@ -0,0 +1,5 @@
1
+ export const EMPTY_CATEGORY = {
2
+ uid: '',
3
+ name: '',
4
+ isParent: false,
5
+ };
@@ -0,0 +1,7 @@
1
+ export type DocumentStatus = 'EDITING' | 'EDITED' | 'SYNTACTIC' | 'COMPLETED';
2
+ export declare const DocumentStatusNames: {
3
+ EDITING: string;
4
+ EDITED: string;
5
+ SYNTACTIC: string;
6
+ COMPLETED: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ export const DocumentStatusNames = {
2
+ EDITING: 'document.status.editing',
3
+ EDITED: 'document.status.edited',
4
+ SYNTACTIC: 'document.status.syntactic',
5
+ COMPLETED: 'document.status.completed',
6
+ };
@@ -0,0 +1,13 @@
1
+ import { DocumentStatus } from '../../../configs/types/Document';
2
+ import { PlatformTools } from '../../../functions/ToolsUtils';
3
+ export type DocumentUpdateRequest = {
4
+ name?: string;
5
+ translated?: string;
6
+ author?: string;
7
+ reference?: string;
8
+ description?: string;
9
+ category?: string;
10
+ status?: DocumentStatus;
11
+ visible?: boolean;
12
+ defaultTool?: PlatformTools;
13
+ };
@@ -0,0 +1,25 @@
1
+ export type ExportType = 'TYCHO' | 'PSD' | 'CSV' | 'POS' | 'TXT' | 'CHAT' | 'CONLLU';
2
+ export declare const ExportTypeNames: {
3
+ TYCHO: string;
4
+ PSD: string;
5
+ CSV: string;
6
+ POS: string;
7
+ TXT: string;
8
+ CHAT: string;
9
+ CONLLU: string;
10
+ };
11
+ type Export = {
12
+ uid: string;
13
+ type: ExportType;
14
+ status: 'IN_PROGRESS' | 'SUCCESS' | 'FAILED';
15
+ url: string;
16
+ error?: string;
17
+ completed?: boolean;
18
+ };
19
+ type ExportTypeItem = {
20
+ type: ExportType;
21
+ icon: string;
22
+ active: boolean;
23
+ };
24
+ export declare const EXPORT_TYPE_DISPLAY: ExportTypeItem[];
25
+ export default Export;
@@ -0,0 +1,36 @@
1
+ export const ExportTypeNames = {
2
+ TYCHO: 'export.type.tycho',
3
+ PSD: 'export.type.psd',
4
+ CSV: 'export.type.csv',
5
+ POS: 'export.type.pos',
6
+ TXT: 'export.type.text',
7
+ CHAT: 'export.type.chat',
8
+ CONLLU: 'export.type.conllu',
9
+ };
10
+ export const EXPORT_TYPE_DISPLAY = [
11
+ {
12
+ type: 'TYCHO',
13
+ icon: 'local_parking',
14
+ active: true,
15
+ },
16
+ {
17
+ type: 'PSD',
18
+ icon: 'graph_4',
19
+ active: true,
20
+ },
21
+ {
22
+ type: 'CSV',
23
+ icon: 'csv',
24
+ active: false,
25
+ },
26
+ {
27
+ type: 'POS',
28
+ icon: 'text_snippet',
29
+ active: true,
30
+ },
31
+ {
32
+ type: 'CONLLU',
33
+ icon: 'format_list_bulleted',
34
+ active: true,
35
+ },
36
+ ];
@@ -0,0 +1,6 @@
1
+ type Lexicon = {
2
+ uid: string;
3
+ name: string;
4
+ picture?: string;
5
+ };
6
+ export default Lexicon;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ type LexiconResponse = {
2
+ value: string;
3
+ tag: string;
4
+ ops: Record<string, string>;
5
+ };
6
+ export default LexiconResponse;
@@ -0,0 +1,22 @@
1
+ export type MetadataType = 'TEXT' | 'DATE' | 'NUMBER' | 'LOCALE' | 'LIST' | 'YEAR';
2
+ export declare const MetadataTypeNames: {
3
+ DATE: string;
4
+ LIST: string;
5
+ LOCALE: string;
6
+ NUMBER: string;
7
+ TEXT: string;
8
+ YEAR: string;
9
+ };
10
+ type Metadata = {
11
+ uid: string;
12
+ name: string;
13
+ symbol?: string;
14
+ observation: string;
15
+ order: number;
16
+ type: MetadataType;
17
+ values?: string;
18
+ options?: string[];
19
+ min?: number;
20
+ max?: number;
21
+ };
22
+ export default Metadata;
@@ -0,0 +1,8 @@
1
+ export const MetadataTypeNames = {
2
+ DATE: 'DATE',
3
+ LIST: 'LIST',
4
+ LOCALE: 'LOCALE',
5
+ NUMBER: 'NUMBER',
6
+ TEXT: 'TEXT',
7
+ YEAR: 'YEAR',
8
+ };
@@ -0,0 +1,10 @@
1
+ import type { UploadedFile } from '../../../common/AppDropzone/UploadedFile';
2
+ import { PageStatus } from './PageStatus';
3
+ type Page = {
4
+ uid: string;
5
+ picture: string;
6
+ image?: UploadedFile;
7
+ order: number;
8
+ status: PageStatus;
9
+ };
10
+ export default Page;