@voplus/morpho-csp 4.0.15 → 4.0.16

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 (27) hide show
  1. package/es/data/clda-form/interfaces.d.ts +14 -10
  2. package/es/data/clda-form/types.d.ts +13 -10
  3. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.d.ts +7 -0
  4. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +126 -0
  5. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -0
  6. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.less +12 -0
  7. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.d.ts +21 -0
  8. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.js +56 -0
  9. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/state.js.map +1 -0
  10. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +12 -0
  11. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +96 -0
  12. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -0
  13. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.less +143 -0
  14. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.d.ts +7 -0
  15. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +60 -0
  16. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -0
  17. package/es/modules/self-registration/clda-form/incorporation/company-general/index.js +26 -9
  18. package/es/modules/self-registration/clda-form/incorporation/company-general/index.js.map +1 -1
  19. package/package.json +1 -1
  20. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.d.ts +0 -5
  21. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.js +0 -261
  22. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.js.map +0 -1
  23. package/es/modules/self-registration/clda-form/incorporation/change-officer/index.less +0 -177
  24. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.d.ts +0 -4
  25. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.js +0 -100
  26. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.js.map +0 -1
  27. package/es/modules/self-registration/clda-form/incorporation/share-transfer/index.less +0 -177
@@ -28,12 +28,23 @@ export interface IOfficerPositionsData {
28
28
  positions?: string[];
29
29
  officerId?: string;
30
30
  }
31
+ export interface ITransfer {
32
+ key?: number;
33
+ transforId?: string;
34
+ transfeeId?: string;
35
+ shareClass?: string;
36
+ shares?: number;
37
+ consideration?: number;
38
+ }
31
39
  export interface INewOfficerAppointmentDetails {
32
40
  officers?: IOfficerPositionsData[];
33
41
  }
34
42
  export interface IRemoveOfficerDetails {
35
43
  officers?: IOfficerPositionsData[];
36
44
  }
