@voplus/morpho-document 1.4.154 → 1.4.155
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/pages/Signature/Envelope/EnvelopeDefaultView/index.d.ts +0 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +30 -19
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.less +48 -24
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.d.ts +26 -0
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js +35 -0
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeStatusLabel/index.d.ts +7 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeStatusLabel/index.js +9 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeStatusLabel/index.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeStatusLabel/index.less +20 -0
- package/es/pages/Signature/data/envelope/interfaces.d.ts +2 -1
- package/es/pages/Signature/data/envelope/type.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,35 +1,46 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
import { observe, useAsideContentContext, useAutorunEffect } from "@voplus/morpho-ui";
|
|
4
|
-
import {
|
|
1
|
+
import styles from "./index.less";
|
|
2
|
+
import React, { useEffect, useState, useMemo } from "react";
|
|
3
|
+
import { observe, useAsideContentContext, useAutorunEffect, AsideContent } from "@voplus/morpho-ui";
|
|
4
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
5
|
+
import { EnvelopeContext, EnvelopeContextState } from "../../data/EnvelopeContext";
|
|
6
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
7
|
+
import { Spin } from "@voplus/antd";
|
|
8
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
5
9
|
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useEnvelope } from "../../data/envelope";
|
|
10
|
+
import { runInAction, autorun } from "mobx";
|
|
11
|
+
import LetterList from "../../Letter/LetterList";
|
|
12
|
+
import EnvelopeProperties from "../components/EnvelopeProperties";
|
|
13
|
+
import { useEnvelope, useEnvelopeStore } from "../../data/envelope";
|
|
10
14
|
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
11
|
-
import { useTabItem } from "@voplus/morpho-data";
|
|
15
|
+
import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
|
|
12
16
|
/** create Type:'signEnvelope' */
|
|
13
17
|
/** The Envelope Page component with router parameters support. */
|
|
14
18
|
const EnvelopeDefaultView = ({ id }) => {
|
|
19
|
+
const store = new TabItemStore({ url: "" });
|
|
15
20
|
const frame = useFrame();
|
|
21
|
+
const envelopStore = useEnvelopeStore();
|
|
16
22
|
const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
|
|
17
|
-
const
|
|
23
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
24
|
+
const [context] = useState(new EnvelopeContextState(id, envelopStore));
|
|
25
|
+
const envelope = useEnvelope(id, { reload: true, includes: "tags,versions" });
|
|
18
26
|
const tab = useTabItem();
|
|
19
27
|
useAutorunEffect(() => {
|
|
20
28
|
runInAction(() => (tab.title = envelope === null || envelope === void 0 ? void 0 : envelope.name));
|
|
21
29
|
});
|
|
30
|
+
useEffect(() => autorun(() => context.set(envelope.letters)), [id]);
|
|
22
31
|
useEffect(() => {
|
|
23
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(
|
|
32
|
+
runInAction(() => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(ViewContext.Provider, { value: view },
|
|
33
|
+
React.createElement("div", { className: styles["envelope-tab-view_aside"] },
|
|
34
|
+
React.createElement(DocumentTabs, { id: id, active: "Activities", propertiesSort: ["Activities", "docTab", "Links"] }))), { span: 9 }));
|
|
24
35
|
}, []);
|
|
25
|
-
|
|
26
|
-
React.createElement(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
?
|
|
32
|
-
|
|
36
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
37
|
+
React.createElement(TabItemContext.Provider, { value: store },
|
|
38
|
+
React.createElement(MainContent, { className: styles["envelope-default-view"], asideable: frame ? false : true },
|
|
39
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
40
|
+
React.createElement(EnvelopeProperties, { id: id, headerVisible: true })),
|
|
41
|
+
React.createElement("div", { className: "envelope-context" },
|
|
42
|
+
React.createElement(EnvelopeContext.Provider, { value: context }, envelope.loading || context.reloadLoading ? (React.createElement("div", { className: "envelope-loading" },
|
|
43
|
+
React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 32 }, spin: true }) }))) : (React.createElement(LetterList, { id: id, size: "h4" })))))))));
|
|
33
44
|
};
|
|
34
45
|
export default EnvelopeDefaultView;
|
|
35
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Signature/Envelope/EnvelopeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Signature/Envelope/EnvelopeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mB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,IAAI;gBACvF,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;oBAC3B,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,SAAG,CAC3B;gBAClB,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IACtC,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAC5C,6BAAK,SAAS,EAAC,kBAAkB;wBAChC,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,eAAe,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG,GAAI,CACjE,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,IAAI,GAAG,CAChC,CACyB,CACtB,CACO,CACW,CACxB,CACH,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,34 +1,58 @@
|
|
|
1
1
|
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
background-color: @background-color-base;
|
|
9
|
-
> header {
|
|
10
|
-
box-shadow: 2px 2px 5px #e8e8e8;
|
|
11
|
-
background-color: @component-background;
|
|
2
|
+
|
|
3
|
+
.envelope-default-view {
|
|
4
|
+
:global {
|
|
5
|
+
.main-content-nav {
|
|
6
|
+
width: 370px;
|
|
7
|
+
padding: 0;
|
|
12
8
|
}
|
|
13
|
-
.envelope-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
.envelope-context {
|
|
10
|
+
display: flex;
|
|
11
|
+
padding: 0;
|
|
12
|
+
background-color: #f5f5f5;
|
|
13
|
+
> div {
|
|
14
|
+
flex: 1;
|
|
15
|
+
}
|
|
16
|
+
.letter-view-upload {
|
|
17
|
+
margin: 1rem 1rem 0 1rem;
|
|
18
|
+
.letter-item-card {
|
|
19
|
+
margin-bottom: 1rem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.envelope-loading {
|
|
23
|
+
margin: 1rem;
|
|
24
|
+
text-align: center;
|
|
20
25
|
}
|
|
21
|
-
}
|
|
22
|
-
.envelope-loading {
|
|
23
|
-
margin: 1rem;
|
|
24
|
-
text-align: center;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.envelope-tab-view_aside {
|
|
31
|
+
height: 100%;
|
|
32
|
+
:global {
|
|
29
33
|
.ant-tabs {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
height: 100%;
|
|
30
37
|
.ant-tabs-nav {
|
|
31
|
-
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
.ant-tabs-content {
|
|
41
|
+
height: 100%;
|
|
42
|
+
padding-bottom: 0px !important;
|
|
43
|
+
.ant-tabs-tabpane {
|
|
44
|
+
position: relative;
|
|
45
|
+
height: 100%;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.ant-tabs-bar {
|
|
49
|
+
margin: 0 20px;
|
|
50
|
+
}
|
|
51
|
+
.module-box {
|
|
52
|
+
height: 100%;
|
|
53
|
+
padding: 10px 20px;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
overflow-x: hidden;
|
|
32
56
|
}
|
|
33
57
|
}
|
|
34
58
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type EnvelopePropertiesName = "Status";
|
|
3
|
+
declare const EnvelopeProperties: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
headerVisible?: boolean;
|
|
7
|
+
envelopeTitle?: string;
|
|
8
|
+
documentTitle?: string;
|
|
9
|
+
envelopeProperties?: {
|
|
10
|
+
name: EnvelopePropertiesName;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
documentProperties?: {
|
|
14
|
+
name: "Tags" | "Create Date" | "Create By" | "Folder";
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
defaultProps: {
|
|
19
|
+
envelopeTitle: string;
|
|
20
|
+
documentTitle: string;
|
|
21
|
+
envelopeProperties: {
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default EnvelopeProperties;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useEnvelope } from "../../../data/envelope";
|
|
2
|
+
import DescriptionEditor from "../../../../../controls/DescriptionEditor";
|
|
3
|
+
import DocumentPanelHeader from "../../../../../components/DocumentPanelHeader";
|
|
4
|
+
import { Form } from "@voplus/antd";
|
|
5
|
+
import EnvelopeStatusLabel from "../../controls/EnvelopeStatusLabel";
|
|
6
|
+
import DocumentProperties from "../../../../../components/DocumentProperties";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import PropertiesSection from "../../../../../controls/PropertiesSection";
|
|
9
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
10
|
+
import { observe } from "@voplus/morpho-ui";
|
|
11
|
+
const EnvelopeProperties = (props) => {
|
|
12
|
+
const { id, headerVisible, envelopeTitle, documentTitle, envelopeProperties, documentProperties, } = props;
|
|
13
|
+
const envelope = useEnvelope(id, { reload: false });
|
|
14
|
+
const filterPro = envelopeProperties === null || envelopeProperties === void 0 ? void 0 : envelopeProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
15
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
16
|
+
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
|
17
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
18
|
+
React.createElement(DescriptionEditor, { id: id, description: envelope.description, readonly: envelope.readonly }),
|
|
19
|
+
React.createElement(PropertiesSection, { title: envelopeTitle, properties: React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))) }),
|
|
20
|
+
React.createElement(DocumentProperties, { id: id, fromLabelRequired: true, labelCol: 10, wrapperCol: 14, title: documentTitle, customProperties: documentProperties })))));
|
|
21
|
+
function renderProp(item) {
|
|
22
|
+
switch (item.name) {
|
|
23
|
+
case "Status":
|
|
24
|
+
return (React.createElement(Form.Item, { label: "Status" },
|
|
25
|
+
React.createElement(EnvelopeStatusLabel, { status: envelope.envelopeStatus })));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
EnvelopeProperties.defaultProps = {
|
|
30
|
+
envelopeTitle: "Envelope Properties",
|
|
31
|
+
documentTitle: "Document Properties",
|
|
32
|
+
envelopeProperties: [{ name: "Status" }],
|
|
33
|
+
};
|
|
34
|
+
export default EnvelopeProperties;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/pages/Signature/Envelope/components/EnvelopeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAC1E,OAAO,mBAAmB,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAC1E,OAAO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ClB,EAAE,EAAE,EAAE,EACN,iBAAiB,QACjB,QAAQ,EAAE,EAAE,EACZ,UAAU,EAAE,EAAE,EACd,KAAK,EAAE,aAAa,EACpB,gBAAgB,EAAE,kBAAkB,GACnC,CACU,CACR,CACN,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,IAAyD;QAC5E,QAAQ,IAAI,CAAC,IAAI,EAAE;YAClB,KAAK,QAAQ;gBACZ,OAAO,CACN,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ;oBACxB,oBAAC,mBAAmB,IAAC,MAAM,EAAE,QAAQ,CAAC,cAAe,GAAI,CAC9C,CACZ,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,aAAa,EAAE,qBAAqB;IACpC,aAAa,EAAE,qBAAqB;IACpC,kBAAkB,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;CACxC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import DocumentStatusLabel from "../../../../../controls/DocumentStatusLabel";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
const EnvelopeStatusLabel = (props) => {
|
|
6
|
+
return (React.createElement(DocumentStatusLabel, { className: classnames("envelope-status", props.className), editable: false, list: [{ name: "Signing" }, { name: "Cancelled" }, { name: "Completed" }], status: props.status }));
|
|
7
|
+
};
|
|
8
|
+
export default EnvelopeStatusLabel;
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/pages/Signature/Envelope/controls/EnvelopeStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,mBAAmB,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,mBAAmB,GAAG,CAAC,KAA6C,EAAE,EAAE;IAC7E,OAAO,CACN,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,EACzD,QAAQ,EAAE,KAAK,EACf,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EACzE,MAAM,EAAE,KAAK,CAAC,MAAM,GACnB,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.envelope-status {
|
|
5
|
+
&.signing,
|
|
6
|
+
&.signing:hover {
|
|
7
|
+
border: unset;
|
|
8
|
+
background: #e6ad51;
|
|
9
|
+
color: white;
|
|
10
|
+
}
|
|
11
|
+
&.cancelled,
|
|
12
|
+
&.cancelled:hover {
|
|
13
|
+
background: @closed-color;
|
|
14
|
+
}
|
|
15
|
+
&.completed,
|
|
16
|
+
&.completed:hover {
|
|
17
|
+
background: @done-color;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDocument } from "@voplus/morpho-document-core";
|
|
2
|
+
export declare type EnvelopeStatus = "Signing" | "Cancelled" | "Completed";
|
|
2
3
|
export interface ISignatureLine {
|
|
3
4
|
/** id of the signature line */
|
|
4
5
|
id: string;
|
|
@@ -33,5 +34,5 @@ export interface IEnvelope extends IDocument {
|
|
|
33
34
|
/** list of the envelope letters */
|
|
34
35
|
letters: ILetter[];
|
|
35
36
|
/** */
|
|
36
|
-
envelopeStatus?:
|
|
37
|
+
envelopeStatus?: EnvelopeStatus;
|
|
37
38
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EditDocumentDataOptions } from "@voplus/morpho-document-core";
|
|
2
|
+
import { EnvelopeStatus } from "./interfaces";
|
|
2
3
|
export declare type EditSignatureLineOptions = {
|
|
3
4
|
/** id of the signature line */
|
|
4
5
|
Id: string;
|
|
@@ -10,7 +11,7 @@ export declare type EditSignatureLineOptions = {
|
|
|
10
11
|
SignerId: string;
|
|
11
12
|
};
|
|
12
13
|
export declare type EditEnvelopOptions = {
|
|
13
|
-
EnvelopeStatus?:
|
|
14
|
+
EnvelopeStatus?: EnvelopeStatus;
|
|
14
15
|
/** Reason of 'Cancel' | 'Complete' | 'Reopen' */
|
|
15
16
|
Reason?: string;
|
|
16
17
|
LetterEdits?: {
|