@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.
Files changed (95) hide show
  1. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.css +3 -3
  2. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js +32 -34
  3. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js.map +1 -1
  4. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.css +298 -61
  5. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.d.ts +8 -2
  6. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js +84 -89
  7. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js.map +1 -1
  8. package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js +8 -3
  9. package/es/modules/self-registration/clda-form/components/ChiefExecutiveOfficerList/index.js.map +1 -1
  10. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.css +190 -11
  11. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js +29 -27
  12. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js.map +1 -1
  13. package/es/modules/self-registration/clda-form/components/ContactFields/index.d.ts +107 -0
  14. package/es/modules/self-registration/clda-form/components/ContactFields/index.js +80 -0
  15. package/es/modules/self-registration/clda-form/components/ContactFields/index.js.map +1 -0
  16. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js +14 -4
  17. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map +1 -1
  18. package/es/modules/self-registration/clda-form/components/InternalUse/index.js +7 -9
  19. package/es/modules/self-registration/clda-form/components/InternalUse/index.js.map +1 -1
  20. package/es/modules/self-registration/clda-form/components/MemberInfo/index.d.ts +13 -5
  21. package/es/modules/self-registration/clda-form/components/MemberInfo/index.js +10 -147
  22. package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
  23. package/es/modules/self-registration/clda-form/components/OfficerList/index.d.ts +3 -0
  24. package/es/modules/self-registration/clda-form/components/OfficerList/index.js +38 -18
  25. package/es/modules/self-registration/clda-form/components/OfficerList/index.js.map +1 -1
  26. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +5 -2
  27. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
  28. package/es/modules/self-registration/clda-form/components/ShareCapital/index.css +123 -9
  29. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +70 -72
  30. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
  31. package/es/modules/self-registration/clda-form/components/ShareholderList/index.d.ts +3 -0
  32. package/es/modules/self-registration/clda-form/components/ShareholderList/index.js +43 -28
  33. package/es/modules/self-registration/clda-form/components/ShareholderList/index.js.map +1 -1
  34. package/es/modules/self-registration/clda-form/incorporation/agm/index.css +26 -39
  35. package/es/modules/self-registration/clda-form/incorporation/agm/index.js +7 -7
  36. package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
  37. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js +31 -44
  38. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js.map +1 -1
  39. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.css +3 -165
  40. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js +1 -1
  41. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/index.js.map +1 -1
  42. package/es/modules/self-registration/clda-form/incorporation/bvi/index.css +0 -41
  43. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js +3 -3
  44. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js.map +1 -1
  45. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +8 -8
  46. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
  47. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.css +2 -37
  48. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +3 -3
  49. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js.map +1 -1
  50. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.css +0 -31
  51. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js +5 -7
  52. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.js.map +1 -1
  53. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.css +1 -28
  54. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js +4 -4
  55. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.js.map +1 -1
  56. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningList/index.css +5 -0
  57. package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js +19 -21
  58. package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeAddress/index.js.map +1 -1
  59. package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js +19 -21
  60. package/es/modules/self-registration/clda-form/incorporation/company-general/components/ChangeIndexAddress/index.js.map +1 -1
  61. package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.css +1 -28
  62. package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js +4 -4
  63. package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js.map +1 -1
  64. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.css +1 -24
  65. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +3 -3
  66. package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js.map +1 -1
  67. package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.css +1 -28
  68. package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js +4 -4
  69. package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.js.map +1 -1
  70. package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.d.ts +0 -1
  71. package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js +0 -1
  72. package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationList/index.js.map +1 -1
  73. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.css +2 -37
  74. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +3 -3
  75. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js.map +1 -1
  76. package/es/modules/self-registration/clda-form/incorporation/company-general/index.css +36 -165
  77. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.css +32 -66
  78. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.d.ts +11 -0
  79. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js +44 -92
  80. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js.map +1 -1
  81. package/es/modules/self-registration/clda-form/incorporation/sgp/index.css +31 -40
  82. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +8 -13
  83. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
  84. package/es/modules/self-registration/controls/BusinessNameInput/index.js +41 -7
  85. package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -1
  86. package/es/modules/self-registration/controls/Section/index.css +26 -4
  87. package/es/modules/self-registration/controls/Tips/Tip.css +24 -0
  88. package/es/modules/self-registration/controls/Tips/Tip.d.ts +12 -0
  89. package/es/modules/self-registration/controls/Tips/Tip.js +14 -2
  90. package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -1
  91. package/es/style/clda-form-theme.css +1068 -0
  92. package/es/style/common.css +2 -53
  93. package/package.json +1 -1
  94. package/es/modules/self-registration/clda-form/components/MemberInfo/index.css +0 -181
  95. 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, Col, Divider, Form, Row, Input, InputNumber, Space } from "antd";
