tycho-components 0.19.17 → 0.21.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/{AppConsent → common/AppConsent}/AppConsent.d.ts +1 -1
- package/dist/{AppDropzone → common/AppDropzone}/AppDropzoneBody.js +3 -3
- package/dist/{AppForm → common/AppForm}/AppFormInfo.js +1 -1
- package/dist/{AppKeyboard → common/AppKeyboard}/AppKeyboard.js +2 -2
- package/dist/{AppPicture → common/AppPicture}/AppPicture.js +1 -1
- package/dist/{AppToast → common/AppToast}/AppToast.js +2 -2
- package/dist/common/index.d.ts +34 -0
- package/dist/common/index.js +27 -0
- package/dist/configs/Localization.d.ts +20 -961
- package/dist/configs/Localization.js +42 -47
- package/dist/configs/index.d.ts +27 -0
- package/dist/configs/index.js +16 -0
- package/dist/configs/mock/MockStructs.d.ts +1 -1
- package/dist/configs/store/actions.d.ts +1 -1
- package/dist/configs/store/store.js +1 -1
- package/dist/configs/store/types.d.ts +1 -1
- package/dist/configs/types/Document.d.ts +1 -1
- package/dist/configs/types/Sentence.d.ts +1 -1
- package/dist/cytoscape-context-menus.d.ts +1 -1
- package/dist/cytoscape-context-menus.js +1 -1
- package/dist/{Comments → features/Comments}/CommentAdd.d.ts +1 -1
- package/dist/{Comments → features/Comments}/CommentAdd.js +3 -3
- package/dist/{Comments → features/Comments}/CommentInfo.js +3 -3
- package/dist/{Comments/types → features/Comments}/CommentService.d.ts +1 -1
- package/dist/{Comments → features/Comments}/Comments.js +5 -5
- package/dist/{Comments → features/Comments}/HeaderNotifications/HeaderNotifications.js +2 -2
- package/dist/{Parameters → features/Parameters}/Parameters.js +1 -1
- package/dist/{Participants → features/Participants}/ParticipantCreate/ParticipantCreate.js +4 -4
- package/dist/{Participants → features/Participants}/ParticipantRemove/ParticipantRemove.js +4 -4
- package/dist/{Participants/types → features/Participants}/ParticipantService.d.ts +2 -2
- package/dist/{Participants → features/Participants}/Participants.js +3 -3
- package/dist/{Participants → features/Participants}/types/Participant.d.ts +1 -1
- package/dist/features/SentenceSplit/SentenceSplit.d.ts +28 -0
- package/dist/features/SentenceSplit/SentenceSplit.js +180 -0
- package/dist/features/SentenceSplit/SentenceSplitAudio/SentenceSplitAudioStep.d.ts +9 -0
- package/dist/features/SentenceSplit/SentenceSplitAudio/SentenceSplitAudioStep.js +38 -0
- package/dist/features/SentenceSplit/SentenceSplitAudio/index.d.ts +2 -0
- package/dist/features/SentenceSplit/SentenceSplitAudio/index.js +2 -0
- package/dist/features/SentenceSplit/SentenceSplitAudio/style.scss +29 -0
- package/dist/features/SentenceSplit/SentenceSplitChoose/SentenceSplitChoose.d.ts +10 -0
- package/dist/features/SentenceSplit/SentenceSplitChoose/SentenceSplitChoose.js +23 -0
- package/dist/features/SentenceSplit/SentenceSplitChoose/index.d.ts +2 -0
- package/dist/features/SentenceSplit/SentenceSplitChoose/index.js +2 -0
- package/dist/features/SentenceSplit/SentenceSplitChoose/style.scss +25 -0
- package/dist/features/SentenceSplit/SentenceSplitCommentUtils.d.ts +21 -0
- package/dist/features/SentenceSplit/SentenceSplitCommentUtils.js +77 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentBlock.d.ts +7 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentBlock.js +6 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitComments.d.ts +8 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitComments.js +37 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsStep.d.ts +11 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsStep.js +72 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsWords.d.ts +9 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsWords.js +15 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/index.d.ts +2 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/index.js +2 -0
- package/dist/features/SentenceSplit/SentenceSplitComments/style.scss +126 -0
- package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreview.d.ts +10 -0
- package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreview.js +10 -0
- package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreviewStep.d.ts +11 -0
- package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreviewStep.js +24 -0
- package/dist/features/SentenceSplit/SentenceSplitPreview/index.d.ts +2 -0
- package/dist/features/SentenceSplit/SentenceSplitPreview/index.js +2 -0
- package/dist/features/SentenceSplit/SentenceSplitPreview/style.scss +24 -0
- package/dist/features/SentenceSplit/SentenceSplitService.d.ts +13 -0
- package/dist/features/SentenceSplit/SentenceSplitService.js +13 -0
- package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslations.d.ts +12 -0
- package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslations.js +15 -0
- package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslationsStep.d.ts +10 -0
- package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslationsStep.js +8 -0
- package/dist/features/SentenceSplit/SentenceSplitTranslations/index.d.ts +2 -0
- package/dist/features/SentenceSplit/SentenceSplitTranslations/index.js +2 -0
- package/dist/features/SentenceSplit/SentenceSplitTranslations/style.scss +23 -0
- package/dist/features/SentenceSplit/SentenceSplitUtils.d.ts +6 -0
- package/dist/features/SentenceSplit/SentenceSplitUtils.js +17 -0
- package/dist/features/SentenceSplit/index.d.ts +2 -0
- package/dist/features/SentenceSplit/index.js +2 -0
- package/dist/features/SentenceSplit/localization/SentenceSplitTexts.d.ts +107 -0
- package/dist/features/SentenceSplit/localization/SentenceSplitTexts.js +107 -0
- package/dist/features/SentenceSplit/style.scss +173 -0
- package/dist/features/SentenceSplit/types/Language.d.ts +6 -0
- package/dist/features/SentenceSplit/types/SentenceSplitRequest.d.ts +20 -0
- package/dist/features/SentenceSplit/types/SentenceSplitRequest.js +16 -0
- package/dist/{SentenceView → features/SentenceView}/SentenceEditionTiers.d.ts +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceEditionTiers.js +2 -2
- package/dist/{SentenceView → features/SentenceView}/SentenceMorphemeTags.d.ts +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceMorphemeTags.js +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceMorphemeTiers.d.ts +2 -2
- package/dist/{SentenceView → features/SentenceView}/SentenceMorphemeTiers.js +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceTags.d.ts +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceTags.js +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceValues.d.ts +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceValues.js +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceView.d.ts +2 -2
- package/dist/{SentenceView → features/SentenceView}/SentenceView.js +1 -1
- package/dist/{SentenceView → features/SentenceView}/SentenceWordTiers.d.ts +2 -2
- package/dist/{SentenceView → features/SentenceView}/SentenceWordTiers.js +1 -1
- package/dist/{TreeView → features/TreeView}/TreeView.d.ts +1 -1
- package/dist/{TreeView → features/TreeView}/TreeView.js +3 -3
- package/dist/{TreeView → features/TreeView}/TreeViewSearch/TreeViewSearch.d.ts +1 -1
- package/dist/{TreeView → features/TreeView}/TreeViewSearch/TreeViewSearch.js +1 -1
- package/dist/{TreeView → features/TreeView}/cytoscape/CytoscapeTreeConverter.d.ts +1 -1
- package/dist/features/TreeView/cytoscape/NodeCalculation.js +1 -0
- package/dist/{TreeView → features/TreeView}/cytoscape/SyntreesCytoscape.d.ts +1 -1
- package/dist/features/index.d.ts +24 -0
- package/dist/features/index.js +17 -0
- package/dist/functions/FormUtils.d.ts +1 -1
- package/dist/functions/index.d.ts +10 -0
- package/dist/functions/index.js +9 -0
- package/dist/index.d.ts +5 -103
- package/dist/index.js +5 -77
- package/dist/{Base → shell/Base}/ErrorFound.js +1 -1
- package/dist/{Base → shell/Base}/Logout.js +2 -2
- package/dist/{Base → shell/Base}/Unauthorized.js +2 -2
- package/dist/{Header → shell/Header}/HeaderApps/HeaderApps.d.ts +3 -3
- package/dist/{Header → shell/Header}/HeaderApps/HeaderApps.js +24 -24
- package/dist/{Header → shell/Header}/HeaderButtons/HeaderButtons.js +5 -5
- package/dist/{Header → shell/Header}/HeaderCorpora/HeaderCorpora.js +3 -3
- package/dist/{Header → shell/Header}/HeaderCorpora/HeaderCorpus.js +2 -2
- package/dist/{Header → shell/Header}/HeaderUser/HeaderUser.js +1 -1
- package/dist/{Header → shell/Header}/HelpButton/HelpModal.js +3 -3
- package/dist/{Header → shell/Header}/types/App.js +1 -1
- package/dist/{Header → shell/Header}/types/CorpusService.d.ts +1 -1
- package/dist/{Header → shell/Header}/types/CorpusService.js +2 -2
- package/dist/shell/index.d.ts +16 -0
- package/dist/shell/index.js +13 -0
- package/package.json +31 -2
- /package/dist/{AppAnalytics → common/AppAnalytics}/AppAnalytics.d.ts +0 -0
- /package/dist/{AppAnalytics → common/AppAnalytics}/AppAnalytics.js +0 -0
- /package/dist/{AppAnalytics → common/AppAnalytics}/index.d.ts +0 -0
- /package/dist/{AppAnalytics → common/AppAnalytics}/index.js +0 -0
- /package/dist/{AppCard → common/AppCard}/AppCard.d.ts +0 -0
- /package/dist/{AppCard → common/AppCard}/AppCard.js +0 -0
- /package/dist/{AppCard → common/AppCard}/index.d.ts +0 -0
- /package/dist/{AppCard → common/AppCard}/index.js +0 -0
- /package/dist/{AppCard → common/AppCard}/style.scss +0 -0
- /package/dist/{AppClipboard → common/AppClipboard}/AppClipboard.d.ts +0 -0
- /package/dist/{AppClipboard → common/AppClipboard}/AppClipboard.js +0 -0
- /package/dist/{AppClipboard → common/AppClipboard}/index.d.ts +0 -0
- /package/dist/{AppClipboard → common/AppClipboard}/index.js +0 -0
- /package/dist/{AppColorpicker → common/AppColorpicker}/AppColorpicker.d.ts +0 -0
- /package/dist/{AppColorpicker → common/AppColorpicker}/AppColorpicker.js +0 -0
- /package/dist/{AppColorpicker → common/AppColorpicker}/index.d.ts +0 -0
- /package/dist/{AppColorpicker → common/AppColorpicker}/index.js +0 -0
- /package/dist/{AppColorpicker → common/AppColorpicker}/style.scss +0 -0
- /package/dist/{AppConsent → common/AppConsent}/AppConsent.js +0 -0
- /package/dist/{AppConsent → common/AppConsent}/index.d.ts +0 -0
- /package/dist/{AppConsent → common/AppConsent}/index.js +0 -0
- /package/dist/{AppCopyText → common/AppCopyText}/AppCopyText.d.ts +0 -0
- /package/dist/{AppCopyText → common/AppCopyText}/AppCopyText.js +0 -0
- /package/dist/{AppCopyText → common/AppCopyText}/index.d.ts +0 -0
- /package/dist/{AppCopyText → common/AppCopyText}/index.js +0 -0
- /package/dist/{AppCopyText → common/AppCopyText}/styles.scss +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/AppDropzone.d.ts +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/AppDropzone.js +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/AppDropzoneBody.d.ts +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/UploadService.d.ts +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/UploadService.js +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/UploadedFile.d.ts +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/UploadedFile.js +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/index.d.ts +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/index.js +0 -0
- /package/dist/{AppDropzone → common/AppDropzone}/style.scss +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/AppDropzoneBodyLocal.d.ts +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/AppDropzoneBodyLocal.js +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/AppDropzoneLocal.d.ts +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/AppDropzoneLocal.js +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/UploadedFileLocal.d.ts +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/UploadedFileLocal.js +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/index.d.ts +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/index.js +0 -0
- /package/dist/{AppDropzoneLocal → common/AppDropzoneLocal}/style.scss +0 -0
- /package/dist/{AppEditable → common/AppEditable}/AppEditable.d.ts +0 -0
- /package/dist/{AppEditable → common/AppEditable}/AppEditable.js +0 -0
- /package/dist/{AppEditable → common/AppEditable}/AppEditableField.d.ts +0 -0
- /package/dist/{AppEditable → common/AppEditable}/AppEditableField.js +0 -0
- /package/dist/{AppEditable → common/AppEditable}/FormField.d.ts +0 -0
- /package/dist/{AppEditable → common/AppEditable}/FormField.js +0 -0
- /package/dist/{AppEditable → common/AppEditable}/FormFieldOption.d.ts +0 -0
- /package/dist/{AppEditable → common/AppEditable}/FormFieldOption.js +0 -0
- /package/dist/{AppEditable → common/AppEditable}/index.d.ts +0 -0
- /package/dist/{AppEditable → common/AppEditable}/index.js +0 -0
- /package/dist/{AppEditable → common/AppEditable}/style.scss +0 -0
- /package/dist/{AppForm → common/AppForm}/AppForm.d.ts +0 -0
- /package/dist/{AppForm → common/AppForm}/AppForm.js +0 -0
- /package/dist/{AppForm → common/AppForm}/AppFormField.d.ts +0 -0
- /package/dist/{AppForm → common/AppForm}/AppFormField.js +0 -0
- /package/dist/{AppForm → common/AppForm}/AppFormInfo.d.ts +0 -0
- /package/dist/{AppForm → common/AppForm}/index.d.ts +0 -0
- /package/dist/{AppForm → common/AppForm}/index.js +0 -0
- /package/dist/{AppForm → common/AppForm}/style.scss +0 -0
- /package/dist/{AppKeyboard → common/AppKeyboard}/AppKeyboard.d.ts +0 -0
- /package/dist/{AppKeyboard → common/AppKeyboard}/index.d.ts +0 -0
- /package/dist/{AppKeyboard → common/AppKeyboard}/index.js +0 -0
- /package/dist/{AppLoading → common/AppLoading}/AppLoading.d.ts +0 -0
- /package/dist/{AppLoading → common/AppLoading}/AppLoading.js +0 -0
- /package/dist/{AppLoading → common/AppLoading}/index.d.ts +0 -0
- /package/dist/{AppLoading → common/AppLoading}/index.js +0 -0
- /package/dist/{AppLoading → common/AppLoading}/style.scss +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModal.d.ts +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModal.js +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModalConfirm.d.ts +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModalConfirm.js +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModalRemove.d.ts +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModalRemove.js +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModalUtils.d.ts +0 -0
- /package/dist/{AppModal → common/AppModal}/AppModalUtils.js +0 -0
- /package/dist/{AppModal → common/AppModal}/index.d.ts +0 -0
- /package/dist/{AppModal → common/AppModal}/index.js +0 -0
- /package/dist/{AppModal → common/AppModal}/style.scss +0 -0
- /package/dist/{AppPagination → common/AppPagination}/AppPagination.d.ts +0 -0
- /package/dist/{AppPagination → common/AppPagination}/AppPagination.js +0 -0
- /package/dist/{AppPagination → common/AppPagination}/index.d.ts +0 -0
- /package/dist/{AppPagination → common/AppPagination}/index.js +0 -0
- /package/dist/{AppPagination → common/AppPagination}/styles.scss +0 -0
- /package/dist/{AppPicture → common/AppPicture}/AppPicture.d.ts +0 -0
- /package/dist/{AppPicture → common/AppPicture}/index.d.ts +0 -0
- /package/dist/{AppPicture → common/AppPicture}/index.js +0 -0
- /package/dist/{AppPicture → common/AppPicture}/style.scss +0 -0
- /package/dist/{AppPlaceholder → common/AppPlaceholder}/AppPlaceholder.d.ts +0 -0
- /package/dist/{AppPlaceholder → common/AppPlaceholder}/AppPlaceholder.js +0 -0
- /package/dist/{AppPlaceholder → common/AppPlaceholder}/index.d.ts +0 -0
- /package/dist/{AppPlaceholder → common/AppPlaceholder}/index.js +0 -0
- /package/dist/{AppPlaceholder → common/AppPlaceholder}/style.scss +0 -0
- /package/dist/{AppReplaceAll → common/AppReplaceAll}/AppReplaceAll.d.ts +0 -0
- /package/dist/{AppReplaceAll → common/AppReplaceAll}/AppReplaceAll.js +0 -0
- /package/dist/{AppReplaceAll → common/AppReplaceAll}/index.d.ts +0 -0
- /package/dist/{AppReplaceAll → common/AppReplaceAll}/index.js +0 -0
- /package/dist/{AppReplaceAll → common/AppReplaceAll}/style.scss +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTable.d.ts +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTable.js +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTableList.d.ts +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTableList.js +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTableTheme.d.ts +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTableTheme.js +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTableUtils.d.ts +0 -0
- /package/dist/{AppTable → common/AppTable}/AppTableUtils.js +0 -0
- /package/dist/{AppTable → common/AppTable}/index.d.ts +0 -0
- /package/dist/{AppTable → common/AppTable}/index.js +0 -0
- /package/dist/{AppTable → common/AppTable}/styles.scss +0 -0
- /package/dist/{AppTable → common/AppTable}/types/AppPage.d.ts +0 -0
- /package/dist/{AppTable → common/AppTable}/types/AppPage.js +0 -0
- /package/dist/{AppTable → common/AppTable}/types/AppPageable.d.ts +0 -0
- /package/dist/{AppTable → common/AppTable}/types/AppPageable.js +0 -0
- /package/dist/{AppToast → common/AppToast}/AppToast.d.ts +0 -0
- /package/dist/{AppToast → common/AppToast}/ToastMessage.d.ts +0 -0
- /package/dist/{AppToast → common/AppToast}/ToastMessage.js +0 -0
- /package/dist/{AppToast → common/AppToast}/index.d.ts +0 -0
- /package/dist/{AppToast → common/AppToast}/index.js +0 -0
- /package/dist/{AppToast → common/AppToast}/style.scss +0 -0
- /package/dist/{Comments → features/Comments}/CommentInfo.d.ts +0 -0
- /package/dist/{Comments/types → features/Comments}/CommentService.js +0 -0
- /package/dist/{Comments → features/Comments}/Comments.d.ts +0 -0
- /package/dist/{Comments → features/Comments}/HeaderNotifications/HeaderNotifications.d.ts +0 -0
- /package/dist/{Comments → features/Comments}/HeaderNotifications/index.d.ts +0 -0
- /package/dist/{Comments → features/Comments}/HeaderNotifications/index.js +0 -0
- /package/dist/{Comments → features/Comments}/HeaderNotifications/style.scss +0 -0
- /package/dist/{Comments → features/Comments}/index.d.ts +0 -0
- /package/dist/{Comments → features/Comments}/index.js +0 -0
- /package/dist/{Comments → features/Comments}/style.scss +0 -0
- /package/dist/{Comments → features/Comments}/types/Comment.d.ts +0 -0
- /package/dist/{Comments → features/Comments}/types/Comment.js +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/CytoscapeMenuCanvas.d.ts +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/CytoscapeMenuCanvas.js +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/constants.d.ts +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/constants.js +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/context-menu.d.ts +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/context-menu.js +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/cytoscape-context-menus.d.ts +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/cytoscape-context-menus.js +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/index.d.ts +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/index.js +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/style.scss +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/utils.d.ts +0 -0
- /package/dist/{CytoscapeMenu → features/CytoscapeMenu}/utils.js +0 -0
- /package/dist/{Parameters → features/Parameters}/Parameters.d.ts +0 -0
- /package/dist/{Parameters → features/Parameters}/index.d.ts +0 -0
- /package/dist/{Parameters → features/Parameters}/index.js +0 -0
- /package/dist/{Parameters → features/Parameters}/style.scss +0 -0
- /package/dist/{Participants → features/Participants}/ParticipantCreate/ParticipantCreate.d.ts +0 -0
- /package/dist/{Participants → features/Participants}/ParticipantCreate/index.d.ts +0 -0
- /package/dist/{Participants → features/Participants}/ParticipantCreate/index.js +0 -0
- /package/dist/{Participants → features/Participants}/ParticipantRemove/ParticipantRemove.d.ts +0 -0
- /package/dist/{Participants → features/Participants}/ParticipantRemove/index.d.ts +0 -0
- /package/dist/{Participants → features/Participants}/ParticipantRemove/index.js +0 -0
- /package/dist/{Participants → features/Participants}/ParticipantRemove/style.scss +0 -0
- /package/dist/{Participants/types → features/Participants}/ParticipantService.js +0 -0
- /package/dist/{Participants → features/Participants}/Participants.d.ts +0 -0
- /package/dist/{Participants → features/Participants}/index.d.ts +0 -0
- /package/dist/{Participants → features/Participants}/index.js +0 -0
- /package/dist/{Participants → features/Participants}/style.scss +0 -0
- /package/dist/{Participants → features/Participants}/types/Participant.js +0 -0
- /package/dist/{TreeView/cytoscape/NodeBounds.js → features/SentenceSplit/types/Language.js} +0 -0
- /package/dist/{SentenceView → features/SentenceView}/index.d.ts +0 -0
- /package/dist/{SentenceView → features/SentenceView}/index.js +0 -0
- /package/dist/{SentenceView → features/SentenceView}/style.scss +0 -0
- /package/dist/{TreeView → features/TreeView}/TreeViewSearch/TreeViewSearchField.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/TreeViewSearch/TreeViewSearchField.js +0 -0
- /package/dist/{TreeView → features/TreeView}/TreeViewSearch/style.scss +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/Configuration.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/Configuration.js +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/CytoscapePositionCalculator.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/CytoscapePositionCalculator.js +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/CytoscapeStylesheet.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/CytoscapeStylesheet.js +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/CytoscapeTreeConverter.js +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/NodeBounds.d.ts +0 -0
- /package/dist/{TreeView/cytoscape/NodeCalculation.js → features/TreeView/cytoscape/NodeBounds.js} +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/NodeCalculation.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/NormalizedPosition.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/NormalizedPosition.js +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/SyntreesCytoscape.js +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/TreeLayout.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/cytoscape/TreeLayout.js +0 -0
- /package/dist/{TreeView → features/TreeView}/index.d.ts +0 -0
- /package/dist/{TreeView → features/TreeView}/index.js +0 -0
- /package/dist/{TreeView → features/TreeView}/style.scss +0 -0
- /package/dist/{Base → shell/Base}/ErrorBoundary.d.ts +0 -0
- /package/dist/{Base → shell/Base}/ErrorBoundary.js +0 -0
- /package/dist/{Base → shell/Base}/ErrorFound.d.ts +0 -0
- /package/dist/{Base → shell/Base}/Login.d.ts +0 -0
- /package/dist/{Base → shell/Base}/Login.js +0 -0
- /package/dist/{Base → shell/Base}/Logout.d.ts +0 -0
- /package/dist/{Base → shell/Base}/NotFound.d.ts +0 -0
- /package/dist/{Base → shell/Base}/NotFound.js +0 -0
- /package/dist/{Base → shell/Base}/Unauthorized.d.ts +0 -0
- /package/dist/{Base → shell/Base}/logo.png +0 -0
- /package/dist/{Base → shell/Base}/style.scss +0 -0
- /package/dist/{Header → shell/Header}/Header.d.ts +0 -0
- /package/dist/{Header → shell/Header}/Header.js +0 -0
- /package/dist/{Header → shell/Header}/HeaderApps/index.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderApps/index.js +0 -0
- /package/dist/{Header → shell/Header}/HeaderApps/logo.png +0 -0
- /package/dist/{Header → shell/Header}/HeaderApps/style.scss +0 -0
- /package/dist/{Header → shell/Header}/HeaderApps/youtube.png +0 -0
- /package/dist/{Header → shell/Header}/HeaderButtons/HeaderButtons.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderButtons/index.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderButtons/index.js +0 -0
- /package/dist/{Header → shell/Header}/HeaderButtons/styles.scss +0 -0
- /package/dist/{Header → shell/Header}/HeaderCorpora/HeaderCorpora.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderCorpora/HeaderCorpus.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderCorpora/index.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderCorpora/index.js +0 -0
- /package/dist/{Header → shell/Header}/HeaderCorpora/style.scss +0 -0
- /package/dist/{Header → shell/Header}/HeaderUser/HeaderUser.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderUser/index.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HeaderUser/index.js +0 -0
- /package/dist/{Header → shell/Header}/HeaderUser/style.scss +0 -0
- /package/dist/{Header → shell/Header}/HelpButton/HelpButton.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HelpButton/HelpButton.js +0 -0
- /package/dist/{Header → shell/Header}/HelpButton/HelpModal.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HelpButton/index.d.ts +0 -0
- /package/dist/{Header → shell/Header}/HelpButton/index.js +0 -0
- /package/dist/{Header → shell/Header}/HelpButton/style.scss +0 -0
- /package/dist/{Header → shell/Header}/index.d.ts +0 -0
- /package/dist/{Header → shell/Header}/index.js +0 -0
- /package/dist/{Header → shell/Header}/styles.scss +0 -0
- /package/dist/{Header → shell/Header}/types/App.d.ts +0 -0
- /package/dist/{LanguageSelector → shell/LanguageSelector}/LanguageSelector.d.ts +0 -0
- /package/dist/{LanguageSelector → shell/LanguageSelector}/LanguageSelector.js +0 -0
- /package/dist/{LanguageSelector → shell/LanguageSelector}/index.d.ts +0 -0
- /package/dist/{LanguageSelector → shell/LanguageSelector}/index.js +0 -0
- /package/dist/{LanguageSelector → shell/LanguageSelector}/styles.scss +0 -0
- /package/dist/{VirtualKeyboard → shell/VirtualKeyboard}/KeyboardCustomLayout.d.ts +0 -0
- /package/dist/{VirtualKeyboard → shell/VirtualKeyboard}/KeyboardCustomLayout.js +0 -0
- /package/dist/{VirtualKeyboard → shell/VirtualKeyboard}/VirtualKeyboard.d.ts +0 -0
- /package/dist/{VirtualKeyboard → shell/VirtualKeyboard}/VirtualKeyboard.js +0 -0
- /package/dist/{VirtualKeyboard → shell/VirtualKeyboard}/index.d.ts +0 -0
- /package/dist/{VirtualKeyboard → shell/VirtualKeyboard}/index.js +0 -0
- /package/dist/{VirtualKeyboard → shell/VirtualKeyboard}/style.scss +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.sentence-split-preview-container {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 1fr 1fr;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
margin-top: 24px;
|
|
6
|
+
|
|
7
|
+
.sentence-split-preview-block {
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
overflow-x: auto;
|
|
10
|
+
|
|
11
|
+
.sentence-split-preview-table {
|
|
12
|
+
text-align: center;
|
|
13
|
+
|
|
14
|
+
td {
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
td:first-child {
|
|
19
|
+
text-align: left;
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SentenceSplitRequest } from './types/SentenceSplitRequest';
|
|
2
|
+
export type SentenceSplitCommentReferences = {
|
|
3
|
+
sentence: string;
|
|
4
|
+
document: string;
|
|
5
|
+
page: string;
|
|
6
|
+
};
|
|
7
|
+
declare function split(uid: string, request: SentenceSplitRequest): Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
8
|
+
declare function findComments(corpusUid: string, references: SentenceSplitCommentReferences): Promise<import("axios").AxiosResponse<import("..").Comment[], any, {}>>;
|
|
9
|
+
declare const SentenceSplitService: {
|
|
10
|
+
split: typeof split;
|
|
11
|
+
findComments: typeof findComments;
|
|
12
|
+
};
|
|
13
|
+
export default SentenceSplitService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import api from '../../configs/api';
|
|
2
|
+
import CommentService from '../Comments/CommentService';
|
|
3
|
+
function split(uid, request) {
|
|
4
|
+
return api.post(`${import.meta.env.VITE_APP_EDICTOR_URL}/sentence/split/${uid}`, request);
|
|
5
|
+
}
|
|
6
|
+
function findComments(corpusUid, references) {
|
|
7
|
+
return CommentService.find(corpusUid, 'corpus', references);
|
|
8
|
+
}
|
|
9
|
+
const SentenceSplitService = {
|
|
10
|
+
split,
|
|
11
|
+
findComments,
|
|
12
|
+
};
|
|
13
|
+
export default SentenceSplitService;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import SentenceSplitLanguage from '../types/Language';
|
|
2
|
+
import type { SentenceSplitRequest } from '../types/SentenceSplitRequest';
|
|
3
|
+
import './style.scss';
|
|
4
|
+
type Segment = 'first' | 'second';
|
|
5
|
+
type Props = {
|
|
6
|
+
languages: SentenceSplitLanguage[];
|
|
7
|
+
segment: Segment;
|
|
8
|
+
request: SentenceSplitRequest;
|
|
9
|
+
onChange: (request: SentenceSplitRequest) => void;
|
|
10
|
+
};
|
|
11
|
+
export default function SentenceSplitTranslations({ languages, segment, request, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import './style.scss';
|
|
3
|
+
export default function SentenceSplitTranslations({ languages, segment, request, onChange, }) {
|
|
4
|
+
const field = segment === 'first' ? 'translationsFirst' : 'translationsSecond';
|
|
5
|
+
const values = request[field] || {};
|
|
6
|
+
const getValue = (language) => values[language.symbol] || '';
|
|
7
|
+
const changeValue = (language, value) => {
|
|
8
|
+
onChange({
|
|
9
|
+
...request,
|
|
10
|
+
[field]: { ...(request[field] || {}), [language.symbol]: value },
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
return (_jsx(_Fragment, { children: languages &&
|
|
14
|
+
languages.map((language, idx) => (_jsxs("div", { className: "language-field", children: [_jsx("span", { className: "title", children: language.name }), _jsx("input", { type: "text", className: "form-control", value: getValue(language), onChange: (e) => changeValue(language, e.target.value) })] }, idx.valueOf()))) }));
|
|
15
|
+
}
|
package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslationsStep.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import SentenceSplitLanguage from '../types/Language';
|
|
2
|
+
import type { SentenceSplitRequest } from '../types/SentenceSplitRequest';
|
|
3
|
+
import './style.scss';
|
|
4
|
+
type Props = {
|
|
5
|
+
languages: SentenceSplitLanguage[];
|
|
6
|
+
request: SentenceSplitRequest;
|
|
7
|
+
onChange: (request: SentenceSplitRequest) => void;
|
|
8
|
+
};
|
|
9
|
+
export default function SentenceSplitTranslationsStep({ languages, request, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslationsStep.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import SentenceSplitTranslations from './SentenceSplitTranslations';
|
|
4
|
+
import './style.scss';
|
|
5
|
+
export default function SentenceSplitTranslationsStep({ languages, request, onChange, }) {
|
|
6
|
+
const { t } = useTranslation('sentenceSplit');
|
|
7
|
+
return (_jsxs("div", { className: "step-content sentence-split-step-translations", children: [_jsxs("div", { className: "header", children: [_jsx("div", { className: "title", children: t('split.translations.title') }), _jsx("div", { className: "subtitle", children: t('split.translations.description') })] }), _jsxs("div", { className: "step-body", children: [_jsxs("div", { className: "split-translation-container", children: [_jsx("span", { className: "title", children: t('split.label.first') }), _jsx(SentenceSplitTranslations, { segment: "first", languages: languages, request: request, onChange: onChange })] }), _jsxs("div", { className: "split-translation-container", children: [_jsx("span", { className: "title", children: t('split.label.second') }), _jsx(SentenceSplitTranslations, { segment: "second", languages: languages, request: request, onChange: onChange })] })] })] }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.split-translation-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
border: 1px solid var(--border-subtle-1);
|
|
6
|
+
border-radius: var(--radius-200);
|
|
7
|
+
padding: 8px 16px;
|
|
8
|
+
|
|
9
|
+
> .title {
|
|
10
|
+
@include body-medium-2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> .language-field {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 4px;
|
|
17
|
+
|
|
18
|
+
> .title {
|
|
19
|
+
@include body-medium-2;
|
|
20
|
+
margin-bottom: 4px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const skipToken = (token) => {
|
|
2
|
+
if (!token.v)
|
|
3
|
+
return false;
|
|
4
|
+
if (token.split && !token.split.v)
|
|
5
|
+
return true;
|
|
6
|
+
if (token.ec)
|
|
7
|
+
return true;
|
|
8
|
+
return false;
|
|
9
|
+
};
|
|
10
|
+
const getOriginalValue = (thisToken) => {
|
|
11
|
+
return thisToken.split ? thisToken.split.v : thisToken.v;
|
|
12
|
+
};
|
|
13
|
+
const SentenceSplitUtils = {
|
|
14
|
+
skipToken,
|
|
15
|
+
getOriginalValue,
|
|
16
|
+
};
|
|
17
|
+
export default SentenceSplitUtils;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const SentenceSplitTexts: {
|
|
2
|
+
en: {
|
|
3
|
+
'button.label.split': string;
|
|
4
|
+
'label.word': string;
|
|
5
|
+
'modal.split.sentence.title': string;
|
|
6
|
+
'split.label.first': string;
|
|
7
|
+
'split.label.second': string;
|
|
8
|
+
'split.words.title': string;
|
|
9
|
+
'split.words.description': string;
|
|
10
|
+
'split.words.cannotSplitAfterLast': string;
|
|
11
|
+
'split.preview.title': string;
|
|
12
|
+
'split.preview.description': string;
|
|
13
|
+
'split.translations.title': string;
|
|
14
|
+
'split.translations.description': string;
|
|
15
|
+
'split.comments.title': string;
|
|
16
|
+
'split.comments.description': string;
|
|
17
|
+
'split.comments.sentenceLevel': string;
|
|
18
|
+
'split.comments.wordLevel': string;
|
|
19
|
+
'split.comments.wordMissing': string;
|
|
20
|
+
'split.comments.empty': string;
|
|
21
|
+
'split.comments.disposition.first': string;
|
|
22
|
+
'split.comments.disposition.moveSecond': string;
|
|
23
|
+
'split.comments.disposition.duplicateSecond': string;
|
|
24
|
+
'split.comments.edited': string;
|
|
25
|
+
'split.audio.title': string;
|
|
26
|
+
'split.audio.description': string;
|
|
27
|
+
'split.audio.empty': string;
|
|
28
|
+
'split.audio.cutPoint': string;
|
|
29
|
+
'split.audio.play': string;
|
|
30
|
+
'split.audio.pause': string;
|
|
31
|
+
'split.button.back': string;
|
|
32
|
+
'split.button.disabledTooFewWords': string;
|
|
33
|
+
'split.button.next': string;
|
|
34
|
+
'split.button.finish': string;
|
|
35
|
+
'split.button.skip': string;
|
|
36
|
+
};
|
|
37
|
+
'pt-BR': {
|
|
38
|
+
'button.label.split': string;
|
|
39
|
+
'label.word': string;
|
|
40
|
+
'modal.split.sentence.title': string;
|
|
41
|
+
'split.label.first': string;
|
|
42
|
+
'split.label.second': string;
|
|
43
|
+
'split.words.title': string;
|
|
44
|
+
'split.words.description': string;
|
|
45
|
+
'split.words.cannotSplitAfterLast': string;
|
|
46
|
+
'split.preview.title': string;
|
|
47
|
+
'split.preview.description': string;
|
|
48
|
+
'split.translations.title': string;
|
|
49
|
+
'split.translations.description': string;
|
|
50
|
+
'split.comments.title': string;
|
|
51
|
+
'split.comments.description': string;
|
|
52
|
+
'split.comments.sentenceLevel': string;
|
|
53
|
+
'split.comments.wordLevel': string;
|
|
54
|
+
'split.comments.wordMissing': string;
|
|
55
|
+
'split.comments.empty': string;
|
|
56
|
+
'split.comments.disposition.first': string;
|
|
57
|
+
'split.comments.disposition.moveSecond': string;
|
|
58
|
+
'split.comments.disposition.duplicateSecond': string;
|
|
59
|
+
'split.comments.edited': string;
|
|
60
|
+
'split.audio.title': string;
|
|
61
|
+
'split.audio.description': string;
|
|
62
|
+
'split.audio.empty': string;
|
|
63
|
+
'split.audio.cutPoint': string;
|
|
64
|
+
'split.audio.play': string;
|
|
65
|
+
'split.audio.pause': string;
|
|
66
|
+
'split.button.back': string;
|
|
67
|
+
'split.button.disabledTooFewWords': string;
|
|
68
|
+
'split.button.next': string;
|
|
69
|
+
'split.button.finish': string;
|
|
70
|
+
'split.button.skip': string;
|
|
71
|
+
};
|
|
72
|
+
it: {
|
|
73
|
+
'button.label.split': string;
|
|
74
|
+
'label.word': string;
|
|
75
|
+
'modal.split.sentence.title': string;
|
|
76
|
+
'split.label.first': string;
|
|
77
|
+
'split.label.second': string;
|
|
78
|
+
'split.words.title': string;
|
|
79
|
+
'split.words.description': string;
|
|
80
|
+
'split.words.cannotSplitAfterLast': string;
|
|
81
|
+
'split.preview.title': string;
|
|
82
|
+
'split.preview.description': string;
|
|
83
|
+
'split.translations.title': string;
|
|
84
|
+
'split.translations.description': string;
|
|
85
|
+
'split.comments.title': string;
|
|
86
|
+
'split.comments.description': string;
|
|
87
|
+
'split.comments.sentenceLevel': string;
|
|
88
|
+
'split.comments.wordLevel': string;
|
|
89
|
+
'split.comments.wordMissing': string;
|
|
90
|
+
'split.comments.empty': string;
|
|
91
|
+
'split.comments.disposition.first': string;
|
|
92
|
+
'split.comments.disposition.moveSecond': string;
|
|
93
|
+
'split.comments.disposition.duplicateSecond': string;
|
|
94
|
+
'split.comments.edited': string;
|
|
95
|
+
'split.audio.title': string;
|
|
96
|
+
'split.audio.description': string;
|
|
97
|
+
'split.audio.empty': string;
|
|
98
|
+
'split.audio.cutPoint': string;
|
|
99
|
+
'split.audio.play': string;
|
|
100
|
+
'split.audio.pause': string;
|
|
101
|
+
'split.button.back': string;
|
|
102
|
+
'split.button.disabledTooFewWords': string;
|
|
103
|
+
'split.button.next': string;
|
|
104
|
+
'split.button.finish': string;
|
|
105
|
+
'split.button.skip': string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export const SentenceSplitTexts = {
|
|
2
|
+
en: {
|
|
3
|
+
'button.label.split': 'Split sentence',
|
|
4
|
+
'label.word': 'Word: ',
|
|
5
|
+
'modal.split.sentence.title': 'Split sentence',
|
|
6
|
+
'split.label.first': 'First sentence',
|
|
7
|
+
'split.label.second': 'Second sentence',
|
|
8
|
+
'split.words.title': 'Choose the word',
|
|
9
|
+
'split.words.description': 'Click the word after which the sentence will be split. This word will become the last word of the first sentence.',
|
|
10
|
+
'split.words.cannotSplitAfterLast': 'The split cannot be after the last word; the second sentence must contain at least one word.',
|
|
11
|
+
'split.preview.title': 'Preview',
|
|
12
|
+
'split.preview.description': 'Confirm the two resulting sentences and their word-level attributes (morphemes are not shown here).',
|
|
13
|
+
'split.translations.title': 'Translations',
|
|
14
|
+
'split.translations.description': 'Review or edit the translations. The same fields apply to both new sentences until you save them for each language; after the split, each sentence can be edited separately.',
|
|
15
|
+
'split.comments.title': 'Comments',
|
|
16
|
+
'split.comments.description': 'Review the comments for the sentences or their words. Comments attached to sentences may be moved to the new sentence, while comments attached to words will be split according to the words.',
|
|
17
|
+
'split.comments.sentenceLevel': 'Sentence comments',
|
|
18
|
+
'split.comments.wordLevel': 'Word comments',
|
|
19
|
+
'split.comments.wordMissing': '—',
|
|
20
|
+
'split.comments.empty': 'No comments for this sentence.',
|
|
21
|
+
'split.comments.disposition.first': 'Leave in first sentence',
|
|
22
|
+
'split.comments.disposition.moveSecond': 'Move to second sentence',
|
|
23
|
+
'split.comments.disposition.duplicateSecond': 'Duplicate in second sentence',
|
|
24
|
+
'split.comments.edited': 'edited',
|
|
25
|
+
'split.audio.title': 'Audio',
|
|
26
|
+
'split.audio.description': 'Mark the position in the audio where it should be split into the two sentences. This action cannot be undone. If you don\'t want to split the audio, click "Next".',
|
|
27
|
+
'split.audio.empty': 'This sentence has no audio attached.',
|
|
28
|
+
'split.audio.cutPoint': 'Cut point',
|
|
29
|
+
'split.audio.play': 'Play',
|
|
30
|
+
'split.audio.pause': 'Pause',
|
|
31
|
+
'split.button.back': 'Back',
|
|
32
|
+
'split.button.disabledTooFewWords': 'At least two words are required to split a sentence.',
|
|
33
|
+
'split.button.next': 'Next',
|
|
34
|
+
'split.button.finish': 'Finish',
|
|
35
|
+
'split.button.skip': 'Skip',
|
|
36
|
+
},
|
|
37
|
+
'pt-BR': {
|
|
38
|
+
'button.label.split': 'Dividir sentença',
|
|
39
|
+
'label.word': 'Palavra: ',
|
|
40
|
+
'modal.split.sentence.title': 'Dividir sentenças',
|
|
41
|
+
'split.label.first': 'Primeira sentença',
|
|
42
|
+
'split.label.second': 'Segunda sentença',
|
|
43
|
+
'split.words.title': 'Escolha a palavra',
|
|
44
|
+
'split.words.description': 'Clique na palavra após a qual a sentença será dividida. Esta palavra será a última palavra da primeira sentença.',
|
|
45
|
+
'split.words.cannotSplitAfterLast': 'A divisão não pode ser após a última palavra; a segunda sentença deve conter pelo menos uma palavra.',
|
|
46
|
+
'split.preview.title': 'Pré-visualização',
|
|
47
|
+
'split.preview.description': 'Confirme as duas sentenças resultantes e seus atributos ao nível de palavra (morfemas não são mostrados aqui).',
|
|
48
|
+
'split.translations.title': 'Traduções',
|
|
49
|
+
'split.translations.description': 'Revise ou edite as traduções. Os mesmos campos aplicam-se a ambas as novas sentenças até você salvá-las para cada idioma; após a divisão, cada sentença pode ser editada separadamente.',
|
|
50
|
+
'split.comments.title': 'Comentários',
|
|
51
|
+
'split.comments.description': 'Revise os comentários das sentenças ou suas palavras. Comentários ligados a sentenças podem ser movidos para a nova sentença, enquanto comentários ligados a palavras serão divididos conforme as palavras.',
|
|
52
|
+
'split.comments.sentenceLevel': 'Comentários da sentença',
|
|
53
|
+
'split.comments.wordLevel': 'Comentários da palavra',
|
|
54
|
+
'split.comments.wordMissing': '—',
|
|
55
|
+
'split.comments.empty': 'Nenhum comentário para esta sentença.',
|
|
56
|
+
'split.comments.disposition.first': 'Manter na primeira sentença',
|
|
57
|
+
'split.comments.disposition.moveSecond': 'Mover para a segunda sentença',
|
|
58
|
+
'split.comments.disposition.duplicateSecond': 'Duplicar na segunda sentença',
|
|
59
|
+
'split.comments.edited': 'editado',
|
|
60
|
+
'split.audio.title': 'Áudio',
|
|
61
|
+
'split.audio.description': 'Marque a posição no áudio em que deve ser dividido nas duas sentenças. Esta ação não pode ser desfeita. Se não quiser dividir o áudio, clique em "Próximo".',
|
|
62
|
+
'split.audio.empty': 'Esta sentença não tem áudio associado.',
|
|
63
|
+
'split.audio.cutPoint': 'Ponto de corte',
|
|
64
|
+
'split.audio.play': 'Reproduzir',
|
|
65
|
+
'split.audio.pause': 'Pausar',
|
|
66
|
+
'split.button.back': 'Voltar',
|
|
67
|
+
'split.button.disabledTooFewWords': 'São necessárias pelo menos duas palavras para dividir uma sentença.',
|
|
68
|
+
'split.button.next': 'Próximo',
|
|
69
|
+
'split.button.finish': 'Concluir',
|
|
70
|
+
'split.button.skip': 'Pular',
|
|
71
|
+
},
|
|
72
|
+
it: {
|
|
73
|
+
'button.label.split': 'Dividi frase',
|
|
74
|
+
'label.word': 'Parola: ',
|
|
75
|
+
'modal.split.sentence.title': 'Dividi frasi',
|
|
76
|
+
'split.label.first': 'Prima frase',
|
|
77
|
+
'split.label.second': 'Seconda frase',
|
|
78
|
+
'split.words.title': 'Scegli la parola',
|
|
79
|
+
'split.words.description': "Fai clic sulla parola dopo la quale la frase verrà divisa. Questa parola diventerà l'ultima parola della prima frase.",
|
|
80
|
+
'split.words.cannotSplitAfterLast': "La divisione non può essere dopo l'ultima parola; la seconda frase deve contenere almeno una parola.",
|
|
81
|
+
'split.preview.title': 'Anteprima',
|
|
82
|
+
'split.preview.description': 'Conferma le due frasi risultanti e i loro attributi a livello di parola (i morfemi non sono mostrati qui).',
|
|
83
|
+
'split.translations.title': 'Traduzioni',
|
|
84
|
+
'split.translations.description': 'Rivedi o modifica le traduzioni. Gli stessi campi si applicano a entrambe le nuove frasi finché non le salvi per ogni lingua; dopo la divisione, ogni frase può essere modificata separatamente.',
|
|
85
|
+
'split.comments.title': 'Commenti',
|
|
86
|
+
'split.comments.description': 'Rivedi i commenti per le frasi o le loro parole. I commenti collegati alle frasi possono essere spostati alla nuova frase, mentre i commenti collegati alle parole saranno divisi in base alle parole.',
|
|
87
|
+
'split.comments.sentenceLevel': 'Commenti alla frase',
|
|
88
|
+
'split.comments.wordLevel': 'Commenti alla parola',
|
|
89
|
+
'split.comments.wordMissing': '—',
|
|
90
|
+
'split.comments.empty': 'Nessun commento per questa frase.',
|
|
91
|
+
'split.comments.disposition.first': 'Lascia nella prima frase',
|
|
92
|
+
'split.comments.disposition.moveSecond': 'Sposta nella seconda frase',
|
|
93
|
+
'split.comments.disposition.duplicateSecond': 'Duplica nella seconda frase',
|
|
94
|
+
'split.comments.edited': 'modificato',
|
|
95
|
+
'split.audio.title': 'Audio',
|
|
96
|
+
'split.audio.description': 'Segna la posizione nell\'audio in cui deve essere diviso nelle due frasi. Questa azione non può essere annullata. Se non vuoi dividere l\'audio, fai clic su "Avanti".',
|
|
97
|
+
'split.audio.empty': 'Questa frase non ha audio associato.',
|
|
98
|
+
'split.audio.cutPoint': 'Punto di taglio',
|
|
99
|
+
'split.audio.play': 'Riproduci',
|
|
100
|
+
'split.audio.pause': 'Pausa',
|
|
101
|
+
'split.button.back': 'Indietro',
|
|
102
|
+
'split.button.disabledTooFewWords': 'Sono necessarie almeno due parole per dividere una frase.',
|
|
103
|
+
'split.button.next': 'Avanti',
|
|
104
|
+
'split.button.finish': 'Fine',
|
|
105
|
+
'split.button.skip': 'Salta',
|
|
106
|
+
},
|
|
107
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
.sentence-split-modal {
|
|
2
|
+
top: 45% !important;
|
|
3
|
+
max-width: 70vw !important;
|
|
4
|
+
width: 70vw !important;
|
|
5
|
+
height: 80vh;
|
|
6
|
+
|
|
7
|
+
&.modal-container {
|
|
8
|
+
@media (max-width: 1366px) and (max-height: 768px) {
|
|
9
|
+
top: 50% !important;
|
|
10
|
+
transform: translate(-50%, -50%) !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> .body {
|
|
15
|
+
padding: 0;
|
|
16
|
+
display: flex;
|
|
17
|
+
height: 100%;
|
|
18
|
+
min-height: 0;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
|
|
21
|
+
.steps-navigation {
|
|
22
|
+
width: 16vw;
|
|
23
|
+
padding: 0;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
background-color: var(--background-default);
|
|
27
|
+
border-right: 1px solid var(--border-subtle-1);
|
|
28
|
+
height: 100%;
|
|
29
|
+
max-height: 100%;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
|
|
33
|
+
.step-item {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: var(--spacing-100);
|
|
37
|
+
padding: 8px 24px 8px 32px;
|
|
38
|
+
height: 48px;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
|
|
41
|
+
.step-label {
|
|
42
|
+
@include label-medium-1;
|
|
43
|
+
color: var(--text-primary);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.active {
|
|
47
|
+
background-color: var(--layer-field-active);
|
|
48
|
+
|
|
49
|
+
.step-label {
|
|
50
|
+
@include label-medium-2;
|
|
51
|
+
color: var(--text-on-color-accent);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.steps-content {
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
width: 100%;
|
|
62
|
+
min-height: 0;
|
|
63
|
+
|
|
64
|
+
.sentence-split-body {
|
|
65
|
+
flex: 1;
|
|
66
|
+
min-height: 0;
|
|
67
|
+
overflow-y: auto;
|
|
68
|
+
|
|
69
|
+
.step-content {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
min-height: 0;
|
|
73
|
+
|
|
74
|
+
> .header {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: var(--spacing-100);
|
|
78
|
+
padding: 24px 24px 16px 24px;
|
|
79
|
+
|
|
80
|
+
.title {
|
|
81
|
+
@include label-large-2;
|
|
82
|
+
color: var(--text-primary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.subtitle {
|
|
86
|
+
@include label-medium-1;
|
|
87
|
+
color: var(--text-secondary);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
> .step-body {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
gap: 16px;
|
|
95
|
+
padding: 0 24px 24px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.sentence-split-box {
|
|
100
|
+
border: 1px solid var(--border-subtle-1);
|
|
101
|
+
border-radius: var(--radius-200);
|
|
102
|
+
padding: 8px 16px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sentence-split-pair {
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: 1fr 1fr;
|
|
108
|
+
gap: 16px;
|
|
109
|
+
margin-top: 24px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.steps-footer {
|
|
114
|
+
display: flex;
|
|
115
|
+
justify-content: flex-end;
|
|
116
|
+
padding: var(--spacing-200) var(--spacing-300);
|
|
117
|
+
border-top: 1px solid var(--border-subtle-1);
|
|
118
|
+
margin-top: auto;
|
|
119
|
+
gap: 16px;
|
|
120
|
+
flex-shrink: 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (max-width: 1366px) {
|
|
127
|
+
.sentence-split-modal {
|
|
128
|
+
max-width: 90vw !important;
|
|
129
|
+
width: 90vw !important;
|
|
130
|
+
height: 90vh !important;
|
|
131
|
+
top: 50% !important;
|
|
132
|
+
|
|
133
|
+
> .body {
|
|
134
|
+
.steps-navigation {
|
|
135
|
+
width: 18vw;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (max-width: 768px) {
|
|
142
|
+
.sentence-split-modal {
|
|
143
|
+
height: 90vh !important;
|
|
144
|
+
top: 50% !important;
|
|
145
|
+
|
|
146
|
+
> .body {
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
|
|
149
|
+
.steps-navigation {
|
|
150
|
+
display: flex;
|
|
151
|
+
width: 100%;
|
|
152
|
+
flex-direction: row;
|
|
153
|
+
border-right: none;
|
|
154
|
+
height: 100px;
|
|
155
|
+
|
|
156
|
+
> .step-item {
|
|
157
|
+
display: block;
|
|
158
|
+
padding: 8px 16px 0px;
|
|
159
|
+
min-width: 140px;
|
|
160
|
+
height: 90%;
|
|
161
|
+
|
|
162
|
+
> .step-label {
|
|
163
|
+
margin-top: 8px;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.steps-content {
|
|
169
|
+
height: 100%;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Comment } from '../../Comments/types/Comment';
|
|
2
|
+
export interface SentenceSplitRequest {
|
|
3
|
+
uid: string;
|
|
4
|
+
token: number;
|
|
5
|
+
translationsFirst?: Record<string, string>;
|
|
6
|
+
translationsSecond?: Record<string, string>;
|
|
7
|
+
comments?: Record<string, string>;
|
|
8
|
+
soundSplit?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SentenceSplitComment {
|
|
11
|
+
id: string;
|
|
12
|
+
action: SentenceSplitCommentAction;
|
|
13
|
+
}
|
|
14
|
+
export declare const SENTENCE_SPLIT_COMMENT_ACTIONS: readonly ["first", "second", "duplicate"];
|
|
15
|
+
export type SentenceSplitCommentAction = (typeof SENTENCE_SPLIT_COMMENT_ACTIONS)[number];
|
|
16
|
+
export declare function isSentenceSplitCommentAction(value: string): value is SentenceSplitCommentAction;
|
|
17
|
+
export declare const emptySentenceSplitRequest: SentenceSplitRequest;
|
|
18
|
+
export type SplitComment = Comment & {
|
|
19
|
+
action: SentenceSplitCommentAction;
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const SENTENCE_SPLIT_COMMENT_ACTIONS = [
|
|
2
|
+
'first',
|
|
3
|
+
'second',
|
|
4
|
+
'duplicate',
|
|
5
|
+
];
|
|
6
|
+
export function isSentenceSplitCommentAction(value) {
|
|
7
|
+
return SENTENCE_SPLIT_COMMENT_ACTIONS.includes(value);
|
|
8
|
+
}
|
|
9
|
+
export const emptySentenceSplitRequest = {
|
|
10
|
+
uid: '',
|
|
11
|
+
token: 0,
|
|
12
|
+
translationsFirst: {},
|
|
13
|
+
translationsSecond: {},
|
|
14
|
+
comments: {},
|
|
15
|
+
soundSplit: 0,
|
|
16
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import EditionTierUtils from '
|
|
4
|
-
import SentenceUtils from '
|
|
3
|
+
import EditionTierUtils from '../../functions/EditionTierUtils';
|
|
4
|
+
import SentenceUtils from '../../functions/SentenceUtils';
|
|
5
5
|
import './style.scss';
|
|
6
6
|
export default function SentenceEditionTiers({ tokens, displayOriginal, }) {
|
|
7
7
|
const { t } = useTranslation('sentence');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import SentenceUtils from '
|
|
3
|
+
import SentenceUtils from '../../functions/SentenceUtils';
|
|
4
4
|
export default function SentenceMorphemeTags({ tokens }) {
|
|
5
5
|
const { t } = useTranslation('sentence');
|
|
6
6
|
const { skipToken } = SentenceUtils;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Parameter } from '
|
|
2
|
-
import { Struct } from '
|
|
1
|
+
import { Parameter } from '../../configs/types/Parameter';
|
|
2
|
+
import { Struct } from '../../configs/types/Struct';
|
|
3
3
|
import './style.scss';
|
|
4
4
|
type Props = {
|
|
5
5
|
struct: Struct;
|