@voplus/morpho-document 1.2.0-dev.45 → 1.2.0-dev01
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/es/DocumentUIService.d.ts +0 -2
- package/es/DocumentUIService.js +3 -13
- package/es/DocumentUIService.js.map +1 -1
- package/es/components/ActivityLog/ActivityLog2/index.js +3 -1
- package/es/components/ActivityLog/ActivityLog2/index.js.map +1 -1
- package/es/components/ActivityLog/CommentBar.js +2 -6
- package/es/components/ActivityLog/CommentBar.js.map +1 -1
- package/es/components/ActivityLog/state.d.ts +4 -2
- package/es/components/ActivityLog/state.js +27 -9
- package/es/components/ActivityLog/state.js.map +1 -1
- package/es/components/AddDocDropdown/state.js.map +1 -1
- package/es/components/AvatarList/AvatarItem/index.js.map +1 -1
- package/es/components/AvatarList/ListView.js.map +1 -1
- package/es/components/BreadCrumbsHeader/index.js.map +1 -1
- package/es/components/DescriptionDocumentList/index.js +7 -6
- package/es/components/DescriptionDocumentList/index.js.map +1 -1
- package/es/components/DescriptionDocumentList/index.less +0 -3
- package/es/components/DocumentCard/index.js +5 -5
- package/es/components/DocumentCard/index.js.map +1 -1
- package/es/components/DocumentCard/index.less +6 -11
- package/es/components/DocumentHeader/index.d.ts +1 -2
- package/es/components/DocumentHeader/index.js +6 -6
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentHeader/index.less +4 -4
- package/es/components/DocumentItem/index.js +5 -10
- package/es/components/DocumentItem/index.js.map +1 -1
- package/es/components/DocumentItem/index.less +1 -6
- package/es/components/DocumentItem/state.d.ts +0 -5
- package/es/components/DocumentItem/state.js.map +1 -1
- package/es/components/DocumentList/Header.d.ts +1 -3
- package/es/components/DocumentList/Header.js +1 -8
- package/es/components/DocumentList/Header.js.map +1 -1
- package/es/components/DocumentList/index.js +50 -56
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentList/state.d.ts +1 -2
- package/es/components/DocumentList/state.js +15 -21
- package/es/components/DocumentList/state.js.map +1 -1
- package/es/components/DocumentMenu/index.d.ts +13 -0
- package/es/components/DocumentMenu/index.js +78 -0
- package/es/components/DocumentMenu/index.js.map +1 -0
- package/es/components/DocumentMenu/index.less +20 -0
- package/es/components/DocumentMenu/state.d.ts +43 -0
- package/es/components/DocumentMenu/state.js +106 -0
- package/es/components/DocumentMenu/state.js.map +1 -0
- package/es/components/DocumentName/index.js +3 -25
- package/es/components/DocumentName/index.js.map +1 -1
- package/es/components/DocumentName/index.less +0 -8
- package/es/components/DocumentSelectDialog/index.js +1 -1
- package/es/components/DocumentSelectDialog/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/state.js +4 -4
- package/es/components/DocumentSelectDialog/state.js.map +1 -1
- package/es/components/DocumentSortableTree/index.js +12 -1
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/state.d.ts +0 -1
- package/es/components/DocumentSortableTree/state.js +0 -17
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js.map +1 -1
- package/es/components/DocumentTabbedView/DraggableTabs.js.map +1 -1
- package/es/components/DocumentTabs/index.d.ts +0 -2
- package/es/components/DocumentTabs/index.js +2 -2
- package/es/components/DocumentTabs/index.js.map +1 -1
- package/es/components/DocumentTree/state.js.map +1 -1
- package/es/components/FileViewer/FileViewer.js +1 -1
- package/es/components/FileViewer/FileViewer.js.map +1 -1
- package/es/components/FileViewer/PDF/index.js.map +1 -1
- package/es/components/FileViewer/Preview.js +1 -1
- package/es/components/FileViewer/Preview.js.map +1 -1
- package/es/components/Links/Item.js +9 -3
- package/es/components/Links/Item.js.map +1 -1
- package/es/components/NewDocumentForm/index.d.ts +1 -1
- package/es/components/QuickAccessSearch/ObjectItem/index.js +1 -2
- package/es/components/QuickAccessSearch/ObjectItem/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.js +8 -12
- package/es/components/QuickViewDialog/QuickSubTab/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.less +0 -1
- package/es/components/QuickViewDialog/index.js +6 -20
- package/es/components/QuickViewDialog/index.js.map +1 -1
- package/es/components/QuickViewDialog/index.less +34 -40
- package/es/controls/DescriptionEditor/index.js +10 -30
- package/es/controls/DescriptionEditor/index.js.map +1 -1
- package/es/controls/DescriptionEditor/index.less +3 -5
- package/es/controls/DocumentStatusLabel/index.d.ts +11 -13
- package/es/controls/DocumentStatusLabel/index.js +36 -35
- package/es/controls/DocumentStatusLabel/index.js.map +1 -1
- package/es/controls/DocumentStatusLabel/index.less +50 -27
- package/es/controls/FlagIcon/index.js.map +1 -0
- package/es/controls/PDFViewer/index.js.map +1 -1
- package/es/controls/ToolBar/ToolBar2.d.ts +1 -6
- package/es/controls/ToolBar/ToolBar2.js +2 -5
- package/es/controls/ToolBar/ToolBar2.js.map +1 -1
- package/es/controls/ToolBar/ToolBarState.d.ts +16 -4
- package/es/controls/ToolBar/ToolBarState.js +10 -1
- package/es/controls/ToolBar/ToolBarState.js.map +1 -1
- package/es/controls/ToolBar/buttons/Download.d.ts +1 -1
- package/es/controls/ToolBar/buttons/Download.js +2 -4
- package/es/controls/ToolBar/buttons/Download.js.map +1 -1
- package/es/controls/ToolBar/buttons/Edit.d.ts +1 -1
- package/es/controls/ToolBar/buttons/More.d.ts +11 -26
- package/es/controls/ToolBar/buttons/More.js +25 -11
- package/es/controls/ToolBar/buttons/More.js.map +1 -1
- package/es/controls/ToolBar/buttons/Open.d.ts +1 -1
- package/es/controls/ToolBar/buttons/Sidebar.js.map +1 -1
- package/es/controls/ToolBar/buttons/index.d.ts +0 -1
- package/es/controls/ToolBar/buttons/index.js +0 -1
- package/es/controls/ToolBar/buttons/index.js.map +1 -1
- package/es/controls/ToolBar/buttons/state.d.ts +21 -0
- package/es/controls/ToolBar/buttons/state.js +120 -0
- package/es/controls/ToolBar/buttons/state.js.map +1 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/Access.js +5 -7
- package/es/controls/ToolBar/menus/Access.js.map +1 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/Delete.d.ts +2 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/Delete.js +9 -8
- package/es/controls/ToolBar/menus/Delete.js.map +1 -0
- package/es/controls/ToolBar/menus/Lock.js +20 -0
- package/es/controls/ToolBar/menus/Lock.js.map +1 -0
- package/es/controls/ToolBar/menus/Move.js +21 -0
- package/es/controls/ToolBar/menus/Move.js.map +1 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/OpenReferenceView.d.ts +2 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/OpenReferenceView.js +6 -7
- package/es/controls/ToolBar/menus/OpenReferenceView.js.map +1 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/OpenTreeView.js +4 -6
- package/es/controls/ToolBar/menus/OpenTreeView.js.map +1 -0
- package/es/controls/ToolBar/menus/Paste.js +25 -0
- package/es/controls/ToolBar/menus/Paste.js.map +1 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/Publish.d.ts +2 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/Publish.js +6 -7
- package/es/controls/ToolBar/menus/Publish.js.map +1 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/PublishLock.d.ts +2 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/PublishLock.js +7 -8
- package/es/controls/ToolBar/menus/PublishLock.js.map +1 -0
- package/es/controls/ToolBar/menus/Revert.js +19 -0
- package/es/controls/ToolBar/menus/Revert.js.map +1 -0
- package/es/controls/ToolBar/menus/Unlock.js +19 -0
- package/es/controls/ToolBar/menus/Unlock.js.map +1 -0
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/index.d.ts +0 -1
- package/es/controls/{DocumentMenu/items → ToolBar/menus}/index.js +0 -1
- package/es/controls/ToolBar/menus/index.js.map +1 -0
- package/es/controls/ToolBar/state.d.ts +58 -0
- package/es/controls/ToolBar/state.js +186 -0
- package/es/controls/ToolBar/state.js.map +1 -0
- package/es/controls/data-icons/index.d.ts +0 -1
- package/es/controls/data-icons/index.js +0 -1
- package/es/controls/data-icons/index.js.map +1 -1
- package/es/controls/filters/CreateDateFilter/state.js.map +1 -1
- package/es/data/ActivityStore/ActivityStore.d.ts +6 -6
- package/es/data/ActivityStore/ActivityStore.js +3 -3
- package/es/data/ActivityStore/ActivityStore.js.map +1 -1
- package/es/data/ActivityStore/hook.d.ts +1 -1
- package/es/data/ActivityStore/interfaces.d.ts +0 -6
- package/es/data/DocumentMetaStore.d.ts +1 -3
- package/es/data/DocumentMetaStore.js +0 -7
- package/es/data/DocumentMetaStore.js.map +1 -1
- package/es/data/FileStore/hooks.d.ts +1 -2
- package/es/data/interfaces/IDocumentTypeMeta.d.ts +1 -7
- package/es/data/metas/FileTypeMeta.js.map +1 -1
- package/es/data/metas/PageMeta.js +2 -2
- package/es/data/metas/PageMeta.js.map +1 -1
- package/es/data/metas/SignEnvelopeMeta.d.ts +1 -2
- package/es/data/metas/SignEnvelopeMeta.js +0 -4
- package/es/data/metas/SignEnvelopeMeta.js.map +1 -1
- package/es/pages/ArchivedPage/index.js +1 -1
- package/es/pages/ArchivedPage/index.js.map +1 -1
- package/es/pages/DrivePage/index.js.map +1 -1
- package/es/{modules/graph/pages → pages}/GraphEditorPage/index.js +3 -4
- package/es/pages/GraphEditorPage/index.js.map +1 -0
- package/es/pages/Library/LibraryDefaultView/Content.js +1 -1
- package/es/pages/Library/LibraryDefaultView/Content.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
- package/es/{modules/page/views → pages/Page}/PageDefaultView/index.js +9 -10
- package/es/pages/Page/PageDefaultView/index.js.map +1 -0
- package/es/pages/Page/PageItem/index.js +37 -0
- package/es/pages/Page/PageItem/index.js.map +1 -0
- package/es/pages/Page/PageItem/index.less +34 -0
- package/es/{modules/page/components/TextItem → pages/Page/PageItem}/state.d.ts +4 -2
- package/es/{modules/page/components/TextItem → pages/Page/PageItem}/state.js +13 -8
- package/es/pages/Page/PageItem/state.js.map +1 -0
- package/es/{modules/page/components → pages/Page}/PageItems/index.js +5 -11
- package/es/pages/Page/PageItems/index.js.map +1 -0
- package/es/{modules/page/components → pages/Page}/PageItems/index.less +1 -21
- package/es/{modules/page/components → pages/Page}/PageItems/state.d.ts +1 -1
- package/es/pages/Page/PageItems/state.js.map +1 -0
- package/es/{modules/page/views → pages/Page}/PagePropertiesView/index.js +4 -4
- package/es/pages/Page/PagePropertiesView/index.js.map +1 -0
- package/es/{modules/page/views → pages/Page}/PageQuickView/index.js +3 -3
- package/es/pages/Page/PageQuickView/index.js.map +1 -0
- package/es/pages/Page/PlusDropDown/index.js.map +1 -0
- package/es/pages/Page/data/IPageItemState.js.map +1 -0
- package/es/{modules/page → pages/Page}/data/PageContext.d.ts +0 -6
- package/es/{modules/page → pages/Page}/data/PageContext.js +5 -27
- package/es/pages/Page/data/PageContext.js.map +1 -0
- package/es/pages/Page/data/PageStore.js.map +1 -0
- package/es/pages/Page/data/hook.js.map +1 -0
- package/es/pages/Page/data/index.js.map +1 -0
- package/es/pages/Page/data/interfaces.js.map +1 -0
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js +2 -7
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.less +1 -2
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/index.js +13 -18
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/index.less +0 -8
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/state.d.ts +2 -2
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/state.js +10 -20
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/state.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/pc/index.js +18 -23
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/pc/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/pc/index.less +3 -5
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.d.ts +0 -4
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.js +0 -29
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/state.js.map +1 -1
- package/es/pages/Signature/Envelope/components/EnvelopeQuickView/index.js +1 -7
- package/es/pages/Signature/Envelope/components/EnvelopeQuickView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/components/PropertiesView/index.js +24 -8
- package/es/pages/Signature/Envelope/components/PropertiesView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.js +10 -12
- package/es/pages/Signature/Letter/LetterContentView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.less +1 -8
- package/es/pages/Signature/Letter/LetterContentView/state.js.map +1 -1
- package/es/pages/Signature/Letter/LetterItem/index.d.ts +0 -2
- package/es/pages/Signature/Letter/LetterItem/index.js +24 -14
- package/es/pages/Signature/Letter/LetterItem/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterItem/index.less +0 -3
- package/es/pages/Signature/Letter/LetterItem/state.d.ts +0 -1
- package/es/pages/Signature/Letter/LetterItem/state.js +0 -6
- package/es/pages/Signature/Letter/LetterItem/state.js.map +1 -1
- package/es/pages/Signature/Letter/LetterList/index.d.ts +0 -2
- package/es/pages/Signature/Letter/LetterList/index.js +9 -10
- package/es/pages/Signature/Letter/LetterList/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterList/index.less +0 -7
- package/es/pages/Signature/Letter/LetterViewer/index.js +7 -10
- package/es/pages/Signature/Letter/LetterViewer/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterViewer/index.less +1 -4
- package/es/pages/Signature/SignatureDialog/index.js +2 -2
- package/es/pages/Signature/SignatureRecipient/index.js +2 -3
- package/es/pages/Signature/SignatureRecipient/index.js.map +1 -1
- package/es/pages/Signature/SignatureTable/RemoveSignatureDialog.js.map +1 -1
- package/es/pages/Signature/SignatureTable/index.js +55 -46
- package/es/pages/Signature/SignatureTable/index.js.map +1 -1
- package/es/pages/Signature/SignatureTable/index.less +2 -43
- package/es/pages/Signature/SignatureTable/state.d.ts +0 -2
- package/es/pages/Signature/SignatureTable/state.js +0 -10
- package/es/pages/Signature/SignatureTable/state.js.map +1 -1
- package/es/pages/Signature/SignerSelect/index.js +11 -23
- package/es/pages/Signature/SignerSelect/index.js.map +1 -1
- package/es/pages/Signature/SignerSelect/state.d.ts +8 -12
- package/es/pages/Signature/SignerSelect/state.js +7 -59
- package/es/pages/Signature/SignerSelect/state.js.map +1 -1
- package/es/pages/Signature/data/EnvelopeContext.d.ts +3 -17
- package/es/pages/Signature/data/EnvelopeContext.js +5 -56
- package/es/pages/Signature/data/EnvelopeContext.js.map +1 -1
- package/es/pages/Signature/data/envelope/EnvelopeStore.js +2 -7
- package/es/pages/Signature/data/envelope/EnvelopeStore.js.map +1 -1
- package/es/pages/Signature/data/envelope/interfaces.d.ts +1 -1
- package/es/pages/Signature/data/envelope/type.d.ts +0 -3
- package/es/pages/TreeViewPage/index.js.map +1 -1
- package/es/pages/VSubmit/components/DocumentIconList/index.js +1 -1
- package/es/pages/VSubmit/components/DocumentIconList/index.js.map +1 -1
- package/es/pages/VSubmit/components/EmailRecipients/state.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem/index.js +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem/index.js.map +1 -1
- package/es/routes.d.ts +0 -21
- package/es/routes.js +3 -42
- package/es/routes.js.map +1 -1
- package/es/services/DocumentActivityLogRenderer.js.map +1 -1
- package/es/services/SignActivityLogRenderer.js +17 -19
- package/es/services/SignActivityLogRenderer.js.map +1 -1
- package/package.json +12 -27
- package/es/components/DocumentNotificationDialog/index.d.ts +0 -12
- package/es/components/DocumentNotificationDialog/index.js +0 -41
- package/es/components/DocumentNotificationDialog/index.js.map +0 -1
- package/es/components/DocumentNotificationDialog/index.less +0 -23
- package/es/components/DocumentNotificationDialog/state.d.ts +0 -10
- package/es/components/DocumentNotificationDialog/state.js +0 -38
- package/es/components/DocumentNotificationDialog/state.js.map +0 -1
- package/es/controls/DocumentMenu/index.d.ts +0 -17
- package/es/controls/DocumentMenu/index.js +0 -37
- package/es/controls/DocumentMenu/index.js.map +0 -1
- package/es/controls/DocumentMenu/items/Access.js.map +0 -1
- package/es/controls/DocumentMenu/items/Delete.js.map +0 -1
- package/es/controls/DocumentMenu/items/Lock.js +0 -22
- package/es/controls/DocumentMenu/items/Lock.js.map +0 -1
- package/es/controls/DocumentMenu/items/Move.js +0 -24
- package/es/controls/DocumentMenu/items/Move.js.map +0 -1
- package/es/controls/DocumentMenu/items/Notifications.d.ts +0 -8
- package/es/controls/DocumentMenu/items/Notifications.js +0 -29
- package/es/controls/DocumentMenu/items/Notifications.js.map +0 -1
- package/es/controls/DocumentMenu/items/OpenReferenceView.js.map +0 -1
- package/es/controls/DocumentMenu/items/OpenTreeView.js.map +0 -1
- package/es/controls/DocumentMenu/items/Paste.js +0 -27
- package/es/controls/DocumentMenu/items/Paste.js.map +0 -1
- package/es/controls/DocumentMenu/items/Publish.js.map +0 -1
- package/es/controls/DocumentMenu/items/PublishLock.js.map +0 -1
- package/es/controls/DocumentMenu/items/Revert.js +0 -20
- package/es/controls/DocumentMenu/items/Revert.js.map +0 -1
- package/es/controls/DocumentMenu/items/Unlock.js +0 -20
- package/es/controls/DocumentMenu/items/Unlock.js.map +0 -1
- package/es/controls/DocumentMenu/items/index.js.map +0 -1
- package/es/controls/ShortcutMenu/index.d.ts +0 -5
- package/es/controls/ShortcutMenu/index.js +0 -24
- package/es/controls/ShortcutMenu/index.js.map +0 -1
- package/es/controls/ToolBar/buttons/UpLevel.d.ts +0 -17
- package/es/controls/ToolBar/buttons/UpLevel.js +0 -27
- package/es/controls/ToolBar/buttons/UpLevel.js.map +0 -1
- package/es/controls/data-icons/FlagIcon/index.js.map +0 -1
- package/es/modules/graph/components/GraphEditor/index.d.ts +0 -6
- package/es/modules/graph/components/GraphEditor/index.js +0 -11
- package/es/modules/graph/components/GraphEditor/index.js.map +0 -1
- package/es/modules/graph/components/GraphViewer/index.d.ts +0 -8
- package/es/modules/graph/components/GraphViewer/index.js +0 -24
- package/es/modules/graph/components/GraphViewer/index.js.map +0 -1
- package/es/modules/graph/components/GraphViewer/index.less +0 -4
- package/es/modules/graph/pages/GraphEditorPage/index.js.map +0 -1
- package/es/modules/page/components/FolderItem/index.d.ts +0 -6
- package/es/modules/page/components/FolderItem/index.js +0 -26
- package/es/modules/page/components/FolderItem/index.js.map +0 -1
- package/es/modules/page/components/FolderItem/state.d.ts +0 -7
- package/es/modules/page/components/FolderItem/state.js +0 -29
- package/es/modules/page/components/FolderItem/state.js.map +0 -1
- package/es/modules/page/components/GraphItem/index.d.ts +0 -6
- package/es/modules/page/components/GraphItem/index.js +0 -26
- package/es/modules/page/components/GraphItem/index.js.map +0 -1
- package/es/modules/page/components/GraphItem/state.d.ts +0 -7
- package/es/modules/page/components/GraphItem/state.js +0 -29
- package/es/modules/page/components/GraphItem/state.js.map +0 -1
- package/es/modules/page/components/PageItem/index.js +0 -17
- package/es/modules/page/components/PageItem/index.js.map +0 -1
- package/es/modules/page/components/PageItem/index.less +0 -27
- package/es/modules/page/components/PageItemHeader/index.d.ts +0 -11
- package/es/modules/page/components/PageItemHeader/index.js +0 -37
- package/es/modules/page/components/PageItemHeader/index.js.map +0 -1
- package/es/modules/page/components/PageItemHeader/index.less +0 -27
- package/es/modules/page/components/PageItemHeader/state.d.ts +0 -8
- package/es/modules/page/components/PageItemHeader/state.js +0 -28
- package/es/modules/page/components/PageItemHeader/state.js.map +0 -1
- package/es/modules/page/components/PageItems/index.js.map +0 -1
- package/es/modules/page/components/PageItems/state.js.map +0 -1
- package/es/modules/page/components/PlusDropDown/index.js.map +0 -1
- package/es/modules/page/components/TextItem/index.d.ts +0 -6
- package/es/modules/page/components/TextItem/index.js +0 -36
- package/es/modules/page/components/TextItem/index.js.map +0 -1
- package/es/modules/page/components/TextItem/state.js.map +0 -1
- package/es/modules/page/data/IPageItemState.js.map +0 -1
- package/es/modules/page/data/PageContext.js.map +0 -1
- package/es/modules/page/data/PageStore.js.map +0 -1
- package/es/modules/page/data/hook.js.map +0 -1
- package/es/modules/page/data/index.js.map +0 -1
- package/es/modules/page/data/interfaces.js.map +0 -1
- package/es/modules/page/views/PageDefaultView/index.js.map +0 -1
- package/es/modules/page/views/PagePropertiesView/index.js.map +0 -1
- package/es/modules/page/views/PageQuickView/index.js.map +0 -1
- package/es/pages/EmailTemplate/CodeMirror/index.d.ts +0 -13
- package/es/pages/EmailTemplate/CodeMirror/index.js +0 -41
- package/es/pages/EmailTemplate/CodeMirror/index.js.map +0 -1
- package/es/pages/EmailTemplate/CodeMirror/state.d.ts +0 -5
- package/es/pages/EmailTemplate/CodeMirror/state.js +0 -28
- package/es/pages/EmailTemplate/CodeMirror/state.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateDefaultView/index.d.ts +0 -4
- package/es/pages/EmailTemplate/EmailTemplateDefaultView/index.js +0 -47
- package/es/pages/EmailTemplate/EmailTemplateDefaultView/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateDefaultView/index.less +0 -39
- package/es/pages/EmailTemplate/EmailTemplateForm/index.d.ts +0 -4
- package/es/pages/EmailTemplate/EmailTemplateForm/index.js +0 -30
- package/es/pages/EmailTemplate/EmailTemplateForm/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateForm/index.less +0 -27
- package/es/pages/EmailTemplate/EmailTemplateItem/index.d.ts +0 -6
- package/es/pages/EmailTemplate/EmailTemplateItem/index.js +0 -34
- package/es/pages/EmailTemplate/EmailTemplateItem/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateItem/index.less +0 -17
- package/es/pages/EmailTemplate/EmailTemplateItems/index.d.ts +0 -7
- package/es/pages/EmailTemplate/EmailTemplateItems/index.js +0 -35
- package/es/pages/EmailTemplate/EmailTemplateItems/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateItems/index.less +0 -67
- package/es/pages/EmailTemplate/EmailTemplateItems/state.d.ts +0 -6
- package/es/pages/EmailTemplate/EmailTemplateItems/state.js +0 -24
- package/es/pages/EmailTemplate/EmailTemplateItems/state.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplatePropertiesView/index.d.ts +0 -6
- package/es/pages/EmailTemplate/EmailTemplatePropertiesView/index.js +0 -28
- package/es/pages/EmailTemplate/EmailTemplatePropertiesView/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplatePropertiesView/index.less +0 -12
- package/es/pages/EmailTemplate/EmailTemplateSelect/index.d.ts +0 -12
- package/es/pages/EmailTemplate/EmailTemplateSelect/index.js +0 -29
- package/es/pages/EmailTemplate/EmailTemplateSelect/index.js.map +0 -1
- package/es/pages/EmailTemplate/data/EmailTemplateStore.d.ts +0 -13
- package/es/pages/EmailTemplate/data/EmailTemplateStore.js +0 -29
- package/es/pages/EmailTemplate/data/EmailTemplateStore.js.map +0 -1
- package/es/pages/EmailTemplate/data/hook.d.ts +0 -10
- package/es/pages/EmailTemplate/data/hook.js +0 -19
- package/es/pages/EmailTemplate/data/hook.js.map +0 -1
- package/es/pages/EmailTemplate/data/index.d.ts +0 -4
- package/es/pages/EmailTemplate/data/index.js +0 -5
- package/es/pages/EmailTemplate/data/index.js.map +0 -1
- package/es/pages/EmailTemplate/data/interfaces.d.ts +0 -12
- package/es/pages/EmailTemplate/data/interfaces.js +0 -2
- package/es/pages/EmailTemplate/data/interfaces.js.map +0 -1
- package/es/pages/EmailTemplate/data/types.d.ts +0 -7
- package/es/pages/EmailTemplate/data/types.js +0 -2
- package/es/pages/EmailTemplate/data/types.js.map +0 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/TourGuide.d.ts +0 -3
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/TourGuide.js +0 -24
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/TourGuide.js.map +0 -1
- package/es/pages/Signature/Envelope/EnvelopeReport/index.d.ts +0 -4
- package/es/pages/Signature/Envelope/EnvelopeReport/index.js +0 -58
- package/es/pages/Signature/Envelope/EnvelopeReport/index.js.map +0 -1
- package/es/pages/Signature/Envelope/EnvelopeReport/index.less +0 -49
- package/es/pages/Signature/Envelope/components/EnvelopeCard/index.d.ts +0 -5
- package/es/pages/Signature/Envelope/components/EnvelopeCard/index.js +0 -57
- package/es/pages/Signature/Envelope/components/EnvelopeCard/index.js.map +0 -1
- package/es/pages/Signature/Envelope/components/EnvelopeCard/index.less +0 -63
- package/es/pages/Signature/Envelope/components/EnvelopeCard/state.d.ts +0 -16
- package/es/pages/Signature/Envelope/components/EnvelopeCard/state.js +0 -123
- package/es/pages/Signature/Envelope/components/EnvelopeCard/state.js.map +0 -1
- package/es/pages/Signature/Envelope/components/EnvelopeMenu.d.ts +0 -5
- package/es/pages/Signature/Envelope/components/EnvelopeMenu.js +0 -63
- package/es/pages/Signature/Envelope/components/EnvelopeMenu.js.map +0 -1
- package/es/pages/Signature/Envelope/components/ReasonDialog.d.ts +0 -10
- package/es/pages/Signature/Envelope/components/ReasonDialog.js +0 -26
- package/es/pages/Signature/Envelope/components/ReasonDialog.js.map +0 -1
- package/es/pages/Signature/Envelope/controls/SignaturePercentageDataIcon/index.d.ts +0 -17
- package/es/pages/Signature/Envelope/controls/SignaturePercentageDataIcon/index.js +0 -28
- package/es/pages/Signature/Envelope/controls/SignaturePercentageDataIcon/index.js.map +0 -1
- package/es/pages/Signature/Envelope/controls/SignaturePercentageDataIcon/index.less +0 -14
- package/es/pages/Signature/Letter/components/LetterMenu.d.ts +0 -7
- package/es/pages/Signature/Letter/components/LetterMenu.js +0 -30
- package/es/pages/Signature/Letter/components/LetterMenu.js.map +0 -1
- package/es/pages/Signature/SignatureTable/EditSignatureDialog.d.ts +0 -15
- package/es/pages/Signature/SignatureTable/EditSignatureDialog.js +0 -45
- package/es/pages/Signature/SignatureTable/EditSignatureDialog.js.map +0 -1
- /package/es/controls/{data-icons/FlagIcon → FlagIcon}/index.d.ts +0 -0
- /package/es/controls/{data-icons/FlagIcon → FlagIcon}/index.js +0 -0
- /package/es/controls/{data-icons/FlagIcon → FlagIcon}/index.less +0 -0
- /package/es/controls/{DocumentMenu/items → ToolBar/menus}/Access.d.ts +0 -0
- /package/es/controls/{DocumentMenu/items → ToolBar/menus}/Lock.d.ts +0 -0
- /package/es/controls/{DocumentMenu/items → ToolBar/menus}/Move.d.ts +0 -0
- /package/es/controls/{DocumentMenu/items → ToolBar/menus}/OpenTreeView.d.ts +0 -0
- /package/es/controls/{DocumentMenu/items → ToolBar/menus}/Paste.d.ts +0 -0
- /package/es/controls/{DocumentMenu/items → ToolBar/menus}/Revert.d.ts +0 -0
- /package/es/controls/{DocumentMenu/items → ToolBar/menus}/Unlock.d.ts +0 -0
- /package/es/{modules/graph/pages → pages}/GraphEditorPage/index.d.ts +0 -0
- /package/es/{modules/page/views → pages/Page}/PageDefaultView/index.d.ts +0 -0
- /package/es/{modules/page/views → pages/Page}/PageDefaultView/index.less +0 -0
- /package/es/{modules/page/components → pages/Page}/PageItem/index.d.ts +0 -0
- /package/es/{modules/page/components → pages/Page}/PageItems/index.d.ts +0 -0
- /package/es/{modules/page/components → pages/Page}/PageItems/state.js +0 -0
- /package/es/{modules/page/views → pages/Page}/PagePropertiesView/index.d.ts +0 -0
- /package/es/{modules/page/views → pages/Page}/PageQuickView/index.d.ts +0 -0
- /package/es/{modules/page/components → pages/Page}/PlusDropDown/index.d.ts +0 -0
- /package/es/{modules/page/components → pages/Page}/PlusDropDown/index.js +0 -0
- /package/es/{modules/page/components → pages/Page}/PlusDropDown/index.less +0 -0
- /package/es/{modules/page → pages/Page}/data/IPageItemState.d.ts +0 -0
- /package/es/{modules/page → pages/Page}/data/IPageItemState.js +0 -0
- /package/es/{modules/page → pages/Page}/data/PageStore.d.ts +0 -0
- /package/es/{modules/page → pages/Page}/data/PageStore.js +0 -0
- /package/es/{modules/page → pages/Page}/data/hook.d.ts +0 -0
- /package/es/{modules/page → pages/Page}/data/hook.js +0 -0
- /package/es/{modules/page → pages/Page}/data/index.d.ts +0 -0
- /package/es/{modules/page → pages/Page}/data/index.js +0 -0
- /package/es/{modules/page → pages/Page}/data/interfaces.d.ts +0 -0
- /package/es/{modules/page → pages/Page}/data/interfaces.js +0 -0
|
@@ -2,6 +2,7 @@ import { faBellOn, faEnvelope, faEraser, faSignature } from "@fortawesome/pro-li
|
|
|
2
2
|
import { ActivityRenderer } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService/ActivityRenderer";
|
|
3
3
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import React from "react";
|
|
5
|
+
import moment from "moment";
|
|
5
6
|
export const ActivityActionType = {
|
|
6
7
|
Sent: "Sent",
|
|
7
8
|
Reminded: "Reminded",
|
|
@@ -37,44 +38,41 @@ class SignActivityLogRenderer extends ActivityRenderer {
|
|
|
37
38
|
return super.getActionIconInfo(action);
|
|
38
39
|
}
|
|
39
40
|
Log(item, options) {
|
|
40
|
-
var _a, _b, _c, _d
|
|
41
|
+
var _a, _b, _c, _d;
|
|
41
42
|
switch (item.action) {
|
|
42
43
|
case ActivityActionType.Sent:
|
|
43
44
|
return (React.createElement(React.Fragment, null,
|
|
44
45
|
React.createElement("div", null,
|
|
45
|
-
|
|
46
|
+
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
46
47
|
React.createElement("span", { className: "action" }, "Invited "),
|
|
47
48
|
"others"),
|
|
48
|
-
|
|
49
|
+
React.createElement("p", { className: "date-time" }, moment.utc(item.createDate).local().format("HH:mm:ss DD MMM, YYYY"))));
|
|
49
50
|
case ActivityActionType.Reminded:
|
|
50
51
|
return (React.createElement(React.Fragment, null,
|
|
51
52
|
React.createElement("div", null,
|
|
52
|
-
|
|
53
|
+
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
53
54
|
React.createElement("span", { className: "action" }, "Reminded "),
|
|
54
55
|
"others"),
|
|
55
|
-
|
|
56
|
+
React.createElement("p", { className: "date-time" }, moment.utc(item.createDate).local().format("HH:mm:ss DD MMM, YYYY"))));
|
|
56
57
|
case ActivityActionType.Signed:
|
|
57
58
|
return (React.createElement(React.Fragment, null,
|
|
58
59
|
React.createElement("div", null,
|
|
59
|
-
|
|
60
|
+
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
60
61
|
React.createElement("span", { className: "action" }, "Signed "),
|
|
61
|
-
React.createElement("span", null, (
|
|
62
|
-
|
|
63
|
-
: (_e = item.propertyObjects) === null || _e === void 0 ? void 0 : _e[0].name)),
|
|
64
|
-
this.renderLogMeta(item)));
|
|
62
|
+
React.createElement("span", null, (_a = item.propertyObjects) === null || _a === void 0 ? void 0 : _a[0].name)),
|
|
63
|
+
React.createElement("p", { className: "date-time" }, moment.utc(item.createDate).local().format("HH:mm:ss DD MMM, YYYY"))));
|
|
65
64
|
case ActivityActionType.Revoked:
|
|
66
65
|
return (React.createElement(React.Fragment, null,
|
|
67
66
|
React.createElement("div", null,
|
|
68
|
-
|
|
67
|
+
React.createElement("span", { className: "user-name" }, item.subject.name ? item.subject.name : ""),
|
|
69
68
|
React.createElement("span", { className: "action" }, "Revoked "),
|
|
70
|
-
React.createElement("span", null,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
this.renderLogMeta(item)));
|
|
69
|
+
React.createElement("span", null, (_b = item.propertyObjects) === null || _b === void 0 ? void 0 :
|
|
70
|
+
_b[0].name,
|
|
71
|
+
" ",
|
|
72
|
+
((_c = item.propertyObjects) === null || _c === void 0 ? void 0 : _c[0].value) ? "because " : "",
|
|
73
|
+
" ",
|
|
74
|
+
`'${(_d = item.propertyObjects) === null || _d === void 0 ? void 0 : _d[0].value}'.`)),
|
|
75
|
+
React.createElement("p", { className: "date-time" }, moment.utc(item.createDate).local().format("HH:mm:ss DD MMM, YYYY"))));
|
|
78
76
|
}
|
|
79
77
|
return super.Log(item, options);
|
|
80
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignActivityLogRenderer.js","sourceRoot":"","sources":["../../src/services/SignActivityLogRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oFAAoF,CAAC;AACtH,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAI3E,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SignActivityLogRenderer.js","sourceRoot":"","sources":["../../src/services/SignActivityLogRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,oFAAoF,CAAC;AACtH,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAI3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CAClB,CAAC;AAEF,MAAM,uB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AAuB,CAAC,CACjE,CACY,CACjB,CAAC;YAEH,KAAK,kBAAkB,CAAC,OAAO;gBAC9B,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ;oBACd;wBACC,8BAAM,SAAS,EAAC,WAAW,IAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAQ;wBAC/E,8BAAM,SAAS,EAAC,QAAQ,eAAgB;wBACxC,wCACE,IAAI,CAAC,eAAe;+BAAG,CAAC,EAAE,IAAI;;4BAAG,OAAA,IAAI,CAAC,eAAe,0CAAG,CAAC,EAAE,KAAK,EAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;4BAAE,GAAG;4BACvF,IAAI,MAAA,IAAI,CAAC,eAAe,0CAAG,CAAC,EAAE,KAAK,IAAI,CAClC,CACF;oBAGN,2BAAG,SAAS,EAAC,WAAW,IACtB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CACjE,CACY,CACjB,CAAC;SACH;QACD,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;CACD;AAED,eAAe,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voplus/morpho-document",
|
|
3
|
-
"version": "1.2.0-
|
|
3
|
+
"version": "1.2.0-dev01",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
|
|
@@ -32,53 +32,38 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"file-saver": "^2.0.5",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"react-pdf": "5.2.0",
|
|
35
|
+
"object-hash": "^2.0.3",
|
|
36
|
+
"react-pdf": "^5.1.0",
|
|
38
37
|
"react-signature-canvas": "^1.0.3",
|
|
39
38
|
"react-sortable-tree": "^2.8.0",
|
|
40
|
-
"react-use-visibility": "^0.3.0"
|
|
41
|
-
"reactour": "^1.18.3",
|
|
42
|
-
"styled-components": "^5.2.3"
|
|
39
|
+
"react-use-visibility": "^0.3.0"
|
|
43
40
|
},
|
|
44
41
|
"devDependencies": {
|
|
45
42
|
"@ant-design/icons": "^4.4.0",
|
|
46
|
-
"@types/codemirror": "0.0.109",
|
|
47
43
|
"@types/file-saver": "^2.0.1",
|
|
48
44
|
"@types/invariant": "^2.2.34",
|
|
49
45
|
"@types/lodash-es": "^4.17.4",
|
|
50
46
|
"@types/object-hash": "^1.3.4",
|
|
51
|
-
"@types/qrcode.react": "^1.0.1",
|
|
52
47
|
"@types/react": "^17.0.1",
|
|
53
|
-
"@types/react-pdf": "^5.0.
|
|
48
|
+
"@types/react-pdf": "^5.0.1",
|
|
54
49
|
"@types/react-signature-canvas": "^1.0.1",
|
|
55
50
|
"@types/react-sortable-tree": "^0.3.12",
|
|
56
51
|
"@types/react-test-renderer": "^17.0.0",
|
|
57
|
-
"@types/reactour": "^1.18.1",
|
|
58
52
|
"@types/resize-observer-browser": "^0.1.5",
|
|
59
53
|
"@types/string": "0.0.30",
|
|
60
|
-
"@uiw/react-codemirror": "^3.0.6",
|
|
61
54
|
"@voplus/antd": "^4.10.3-vo1.0.2",
|
|
62
|
-
"@voplus/morpho-client-test": "^1.2.0-
|
|
55
|
+
"@voplus/morpho-client-test": "^1.2.0-dev01",
|
|
63
56
|
"@voplus/morpho-collaboration": "^1.2.0-dev01",
|
|
64
|
-
"@voplus/morpho-config": "^1.2.0-
|
|
57
|
+
"@voplus/morpho-config": "^1.2.0-dev01",
|
|
65
58
|
"@voplus/morpho-data": "^1.2.0-dev01",
|
|
66
|
-
"@voplus/morpho-document-core": "^1.2.0-
|
|
67
|
-
"@voplus/morpho-org": "^1.2.0-
|
|
68
|
-
"@voplus/morpho-text": "^1.2.0-
|
|
69
|
-
"@voplus/morpho-ui": "^1.2.0-
|
|
70
|
-
"classnames": "^2.3.1",
|
|
71
|
-
"codemirror": "^5.60.0",
|
|
72
|
-
"object-hash": "^2.0.3",
|
|
59
|
+
"@voplus/morpho-document-core": "^1.2.0-dev01",
|
|
60
|
+
"@voplus/morpho-org": "^1.2.0-dev01",
|
|
61
|
+
"@voplus/morpho-text": "^1.2.0-dev01",
|
|
62
|
+
"@voplus/morpho-ui": "^1.2.0-dev01",
|
|
73
63
|
"react-dnd": "^11.1.3",
|
|
74
64
|
"react-dnd-html5-backend": "^11.1.3"
|
|
75
65
|
},
|
|
76
66
|
"peerDependencies": {
|
|
77
|
-
"@
|
|
78
|
-
"@voplus/morpho-text": "1.2.x",
|
|
79
|
-
"file-saver": "2.x",
|
|
80
|
-
"iframe-resizer-react": "1.x",
|
|
81
|
-
"object-hash": "2.x",
|
|
82
|
-
"react-pdf": "5.2.x"
|
|
67
|
+
"@voplus/morpho-text": "^1.2.*"
|
|
83
68
|
}
|
|
84
69
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type DocumentNotificationDialogProps = {
|
|
3
|
-
/** document id */
|
|
4
|
-
id: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
/** dialog cancel function */
|
|
7
|
-
onCancel?: () => void;
|
|
8
|
-
/** dialog save function */
|
|
9
|
-
onSave?: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const DocumentNotificationDialog: (props: DocumentNotificationDialogProps) => JSX.Element;
|
|
12
|
-
export default DocumentNotificationDialog;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Checkbox, Modal } from "@voplus/antd";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import { State } from "./state";
|
|
5
|
-
import classnames from "classnames";
|
|
6
|
-
import { faBell } from "@fortawesome/pro-duotone-svg-icons";
|
|
7
|
-
import { observe } from "@voplus/morpho-ui";
|
|
8
|
-
import styles from "./index.less";
|
|
9
|
-
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
10
|
-
const DocumentNotificationDialog = (props) => {
|
|
11
|
-
const store = useDocumentStore();
|
|
12
|
-
const [state] = useState(new State());
|
|
13
|
-
const { id } = props;
|
|
14
|
-
// const notifications = store.loadUserNotifications(id);
|
|
15
|
-
const notifications = [
|
|
16
|
-
{ type: { id: "1", name: "Changes to this document" }, subscribed: false },
|
|
17
|
-
{ type: { id: "2", name: "Add or remove child documents" }, subscribed: true },
|
|
18
|
-
{ type: { id: "3", name: "New comments" }, subscribed: false },
|
|
19
|
-
];
|
|
20
|
-
return observe(() => (React.createElement(Modal, { title: React.createElement(React.Fragment, null,
|
|
21
|
-
React.createElement(FAIcon, { icon: faBell }),
|
|
22
|
-
"Notifications"), width: 420, visible: true, okText: "Save", className: classnames(styles["document_notification_dialog"], props.className), onOk: handleOk, onCancel: handleCancel },
|
|
23
|
-
React.createElement("div", { className: "explanation" }, "Notify me about..."),
|
|
24
|
-
notifications.map((i) => (React.createElement(Checkbox, { key: i.type.id, defaultChecked: i.subscribed, onChange: (e) => state.onChange(e, i.type.id) }, i.type.name))))));
|
|
25
|
-
function handleOk() {
|
|
26
|
-
var _a;
|
|
27
|
-
// store.editUserNotifications(id, {
|
|
28
|
-
// data: { notifications: state.notifications },
|
|
29
|
-
// error: "message",
|
|
30
|
-
// });
|
|
31
|
-
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
32
|
-
console.log(state.notifications, "----handleOk");
|
|
33
|
-
}
|
|
34
|
-
function handleCancel() {
|
|
35
|
-
var _a;
|
|
36
|
-
state.reset();
|
|
37
|
-
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
export default DocumentNotificationDialog;
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentNotificationDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAYhE,MAAM,0BAA0B,GAAG,CAAC,KAAsC,EAAE,EAAE;IAC7E,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,yDAAyD;IACzD,MAAM,aAAa,GAAG;QACrB,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,0BAA0B,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;QAC1E,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,+BAA+B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;QAC9E,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;KAC9D,CAAC;IAEF,OAA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|
|
4
|
-
.svg-inline--fa {
|
|
5
|
-
font-size: 20px;
|
|
6
|
-
margin-right: 8px;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
.ant-modal-body {
|
|
10
|
-
padding-top: 10px;
|
|
11
|
-
}
|
|
12
|
-
.explanation {
|
|
13
|
-
font-size: 16px;
|
|
14
|
-
padding: 10px 0 20px;
|
|
15
|
-
color: #000000;
|
|
16
|
-
}
|
|
17
|
-
.ant-checkbox-wrapper {
|
|
18
|
-
display: block;
|
|
19
|
-
margin-left: 0;
|
|
20
|
-
margin-bottom: 12px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
/** 储存subscribed notifications发生改变后的数据 */
|
|
6
|
-
Object.defineProperty(this, "notifications", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
configurable: true,
|
|
9
|
-
writable: true,
|
|
10
|
-
value: []
|
|
11
|
-
});
|
|
12
|
-
makeObservable(this);
|
|
13
|
-
}
|
|
14
|
-
onChange(e, id) {
|
|
15
|
-
if (this.notifications.findIndex((v) => v.id === id) === -1) {
|
|
16
|
-
this.notifications.push({ id: id, subscribed: e.target.checked });
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
this.notifications.map((i) => {
|
|
20
|
-
if (i.id === id)
|
|
21
|
-
i.subscribed = e.target.checked;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
reset() {
|
|
26
|
-
this.notifications = [];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
__decorate([
|
|
30
|
-
observable
|
|
31
|
-
], State.prototype, "notifications", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
action
|
|
34
|
-
], State.prototype, "onChange", null);
|
|
35
|
-
__decorate([
|
|
36
|
-
action
|
|
37
|
-
], State.prototype, "reset", null);
|
|
38
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/DocumentNotificationDialog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAY,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,MAAM,OAAO,KAAK;IAIjB;QAHA,yCAAyC;QAC7B;;;;mBAA8D,EAAE;WAAC;QAG5E,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAGM,QAAQ,CAAC,CAAM,EAAE,EAAU;QACjC,IAAI,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE;YAC5D,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;SAClE;aAAM;YACN,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC5B,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE;oBAAE,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;YAClD,CAAC,CAAC,CAAC;SACH;IACF,CAAC;IAGM,KAAK;QACX,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IACzB,CAAC;CACD;AArBY;IAAX,UAAU;4CAAkE;AAO7E;IADC,MAAM;qCASN;AAGD;IADC,MAAM;kCAGN"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ArchivedMenu: (props: {
|
|
3
|
-
id: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
-
export declare const VersionMenu: (props: {
|
|
7
|
-
id: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
closeAside?: boolean;
|
|
10
|
-
}) => JSX.Element;
|
|
11
|
-
declare const DocumentMenu: (props: {
|
|
12
|
-
id: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
children?: any;
|
|
15
|
-
closeAside?: boolean;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
export default DocumentMenu;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Access, Delete, Lock, Move, Notifications, OpenReferenceView, OpenTreeView, Paste, Publish, PublishLock, Revert, Unlock, } from "./items";
|
|
2
|
-
import { DocumentMenuContext, DocumentMenuState, useDocument } from "@voplus/morpho-document-core";
|
|
3
|
-
import React, { useMemo } from "react";
|
|
4
|
-
import ShortcutMenu from "../ShortcutMenu";
|
|
5
|
-
import classnames from "classnames";
|
|
6
|
-
export const ArchivedMenu = (props) => {
|
|
7
|
-
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
8
|
-
return (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
9
|
-
React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
10
|
-
React.createElement(React.Fragment, null))));
|
|
11
|
-
};
|
|
12
|
-
export const VersionMenu = (props) => {
|
|
13
|
-
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
14
|
-
return (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
15
|
-
React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
16
|
-
React.createElement(Revert, null),
|
|
17
|
-
React.createElement(Delete, { closeAside: props.closeAside }))));
|
|
18
|
-
};
|
|
19
|
-
const DocumentMenu = (props) => {
|
|
20
|
-
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
21
|
-
const document = useDocument(props.id);
|
|
22
|
-
return (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
23
|
-
React.createElement(DocumentMenuContext.Provider, { value: context }, props.children ? (props.children) : document.type == "Shortcut" ? (React.createElement(ShortcutMenu, { id: props.id })) : (React.createElement(React.Fragment, null,
|
|
24
|
-
React.createElement(Move, null),
|
|
25
|
-
React.createElement(Paste, null),
|
|
26
|
-
React.createElement(Lock, null),
|
|
27
|
-
React.createElement(Unlock, null),
|
|
28
|
-
React.createElement(Publish, null),
|
|
29
|
-
React.createElement(PublishLock, null),
|
|
30
|
-
React.createElement(Access, null),
|
|
31
|
-
React.createElement(Notifications, null),
|
|
32
|
-
React.createElement(OpenTreeView, null),
|
|
33
|
-
React.createElement(OpenReferenceView, null),
|
|
34
|
-
React.createElement(Delete, { closeAside: props.closeAside }))))));
|
|
35
|
-
};
|
|
36
|
-
export default DocumentMenu;
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/DocumentMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,OAAO,EACP,WAAW,EACX,MAAM,EACN,MAAM,GACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAyC,EAAE,EAAE;IACzE,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3E,OAAO,CACN,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,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CAAC;IAC5E,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useDocument, useDocumentMenuContext, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
-
import { Button } from "@voplus/antd";
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { faLock } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
const Lock = (props) => {
|
|
8
|
-
const { disabled, action } = props;
|
|
9
|
-
const context = useDocumentMenuContext();
|
|
10
|
-
const store = useDocumentStore();
|
|
11
|
-
const document = useDocument(context.id);
|
|
12
|
-
return observe(() => !document.system && document.status == "Normal" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
13
|
-
React.createElement(FAIcon, { icon: faLock }),
|
|
14
|
-
React.createElement("span", null, "Lock"))) : null);
|
|
15
|
-
function onClick() {
|
|
16
|
-
!!action
|
|
17
|
-
? action()
|
|
18
|
-
: store.edit(context.id, { data: { Status: "Readonly" }, error: "message" });
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export default Lock;
|
|
22
|
-
//# sourceMappingURL=Lock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Lock.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Lock.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,sBAAsB,EACtB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,IAAI,GAAG,CAAC,KAKb,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,CAAC,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,CAAC,CAAC,CACjD,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;QACvD,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI;QACxB,yCAAiB,CACT,CACT,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;IAEF,SAAS,OAAO;QACf,CAAC,CAAC,MAAM;YACP,CAAC,CAAC,MAAM,EAAE;YACV,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC/E,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Button, message } from "@voplus/antd";
|
|
2
|
-
import { useDocument, useDocumentMenuContext, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { faCut } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
const Move = (props) => {
|
|
8
|
-
const { disabled, action } = props;
|
|
9
|
-
const context = useDocumentMenuContext();
|
|
10
|
-
const store = useDocumentStore();
|
|
11
|
-
const document = useDocument(context.id);
|
|
12
|
-
const parent = useDocument(document.parentId);
|
|
13
|
-
return observe(() => !document.system ? (React.createElement(Button, { type: "link", disabled: disabled || (parent === null || parent === void 0 ? void 0 : parent.readonly) == true, onClick: onClick },
|
|
14
|
-
React.createElement(FAIcon, { icon: faCut }),
|
|
15
|
-
React.createElement("span", null, "Move"))) : null);
|
|
16
|
-
function onClick() {
|
|
17
|
-
if (action)
|
|
18
|
-
return action();
|
|
19
|
-
store.cut([context.id]);
|
|
20
|
-
message.success("Document cut.");
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
export default Move;
|
|
24
|
-
//# sourceMappingURL=Move.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Move.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Move.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAEN,WAAW,EACX,sBAAsB,EACtB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,IAAI,GAAG,CAAC,KAKb,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAC,QAAe,CAA0B,CAAC;IAE9E,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAClB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,KAAI,IAAI,EAAE,OAAO,EAAE,OAAO;QACnF,oBAAC,MAAM,IAAC,IAAI,EAAE,KAAK,GAAI;QACvB,yCAAiB,CACT,CACT,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;IACF,SAAS,OAAO;QACf,IAAI,MAAM;YAAE,OAAO,MAAM,EAAE,CAAC;QAC5B,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAClC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Button } from "@voplus/antd";
|
|
3
|
-
import DocumentNotificationDialog from "../../../components/DocumentNotificationDialog";
|
|
4
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { faBell } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
8
|
-
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
9
|
-
import { useDocumentUIService } from "@voplus/morpho-document-core";
|
|
10
|
-
const Notifications = (props) => {
|
|
11
|
-
const { disabled, action } = props;
|
|
12
|
-
const [visible, setVisible] = useState(false);
|
|
13
|
-
const ui = useDocumentUIService();
|
|
14
|
-
const context = useDocumentMenuContext();
|
|
15
|
-
const document = useDocument(context.id);
|
|
16
|
-
return observe(() => !document.system ? (React.createElement(React.Fragment, null,
|
|
17
|
-
React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
18
|
-
React.createElement(FAIcon, { icon: faBell }),
|
|
19
|
-
React.createElement("span", null, "Notifications")),
|
|
20
|
-
visible && (React.createElement(DocumentNotificationDialog, { id: "", onCancel: () => setVisible(false), onSave: () => setVisible(false) })))) : null);
|
|
21
|
-
function onClick() {
|
|
22
|
-
if (action)
|
|
23
|
-
return action();
|
|
24
|
-
if (context.id)
|
|
25
|
-
setVisible(!visible);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export default Notifications;
|
|
29
|
-
//# sourceMappingURL=Notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Notifications.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Notifications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,0BAA0B,MAAM,gDAAgD,CAAC;AAExF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9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E,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,YAAY,GAAG,CAAC,KAKrB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IAEzC,OAAO,CACN,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;QACvD,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI;QAC9B,mDAA2B,CACnB,CACT,CAAC;IACF,SAAS,OAAO;QACf,CAAC,CAAC,MAAM;YACP,CAAC,CAAC,MAAM,EAAE;YACV,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACnF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Button, message } from "@voplus/antd";
|
|
2
|
-
import { useDocument, useDocumentMenuContext, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { faPaste } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
const Paste = (props) => {
|
|
8
|
-
const { disabled, action } = props;
|
|
9
|
-
const context = useDocumentMenuContext();
|
|
10
|
-
const store = useDocumentStore();
|
|
11
|
-
const document = useDocument(context.id);
|
|
12
|
-
return observe(() => !document.system ? (React.createElement(Button, { type: "link", disabled: disabled || store.moveIds.length === 0 || document.readonly, onClick: onClick },
|
|
13
|
-
React.createElement(FAIcon, { icon: faPaste }),
|
|
14
|
-
React.createElement("span", null, "Paste"))) : null);
|
|
15
|
-
function onClick() {
|
|
16
|
-
!!action ? action() : paste();
|
|
17
|
-
}
|
|
18
|
-
async function paste() {
|
|
19
|
-
if (store.moveIds.some((id) => id === context.id)) {
|
|
20
|
-
return message.warn("Cannot move to itself");
|
|
21
|
-
}
|
|
22
|
-
await store.paste(context.id);
|
|
23
|
-
message.success("Document pasted.");
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
export default Paste;
|
|
27
|
-
//# sourceMappingURL=Paste.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Paste.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Paste.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACN,WAAW,EACX,sBAAsB,EACtB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,KAAK,GAAG,CAAC,KAKd,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC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W,EAAE,IAAI,EACjB,QAAQ,EAAE,OAAO,GAChB,CACF,CACe,CACjB,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;IACF,SAAS,OAAO;QACf,IAAI,MAAM;YAAE,OAAO,MAAM,EAAE,CAAC;QAC5B,IAAI,OAAO,CAAC,EAAE;YAAE,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useDocument, useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
2
|
-
import { Button } from "@voplus/antd";
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { faWindowRestore } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
const Revert = (props) => {
|
|
8
|
-
const { disabled, action } = props;
|
|
9
|
-
const context = useDocumentMenuContext();
|
|
10
|
-
const document = useDocument(context.id);
|
|
11
|
-
return observe(() => !document.system && document.status == "Version" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
12
|
-
React.createElement(FAIcon, { icon: faWindowRestore }),
|
|
13
|
-
React.createElement("span", null, "Revert"))) : null);
|
|
14
|
-
function onClick() {
|
|
15
|
-
if (action)
|
|
16
|
-
action();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
export default Revert;
|
|
20
|
-
//# sourceMappingURL=Revert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Revert.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Revert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,MAAM,GAAG,CAAC,KAKf,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,CAAC,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,CAClD,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;QACvD,oBAAC,MAAM,IAAC,IAAI,EAAE,eAAe,GAAI;QACjC,2CAAmB,CACX,CACT,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;IAEF,SAAS,OAAO;QACf,IAAI,MAAM;YAAE,MAAM,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useDocument, useDocumentMenuContext, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
2
|
-
import { Button } from "@voplus/antd";
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { faUnlock } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
const Unlock = (props) => {
|
|
8
|
-
const { disabled, action } = props;
|
|
9
|
-
const context = useDocumentMenuContext();
|
|
10
|
-
const store = useDocumentStore();
|
|
11
|
-
const document = useDocument(context.id);
|
|
12
|
-
return observe(() => !document.system && document.status == "Readonly" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
13
|
-
React.createElement(FAIcon, { icon: faUnlock }),
|
|
14
|
-
React.createElement("span", null, "Unlock"))) : null);
|
|
15
|
-
function onClick() {
|
|
16
|
-
!!action ? action() : store.edit(context.id, { data: { Status: "Normal" }, error: "message" });
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
export default Unlock;
|
|
20
|
-
//# sourceMappingURL=Unlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Unlock.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Unlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,sBAAsB,EACtB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,MAAM,GAAG,CAAC,KAKf,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,CAAC,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,CACnD,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,E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