@voplus/morpho-csp 11.2.6 → 11.2.7

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,149 +1,12 @@
1
- import React, { useState } from "react";
2
- import { Alert, Button, Col, Divider, Form, Row, Input, InputNumber } from "antd";
3
- import { UserOutlined } from "@ant-design/icons";
4
- import { observe } from "@voplus/morpho-ui";
5
- import { useValidates, useLayout } from "@voplus/morpho-data";
6
- import { faAddressCardRegular, faEnvelopeRegular, faMapMarkerAltRegular, faPhoneRegular, faTrashAltRegular, faPenToSquareRegular, faMoneyBillRegular, faBadgeDollarRegular, faLockRegular, FontAwesomeIcon, } from "@voplus/morpho-ui/es/faIcons";
7
- import { cloneDeep } from "lodash-es";
8
- import { useCLDAForm, useCLDAFormStore, } from "../../../../../data/clda-form";
9
- import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
10
- import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
11
- import IdentityChange from "../../../../corporate/company/identity/components/IdentityChange";
12
- import { CapitalizeFirstLetter } from "../../../../../data/clda-form/conversion";
13
- import { useIncorporationFormContext } from "../../incorporation/context";
14
- import Address from "@voplus/morpho-ui/es/controls/Address";
15
- import classnames from "classnames";
16
- import "./index.css";
17
- const MemberInfo = (props) => {
18
- const { formId, memberId, shareholders, contacts, isOnlyInternalUse } = props;
19
- const [editable, setEditable] = useState(false);
20
- const [newShares, setNewShares] = useState(shareholders?.shares);
21
- const [capital, setCapital] = useState(shareholders?.capital);
22
- const layout = useLayout();
23
- const store = useCLDAFormStore();
24
- const context = useIncorporationFormContext();
25
- const incorporation = useCLDAForm(props.formId);
26
- const validates = useValidates((c) => checkError(c), [incorporation.content?.contacts]);
27
- return observe(() => (React.createElement("div", { className: "clda-form-member-info" },
28
- React.createElement("div", { className: classnames({ "member-info-mobile": layout.ui.mobile }) },
29
- React.createElement("div", { className: "member-title" },
30
- React.createElement("div", { className: "member-title-info" }, editable ? (React.createElement(Input, { prefix: React.createElement(UserOutlined, null), defaultValue: contacts?.name, value: contacts?.name, onChange: (e) => (contacts.name = e.target.value) })) : (React.createElement("span", { className: "member-name" }, contacts && React.createElement(UnitNameNoteAlert, { id: contacts.id, name: contacts.name ?? "" })))),
31
- (context ? context.editable : true) && (React.createElement("div", { className: "action-button" },
32
- React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
33
- React.createElement(FontAwesomeIcon, { icon: faPenToSquareRegular })),
34
- React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
35
- React.createElement(FontAwesomeIcon, { icon: faTrashAltRegular }))))),
36
- shareholders && (React.createElement("div", { className: "basic-info" },
37
- React.createElement("div", { className: "shares-input" },
38
- React.createElement(InputNumber, { prefix: React.createElement(FontAwesomeIcon, { icon: faMoneyBillRegular }), disabled: !editable, bordered: editable, value: newShares, placeholder: "Please enter the shares", onChange: (value) => setNewShares(value) })),
39
- React.createElement("div", { className: "shares-input" },
40
- React.createElement(InputNumber, { prefix: React.createElement(FontAwesomeIcon, { icon: faBadgeDollarRegular }), disabled: !editable, bordered: editable, value: capital, placeholder: "Please enter the capital", onChange: (value) => setCapital(value) })))),
41
- React.createElement("div", { className: "basic-info" },
42
- React.createElement(Input, { disabled: !editable, bordered: editable, value: contacts?.email, placeholder: "Please enter the email", prefix: React.createElement(FontAwesomeIcon, { icon: faEnvelopeRegular }), onChange: (e) => (contacts.email = e.target.value) }),
43
- React.createElement(Input, { disabled: !editable, bordered: editable, value: contacts?.phone, placeholder: "Please enter the phone", prefix: React.createElement(FontAwesomeIcon, { icon: faPhoneRegular }), onChange: (e) => (contacts.phone = e.target.value) })),
44
- React.createElement("div", { className: "member-info-content" },
45
- React.createElement("div", { className: "member-info-item" },
46
- React.createElement("div", { className: "member-item-name" },
47
- React.createElement(FontAwesomeIcon, { icon: faMapMarkerAltRegular }),
48
- "Address:"),
49
- editable ? (React.createElement(Form, { layout: "horizontal" },
50
- React.createElement(Address, { value: contacts.address, required: ["line1", "city", "postalCode", "country"], onChange: (v) => (contacts.address = v) }))) : (React.createElement(React.Fragment, null,
51
- React.createElement(Row, null,
52
- React.createElement(Col, null, contacts?.address?.line1)),
53
- React.createElement(Row, null,
54
- React.createElement(Col, null, contacts?.address?.line2)),
55
- React.createElement(Row, null,
56
- React.createElement(Col, null, `${contacts?.address?.city ? contacts.address?.city : ""} ${contacts?.address?.state} ${contacts?.address?.country} ${contacts?.address?.postalCode}`.trim()))))),
57
- React.createElement("div", { className: "member-info-item" },
58
- React.createElement("div", { className: "member-item-name" },
59
- React.createElement(FontAwesomeIcon, { icon: faAddressCardRegular }),
60
- "Identify Info:"),
61
- editable ? (React.createElement(IdentityChange, { value: contacts?.identity, onChange: (v) => (contacts.identity = v) })) : (React.createElement(React.Fragment, null,
62
- React.createElement(Row, null,
63
- React.createElement(Col, null, contacts?.identity?.country)),
64
- React.createElement(Row, null,
65
- React.createElement(Col, null, contacts?.identity?.type)),
66
- React.createElement(Row, null,
67
- React.createElement(Col, null, contacts?.identity?.number)),
68
- React.createElement(Row, null,
69
- React.createElement(Col, null,
70
- "Expiry: ",
71
- React.createElement(UTCShortDate, { value: contacts?.identity?.expiryDate })))))),
72
- isOnlyInternalUse && (React.createElement("div", { className: "member-info-item" },
73
- React.createElement("div", { className: "member-item-name" },
74
- React.createElement(FontAwesomeIcon, { icon: faLockRegular }),
75
- "Internal Use Only:"),
76
- editable ? (React.createElement(Form, { labelAlign: "left", layout: "horizontal" },
77
- React.createElement(Form.Item, { label: "Representative", name: "representative" },
78
- React.createElement(Input, { defaultValue: contacts.representative, value: contacts.representative, onChange: (e) => (contacts.representative = e.target.value) })),
79
- React.createElement(Form.Item, { label: "Representative Passport", name: "representativePassport" },
80
- React.createElement(Input, { defaultValue: contacts.representativePassport, value: contacts.representativePassport, onChange: (e) => (contacts.representativePassport = e.target.value) })),
81
- React.createElement(Form.Item, { label: "Foreign Director 1", name: "foreignDirector1" },
82
- React.createElement(Input, { defaultValue: contacts.foreignDirector1, value: contacts.foreignDirector1, onChange: (e) => (contacts.foreignDirector1 = e.target.value) })),
83
- React.createElement(Form.Item, { label: "Foreign Director 2", name: "foreignDirector2" },
84
- React.createElement(Input, { defaultValue: contacts.foreignDirector2, value: contacts.foreignDirector2, onChange: (e) => (contacts.foreignDirector2 = e.target.value) })))) : (React.createElement(React.Fragment, null,
85
- contacts?.representative && (React.createElement(Row, null,
86
- React.createElement(Col, null,
87
- "Representative: ",
88
- contacts?.representative))),
89
- contacts?.representativePassport && (React.createElement(Row, null,
90
- React.createElement(Col, null,
91
- "Representative Passport: ",
92
- contacts?.representativePassport))),
93
- contacts?.foreignDirector1 && (React.createElement(Row, null,
94
- React.createElement(Col, null,
95
- "Foreign Director 1: ",
96
- contacts?.foreignDirector1))),
97
- contacts?.foreignDirector2 && (React.createElement(Row, null,
98
- React.createElement(Col, null,
99
- "Foreign Director 2: ",
100
- contacts?.foreignDirector2)))))))),
101
- editable && (React.createElement(Row, { justify: "end", style: { paddingRight: "3em" } },
102
- React.createElement(Button, { onClick: () => setEditable(false) }, "Cancel"),
103
- React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))),
104
- validates.hasError && (React.createElement(Alert, { message: React.createElement(React.Fragment, null, errorTip(validates.errors)), showIcon: true, type: "warning" }))),
105
- props.memberLength > 1 && React.createElement(Divider, { className: "halvingline" }))));
106
- function checkError(c) {
107
- c.validate(() => contacts?.address?.line1 && contacts?.address.city && contacts.address.country, "Please input address.");
108
- // c.validate(() => unit.type !== "Organization" && unit.nationality, "Please input nationality.");
109
- c.validate(() => contacts?.email, "Please input email.");
110
- c.validate(() => contacts?.phone, "Please input phone.");
111
- c.validate(() => contacts?.identity?.number && contacts?.identity?.type && contacts.identity?.country, "Please input identity details.");
112
- // if (isShareholder) {
113
- // c.validate(() => props.contacts.shares! > 0, "Please input number of shares.");
114
- // c.validate(() => props.contacts.capital! > 0, "Please input subscription amount (capital).");
115
- // }
116
- return c;
117
- }
118
- async function onSave() {
119
- const officers = cloneDeep(incorporation.content?.contacts) ?? [];
120
- const index = officers.findIndex((i) => i.id === memberId);
121
- officers[index] = contacts;
122
- if (shareholders && newShares && capital) {
123
- const shareholder = cloneDeep(incorporation.content?.shareholders) ?? [];
124
- const i = shareholder?.findIndex((i) => i.id === memberId);
125
- shareholder[i] = { id: memberId, shares: newShares, capital: capital };
126
- await store.edit(formId, {
127
- data: {
128
- Contacts: CapitalizeFirstLetter(officers),
129
- Shareholders: CapitalizeFirstLetter(shareholder),
130
- },
131
- error: "message",
132
- });
133
- }
134
- else {
135
- await store.edit(formId, {
136
- data: { Contacts: CapitalizeFirstLetter(officers) },
137
- error: "message",
138
- });
139
- }
140
- setEditable(false);
141
- }
142
- function errorTip(errors) {
143
- return (React.createElement("div", null, errors.map((item, index) => {
144
- return (React.createElement("span", { key: index, style: { marginRight: "10px" } }, item));
145
- })));
146
- }
147
- };
1
+ import React from "react";
2
+ import CLDAContactList from "../CLDAContactList";
3
+ /**
4
+ * 首席执行官 / 秘书等人员行。
5
+ *
6
+ * 与股东、董事行共用同一套扁平布局({@link CLDAContactList}),视觉与交互因此保持一致;
7
+ * 数据写入(`Contacts` / `Shareholders` 载荷)、编辑开关、删除二次确认与校验规则全部沿用原实现,
8
+ * 这里只做语义命名与入参透传。
9
+ */
10
+ const MemberInfo = (props) => React.createElement(CLDAContactList, { ...props });
148
11
  export default MemberInfo;
