@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,95 +1,27 @@
|
|
|
1
|
+
import Properties from "./Properties";
|
|
2
|
+
import PropertiesCard from "@voplus/morpho-ui/es/controls/PropertiesCard";
|
|
1
3
|
import React from "react";
|
|
2
|
-
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
3
4
|
import { Skeleton } from "@voplus/antd";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import CorporateStatusLabel from "../../controls/CorporateStatusLabel";
|
|
7
|
-
import InlineEditAddress from "../InlineEditAddress";
|
|
8
|
-
import InlineEditCountry from "../InlineEditCountry";
|
|
9
|
-
import InlineEditType from "../InlineEditType";
|
|
10
|
-
import classnames from "classnames";
|
|
11
|
-
import moment from "moment";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useCorporate } from "../../../../../data/corporate";
|
|
12
7
|
const CompanyPropertiesCard = (props) => {
|
|
13
|
-
const { id } = props;
|
|
8
|
+
const { id, companyProperties } = props;
|
|
14
9
|
const corporate = useCorporate(id, { includes: "registers" });
|
|
15
|
-
const corporateStore = useCorporateStore();
|
|
16
10
|
return observe(() => {
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
title: "Country of Registration",
|
|
20
|
-
content: (React.createElement(InlineEditCountry, { country: corporate.jurisdiction, list: corporate.allowedJurisdictions, onChange: (country) => save({
|
|
21
|
-
Jurisdiction: country,
|
|
22
|
-
}) })),
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: "Type",
|
|
26
|
-
content: (React.createElement(InlineEditType, { type: corporate.corporateType, list: ["Proprietorship", "Company", "Partnership"], readonly: !corporate.allowEdit, onSave: (value) => save({
|
|
27
|
-
CorporateType: value,
|
|
28
|
-
}) })),
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
title: "Liability Type",
|
|
32
|
-
content: (React.createElement(InlineEditType, { type: corporate.liabilityType, list: ["Unlimited", "LimitedByShares", "LimitedByGuarantee"], readonly: !corporate.allowEdit, onSave: (value) => save({
|
|
33
|
-
LiabilityType: value,
|
|
34
|
-
}) })),
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
title: "Registration Number",
|
|
38
|
-
content: (React.createElement(InlineEdit, { defaultValue: corporate.registrationNumber, editable: corporate.allowEdit, content: (v) => v.store.value ? (React.createElement("span", null, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "No Registration Number")), onSave: (value) => value &&
|
|
39
|
-
value !== corporate.registrationNumber &&
|
|
40
|
-
save({
|
|
41
|
-
RegistrationNumber: value,
|
|
42
|
-
}) })),
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
title: "Registration Date",
|
|
46
|
-
content: (React.createElement(InlineEdit, { defaultValue: moment(corporate.registrationDate), editable: corporate.allowEdit, content: (v) => corporate.registrationDate ? (React.createElement("span", null, moment(corporate.registrationDate).format("DD MMM yyyy"))) : (React.createElement("span", { className: "add-info-style" }, "No Registration Date")), editor: DateInputEditor, onSave: changeRegistrationDate })),
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
title: "Registered Address",
|
|
50
|
-
content: (React.createElement(InlineEditAddress, { address: corporate.registeredAddress, readonly: !corporate.allowEdit, modal: true, onChange: (address) => save({
|
|
51
|
-
RegisteredAddress: address,
|
|
52
|
-
}) })),
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
title: "Corporate Status",
|
|
56
|
-
content: (React.createElement(CorporateStatusLabel, { status: corporate.corporateStatus, editable: true, onChange: (status) => save({
|
|
57
|
-
CorporateStatus: status,
|
|
58
|
-
}) })),
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
title: "FYE",
|
|
62
|
-
content: (React.createElement(InlineEdit, { defaultValue: (corporate === null || corporate === void 0 ? void 0 : corporate.fYE) ? moment(corporate === null || corporate === void 0 ? void 0 : corporate.fYE) : undefined, editable: corporate.allowEdit, content: (v) => (corporate === null || corporate === void 0 ? void 0 : corporate.fYE) ? (React.createElement("span", null, moment(corporate === null || corporate === void 0 ? void 0 : corporate.fYE).format("DD MMM"))) : (React.createElement("span", { className: "add-info-style" }, "Add FYE")), editor: DateInputEditor, onSave: changeFYEDate })),
|
|
63
|
-
},
|
|
64
|
-
];
|
|
65
|
-
return corporate.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement("div", { className: "mt-5 overflow-hidden bg-white shadow sm:rounded-lg" },
|
|
66
|
-
React.createElement("div", { className: "px-4 py-4 sm:px-6" },
|
|
67
|
-
React.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900" }, "Company Details")),
|
|
68
|
-
React.createElement("div", { className: "border-t border-gray-200" },
|
|
69
|
-
React.createElement("dl", null, dataList.map((item, index) => (React.createElement("div", { key: index, className: classnames("flex items-center px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6", {
|
|
70
|
-
"bg-gray-50": index % 2 === 0,
|
|
71
|
-
"bg-white": index % 2 === 1,
|
|
72
|
-
}) },
|
|
73
|
-
React.createElement("div", { className: "text-sm font-medium text-gray-500" }, item.title),
|
|
74
|
-
React.createElement("div", { className: "mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0" }, item.content))))))));
|
|
75
|
-
async function save(options) {
|
|
76
|
-
await corporateStore.edit(id, {
|
|
77
|
-
data: options,
|
|
78
|
-
error: "message",
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function changeRegistrationDate(v) {
|
|
82
|
-
// date未变更不保存
|
|
83
|
-
if ((corporate === null || corporate === void 0 ? void 0 : corporate.registrationDate) && moment(v).isSame(corporate.registrationDate, "day"))
|
|
84
|
-
return;
|
|
85
|
-
save({ RegistrationDate: v });
|
|
86
|
-
}
|
|
87
|
-
function changeFYEDate(v) {
|
|
88
|
-
if ((corporate === null || corporate === void 0 ? void 0 : corporate.fYE) && moment(v).isSame(corporate.fYE, "day"))
|
|
89
|
-
return;
|
|
90
|
-
save({ FYE: v !== null ? v : "" });
|
|
91
|
-
}
|
|
11
|
+
return corporate.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(PropertiesCard, { title: "Company Details", cardList: companyProperties, cardItem: (item) => React.createElement(Properties, { id: id, propertiesName: item }) }));
|
|
92
12
|
});
|
|
93
13
|
};
|
|
14
|
+
CompanyPropertiesCard.defaultProps = {
|
|
15
|
+
companyProperties: [
|
|
16
|
+
"Country of Registration",
|
|
17
|
+
"Type",
|
|
18
|
+
"Liability Type",
|
|
19
|
+
"Registration Number",
|
|
20
|
+
"Registration Date",
|
|
21
|
+
"Registered Address",
|
|
22
|
+
"Corporate Status",
|
|
23
|
+
"FYE",
|
|
24
|
+
],
|
|
25
|
+
};
|
|
94
26
|
export default CompanyPropertiesCard;
|
|
95
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAqC,MAAM,cAAc,CAAC;AAEjE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,qBAAqB,GAAG,CAAC,KAAmD,EAAE,EAAE;IACrF,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC;IAE9D,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAC1B,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,oBAAC,cAAc,IACd,KAAK,EAAC,iBAAiB,EACvB,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,CAAC,IAA2B,EAAE,EAAE,CAAC,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,GAAI,GACtF,CACF,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG;IACpC,iBAAiB,EAAE;QAClB,yBAAyB;QACzB,MAAM;QACN,gBAAgB;QAChB,qBAAqB;QACrB,mBAAmB;QACnB,oBAAoB;QACpB,kBAAkB;QAClB,KAAK;KACL;CACD,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -51,7 +51,7 @@ const CompanyDefaultView = (props) => {
|
|
|
51
51
|
React.createElement(Routes, null,
|
|
52
52
|
React.createElement(Route, { path: "company", element: React.createElement(CompanyDetailsView, { id: corporate.id }) }),
|
|
53
53
|
React.createElement(Route, { path: "registers/OfficersRegister", element: state.OfficerId ? (React.createElement(OfficerList, { officersRegisterId: state.OfficerId, corporateId: corporate.id, allowEdit: corporate.allowEdit })) : null }),
|
|
54
|
-
React.createElement(Route, { path: "registers/ShareTransactionsRegister", element: state.shareTransactionId ? (React.createElement(ShareTransactionList, { shareTransactionId: state.shareTransactionId, corporateId: corporate.id, memberId: state.MemberId, readonly: !corporate.allowEdit,
|
|
54
|
+
React.createElement(Route, { path: "registers/ShareTransactionsRegister", element: state.shareTransactionId ? (React.createElement(ShareTransactionList, { shareTransactionId: state.shareTransactionId, corporateId: corporate.id, memberId: state.MemberId, readonly: !corporate.allowEdit, headerTitle: "ShareTransactions Register" })) : null }),
|
|
55
55
|
React.createElement(Route, { path: "registers/MembersRegister", element: state.MemberId ? (React.createElement(CompanyMemberList, { membersRegisterId: state.MemberId, corporateId: corporate.id, allowEdit: corporate.allowEdit })) : null }),
|
|
56
56
|
React.createElement(Route, { path: "registers/ControllerRegister", element: state.ControllerId && loaded ? (React.createElement(ControllerList, { controllerRegisterId: state.ControllerId, corporateId: corporate.id, allowEdit: corporate.allowEdit, onReload: onReload })) : null }),
|
|
57
57
|
React.createElement(Route, { path: "annualFilings", element: React.createElement(AnnualFilings, { id: corporate.id }) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EACN,UAAU,EACV,cAAc,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,GAC7B,CACF,CAAC,CAAC,CAAC,IAAI,GAER;gBACF,oBAAC,KAAK,IACL,IAAI,EAAC,qCAAqC,EAC1C,OAAO,EACN,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAC1B,oBAAC,oBAAoB,IACpB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAC5C,WAAW,EAAE,SAAS,CAAC,EAAE,EACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,QAAQ,EAAE,CAAC,SAAS,CAAC,SAAS,EAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EACN,UAAU,EACV,cAAc,EACd,aAAa,EACb,QAAQ,EACR,WAAW,EACX,aAAa,EACb,kBAAkB,GAClB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,aAAa,MAAM,iDAAiD,CAAC;AAC5E,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,WAAW,MAAM,+CAA+C,CAAC;AACxE,OAAO,cAAc,MAAM,qDAAqD,CAAC;AACjF,OAAO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AS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,OAAO,CAAC,GAAW;QAC3B,IAAI,GAAG,KAAK,YAAY;YAAE,OAAO;QACjC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;QAEpC,sCAAsC;QACtC,4EAA4E;IAC7E,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useCorporate, useCorporateStore } from "../../../../../data/corporate";
|
|
4
|
+
import SettingPage from "@voplus/morpho-ui/es/controls/SettingPage";
|
|
5
|
+
import Setting from "@voplus/morpho-ui/es/controls/SettingPage/Setting";
|
|
6
|
+
import SettingSection from "@voplus/morpho-ui/es/controls/SettingPage/SettingSection";
|
|
7
|
+
import "./index.less";
|
|
8
|
+
const CompanySettingPage = (props) => {
|
|
9
|
+
const corporate = useCorporate(props.id, { reload: true, includes: "share-settings" });
|
|
10
|
+
const store = useCorporateStore();
|
|
11
|
+
return observe(() => {
|
|
12
|
+
var _a;
|
|
13
|
+
return (React.createElement(SettingPage, { className: "company-setting-page", header: React.createElement(React.Fragment, null, "Corporate Settings") },
|
|
14
|
+
React.createElement(SettingSection, null, props.liabilityType === "LimitedByShares" && (React.createElement(Setting, { label: "Share Certificate Number Sequence" },
|
|
15
|
+
React.createElement(InlineEdit, { defaultValue: (_a = corporate.shareSettings) === null || _a === void 0 ? void 0 : _a.numberSequence, content: (v) => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
return (React.createElement("div", null, ((_a = corporate.shareSettings) === null || _a === void 0 ? void 0 : _a.numberSequence) !== null ? (React.createElement("span", { className: "default-key-style" }, (_b = corporate.shareSettings) === null || _b === void 0 ? void 0 : _b.numberSequence)) : (React.createElement("span", { className: "add-info-style" }, "Add Share Certificate Number Sequence"))));
|
|
18
|
+
}, onSave: (value) => store.edit(props.id, {
|
|
19
|
+
data: { Settings: { ShareNumberSequence: value } },
|
|
20
|
+
error: "message",
|
|
21
|
+
}) }))))));
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export default CompanySettingPage;
|
|
25
|
+
//# sourceMappingURL=CompanySetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompanySetting.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/CompanySetting.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAA6C,EAAE,EAAE;IAC5E,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,CAAC;IACvF,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAElC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,WAAW,IAAC,SAAS,EAAC,sBAAsB,EAAC,MAAM,EAAE,+DAAuB;YAC5E,oBAAC,cAAc,QACb,KAAK,CAAC,aAAa,KAAK,iBAAiB,IAAI,CAC7C,oBAAC,OAAO,IAAC,KAAK,EAAC,mCAAmC;gBACjD,oBAAC,UAAU,IACV,YAAY,EAAE,MAAA,SAAS,CAAC,aAAa,0CAAE,cAAc,EACrD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;;wBAAC,OAAA,CACf,iCACE,CAAA,MAAA,SAAS,CAAC,aAAa,0CAAE,cAAc,MAAK,IAAI,CAAC,CAAC,CAAC,CACnD,8BAAM,SAAS,EAAC,mBAAmB,IACjC,MAAA,SAAS,CAAC,aAAa,0CAAE,cAAc,CAClC,CACP,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,4CAA6C,CAC7E,CACI,CACN,CAAA;qBAAA,EACD,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CACtB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;wBACpB,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,EAAE;wBAClD,KAAK,EAAE,SAAS;qBAChB,CAAC,GAEF,CACO,CACV,CACe,CACJ,CACd,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
|
|
3
|
-
import { faTableRows, faChartNetwork, faFileInvoice, faFolder, faScrollOld, faUserHeadset, faEllipsisVertical, } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
+
import { faTableRows, faChartNetwork, faFileInvoice, faFolder, faScrollOld, faUserHeadset, faEllipsisVertical, faGear, } from "@fortawesome/pro-light-svg-icons";
|
|
4
4
|
import { State } from "./state";
|
|
5
5
|
import { Menu } from "@voplus/antd";
|
|
6
6
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
@@ -21,6 +21,7 @@ import RegisteresMenuItem from "../../../../../components/RegisteresMenuItem";
|
|
|
21
21
|
import Scrollbars from "react-custom-scrollbars";
|
|
22
22
|
import ServiceList from "../../../service/components/ServiceList";
|
|
23
23
|
import Statement from "../../../components/Statement";
|
|
24
|
+
import CompanySetting from "./CompanySetting";
|
|
24
25
|
import "./index.less";
|
|
25
26
|
const CompanyPage = (props) => {
|
|
26
27
|
const [state] = useState(new State());
|
|
@@ -50,12 +51,13 @@ const CompanyPage = (props) => {
|
|
|
50
51
|
React.createElement(Menu.Item, { key: "/service", disabled: true, icon: React.createElement(FAIcon, { icon: faUserHeadset }) }, "Service"),
|
|
51
52
|
React.createElement(Menu.Item, { key: "/statement", disabled: true, icon: React.createElement(FAIcon, { icon: faFileInvoice }) }, "Statement"),
|
|
52
53
|
React.createElement(Menu.Item, { key: "/documents", icon: React.createElement(FAIcon, { icon: faFolder }) }, "Documents"),
|
|
53
|
-
React.createElement(Menu.Item, { key: "/activities", icon: React.createElement(FAIcon, { icon: faChartNetwork }) }, "Activities")
|
|
54
|
+
React.createElement(Menu.Item, { key: "/activities", icon: React.createElement(FAIcon, { icon: faChartNetwork }) }, "Activities"),
|
|
55
|
+
React.createElement(Menu.Item, { key: "/settings", icon: React.createElement(FAIcon, { icon: faGear }) }, "Settings")))),
|
|
54
56
|
React.createElement("div", { className: "company-page-content" },
|
|
55
57
|
React.createElement(Routes, null,
|
|
56
58
|
React.createElement(Route, { path: "dashboard", element: React.createElement(Dashboard, { corporateId: corporate.id, membersRegisterId: state.MemberId, officersRegisterId: state.OfficerId }) }),
|
|
57
59
|
React.createElement(Route, { path: "registers/OfficersRegister", element: state.OfficerId ? (React.createElement(OfficerList, { officersRegisterId: state.OfficerId, corporateId: corporate.id, allowEdit: corporate.allowEdit, onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
58
|
-
React.createElement(Route, { path: "registers/ShareTransactionsRegister", element: state.shareTransactionId ? (React.createElement(ShareTransactionList, { shareTransactionId: state.shareTransactionId, corporateId: corporate.id, memberId: state.MemberId, readonly: !corporate.allowEdit,
|
|
60
|
+
React.createElement(Route, { path: "registers/ShareTransactionsRegister", element: state.shareTransactionId ? (React.createElement(ShareTransactionList, { shareTransactionId: state.shareTransactionId, corporateId: corporate.id, memberId: state.MemberId, readonly: !corporate.allowEdit, headerTitle: "ShareTransactions Register", onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
59
61
|
React.createElement(Route, { path: "registers/MembersRegister", element: state.MemberId ? (React.createElement(CompanyMemberList, { membersRegisterId: state.MemberId, corporateId: corporate.id, allowEdit: corporate.allowEdit, onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
60
62
|
React.createElement(Route, { path: "registers/ControllerRegister", element: state.ControllerId && loaded ? (React.createElement(ControllerList, { controllerRegisterId: state.ControllerId, corporateId: corporate.id, allowEdit: corporate.allowEdit, onReload: onReload, onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
61
63
|
React.createElement(Route, { path: "annualFilings", element: React.createElement(AnnualFilings, { id: corporate.id }) }),
|
|
@@ -63,6 +65,7 @@ const CompanyPage = (props) => {
|
|
|
63
65
|
React.createElement(Route, { path: "statement", element: React.createElement(Statement, null) }),
|
|
64
66
|
React.createElement(Route, { path: "documents", element: React.createElement(DocumentPage, { root: corporate.id, route: `${url}/documents`, className: "corporate-documents", tabTitle: `Corporate - ${corporate.name}` || "Corporate" }) }),
|
|
65
67
|
React.createElement(Route, { path: "activities", element: React.createElement(ActivityLog, { id: corporate.id }) }),
|
|
68
|
+
React.createElement(Route, { path: "settings", element: React.createElement(CompanySetting, { id: props.id, liabilityType: corporate.liabilityType }) }),
|
|
66
69
|
React.createElement(Route, { path: "/", element: React.createElement(Navigate, { to: "dashboard" }) }))))));
|
|
67
70
|
function onReload() {
|
|
68
71
|
setLoaded(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EACN,WAAW,EACX,cAAc,EACd,aAAa,EACb,QAAQ,EACR,WAAW,EACX,aAAa,EACb,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EACN,WAAW,EACX,cAAc,EACd,aAAa,EACb,QAAQ,EACR,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,MAAM,GACN,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,aAAa,MAAM,iDAAiD,CAAC;AAC5E,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,YAAY,MAAM,+C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3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IShareTransaction } from "../../../../../../data/share-transaction";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare const ShareTablePreview: (props: {
|
|
5
|
+
shareTransaction: IShareTransaction;
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
export default ShareTablePreview;
|
|
@@ -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,42 @@
|
|
|
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
|
|
5
|
+
import { useShareTransaction, } from "../../../../../../data/share-transaction";
|
|
6
|
+
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
7
|
+
import ShareTablePreview from "../ShareTablePreview";
|
|
9
8
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
10
|
-
import
|
|
9
|
+
import TagView from "@voplus/morpho-document/es/components/TagView";
|
|
11
10
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
11
|
import classnames from "classnames";
|
|
13
12
|
import moment from "moment";
|
|
14
|
-
import "./index.less";
|
|
13
|
+
import styles from "./index.less";
|
|
15
14
|
const ShareTransactionItem = (props) => {
|
|
16
|
-
const { id
|
|
15
|
+
const { id } = props;
|
|
17
16
|
const shareTransaction = useShareTransaction(id, {
|
|
18
17
|
reload: (i) => !i.tags || !i.transactionType,
|
|
19
18
|
includes: "tags",
|
|
20
19
|
});
|
|
21
20
|
const [hover, setHover] = useState(false);
|
|
22
|
-
const shareStore = useShareTransactionStore();
|
|
23
21
|
const meta = useMetaStore();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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) })) })));
|
|
22
|
+
return observe(() => (React.createElement("div", { className: styles["share-transaction-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false) },
|
|
23
|
+
React.createElement(ColumnItem, null,
|
|
24
|
+
React.createElement(ColumnItemCol, { span: 10 },
|
|
25
|
+
React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, quickDataBarVisible: false, toolsVisible: false, tagsVisible: false }),
|
|
26
|
+
React.createElement("div", { className: "share-transaction-item-data-info-gray" }, moment(shareTransaction.date).format("YYYY-MM-DD"))),
|
|
27
|
+
React.createElement(ColumnItemCol, { span: 3, title: "Type" },
|
|
28
|
+
React.createElement("div", { className: "share-transaction-item-data-info" },
|
|
29
|
+
React.createElement(ShareTablePreview, { shareTransaction: shareTransaction }),
|
|
30
|
+
" ")),
|
|
31
|
+
React.createElement(ColumnItemCol, { span: 3, title: "Currency" },
|
|
32
|
+
React.createElement("div", { className: "share-transaction-item-data-info" }, shareTransaction.currency)),
|
|
33
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Tag" },
|
|
34
|
+
React.createElement("div", { className: "share-transaction-item-data-info" },
|
|
35
|
+
React.createElement(TagView, { id: id, tags: shareTransaction.tags, editable: !shareTransaction.readonly }))),
|
|
36
|
+
React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
|
|
37
|
+
React.createElement("div", { className: classnames("share-transaction-item-tool", { show: hover }) },
|
|
38
|
+
React.createElement(ToolBar, { id: id },
|
|
39
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(shareTransaction) }))))))));
|
|
56
40
|
};
|
|
57
41
|
export default ShareTransactionItem;
|
|
58
42
|
//# 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,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,OAAO,MAAM,+CAA+C,CAAC;AACpE,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,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE;QAChD,MAAM,EAAE,CAAC,CAAwD,EAAE,EAAE,CACpE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,eAAe;QAC9B,QAAQ,EAAE,MAAM;KAChB,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,YAAY,EAAE,C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;gBACvC,6BAAK,SAAS,EAAE,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,52 @@
|
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
padding: 0;
|
|
8
|
-
margin-left: 20px;
|
|
9
|
-
line-height: 28px;
|
|
10
|
-
border-bottom: 1px solid #f2f2f2;
|
|
11
|
-
|
|
12
|
-
&:hover{
|
|
13
|
-
background: rgba(255, 255, 255, 0);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.shareTransaction-item-first {
|
|
17
|
-
padding-top: 10px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.sidebar {
|
|
21
|
-
.add-tag-btn {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
4
|
+
.share-transaction-item {
|
|
5
|
+
&:hover {
|
|
6
|
+
// background-color: #f5f8fd;
|
|
7
|
+
}
|
|
25
8
|
|
|
26
|
-
|
|
27
|
-
.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
width: 14px;
|
|
9
|
+
:global {
|
|
10
|
+
.document-header-default {
|
|
11
|
+
background-color: rgba(0, 0, 0, 0);
|
|
12
|
+
padding: 0;
|
|
31
13
|
}
|
|
32
14
|
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
15
|
+
.share-transaction-item-name {
|
|
16
|
+
color: #575757;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
word-break: break-all;
|
|
36
19
|
}
|
|
37
20
|
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
display: inline-block;
|
|
41
|
-
min-width: 110px;
|
|
42
|
-
// margin-right: 30px;
|
|
43
|
-
}
|
|
21
|
+
.share-transaction-item-data-info {
|
|
22
|
+
height: 22px;
|
|
44
23
|
|
|
45
|
-
|
|
46
|
-
|
|
24
|
+
&.share-transaction-currency {
|
|
25
|
+
display: flex;
|
|
26
|
+
margin-left: -4px;
|
|
47
27
|
}
|
|
48
28
|
|
|
49
|
-
.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.transaction-type {
|
|
54
|
-
display: inline-block;
|
|
55
|
-
width: 100px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.transaction-currency {
|
|
59
|
-
display: inline-block;
|
|
60
|
-
width: 90px;
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
|
|
63
|
-
.ant-select {
|
|
64
|
-
width: 100px !important;
|
|
65
|
-
}
|
|
29
|
+
.subtitle {
|
|
30
|
+
color: #00000073;
|
|
31
|
+
transform: scale(0.7);
|
|
32
|
+
margin-bottom: 7px;
|
|
66
33
|
}
|
|
67
34
|
}
|
|
68
35
|
|
|
69
|
-
.
|
|
70
|
-
|
|
71
|
-
display: none;
|
|
72
|
-
top: 50%;
|
|
73
|
-
right: 20px;
|
|
74
|
-
margin-top: -16px;
|
|
36
|
+
.share-transaction-item-data-info-gray {
|
|
37
|
+
color: #777;
|
|
75
38
|
}
|
|
76
39
|
|
|
77
|
-
.transaction-
|
|
78
|
-
|
|
79
|
-
.transaction-date:hover {
|
|
80
|
-
color: @primary-color;
|
|
81
|
-
}
|
|
40
|
+
.share-transaction-item-tool {
|
|
41
|
+
display: none;
|
|
82
42
|
|
|
83
|
-
|
|
84
|
-
.tool-bar {
|
|
43
|
+
&.show {
|
|
85
44
|
display: block;
|
|
86
45
|
}
|
|
87
46
|
}
|
|
47
|
+
|
|
48
|
+
.custom-column-item___yTecf {
|
|
49
|
+
padding: 10px 20px;
|
|
50
|
+
}
|
|
88
51
|
}
|
|
89
52
|
}
|