@voplus/morpho-csp 4.0.15 → 4.0.17

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.
Files changed (46) hide show
  1. package/es/data/clda-form/interfaces.d.ts +27 -10
  2. package/es/data/clda-form/types.d.ts +26 -10
  3. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.d.ts +7 -0
  4. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js +134 -0
  5. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -0
  6. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.less +12 -0
  7. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/state.d.ts +21 -0
  8. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/state.js +244 -0
  9. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/state.js.map +1 -0
  10. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.d.ts +7 -0
  11. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +126 -0
  12. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -0
  13. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.less +12 -0
  14. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.d.ts +21 -0
  15. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.js +56 -0
  16. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.js.map +1 -0
  17. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.d.ts +12 -0
  18. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +95 -0
  19. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js.map +1 -0
  20. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.less +150 -0
  21. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.d.ts +7 -0
  22. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js +76 -0
  23. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js.map +1 -0
  24. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +12 -0
  25. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +96 -0
  26. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -0
  27. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.less +143 -0
  28. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.d.ts +7 -0
  29. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +60 -0
  30. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -0
  31. package/es/modules/self-registration/clda-form/incorporation/company-general/index.js +68 -10
  32. package/es/modules/self-registration/clda-form/incorporation/company-general/index.js.map +1 -1
  33. package/es/modules/self-registration/clda-form/incorporation/company-general/index.less +8 -1
  34. package/package.json +1 -1
  35. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.d.ts +0 -5
  36. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.js +0 -261
  37. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.js.map +0 -1
  38. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.less +0 -177
  39. package/es/modules/self-registration/clda-form/incorporation/issue-shares/index.d.ts +0 -4
  40. package/es/modules/self-registration/clda-form/incorporation/issue-shares/index.js +0 -106
  41. package/es/modules/self-registration/clda-form/incorporation/issue-shares/index.js.map +0 -1
  42. package/es/modules/self-registration/clda-form/incorporation/issue-shares/index.less +0 -177
  43. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.d.ts +0 -4
  44. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.js +0 -100
  45. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.js.map +0 -1
  46. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.less +0 -177
