@voplus/morpho-document 6.0.178 → 6.0.180
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/TextDefaultView/index.js +26 -6
- package/es/components/TextDefaultView/index.js.map +1 -1
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js +32 -10
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js.map +1 -1
- package/es/modules/graph/components/GraphProperties/index.js +0 -2
- package/es/modules/graph/components/GraphProperties/index.js.map +1 -1
- package/es/modules/graph/control/GraphMenu/index.d.ts +2 -0
- package/es/modules/graph/control/GraphMenu/index.js +4 -2
- package/es/modules/graph/control/GraphMenu/index.js.map +1 -1
- package/es/modules/graph/pages/GraphDefaultView/index.js +29 -14
- package/es/modules/graph/pages/GraphDefaultView/index.js.map +1 -1
- package/es/modules/graph/pages/GraphDefaultView/index.less +10 -12
- package/es/modules/message-template/controls/MessageTemplateMenu/index.d.ts +2 -1
- package/es/modules/message-template/controls/MessageTemplateMenu/index.js +5 -13
- package/es/modules/message-template/controls/MessageTemplateMenu/index.js.map +1 -1
- package/es/modules/message-template/controls/MessageTemplateMenu/items/SendPreviewEmail.d.ts +8 -0
- package/es/modules/message-template/controls/MessageTemplateMenu/items/SendPreviewEmail.js +20 -0
- package/es/modules/message-template/controls/MessageTemplateMenu/items/SendPreviewEmail.js.map +1 -0
- package/es/modules/message-template/controls/MessageTemplateMenu/items/index.d.ts +1 -0
- package/es/modules/message-template/controls/MessageTemplateMenu/items/index.js +2 -0
- package/es/modules/message-template/controls/MessageTemplateMenu/items/index.js.map +1 -0
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js +29 -16
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js.map +1 -1
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.less +5 -14
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.js +1 -3
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.js.map +1 -1
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js +18 -20
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js.map +1 -1
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.less +0 -20
- package/es/pages/FileContentPage/index.js +27 -1
- package/es/pages/FileContentPage/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +31 -14
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.less +12 -3
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js +4 -3
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js.map +1 -1
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/index.d.ts +2 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/index.js +13 -90
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/index.js.map +1 -1
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Cancel.d.ts +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Cancel.js +26 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Cancel.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Complete.d.ts +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Complete.js +26 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Complete.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Reopen.d.ts +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Reopen.js +30 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Reopen.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendInvite.d.ts +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendInvite.js +36 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendInvite.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReminders.d.ts +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReminders.js +26 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReminders.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReview.d.ts +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReview.js +28 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReview.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/ViewSignatures.d.ts +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/ViewSignatures.js +26 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/ViewSignatures.js.map +1 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/index.d.ts +7 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/index.js +8 -0
- package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/index.js.map +1 -0
- package/es/pages/Signature/SignerSelect/index.js +5 -5
- package/es/pages/Signature/SignerSelect/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { faSync } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import React, { useState } from "react";
|
|
7
|
+
import { useToolBarContext } from "../../../../../../controls/ToolBar/ToolBarState";
|
|
8
|
+
import { useEnvelope } from "../../../../data/envelope";
|
|
9
|
+
import ReasonDialog from "../../../components/ReasonDialog";
|
|
10
|
+
const Reopen = (props) => {
|
|
11
|
+
var _a;
|
|
12
|
+
const { disabled, action } = props;
|
|
13
|
+
const context = useDocumentMenuContext();
|
|
14
|
+
const toolBarContext = useToolBarContext();
|
|
15
|
+
const envelope = useEnvelope(context.id);
|
|
16
|
+
const [visible, setVisible] = useState(false);
|
|
17
|
+
/** 有未签名line */
|
|
18
|
+
const unsigned = (_a = envelope === null || envelope === void 0 ? void 0 : envelope.letters) === null || _a === void 0 ? void 0 : _a.some((l) => { var _a; return (_a = l.signatureLines) === null || _a === void 0 ? void 0 : _a.some(({ signatureDate }) => !signatureDate); });
|
|
19
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
20
|
+
(envelope.envelopeStatus === "Cancelled" || envelope.envelopeStatus === "Completed") &&
|
|
21
|
+
unsigned && (React.createElement(Button, { type: "link", key: "Reopen", onClick: () => {
|
|
22
|
+
setVisible(true);
|
|
23
|
+
toolBarContext === null || toolBarContext === void 0 ? void 0 : toolBarContext.menuItemClick();
|
|
24
|
+
}, style: { color: "#1890ff" }, className: "envelope-menu-reopen" },
|
|
25
|
+
React.createElement(FAIcon, { icon: faSync }),
|
|
26
|
+
React.createElement("span", null, "Reopen"))),
|
|
27
|
+
visible && (React.createElement(ReasonDialog, { type: "Reopen", envelopeId: context.id, updateVisible: (visible) => setVisible(visible) })))));
|
|
28
|
+
};
|
|
29
|
+
export default Reopen;
|
|
30
|
+
//# sourceMappingURL=Reopen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reopen.js","sourceRoot":"","sources":["../../../../../../../src/pages/Signature/Envelope/controls/EnvelopeMenu/items/Reopen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM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AAS,EAAE,EAC3B,SAAS,EAAC,sBAAsB;YAEhC,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI;YACxB,2CAAmB,CACX,CACT;QAED,OAAO,IAAI,CACX,oBAAC,YAAY,IACZ,IAAI,EAAC,QAAQ,EACb,UAAU,EAAE,OAAO,CAAC,EAAE,EACtB,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,GAC9C,CACF,CACC,CACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { faEnvelope } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
7
|
+
import React, { useState } from "react";
|
|
8
|
+
import { useToolBarContext } from "../../../../../../controls/ToolBar/ToolBarState";
|
|
9
|
+
import { useEnvelope, useEnvelopeStore } from "../../../../data/envelope";
|
|
10
|
+
import SendDialog from "../../../components/SendDialog";
|
|
11
|
+
const SendInvite = (props) => {
|
|
12
|
+
const { disabled, action } = props;
|
|
13
|
+
const { user } = useApplicationContext();
|
|
14
|
+
const context = useDocumentMenuContext();
|
|
15
|
+
const toolBarContext = useToolBarContext();
|
|
16
|
+
const store = useEnvelopeStore();
|
|
17
|
+
const envelope = useEnvelope(context.id);
|
|
18
|
+
const [sendFormVisible, setSendFormVisible] = useState(false);
|
|
19
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
20
|
+
envelope.envelopeStatus !== "Signing" && envelope.status === "Draft" && (React.createElement(Button, { type: "link", key: "Envelope", disabled: !user.can("send", envelope.p, { asset: "invite" }), onClick: () => {
|
|
21
|
+
setSendFormVisible(true);
|
|
22
|
+
toolBarContext === null || toolBarContext === void 0 ? void 0 : toolBarContext.menuItemClick();
|
|
23
|
+
}, className: "envelope-menu-sendEnvelope" },
|
|
24
|
+
React.createElement(FAIcon, { icon: faEnvelope }),
|
|
25
|
+
React.createElement("span", null, "Send Invite"))),
|
|
26
|
+
sendFormVisible && (React.createElement(SendDialog, { title: "Envelope", onSend: (msg) => {
|
|
27
|
+
invite(msg);
|
|
28
|
+
setSendFormVisible(false);
|
|
29
|
+
}, onCancel: () => setSendFormVisible(false) })))));
|
|
30
|
+
/** email send */
|
|
31
|
+
async function invite(msg) {
|
|
32
|
+
await store.invite(context.id, { data: { Message: msg }, error: "message" });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default SendInvite;
|
|
36
|
+
//# sourceMappingURL=SendInvite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendInvite.js","sourceRoot":"","sources":["../../../../../../../src/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendInvite.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AAExD,MAAM,UAAU,GAAG,CAAC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,CAAC,GACxC,CACF,CACC,CACH,CAAC,CAAC;IAEH,iBAAiB;IACjB,KAAK,UAAU,MAAM,CAAC,GAAY;QACjC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC9E,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { faBellOn } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import React, { useState } from "react";
|
|
7
|
+
import { useToolBarContext } from "../../../../../../controls/ToolBar/ToolBarState";
|
|
8
|
+
import { useEnvelope } from "../../../../data/envelope";
|
|
9
|
+
import RemindersDialog from "../../../components/RemindersDialog";
|
|
10
|
+
const SendReminders = (props) => {
|
|
11
|
+
const { disabled, action } = props;
|
|
12
|
+
const context = useDocumentMenuContext();
|
|
13
|
+
const toolBarContext = useToolBarContext();
|
|
14
|
+
const envelope = useEnvelope(context.id);
|
|
15
|
+
const [remindersVisible, setRemindersVisible] = useState(false);
|
|
16
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
17
|
+
envelope.envelopeStatus === "Signing" && (React.createElement(Button, { type: "link", key: "Reminders", onClick: () => {
|
|
18
|
+
setRemindersVisible(true);
|
|
19
|
+
toolBarContext === null || toolBarContext === void 0 ? void 0 : toolBarContext.menuItemClick();
|
|
20
|
+
}, className: "envelope-menu-sendReminders" },
|
|
21
|
+
React.createElement(FAIcon, { icon: faBellOn }),
|
|
22
|
+
React.createElement("span", null, "Send Reminders"))),
|
|
23
|
+
remindersVisible && (React.createElement(RemindersDialog, { id: context.id, onCancel: () => setRemindersVisible(false) })))));
|
|
24
|
+
};
|
|
25
|
+
export default SendReminders;
|
|
26
|
+
//# sourceMappingURL=SendReminders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendReminders.js","sourceRoot":"","sources":["../../../../../../../src/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReminders.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAElE,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzC,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACE,QAAQ,CAAC,cAAc,KAAK,SAAS,IAAI,CACzC,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,GAAG,EAAC,WAAW,EACf,OAAO,EAAE,GAAG,EAAE;gBACb,mBAAmB,CAAC,IAAI,CAAC,CAAC;gBAC1B,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,aAAa,EAAE,CAAC;YACjC,CAAC,EACD,SAAS,EAAC,6BAA6B;YAEvC,oBAAC,MAAM,IAAC,IAAI,EAAE,QAAQ,GAAI;YAC1B,mDAA2B,CACnB,CACT;QAEA,gBAAgB,IAAI,CACpB,oBAAC,eAAe,IAAC,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,GAAI,CAC/E,CACC,CACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { faMagnifyingGlass } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
7
|
+
import React, { useState } from "react";
|
|
8
|
+
import { useToolBarContext } from "../../../../../../controls/ToolBar/ToolBarState";
|
|
9
|
+
import { useEnvelope } from "../../../../data/envelope";
|
|
10
|
+
import ReviewDialog from "../../../components/ReviewDialog";
|
|
11
|
+
const SendReview = (props) => {
|
|
12
|
+
const { disabled, action } = props;
|
|
13
|
+
const { user } = useApplicationContext();
|
|
14
|
+
const context = useDocumentMenuContext();
|
|
15
|
+
const toolBarContext = useToolBarContext();
|
|
16
|
+
const envelope = useEnvelope(context.id);
|
|
17
|
+
const [reviewVisible, setReviewVisible] = useState(false);
|
|
18
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement(Button, { type: "link", key: "SendReview", className: "envelope-menu-send-review", disabled: !user.can("send", envelope.p, { asset: "review" }), onClick: () => {
|
|
20
|
+
setReviewVisible(true);
|
|
21
|
+
toolBarContext === null || toolBarContext === void 0 ? void 0 : toolBarContext.menuItemClick();
|
|
22
|
+
} },
|
|
23
|
+
React.createElement(FAIcon, { icon: faMagnifyingGlass }),
|
|
24
|
+
React.createElement("span", null, "Send Review")),
|
|
25
|
+
reviewVisible && React.createElement(ReviewDialog, { id: context.id, onCancel: () => setReviewVisible(false) }))));
|
|
26
|
+
};
|
|
27
|
+
export default SendReview;
|
|
28
|
+
//# sourceMappingURL=SendReview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendReview.js","sourceRoot":"","sources":["../../../../../../../src/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReview.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAE5D,MAAM,UAAU,GAAG,CAAC,KAKnB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,GAAG,EAAC,YAAY,EAChB,SAAS,EAAC,2BAA2B,EACrC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAC5D,OAAO,EAAE,GAAG,EAAE;gBACb,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBACvB,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,aAAa,EAAE,CAAC;YACjC,CAAC;YAED,oBAAC,MAAM,IAAC,IAAI,EAAE,iBAAiB,GAAI;YACnC,gDAAwB,CAChB;QAER,aAAa,IAAI,oBAAC,YAAY,IAAC,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAI,CACzF,CACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { faSignature } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import React, { useState } from "react";
|
|
7
|
+
import { useToolBarContext } from "../../../../../../controls/ToolBar/ToolBarState";
|
|
8
|
+
import { useEnvelopeStore } from "../../../../data/envelope";
|
|
9
|
+
import ViewSignaturesDialog from "../../../components/ViewSignaturesDialog";
|
|
10
|
+
const ViewSignatures = (props) => {
|
|
11
|
+
const { disabled, action } = props;
|
|
12
|
+
const context = useDocumentMenuContext();
|
|
13
|
+
const store = useEnvelopeStore();
|
|
14
|
+
const toolBarContext = useToolBarContext();
|
|
15
|
+
const [signatureVisible, setSignatureVisible] = useState(false);
|
|
16
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement(Button, { type: "link", disabled: disabled, key: "ViewSignatures", className: "envelope-menu-view-signatures", onClick: () => {
|
|
18
|
+
setSignatureVisible(true);
|
|
19
|
+
toolBarContext === null || toolBarContext === void 0 ? void 0 : toolBarContext.menuItemClick();
|
|
20
|
+
} },
|
|
21
|
+
React.createElement(FAIcon, { icon: faSignature }),
|
|
22
|
+
React.createElement("span", null, "View Signatures")),
|
|
23
|
+
signatureVisible && (React.createElement(ViewSignaturesDialog, { id: context.id, onCancel: () => setSignatureVisible(false), onOk: () => setSignatureVisible(false) })))));
|
|
24
|
+
};
|
|
25
|
+
export default ViewSignatures;
|
|
26
|
+
//# sourceMappingURL=ViewSignatures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewSignatures.js","sourceRoot":"","sources":["../../../../../../../src/pages/Signature/Envelope/controls/EnvelopeMenu/items/ViewSignatures.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,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endReview";
|
|
3
|
+
export { default as SendInvite } from "./SendInvite";
|
|
4
|
+
export { default as SendReminders } from "./SendReminders";
|
|
5
|
+
export { default as Complete } from "./Complete";
|
|
6
|
+
export { default as Reopen } from "./Reopen";
|
|
7
|
+
export { default as Cancel } from "./Cancel";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as ViewSignatures } from "./ViewSignatures";
|
|
2
|
+
export { default as SendReview } from "./SendReview";
|
|
3
|
+
export { default as SendInvite } from "./SendInvite";
|
|
4
|
+
export { default as SendReminders } from "./SendReminders";
|
|
5
|
+
export { default as Complete } from "./Complete";
|
|
6
|
+
export { default as Reopen } from "./Reopen";
|
|
7
|
+
export { default as Cancel } from "./Cancel";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/pages/Signature/Envelope/controls/EnvelopeMenu/items/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Descriptions, Modal } from "antd";
|
|
2
1
|
import React, { useEffect, useState } from "react";
|
|
3
2
|
import { State } from "./state";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { runInAction } from "mobx";
|
|
5
|
+
import { Descriptions, Modal } from "antd";
|
|
4
6
|
import { useUnit } from "@voplus/morpho-org";
|
|
5
7
|
import { EditOutlined } from "@ant-design/icons";
|
|
6
8
|
import UnitName from "@voplus/morpho-org/es/components/UnitName";
|
|
7
9
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
8
10
|
import classnames from "classnames";
|
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import { runInAction } from "mobx";
|
|
11
11
|
const SignerDescription = (props) => {
|
|
12
12
|
const signer = useUnit(props.id);
|
|
13
|
-
return (React.createElement(Descriptions, {
|
|
13
|
+
return (React.createElement(Descriptions, { column: 2, style: props.style, title: props.title, items: [
|
|
14
14
|
{
|
|
15
15
|
key: "1",
|
|
16
16
|
label: "Name",
|
|
@@ -35,7 +35,7 @@ const SignerSelect = (props) => {
|
|
|
35
35
|
React.createElement(EditOutlined, null)))) : (React.createElement("div", { onClick: state.onClick, style: { fontStyle: "italic", cursor: "pointer" } }, "Add Signer")),
|
|
36
36
|
state.editable && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: state.onSelectMember, onCancel: () => runInAction(() => (state.editable = false)) })),
|
|
37
37
|
state.visible && (React.createElement(Modal, { title: "Signer Confirm", open: state.visible, okText: "Save", confirmLoading: state.loading, onOk: state.save, onCancel: () => runInAction(() => (state.visible = false)) },
|
|
38
|
-
state.signerId && React.createElement(SignerDescription, { id: state.signerId, title: "Old Signer" }),
|
|
38
|
+
state.signerId && (React.createElement(SignerDescription, { id: state.signerId, title: "Old Signer", style: { marginBottom: "30px" } })),
|
|
39
39
|
!!(state.signer && state.signer.id) && (React.createElement(SignerDescription, { id: state.signer.id, title: state.signerId ? "New Signer" : "Signer" })))))));
|
|
40
40
|
};
|
|
41
41
|
export default SignerSelect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/Signature/SignerSelect/index.tsx"],"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