149
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/MemberInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAA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;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;IAED,SAAS,QAAQ,CAAC,MAAgB;QACjC,OAAO,CACN,iCACE,MAAM,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAK,EAAE,EAAE;YAChC,OAAO,CACN,8BAAM,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,IAC9C,IAAI,CACC,CACP,CAAC;QACH,CAAC,CAAC,CACG,CACN,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/MemberInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAmBjD;;;;;;GAMG;AACH,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAC;AAE9E,eAAe,UAAU,CAAC"}
@@ -1,4 +1,7 @@
1
1
  import React from "react";
2
+ /**
3
+ * 董事列表:扁平行 + 固定在行内的动作区,Add 按钮位于同一张 Section 卡片内。
4
+ */
2
5
  declare const OfficerList: (props: {
3
6
  id: any;
4
7
  isShowDetails?: boolean;
@@ -3,7 +3,7 @@ import { Button, Modal, Spin } from "antd";
3
3
  import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
4
4
  import { State } from "./state";
5
5
  import { cloneDeep } from "lodash-es";
6
- import { faUserTagSolid, FontAwesomeIcon } from "@voplus/morpho-ui/es/faIcons";
6
+ import { faPlusRegular, faUserTagSolid, FontAwesomeIcon } from "@voplus/morpho-ui/es/faIcons";
7
7
  import { observe } from "@voplus/morpho-ui";
8
8
  import { useDocumentStore } from "@voplus/morpho-document-core";
9
9
  import { useIncorporationFormContext } from "../../incorporation/context";
@@ -12,9 +12,11 @@ import { DirectorTip } from "../../../controls/Tips";
12
12
  import CLDAContactList from "../CLDAContactList";
13
13
  import NewDirectorDialog from "../NewDirectorDialog";
14
14
  import Section from "../../../controls/Section";
15
- import Card from "../../../components/Card";
15
+ /**
16
+ * 董事列表:扁平行 + 固定在行内的动作区,Add 按钮位于同一张 Section 卡片内。
17
+ */
16
18
  const OfficerList = (props) => {
17
- const { id, isShowDetails } = props;
19
+ const { id } = props;
18
20
  const [showDialog, setShowDialog] = useState(false);
19
21
  const [state] = useState(new State());
20
22
  const store = useCLDAFormStore();
@@ -27,26 +29,44 @@ const OfficerList = (props) => {
27
29
  hasDirector: c.validate(() => state.incorporationForm.content.officerIds &&
28
30
  state.incorporationForm.content.officerIds.length > 0, "Need at least one director"),
29
31
  }), [state.incorporationForm.content?.officerIds]);
30
- return observe(() => (React.createElement("div", { className: "officer-list" },
31
- React.createElement(Section, { title: React.createElement("div", { className: "clda-interpretation-card-title" },
32
- React.createElement("div", null,
33
- React.createElement(FontAwesomeIcon, { className: "margin-right-10", icon: faUserTagSolid }),
34
- "Director(s)"),
35
- React.createElement(DirectorTip, { version: "info" })) },
36
- React.createElement(Spin, { spinning: state.incorporationForm === null || !state.incorporationForm.loaded },
37
- React.createElement(Card, { isAdd: false, layout: isShowDetails ? "vertical" : "horizontal" },
38
- state.incorporationForm.content?.officerIds &&
39
- state.incorporationForm.content?.officerIds.map((m, i) => (React.createElement(CLDAContactList, { formId: id, memberId: m, contacts: state.incorporationForm.content.contacts?.filter((item) => item.id === m)[0], key: i, memberIndex: i, memberLength: state.incorporationForm.content.officerIds?.length, onDeleteClick: () => remove(i) }))),
40
- (context ? context.editable : true) && (React.createElement(Button, { type: "text", className: "add-director-btn", onClick: setAdd }, "+ Add Director"))),
41
- checks.hasDirector.error && (React.createElement("div", { className: "non-empty-check-prompt" },
42
- React.createElement("span", null, "* "),
43
- checks.hasDirector.message)))),
44
- showDialog && (React.createElement(NewDirectorDialog, { id: id, visible: true, onCancel: () => setShowDialog(false) })))));
32
+ /** 已选董事的联系人记录;与 officerIds 靠 id 关联,缺失时由 CLDAContactList 兜底展示。 */
33
+ const contactsOf = (officerId) => state.incorporationForm.content.contacts?.filter((item) => item.id === officerId)[0];
34
+ // 注意:董事数量必须在 observe 的回调内部读取。
35
+ // useCLDAForm 内部的 useCountedMapItemOrNull 只做 map.get,不订阅 observable,
36
+ // 因此组件体不会因表单内容变化而重跑;写在回调外的话,
37
+ // 增删董事后标题计数会一直是旧值。
38
+ return observe(() => {
39
+ /** 董事数量,用于标题右侧的计数展示。 */
40
+ const directorCount = state.incorporationForm.content?.officerIds?.length ?? 0;
41
+ return (React.createElement("div", { className: "officer-list" },
42
+ React.createElement(Section, { title: React.createElement("div", { className: "clda-interpretation-card-title" },
43
+ React.createElement("div", null,
44
+ React.createElement(FontAwesomeIcon, { icon: faUserTagSolid }),
45
+ "Director(s) ",
46
+ React.createElement("span", { className: "required-fields" }, "*"),
47
+ React.createElement(DirectorTip, { version: "info" })),
48
+ React.createElement("div", { className: "title-actions" }, directorCount > 0 && (React.createElement("span", { className: "clda-count" },
49
+ directorCount,
50
+ " ",
51
+ directorCount === 1 ? "director" : "directors")))) },
52
+ React.createElement(Spin, { spinning: state.incorporationForm === null || !state.incorporationForm.loaded },
53
+ React.createElement("div", { className: "clda-list" }, state.incorporationForm.content?.officerIds &&
54
+ state.incorporationForm.content?.officerIds.map((m, i) => (React.createElement(CLDAContactList, { formId: id, memberId: m, contacts: contactsOf(m), key: i, memberIndex: i, memberLength: state.incorporationForm.content.officerIds?.length, onDeleteClick: () => remove(i) })))),
55
+ (context ? context.editable : true) && (React.createElement(Button, { type: "text", className: "add-director-btn", onClick: setAdd },
56
+ React.createElement(FontAwesomeIcon, { icon: faPlusRegular }),
57
+ "Add Director")),
58
+ checks.hasDirector.error && (React.createElement("div", { className: "non-empty-check-prompt" },
59
+ React.createElement("span", null, "* "),
60
+ checks.hasDirector.message)))),
61
+ showDialog && (React.createElement(NewDirectorDialog, { id: id, visible: true, onCancel: () => setShowDialog(false) }))));
62
+ });
63
+ /** 打开新增董事弹窗。 */
45
64
  function setAdd() {
46
65
  state.index = -1;
47
66
  setShowDialog(true);
48
67
  }
49
68
  // spec:2075 — CSP: Confirm before deleting a director / shareholder / managing director / secretary
69
+ /** 删除指定董事(需二次确认)。 */
50
70
  function remove(index) {
51
71
  return Modal.confirm({
52
72
  title: "Do you want to delete this item?",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1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ACT,CACK;gBACN,MAAM,CAAC,WAAW,CAAC,KAAK,IAAI,CAC5B,6BAAK,SAAS,EAAC,wBAAwB;oBACtC,uCAAe;oBACd,MAAM,CAAC,WAAW,CAAC,OAAO,CACtB,CACN,CACK,CACE;QACT,UAAU,IAAI,CACd,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,GAAI,CAClF,CACI,CACN,CAAC,CAAC;IAEH,SAAS,MAAM;QACd,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QACjB,aAAa,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAED,oGAAoG;IACpG,SAAS,MAAM,CAAC,KAAa;QAC5B,OAAO,KAAK,CAAC,OAAO,CAAC;YACpB,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,UAAW,CAAC,CAAC;gBACvE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oBACpB,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE;oBAC7B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,gBAAgB,E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,IAAI,CAAC,CAAC;IACrB,CAAC;IAED,oGAAoG;IACpG,qBAAqB;IACrB,SAAS,MAAM,CAAC,KAAa;QAC5B,OAAO,KAAK,CAAC,OAAO,CAAC;YACpB,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,UAAW,CAAC,CAAC;gBACvE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oBACpB,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE;oBAC7B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,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 UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
@@ -22,7 +23,9 @@ const SecretaryList = (props) => {
22
23
  React.createElement("div", { className: "sub-title" }, "Secretary(s)"),
23
24
  React.createElement(Divider, { style: { margin: "10px 0" } }),
24
25
  React.createElement(MentionList, { canEdit: false, contacts: state.list }),
25
- (context ? context.editable : true) && (React.createElement(Button, { style: { marginTop: "20px" }, onClick: setAdd }, "Add Secretary")),
26
+ (context ? context.editable : true) && (React.createElement(Button, { type: "text", className: "add-secretary-btn", onClick: setAdd },
27
+ React.createElement(FontAwesomeIcon, { icon: faPlusRegular }),
28
+ "Add Secretary")),
26
29
  showDialog && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: true, defaultSelected: state.list, onSelect: onSave, onCancel: () => setShowDialog(false) })))));
