tycho-components 0.21.19 → 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.
- package/dist/configs/Localization.js +12 -0
- package/dist/features/DocumentDrawer/Actions/Actions.d.ts +12 -0
- package/dist/features/DocumentDrawer/Actions/Actions.js +77 -0
- package/dist/features/DocumentDrawer/Actions/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/Actions/index.js +2 -0
- package/dist/features/DocumentDrawer/Actions/style.scss +6 -0
- package/dist/features/DocumentDrawer/AutomaticParser/AutomaticParser.d.ts +8 -0
- package/dist/features/DocumentDrawer/AutomaticParser/AutomaticParser.js +96 -0
- package/dist/features/DocumentDrawer/AutomaticParser/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/AutomaticParser/index.js +2 -0
- package/dist/features/DocumentDrawer/AutomaticParser/style.scss +10 -0
- package/dist/features/DocumentDrawer/DocumentDrawer.d.ts +14 -0
- package/dist/features/DocumentDrawer/DocumentDrawer.js +111 -0
- package/dist/features/DocumentDrawer/DocumentEdit/DocumentEdit.d.ts +35 -0
- package/dist/features/DocumentDrawer/DocumentEdit/DocumentEdit.js +207 -0
- package/dist/features/DocumentDrawer/DocumentEdit/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/DocumentEdit/index.js +1 -0
- package/dist/features/DocumentDrawer/DocumentExport/DocumentExport.d.ts +7 -0
- package/dist/features/DocumentDrawer/DocumentExport/DocumentExport.js +71 -0
- package/dist/features/DocumentDrawer/DocumentExport/ExportInvalidSentences.d.ts +7 -0
- package/dist/features/DocumentDrawer/DocumentExport/ExportInvalidSentences.js +12 -0
- package/dist/features/DocumentDrawer/DocumentExport/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/DocumentExport/index.js +2 -0
- package/dist/features/DocumentDrawer/DocumentExport/style.scss +31 -0
- package/dist/features/DocumentDrawer/DocumentLexicon/DocumentLexicon.d.ts +7 -0
- package/dist/features/DocumentDrawer/DocumentLexicon/DocumentLexicon.js +22 -0
- package/dist/features/DocumentDrawer/DocumentLexicon/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/DocumentLexicon/index.js +2 -0
- package/dist/features/DocumentDrawer/DocumentLexicon/style.scss +38 -0
- package/dist/features/DocumentDrawer/DocumentRemove/DocumentRemove.d.ts +12 -0
- package/dist/features/DocumentDrawer/DocumentRemove/DocumentRemove.js +28 -0
- package/dist/features/DocumentDrawer/DocumentRemove/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/DocumentRemove/index.js +2 -0
- package/dist/features/DocumentDrawer/DocumentRemove/style.scss +0 -0
- package/dist/features/DocumentDrawer/Github/Github.d.ts +8 -0
- package/dist/features/DocumentDrawer/Github/Github.js +11 -0
- package/dist/features/DocumentDrawer/Github/GithubCommit.d.ts +8 -0
- package/dist/features/DocumentDrawer/Github/GithubCommit.js +86 -0
- package/dist/features/DocumentDrawer/Github/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/Github/index.js +2 -0
- package/dist/features/DocumentDrawer/Github/style.scss +31 -0
- package/dist/features/DocumentDrawer/ImageGallery/GalleryImage.d.ts +8 -0
- package/dist/features/DocumentDrawer/ImageGallery/GalleryImage.js +5 -0
- package/dist/features/DocumentDrawer/ImageGallery/GalleryRemoval.d.ts +9 -0
- package/dist/features/DocumentDrawer/ImageGallery/GalleryRemoval.js +14 -0
- package/dist/features/DocumentDrawer/ImageGallery/ImageGallery.d.ts +9 -0
- package/dist/features/DocumentDrawer/ImageGallery/ImageGallery.js +45 -0
- package/dist/features/DocumentDrawer/ImageGallery/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/ImageGallery/index.js +2 -0
- package/dist/features/DocumentDrawer/ImageGallery/style.scss +41 -0
- package/dist/features/DocumentDrawer/Info/Info.d.ts +10 -0
- package/dist/features/DocumentDrawer/Info/Info.js +16 -0
- package/dist/features/DocumentDrawer/Info/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/Info/index.js +2 -0
- package/dist/features/DocumentDrawer/Info/style.scss +24 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/DocumentMetadata.d.ts +8 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/DocumentMetadata.js +60 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/index.js +2 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/style.scss +7 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/DocumentMetadataEdit.d.ts +11 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/DocumentMetadataEdit.js +195 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/index.js +2 -0
- package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/style.scss +58 -0
- package/dist/features/DocumentDrawer/PageStatusComponent/PageStatusComponent.d.ts +9 -0
- package/dist/features/DocumentDrawer/PageStatusComponent/PageStatusComponent.js +30 -0
- package/dist/features/DocumentDrawer/PageStatusComponent/index.d.ts +2 -0
- package/dist/features/DocumentDrawer/PageStatusComponent/index.js +2 -0
- package/dist/features/DocumentDrawer/PageStatusComponent/style.scss +19 -0
- package/dist/features/DocumentDrawer/Pages/BoxRemoval.d.ts +9 -0
- package/dist/features/DocumentDrawer/Pages/BoxRemoval.js +14 -0
- package/dist/features/DocumentDrawer/Pages/Boxes.d.ts +9 -0
- package/dist/features/DocumentDrawer/Pages/Boxes.js +63 -0
- package/dist/features/DocumentDrawer/Pages/PageRemoval.d.ts +9 -0
- package/dist/features/DocumentDrawer/Pages/PageRemoval.js +15 -0
- package/dist/features/DocumentDrawer/Pages/Pages.d.ts +10 -0
- package/dist/features/DocumentDrawer/Pages/Pages.js +72 -0
- package/dist/features/DocumentDrawer/Pages/style.scss +48 -0
- package/dist/features/DocumentDrawer/deps.d.ts +28 -0
- package/dist/features/DocumentDrawer/deps.js +20 -0
- package/dist/features/DocumentDrawer/functions/FileUtils.d.ts +4 -0
- package/dist/features/DocumentDrawer/functions/FileUtils.js +8 -0
- package/dist/features/DocumentDrawer/functions/MetadataUtils.d.ts +41 -0
- package/dist/features/DocumentDrawer/functions/MetadataUtils.js +192 -0
- package/dist/features/DocumentDrawer/index.d.ts +5 -0
- package/dist/features/DocumentDrawer/index.js +3 -0
- package/dist/features/DocumentDrawer/localization/ActionsTexts.d.ts +77 -0
- package/dist/features/DocumentDrawer/localization/ActionsTexts.js +77 -0
- package/dist/features/DocumentDrawer/localization/DocumentTexts.d.ts +140 -0
- package/dist/features/DocumentDrawer/localization/DocumentTexts.js +140 -0
- package/dist/features/DocumentDrawer/localization/ExportTexts.d.ts +59 -0
- package/dist/features/DocumentDrawer/localization/ExportTexts.js +59 -0
- package/dist/features/DocumentDrawer/localization/GithubTexts.d.ts +35 -0
- package/dist/features/DocumentDrawer/localization/GithubTexts.js +35 -0
- package/dist/features/DocumentDrawer/localization/PageTexts.d.ts +45 -0
- package/dist/features/DocumentDrawer/localization/PageTexts.js +45 -0
- package/dist/features/DocumentDrawer/localization/ParserTexts.d.ts +30 -0
- package/dist/features/DocumentDrawer/localization/ParserTexts.js +30 -0
- package/dist/features/DocumentDrawer/services/AutomaticParserService.d.ts +8 -0
- package/dist/features/DocumentDrawer/services/AutomaticParserService.js +9 -0
- package/dist/features/DocumentDrawer/services/BoundingBoxService.d.ts +11 -0
- package/dist/features/DocumentDrawer/services/BoundingBoxService.js +20 -0
- package/dist/features/DocumentDrawer/services/DocumentService.d.ts +13 -0
- package/dist/features/DocumentDrawer/services/DocumentService.js +20 -0
- package/dist/features/DocumentDrawer/services/ExportService.d.ts +11 -0
- package/dist/features/DocumentDrawer/services/ExportService.js +16 -0
- package/dist/features/DocumentDrawer/services/GithubService.d.ts +8 -0
- package/dist/features/DocumentDrawer/services/GithubService.js +12 -0
- package/dist/features/DocumentDrawer/services/ImageService.d.ts +8 -0
- package/dist/features/DocumentDrawer/services/ImageService.js +12 -0
- package/dist/features/DocumentDrawer/services/LexiconService.d.ts +10 -0
- package/dist/features/DocumentDrawer/services/LexiconService.js +9 -0
- package/dist/features/DocumentDrawer/services/MetadataService.d.ts +15 -0
- package/dist/features/DocumentDrawer/services/MetadataService.js +26 -0
- package/dist/features/DocumentDrawer/services/PageService.d.ts +11 -0
- package/dist/features/DocumentDrawer/services/PageService.js +16 -0
- package/dist/features/DocumentDrawer/services/SentenceService.d.ts +6 -0
- package/dist/features/DocumentDrawer/services/SentenceService.js +6 -0
- package/dist/features/DocumentDrawer/style.scss +171 -0
- package/dist/features/DocumentDrawer/types/BoundingBox.d.ts +8 -0
- package/dist/features/DocumentDrawer/types/BoundingBox.js +1 -0
- package/dist/features/DocumentDrawer/types/CatalogSearchFilter.d.ts +15 -0
- package/dist/features/DocumentDrawer/types/CatalogSearchFilter.js +16 -0
- package/dist/features/DocumentDrawer/types/Category.d.ts +16 -0
- package/dist/features/DocumentDrawer/types/Category.js +5 -0
- package/dist/features/DocumentDrawer/types/DocumentStatus.d.ts +7 -0
- package/dist/features/DocumentDrawer/types/DocumentStatus.js +6 -0
- package/dist/features/DocumentDrawer/types/DocumentUpdateRequest.d.ts +13 -0
- package/dist/features/DocumentDrawer/types/DocumentUpdateRequest.js +1 -0
- package/dist/features/DocumentDrawer/types/Export.d.ts +25 -0
- package/dist/features/DocumentDrawer/types/Export.js +36 -0
- package/dist/features/DocumentDrawer/types/Lexicon.d.ts +6 -0
- package/dist/features/DocumentDrawer/types/Lexicon.js +1 -0
- package/dist/features/DocumentDrawer/types/LexiconResponse.d.ts +6 -0
- package/dist/features/DocumentDrawer/types/LexiconResponse.js +1 -0
- package/dist/features/DocumentDrawer/types/Metadata.d.ts +22 -0
- package/dist/features/DocumentDrawer/types/Metadata.js +8 -0
- package/dist/features/DocumentDrawer/types/Page.d.ts +10 -0
- package/dist/features/DocumentDrawer/types/Page.js +1 -0
- package/dist/features/DocumentDrawer/types/PageStatus.d.ts +9 -0
- package/dist/features/DocumentDrawer/types/PageStatus.js +8 -0
- package/dist/features/DocumentDrawer/types/Parser.d.ts +18 -0
- package/dist/features/DocumentDrawer/types/Parser.js +21 -0
- package/dist/features/DocumentDrawer/types/Query.d.ts +6 -0
- package/dist/features/DocumentDrawer/types/Query.js +1 -0
- package/dist/features/DocumentDrawer/types/Sentence.d.ts +4 -0
- package/dist/features/DocumentDrawer/types/Sentence.js +1 -0
- package/dist/features/index.d.ts +4 -0
- package/dist/features/index.js +2 -0
- package/dist/shell/Header/HeaderApps/HeaderApps.js +2 -1
- package/dist/shell/Header/HelpButton/HelpModal.js +2 -1
- package/package.json +1 -1
|
@@ -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,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 @@
|
|
|
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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const STANFORD_MODELS: Parser[];
|
|
2
|
+
type Parser = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export type ParserAutoRequest = {
|
|
7
|
+
reprocess: boolean;
|
|
8
|
+
resetTags: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type ParserAutoResponse = {
|
|
11
|
+
total: number;
|
|
12
|
+
parsed: number;
|
|
13
|
+
executed?: number;
|
|
14
|
+
errors?: number;
|
|
15
|
+
completed: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const EMPTY_PARSER_REQUEST: ParserAutoRequest;
|
|
18
|
+
export default Parser;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const STANFORD_MODELS = [
|
|
2
|
+
{ name: 'Arabic - Stanford', id: 'arabicFactored' },
|
|
3
|
+
{ name: 'Chinese (Factored) - Stanford', id: 'chineseFactored' },
|
|
4
|
+
{ name: 'Chinese (PCFG) - Stanford', id: 'chinesePCFG' },
|
|
5
|
+
{
|
|
6
|
+
name: 'English - Stanford',
|
|
7
|
+
id: 'englishPCFG.caseless',
|
|
8
|
+
},
|
|
9
|
+
{ name: 'German - Stanford', id: 'germanPCFG' },
|
|
10
|
+
{ name: 'Spanish - Stanford', id: 'spanishPCFG' },
|
|
11
|
+
{ name: 'Xinhua (Factored) - Stanford', id: 'xinhuaFactored' },
|
|
12
|
+
{
|
|
13
|
+
name: 'Xinhua (Factored Segmenting) - Stanford',
|
|
14
|
+
id: 'xinhuaFactoredSegmenting',
|
|
15
|
+
},
|
|
16
|
+
{ name: 'Xinhua (PCFG) - Stanford', id: 'xinhuaPCFG' },
|
|
17
|
+
];
|
|
18
|
+
export const EMPTY_PARSER_REQUEST = {
|
|
19
|
+
reprocess: false,
|
|
20
|
+
resetTags: false,
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/features/index.d.ts
CHANGED
|
@@ -22,3 +22,7 @@ export { emptySentenceSplitRequest, isSentenceSplitCommentAction, SENTENCE_SPLIT
|
|
|
22
22
|
export type { default as SentenceSplitLanguage } from './SentenceSplit/types/Language';
|
|
23
23
|
export type { SentenceSplitTranslationsInput, SentenceSplitIconButtonProps, } from './SentenceSplit/SentenceSplit';
|
|
24
24
|
export { SentenceSplitTexts } from './SentenceSplit/localization/SentenceSplitTexts';
|
|
25
|
+
export { default as DocumentDrawer } from './DocumentDrawer';
|
|
26
|
+
export type { DocumentDrawerProps } from './DocumentDrawer';
|
|
27
|
+
export type { default as CatalogSearchFilter } from './DocumentDrawer/types/CatalogSearchFilter';
|
|
28
|
+
export { emptyCatalogSearchFilter, hasActiveCatalogFilter, } from './DocumentDrawer/types/CatalogSearchFilter';
|
package/dist/features/index.js
CHANGED
|
@@ -15,3 +15,5 @@ export { default as SentenceSplit } from './SentenceSplit';
|
|
|
15
15
|
export { default as SentenceSplitService } from './SentenceSplit/SentenceSplitService';
|
|
16
16
|
export { emptySentenceSplitRequest, isSentenceSplitCommentAction, SENTENCE_SPLIT_COMMENT_ACTIONS, } from './SentenceSplit/types/SentenceSplitRequest';
|
|
17
17
|
export { SentenceSplitTexts } from './SentenceSplit/localization/SentenceSplitTexts';
|
|
18
|
+
export { default as DocumentDrawer } from './DocumentDrawer';
|
|
19
|
+
export { emptyCatalogSearchFilter, hasActiveCatalogFilter, } from './DocumentDrawer/types/CatalogSearchFilter';
|
|
@@ -40,12 +40,13 @@ export default function HeaderApps({ navigateLogout, navigateNotLogged, hideKeyb
|
|
|
40
40
|
};
|
|
41
41
|
return (_jsxs("div", { className: "header-apps-container", children: [_jsx(IconButton, { name: "apps", className: "icon-apps", size: "large", onClick: () => setOpen(!open), filledIcon: true }), open && (_jsxs(Drawer, { anchor: "left", open: true, onClose: () => setOpen(false), className: "offcanvas-apps", children: [_jsxs("div", { className: "header", children: [_jsx(IconButton, { name: "close", size: "medium", mode: "ghost", iconSize: "medium", onClick: () => setOpen(false) }), _jsx("span", { className: "header-apps-title", children: t("header:label.platform.complete") }), _jsx("div", { className: "header-profile-apps", children: _jsx(HeaderUser, { navigateLogout: navigateLogout, navigateNotLogged: navigateNotLogged }) })] }), _jsxs("div", { className: "body", children: [_jsx("div", { className: "title", children: t("label.tools") }), AvailableApps.map((item, idx) => renderItem(item, idx)), _jsx("div", { className: "title", children: t("label.quick") }), resources.map((item, idx) => renderItem(item, idx))] }), _jsx("div", { className: "footer", children: _jsx("div", { className: "header-apps-buttons", children: _jsx(HeaderButtons, { hideKeyboard: hideKeyboard, notifications: notifications, keyboardLayout: keyboardLayout, helpActions: helpActions, mobile: true }) }) })] }))] }));
|
|
42
42
|
}
|
|
43
|
+
const platformOrigin = (import.meta.env.VITE_APP_ORIGIN ?? "").replace(/\/+$/, "");
|
|
43
44
|
const resources = [
|
|
44
45
|
{
|
|
45
46
|
code: "platform",
|
|
46
47
|
image: logo,
|
|
47
48
|
visibility: "public",
|
|
48
|
-
external:
|
|
49
|
+
external: platformOrigin || undefined,
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
52
|
code: "youtube",
|
|
@@ -11,7 +11,8 @@ export default function HelpModal({ onClose, helpActions = [] }) {
|
|
|
11
11
|
const isTourActive = status();
|
|
12
12
|
const isAutoOpenEnabled = Storage.getTourAutoOpen();
|
|
13
13
|
const handleTutorials = () => {
|
|
14
|
-
|
|
14
|
+
const origin = (import.meta.env.VITE_APP_ORIGIN ?? "").replace(/\/+$/, "");
|
|
15
|
+
window.open(`${origin}/home/tutorials`, "_blank");
|
|
15
16
|
onClose();
|
|
16
17
|
};
|
|
17
18
|
const handleTourToggle = () => {
|