tycho-components 0.22.6 → 0.22.7
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/features/DocumentDrawer/DocumentExport/DocumentExport.js +2 -2
- package/dist/features/DocumentDrawer/localization/ExportTexts.d.ts +0 -6
- package/dist/features/DocumentDrawer/localization/ExportTexts.js +3 -9
- package/dist/features/DocumentDrawer/types/Export.d.ts +2 -2
- package/dist/features/DocumentDrawer/types/Export.js +2 -2
- package/package.json +1 -1
|
@@ -58,14 +58,14 @@ export default function DocumentExport({ doc }) {
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
const handleExportClick = (type) => {
|
|
61
|
-
if (type === '
|
|
61
|
+
if (type === 'TEXT') {
|
|
62
62
|
setOpenTxtTierModal(true);
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
process(type);
|
|
66
66
|
};
|
|
67
67
|
const handleTxtTierSelect = (tier) => {
|
|
68
|
-
process('
|
|
68
|
+
process('TEXT', tier);
|
|
69
69
|
};
|
|
70
70
|
const handleError = (err) => {
|
|
71
71
|
const message = err.response.data.message || err.response.data.error;
|
|
@@ -11,8 +11,6 @@ export declare const ExportTexts: {
|
|
|
11
11
|
'export.desc.csv': string;
|
|
12
12
|
'export.label.text': string;
|
|
13
13
|
'export.desc.text': string;
|
|
14
|
-
'export.label.txt': string;
|
|
15
|
-
'export.desc.txt': string;
|
|
16
14
|
'modal.title.txt.tier': string;
|
|
17
15
|
'modal.desc.txt.tier': string;
|
|
18
16
|
'modal.txt.tier.diplomatic': string;
|
|
@@ -37,8 +35,6 @@ export declare const ExportTexts: {
|
|
|
37
35
|
'export.desc.csv': string;
|
|
38
36
|
'export.label.text': string;
|
|
39
37
|
'export.desc.text': string;
|
|
40
|
-
'export.label.txt': string;
|
|
41
|
-
'export.desc.txt': string;
|
|
42
38
|
'modal.title.txt.tier': string;
|
|
43
39
|
'modal.desc.txt.tier': string;
|
|
44
40
|
'modal.txt.tier.diplomatic': string;
|
|
@@ -63,8 +59,6 @@ export declare const ExportTexts: {
|
|
|
63
59
|
'export.desc.csv': string;
|
|
64
60
|
'export.label.text': string;
|
|
65
61
|
'export.desc.text': string;
|
|
66
|
-
'export.label.txt': string;
|
|
67
|
-
'export.desc.txt': string;
|
|
68
62
|
'modal.title.txt.tier': string;
|
|
69
63
|
'modal.desc.txt.tier': string;
|
|
70
64
|
'modal.txt.tier.diplomatic': string;
|
|
@@ -10,9 +10,7 @@ export const ExportTexts = {
|
|
|
10
10
|
'export.label.csv': 'CSV',
|
|
11
11
|
'export.desc.csv': 'Generates a text file with comma separated values (CSV), ready to be imported to Microsoft Excel.',
|
|
12
12
|
'export.label.text': 'Text file',
|
|
13
|
-
'export.desc.text': '
|
|
14
|
-
'export.label.txt': 'Text file',
|
|
15
|
-
'export.desc.txt': 'Generates a plain text file with the document sentences at the chosen transcription layer.',
|
|
13
|
+
'export.desc.text': 'Generates a plain text file with the document sentences at the chosen transcription layer.',
|
|
16
14
|
'modal.title.txt.tier': 'Choose export type',
|
|
17
15
|
'modal.desc.txt.tier': 'Select which transcription layer to use for the text export.',
|
|
18
16
|
'modal.txt.tier.diplomatic': 'Diplomatic',
|
|
@@ -36,9 +34,7 @@ export const ExportTexts = {
|
|
|
36
34
|
'export.label.csv': 'CSV',
|
|
37
35
|
'export.desc.csv': 'Gera um arquivo de texto com valores separados por vírgula (CSV), pronto para ser importado para o Microsoft Excel.',
|
|
38
36
|
'export.label.text': 'Arquivo de texto',
|
|
39
|
-
'export.desc.text': '
|
|
40
|
-
'export.label.txt': 'Arquivo de texto',
|
|
41
|
-
'export.desc.txt': 'Gera um arquivo de texto simples com as sentenças do documento na camada de transcrição escolhida.',
|
|
37
|
+
'export.desc.text': 'Gera um arquivo de texto simples com as sentenças do documento na camada de transcrição escolhida.',
|
|
42
38
|
'modal.title.txt.tier': 'Escolha o tipo de exportação',
|
|
43
39
|
'modal.desc.txt.tier': 'Selecione qual camada de transcrição usar na exportação de texto.',
|
|
44
40
|
'modal.txt.tier.diplomatic': 'Diplomática',
|
|
@@ -62,9 +58,7 @@ export const ExportTexts = {
|
|
|
62
58
|
'export.label.csv': 'CSV',
|
|
63
59
|
'export.desc.csv': 'Genera un file di testo con valori separati da virgola (CSV), pronto per essere importato in Microsoft Excel.',
|
|
64
60
|
'export.label.text': 'File di testo',
|
|
65
|
-
'export.desc.text': '
|
|
66
|
-
'export.label.txt': 'File di testo',
|
|
67
|
-
'export.desc.txt': 'Genera un file di testo semplice con le frasi del documento al livello di trascrizione scelto.',
|
|
61
|
+
'export.desc.text': 'Genera un file di testo semplice con le frasi del documento al livello di trascrizione scelto.',
|
|
68
62
|
'modal.title.txt.tier': 'Scegli il tipo di esportazione',
|
|
69
63
|
'modal.desc.txt.tier': 'Seleziona quale livello di trascrizione usare per l\'esportazione del testo.',
|
|
70
64
|
'modal.txt.tier.diplomatic': 'Diplomatica',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type ExportType = 'TYCHO' | 'PSD' | 'CSV' | 'POS' | '
|
|
1
|
+
export type ExportType = 'TYCHO' | 'PSD' | 'CSV' | 'POS' | 'TEXT' | 'CHAT' | 'CONLLU';
|
|
2
2
|
export declare const ExportTypeNames: {
|
|
3
3
|
TYCHO: string;
|
|
4
4
|
PSD: string;
|
|
5
5
|
CSV: string;
|
|
6
6
|
POS: string;
|
|
7
|
-
|
|
7
|
+
TEXT: string;
|
|
8
8
|
CHAT: string;
|
|
9
9
|
CONLLU: string;
|
|
10
10
|
};
|
|
@@ -3,7 +3,7 @@ export const ExportTypeNames = {
|
|
|
3
3
|
PSD: 'export.type.psd',
|
|
4
4
|
CSV: 'export.type.csv',
|
|
5
5
|
POS: 'export.type.pos',
|
|
6
|
-
|
|
6
|
+
TEXT: 'export.type.text',
|
|
7
7
|
CHAT: 'export.type.chat',
|
|
8
8
|
CONLLU: 'export.type.conllu',
|
|
9
9
|
};
|
|
@@ -34,7 +34,7 @@ export const EXPORT_TYPE_DISPLAY = [
|
|
|
34
34
|
active: true,
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
type: '
|
|
37
|
+
type: 'TEXT',
|
|
38
38
|
icon: 'description',
|
|
39
39
|
active: true,
|
|
40
40
|
},
|