27
30
  function setAdd() {
28
31
  state.index = -1;
@@ -43,7 +46,7 @@ const SecretaryList = (props) => {
43
46
  }
44
47
  // spec:2079
45
48
  async function onSave(unit) {
46
- let secretaryList = [];
49
+ const secretaryList = [];
47
50
  unit?.map((i) => secretaryList.push({ Key: i.id, Value: i.name }));
48
51
  await store
49
52
  .edit(id, { data: { Secretarys: secretaryList }, error: "message" })
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/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;AAC9E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,0CAA0C;AAC1C,0DAA0D;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,MAAM,aAAa,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC5C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,2BAA2B,EAAE,CAAC;IAC9C,MAAM,aA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AE,EAAE;oBACpB,IAAI,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE;oBAC/B,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;IAED,YAAY;IACZ,KAAK,UAAU,MAAM,CAAC,IAAmD;QACxE,IAAI,aAAa,GAAqC,EAAE,CAAC;QAEzD,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAEnE,MAAM,KAAK;aACT,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;aACnE,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACpC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/SecretaryList/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;AAC9E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,0CAA0C;AAC1C,0DAA0D;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW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* Capital and Financial Year:三列指标(宽)/ 单列(窄),用竖线或横线分隔,
3
+ * 不做成三张卡片;编辑态输入控件与人员行保持同一套尺寸与圆角。
4
+ */
1
5
  .share-capital {
6
+ container-type: inline-size;
7
+ container-name: cldacapital;
8
+
9
+ .cap-grid {
10
+ display: grid;
11
+ grid-template-columns: repeat(3, minmax(0, 1fr));
12
+ margin: 0 -18px;
13
+ }
14
+
15
+ .cap-cell {
16
+ padding: 16px 18px 18px;
17
+ border-left: 1px solid var(--border-color-split, #f0f0f0);
18
+
19
+ &:first-child {
20
+ border-left: 0;
21
+ }
22
+ }
23
+
24
+ /* 指标名:与人员行的组标题同层级 */
2
25
  .capital-title {
3
26
  display: flex;
4
- color: #5d5d5d;
5
27
  align-items: center;
6
- justify-content: space-between;
7
- font: normal normal normal 14px/17px Font Awesome 6 Free;
28
+ gap: 7px;
29
+ font-size: 11.5px;
30
+ font-weight: 700;
31
+ letter-spacing: 0.04em;
32
+ text-transform: uppercase;
33
+ color: #3d4352;
34
+
35
+ > div {
36
+ display: inline-flex;
37
+ align-items: center;
38
+ gap: 7px;
39
+ }
8
40
  }
9
41
 
10
42
  .capital-content {
11
- padding: 10px 0;
43
+ padding-top: 9px;
12
44
 
13
45
  .capital-content-value {
14
46
  color: var(--purple-primary-color);
15
- font-weight: bold;
16
- font-size: 20px;
17
- line-height: 27px;
47
+ font-weight: 700;
48
+ font-size: 19px;
49
+ line-height: 26px;
50
+ letter-spacing: -0.01em;
51
+ font-variant-numeric: tabular-nums;
52
+ overflow-wrap: anywhere;
53
+ }
54
+
55
+ .placeholder {
56
+ font-size: 13px;
57
+ font-weight: 500;
58
+ color: #94a3b8;
59
+ border-bottom: 1px dotted #94a3b8;
18
60
  }
19
61
 
20
62
  .capital-edit-content-space {
63
+ display: flex;
64
+ gap: 8px;
21
65
  margin-bottom: 10px;
22
66
 
23
67
  .ant-space-item {
24
- width: 50%;
68
+ min-width: 0;
69
+
70
+ &:first-child {
71
+ flex: 0 0 84px;
72
+ }
25
73
  }
26
74
  }
27
75
 
28
76
  .capital-edit-content-btn {
29
- border-radius: var(--border-radius);
77
+ display: flex;
78
+ gap: 7px;
79
+
80
+ .ant-btn {
81
+ height: 27px;
82
+ padding: 0 11px;
83
+ font-size: 12px;
84
+ }
85
+ }
86
+
87
+ .ant-select,
88
+ .ant-input-number,
89
+ .ant-picker {
90
+ height: 32px;
91
+ border-radius: var(--border-radius, 5px);
92
+ font-size: 13px;
93
+ }
94
+ }
95
+ }
96
+
97
+ /* 窄容器:指标单列,分隔线由竖线变横线 */
98
+ @container cldacapital (max-width: 679px) {
99
+ .share-capital {
100
+ .cap-grid {
101
+ grid-template-columns: minmax(0, 1fr);
102
+ }
103
+
104
+ .cap-cell {
105
+ border-left: 0;
106
+ border-top: 1px solid var(--border-color-split, #f0f0f0);
107
+ padding: 14px 18px 15px;
108
+
109
+ &:first-child {
110
+ border-top: 0;
111
+ }
112
+ }
113
+ }
114
+ }
115
+
116
+ @container cldacapital (max-width: 459px) {
117
+ .share-capital {
118
+ .cap-cell {
119
+ padding: 13px 14px 14px;
120
+ }
121
+
122
+ .capital-content .capital-content-value {
123
+ font-size: 17px;
124
+ line-height: 24px;
125
+ }
126
+ }
127
+ }
128
+
129
+ /* 兜底:不支持容器查询的浏览器 */
130
+ @media (max-width: 720px) {
131
+ .share-capital {
132
+ .cap-grid {
133
+ grid-template-columns: minmax(0, 1fr);
134
+ }
135
+
136
+ .cap-cell {
137
+ border-left: 0;
138
+ border-top: 1px solid var(--border-color-split, #f0f0f0);
139
+ padding: 14px 18px 15px;
140
+
141
+ &:first-child {
142
+ border-top: 0;
143
+ }
30
144
  }
31
145
  }
32
146
  }