@voplus/morpho-csp 1.3.6 → 1.3.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/CorporateMentionList/index.d.ts +32 -0
- package/es/components/CorporateMentionList/index.js +30 -0
- package/es/components/CorporateMentionList/index.js.map +1 -0
- package/es/components/CorporateMentionList/index.less +51 -0
- package/es/components/DragTableRow/index.d.ts +1 -1
- package/es/components/TableDragRow/index.d.ts +1 -1
- package/es/data/clda-form/interfaces.d.ts +8 -0
- package/es/data/clda-form/types.d.ts +8 -0
- package/es/data/corporate/interfaces.d.ts +3 -0
- package/es/data/corporate/types.d.ts +3 -0
- package/es/data/share-certificate/ShareCertificateStore.d.ts +14 -0
- package/es/data/share-certificate/ShareCertificateStore.js +36 -1
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -1
- package/es/data/share-certificate/interfaces.d.ts +6 -1
- package/es/data/share-certificate/metas.js +2 -2
- package/es/data/share-certificate/metas.js.map +1 -1
- package/es/data/share-certificate/types.d.ts +3 -1
- package/es/modules/corporate/company/components/CompanyDetailsView/index.js +11 -46
- package/es/modules/corporate/company/components/CompanyDetailsView/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/Properties.d.ts +7 -0
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js +68 -0
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyProperties/index.d.ts +9 -3
- package/es/modules/corporate/company/components/CompanyProperties/index.js +18 -86
- package/es/modules/corporate/company/components/CompanyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js +1 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.d.ts +7 -0
- package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.js +25 -0
- package/es/modules/corporate/company/pages/CompanyPage/CompanySetting.js.map +1 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.js +6 -3
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.less +6 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js +34 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.less +10 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.d.ts +0 -4
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +25 -41
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +32 -69
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.d.ts +0 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +3 -3
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +2 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.d.ts +9 -0
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js +35 -0
- package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +88 -51
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +32 -6
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +35 -4
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +3 -3
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.d.ts +2 -2
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +6 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.d.ts +11 -5
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +21 -2
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.less +41 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js +32 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js +52 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js +52 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js +36 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js +18 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js +32 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts +6 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js +6 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js +6 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.less +18 -28
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.d.ts +5 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js +11 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.d.ts +7 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.js +20 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +29 -23
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.less +4 -3
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.d.ts +7 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.js +20 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +9 -9
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +17 -15
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/state.d.ts +4 -0
- package/es/modules/self-registration/clda-form/components/SecretaryList/state.js +10 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/state.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +7 -5
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { Badge } from "@voplus/antd";
|
|
4
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
4
5
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
6
|
+
import { useSigneeRefreshContext } from "../../pages/ShareCertificateDefaultView/SigneeRefreshContext";
|
|
5
7
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
8
|
import ShareCertificateProperties from "../ShareCertificateProperties";
|
|
7
9
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
10
|
+
import ShareCertificate from "../ShareCertificate";
|
|
8
11
|
const ShareCertificateTabs = (props) => {
|
|
9
12
|
const { id, properties, details } = props;
|
|
10
13
|
const [docTotals, setDocTotals] = useState(0);
|
|
14
|
+
const signeeRefresh = useSigneeRefreshContext();
|
|
11
15
|
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
12
16
|
Total: true,
|
|
13
17
|
List: false,
|
|
@@ -40,7 +44,8 @@ const ShareCertificateTabs = (props) => {
|
|
|
40
44
|
title: "Properties",
|
|
41
45
|
content: React.createElement(ShareCertificateProperties, { id: id }),
|
|
42
46
|
});
|
|
43
|
-
return observe(() => (React.createElement(DocumentTabs, { id: id, docTab: false, active: properties ? "Properties" : "", preData: preData, details: details
|
|
47
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, docTab: false, active: properties ? "Properties" : "", preData: preData, details: details && signeeRefresh.refresh ? (React.createElement(Scrollbars, { autoHide: true },
|
|
48
|
+
React.createElement(ShareCertificate, { id: id }))) : null, propertiesSort: ["details", "preData", "Activities", "Links"] })));
|
|
44
49
|
};
|
|
45
50
|
export default ShareCertificateTabs;
|
|
46
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateTabs/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,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,YAAY,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EA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AS,EAAE,SAAS,EAAC,gBAAgB,GAAG,CACpD,CACH;YACD,OAAO,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAI;SACxE;KACD,CAAC;IAEF,UAAU;QACT,OAAO,CAAC,OAAO,CAAC;YACf,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,OAAO,EAAE,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,GAAI;SAC/C,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EACtC,OAAO,EAAE,OAAO,EAChB,OAAO,EACN,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAClC,oBAAC,UAAU,IAAC,QAAQ;YACnB,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAG,GAAI,CACjB,CACb,CAAC,CAAC,CAAC,IAAI,EAET,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC,GAC5D,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const ShareCertificateMenu:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
declare const ShareCertificateMenu: {
|
|
3
|
+
(props: {
|
|
4
|
+
id: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
closeAside?: boolean;
|
|
7
|
+
subMenuLocation?: "left" | "right";
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
subMenuLocation: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
7
13
|
export default ShareCertificateMenu;
|
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import {
|
|
4
|
+
import { Dropdown, Button } from "@voplus/antd";
|
|
5
|
+
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
6
|
+
import { SendToSignee, SendToShareholder, Issue, Cancel, UndoCancel, DeleteSignee1, DeleteSignee2, RefreshDetails } from "./items";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import { faAngleLeft } from "@fortawesome/pro-light-svg-icons";
|
|
5
9
|
import DocumentMenu from "@voplus/morpho-document/es/controls/DocumentMenu";
|
|
6
10
|
import classnames from "classnames";
|
|
11
|
+
import styles from "./index.less";
|
|
7
12
|
const ShareCertificateMenu = (props) => {
|
|
8
13
|
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
14
|
+
const shareCertificate = useShareCertificate(context.id);
|
|
9
15
|
return observe(() => (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
10
16
|
React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
11
17
|
React.createElement(DocumentMenu, { id: props.id }),
|
|
12
18
|
React.createElement(SendToSignee, null),
|
|
13
|
-
React.createElement(SendToShareholder, null)
|
|
19
|
+
React.createElement(SendToShareholder, null),
|
|
20
|
+
React.createElement(Issue, null),
|
|
21
|
+
React.createElement(Cancel, null),
|
|
22
|
+
React.createElement(UndoCancel, null),
|
|
23
|
+
React.createElement(RefreshDetails, null),
|
|
24
|
+
shareCertificate.certificateStatus === "Signing" && (React.createElement(Dropdown, { overlay: React.createElement("div", { className: styles["sub-document-menu"], style: { left: props.subMenuLocation === "left" ? "-184px" : "204px" } },
|
|
25
|
+
React.createElement(DeleteSignee1, null),
|
|
26
|
+
React.createElement(DeleteSignee2, null)) },
|
|
27
|
+
React.createElement(Button, { type: "link" },
|
|
28
|
+
React.createElement(FAIcon, { icon: faAngleLeft }),
|
|
29
|
+
React.createElement("span", null, "Revoke Signature"))))))));
|
|
30
|
+
};
|
|
31
|
+
ShareCertificateMenu.defaultProps = {
|
|
32
|
+
subMenuLocation: "right",
|
|
14
33
|
};
|
|
15
34
|
export default ShareCertificateMenu;
|
|
16
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EACN,YAAY,EACZ,iBAAiB,EACjB,KAAK,EACL,MAAM,EACN,UAAU,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3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B,qDAA6B,CACrB,CACC,CACX,CAC6B,CAC1B,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,eAAe,EAAE,OAAO;CACxB,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.sub-document-menu {
|
|
4
|
+
position: absolute;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
// left: 214px;
|
|
7
|
+
|
|
8
|
+
padding: 4px 8px;
|
|
9
|
+
list-style-type: none;
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
background-clip: padding-box;
|
|
12
|
+
border-radius: @border-radius;
|
|
13
|
+
outline: none;
|
|
14
|
+
box-shadow: @more-box-shadow;
|
|
15
|
+
|
|
16
|
+
:global {
|
|
17
|
+
.ant-btn {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
padding: 0 12px;
|
|
21
|
+
height: unit((38/16), em);
|
|
22
|
+
color: @cancel-color;
|
|
23
|
+
text-align: left;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
|
|
26
|
+
&[disabled] {
|
|
27
|
+
color: @disabled-color;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
background-color: @ant-menu-hover-color !important;
|
|
32
|
+
box-shadow: @hover-button-shadow !important;
|
|
33
|
+
border-radius: @border-radius !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
>span {
|
|
37
|
+
margin-left: 10px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
|
|
3
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
4
|
+
import { Button } from "@voplus/antd";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { faTrashCanUndo } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
|
8
|
+
import InputTextDialog from "@voplus/morpho-ui/es/components/InputTextDialog";
|
|
9
|
+
const Cancel = (props) => {
|
|
10
|
+
const { disabled, action } = props;
|
|
11
|
+
const context = useDocumentMenuContext();
|
|
12
|
+
const shareCertificate = useShareCertificate(context.id);
|
|
13
|
+
const store = useShareCertificateStore();
|
|
14
|
+
const [visible, setVisible] = useState(false);
|
|
15
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
16
|
+
shareCertificate.certificateStatus === "Issued" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
17
|
+
React.createElement(FAIcon, { icon: faTrashCanUndo }),
|
|
18
|
+
React.createElement("span", null, "Cancel"))) : null,
|
|
19
|
+
visible && (React.createElement(InputTextDialog, { modalProps: {
|
|
20
|
+
visible,
|
|
21
|
+
title: "Cancel Dialog",
|
|
22
|
+
okText: "Submit",
|
|
23
|
+
onCancel: () => setVisible(false),
|
|
24
|
+
}, onSubmit: (text) => store
|
|
25
|
+
.cancel(context.id, { Reason: text, error: "message" })
|
|
26
|
+
.then(() => setVisible(false)) })))));
|
|
27
|
+
function onClick() {
|
|
28
|
+
setVisible(true);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default Cancel;
|
|
32
|
+
//# sourceMappingURL=Cancel.js.map
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cancel.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC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EAAE,EAAE,CAC1B,KAAK;iBACH,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;iBACtD,IAAI,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,GAE/B,CACF,CACC,CACH,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,UAAU,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useSigneeRefreshContext } from "../../../pages/ShareCertificateDefaultView/SigneeRefreshContext";
|
|
8
|
+
import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
|
|
9
|
+
import DeleteSignatureDialog from "../../../components/DeleteSignatureDialog";
|
|
10
|
+
const DeleteSignee1 = (props) => {
|
|
11
|
+
const { disabled, action } = props;
|
|
12
|
+
const signeeRefresh = useSigneeRefreshContext();
|
|
13
|
+
const context = useDocumentMenuContext();
|
|
14
|
+
const shareCertificate = useShareCertificate(context.id, {
|
|
15
|
+
reload: true,
|
|
16
|
+
includes: "qr,signatures",
|
|
17
|
+
});
|
|
18
|
+
const store = useShareCertificateStore();
|
|
19
|
+
const [visible, setVisible] = useState(false);
|
|
20
|
+
return observe(() => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
return (React.createElement(React.Fragment, null,
|
|
23
|
+
((_a = shareCertificate.signee1) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
24
|
+
React.createElement(FAIcon, { icon: faTrashAlt }),
|
|
25
|
+
React.createElement("span", null,
|
|
26
|
+
"Delete ", (_b = shareCertificate.signee1) === null || _b === void 0 ? void 0 :
|
|
27
|
+
_b.name))) : null,
|
|
28
|
+
visible && (React.createElement(DeleteSignatureDialog, { signee: 1, shareCertificate: shareCertificate, onCancel: () => setVisible(false), onSubmit: (reason) => {
|
|
29
|
+
var _a;
|
|
30
|
+
return store
|
|
31
|
+
.revokeSignature(context.id, {
|
|
32
|
+
data: { SigneeId: (_a = shareCertificate.signee1) === null || _a === void 0 ? void 0 : _a.id, Reason: reason },
|
|
33
|
+
error: "message",
|
|
34
|
+
})
|
|
35
|
+
.then(() => {
|
|
36
|
+
setVisible(false);
|
|
37
|
+
onReload();
|
|
38
|
+
});
|
|
39
|
+
} }))));
|
|
40
|
+
});
|
|
41
|
+
function onReload() {
|
|
42
|
+
signeeRefresh.refresh = false;
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
signeeRefresh.refresh = true;
|
|
45
|
+
}, 100);
|
|
46
|
+
}
|
|
47
|
+
function onClick() {
|
|
48
|
+
setVisible(true);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export default DeleteSignee1;
|
|
52
|
+
//# sourceMappingURL=DeleteSignee1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteSignee1.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,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AAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;;oBACpB,OAAA,KAAK;yBACH,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE;wBAC5B,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAA,gBAAgB,CAAC,OAAO,0CAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;wBAChE,KAAK,EAAE,SAAS;qBAChB,CAAC;yBACD,IAAI,CAAC,GAAG,EAAE;wBACV,UAAU,CAAC,KAAK,CAAC,CAAC;wBAClB,QAAQ,EAAE,CAAC;oBACZ,CAAC,CAAC,CAAA;iBAAA,GAEH,CACF,CACC,CACH,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,aAAa,CAAC,OAAO,GAAG,KAAK,CAAC;QAC9B,UAAU,CAAC,GAAG,EAAE;YACf,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;QAC9B,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,OAAO;QACf,UAAU,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useSigneeRefreshContext } from "../../../pages/ShareCertificateDefaultView/SigneeRefreshContext";
|
|
8
|
+
import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
|
|
9
|
+
import DeleteSignatureDialog from "../../../components/DeleteSignatureDialog";
|
|
10
|
+
const DeleteSignee2 = (props) => {
|
|
11
|
+
const { disabled, action } = props;
|
|
12
|
+
const context = useDocumentMenuContext();
|
|
13
|
+
const signeeRefresh = useSigneeRefreshContext();
|
|
14
|
+
const shareCertificate = useShareCertificate(context.id, {
|
|
15
|
+
reload: true,
|
|
16
|
+
includes: "qr,signatures",
|
|
17
|
+
});
|
|
18
|
+
const store = useShareCertificateStore();
|
|
19
|
+
const [visible, setVisible] = useState(false);
|
|
20
|
+
return observe(() => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
return (React.createElement(React.Fragment, null,
|
|
23
|
+
((_a = shareCertificate.signee2) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
24
|
+
React.createElement(FAIcon, { icon: faTrashAlt }),
|
|
25
|
+
React.createElement("span", null,
|
|
26
|
+
"Delete ", (_b = shareCertificate.signee2) === null || _b === void 0 ? void 0 :
|
|
27
|
+
_b.name))) : null,
|
|
28
|
+
visible && (React.createElement(DeleteSignatureDialog, { signee: 2, shareCertificate: shareCertificate, onCancel: () => setVisible(false), onSubmit: (reason) => {
|
|
29
|
+
var _a;
|
|
30
|
+
return store
|
|
31
|
+
.revokeSignature(context.id, {
|
|
32
|
+
data: { SigneeId: (_a = shareCertificate.signee2) === null || _a === void 0 ? void 0 : _a.id, Reason: reason },
|
|
33
|
+
error: "message",
|
|
34
|
+
})
|
|
35
|
+
.then(() => {
|
|
36
|
+
setVisible(false);
|
|
37
|
+
onReload();
|
|
38
|
+
});
|
|
39
|
+
} }))));
|
|
40
|
+
});
|
|
41
|
+
function onReload() {
|
|
42
|
+
signeeRefresh.refresh = false;
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
signeeRefresh.refresh = true;
|
|
45
|
+
}, 100);
|
|
46
|
+
}
|
|
47
|
+
function onClick() {
|
|
48
|
+
setVisible(true);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
export default DeleteSignee2;
|
|
52
|
+
//# sourceMappingURL=DeleteSignee2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteSignee2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iEAAiE,CAAC;AAC1G,OAAO,EACN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,qBAAqB,MAAM,2CAA2C,CAAC;AAE9E,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,aAAa,GAAG,uBAAuB,EAAE,CAAC;IAChD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,EAAE,EAAE;QACxD,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,eAAe;KACzB,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB;YACE,CA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+
import { Button, Modal } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faUpFromLine } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
|
|
8
|
+
const Issue = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const context = useDocumentMenuContext();
|
|
11
|
+
const store = useShareCertificateStore();
|
|
12
|
+
const shareCertificate = useShareCertificate(context.id);
|
|
13
|
+
const [visible, setVisible] = useState(false);
|
|
14
|
+
const config = {
|
|
15
|
+
title: "Issue ?",
|
|
16
|
+
maskClosable: true,
|
|
17
|
+
onOk: () => store.issue(context.id, { error: "message" }),
|
|
18
|
+
};
|
|
19
|
+
return observe(() => menuVisible() ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => Modal.confirm(config) },
|
|
20
|
+
React.createElement(FAIcon, { icon: faUpFromLine }),
|
|
21
|
+
React.createElement("span", null, "Issue"))) : null);
|
|
22
|
+
function menuVisible() {
|
|
23
|
+
if (shareCertificate.signee1 && shareCertificate.signee2) {
|
|
24
|
+
shareCertificate.signature1 && shareCertificate.signature2 && setVisible(true);
|
|
25
|
+
}
|
|
26
|
+
else if (shareCertificate.signee1) {
|
|
27
|
+
shareCertificate.signature1 && setVisible(true);
|
|
28
|
+
}
|
|
29
|
+
else if (shareCertificate.signee2) {
|
|
30
|
+
shareCertificate.signature2 && setVisible(true);
|
|
31
|
+
}
|
|
32
|
+
return visible;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default Issue;
|
|
36
|
+
//# sourceMappingURL=Issue.js.map
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Issue.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAElD,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,wBAAwB,EAAE,CAAC;IACzC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,MAAM,GAAG;QACd,KAAK,EAAE,SAAS;QAChB,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;KACzD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,WAAW,EAAE,CAAC,CAAC,CAAC,CACf,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAC3E,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI;QAC9B,0CAAkB,CACV,CACT,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;IAEF,SAAS,WAAW;QACnB,IAAI,gBAAgB,CAAC,OAAO,IAAI,gBAAgB,CAAC,OAAO,EAAE;YACzD,gBAAgB,CAAC,UAAU,IAAI,gBAAgB,CAAC,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;SAC/E;aAAM,IAAI,gBAAgB,CAAC,OAAO,EAAE;YACpC,gBAAgB,CAAC,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;SAChD;aAAM,IAAI,gBAAgB,CAAC,OAAO,EAAE;YACpC,gBAAgB,CAAC,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;SAChD;QAED,OAAO,OAAO,CAAC;IAChB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faArrowRotateRight } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
|
|
8
|
+
const RefreshDetails = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const context = useDocumentMenuContext();
|
|
11
|
+
const store = useShareCertificateStore();
|
|
12
|
+
const shareCertificate = useShareCertificate(context.id);
|
|
13
|
+
return observe(() => shareCertificate.certificateStatus === "Draft" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => store.refreshDetails(context.id, { error: "message" }) },
|
|
14
|
+
React.createElement(FAIcon, { icon: faArrowRotateRight }),
|
|
15
|
+
React.createElement("span", null, "Refresh Details"))) : null);
|
|
16
|
+
};
|
|
17
|
+
export default RefreshDetails;
|
|
18
|
+
//# sourceMappingURL=RefreshDetails.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefreshDetails.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAElD,MAAM,cAAc,GAAG,CAAC,KAKvB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IACzC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzD,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,gBAAgB,CAAC,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,CAChD,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAErE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;QACpC,oDAA4B,CACpB,CACT,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useShareCertificateStore, useShareCertificate, } from "../../../../../../data/share-certificate";
|
|
3
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
4
|
+
import { Button } from "@voplus/antd";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { faTrashCanUndo } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
|
8
|
+
import InputTextDialog from "@voplus/morpho-ui/es/components/InputTextDialog";
|
|
9
|
+
const UndoCancel = (props) => {
|
|
10
|
+
const { disabled, action } = props;
|
|
11
|
+
const context = useDocumentMenuContext();
|
|
12
|
+
const shareCertificate = useShareCertificate(context.id);
|
|
13
|
+
const store = useShareCertificateStore();
|
|
14
|
+
const [visible, setVisible] = useState(false);
|
|
15
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
16
|
+
shareCertificate.certificateStatus === "Cancelled" ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
17
|
+
React.createElement(FAIcon, { icon: faTrashCanUndo }),
|
|
18
|
+
React.createElement("span", null, "Undo Cancel"))) : null,
|
|
19
|
+
visible && (React.createElement(InputTextDialog, { modalProps: {
|
|
20
|
+
visible,
|
|
21
|
+
title: "Undo Cancel Dialog",
|
|
22
|
+
okText: "Submit",
|
|
23
|
+
onCancel: () => setVisible(false),
|
|
24
|
+
}, onSubmit: (text) => store
|
|
25
|
+
.undoCancel(context.id, { Reason: text, error: "message" })
|
|
26
|
+
.then(() => setVisible(false)) })))));
|
|
27
|
+
function onClick() {
|
|
28
|
+
setVisible(true);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default UndoCancel;
|
|
32
|
+
//# sourceMappingURL=UndoCancel.js.map
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UndoCancel.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAAe,MAAM,iDAAiD,CAAC;AAE9E,MAAM,UAAU,GAAG,CAAC,KAKnB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzD,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IACzC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACE,gBAAgB,CAAC,iBAAiB,KAAK,WAAW,CAAC,CAAC,CAAC,CACrD,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;YACvD,oBAAC,MAAM,IAAC,IAAI,EAAE,cAAc,GAAI;YAChC,gDAAwB,CAChB,CACT,CAAC,CAAC,CAAC,IAAI;QACP,OAAO,IAAI,CACX,oBAAC,eAAe,IACf,UAAU,EAAE;gBACX,OAAO;gBACP,KAAK,EAAE,oBAAoB;gBAC3B,MAAM,EAAE,QAAQ;gBAChB,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;aACjC,EACD,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAC1B,KAAK;iBACH,UAAU,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;iBAC1D,IAAI,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,GAE/B,CACF,CACC,CACH,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,UAAU,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export { default as SendToSignee } from "./SendToSignee";
|
|
2
2
|
export { default as SendToShareholder } from "./SendToShareholder";
|
|
3
|
+
export { default as Issue } from "./Issue";
|
|
4
|
+
export { default as Cancel } from "./Cancel";
|
|
5
|
+
export { default as UndoCancel } from "./UndoCancel";
|
|
6
|
+
export { default as DeleteSignee1 } from "./DeleteSignee1";
|
|
7
|
+
export { default as DeleteSignee2 } from "./DeleteSignee2";
|
|
8
|
+
export { default as RefreshDetails } from "./RefreshDetails";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export { default as SendToSignee } from "./SendToSignee";
|
|
2
2
|
export { default as SendToShareholder } from "./SendToShareholder";
|
|
3
|
+
export { default as Issue } from "./Issue";
|
|
4
|
+
export { default as Cancel } from "./Cancel";
|
|
5
|
+
export { default as UndoCancel } from "./UndoCancel";
|
|
6
|
+
export { default as DeleteSignee1 } from "./DeleteSignee1";
|
|
7
|
+
export { default as DeleteSignee2 } from "./DeleteSignee2";
|
|
8
|
+
export { default as RefreshDetails } from "./RefreshDetails";
|
|
3
9
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js
CHANGED
|
@@ -4,7 +4,12 @@ import React from "react";
|
|
|
4
4
|
import classnames from "classnames";
|
|
5
5
|
import { observe } from "@voplus/morpho-ui";
|
|
6
6
|
const ShareCertificateStatusLabel = (props) => {
|
|
7
|
-
|
|
7
|
+
const list = [{ name: "Draft" }, { name: "Signing" }, { name: "Issued" }, { name: "Cancelled" }];
|
|
8
|
+
if ((props.status && list.findIndex((i) => i.name === props.status) === -1) || !props.status) {
|
|
9
|
+
list.push({ name: props.status || "" });
|
|
10
|
+
}
|
|
11
|
+
return observe(() => (React.createElement("div", { className: classnames({ "share-certificate-label": !props.status }, props.className) },
|
|
12
|
+
React.createElement(DocumentStatusLabel, { className: classnames("share-certificate-status", props.className), editable: props.editable, list: list, status: props.status, onChange: props.onChange }))));
|
|
8
13
|
};
|
|
9
14
|
export default ShareCertificateStatusLabel;
|
|
10
15
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,2BAA2B,GAAG,CAAC,KAKpC,EAAE,EAAE;IACJ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OA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 @@
|
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
2
|
|
|
3
3
|
:global {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
.share-certificate-status {
|
|
5
|
+
&.draft,
|
|
6
|
+
&.draft:hover {
|
|
7
|
+
background: #91d5ff;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
&.issued,
|
|
11
|
+
&.issued:hover {
|
|
12
|
+
background: @active-color;
|
|
13
|
+
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
&.signing,
|
|
16
|
+
&.signing:hover {
|
|
17
|
+
background: @done-color;
|
|
18
|
+
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&.contacting,
|
|
26
|
-
&.contacting:hover {
|
|
27
|
-
background: #13c2c2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.no-response,
|
|
31
|
-
&.no-response:hover {
|
|
32
|
-
background: #ff4d4f;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
20
|
+
&.cancelled,
|
|
21
|
+
&.cancelled:hover {
|
|
22
|
+
background: #ff4d4f;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
35
25
|
}
|
package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Skeleton } from "@voplus/antd";
|
|
4
|
+
import { useCertRefreshContext } from "./ActivityRefreshContext";
|
|
5
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
6
|
+
const ActivityLogTpl = (props) => {
|
|
7
|
+
const certRefresh = useCertRefreshContext();
|
|
8
|
+
return observe(() => (certRefresh.refresh ? React.createElement(ActivityLog, { id: props.id }) : React.createElement(Skeleton, null)));
|
|
9
|
+
};
|
|
10
|
+
export default ActivityLogTpl;
|
|
11
|
+
//# sourceMappingURL=ActivityLogTpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivityLogTpl.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityLogTpl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,WAAW,MAAM,2DAA2D,CAAC;AAEpF,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAChD,MAAM,WAAW,GAAG,qBAAqB,EAAE,CAAC;IAE5C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAAC,CAAC,CAAC,oBAAC,QAAQ,OAAG,CAAC,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|