tycho-components 0.28.10 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/configs/Localization.d.ts +2 -2
  2. package/dist/configs/Localization.js +21 -39
  3. package/dist/configs/index.d.ts +2 -0
  4. package/dist/configs/index.js +1 -0
  5. package/dist/configs/types/Document.d.ts +3 -3
  6. package/dist/configs/types/Document.js +4 -4
  7. package/dist/features/index.d.ts +15 -32
  8. package/dist/features/index.js +11 -21
  9. package/package.json +3 -3
  10. package/dist/features/DocumentDrawer/Actions/Actions.d.ts +0 -17
  11. package/dist/features/DocumentDrawer/Actions/Actions.js +0 -121
  12. package/dist/features/DocumentDrawer/Actions/PageRemoveSentences.d.ts +0 -7
  13. package/dist/features/DocumentDrawer/Actions/PageRemoveSentences.js +0 -23
  14. package/dist/features/DocumentDrawer/Actions/index.d.ts +0 -2
  15. package/dist/features/DocumentDrawer/Actions/index.js +0 -2
  16. package/dist/features/DocumentDrawer/Actions/style.scss +0 -0
  17. package/dist/features/DocumentDrawer/AutomaticParser/AutomaticParser.d.ts +0 -8
  18. package/dist/features/DocumentDrawer/AutomaticParser/AutomaticParser.js +0 -96
  19. package/dist/features/DocumentDrawer/AutomaticParser/index.d.ts +0 -2
  20. package/dist/features/DocumentDrawer/AutomaticParser/index.js +0 -2
  21. package/dist/features/DocumentDrawer/AutomaticParser/style.scss +0 -10
  22. package/dist/features/DocumentDrawer/DocumentDrawer.d.ts +0 -19
  23. package/dist/features/DocumentDrawer/DocumentDrawer.js +0 -102
  24. package/dist/features/DocumentDrawer/DocumentEdit/DocumentEdit.d.ts +0 -35
  25. package/dist/features/DocumentDrawer/DocumentEdit/DocumentEdit.js +0 -207
  26. package/dist/features/DocumentDrawer/DocumentEdit/index.d.ts +0 -2
  27. package/dist/features/DocumentDrawer/DocumentEdit/index.js +0 -1
  28. package/dist/features/DocumentDrawer/DocumentExport/DocumentExport.d.ts +0 -7
  29. package/dist/features/DocumentDrawer/DocumentExport/DocumentExport.js +0 -83
  30. package/dist/features/DocumentDrawer/DocumentExport/ExportInvalidSentences.d.ts +0 -7
  31. package/dist/features/DocumentDrawer/DocumentExport/ExportInvalidSentences.js +0 -12
  32. package/dist/features/DocumentDrawer/DocumentExport/ExportTxtTierModal.d.ts +0 -8
  33. package/dist/features/DocumentDrawer/DocumentExport/ExportTxtTierModal.js +0 -14
  34. package/dist/features/DocumentDrawer/DocumentExport/index.d.ts +0 -2
  35. package/dist/features/DocumentDrawer/DocumentExport/index.js +0 -2
  36. package/dist/features/DocumentDrawer/DocumentExport/style.scss +0 -49
  37. package/dist/features/DocumentDrawer/DocumentLexicon/DocumentLexicon.d.ts +0 -7
  38. package/dist/features/DocumentDrawer/DocumentLexicon/DocumentLexicon.js +0 -22
  39. package/dist/features/DocumentDrawer/DocumentLexicon/index.d.ts +0 -2
  40. package/dist/features/DocumentDrawer/DocumentLexicon/index.js +0 -2
  41. package/dist/features/DocumentDrawer/DocumentLexicon/style.scss +0 -38
  42. package/dist/features/DocumentDrawer/DocumentRemove/DocumentRemove.d.ts +0 -12
  43. package/dist/features/DocumentDrawer/DocumentRemove/DocumentRemove.js +0 -28
  44. package/dist/features/DocumentDrawer/DocumentRemove/index.d.ts +0 -2
  45. package/dist/features/DocumentDrawer/DocumentRemove/index.js +0 -2
  46. package/dist/features/DocumentDrawer/DocumentRemove/style.scss +0 -0
  47. package/dist/features/DocumentDrawer/Github/Github.d.ts +0 -8
  48. package/dist/features/DocumentDrawer/Github/Github.js +0 -11
  49. package/dist/features/DocumentDrawer/Github/GithubCommit.d.ts +0 -8
  50. package/dist/features/DocumentDrawer/Github/GithubCommit.js +0 -86
  51. package/dist/features/DocumentDrawer/Github/index.d.ts +0 -2
  52. package/dist/features/DocumentDrawer/Github/index.js +0 -2
  53. package/dist/features/DocumentDrawer/Github/style.scss +0 -31
  54. package/dist/features/DocumentDrawer/ImageGallery/GalleryImage.d.ts +0 -8
  55. package/dist/features/DocumentDrawer/ImageGallery/GalleryImage.js +0 -5
  56. package/dist/features/DocumentDrawer/ImageGallery/GalleryRemoval.d.ts +0 -9
  57. package/dist/features/DocumentDrawer/ImageGallery/GalleryRemoval.js +0 -14
  58. package/dist/features/DocumentDrawer/ImageGallery/ImageGallery.d.ts +0 -9
  59. package/dist/features/DocumentDrawer/ImageGallery/ImageGallery.js +0 -45
  60. package/dist/features/DocumentDrawer/ImageGallery/index.d.ts +0 -2
  61. package/dist/features/DocumentDrawer/ImageGallery/index.js +0 -2
  62. package/dist/features/DocumentDrawer/ImageGallery/style.scss +0 -41
  63. package/dist/features/DocumentDrawer/Inconsistency/Inconsistency.d.ts +0 -8
  64. package/dist/features/DocumentDrawer/Inconsistency/Inconsistency.js +0 -18
  65. package/dist/features/DocumentDrawer/Inconsistency/InconsistencyActions.d.ts +0 -7
  66. package/dist/features/DocumentDrawer/Inconsistency/InconsistencyActions.js +0 -77
  67. package/dist/features/DocumentDrawer/Inconsistency/InconsistencyResponse.d.ts +0 -31
  68. package/dist/features/DocumentDrawer/Inconsistency/InconsistencyResponse.js +0 -39
  69. package/dist/features/DocumentDrawer/Inconsistency/InconsistencyService.d.ts +0 -6
  70. package/dist/features/DocumentDrawer/Inconsistency/InconsistencyService.js +0 -8
  71. package/dist/features/DocumentDrawer/Inconsistency/style.scss +0 -64
  72. package/dist/features/DocumentDrawer/Info/Info.d.ts +0 -10
  73. package/dist/features/DocumentDrawer/Info/Info.js +0 -16
  74. package/dist/features/DocumentDrawer/Info/index.d.ts +0 -2
  75. package/dist/features/DocumentDrawer/Info/index.js +0 -2
  76. package/dist/features/DocumentDrawer/Info/style.scss +0 -24
  77. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/DocumentMetadata.d.ts +0 -8
  78. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/DocumentMetadata.js +0 -60
  79. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/index.d.ts +0 -2
  80. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/index.js +0 -2
  81. package/dist/features/DocumentDrawer/Metadata/DocumentMetadata/style.scss +0 -7
  82. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/DocumentMetadataEdit.d.ts +0 -11
  83. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/DocumentMetadataEdit.js +0 -195
  84. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/index.d.ts +0 -2
  85. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/index.js +0 -2
  86. package/dist/features/DocumentDrawer/Metadata/DocumentMetadataEdit/style.scss +0 -58
  87. package/dist/features/DocumentDrawer/PageStatusComponent/PageStatusComponent.d.ts +0 -9
  88. package/dist/features/DocumentDrawer/PageStatusComponent/PageStatusComponent.js +0 -30
  89. package/dist/features/DocumentDrawer/PageStatusComponent/index.d.ts +0 -2
  90. package/dist/features/DocumentDrawer/PageStatusComponent/index.js +0 -2
  91. package/dist/features/DocumentDrawer/PageStatusComponent/style.scss +0 -19
  92. package/dist/features/DocumentDrawer/Pages/BoxRemoval.d.ts +0 -10
  93. package/dist/features/DocumentDrawer/Pages/BoxRemoval.js +0 -14
  94. package/dist/features/DocumentDrawer/Pages/Boxes.d.ts +0 -10
  95. package/dist/features/DocumentDrawer/Pages/Boxes.js +0 -65
  96. package/dist/features/DocumentDrawer/Pages/PageRemoval.d.ts +0 -10
  97. package/dist/features/DocumentDrawer/Pages/PageRemoval.js +0 -15
  98. package/dist/features/DocumentDrawer/Pages/Pages.d.ts +0 -10
  99. package/dist/features/DocumentDrawer/Pages/Pages.js +0 -67
  100. package/dist/features/DocumentDrawer/Pages/style.scss +0 -48
  101. package/dist/features/DocumentDrawer/deps.d.ts +0 -28
  102. package/dist/features/DocumentDrawer/deps.js +0 -20
  103. package/dist/features/DocumentDrawer/functions/FileUtils.d.ts +0 -4
  104. package/dist/features/DocumentDrawer/functions/FileUtils.js +0 -8
  105. package/dist/features/DocumentDrawer/functions/MetadataUtils.d.ts +0 -41
  106. package/dist/features/DocumentDrawer/functions/MetadataUtils.js +0 -192
  107. package/dist/features/DocumentDrawer/index.d.ts +0 -7
  108. package/dist/features/DocumentDrawer/index.js +0 -4
  109. package/dist/features/DocumentDrawer/localization/ActionsTexts.d.ts +0 -119
  110. package/dist/features/DocumentDrawer/localization/ActionsTexts.js +0 -119
  111. package/dist/features/DocumentDrawer/localization/DocumentTexts.d.ts +0 -137
  112. package/dist/features/DocumentDrawer/localization/DocumentTexts.js +0 -137
  113. package/dist/features/DocumentDrawer/localization/ExportTexts.d.ts +0 -74
  114. package/dist/features/DocumentDrawer/localization/ExportTexts.js +0 -74
  115. package/dist/features/DocumentDrawer/localization/GithubTexts.d.ts +0 -35
  116. package/dist/features/DocumentDrawer/localization/GithubTexts.js +0 -35
  117. package/dist/features/DocumentDrawer/localization/InconsistencyTexts.d.ts +0 -101
  118. package/dist/features/DocumentDrawer/localization/InconsistencyTexts.js +0 -101
  119. package/dist/features/DocumentDrawer/localization/PageTexts.d.ts +0 -45
  120. package/dist/features/DocumentDrawer/localization/PageTexts.js +0 -45
  121. package/dist/features/DocumentDrawer/localization/ParserTexts.d.ts +0 -30
  122. package/dist/features/DocumentDrawer/localization/ParserTexts.js +0 -30
  123. package/dist/features/DocumentDrawer/services/AutomaticParserService.d.ts +0 -8
  124. package/dist/features/DocumentDrawer/services/AutomaticParserService.js +0 -9
  125. package/dist/features/DocumentDrawer/services/BoundingBoxService.d.ts +0 -11
  126. package/dist/features/DocumentDrawer/services/BoundingBoxService.js +0 -20
  127. package/dist/features/DocumentDrawer/services/DocumentService.d.ts +0 -13
  128. package/dist/features/DocumentDrawer/services/DocumentService.js +0 -20
  129. package/dist/features/DocumentDrawer/services/ExportService.d.ts +0 -11
  130. package/dist/features/DocumentDrawer/services/ExportService.js +0 -22
  131. package/dist/features/DocumentDrawer/services/GithubService.d.ts +0 -8
  132. package/dist/features/DocumentDrawer/services/GithubService.js +0 -12
  133. package/dist/features/DocumentDrawer/services/ImageService.d.ts +0 -8
  134. package/dist/features/DocumentDrawer/services/ImageService.js +0 -12
  135. package/dist/features/DocumentDrawer/services/LexiconService.d.ts +0 -7
  136. package/dist/features/DocumentDrawer/services/LexiconService.js +0 -6
  137. package/dist/features/DocumentDrawer/services/MetadataService.d.ts +0 -11
  138. package/dist/features/DocumentDrawer/services/MetadataService.js +0 -18
  139. package/dist/features/DocumentDrawer/services/PageService.d.ts +0 -13
  140. package/dist/features/DocumentDrawer/services/PageService.js +0 -19
  141. package/dist/features/DocumentDrawer/services/SentenceService.d.ts +0 -6
  142. package/dist/features/DocumentDrawer/services/SentenceService.js +0 -6
  143. package/dist/features/DocumentDrawer/style.scss +0 -192
  144. package/dist/features/DocumentDrawer/types/BoundingBox.d.ts +0 -8
  145. package/dist/features/DocumentDrawer/types/BoundingBox.js +0 -1
  146. package/dist/features/DocumentDrawer/types/CatalogSearchFilter.d.ts +0 -15
  147. package/dist/features/DocumentDrawer/types/CatalogSearchFilter.js +0 -16
  148. package/dist/features/DocumentDrawer/types/Category.d.ts +0 -16
  149. package/dist/features/DocumentDrawer/types/Category.js +0 -5
  150. package/dist/features/DocumentDrawer/types/DocumentDrawerActionId.d.ts +0 -3
  151. package/dist/features/DocumentDrawer/types/DocumentDrawerActionId.js +0 -14
  152. package/dist/features/DocumentDrawer/types/DocumentStatus.d.ts +0 -7
  153. package/dist/features/DocumentDrawer/types/DocumentStatus.js +0 -6
  154. package/dist/features/DocumentDrawer/types/DocumentUpdateRequest.d.ts +0 -13
  155. package/dist/features/DocumentDrawer/types/DocumentUpdateRequest.js +0 -1
  156. package/dist/features/DocumentDrawer/types/Export.d.ts +0 -30
  157. package/dist/features/DocumentDrawer/types/Export.js +0 -46
  158. package/dist/features/DocumentDrawer/types/Lexicon.d.ts +0 -6
  159. package/dist/features/DocumentDrawer/types/Lexicon.js +0 -1
  160. package/dist/features/DocumentDrawer/types/LexiconResponse.d.ts +0 -6
  161. package/dist/features/DocumentDrawer/types/LexiconResponse.js +0 -1
  162. package/dist/features/DocumentDrawer/types/Metadata.d.ts +0 -22
  163. package/dist/features/DocumentDrawer/types/Metadata.js +0 -8
  164. package/dist/features/DocumentDrawer/types/Page.d.ts +0 -10
  165. package/dist/features/DocumentDrawer/types/Page.js +0 -1
  166. package/dist/features/DocumentDrawer/types/PageStatus.d.ts +0 -9
  167. package/dist/features/DocumentDrawer/types/PageStatus.js +0 -8
  168. package/dist/features/DocumentDrawer/types/Parser.d.ts +0 -18
  169. package/dist/features/DocumentDrawer/types/Parser.js +0 -21
  170. package/dist/features/DocumentDrawer/types/Query.d.ts +0 -6
  171. package/dist/features/DocumentDrawer/types/Query.js +0 -1
  172. package/dist/features/DocumentDrawer/types/Sentence.d.ts +0 -4
  173. package/dist/features/DocumentDrawer/types/Sentence.js +0 -1
  174. package/dist/features/Participants/ParticipantCreate/ParticipantCreate.d.ts +0 -8
  175. package/dist/features/Participants/ParticipantCreate/ParticipantCreate.js +0 -44
  176. package/dist/features/Participants/ParticipantCreate/index.d.ts +0 -2
  177. package/dist/features/Participants/ParticipantCreate/index.js +0 -2
  178. package/dist/features/Participants/ParticipantRemove/ParticipantRemove.d.ts +0 -11
  179. package/dist/features/Participants/ParticipantRemove/ParticipantRemove.js +0 -39
  180. package/dist/features/Participants/ParticipantRemove/index.d.ts +0 -2
  181. package/dist/features/Participants/ParticipantRemove/index.js +0 -2
  182. package/dist/features/Participants/ParticipantRemove/style.scss +0 -15
  183. package/dist/features/Participants/ParticipantService.d.ts +0 -10
  184. package/dist/features/Participants/ParticipantService.js +0 -19
  185. package/dist/features/Participants/Participants.d.ts +0 -10
  186. package/dist/features/Participants/Participants.js +0 -134
  187. package/dist/features/Participants/index.d.ts +0 -2
  188. package/dist/features/Participants/index.js +0 -2
  189. package/dist/features/Participants/style.scss +0 -51
  190. package/dist/features/SentenceSplit/SentenceSplit.d.ts +0 -33
  191. package/dist/features/SentenceSplit/SentenceSplit.js +0 -191
  192. package/dist/features/SentenceSplit/SentenceSplitAudio/SentenceSplitAudioStep.d.ts +0 -9
  193. package/dist/features/SentenceSplit/SentenceSplitAudio/SentenceSplitAudioStep.js +0 -38
  194. package/dist/features/SentenceSplit/SentenceSplitAudio/index.d.ts +0 -2
  195. package/dist/features/SentenceSplit/SentenceSplitAudio/index.js +0 -2
  196. package/dist/features/SentenceSplit/SentenceSplitAudio/style.scss +0 -29
  197. package/dist/features/SentenceSplit/SentenceSplitChoose/SentenceSplitChoose.d.ts +0 -10
  198. package/dist/features/SentenceSplit/SentenceSplitChoose/SentenceSplitChoose.js +0 -23
  199. package/dist/features/SentenceSplit/SentenceSplitChoose/index.d.ts +0 -2
  200. package/dist/features/SentenceSplit/SentenceSplitChoose/index.js +0 -2
  201. package/dist/features/SentenceSplit/SentenceSplitChoose/style.scss +0 -25
  202. package/dist/features/SentenceSplit/SentenceSplitCommentUtils.d.ts +0 -21
  203. package/dist/features/SentenceSplit/SentenceSplitCommentUtils.js +0 -77
  204. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentBlock.d.ts +0 -7
  205. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentBlock.js +0 -6
  206. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitComments.d.ts +0 -8
  207. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitComments.js +0 -37
  208. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsStep.d.ts +0 -11
  209. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsStep.js +0 -72
  210. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsWords.d.ts +0 -9
  211. package/dist/features/SentenceSplit/SentenceSplitComments/SentenceSplitCommentsWords.js +0 -15
  212. package/dist/features/SentenceSplit/SentenceSplitComments/index.d.ts +0 -2
  213. package/dist/features/SentenceSplit/SentenceSplitComments/index.js +0 -2
  214. package/dist/features/SentenceSplit/SentenceSplitComments/style.scss +0 -126
  215. package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreview.d.ts +0 -10
  216. package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreview.js +0 -10
  217. package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreviewStep.d.ts +0 -11
  218. package/dist/features/SentenceSplit/SentenceSplitPreview/SentenceSplitPreviewStep.js +0 -24
  219. package/dist/features/SentenceSplit/SentenceSplitPreview/index.d.ts +0 -2
  220. package/dist/features/SentenceSplit/SentenceSplitPreview/index.js +0 -2
  221. package/dist/features/SentenceSplit/SentenceSplitPreview/style.scss +0 -24
  222. package/dist/features/SentenceSplit/SentenceSplitService.d.ts +0 -13
  223. package/dist/features/SentenceSplit/SentenceSplitService.js +0 -13
  224. package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslations.d.ts +0 -12
  225. package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslations.js +0 -15
  226. package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslationsStep.d.ts +0 -10
  227. package/dist/features/SentenceSplit/SentenceSplitTranslations/SentenceSplitTranslationsStep.js +0 -8
  228. package/dist/features/SentenceSplit/SentenceSplitTranslations/index.d.ts +0 -2
  229. package/dist/features/SentenceSplit/SentenceSplitTranslations/index.js +0 -2
  230. package/dist/features/SentenceSplit/SentenceSplitTranslations/style.scss +0 -23
  231. package/dist/features/SentenceSplit/SentenceSplitUtils.d.ts +0 -6
  232. package/dist/features/SentenceSplit/SentenceSplitUtils.js +0 -17
  233. package/dist/features/SentenceSplit/index.d.ts +0 -2
  234. package/dist/features/SentenceSplit/index.js +0 -2
  235. package/dist/features/SentenceSplit/localization/SentenceSplitTexts.d.ts +0 -107
  236. package/dist/features/SentenceSplit/localization/SentenceSplitTexts.js +0 -107
  237. package/dist/features/SentenceSplit/style.scss +0 -173
  238. package/dist/features/SentenceSplit/types/Language.d.ts +0 -6
  239. package/dist/features/SentenceSplit/types/Language.js +0 -1
  240. package/dist/features/SentenceSplit/types/SentenceSplitRequest.d.ts +0 -20
  241. package/dist/features/SentenceSplit/types/SentenceSplitRequest.js +0 -16
  242. /package/dist/{features/Participants → configs}/types/Participant.d.ts +0 -0
  243. /package/dist/{features/Participants → configs}/types/Participant.js +0 -0
