@voplus/morpho-csp 1.3.5 → 1.3.7
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/CorporateUnitSelectDialog/index.d.ts +12 -0
- package/es/components/CorporateUnitSelectDialog/index.js +33 -0
- package/es/components/CorporateUnitSelectDialog/index.js.map +1 -0
- package/es/components/CorporateUnitSelectDialog/index.less +36 -0
- package/es/components/CorporateUnitSelectDialog/state.d.ts +65 -0
- package/es/components/CorporateUnitSelectDialog/state.js +263 -0
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/index.d.ts +10 -0
- package/es/components/CorporateUnitSortableTree/index.js +87 -0
- package/es/components/CorporateUnitSortableTree/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/state.d.ts +62 -0
- package/es/components/CorporateUnitSortableTree/state.js +220 -0
- package/es/components/CorporateUnitSortableTree/state.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js +22 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +4 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js +84 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.less +319 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +21 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +4 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.d.ts +4 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js +23 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js +58 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.less +45 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.d.ts +3 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js +73 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js.map +1 -0
- package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.less +12 -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 +2 -0
- package/es/data/share-certificate/ShareCertificateStore.js +15 -1
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -1
- package/es/data/share-certificate/interfaces.d.ts +3 -0
- package/es/data/share-certificate/types.d.ts +2 -0
- 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/member-register/components/CompanyMemberItem/index.d.ts +6 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js +10 -5
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +9 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +10 -4
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +37 -11
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +15 -12
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.d.ts +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js +9 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.d.ts +6 -2
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +13 -6
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +8 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.d.ts +9 -4
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +34 -8
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.d.ts +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js +9 -0
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.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 +21 -42
- 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 +30 -70
- 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/share-certificate/components/ShareCertificate/index.js +28 -21
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +18 -6
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +24 -0
- 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/controls/ShareCertificateMenu/index.js +4 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js +22 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js +22 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.d.ts +2 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js +3 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.d.ts +3 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +56 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.less +54 -0
- package/es/obsolete/OfficerRegisterDefaultView/index.js +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -1
- package/es/routes.d.ts +6 -0
- package/es/routes.js +13 -0
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,9 @@ import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { useShareCertificate, useShareCertificateStore, } from "../../../../../data/share-certificate";
|
|
4
4
|
import { Image } from "@voplus/antd";
|
|
5
5
|
import { base64ToBlob, blobToBase64 } from "base64-blob";
|
|
6
|
+
import { QRCodeCanvas } from "qrcode.react";
|
|
6
7
|
import SignatureDialog from "@voplus/morpho-ui/es/components/SignatureDialog";
|
|
8
|
+
import moment from "moment";
|
|
7
9
|
import styles from "./index.less";
|
|
8
10
|
const ShareCertificate = (props) => {
|
|
9
11
|
const shareCertificate = useShareCertificate(props.id);
|
|
@@ -13,12 +15,12 @@ const ShareCertificate = (props) => {
|
|
|
13
15
|
const [signVisible, setSignVisible] = useState(false);
|
|
14
16
|
useAutorunEffect(() => {
|
|
15
17
|
if (shareCertificate.signature1) {
|
|
16
|
-
base64ToBlob(
|
|
18
|
+
base64ToBlob(shareCertificate.signature1).then((val) => {
|
|
17
19
|
setFile1(val);
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
22
|
if (shareCertificate.signature2) {
|
|
21
|
-
base64ToBlob(
|
|
23
|
+
base64ToBlob(shareCertificate.signature2).then((val) => {
|
|
22
24
|
setFile2(val);
|
|
23
25
|
});
|
|
24
26
|
}
|
|
@@ -29,42 +31,47 @@ const ShareCertificate = (props) => {
|
|
|
29
31
|
React.createElement("div", { className: "share-certificate-info" },
|
|
30
32
|
React.createElement("div", { className: "share-certificate-header" },
|
|
31
33
|
React.createElement("div", { className: "share-certificate-no" },
|
|
32
|
-
React.createElement("span", null,
|
|
33
|
-
|
|
34
|
-
shareCertificate.number)),
|
|
34
|
+
React.createElement("span", null, "Certificate No."),
|
|
35
|
+
React.createElement("p", null, shareCertificate.number)),
|
|
35
36
|
React.createElement("div", { className: "share-certificate-title" }, "SHARE CERTIFICATE"),
|
|
36
37
|
React.createElement("div", { className: "share-certificate-no" },
|
|
37
|
-
React.createElement("span", null,
|
|
38
|
-
|
|
39
|
-
shareCertificate.number))),
|
|
38
|
+
React.createElement("span", null, "No. Of Shares "),
|
|
39
|
+
React.createElement("p", null, shareCertificate.shares))),
|
|
40
40
|
React.createElement("div", { className: "share-certificate-body" },
|
|
41
41
|
React.createElement("div", { className: "share-certificate-company" },
|
|
42
42
|
React.createElement("span", null, "VOPLUS CONSULTING PTE. LTD.")),
|
|
43
|
+
React.createElement("div", { className: "share-certificate-register-number" },
|
|
44
|
+
"(Registration No: ",
|
|
45
|
+
")"),
|
|
43
46
|
React.createElement("div", null,
|
|
44
|
-
React.createElement("div", { className: "share-certificate-explain" }, "(the \u201CCompany\u201D) Incorporated in the Republic of Singapore under The Companies Act,
|
|
45
|
-
React.createElement("div", { className: "share-certificate-
|
|
46
|
-
React.createElement("span", null, "
|
|
47
|
+
React.createElement("div", { className: "share-certificate-explain" }, "(the \u201CCompany\u201D) Incorporated in the Republic of Singapore under The Companies Act, 1967 with its registered address localted at"),
|
|
48
|
+
React.createElement("div", { className: "share-certificate-address" },
|
|
49
|
+
React.createElement("span", null, "Address"))),
|
|
47
50
|
React.createElement("div", { className: "share-certificate-art-font" }, "THIS IS TO CERTIFY THAT"),
|
|
48
51
|
React.createElement("div", { className: "share-certificate-name" },
|
|
49
52
|
React.createElement("span", null, shareCertificate.shareholderName)),
|
|
50
53
|
React.createElement("div", { className: "share-certificate-art-font" },
|
|
51
|
-
"IS THE
|
|
52
|
-
React.createElement("span",
|
|
53
|
-
"
|
|
54
|
-
|
|
54
|
+
"IS THE REGISTERED HOLDER OF ",
|
|
55
|
+
React.createElement("span", { className: "underline" }, shareCertificate.shares),
|
|
56
|
+
" ",
|
|
57
|
+
shareCertificate.class,
|
|
58
|
+
" SHARES ",
|
|
59
|
+
shareCertificate.paymentText,
|
|
60
|
+
" OF"),
|
|
61
|
+
React.createElement("div", { className: "share-certificate-art-font" }, "THE COMPANY SUBJECT TO THE CONSTITUTION OF THE COMPANY"),
|
|
55
62
|
React.createElement("div", { className: "share-certificate-date-info" },
|
|
56
63
|
React.createElement("div", { className: "share-certificate-date" },
|
|
57
|
-
"Given
|
|
58
|
-
React.createElement("span", null, "
|
|
59
|
-
" day of",
|
|
60
|
-
React.createElement("span", null, "
|
|
64
|
+
"Given on the this ",
|
|
65
|
+
React.createElement("span", null, moment(shareCertificate.certificateDate).format("DD")),
|
|
66
|
+
" day of ",
|
|
67
|
+
React.createElement("span", null, moment(shareCertificate.certificateDate).format("MM")),
|
|
61
68
|
" in the year ",
|
|
62
|
-
React.createElement("span", null, "
|
|
69
|
+
React.createElement("span", null, moment(shareCertificate.certificateDate).format("YYYY"))))),
|
|
63
70
|
React.createElement("div", { className: "share-certificate-footer" },
|
|
64
71
|
React.createElement("div", { className: "share-certificate-footer-boder" },
|
|
65
72
|
React.createElement("div", { className: "share-certificate-sign", onClick: () => !file1 && setSignVisible(true) }, file1 ? (React.createElement(Image, { src: window.URL.createObjectURL(file1), preview: false, width: "100%" })) : (React.createElement("span", { style: { color: "#94a3b8", cursor: "pointer" } }, "Click to sign"))),
|
|
66
73
|
React.createElement("span", null, "Director")),
|
|
67
|
-
React.createElement("div", { className: "share-certificate-footer-
|
|
74
|
+
React.createElement("div", { className: "share-certificate-footer-qrcode" }, shareCertificate.verifyURL && React.createElement(QRCodeCanvas, { value: shareCertificate.verifyURL })),
|
|
68
75
|
React.createElement("div", { className: "share-certificate-footer-boder" },
|
|
69
76
|
React.createElement("div", { className: "share-certificate-sign", onClick: () => !file2 && setSignVisible(true) }, file2 ? (React.createElement(Image, { src: window.URL.createObjectURL(file2), preview: false, width: "100%" })) : (React.createElement("span", { style: { color: "#94a3b8", cursor: "pointer" } }, "Click to sign"))),
|
|
70
77
|
React.createElement("span", null, "Director/Secretary"))))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificate/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,eAAe,MAAM,iDAAiD,CAAC;AAC9E,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,gBAAgB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAoB,CAAC;IACvD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAoB,CAAC;IACvD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtD,gBAAgB,CAAC,GAAG,EAAE;QACrB,IAAI,gBAAgB,CAAC,UAAU,EAAE;YAChC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificate/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,eAAe,MAAM,iDAAiD,CAAC;AAC9E,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,gBAAgB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG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: 20px;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
.share-certificate-register-number{
|
|
84
|
+
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
font-size: 18px;
|
|
87
|
+
}
|
|
88
|
+
|
|
83
89
|
.share-certificate-explain {
|
|
84
90
|
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
85
91
|
font-weight: bold;
|
|
86
92
|
font-size: 16px;
|
|
87
93
|
}
|
|
88
94
|
|
|
89
|
-
.share-certificate-
|
|
95
|
+
.share-certificate-address {
|
|
90
96
|
font-family: "Franklin Gothic", Arial, sans-serif;
|
|
91
97
|
font-weight: 800;
|
|
92
98
|
text-align: center;
|
|
@@ -99,7 +105,6 @@
|
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
.share-certificate-date-info {
|
|
102
|
-
width: 691.34px;
|
|
103
108
|
|
|
104
109
|
.share-certificate-date {
|
|
105
110
|
font-family: "Lucida Calligraphy", cursive, serif, sans-serif;
|
|
@@ -123,7 +128,7 @@
|
|
|
123
128
|
|
|
124
129
|
.share-certificate-footer-boder {
|
|
125
130
|
position: relative;
|
|
126
|
-
border: 1px dashed #ccc;
|
|
131
|
+
// border: 1px dashed #ccc;
|
|
127
132
|
width: 380px;
|
|
128
133
|
height: 200px;
|
|
129
134
|
text-align: center;
|
|
@@ -145,9 +150,12 @@
|
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
|
|
148
|
-
.share-certificate-footer-
|
|
149
|
-
|
|
150
|
-
|
|
153
|
+
.share-certificate-footer-qrcode {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
// border-top: 1px dashed #ccc;
|
|
158
|
+
// border-bottom: 1px dashed #ccc;
|
|
151
159
|
width: 300px;
|
|
152
160
|
height: 200px;
|
|
153
161
|
}
|
|
@@ -161,6 +169,10 @@
|
|
|
161
169
|
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
162
170
|
font-size: 14px;
|
|
163
171
|
}
|
|
172
|
+
|
|
173
|
+
.underline {
|
|
174
|
+
text-decoration: underline;
|
|
175
|
+
}
|
|
164
176
|
}
|
|
165
177
|
}
|
|
166
178
|
}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare type ShareCertificatePropertiesName = "Shareholder" | "Number" | "CertificateType" | "Shares" | "Class" | "Signee1" | "Signee2";
|
|
2
|
+
export declare type ShareCertificatePropertiesName = "Shareholder" | "Number" | "CertificateDate" | "PaymentText" | "CertificateType" | "Shares" | "Class" | "Signee1" | "Signee2";
|
|
3
3
|
declare const ShareCertificateProperties: {
|
|
4
4
|
(props: {
|
|
5
5
|
id: string;
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js
CHANGED
|
@@ -10,6 +10,8 @@ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
|
10
10
|
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
|
11
11
|
import ShareCertificateTypeLabel from "../../controls/ShareCertificateTypeLabel";
|
|
12
12
|
import VerificationInformation from "@voplus/morpho-document/es/components/VerificationInformation";
|
|
13
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
14
|
+
import moment from "moment";
|
|
13
15
|
const ShareCertificateProperties = (props) => {
|
|
14
16
|
const { id, headerVisible, shareCertificateTitle, documentTitle, shareCertificateProperties, documentProperties, } = props;
|
|
15
17
|
const shareCertificate = useShareCertificate(id);
|
|
@@ -55,6 +57,26 @@ const ShareCertificateProperties = (props) => {
|
|
|
55
57
|
error: "message",
|
|
56
58
|
});
|
|
57
59
|
} })));
|
|
60
|
+
case "CertificateDate":
|
|
61
|
+
return (React.createElement(Form.Item, { label: "Certificate Date" },
|
|
62
|
+
React.createElement(InlineEdit, { defaultValue: moment(shareCertificate.certificateDate !== ""
|
|
63
|
+
? shareCertificate.certificateDate
|
|
64
|
+
: undefined), content: (v) => shareCertificate.certificateDate ? (React.createElement("span", null, moment(shareCertificate.certificateDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Appointment Date")), editor: DateInputEditor, onSave: (date) => {
|
|
65
|
+
if (shareCertificate.certificateDate &&
|
|
66
|
+
moment(date).isSame(shareCertificate.certificateDate, "day"))
|
|
67
|
+
return;
|
|
68
|
+
store.edit(id, {
|
|
69
|
+
data: {
|
|
70
|
+
CertificateDate: (date !== null
|
|
71
|
+
? moment(date).format("YYYY-MM-DD")
|
|
72
|
+
: ""),
|
|
73
|
+
},
|
|
74
|
+
error: "message",
|
|
75
|
+
});
|
|
76
|
+
} })));
|
|
77
|
+
case "PaymentText":
|
|
78
|
+
return (React.createElement(Form.Item, { label: "Payment Text" },
|
|
79
|
+
React.createElement(InlineEdit, { defaultValue: shareCertificate.paymentText, content: (v) => shareCertificate.paymentText ? (React.createElement("span", null, shareCertificate.paymentText)) : (React.createElement("span", { className: "add-info-style" }, "Add Payment Text")), onSave: (value) => store.edit(id, { data: { PaymentText: value }, error: "message" }) })));
|
|
58
80
|
}
|
|
59
81
|
}
|
|
60
82
|
};
|
|
@@ -65,6 +87,8 @@ ShareCertificateProperties.defaultProps = {
|
|
|
65
87
|
{ name: "Shareholder" },
|
|
66
88
|
{ name: "CertificateType" },
|
|
67
89
|
{ name: "Number" },
|
|
90
|
+
{ name: "CertificateDate" },
|
|
91
|
+
{ name: "PaymentText" },
|
|
68
92
|
{ name: "Shares" },
|
|
69
93
|
{ name: "Class" },
|
|
70
94
|
{ name: "Signee1" },
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAW,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,UAAU,MAAM,2CAA2C,CAAC;AACnE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAE5F,OAAO,yBAAyB,MAAM,0CAA0C,CAAC;AACjF,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAW,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,UAAU,MAAM,2CAA2C,CAAC;AACnE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAE5F,OAAO,yBAAyB,MAAM,0CAA0C,CAAC;AACjF,OAA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@@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { Open, Reload
|
|
2
|
+
import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
5
|
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
@@ -11,9 +11,9 @@ import ShareCertificateProperties from "../ShareCertificateProperties";
|
|
|
11
11
|
import styles from "./index.less";
|
|
12
12
|
const ShareCertificateQuickViewDialog = (props) => {
|
|
13
13
|
const { id } = props;
|
|
14
|
-
const meta = useMetaStore();
|
|
15
|
-
const shareCertificate = useShareCertificate(id, { reload: false, includes: "tags" });
|
|
16
14
|
const [loaded, setLoaded] = useState(true);
|
|
15
|
+
const meta = useMetaStore();
|
|
16
|
+
const shareCertificate = useShareCertificate(id, { reload: true });
|
|
17
17
|
return observe(() => (React.createElement(QuickViewDialog, { id: props.id, exclude: ["Task"], visible: props.visible, onCancel: props.onCancel, taskList: React.createElement(SubTaskList, { parentId: id, viewTitle: "Sub-Tasks", total: true }), header: React.createElement(React.Fragment, null,
|
|
18
18
|
loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, toolsVisible: false, descriptionVisible: false, style: { padding: "10px 20px 0 20px" } })),
|
|
19
19
|
React.createElement("div", { className: styles["header-bar-tool"] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],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EAAE,EAAE,EAAE,EACN,YAAY,EAAE,KAAK,EACnB,iBAAiB,EAAC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,mBAAmB,EAAE,KAAK,EAC1B,YAAY,EAAE,KAAK,EACnB,kBAAkB,EAAE,KAAK,EACzB,KAAK,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,GACrC,CACF;YACD,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC;gBACxC,6BAAK,SAAS,EAAC,WAAW;oBACzB,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE;wBACd,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;wBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACrC,CACL,CACD,CACU;QAGlB,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,GAAI,CACrB,CAClB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
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 { SendToSignee, SendToShareholder } from "./items";
|
|
4
5
|
import DocumentMenu from "@voplus/morpho-document/es/controls/DocumentMenu";
|
|
5
6
|
import classnames from "classnames";
|
|
6
7
|
const ShareCertificateMenu = (props) => {
|
|
7
8
|
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
8
9
|
return observe(() => (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
9
10
|
React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
10
|
-
React.createElement(DocumentMenu, { id: props.id })
|
|
11
|
+
React.createElement(DocumentMenu, { id: props.id }),
|
|
12
|
+
React.createElement(SendToSignee, null),
|
|
13
|
+
React.createElement(SendToShareholder, null)))));
|
|
11
14
|
};
|
|
12
15
|
export default ShareCertificateMenu;
|
|
13
16
|
//# 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,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAChG,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,
|
|
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,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAChG,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YAC3C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAC9B,oBAAC,YAAY,OAAG;YAChB,oBAAC,iBAAiB,OAAG,CACS,CAC1B,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SendToShareholder: (props: {
|
|
3
|
+
/** disabled Button */
|
|
4
|
+
disabled?: boolean | undefined;
|
|
5
|
+
/** function of Click */
|
|
6
|
+
action?: ((context?: any) => void) | undefined;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default SendToShareholder;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Modal } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faCircleThreeQuartersStroke } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useShareCertificateStore } from "../../../../../../data/share-certificate";
|
|
8
|
+
const SendToShareholder = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const context = useDocumentMenuContext();
|
|
11
|
+
const store = useShareCertificateStore();
|
|
12
|
+
const config = {
|
|
13
|
+
title: "Send To Shareholder ?",
|
|
14
|
+
maskClosable: true,
|
|
15
|
+
onOk: () => store.sendShareholder(context.id, { error: "message" }),
|
|
16
|
+
};
|
|
17
|
+
return observe(() => (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => Modal.confirm(config) },
|
|
18
|
+
React.createElement(FAIcon, { icon: faCircleThreeQuartersStroke }),
|
|
19
|
+
React.createElement("span", null, "Send To (Shareholder)"))));
|
|
20
|
+
};
|
|
21
|
+
export default SendToShareholder;
|
|
22
|
+
//# sourceMappingURL=SendToShareholder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendToShareholder.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,MAAM,iBAAiB,GAAG,CAAC,KAK1B,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;IAEzC,MAAM,MAAM,GAAG;QACd,KAAK,EAAE,uBAAuB;QAC9B,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;KACnE,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,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,2BAA2B,GAAI;QAC7C,0DAAkC,CAC1B,CACT,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Modal } from "@voplus/antd";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faSignature } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
|
7
|
+
import { useShareCertificateStore } from "../../../../../../data/share-certificate";
|
|
8
|
+
const SendToSignee = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const context = useDocumentMenuContext();
|
|
11
|
+
const store = useShareCertificateStore();
|
|
12
|
+
const config = {
|
|
13
|
+
title: "Send To Signee ?",
|
|
14
|
+
maskClosable: true,
|
|
15
|
+
onOk: () => store.sendSignees(context.id, { error: "message" }),
|
|
16
|
+
};
|
|
17
|
+
return observe(() => (React.createElement(Button, { type: "link", disabled: disabled, onClick: () => Modal.confirm(config) },
|
|
18
|
+
React.createElement(FAIcon, { icon: faSignature }),
|
|
19
|
+
React.createElement("span", null, "Send To (Signee)"))));
|
|
20
|
+
};
|
|
21
|
+
export default SendToSignee;
|
|
22
|
+
//# sourceMappingURL=SendToSignee.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendToSignee.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,MAAM,YAAY,GAAG,CAAC,KAKrB,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;IAEzC,MAAM,MAAM,GAAG;QACd,KAAK,EAAE,kBAAkB;QACzB,YAAY,EAAE,IAAI;QAClB,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;KAC/D,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,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,WAAW,GAAI;QAC7B,qDAA6B,CACrB,CACT,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/index.js.map
ADDED
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { useParams } from "react-router";
|
|
3
|
+
import { useLayout, useTabItem, useApplicationContext } from "@voplus/morpho-data";
|
|
4
|
+
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
5
|
+
import { Button, Space } from "@voplus/antd";
|
|
6
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
7
|
+
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
8
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
9
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
10
|
+
import ShareCertificate from "../../components/ShareCertificate";
|
|
11
|
+
import styles from "./index.less";
|
|
12
|
+
const ShareCertificateClientView = () => {
|
|
13
|
+
const params = useParams();
|
|
14
|
+
const id = params.id;
|
|
15
|
+
const layout = useLayout();
|
|
16
|
+
const tab = useTabItem();
|
|
17
|
+
const shareCertificate = useShareCertificate(id);
|
|
18
|
+
const { user } = useApplicationContext();
|
|
19
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
20
|
+
useAutorunEffect(() => (tab.title = shareCertificate.name || "Share Certificate"));
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (!layout.ui.mobile)
|
|
23
|
+
asideContext.openAside(React.createElement(ActivityLog, { id: id }), { span: 6 });
|
|
24
|
+
}, []);
|
|
25
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext }, !layout.ui.mobile ? (React.createElement("div", { className: styles["share-certificate-client-view"] },
|
|
26
|
+
React.createElement("div", { className: "share-certificate-client-header" },
|
|
27
|
+
React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, shareCertificate.name),
|
|
28
|
+
React.createElement(Button, { onClick: () => window.location.assign(window.location.origin +
|
|
29
|
+
`/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) }, "Download")),
|
|
30
|
+
React.createElement("div", { className: "share-certificate-client-body" },
|
|
31
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
32
|
+
React.createElement("div", { className: "share-certificate-tep" },
|
|
33
|
+
React.createElement(ShareCertificate, { id: id })))),
|
|
34
|
+
React.createElement("div", { className: "share-certificate-client-footer" },
|
|
35
|
+
React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP")))) : (React.createElement("div", { className: styles["share-certificate-client-view-m"] },
|
|
36
|
+
React.createElement("div", { className: "share-certificate-client-header" },
|
|
37
|
+
React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, shareCertificate.name),
|
|
38
|
+
React.createElement(Space, null,
|
|
39
|
+
React.createElement(Button, { size: "small", onClick: () => window.location.assign(window.location.origin +
|
|
40
|
+
`/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) }, "Download"),
|
|
41
|
+
React.createElement(Button, { size: "small", onClick: toggleActivity }, "Open Comment"))),
|
|
42
|
+
React.createElement("div", { className: "share-certificate-client-body" },
|
|
43
|
+
React.createElement(ShareCertificate, { id: id })),
|
|
44
|
+
React.createElement("div", { className: "share-certificate-client-footer" },
|
|
45
|
+
React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP")))))));
|
|
46
|
+
function toggleActivity() {
|
|
47
|
+
if (asideContext.asideContent) {
|
|
48
|
+
asideContext.closeAside();
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
asideContext.openAside(React.createElement(ActivityLog, { id: id }), { span: 12 });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export default ShareCertificateClientView;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,MAAM,MAAM,cAAc,CAAC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,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC9D;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.share-certificate-client-view {
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.share-certificate-client-header {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
padding: 10px 20px;
|
|
9
|
+
border-bottom: 1px solid #e6e6e6;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.share-certificate-client-body {
|
|
13
|
+
height: calc(100% - 80px);
|
|
14
|
+
|
|
15
|
+
.share-certificate-tep {
|
|
16
|
+
width: 1310px;
|
|
17
|
+
height: 920px;
|
|
18
|
+
transform: scale(0.75);
|
|
19
|
+
margin: -90px 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.share-certificate-client-footer {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.share-certificate-client-view-m {
|
|
31
|
+
:global {
|
|
32
|
+
.share-certificate-client-header {
|
|
33
|
+
padding: 10px 20px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.share-certificate-client-body {
|
|
40
|
+
width: 1310px;
|
|
41
|
+
height: 920px;
|
|
42
|
+
transform: scale(0.25);
|
|
43
|
+
transform-origin: 25px center;
|
|
44
|
+
margin: -110px 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.share-certificate-client-footer {
|
|
48
|
+
position: absolute;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
left: 50%;
|
|
51
|
+
margin-left: -117px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -6,7 +6,7 @@ import "./index.less";
|
|
|
6
6
|
const OfficerRegisterDefaultView = (props) => {
|
|
7
7
|
const params = useParams();
|
|
8
8
|
const id = props.id || params.id;
|
|
9
|
-
return observe(() => (React.createElement(ShareTransactionList, { shareTransactionId: id, memberId: props.memberId, readonly: props.allowEdit === false,
|
|
9
|
+
return observe(() => (React.createElement(ShareTransactionList, { shareTransactionId: id, memberId: props.memberId, readonly: props.allowEdit === false, headerTitle: "ShareTransactions Register" })));
|
|
10
10
|
};
|
|
11
11
|
export default OfficerRegisterDefaultView;
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/OfficerRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,oBAAoB,MAAM,6FAA6F,CAAC;AAC/H,OAAO,cAAc,CAAC;AAEtB,MAAM,0BAA0B,GAAG,CAAC,KAInC,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,EAAG,CAAC;IAElC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,oBAAoB,IACpB,kBAAkB,EAAE,EAAE,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,EACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/OfficerRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,oBAAoB,MAAM,6FAA6F,CAAC;AAC/H,OAAO,cAAc,CAAC;AAEtB,MAAM,0BAA0B,GAAG,CAAC,KAInC,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,EAAG,CAAC;IAElC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,oBAAoB,IACpB,kBAAkB,EAAE,EAAE,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,EACnC,WAAW,EAAC,4BAA4B,GACvC,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
package/es/routes.d.ts
CHANGED
|
@@ -48,6 +48,12 @@ declare const RouteConfig: {
|
|
|
48
48
|
getUrl: (id: string) => string;
|
|
49
49
|
component: JSX.Element;
|
|
50
50
|
};
|
|
51
|
+
ShareCertificateClientView: {
|
|
52
|
+
route: string;
|
|
53
|
+
tabPattern: RegExp;
|
|
54
|
+
getUrl: (id: string) => string;
|
|
55
|
+
component: JSX.Element;
|
|
56
|
+
};
|
|
51
57
|
ServiceList: {
|
|
52
58
|
route: string;
|
|
53
59
|
tabPattern: RegExp;
|
package/es/routes.js
CHANGED
|
@@ -24,6 +24,7 @@ import OfficerDefaultView from "./modules/corporate/company/officer-register/pag
|
|
|
24
24
|
import ServiceList from "./modules/corporate/service/components/ServiceList";
|
|
25
25
|
import ServiceTypeDefaultView from "./modules/corporate/service-type/pages/ServiceTypeDefaultView";
|
|
26
26
|
import ShareCertificateDefaultView from "./modules/corporate/share-certificate/pages/ShareCertificateDefaultView";
|
|
27
|
+
import ShareCertificateClientView from "./modules/corporate/share-certificate/pages/ShareCertificateClientView";
|
|
27
28
|
import ShareOptionDefaultView from "./modules/corporate/share-options-register/pages/ShareOptionDefaultView";
|
|
28
29
|
import ShareTransactionDefaultView from "./modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView";
|
|
29
30
|
import ShareTransactionRegisterDefaultView from "./modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView";
|
|
@@ -41,6 +42,7 @@ const RouteComponent = () => {
|
|
|
41
42
|
React.createElement(Route, { path: RouteConfig.OfficerDefaultView.route, element: RouteConfig.OfficerDefaultView.component }),
|
|
42
43
|
React.createElement(Route, { path: RouteConfig.CorporateUnitView.route, element: RouteConfig.CorporateUnitView.component }),
|
|
43
44
|
React.createElement(Route, { path: RouteConfig.ShareCertificateDefaultView.route, element: RouteConfig.ShareCertificateDefaultView.component }),
|
|
45
|
+
React.createElement(Route, { path: RouteConfig.ShareCertificateClientView.route, element: RouteConfig.ShareCertificateClientView.component }),
|
|
44
46
|
React.createElement(Route, { path: RouteConfig.ServiceList.route, element: RouteConfig.ServiceList.component }),
|
|
45
47
|
React.createElement(Route, { path: RouteConfig.ServiceTypeDefaultView.route, element: RouteConfig.ServiceTypeDefaultView.component }),
|
|
46
48
|
React.createElement(Route, { path: RouteConfig.CLDAAddressDefaultView.route, element: RouteConfig.CLDAAddressDefaultView.component }),
|
|
@@ -111,6 +113,12 @@ const RouteConfig = {
|
|
|
111
113
|
getUrl: (id) => `/share-certificate/${id}`,
|
|
112
114
|
component: React.createElement(ShareCertificateDefaultView, null),
|
|
113
115
|
},
|
|
116
|
+
ShareCertificateClientView: {
|
|
117
|
+
route: "/c/share-certificate/:id",
|
|
118
|
+
tabPattern: RegExp("/c/share-certificate/[^/]+"),
|
|
119
|
+
getUrl: (id) => `/c/share-certificate/${id}`,
|
|
120
|
+
component: React.createElement(ShareCertificateClientView, null),
|
|
121
|
+
},
|
|
114
122
|
ServiceList: {
|
|
115
123
|
route: "/services",
|
|
116
124
|
tabPattern: RegExp("/services"),
|
|
@@ -284,6 +292,11 @@ const RouteConfig = {
|
|
|
284
292
|
tabBasePattern: RouteConfig.ShareCertificateDefaultView.tabPattern,
|
|
285
293
|
component: React.createElement(RouteComponent, null),
|
|
286
294
|
});
|
|
295
|
+
BaseRoutes.routes.push({
|
|
296
|
+
name: "ShareCertificateDefaultView",
|
|
297
|
+
tabBasePattern: RouteConfig.ShareCertificateDefaultView.tabPattern,
|
|
298
|
+
component: React.createElement(RouteComponent, null),
|
|
299
|
+
});
|
|
287
300
|
BaseRoutes.routes.push({
|
|
288
301
|
name: "ServiceList",
|
|
289
302
|
tabBasePattern: RouteConfig.ServiceList.tabPattern,
|