@voplus/morpho-csp 1.3.6 → 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/data/corporate/interfaces.d.ts +3 -0
- package/es/data/corporate/types.d.ts +3 -0
- package/es/data/share-certificate/ShareCertificateStore.js +1 -1
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -1
- package/es/data/share-certificate/interfaces.d.ts +2 -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/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 +26 -20
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +14 -5
- 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/pages/ShareCertificateClientView/index.js +6 -3
- 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/obsolete/OfficerRegisterDefaultView/index.js +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Popover, Table } from "@voplus/antd";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
const columns = [
|
|
5
|
+
{
|
|
6
|
+
title: "Shareholder",
|
|
7
|
+
dataIndex: "shareholder",
|
|
8
|
+
render: (text, record) => record.shareholder.name,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
title: "Share Type",
|
|
12
|
+
dataIndex: "class",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: "Shares",
|
|
16
|
+
dataIndex: "shares",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
title: "Currency",
|
|
20
|
+
dataIndex: "currency",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: "Consideration",
|
|
24
|
+
dataIndex: "consideration",
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
const ShareTablePreview = (props) => {
|
|
28
|
+
const { shareTransaction } = props;
|
|
29
|
+
const content = (React.createElement(Table, { columns: columns, rowKey: "id", dataSource: shareTransaction.lines, pagination: false }));
|
|
30
|
+
return shareTransaction.lines && shareTransaction.lines.length ? (React.createElement(Popover, { placement: "topLeft", title: "ShareTransaction Lines", content: content, overlayClassName: "share-movements-data-popover" },
|
|
31
|
+
React.createElement("span", null, shareTransaction.transactionType))) : (React.createElement("span", null, shareTransaction.transactionType));
|
|
32
|
+
};
|
|
33
|
+
export default ShareTablePreview;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,cAAc,CAAC;AAEtB,MAAM,OAAO,GAAG;IACf;QACC,KAAK,EAAE,aAAa;QACpB,SAAS,EAAE,aAAa;QACxB,MAAM,EAAE,CAAC,IAAS,EAAE,MAA6B,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI;KAC7E;IACD;QACC,KAAK,EAAE,YAAY;QACnB,SAAS,EAAE,OAAO;KAClB;IACD;QACC,KAAK,EAAE,QAAQ;QACf,SAAS,EAAE,QAAQ;KACnB;IACD;QACC,KAAK,EAAE,UAAU;QACjB,SAAS,EAAE,UAAU;KACrB;IACD;QACC,KAAK,EAAE,eAAe;QACtB,SAAS,EAAE,eAAe;KAC1B;CACD,CAAC;AACF,MAAM,iBAAiB,GAAG,CAAC,KAA8C,EAAE,EAAE;IAC5E,MAAM,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,CACf,oBAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAC,IAAI,EAAC,UAAU,EAAE,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,GAAI,CAC9F,CAAC;IACF,OAAO,gBAAgB,CAAC,KAAK,IAAI,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAChE,oBAAC,OAAO,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,wBAAwB,EAC9B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAC,8BAA8B;QAE/C,kCAAO,gBAAgB,CAAC,eAAe,CAAQ,CACtC,CACV,CAAC,CAAC,CAAC,CACH,kCAAO,gBAAgB,CAAC,eAAe,CAAQ,CAC/C,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "./index.less";
|
|
3
2
|
declare const ShareTransactionItem: (props: {
|
|
4
3
|
/** id of item of the shareTransaction*/
|
|
5
4
|
id: string;
|
|
6
5
|
/** 拖拽源 */
|
|
7
6
|
connectDragSource?: any;
|
|
8
|
-
/** 是否有AsideContent侧边栏 */
|
|
9
|
-
sidebar?: boolean;
|
|
10
|
-
className?: string;
|
|
11
7
|
}) => JSX.Element;
|
|
12
8
|
export default ShareTransactionItem;
|
|
@@ -1,58 +1,37 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState } from "react";
|
|
2
2
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
3
3
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
-
import { InlineEdit, useAsideContentContext } from "@voplus/morpho-ui";
|
|
5
4
|
import { observe } from "@voplus/morpho-ui";
|
|
6
|
-
import { useShareTransaction,
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
10
|
-
import ShareMovementsDataIcon from "../ShareMovementsDataIcon";
|
|
5
|
+
import { useShareTransaction, } from "../../../../../../data/share-transaction";
|
|
6
|
+
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
7
|
+
import ShareTablePreview from "../ShareTablePreview";
|
|
11
8
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
9
|
import classnames from "classnames";
|
|
13
10
|
import moment from "moment";
|
|
14
|
-
import "./index.less";
|
|
11
|
+
import styles from "./index.less";
|
|
15
12
|
const ShareTransactionItem = (props) => {
|
|
16
|
-
const { id
|
|
13
|
+
const { id } = props;
|
|
17
14
|
const shareTransaction = useShareTransaction(id, {
|
|
18
15
|
reload: (i) => !i.tags || !i.transactionType,
|
|
19
16
|
includes: "tags",
|
|
20
17
|
});
|
|
21
18
|
const [hover, setHover] = useState(false);
|
|
22
|
-
const shareStore = useShareTransactionStore();
|
|
23
19
|
const meta = useMetaStore();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
listRef.style = {};
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return observe(() => (React.createElement(DocumentHeader, { id: id, preVisible: false, flagVisible: false, itemHover: true, onMouse: (over) => setHover(over), className: classnames("shareTransaction-item", className, { hover }, { sidebar }), quickDataBar: React.createElement("div", { className: "shareTransaction-item-info" },
|
|
44
|
-
React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareTransaction.readonly, defaultValue: shareTransaction.date ? moment(shareTransaction.date) : undefined, content: (v) => (React.createElement("span", { className: "transaction-date" }, v.store.value ? moment(v.store.value).format("DD MMM YYYY") : "Add DateTime")), onSave: (v) => v
|
|
45
|
-
? shareStore.edit(id, {
|
|
46
|
-
data: {
|
|
47
|
-
Date: v.format("DD MMM YYYY"),
|
|
48
|
-
},
|
|
49
|
-
error: "message",
|
|
50
|
-
})
|
|
51
|
-
: null }),
|
|
52
|
-
React.createElement("span", { className: "transaction-type" }, shareTransaction.transactionType),
|
|
53
|
-
React.createElement(CurrencyView, { currency: shareTransaction.currency, readonly: shareTransaction.readonly, className: "transaction-currency", onChange: (currency) => shareStore.edit(id, { data: { Currency: currency }, error: "message" }) }),
|
|
54
|
-
!!(shareTransaction.lines && shareTransaction.lines.length) && (React.createElement(ShareMovementsDataIcon, { lines: shareTransaction.lines }))), tools: React.createElement(ToolBar, { id: id },
|
|
55
|
-
React.createElement(Open, { size: "middle", url: meta.getRoute(shareTransaction) })) })));
|
|
20
|
+
return observe(() => (React.createElement("div", { className: styles["share-transaction-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false) },
|
|
21
|
+
React.createElement(ColumnItem, null,
|
|
22
|
+
React.createElement(ColumnItemCol, { span: 8 },
|
|
23
|
+
React.createElement("div", { className: "share-transaction-item-name" }, shareTransaction.name),
|
|
24
|
+
React.createElement("div", { className: "share-transaction-item-data-info-gray" }, moment(shareTransaction.date).format("YYYY-MM-DD"))),
|
|
25
|
+
React.createElement(ColumnItemCol, { span: 6, title: "Type" },
|
|
26
|
+
React.createElement("div", { className: "share-transaction-item-data-info" },
|
|
27
|
+
React.createElement(ShareTablePreview, { shareTransaction: shareTransaction }),
|
|
28
|
+
" ")),
|
|
29
|
+
React.createElement(ColumnItemCol, { span: 6, title: "Currency" },
|
|
30
|
+
React.createElement("div", { className: "share-transaction-item-data-info" }, shareTransaction.currency)),
|
|
31
|
+
React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
|
|
32
|
+
React.createElement("div", { className: classnames("share-transaction-item-tool", { show: hover }) },
|
|
33
|
+
React.createElement(ToolBar, { id: id },
|
|
34
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(shareTransaction) }))))))));
|
|
56
35
|
};
|
|
57
36
|
export default ShareTransactionItem;
|
|
58
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAa,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAEN,mBAAmB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,oBAAoB,GAAG,CAAC,KAK7B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,E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AAE,UAAU,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oBACzE,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE;wBACd,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACnD,CACL,CACS,CACJ,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,89 +1,49 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
position: relative;
|
|
6
|
-
flex: 1;
|
|
7
|
-
padding: 0;
|
|
8
|
-
margin-left: 20px;
|
|
9
|
-
line-height: 28px;
|
|
10
|
-
border-bottom: 1px solid #f2f2f2;
|
|
4
|
+
.share-transaction-item {
|
|
5
|
+
cursor: pointer;
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
&.shareTransaction-item-first {
|
|
17
|
-
padding-top: 10px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.sidebar {
|
|
21
|
-
.add-tag-btn {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.task-move,
|
|
27
|
-
.clock {
|
|
28
|
-
display: inline-block;
|
|
29
|
-
margin-right: 5px;
|
|
30
|
-
width: 14px;
|
|
31
|
-
}
|
|
7
|
+
&:hover {
|
|
8
|
+
background-color: #f5f8fd;
|
|
9
|
+
}
|
|
32
10
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
color: #
|
|
11
|
+
:global {
|
|
12
|
+
.share-transaction-item-name {
|
|
13
|
+
color: #575757;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
word-break: break-all;
|
|
36
16
|
}
|
|
37
17
|
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
display: inline-block;
|
|
41
|
-
min-width: 110px;
|
|
42
|
-
// margin-right: 30px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.clock {
|
|
46
|
-
margin-right: 5px;
|
|
47
|
-
}
|
|
18
|
+
.share-transaction-item-data-info {
|
|
19
|
+
height: 22px;
|
|
48
20
|
|
|
49
|
-
|
|
50
|
-
|
|
21
|
+
&.share-transaction-currency {
|
|
22
|
+
display: flex;
|
|
23
|
+
margin-left: -4px;
|
|
51
24
|
}
|
|
52
25
|
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.transaction-currency {
|
|
59
|
-
display: inline-block;
|
|
60
|
-
width: 90px;
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
|
|
63
|
-
.ant-select {
|
|
64
|
-
width: 100px !important;
|
|
65
|
-
}
|
|
26
|
+
.subtitle {
|
|
27
|
+
color: #00000073;
|
|
28
|
+
transform: scale(0.7);
|
|
29
|
+
margin-bottom: 7px;
|
|
66
30
|
}
|
|
67
31
|
}
|
|
68
32
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
display: none;
|
|
72
|
-
top: 50%;
|
|
73
|
-
right: 20px;
|
|
74
|
-
margin-top: -16px;
|
|
33
|
+
.share-transaction-item-data-info-gray {
|
|
34
|
+
color: #777;
|
|
75
35
|
}
|
|
76
36
|
|
|
77
|
-
.transaction-
|
|
78
|
-
|
|
79
|
-
.transaction-date:hover {
|
|
80
|
-
color: @primary-color;
|
|
81
|
-
}
|
|
37
|
+
.share-transaction-item-tool {
|
|
38
|
+
display: none;
|
|
82
39
|
|
|
83
|
-
|
|
84
|
-
.tool-bar {
|
|
40
|
+
&.show {
|
|
85
41
|
display: block;
|
|
86
42
|
}
|
|
87
43
|
}
|
|
44
|
+
|
|
45
|
+
.custom-column-item___yTecf {
|
|
46
|
+
padding: 10px 20px;
|
|
47
|
+
}
|
|
88
48
|
}
|
|
89
49
|
}
|
|
@@ -19,7 +19,7 @@ import TransactionTypeFilter from "../../controls/TransactionTypeFilter";
|
|
|
19
19
|
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
|
20
20
|
import styles from "./index.less";
|
|
21
21
|
const ShareTransactionList = (props) => {
|
|
22
|
-
const { shareTransactionId, corporateId, memberId, readonly,
|
|
22
|
+
const { shareTransactionId, corporateId, memberId, readonly, headerTitle } = props;
|
|
23
23
|
const [shareTransactionTotal, setShareTransactionTotal] = useState(0);
|
|
24
24
|
const shareStore = useShareTransactionStore();
|
|
25
25
|
const documentStore = useDocumentStore();
|
|
@@ -66,8 +66,8 @@ const ShareTransactionList = (props) => {
|
|
|
66
66
|
header: header,
|
|
67
67
|
sortable: false,
|
|
68
68
|
addAble: false,
|
|
69
|
-
}, propertiesView: (id) =>
|
|
70
|
-
React.createElement(ShareTransactionItem, { id: item.id, connectDragSource: connectDragSource
|
|
69
|
+
}, propertiesView: (id) => React.createElement(ShareTransactionPropertiesView, { id: id }), renderItem: ({ item, index, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id },
|
|
70
|
+
React.createElement(ShareTransactionItem, { id: item.id, connectDragSource: connectDragSource }))), moveAfter: moveAfter }),
|
|
71
71
|
state.addAble && (React.createElement("div", { className: "create-shareTransaction-form" },
|
|
72
72
|
React.createElement(Input, { autoFocus: true, value: state.name, onChange: (e) => runInAction(() => (state.name = e.target.value)), placeholder: `Name of ${state.type} for ShareTransaction`, suffix: state.loading ? React.createElement(LoadingOutlined, null) : "", onPressEnter: onSave, onKeyDown: (e) => {
|
|
73
73
|
if (e.keyCode === 27)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,8BAA8B,MAAM,mCAAmC,CAAC;AAC/E,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,oBAAoB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OA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ACf;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,SAAS,gBAAgB;QACxB,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,wDAAwD;YAC/D,KAAK,CAAC,IAAI;gBACT,MAAM,cAAc;qBAClB,cAAc,CAAC,WAAY,EAAE,kBAAkB,EAAE;oBACjD,KAAK,EAAE,SAAS;iBAChB,CAAC;qBACD,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;YACtD,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { Image } from "@voplus/antd";
|
|
|
5
5
|
import { base64ToBlob, blobToBase64 } from "base64-blob";
|
|
6
6
|
import { QRCodeCanvas } from "qrcode.react";
|
|
7
7
|
import SignatureDialog from "@voplus/morpho-ui/es/components/SignatureDialog";
|
|
8
|
+
import moment from "moment";
|
|
8
9
|
import styles from "./index.less";
|
|
9
10
|
const ShareCertificate = (props) => {
|
|
10
11
|
const shareCertificate = useShareCertificate(props.id);
|
|
@@ -14,12 +15,12 @@ const ShareCertificate = (props) => {
|
|
|
14
15
|
const [signVisible, setSignVisible] = useState(false);
|
|
15
16
|
useAutorunEffect(() => {
|
|
16
17
|
if (shareCertificate.signature1) {
|
|
17
|
-
base64ToBlob(
|
|
18
|
+
base64ToBlob(shareCertificate.signature1).then((val) => {
|
|
18
19
|
setFile1(val);
|
|
19
20
|
});
|
|
20
21
|
}
|
|
21
22
|
if (shareCertificate.signature2) {
|
|
22
|
-
base64ToBlob(
|
|
23
|
+
base64ToBlob(shareCertificate.signature2).then((val) => {
|
|
23
24
|
setFile2(val);
|
|
24
25
|
});
|
|
25
26
|
}
|
|
@@ -30,37 +31,42 @@ const ShareCertificate = (props) => {
|
|
|
30
31
|
React.createElement("div", { className: "share-certificate-info" },
|
|
31
32
|
React.createElement("div", { className: "share-certificate-header" },
|
|
32
33
|
React.createElement("div", { className: "share-certificate-no" },
|
|
33
|
-
React.createElement("span", null,
|
|
34
|
-
|
|
35
|
-
shareCertificate.number)),
|
|
34
|
+
React.createElement("span", null, "Certificate No."),
|
|
35
|
+
React.createElement("p", null, shareCertificate.number)),
|
|
36
36
|
React.createElement("div", { className: "share-certificate-title" }, "SHARE CERTIFICATE"),
|
|
37
37
|
React.createElement("div", { className: "share-certificate-no" },
|
|
38
|
-
React.createElement("span", null,
|
|
39
|
-
|
|
40
|
-
shareCertificate.number))),
|
|
38
|
+
React.createElement("span", null, "No. Of Shares "),
|
|
39
|
+
React.createElement("p", null, shareCertificate.shares))),
|
|
41
40
|
React.createElement("div", { className: "share-certificate-body" },
|
|
42
41
|
React.createElement("div", { className: "share-certificate-company" },
|
|
43
42
|
React.createElement("span", null, "VOPLUS CONSULTING PTE. LTD.")),
|
|
43
|
+
React.createElement("div", { className: "share-certificate-register-number" },
|
|
44
|
+
"(Registration No: ",
|
|
45
|
+
")"),
|
|
44
46
|
React.createElement("div", null,
|
|
45
|
-
React.createElement("div", { className: "share-certificate-explain" }, "(the \u201CCompany\u201D) Incorporated in the Republic of Singapore under The Companies Act,
|
|
46
|
-
React.createElement("div", { className: "share-certificate-
|
|
47
|
-
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"))),
|
|
48
50
|
React.createElement("div", { className: "share-certificate-art-font" }, "THIS IS TO CERTIFY THAT"),
|
|
49
51
|
React.createElement("div", { className: "share-certificate-name" },
|
|
50
52
|
React.createElement("span", null, shareCertificate.shareholderName)),
|
|
51
53
|
React.createElement("div", { className: "share-certificate-art-font" },
|
|
52
|
-
"IS THE
|
|
53
|
-
React.createElement("span",
|
|
54
|
-
"
|
|
55
|
-
|
|
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"),
|
|
56
62
|
React.createElement("div", { className: "share-certificate-date-info" },
|
|
57
63
|
React.createElement("div", { className: "share-certificate-date" },
|
|
58
|
-
"Given
|
|
59
|
-
React.createElement("span", null, "
|
|
60
|
-
" day of",
|
|
61
|
-
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")),
|
|
62
68
|
" in the year ",
|
|
63
|
-
React.createElement("span", null, "
|
|
69
|
+
React.createElement("span", null, moment(shareCertificate.certificateDate).format("YYYY"))))),
|
|
64
70
|
React.createElement("div", { className: "share-certificate-footer" },
|
|
65
71
|
React.createElement("div", { className: "share-certificate-footer-boder" },
|
|
66
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"))),
|
|
@@ -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,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,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/cor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AE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,GAAG,CAC9E,CAAC,CAAC,CAAC,CACH,8BAAM,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAsB,CAC1E,CACI;wBACN,uDAA+B,CAC1B,CACD,CACD,CACD;QACL,WAAW,IAAI,CACf,oBAAC,eAAe,IAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,WAAW,GAAI,CAC/E,CACI,CACN,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,IAAU,EAAE,IAAa;QAC7C,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -80,13 +80,19 @@
|
|
|
80
80
|
font-size: 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;
|
|
@@ -149,8 +154,8 @@
|
|
|
149
154
|
display: flex;
|
|
150
155
|
align-items: center;
|
|
151
156
|
justify-content: center;
|
|
152
|
-
border-top: 1px dashed #ccc;
|
|
153
|
-
border-bottom: 1px dashed #ccc;
|
|
157
|
+
// border-top: 1px dashed #ccc;
|
|
158
|
+
// border-bottom: 1px dashed #ccc;
|
|
154
159
|
width: 300px;
|
|
155
160
|
height: 200px;
|
|
156
161
|
}
|
|
@@ -164,6 +169,10 @@
|
|
|
164
169
|
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
165
170
|
font-size: 14px;
|
|
166
171
|
}
|
|
172
|
+
|
|
173
|
+
.underline {
|
|
174
|
+
text-decoration: underline;
|
|
175
|
+
}
|
|
167
176
|
}
|
|
168
177
|
}
|
|
169
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,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,MAAM,MAAM,QAAQ,CAAC;AAa5B,MAAM,0BAA0B,GAAG,CAAC,KAanC,EAAE,EAAE;IACJ,MAAM,EACL,EAAE,EACF,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,SAAS,GAAG,0BAA0B,aAA1B,0BAA0B,uBAA1B,0BAA0B,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAA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AE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAElE,CACS,CACZ,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,0BAA0B,CAAC,YAAY,GAAG;IACzC,qBAAqB,EAAE,6BAA6B;IACpD,aAAa,EAAE,qBAAqB;IACpC,0BAA0B,EAAE;QAC3B,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,iBAAiB,EAAE;QAC3B,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,iBAAiB,EAAE;QAC3B,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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"] },
|