@voplus/morpho-document 7.0.6 → 7.0.8
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/components/DocumentPageHeadDashboard/index.d.ts +15 -0
- package/es/components/DocumentPageHeadDashboard/index.js +22 -0
- package/es/components/DocumentPageHeadDashboard/index.js.map +1 -0
- package/es/components/TextDefaultView/index.js +5 -21
- package/es/components/TextDefaultView/index.js.map +1 -1
- package/es/components/ViewFrame/index.js +8 -11
- package/es/components/ViewFrame/index.js.map +1 -1
- package/es/controls/DocumentActionButtons/index.d.ts +7 -0
- package/es/controls/DocumentActionButtons/index.js +17 -0
- package/es/controls/DocumentActionButtons/index.js.map +1 -0
- package/es/data/action-plan/ActionPlanStore.d.ts +3 -1
- package/es/data/action-plan/ActionPlanStore.js +14 -0
- package/es/data/action-plan/ActionPlanStore.js.map +1 -1
- package/es/modules/action-plan/components/ActionItem/index.js +15 -8
- package/es/modules/action-plan/components/ActionItem/index.js.map +1 -1
- package/es/modules/action-plan/controls/ActionPlanMenu/index.js +9 -2
- package/es/modules/action-plan/controls/ActionPlanMenu/index.js.map +1 -1
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js +3 -22
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js.map +1 -1
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js +3 -20
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js.map +1 -1
- package/es/modules/graph/pages/GraphDefaultView/index.js +6 -19
- package/es/modules/graph/pages/GraphDefaultView/index.js.map +1 -1
- package/es/modules/message-template/components/MessageTemplateProperties/index.js +25 -2
- package/es/modules/message-template/components/MessageTemplateProperties/index.js.map +1 -1
- package/es/modules/message-template/components/MessageTemplateSelect/index.d.ts +1 -0
- package/es/modules/message-template/components/MessageTemplateSelect/index.js +64 -2
- package/es/modules/message-template/components/MessageTemplateSelect/index.js.map +1 -1
- package/es/modules/message-template/components/MessageTemplateSelect/index.less +7 -0
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js +3 -21
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js.map +1 -1
- package/es/modules/page/views/PageDefaultView/index.js +5 -22
- package/es/modules/page/views/PageDefaultView/index.js.map +1 -1
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js +3 -22
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js.map +1 -1
- package/es/pages/FileContentPage/index.js +8 -23
- package/es/pages/FileContentPage/index.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js +6 -20
- package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +6 -21
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/index.d.ts +0 -2
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/index.js +7 -4
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/index.js.map +1 -1
- package/es/pages/WordFillPage/index.js +5 -18
- package/es/pages/WordFillPage/index.js.map +1 -1
- package/es/services/SignActivityLogRenderer.js +8 -8
- package/es/services/SignActivityLogRenderer.js.map +1 -1
- package/es/views/ExplorerView/ExplorerView2.js +6 -30
- package/es/views/ExplorerView/ExplorerView2.js.map +1 -1
- package/es/views/TreeView/index.js +3 -2
- package/es/views/TreeView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,81 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Select, Modal, Button } from "antd";
|
|
3
4
|
import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
|
-
import { Select } from "antd";
|
|
5
5
|
import { useMessageTemplateListEffect } from "../../../../data/message-template";
|
|
6
|
+
import { faExpand } from "@fortawesome/pro-regular-svg-icons/faExpand";
|
|
7
|
+
import { faCircleCheck } from "@fortawesome/pro-solid-svg-icons";
|
|
8
|
+
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
9
|
+
import "./index.less";
|
|
6
10
|
const MessageTemplateSelect = (props) => {
|
|
7
11
|
const { defaultValue, isLayout } = props;
|
|
8
12
|
const [timer, setTimer] = useState();
|
|
13
|
+
const [modalOpen, setModalOpen] = useState(false);
|
|
14
|
+
const [modalItem, setModalItem] = useState(null);
|
|
15
|
+
const [selectedValue, setSelectedValue] = useState(defaultValue);
|
|
16
|
+
const [selectOpen, setSelectOpen] = useState(false);
|
|
9
17
|
const list = useCreateListDataState({
|
|
10
18
|
filterDefaults: {
|
|
19
|
+
includes: "layout,preview",
|
|
11
20
|
filters: [{ c: "IsLayout", o: "=", l: "And", v1: JSON.stringify(isLayout) }],
|
|
12
21
|
},
|
|
13
22
|
}, []);
|
|
14
23
|
useMessageTemplateListEffect(null, (result) => {
|
|
15
24
|
list.union(result);
|
|
16
25
|
}, list.filters.options);
|
|
17
|
-
|
|
26
|
+
function handleExpand(option) {
|
|
27
|
+
setSelectOpen(false);
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
setModalItem(option.data);
|
|
30
|
+
setModalOpen(true);
|
|
31
|
+
}, 100);
|
|
32
|
+
}
|
|
33
|
+
function handleModalOk() {
|
|
34
|
+
var _a;
|
|
35
|
+
if (modalItem) {
|
|
36
|
+
setSelectedValue(modalItem.id);
|
|
37
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, modalItem);
|
|
38
|
+
setModalOpen(false);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function handleModalCancel() {
|
|
42
|
+
setModalOpen(false);
|
|
43
|
+
}
|
|
44
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
45
|
+
React.createElement(Select, { ...props, showSearch: true, allowClear: true, defaultValue: defaultValue, value: selectedValue, style: { width: "100%" }, loading: list.loading, filterOption: false, placeholder: "Select MessageTemplate", popupClassName: "select-message-template-popup", optionLabelProp: "label", onSearch: onSearch, onChange: handleChange, options: list.data.map((item) => ({
|
|
46
|
+
value: item.id,
|
|
47
|
+
label: item.name,
|
|
48
|
+
name: item.name,
|
|
49
|
+
id: item.id,
|
|
50
|
+
preview: item.preview,
|
|
51
|
+
})), open: selectOpen, onOpenChange: setSelectOpen, optionRender: (option) => (React.createElement("div", { className: "flex flex-col items-center py-4 transition-shadow duration-200 w-full max-w-md mx-auto" },
|
|
52
|
+
React.createElement("div", { className: "w-full mb-2 text-left truncate text-[#868686] font-semibold text-[14px] leading-[19px]" }, option.data.name),
|
|
53
|
+
React.createElement("div", { className: "w-full flex justify-center" },
|
|
54
|
+
React.createElement("div", { className: "relative w-full aspect-video overflow-hidden flex items-center justify-center rounded-[5px] shadow-[0_3px_6px_#0000001A]" },
|
|
55
|
+
React.createElement("iframe", { srcDoc: `<style>html,body{margin:0;padding:0;overflow:hidden;width:100vw;height:100vh;}body>*{box-sizing:border-box;}body{display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;}::-webkit-scrollbar{display:none;}#container{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;}body>div,body>table,body>img,body>section,body>main,body>form{max-width:100vw;max-height:100vh;object-fit:contain;}</style><div style='width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden;'><div style='zoom:0.6;width:100%;height:100%;display:flex;align-items:center;justify-content:center;'>${option.data.preview}</div></div>`, title: option.data.name, className: "absolute top-0 left-0 w-full h-full bg-white pointer-events-none", frameBorder: "0", allowFullScreen: true, style: {
|
|
56
|
+
width: "100%",
|
|
57
|
+
height: "100%",
|
|
58
|
+
pointerEvents: "none",
|
|
59
|
+
background: "white",
|
|
60
|
+
border: "none",
|
|
61
|
+
overflow: "hidden",
|
|
62
|
+
} }),
|
|
63
|
+
React.createElement("button", { type: "button", className: "message-template-preview-expand absolute bottom-2 right-2 w-7 h-7 bg-[#E6E6E6] rounded-[5px] flex items-center justify-center z-10 hover:bg-[#d4d4d4]", onClick: (e) => {
|
|
64
|
+
e.stopPropagation();
|
|
65
|
+
handleExpand(option);
|
|
66
|
+
} },
|
|
67
|
+
React.createElement(FAIcon, { icon: faExpand })))))) }),
|
|
68
|
+
React.createElement(Modal, { open: modalOpen, title: modalItem === null || modalItem === void 0 ? void 0 : modalItem.name, footer: [
|
|
69
|
+
React.createElement(Button, { key: "ok", type: "primary", icon: React.createElement(FAIcon, { icon: faCircleCheck }), onClick: handleModalOk }, "Use This Template"),
|
|
70
|
+
], onCancel: handleModalCancel, width: 800 },
|
|
71
|
+
React.createElement("div", { className: "w-full", style: { height: 500 } },
|
|
72
|
+
React.createElement("iframe", { srcDoc: `<style>html,body{margin:0;padding:0;width:100vw;height:100vh;overflow:auto;}body{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100vw;height:100vh;}::-webkit-scrollbar{display:none;}body>*{box-sizing:border-box;max-width:100vw;}#container{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;}body>div,body>table,body>img,body>section,body>main,body>form{max-width:100vw;object-fit:contain;}</style><div style='width:100vw;min-height:100vh;display:flex;align-items:flex-start;justify-content:center;overflow:auto;'><div style='width:100%;height:auto;display:flex;align-items:center;justify-content:center;'>${modalItem === null || modalItem === void 0 ? void 0 : modalItem.preview}</div></div>`, title: modalItem === null || modalItem === void 0 ? void 0 : modalItem.name, className: "w-full h-full bg-white", frameBorder: "0", allowFullScreen: true, style: {
|
|
73
|
+
width: "100%",
|
|
74
|
+
height: "100%",
|
|
75
|
+
background: "white",
|
|
76
|
+
border: "none",
|
|
77
|
+
overflow: "auto",
|
|
78
|
+
} }))))));
|
|
18
79
|
function onSearch(val) {
|
|
19
80
|
if (timer)
|
|
20
81
|
clearTimeout(timer);
|
|
@@ -25,6 +86,7 @@ const MessageTemplateSelect = (props) => {
|
|
|
25
86
|
}
|
|
26
87
|
function handleChange(id) {
|
|
27
88
|
var _a, _b;
|
|
89
|
+
setSelectedValue(id);
|
|
28
90
|
if (id) {
|
|
29
91
|
const messageTemplate = list.data.find((d) => d.id === id);
|
|
30
92
|
if (messageTemplate)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAe,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAoB,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,CAC7B,KAIC,EACA,EAAE;IACH,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAA8B,CAAC;IACjE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,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E;YACf,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;YACxB,QAAQ,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC,EAAE,IAAI,CAAQ,CACf,CAAC;IACH,CAAC;IAED,SAAS,YAAY,CAAC,EAAU;;QAC/B,gBAAgB,CAAC,EAAE,CAAC,CAAC;QACrB,IAAI,EAAE,EAAE,CAAC;YACR,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;YAC3D,IAAI,eAAe;gBAAE,MAAA,KAAK,CAAC,QAAQ,sDAAG,eAAe,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACP,MAAA,KAAK,CAAC,QAAQ,sDAAG,SAAS,CAAC,CAAC;QAC7B,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG;IACpC,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { faCodeRegular, faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
4
3
|
import { useMessageTemplate } from "../../../../data/message-template";
|
|
5
|
-
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
6
4
|
import MessageTemplateProperties from "../../components/MessageTemplateProperties";
|
|
7
5
|
import MessageTemplateTabs from "../../components/MessageTemplateTabs";
|
|
8
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
9
|
-
import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
|
|
10
6
|
import { SendPreviewEmail } from "../../controls/MessageTemplateMenu/items";
|
|
11
|
-
import
|
|
12
|
-
import { Space } from "antd";
|
|
7
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
13
8
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
14
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
15
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
16
9
|
import styles from "./index.less";
|
|
17
10
|
/** The MessageTemplate Page component with router parameters support. */
|
|
18
11
|
const MessageTemplateDefaultView = ({ id }) => {
|
|
19
|
-
const frame = useFrame();
|
|
20
|
-
if (frame)
|
|
21
|
-
frame.header = null;
|
|
22
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
23
|
-
const [packUp, setPackUp] = useState(false);
|
|
24
12
|
const messageTemplate = useMessageTemplate(id, {
|
|
25
13
|
reload: true,
|
|
26
14
|
includes: "layout,preview,path",
|
|
27
15
|
});
|
|
28
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["message-template-default-view"], header: React.createElement(
|
|
29
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
30
|
-
React.createElement(SendPreviewEmail, null),
|
|
31
|
-
React.createElement(Lock, null),
|
|
32
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
33
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
34
|
-
}, blankMenu: packUp ? [] : ["SendPreviewEmail", "Lock", "Unlock"] }) }), properties: React.createElement(MessageTemplateProperties, { id: id }) },
|
|
16
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["message-template-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(SendPreviewEmail, null), blankMenu: ["SendPreviewEmail"] }), properties: React.createElement(MessageTemplateProperties, { id: id }) },
|
|
35
17
|
React.createElement(MessageTemplateTabs, { id: id, templateCanEdit: true }))));
|
|
36
18
|
};
|
|
37
19
|
export default MessageTemplateDefaultView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/pages/MessageTemplateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/pages/MessageTemplateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,yBAAyB,MAAM,4CAA4C,CAAC;AACnF,OAAO,mBAAmB,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,yEAAyE;AACzE,MAAM,0BAA0B,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAC7D,MAAM,eAAe,GAAG,kBAAkB,CAAC,EAAE,EAAE;QAC9C,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,qBAAqB;KAC/B,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,+BAA+B,CAAC,EAClD,MAAM,EACL,oBAAC,yBAAyB,IACzB,EAAE,EAAE,EAAE,EACN,aAAa,EAAE,oBAAC,gBAAgB,OAAG,EACnC,SAAS,EAAE,CAAC,kBAAkB,CAAC,GAC9B,EAEH,UAAU,EAAE,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,GAAI;QAEjD,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,eAAe,SAAG,CAC5B,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
import React, { useEffect, useState
|
|
2
|
-
import { Skeleton
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Skeleton } from "antd";
|
|
3
3
|
import { PageContext, PageContextState, usePage } from "../../data";
|
|
4
|
-
import { faEllipsisVerticalSolid, faBookBlankSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
4
|
import { useTabItem } from "@voplus/morpho-data";
|
|
6
5
|
import { observe } from "@voplus/morpho-ui";
|
|
7
6
|
import { runInAction } from "mobx";
|
|
8
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
9
|
-
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
10
7
|
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
11
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
12
8
|
import PageItems from "../../components/PageItems";
|
|
13
|
-
import {
|
|
9
|
+
import { Print } from "../../../../controls/DocumentMenu/items";
|
|
14
10
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
15
|
-
import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
|
|
16
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
17
11
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
12
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
18
13
|
import "./index.less";
|
|
19
14
|
/** The Page Page component with router parameters support. */
|
|
20
15
|
const PageDefaultView = ({ id }) => {
|
|
21
|
-
const frame = useFrame();
|
|
22
|
-
if (frame) {
|
|
23
|
-
frame.header = null;
|
|
24
|
-
}
|
|
25
16
|
const [context] = useState(new PageContextState());
|
|
26
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
27
|
-
const [packUp, setPackUp] = useState(false);
|
|
28
17
|
const page = usePage(id, { reload: true, includes: "tags,versions" });
|
|
29
18
|
const tab = useTabItem();
|
|
30
19
|
useEffect(() => {
|
|
@@ -32,13 +21,7 @@ const PageDefaultView = ({ id }) => {
|
|
|
32
21
|
}, [page === null || page === void 0 ? void 0 : page.name]);
|
|
33
22
|
return observe(() => (React.createElement(PageContext.Provider, { value: context },
|
|
34
23
|
React.createElement(Skeleton, { active: true, loading: !page.loaded },
|
|
35
|
-
React.createElement(DefaultViewLayout, { className: "page-default-view", header: React.createElement(
|
|
36
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
37
|
-
React.createElement(Print, { url: `page/print/${page.id}` }),
|
|
38
|
-
React.createElement(Lock, null),
|
|
39
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
40
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
41
|
-
}, blankMenu: packUp ? [] : ["Print", "Lock", "Unlock"] }) }), properties: React.createElement("div", { className: "properties-list document-properties-list" },
|
|
24
|
+
React.createElement(DefaultViewLayout, { className: "page-default-view", header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(Print, { url: `page/print/${page.id}` }), blankMenu: ["Print"] }), properties: React.createElement("div", { className: "properties-list document-properties-list" },
|
|
42
25
|
React.createElement(DocumentProperties, { id: id })) },
|
|
43
26
|
React.createElement(DocumentTabs, { id: id, details:
|
|
44
27
|
/* pageItem List */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/views/PageDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/views/Page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AC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QACnC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;YACrC,oBAAC,iBAAiB,IACjB,SAAS,EAAC,mBAAmB,EAC7B,MAAM,EACL,oBAAC,yBAAyB,IACzB,EAAE,EAAE,EAAE,EACN,aAAa,EAAE,oBAAC,KAAK,IAAC,GAAG,EAAE,cAAc,IAAI,CAAC,EAAE,EAAE,GAAI,EACtD,SAAS,EAAE,CAAC,OAAO,CAAC,GACnB,EAEH,UAAU,EACT,6BAAK,SAAS,EAAC,0CAA0C;oBACxD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACzB;gBAGP,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,OAAO;oBACN,mBAAmB;oBACnB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;wBACxC,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI,CACpC,GAEX,CACiB,CACV,CACW,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,CAAC,YAAY,GAAG;IAC9B,MAAM,EAAE,KAAK;CACb,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -1,41 +1,22 @@
|
|
|
1
|
-
import React, { useMemo
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { RegisteredDocumentContext, RegisteredDocumentState, } from "../../RegisteredDocumentContext";
|
|
4
4
|
import RegisteredDocumentProperties from "../../components/RegisteredDocumentProperties";
|
|
5
5
|
import RegisteredDocumentTabs from "../../components/RegisteredDocumentTabs";
|
|
6
6
|
import styles from "./index.less";
|
|
7
|
-
import
|
|
8
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
9
|
-
import { Space } from "antd";
|
|
7
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
10
8
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
11
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
12
|
-
import { Lock, Unlock } from "../../../../controls/DocumentMenu/items";
|
|
13
|
-
import { faFileZipperRegular, faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
14
|
-
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
15
|
-
import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
|
|
16
9
|
import { ProxyContext, ProxyContextState, } from "@voplus/morpho-document-core/es/data/context/ProxyContext";
|
|
17
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
18
10
|
import { useParams } from "react-router-dom";
|
|
19
11
|
/** The RegisteredDocument Page component with router parameters support. */
|
|
20
12
|
const RegisteredDocumentDefaultView = (props) => {
|
|
21
13
|
const params = useParams();
|
|
22
14
|
const id = props.id || params.id || "";
|
|
23
|
-
const frame = useFrame();
|
|
24
|
-
if (frame)
|
|
25
|
-
frame.header = null;
|
|
26
|
-
const [packUp, setPackUp] = useState(false);
|
|
27
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
28
15
|
const context = useMemo(() => new RegisteredDocumentState("DefaultView"), [props.id]);
|
|
29
16
|
const proxyContext = useMemo(() => new ProxyContextState("RegisteredDocument", id), [id]);
|
|
30
|
-
const documentRegister = useDocument(id, { reload: true, includes: "tags,path" });
|
|
31
17
|
return observe(() => (React.createElement(RegisteredDocumentContext.Provider, { value: context },
|
|
32
18
|
React.createElement(ProxyContext.Provider, { value: proxyContext },
|
|
33
|
-
React.createElement(DefaultViewLayout, { className: styles["registered-document-default-view"], header: React.createElement(
|
|
34
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
35
|
-
React.createElement(Lock, null),
|
|
36
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
37
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
38
|
-
}, blankMenu: packUp ? [] : ["Lock", "Unlock"] }) }), properties: React.createElement(RegisteredDocumentProperties, { id: id }) },
|
|
19
|
+
React.createElement(DefaultViewLayout, { className: styles["registered-document-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id }), properties: React.createElement(RegisteredDocumentProperties, { id: id }) },
|
|
39
20
|
React.createElement(RegisteredDocumentTabs, { id: id }))))));
|
|
40
21
|
};
|
|
41
22
|
export default RegisteredDocumentDefaultView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/registered-document/pages/RegisteredDocumentDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/registered-document/pages/RegisteredDocumentDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,yBAAyB,EACzB,uBAAuB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,4BAA4B,MAAM,+CAA+C,CAAC;AACzF,OAAO,sBAAsB,MAAM,yCAAyC,CAAC;AAC7E,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,EACN,YAAY,EACZ,iBAAiB,GACjB,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,4EAA4E;AAC5E,MAAM,6BAA6B,GAAG,CAAC,KAAsB,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;IACvC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,uBAAuB,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IACtF,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,oBAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAE1F,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QACjD,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY;YACzC,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,kCAAkC,CAAC,EACrD,MAAM,EAAE,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC7C,UAAU,EAAE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;gBAEpD,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CACf,CACG,CACY,CACrC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -3,48 +3,33 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
4
|
import { Download } from "../../controls/ToolBar/buttons";
|
|
5
5
|
import { useEnvelopeStore } from "../../data/envelope";
|
|
6
|
-
import
|
|
7
|
-
import { faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
6
|
+
import DocumentPageHeadDashboard from "../../components/DocumentPageHeadDashboard";
|
|
8
7
|
import { ToolBarContext, ToolBarState } from "../../controls/ToolBar/ToolBarState";
|
|
9
|
-
import {
|
|
10
|
-
import { useDocument,
|
|
8
|
+
import { DownloadLetter } from "../../controls/DocumentMenu/items";
|
|
9
|
+
import { useDocument, useDocumentStore } from "@voplus/morpho-document-core";
|
|
11
10
|
import { Space } from "antd";
|
|
12
11
|
import { State } from "./state";
|
|
13
12
|
import { Versions } from "../../controls/ToolBar/buttons";
|
|
14
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
15
13
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
16
|
-
import DocumentBreadCrumbsPath from "../../components/DocumentBreadCrumbsPath";
|
|
17
14
|
import DocumentProperties from "../../components/DocumentProperties";
|
|
18
15
|
import PDFFileViewer from "../../components/FileViewer/PDF";
|
|
19
16
|
import FileViewer from "../../components/FileViewer";
|
|
20
|
-
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
21
17
|
import style from "./index.less";
|
|
22
18
|
/** The File Page component with router parameters support. */
|
|
23
19
|
const FileContent = ({ id }) => {
|
|
24
|
-
const frame = useFrame();
|
|
25
|
-
if (frame)
|
|
26
|
-
frame.header = null;
|
|
27
|
-
const metas = useMetaStore();
|
|
28
20
|
const store = useDocumentStore();
|
|
29
21
|
const envelopeStore = useEnvelopeStore();
|
|
30
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
31
|
-
const [packUp, setPackUp] = useState(false);
|
|
32
22
|
const [tool] = useState(new ToolBarState(store));
|
|
33
23
|
tool.props = { id: id };
|
|
34
24
|
const state = useMemo(() => new State(id, store), []);
|
|
35
25
|
state.file = useDocument(id, { includes: "path,letter" });
|
|
36
26
|
return observe(() => {
|
|
37
27
|
var _a, _b;
|
|
38
|
-
return (React.createElement(DefaultViewLayout, { className: style["file-default-view"], header: React.createElement(
|
|
39
|
-
React.createElement(
|
|
40
|
-
React.createElement(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
React.createElement(Unlock, null),
|
|
44
|
-
((_a = state.file.letter) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(DownloadLetter, { parentId: state.file.parentId, letterId: state.file.letter.id })),
|
|
45
|
-
React.createElement(Versions, { text: "Versions" })))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
46
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
47
|
-
}, blankMenu: packUp ? [] : ["Lock", "Unlock", "DownloadLetter"] }) }), properties: React.createElement(Scrollbars, { autoHide: true },
|
|
28
|
+
return (React.createElement(DefaultViewLayout, { className: style["file-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(ToolBarContext.Provider, { value: tool },
|
|
29
|
+
React.createElement(Space, { className: "menu-buttons" },
|
|
30
|
+
React.createElement(Download, { text: "Download" }),
|
|
31
|
+
((_a = state.file.letter) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(DownloadLetter, { parentId: state.file.parentId, letterId: state.file.letter.id })),
|
|
32
|
+
React.createElement(Versions, { text: "Versions" }))), blankMenu: ["DownloadLetter"] }), properties: React.createElement(Scrollbars, { autoHide: true },
|
|
48
33
|
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
49
34
|
React.createElement(DocumentProperties, { id: id }))) }, ((_b = state.file.letter) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(PDFFileViewer, { id: id, download: async () => {
|
|
50
35
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pages/FileContentPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAA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AM,0CAAE,EAAE,EAAC,CAAC,CAAC,CACxB,oBAAC,aAAa,IACb,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,KAAK,IAAI,EAAE;;gBACpB,OAAO,MAAM,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAS,EAAE,MAAA,MAAA,KAAK,CAAC,IAAI,CAAC,MAAM,0CAAE,EAAE,mCAAI,EAAE,EAAE;oBACtF,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC,GACA,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAI,CAChE,CACkB,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,39 +1,30 @@
|
|
|
1
|
-
import React, { useEffect, useState,
|
|
2
|
-
import { Breadcrumb, Menu, Button, Tooltip
|
|
1
|
+
import React, { useEffect, useState, useRef } from "react";
|
|
2
|
+
import { Breadcrumb, Menu, Button, Tooltip } from "antd";
|
|
3
3
|
import { runInAction } from "mobx";
|
|
4
4
|
import { State } from "./state";
|
|
5
|
-
import { useDocumentStore, useMetaStore
|
|
6
|
-
import {
|
|
7
|
-
import { useFrame } from "../../../components/ViewFrame/ViewFrameContext";
|
|
8
|
-
import { FontAwesomeIcon as FAIcon, faMagnifyingGlassSolid, faBooksSolid, faEllipsisVerticalSolid, faExpandSolid, faCompressSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
+
import { useDocumentStore, useMetaStore } from "@voplus/morpho-document-core";
|
|
6
|
+
import { FontAwesomeIcon as FAIcon, faMagnifyingGlassSolid, faExpandSolid, faCompressSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
9
7
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
10
8
|
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
|
11
9
|
import { useLibrary } from "../../../data/library";
|
|
10
|
+
import DocumentPageHeadDashboard from "../../../components/DocumentPageHeadDashboard";
|
|
12
11
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
13
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
14
12
|
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
15
|
-
import DocumentBreadCrumbsPath from "../../../components/DocumentBreadCrumbsPath";
|
|
16
13
|
import LibraryItemDefaultView from "../components/LibraryItemDefaultView";
|
|
17
14
|
import TimeoutInput from "@voplus/morpho-ui/es/controls/TimeoutInput";
|
|
18
15
|
import NewDocumentForm from "../../../components/NewDocumentForm";
|
|
19
16
|
import DocumentTree from "../components/DocumentTree";
|
|
20
|
-
import ToolBar from "../../../controls/ToolBar/ToolBar2";
|
|
21
17
|
import Routes from "../../../routes";
|
|
22
18
|
import "./index.less";
|
|
23
19
|
/** The Library Page component with router parameters support. */
|
|
24
20
|
const LibraryDefaultView = ({ id }) => {
|
|
25
21
|
var _a, _b;
|
|
26
|
-
const [packUp, setPackUp] = useState(false);
|
|
27
22
|
const layout = useLayout();
|
|
28
23
|
const library = useLibrary(id, { reload: true, includes: "tags,path" });
|
|
29
24
|
const store = useDocumentStore();
|
|
30
25
|
const meta = useMetaStore();
|
|
31
26
|
const tab = useTabItem();
|
|
32
27
|
const treeRef = useRef();
|
|
33
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
34
|
-
const frame = useFrame();
|
|
35
|
-
if (frame)
|
|
36
|
-
frame.header = null;
|
|
37
28
|
useEffect(() => {
|
|
38
29
|
runInAction(() => (tab.title = library.name));
|
|
39
30
|
}, [library === null || library === void 0 ? void 0 : library.name]);
|
|
@@ -45,12 +36,7 @@ const LibraryDefaultView = ({ id }) => {
|
|
|
45
36
|
if (current)
|
|
46
37
|
runInAction(() => (state.contentId = current || ""));
|
|
47
38
|
useRenderOnChange(() => state.filterType);
|
|
48
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: "library-default-view2", header: React.createElement(
|
|
49
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
50
|
-
React.createElement(Lock, null),
|
|
51
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
52
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
53
|
-
}, blankMenu: packUp ? [] : ["Lock", "Unlock"] }) }), propertiesTitle: "CONTEXT PANEL", properties: React.createElement("div", { className: "context-panel" },
|
|
39
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: "library-default-view2", header: React.createElement(DocumentPageHeadDashboard, { id: id }), propertiesTitle: "CONTEXT PANEL", properties: React.createElement("div", { className: "context-panel" },
|
|
54
40
|
React.createElement("div", { className: "toc-tree-header" },
|
|
55
41
|
React.createElement(TimeoutInput, { className: "toc-tree-search", prefix: React.createElement(FAIcon, { icon: faMagnifyingGlassSolid, color: "#868686" }), allowClear: true, onIdle: (e) => (state.filterType = { c: "Name", o: "contains", v1: e, l: "And" }) }),
|
|
56
42
|
React.createElement(Tooltip, { title: state.collapse ? "Expand All" : "Collapse All" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/Library/LibraryDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/Library/LibraryDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,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AC,SAAS,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;YAC/D,CAAC;iBAAM,CAAC;gBACP,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC/E,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC,EAAE,CAAC;YAC1B,CAAC;YACD,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,cAAc,CAAC,UAAkB;QACzC,IAAI,UAAU,EAAE,CAAC;YAChB,OAAO;YACP,MAAM,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;YAC1D,oBAAoB;YACpB,IAAI,aAAa,EAAE,CAAC;gBACnB,aAAa,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;YACtE,CAAC;QACF,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,35 +1,26 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useState } from "react";
|
|
2
2
|
import { autorun } from "mobx";
|
|
3
|
-
import { Spin
|
|
3
|
+
import { Spin } from "antd";
|
|
4
4
|
import { useTabItem } from "@voplus/morpho-data";
|
|
5
5
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
6
6
|
import { AsideContent, observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
7
7
|
import { EnvelopeContext, EnvelopeContextState } from "../../../../data/envelope/EnvelopeContext";
|
|
8
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
9
8
|
import { SendReview, SendInvite, SendReminders } from "../controls/EnvelopeMenu/items";
|
|
10
|
-
import { FontAwesomeIcon as FAIcon, faFileSignatureSolid, faEllipsisVerticalSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
11
9
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
12
10
|
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
13
11
|
import { useEnvelope, useEnvelopeStore } from "../../../../data/envelope";
|
|
14
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
15
12
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
16
|
-
import
|
|
13
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
17
14
|
import EnvelopeProperties from "../components/EnvelopeProperties";
|
|
18
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
19
15
|
import EnvelopeTabs from "../components/EnvelopeTabs";
|
|
20
|
-
import EnvelopeMenu from "../controls/EnvelopeMenu";
|
|
21
16
|
import LetterList from "../../Letter/LetterList";
|
|
22
17
|
import styles from "./index.less";
|
|
23
18
|
/** create Type:'signEnvelope' */
|
|
24
19
|
/** The Envelope Page component with router parameters support. */
|
|
25
20
|
const EnvelopeDefaultView = ({ id }) => {
|
|
26
21
|
const frame = useFrame();
|
|
27
|
-
if (frame)
|
|
28
|
-
frame.header = null;
|
|
29
22
|
const tab = useTabItem();
|
|
30
23
|
const envelopStore = useEnvelopeStore();
|
|
31
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
32
|
-
const [packUp, setPackUp] = useState(false);
|
|
33
24
|
const [context] = useState(new EnvelopeContextState(id, envelopStore));
|
|
34
25
|
const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
|
|
35
26
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
@@ -43,16 +34,10 @@ const EnvelopeDefaultView = ({ id }) => {
|
|
|
43
34
|
React.createElement("div", { className: styles["envelope-tab-view_aside"] },
|
|
44
35
|
React.createElement(EnvelopeTabs, { id: id }))), { span: 9 });
|
|
45
36
|
}, []);
|
|
46
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["envelope-default-view"], header: React.createElement(
|
|
47
|
-
React.createElement(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
React.createElement(SendReminders, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
51
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
52
|
-
menus: {
|
|
53
|
-
default: React.createElement(EnvelopeMenu, { id: id, defaultView: !packUp }),
|
|
54
|
-
},
|
|
55
|
-
} }) }), properties: React.createElement(EnvelopeProperties, { id: id }) },
|
|
37
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["envelope-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(React.Fragment, null,
|
|
38
|
+
React.createElement(SendReview, null),
|
|
39
|
+
React.createElement(SendInvite, null),
|
|
40
|
+
React.createElement(SendReminders, null)), blankMenu: ["SendReview", "SendInvite", "SendReminders"] }), properties: React.createElement(EnvelopeProperties, { id: id }) },
|
|
56
41
|
React.createElement(EnvelopeContext.Provider, { value: context }, !envelope.loaded || context.reloadLoading ? (React.createElement("div", { className: "envelope-loading" },
|
|
57
42
|
React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 32 }, spin: true }) }))) : (React.createElement(LetterList, { id: id, size: "h4" }))))));
|
|
58
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Signature/Envelope/EnvelopeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,C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