45
+ export interface ITransferDetails {
46
+ transfers?: ITransfer[];
47
+ }
37
48
  export interface IShareholderOptions {
38
49
  id: string;
39
50
  shares: number;
@@ -131,18 +142,10 @@ export interface IAGMFormContent {
131
142
  includeDirectorsStatement?: boolean;
132
143
  includeDispenseResolutions?: boolean;
133
144
  }
134
- export interface IChangeOfficerFormContent {
135
- corporate?: {
136
- id: string;
137
- name: string;
138
- };
139
- newOfficers?: IOfficerData[];
145
+ export interface ICompanyGeneralFormEditOptions {
140
146
  documentDate?: string;
141
147
  effectiveDate?: string;
142
148
  resignationData?: string;
143
- removeOfficers?: IOfficerData[];
144
- }
145
- export interface ICompanyGeneralFormEditOptions {
146
149
  corporate?: {
147
150
  id: string;
148
151
  name: string;
@@ -150,6 +153,7 @@ export interface ICompanyGeneralFormEditOptions {
150
153
  contacts?: IFormPeopleOptions[];
151
154
  newOfficerAppointments?: INewOfficerAppointmentDetails;
152
155
  removeOfficerDetails?: IRemoveOfficerDetails;
156
+ transferDetails?: ITransferDetails;
153
157
  }
154
158
  export interface IAppointRepresentativeFormEditOptions {
155
159
  corporate?: {
@@ -161,7 +165,7 @@ export interface IAppointRepresentativeFormEditOptions {
161
165
  newRepresentatives?: IOfficerData[];
162
166
  }
163
167
  export interface ICLDAForm extends IDocument {
164
- content: IINCFormContent & IBVIFormContent & IAGMFormContent & IChangeOfficerFormContent & ICompanyGeneralFormEditOptions & IAppointRepresentativeFormEditOptions;
168
+ content: IINCFormContent & IBVIFormContent & IAGMFormContent & ICompanyGeneralFormEditOptions & IAppointRepresentativeFormEditOptions;
165
169
  /** submit date */
166
170
  submitDate?: string;
167
171
  customer?: {
@@ -24,12 +24,22 @@ export declare type OfficerPositionsData = {
24
24
  Positions?: string[];
25
25
  OfficerId?: string;
26
26
  };
27
+ export declare type Transfer = {
28
+ TransforId?: string;
29
+ TransfeeId?: string;
30
+ ShareClass?: string;
31
+ Shares?: number;
32
+ Consideration?: number;
33
+ };
27
34
  export declare type NewOfficerAppointmentDetails = {
28
35
  Officers?: OfficerPositionsData[];
29
36
  };
30
37
  export declare type RemoveOfficerDetails = {
31
38
  Officers?: OfficerPositionsData[];
32
39
  };
40
+ export declare type TransferDetails = {
41
+ Transfers?: Transfer[];
42
+ };
33
43
  export declare type FormPeopleOptions = {
34
44
  /** 需要前端自己生成,可以用uuid */
35
45
  Id: string;
@@ -192,18 +202,10 @@ export declare type AGMFormEditOptions = {
192
202
  IncludeDispenseResolutions?: boolean;
193
203
  IncludeDirectorsStatement?: boolean;
194
204
  };
195
- export declare type ChangeOfficerFormEditOptions = {
196
- Corporate?: {
197
- Id: string;
198
- Name: string;
199
- };
200
- NewOfficers?: OfficerData[];
205
+ export declare type CompanyGeneralFormEditOptions = {
201
206
  DocumentDate?: string;
202
207
  EffectiveDate?: string;
203
208
  ResignationData?: string;
204
- RemoveOfficers?: OfficerData[];
205
- };
206
- export declare type CompanyGeneralFormEditOptions = {
207
209
  Corporate?: {
208
210
  Id: string;
209
211
  Name: string;
@@ -211,6 +213,7 @@ export declare type CompanyGeneralFormEditOptions = {
211
213
  Contacts?: FormPeopleOptions[];
212
214
  NewOfficerAppointments?: NewOfficerAppointmentDetails;
213
215
  RemoveOfficerDetails?: RemoveOfficerDetails;
216
+ TransferDetails?: TransferDetails;
214
217
  };
215
218
  export declare type AppointRepresentativeFormEditOptions = {
216
219
  Corporate?: {
@@ -224,4 +227,4 @@ export declare type AppointRepresentativeFormEditOptions = {
224
227
  /** 應該使用PascalCase,edit options 也不應該混用 interface, 有機會改正 - 10 Jun 2022 Alex*/
225
228
  export declare type EditCLDAFormOptions = {
226
229
  Status?: string;
227
- } & BVIFormEditOptions & INCFormEditOptions & AGMFormEditOptions & ChangeOfficerFormEditOptions & CompanyGeneralFormEditOptions & AppointRepresentativeFormEditOptions;
230
+ } & BVIFormEditOptions & INCFormEditOptions & AGMFormEditOptions & CompanyGeneralFormEditOptions & AppointRepresentativeFormEditOptions;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const AddTransferDialog: (props: {
4
+ id: string;
5
+ onCancel?: (() => void) | undefined;
6
+ }) => JSX.Element;
7
+ export default AddTransferDialog;
@@ -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;
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", ref: (f) => (formData = f), initialValues: {
25
+ TransforId: undefined,
26
+ TransfeeId: undefined,
27
+ ShareClass: undefined,
28
+ Share: 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: "Share", 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,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CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;qBAC5E;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YAEH,QAAQ,EAAE,CAAC;SACX;QAAC,OAAO,KAAK,EAAE,GAAE;IACnB,CAAC;IAED,SAAS,QAAQ;;QAChB,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;QACnB,QAAQ,CAAC,WAAW,EAAE,CAAC;QACvB,KAAK,CAAC,MAAM,GAAG;YACd,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,EAAE;YACd,MAAM,EAAE,CAAC;YACT,aAAa,EAAE,CAAC;SAChB,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,12 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :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, 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;
@@ -0,0 +1,96 @@
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 { faAddressCard, faEnvelope, faMapMarkerAlt, faPhone, faTrashAlt, faPenToSquare, } from "@fortawesome/pro-light-svg-icons";
6
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
8
+ import { useIncorporationFormContext } from "../../../context";
9
+ import IdentityChange from "../../../../../../corporate/company/identity/components/IdentityChange";
10
+ import Address from "@voplus/morpho-org/es/components/Address";
11
+ import moment from "moment";
12
+ import styles from "./index.less";
13
+ const TransferItem = (props) => {
14
+ const { transfer, contact, contacts } = props;
15
+ const [editable, setEditable] = useState(false);
16
+ const context = useIncorporationFormContext();
17
+ const transferor = contacts === null || contacts === void 0 ? void 0 : contacts.filter((c) => c.id === transfer.transforId)[0];
18
+ const existingContacts = contacts === null || contacts === void 0 ? void 0 : contacts.filter((c) => c.idType === "ExistingContactId");
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-transfer-info"] },
23
+ React.createElement("div", { className: "company-general-transfer-header" },
24
+ React.createElement("div", { className: "company-general-transfer-title" }, "Transferor"),
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-transferor-content" },
31
+ React.createElement(ColumnItem, null,
32
+ React.createElement(ColumnItemCol, { span: 8, title: "Transferor" }, editable ? (React.createElement(Select, { showSearch: true, style: { width: "100%" }, defaultValue: transferor.name, placeholder: "Select a contact", optionFilterProp: "children", onChange: (transforId) => (transfer.transforId = transforId), popupClassName: "add-transfer-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 }, existingContacts === null || existingContacts === void 0 ? void 0 : existingContacts.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))) : (React.createElement("span", null, transferor.name))),
33
+ React.createElement(ColumnItemCol, { span: 8, title: "Class" }, editable ? (React.createElement(Select, { placeholder: "Select Share Class", style: { width: "100%" }, value: transfer.shareClass, optionFilterProp: "children", onChange: (value) => (transfer.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: [
34
+ {
35
+ value: "Ordinary",
36
+ label: "Ordinary",
37
+ },
38
+ {
39
+ value: "Preference",
40
+ label: "Preference",
41
+ },
42
+ ] })) : (React.createElement("span", null, transfer.shareClass))),
43
+ React.createElement(ColumnItemCol, { span: 4, title: "Shares" }, editable ? (React.createElement(InputNumber, { placeholder: "please input Share", value: transfer.shares, style: { width: "100%" }, onChange: (value) => (transfer.shares = value) })) : (React.createElement("span", null, transfer.shares))),
44
+ React.createElement(ColumnItemCol, { span: 4, title: "Considersion" }, editable ? (React.createElement(InputNumber, { placeholder: "please input Considersion", style: { width: "100%" }, value: transfer.consideration, onChange: (value) => (transfer.consideration = value) })) : (React.createElement("span", null, transfer.consideration))))),
45
+ React.createElement("div", { className: "company-general-transfer-title" }, "Transferee"),
46
+ contact.idType === "NewId" ? (React.createElement(React.Fragment, null,
47
+ React.createElement("div", { className: "company-general-transferee" }, editable ? (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-transferee-name" }, contact === null || contact === void 0 ? void 0 : contact.name))),
48
+ React.createElement("div", { className: "basic-info" },
49
+ 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) }),
50
+ 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) })),
51
+ React.createElement("div", { className: "company-general-transfer-info-content" },
52
+ React.createElement("div", { className: "company-general-transfer-info-item" },
53
+ React.createElement("div", { className: "company-general-transfer-item-name" },
54
+ React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
55
+ "Address:"),
56
+ editable ? (React.createElement(Form, { layout: "horizontal" },
57
+ React.createElement(Address, { value: contact.address, required: ["line1", "city", "postalCode", "country"], onChange: (v) => (contact.address = v) }))) : (React.createElement(React.Fragment, null,
58
+ React.createElement(Row, null,
59
+ React.createElement(Col, null, (_a = contact === null || contact === void 0 ? void 0 : contact.address) === null || _a === void 0 ? void 0 : _a.line1)),
60
+ React.createElement(Row, null,
61
+ React.createElement(Col, null, (_b = contact === null || contact === void 0 ? void 0 : contact.address) === null || _b === void 0 ? void 0 : _b.line2)),
62
+ React.createElement(Row, null,
63
+ 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()))))),
64
+ React.createElement("div", { className: "company-general-transfer-info-item" },
65
+ React.createElement("div", { className: "company-general-transfer-item-name" },
66
+ React.createElement(FontAwesomeIcon, { icon: faAddressCard }),
67
+ "Identify Info:"),
68
+ editable ? (React.createElement(IdentityChange, { value: contact === null || contact === void 0 ? void 0 : contact.identity, onChange: (v) => (contact.identity = v) })) : (React.createElement(React.Fragment, null,
69
+ React.createElement(Row, null,
70
+ React.createElement(Col, null, (_h = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _h === void 0 ? void 0 : _h.country)),
71
+ React.createElement(Row, null,
72
+ React.createElement(Col, null, (_j = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _j === void 0 ? void 0 : _j.type)),
73
+ React.createElement(Row, null,
74
+ React.createElement(Col, null, (_k = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _k === void 0 ? void 0 : _k.number)),
75
+ React.createElement(Row, null,
76
+ React.createElement(Col, null,
77
+ "Expiry:",
78
+ ((_l = contact === null || contact === void 0 ? void 0 : contact.identity) === null || _l === void 0 ? void 0 : _l.expiryDate) &&
79
+ moment(contact.identity.expiryDate).format("YYYY-MM-DD"))))))))) : (React.createElement("div", { className: "company-general-transferee" }, editable ? (React.createElement(Select, { showSearch: true, style: { width: "100%", marginBottom: "20px" }, defaultValue: contact === null || contact === void 0 ? void 0 : contact.name, placeholder: "Select a contact", optionFilterProp: "children", onChange: (transferee) => (transfer.transfeeId = transferee), 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", { className: "company-general-transferee-name" }, contact === null || contact === void 0 ? void 0 : contact.name)))),
80
+ editable && (React.createElement(Row, { justify: "end" },
81
+ React.createElement(Button, { onClick: () => {
82
+ var _a;
83
+ setEditable(false);
84
+ (_a = props.onReload) === null || _a === void 0 ? void 0 : _a.call(props);
85
+ } }, "Cancel"),
86
+ React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))),
87
+ props.transferLength > 1 && React.createElement(Divider, { className: "halvingline" }))));
88
+ });
89
+ async function onSave() {
90
+ var _a;
91
+ setEditable(false);
92
+ (_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, transfer, contact);
93
+ }
94
+ };
95
+ export default TransferItem;
96
+ //# 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/TransferItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,aAAa,EACb,UAAU,EACV,cAAc,EACd,OAAO,EACP,UAAU,EACV,aAAa,GACb,MAAM,kCAAkC,CAAC;AAC1C,OA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AAC,OAAO,EAAC,KAAK;oBACjB,oBAAC,MAAM,IACN,OAAO,EAAE,GAAG,EAAE;;4BACb,WAAW,CAAC,KAAK,CAAC,CAAC;4BACnB,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;wBACpB,CAAC,aAGO;oBACT,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,WAE5D,CACJ,CACN;gBACA,KAAK,CAAC,cAAe,GAAG,CAAC,IAAI,oBAAC,OAAO,IAAC,SAAS,EAAC,aAAa,GAAG,CAC5D,CACU,CACjB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;;QACpB,WAAW,CAAC,KAAK,CAAC,CAAC;QAEnB,MAAA,KAAK,CAAC,MAAM,sDAAG,QAAQ,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,143 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .company-general-transfer-info {
4
+ :global {
5
+ .company-general-transfer-header {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+
10
+ .action-button {
11
+ font-size: 14px;
12
+
13
+ >span {
14
+ margin-left: 6px;
15
+ cursor: pointer;
16
+ }
17
+
18
+ .delete-icon {
19
+ &:hover {
20
+ color: @delete-color;
21
+ }
22
+ }
23
+
24
+ .edit-icon {
25
+ &:hover {
26
+ color: @primary-color;
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ .company-general-transfer-title {
33
+ color: rgba(0, 0, 0, 0.85);
34
+ font-weight: bold;
35
+ font-size: 16px;
36
+ }
37
+
38
+ .company-general-transferor-content {
39
+ margin-bottom: 20px;
40
+
41
+ .custom-column-item___yTecf {
42
+ border-bottom: none;
43
+ }
44
+
45
+ .column-item-content {
46
+ &>div:nth-child(2) {
47
+ width: 100%;
48
+ padding-right: 20px;
49
+ }
50
+ }
51
+ }
52
+
53
+ .company-general-transferee {
54
+ padding-right: 3em;
55
+
56
+ .company-general-transferee-name {
57
+ color: rgba(0, 0, 0, 0.85);
58
+ font-size: 16px;
59
+ }
60
+ }
61
+
62
+ .placeholder {
63
+ color: #00000040;
64
+ }
65
+
66
+ .halvingline {
67
+ margin-bottom: 40px;
68
+ }
69
+
70
+ .basic-info {
71
+ display: flex;
72
+ line-height: 0;
73
+ margin-top: 10px;
74
+
75
+ .ant-input-affix-wrapper {
76
+ flex: 1;
77
+ border-radius: 8px;
78
+ margin-right: 3em;
79
+ }
80
+
81
+ .ant-input-affix-wrapper-disabled {
82
+ color: rgba(0, 0, 0, 0.85);
83
+ cursor: auto;
84
+ padding: 4px 0;
85
+
86
+ .ant-input[disabled] {
87
+ color: rgba(0, 0, 0, 0.85);
88
+ cursor: auto;
89
+ }
90
+ }
91
+
92
+ .basic-val {
93
+ font-size: 14px;
94
+ font-weight: 400;
95
+ color: rgba(0, 0, 0, 0.45);
96
+ margin-right: 15px;
97
+
98
+ .svg-inline--fa {
99
+ margin-right: 5px;
100
+ }
101
+ }
102
+ }
103
+
104
+ .company-general-transfer-info-content {
105
+ display: flex;
106
+ flex-direction: column;
107
+
108
+ >div:nth-child(2) {
109
+ margin-bottom: 10px;
110
+ }
111
+
112
+ .company-general-transfer-info-item {
113
+ flex: 1;
114
+ position: relative;
115
+ padding-right: 3em;
116
+
117
+ .buttons {
118
+ position: absolute;
119
+ right: 30px;
120
+ top: 0;
121
+ }
122
+
123
+ .company-general-transfer-item-name {
124
+ padding-bottom: 16px;
125
+ font-size: 16px;
126
+ font-weight: bold;
127
+
128
+ svg {
129
+ margin-right: 5px;
130
+ }
131
+ }
132
+
133
+ .morpho-inline-edit {
134
+ width: 80%;
135
+ }
136
+ }
137
+ }
138
+
139
+ .ant-alert-warning {
140
+ margin-top: 10px;
141
+ }
142
+ }
143
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const TransferList: (props: {
3
+ /** CLDAForm id */
4
+ id: string;
5
+ onReload?: () => void;
6
+ }) => JSX.Element;
7
+ export default TransferList;