tycho-components 0.22.4 → 0.22.5
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.
|
@@ -11,7 +11,7 @@ import { ToolsUtils, useCorpusUtils, useMessageUtils } from '../deps';
|
|
|
11
11
|
import { Icon } from 'tycho-storybook';
|
|
12
12
|
import './style.scss';
|
|
13
13
|
export default function Actions({ document, setOpenFile, setFilter, handleClickDocument, useGrid, pageUid, pageOrder, onPageReload, hiddenActions = [], }) {
|
|
14
|
-
const { t } = useTranslation(
|
|
14
|
+
const { t } = useTranslation('actions');
|
|
15
15
|
const { getCorpus } = useCorpusUtils();
|
|
16
16
|
const [openRemove, setOpenRemove] = useState(false);
|
|
17
17
|
const [openRemoveSentences, setOpenRemoveSentences] = useState(false);
|
|
@@ -54,7 +54,7 @@ export default function DocumentDrawer({ uid, setOpenFile, setFilter, handleChan
|
|
|
54
54
|
}, [activeKey, hasParticipants]);
|
|
55
55
|
if (!document)
|
|
56
56
|
return null;
|
|
57
|
-
return (_jsx(Drawer, { anchor: "left", open: true, onClose: () => setOpenFile(false), className: "offcanvas-file", children: _jsxs("div", { className: "drawer-container", children: [_jsxs("div", { className: "tabs-col", children: [_jsxs("div", { className: "nav-item-close", onClick: () => setOpenFile(false), children: [_jsx("span", { className: "nav-link-icon", children: _jsx(Icon, { name: "arrow_circle_left" }) }), _jsx("span", { className: "title", children: t('menu.label.close') })] }), _jsx(Tabs, { orientation: "vertical", value: activeKey, onChange: handleTabChange, className: "nav", children: fileItems.map((item, idx) => (_jsx(Tab, { value: item.eventKey, label: _jsxs(_Fragment, { children: [_jsx("span", { className: "nav-link-icon", children: _jsx(Icon, { name: item.icon
|
|
57
|
+
return (_jsx(Drawer, { anchor: "left", open: true, onClose: () => setOpenFile(false), className: "offcanvas-file", children: _jsxs("div", { className: "drawer-container", children: [_jsxs("div", { className: "tabs-col", children: [_jsxs("div", { className: "nav-item-close", onClick: () => setOpenFile(false), children: [_jsx("span", { className: "nav-link-icon", children: _jsx(Icon, { name: "arrow_circle_left" }) }), _jsx("span", { className: "title", children: t('menu.label.close') })] }), _jsx(Tabs, { orientation: "vertical", value: activeKey, onChange: handleTabChange, className: "nav", children: fileItems.map((item, idx) => (_jsx(Tab, { value: item.eventKey, label: _jsxs(_Fragment, { children: [_jsx("span", { className: "nav-link-icon", children: _jsx(Icon, { name: item.icon }) }), _jsx("span", { className: "title", children: t(item.title) })] }) }, idx.valueOf()))) })] }), _jsxs("div", { className: "info-col", children: [activeKey === 'home' && (_jsx(Info, { document: document, categoriesHierarchy: categoriesHierarchy, handleChange: (updated) => {
|
|
58
58
|
handleChange(updated);
|
|
59
59
|
setDocument(updated);
|
|
60
60
|
} })), activeKey === 'metadata' && (_jsx(DocumentMetadata, { document: document, onDocumentChange: (updated) => {
|
|
@@ -70,7 +70,7 @@ const baseFileItems = [
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
eventKey: 'home',
|
|
73
|
-
icon: '
|
|
73
|
+
icon: 'info',
|
|
74
74
|
title: 'menu.label.home',
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -5,7 +5,7 @@ export const ActionsTexts = {
|
|
|
5
5
|
'button.label.filter': 'Filter',
|
|
6
6
|
'tooltip.label.list': 'Display as list',
|
|
7
7
|
'tooltip.label.grid': 'Display as grid',
|
|
8
|
-
'label.automatic.title': 'Automatic
|
|
8
|
+
'label.automatic.title': 'Automatic parsing',
|
|
9
9
|
'label.automatic.description': 'Automatically parse all sentences.',
|
|
10
10
|
'label.sync.title': 'Synchronize document search',
|
|
11
11
|
'label.sync.description': 'Mark this document to be synchronized again by the search service.',
|
|
@@ -16,10 +16,10 @@ export const ActionsTexts = {
|
|
|
16
16
|
'actions.label.remove.description': 'Attention! This process is irreversible.',
|
|
17
17
|
'label.resume.title': 'Resume syntactic annotation',
|
|
18
18
|
'label.resume.description': 'Continue from the last reviewed sentence.',
|
|
19
|
-
'label.syntactic.title': 'Review
|
|
19
|
+
'label.syntactic.title': 'Review sentences',
|
|
20
20
|
'label.syntactic.description': 'Review and validate syntactic annotations for sentences.',
|
|
21
|
-
'label.documents.title': 'Back to
|
|
22
|
-
'label.documents.description': 'Return to the list of documents',
|
|
21
|
+
'label.documents.title': 'Back to the catalog',
|
|
22
|
+
'label.documents.description': 'Return to the list of documents.',
|
|
23
23
|
'label.transcription.title': 'Go back to transcription',
|
|
24
24
|
'label.transcription.description': 'Return page {{pageNumber}} to transcription mode. This action applies only to the current page.',
|
|
25
25
|
'modal.description.sentences.remove': 'Are you sure you want to go back to transcription for this page? This will delete all sentences already edited?',
|
|
@@ -36,7 +36,7 @@ export const ActionsTexts = {
|
|
|
36
36
|
'button.label.filter': 'Filtrar',
|
|
37
37
|
'tooltip.label.list': 'Mostrar como lista',
|
|
38
38
|
'tooltip.label.grid': 'Mostrar como grid',
|
|
39
|
-
'label.automatic.title': 'Parser
|
|
39
|
+
'label.automatic.title': 'Parser automático',
|
|
40
40
|
'label.automatic.description': 'Execute o parser automaticamente para todas as sentenças.',
|
|
41
41
|
'label.sync.title': 'Sincronizar busca do documento',
|
|
42
42
|
'label.sync.description': 'Marcar este documento para ser sincronizado novamente no serviço de busca.',
|
|
@@ -50,8 +50,8 @@ export const ActionsTexts = {
|
|
|
50
50
|
'label.resume.description': 'Continue a partir da última sentença revisada.',
|
|
51
51
|
'label.syntactic.title': 'Revisar sentenças',
|
|
52
52
|
'label.syntactic.description': 'Revise e valide as anotações sintáticas das sentenças.',
|
|
53
|
-
'label.documents.title': 'Voltar
|
|
54
|
-
'label.documents.description': 'Voltar à lista de documentos',
|
|
53
|
+
'label.documents.title': 'Voltar ao catálogo',
|
|
54
|
+
'label.documents.description': 'Voltar à lista de documentos.',
|
|
55
55
|
'label.transcription.title': 'Voltar para a transcrição',
|
|
56
56
|
'label.transcription.description': 'Voltar a página {{pageNumber}} para o modo de transcrição. Esta ação se aplica apenas à página atual.',
|
|
57
57
|
'modal.description.sentences.remove': 'Você tem certeza que deseja voltar para a transcrição para esta página? Isso vai excluir todas as sentenças já editadas?',
|
|
@@ -67,8 +67,8 @@ export const ActionsTexts = {
|
|
|
67
67
|
'button.label.filter': 'Filtra',
|
|
68
68
|
'tooltip.label.list': 'Mostra come elenco',
|
|
69
69
|
'tooltip.label.grid': 'Mostra come griglia',
|
|
70
|
-
'label.automatic.title': '
|
|
71
|
-
'label.automatic.description': '
|
|
70
|
+
'label.automatic.title': 'Parser automatico',
|
|
71
|
+
'label.automatic.description': 'Esegue il parser automaticamente per tutte le frasi.',
|
|
72
72
|
'label.sync.title': 'Sincronizza ricerca documento',
|
|
73
73
|
'label.sync.description': 'Segna questo documento per essere sincronizzato di nuovo dal servizio di ricerca.',
|
|
74
74
|
'actions.label.title': 'Azioni',
|
|
@@ -80,8 +80,8 @@ export const ActionsTexts = {
|
|
|
80
80
|
'label.resume.description': "Continua dall'ultima frase revisionata.",
|
|
81
81
|
'label.syntactic.title': 'Revisiona frasi',
|
|
82
82
|
'label.syntactic.description': 'Revisiona e convalida le annotazioni sintattiche delle frasi.',
|
|
83
|
-
'label.documents.title': 'Torna
|
|
84
|
-
'label.documents.description':
|
|
83
|
+
'label.documents.title': 'Torna al catalogo',
|
|
84
|
+
'label.documents.description': "Ritorna all'elenco dei documenti.",
|
|
85
85
|
'label.transcription.title': 'Torna alla trascrizione',
|
|
86
86
|
'label.transcription.description': 'Ripristina la pagina {{pageNumber}} in modalità trascrizione. Questa azione si applica solo alla pagina corrente.',
|
|
87
87
|
'modal.description.sentences.remove': 'Sei sicuro di voler tornare alla trascrizione per questa pagina? Verranno eliminate tutte le frasi già modificate.',
|
|
@@ -90,6 +90,6 @@ export const ActionsTexts = {
|
|
|
90
90
|
'label.edition.description': 'Continua a modificare il contenuto del documento.',
|
|
91
91
|
'modal.remove.title': 'Rimuovi documento',
|
|
92
92
|
'modal.title.design': 'Cambia strumento di modifica',
|
|
93
|
-
'modal.description.design':
|
|
93
|
+
'modal.description.design': "Stai per cambiare lo strumento di modifica predefinito di questo documento da Design a un altro strumento. <bold>Attenzione! Le marcature sull'immagine andranno perse. Una volta confermato, questa modifica non potrà essere annullata.</bold>",
|
|
94
94
|
},
|
|
95
95
|
};
|