@voplus/morpho-csp 11.2.6 → 11.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.css +3 -3
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js +32 -34
- package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.css +298 -61
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.d.ts +8 -2
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js +84 -89
- package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js +8 -3
- package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.css +190 -11
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js +29 -27
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ContactFields/index.d.ts +107 -0
- package/es/modules/self-registration/clda-form/components/ContactFields/index.js +80 -0
- package/es/modules/self-registration/clda-form/components/ContactFields/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js +14 -4
- package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/InternalUse/index.js +7 -9
- package/es/modules/self-registration/clda-form/components/InternalUse/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.d.ts +13 -5
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js +10 -147
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/OfficerList/index.d.ts +3 -0
- package/es/modules/self-registration/clda-form/components/OfficerList/index.js +38 -18
- package/es/modules/self-registration/clda-form/components/OfficerList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +5 -2
- package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.css +123 -9
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +70 -72
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.d.ts +3 -0
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js +43 -28
- package/es/modules/self-registration/clda-form/components/ShareholderList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/agm/index.css +26 -39
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +7 -7
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js +31 -44
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.css +3 -165
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.css +0 -41
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +8 -8
- package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.css +2 -37
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.css +0 -31
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js +5 -7
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.css +1 -28
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.css +5 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js +19 -21
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js +19 -21
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.css +1 -28
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.css +1 -24
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.css +1 -28
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js +4 -4
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.d.ts +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.css +2 -37
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +3 -3
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.css +36 -165
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.css +32 -66
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.d.ts +11 -0
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js +44 -92
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.css +31 -40
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +8 -13
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
- package/es/modules/self-registration/controls/BusinessNameInput/index.js +41 -7
- package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -1
- package/es/modules/self-registration/controls/Section/index.css +26 -4
- package/es/modules/self-registration/controls/Tips/Tip.css +24 -0
- package/es/modules/self-registration/controls/Tips/Tip.d.ts +12 -0
- package/es/modules/self-registration/controls/Tips/Tip.js +14 -2
- package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -1
- package/es/style/clda-form-theme.css +1068 -0
- package/es/style/common.css +2 -53
- package/package.json +1 -1
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.css +0 -181
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.css +0 -9
|
@@ -1,112 +1,104 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { Button,
|
|
2
|
+
import { Button, InputNumber } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import { useValidates
|
|
4
|
+
import { useValidates } from "@voplus/morpho-data";
|
|
5
5
|
import { faTrashAltRegular, faPenToSquareRegular, FontAwesomeIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
6
6
|
import { cloneDeep } from "lodash-es";
|
|
7
7
|
import { useCLDAForm, useCLDAFormStore, } from "../../../../../data/clda-form";
|
|
8
|
-
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
9
8
|
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
10
|
-
import IdentityChange from "../../../../corporate/company/identity/components/IdentityChange";
|
|
11
9
|
import { CapitalizeFirstLetter } from "../../../../../data/clda-form/conversion";
|
|
12
10
|
import { useIncorporationFormContext } from "../../incorporation/context";
|
|
13
|
-
import
|
|
11
|
+
import { ContactAddressFields, ContactBasicFields, ContactIdentityFields, ContactInternalUseFields, ContactTextField, } from "../ContactFields";
|
|
14
12
|
import "./index.css";
|
|
13
|
+
/** 只读态缺失值的占位符。 */
|
|
14
|
+
const Dash = () => React.createElement("span", { className: "v dim" }, "\u2014");
|
|
15
|
+
/**
|
|
16
|
+
* 人员行(股东 / 董事 / 首席执行官):只读态按 Basic / Address / Identity / Internal Use 四组展示,
|
|
17
|
+
* 编辑态切换为「分组块 + 块标题在字段上方 + 底部动作栏」。
|
|
18
|
+
* 布局由容器查询按实际可用宽度切换,兼容 DefaultView 宽屏与 PropertiesView 侧栏(约 320-360px)。
|
|
19
|
+
*/
|
|
15
20
|
const CLDAContactList = (props) => {
|
|
16
21
|
const { formId, memberId, shareholders, contacts, isOnlyInternalUse } = props;
|
|
17
22
|
const [editable, setEditable] = useState(false);
|
|
18
23
|
const [newShares, setNewShares] = useState(shareholders?.shares);
|
|
19
24
|
const [capital, setCapital] = useState(shareholders?.capital);
|
|
20
|
-
const layout = useLayout();
|
|
21
25
|
const store = useCLDAFormStore();
|
|
22
26
|
const context = useIncorporationFormContext();
|
|
23
27
|
const incorporation = useCLDAForm(props.formId);
|
|
24
28
|
const validates = useValidates((c) => checkError(c), [incorporation.content?.contacts]);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"Foreign Director 2: ",
|
|
93
|
-
contacts?.foreignDirector2)))))))),
|
|
94
|
-
editable && (React.createElement(Space, { className: "save-cancel-btn" },
|
|
95
|
-
React.createElement(Button, { type: "primary", onClick: onSave }, "Save"),
|
|
96
|
-
React.createElement(Button, { onClick: () => setEditable(false) }, "Cancel")))),
|
|
97
|
-
React.createElement(Col, { span: 2 },
|
|
98
|
-
React.createElement(Row, { justify: "end" }, (context.editable ?? true) && (React.createElement("div", { className: "action-button" },
|
|
99
|
-
React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
|
|
100
|
-
React.createElement(FontAwesomeIcon, { icon: faPenToSquareRegular })),
|
|
101
|
-
React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
|
|
102
|
-
React.createElement(FontAwesomeIcon, { icon: faTrashAltRegular }))))))),
|
|
29
|
+
// spec:2100 — CSP: 联系人缺失时降级展示,避免只读空白与编辑态崩溃
|
|
30
|
+
// shareholders / officerIds 与 contacts 靠 id 关联,任一侧缺失时 contacts 会是 undefined
|
|
31
|
+
if (!contacts) {
|
|
32
|
+
return (React.createElement("div", { className: "clda-contact-list clda-contact-list--missing" },
|
|
33
|
+
React.createElement("div", { className: "row-main" },
|
|
34
|
+
React.createElement("div", { className: "name-line" },
|
|
35
|
+
React.createElement("span", { className: "name dim" }, "Contact not loaded"),
|
|
36
|
+
React.createElement("span", { className: "name-meta" }, memberId))),
|
|
37
|
+
isEditableContext() && (React.createElement("div", { className: "action-button actions" },
|
|
38
|
+
React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
|
|
39
|
+
React.createElement(FontAwesomeIcon, { icon: faTrashAltRegular }))))));
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 当前表单是否允许编辑。
|
|
43
|
+
* context 的默认值是 `null`(见 incorporation/context.ts),因此不能用 `context.editable ?? true`
|
|
44
|
+
* —— 那会在没有 Provider 的场景(如单测直接渲染)抛 TypeError。
|
|
45
|
+
*/
|
|
46
|
+
function isEditableContext() {
|
|
47
|
+
return context ? context.editable : true;
|
|
48
|
+
}
|
|
49
|
+
/** 行根节点的类名:缺列用 no-nums,编辑态用 editing。 */
|
|
50
|
+
const rowClassName = ["clda-contact-list"];
|
|
51
|
+
if (!shareholders)
|
|
52
|
+
rowClassName.push("no-nums");
|
|
53
|
+
if (editable)
|
|
54
|
+
rowClassName.push("editing");
|
|
55
|
+
return observe(() => (React.createElement("div", { className: rowClassName.join(" ") },
|
|
56
|
+
React.createElement("div", { className: "row-main" },
|
|
57
|
+
React.createElement("div", { className: "name-line" },
|
|
58
|
+
React.createElement("span", { className: "name" },
|
|
59
|
+
React.createElement(UnitNameNoteAlert, { id: contacts.id, name: contacts.name ?? "" })),
|
|
60
|
+
editable ? (React.createElement("span", { className: "name-meta" }, "editing\u2026")) : (contacts.identity?.country && (React.createElement("span", { className: "name-meta" }, contacts.identity.country)))),
|
|
61
|
+
!editable && (React.createElement(React.Fragment, null,
|
|
62
|
+
React.createElement(ContactBasicFields, { editing: false, value: { email: contacts.email, phone: contacts.phone }, onChange: () => undefined }),
|
|
63
|
+
React.createElement(ContactAddressFields, { editing: false, value: contacts.address, onChange: () => undefined }),
|
|
64
|
+
React.createElement(ContactIdentityFields, { editing: false, value: contacts.identity, onChange: () => undefined }),
|
|
65
|
+
React.createElement(ContactInternalUseFields, { visible: !!isOnlyInternalUse, editing: false, value: {
|
|
66
|
+
representative: contacts.representative,
|
|
67
|
+
representativePassport: contacts.representativePassport,
|
|
68
|
+
foreignDirector1: contacts.foreignDirector1,
|
|
69
|
+
foreignDirector2: contacts.foreignDirector2,
|
|
70
|
+
}, onChange: () => undefined, title: "Internal Use Only:" })))),
|
|
71
|
+
shareholders && (React.createElement("div", { className: "nums" },
|
|
72
|
+
React.createElement("div", { className: "num" },
|
|
73
|
+
React.createElement("span", { className: "v" }, editable ? (React.createElement(InputNumber, { value: newShares, placeholder: "Please enter the shares", onChange: (value) => setNewShares(value) })) : newShares !== undefined && newShares !== null ? (newShares) : (React.createElement(Dash, null))),
|
|
74
|
+
React.createElement("span", { className: "k" }, "Share(s)")),
|
|
75
|
+
React.createElement("div", { className: "num" },
|
|
76
|
+
React.createElement("span", { className: "v" }, editable ? (React.createElement(InputNumber, { value: capital, placeholder: "Please enter the capital", onChange: (value) => setCapital(value) })) : capital !== undefined && capital !== null ? (capital) : (React.createElement(Dash, null))),
|
|
77
|
+
React.createElement("span", { className: "k" }, "Capital")))),
|
|
78
|
+
isEditableContext() && (React.createElement("div", { className: "action-button actions" },
|
|
79
|
+
React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
|
|
80
|
+
React.createElement(FontAwesomeIcon, { icon: faPenToSquareRegular })),
|
|
81
|
+
React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
|
|
82
|
+
React.createElement(FontAwesomeIcon, { icon: faTrashAltRegular })))),
|
|
83
|
+
editable && (React.createElement("div", { className: "edit-area" },
|
|
84
|
+
React.createElement(ContactBasicFields, { editing: true, value: { email: contacts.email, phone: contacts.phone }, onChange: (patch) => Object.assign(contacts, patch), leadingField: React.createElement(ContactTextField, { label: "Name", value: contacts.name, placeholder: "Please enter the name", onChange: (name) => (contacts.name = name) }) }),
|
|
85
|
+
React.createElement(ContactAddressFields, { editing: true, value: contacts.address ?? undefined, onChange: (v) => (contacts.address = v) }),
|
|
86
|
+
React.createElement(ContactIdentityFields, { editing: true, value: contacts.identity, onChange: (v) => (contacts.identity = v) }),
|
|
87
|
+
React.createElement(ContactInternalUseFields, { visible: !!isOnlyInternalUse, editing: true, value: {
|
|
88
|
+
representative: contacts.representative,
|
|
89
|
+
representativePassport: contacts.representativePassport,
|
|
90
|
+
foreignDirector1: contacts.foreignDirector1,
|
|
91
|
+
foreignDirector2: contacts.foreignDirector2,
|
|
92
|
+
}, onChange: (patch) => Object.assign(contacts, patch) }))),
|
|
93
|
+
editable && (React.createElement("div", { className: "edit-bar" },
|
|
94
|
+
React.createElement(Button, { onClick: () => setEditable(false) }, "Cancel"),
|
|
95
|
+
React.createElement(Button, { type: "primary", onClick: onSave }, "Save"))),
|
|
103
96
|
validates.hasError && (React.createElement("div", { className: "non-empty-check-prompt" },
|
|
104
|
-
React.createElement("span",
|
|
105
|
-
validates.errors.map((error) => (React.createElement(
|
|
97
|
+
React.createElement("span", { className: "prompt-mark" }, "*"),
|
|
98
|
+
validates.errors.map((error) => (React.createElement("span", { key: error },
|
|
106
99
|
error,
|
|
107
|
-
" ")))))
|
|
108
|
-
|
|
109
|
-
// spec:2076
|
|
100
|
+
" "))))))));
|
|
101
|
+
/** 校验联系方式与地址信息是否完整。 */
|
|
110
102
|
function checkError(c) {
|
|
111
103
|
c.validate(() => contacts?.address?.line1 && contacts?.address.city && contacts.address.country, "Please input address.");
|
|
112
104
|
c.validate(() => contacts?.email, "Please input email.");
|
|
@@ -114,7 +106,10 @@ const CLDAContactList = (props) => {
|
|
|
114
106
|
c.validate(() => contacts?.identity?.number && contacts?.identity?.type && contacts.identity?.country, "Please input identity details.");
|
|
115
107
|
return c;
|
|
116
108
|
}
|
|
109
|
+
/** 保存联系人;股东会连同股数与资本一起写回。 */
|
|
117
110
|
async function onSave() {
|
|
111
|
+
if (!contacts)
|
|
112
|
+
return;
|
|
118
113
|
const officers = cloneDeep(incorporation.content?.contacts) ?? [];
|
|
119
114
|
const index = officers.findIndex((i) => i.id === memberId);
|
|
120
115
|
officers[index] = contacts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAContactList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAContactList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAe,WAAW,EAAS,MAAM,MAAM,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAwB,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EACN,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAGN,WAAW,EACX,gBAAgB,GAChB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,iBAAiB,MAAM,oD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;YAC1C,MAAM,WAAW,GAAG,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,IAAI,EAAE,CAAC;YACzE,MAAM,CAAC,GAAG,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;YAE3D,WAAW,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;YACvE,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;gBACxB,IAAI,EAAE;oBACL,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,CAAC;oBACzC,YAAY,EAAE,qBAAqB,CAAC,WAAW,CAAC;iBAChD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;QACJ,CAAC;aAAM,CAAC;YACP,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;gBACxB,IAAI,EAAE,EAAE,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,CAAC,EAAE;gBACnD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;QACJ,CAAC;QACD,WAAW,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Button, Modal, Divider } from "antd";
|
|
2
|
+
import { faPlusRegular, FontAwesomeIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
2
3
|
import React, { useState } from "react";
|
|
3
4
|
import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
|
|
4
5
|
import MemberInfo from "../MemberInfo";
|
|
@@ -23,12 +24,16 @@ const ChiefExecutiveOfficerList = (props) => {
|
|
|
23
24
|
(incorporation.content?.chiefExecutiveOfficerIds &&
|
|
24
25
|
incorporation.content.chiefExecutiveOfficerIds.length > 0), "Need at least one Chief Executive Officer"),
|
|
25
26
|
}), [incorporation.content?.chiefExecutiveOfficerIds, incorporation.content?.useNomineeDirector]);
|
|
27
|
+
/** 首席执行官的联系人记录;与 chiefExecutiveOfficerIds 靠 id 关联,缺失时由行组件兜底展示。 */
|
|
28
|
+
const contactsOf = (officerId) => incorporation.content?.contacts?.filter((item) => item.id === officerId)[0];
|
|
26
29
|
return observe(() => (React.createElement("div", { className: "internal-use-section" },
|
|
27
30
|
React.createElement("div", { className: "sub-title" }, "Chief Executive Officer(s)"),
|
|
28
31
|
React.createElement(Divider, { style: { margin: "10px 0" } }),
|
|
29
|
-
incorporation.content?.chiefExecutiveOfficerIds &&
|
|
30
|
-
incorporation.content.chiefExecutiveOfficerIds.map((m, i) => (React.createElement(MemberInfo, { formId: id, memberId: m, contacts:
|
|
31
|
-
(context ? context.editable : true) && (React.createElement(Button, {
|
|
32
|
+
React.createElement("div", { className: "clda-list" }, incorporation.content?.chiefExecutiveOfficerIds &&
|
|
33
|
+
incorporation.content.chiefExecutiveOfficerIds.map((m, i) => (React.createElement(MemberInfo, { formId: id, memberId: m, contacts: contactsOf(m), key: i, memberIndex: i, memberLength: incorporation.content.chiefExecutiveOfficerIds?.length, onDeleteClick: () => remove(i) })))),
|
|
34
|
+
(context ? context.editable : true) && (React.createElement(Button, { type: "text", className: "add-ceo-btn", onClick: setAdd },
|
|
35
|
+
React.createElement(FontAwesomeIcon, { icon: faPlusRegular }),
|
|
36
|
+
"Add Chief Executive Officer(s)")),
|
|
32
37
|
checks.hasChiefExecutiveOfficer.error && (React.createElement("div", { className: "non-empty-check-prompt" },
|
|
33
38
|
React.createElement("span", null, "* "),
|
|
34
39
|
checks.hasChiefExecutiveOfficer.message)),
|
package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../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C,EACF,CAAC,aAAa,CAAC,OAAO,EAAE,wBAAwB,EAAE,aAAa,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAC5F,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,sBAAsB;QACpC,6BAAK,SAAS,EAAC,WAAW,iCAAiC;QAC3D,oBAAC,OAAO,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD;;;GAGG;AACH,MAAM,yBAAyB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,2BAA2B,EAAE,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AAO,EAAE;oBAC3C,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,23 +1,202 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Company Info:Business Name / Business Activities / Registered Address。
|
|
3
|
+
* 文字层级与人员行保持一致:组标题 #3d4352/700 → 值 #3d4352/500 → 说明 #6b7280。
|
|
4
|
+
*/
|
|
1
5
|
.company-info {
|
|
6
|
+
container-type: inline-size;
|
|
7
|
+
container-name: cldacompanyinfo;
|
|
8
|
+
|
|
2
9
|
.ant-form-item-label > label {
|
|
3
|
-
width:
|
|
10
|
+
width: 100px;
|
|
11
|
+
font-size: 11.5px;
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
letter-spacing: 0.04em;
|
|
14
|
+
text-transform: uppercase;
|
|
15
|
+
color: #3d4352;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* 校验提示:与人员行的提示块同一配色,替代刺眼的纯红 */
|
|
19
|
+
.warning {
|
|
20
|
+
display: inline-block;
|
|
21
|
+
margin-top: 10px;
|
|
22
|
+
color: #a84141;
|
|
23
|
+
font-size: 12.5px;
|
|
24
|
+
font-weight: 600;
|
|
4
25
|
}
|
|
5
26
|
|
|
6
27
|
.placeholder {
|
|
7
|
-
color: #
|
|
28
|
+
color: #94a3b8;
|
|
29
|
+
font-size: 13px;
|
|
30
|
+
border-bottom: 1px dotted #94a3b8;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Business Name:单值,最高一级 */
|
|
34
|
+
.value-lg {
|
|
35
|
+
font-size: 18px;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
color: var(--purple-primary-color);
|
|
38
|
+
line-height: 26px;
|
|
39
|
+
letter-spacing: -0.01em;
|
|
40
|
+
overflow-wrap: anywhere;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Business Activities:每行一个 SSIC 代码 + 描述 */
|
|
44
|
+
.activity-list {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
gap: 12px;
|
|
48
|
+
|
|
49
|
+
.ant-form-item {
|
|
50
|
+
margin-bottom: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ant-form-item-row {
|
|
54
|
+
align-items: baseline;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.activity-value {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
font-size: 13.5px;
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
color: #3d4352;
|
|
62
|
+
line-height: 21px;
|
|
63
|
+
overflow-wrap: anywhere;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ant-form-item-control-input {
|
|
67
|
+
min-height: auto;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Registered Address:多行值 + 说明 */
|
|
72
|
+
.registered-address {
|
|
73
|
+
.content {
|
|
74
|
+
font-size: 13.5px;
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
color: #3d4352;
|
|
77
|
+
line-height: 21px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* 编辑态:与人员行一致的分组块 + 底部动作栏 */
|
|
81
|
+
.address-editor {
|
|
82
|
+
.address-editor-fields {
|
|
83
|
+
.ant-form-item {
|
|
84
|
+
margin-bottom: 11px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ant-form-item-label {
|
|
88
|
+
padding-bottom: 5px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ant-form-item-label > label {
|
|
92
|
+
/* 外层 .company-info 给 label 设了 100px 固定宽,这里恢复自适应,避免长标签换行 */
|
|
93
|
+
width: auto;
|
|
94
|
+
max-width: 100%;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
height: auto;
|
|
97
|
+
font-size: 11px;
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
letter-spacing: 0.03em;
|
|
100
|
+
text-transform: uppercase;
|
|
101
|
+
color: #5f6b7d;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ant-input,
|
|
105
|
+
.ant-select-single {
|
|
106
|
+
height: 32px;
|
|
107
|
+
border-radius: var(--border-radius, 5px);
|
|
108
|
+
font-size: 13px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.ant-select-selector {
|
|
112
|
+
border-radius: var(--border-radius, 5px) !important;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.edit-bar {
|
|
117
|
+
display: flex;
|
|
118
|
+
justify-content: flex-end;
|
|
119
|
+
gap: 9px;
|
|
120
|
+
margin-top: 14px;
|
|
121
|
+
padding-top: 12px;
|
|
122
|
+
border-top: 1px solid var(--border-color-split, #f0f0f0);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.registered-address-prompted {
|
|
127
|
+
margin-top: 12px;
|
|
128
|
+
padding: 9px 12px;
|
|
129
|
+
border-left: 2px solid #dbe7f7;
|
|
130
|
+
background: #fbfdff;
|
|
131
|
+
color: #6b7280;
|
|
132
|
+
font-weight: 400;
|
|
133
|
+
font-size: 12px;
|
|
134
|
+
line-height: 1.8;
|
|
135
|
+
}
|
|
8
136
|
}
|
|
9
137
|
|
|
10
138
|
.sub-title {
|
|
11
|
-
font-size:
|
|
12
|
-
font-weight:
|
|
13
|
-
|
|
139
|
+
font-size: 11.5px !important;
|
|
140
|
+
font-weight: 700;
|
|
141
|
+
letter-spacing: 0.04em;
|
|
142
|
+
text-transform: uppercase;
|
|
143
|
+
color: #3d4352;
|
|
14
144
|
}
|
|
145
|
+
}
|
|
15
146
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
147
|
+
/* 窄容器:label 移到值上方,避免 100px 标签列吃掉正文宽度 */
|
|
148
|
+
@container cldacompanyinfo (max-width: 459px) {
|
|
149
|
+
.company-info {
|
|
150
|
+
.ant-form-item-label > label {
|
|
151
|
+
width: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.activity-list .ant-form-item-row {
|
|
155
|
+
display: block;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.activity-list .ant-form-item-label {
|
|
159
|
+
padding-bottom: 4px;
|
|
160
|
+
text-align: left;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.value-lg {
|
|
164
|
+
font-size: 17px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* 窄容器下地址字段单列、动作按钮等宽 */
|
|
168
|
+
.registered-address {
|
|
169
|
+
.address-editor-fields {
|
|
170
|
+
.ant-row {
|
|
171
|
+
display: block;
|
|
172
|
+
margin-left: 0 !important;
|
|
173
|
+
margin-right: 0 !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.ant-col {
|
|
177
|
+
flex: 0 0 100%;
|
|
178
|
+
max-width: 100%;
|
|
179
|
+
padding-left: 0 !important;
|
|
180
|
+
padding-right: 0 !important;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.edit-bar {
|
|
185
|
+
justify-content: stretch;
|
|
186
|
+
|
|
187
|
+
.ant-btn {
|
|
188
|
+
flex: 1;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* 兜底:不支持容器查询的浏览器 */
|
|
196
|
+
@media (max-width: 720px) {
|
|
197
|
+
.company-info {
|
|
198
|
+
.ant-form-item-label > label {
|
|
199
|
+
width: auto;
|
|
200
|
+
}
|
|
22
201
|
}
|
|
23
202
|
}
|