2
+ import { Button, InputNumber } from "antd";
3
3
  import { observe } from "@voplus/morpho-ui";
4
- import { useValidates, useLayout } from "@voplus/morpho-data";
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 Address from "@voplus/morpho-ui/es/controls/Address";
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
- return observe(() => (React.createElement("div", { className: "clda-contact-list" },
26
- React.createElement(Row, { gutter: [16, 16] },
27
- React.createElement(Col, { span: 22 },
28
- React.createElement(Row, { gutter: [16, 16], className: "detail-section wider" },
29
- React.createElement(Col, { span: layout.ui.mobile ? 24 : shareholders ? 12 : 24 },
30
- React.createElement("div", { className: "required-information" },
31
- editable ? (React.createElement(Input, { defaultValue: contacts?.name, value: contacts?.name, onChange: (e) => (contacts.name = e.target.value) })) : (React.createElement("div", { className: "contact-value" }, contacts ? (React.createElement(UnitNameNoteAlert, { id: contacts.id, name: contacts.name ?? "" })) : null)),
32
- React.createElement("div", { className: "contact-label" }, "Shareholder Name"))),
33
- shareholders && (React.createElement(React.Fragment, null,
34
- React.createElement(Col, { span: layout.ui.mobile ? 24 : 6 },
35
- React.createElement("div", { className: "required-information" },
36
- editable ? (React.createElement(InputNumber, { value: newShares, placeholder: "Please enter the shares", onChange: (value) => setNewShares(value) })) : (React.createElement("div", { className: "contact-value" }, newShares)),
37
- React.createElement("div", { className: "contact-label" }, "Share(s)"))),
38
- React.createElement(Col, { span: layout.ui.mobile ? 24 : 6 },
39
- React.createElement("div", { className: "required-information" },
40
- editable ? (React.createElement(InputNumber, { value: capital, placeholder: "Please enter the capital", onChange: (value) => setCapital(value) })) : (React.createElement("div", { className: "contact-value" }, capital)),
41
- React.createElement("div", { className: "contact-label" }, "Capital")))))),
42
- React.createElement(Row, { gutter: [16, 16], className: "detail-section" },
43
- React.createElement(Col, { span: layout.ui.mobile ? 24 : 12 },
44
- React.createElement("div", { className: "phone-email-information" },
45
- React.createElement("div", { className: "phone-email-label" }, "Email:"),
46
- editable ? (React.createElement(Input, { value: contacts?.email, placeholder: "Please enter the email", onChange: (e) => (contacts.email = e.target.value) })) : (React.createElement("div", { className: "phone-email-value" }, contacts?.email)))),
47
- React.createElement(Col, { span: layout.ui.mobile ? 24 : 12 },
48
- React.createElement("div", { className: "phone-email-information" },
49
- React.createElement("div", { className: "phone-email-label" }, "Phone:"),
50
- editable ? (React.createElement(Input, { value: contacts?.phone, placeholder: "Please enter the phone", onChange: (e) => (contacts.phone = e.target.value) })) : (React.createElement("div", { className: "phone-email-value" }, contacts?.phone))))),
51
- React.createElement(Row, { gutter: [16, 16], className: "detail-section" },
52
- React.createElement(Col, { span: layout.ui.mobile ? 24 : isOnlyInternalUse ? 8 : 12 },
53
- React.createElement("div", { className: "basic-information", style: !editable ? { display: "flex" } : {} },
54
- React.createElement("div", { className: "basic-label" }, "Address:"),
55
- editable ? (React.createElement(Form, { layout: "vertical" },
56
- React.createElement(Address, { value: contacts.address, required: ["line1", "city", "postalCode", "country"], onChange: (v) => (contacts.address = v) }))) : (React.createElement("div", { className: "basic-value" },
57
- React.createElement("p", null, contacts?.address?.line1),
58
- React.createElement("p", null, contacts?.address?.line2),
59
- React.createElement("p", null, `${contacts?.address?.city ? contacts.address?.city : ""} ${contacts?.address?.state} ${contacts?.address?.country} ${contacts?.address?.postalCode}`.trim()))))),
60
- React.createElement(Col, { span: layout.ui.mobile ? 24 : isOnlyInternalUse ? 8 : 12 },
61
- React.createElement("div", { className: "basic-information", style: !editable ? { display: "flex" } : {} },
62
- React.createElement("div", { className: "basic-label" }, "Identity Card:"),
63
- editable ? (React.createElement(IdentityChange, { value: contacts?.identity, onChange: (v) => (contacts.identity = v) })) : (React.createElement("div", { className: "basic-value" },
64
- React.createElement("p", null, contacts?.identity?.country),
65
- React.createElement("p", null, contacts?.identity?.type),
66
- React.createElement("p", null, contacts?.identity?.number),
67
- React.createElement("p", null,
68
- "Expiry: ",
69
- React.createElement(UTCShortDate, { value: contacts?.identity?.expiryDate })))))),
70
- isOnlyInternalUse && (React.createElement(Col, { span: layout.ui.mobile ? 24 : 8 },
71
- React.createElement("div", { className: "basic-information", style: !editable ? { display: "flex" } : {} },
72
- React.createElement("div", { className: "basic-label" }, "Internal Use Only:"),
73
- editable ? (React.createElement(Form, { labelAlign: "left", layout: "horizontal" },
74
- React.createElement(Form.Item, { label: "Representative", name: "representative" },
75
- React.createElement(Input, { defaultValue: contacts.representative, value: contacts.representative, onChange: (e) => (contacts.representative = e.target.value) })),
76
- React.createElement(Form.Item, { label: "Representative Passport", name: "representativePassport" },
77
- React.createElement(Input, { defaultValue: contacts.representativePassport, value: contacts.representativePassport, onChange: (e) => (contacts.representativePassport = e.target.value) })),
78
- React.createElement(Form.Item, { label: "Foreign Director 1", name: "foreignDirector1" },
79
- React.createElement(Input, { defaultValue: contacts.foreignDirector1, value: contacts.foreignDirector1, onChange: (e) => (contacts.foreignDirector1 = e.target.value) })),
80
- React.createElement(Form.Item, { label: "Foreign Director 2", name: "foreignDirector2" },
81
- React.createElement(Input, { defaultValue: contacts.foreignDirector2, value: contacts.foreignDirector2, onChange: (e) => (contacts.foreignDirector2 = e.target.value) })))) : (React.createElement("div", { className: "basic-value" },
82
- contacts?.representative && (React.createElement("p", null,
83
- "Representative: ",
84
- contacts?.representative)),
85
- contacts?.representativePassport && (React.createElement("p", null,
86
- "Representative Passport: ",
87
- contacts?.representativePassport)),
88
- contacts?.foreignDirector1 && (React.createElement("p", null,
89
- "Foreign Director 1: ",
90
- contacts?.foreignDirector1)),
91
- contacts?.foreignDirector2 && (React.createElement("p", null,
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", null, "* "),
105
- validates.errors.map((error) => (React.createElement(React.Fragment, null,
97
+ React.createElement("span", { className: "prompt-mark" }, "*"),
98
+ validates.errors.map((error) => (React.createElement("span", { key: error },
106
99
  error,
107
- " "))))),
108
- props.memberLength > 1 && React.createElement(Divider, { className: "halvingline" }))));
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,EAA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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"}
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,oDAAoD,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EACN,oBAAoB,EACpB,kBAAkB,EAElB,qBAAqB,E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C,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"}
@@ -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: incorporation.content.contacts?.filter((item) => item.id === m)[0], key: i, memberIndex: i, memberLength: incorporation.content.chiefExecutiveOfficerIds?.length, onDeleteClick: () => remove(i) }))),
31
- (context ? context.editable : true) && (React.createElement(Button, { style: { marginTop: "20px" }, onClick: setAdd }, "Add Chief Executive Officer(s)")),
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)),
@@ -1 +1 @@
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,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,MA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OAAO,KAAK,CAAC,OAAO,CAAC;YACpB,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,OAAO,GAAG,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,wBAAyB,CAAC,CAAC;gBAC3E,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oBACpB,IAAI,EAAE,EAAE,wBAAwB,EAAE,OAAO,EAAE;oBAC3C,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
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,MA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;gBAC3E,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oBACpB,IAAI,EAAE,EAAE,wBAAwB,EAAE,OAAO,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: 110px;
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: #00000040;
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: 12px !important;
12
- font-weight: normal;
13
- color: var(--heading-subtitle-color);
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
- .registered-address-prompted {
17
- margin-top: 20px;
18
- color: #5d5d5d;
19
- font-weight: 600;
20
- font-size: 14px;
21
- line-height: 19px;
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
  }