@@ -1,102 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import documenService from './services/DocumentService';
3
- import { Drawer, Tab, Tabs } from '@mui/material';
4
- import { useEffect, useMemo, useState } from 'react';
5
- import { useTranslation } from 'react-i18next';
6
- import { Participants, useCorpusUtils } from './deps';
7
- import { Icon, IconButton } from 'tycho-storybook';
8
- import DocumentMetadata from './Metadata/DocumentMetadata';
9
- import Actions from './Actions';
10
- import DocumentExport from './DocumentExport';
11
- import DocumentLexicon from './DocumentLexicon';
12
- import Github from './Github';
13
- import ImageGallery from './ImageGallery';
14
- import Info from './Info';
15
- import Boxes from './Pages/Boxes';
16
- import Pages from './Pages/Pages';
17
- import './style.scss';
18
- export default function DocumentDrawer({ uid, setOpenFile, setFilter, handleChange, handleClickDocument, useGrid, categoriesHierarchy, pageUid, pageOrder, onPageReload, hiddenActions, }) {
19
- const { t } = useTranslation('document');
20
- const { getCorpus, hasParameter } = useCorpusUtils();
21
- const [document, setDocument] = useState();
22
- const [activeKey, setActiveKey] = useState('actions');
23
- const fileItems = useMemo(() => {
24
- if (!document)
25
- return [];
26
- if (document.github) {
27
- return [...baseFileItems, githubFileItem];
28
- }
29
- return baseFileItems;
30
- }, [document]);
31
- const handleTabChange = (_event, newValue) => {
32
- setActiveKey(newValue);
33
- };
34
- const renderPages = () => {
35
- if (!document)
36
- return null;
37
- if (document.defaultTool && document.defaultTool === 'DESIGN')
38
- return (_jsx(Boxes, { document: document, setDocument: setDocument, setOpenFile: setOpenFile, handleChange: handleChange }));
39
- return (_jsx(Pages, { document: document, setDocument: setDocument, setOpenFile: setOpenFile, handleChange: handleChange }));
40
- };
41
- useEffect(() => {
42
- documenService.get(uid).then((response) => {
43
- setDocument(response.data);
44
- });
45
- }, [uid]);
46
- if (!document)
47
- return null;
48
- return (_jsx(Drawer, { anchor: "left", open: true, onClose: () => setOpenFile(false), className: "offcanvas-file", children: _jsxs("div", { className: "drawer-container", children: [_jsxs("div", { className: "drawer-header", children: [_jsxs("div", { className: "header-content", children: [_jsx("div", { className: "corpus", children: getCorpus().name }), _jsx("div", { className: "document", children: document.name })] }), _jsx(IconButton, { name: "close", size: "medium", mode: "ghost", iconSize: "medium", onClick: () => setOpenFile(false) })] }), _jsxs("div", { className: "drawer-body", children: [_jsx("div", { className: "tabs-col", children: _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) => {
49
- handleChange(updated);
50
- setDocument(updated);
51
- } })), activeKey === 'metadata' && (_jsx(DocumentMetadata, { document: document, onDocumentChange: (updated) => {
52
- handleChange(updated);
53
- setDocument(updated);
54
- } })), activeKey === 'lexicon' && _jsx(DocumentLexicon, { document: document }), activeKey === 'export' && _jsx(DocumentExport, { doc: document }), activeKey === 'actions' && (_jsx(Actions, { document: document, setOpenFile: setOpenFile, setFilter: setFilter, handleClickDocument: handleClickDocument, useGrid: useGrid, pageUid: pageUid, pageOrder: pageOrder, onPageReload: onPageReload, hiddenActions: hiddenActions })), activeKey === 'pages' && renderPages(), activeKey === 'gallery' && (_jsx(ImageGallery, { document: document, setDocument: setDocument, handleChange: handleChange })), activeKey === 'participants' && (_jsx(Participants, { document: document.uid, participants: document.participants || [], onChange: (r) => setDocument({ ...document, participants: r }), useChat: hasParameter(getCorpus(), 'useParticipantChat') })), activeKey === 'github' && (_jsx(Github, { document: document, setOpenFile: setOpenFile }))] })] })] }) }));
55
- }
56
- const baseFileItems = [
57
- {
58
- eventKey: 'actions',
59
- icon: 'manufacturing',
60
- title: 'menu.label.actions',
61
- },
62
- {
63
- eventKey: 'home',
64
- icon: 'info',
65
- title: 'menu.label.home',
66
- },
67
- {
68
- eventKey: 'pages',
69
- icon: 'article',
70
- title: 'menu.label.pages',
71
- },
72
- {
73
- eventKey: 'gallery',
74
- icon: 'photo_library',
75
- title: 'menu.label.images',
76
- },
77
- {
78
- eventKey: 'metadata',
79
- icon: 'bookmark',
80
- title: 'menu.label.metadata',
81
- },
82
- {
83
- eventKey: 'lexicon',
84
- icon: 'sort_by_alpha',
85
- title: 'menu.label.lexicon',
86
- },
87
- {
88
- eventKey: 'export',
89
- icon: 'file_export',
90
- title: 'menu.label.export',
91
- },
92
- {
93
- eventKey: 'participants',
94
- icon: 'group',
95
- title: 'menu.label.participants',
96
- },
97
- ];
98
- const githubFileItem = {
99
- eventKey: 'github',
100
- icon: 'code',
101
- title: 'menu.label.github',
102
- };
@@ -1,35 +0,0 @@
1
- import { DocumentStatus } from '../../../configs/types/Document';
2
- import Category from '../types/Category';
3
- import { TFunction } from 'i18next';
4
- import { AppFormField, Document, PlatformTools, yup } from '../deps';
5
- declare const baseFormSchema: yup.ObjectSchema<{
6
- name: string;
7
- translated: string;
8
- author: string;
9
- reference: string;
10
- description: string;
11
- category: string;
12
- status: NonNullable<DocumentStatus | undefined>;
13
- visible: NonNullable<boolean | undefined>;
14
- defaultTool: NonNullable<PlatformTools | undefined>;
15
- }, yup.AnyObject, {
16
- name: undefined;
17
- translated: "";
18
- author: "";
19
- reference: "";
20
- description: "";
21
- category: "";
22
- status: undefined;
23
- visible: undefined;
24
- defaultTool: undefined;
25
- }, "">;
26
- export type DocumentEditFormValues = yup.InferType<typeof baseFormSchema>;
27
- type Props = {
28
- document: Document;
29
- categoriesHierarchy: Category[];
30
- onClose: () => void;
31
- onSave: (document: Document) => void;
32
- };
33
- export default function DocumentEdit({ document, categoriesHierarchy, onClose, onSave, }: Props): import("react/jsx-runtime").JSX.Element;
34
- export declare const getDocumentFields: (categories: Category[], t: TFunction) => AppFormField[];
35
- export {};
@@ -1,207 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import documentService from '../services/DocumentService';
3
- import { DocumentStatusNames, } from '../../../configs/types/Document';
4
- import { useEffect, useMemo, useState } from 'react';
5
- import { useForm } from 'react-hook-form';
6
- import { Trans, useTranslation } from 'react-i18next';
7
- import { AppForm, AppModal, AppModalConfirm, DateUtils, EDITION_TOOLS, FormUtils, ToolsUtils, UsabilityUtils, useCorpusUtils, useMessageUtils, yupResolver, yup, } from '../deps';
8
- const baseFormSchema = yup.object({
9
- name: yup.string().trim().required(),
10
- translated: yup.string().default(''),
11
- author: yup.string().default(''),
12
- reference: yup.string().default(''),
13
- description: yup.string().default(''),
14
- category: yup.string().default(''),
15
- status: yup
16
- .mixed()
17
- .oneOf(['EDITING', 'EDITED', 'SYNTACTIC', 'COMPLETED'])
18
- .required(),
19
- visible: yup.boolean().required(),
20
- defaultTool: yup.mixed().required(),
21
- });
22
- export default function DocumentEdit({ document, categoriesHierarchy, onClose, onSave, }) {
23
- const { t } = useTranslation(['document', 'actions']);
24
- const { dispatchMessage, dispatchError, dispatchLoading, isLoading } = useMessageUtils();
25
- const { getCorpus, hasParameter } = useCorpusUtils();
26
- const [openToolWarning, setOpenToolWarning] = useState(false);
27
- const [pendingValues, setPendingValues] = useState(null);
28
- const enabledToolNames = useMemo(() => {
29
- const corpus = getCorpus();
30
- if (!corpus)
31
- return [];
32
- const names = EDITION_TOOLS.filter((tool) => hasParameter(corpus, tool.parameter)).map((tool) => tool.name);
33
- if (document.defaultTool && !names.includes(document.defaultTool)) {
34
- return [...names, document.defaultTool];
35
- }
36
- return names;
37
- }, [document.defaultTool, getCorpus, hasParameter]);
38
- const formSchema = useMemo(() => baseFormSchema.shape({
39
- defaultTool: yup
40
- .mixed()
41
- .oneOf(enabledToolNames)
42
- .required(),
43
- }), [enabledToolNames]);
44
- const form = useForm({
45
- resolver: yupResolver(formSchema),
46
- mode: 'onChange',
47
- defaultValues: {
48
- name: document.name ?? '',
49
- translated: document.translated ?? '',
50
- author: document.author ?? '',
51
- reference: document.reference ?? '',
52
- description: document.description ?? '',
53
- category: document.category ?? '',
54
- status: document.status,
55
- visible: document.visible ?? false,
56
- defaultTool: document.defaultTool ?? 'EDICTOR',
57
- },
58
- });
59
- const { formState } = form;
60
- const isBusy = isLoading();
61
- const performUpdate = (values) => {
62
- const payload = { ...values };
63
- const toolChanged = values.defaultTool !== document.defaultTool;
64
- dispatchLoading(true);
65
- documentService
66
- .update(document.uid, payload)
67
- .then(() => {
68
- dispatchMessage({ key: 'update.success', t });
69
- if (toolChanged) {
70
- return documentService.get(document.uid).then((r) => r.data);
71
- }
72
- return { ...document, ...values };
73
- })
74
- .then((updated) => {
75
- onSave(updated);
76
- onClose();
77
- })
78
- .catch((err) => {
79
- dispatchError({ err, t });
80
- })
81
- .finally(() => {
82
- dispatchLoading(false);
83
- setOpenToolWarning(false);
84
- setPendingValues(null);
85
- });
86
- };
87
- const onSubmit = (values) => {
88
- if (isBusy)
89
- return;
90
- if (document.defaultTool === 'DESIGN' &&
91
- values.defaultTool !== 'DESIGN') {
92
- setPendingValues(values);
93
- setOpenToolWarning(true);
94
- return;
95
- }
96
- performUpdate(values);
97
- };
98
- useEffect(() => {
99
- UsabilityUtils.attachCloseToEscape(onClose);
100
- }, [onClose]);
101
- const defaultToolField = useMemo(() => {
102
- if (enabledToolNames.length === 0)
103
- return undefined;
104
- const options = EDITION_TOOLS.filter((tool) => enabledToolNames.includes(tool.name)).map((tool) => ({
105
- value: tool.name,
106
- label: t(tool.title),
107
- }));
108
- return {
109
- attr: 'defaultTool',
110
- name: t('document.field.defaultTool'),
111
- type: 'select',
112
- required: false,
113
- options,
114
- };
115
- }, [enabledToolNames, t]);
116
- const { mainFields, categoryField } = useMemo(() => {
117
- const all = getDocumentFields(categoriesHierarchy, t);
118
- const hasCategories = (categoriesHierarchy?.length ?? 0) > 0;
119
- const filtered = all.filter((field) => field.attr !== 'id' &&
120
- field.attr !== 'category' &&
121
- field.attr !== 'defaultTool');
122
- const fields = [...filtered];
123
- if (defaultToolField) {
124
- const visibleIdx = fields.findIndex((f) => f.attr === 'visible');
125
- const insertAt = visibleIdx >= 0 ? visibleIdx + 1 : fields.length;
126
- fields.splice(insertAt, 0, defaultToolField);
127
- }
128
- return {
129
- mainFields: fields,
130
- categoryField: hasCategories
131
- ? all.find((field) => field.attr === 'category')
132
- : undefined,
133
- };
134
- }, [categoriesHierarchy, t, defaultToolField]);
135
- return (_jsxs(_Fragment, { children: [_jsx(AppModal, { title: t('document.modal.edit.title'), className: "modal-document-edit", close: onClose, confirm: form.handleSubmit(onSubmit), disableConfirm: !formState.isValid || isBusy, children: _jsxs("div", { style: {
136
- display: 'flex',
137
- flexDirection: 'column',
138
- gap: 16,
139
- }, children: [_jsx(AppForm, { fields: mainFields, form: form, twoColumns: true }), categoryField && (_jsx("div", { className: "document-edit-category-full-width", children: _jsx(AppForm, { fields: [categoryField], form: form }) }))] }) }), openToolWarning && (_jsx(AppModalConfirm, { title: t('modal.title.design', { ns: 'actions' }), subtitle: _jsx(Trans, { t: t, ns: "actions", i18nKey: "modal.description.design", components: { bold: _jsx("b", { className: "bold" }) } }), onClose: () => {
140
- setOpenToolWarning(false);
141
- setPendingValues(null);
142
- }, onConfirm: () => pendingValues && performUpdate(pendingValues) }))] }));
143
- }
144
- export const getDocumentFields = (categories, t) => [
145
- {
146
- attr: 'name',
147
- name: t('document.field.name'),
148
- type: 'text',
149
- required: false,
150
- },
151
- {
152
- attr: 'translated',
153
- name: t('document.field.translated'),
154
- type: 'text',
155
- required: false,
156
- },
157
- {
158
- attr: 'author',
159
- name: t('document.field.author'),
160
- type: 'text',
161
- required: false,
162
- },
163
- {
164
- attr: 'reference',
165
- name: t('document.field.reference'),
166
- type: 'text',
167
- required: false,
168
- },
169
- {
170
- attr: 'category',
171
- name: t('document.field.category'),
172
- type: 'select',
173
- required: false,
174
- options: FormUtils.convertList(categories, 'name', 'uid'),
175
- },
176
- {
177
- attr: 'status',
178
- name: t('document.field.status'),
179
- type: 'select',
180
- required: false,
181
- options: FormUtils.convertEnum(DocumentStatusNames, t),
182
- },
183
- {
184
- attr: 'visible',
185
- name: t('document.field.visible'),
186
- type: 'switch',
187
- required: false,
188
- },
189
- {
190
- attr: 'description',
191
- name: t('document.field.description'),
192
- type: 'textarea',
193
- required: false,
194
- },
195
- {
196
- attr: 'defaultTool',
197
- name: t('document.field.defaultTool'),
198
- type: 'function',
199
- fn: (tool) => t(ToolsUtils.getTitle(tool)),
200
- },
201
- {
202
- attr: 'id',
203
- name: t('document.field.inc'),
204
- type: 'function',
205
- fn: (id) => DateUtils.extractDateFromMongoId(id, true),
206
- },
207
- ];
@@ -1,2 +0,0 @@
1
- export { default } from './DocumentEdit';
2
- export type { DocumentEditFormValues } from './DocumentEdit';
@@ -1 +0,0 @@
1
- export { default } from './DocumentEdit';
@@ -1,7 +0,0 @@
1
- import { Document } from '../deps';
2
- import './style.scss';
3
- type Props = {
4
- doc: Document;
5
- };
6
- export default function DocumentExport({ doc }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,83 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import FileUtils from '../functions/FileUtils';
3
- import outputService from '../services/ExportService';
4
- import { EXPORT_TYPE_DISPLAY, } from '../types/Export';
5
- import { saveAs } from 'file-saver';
6
- import { useState } from 'react';
7
- import { useTranslation } from 'react-i18next';
8
- import { useMessageUtils } from '../deps';
9
- import { Icon } from 'tycho-storybook';
10
- import ExportInvalidSentences from './ExportInvalidSentences';
11
- import ExportTxtTierModal from './ExportTxtTierModal';
12
- import './style.scss';
13
- const timingCheck = 5000;
14
- export default function DocumentExport({ doc }) {
15
- const { t } = useTranslation('export');
16
- const { dispatchLoading, dispatchError, dispatchMessage, isLoading } = useMessageUtils();
17
- const [invalidSentences, setInvalidSentences] = useState();
18
- const [openTxtTierModal, setOpenTxtTierModal] = useState(false);
19
- let intervalCheck = null;
20
- const process = (thisType, tier) => {
21
- if (isLoading())
22
- return;
23
- dispatchLoading(true);
24
- outputService
25
- .execute(doc.uid, thisType, tier)
26
- .then((r) => {
27
- intervalCheck = setInterval(() => check(r.data), timingCheck);
28
- })
29
- .catch((err) => {
30
- dispatchError({ err, t });
31
- dispatchLoading(false);
32
- });
33
- };
34
- const forceZipDownload = (data) => {
35
- window.open(data.url);
36
- };
37
- const check = (uid) => {
38
- outputService
39
- .check(uid)
40
- .then((r) => {
41
- if (!r.data?.completed)
42
- return;
43
- dispatchLoading(false);
44
- dispatchMessage({ key: 'export.process.success', t });
45
- const filename = FileUtils.getFileNameFromURL(r.data.url);
46
- if (r.data.url.endsWith('.zip')) {
47
- forceZipDownload(r.data);
48
- }
49
- else {
50
- saveAs(r.data.url, filename);
51
- }
52
- clearInterval(intervalCheck);
53
- })
54
- .catch((err) => {
55
- dispatchLoading(false);
56
- clearInterval(intervalCheck);
57
- handleError(err);
58
- });
59
- };
60
- const handleExportClick = (type) => {
61
- if (type === 'TEXT') {
62
- setOpenTxtTierModal(true);
63
- return;
64
- }
65
- process(type);
66
- };
67
- const handleTxtTierSelect = (tier) => {
68
- process('TEXT', tier);
69
- };
70
- const handleError = (err) => {
71
- const message = err.response.data.message || err.response.data.error;
72
- if (message === 'psd.invalid.sentences') {
73
- setInvalidSentences(err.response.data.details);
74
- }
75
- else {
76
- dispatchError({
77
- err: message.indexOf('\n') !== -1 ? message.split('\n')[0] : err,
78
- t,
79
- });
80
- }
81
- };
82
- return (_jsxs("div", { className: "document-export-container", children: [_jsx("div", { className: "header", children: _jsx("div", { className: "title", children: t('export.label.title') }) }), _jsx("div", { className: "body", children: EXPORT_TYPE_DISPLAY.filter((t) => t.active).map((item) => (_jsxs("div", { className: "action-line", onClick: () => handleExportClick(item.type), children: [_jsx("div", { className: "action-button", children: _jsx(Icon, { name: item.icon, size: "medium" }) }), _jsxs("div", { className: "action-desc", children: [_jsx("span", { className: "title", children: t(`export.label.${item.type.toLowerCase()}`) }), _jsx("span", { children: t(`export.desc.${item.type.toLowerCase()}`) })] })] }, item.icon))) }), openTxtTierModal && (_jsx(ExportTxtTierModal, { onClose: () => setOpenTxtTierModal(false), onSelect: handleTxtTierSelect })), invalidSentences && invalidSentences.length > 0 && (_jsx(ExportInvalidSentences, { sentences: invalidSentences, onClose: () => setInvalidSentences([]) }))] }));
83
- }
@@ -1,7 +0,0 @@
1
- import './style.scss';
2
- type Props = {
3
- sentences: string[];
4
- onClose: () => void;
5
- };
6
- export default function ExportInvalidSentences({ sentences, onClose }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useTranslation } from 'react-i18next';
3
- import { AppModal } from '../deps';
4
- import './style.scss';
5
- import { Icon } from 'tycho-storybook';
6
- export default function ExportInvalidSentences({ sentences, onClose }) {
7
- const { t } = useTranslation('export');
8
- const handleOpen = (s) => {
9
- window.open(`/revision/tree/${s}`);
10
- };
11
- return (_jsxs(AppModal, { title: t('modal.title.invalid.sentences'), close: onClose, className: "modal-invalid-sentences", hideFooter: true, children: [_jsx("p", { children: t('modal.desc.invalid.sentences') }), sentences.map((s, idx) => (_jsxs("div", { className: "sentence", children: [_jsx("span", { className: "uid", children: s }), _jsx(Icon, { name: "open_in_new", onClick: () => handleOpen(s) })] }, idx.valueOf())))] }));
12
- }
@@ -1,8 +0,0 @@
1
- import { TxtExportTier } from '../types/Export';
2
- import './style.scss';
3
- type Props = {
4
- onClose: () => void;
5
- onSelect: (tier: TxtExportTier) => void;
6
- };
7
- export default function ExportTxtTierModal({ onClose, onSelect }: Props): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { TXT_EXPORT_TIER_OPTIONS } from '../types/Export';
3
- import { useTranslation } from 'react-i18next';
4
- import { AppModal } from '../deps';
5
- import { Button } from 'tycho-storybook';
6
- import './style.scss';
7
- export default function ExportTxtTierModal({ onClose, onSelect }) {
8
- const { t } = useTranslation('export');
9
- const handleSelect = (tier) => {
10
- onSelect(tier);
11
- onClose();
12
- };
13
- return (_jsxs(AppModal, { title: t('modal.title.txt.tier'), close: onClose, className: "modal-txt-tier", hideFooter: true, children: [_jsx("div", { className: "description", children: t('modal.desc.txt.tier') }), _jsx("div", { className: "tier-options", children: TXT_EXPORT_TIER_OPTIONS.map(({ tier, labelKey }) => (_jsx(Button, { text: t(labelKey), mode: "outlined", size: "medium", onClick: () => handleSelect(tier) }, tier))) })] }));
14
- }
@@ -1,2 +0,0 @@
1
- import DocumentExport from './DocumentExport';
2
- export default DocumentExport;
@@ -1,2 +0,0 @@
1
- import DocumentExport from './DocumentExport';
2
- export default DocumentExport;
@@ -1,49 +0,0 @@
1
- .document-export-container {
2
- .body {
3
- height: 90vh;
4
- overflow-y: auto;
5
- }
6
- }
7
-
8
- .modal-txt-tier {
9
- .body {
10
- display: flex;
11
- flex-direction: column;
12
- gap: 32px;
13
-
14
- .description {
15
- margin: 0 auto;
16
- }
17
-
18
- .tier-options {
19
- display: flex;
20
- gap: var(--spacing-200);
21
- justify-content: center;
22
- }
23
- }
24
- }
25
-
26
- .modal-invalid-sentences {
27
- .body {
28
- display: flex;
29
- flex-wrap: wrap;
30
-
31
- > .sentence {
32
- display: flex;
33
- flex: 0 0 50%;
34
- box-sizing: border-box;
35
- align-items: center;
36
- border-bottom: 1px solid var(--border-subtle-2);
37
- padding: 4px 0px;
38
-
39
- .uid {
40
- font-family: 'Courier New', Courier, monospace;
41
- }
42
-
43
- > .ds-icon {
44
- margin-left: 8px;
45
- cursor: pointer;
46
- }
47
- }
48
- }
49
- }
@@ -1,7 +0,0 @@
1
- import { Document } from '../deps';
2
- import './style.scss';
3
- type Props = {
4
- document: Document;
5
- };
6
- export default function DocumentLexicon({ document }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import lexiconService from '../services/LexiconService';
3
- import { useEffect, useState } from 'react';
4
- import { useTranslation } from 'react-i18next';
5
- import { AppPlaceholder, useCorpusUtils } from '../deps';
6
- import './style.scss';
7
- export default function DocumentLexicon({ document }) {
8
- const { t } = useTranslation('document');
9
- const { getCorpus, hasParameter } = useCorpusUtils();
10
- const [editions, setEditions] = useState();
11
- const getAttributes = (edition) => {
12
- return Object.entries(edition.ops)
13
- .map(([key, value]) => `${key}: ${value}`)
14
- .join(', ');
15
- };
16
- useEffect(() => {
17
- lexiconService.list(document).then((response) => {
18
- setEditions(response.data);
19
- });
20
- }, []);
21
- return (_jsxs("div", { className: "lexicon-container", children: [_jsx("div", { className: "header", children: _jsx("div", { className: "title", children: t('lexicon.label.title') }) }), _jsxs("div", { className: "body", children: [editions && editions.length > 0 && (_jsxs("table", { className: "lexicon-table table-striped", children: [_jsxs("colgroup", { children: [_jsx("col", { className: "word-col", span: 1 }), _jsx("col", { className: "value-col", span: 1 })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: t('lexicon.label.word') }), hasParameter(getCorpus(), 'useEditionTiers') ? (_jsx("th", { children: t('lexicon.label.editions') })) : (_jsx("th", { children: t('lexicon.label.tag') }))] }) }), _jsx("tbody", { children: editions.map((edition, idx) => (_jsxs("tr", { children: [_jsx("td", { children: edition.value }), hasParameter(getCorpus(), 'useEditionTiers') ? (_jsx("td", { children: getAttributes(edition) })) : (_jsx("td", { children: edition.tag }))] }, idx.valueOf()))) })] })), editions && editions.length === 0 && (_jsx(AppPlaceholder, { text: t('placeholder.empty.lexicon') }))] })] }));
22
- }
@@ -1,2 +0,0 @@
1
- import DocumentLexicon from './DocumentLexicon';
2
- export default DocumentLexicon;
@@ -1,2 +0,0 @@
1
- import DocumentLexicon from './DocumentLexicon';
2
- export default DocumentLexicon;
@@ -1,38 +0,0 @@
1
- .lexicon-container {
2
- width: 100%;
3
-
4
- .body {
5
- width: 100%;
6
- height: 90vh;
7
- overflow-y: auto;
8
-
9
- .placeholder-container {
10
- @include label-large-1;
11
- height: auto;
12
- }
13
-
14
- .lexicon-table {
15
- border: none;
16
- width: 100%;
17
- max-width: 100%;
18
- table-layout: fixed;
19
- border-collapse: collapse;
20
-
21
- col.word-col {
22
- width: 35%;
23
- }
24
-
25
- col.value-col {
26
- width: 65%;
27
- }
28
-
29
- th,
30
- td {
31
- box-sizing: border-box;
32
- padding: 8px;
33
- word-wrap: break-word;
34
- overflow-wrap: break-word;
35
- }
36
- }
37
- }
38
- }
@@ -1,12 +0,0 @@
1
- import CatalogSearchFilter from '../types/CatalogSearchFilter';
2
- import { Document } from '../deps';
3
- import './style.scss';
4
- type Props = {
5
- document: Document;
6
- onClose: () => void;
7
- useGrid: boolean;
8
- setFilter: (p: CatalogSearchFilter) => void;
9
- setOpenFile: (b: boolean) => void;
10
- };
11
- export default function DocumentRemove({ document, onClose, useGrid, setFilter, setOpenFile, }: Props): import("react/jsx-runtime").JSX.Element;
12
- export {};