@voplus/morpho-csp 1.0.0-dev002 → 1.0.0-dev004
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/CurrencyView/state.js +18 -22
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/data/corporate/CorporateStore.d.ts +24 -0
- package/es/data/corporate/CorporateStore.js +43 -0
- package/es/data/corporate/CorporateStore.js.map +1 -0
- package/es/data/corporate/hooks.d.ts +10 -0
- package/es/data/corporate/hooks.js +14 -0
- package/es/data/corporate/hooks.js.map +1 -0
- package/es/data/corporate/index.d.ts +4 -0
- package/es/data/corporate/index.js +5 -0
- package/es/data/corporate/index.js.map +1 -0
- package/es/data/corporate/interfaces.d.ts +26 -0
- package/es/data/corporate/interfaces.js +1 -0
- package/es/data/corporate/interfaces.js.map +1 -0
- package/es/data/corporate/types.d.ts +11 -0
- package/es/data/corporate/types.js +1 -0
- package/es/data/corporate/types.js.map +1 -0
- package/es/data/shareTransaction/ShareTransactionStore.d.ts +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
- package/es/data/shareTransaction/hooks.d.ts +1 -1
- package/es/data/shareTransaction/hooks.js +1 -1
- package/es/data/shareTransaction/hooks.js.map +1 -1
- package/es/data/shareTransaction/interfaces/IShareTransaction.d.ts +1 -3
- package/es/data/shareTransaction/metas.js +5 -9
- package/es/data/shareTransaction/metas.js.map +1 -1
- package/es/data/shareTransaction/types/ShareTransactionCreateOptions.d.ts +1 -1
- package/es/data/shareTransaction/types/ShareTransactionEditOptions.d.ts +1 -3
- package/es/modules/corporate/CorporateDefaultView/index.d.ts +3 -0
- package/es/modules/corporate/CorporateDefaultView/index.js +18 -0
- package/es/modules/corporate/CorporateDefaultView/index.js.map +1 -0
- package/es/modules/corporate/DocumentIconList/index.d.ts +7 -0
- package/es/modules/corporate/DocumentIconList/index.js +32 -0
- package/es/modules/corporate/DocumentIconList/index.js.map +1 -0
- package/es/modules/corporate/DocumentIconList/index.less +14 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.d.ts +7 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.js +43 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/CompanyDefaultView/index.less +25 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.d.ts +6 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.js +91 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -0
- package/es/modules/corporate/company/CompanyDetailsView/index.less +36 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.d.ts +20 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.js +40 -0
- package/es/modules/corporate/company/CompanyDetailsView/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.d.ts +6 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +31 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.less +22 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.d.ts +5 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js +59 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.d.ts +15 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js +38 -0
- package/es/modules/corporate/company/Identity/IdentityInformation/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +36 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js +16 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js +32 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js +32 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.d.ts +3 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js +33 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page5.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +7 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js +65 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +55 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +37 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js +71 -0
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.d.ts +23 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.js +55 -0
- package/es/modules/corporate/company/Identity/data/IdentityStore.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/hooks.d.ts +13 -0
- package/es/modules/corporate/company/Identity/data/hooks.js +31 -0
- package/es/modules/corporate/company/Identity/data/hooks.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/index.d.ts +4 -0
- package/es/modules/corporate/company/Identity/data/index.js +5 -0
- package/es/modules/corporate/company/Identity/data/index.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/interfaces.d.ts +17 -0
- package/es/modules/corporate/company/Identity/data/interfaces.js +1 -0
- package/es/modules/corporate/company/Identity/data/interfaces.js.map +1 -0
- package/es/modules/corporate/company/Identity/data/types.d.ts +16 -0
- package/es/modules/corporate/company/Identity/data/types.js +1 -0
- package/es/modules/corporate/company/Identity/data/types.js.map +1 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.d.ts +6 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.js +54 -0
- package/es/modules/corporate/company/Officer/ContactInformation/index.js.map +1 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.d.ts +20 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.js +30 -0
- package/es/modules/corporate/company/Officer/ContactInformation/state.js.map +1 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.d.ts +6 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js +33 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/Officer/OfficerDefaultView/index.less +48 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.d.ts +3 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js +15 -0
- package/es/modules/corporate/company/Officer/OfficerInformation/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.d.ts +7 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js +83 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/index.less +15 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.d.ts +7 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js +23 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerList/state.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.d.ts +6 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js +51 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerRegisterDefaultView/index.less +20 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.d.ts +3 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js +20 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.js.map +1 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/index.less +5 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.d.ts +10 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js +25 -0
- package/es/modules/corporate/company/OfficerRegister/OfficerStatusFilter/state.js.map +1 -0
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js +4 -8
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js +14 -10
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItem/index.less +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js +51 -55
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDataContext.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js +17 -21
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js +19 -23
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionList/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js +13 -12
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionRegisterDefaultView/index.less +2 -6
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js +4 -2
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js +15 -19
- package/es/modules/legalEntity/shareTransactionsRegister/ShareholderSelector/state.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js +2 -2
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeDropdown/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js +8 -14
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/index.js.map +1 -1
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.d.ts +10 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js +34 -0
- package/es/modules/legalEntity/shareTransactionsRegister/TransactionTypeFilter/state.js.map +1 -0
- package/es/routes.d.ts +6 -0
- package/es/routes.js +14 -1
- package/es/routes.js.map +1 -1
- package/es/style/common.less +6 -0
- package/package.json +14 -25
- package/es/data/metas.d.ts +0 -0
- package/es/data/metas.js +0 -1
- package/es/data/metas.js.map +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Button, DatePicker, Descriptions, Input, Table, Timeline, Tooltip } from "@voplus/antd";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import { useCorporate, useCorporateStore } from "../../../../data/corporate";
|
|
5
|
+
import Address from "@voplus/morpho-org/es/components/Address";
|
|
6
|
+
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
7
|
+
import { EditOutlined } from "@ant-design/icons";
|
|
8
|
+
import { InputCountry } from "@voplus/morpho-ui";
|
|
9
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
10
|
+
import { State } from "./state";
|
|
11
|
+
import moment from "moment";
|
|
12
|
+
import { useObserver } from "mobx-react-lite";
|
|
13
|
+
const CompanyDetailsView = (props) => {
|
|
14
|
+
const { id } = props;
|
|
15
|
+
const corporate = useCorporate(id);
|
|
16
|
+
const [state] = useState(new State());
|
|
17
|
+
const corporateStore = useCorporateStore();
|
|
18
|
+
const capital = [
|
|
19
|
+
{
|
|
20
|
+
Currency: "SGD",
|
|
21
|
+
Share: "Ordinary",
|
|
22
|
+
Amount: "$50,000",
|
|
23
|
+
UnpaidAmount: "$49,999"
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
const guaranteed = [{ Currency: "SGD", Amount: "$50,000" }];
|
|
27
|
+
return useObserver(() => {
|
|
28
|
+
var _a, _b, _c, _d, _e;
|
|
29
|
+
return (React.createElement(Scrollbars, null,
|
|
30
|
+
React.createElement("div", { className: "company-details-view" },
|
|
31
|
+
React.createElement(Card, { shadow: true, className: "card-company" },
|
|
32
|
+
React.createElement(Descriptions, { title: "Company", layout: state.editable ? "vertical" : "horizontal", extra: corporate.allowEdit ? (React.createElement(React.Fragment, null, state.editable ? (React.createElement(React.Fragment, null,
|
|
33
|
+
React.createElement(Button, { type: "text", onClick: () => (state.editable = false) }, "Cancel"),
|
|
34
|
+
React.createElement(Button, { type: "link", loading: state.loading, onClick: onOk }, "Ok"))) : (React.createElement(Tooltip, { title: "Edit" },
|
|
35
|
+
React.createElement(Button, { type: "link", onClick: onEdit, className: "hover-edit-btn" },
|
|
36
|
+
React.createElement(EditOutlined, null)))))) : ("") },
|
|
37
|
+
React.createElement(Descriptions.Item, { label: "Country of Registration" }, state.editable ? (React.createElement(InputCountry, { defaultValue: state.jurisdiction, onChange: (v) => (state.jurisdiction = v) })) : (corporate.jurisdiction)),
|
|
38
|
+
React.createElement(Descriptions.Item, { label: "Type" }, corporate.liabilityType),
|
|
39
|
+
React.createElement(Descriptions.Item, { label: "Registration Number" }, state.editable ? (React.createElement(Input, { value: state.registrationNumber, onChange: e => (state.registrationNumber = e.target.value) })) : (corporate.registrationNumber)),
|
|
40
|
+
React.createElement(Descriptions.Item, { label: "Registration Date" }, state.editable ? (React.createElement(DatePicker, { value: state.registrationDate, onChange: date => (state.registrationDate = date) })) : corporate.registrationDate ? (moment(moment.utc(corporate.registrationDate).toDate()).format("YYYY-MM-DD hh:mm:ss")) : ("")),
|
|
41
|
+
React.createElement(Descriptions.Item, { label: "Registered Address" }, state.editable ? (React.createElement(Address, { value: state.registeredAddress, onChange: v => (state.registeredAddress = v) })) : (React.createElement(React.Fragment, null, (_a = corporate.registeredAddress) === null || _a === void 0 ? void 0 :
|
|
42
|
+
_a.line1, (_b = corporate.registeredAddress) === null || _b === void 0 ? void 0 :
|
|
43
|
+
_b.line2, (_c = corporate.registeredAddress) === null || _c === void 0 ? void 0 :
|
|
44
|
+
_c.city, (_d = corporate.registeredAddress) === null || _d === void 0 ? void 0 :
|
|
45
|
+
_d.state, (_e = corporate.registeredAddress) === null || _e === void 0 ? void 0 :
|
|
46
|
+
_e.country))))),
|
|
47
|
+
React.createElement(Card, { shadow: true },
|
|
48
|
+
React.createElement("div", { className: "company-amount-title" }, "Capital / Guaranteed Amount"),
|
|
49
|
+
React.createElement("h4", null, "Capital"),
|
|
50
|
+
React.createElement(Table, { dataSource: capital, size: "middle", pagination: false, bordered: true },
|
|
51
|
+
React.createElement(Table.Column, { title: "Currency", dataIndex: "Currency", key: "CapitalCurrency" }),
|
|
52
|
+
React.createElement(Table.Column, { title: "Share", dataIndex: "Share", key: "Share" }),
|
|
53
|
+
React.createElement(Table.Column, { title: "Amount", dataIndex: "Amount", key: "CapitalAmount" }),
|
|
54
|
+
React.createElement(Table.Column, { title: "\u200BUnpaid Amount", dataIndex: "UnpaidAmount", key: "\u200BUnpaidAmount" })),
|
|
55
|
+
React.createElement("h4", null, "Guaranteed"),
|
|
56
|
+
React.createElement(Table, { dataSource: guaranteed, size: "middle", pagination: false, bordered: true },
|
|
57
|
+
React.createElement(Table.Column, { title: "Currency", dataIndex: "Currency", key: "Currency" }),
|
|
58
|
+
React.createElement(Table.Column, { title: "Amount", dataIndex: "Amount", key: "Amount" }))),
|
|
59
|
+
React.createElement(Card, { shadow: true },
|
|
60
|
+
React.createElement("div", { className: "ant-descriptions-title" }, "Upcoming Event"),
|
|
61
|
+
React.createElement(Timeline, null,
|
|
62
|
+
React.createElement(Timeline.Item, null, "Create a services site 2015-09-01"),
|
|
63
|
+
React.createElement(Timeline.Item, null, "Solve initial network problems 2015-09-01"),
|
|
64
|
+
React.createElement(Timeline.Item, null, "Technical testing 2015-09-01"),
|
|
65
|
+
React.createElement(Timeline.Item, null, "Network problems being solved 2015-09-01"))))));
|
|
66
|
+
});
|
|
67
|
+
/** hover edit Company detail */
|
|
68
|
+
function onEdit() {
|
|
69
|
+
const { jurisdiction, registrationNumber, registrationDate, registeredAddress } = corporate;
|
|
70
|
+
state.jurisdiction = jurisdiction || "";
|
|
71
|
+
state.registrationNumber = registrationNumber;
|
|
72
|
+
state.registrationDate = moment(moment.utc(registrationDate).toDate());
|
|
73
|
+
state.registeredAddress = (registeredAddress === null || registeredAddress === void 0 ? void 0 : registeredAddress.country) ? registeredAddress : state.defaultAddress;
|
|
74
|
+
state.editable = true;
|
|
75
|
+
}
|
|
76
|
+
/** confirm edit */
|
|
77
|
+
async function onOk() {
|
|
78
|
+
console.log(state, "state.editOption");
|
|
79
|
+
state.loading = true;
|
|
80
|
+
await corporateStore.edit(id, {
|
|
81
|
+
RegistrationNumber: state.registrationNumber,
|
|
82
|
+
Jurisdiction: state.jurisdiction,
|
|
83
|
+
RegisteredAddress: state.registeredAddress,
|
|
84
|
+
RegistrationDate: moment(state.registrationDate).format("YYYY-MM-DD")
|
|
85
|
+
});
|
|
86
|
+
state.loading = false;
|
|
87
|
+
state.editable = false;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
export default CompanyDetailsView;
|
|
91
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/company/CompanyDetailsView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACjG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAE3C,MAAM,OAAO,GAAG;QACf;YACC,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,SAAS;YACjB,YAAY,EAAE,SAAS;SACvB;KACD,CAAC;IACF,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ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B,EAAE,KAAK,CAAC,iBAAiB;YAC1C,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,YAAY,CAAQ;SAC5E,CAAC,CAAC;QACH,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.company-details-view {
|
|
3
|
+
margin: 20px;
|
|
4
|
+
> div + div {
|
|
5
|
+
margin-top: 20px;
|
|
6
|
+
}
|
|
7
|
+
.company-amount-title {
|
|
8
|
+
color: rgba(0, 0, 0, 0.85);
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
margin-bottom: 10px;
|
|
12
|
+
}
|
|
13
|
+
h4 {
|
|
14
|
+
padding: 10px 0;
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
.ant-timeline {
|
|
18
|
+
margin-top: 20px;
|
|
19
|
+
}
|
|
20
|
+
.card-company {
|
|
21
|
+
position: relative;
|
|
22
|
+
&:hover .hover-edit-btn {
|
|
23
|
+
display: block;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
.ant-descriptions-extra .ant-btn {
|
|
27
|
+
padding: 0 0 0 10px;
|
|
28
|
+
height: auto;
|
|
29
|
+
}
|
|
30
|
+
.hover-edit-btn {
|
|
31
|
+
display: none;
|
|
32
|
+
height: auto;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAddress } from "@voplus/morpho-org";
|
|
2
|
+
import moment from "moment";
|
|
3
|
+
export declare class State {
|
|
4
|
+
editable: boolean;
|
|
5
|
+
/** default address */
|
|
6
|
+
defaultAddress: {
|
|
7
|
+
line1: string;
|
|
8
|
+
line2: string;
|
|
9
|
+
city: string;
|
|
10
|
+
state: string;
|
|
11
|
+
postalCode: string;
|
|
12
|
+
country: string;
|
|
13
|
+
};
|
|
14
|
+
registrationNumber: number | string;
|
|
15
|
+
jurisdiction: string;
|
|
16
|
+
registeredAddress: IAddress;
|
|
17
|
+
registrationDate: moment.Moment;
|
|
18
|
+
/** loading of save */
|
|
19
|
+
loading: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.editable = false;
|
|
6
|
+
/** default address */
|
|
7
|
+
this.defaultAddress = {
|
|
8
|
+
line1: "",
|
|
9
|
+
line2: "",
|
|
10
|
+
city: "",
|
|
11
|
+
state: "",
|
|
12
|
+
postalCode: "",
|
|
13
|
+
country: ""
|
|
14
|
+
};
|
|
15
|
+
this.registrationNumber = "";
|
|
16
|
+
this.jurisdiction = "";
|
|
17
|
+
this.registeredAddress = this.defaultAddress;
|
|
18
|
+
/** loading of save */
|
|
19
|
+
this.loading = false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
observable
|
|
24
|
+
], State.prototype, "editable", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
observable
|
|
27
|
+
], State.prototype, "registrationNumber", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
observable
|
|
30
|
+
], State.prototype, "jurisdiction", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
observable
|
|
33
|
+
], State.prototype, "registeredAddress", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
observable
|
|
36
|
+
], State.prototype, "registrationDate", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
observable
|
|
39
|
+
], State.prototype, "loading", void 0);
|
|
40
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/company/CompanyDetailsView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAY,UAAU,EAAE,MAAM,MAAM,CAAC;AAM5C,MAAM,OAAO,KAAK;IAAlB;QACoB,aAAQ,GAAG,KAAK,CAAC;QACpC,sBAAsB;QACf,mBAAc,GAAG;YACvB,KAAK,EAAE,EAAE;YACT,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;YACT,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,EAAE;SACX,CAAC;QACiB,uBAAkB,GAAoB,EAAE,CAAC;QACzC,iBAAY,GAAG,EAAE,CAAC;QAClB,sBAAiB,GAAa,IAAI,CAAC,cAAc,CAAC;QAErE,sBAAsB;QACH,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AAhBY;IAAX,UAAU;uCAAyB;AAUxB;IAAX,UAAU;iDAAiD;AAChD;IAAX,UAAU;2CAA0B;AACzB;IAAX,UAAU;gDAA0D;AACzD;IAAX,UAAU;+CAAwC;AAEvC;IAAX,UAAU;sCAAwB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Button, Form, Switch } from "@voplus/antd";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import DocumentIconList from "../../../DocumentIconList";
|
|
5
|
+
import IdentityInformation from "../IdentityInformation";
|
|
6
|
+
import Scrollbars from "react-custom-scrollbars";
|
|
7
|
+
import { useIdentityStore } from "../data";
|
|
8
|
+
import { useObserver } from "mobx-react-lite";
|
|
9
|
+
const IdentifyDetail = (props) => {
|
|
10
|
+
const { id } = props;
|
|
11
|
+
// switch 下面就是verify, confirm的人和日期....日期要能改
|
|
12
|
+
const [visible, setVisible] = useState(false);
|
|
13
|
+
const identityStore = useIdentityStore();
|
|
14
|
+
console.log(identityStore.load("14dacebf-e57f-49a5-9786-ac30001ec2ea", { reload: true }), "56565");
|
|
15
|
+
return useObserver(() => (React.createElement(Scrollbars, null,
|
|
16
|
+
React.createElement("div", { className: "identity-detail company-information" },
|
|
17
|
+
React.createElement("h3", null, "Verification Information"),
|
|
18
|
+
React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 } },
|
|
19
|
+
React.createElement(Form.Item, { label: "Verified" },
|
|
20
|
+
React.createElement(Switch, null),
|
|
21
|
+
React.createElement("div", { className: "operate-record" }, "HaHa verified on 2020-0903")),
|
|
22
|
+
React.createElement(Form.Item, { label: "Confirmed" },
|
|
23
|
+
React.createElement(Switch, null),
|
|
24
|
+
React.createElement("div", { className: "operate-record" }, "HaHa confirmed on 2020-0903"))),
|
|
25
|
+
!visible ? (React.createElement(Button, { type: "primary", size: "small", onClick: () => setVisible(true) }, "View Information/Document")) : (React.createElement(React.Fragment, null,
|
|
26
|
+
React.createElement(IdentityInformation, { id: "14dacebf-e57f-49a5-9786-ac30001ec2ea" }),
|
|
27
|
+
React.createElement("h3", null, "Documents"),
|
|
28
|
+
React.createElement(DocumentIconList, { id: id, scroll: false })))))));
|
|
29
|
+
};
|
|
30
|
+
export default IdentifyDetail;
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAc,IAAI,EAAiB,MAAM,EAAW,MAAM,cAAc,CAAC;AACxF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AAEzD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,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KAAK,GAAI,CAC3B,CACjB,CACI,CACM,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.identity-detail {
|
|
3
|
+
.operate-record {
|
|
4
|
+
padding-top: 5px;
|
|
5
|
+
}
|
|
6
|
+
.identity-information {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
.hover-edit-btn {
|
|
10
|
+
display: none;
|
|
11
|
+
height: auto;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.document-icon-view_list {
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
&:hover .identity-information .hover-edit-btn {
|
|
18
|
+
display: block;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Button, DatePicker, Form, Input, Select, Skeleton, Tooltip, message } from "@voplus/antd";
|
|
2
|
+
import { useIdentity, useIdentityStore } from "../data";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import { EditOutlined } from "@ant-design/icons";
|
|
5
|
+
import { InputCountry } from "@voplus/morpho-ui";
|
|
6
|
+
import { State } from "./state";
|
|
7
|
+
import moment from "moment";
|
|
8
|
+
import { useObserver } from "mobx-react-lite";
|
|
9
|
+
const IdentityInformation = (props) => {
|
|
10
|
+
const { id } = props;
|
|
11
|
+
const [state] = useState(new State());
|
|
12
|
+
const identityStore = useIdentityStore();
|
|
13
|
+
const identity = useIdentity(id, { reload: true });
|
|
14
|
+
return useObserver(() => (React.createElement(React.Fragment, null, identity.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
|
|
15
|
+
React.createElement("div", { className: "identity-information" },
|
|
16
|
+
React.createElement("h3", null, "Identity Information"),
|
|
17
|
+
React.createElement("div", null, state.editable ? (React.createElement(React.Fragment, null,
|
|
18
|
+
React.createElement(Button, { type: "text", onClick: () => (state.editable = false) }, "Cancel"),
|
|
19
|
+
React.createElement(Button, { type: "link", loading: state.loading, onClick: onOk }, "Ok"))) : (React.createElement(Tooltip, { title: "Edit" },
|
|
20
|
+
React.createElement(Button, { type: "link", onClick: onEdit },
|
|
21
|
+
React.createElement(EditOutlined, null)))))),
|
|
22
|
+
React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 } },
|
|
23
|
+
React.createElement(Form.Item, { label: "Country", name: "Country", rules: [{ required: true }] }, state.editable ? (React.createElement(InputCountry, { defaultValue: state.Country, onChange: (v) => (state.Country = v) })) : (identity.country)),
|
|
24
|
+
React.createElement(Form.Item, { label: "Identity Type", name: "identifyType", rules: [{ required: true }] }, state.editable ? (React.createElement(Select, { defaultValue: state.Type, value: state.Type, onChange: v => (state.Type = v) },
|
|
25
|
+
React.createElement(Select.Option, { value: "International Passport" }, "International Passport"),
|
|
26
|
+
React.createElement(Select.Option, { value: "Identify Card" }, "Identify Card"))) : (identity.type)),
|
|
27
|
+
React.createElement(Form.Item, { label: "Identity #", name: "identity", rules: [{ required: true }] }, state.editable ? (React.createElement(Input, { value: state.Number, defaultValue: state.Number, onChange: e => (state.Number = e.target.value) })) : (identity.number)),
|
|
28
|
+
React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: state.Type === "International Passport" }] }, state.editable ? (React.createElement(DatePicker, { defaultValue: state.ExpiryDate, value: state.ExpiryDate, onChange: date => (state.ExpiryDate = date || moment()) })) : (moment(identity.expiryDate).format("YYYY-MM-DD")))))))));
|
|
29
|
+
/** hover edit IdentityInformation */
|
|
30
|
+
function onEdit() {
|
|
31
|
+
const { number, country, type, expiryDate } = identity;
|
|
32
|
+
state.Number = number || "";
|
|
33
|
+
state.Country = country || "";
|
|
34
|
+
state.Type = type || "International Passport";
|
|
35
|
+
state.ExpiryDate = moment(expiryDate);
|
|
36
|
+
state.editable = true;
|
|
37
|
+
}
|
|
38
|
+
/** save Identity information */
|
|
39
|
+
async function onOk() {
|
|
40
|
+
if (!state.Number ||
|
|
41
|
+
!state.Country ||
|
|
42
|
+
(state.Type === "International Passport" && !state.ExpiryDate))
|
|
43
|
+
return message.warn("Identity information required");
|
|
44
|
+
console.log(state, "state");
|
|
45
|
+
const { Number, Country, Type, ExpiryDate } = state;
|
|
46
|
+
const Options = {
|
|
47
|
+
Number,
|
|
48
|
+
Country,
|
|
49
|
+
Type,
|
|
50
|
+
ExpiryDate: moment(ExpiryDate).format("YYYY-MM-DD HH:mm:ss")
|
|
51
|
+
};
|
|
52
|
+
state.loading = true;
|
|
53
|
+
await identityStore.edit(id, Options);
|
|
54
|
+
state.loading = false;
|
|
55
|
+
return (state.editable = false);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
export default IdentityInformation;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,UAAU,EACV,IAAI,EACJ,KAAK,EACL,MAAM,EACN,QAAQ,EAER,OAAO,EACP,OAAO,EACP,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACrD,MAAM,EAAE,EAAE,E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CAAC;QACtD,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC5B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;QACpD,MAAM,OAAO,GAAG;YACf,MAAM;YACN,OAAO;YACP,IAAI;YACJ,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC;SAC5D,CAAC;QACF,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,OAAc,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
export declare class State {
|
|
3
|
+
/** hover on edit */
|
|
4
|
+
editable: boolean;
|
|
5
|
+
/** */
|
|
6
|
+
Number: number | string;
|
|
7
|
+
/** */
|
|
8
|
+
Type: string;
|
|
9
|
+
/** */
|
|
10
|
+
Country: string;
|
|
11
|
+
/** */
|
|
12
|
+
ExpiryDate: moment.Moment;
|
|
13
|
+
/** loading of save */
|
|
14
|
+
loading: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import moment from "moment";
|
|
3
|
+
import { observable } from "mobx";
|
|
4
|
+
export class State {
|
|
5
|
+
constructor() {
|
|
6
|
+
/** hover on edit */
|
|
7
|
+
this.editable = false;
|
|
8
|
+
/** */
|
|
9
|
+
this.Number = "";
|
|
10
|
+
/** */
|
|
11
|
+
this.Type = "";
|
|
12
|
+
/** */
|
|
13
|
+
this.Country = "";
|
|
14
|
+
/** */
|
|
15
|
+
this.ExpiryDate = moment();
|
|
16
|
+
/** loading of save */
|
|
17
|
+
this.loading = false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
observable
|
|
22
|
+
], State.prototype, "editable", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "Number", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
observable
|
|
28
|
+
], State.prototype, "Type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
observable
|
|
31
|
+
], State.prototype, "Country", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
observable
|
|
34
|
+
], State.prototype, "ExpiryDate", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
observable
|
|
37
|
+
], State.prototype, "loading", void 0);
|
|
38
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/IdentityInformation/state.ts"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACC,oBAAoB;QACD,aAAQ,GAAG,KAAK,CAAC;QACpC,MAAM;QACa,WAAM,GAAoB,EAAE,CAAC;QAChD,MAAM;QACa,SAAI,GAAG,EAAE,CAAC;QAC7B,MAAM;QACa,YAAO,GAAG,EAAE,CAAC;QAChC,MAAM;QACa,eAAU,GAAkB,MAAM,EAAE,CAAC;QACxD,sBAAsB;QACH,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AAXY;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;qCAAqC;AAEpC;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;sCAAqB;AAEpB;IAAX,UAAU;yCAA6C;AAE5C;IAAX,UAAU;sCAAwB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Divider, Radio, Select } from "@voplus/antd";
|
|
2
|
+
import { useUnitListEffect } from "@voplus/morpho-org";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { useLegalContext } from "./state";
|
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
|
6
|
+
const Page1 = () => {
|
|
7
|
+
const legalContext = useLegalContext();
|
|
8
|
+
useUnitListEffect(null, list => {
|
|
9
|
+
legalContext.unitList = list || [];
|
|
10
|
+
});
|
|
11
|
+
return useObserver(() => {
|
|
12
|
+
var _a;
|
|
13
|
+
return (React.createElement(React.Fragment, null,
|
|
14
|
+
React.createElement("div", { className: "select-legal-contact_title" }, "Select Legal Contact"),
|
|
15
|
+
React.createElement("div", { className: "select-legal-contact_content" },
|
|
16
|
+
React.createElement(Radio.Group, { value: legalContext.operate, onChange: e => (legalContext.operate = e.target.value) },
|
|
17
|
+
React.createElement(Radio, { value: "Search", className: "padding-bottom-20" }, "Search an existing contact"),
|
|
18
|
+
React.createElement(Select, { value: (_a = legalContext.unit) === null || _a === void 0 ? void 0 : _a.id, showSearch: true, filterOption: filterItems, optionLabelProp: "title", onSelect: onSelect, style: { width: "100%" } }, legalContext.unitList.map(i => (React.createElement(Select.Option, { key: i.id, value: i.id, title: i.name }, i.name)))),
|
|
19
|
+
React.createElement(Divider, { plain: true }, "or"),
|
|
20
|
+
React.createElement(Radio, { value: "Create" }, "Create a new contact")))));
|
|
21
|
+
});
|
|
22
|
+
function filterItems(input, option) {
|
|
23
|
+
return option.title.toLowerCase().includes(input.toLowerCase());
|
|
24
|
+
}
|
|
25
|
+
/** select unit */
|
|
26
|
+
function onSelect(id) {
|
|
27
|
+
const unit = legalContext.unitList.find(x => x.id === id);
|
|
28
|
+
if (unit) {
|
|
29
|
+
legalContext.unit = unit;
|
|
30
|
+
legalContext.identity.unitId = unit.id;
|
|
31
|
+
}
|
|
32
|
+
console.log(legalContext.unit, "unit");
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default Page1;
|
|
36
|
+
//# sourceMappingURL=Page1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page1.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAS,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;QAC9B,YAAY,CAAC,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC,GAAG,EAAE;;QAAC,OAAA,CACxB,oBAAC,KAAK,CAAC,QAAQ;YACd,6BAAK,SAAS,EAAC,4BAA4B,2BAA2B;YACtE,6BAAK,SAAS,EAAC,8BAA8B;gBAC5C,oBAAC,KAAK,CAAC,KAAK,IACX,KAAK,EAAE,YAAY,CAAC,OAAO,EAC3B,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;oBAEtD,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,EAAC,SAAS,EAAC,mBAAmB,iCAE3C;oBACR,oBAAC,MAAM,IACN,KAAK,QAAE,YAAY,CAAC,IAAI,0CAAE,EAAE,EAC5B,UAAU,QACV,YAAY,EAAE,WAAW,EACzB,eAAe,EAAE,OAAO,EACxB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAEvB,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAC/B,oBAAC,MAAM,CAAC,MAAM,IAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,IAClD,CAAC,CAAC,IAAI,CACQ,CAChB,CAAC,CACM;oBACT,oBAAC,OAAO,IAAC,KAAK,eAAa;oBAC3B,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,2BAA6B,CACrC,CACT,CACU,CACjB,CAAA;KAAA,CAAC,CAAC;IACH,SAAS,WAAW,CAAC,KAAU,EAAE,MAAW;QAC3C,OAAQ,MAAM,CAAC,KAAgB,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IAC7E,CAAC;IACD,kBAAkB;IAClB,SAAS,QAAQ,CAAC,EAAU;QAC3B,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAU,CAAC;QACnE,IAAI,IAAI,EAAE;YACT,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;YACzB,YAAY,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;SACvC;QAED,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Radio } from "@voplus/antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useLegalContext } from "./state";
|
|
4
|
+
import { useObserver } from "mobx-react-lite";
|
|
5
|
+
const Page2 = () => {
|
|
6
|
+
const legalContext = useLegalContext();
|
|
7
|
+
return useObserver(() => (React.createElement(React.Fragment, null,
|
|
8
|
+
React.createElement("div", { className: "select-legal-contact_title" }, "Create Legal Contact"),
|
|
9
|
+
React.createElement("div", { className: "select-legal-contact_content" },
|
|
10
|
+
React.createElement("h4", null, "Choose the type of contact are creating"),
|
|
11
|
+
React.createElement(Radio.Group, { value: legalContext.unitType, onChange: e => (legalContext.unitType = e.target.value) },
|
|
12
|
+
React.createElement(Radio, { value: "People", style: { padding: "10px 0" } }, "People"),
|
|
13
|
+
React.createElement(Radio, { value: "Organization", style: { padding: "10px 0" } }, "Organization"))))));
|
|
14
|
+
};
|
|
15
|
+
export default Page2;
|
|
16
|
+
//# sourceMappingURL=Page2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page2.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,2BAA2B;QACtE,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,0EAAgD;YAChD,oBAAC,KAAK,CAAC,KAAK,IACX,KAAK,EAAE,YAAY,CAAC,QAAQ,EAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;gBAEvD,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,aAE1C;gBACR,oBAAC,KAAK,IAAC,KAAK,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAEhD,CACK,CACT,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Divider, Form, Input, Radio } from "@voplus/antd";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useLegalContext } from "./state";
|
|
4
|
+
import { useObserver } from "mobx-react-lite";
|
|
5
|
+
const Page3 = () => {
|
|
6
|
+
const legalContext = useLegalContext();
|
|
7
|
+
return useObserver(() => (React.createElement(React.Fragment, null,
|
|
8
|
+
React.createElement("div", { className: "select-legal-contact_title" }, "Input Name"),
|
|
9
|
+
React.createElement("div", { className: "select-legal-contact_content" }, legalContext.unitType === "Organization" ? (React.createElement(React.Fragment, null,
|
|
10
|
+
React.createElement("h4", { style: { marginBottom: "10px" } }, "Name of the Organization"),
|
|
11
|
+
React.createElement(Input, { value: legalContext.identity.fistName, onChange: e => (legalContext.identity.fistName = e.target.value) }))) : (React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement("h4", null, "Please choose correct name order and input name of the contact"),
|
|
13
|
+
React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
|
|
14
|
+
React.createElement("div", null, "Full Name Order"),
|
|
15
|
+
React.createElement(Radio.Group, { value: legalContext.orderName, onChange: e => (legalContext.orderName = e.target.value) },
|
|
16
|
+
React.createElement(Radio, { value: "Western", style: { padding: "10px 0" } }, "Fist Middle Last ( Western )"),
|
|
17
|
+
React.createElement(Radio, { value: "Eastern", style: { padding: "10px 0" } }, "Last First ( Eastern )")),
|
|
18
|
+
React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
|
|
19
|
+
React.createElement("div", null, "Displayed Full Name"),
|
|
20
|
+
React.createElement("div", { className: "full-name-displayed" }, legalContext.fullName),
|
|
21
|
+
React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left", colon: false, className: "padding-top-15" },
|
|
22
|
+
React.createElement(Form.Item, { label: "First Name", name: "fistName", rules: [{ required: true, message: "Please input your First Name!" }] },
|
|
23
|
+
React.createElement(Input, { value: legalContext.identity.fistName, onChange: e => (legalContext.identity.fistName = e.target.value) })),
|
|
24
|
+
React.createElement(Form.Item, { label: "Last Name", name: "lastName", rules: [{ required: true, message: "Please input Last Name!" }] },
|
|
25
|
+
React.createElement(Input, { value: legalContext.identity.lastName, onChange: e => (legalContext.identity.lastName = e.target.value) })),
|
|
26
|
+
React.createElement(Form.Item, { label: React.createElement("div", { style: { lineHeight: "15px" } },
|
|
27
|
+
"Middle Name",
|
|
28
|
+
React.createElement("span", { style: { display: "block" } }, "(Optional)")) },
|
|
29
|
+
React.createElement(Input, { value: legalContext.identity.middleName, onChange: e => (legalContext.identity.middleName = e.target.value) })))))))));
|
|
30
|
+
};
|
|
31
|
+
export default Page3;
|
|
32
|
+
//# sourceMappingURL=Page3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page3.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page3.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,iBAAiB;QAE5D,6BAA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,0 +1,32 @@
|
|
|
1
|
+
import { DatePicker, Form, Input, Select, Tabs } from "@voplus/antd";
|
|
2
|
+
import Address from "@voplus/morpho-org/es/components/Address";
|
|
3
|
+
import { InputCountry } from "@voplus/morpho-ui";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { useLegalContext } from "./state";
|
|
6
|
+
import { useObserver } from "mobx-react-lite";
|
|
7
|
+
const Page4 = () => {
|
|
8
|
+
const legalContext = useLegalContext();
|
|
9
|
+
return useObserver(() => (React.createElement(React.Fragment, null,
|
|
10
|
+
React.createElement(Tabs, { activeKey: legalContext.tabKey, tabPosition: "left", onChange: (key) => (legalContext.tabKey = key) },
|
|
11
|
+
React.createElement(Tabs.TabPane, { tab: "Contact Info", key: "Contact" },
|
|
12
|
+
React.createElement(Form, { layout: "vertical" },
|
|
13
|
+
React.createElement(Form.Item, { label: "E-mail" },
|
|
14
|
+
React.createElement(Input, { value: legalContext.identity.email, onChange: e => (legalContext.identity.email = e.target.value) })),
|
|
15
|
+
React.createElement(Form.Item, { label: "Phone" },
|
|
16
|
+
React.createElement(Input, { value: legalContext.identity.phone, onChange: e => (legalContext.identity.phone = e.target.value) })),
|
|
17
|
+
React.createElement(Address, { value: legalContext.identity.address, onChange: v => (legalContext.identity.address = v) }))),
|
|
18
|
+
React.createElement(Tabs.TabPane, { tab: "Identify Info", key: "Identify" },
|
|
19
|
+
React.createElement(Form, { layout: "vertical" },
|
|
20
|
+
React.createElement(Form.Item, { label: legalContext.unitType === "Organization" ? "Country of Registration" : "Country", name: "country", rules: [{ required: true }] },
|
|
21
|
+
React.createElement(InputCountry, { defaultValue: legalContext.identity.country, onChange: (country) => (legalContext.identity.country = country) })),
|
|
22
|
+
legalContext.unitType === "People" && (React.createElement(Form.Item, { label: "Identify Type", name: "identifyType", rules: [{ required: true }] },
|
|
23
|
+
React.createElement(Select, { defaultValue: legalContext.identity.type, value: legalContext.identity.type, onChange: value => (legalContext.identity.type = value) },
|
|
24
|
+
React.createElement(Select.Option, { value: "International Passport" }, "International Passport"),
|
|
25
|
+
React.createElement(Select.Option, { value: "Identify Card" }, "Identify Card")))),
|
|
26
|
+
React.createElement(Form.Item, { label: legalContext.unitType === "Organization" ? "Registration #" : "Identify #", name: "identity", rules: [{ required: true }] },
|
|
27
|
+
React.createElement(Input, { defaultValue: legalContext.identity.number, value: legalContext.identity.number, onChange: e => (legalContext.identity.number = e.target.value) })),
|
|
28
|
+
legalContext.unitType === "People" && (React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: legalContext.identity.type === "International Passport" }] },
|
|
29
|
+
React.createElement(DatePicker, { defaultValue: legalContext.identity.expiryDate, value: legalContext.identity.expiryDate, onChange: date => (legalContext.identity.expiryDate = date || null) })))))))));
|
|
30
|
+
};
|
|
31
|
+
export default Page4;
|
|
32
|
+
//# sourceMappingURL=Page4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Page4.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ;QACd,oBAAC,IAAI,IACJ,SAAS,EAAE,YAAY,CAAC,MAAM,EAC9B,WAAW,EAAC,MAAM,EAClB,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