@@ -0,0 +1,126 @@
1
+ import React, { useState } from "react";
2
+ import { Form, Modal, Select, InputNumber, message } from "antd";
3
+ import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
4
+ import { changeName } from "../../../../../../../data/clda-form/conversion";
5
+ import { clone } from "lodash-es";
6
+ import { State } from "./state";
7
+ import { observe, useAutorunEffect } from "@voplus/morpho-ui";
8
+ import { v4 as uuid } from "uuid";
9
+ import NewLegalContactDialog from "../../../../../../corporate/company/identity/components/NewLegalContactDialog";
10
+ import "./index.less";
11
+ const AddTransferDialog = (props) => {
12
+ const { id } = props;
13
+ const store = useCLDAFormStore();
14
+ const incorporation = useCLDAForm(id);
15
+ const [state] = useState(new State());
16
+ let [formData] = Form.useForm();
17
+ useAutorunEffect(() => {
18
+ var _a, _b;
19
+ return (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts) === null || _b === void 0 ? void 0 : _b.map((item) => item.idType === "ExistingContactId" && state.ExistingContactList.push(item));
20
+ });
21
+ return observe(() => {
22
+ var _a, _b, _c;
23
+ return (React.createElement(Modal, { open: true, width: 500, title: "Add Transfer", okText: "Add", onOk: onAdd, wrapClassName: "add-transfer-dialog", onCancel: onCancel },
24
+ React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left", form: formData, initialValues: {
25
+ TransforId: undefined,
26
+ TransfeeId: undefined,
27
+ ShareClass: undefined,
28
+ Shares: null,
29
+ Consideration: null,
30
+ } },
31
+ React.createElement(Form.Item, { label: "Transferor", name: "TransforId", rules: [{ required: true, message: "Transferor can not be empty" }] },
32
+ React.createElement(Select, { showSearch: true, placeholder: "Select a contact", optionFilterProp: "children", onChange: (transforId) => (state.params.TransforId = transforId), popupClassName: "add-transfer-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 }, (_a = state.ExistingContactList) === null || _a === void 0 ? void 0 : _a.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))),
33
+ React.createElement(Form.Item, { label: "Transferee", name: "TransfeeId", rules: [{ required: true, message: "Transferee can not be empty" }] },
34
+ React.createElement(Select, { showSearch: true, placeholder: "Select or create a contact", optionFilterProp: "children", onChange: onChangeTransferee, popupClassName: "add-transfer-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 },
35
+ React.createElement(Select.Option, { value: "new" }, "New Contact"), (_c = (_b = incorporation.content) === null || _b === void 0 ? void 0 : _b.contacts) === null || _c === void 0 ? void 0 :
36
+ _c.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))),
37
+ React.createElement(Form.Item, { label: "Class", name: "ShareClass", rules: [{ required: true, message: "Class can not be empty" }] },
38
+ React.createElement(Select, { placeholder: "Select Share Class", optionFilterProp: "children", onChange: (value) => (state.params.ShareClass = value), filterOption: (input, option) => { var _a; return ((_a = option === null || option === void 0 ? void 0 : option.label) !== null && _a !== void 0 ? _a : "").toLowerCase().includes(input.toLowerCase()); }, options: [
39
+ {
40
+ value: "Ordinary",
41
+ label: "Ordinary",
42
+ },
43
+ {
44
+ value: "Preference",
45
+ label: "Preference",
46
+ },
47
+ ] })),
48
+ React.createElement(Form.Item, { label: "Share", name: "Shares", rules: [{ required: true, message: "Share can not be empty" }] },
49
+ React.createElement(InputNumber, { placeholder: "please input Share", onChange: (value) => (state.params.Shares = value) })),
50
+ React.createElement(Form.Item, { label: "Consideration", name: "Consideration", rules: [{ required: true, message: "Consideration can not be empty" }] },
51
+ React.createElement(InputNumber, { placeholder: "please input Consideration", onChange: (value) => (state.params.Consideration = value) }))),
52
+ state.newLegalContactVisible && (React.createElement(NewLegalContactDialog, { visible: true, updateVisible: onSave }))));
53
+ });
54
+ function onChangeTransferee(value) {
55
+ state.params.TransfeeId = value;
56
+ if (value === "new") {
57
+ state.newLegalContactVisible = true;
58
+ }
59
+ }
60
+ /** 新增shareholder Item */
61
+ async function onSave(info) {
62
+ var _a;
63
+ /** SelectLegalContactDialog 选择/新增有identity信息的unit */
64
+ if (info) {
65
+ const data = clone((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts);
66
+ const officer = {
67
+ id: uuid(),
68
+ name: info.FullName,
69
+ email: info.Email,
70
+ phone: info.Phone,
71
+ address: info.Address,
72
+ identity: {
73
+ number: info.Number,
74
+ country: info.Country,
75
+ expiryDate: info.ExpiryDate,
76
+ type: info.Type,
77
+ },
78
+ idType: "NewId",
79
+ type: info.UnitType,
80
+ };
81
+ const officers = data ? [...data, officer] : [officer];
82
+ await store.edit(id, {
83
+ data: { Contacts: changeName(officers) },
84
+ error: "message",
85
+ });
86
+ }
87
+ state.newLegalContactVisible = false;
88
+ }
89
+ async function onAdd() {
90
+ var _a, _b;
91
+ try {
92
+ await formData.validateFields(); // Form表单组件rules手动校验
93
+ if (state.params.TransfeeId === "new") {
94
+ message.error("Transferee can not be 'New Contact'!");
95
+ return;
96
+ }
97
+ let transfers = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.transferDetails) === null || _b === void 0 ? void 0 : _b.transfers;
98
+ if (transfers === null || transfers === void 0 ? void 0 : transfers.length)
99
+ transfers = changeName(transfers);
100
+ await store.edit(id, {
101
+ data: {
102
+ TransferDetails: {
103
+ Transfers: (transfers === null || transfers === void 0 ? void 0 : transfers.length) ? [...transfers, state.params] : [state.params],
104
+ },
105
+ },
106
+ error: "message",
107
+ });
108
+ onCancel();
109
+ }
110
+ catch (error) { }
111
+ }
112
+ function onCancel() {
113
+ var _a;
114
+ (_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
115
+ formData.resetFields();
116
+ state.Params = {
117
+ TransforId: "",
118
+ TransfeeId: "",
119
+ ShareClass: "",
120
+ Shares: 0,
121
+ Consideration: 0,
122
+ };
123
+ }
124
+ };
125
+ export default AddTransferDialog;
126
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,qBAAqB,MAAM,+EAA+E,CAAC;AAClH,OAAO,cAAc,CAAC;AAEtB,MAAM,iBAAiB,GAAG,CAAC,KAA4C,EAAE,EAAE;IAC1E,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEtC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,IAAI,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAEhC,gBAAgB,CAAC,GAAG,EAAE;;QACrB,OAAA,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,QAAQ,0CAA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global {
4
+ .add-transfer-dialog {
5
+ .ant-input-number {
6
+ width: 100%;
7
+ }
8
+ .subtitle {
9
+ color: @heading-subtitle-color;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,21 @@
1
+ import { IFormPeopleOptions } from "../../../../../../../data/clda-form";
2
+ export declare class State {
3
+ constructor();
4
+ Params: {
5
+ TransforId: string;
6
+ TransfeeId: string;
7
+ ShareClass: string;
8
+ Shares: number;
9
+ Consideration: number;
10
+ };
11
+ params: {
12
+ TransforId: string;
13
+ TransfeeId: string;
14
+ ShareClass: string;
15
+ Shares: number;
16
+ Consideration: number;
17
+ };
18
+ loading: boolean;
19
+ newLegalContactVisible: boolean;
20
+ ExistingContactList: IFormPeopleOptions[];
21
+ }
@@ -0,0 +1,56 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "Params", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: {
10
+ TransforId: "",
11
+ TransfeeId: "",
12
+ ShareClass: "",
13
+ Shares: 0,
14
+ Consideration: 0,
15
+ }
16
+ });
17
+ Object.defineProperty(this, "params", {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: this.Params
22
+ });
23
+ Object.defineProperty(this, "loading", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: false
28
+ });
29
+ Object.defineProperty(this, "newLegalContactVisible", {
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true,
33
+ value: false
34
+ });
35
+ Object.defineProperty(this, "ExistingContactList", {
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true,
39
+ value: []
40
+ });
41
+ makeObservable(this);
42
+ }
43
+ }
44
+ __decorate([
45
+ observable
46
+ ], State.prototype, "params", void 0);
47
+ __decorate([
48
+ observable
49
+ ], State.prototype, "loading", void 0);
50
+ __decorate([
51
+ observable
52
+ ], State.prototype, "newLegalContactVisible", void 0);
53
+ __decorate([
54
+ observable
55
+ ], State.prototype, "ExistingContactList", void 0);
56
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,UAAU,EAAE,EAAE;gBACd,UAAU,EAAE,EAAE;gBACd,UAAU,EAAE,EAAE;gBACd,MAAM,EAAE,CAAC;gBACT,aAAa,EAAE,CAAC;aAChB;WAAC;QAEU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAgC,KAAK;WAAC;QACtC;;;;mBAAmD,EAAE;WAAC;QAbjE,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAaD;AAJY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;qDAAuC;AACtC;IAAX,UAAU;kDAAuD"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { IFormPeopleOptions, IAllotment } from "../../../../../../../data/clda-form";
3
+ declare const AllotmentItem: (props: {
4
+ allotment: IAllotment;
5
+ contact: IFormPeopleOptions;
6
+ contacts: IFormPeopleOptions[];
7
+ allotmentLength?: number | undefined;
8
+ onReload?: (() => void) | undefined;
9
+ onSave?: ((allotment: IAllotment, contact?: IFormPeopleOptions) => void) | undefined;
10
+ onDeleteClick?: (() => void) | undefined;
11
+ }) => JSX.Element;
12
+ export default AllotmentItem;
@@ -0,0 +1,95 @@
1
+ import React, { useState } from "react";
2
+ import { Button, Col, Divider, Form, Row, Input, Select, InputNumber } from "antd";
3
+ import { UserOutlined } from "@ant-design/icons";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { State } from "../AddAllotmentDialog/state";
6
+ import { faAddressCard, faEnvelope, faMapMarkerAlt, faPhone, faTrashAlt, faPenToSquare, } from "@fortawesome/pro-light-svg-icons";
7
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
8
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
9
+ import { useIncorporationFormContext } from "../../../context";
10
+ import IdentityChange from "../../../../../../corporate/company/identity/components/IdentityChange";
11
+ import Address from "@voplus/morpho-org/es/components/Address";
12
+ import moment from "moment";
13
+ import styles from "./index.less";
14
+ const AllotmentItem = (props) => {
15
+ const { allotment, contact, contacts } = props;
16
+ const [addAllotmentState] = useState(new State());
17
+ const [editable, setEditable] = useState(false);
18
+ const context = useIncorporationFormContext();
19
+ return observe(() => {
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
21
+ return (React.createElement(React.Fragment, null,
22
+ React.createElement("div", { className: styles["company-general-allotment-info"] },
23
+ React.createElement("div", { className: "company-general-allotment-title" },
24
+ React.createElement("div", { className: "company-general-allotment-title-info" }, editable && contact.idType === "NewId" ? (React.createElement(Input, { prefix: React.createElement(UserOutlined, null), defaultValue: contact === null || contact === void 0 ? void 0 : contact.name, value: contact === null || contact === void 0 ? void 0 : contact.name, onChange: (e) => (contact.name = e.target.value) })) : (React.createElement("span", { className: "company-general-allotment-name" }, contact === null || contact === void 0 ? void 0 : contact.name))),
25
+ (context ? context.editable : true) && (React.createElement("div", { className: "action-button" },
26
+ React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
27
+ React.createElement(FontAwesomeIcon, { icon: faPenToSquare })),
28
+ React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
29
+ React.createElement(FontAwesomeIcon, { icon: faTrashAlt }))))),
30
+ React.createElement("div", { className: "company-general-allotment-content" },
31
+ React.createElement(ColumnItem, null,
32
+ React.createElement(ColumnItemCol, { span: 8, title: "Shareholder" }, editable ? (React.createElement(Select, { showSearch: true, style: { width: "100%" }, defaultValue: contact.name, placeholder: "Select a contact", optionFilterProp: "children", onChange: (shareholder) => (allotment.shareholderId = shareholder), popupClassName: "add-allotment-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 }, contacts === null || contacts === void 0 ? void 0 : contacts.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))) : (React.createElement("span", null, contact.name))),
33
+ React.createElement(ColumnItemCol, { span: 4, title: "Currency" }, editable ? (React.createElement(Select, { placeholder: "Select Share Currency", style: { width: "100%" }, value: allotment.currency, optionFilterProp: "children", onChange: (value) => (allotment.currency = value) }, addAllotmentState.currencyList.map((currency) => (React.createElement(Select.Option, { key: currency, value: currency }, currency))))) : (React.createElement("span", null, allotment.currency))),
34
+ React.createElement(ColumnItemCol, { span: 4, title: "Class" }, editable ? (React.createElement(Select, { placeholder: "Select Share Class", style: { width: "100%" }, value: allotment.shareClass, optionFilterProp: "children", onChange: (value) => (allotment.shareClass = value), filterOption: (input, option) => { var _a; return ((_a = option === null || option === void 0 ? void 0 : option.label) !== null && _a !== void 0 ? _a : "").toLowerCase().includes(input.toLowerCase()); }, options: [
35
+ {
36
+ value: "Ordinary",
37
+ label: "Ordinary",
38
+ },
39
+ {
40
+ value: "Preference",
41
+ label: "Preference",
42
+ },
43
+ ] })) : (React.createElement("span", null, allotment.shareClass))),
44
+ React.createElement(ColumnItemCol, { span: 4, title: "Shares" }, editable ? (React.createElement(InputNumber, { placeholder: "please input Share", value: allotment.shares, style: { width: "100%" }, onChange: (value) => (allotment.shares = value) })) : (React.createElement("span", null, allotment.shares))),
45
+ React.createElement(ColumnItemCol, { span: 4, title: "Considersion" }, editable ? (React.createElement(InputNumber, { placeholder: "please input Considersion", style: { width: "100%" }, value: allotment.consideration, onChange: (value) => (allotment.consideration = value) })) : (React.createElement("span", null, allotment.consideration))))),
46
+ contact.idType === "NewId" && (React.createElement(React.Fragment, null,
47
+ React.createElement("div", { className: "basic-info" },
48
+ React.createElement(Input, { disabled: !editable, bordered: editable, value: contact === null || contact === void 0 ? void 0 : contact.email, placeholder: "Please enter the email", prefix: React.createElement(FontAwesomeIcon, { icon: faEnvelope }), onChange: (e) => (contact.email = e.target.value) }),
49
+ React.createElement(Input, { disabled: !editable, bordered: editable, value: contact === null || contact === void 0 ? void 0 : contact.phone, placeholder: "Please enter the phone", prefix: React.createElement(FontAwesomeIcon, { icon: faPhone }), onChange: (e) => (contact.phone = e.target.value) })),
50
+ React.createElement("div", { className: "company-general-allotment-info-content" },
51
+ React.createElement("div", { className: "company-general-allotment-info-item" },
52
+ React.createElement("div", { className: "company-general-allotment-item-name" },
53
+ React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
54
+ "Address:"),
55
+ editable ? (React.createElement(Form, { layout: "horizontal" },
56
+ React.createElement(Address, { value: contact.address, required: ["line1", "city", "postalCode", "country"], onChange: (v) => (contact.address = v) }))) : (React.createElement(React.Fragment, null,
57
+ React.createElement(Row, null,
58
+ React.createElement(Col, null, (_a = contact === null || contact === void 0 ? void 0 : contact.address) === null || _a === void 0 ? void 0 : _a.line1)),
59
+ React.createElement(Row, null,
60
+ React.createElement(Col, null, (_b = contact === null || contact === void 0 ? void 0 : contact.address) === null || _b === void 0 ? void 0 : _b.line2)),
61
+ React.createElement(Row, null,
62
+ React.createElement(Col, null, `${((_c = contact === null || contact === void 0 ? void 0 : contact.address) === null || _c === void 0 ? void 0 : _c.city) ? (_d = contact.address) === null || _d === void 0 ? void 0 : _d.city : ""} ${(_e = contact === null || contact === void 0 ? void 0 : contact.address) === null || _e === void 0 ? void 0 : _e.state} ${(_f = contact === null || contact === void 0 ? void 0 : contact.address) === null || _f === void 0 ? void 0 : _f.country} ${(_g = contact === null || contact === void 0 ? void 0 : contact.address) === null || _g === void 0 ? void 0 : _g.postalCode}`.trim()))))),
63
+ React.createElement("div", { className: "company-general-allotment-info-item" },
64
+ React.createElement("div", { className: "company-general-allotment-item-name" },
65
+ React.createElement(FontAwesomeIcon, { icon: faAddressCard }),
66
+ "Identify Info:"),
67
+ editable ? (React.createElement(IdentityChange, { value: contact === null || contact === void 0 ? void 0 : contact.identity, onChange: (v) => (contact.identity = v) })) : (React.createElement(React.Fragment, null,
68
+ React.createElement(Row, null,
69
+ React.createElement(Col, null, (_h = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _h === void 0 ? void 0 : _h.country)),
70
+ React.createElement(Row, null,
71
+ React.createElement(Col, null, (_j = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _j === void 0 ? void 0 : _j.type)),
72
+ React.createElement(Row, null,
73
+ React.createElement(Col, null, (_k = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _k === void 0 ? void 0 : _k.number)),
74
+ React.createElement(Row, null,
75
+ React.createElement(Col, null,
76
+ "Expiry:",
77
+ ((_l = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _l === void 0 ? void 0 : _l.expiryDate) &&
78
+ moment(contact.identity.expiryDate).format("YYYY-MM-DD"))))))))),
79
+ editable && (React.createElement(Row, { justify: "end" },
80
+ React.createElement(Button, { onClick: () => {
81
+ var _a;
82
+ setEditable(false);
83
+ (_a = props.onReload) === null || _a === void 0 ? void 0 : _a.call(props);
84
+ } }, "Cancel"),
85
+ React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))),
86
+ props.allotmentLength > 1 && React.createElement(Divider, { className: "halvingline" }))));
87
+ });
88
+ async function onSave() {
89
+ var _a;
90
+ setEditable(false);
91
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, allotment, contact);
92
+ }
93
+ };
94
+ export default AllotmentItem;
95
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,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E,UAAU,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,WAE5D,CACJ,CACN;gBACA,KAAK,CAAC,eAAgB,GAAG,CAAC,IAAI,oBAAC,OAAO,IAAC,SAAS,EAAC,aAAa,GAAG,CAC7D,CACU,CACjB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;;QACpB,WAAW,CAAC,KAAK,CAAC,CAAC;QAEnB,MAAA,KAAK,CAAC,MAAM,sDAAG,SAAS,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,150 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .company-general-allotment-info {
4
+ :global {
5
+ .company-general-allotment-title {
6
+ display: flex;
7
+ align-items: center;
8
+
9
+ .company-general-allotment-title-info {
10
+ flex: 1;
11
+
12
+ .ant-input-affix-wrapper {
13
+ border-radius: @border-radius;
14
+ }
15
+ }
16
+
17
+ .company-general-allotment-name {
18
+ color: rgba(0, 0, 0, 0.85);
19
+ font-weight: 500;
20
+ font-size: 14px;
21
+ }
22
+
23
+ .action-button {
24
+ font-size: 14px;
25
+
26
+ > span {
27
+ margin-left: 6px;
28
+ cursor: pointer;
29
+ }
30
+
31
+ .delete-icon {
32
+ &:hover {
33
+ color: @delete-color;
34
+ }
35
+ }
36
+
37
+ .edit-icon {
38
+ &:hover {
39
+ color: @primary-color;
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ .company-general-allotment-content {
46
+ margin: 15px 0;
47
+
48
+ .custom-column-item___yTecf {
49
+ border-bottom: none;
50
+ }
51
+
52
+ .column-item-content {
53
+ & > div:nth-child(2) {
54
+ width: 100%;
55
+ padding-right: 20px;
56
+ }
57
+ }
58
+ }
59
+
60
+ .company-general-allotment {
61
+ padding-right: 3em;
62
+
63
+ .company-general-allotment-name {
64
+ color: rgba(0, 0, 0, 0.85);
65
+ font-size: 16px;
66
+ }
67
+ }
68
+
69
+ .placeholder {
70
+ color: #00000040;
71
+ }
72
+
73
+ .halvingline {
74
+ margin-bottom: 40px;
75
+ }
76
+
77
+ .basic-info {
78
+ display: flex;
79
+ line-height: 0;
80
+ margin-top: 10px;
81
+
82
+ .ant-input-affix-wrapper {
83
+ flex: 1;
84
+ border-radius: 8px;
85
+ margin-right: 3em;
86
+ }
87
+
88
+ .ant-input-affix-wrapper-disabled {
89
+ color: rgba(0, 0, 0, 0.85);
90
+ cursor: auto;
91
+ padding: 4px 0;
92
+
93
+ .ant-input[disabled] {
94
+ color: rgba(0, 0, 0, 0.85);
95
+ cursor: auto;
96
+ }
97
+ }
98
+
99
+ .basic-val {
100
+ font-size: 14px;
101
+ font-weight: 400;
102
+ color: rgba(0, 0, 0, 0.45);
103
+ margin-right: 15px;
104
+
105
+ .svg-inline--fa {
106
+ margin-right: 5px;
107
+ }
108
+ }
109
+ }
110
+
111
+ .company-general-allotment-info-content {
112
+ display: flex;
113
+ flex-direction: column;
114
+
115
+ > div:nth-child(2) {
116
+ margin-bottom: 10px;
117
+ }
118
+
119
+ .company-general-allotment-info-item {
120
+ flex: 1;
121
+ position: relative;
122
+ padding-right: 3em;
123
+
124
+ .buttons {
125
+ position: absolute;
126
+ right: 30px;
127
+ top: 0;
128
+ }
129
+
130
+ .company-general-allotment-item-name {
131
+ padding-bottom: 16px;
132
+ font-size: 16px;
133
+ font-weight: bold;
134
+
135
+ svg {
136
+ margin-right: 5px;
137
+ }
138
+ }
139
+
140
+ .morpho-inline-edit {
141
+ width: 80%;
142
+ }
143
+ }
144
+ }
145
+
146
+ .ant-alert-warning {
147
+ margin-top: 10px;
148
+ }
149
+ }
150
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const AllotmentList: (props: {
3
+ /** CLDAForm id */
4
+ id: string;
5
+ onReload?: () => void;
6
+ }) => JSX.Element;
7
+ export default AllotmentList;
@@ -0,0 +1,76 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Modal } from "antd";
4
+ import { changeName } from "../../../../../../../data/clda-form/conversion";
5
+ import { clone } from "lodash-es";
6
+ import { useCLDAForm, useCLDAFormStore, } from "../../../../../../../data/clda-form";
7
+ import AllotmentItem from "../AllotmentItem";
8
+ import dayjs from "dayjs";
9
+ const AllotmentList = (props) => {
10
+ var _a, _b;
11
+ const store = useCLDAFormStore();
12
+ const incorporation = useCLDAForm(props.id, { reload: true });
13
+ const effectiveDate = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.issueShareDetails) === null || _b === void 0 ? void 0 : _b.effectiveDate;
14
+ return observe(() => {
15
+ var _a, _b, _c;
16
+ return (React.createElement("div", null, ((_b = (_a = incorporation.content.issueShareDetails) === null || _a === void 0 ? void 0 : _a.allotments) === null || _b === void 0 ? void 0 : _b.length)
17
+ ? (_c = incorporation.content.issueShareDetails) === null || _c === void 0 ? void 0 : _c.allotments.map((a, i) => {
18
+ var _a, _b, _c;
19
+ return (React.createElement(AllotmentItem, { key: a.key, allotment: a, contact: (_a = incorporation.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((c) => c.id === a.shareholderId)[0], contacts: incorporation.content.contacts, allotmentLength: (_c = (_b = incorporation.content.issueShareDetails) === null || _b === void 0 ? void 0 : _b.allotments) === null || _c === void 0 ? void 0 : _c.length, onReload: props.onReload, onSave: onSave, onDeleteClick: () => deleteTransfer(i) }));
20
+ })
21
+ : null));
22
+ });
23
+ function deleteTransfer(index) {
24
+ return Modal.confirm({
25
+ title: "Do you want to delete this item?",
26
+ async onOk() {
27
+ var _a;
28
+ let allotments = clone((_a = incorporation.content.issueShareDetails) === null || _a === void 0 ? void 0 : _a.allotments);
29
+ allotments.splice(index, 1);
30
+ await store.edit(props.id, {
31
+ data: {
32
+ IssueShareDetails: {
33
+ Allotments: changeName(allotments),
34
+ EffectiveDate: effectiveDate !== null ? dayjs(effectiveDate).format("YYYY-MM-DD") : "",
35
+ },
36
+ },
37
+ error: "message",
38
+ });
39
+ },
40
+ });
41
+ }
42
+ async function onSave(allotment, contact) {
43
+ var _a, _b, _c, _d;
44
+ const allotments = (_b = clone((_a = incorporation.content.issueShareDetails) === null || _a === void 0 ? void 0 : _a.allotments)) !== null && _b !== void 0 ? _b : [];
45
+ const no = allotments === null || allotments === void 0 ? void 0 : allotments.findIndex((i) => i.key === allotment.key);
46
+ allotments[no] = allotment;
47
+ if (contact && contact.idType === "NewId") {
48
+ const allotmentContacts = (_d = clone((_c = incorporation.content) === null || _c === void 0 ? void 0 : _c.contacts)) !== null && _d !== void 0 ? _d : [];
49
+ const index = allotmentContacts.findIndex((i) => i.id === (contact === null || contact === void 0 ? void 0 : contact.id));
50
+ allotmentContacts[index] = contact;
51
+ await store.edit(props.id, {
52
+ data: {
53
+ Contacts: changeName(allotmentContacts),
54
+ IssueShareDetails: {
55
+ Allotments: changeName(allotments),
56
+ EffectiveDate: effectiveDate !== null ? dayjs(effectiveDate).format("YYYY-MM-DD") : "",
57
+ },
58
+ },
59
+ error: "message",
60
+ });
61
+ }
62
+ else {
63
+ await store.edit(props.id, {
64
+ data: {
65
+ IssueShareDetails: {
66
+ Allotments: changeName(allotments),
67
+ EffectiveDate: effectiveDate !== null ? dayjs(effectiveDate).format("YYYY-MM-DD") : "",
68
+ },
69
+ },
70
+ error: "message",
71
+ });
72
+ }
73
+ }
74
+ };
75
+ export default AllotmentList;
76
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,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,aAAa,CAAC,OAAO,0CAAE,QAAQ,CAAC,mCAAI,EAAE,CAAC;YACvE,MAAM,KAAK,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAK,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,EAAE,CAAA,CAAC,CAAC;YACvE,iBAAiB,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;YAEnC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gBAC1B,IAAI,EAAE;oBACL,QAAQ,EAAE,UAAU,CAAC,iBAAiB,CAAC;oBACvC,iBAAiB,EAAE;wBAClB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;wBAClC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE;qBACtF;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;aAAM;YACN,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gBAC1B,IAAI,EAAE;oBACL,iBAAiB,EAAE;wBAClB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;wBAClC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE;qBACtF;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { IFormPeopleOptions, ITransfer } from "../../../../../../../data/clda-form";
3
+ declare const TransferItem: (props: {
4
+ transfer: ITransfer;
5
+ contact: IFormPeopleOptions;
6
+ contacts: IFormPeopleOptions[];
7
+ transferLength?: number | undefined;
8
+ onReload?: (() => void) | undefined;
9
+ onSave?: ((transfer: ITransfer, contact?: IFormPeopleOptions) => void) | undefined;
10
+ onDeleteClick?: (() => void) | undefined;
11
+ }) => JSX.Element;
12
+ export default TransferItem;