@voplus/morpho-csp 1.2.60 → 1.2.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/data/clda-setting/interfaces.d.ts +10 -3
- package/es/data/clda-setting/types.d.ts +0 -2
- package/es/data/incorporation-clda/interfaces.d.ts +3 -3
- package/es/modules/corporate/clda/controls/CLDAMenu/index.js +2 -2
- package/es/modules/corporate/clda/controls/CLDAMenu/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js +40 -16
- package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDASettingsPage/index.less +17 -4
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js +25 -11
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js +10 -4
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js +22 -19
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +28 -1
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js +2 -5
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/CompanyInfo/index.js +69 -66
- package/es/modules/self-registration/incorporation-form/components/CompanyInfo/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js +2 -5
- package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/OfficerList/index.js +31 -33
- package/es/modules/self-registration/incorporation-form/components/OfficerList/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/OfficerList/state.d.ts +1 -3
- package/es/modules/self-registration/incorporation-form/components/OfficerList/state.js +0 -11
- package/es/modules/self-registration/incorporation-form/components/OfficerList/state.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/ShareholderList/index.js +13 -18
- package/es/modules/self-registration/incorporation-form/components/ShareholderList/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.d.ts +1 -3
- package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.js +0 -11
- package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
|
+
export interface ClientTexts {
|
|
3
|
+
emailContent?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
uploadDescription?: string;
|
|
6
|
+
formTitle?: string;
|
|
7
|
+
formDescription?: string;
|
|
8
|
+
quotationTitle?: string;
|
|
9
|
+
quotationDescription?: string;
|
|
10
|
+
}
|
|
2
11
|
export interface ICLDASetting extends ILoadable {
|
|
3
12
|
id: string;
|
|
4
13
|
iso?: string;
|
|
@@ -15,7 +24,5 @@ export interface ICLDASetting extends ILoadable {
|
|
|
15
24
|
name: string;
|
|
16
25
|
};
|
|
17
26
|
}[];
|
|
18
|
-
clientTexts?:
|
|
19
|
-
emailContent?: string;
|
|
20
|
-
};
|
|
27
|
+
clientTexts?: ClientTexts;
|
|
21
28
|
}
|
|
@@ -24,8 +24,6 @@ export declare type CLDASettingEditOptions = {
|
|
|
24
24
|
/** Gets th document template id for the setting tempalte */
|
|
25
25
|
TemplateId: string;
|
|
26
26
|
}[];
|
|
27
|
-
/** Gets the default email of the CLDA */
|
|
28
|
-
/** Gets the texts to be displayed in client view */
|
|
29
27
|
ClientTexts?: {
|
|
30
28
|
/** Gets or sets the default email content */
|
|
31
29
|
EmailContent?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AssistantStatus } from "../CLDA";
|
|
2
|
+
import { ClientTexts } from "../clda-setting";
|
|
2
3
|
import { IDocument } from "@voplus/morpho-document-core";
|
|
3
4
|
export interface IIncorporationCLDA extends IDocument {
|
|
4
5
|
/** incorporation form */
|
|
@@ -7,6 +8,7 @@ export interface IIncorporationCLDA extends IDocument {
|
|
|
7
8
|
kycFormId?: string;
|
|
8
9
|
/** quotation id */
|
|
9
10
|
quotationId?: string;
|
|
11
|
+
uploadFolderId?: string;
|
|
10
12
|
/** corporate of the CLDA */
|
|
11
13
|
corporate: {
|
|
12
14
|
id: string;
|
|
@@ -27,9 +29,7 @@ export interface IIncorporationCLDA extends IDocument {
|
|
|
27
29
|
assistantStatus?: AssistantStatus;
|
|
28
30
|
/** id of envelope of the signingMode = 'Digital' */
|
|
29
31
|
envelopeId?: string;
|
|
30
|
-
clientTexts?:
|
|
31
|
-
emailContent?: string;
|
|
32
|
-
};
|
|
32
|
+
clientTexts?: ClientTexts;
|
|
33
33
|
contact: {
|
|
34
34
|
id: string;
|
|
35
35
|
name: string;
|
|
@@ -10,11 +10,11 @@ import { useCLDAStore } from "../../../../../data/CLDA";
|
|
|
10
10
|
const CLDAMenu = (props) => {
|
|
11
11
|
const store = useCLDAStore();
|
|
12
12
|
return observe(() => (React.createElement(DocumentMenu, { id: props.id },
|
|
13
|
-
React.createElement(Button, { type: "link", key: "Envelope", onClick: invite },
|
|
13
|
+
React.createElement(Button, { type: "link", key: "Envelope", disabled: true, onClick: invite },
|
|
14
14
|
React.createElement(FAIcon, { icon: faEnvelope }),
|
|
15
15
|
React.createElement("span", null, "Notify CLDA")),
|
|
16
16
|
React.createElement(SendCLDA, null),
|
|
17
|
-
React.createElement(LegalDocuments,
|
|
17
|
+
React.createElement(LegalDocuments, { disabled: true }),
|
|
18
18
|
React.createElement(Access, null),
|
|
19
19
|
React.createElement(Delete, null))));
|
|
20
20
|
/** email send */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/controls/CLDAMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wDAAwD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE;QACzB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,UAAU,EAAC,OAAO,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/controls/CLDAMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wDAAwD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE;QACzB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,UAAU,EAAC,QAAQ,QAAC,OAAO,EAAE,MAAM;YAC1D,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;YAC5B,gDAAwB,CAChB;QACT,oBAAC,QAAQ,OAAG;QACZ,oBAAC,cAAc,IAAC,QAAQ,SAAG;QAC3B,oBAAC,MAAM,OAAG;QACV,oBAAC,MAAM,OAAG,CACI,CACf,CAAC,CAAC;IAEH,iBAAiB;IACjB,KAAK,UAAU,MAAM;QACpB,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACpD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import { Checkbox, Divider, Button, Row, Space } from "@voplus/antd";
|
|
1
|
+
import { Checkbox, Divider } from "@voplus/antd";
|
|
2
|
+
import React from "react";
|
|
5
3
|
import { useCLDASetting, useCLDASettingStore } from "../../../../../data/clda-setting";
|
|
6
4
|
import { Delete } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
7
|
-
import
|
|
5
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
8
6
|
import ReferenceList from "@voplus/morpho-document/es/controls/ReferenceList";
|
|
7
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
9
|
const Content = (props) => {
|
|
10
10
|
const { id } = props;
|
|
11
11
|
const store = useCLDASettingStore();
|
|
12
12
|
const cldaSetting = useCLDASetting(id);
|
|
13
|
-
const [text, setText] = useState("");
|
|
14
13
|
return observe(() => {
|
|
15
|
-
var _a;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
16
15
|
return (React.createElement(Scrollbars, { autoHide: true },
|
|
17
16
|
React.createElement("div", { className: "clda-settings-content" },
|
|
18
17
|
React.createElement("header", { className: "settings-header" },
|
|
@@ -40,11 +39,40 @@ const Content = (props) => {
|
|
|
40
39
|
React.createElement(ReferenceList, { document: [], canEdit: true, placeholder: "Select AddItional Forms" }),
|
|
41
40
|
React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
|
|
42
41
|
React.createElement("div", { className: "sub-title" }, "Default Email Content"),
|
|
43
|
-
React.createElement(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
React.createElement(DescriptionEditor, { id: id, description: (_a = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
43
|
+
data: { ClientTexts: { EmailContent: description || "" } },
|
|
44
|
+
error: "message",
|
|
45
|
+
}) }),
|
|
46
|
+
React.createElement("div", { className: "sub-title" }, "Description"),
|
|
47
|
+
React.createElement(DescriptionEditor, { id: id, description: (_b = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _b === void 0 ? void 0 : _b.description, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
48
|
+
data: { ClientTexts: { Description: description || "" } },
|
|
49
|
+
error: "message",
|
|
50
|
+
}) }),
|
|
51
|
+
React.createElement("div", { className: "sub-title" }, "Upload Description"),
|
|
52
|
+
React.createElement(DescriptionEditor, { id: id, description: (_c = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _c === void 0 ? void 0 : _c.uploadDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
53
|
+
data: { ClientTexts: { UploadDescription: description || "" } },
|
|
54
|
+
error: "message",
|
|
55
|
+
}) }),
|
|
56
|
+
React.createElement("div", { className: "sub-title" }, "Form Title"),
|
|
57
|
+
React.createElement(DescriptionEditor, { id: id, description: (_d = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _d === void 0 ? void 0 : _d.formTitle, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
58
|
+
data: { ClientTexts: { FormTitle: description || "" } },
|
|
59
|
+
error: "message",
|
|
60
|
+
}) }),
|
|
61
|
+
React.createElement("div", { className: "sub-title" }, "Form Description"),
|
|
62
|
+
React.createElement(DescriptionEditor, { id: id, description: (_e = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _e === void 0 ? void 0 : _e.formDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
63
|
+
data: { ClientTexts: { FormDescription: description || "" } },
|
|
64
|
+
error: "message",
|
|
65
|
+
}) }),
|
|
66
|
+
React.createElement("div", { className: "sub-title" }, "Quotation Title"),
|
|
67
|
+
React.createElement(DescriptionEditor, { id: id, description: (_f = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _f === void 0 ? void 0 : _f.quotationTitle, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
68
|
+
data: { ClientTexts: { QuotationTitle: description || "" } },
|
|
69
|
+
error: "message",
|
|
70
|
+
}) }),
|
|
71
|
+
React.createElement("div", { className: "sub-title" }, "Quotation Description"),
|
|
72
|
+
React.createElement(DescriptionEditor, { id: id, description: (_g = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _g === void 0 ? void 0 : _g.quotationDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
|
|
73
|
+
data: { ClientTexts: { QuotationDescription: description || "" } },
|
|
74
|
+
error: "message",
|
|
75
|
+
}) }))));
|
|
48
76
|
});
|
|
49
77
|
function onChange(e) {
|
|
50
78
|
console.log(`checked = ${e.target.checked}`);
|
|
@@ -55,10 +83,6 @@ const Content = (props) => {
|
|
|
55
83
|
function onEditQuotation(list) {
|
|
56
84
|
store.edit(id, { data: { QuotationId: list[0].id }, error: "message" });
|
|
57
85
|
}
|
|
58
|
-
function onCancel() { }
|
|
59
|
-
async function onSave() {
|
|
60
|
-
store.edit(id, { data: { ClientTexts: { EmailContent: text } }, error: "message" });
|
|
61
|
-
}
|
|
62
86
|
};
|
|
63
87
|
export default Content;
|
|
64
88
|
//# sourceMappingURL=Content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDASettingsPage/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDASettingsPage/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAE,OAAO,EAAoB,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC7E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,O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G,CACM,CACb,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,CAAM;QACvB,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAED,SAAS,eAAe,CAAC,IAAoC;QAC5D,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACzE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.reference-list {
|
|
38
|
-
>div:first-child {
|
|
38
|
+
> div:first-child {
|
|
39
39
|
padding: 5px 0 2px;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -44,11 +44,24 @@
|
|
|
44
44
|
padding: 10px 0;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.proseMirror {
|
|
47
|
+
.description-editor-proseMirror {
|
|
48
48
|
height: 10rem !important;
|
|
49
|
-
|
|
49
|
+
padding: 0;
|
|
50
|
+
.ProseMirror {
|
|
51
|
+
background: #fff;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.description-readonly-proseMirror {
|
|
56
|
+
.ProseMirror {
|
|
57
|
+
padding: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.description-editor-header {
|
|
62
|
+
padding: 0;
|
|
50
63
|
}
|
|
51
64
|
}
|
|
52
65
|
}
|
|
53
66
|
}
|
|
54
|
-
}
|
|
67
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Button, Card } from "@voplus/antd";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Scrollbars } from "react-custom-scrollbars";
|
|
4
|
+
import SubmitterSectionItem from "@voplus/morpho-document/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem";
|
|
5
|
+
import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
|
|
6
|
+
import classnames from "classnames";
|
|
4
7
|
import { observe } from "@voplus/morpho-ui";
|
|
5
8
|
import { useFIncorporationCLDAClientContext } from "../../pages/IncorporationCLDAClientView/IncorporationCLDAClientContext";
|
|
6
9
|
import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
|
|
@@ -9,17 +12,28 @@ const DetailsStep = () => {
|
|
|
9
12
|
const context = useFIncorporationCLDAClientContext();
|
|
10
13
|
const layout = useLayout();
|
|
11
14
|
const incorporation = useIncorporationCLDA(context.id);
|
|
12
|
-
return observe(() =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
React.createElement("div", { className: "
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return observe(() => {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
17
|
+
return (React.createElement(Scrollbars, { autoHide: true },
|
|
18
|
+
React.createElement(Card, { title: React.createElement("div", { className: "steps-title" },
|
|
19
|
+
React.createElement("span", { className: "steps-number" }, "Step1"),
|
|
20
|
+
((_a = incorporation.clientTexts) === null || _a === void 0 ? void 0 : _a.formTitle) ? (React.createElement(Viewer, { html: (_b = incorporation.clientTexts) === null || _b === void 0 ? void 0 : _b.formTitle })) : ("Provide Incorporation details")), className: "steps-content" },
|
|
21
|
+
React.createElement("div", null, ((_c = incorporation.clientTexts) === null || _c === void 0 ? void 0 : _c.formDescription) ? (React.createElement(Viewer, { html: (_d = incorporation.clientTexts) === null || _d === void 0 ? void 0 : _d.formDescription })) : ("This is an electronic incorporation form for you to fill up the relevant company details for your company formation.")),
|
|
22
|
+
React.createElement("div", { className: "step-actions" },
|
|
23
|
+
React.createElement(Button, { type: "primary", loading: context.loading, onClick: () => {
|
|
24
|
+
if (incorporation.incorporationFormId)
|
|
25
|
+
onOpen(`/c/incorporation-form/${incorporation.incorporationFormId}`);
|
|
26
|
+
} }, "Open"))),
|
|
27
|
+
React.createElement(Card, { title: React.createElement("div", { className: "steps-title" },
|
|
28
|
+
React.createElement("span", { className: "steps-number" }, "Step2"),
|
|
29
|
+
((_e = incorporation.clientTexts) === null || _e === void 0 ? void 0 : _e.quotationTitle) ? (React.createElement(Viewer, { html: (_f = incorporation.clientTexts) === null || _f === void 0 ? void 0 : _f.quotationTitle })) : ("Review Quotation")), className: "steps-content" },
|
|
30
|
+
React.createElement("div", null, ((_g = incorporation.clientTexts) === null || _g === void 0 ? void 0 : _g.quotationDescription) ? (React.createElement(Viewer, { html: (_h = incorporation.clientTexts) === null || _h === void 0 ? void 0 : _h.quotationDescription })) : ("This is an electronic quotation for your kind confirmation on the quote.")),
|
|
31
|
+
React.createElement("div", { className: "step-actions" }, incorporation.quotationId ? (React.createElement(Button, { type: "primary", loading: context.loading, onClick: () => onOpen(`/c/quotations/${incorporation.quotationId}`) }, "Open")) : (React.createElement(Button, null, "No Data")))),
|
|
32
|
+
incorporation.uploadFolderId && (React.createElement(Card, { title: React.createElement("div", { className: "steps-title" },
|
|
33
|
+
React.createElement("span", { className: "steps-number" }, "Step3"),
|
|
34
|
+
((_j = incorporation.clientTexts) === null || _j === void 0 ? void 0 : _j.uploadDescription) ? (React.createElement(Viewer, { html: (_k = incorporation.clientTexts) === null || _k === void 0 ? void 0 : _k.uploadDescription })) : ("Upload Folder")), className: classnames("steps-content", "steps-content-upload") },
|
|
35
|
+
React.createElement(SubmitterSectionItem, { id: incorporation.uploadFolderId, index: 0 })))));
|
|
36
|
+
});
|
|
23
37
|
function onOpen(url) {
|
|
24
38
|
layout.history.push(url);
|
|
25
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/DetailsStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;IAErD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/DetailsStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,oBAAoB,MAAM,yFAAyF,CAAC;AAC3H,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO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W,CACb,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,MAAM,CAAC,GAAW;QAC1B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { Button, Card } from "@voplus/antd";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
|
|
3
4
|
import { observe } from "@voplus/morpho-ui";
|
|
4
5
|
import { useFIncorporationCLDAClientContext } from "../../pages/IncorporationCLDAClientView/IncorporationCLDAClientContext";
|
|
6
|
+
import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
|
|
5
7
|
const StartStep = () => {
|
|
6
8
|
const context = useFIncorporationCLDAClientContext();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
const incorporation = useIncorporationCLDA(context.id);
|
|
10
|
+
return observe(() => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
return (React.createElement(Card, { title: "Incorporation CLDA", className: "steps-content" },
|
|
13
|
+
React.createElement("div", null, ((_a = incorporation.clientTexts) === null || _a === void 0 ? void 0 : _a.description) ? (React.createElement(Viewer, { html: (_b = incorporation.clientTexts) === null || _b === void 0 ? void 0 : _b.description })) : ("Thank you for using our Legal Incorporation CLDA. This tool will assist you to complete the whole process for the “xxxxx”.")),
|
|
14
|
+
React.createElement("div", { className: "step-actions" },
|
|
15
|
+
React.createElement(Button, { type: "primary", loading: context.loading, onClick: start }, "Start"))));
|
|
16
|
+
});
|
|
11
17
|
function start() {
|
|
12
18
|
context.step = context.step + 1;
|
|
13
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/StartStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/StartStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,SAAS,GAAG,GAAG,EAAE;IACtB,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;IACrD,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,IAAI,IAAC,KAAK,EAAC,oBAAoB,EAAC,SAAS,EAAC,eAAe;YACzD,iCACE,CAAA,MAAA,aAAa,CAAC,WAAW,0CAAE,WAAW,EAAC,CAAC,CAAC,CACzC,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAA,aAAa,CAAC,WAAW,0CAAE,WAAW,GAAI,CACxD,CAAC,CAAC,CAAC,CACH,4HAA4H,CAC5H,CACI;YACN,6BAAK,SAAS,EAAC,cAAc;gBAC5B,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,YAEtD,CACJ,CACA,CACP,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,KAAK;QACb,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Card, Spin, Steps, Button } from "@voplus/antd";
|
|
1
|
+
import { Button, Card, Spin, Steps } from "@voplus/antd";
|
|
3
2
|
import { IncorporationCLDAClientContext, IncorporationCLDAClientState, } from "./IncorporationCLDAClientContext";
|
|
3
|
+
import React, { useEffect, useMemo, useState } from "react";
|
|
4
4
|
import { useRouteMatch } from "react-router";
|
|
5
|
-
import {
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import { LoadingOutlined } from "@ant-design/icons";
|
|
8
|
-
import { useTabItem } from "@voplus/morpho-data";
|
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import { runInAction } from "mobx";
|
|
11
|
-
import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
|
|
12
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
5
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
13
6
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
7
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
14
8
|
import DetailsStep from "../../components/DetailsStep";
|
|
9
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
15
11
|
import StartStep from "../../components/StartStep";
|
|
16
12
|
import classnames from "classnames";
|
|
13
|
+
import { faBars } from "@fortawesome/pro-light-svg-icons";
|
|
14
|
+
import { observe } from "@voplus/morpho-ui";
|
|
15
|
+
import { runInAction } from "mobx";
|
|
17
16
|
import styles from "./index.less";
|
|
17
|
+
import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
|
|
18
|
+
import { useTabItem } from "@voplus/morpho-data";
|
|
18
19
|
const IncorporationCLDAClientView = () => {
|
|
19
20
|
const match = useRouteMatch();
|
|
20
21
|
const id = match.params.id;
|
|
21
22
|
const { Step } = Steps;
|
|
23
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
22
24
|
const [asideContext] = useState(AsideContent.createContext());
|
|
23
25
|
const [state] = useState(new IncorporationCLDAClientState());
|
|
24
26
|
state.id = id;
|
|
25
|
-
const incorporationCLDA = useIncorporationCLDA(id, { includes: "ids" });
|
|
27
|
+
const incorporationCLDA = useIncorporationCLDA(id, { includes: "ids,client-texts" });
|
|
26
28
|
const tab = useTabItem();
|
|
27
29
|
// useEffect(() => {
|
|
28
30
|
// runInAction(() => {
|
|
@@ -42,14 +44,15 @@ const IncorporationCLDAClientView = () => {
|
|
|
42
44
|
content: React.createElement(DetailsStep, null),
|
|
43
45
|
},
|
|
44
46
|
];
|
|
45
|
-
return observe(() => (React.createElement(
|
|
46
|
-
React.createElement(
|
|
47
|
-
React.createElement("
|
|
48
|
-
React.createElement("
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
React.createElement(
|
|
52
|
-
React.createElement(
|
|
47
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
48
|
+
React.createElement(IncorporationCLDAClientContext.Provider, { value: state },
|
|
49
|
+
React.createElement("div", { className: classnames("clda-client-view", styles["incorporation-clda-client-view"]) },
|
|
50
|
+
React.createElement("header", { className: "clda-client-view-header" },
|
|
51
|
+
React.createElement("div", null, "Incorporation CLDA Client View"),
|
|
52
|
+
React.createElement(Button, { className: "toogle-btn", size: "small", icon: React.createElement(FAIcon, { icon: faBars }), onClick: toggleActivity })),
|
|
53
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
54
|
+
React.createElement("div", { className: "clda-client-view_content" }, (incorporationCLDA === null || incorporationCLDA === void 0 ? void 0 : incorporationCLDA.loading) ? (React.createElement(Card, { title: "Loading ~~", className: "steps-content", bodyStyle: { textAlign: "center" } },
|
|
55
|
+
React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) }))) : (steps[state.step].content))))))));
|
|
53
56
|
function toggleActivity() {
|
|
54
57
|
asideContext.asideContent
|
|
55
58
|
? asideContext.closeAside()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EACN,8BAA8B,EAC9B,4BAA4B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAA6B,aAAa,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAElE,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAA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CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less
CHANGED
|
@@ -9,6 +9,33 @@
|
|
|
9
9
|
.steps-content {
|
|
10
10
|
margin: 0 auto 20px;
|
|
11
11
|
}
|
|
12
|
+
.steps-content-upload {
|
|
13
|
+
.ant-card-body {
|
|
14
|
+
padding: 24px 0;
|
|
15
|
+
.document-header-default {
|
|
16
|
+
padding: 10px 24px !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.steps-title {
|
|
21
|
+
.steps-number {
|
|
22
|
+
float: left;
|
|
23
|
+
margin-right: 3px;
|
|
24
|
+
// margin-top: -1px;
|
|
25
|
+
}
|
|
26
|
+
> div {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.sections-item-card {
|
|
31
|
+
height: 350px;
|
|
32
|
+
padding: 0;
|
|
33
|
+
.section-item-content {
|
|
34
|
+
height: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
12
39
|
}
|
|
13
40
|
}
|
|
14
|
-
}
|
|
41
|
+
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Modal, Spin } from "@voplus/antd";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { ValidationCollections, ValidationCollectionsContext } from "@voplus/morpho-data";
|
|
4
4
|
import { useIncorporationForm, useIncorporationFormStore, } from "../../../../data/incorporation-form";
|
|
5
5
|
import Arrangement from "../../shopping-cart/components/Arrangement";
|
|
6
6
|
import { CompanyInfo } from "../components/CompanyInfo";
|
|
7
7
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
-
import NavigateButtonsBar from "@voplus/morpho-ui/es/controls/NavigateButtonsBar";
|
|
9
8
|
import OfficerList from "../components/OfficerList";
|
|
10
9
|
import { Scrollbars } from "react-custom-scrollbars";
|
|
11
10
|
import Section from "../../controls/Section";
|
|
@@ -42,9 +41,7 @@ const CompanyInfoForm = (props) => {
|
|
|
42
41
|
React.createElement(CompanyInfo, { id: props.id }),
|
|
43
42
|
React.createElement(ShareCapital, { id: props.id }),
|
|
44
43
|
React.createElement(ShareholderList, { id: props.id }),
|
|
45
|
-
React.createElement(OfficerList, { id: props.id }))))
|
|
46
|
-
React.createElement(NavigateButtonsBar, null,
|
|
47
|
-
React.createElement(Button, { disabled: validations.hasError, type: "primary", onClick: () => submit(), loading: submitting }, "Validate")))))));
|
|
44
|
+
React.createElement(OfficerList, { id: props.id })))))))));
|
|
48
45
|
async function submit() {
|
|
49
46
|
try {
|
|
50
47
|
setSubmitting(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/incorporation-form/CompanyInfoForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/incorporation-form/CompanyInfoForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;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4BACd,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI;2DACjB;wBAGlB,6BAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;4BAC/B;;gCAEoD,GAAG,CACnD;4BACJ,iHAGI;4BACJ;gCACC,gDAAsB;gCACtB,mDAAyB;gCACzB,kDAAwB;gCACxB,gEAAsC;gCACtC,wIAGK,CACD,CACA,CACG;oBACV,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;oBAC7B,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;oBAC9B,oBAAC,eAAe,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;oBACjC,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACU,CACxC,CACK,CAYF,CACM,CACR,CACN,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;QACpB,IAAI;YACH,aAAa,CAAC,IAAI,CAAC,CAAC;YACpB,kCAAkC;SAClC;QAAC,OAAO,GAAG,EAAE;YACb,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;SACzD;QACD,aAAa,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,WAAW,EAAE,IAAI;CACjB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -18,7 +18,7 @@ export const CompanyInfo = (props) => {
|
|
|
18
18
|
const incorporationForm = useIncorporationForm(id);
|
|
19
19
|
const store = useIncorporationFormStore();
|
|
20
20
|
const checks = useValidates((c) => ({
|
|
21
|
-
name: c.validate(() => incorporationForm.content.legalEntityName, "Business name cannot be empty."),
|
|
21
|
+
name: c.validate(() => { var _a; return (_a = incorporationForm === null || incorporationForm === void 0 ? void 0 : incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName; }, "Business name cannot be empty."),
|
|
22
22
|
businessActivity: c.validate(() => incorporationForm.content.businessActivities.some((activity) => !!activity && Number(activity.split(" ")[0]) !== NaN), "Choose at least one business activity."),
|
|
23
23
|
registeredAddress: c.validate(() => {
|
|
24
24
|
var _a, _b, _c;
|
|
@@ -28,72 +28,75 @@ export const CompanyInfo = (props) => {
|
|
|
28
28
|
((_c = incorporationForm.content.address) === null || _c === void 0 ? void 0 : _c.country) === "Singapore";
|
|
29
29
|
}, "A valid local address is required."),
|
|
30
30
|
}), [incorporationForm]);
|
|
31
|
-
return observe(() =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
React.createElement(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
s.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
React.createElement(
|
|
31
|
+
return observe(() => {
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
return (React.createElement("div", { className: styles.companyInfo }, incorporationForm.loaded && (React.createElement("div", null,
|
|
34
|
+
React.createElement(Section, { title: React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(FontAwesomeIcon, { icon: faAddressBook }),
|
|
36
|
+
"Business Name ",
|
|
37
|
+
React.createElement(BusinessNameTip, null)) },
|
|
38
|
+
React.createElement(InlineEdit, { defaultValue: (_a = incorporationForm === null || incorporationForm === void 0 ? void 0 : incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName, editTrigger: "both", content: (v) => {
|
|
39
|
+
var _a;
|
|
40
|
+
return (React.createElement("div", null, ((_a = incorporationForm === null || incorporationForm === void 0 ? void 0 : incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName) ? (React.createElement("span", null, incorporationForm.content.legalEntityName)) : (React.createElement("span", { className: "placeholder" }, "Please Enter Business Name"))));
|
|
41
|
+
}, editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { legalEntityName: v } }) }),
|
|
42
|
+
checks.name.error && React.createElement("span", { className: "warning" }, checks.name.message)),
|
|
43
|
+
React.createElement(Section, { title: React.createElement(React.Fragment, null,
|
|
44
|
+
React.createElement(FontAwesomeIcon, { icon: faBriefcase }),
|
|
45
|
+
"Business Activities ",
|
|
46
|
+
React.createElement(BusinessActivityTip, null)) },
|
|
47
|
+
React.createElement("div", { className: styles.content },
|
|
48
|
+
React.createElement(Form, null, ((_b = incorporationForm.content) === null || _b === void 0 ? void 0 : _b.businessActivities) &&
|
|
49
|
+
incorporationForm.content.businessActivities.map((activity, i) => {
|
|
50
|
+
return (React.createElement(Form.Item, { label: `Activities ${i + 1}`, key: `activity-${i}` },
|
|
51
|
+
React.createElement(InlineEdit, { defaultValue: activity, content: (v) => (React.createElement("div", null, activity ? (React.createElement("span", null, activity)) : (React.createElement("span", { className: "placeholder" }, "Please Enter Activities")))), onSave: (v) => {
|
|
52
|
+
store.edit(id, {
|
|
53
|
+
data: {
|
|
54
|
+
businessActivities: [
|
|
55
|
+
i == 0 ? v : incorporationForm.content.businessActivities[0],
|
|
56
|
+
i == 1 ? v : incorporationForm.content.businessActivities[1],
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}, editor: (s) => {
|
|
61
|
+
return (React.createElement(BusinessActivityInput, { defaultValue: activity, onChange: (v) => runInAction(() => (s.store.value = v.toString())), onBlur: () => s.store.cancel(), autoFocus: true, onSelect: () => s.store.save({ trigger: "select" }) }));
|
|
62
|
+
}, editTrigger: "both" })));
|
|
63
|
+
})))),
|
|
64
|
+
React.createElement(Section, { title: React.createElement(React.Fragment, null,
|
|
65
|
+
React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
|
|
66
|
+
"Registered Address ",
|
|
67
|
+
React.createElement(RegisteredAddressTip, null)) },
|
|
68
|
+
React.createElement("div", { className: styles.content },
|
|
69
|
+
React.createElement(InlineEdit, { editTrigger: "both", defaultValue: (_c = incorporationForm.content) === null || _c === void 0 ? void 0 : _c.address, onSave: (v) => store.edit(id, { data: { address: v } }), content: (p) => {
|
|
70
|
+
const s = p.store.value;
|
|
71
|
+
return (React.createElement(React.Fragment, null, (s === null || s === void 0 ? void 0 : s.city) === "" &&
|
|
72
|
+
(s === null || s === void 0 ? void 0 : s.country) === "" &&
|
|
73
|
+
s.line1 === "" &&
|
|
74
|
+
s.line2 === "" &&
|
|
75
|
+
s.postalCode === "" &&
|
|
76
|
+
s.state === "" ? (React.createElement("span", { className: "placeholder" }, "Please Enter Registered Address")) : (React.createElement(React.Fragment, null,
|
|
77
|
+
React.createElement(Row, null,
|
|
78
|
+
React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line1)),
|
|
79
|
+
React.createElement(Row, null,
|
|
80
|
+
React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line2)),
|
|
81
|
+
React.createElement(Row, null,
|
|
82
|
+
React.createElement(Col, null, `${(s === null || s === void 0 ? void 0 : s.city) ? s === null || s === void 0 ? void 0 : s.city : ""} ${s === null || s === void 0 ? void 0 : s.state} ${s === null || s === void 0 ? void 0 : s.country} ${s === null || s === void 0 ? void 0 : s.postalCode}`.trim()))))));
|
|
83
|
+
}, editor: (p) => observe(() => (React.createElement(React.Fragment, null,
|
|
77
84
|
React.createElement(Row, null,
|
|
78
|
-
React.createElement(Col,
|
|
85
|
+
React.createElement(Col, { style: { width: "100%" } },
|
|
86
|
+
React.createElement(Address, { value: p.store.value, onChange: (v) => {
|
|
87
|
+
runInAction(() => {
|
|
88
|
+
p.store.value.city = v.city;
|
|
89
|
+
p.store.value.country = v.country;
|
|
90
|
+
p.store.value.line1 = v.line1;
|
|
91
|
+
p.store.value.line2 = v.line2;
|
|
92
|
+
p.store.value.postalCode = v.postalCode;
|
|
93
|
+
p.store.value.state = v.state;
|
|
94
|
+
});
|
|
95
|
+
}, countryDisabled: true }))),
|
|
79
96
|
React.createElement(Row, null,
|
|
80
|
-
React.createElement(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
React.createElement(Address, { value: p.store.value, onChange: (v) => {
|
|
85
|
-
runInAction(() => {
|
|
86
|
-
p.store.value.city = v.city;
|
|
87
|
-
p.store.value.country = v.country;
|
|
88
|
-
p.store.value.line1 = v.line1;
|
|
89
|
-
p.store.value.line2 = v.line2;
|
|
90
|
-
p.store.value.postalCode = v.postalCode;
|
|
91
|
-
p.store.value.state = v.state;
|
|
92
|
-
});
|
|
93
|
-
}, countryDisabled: true }))),
|
|
94
|
-
React.createElement(Row, null,
|
|
95
|
-
React.createElement(Button, { onClick: () => p.store.save({ trigger: "select" }) }, "Save"),
|
|
96
|
-
React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) })),
|
|
97
|
-
checks.registeredAddress.error && (React.createElement("span", { className: "warning" }, checks.registeredAddress.message))))))));
|
|
97
|
+
React.createElement(Button, { onClick: () => p.store.save({ trigger: "select" }) }, "Save"),
|
|
98
|
+
React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) })),
|
|
99
|
+
checks.registeredAddress.error && (React.createElement("span", { className: "warning" }, checks.registeredAddress.message)))))));
|
|
100
|
+
});
|
|
98
101
|
};
|
|
99
102
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/CompanyInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,qBAAqB,MAAM,yCAAyC,CAAC;AAC5E,OAAO,yBAAyB,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAG3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,KAAK,GAAG,yBAAyB,EAAE,CAAC;IAC1C,MAAM,MAAM,GAAG,YAAY,CAC1B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,QAAQ,CACf,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/CompanyInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,qBAAqB,MAAM,yCAAyC,CAAC;AAC5E,OAAO,yBAAyB,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAG3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAC;IACnD,MAAM,KAAK,GAAG,yBAAyB,EAAE,CAAC;IAC1C,MAAM,MAAM,GAAG,YAA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9B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;gDAC9B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC;gDACxC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;4CAC/B,CAAC,CAAC,CAAC;wCACJ,CAAC,EACD,eAAe,EAAE,IAAI,GACpB,CACG,CACD;4BACN,oBAAC,GAAG;gCACH,oBAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,WAAe;gCACzE,oBAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,aAE7D,CACJ,CACU,CACjB,CAAC,GAEF,CACG;gBACL,MAAM,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAClC,8BAAM,SAAS,EAAC,SAAS,IAAE,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAQ,CACnE,CACQ,CACL,CACN,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Modal, Spin } from "@voplus/antd";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
3
|
import { ValidationCollections, ValidationCollectionsContext } from "@voplus/morpho-data";
|
|
4
4
|
import { useIncorporationForm, useIncorporationFormStore, } from "../../../../../data/incorporation-form";
|
|
5
5
|
import { CompanyInfo } from "../CompanyInfo";
|
|
6
6
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import NavigateButtonsBar from "@voplus/morpho-ui/es/controls/NavigateButtonsBar";
|
|
8
7
|
import OfficerList from "../OfficerList";
|
|
9
8
|
import Section from "../../../controls/Section";
|
|
10
9
|
import ShareCapital from "../ShareCapital";
|
|
@@ -37,9 +36,7 @@ const IncorporationFormReview = (props) => {
|
|
|
37
36
|
React.createElement(CompanyInfo, { id: props.id }),
|
|
38
37
|
React.createElement(ShareCapital, { id: props.id }),
|
|
39
38
|
React.createElement(ShareholderList, { isShowDetails: true, id: props.id }),
|
|
40
|
-
React.createElement(OfficerList, { isShowDetails: true, id: props.id }))))
|
|
41
|
-
React.createElement(NavigateButtonsBar, null,
|
|
42
|
-
React.createElement(Button, { disabled: validations.hasError, type: "primary", onClick: () => submit(), loading: submitting }, "Validate")))));
|
|
39
|
+
React.createElement(OfficerList, { isShowDetails: true, id: props.id })))))));
|
|
43
40
|
async function submit() {
|
|
44
41
|
try {
|
|
45
42
|
setSubmitting(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACz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C,wIAGK,CACD,CACA,CACG;YACV,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAC7B,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAC9B,oBAAC,eAAe,IAAC,aAAa,QAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;YAC/C,oBAAC,WAAW,IAAC,aAAa,QAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACJ,CACxC,CACK,CAYF,CACN,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;QACpB,IAAI;YACH,aAAa,CAAC,IAAI,CAAC,CAAC;YACpB,kCAAkC;SAClC;QAAC,OAAO,GAAG,EAAE;YACb,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;SACzD;QACD,aAAa,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -5,16 +5,16 @@ import Card from "../../../components/Card";
|
|
|
5
5
|
import { DirectorTip } from "../../../controls/Tips";
|
|
6
6
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import MemberInfo from "../MemberInfo";
|
|
8
|
-
import Section from "../../../controls/Section";
|
|
9
8
|
import NewLegalContactDialog from "../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
9
|
+
import Section from "../../../controls/Section";
|
|
10
10
|
import { State } from "./state";
|
|
11
11
|
import { clone } from "lodash-es";
|
|
12
12
|
import { faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
13
13
|
import { observe } from "@voplus/morpho-ui";
|
|
14
14
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
15
15
|
import { useValidates } from "@voplus/morpho-data";
|
|
16
|
-
import { runInAction } from "mobx";
|
|
17
16
|
const OfficerList = (props) => {
|
|
17
|
+
var _a;
|
|
18
18
|
const { id, isShowDetails } = props;
|
|
19
19
|
const [showDialog, setShowDialog] = useState(false);
|
|
20
20
|
const [state] = useState(new State());
|
|
@@ -23,30 +23,34 @@ const OfficerList = (props) => {
|
|
|
23
23
|
const incorporation = useIncorporationForm(props.id);
|
|
24
24
|
state.update(incorporation);
|
|
25
25
|
const checks = useValidates((c) => ({
|
|
26
|
-
hasDirector: c.validate(() => state.members.length > 0, ""),
|
|
27
|
-
}), [state.members]);
|
|
28
|
-
return observe(() =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
26
|
+
hasDirector: c.validate(() => state.incorporationForm.content.members.length > 0, ""),
|
|
27
|
+
}), [(_a = state.incorporationForm.content) === null || _a === void 0 ? void 0 : _a.members]);
|
|
28
|
+
return observe(() => {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
return (React.createElement("div", null,
|
|
31
|
+
React.createElement(Section, { title: React.createElement(React.Fragment, null,
|
|
32
|
+
React.createElement(FontAwesomeIcon, { icon: faUsers }),
|
|
33
|
+
"Directors ",
|
|
34
|
+
React.createElement(DirectorTip, { version: "info" })) },
|
|
35
|
+
React.createElement(Spin, { spinning: state.incorporationForm === null || !state.incorporationForm.loaded },
|
|
36
|
+
React.createElement(Card, { isAdd: false, layout: props.isShowDetails ? "vertical" : "horizontal" },
|
|
37
|
+
((_a = state.incorporationForm.content) === null || _a === void 0 ? void 0 : _a.members) &&
|
|
38
|
+
((_b = state.incorporationForm.content) === null || _b === void 0 ? void 0 : _b.members.map((m, i) => (React.createElement(MemberInfo, { roles: "Directors", member: m, isShowDetails: isShowDetails, key: i, memberIndex: i, memberLength: state.incorporationForm.content.members.length, onDeleteClick: () => remove(i), onEditClick: setEdit })))),
|
|
39
|
+
React.createElement("div", { style: {
|
|
40
|
+
fontSize: "14px",
|
|
41
|
+
fontWeight: "400",
|
|
42
|
+
color: "rgba(0, 0, 0, 0.45)",
|
|
43
|
+
marginTop: "20px",
|
|
44
|
+
cursor: "pointer",
|
|
45
|
+
}, onClick: setAdd }, "Add Director")),
|
|
46
|
+
checks.hasDirector.error && (React.createElement("span", { className: "warning" }, checks.hasDirector.message)))),
|
|
47
|
+
showDialog && React.createElement(NewLegalContactDialog, { visible: true, updateVisible: onSave })));
|
|
48
|
+
});
|
|
46
49
|
async function setEdit(data, index) {
|
|
47
|
-
|
|
50
|
+
const members = clone(state.incorporationForm.content.members);
|
|
51
|
+
members[index] = data;
|
|
48
52
|
await store.edit(id, {
|
|
49
|
-
data: { members:
|
|
53
|
+
data: { members: members },
|
|
50
54
|
error: "message",
|
|
51
55
|
});
|
|
52
56
|
}
|
|
@@ -58,7 +62,7 @@ const OfficerList = (props) => {
|
|
|
58
62
|
async function onSave(info) {
|
|
59
63
|
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
60
64
|
if (info) {
|
|
61
|
-
const data = clone(state.members);
|
|
65
|
+
const data = clone(state.incorporationForm.content.members);
|
|
62
66
|
const member = {
|
|
63
67
|
name: info.FullName,
|
|
64
68
|
email: info.Email,
|
|
@@ -73,7 +77,7 @@ const OfficerList = (props) => {
|
|
|
73
77
|
};
|
|
74
78
|
if (state.index && state.index >= 0)
|
|
75
79
|
data.splice(state.index, 1, member);
|
|
76
|
-
const members = state.index === -1 ? [...state.members, member] : data;
|
|
80
|
+
const members = state.index === -1 ? [...state.incorporationForm.content.members, member] : data;
|
|
77
81
|
await store.edit(id, {
|
|
78
82
|
data: { members: members },
|
|
79
83
|
error: "message",
|
|
@@ -86,21 +90,15 @@ const OfficerList = (props) => {
|
|
|
86
90
|
return Modal.confirm({
|
|
87
91
|
title: "Do you want to delete this item?",
|
|
88
92
|
async onOk() {
|
|
89
|
-
const members = clone(state.members);
|
|
93
|
+
const members = clone(state.incorporationForm.content.members);
|
|
90
94
|
members.splice(index, 1);
|
|
91
95
|
await store.edit(id, {
|
|
92
96
|
data: { members: members },
|
|
93
97
|
error: "message",
|
|
94
98
|
});
|
|
95
|
-
getSharesTransaction();
|
|
96
99
|
},
|
|
97
100
|
});
|
|
98
101
|
}
|
|
99
|
-
/** reload invoice */
|
|
100
|
-
function getSharesTransaction() {
|
|
101
|
-
const document = documents.items.get(id);
|
|
102
|
-
state.members = clone(document.content.members);
|
|
103
|
-
}
|
|
104
102
|
};
|
|
105
103
|
export default OfficerList;
|
|
106
104
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,IAAI,MAAM,0BAA0B,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,IAAI,MAAM,0BAA0B,CAAC;A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/** */
|
|
4
4
|
incorporationForm: IIncorporationForm;
|
|
5
|
-
/** */
|
|
6
|
-
members: IFormPeopleOptions[];
|
|
7
5
|
/** 编辑 members 的 index */
|
|
8
6
|
index?: number;
|
|
9
7
|
constructor();
|
|
@@ -9,13 +9,6 @@ export class State {
|
|
|
9
9
|
writable: true,
|
|
10
10
|
value: void 0
|
|
11
11
|
});
|
|
12
|
-
/** */
|
|
13
|
-
Object.defineProperty(this, "members", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: void 0
|
|
18
|
-
});
|
|
19
12
|
/** 编辑 members 的 index */
|
|
20
13
|
Object.defineProperty(this, "index", {
|
|
21
14
|
enumerable: true,
|
|
@@ -27,15 +20,11 @@ export class State {
|
|
|
27
20
|
}
|
|
28
21
|
update(incorporationForm) {
|
|
29
22
|
this.incorporationForm = incorporationForm;
|
|
30
|
-
this.members = incorporationForm.content.members;
|
|
31
23
|
}
|
|
32
24
|
}
|
|
33
25
|
__decorate([
|
|
34
26
|
observable
|
|
35
27
|
], State.prototype, "incorporationForm", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
observable
|
|
38
|
-
], State.prototype, "members", void 0);
|
|
39
28
|
__decorate([
|
|
40
29
|
observable
|
|
41
30
|
], State.prototype, "index", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/OfficerList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/OfficerList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAMjB;QALA,OAAO;QACK;;;;;WAA6C;QACzD,yBAAyB;QACb;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEc,MAAM,CAAC,iBAAqC;QAC1D,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC5C,CAAC;CACD;AAXY;IAAX,UAAU;gDAA8C;AAE7C;IAAX,UAAU;oCAAuB;AAM1B;IAAP,MAAM;mCAEN"}
|
|
@@ -4,8 +4,8 @@ import { useIncorporationForm, useIncorporationFormStore, } from "../../../../..
|
|
|
4
4
|
import Card from "../../../components/Card";
|
|
5
5
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import MemberInfo from "../MemberInfo";
|
|
7
|
-
import Section from "../../../controls/Section";
|
|
8
7
|
import NewLegalContactDialog from "../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
8
|
+
import Section from "../../../controls/Section";
|
|
9
9
|
import { ShareholderTip } from "../../../controls/Tips";
|
|
10
10
|
import { State } from "./state";
|
|
11
11
|
import { clone } from "lodash-es";
|
|
@@ -13,8 +13,8 @@ import { faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
|
13
13
|
import { observe } from "@voplus/morpho-ui";
|
|
14
14
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
15
15
|
import { useValidates } from "@voplus/morpho-data";
|
|
16
|
-
import { runInAction } from "mobx";
|
|
17
16
|
const ShareholderList = (props) => {
|
|
17
|
+
var _a;
|
|
18
18
|
const { id, isShowDetails } = props;
|
|
19
19
|
const [showDialog, setShowDialog] = useState(false);
|
|
20
20
|
const [state] = useState(new State());
|
|
@@ -23,7 +23,7 @@ const ShareholderList = (props) => {
|
|
|
23
23
|
const incorporation = useIncorporationForm(props.id);
|
|
24
24
|
state.update(incorporation);
|
|
25
25
|
const checks = useValidates((c) => ({
|
|
26
|
-
hasHolders: c.validate(() => state.officers.length > 0, ""),
|
|
26
|
+
hasHolders: c.validate(() => state.incorporationForm.content.officers.length > 0, ""),
|
|
27
27
|
// totalShares: c.validate(
|
|
28
28
|
// () =>
|
|
29
29
|
// state.officers.map((x) => (x.shares ? x.shares : 0)).reduce((x1, x2) => x1 + x2) ===
|
|
@@ -37,17 +37,17 @@ const ShareholderList = (props) => {
|
|
|
37
37
|
// .reduce((x1: number, x2: number) => x1 + x2) === props.order?.capital,
|
|
38
38
|
// `Total capital amount of all shareholder must equal to ${props.order?.capital}.`
|
|
39
39
|
// ),
|
|
40
|
-
}), [state.officers]);
|
|
40
|
+
}), [(_a = state.incorporationForm.content) === null || _a === void 0 ? void 0 : _a.officers]);
|
|
41
41
|
return observe(() => {
|
|
42
|
-
var _a;
|
|
42
|
+
var _a, _b;
|
|
43
43
|
return (React.createElement("div", { className: "shareholder-list" },
|
|
44
44
|
React.createElement(Section, { title: React.createElement(React.Fragment, null,
|
|
45
45
|
React.createElement(FontAwesomeIcon, { icon: faUsers }),
|
|
46
46
|
"Shareholders ",
|
|
47
47
|
React.createElement(ShareholderTip, null)) },
|
|
48
48
|
React.createElement(Spin, { spinning: state.incorporationForm === null || !state.incorporationForm.loaded },
|
|
49
|
-
React.createElement(Card, { isAdd: false, layout: isShowDetails ? "vertical" : "horizontal" }, (_a = state.
|
|
50
|
-
|
|
49
|
+
React.createElement(Card, { isAdd: false, layout: isShowDetails ? "vertical" : "horizontal" }, (_b = (_a = state.incorporationForm.content) === null || _a === void 0 ? void 0 : _a.officers) === null || _b === void 0 ? void 0 :
|
|
50
|
+
_b.map((s, i) => (React.createElement(MemberInfo, { roles: "Shareholder", member: s, key: i, memberIndex: i, memberLength: state.incorporationForm.content.officers.length, isShowDetails: isShowDetails, onEditClick: setEdit, onDeleteClick: () => remove(i) }))),
|
|
51
51
|
React.createElement("div", { style: {
|
|
52
52
|
fontSize: "14px",
|
|
53
53
|
fontWeight: "400",
|
|
@@ -63,9 +63,10 @@ const ShareholderList = (props) => {
|
|
|
63
63
|
setShowDialog(true);
|
|
64
64
|
}
|
|
65
65
|
async function setEdit(data, index) {
|
|
66
|
-
|
|
66
|
+
const officers = clone(state.incorporationForm.content.officers);
|
|
67
|
+
officers[index] = data;
|
|
67
68
|
await store.edit(id, {
|
|
68
|
-
data: { officers:
|
|
69
|
+
data: { officers: officers },
|
|
69
70
|
error: "message",
|
|
70
71
|
});
|
|
71
72
|
}
|
|
@@ -73,7 +74,7 @@ const ShareholderList = (props) => {
|
|
|
73
74
|
async function onSave(info) {
|
|
74
75
|
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
75
76
|
if (info) {
|
|
76
|
-
const data = clone(state.officers);
|
|
77
|
+
const data = clone(state.incorporationForm.content.officers);
|
|
77
78
|
const officer = {
|
|
78
79
|
name: info.FullName,
|
|
79
80
|
email: info.Email,
|
|
@@ -88,7 +89,7 @@ const ShareholderList = (props) => {
|
|
|
88
89
|
};
|
|
89
90
|
if (state.index && state.index >= 0)
|
|
90
91
|
data.splice(state.index, 1, officer);
|
|
91
|
-
const officers = state.index === -1 ? [...state.officers, officer] : data;
|
|
92
|
+
const officers = state.index === -1 ? [...state.incorporationForm.content.officers, officer] : data;
|
|
92
93
|
await store.edit(id, {
|
|
93
94
|
data: { officers: officers },
|
|
94
95
|
error: "message",
|
|
@@ -101,21 +102,15 @@ const ShareholderList = (props) => {
|
|
|
101
102
|
return Modal.confirm({
|
|
102
103
|
title: "Do you want to delete this item?",
|
|
103
104
|
async onOk() {
|
|
104
|
-
const officers = clone(state.officers);
|
|
105
|
+
const officers = clone(state.incorporationForm.content.officers);
|
|
105
106
|
officers.splice(index, 1);
|
|
106
107
|
await store.edit(id, {
|
|
107
108
|
data: { officers: officers },
|
|
108
109
|
error: "message",
|
|
109
110
|
});
|
|
110
|
-
getSharesTransaction();
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
/** reload invoice */
|
|
115
|
-
function getSharesTransaction() {
|
|
116
|
-
const document = documents.items.get(id);
|
|
117
|
-
state.officers = clone(document.content.officers);
|
|
118
|
-
}
|
|
119
114
|
};
|
|
120
115
|
export default ShareholderList;
|
|
121
116
|
//# sourceMappingURL=index.js.map
|
package/es/modules/self-registration/incorporation-form/components/ShareholderList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/ShareholderList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,IAAI,MAAM,0BAA0B,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/ShareholderList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,oBAAoB,EACpB,yBAAyB,GACzB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,IAAI,MAAM,0BAA0B,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,qBAAqB,MAAM,yEAAyE,CAAC;AAC5G,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,K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,GACb,KAAK,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YACpF,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;gBACpB,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;gBAC5B,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC;SACxB;QAED,aAAa,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAED,SAAS,MAAM,CAAC,KAAa;QAC5B,OAAO,KAAK,CAAC,OAAO,CAAC;YACpB,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBACjE,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBAC1B,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oBACpB,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;oBAC5B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IIncorporationForm } from "../../../../../data/incorporation-form";
|
|
2
2
|
export declare class State {
|
|
3
3
|
/** */
|
|
4
4
|
incorporationForm: IIncorporationForm;
|
|
5
|
-
/** */
|
|
6
|
-
officers: IFormPeopleOptions[];
|
|
7
5
|
/** 编辑 officers 的 index */
|
|
8
6
|
index?: number;
|
|
9
7
|
constructor();
|
|
@@ -9,13 +9,6 @@ export class State {
|
|
|
9
9
|
writable: true,
|
|
10
10
|
value: void 0
|
|
11
11
|
});
|
|
12
|
-
/** */
|
|
13
|
-
Object.defineProperty(this, "officers", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: void 0
|
|
18
|
-
});
|
|
19
12
|
/** 编辑 officers 的 index */
|
|
20
13
|
Object.defineProperty(this, "index", {
|
|
21
14
|
enumerable: true,
|
|
@@ -27,15 +20,11 @@ export class State {
|
|
|
27
20
|
}
|
|
28
21
|
update(incorporationForm) {
|
|
29
22
|
this.incorporationForm = incorporationForm;
|
|
30
|
-
this.officers = incorporationForm.content.officers;
|
|
31
23
|
}
|
|
32
24
|
}
|
|
33
25
|
__decorate([
|
|
34
26
|
observable
|
|
35
27
|
], State.prototype, "incorporationForm", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
observable
|
|
38
|
-
], State.prototype, "officers", void 0);
|
|
39
28
|
__decorate([
|
|
40
29
|
observable
|
|
41
30
|
], State.prototype, "index", void 0);
|
package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/ShareholderList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/components/ShareholderList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IAMjB;QALA,OAAO;QACK;;;;;WAA6C;QACzD,0BAA0B;QACd;;;;;WAAsB;QAGjC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEc,MAAM,CAAC,iBAAqC;QAC1D,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC5C,CAAC;CACD;AAXY;IAAX,UAAU;gDAA8C;AAE7C;IAAX,UAAU;oCAAuB;AAM1B;IAAP,MAAM;mCAEN"}
|